@next-bricks/ai-portal 0.41.1 → 0.41.3
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 +23 -23
- package/dist/chunks/2608.bbe2b26a.js +2 -0
- package/dist/chunks/2608.bbe2b26a.js.map +1 -0
- package/dist/chunks/6754.758fa3ae.js +2 -0
- package/dist/chunks/6754.758fa3ae.js.map +1 -0
- package/dist/chunks/7493.61116715.js +2 -0
- package/dist/chunks/7493.61116715.js.map +1 -0
- package/dist/chunks/7570.ae14a465.js +2 -0
- package/dist/chunks/7570.ae14a465.js.map +1 -0
- package/dist/chunks/9474.eb2019f3.js +2 -0
- package/dist/chunks/9474.eb2019f3.js.map +1 -0
- package/dist/chunks/activity-timeline.5ea5526f.js +2 -0
- package/dist/chunks/activity-timeline.5ea5526f.js.map +1 -0
- package/dist/chunks/chat-box.15e40b8e.js +2 -0
- package/dist/chunks/chat-box.15e40b8e.js.map +1 -0
- package/dist/chunks/chat-input.3e67d2d4.js +3 -0
- package/dist/chunks/chat-input.3e67d2d4.js.map +1 -0
- package/dist/chunks/{goal-card-list.5f61cd91.js → goal-card-list.fcce68bd.js} +3 -3
- package/dist/chunks/{goal-card-list.5f61cd91.js.map → goal-card-list.fcce68bd.js.map} +1 -1
- package/dist/chunks/main.368cafdf.js +2 -0
- package/dist/chunks/{main.c7c296c8.js.map → main.368cafdf.js.map} +1 -1
- package/dist/chunks/{preview-container.fa54ae91.js → preview-container.bbde74aa.js} +2 -2
- package/dist/chunks/preview-container.bbde74aa.js.map +1 -0
- package/dist/examples.json +16 -16
- package/dist/index.985de226.js +2 -0
- package/dist/{index.663fc8d5.js.map → index.985de226.js.map} +1 -1
- package/dist/manifest.json +166 -166
- package/dist/types.json +429 -373
- package/dist-types/activity-timeline/i18n.d.ts +4 -2
- package/dist-types/activity-timeline/interfaces.d.ts +24 -16
- package/package.json +2 -2
- package/dist/chunks/2608.33f641c9.js +0 -2
- package/dist/chunks/2608.33f641c9.js.map +0 -1
- package/dist/chunks/3554.65e56ba5.js +0 -2
- package/dist/chunks/3554.65e56ba5.js.map +0 -1
- package/dist/chunks/382.d2e3f46f.js +0 -2
- package/dist/chunks/382.d2e3f46f.js.map +0 -1
- package/dist/chunks/7493.b181babb.js +0 -2
- package/dist/chunks/7493.b181babb.js.map +0 -1
- package/dist/chunks/7774.505f9191.js +0 -2
- package/dist/chunks/7774.505f9191.js.map +0 -1
- package/dist/chunks/activity-timeline.a7da73e9.js +0 -2
- package/dist/chunks/activity-timeline.a7da73e9.js.map +0 -1
- package/dist/chunks/chat-box.9c68697e.js +0 -2
- package/dist/chunks/chat-box.9c68697e.js.map +0 -1
- package/dist/chunks/chat-input.11a041ff.js +0 -3
- package/dist/chunks/chat-input.11a041ff.js.map +0 -1
- package/dist/chunks/main.c7c296c8.js +0 -2
- package/dist/chunks/preview-container.fa54ae91.js.map +0 -1
- package/dist/images/de350a46.png +0 -0
- package/dist/index.663fc8d5.js +0 -2
- /package/dist/chunks/{chat-input.11a041ff.js.LICENSE.txt → chat-input.3e67d2d4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{goal-card-list.5f61cd91.js.LICENSE.txt → goal-card-list.fcce68bd.js.LICENSE.txt} +0 -0
package/dist/bricks.json
CHANGED
|
@@ -1,45 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "bricks/ai-portal",
|
|
3
3
|
"bricks": [
|
|
4
|
-
"ai-portal.chat-box",
|
|
5
|
-
"ai-portal.home-container",
|
|
6
|
-
"ai-portal.stat-with-mini-chart",
|
|
7
4
|
"ai-portal.cruise-canvas",
|
|
5
|
+
"ai-portal.stat-with-mini-chart",
|
|
8
6
|
"ai-portal.icon-button",
|
|
9
7
|
"ai-portal.elevo-sidebar",
|
|
10
8
|
"ai-portal.show-cases",
|
|
11
9
|
"ai-portal.mcp-tools",
|
|
12
|
-
"ai-portal.chat-stream",
|
|
13
10
|
"ai-portal.ai-employees",
|
|
11
|
+
"ai-portal.chat-stream",
|
|
14
12
|
"ai-portal.ai-agents",
|
|
13
|
+
"ai-portal.entity-sdk-get",
|
|
14
|
+
"ai-portal.entity-sdk-list",
|
|
15
15
|
"ai-portal.save-request-store",
|
|
16
16
|
"ai-portal.load-request-store",
|
|
17
17
|
"ai-portal.clear-request-store",
|
|
18
|
-
"ai-portal.
|
|
19
|
-
"ai-portal.entity-sdk-get",
|
|
18
|
+
"ai-portal.page-container",
|
|
20
19
|
"ai-portal.project-summary",
|
|
21
20
|
"ai-portal.tab-list",
|
|
22
21
|
"ai-portal.dropdown-select",
|
|
23
|
-
"ai-portal.
|
|
22
|
+
"ai-portal.chat-box",
|
|
24
23
|
"ai-portal.preview-container",
|
|
24
|
+
"ai-portal.home-container",
|
|
25
25
|
"ai-portal.action-buttons",
|
|
26
26
|
"ai-portal.goal-card-list",
|
|
27
27
|
"ai-portal.project-conversations",
|
|
28
28
|
"ai-portal.project-knowledges",
|
|
29
|
-
"ai-portal.elevo-logo",
|
|
30
29
|
"ai-portal.activity-timeline",
|
|
31
|
-
"ai-portal.chat-input"
|
|
30
|
+
"ai-portal.chat-input",
|
|
31
|
+
"ai-portal.elevo-logo"
|
|
32
32
|
],
|
|
33
33
|
"elements": [],
|
|
34
34
|
"processors": [],
|
|
35
35
|
"editors": [],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"ai-portal.chat-box": [
|
|
38
|
-
"eo-icon"
|
|
39
|
-
],
|
|
40
|
-
"ai-portal.stat-with-mini-chart": [
|
|
41
|
-
"eo-mini-line-chart"
|
|
42
|
-
],
|
|
43
37
|
"ai-portal.cruise-canvas": [
|
|
44
38
|
"eo-icon",
|
|
45
39
|
"eo-button",
|
|
@@ -53,6 +47,9 @@
|
|
|
53
47
|
"basic.copy-to-clipboard",
|
|
54
48
|
"eo-easyops-avatar"
|
|
55
49
|
],
|
|
50
|
+
"ai-portal.stat-with-mini-chart": [
|
|
51
|
+
"eo-mini-line-chart"
|
|
52
|
+
],
|
|
56
53
|
"ai-portal.icon-button": [
|
|
57
54
|
"eo-icon",
|
|
58
55
|
"eo-tooltip"
|
|
@@ -74,6 +71,11 @@
|
|
|
74
71
|
"eo-icon",
|
|
75
72
|
"ai-portal.tab-list"
|
|
76
73
|
],
|
|
74
|
+
"ai-portal.ai-employees": [
|
|
75
|
+
"eo-link",
|
|
76
|
+
"eo-icon",
|
|
77
|
+
"ai-portal.tab-list"
|
|
78
|
+
],
|
|
77
79
|
"ai-portal.chat-stream": [
|
|
78
80
|
"eo-icon",
|
|
79
81
|
"eo-button",
|
|
@@ -86,15 +88,13 @@
|
|
|
86
88
|
"basic.show-dialog",
|
|
87
89
|
"basic.copy-to-clipboard"
|
|
88
90
|
],
|
|
89
|
-
"ai-portal.ai-employees": [
|
|
90
|
-
"eo-link",
|
|
91
|
-
"eo-icon",
|
|
92
|
-
"ai-portal.tab-list"
|
|
93
|
-
],
|
|
94
91
|
"ai-portal.ai-agents": [
|
|
95
92
|
"eo-icon",
|
|
96
93
|
"eo-link"
|
|
97
94
|
],
|
|
95
|
+
"ai-portal.page-container": [
|
|
96
|
+
"eo-link"
|
|
97
|
+
],
|
|
98
98
|
"ai-portal.project-summary": [
|
|
99
99
|
"eo-icon",
|
|
100
100
|
"eo-link",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"eo-menu-item",
|
|
109
109
|
"eo-input"
|
|
110
110
|
],
|
|
111
|
-
"ai-portal.
|
|
112
|
-
"eo-
|
|
111
|
+
"ai-portal.chat-box": [
|
|
112
|
+
"eo-icon"
|
|
113
113
|
],
|
|
114
114
|
"ai-portal.preview-container": [
|
|
115
115
|
"eo-icon",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"ai-portal.icon-button"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"filePath": "bricks/ai-portal/dist/index.
|
|
151
|
+
"filePath": "bricks/ai-portal/dist/index.985de226.js"
|
|
152
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:3px}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},11816:(e,t,i)=>{i.d(t,{A:()=>o});var 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:flex-start}.action{flex:1;min-width:0;display:flex;align-items:center;margin-left:6px;word-break:break-word}.time{color:#8c8c8c;margin-left:12px}.action,\n.time{padding:1px 0}.guide-line{position:absolute;left:8px;top:0;bottom:-20px;width:0;background-color:#d8d8d8}.guide-line::before{content:"";position:absolute;top:0;bottom:0;left:3.5px;width:1px;background-color:#d8d8d8}.guide-line::after{content:"";position:absolute;top:8px;left:0;width:8px;height:8px;border-radius:8px;background-color:#d8d8d8}.activity:first-child .guide-line::before{top:12px}.activity:last-child .guide-line::before{height:12px;bottom:auto}.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),d=i(62740),h=i(18769),p=i.n(h),u=i(7921),m=i(11280),g=(i(65168),i(87117)),b=i(80079),A=i(51850),k=i(78523);let E,x,w,v,f,y,T,S,C,_,N,M,R,W,I,L,O,D,z,P,U,H,B,F,V,G,j,K,q,$,J,X,Y,Q,Z,ee,te,ie,ae,ne,re,se,oe,le,ce,de,he,pe,ue,me,ge,be,Ae,ke;(0,g.initializeI18n)(b.NS,b.I);const{defineElement:Ee,property:xe,event:we,method:ve}=(0,u.createDecorators)(),fe=(0,h.forwardRef)(A.A),ye=(0,h.forwardRef)(k.B);let Te;var Se=new WeakMap,Ce=new WeakMap,_e=new WeakMap,Ne=new WeakMap,Me=new WeakMap,Re=new WeakMap,We=new WeakMap,Ie=new WeakMap,Le=new WeakMap,Oe=new WeakMap,De=new WeakMap,ze=new WeakMap,Pe=new WeakMap,Ue=new WeakMap,He=new WeakMap,Be=new WeakMap,Fe=new WeakMap,Ve=new WeakSet,Ge=new WeakMap,je=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,Ve),(0,r.A)(this,Se,(E(this),w(this))),(0,r.A)(this,Ce,(v(this),f(this))),(0,r.A)(this,_e,(y(this),T(this))),(0,r.A)(this,Ne,(S(this),C(this))),(0,r.A)(this,Me,(_(this),N(this))),(0,r.A)(this,Re,(M(this),R(this))),(0,r.A)(this,We,(W(this),I(this))),(0,r.A)(this,Ie,(L(this),O(this))),(0,r.A)(this,Le,(D(this),z(this))),(0,r.A)(this,Oe,(P(this),U(this))),(0,r.A)(this,De,(H(this),B(this))),(0,r.A)(this,ze,(F(this),V(this))),(0,r.A)(this,Pe,(G(this),j(this))),(0,r.A)(this,Ue,(K(this),q(this))),(0,r.A)(this,He,($(this),J(this))),(0,r.A)(this,Be,(X(this),Y(this))),(0,r.A)(this,Fe,(Q(this),Z(this))),(0,r.A)(this,Ge,(ie(this),()=>{(0,o.A)(Ve,this,ee).emit()})),(0,r.A)(this,je,ae(this)),(0,r.A)(this,Ke,(se(this),()=>{(0,o.A)(Ve,this,ne).emit()})),(0,r.A)(this,qe,oe(this)),(0,r.A)(this,$e,(de(this),e=>{(0,o.A)(Ve,this,le).emit(e)})),(0,r.A)(this,Je,he(this)),(0,r.A)(this,Xe,(me(this),e=>{(0,o.A)(Ve,this,pe).emit(e)})),(0,r.A)(this,Ye,ge(this)),(0,r.A)(this,Qe,(ke(this),()=>{(0,o.A)(Ve,this,be).emit("chat")})),(0,r.A)(this,Ze,(0,h.createRef)())}get conversationId(){return(0,c.A)(Se,this)}set conversationId(e){(0,l.A)(Se,this,e)}get initialRequest(){return(0,c.A)(Ce,this)}set initialRequest(e){(0,l.A)(Ce,this,e)}get taskId(){return(0,c.A)(_e,this)}set taskId(e){(0,l.A)(_e,this,e)}get task(){return(0,c.A)(Ne,this)}set task(e){(0,l.A)(Ne,this,e)}get jobs(){return(0,c.A)(Me,this)}set jobs(e){(0,l.A)(Me,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)(Ie,this)}set supports(e){(0,l.A)(Ie,this,e)}get showHiddenJobs(){return(0,c.A)(Le,this)}set showHiddenJobs(e){(0,l.A)(Le,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)(Pe,this)}set showUiSwitch(e){(0,l.A)(Pe,this,e)}get hideMermaid(){return(0,c.A)(Ue,this)}set hideMermaid(e){(0,l.A)(Ue,this,e)}get showJsxEditor(){return(0,c.A)(He,this)}set showJsxEditor(e){(0,l.A)(He,this,e)}get previewUrlTemplate(){return(0,c.A)(Be,this)}set previewUrlTemplate(e){(0,l.A)(Be,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)(Ge,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:[w,v,f,y,T,S,C,_,N,M,R,W,I,L,O,D,z,P,U,H,B,F,V,G,j,K,q,$,J,X,Y,Q,Z,ee,te,ie,ae,ne,re,se,oe,le,ce,de,he,pe,ue,me,ge,be,Ae,ke,E],c:[Te,x]}=(0,d.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"],[we({type:"share"}),1,"shareEvent",e=>(0,c.A)(Fe,e),(e,t)=>(0,l.A)(Fe,e,t)],[we({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(je,e),(e,t)=>(0,l.A)(je,e,t)],[we({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(qe,e),(e,t)=>(0,l.A)(qe,e,t)],[we({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(Je,e),(e,t)=>(0,l.A)(Je,e,t)],[we({type:"ui.switch"}),1,"switch",e=>(0,c.A)(Ye,e),(e,t)=>(0,l.A)(Ye,e,t)],[ve(),2,"resumed"],[ve(),2,"feedbackSubmitDone"],[ve(),2,"feedbackSubmitFailed"],[ve(),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=g.i18n.getFixedT(null,nt);var ot,lt=i(47008);let ct,dt,ht,pt,ut,mt,gt,bt,At,kt,Et,xt;(0,g.initializeI18n)(nt,rt);const wt=(0,m.wrapBrick)("eo-icon"),{defineElement:vt,property:ft,event:yt,method:Tt}=(0,u.createDecorators)(),St=(0,h.forwardRef)(Ot);let Ct;var _t=new WeakMap,Nt=new WeakMap,Mt=new WeakMap,Rt=new WeakMap,Wt=new WeakSet,It=new WeakMap;class Lt extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Wt),(0,tt.A)(this,"ref",(ct(this),(0,h.createRef)())),(0,r.A)(this,_t,ht(this)),(0,r.A)(this,Nt,(pt(this),ut(this))),(0,r.A)(this,Mt,(mt(this),gt(this))),(0,r.A)(this,Rt,(bt(this),At(this))),(0,r.A)(this,It,(xt(this),e=>{(0,o.A)(Wt,this,kt).emit(e)}))}get disabled(){return(0,c.A)(_t,this)}set disabled(e){(0,l.A)(_t,this,e)}get placeholder(){return(0,c.A)(Nt,this)}set placeholder(e){(0,l.A)(Nt,this,e)}get autoFocus(){return(0,c.A)(Mt,this)}set autoFocus(e){(0,l.A)(Mt,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)(It,this),ref:this.ref})}}function Ot(e,t){let{disabled:i,placeholder:a,autoFocus:n,onSubmit:r}=e;const s=(0,h.useRef)(null),o=(0,h.useRef)(null),[l,c]=(0,h.useState)(""),d=(0,h.useRef)("");(0,h.useImperativeHandle)(t,(()=>({setValue:e=>{d.current=e,c(e)},getValue:()=>d.current})));const u=(0,h.useCallback)((e=>{e.currentTarget.value&&r(e.currentTarget.value)}),[r]),m=(0,h.useCallback)((e=>{d.current=e.target.value,c(e.target.value)}),[]),g=(0,h.useCallback)((()=>{r(d.current)}),[r]);return(0,h.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:g},p().createElement(wt,{lib:"fa",prefix:"fas",icon:"arrow-up"})))))}ot=Lt,({e:[ht,pt,ut,mt,gt,bt,At,kt,Et,xt,ct],c:[Ct,dt]}=(0,d.A)(ot,[vt("ai-portal.chat-box",{styleTexts:[lt.A],shadowOptions:{delegatesFocus:!0}})],[[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=>It.has((0,s.A)(e))),m.ReactNextElement)),dt();var Dt,zt=i(82165);let Pt;const{defineElement:Ut}=(0,u.createDecorators)();let Ht;class Bt extends m.ReactNextElement{render(){return p().createElement(Ft,null)}}function Ft(){return p().createElement("slot",null)}Dt=Bt,[Ht,Pt]=(0,d.A)(Dt,[Ut("ai-portal.home-container",{styleTexts:[zt.A]})],[],0,void 0,m.ReactNextElement).c,Pt();var Vt,Gt=i(89575),jt=i(24);let Kt,qt,$t,Jt,Xt,Yt,Qt,Zt,ei,ti,ii,ai,ni,ri,si,oi,li,ci,di,hi,pi;const ui=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:mi,property:gi}=(0,u.createDecorators)();let bi;var Ai=new WeakMap,ki=new WeakMap,Ei=new WeakMap,xi=new WeakMap,wi=new WeakMap,vi=new WeakMap,fi=new WeakMap,yi=new WeakMap,Ti=new WeakMap,Si=new WeakMap;class Ci 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,wi,(ei(this),ti(this))),(0,r.A)(this,vi,(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,(di(this),hi(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)(wi,this)}set showArea(e){(0,l.A)(wi,this,e)}get min(){return(0,c.A)(vi,this)}set min(e){(0,l.A)(vi,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(_i,{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 _i(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,Gt.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,Gt.A)({},n,{lineWidth:2,width:"auto",height:"92"}))),p().createElement("div",{className:"stat"},i)))}Vt=Ci,({e:[qt,$t,Jt,Xt,Yt,Qt,Zt,ei,ti,ii,ai,ni,ri,si,oi,li,ci,di,hi,pi],c:[bi,Kt]}=(0,d.A)(Vt,[mi("ai-portal.stat-with-mini-chart",{styleTexts:[jt.A]})],[[gi(),1,"label"],[gi(),1,"value"],[gi(),1,"size"],[gi(),1,"lineColor"],[gi({type:Boolean}),1,"showArea"],[gi({type:Number}),1,"min"],[gi({type:Number}),1,"max"],[gi(),1,"xField"],[gi(),1,"yField"],[gi({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),Kt();var Ni,Mi=i(29475),Ri=i(53373),Wi=i.n(Ri),Ii=i(99671),Li=i(61408),Oi=i(42965),Di=i(45646),zi=i(26785);let Pi,Ui,Hi,Bi,Fi,Vi,Gi,ji,Ki,qi,$i,Ji,Xi,Yi,Qi,Zi,ea,ta,ia,aa,na,ra,sa,oa,la,ca,da,ha,pa,ua,ma,ga,ba,Aa,ka,Ea,xa,wa,va,fa,ya,Ta,Sa,Ca,_a,Na;(0,g.initializeI18n)(Ii.NS,Ii.I);const Ma={lib:"easyops",icon:"sidebar"},Ra=(0,m.wrapBrick)("ai-portal.elevo-logo"),{defineElement:Wa,property:Ia,event:La,method:Oa}=(0,u.createDecorators)(),Da=(0,h.forwardRef)(hn);let za;var Pa=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,Va=new WeakMap,Ga=new WeakMap,ja=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 dn extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Za),(0,r.A)(this,Pa,(Pi(this),Hi(this,!0))),(0,r.A)(this,Ua,(Bi(this),Fi(this))),(0,r.A)(this,Ha,(Vi(this),Gi(this))),(0,r.A)(this,Ba,(ji(this),Ki(this))),(0,r.A)(this,Fa,(qi(this),$i(this))),(0,r.A)(this,Va,(Ji(this),Xi(this))),(0,r.A)(this,Ga,(Yi(this),Qi(this))),(0,r.A)(this,ja,(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),da(this))),(0,r.A)(this,Ya,(ha(this),pa(this))),(0,r.A)(this,Qa,(ua(this),ma(this))),(0,r.A)(this,en,(Aa(this),()=>{(0,o.A)(Za,this,ga).emit()})),(0,r.A)(this,tn,ka(this)),(0,r.A)(this,an,(wa(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,va(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,(Na(this),()=>{(0,o.A)(Za,this,Ca).emit()})),(0,r.A)(this,cn,(0,h.createRef)())}get legacy(){return(0,c.A)(Pa,this)}set legacy(e){(0,l.A)(Pa,this,e)}get userInstanceId(){return(0,c.A)(Ua,this)}set userInstanceId(e){(0,l.A)(Ua,this,e)}get behavior(){return(0,c.A)(Ha,this)}set behavior(e){(0,l.A)(Ha,this,e)}get bordered(){return(0,c.A)(Ba,this)}set bordered(e){(0,l.A)(Ba,this,e)}get logoUrl(){return(0,c.A)(Fa,this)}set logoUrl(e){(0,l.A)(Fa,this,e)}get newChatUrl(){return(0,c.A)(Va,this)}set newChatUrl(e){(0,l.A)(Va,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(Ga,this)}set newChatLinkWhenCollapsed(e){(0,l.A)(Ga,this,e)}get historyActiveId(){return(0,c.A)(ja,this)}set historyActiveId(e){(0,l.A)(ja,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 hn(e,t){let{legacy:i,userInstanceId:a,behavior:n,logoUrl:r,newChatUrl:s,newChatLinkWhenCollapsed:o,historyActiveId:l,historyUrlTemplate:c,historyActions:d,projectActiveId:u,projectUrlTemplate:m,projectActions:b,links:A,onLogout:k,onActionClick:E,onLegacyActionClick:x,onProjectActionClick:w,onAddProject:v}=e;const[f,y]=(0,h.useState)("drawer"===n),T=(0,h.useCallback)((()=>{y(!0)}),[]),S=(0,h.useCallback)((()=>{y(!1)}),[]);(0,h.useEffect)((()=>{"drawer"===n&&y(!0)}),[n]);const C=(0,h.useCallback)((()=>{y(!0)}),[]),_=(0,h.useCallback)((()=>{"drawer"===n&&y(!0)}),[n]),N=(0,h.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:(0,Ii.t)(Ii.K.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:(0,Ii.t)(Ii.K.SWITCH_LANGUAGE)}]),[]),M=(0,h.useRef)(null);return(0,h.useImperativeHandle)(t,(()=>({close:()=>{y(!0)},pull:()=>{var e;null===(e=M.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=M.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=M.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=M.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:C}),p().createElement("div",{className:"alternative"},p().createElement(Oi.Py,{icon:Ma,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,Ii.t)(Ii.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:Ma,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,Ii.t)(Ii.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,Gt.A)({className:"icon"},e.icon)),p().createElement("span",{className:"title"},e.title))))):null,i?p().createElement(zi.Y,{ref:M,activeId:l,urlTemplate:c,actions:d,onActionClick:x,onHistoryClick:_}):p().createElement(Di.D,{ref:M,historyActiveId:l,historyUrlTemplate:c,historyActions:d,projectActiveId:u,projectUrlTemplate:m,projectActions:b,onActionClick:E,onHistoryClick:_,onProjectActionClick:w,onAddProject:v}),p().createElement("div",{className:"footer"},p().createElement(Oi.qb,{className:"dropdown",actions:N,onActionClick:async e=>{"logout"===e.detail.key?k():(await g.i18n.changeLanguage(g.i18n.language&&"en"===g.i18n.language.split("-")[0]?"zh":"en"),(0,Mi.getHistory)().reload())}},p().createElement("button",{className:"account"},p().createElement(Oi.JQ,{nameOrInstanceId:a,showName:!0,size:"xs"}))))))}Ni=dn,({e:[Hi,Bi,Fi,Vi,Gi,ji,Ki,qi,$i,Ji,Xi,Yi,Qi,Zi,ea,ta,ia,aa,na,ra,sa,oa,la,ca,da,ha,pa,ua,ma,ga,ba,Aa,ka,Ea,xa,wa,va,fa,ya,Ta,Sa,Ca,_a,Na,Pi],c:[za,Ui]}=(0,d.A)(Ni,[Wa("ai-portal.elevo-sidebar",{styleTexts:[Li.A]})],[[Ia({type:Boolean}),1,"legacy"],[Ia(),1,"userInstanceId"],[Ia(),1,"behavior"],[Ia({type:Boolean,render:!1}),1,"bordered"],[Ia(),1,"logoUrl"],[Ia(),1,"newChatUrl"],[Ia({type:Boolean}),1,"newChatLinkWhenCollapsed"],[Ia(),1,"historyActiveId"],[Ia(),1,"historyUrlTemplate"],[Ia({attribute:!1}),1,"historyActions"],[Ia(),1,"projectActiveId"],[Ia(),1,"projectUrlTemplate"],[Ia({attribute:!1}),1,"projectActions"],[Ia({attribute:!1}),1,"links"],[La({type:"logout"}),1,"logout",e=>(0,c.A)(Qa,e),(e,t)=>(0,l.A)(Qa,e,t)],[La({type:"action.click"}),1,"actionClick",e=>(0,c.A)(tn,e),(e,t)=>(0,l.A)(tn,e,t)],[La({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(rn,e),(e,t)=>(0,l.A)(rn,e,t)],[La({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)),Ui();var pn,un=i(47338);let mn,gn,bn,An,kn,En,xn,wn,vn;const fn=(0,m.wrapBrick)("eo-icon"),yn=(0,m.wrapBrick)("eo-tooltip"),{defineElement:Tn,property:Sn}=(0,u.createDecorators)();let Cn;var _n=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,Rn=new WeakMap;class Wn extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,_n,gn(this)),(0,r.A)(this,Nn,(bn(this),An(this))),(0,r.A)(this,Mn,(kn(this),En(this))),(0,r.A)(this,Rn,(xn(this),wn(this))),vn(this)}get icon(){return(0,c.A)(_n,this)}set icon(e){(0,l.A)(_n,this,e)}get tooltip(){return(0,c.A)(Nn,this)}set tooltip(e){(0,l.A)(Nn,this,e)}get disabled(){return(0,c.A)(Mn,this)}set disabled(e){(0,l.A)(Mn,this,e)}get variant(){return(0,c.A)(Rn,this)}set variant(e){(0,l.A)(Rn,this,e)}render(){return p().createElement(In,{icon:this.icon,tooltip:this.tooltip,disabled:this.disabled})}}function In(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:[gn,bn,An,kn,En,xn,wn,vn],c:[Cn,mn]}=(0,d.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 Ln=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const On="bricks/ai-portal/show-cases",Dn={en:{[Ln.ALL]:"All",[Ln.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[Ln.ALL]:"全部",[Ln.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},zn=g.i18n.getFixedT(null,On);var Pn,Un=i(42873),Hn=i(98343);let Bn,Fn,Vn,Gn,jn;(0,g.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,Fn(this)),(0,r.A)(this,Qn,(Vn(this),Gn(this))),jn(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,h.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[n,r]=(0,h.useState)(""),s=(0,h.useMemo)((()=>n?null==t?void 0:t.filter((e=>e.scenario===n)):t),[n,t]),o=(0,h.useMemo)((()=>a.map((e=>({id:e,label:""===e?zn(Ln.ALL):e})))),[a]);return null!=t&&t.length?p().createElement(p().Fragment,null,p().createElement("div",{className:"tips"},`${zn(Ln.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,Hn.Q)(i,e),style:e.thumbUrl?{backgroundImage:`url("${(0,Mi.getBasePath)()}${e.thumbUrl}")`}:void 0},p().createElement("div",{className:"title"},e.title),p().createElement("div",{className:"description"},e.summary))))))):null}Pn=Zn,({e:[Fn,Vn,Gn,jn],c:[Xn,Bn]}=(0,d.A)(Pn,[$n("ai-portal.show-cases",{styleTexts:[Un.A]})],[[Jn({attribute:!1}),1,"list"],[Jn(),1,"taskUrlTemplate"]],0,void 0,m.ReactNextElement)),Bn();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=g.i18n.getFixedT(null,ir);var rr,sr=i(31748);let or,lr,cr,dr,hr;(0,g.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"),gr=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:br,property:Ar}=(0,u.createDecorators)();let kr;var Er=new WeakMap,xr=new WeakMap;class wr extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Er,lr(this)),(0,r.A)(this,xr,(cr(this),dr(this,!0))),hr(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(vr,{list:this.list,withContainer:this.withContainer})}}function vr(e){let{list:t,withContainer:i}=e;const[a,n]=(0,h.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,h.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,h.useState)(""),l=(0,h.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,h.useMemo)((()=>r.map((e=>({id:e,label:""===e?nr(tr.ALL):e})))),[r]),d=p().createElement(p().Fragment,null,p().createElement(gr,{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,Gt.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)),d):d}rr=wr,({e:[lr,cr,dr,hr],c:[kr,or]}=(0,d.A)(rr,[br("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 Cr,_r,Nr,Mr,Rr,Wr,Ir,Lr,Or,Dr,zr,Pr,Ur,Hr,Br,Fr,Vr,Gr,jr,Kr,qr,$r,Jr,Xr,Yr,Qr,Zr,es,ts,is,as,ns,rs,ss,os,ls,cs,ds,hs,ps,us,ms,gs,bs,As,ks;(0,g.initializeI18n)(yr.NS,yr.I);const{defineElement:Es,property:xs,event:ws,method:vs}=(0,u.createDecorators)(),fs=(0,h.forwardRef)(Tr.L),ys=(0,h.forwardRef)(Sr.C);let Ts;var Ss=new WeakMap,Cs=new WeakMap,_s=new WeakMap,Ns=new WeakMap,Ms=new WeakMap,Rs=new WeakMap,Ws=new WeakMap,Is=new WeakMap,Ls=new WeakMap,Os=new WeakMap,Ds=new WeakMap,zs=new WeakMap,Ps=new WeakMap,Us=new WeakSet,Hs=new WeakMap,Bs=new WeakMap,Fs=new WeakMap,Vs=new WeakMap,Gs=new WeakMap,js=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,Us),(0,r.A)(this,Ss,(Cr(this),Nr(this))),(0,r.A)(this,Cs,(Mr(this),Rr(this))),(0,r.A)(this,_s,(Wr(this),Ir(this))),(0,r.A)(this,Ns,(Lr(this),Or(this))),(0,r.A)(this,Ms,(Dr(this),zr(this))),(0,r.A)(this,Rs,(Pr(this),Ur(this))),(0,r.A)(this,Ws,(Hr(this),Br(this))),(0,r.A)(this,Is,(Fr(this),Vr(this))),(0,r.A)(this,Ls,(Gr(this),jr(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,Ps,(Qr(this),Zr(this))),(0,r.A)(this,Hs,(is(this),()=>{(0,o.A)(Us,this,es).emit()})),(0,r.A)(this,Bs,as(this)),(0,r.A)(this,Fs,(ss(this),()=>{(0,o.A)(Us,this,ns).emit()})),(0,r.A)(this,Vs,os(this)),(0,r.A)(this,Gs,(ds(this),e=>{(0,o.A)(Us,this,ls).emit(e)})),(0,r.A)(this,js,hs(this)),(0,r.A)(this,Ks,(ms(this),e=>{(0,o.A)(Us,this,ps).emit(e)})),(0,r.A)(this,qs,gs(this)),(0,r.A)(this,$s,(ks(this),()=>{(0,o.A)(Us,this,bs).emit("canvas")})),(0,r.A)(this,Js,(0,h.createRef)())}get conversationId(){return(0,c.A)(Ss,this)}set conversationId(e){(0,l.A)(Ss,this,e)}get initialRequest(){return(0,c.A)(Cs,this)}set initialRequest(e){(0,l.A)(Cs,this,e)}get taskId(){return(0,c.A)(_s,this)}set taskId(e){(0,l.A)(_s,this,e)}get replay(){return(0,c.A)(Ns,this)}set replay(e){(0,l.A)(Ns,this,e)}get replayDelay(){return(0,c.A)(Ms,this)}set replayDelay(e){(0,l.A)(Ms,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)(Is,this)}set showFeedbackAfterFailed(e){(0,l.A)(Is,this,e)}get showFeedbackOnView(){return(0,c.A)(Ls,this)}set showFeedbackOnView(e){(0,l.A)(Ls,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)(Hs,this),onTerminate:(0,c.A)(Fs,this),onSubmitFeedback:(0,c.A)(Gs,this),onSwitchToCanvas:(0,c.A)($s,this),onFeedbackOnView:(0,c.A)(Ks,this)})}}fr=Xs,({e:[Nr,Mr,Rr,Wr,Ir,Lr,Or,Dr,zr,Pr,Ur,Hr,Br,Fr,Vr,Gr,jr,Kr,qr,$r,Jr,Xr,Yr,Qr,Zr,es,ts,is,as,ns,rs,ss,os,ls,cs,ds,hs,ps,us,ms,gs,bs,As,ks,Cr],c:[Ts,_r]}=(0,d.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"],[ws({type:"share"}),1,"shareEvent",e=>(0,c.A)(Ps,e),(e,t)=>(0,l.A)(Ps,e,t)],[ws({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Bs,e),(e,t)=>(0,l.A)(Bs,e,t)],[ws({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Vs,e),(e,t)=>(0,l.A)(Vs,e,t)],[ws({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(js,e),(e,t)=>(0,l.A)(js,e,t)],[ws({type:"ui.switch"}),1,"switch",e=>(0,c.A)(qs,e),(e,t)=>(0,l.A)(qs,e,t)],[vs(),2,"resumed"],[vs(),2,"feedbackSubmitDone"],[vs(),2,"feedbackSubmitFailed"],[vs(),2,"feedbackOnViewDone"]],0,(e=>Js.has((0,s.A)(e))),m.ReactNextElement)),_r();let Ys=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const Qs="bricks/ai-portal/ai-employees",Zs=g.i18n.getFixedT(null,Qs);var eo,to=i(98036);let io,ao,no,ro,so,oo,lo,co,ho;(0,g.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:go,property:bo}=(0,u.createDecorators)();let Ao;var ko=new WeakMap,Eo=new WeakMap,xo=new WeakMap,wo=new WeakMap;class vo 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,wo,(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)(wo,this)}set withContainer(e){(0,l.A)(wo,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,h.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[s,o]=(0,h.useState)(r[0]),l=(0,h.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,h.useMemo)((()=>r.map((e=>({id:e,label:e||Zs(Ys.UNTITLED)})))),[r]),d=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,Gt.A)({className:Wi()("link",{clickable:!!a})},a?{url:(0,Hn.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)),d):d}eo=vo,({e:[ao,no,ro,so,oo,lo,co,ho],c:[Ao,io]}=(0,d.A)(eo,[go("ai-portal.ai-employees",{styleTexts:[to.A]})],[[bo({attribute:!1}),1,"list"],[bo({attribute:!1}),1,"industries"],[bo(),1,"urlTemplate"],[bo({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=g.i18n.getFixedT(null,To);var Co,_o=i(83059);let No,Mo,Ro,Wo,Io,Lo,Oo;const Do={lib:"antd",icon:"tool"};(0,g.initializeI18n)(To,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const zo=(0,m.wrapBrick)("eo-icon"),Po=(0,m.wrapBrick)("eo-link"),{defineElement:Uo,property:Ho}=(0,u.createDecorators)();let Bo;var Fo=new WeakMap,Vo=new WeakMap,Go=new WeakMap;class jo extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Fo,Mo(this)),(0,r.A)(this,Vo,(Ro(this),Wo(this))),(0,r.A)(this,Go,(Io(this),Lo(this,!0))),Oo(this)}get list(){return(0,c.A)(Fo,this)}set list(e){(0,l.A)(Fo,this,e)}get urlTemplate(){return(0,c.A)(Vo,this)}set urlTemplate(e){(0,l.A)(Vo,this,e)}get withContainer(){return(0,c.A)(Go,this)}set withContainer(e){(0,l.A)(Go,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(Po,(0,Gt.A)({className:Wi()("link",{clickable:!!i})},i?{url:(0,Hn.Q)(i,e)}:null),p().createElement("div",{className:"heading"},p().createElement("div",{className:"icon"},p().createElement(zo,(0,Gt.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}Co=jo,({e:[Mo,Ro,Wo,Io,Lo,Oo],c:[Bo,No]}=(0,d.A)(Co,[Uo("ai-portal.ai-agents",{styleTexts:[_o.A]})],[[Ho({attribute:!1}),1,"list"],[Ho(),1,"urlTemplate"],[Ho({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),No();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,dl=new WeakMap;class hl 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,dl,(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)(dl,this)}set size(e){(0,l.A)(dl,this,e)}render(){return p().createElement(pl,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs})}}function pl(e){let{breadcrumbs:t,pageTitle:i}=e;return(0,h.useEffect)((()=>{"string"==typeof i&&(0,Mi.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=hl,({e:[Qo,Zo,el,tl,il,al],c:[ol,Yo]}=(0,d.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 gl="bricks/ai-portal/project-summary",bl={en:{[ml.CHATS]:"Chat history",[ml.GOALS]:"Project goals"},zh:{[ml.CHATS]:"历史对话",[ml.GOALS]:"项目目标"}},Al=g.i18n.getFixedT(null,gl);var kl,El=i(56562);let xl,wl,vl,fl,yl;(0,g.initializeI18n)(gl,bl);const Tl=(0,m.wrapBrick)("eo-icon"),Sl=(0,m.wrapBrick)("eo-link"),Cl=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),_l="chats",Nl=[{id:_l,label:Al(ml.CHATS)},{id:"goals",label:Al(ml.GOALS)}],{defineElement:Ml,property:Rl}=(0,u.createDecorators)();let Wl;var Il=new WeakMap,Ll=new WeakMap;class Ol extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Il,wl(this)),(0,r.A)(this,Ll,(vl(this),fl(this))),yl(this)}get chatList(){return(0,c.A)(Il,this)}set chatList(e){(0,l.A)(Il,this,e)}get chatUrlTemplate(){return(0,c.A)(Ll,this)}set chatUrlTemplate(e){(0,l.A)(Ll,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,h.useState)(_l);return p().createElement(p().Fragment,null,p().createElement(Cl,{tabs:Nl,activeTab:a,onTabClick:e=>n(e.detail.id)}),a===_l?t?p().createElement("ul",{className:"chats"},t.map((e=>p().createElement("li",{key:e.conversationId,className:"item"},p().createElement(Sl,{className:"link",url:(0,Hn.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:[wl,vl,fl,yl],c:[Wl,xl]}=(0,d.A)(kl,[Ml("ai-portal.project-summary",{styleTexts:[El.A]})],[[Rl({attribute:!1}),1,"chatList"],[Rl(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),xl();var zl,Pl=i(20124);let Ul,Hl,Bl,Fl,Vl,Gl,jl,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,Hl(this)),(0,r.A)(this,Zl,(Bl(this),Fl(this))),(0,r.A)(this,ec,(Vl(this),Gl(this))),(0,r.A)(this,ic,(ql(this),e=>{this.activeTab=e.id,(0,o.A)(tc,this,jl).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:[Hl,Bl,Fl,Vl,Gl,jl,Kl,ql],c:[Yl,Ul]}=(0,d.A)(zl,[$l("ai-portal.tab-list",{styleTexts:[Pl.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)),Ul();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=g.i18n.getFixedT(null,oc);var cc,dc=i(40138);let hc,pc,uc,mc,gc,bc,Ac,kc,Ec,xc,wc,vc,fc,yc,Tc,Sc,Cc,_c,Nc,Mc,Rc;(0,g.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:Ic,event:Lc}=(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"),Pc=(0,m.wrapBrick)("eo-menu"),Uc=(0,m.wrapBrick)("eo-menu-item"),Hc=(0,m.wrapBrick)("eo-input",{onValueChange:"change"});let Bc;var Fc=new WeakMap,Vc=new WeakMap,Gc=new WeakMap,jc=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,Fc,pc(this)),(0,r.A)(this,Vc,(uc(this),mc(this))),(0,r.A)(this,Gc,(gc(this),bc(this))),(0,r.A)(this,jc,(Ac(this),kc(this))),(0,r.A)(this,Kc,(Ec(this),xc(this))),(0,r.A)(this,qc,(wc(this),vc(this))),(0,r.A)(this,$c,(fc(this),yc(this))),(0,r.A)(this,Jc,(Tc(this),Sc(this))),(0,r.A)(this,Xc,(Cc(this),_c(this))),(0,r.A)(this,Qc,(Rc(this),e=>{(0,o.A)(Yc,this,Nc).emit(e)}))}get value(){return(0,c.A)(Fc,this)}set value(e){(0,l.A)(Fc,this,e)}get options(){return(0,c.A)(Vc,this)}set options(e){(0,l.A)(Vc,this,e)}get labelMaxWidth(){return(0,c.A)(Gc,this)}set labelMaxWidth(e){(0,l.A)(Gc,this,e)}get loading(){return(0,c.A)(jc,this)}set loading(e){(0,l.A)(jc,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(ed,{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 ed(e){let{value:t,options:i,labelMaxWidth:a,dropdownMaxWidth:n,showSearch:r,loading:s,searchPlaceholder:o,dropdownContentStyle:l,onChange:c}=e;const[d,u]=(0,h.useState)(!1),[m,g]=(0,h.useState)(t),[b,A]=(0,h.useState)(""),[k,E]=(0,h.useState)(i);(0,h.useEffect)((()=>{E(i)}),[i]);const x=(0,h.useMemo)((()=>null==k?void 0:k.find((e=>e.value===m))),[k,m]),w=(0,h.useMemo)((()=>b&&k?null==k?void 0:k.filter((e=>e.label.toLowerCase().includes(b.toLowerCase()))):k),[k,b]),v=(0,h.useCallback)((e=>{u(e.detail),e.detail||A("")}),[]),f=(0,h.useMemo)((()=>(0,rc.debounce)((e=>{A(e.detail)}),300)),[]);return p().createElement(Oc,{placement:"bottom-start",trigger:"click",active:d,arrow:!1,distance:5,onBeforeVisibleChange:v},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:d?"chevron-up":"chevron-down"})),p().createElement("div",{className:"dropdown",style:{maxWidth:n}},r&&p().createElement("div",{className:"search-container"},p().createElement(Hc,{className:"search",value:b,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==w||!w.length)&&p().createElement(Pc,null,null==w?void 0:w.map((e=>p().createElement(Uc,{key:e.value,disabled:e.disabled,className:m===e.value?"active":void 0,onClick:t=>{t.preventDefault(),t.stopPropagation(),u(!1),m!==e.value&&(g(e.value),c(e))}},e.label)))),!(null!=w&&w.length)&&p().createElement("div",{className:"empty"},lc(sc.SEARCH_NO_DATA))))))}cc=Zc,({e:[pc,uc,mc,gc,bc,Ac,kc,Ec,xc,wc,vc,fc,yc,Tc,Sc,Cc,_c,Nc,Mc,Rc],c:[Bc,hc]}=(0,d.A)(cc,[Wc("ai-portal.dropdown-select",{styleTexts:[dc.A]})],[[Ic(),1,"value"],[Ic({attribute:!1}),1,"options"],[Ic({attribute:!1}),1,"labelMaxWidth"],[Ic({type:Boolean}),1,"loading"],[Ic({attribute:!1}),1,"searchPlaceholder"],[Ic({attribute:!1}),1,"dropdownContentStyle"],[Ic({attribute:!1}),1,"dropdownMaxWidth"],[Ic({type:Boolean}),1,"showSearch"],[Lc({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)),hc();var td=i(8406),id=i(57372);const ad=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 id.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=ad.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,td.y)(t,i);var a,n})));var nd=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,nd.y)(t,i,{})})));var rd=i(82139),sd=i(9660);let od=function(e){return e.UNTITLED="UNTITLED",e}({});const ld="bricks/ai-portal/preview-container",cd=g.i18n.getFixedT(null,ld);var dd=i(72591),hd=i.n(dd),pd=i(1740),ud=i.n(pd),md=i(88128),gd=i.n(md),bd=i(30855),Ad=i.n(bd),kd=i(93051),Ed=i.n(kd),xd=i(73656),wd=i.n(xd),vd=i(62522),fd={};fd.styleTagTransform=wd(),fd.setAttributes=Ad(),fd.insert=gd().bind(null,"head"),fd.domAPI=ud(),fd.insertStyleElement=Ed(),hd()(vd.A,fd);const yd=vd.A&&vd.A.locals?vd.A.locals:void 0;var Td,Sd=i(6026),Cd=i(28599);let _d,Nd,Md;(0,g.initializeI18n)(ld,{en:{UNTITLED:"Untitled"},zh:{UNTITLED:"无标题"}});const Rd=(0,m.wrapBrick)("eo-icon"),Wd=(0,m.wrapBrick)("eo-page-title"),Id=(0,m.wrapBrick)("eo-main-view"),Ld=(0,m.wrapBrick)("eo-narrow-view"),{defineElement:Od,property:Dd}=(0,u.createDecorators)();let zd;var Pd=new WeakMap,Ud=new WeakMap;class Hd extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Pd,Nd(this)),(0,r.A)(this,Ud,(Md(this),(0,rc.uniqueId)()))}get source(){return(0,c.A)(Pd,this)}set source(e){(0,l.A)(Pd,this,e)}render(){return p().createElement(h.Suspense,{fallback:p().createElement(Rd,{lib:"antd",icon:"loading-3-quarters",spinning:!0,className:yd.loading})},p().createElement(Bd,{rootId:(0,c.A)(Ud,this),source:this.source}))}}function Bd(e){let{rootId:t,source:i}=e;const a=(0,h.useMemo)((()=>i?async function(e){const t=await(0,Sd.f)();return await t.parse(e)}(i).catch((e=>(console.error("Failed to parse view:",e),null))):Promise.resolve(null)),[i]),n=(0,h.use)(a),r=(0,h.useMemo)((()=>n?(0,rd.d)(n,{rootId:t,expanded:!0}).catch((e=>(console.error("Failed to convert view:",e),null))):Promise.resolve(null)),[n,t]),s=(0,h.use)(r),o=(0,h.useMemo)((()=>(0,sd.W)(n)),[n]);return p().createElement(Fd,{rootId:t,pageTitle:o,convertedResult:s})}function Fd(e){let{rootId:t,pageTitle:i,convertedResult:a}=e;const n=(0,h.useRef)(null),r=(0,h.useRef)(null);return(0,h.useEffect)((()=>{const e=n.current;if(!e)return;const i=(0,Cd.d)(t),a=(0,Mi.unstable_createRoot)(e,{portal:i,supportsUseChildren:!0});return r.current=a,()=>{a.unmount(),i.remove(),r.current=null}}),[t]),(0,h.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(Ld,{size:"large",className:yd.container},p().createElement(Id,null,p().createElement(Wd,{slot:"pageTitle",pageTitle:i||cd(od.UNTITLED)}),p().createElement("div",{className:yd.main,ref:n,"data-root-id":t})))}Td=Hd,({e:[Nd,Md],c:[zd,_d]}=(0,d.A)(Td,[Od("ai-portal.preview-container",{shadowOptions:!1})],[[Dd({attribute:!1}),1,"source"]],0,void 0,m.ReactNextElement)),_d();const Vd="bricks/ai-portal/action-buttons";g.i18n.getFixedT(null,Vd);var Gd,jd=i(11816);let Kd,qd,$d,Jd,Xd,Yd,Qd,Zd,eh;(0,g.initializeI18n)(Vd,{en:{},zh:{}});const th=(0,m.wrapBrick)("eo-button"),{defineElement:ih,property:ah,event:nh}=(0,u.createDecorators)();let rh;var sh=new WeakMap,oh=new WeakMap,lh=new WeakMap,ch=new WeakSet,dh=new WeakMap;class hh extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,ch),(0,r.A)(this,sh,qd(this)),(0,r.A)(this,oh,($d(this),Jd(this))),(0,r.A)(this,lh,(Xd(this),Yd(this))),(0,r.A)(this,dh,(eh(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)(ch,this,Qd).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)(sh,this)}set items(e){(0,l.A)(sh,this,e)}get multiple(){return(0,c.A)(oh,this)}set multiple(e){(0,l.A)(oh,this,e)}render(){return p().createElement(ph,{items:this.items,multiple:this.multiple,onActionClick:(0,c.A)(dh,this)})}}function ph(e){let{items:t,onActionClick:i}=e;const a=(0,h.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(th,(0,Gt.A)({key:t,className:"action"+(r?" active":""),themeVariant:"elevo",type:"neutral"},s,{onClick:()=>i(e)}),n)})))}Gd=hh,({e:[qd,$d,Jd,Xd,Yd,Qd,Zd,eh],c:[rh,Kd]}=(0,d.A)(Gd,[ih("ai-portal.action-buttons",{styleTexts:[jd.A]})],[[ah({attribute:!1}),1,"items"],[ah({attribute:!1}),1,"multiple"],[nh({type:"action.click"}),1,"actionClick",e=>(0,c.A)(lh,e),(e,t)=>(0,l.A)(lh,e,t)]],0,(e=>dh.has((0,s.A)(e))),m.ReactNextElement)),Kd();let uh=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 mh="bricks/ai-portal/goal-card-list",gh={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:"新对话"}},bh=g.i18n.getFixedT(null,mh);var Ah=i(46342),kh=i(10335),Eh=i(2373);(0,g.initializeI18n)(mh,gh);const xh=(0,m.wrapBrick)("eo-icon"),wh=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),vh=(0,m.wrapBrick)("eo-easyops-avatar"),fh=(0,m.wrapBrick)("eo-button"),yh={ready:"uncheck-status",working:"active-status",completed:"check-status"},Th=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:bh(uh.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:bh(uh.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:bh(uh.COMPLETED_STATUS)}];function Sh(e){let{goalItem:t,cardStyle:i,onStatusChange:a,onTitleChange:n,onClick:r,onNewChat:s,isActive:o}=e;const{state:l,id:c,title:d,conversations:u,owner:m}=t,g=(0,h.useRef)(!1),b=(0,h.useCallback)((()=>{g.current=!0}),[]),A=(0,h.useCallback)((()=>{g.current=!1}),[]),[k,E]=(0,h.useState)(!1),x=(0,h.useCallback)((()=>{E(!0)}),[]),w=(0,h.useCallback)((e=>{E(!1);const t=e.currentTarget.textContent;null!==t&&d!==t&&(null==n||n(t))}),[d,n]),v=(0,h.useCallback)((e=>{g.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(wh,{actions:Th,onActionClick:e=>{return t=e.detail,void(null==a||a(t.key));var t}},p().createElement(xh,{className:"icon",lib:"easyops",category:"colored-common",icon:yh[l],onClick:e=>e.stopPropagation()})),p().createElement("span",{className:"serial-number"},"#",c),p().createElement("span",{className:"title",onClick:e=>e.stopPropagation(),onFocus:x,onBlur:w,onKeyDown:v,onCompositionStart:b,onCompositionEnd:A,contentEditable:(0,Eh.U)(!0),suppressContentEditableWarning:!0},d)),p().createElement("div",{className:"end"},p().createElement("div",{className:"info"},p().createElement("div",{className:"message"},p().createElement(xh,{lib:"easyops",category:"common",icon:"message"}),p().createElement("span",{className:"count"},u||0)),p().createElement(vh,{nameOrInstanceId:null==m?void 0:m.instanceId,size:"small"})),p().createElement("div",{className:"operation",onClick:e=>e.stopPropagation()},p().createElement(fh,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:s},bh(uh.NEW_CHAT)))))}var Ch;let _h,Nh,Mh,Rh,Wh,Ih,Lh,Oh,Dh,zh,Ph,Uh,Hh,Bh,Fh,Vh,Gh,jh,Kh,qh,$h,Jh,Xh;(0,g.initializeI18n)(mh,gh);const{defineElement:Yh,property:Qh,event:Zh}=(0,u.createDecorators)(),ep=(0,m.wrapBrick)("eo-icon");let tp;var ip=new WeakMap,ap=new WeakMap,np=new WeakMap,rp=new WeakMap,sp=new WeakSet,op=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,hp=new WeakMap,pp=new WeakMap,up=new WeakMap;class mp extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,sp),(0,r.A)(this,ip,Nh(this)),(0,r.A)(this,ap,(Mh(this),Rh(this))),(0,r.A)(this,np,(Wh(this),Ih(this))),(0,r.A)(this,rp,(Lh(this),Oh(this))),(0,r.A)(this,op,(Ph(this),e=>{(0,o.A)(sp,this,Dh).emit(e)})),(0,r.A)(this,lp,Uh(this)),(0,r.A)(this,cp,(Fh(this),e=>{(0,o.A)(sp,this,Hh).emit(e)})),(0,r.A)(this,dp,Vh(this)),(0,r.A)(this,hp,(Kh(this),e=>{(0,o.A)(sp,this,Gh).emit(e)})),(0,r.A)(this,pp,qh(this)),(0,r.A)(this,up,(Xh(this),e=>{(0,o.A)(sp,this,$h).emit(e)}))}get goalList(){return(0,c.A)(ip,this)}set goalList(e){(0,l.A)(ip,this,e)}get cardStyle(){return(0,c.A)(ap,this)}set cardStyle(e){(0,l.A)(ap,this,e)}get activeKey(){return(0,c.A)(np,this)}set activeKey(e){(0,l.A)(np,this,e)}render(){return p().createElement(gp,{goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,c.A)(hp,this),onStatusChange:(0,c.A)(cp,this),onItemClick:(0,c.A)(op,this),onNewChat:(0,c.A)(up,this),activeKey:this.activeKey})}}function gp(e){let{goalList:t,cardStyle:i,onTitleChange:a,onStatusChange:n,onItemClick:r,onNewChat:s,activeKey:o}=e;const[l,c]=(0,h.useState)(t);(0,h.useEffect)((()=>{c(t)}),[t]);const d=(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(Sh,{key:e.instanceId,isActive:o===e.instanceId,goalItem:e,cardStyle:i,onTitleChange:t=>((e,t)=>{d(t,"title",e,a)})(t,e),onStatusChange:t=>((e,t)=>{d(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(ep,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Ch=mp,({e:[Nh,Mh,Rh,Wh,Ih,Lh,Oh,Dh,zh,Ph,Uh,Hh,Bh,Fh,Vh,Gh,jh,Kh,qh,$h,Jh,Xh],c:[tp,_h]}=(0,d.A)(Ch,[Yh("ai-portal.goal-card-list",{styleTexts:[kh.A,Ah.A]})],[[Qh({attribute:!1}),1,"goalList"],[Qh({attribute:!1}),1,"cardStyle"],[Qh(),1,"activeKey"],[Zh({type:"item.click"}),1,"itemClickEvent",e=>(0,c.A)(rp,e),(e,t)=>(0,l.A)(rp,e,t)],[Zh({type:"item.status.change"}),1,"itemStatusChangeEvent",e=>(0,c.A)(lp,e),(e,t)=>(0,l.A)(lp,e,t)],[Zh({type:"item.title.change"}),1,"itemTitleChangeEvent",e=>(0,c.A)(dp,e),(e,t)=>(0,l.A)(dp,e,t)],[Zh({type:"item.new.chat"}),1,"itemNewChatEvent",e=>(0,c.A)(pp,e),(e,t)=>(0,l.A)(pp,e,t)]],0,(e=>up.has((0,s.A)(e))),m.ReactNextElement)),_h();let bp=function(e){return e.PROJECT_OVERALL="PROJECT_OVERALL",e}({});const Ap="bricks/ai-portal/project-conversations",kp=g.i18n.getFixedT(null,Ap);var Ep,xp=i(79286);let wp,vp,fp,yp,Tp,Sp,Cp,_p,Np,Mp,Rp,Wp,Ip,Lp,Op,Dp,zp;(0,g.initializeI18n)(Ap,{en:{PROJECT_OVERALL:"Project overall"},zh:{PROJECT_OVERALL:"项目整体"}});const Pp=(0,m.wrapBrick)("eo-link"),Up=(0,m.wrapBrick)("eo-icon"),Hp=(0,m.wrapBrick)("eo-easyops-avatar"),Bp=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Fp,property:Vp,event:Gp}=(0,u.createDecorators)();let jp;var Kp=new WeakMap,qp=new WeakMap,$p=new WeakMap,Jp=new WeakMap,Xp=new WeakMap,Yp=new WeakSet,Qp=new WeakMap,Zp=new WeakMap,eu=new WeakMap;class tu extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Yp),(0,r.A)(this,Kp,vp(this)),(0,r.A)(this,qp,(fp(this),yp(this))),(0,r.A)(this,$p,(Tp(this),Sp(this))),(0,r.A)(this,Jp,(Cp(this),_p(this))),(0,r.A)(this,Xp,(Np(this),Mp(this))),(0,r.A)(this,Qp,(Ip(this),e=>{(0,o.A)(Yp,this,Rp).emit(e)})),(0,r.A)(this,Zp,Lp(this)),(0,r.A)(this,eu,(zp(this),e=>{(0,o.A)(Yp,this,Op).emit(e)}))}get list(){return(0,c.A)(Kp,this)}set list(e){(0,l.A)(Kp,this,e)}get urlTemplate(){return(0,c.A)(qp,this)}set urlTemplate(e){(0,l.A)(qp,this,e)}get actions(){return(0,c.A)($p,this)}set actions(e){(0,l.A)($p,this,e)}get goals(){return(0,c.A)(Jp,this)}set goals(e){(0,l.A)(Jp,this,e)}render(){return p().createElement(iu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,goals:this.goals,onGoalClick:(0,c.A)(Qp,this),onActionClick:(0,c.A)(eu,this)})}}function iu(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(au,{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 au(e){var t;let{conversation:i,urlTemplate:a,actions:n,goals:r,onGoalClick:s,onActionClick:o}=e;const l=(0,h.useRef)(null);(0,h.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,d]=(0,h.useState)(!1);return p().createElement(Pp,{className:Wi()("link",{"actions-active":c}),url:(0,Hn.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:kp(bp.PROJECT_OVERALL)),p().createElement(Hp,{className:"avatar",size:"small",nameOrInstanceId:i.username}),p().createElement("div",{className:"operations"},p().createElement(Bp,{className:"actions",actions:n,onActionClick:e=>{o({action:e.detail,item:i})},onVisibleChange:e=>{d(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))))}Ep=tu,({e:[vp,fp,yp,Tp,Sp,Cp,_p,Np,Mp,Rp,Wp,Ip,Lp,Op,Dp,zp],c:[jp,wp]}=(0,d.A)(Ep,[Fp("ai-portal.project-conversations",{styleTexts:[xp.A]})],[[Vp({attribute:!1}),1,"list"],[Vp(),1,"urlTemplate"],[Vp({attribute:!1}),1,"actions"],[Vp({attribute:!1}),1,"goals"],[Gp({type:"goal.click"}),1,"goalClick",e=>(0,c.A)(Xp,e),(e,t)=>(0,l.A)(Xp,e,t)],[Gp({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Zp,e),(e,t)=>(0,l.A)(Zp,e,t)]],0,(e=>eu.has((0,s.A)(e))),m.ReactNextElement)),wp();var nu,ru=i(23677);let su,ou,lu,cu,du,hu,pu,uu,mu,gu,bu,Au,ku,Eu,xu;const wu=(0,m.wrapBrick)("eo-link"),vu=(0,m.wrapBrick)("eo-icon"),fu=(0,m.wrapBrick)("eo-easyops-avatar"),yu=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Tu,property:Su,event:Cu}=(0,u.createDecorators)();let _u;var Nu=new WeakMap,Mu=new WeakMap,Ru=new WeakMap,Wu=new WeakMap,Iu=new WeakSet,Lu=new WeakMap,Ou=new WeakMap,Du=new WeakMap;class zu extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Iu),(0,r.A)(this,Nu,ou(this)),(0,r.A)(this,Mu,(lu(this),cu(this))),(0,r.A)(this,Ru,(du(this),hu(this))),(0,r.A)(this,Wu,(pu(this),uu(this))),(0,r.A)(this,Lu,(bu(this),Au(this))),(0,r.A)(this,Ou,(xu(this),e=>{(0,o.A)(Iu,this,mu).emit(e)})),(0,r.A)(this,Du,(e=>{(0,o.A)(Iu,this,ku).emit(e)}))}get list(){return(0,c.A)(Nu,this)}set list(e){(0,l.A)(Nu,this,e)}get urlTemplate(){return(0,c.A)(Mu,this)}set urlTemplate(e){(0,l.A)(Mu,this,e)}get actions(){return(0,c.A)(Ru,this)}set actions(e){(0,l.A)(Ru,this,e)}render(){return p().createElement(Pu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,onActionClick:(0,c.A)(Ou,this),onItemClick:(0,c.A)(Du,this)})}}function Pu(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,h.useState)(!1);return p().createElement(wu,{className:Wi()("link",{"actions-active":s}),url:(0,Hn.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(yu,{className:"actions",actions:a,onActionClick:e=>{n({action:e.detail,item:t})},onVisibleChange:e=>{o(e.detail)}}),p().createElement(fu,{className:"avatar",size:"small",nameOrInstanceId:t.user})))}nu=zu,({e:[ou,lu,cu,du,hu,pu,uu,mu,gu,bu,Au,ku,Eu,xu],c:[_u,su]}=(0,d.A)(nu,[Tu("ai-portal.project-knowledges",{styleTexts:[ru.A]})],[[Su({attribute:!1}),1,"list"],[Su(),1,"urlTemplate"],[Su({attribute:!1}),1,"actions"],[Cu({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Wu,e),(e,t)=>(0,l.A)(Wu,e,t)],[Cu({type:"item.click"}),1,"itemClick",e=>(0,c.A)(Lu,e),(e,t)=>(0,l.A)(Lu,e,t)]],0,(e=>Du.has((0,s.A)(e))),m.ReactNextElement)),su();let Hu=function(e){return e.STARTED_A_CHAT="STARTED_A_CHAT",e.CREATED_THIS_GOAL="CREATED_THIS_GOAL",e.CHANGED_THE_GOAL_TITLE="CHANGED_THE_GOAL_TITLE",e.CHANGED_THE_GOAL_DESCRIPTION="CHANGED_THE_GOAL_DESCRIPTION",e.CHANGED_THE_GOAL="CHANGED_THE_GOAL",e.DELETED_THIS_GOAL="DELETED_THIS_GOAL",e.DECOMPOSED_THIS_GOAL="DECOMPOSED_THIS_GOAL",e.SET_OWNER="SET_OWNER",e.REMOVED_GOAL_PARTICIPANTS="REMOVED_GOAL_PARTICIPANTS",e.ADDED_GOAL_PARTICIPANTS="ADDED_GOAL_PARTICIPANTS",e.COMMENTED="COMMENTED",e.COMMA="COMMA",e.SEMICOLON="SEMICOLON",e}({});const Bu="bricks/ai-portal/activity-timeline",Fu=g.i18n.getFixedT(null,Bu);var Vu,Gu=i(14763);let ju,Ku,qu,$u,Ju;(0,g.initializeI18n)(Bu,{en:{STARTED_A_CHAT:"started a chat",CREATED_THIS_GOAL:"created this goal",CHANGED_THE_GOAL_TITLE:'changed the goal title to "{{ title }}"',CHANGED_THE_GOAL_DESCRIPTION:'changed the goal description to "{{ description }}"',CHANGED_THE_GOAL:"changed the goal",DELETED_THIS_GOAL:"deleted this goal",DECOMPOSED_THIS_GOAL:"decomposed this goal to {{ count }} sub-goal: ",DECOMPOSED_THIS_GOAL_plural:"decomposed this goal to {{ count }} sub-goals: ",SET_OWNER:"set {{ user }} as the owner",REMOVED_GOAL_PARTICIPANTS:"removed a goal participant: ",REMOVED_GOAL_PARTICIPANTS_plural:"removed {{ count }} goal participants: ",ADDED_GOAL_PARTICIPANTS:"added a goal participant: ",ADDED_GOAL_PARTICIPANTS_plural:"added {{ count }} goal participants: ",COMMENTED:"commented",COMMA:", ",SEMICOLON:"; "},zh:{STARTED_A_CHAT:"发起了对话",CREATED_THIS_GOAL:"创建了此目标",CHANGED_THE_GOAL_TITLE:"修改目标标题为 “{{ title }}”",CHANGED_THE_GOAL_DESCRIPTION:"修改目标描述为 “{{ description }}”",CHANGED_THE_GOAL:"修改了此目标",DELETED_THIS_GOAL:"删除了此目标",DECOMPOSED_THIS_GOAL:"将此目标分解为 {{ count }} 个子目标:",DECOMPOSED_THIS_GOAL_plural:"将此目标分解为 {{ count }} 个子目标:",SET_OWNER:"设定负责人为 {{ user }}",REMOVED_GOAL_PARTICIPANTS:"移除了目标参与成员:",ADDED_GOAL_PARTICIPANTS:"添加了目标参与成员:",COMMENTED:"评论",COMMA:",",SEMICOLON:";"}});const Xu=(0,m.wrapBrick)("eo-link"),Yu=(0,m.wrapBrick)("eo-icon"),Qu=(0,m.wrapBrick)("eo-easyops-avatar"),{defineElement:Zu,property:em}=(0,u.createDecorators)();let tm;var im=new WeakMap,am=new WeakMap;class nm extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,im,Ku(this)),(0,r.A)(this,am,(qu(this),$u(this))),Ju(this)}get list(){return(0,c.A)(im,this)}set list(e){(0,l.A)(im,this,e)}get chatUrlTemplate(){return(0,c.A)(am,this)}set chatUrlTemplate(e){(0,l.A)(am,this,e)}render(){return p().createElement(rm,{list:this.list,chatUrlTemplate:this.chatUrlTemplate})}}function rm(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(Qu,{className:"avatar",nameOrInstanceId:e.user_id,size:"xs"}),p().createElement("span",{className:"action"},e.user_name," ","start_conversation"===e.action_type?p().createElement(p().Fragment,null,p().createElement("span",null,Fu(Hu.STARTED_A_CHAT)),p().createElement(Xu,{className:"conversation",url:(0,Hn.Q)(i,e),target:"_blank"},null===(a=e.metadata)||void 0===a?void 0:a.conversation_title),p().createElement(Yu,{className:"external-link-icon",lib:"lucide",icon:"external-link"})):"create_goal"===e.action_type?Fu(Hu.CREATED_THIS_GOAL):"edit_goal"===e.action_type?e.metadata.after.title?Fu(Hu.CHANGED_THE_GOAL_TITLE,e.metadata.after):e.metadata.after.description?Fu(Hu.CHANGED_THE_GOAL_DESCRIPTION,e.metadata.after):Fu(Hu.CHANGED_THE_GOAL):"delete_goal"===e.action_type?Fu(Hu.DELETED_THIS_GOAL):"decompose_goals"===e.action_type?`${Fu(Hu.DECOMPOSED_THIS_GOAL,{count:e.metadata.sub_goals_count})}${e.metadata.sub_goals.map((e=>e.title)).join(Fu(Hu.COMMA))}`:"alter_owner"===e.action_type?Fu(Hu.SET_OWNER,{user:e.metadata.after.owner.user_name}):"alter_user"===e.action_type?function(e){const t=[],i=[],a=new Set(e.metadata.before.users.map((e=>e.user_name)));for(const t of e.metadata.after.users)a.has(t.user_name)||i.push(t.user_name);const n=new Set(e.metadata.after.users.map((e=>e.user_name)));for(const i of e.metadata.before.users)n.has(i.user_name)||t.push(i.user_name);const r=[];return t.length>0&&r.push(Fu(Hu.REMOVED_GOAL_PARTICIPANTS,{count:t.length})+t.join(Fu(Hu.COMMA))),i.length>0&&r.push(Fu(Hu.ADDED_GOAL_PARTICIPANTS,{count:i.length})+i.join(Fu(Hu.COMMA))),r.join(Fu(Hu.SEMICOLON))}(e):"add_comment"===e.action_type?Fu(Hu.COMMENTED):e.action_type),p().createElement("span",{className:"time",title:(0,ul.P)(e.time,ul.c.full)},(0,ul.P)(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(Yu,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Vu=nm,({e:[Ku,qu,$u,Ju],c:[tm,ju]}=(0,d.A)(Vu,[Zu("ai-portal.activity-timeline",{styleTexts:[Gu.A]})],[[em({attribute:!1}),1,"list"],[em(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),ju();var sm=i(99126);let om=function(e){return e.TERMINATE_THE_TASK="TERMINATE_THE_TASK",e}({});const lm="bricks/ai-portal/chat-input",cm=g.i18n.getFixedT(null,lm);var dm,hm=i(84479);let pm,um,mm,gm,bm,Am,km,Em,xm,wm,vm,fm,ym,Tm,Sm,Cm,_m,Nm,Mm;(0,g.initializeI18n)(lm,{en:{TERMINATE_THE_TASK:"Terminate the task"},zh:{TERMINATE_THE_TASK:"终止任务"}});const Rm={lib:"antd",icon:"loading-3-quarters",spinning:!0},Wm={lib:"fa",prefix:"far",icon:"circle-stop"},Im=(0,m.wrapBrick)("eo-icon"),Lm=(0,m.wrapBrick)("ai-portal.icon-button"),{defineElement:Om,property:Dm,event:zm}=(0,u.createDecorators)();let Pm;var Um=new WeakMap,Hm=new WeakMap,Bm=new WeakMap,Fm=new WeakMap,Vm=new WeakMap,Gm=new WeakMap,jm=new WeakSet,Km=new WeakMap,qm=new WeakMap,$m=new WeakMap;class Jm extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,jm),(0,r.A)(this,Um,um(this)),(0,r.A)(this,Hm,(mm(this),gm(this))),(0,r.A)(this,Bm,(bm(this),Am(this))),(0,r.A)(this,Fm,(km(this),Em(this))),(0,r.A)(this,Vm,(xm(this),wm(this))),(0,r.A)(this,Gm,(vm(this),fm(this))),(0,r.A)(this,Km,(Sm(this),e=>{(0,o.A)(jm,this,ym).emit(e)})),(0,r.A)(this,qm,Cm(this)),(0,r.A)(this,$m,(Mm(this),()=>{(0,o.A)(jm,this,_m).emit()}))}get placeholder(){return(0,c.A)(Um,this)}set placeholder(e){(0,l.A)(Um,this,e)}get autoFocus(){return(0,c.A)(Hm,this)}set autoFocus(e){(0,l.A)(Hm,this,e)}get submitDisabled(){return(0,c.A)(Bm,this)}set submitDisabled(e){(0,l.A)(Bm,this,e)}get supportsTerminate(){return(0,c.A)(Fm,this)}set supportsTerminate(e){(0,l.A)(Fm,this,e)}get terminating(){return(0,c.A)(Vm,this)}set terminating(e){(0,l.A)(Vm,this,e)}render(){return p().createElement(Xm,{placeholder:this.placeholder,autoFocus:this.autoFocus,submitDisabled:this.submitDisabled,supportsTerminate:this.supportsTerminate,terminating:this.terminating,onSubmit:(0,c.A)(Km,this),onTerminate:(0,c.A)($m,this)})}}function Xm(e){let{placeholder:t,autoFocus:i,submitDisabled:a,supportsTerminate:n,terminating:r,onSubmit:s,onTerminate:o}=e;const l=(0,h.useRef)(null),c=(0,h.useRef)(null),[d,u]=(0,h.useState)(""),m=(0,h.useRef)(""),[g,b]=(0,h.useState)(!1);(0,h.useEffect)((()=>{var e;i&&!a&&(null===(e=c.current)||void 0===e||e.focus())}),[i,a]);const A=(0,h.useCallback)((e=>{!a&&e&&(s(e),m.current="",u(""))}),[a,s]),k=(0,h.useCallback)((e=>{A(e.currentTarget.value)}),[A]),E=(0,h.useCallback)((e=>{m.current=e.target.value,u(e.target.value)}),[]),x=(0,h.useCallback)((()=>{A(m.current)}),[A]);(0,h.useEffect)((()=>{const e=null==l?void 0:l.current;if(!e)return;const t=new sm.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&&b(!0)}));return t.observe(e),()=>{t.disconnect()}}),[]),(0,h.useEffect)((()=>{d||b(!1)}),[d]);const w=(0,h.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:w},p().createElement("div",{className:Wi()("box",{wrap:g})},p().createElement("div",{className:"input",ref:l},p().createElement(it.e,{containerRef:l,ref:c,value:d,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:Rm,disabled:!0}):p().createElement(Lm,{icon:Wm,tooltip:cm(om.TERMINATE_THE_TASK),onClick:o})):p().createElement("button",{className:"btn-send",disabled:a||!d,onClick:x},p().createElement(Im,{lib:"fa",icon:"arrow-up"})))))}dm=Jm,({e:[um,mm,gm,bm,Am,km,Em,xm,wm,vm,fm,ym,Tm,Sm,Cm,_m,Nm,Mm],c:[Pm,pm]}=(0,d.A)(dm,[Om("ai-portal.chat-input",{styleTexts:[hm.A],shadowOptions:{delegatesFocus:!0}})],[[Dm(),1,"placeholder"],[Dm({type:Boolean}),1,"autoFocus"],[Dm({type:Boolean}),1,"submitDisabled"],[Dm({type:Boolean}),1,"supportsTerminate"],[Dm({type:Boolean}),1,"terminating"],[zm({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Gm,e),(e,t)=>(0,l.A)(Gm,e,t)],[zm({type:"terminate"}),1,"terminate",e=>(0,c.A)(qm,e),(e,t)=>(0,l.A)(qm,e,t)]],0,(e=>$m.has((0,s.A)(e))),m.ReactNextElement)),pm();const Ym=i.p+"images/e47076cc.png";var Qm,Zm=i(31653);let eg;const{defineElement:tg}=(0,u.createDecorators)();let ig;class ag extends m.ReactNextElement{render(){return p().createElement("img",{className:"logo",alt:"Elevo",src:Ym,width:95,height:28})}}Qm=ag,[ig,eg]=(0,d.A)(Qm,[tg("ai-portal.elevo-logo",{styleTexts:[Zm.A]})],[],0,void 0,m.ReactNextElement).c,eg()},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),d=s()(n()),h=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${h});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=d.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;border:1px solid transparent}.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),d=s()(n()),h=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${h}) 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=d.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),d=s()(n()),h=l()(c);d.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${h});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=d.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),d=s()(n()),h=l()(c);d.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(${h});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=d.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),d=s()(n()),h=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${h});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=d.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),d=s()(n()),h=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${h});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=d.toString()}}]);
|
|
2
|
+
//# sourceMappingURL=2608.bbe2b26a.js.map
|