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