@next-bricks/ai-portal 0.52.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/bricks.json +43 -35
  2. package/dist/chunks/6201.610c66e3.js +2 -0
  3. package/dist/chunks/6201.610c66e3.js.map +1 -0
  4. package/dist/chunks/7713.278cfb8b.js +2 -0
  5. package/dist/chunks/7713.278cfb8b.js.map +1 -0
  6. package/dist/chunks/chat-box.279647b5.js +2 -0
  7. package/dist/chunks/chat-box.279647b5.js.map +1 -0
  8. package/dist/chunks/flow-tabs.222a11ea.js +3 -0
  9. package/dist/chunks/flow-tabs.222a11ea.js.map +1 -0
  10. package/dist/chunks/main.72d51c8f.js +2 -0
  11. package/dist/chunks/{main.4cb00675.js.map → main.72d51c8f.js.map} +1 -1
  12. package/dist/chunks/set-chat-command.367b9c88.js +2 -0
  13. package/dist/chunks/set-chat-command.367b9c88.js.map +1 -0
  14. package/dist/chunks/stage-flow.1ece0479.js +2 -0
  15. package/dist/chunks/stage-flow.1ece0479.js.map +1 -0
  16. package/dist/examples.json +19 -16
  17. package/dist/images/60cd488d.svg +6 -0
  18. package/dist/images/ecaecc18.svg +6 -0
  19. package/dist/index.6e1371ec.js +2 -0
  20. package/dist/index.6e1371ec.js.map +1 -0
  21. package/dist/manifest.json +384 -298
  22. package/dist/types.json +1507 -736
  23. package/dist-types/bootstrap.d.ts +2 -0
  24. package/dist-types/chat-box/index.d.ts +3 -1
  25. package/dist-types/data-providers/set-chat-command.d.ts +7 -0
  26. package/dist-types/data-providers/set-chat-command.spec.d.ts +1 -0
  27. package/dist-types/shared/interfaces.d.ts +9 -0
  28. package/dist-types/stage-flow/i18n.d.ts +23 -0
  29. package/dist-types/stage-flow/index.d.ts +39 -0
  30. package/dist-types/stage-flow/index.spec.d.ts +1 -0
  31. package/docs/stage-flow.md +32 -0
  32. package/package.json +2 -2
  33. package/dist/chunks/6201.58eeb93e.js +0 -2
  34. package/dist/chunks/6201.58eeb93e.js.map +0 -1
  35. package/dist/chunks/943.7073ef6f.js +0 -2
  36. package/dist/chunks/943.7073ef6f.js.map +0 -1
  37. package/dist/chunks/chat-box.59ab1b62.js +0 -2
  38. package/dist/chunks/chat-box.59ab1b62.js.map +0 -1
  39. package/dist/chunks/flow-tabs.ba72493e.js +0 -3
  40. package/dist/chunks/flow-tabs.ba72493e.js.map +0 -1
  41. package/dist/chunks/main.4cb00675.js +0 -2
  42. package/dist/index.fede9e49.js +0 -2
  43. package/dist/index.fede9e49.js.map +0 -1
  44. /package/dist/chunks/{flow-tabs.ba72493e.js.LICENSE.txt → flow-tabs.222a11ea.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[943],{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()},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:3px}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);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{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.action::part(button){height:28px;font-size:13px;padding:5px 10px}.action.active::part(button){color:var(--elevo-color-brand);background-color:rgba(var(--elevo-color-brand-rgb-channel),0.04);border-color:#c9d7ff}.icon{font-size:16px;margin-right:4px}.remove{padding:1px;font-size:14px;margin-left:10px}",""]);const o=r.toString()},14763:(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;color:#262626}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.activity{position:relative;padding-left:27px}.activity + .activity{margin-top:20px}.main{display:flex;align-items:flex-start}.action{flex:1;min-width:0;display:flex;align-items:center;margin-left:6px;word-break:break-word}.time{color:#8c8c8c;margin-left:12px}.action,\n.time{padding:1px 0}.guide-line{position:absolute;left:8px;top:0;bottom:-20px;width:0;background-color:#d8d8d8}.guide-line::before{content:"";position:absolute;top:0;bottom:0;left:3.5px;width:1px;background-color:#d8d8d8}.guide-line::after{content:"";position:absolute;top:8px;left:0;width:8px;height:8px;border-radius:8px;background-color:#d8d8d8}.activity:first-child .guide-line::before{top:12px}.activity:last-child .guide-line::before{height:12px;bottom:auto}.activity:first-child:last-child .guide-line::before{height:0}.comment{position:relative;font-size:13px;color:#595959;background-color:#f3f3f3;border-radius:8px;padding:8px 12px;margin-top:10px}.comment::before{content:"";position:absolute;top:-6px;left:36px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #f3f3f3}.conversation{margin:0 7px 0 10px}.conversation::part(link){background:#f9f0ff;border-radius:3px;font-weight:500;font-size:12px;color:#aa64f5;display:flex;align-items:center;height:24px;padding:0 8px}.external-link-icon{color:#8c8c8c}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}',""]);const o=r.toString()},18338:(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}.card{display:block}.card::part(link){display:flex;flex-direction:column;gap:12px;background:rgba(255,255,255,0.6);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.04);border-radius:12px;border:1px solid #fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:16px;color:#262626}.card:not(.clickable)::part(link){cursor:auto}.card::part(link):hover{background:#fff}.header,\n.body,\n.footer{width:100%}.header{display:flex;gap:12px}.heading{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.avatar{width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,0.15);font-size:24px;display:flex;align-items:center;justify-content:center}.title{font-weight:500;font-size:16px;color:#262626;line-height:22px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions{margin:-8px -8px 0 0}.body{font-size:12px;color:rgba(0,0,0,0.45);line-height:17px;height:51px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.footer{display:flex;align-items:center;justify-content:flex-end;gap:8px}",""]);const o=r.toString()},19428:(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;gap:26px}:host([hidden]){display:none}p{color:rgba(0,0,0,0.45);margin:0}",""]);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;flex-wrap:wrap;gap:32px;row-gap:10px;font-size:16px}.tabs a{color:rgba(38,38,38,0.65);cursor:pointer;padding:0 0 4px;display:block;position:relative}.tabs .active a{color:#262626;font-weight:500}.tabs .active a::after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background-color:currentColor;border-radius:2px}',""]);const o=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;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=r.toString()},29511:(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}.container{position:relative}.bg{position:absolute;top:0;left:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header{display:flex;align-items:center;justify-content:space-between}.tabs{list-style:none;padding:0;margin:0;display:flex}.tabs a{display:block;padding:9px 27px;color:rgba(0,0,0,0.55);line-height:20px;cursor:pointer}.tabs .active a{font-weight:500;color:#262626}.body{padding:23px 27px}.toolbar{display:flex;align-items:center;gap:8px}",""]);const o=r.toString()},31653:(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}img{vertical-align:middle}",""]);const o=r.toString()},31748:(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}h2{font-weight:500;margin:0;font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:17px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.list .item{background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px}.heading{display:flex;align-items:center}.icon{font-size:24px;color:#333;margin-right:8px}.title{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.sticky-tabs{margin:0 -24px;padding:0 24px 10px}.non-sticky-tabs{padding:0 0 10px}",""]);const o=r.toString()},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}",""]);const o=r.toString()},45137:(e,t,i)=>{var a,n=i(74635),s=i(70918),r=i(26902),o=i(5536),l=i(86121),c=i(70829),d=i(62740),p=i(18769),h=i.n(p),u=i(90870),m=i(30981),g=(i(34419),i(52616)),b=i(2901),A=i(47706);let f,k,x,v,w,E,y,T,C,S,N,M,_,R,W,I,L,D,O,z,P,H,B,U,F,V,j,G,K,$,q,Y,J,X,Q,Z,ee,te,ie,ae,ne,se,re,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,fe,ke,xe,ve,we,Ee,ye,Te;(0,g.initializeI18n)(b.NS,b.I);const{defineElement:Ce,property:Se,event:Ne,method:Me}=(0,u.createDecorators)(),_e=(0,p.forwardRef)(A.B);let Re;var We=new WeakMap,Ie=new WeakMap,Le=new WeakMap,De=new WeakMap,Oe=new WeakMap,ze=new WeakMap,Pe=new WeakMap,He=new WeakMap,Be=new WeakMap,Ue=new WeakMap,Fe=new WeakMap,Ve=new WeakMap,je=new WeakMap,Ge=new WeakMap,Ke=new WeakMap,$e=new WeakMap,qe=new WeakMap,Ye=new WeakMap,Je=new WeakMap,Xe=new WeakSet,Qe=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,it=new WeakMap,at=new WeakMap,nt=new WeakMap,st=new WeakMap,rt=new WeakMap,ot=new WeakMap,lt=new WeakMap,ct=new WeakMap;class dt extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Xe),(0,s.A)(this,We,(f(this),x(this))),(0,s.A)(this,Ie,(v(this),w(this))),(0,s.A)(this,Le,(E(this),y(this))),(0,s.A)(this,De,(T(this),C(this))),(0,s.A)(this,Oe,(S(this),N(this))),(0,s.A)(this,ze,(M(this),_(this))),(0,s.A)(this,Pe,(R(this),W(this))),(0,s.A)(this,He,(I(this),L(this))),(0,s.A)(this,Be,(D(this),O(this))),(0,s.A)(this,Ue,(z(this),P(this))),(0,s.A)(this,Fe,(H(this),B(this))),(0,s.A)(this,Ve,(U(this),F(this))),(0,s.A)(this,je,(V(this),j(this))),(0,s.A)(this,Ge,(G(this),K(this))),(0,s.A)(this,Ke,($(this),q(this))),(0,s.A)(this,$e,(Y(this),J(this))),(0,s.A)(this,qe,(X(this),Q(this))),(0,s.A)(this,Ye,(Z(this),ee(this))),(0,s.A)(this,Je,(te(this),ie(this))),(0,s.A)(this,Qe,(se(this),()=>{(0,o.A)(Xe,this,ae).emit()})),(0,s.A)(this,Ze,re(this)),(0,s.A)(this,et,(ce(this),()=>{(0,o.A)(Xe,this,oe).emit()})),(0,s.A)(this,tt,de(this)),(0,s.A)(this,it,(ue(this),e=>{(0,o.A)(Xe,this,pe).emit(e)})),(0,s.A)(this,at,me(this)),(0,s.A)(this,nt,(Ae(this),e=>{(0,o.A)(Xe,this,ge).emit(e)})),(0,s.A)(this,st,fe(this)),(0,s.A)(this,rt,(ve(this),()=>{(0,o.A)(Xe,this,ke).emit("chat")})),(0,s.A)(this,ot,we(this)),(0,s.A)(this,lt,(Te(this),e=>{(0,o.A)(Xe,this,Ee).emit(e)})),(0,s.A)(this,ct,(0,p.createRef)())}get conversationId(){return(0,c.A)(We,this)}set conversationId(e){(0,l.A)(We,this,e)}get initialRequest(){return(0,c.A)(Ie,this)}set initialRequest(e){(0,l.A)(Ie,this,e)}get replay(){return(0,c.A)(Le,this)}set replay(e){(0,l.A)(Le,this,e)}get replayDelay(){return(0,c.A)(De,this)}set replayDelay(e){(0,l.A)(De,this,e)}get supports(){return(0,c.A)(Oe,this)}set supports(e){(0,l.A)(Oe,this,e)}get showHiddenJobs(){return(0,c.A)(ze,this)}set showHiddenJobs(e){(0,l.A)(ze,this,e)}get showHumanActions(){return(0,c.A)(Pe,this)}set showHumanActions(e){(0,l.A)(Pe,this,e)}get showFeedback(){return(0,c.A)(He,this)}set showFeedback(e){(0,l.A)(He,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(Be,this)}set showFeedbackAfterFailed(e){(0,l.A)(Be,this,e)}get showFeedbackOnView(){return(0,c.A)(Ue,this)}set showFeedbackOnView(e){(0,l.A)(Ue,this,e)}get showUiSwitch(){return(0,c.A)(Fe,this)}set showUiSwitch(e){(0,l.A)(Fe,this,e)}get hideMermaid(){return(0,c.A)(Ve,this)}set hideMermaid(e){(0,l.A)(Ve,this,e)}get showJsxEditor(){return(0,c.A)(je,this)}set showJsxEditor(e){(0,l.A)(je,this,e)}get previewUrlTemplate(){return(0,c.A)(Ge,this)}set previewUrlTemplate(e){(0,l.A)(Ge,this,e)}get showCases(){return(0,c.A)(Ke,this)}set showCases(e){(0,l.A)(Ke,this,e)}get exampleProjects(){return(0,c.A)($e,this)}set exampleProjects(e){(0,l.A)($e,this,e)}get tryItOutUrl(){return(0,c.A)(qe,this)}set tryItOutUrl(e){(0,l.A)(qe,this,e)}get separateInstructions(){return(0,c.A)(Ye,this)}set separateInstructions(e){(0,l.A)(Ye,this,e)}resumed(){var e,t;null===(e=(0,c.A)(ct,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(ct,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(ct,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(ct,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(_e,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHiddenJobs:this.showHiddenJobs,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showUiSwitch:this.showUiSwitch,showFeedbackOnView:this.showFeedbackOnView,showJsxEditor:this.showJsxEditor,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,separateInstructions:this.separateInstructions,onShare:(0,c.A)(Qe,this),onTerminate:(0,c.A)(et,this),onSubmitFeedback:(0,c.A)(it,this),onSwitchToChat:(0,c.A)(rt,this),onFeedbackOnView:(0,c.A)(nt,this),onDetailChange:(0,c.A)(lt,this),ref:(0,c.A)(ct,this)})}}a=dt,({e:[x,v,w,E,y,T,C,S,N,M,_,R,W,I,L,D,O,z,P,H,B,U,F,V,j,G,K,$,q,Y,J,X,Q,Z,ee,te,ie,ae,ne,se,re,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,fe,ke,xe,ve,we,Ee,ye,Te,f],c:[Re,k]}=(0,d.A)(a,[Ce("ai-portal.cruise-canvas",{shadowOptions:!1})],[[Se(),1,"conversationId"],[Se({attribute:!1,render:!1}),1,"initialRequest"],[Se({type:Boolean,render:!1}),1,"replay"],[Se({type:Number,render:!1}),1,"replayDelay"],[Se({attribute:!1}),1,"supports"],[Se({type:Boolean}),1,"showHiddenJobs"],[Se({type:Boolean}),1,"showHumanActions"],[Se({type:Boolean}),1,"showFeedback"],[Se({type:Boolean}),1,"showFeedbackAfterFailed"],[Se({type:Boolean}),1,"showFeedbackOnView"],[Se({type:Boolean}),1,"showUiSwitch"],[Se({type:Boolean,render:!1}),1,"hideMermaid"],[Se({type:Boolean}),1,"showJsxEditor"],[Se(),1,"previewUrlTemplate"],[Se({attribute:!1}),1,"showCases"],[Se({attribute:!1}),1,"exampleProjects"],[Se(),1,"tryItOutUrl"],[Se({type:Boolean}),1,"separateInstructions"],[Ne({type:"share"}),1,"shareEvent",e=>(0,c.A)(Je,e),(e,t)=>(0,l.A)(Je,e,t)],[Ne({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Ze,e),(e,t)=>(0,l.A)(Ze,e,t)],[Ne({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(tt,e),(e,t)=>(0,l.A)(tt,e,t)],[Ne({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(at,e),(e,t)=>(0,l.A)(at,e,t)],[Ne({type:"ui.switch"}),1,"switch",e=>(0,c.A)(st,e),(e,t)=>(0,l.A)(st,e,t)],[Ne({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(ot,e),(e,t)=>(0,l.A)(ot,e,t)],[Me(),2,"resumed"],[Me(),2,"feedbackSubmitDone"],[Me(),2,"feedbackSubmitFailed"],[Me(),2,"feedbackOnViewDone"]],0,(e=>ct.has((0,r.A)(e))),m.ReactNextElement)),k();var pt=i(24586),ht=i(59435);const ut=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"];function mt(e){const t=window.getComputedStyle(e);return`${ut.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";")};\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n left: 0!important;\n pointer-events: none!important;\n`}let gt,bt;function At(e,t){gt||(gt=document.createElement("div"),gt.setAttribute("tab-index","-1"),gt.setAttribute("aria-hidden","true"),document.body.appendChild(gt)),gt.setAttribute("style",mt(e)),gt.textContent=e.value.slice(0,t);const i=document.createElement("span");i.textContent="​",gt.appendChild(i);const a=i.getBoundingClientRect();return i.remove(),{top:a.top,left:a.left}}function ft(e,t,i){bt||(bt=document.createElement("div"),bt.setAttribute("tab-index","-1"),bt.setAttribute("aria-hidden","true"),document.body.appendChild(bt)),bt.setAttribute("style",mt(e)),bt.textContent=t;const a=document.createElement("span");a.textContent=i,bt.appendChild(a);const n=a.getBoundingClientRect();return a.remove(),n}var kt=i(89575),xt=i(99126);let vt;const wt=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey",Et=p.forwardRef(yt);function yt(e,t){let{autoResize:i,minRows:a,maxRows:n,borderSize:s,paddingSize:r,containerRef:o,value:l,style:c,submitWhen:d,desiredSelectionRef:h,onChange:u,onSubmit:m,onKeyDown:g,onCompositionStart:b,onCompositionEnd:A,...f}=e;const k=null==i||i,[x,v]=(0,p.useState)(null!=l?l:""),w=(0,p.useRef)(null),[E,y]=(0,p.useState)(null);(0,p.useImperativeHandle)(t,(()=>({focus:()=>{const e=w.current;if(e){var t;const i=null===(t=e.value)||void 0===t?void 0:t.length;e.focus(),i&&e.setSelectionRange(i,i)}},element:w.current})),[]);const T=(0,p.useCallback)((()=>{const e=w.current;if(e&&k){const t=function(e,t){const{minRows:i=null,maxRows:a=null,borderSize:n=2,paddingSize:s=8}=null!=t?t:{};let r,o,l;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),vt.setAttribute("style",mt(e)),vt.value=e.value||e.placeholder||"";let c=vt.scrollHeight+n;if(null!==i||null!==a){const e=parseFloat(window.getComputedStyle(vt).getPropertyValue("line-height"));null!==i&&(r=e*i+s+n,c=Math.max(r,c)),null!==a&&(o=e*a+s+n,c<=o&&(l="hidden"),c=Math.min(o,c))}const d={height:c,overflowY:l,resize:"none"};return r&&(d.minHeight=r),o&&(d.maxHeight=o),d}(e,{minRows:a,maxRows:n,borderSize:s,paddingSize:r});(0,ht.flushSync)((()=>{y(t)}))}}),[k,n,a,s,r]);(0,p.useEffect)((()=>{v(null!=l?l:"")}),[l]),(0,p.useEffect)((()=>{T()}),[T,x]);const C=(0,p.useRef)(!1),S=(0,p.useCallback)((e=>{C.current=!0,null==b||b(e)}),[b]),N=(0,p.useCallback)((e=>{C.current=!1,null==A||A(e)}),[A]),M=(0,p.useCallback)((e=>{C.current||!1!==(null==g?void 0:g(e))&&"Enter"===e.key&&("enter-without-shift"===d?!e.shiftKey:"enter-with-mod"===d&&e[wt])&&(e.preventDefault(),e.stopPropagation(),null==m||m(e))}),[g,m,d]);return(0,p.useLayoutEffect)((()=>{const e=null==h?void 0:h.current,t=w.current;if(e&&t){const{start:i,end:a}=e;h.current=null,t.setSelectionRange(i,a)}}),[h,x]),(0,p.useEffect)((()=>{const e=null==o?void 0:o.current;if(!e||!k)return;let t;const i=new xt.A((i=>{for(const a of i)if(a.target===e){const e=a.contentBoxSize?a.contentBoxSize[0]?a.contentBoxSize[0].inlineSize:a.contentBoxSize.inlineSize:a.contentRect.width;if(void 0!==e&&e!==t){const i=!t;t=e,i||requestAnimationFrame(T)}}}));return i.observe(e),()=>{i.disconnect()}}),[k,o,T]),p.createElement("textarea",(0,kt.A)({},f,{ref:w,value:x,style:{...c,...E},onChange:e=>{v(e.target.value),null==u||u(e)},onCompositionStart:S,onCompositionEnd:N,onKeyDown:M}))}let Tt=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const Ct="bricks/ai-portal/chat-box",St={en:{[Tt.ASK_ANY_THING]:"Ask anything",[Tt.COMMON_TASKS]:"Common tasks"},zh:{[Tt.ASK_ANY_THING]:"询问任何问题",[Tt.COMMON_TASKS]:"常用任务"}},Nt=g.i18n.getFixedT(null,Ct);var Mt,_t=i(47008);let Rt,Wt,It,Lt,Dt,Ot,zt,Pt,Ht,Bt,Ut,Ft,Vt,jt,Gt,Kt,$t,qt,Yt,Jt,Xt,Qt,Zt,ei;(0,g.initializeI18n)(Ct,St);const ti=(0,m.wrapBrick)("eo-icon"),ii=(0,m.wrapBrick)("eo-actions",{onActionClick:"action.click",onItemDragEnd:"item.drag.end",onItemDragStart:"item.drag.start"}),{defineElement:ai,property:ni,event:si,method:ri}=(0,u.createDecorators)(),oi=(0,p.forwardRef)(wi);let li;var ci=new WeakMap,di=new WeakMap,pi=new WeakMap,hi=new WeakMap,ui=new WeakMap,mi=new WeakMap,gi=new WeakSet,bi=new WeakMap,Ai=new WeakMap,fi=new WeakMap,ki=new WeakMap,xi=new WeakMap;class vi extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,gi),(0,pt.A)(this,"ref",(Rt(this),(0,p.createRef)())),(0,s.A)(this,ci,It(this)),(0,s.A)(this,di,(Lt(this),Dt(this))),(0,s.A)(this,pi,(Ot(this),zt(this))),(0,s.A)(this,hi,(Pt(this),Ht(this))),(0,s.A)(this,ui,(Bt(this),Ut(this))),(0,s.A)(this,mi,(Ft(this),Vt(this))),(0,s.A)(this,bi,(Kt(this),e=>{(0,o.A)(gi,this,jt).emit(e)})),(0,s.A)(this,Ai,$t(this)),(0,s.A)(this,fi,(Jt(this),e=>{(0,o.A)(gi,this,qt).emit(e)})),(0,s.A)(this,ki,Xt(this)),(0,s.A)(this,xi,(ei(this),e=>{(0,o.A)(gi,this,Qt).emit(e)}))}get disabled(){return(0,c.A)(ci,this)}set disabled(e){(0,l.A)(ci,this,e)}get placeholder(){return(0,c.A)(di,this)}set placeholder(e){(0,l.A)(di,this,e)}get autoFocus(){return(0,c.A)(pi,this)}set autoFocus(e){(0,l.A)(pi,this,e)}get aiEmployees(){return(0,c.A)(hi,this)}set aiEmployees(e){(0,l.A)(hi,this,e)}get commands(){return(0,c.A)(ui,this)}set commands(e){(0,l.A)(ui,this,e)}setValue(e){var t;null===(t=this.ref.current)||void 0===t||t.setValue(e)}getValue(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.getValue()}focusOnInput(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.focusOnInput()}render(){return h().createElement(oi,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,aiEmployees:this.aiEmployees,commands:this.commands,onSubmit:(0,c.A)(bi,this),onEmployeeMention:(0,c.A)(fi,this),onCommandSelect:(0,c.A)(xi,this),ref:this.ref})}}function wi(e,t){let{disabled:i,placeholder:a,autoFocus:n,aiEmployees:s,commands:r,onSubmit:o,onEmployeeMention:l,onCommandSelect:c}=e;const d=(0,p.useRef)(null),u=(0,p.useRef)(null),[m,g]=(0,p.useState)(""),b=(0,p.useRef)(""),[A,f]=(0,p.useState)(null),[k,x]=(0,p.useState)(""),[v,w]=(0,p.useState)(0),[E,y]=(0,p.useState)([0]),[T,C]=(0,p.useState)(null),[S,N]=(0,p.useState)(""),M=(0,p.useRef)(null);(0,p.useEffect)((()=>{const e=window.__elevo_try_it_out;e&&delete window.__elevo_try_it_out,"string"==typeof(null==e?void 0:e.content)&&(b.current=e.content,g(e.content))}),[]),(0,p.useImperativeHandle)(t,(()=>({setValue:e=>{b.current=e,g(e)},getValue:()=>b.current,focusOnInput:()=>{var e;null===(e=u.current)||void 0===e||e.focus()}})));const _=(0,p.useCallback)((e=>{var t;o(e.slice(null!==(t=null==S?void 0:S.length)&&void 0!==t?t:0))}),[null==S?void 0:S.length,o]),R=(0,p.useCallback)((e=>{e.currentTarget.value&&_(e.currentTarget.value)}),[_]),W=(0,p.useCallback)((e=>{const{value:t,selectionStart:i,selectionEnd:a}=e.target;if(b.current=t,g(t),!k&&null!==i&&i===a&&null!=s&&s.length){const a=t.slice(0,i),n=a.lastIndexOf("@");if(n>=0){const t=a.slice(n+1).toLowerCase(),r=s.filter((e=>e.employeeId.toLowerCase().includes(t)||e.name.toLowerCase().includes(t))).slice(0,10);if(r.length>0){const t=At(e.currentTarget,i),a=e.currentTarget.getBoundingClientRect();return f({style:{left:t.left+10+a.left,top:t.top+22+a.top,position:"absolute",zIndex:1},range:{start:n,end:i},actions:r.map((e=>({key:e.employeeId,text:e.name,data:e})))}),void w(0)}}}if(f(null),null!==i&&i===a&&null!=r&&r.length){const a=t.slice(0,i);if(a.startsWith("/")){const t=a.slice(1).toLowerCase(),n=r.filter((e=>e.label.toLowerCase().includes(t))).slice(0,10);if(n.length>0){const t=At(e.currentTarget,i),a=e.currentTarget.getBoundingClientRect();return C({style:{left:t.left+10+a.left,top:t.top+22+a.top,position:"absolute",zIndex:1},range:{start:0,end:i},actions:n.map((e=>({key:e.value,text:e.label,data:e,ancestors:[],items:Ei(e,[])})))}),void y([0])}}}C(null)}),[s,r,k]);(0,p.useEffect)((()=>{k&&!m.includes(k)&&(x(""),l(null))}),[k,l,m]),(0,p.useEffect)((()=>{S&&!m.includes(S)&&(N(""),c(null))}),[S,c,m]);const I=(0,p.useCallback)((()=>{_(b.current)}),[_]);(0,p.useEffect)((()=>{n&&Promise.resolve().then((()=>{var e;null===(e=u.current)||void 0===e||e.focus()}))}),[]);const L=(0,p.useMemo)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.element;if(!k||!t)return"";const i=m.indexOf(k);return i<0?"":m.slice(0,i)}),[k,m]),D=(0,p.useMemo)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.element;if(!k||!t)return null;const i=ft(t,L,k.slice(0,-1));return{left:i.left-1,top:i.top-1,width:i.width+4,height:i.height+4}}),[k,L]),O=(0,p.useMemo)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.element;if(!S||!t)return null;const i=ft(t,"",S.slice(0,-1));return{left:i.left-1,top:i.top-1,width:i.width+4,height:i.height+4}}),[S]),z=(0,p.useCallback)((e=>{var t;const i=`@${e.text} `,a=`${b.current.slice(0,A.range.start)}${i}`,n=`${a}${b.current.slice(A.range.end)}`;b.current=n,M.current={start:a.length,end:a.length},g(n),x(i),f(null),l(e.data),null===(t=u.current)||void 0===t||t.focus()}),[A,l]),P=(0,p.useCallback)((e=>{var t;const i=`/${[...e.ancestors.map((e=>e.label)),e.text].join(": ")} `,a=`${b.current.slice(0,T.range.start)}${i}`,n=`${a}${b.current.slice(T.range.end)}`;b.current=n,M.current={start:a.length,end:a.length},g(n),N(i),C(null),c(e.text),null===(t=u.current)||void 0===t||t.focus()}),[T,c]),H=(0,p.useCallback)((e=>{switch(e.key){case"Escape":if(!A&&!T)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),f(null),C(null),!1;case"ArrowUp":case"ArrowDown":if(!A&&!T)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),A?w((t=>{const i=t+("ArrowUp"===e.key?-1:1),a=A.actions.length;return(a+i)%a})):y((t=>{let i=0,{actions:a}=T;const n=[];for(;i<t.length-1;){const e=a[t[i]];if(!yi(e))break;a=e.items,n.push(t[i]),i+=1}const s=t[i]+("ArrowUp"===e.key?-1:1),r=a.length,o=(r+s)%r;return n.push(o),n})),!1;case"Enter":case"ArrowLeft":case"ArrowRight":if(A){if("Enter"===e.key)return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),z(A.actions[v]),!1}else if(T){if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),"ArrowLeft"===e.key)return E.length>1&&y((e=>e.slice(0,-1))),!1;let t,i=0,{actions:a}=T;for(;i<E.length&&(t=a[E[i]],yi(t));)a=t.items,i+=1;return t&&(yi(t)?y((e=>[...e,0])):"Enter"===e.key&&P(t)),!1}break;case"Delete":case"Backspace":{const t=[{textLength:null==k?void 0:k.length,prefixLength:L.length},{textLength:null==S?void 0:S.length,prefixLength:0}];for(const{textLength:i,prefixLength:a}of t)if(i){let{selectionStart:t,selectionEnd:n}=e.currentTarget;t===n&&("Backspace"===e.key?t-=1:n+=1);const s=a,r=s+i;if(t<r&&n>s){const i=Math.min(t,s),a=Math.max(n,r),o=`${b.current.slice(0,i)}${b.current.slice(a)}`;return b.current=o,M.current={start:i,end:i},g(o),e.preventDefault(),e.stopPropagation(),!1}}break}}}),[v,E,T,null==S?void 0:S.length,z,P,A,L.length,null==k?void 0:k.length]),B=(0,p.useMemo)((()=>{if(!T)return[];let e=T.actions;const t=[];for(let i=0;i<E.length;i+=1){const a=e[E[i]];if(!a)break;if(!yi(a)){t.push(a.key);break}t.push(a.key),e=a.items}return t}),[E,T]);return h().createElement("div",{className:"root"},h().createElement("div",{className:"container",ref:d},h().createElement(Et,{containerRef:d,ref:u,value:m,minRows:58/22,paddingSize:60,autoResize:!0,disabled:i,placeholder:null!=a?a:Nt(Tt.ASK_ANY_THING),submitWhen:"enter-without-shift",desiredSelectionRef:M,onSubmit:R,onChange:W,onKeyDown:H}),h().createElement("div",{className:"actions-bar"},h().createElement("div",null,h().createElement("slot",{name:"actions"})),h().createElement("button",{className:"btn-send",disabled:!m,onClick:I},h().createElement(ti,{lib:"fa",prefix:"fas",icon:"arrow-up"}))),D&&h().createElement("div",{className:"mention-overlay",style:D}),O&&h().createElement("div",{className:"mention-overlay",style:O}),A&&(0,ht.createPortal)(h().createElement(ii,{actions:A.actions,style:A.style,activeKeys:[A.actions[v].key],onActionClick:e=>z(e.detail)}),document.body),T&&(0,ht.createPortal)(h().createElement(ii,{actions:T.actions,style:T.style,activeKeys:B,onActionClick:e=>P(e.detail)}),document.body)))}function Ei(e,t){var i;return null===(i=e.options)||void 0===i?void 0:i.map((i=>{const a=[...t,e];return{key:i.value,text:i.label,data:i,ancestors:a,items:Ei(i,a)}}))}function yi(e){var t;return!(null===(t=e.items)||void 0===t||!t.length)}Mt=vi,({e:[It,Lt,Dt,Ot,zt,Pt,Ht,Bt,Ut,Ft,Vt,jt,Gt,Kt,$t,qt,Yt,Jt,Xt,Qt,Zt,ei,Rt],c:[li,Wt]}=(0,d.A)(Mt,[ai("ai-portal.chat-box",{styleTexts:[_t.A],shadowOptions:{delegatesFocus:!0}})],[[ni({type:Boolean}),1,"disabled"],[ni(),1,"placeholder"],[ni({type:Boolean}),1,"autoFocus"],[ni({attribute:!1}),1,"aiEmployees"],[ni({attribute:!1}),1,"commands"],[si({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(mi,e),(e,t)=>(0,l.A)(mi,e,t)],[si({type:"ai-employee.mention"}),1,"employeeMention",e=>(0,c.A)(Ai,e),(e,t)=>(0,l.A)(Ai,e,t)],[si({type:"command.select"}),1,"commandSelect",e=>(0,c.A)(ki,e),(e,t)=>(0,l.A)(ki,e,t)],[ri(),2,"setValue"],[ri(),2,"getValue"],[ri(),2,"focusOnInput"]],0,(e=>xi.has((0,r.A)(e))),m.ReactNextElement)),Wt();var Ti,Ci=i(82165);let Si,Ni,Mi;const{defineElement:_i,property:Ri}=(0,u.createDecorators)();let Wi;var Ii=new WeakMap;class Li extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Ii,Ni(this)),Mi(this)}get sticky(){return(0,c.A)(Ii,this)}set sticky(e){(0,l.A)(Ii,this,e)}render(){return h().createElement(Di,null)}}function Di(){return h().createElement("slot",null)}Ti=Li,({e:[Ni,Mi],c:[Wi,Si]}=(0,d.A)(Ti,[_i("ai-portal.home-container",{styleTexts:[Ci.A]})],[[Ri({type:Boolean,render:!1}),1,"sticky"]],0,void 0,m.ReactNextElement)),Si();var Oi,zi=i(24);let Pi,Hi,Bi,Ui,Fi,Vi,ji,Gi,Ki,$i,qi,Yi,Ji,Xi,Qi,Zi,ea,ta,ia,aa,na;const sa=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:ra,property:oa}=(0,u.createDecorators)();let la;var ca=new WeakMap,da=new WeakMap,pa=new WeakMap,ha=new WeakMap,ua=new WeakMap,ma=new WeakMap,ga=new WeakMap,ba=new WeakMap,Aa=new WeakMap,fa=new WeakMap;class ka extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,ca,Hi(this)),(0,s.A)(this,da,(Bi(this),Ui(this))),(0,s.A)(this,pa,(Fi(this),Vi(this))),(0,s.A)(this,ha,(ji(this),Gi(this))),(0,s.A)(this,ua,(Ki(this),$i(this))),(0,s.A)(this,ma,(qi(this),Yi(this))),(0,s.A)(this,ga,(Ji(this),Xi(this))),(0,s.A)(this,ba,(Qi(this),Zi(this))),(0,s.A)(this,Aa,(ea(this),ta(this))),(0,s.A)(this,fa,(ia(this),aa(this))),na(this)}get label(){return(0,c.A)(ca,this)}set label(e){(0,l.A)(ca,this,e)}get value(){return(0,c.A)(da,this)}set value(e){(0,l.A)(da,this,e)}get size(){return(0,c.A)(pa,this)}set size(e){(0,l.A)(pa,this,e)}get lineColor(){return(0,c.A)(ha,this)}set lineColor(e){(0,l.A)(ha,this,e)}get showArea(){return(0,c.A)(ua,this)}set showArea(e){(0,l.A)(ua,this,e)}get min(){return(0,c.A)(ma,this)}set min(e){(0,l.A)(ma,this,e)}get max(){return(0,c.A)(ga,this)}set max(e){(0,l.A)(ga,this,e)}get xField(){return(0,c.A)(ba,this)}set xField(e){(0,l.A)(ba,this,e)}get yField(){return(0,c.A)(Aa,this)}set yField(e){(0,l.A)(Aa,this,e)}get data(){return(0,c.A)(fa,this)}set data(e){(0,l.A)(fa,this,e)}render(){return h().createElement(xa,{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 xa(e){let{label:t,value:i,size:a,...n}=e;return"small"===a?h().createElement("div",{className:"container"},h().createElement("div",{className:"label-and-stat"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat"},i)),h().createElement("div",{className:"chart"},h().createElement(sa,(0,kt.A)({},n,{lineWidth:1.5,width:"auto",height:"55"})))):h().createElement("div",{className:"container"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat-and-chart"},h().createElement("div",{className:"chart"},h().createElement(sa,(0,kt.A)({},n,{lineWidth:2,width:"auto",height:"92"}))),h().createElement("div",{className:"stat"},i)))}Oi=ka,({e:[Hi,Bi,Ui,Fi,Vi,ji,Gi,Ki,$i,qi,Yi,Ji,Xi,Qi,Zi,ea,ta,ia,aa,na],c:[la,Pi]}=(0,d.A)(Oi,[ra("ai-portal.stat-with-mini-chart",{styleTexts:[zi.A]})],[[oa(),1,"label"],[oa(),1,"value"],[oa(),1,"size"],[oa(),1,"lineColor"],[oa({type:Boolean}),1,"showArea"],[oa({type:Number}),1,"min"],[oa({type:Number}),1,"max"],[oa(),1,"xField"],[oa(),1,"yField"],[oa({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),Pi();var va,wa=i(30348),Ea=i(53373),ya=i.n(Ea),Ta=i(5813),Ca=i(61408),Sa=i(70579),Na=i(75197),Ma=i(94504);let _a,Ra,Wa,Ia,La,Da,Oa,za,Pa,Ha,Ba,Ua,Fa,Va,ja,Ga,Ka,$a,qa,Ya,Ja,Xa,Qa,Za,en,tn,an,nn,sn,rn,on,ln,cn,dn,pn,hn,un,mn,gn,bn,An,fn;(0,g.initializeI18n)(Ta.NS,Ta.I);const kn={lib:"easyops",icon:"sidebar"},xn=(0,m.wrapBrick)("ai-portal.elevo-logo"),{defineElement:vn,property:wn,event:En,method:yn}=(0,u.createDecorators)(),Tn=(0,p.forwardRef)(Jn);let Cn;var Sn=new WeakMap,Nn=new WeakMap,Mn=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Wn=new WeakMap,In=new WeakMap,Ln=new WeakMap,Dn=new WeakMap,On=new WeakMap,zn=new WeakMap,Pn=new WeakMap,Hn=new WeakMap,Bn=new WeakSet,Un=new WeakMap,Fn=new WeakMap,Vn=new WeakMap,jn=new WeakMap,Gn=new WeakMap,Kn=new WeakMap,$n=new WeakMap,qn=new WeakMap;class Yn extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Bn),(0,s.A)(this,Sn,(_a(this),Wa(this))),(0,s.A)(this,Nn,(Ia(this),La(this))),(0,s.A)(this,Mn,(Da(this),Oa(this))),(0,s.A)(this,_n,(za(this),Pa(this))),(0,s.A)(this,Rn,(Ha(this),Ba(this))),(0,s.A)(this,Wn,(Ua(this),Fa(this))),(0,s.A)(this,In,(Va(this),ja(this))),(0,s.A)(this,Ln,(Ga(this),Ka(this))),(0,s.A)(this,Dn,($a(this),qa(this))),(0,s.A)(this,On,(Ya(this),Ja(this))),(0,s.A)(this,zn,(Xa(this),Qa(this,!0))),(0,s.A)(this,Pn,(Za(this),en(this))),(0,s.A)(this,Hn,(tn(this),an(this))),(0,s.A)(this,Un,(rn(this),()=>{(0,o.A)(Bn,this,nn).emit()})),(0,s.A)(this,Fn,on(this)),(0,s.A)(this,Vn,(dn(this),e=>{(0,o.A)(Bn,this,ln).emit(e)})),(0,s.A)(this,jn,pn(this)),(0,s.A)(this,Gn,(mn(this),e=>{(0,o.A)(Bn,this,hn).emit(e)})),(0,s.A)(this,Kn,gn(this)),(0,s.A)(this,$n,(fn(this),()=>{(0,o.A)(Bn,this,bn).emit()})),(0,s.A)(this,qn,(0,p.createRef)())}get userInstanceId(){return(0,c.A)(Sn,this)}set userInstanceId(e){(0,l.A)(Sn,this,e)}get behavior(){return(0,c.A)(Nn,this)}set behavior(e){(0,l.A)(Nn,this,e)}get logoUrl(){return(0,c.A)(Mn,this)}set logoUrl(e){(0,l.A)(Mn,this,e)}get newChatUrl(){return(0,c.A)(_n,this)}set newChatUrl(e){(0,l.A)(_n,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(Rn,this)}set newChatLinkWhenCollapsed(e){(0,l.A)(Rn,this,e)}get historyUrlTemplate(){return(0,c.A)(Wn,this)}set historyUrlTemplate(e){(0,l.A)(Wn,this,e)}get historyActions(){return(0,c.A)(In,this)}set historyActions(e){(0,l.A)(In,this,e)}get projectUrlTemplate(){return(0,c.A)(Ln,this)}set projectUrlTemplate(e){(0,l.A)(Ln,this,e)}get projectActions(){return(0,c.A)(Dn,this)}set projectActions(e){(0,l.A)(Dn,this,e)}get links(){return(0,c.A)(On,this)}set links(e){(0,l.A)(On,this,e)}get canAddProject(){return(0,c.A)(zn,this)}set canAddProject(e){(0,l.A)(zn,this,e)}get myLinks(){return(0,c.A)(Pn,this)}set myLinks(e){(0,l.A)(Pn,this,e)}pullHistory(e){setTimeout((()=>{var e;null===(e=(0,c.A)(qn,this).current)||void 0===e||e.pull()}),e)}open(){var e;null===(e=(0,c.A)(qn,this).current)||void 0===e||e.open()}close(){var e;null===(e=(0,c.A)(qn,this).current)||void 0===e||e.close()}removeProject(e){var t,i;null===(t=(0,c.A)(qn,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)(qn,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)(qn,this).current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}render(){return h().createElement(Tn,{ref:(0,c.A)(qn,this),userInstanceId:this.userInstanceId,behavior:this.behavior,logoUrl:this.logoUrl,newChatUrl:this.newChatUrl,newChatLinkWhenCollapsed:this.newChatLinkWhenCollapsed,historyUrlTemplate:this.historyUrlTemplate,historyActions:this.historyActions,projectUrlTemplate:this.projectUrlTemplate,projectActions:this.projectActions,links:this.links,canAddProject:this.canAddProject,myLinks:this.myLinks,onLogout:(0,c.A)(Un,this),onActionClick:(0,c.A)(Vn,this),onProjectActionClick:(0,c.A)(Gn,this),onAddProject:(0,c.A)($n,this)})}}function Jn(e,t){let{userInstanceId:i,behavior:a,logoUrl:n,newChatUrl:s,newChatLinkWhenCollapsed:r,historyUrlTemplate:o,historyActions:l,projectUrlTemplate:c,projectActions:d,links:u,canAddProject:m,myLinks:b,onLogout:A,onActionClick:f,onProjectActionClick:k,onAddProject:x}=e;const[v,w]=(0,p.useState)("drawer"===a),E=(0,p.useCallback)((()=>{w(!0)}),[]),y=(0,p.useCallback)((()=>{w(!1)}),[]);(0,p.useEffect)((()=>{"drawer"===a&&w(!0)}),[a]);const T=(0,p.useCallback)((()=>{w(!0)}),[]),C=(0,p.useCallback)((()=>{"drawer"===a&&w(!0)}),[a]),S=(0,p.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:(0,Ta.t)(Ta.K.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:(0,Ta.t)(Ta.K.SWITCH_LANGUAGE)}]),[]),N=(0,p.useRef)(null);return(0,p.useImperativeHandle)(t,(()=>({close:()=>{w(!0)},pull:()=>{var e;null===(e=N.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)},open:()=>{w(!1)}})),[]),h().createElement("div",{className:ya()("container",{collapsed:v})},"drawer"===a&&!v&&h().createElement("div",{className:"mask",onClick:T}),h().createElement("div",{className:"alternative"},h().createElement(Sa.Py,{icon:kn,variant:"light",onClick:y}),r&&h().createElement(Sa.EM,{className:"new-chat",url:s},h().createElement(Sa.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Ta.t)(Ta.K.NEW_CHAT))),h().createElement("div",{className:"sidebar"},h().createElement("div",{className:"logo-bar"},h().createElement(Sa.EM,{url:n,className:"logo-link"},h().createElement(xn,null)),h().createElement(Sa.Py,{icon:kn,variant:"light",onClick:E})),h().createElement(Sa.EM,{className:"new-chat",url:s},h().createElement(Sa.Bj,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),(0,Ta.t)(Ta.K.NEW_CHAT)),null!=u&&u.length?h().createElement("div",{className:"links"},u.map(((e,t)=>h().createElement(Ma.k,{key:t,url:e.url,activeIncludes:e.activeIncludes,render:i=>{let{active:a}=i;return h().createElement(Sa.EM,{key:t,className:ya()("link",{active:a}),url:e.url},h().createElement(Sa.Bj,(0,kt.A)({className:"icon"},e.icon)),h().createElement("span",{className:"title"},e.title))}})))):null,h().createElement(Na.D,{ref:N,canAddProject:m,historyUrlTemplate:o,historyActions:l,projectUrlTemplate:c,projectActions:d,myLinks:b,onActionClick:f,onHistoryClick:C,onProjectActionClick:k,onAddProject:x}),h().createElement("div",{className:"footer"},h().createElement(Sa.qb,{className:"dropdown",actions:S,onActionClick:async e=>{"logout"===e.detail.key?A():(await g.i18n.changeLanguage(g.i18n.language&&"en"===g.i18n.language.split("-")[0]?"zh":"en"),(0,wa.getHistory)().reload())}},h().createElement("button",{className:"account"},h().createElement(Sa.JQ,{nameOrInstanceId:i,showName:!0,size:"xs"}))))))}va=Yn,({e:[Wa,Ia,La,Da,Oa,za,Pa,Ha,Ba,Ua,Fa,Va,ja,Ga,Ka,$a,qa,Ya,Ja,Xa,Qa,Za,en,tn,an,nn,sn,rn,on,ln,cn,dn,pn,hn,un,mn,gn,bn,An,fn,_a],c:[Cn,Ra]}=(0,d.A)(va,[vn("ai-portal.elevo-sidebar",{styleTexts:[Ca.A]})],[[wn(),1,"userInstanceId"],[wn(),1,"behavior"],[wn(),1,"logoUrl"],[wn(),1,"newChatUrl"],[wn({type:Boolean}),1,"newChatLinkWhenCollapsed"],[wn(),1,"historyUrlTemplate"],[wn({attribute:!1}),1,"historyActions"],[wn(),1,"projectUrlTemplate"],[wn({attribute:!1}),1,"projectActions"],[wn({attribute:!1}),1,"links"],[wn({type:Boolean}),1,"canAddProject"],[wn({attribute:!1}),1,"myLinks"],[En({type:"logout"}),1,"logout",e=>(0,c.A)(Hn,e),(e,t)=>(0,l.A)(Hn,e,t)],[En({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Fn,e),(e,t)=>(0,l.A)(Fn,e,t)],[En({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(jn,e),(e,t)=>(0,l.A)(jn,e,t)],[En({type:"add.project"}),1,"addProject",e=>(0,c.A)(Kn,e),(e,t)=>(0,l.A)(Kn,e,t)],[yn(),2,"pullHistory"],[yn(),2,"open"],[yn(),2,"close"],[yn(),2,"removeProject"],[yn(),2,"addProject"],[yn(),2,"moveConversation"]],0,(e=>qn.has((0,r.A)(e))),m.ReactNextElement)),Ra();var Xn,Qn=i(47338);let Zn,es,ts,is,as,ns,ss,rs,os,ls,cs;const ds=(0,m.wrapBrick)("eo-icon"),ps=(0,m.wrapBrick)("eo-tooltip"),{defineElement:hs,property:us}=(0,u.createDecorators)();let ms;var gs=new WeakMap,bs=new WeakMap,As=new WeakMap,fs=new WeakMap,ks=new WeakMap;class xs extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,gs,es(this)),(0,s.A)(this,bs,(ts(this),is(this))),(0,s.A)(this,As,(as(this),ns(this))),(0,s.A)(this,fs,(ss(this),rs(this))),(0,s.A)(this,ks,(os(this),ls(this))),cs(this)}get icon(){return(0,c.A)(gs,this)}set icon(e){(0,l.A)(gs,this,e)}get tooltip(){return(0,c.A)(bs,this)}set tooltip(e){(0,l.A)(bs,this,e)}get tooltipHoist(){return(0,c.A)(As,this)}set tooltipHoist(e){(0,l.A)(As,this,e)}get disabled(){return(0,c.A)(fs,this)}set disabled(e){(0,l.A)(fs,this,e)}get variant(){return(0,c.A)(ks,this)}set variant(e){(0,l.A)(ks,this,e)}render(){return h().createElement(vs,{icon:this.icon,tooltip:this.tooltip,tooltipHoist:this.tooltipHoist,disabled:this.disabled})}}function vs(e){let{icon:t,tooltip:i,tooltipHoist:a,disabled:n}=e;const s=h().createElement("button",{disabled:n},h().createElement(ds,t));return i?h().createElement(ps,{content:i,hoist:a},s):s}Xn=xs,({e:[es,ts,is,as,ns,ss,rs,os,ls,cs],c:[ms,Zn]}=(0,d.A)(Xn,[hs("ai-portal.icon-button",{styleTexts:[Qn.A]})],[[us({attribute:!1}),1,"icon"],[us(),1,"tooltip"],[us({type:Boolean}),1,"tooltipHoist"],[us({type:Boolean}),1,"disabled"],[us({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),Zn();let ws=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const Es="bricks/ai-portal/show-cases",ys={en:{[ws.ALL]:"All",[ws.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[ws.ALL]:"全部",[ws.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},Ts=g.i18n.getFixedT(null,Es);var Cs,Ss=i(42873);let Ns,Ms,_s,Rs,Ws;(0,g.initializeI18n)(Es,ys);const Is=(0,m.wrapBrick)("ai-portal.show-case"),Ls=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:Ds,property:Os}=(0,u.createDecorators)();let zs;var Ps=new WeakMap,Hs=new WeakMap;class Bs extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Ps,Ms(this)),(0,s.A)(this,Hs,(_s(this),Rs(this))),Ws(this)}get list(){return(0,c.A)(Ps,this)}set list(e){(0,l.A)(Ps,this,e)}get limit(){return(0,c.A)(Hs,this)}set limit(e){(0,l.A)(Hs,this,e)}render(){return h().createElement(Us,{list:this.list,limit:this.limit})}}function Us(e){let{list:t,limit:i}=e;const a=(0,p.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[n,s]=(0,p.useState)(""),r=(0,p.useMemo)((()=>{if(!t)return;let e=t;return n&&(e=e.filter((e=>e.scenario===n))),i&&(e=e.slice(0,i)),e}),[n,t,i]),o=(0,p.useMemo)((()=>a.map((e=>({id:e,label:""===e?Ts(ws.ALL):e})))),[a]);return null!=t&&t.length?h().createElement(h().Fragment,null,h().createElement("div",{className:"tips"},`${Ts(ws.EXPLORE_EXCELLENT_CASES)} ↓`),h().createElement(Ls,{tabs:o,activeTab:n,onTabClick:e=>s(e.detail.id)}),h().createElement("ul",{className:"cases"},null==r?void 0:r.map((e=>h().createElement("li",{key:e.conversationId},h().createElement(Is,{caseTitle:e.title,summary:e.summary,url:e.url})))))):null}Cs=Bs,({e:[Ms,_s,Rs,Ws],c:[zs,Ns]}=(0,d.A)(Cs,[Ds("ai-portal.show-cases",{styleTexts:[Ss.A]})],[[Os({attribute:!1}),1,"list"],[Os({type:Number}),1,"limit"]],0,void 0,m.ReactNextElement)),Ns();let Fs=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 Vs="bricks/ai-portal/mcp-tools",js={en:{[Fs.MCP_HUB]:"MCP Hub",[Fs.ALL]:"All",[Fs.SERVER_cmdb]:"CMDB",[Fs.SERVER_cmdb_product_helper]:"CMDB",[Fs.SERVER_alert]:"Alert",[Fs.SERVER_web_builder]:"View",[Fs.SERVER_web_builder2]:"View",[Fs.SERVER_host_troubleshooting]:"Host Troubleshooting",[Fs.SERVER_system_inspection]:"System Inspection",[Fs.SERVER_grafana]:"Grafana",[Fs.SERVER_kubernetes]:"Kubernetes",[Fs.SERVER_llm]:"LLM"},zh:{[Fs.MCP_HUB]:"MCP 中心",[Fs.ALL]:"全部",[Fs.SERVER_cmdb]:"CMDB",[Fs.SERVER_cmdb_product_helper]:"CMDB",[Fs.SERVER_alert]:"告警",[Fs.SERVER_web_builder]:"视图",[Fs.SERVER_web_builder2]:"视图",[Fs.SERVER_host_troubleshooting]:"主机故障排查",[Fs.SERVER_system_inspection]:"系统巡检",[Fs.SERVER_grafana]:"Grafana",[Fs.SERVER_kubernetes]:"Kubernetes",[Fs.SERVER_llm]:"大模型"}},Gs=g.i18n.getFixedT(null,Vs);var Ks,$s=i(31748);let qs,Ys,Js,Xs,Qs;(0,g.initializeI18n)(Vs,js);const Zs={lib:"antd",icon:"tool"},er=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"]}]]),tr=(0,m.wrapBrick)("eo-icon"),ir=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),ar=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:nr,property:sr}=(0,u.createDecorators)();let rr;var or=new WeakMap,lr=new WeakMap;class cr extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,or,Ys(this)),(0,s.A)(this,lr,(Js(this),Xs(this))),Qs(this)}get list(){return(0,c.A)(or,this)}set list(e){(0,l.A)(or,this,e)}get stickyTop(){return(0,c.A)(lr,this)}set stickyTop(e){(0,l.A)(lr,this,e)}render(){return h().createElement(dr,{list:this.list,stickyTop:this.stickyTop})}}function dr(e){let{list:t,stickyTop:i}=e;const[a,n]=(0,p.useMemo)((()=>{const e=new Map,i=new Map;null==t||t.forEach((t=>{const a=Gs(`SERVER_${t.server.id.replaceAll("-","_")}`,t.server.name);let n=e.get(a);n||e.set(a,n=[]),n.push(t);const s=[...er.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,p.useMemo)((()=>{const e=[...er.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,p.useState)(""),l=(0,p.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,p.useMemo)((()=>s.map((e=>({id:e,label:""===e?Gs(Fs.ALL):e})))),[s]),d=h().createElement(ir,{tabs:c,activeTab:r,onTabClick:e=>o(e.detail.id)});return h().createElement(h().Fragment,null,null==i?h().createElement("div",{className:"non-sticky-tabs"},d):h().createElement(ar,{className:"sticky-tabs",style:{top:i}},d),h().createElement("ul",{className:"groups"},null==l?void 0:l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>{var i;return h().createElement("li",{key:t,className:"item"},h().createElement("div",{className:"heading"},h().createElement(tr,(0,kt.A)({className:"icon"},null!==(i=e.icon)&&void 0!==i?i:Zs,{fallback:Zs})),h().createElement("div",{className:"title"},e.title)),h().createElement("div",{className:"description"},e.description))}))))}))))}Ks=cr,({e:[Ys,Js,Xs,Qs],c:[rr,qs]}=(0,d.A)(Ks,[nr("ai-portal.mcp-tools",{styleTexts:[$s.A]})],[[sr({attribute:!1}),1,"list"],[sr({type:Number}),1,"stickyTop"]],0,void 0,m.ReactNextElement)),qs();var pr,hr=i(48952),ur=i(68717);let mr,gr,br,Ar,fr,kr,xr,vr,wr,Er,yr,Tr,Cr,Sr,Nr,Mr,_r,Rr,Wr,Ir,Lr,Dr,Or,zr,Pr,Hr,Br,Ur,Fr,Vr,jr,Gr,Kr,$r,qr,Yr,Jr,Xr,Qr,Zr,eo,to,io,ao,no,so,ro,oo,lo,co,po,ho,uo,mo,go,bo;(0,g.initializeI18n)(hr.NS,hr.I);const{defineElement:Ao,property:fo,event:ko,method:xo}=(0,u.createDecorators)(),vo=(0,p.forwardRef)(ur.C);let wo;var Eo=new WeakMap,yo=new WeakMap,To=new WeakMap,Co=new WeakMap,So=new WeakMap,No=new WeakMap,Mo=new WeakMap,_o=new WeakMap,Ro=new WeakMap,Wo=new WeakMap,Io=new WeakMap,Lo=new WeakMap,Do=new WeakMap,Oo=new WeakMap,zo=new WeakMap,Po=new WeakMap,Ho=new WeakSet,Bo=new WeakMap,Uo=new WeakMap,Fo=new WeakMap,Vo=new WeakMap,jo=new WeakMap,Go=new WeakMap,Ko=new WeakMap,$o=new WeakMap,qo=new WeakMap,Yo=new WeakMap,Jo=new WeakMap,Xo=new WeakMap;class Qo extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Ho),(0,s.A)(this,Eo,(mr(this),br(this))),(0,s.A)(this,yo,(Ar(this),fr(this))),(0,s.A)(this,To,(kr(this),xr(this))),(0,s.A)(this,Co,(vr(this),wr(this))),(0,s.A)(this,So,(Er(this),yr(this))),(0,s.A)(this,No,(Tr(this),Cr(this))),(0,s.A)(this,Mo,(Sr(this),Nr(this))),(0,s.A)(this,_o,(Mr(this),_r(this))),(0,s.A)(this,Ro,(Rr(this),Wr(this))),(0,s.A)(this,Wo,(Ir(this),Lr(this))),(0,s.A)(this,Io,(Dr(this),Or(this))),(0,s.A)(this,Lo,(zr(this),Pr(this))),(0,s.A)(this,Do,(Hr(this),Br(this))),(0,s.A)(this,Oo,(Ur(this),Fr(this))),(0,s.A)(this,zo,(Vr(this),jr(this))),(0,s.A)(this,Po,(Gr(this),Kr(this))),(0,s.A)(this,Bo,(Yr(this),()=>{(0,o.A)(Ho,this,$r).emit()})),(0,s.A)(this,Uo,Jr(this)),(0,s.A)(this,Fo,(Zr(this),()=>{(0,o.A)(Ho,this,Xr).emit()})),(0,s.A)(this,Vo,eo(this)),(0,s.A)(this,jo,(ao(this),e=>{(0,o.A)(Ho,this,to).emit(e)})),(0,s.A)(this,Go,no(this)),(0,s.A)(this,Ko,(oo(this),e=>{(0,o.A)(Ho,this,so).emit(e)})),(0,s.A)(this,$o,lo(this)),(0,s.A)(this,qo,(ho(this),()=>{(0,o.A)(Ho,this,co).emit("canvas")})),(0,s.A)(this,Yo,uo(this)),(0,s.A)(this,Jo,(bo(this),e=>{(0,o.A)(Ho,this,mo).emit(e)})),(0,s.A)(this,Xo,(0,p.createRef)())}get conversationId(){return(0,c.A)(Eo,this)}set conversationId(e){(0,l.A)(Eo,this,e)}get initialRequest(){return(0,c.A)(yo,this)}set initialRequest(e){(0,l.A)(yo,this,e)}get replay(){return(0,c.A)(To,this)}set replay(e){(0,l.A)(To,this,e)}get replayDelay(){return(0,c.A)(Co,this)}set replayDelay(e){(0,l.A)(Co,this,e)}get supports(){return(0,c.A)(So,this)}set supports(e){(0,l.A)(So,this,e)}get showHumanActions(){return(0,c.A)(No,this)}set showHumanActions(e){(0,l.A)(No,this,e)}get showFeedback(){return(0,c.A)(Mo,this)}set showFeedback(e){(0,l.A)(Mo,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(_o,this)}set showFeedbackAfterFailed(e){(0,l.A)(_o,this,e)}get showFeedbackOnView(){return(0,c.A)(Ro,this)}set showFeedbackOnView(e){(0,l.A)(Ro,this,e)}get showUiSwitch(){return(0,c.A)(Wo,this)}set showUiSwitch(e){(0,l.A)(Wo,this,e)}get hideMermaid(){return(0,c.A)(Io,this)}set hideMermaid(e){(0,l.A)(Io,this,e)}get previewUrlTemplate(){return(0,c.A)(Lo,this)}set previewUrlTemplate(e){(0,l.A)(Lo,this,e)}get showCases(){return(0,c.A)(Do,this)}set showCases(e){(0,l.A)(Do,this,e)}get exampleProjects(){return(0,c.A)(Oo,this)}set exampleProjects(e){(0,l.A)(Oo,this,e)}get tryItOutUrl(){return(0,c.A)(zo,this)}set tryItOutUrl(e){(0,l.A)(zo,this,e)}resumed(){var e,t;null===(e=(0,c.A)(Xo,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(Xo,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(Xo,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(Xo,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(vo,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showFeedbackOnView:this.showFeedbackOnView,showUiSwitch:this.showUiSwitch,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,onShare:(0,c.A)(Bo,this),onTerminate:(0,c.A)(Fo,this),onSubmitFeedback:(0,c.A)(jo,this),onSwitchToCanvas:(0,c.A)(qo,this),onFeedbackOnView:(0,c.A)(Ko,this),onDetailChange:(0,c.A)(Jo,this)})}}pr=Qo,({e:[br,Ar,fr,kr,xr,vr,wr,Er,yr,Tr,Cr,Sr,Nr,Mr,_r,Rr,Wr,Ir,Lr,Dr,Or,zr,Pr,Hr,Br,Ur,Fr,Vr,jr,Gr,Kr,$r,qr,Yr,Jr,Xr,Qr,Zr,eo,to,io,ao,no,so,ro,oo,lo,co,po,ho,uo,mo,go,bo,mr],c:[wo,gr]}=(0,d.A)(pr,[Ao("ai-portal.chat-stream",{shadowOptions:!1})],[[fo(),1,"conversationId"],[fo({attribute:!1,render:!1}),1,"initialRequest"],[fo({type:Boolean}),1,"replay"],[fo({type:Number}),1,"replayDelay"],[fo({attribute:!1}),1,"supports"],[fo({type:Boolean}),1,"showHumanActions"],[fo({type:Boolean}),1,"showFeedback"],[fo({type:Boolean}),1,"showFeedbackAfterFailed"],[fo({type:Boolean}),1,"showFeedbackOnView"],[fo({type:Boolean}),1,"showUiSwitch"],[fo({type:Boolean,render:!1}),1,"hideMermaid"],[fo(),1,"previewUrlTemplate"],[fo({attribute:!1}),1,"showCases"],[fo({attribute:!1}),1,"exampleProjects"],[fo(),1,"tryItOutUrl"],[ko({type:"share"}),1,"shareEvent",e=>(0,c.A)(Po,e),(e,t)=>(0,l.A)(Po,e,t)],[ko({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Uo,e),(e,t)=>(0,l.A)(Uo,e,t)],[ko({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Vo,e),(e,t)=>(0,l.A)(Vo,e,t)],[ko({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(Go,e),(e,t)=>(0,l.A)(Go,e,t)],[ko({type:"ui.switch"}),1,"switch",e=>(0,c.A)($o,e),(e,t)=>(0,l.A)($o,e,t)],[ko({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(Yo,e),(e,t)=>(0,l.A)(Yo,e,t)],[xo(),2,"resumed"],[xo(),2,"feedbackSubmitDone"],[xo(),2,"feedbackSubmitFailed"],[xo(),2,"feedbackOnViewDone"]],0,(e=>Xo.has((0,r.A)(e))),m.ReactNextElement)),gr();let Zo=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const el="bricks/ai-portal/ai-employees",tl=g.i18n.getFixedT(null,el);var il,al=i(98036),nl=i(65549);let sl,rl,ol,ll,cl,dl,pl,hl,ul;(0,g.initializeI18n)(el,{en:{AI_EMPLOYEES:"AI Employees",UNTITLED:"Untitled"},zh:{AI_EMPLOYEES:"Ai 数字人",UNTITLED:"未命名"}});const ml=(0,m.wrapBrick)("eo-link"),gl=(0,m.wrapBrick)("eo-icon"),bl=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:Al,property:fl}=(0,u.createDecorators)();let kl;var xl=new WeakMap,vl=new WeakMap,wl=new WeakMap,El=new WeakMap;class yl extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,xl,rl(this)),(0,s.A)(this,vl,(ol(this),ll(this))),(0,s.A)(this,wl,(cl(this),dl(this))),(0,s.A)(this,El,(pl(this),hl(this,!0))),ul(this)}get list(){return(0,c.A)(xl,this)}set list(e){(0,l.A)(xl,this,e)}get industries(){return(0,c.A)(vl,this)}set industries(e){(0,l.A)(vl,this,e)}get urlTemplate(){return(0,c.A)(wl,this)}set urlTemplate(e){(0,l.A)(wl,this,e)}get withContainer(){return(0,c.A)(El,this)}set withContainer(e){(0,l.A)(El,this,e)}render(){return h().createElement(Tl,{list:this.list,industries:this.industries,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function Tl(e){let{list:t,industries:i,urlTemplate:a,withContainer:n}=e;const s=(0,p.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[r,o]=(0,p.useState)(s[0]),l=(0,p.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,p.useMemo)((()=>s.map((e=>({id:e,label:e||tl(Zo.UNTITLED)})))),[s]),d=h().createElement(h().Fragment,null,h().createElement(bl,{tabs:c,activeTab:r,onTabClick:e=>o(e.detail.id)}),h().createElement("ul",{className:"groups"},l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>h().createElement("li",{key:t},h().createElement(ml,(0,kt.A)({className:ya()("link",{clickable:!!a})},a?{url:(0,nl.Q)(a,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"avatar"},e.avatar?h().createElement("img",{src:e.avatar}):h().createElement(gl,{lib:"antd",icon:"user"})),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"description"},e.description)))))))}))));return n?h().createElement("div",{className:"container"},h().createElement("h1",null,tl(Zo.AI_EMPLOYEES)),d):d}il=yl,({e:[rl,ol,ll,cl,dl,pl,hl,ul],c:[kl,sl]}=(0,d.A)(il,[Al("ai-portal.ai-employees",{styleTexts:[al.A]})],[[fl({attribute:!1}),1,"list"],[fl({attribute:!1}),1,"industries"],[fl(),1,"urlTemplate"],[fl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),sl();let Cl=function(e){return e.AGENTS="AGENTS",e}({});const Sl="bricks/ai-portal/ai-agents",Nl=g.i18n.getFixedT(null,Sl);var Ml,_l=i(83059);let Rl,Wl,Il,Ll,Dl,Ol,zl;const Pl={lib:"antd",icon:"tool"};(0,g.initializeI18n)(Sl,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const Hl=(0,m.wrapBrick)("eo-icon"),Bl=(0,m.wrapBrick)("eo-link"),{defineElement:Ul,property:Fl}=(0,u.createDecorators)();let Vl;var jl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;class $l extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,jl,Wl(this)),(0,s.A)(this,Gl,(Il(this),Ll(this))),(0,s.A)(this,Kl,(Dl(this),Ol(this,!0))),zl(this)}get list(){return(0,c.A)(jl,this)}set list(e){(0,l.A)(jl,this,e)}get urlTemplate(){return(0,c.A)(Gl,this)}set urlTemplate(e){(0,l.A)(Gl,this,e)}get withContainer(){return(0,c.A)(Kl,this)}set withContainer(e){(0,l.A)(Kl,this,e)}render(){return h().createElement(ql,{list:this.list,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function ql(e){let{list:t,urlTemplate:i,withContainer:a}=e;const n=h().createElement(h().Fragment,null,h().createElement("ul",{className:"list"},null==t?void 0:t.map(((e,t)=>{var a,n;return h().createElement("li",{key:t},h().createElement(Bl,(0,kt.A)({className:ya()("link",{clickable:!!i})},i?{url:(0,nl.Q)(i,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"icon"},h().createElement(Hl,(0,kt.A)({},null!==(a=e.icon)&&void 0!==a?a:Pl,{fallback:Pl}))),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"tags"},null===(n=e.tags)||void 0===n?void 0:n.map(((e,t)=>h().createElement("span",{key:t,className:"tag"},e)))),h().createElement("div",{className:"description"},e.description)))}))));return a?h().createElement("div",{className:"container"},h().createElement("h1",null,Nl(Cl.AGENTS)),n):n}Ml=$l,({e:[Wl,Il,Ll,Dl,Ol,zl],c:[Vl,Rl]}=(0,d.A)(Ml,[Ul("ai-portal.ai-agents",{styleTexts:[_l.A]})],[[Fl({attribute:!1}),1,"list"],[Fl(),1,"urlTemplate"],[Fl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),Rl();var Yl=i(77019);let Jl=null;customElements.define("ai-portal.save-request-store",(0,Yl.createProviderClass)((function(e){Jl=e}))),customElements.define("ai-portal.load-request-store",(0,Yl.createProviderClass)((function(){const e=Jl;return Jl=null,e}))),customElements.define("ai-portal.clear-request-store",(0,Yl.createProviderClass)((function(){Jl=null})));var Xl,Ql=i(49041);let Zl,ec,tc,ic,ac,nc,sc,rc,oc,lc,cc;const dc=(0,m.wrapBrick)("eo-link"),pc=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:hc,property:uc}=(0,u.createDecorators)();let mc;var gc=new WeakMap,bc=new WeakMap,Ac=new WeakMap,fc=new WeakMap,kc=new WeakMap;class xc extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,gc,ec(this)),(0,s.A)(this,bc,(tc(this),ic(this))),(0,s.A)(this,Ac,(ac(this),nc(this))),(0,s.A)(this,fc,(sc(this),rc(this))),(0,s.A)(this,kc,(oc(this),lc(this))),cc(this)}get pageTitle(){return(0,c.A)(gc,this)}set pageTitle(e){(0,l.A)(gc,this,e)}get breadcrumbs(){return(0,c.A)(bc,this)}set breadcrumbs(e){(0,l.A)(bc,this,e)}get size(){return(0,c.A)(Ac,this)}set size(e){(0,l.A)(Ac,this,e)}get variant(){return(0,c.A)(fc,this)}set variant(e){(0,l.A)(fc,this,e)}get sticky(){return(0,c.A)(kc,this)}set sticky(e){(0,l.A)(kc,this,e)}render(){return h().createElement(vc,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs,sticky:this.sticky})}}function vc(e){let{breadcrumbs:t,pageTitle:i,sticky:a}=e;(0,p.useEffect)((()=>{"string"==typeof i&&(0,wa.getRuntime)().applyPageTitle(i)}),[i]);const n=i||null!=t&&t.length?h().createElement("div",{className:"header"},h().createElement("nav",null,null!=t&&t.length?h().createElement("ul",{className:"breadcrumbs"},t.map(((e,t)=>h().createElement("li",{key:t},h().createElement(dc,{url:e.url},e.text))))):null,i?h().createElement("h1",null,i):null),h().createElement("slot",{name:"toolbar"})):null;return h().createElement("div",{className:"container"},n&&a?h().createElement(pc,{className:"sticky-header"},n):h().createElement("div",{className:"non-sticky-header"},n),h().createElement("slot",null))}Xl=xc,({e:[ec,tc,ic,ac,nc,sc,rc,oc,lc,cc],c:[mc,Zl]}=(0,d.A)(Xl,[hc("ai-portal.page-container",{styleTexts:[Ql.A]})],[[uc(),1,"pageTitle"],[uc({attribute:!1}),1,"breadcrumbs"],[uc({render:!1}),1,"size"],[uc({render:!1}),1,"variant"],[uc({type:Boolean}),1,"sticky"]],0,void 0,m.ReactNextElement)),Zl();var wc,Ec=i(20124);let yc,Tc,Cc,Sc,Nc,Mc,_c,Rc,Wc;const{defineElement:Ic,property:Lc,event:Dc}=(0,u.createDecorators)();let Oc;var zc=new WeakMap,Pc=new WeakMap,Hc=new WeakMap,Bc=new WeakSet,Uc=new WeakMap;class Fc extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Bc),(0,s.A)(this,zc,Tc(this)),(0,s.A)(this,Pc,(Cc(this),Sc(this))),(0,s.A)(this,Hc,(Nc(this),Mc(this))),(0,s.A)(this,Uc,(Wc(this),e=>{this.activeTab=e.id,(0,o.A)(Bc,this,_c).emit(e)}))}get tabs(){return(0,c.A)(zc,this)}set tabs(e){(0,l.A)(zc,this,e)}get activeTab(){return(0,c.A)(Pc,this)}set activeTab(e){(0,l.A)(Pc,this,e)}render(){return h().createElement(Vc,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(Uc,this)})}}function Vc(e){let{tabs:t,activeTab:i,onTabClick:a}=e;return h().createElement("ul",{className:"tabs",part:"tabs"},null==t?void 0:t.map((e=>h().createElement("li",{key:e.id,part:"tab",className:ya()("tab",{active:e.id===i})},h().createElement("a",{onClick:()=>a(e)},e.label)))))}wc=Fc,({e:[Tc,Cc,Sc,Nc,Mc,_c,Rc,Wc],c:[Oc,yc]}=(0,d.A)(wc,[Ic("ai-portal.tab-list",{styleTexts:[Ec.A]})],[[Lc({attribute:!1}),1,"tabs"],[Lc({attribute:!1}),1,"activeTab"],[Dc({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(Hc,e),(e,t)=>(0,l.A)(Hc,e,t)]],0,(e=>Uc.has((0,r.A)(e))),m.ReactNextElement)),yc();var jc=i(41030);let Gc=function(e){return e.PLEASE_SELECT="PLEASE_SELECT",e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e.SEARCH_NO_DATA="SEARCH_NO_DATA",e}({});const Kc="bricks/ai-portal/dropdown-select",$c=g.i18n.getFixedT(null,Kc);var qc,Yc=i(40138);let Jc,Xc,Qc,Zc,ed,td,id,ad,nd,sd,rd,od,ld,cd,dd,pd,hd,ud,md,gd,bd;(0,g.initializeI18n)(Kc,{en:{PLEASE_SELECT:"Please Select",SEARCH_PLACEHOLDER:"Search",SEARCH_NO_DATA:"No Data"},zh:{PLEASE_SELECT:"请选择",SEARCH_PLACEHOLDER:"搜索",SEARCH_NO_DATA:"暂无结果"}});const{defineElement:Ad,property:fd,event:kd}=(0,u.createDecorators)(),xd=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),vd=(0,m.wrapBrick)("eo-icon"),wd=(0,m.wrapBrick)("eo-loading-container"),Ed=(0,m.wrapBrick)("eo-menu"),yd=(0,m.wrapBrick)("eo-menu-item"),Td=(0,m.wrapBrick)("eo-input",{onValueChange:"change"});let Cd;var Sd=new WeakMap,Nd=new WeakMap,Md=new WeakMap,_d=new WeakMap,Rd=new WeakMap,Wd=new WeakMap,Id=new WeakMap,Ld=new WeakMap,Dd=new WeakMap,Od=new WeakSet,zd=new WeakMap;class Pd extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Od),(0,s.A)(this,Sd,Xc(this)),(0,s.A)(this,Nd,(Qc(this),Zc(this))),(0,s.A)(this,Md,(ed(this),td(this))),(0,s.A)(this,_d,(id(this),ad(this))),(0,s.A)(this,Rd,(nd(this),sd(this))),(0,s.A)(this,Wd,(rd(this),od(this))),(0,s.A)(this,Id,(ld(this),cd(this))),(0,s.A)(this,Ld,(dd(this),pd(this))),(0,s.A)(this,Dd,(hd(this),ud(this))),(0,s.A)(this,zd,(bd(this),e=>{(0,o.A)(Od,this,md).emit(e)}))}get value(){return(0,c.A)(Sd,this)}set value(e){(0,l.A)(Sd,this,e)}get options(){return(0,c.A)(Nd,this)}set options(e){(0,l.A)(Nd,this,e)}get labelMaxWidth(){return(0,c.A)(Md,this)}set labelMaxWidth(e){(0,l.A)(Md,this,e)}get loading(){return(0,c.A)(_d,this)}set loading(e){(0,l.A)(_d,this,e)}get searchPlaceholder(){return(0,c.A)(Rd,this)}set searchPlaceholder(e){(0,l.A)(Rd,this,e)}get dropdownContentStyle(){return(0,c.A)(Wd,this)}set dropdownContentStyle(e){(0,l.A)(Wd,this,e)}get dropdownMaxWidth(){return(0,c.A)(Id,this)}set dropdownMaxWidth(e){(0,l.A)(Id,this,e)}get showSearch(){return(0,c.A)(Ld,this)}set showSearch(e){(0,l.A)(Ld,this,e)}render(){return h().createElement(Hd,{value:this.value,options:this.options,onChange:(0,c.A)(zd,this),loading:this.loading,labelMaxWidth:this.labelMaxWidth,dropdownMaxWidth:this.dropdownMaxWidth,showSearch:this.showSearch,searchPlaceholder:this.searchPlaceholder,dropdownContentStyle:this.dropdownContentStyle})}}function Hd(e){let{value:t,options:i,labelMaxWidth:a,dropdownMaxWidth:n,showSearch:s,loading:r,searchPlaceholder:o,dropdownContentStyle:l,onChange:c}=e;const[d,u]=(0,p.useState)(!1),[m,g]=(0,p.useState)(t),[b,A]=(0,p.useState)(""),[f,k]=(0,p.useState)(i);(0,p.useEffect)((()=>{k(i)}),[i]);const x=(0,p.useMemo)((()=>null==f?void 0:f.find((e=>e.value===m))),[f,m]),v=(0,p.useMemo)((()=>b&&f?null==f?void 0:f.filter((e=>e.label.toLowerCase().includes(b.toLowerCase()))):f),[f,b]),w=(0,p.useCallback)((e=>{u(e.detail),e.detail||A("")}),[]),E=(0,p.useMemo)((()=>(0,jc.debounce)((e=>{A(e.detail)}),300)),[]);return h().createElement(xd,{placement:"bottom-start",trigger:"click",active:d,arrow:!1,distance:5,onBeforeVisibleChange:w},h().createElement("span",{slot:"anchor",className:"trigger"},h().createElement("span",{className:"label",style:{maxWidth:a}},x?null==x?void 0:x.label:$c(Gc.PLEASE_SELECT)),h().createElement(vd,{lib:"lucide",icon:d?"chevron-up":"chevron-down"})),h().createElement("div",{className:"dropdown",style:{maxWidth:n}},s&&h().createElement("div",{className:"search-container"},h().createElement(Td,{className:"search",value:b,placeholder:o||$c(Gc.SEARCH_PLACEHOLDER),onValueChange:E},h().createElement(vd,{slot:"prefix",lib:"antd",icon:"search"}))),h().createElement(wd,{loading:r,delay:500,style:{width:"100%"}},h().createElement("div",{className:"dropdown-inner",style:l},h().createElement("slot",{name:"prefix"}),!(null==v||!v.length)&&h().createElement(Ed,null,null==v?void 0:v.map((e=>h().createElement(yd,{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!=v&&v.length)&&h().createElement("div",{className:"empty"},$c(Gc.SEARCH_NO_DATA))))))}qc=Pd,({e:[Xc,Qc,Zc,ed,td,id,ad,nd,sd,rd,od,ld,cd,dd,pd,hd,ud,md,gd,bd],c:[Cd,Jc]}=(0,d.A)(qc,[Ad("ai-portal.dropdown-select",{styleTexts:[Yc.A]})],[[fd(),1,"value"],[fd({attribute:!1}),1,"options"],[fd({attribute:!1}),1,"labelMaxWidth"],[fd({type:Boolean}),1,"loading"],[fd({attribute:!1}),1,"searchPlaceholder"],[fd({attribute:!1}),1,"dropdownContentStyle"],[fd({attribute:!1}),1,"dropdownMaxWidth"],[fd({type:Boolean}),1,"showSearch"],[kd({type:"change"}),1,"changeEvent",e=>(0,c.A)(Dd,e),(e,t)=>(0,l.A)(Dd,e,t)]],0,(e=>zd.has((0,r.A)(e))),m.ReactNextElement)),Jc();var Bd=i(71568);let Ud=function(e){return e.UNTITLED="UNTITLED",e}({});const Fd="bricks/ai-portal/preview-container",Vd=g.i18n.getFixedT(null,Fd);var jd=i(72591),Gd=i.n(jd),Kd=i(1740),$d=i.n(Kd),qd=i(88128),Yd=i.n(qd),Jd=i(30855),Xd=i.n(Jd),Qd=i(93051),Zd=i.n(Qd),ep=i(73656),tp=i.n(ep),ip=i(62522),ap={};ap.styleTagTransform=tp(),ap.setAttributes=Xd(),ap.insert=Yd().bind(null,"head"),ap.domAPI=$d(),ap.insertStyleElement=Zd(),Gd()(ip.A,ap);const np=ip.A&&ip.A.locals?ip.A.locals:void 0;var sp,rp=i(43100),op=i(23241);let lp,cp,dp,pp,hp;(0,g.initializeI18n)(Fd,{en:{UNTITLED:"Untitled"},zh:{UNTITLED:"无标题"}});const up=(0,m.wrapBrick)("eo-icon"),mp=(0,m.wrapBrick)("eo-page-title"),gp=(0,m.wrapBrick)("eo-main-view"),bp=(0,m.wrapBrick)("eo-narrow-view"),{defineElement:Ap,property:fp}=(0,u.createDecorators)();let kp;var xp=new WeakMap,vp=new WeakMap,wp=new WeakMap;class Ep extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,xp,cp(this)),(0,s.A)(this,vp,(dp(this),pp(this))),(0,s.A)(this,wp,(hp(this),(0,jc.uniqueId)()))}get source(){return(0,c.A)(xp,this)}set source(e){(0,l.A)(xp,this,e)}get url(){return(0,c.A)(vp,this)}set url(e){(0,l.A)(vp,this,e)}render(){return h().createElement(p.Suspense,{fallback:h().createElement(up,{lib:"antd",icon:"loading-3-quarters",spinning:!0,className:np.loading})},h().createElement(yp,{rootId:(0,c.A)(wp,this),source:this.source,url:this.url}))}}function yp(e){let{rootId:t,source:i,url:a}=e;const n=(0,p.useMemo)((()=>i?async function(e){const t=await(0,rp.f)();return await t.parseView(e)}(i).catch((e=>(console.error("Failed to parse view:",e),null))):Promise.resolve(null)),[i]),s=(0,p.use)(n),r=(0,p.useMemo)((()=>s?(0,Bd.z)(s,{rootId:t,expanded:!0}).catch((e=>(console.error("Failed to convert view:",e),null))):Promise.resolve(null)),[s,t]),o=(0,p.use)(r),l=(0,p.useMemo)((()=>{var e;return null==s||null===(e=s.entry)||void 0===e||null===(e=e.defaultExport)||void 0===e?void 0:e.title}),[s]);return h().createElement(Tp,{rootId:t,pageTitle:l,convertedResult:o,url:a})}function Tp(e){let{rootId:t,pageTitle:i,convertedResult:a,url:n}=e;const s=(0,p.useRef)(null),r=(0,p.useRef)(null);return(0,p.useEffect)((()=>{const e=s.current;if(!e)return;const i=(0,op.d)(t),a=(0,wa.unstable_createRoot)(e,{portal:i,supportsUseChildren:!0});return r.current=a,()=>{a.unmount(),i.remove(),r.current=null}}),[t]),(0,p.useEffect)((()=>{var e;if(!a)return;const{brick:t,context:i,functions:s,templates:o}=a;null===(e=r.current)||void 0===e||e.render(t,{context:i,functions:s,templates:o,url:n})}),[a,n]),h().createElement(bp,{size:"large",className:np.container},h().createElement(gp,null,h().createElement(mp,{slot:"pageTitle",pageTitle:i||Vd(Ud.UNTITLED)}),h().createElement("div",{className:np.main,ref:s,"data-root-id":t})))}sp=Ep,({e:[cp,dp,pp,hp],c:[kp,lp]}=(0,d.A)(sp,[Ap("ai-portal.preview-container",{shadowOptions:!1})],[[fp({attribute:!1}),1,"source"],[fp(),1,"url"]],0,void 0,m.ReactNextElement)),lp();const Cp="bricks/ai-portal/action-buttons";g.i18n.getFixedT(null,Cp);var Sp,Np=i(11816);let Mp,_p,Rp,Wp,Ip,Lp,Dp,Op,zp;(0,g.initializeI18n)(Cp,{en:{},zh:{}});const Pp=(0,m.wrapBrick)("eo-icon"),Hp=(0,m.wrapBrick)("eo-button"),{defineElement:Bp,property:Up,event:Fp}=(0,u.createDecorators)();let Vp;var jp=new WeakMap,Gp=new WeakMap,Kp=new WeakMap,$p=new WeakSet,qp=new WeakMap;class Yp extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,$p),(0,s.A)(this,jp,_p(this)),(0,s.A)(this,Gp,(Rp(this),Wp(this))),(0,s.A)(this,Kp,(Ip(this),Lp(this))),(0,s.A)(this,qp,(zp(this),e=>{this.activeKey=e?e.key:null,(0,o.A)($p,this,Dp).emit(e)}))}get items(){return(0,c.A)(jp,this)}set items(e){(0,l.A)(jp,this,e)}get activeKey(){return(0,c.A)(Gp,this)}set activeKey(e){(0,l.A)(Gp,this,e)}render(){return h().createElement(Jp,{items:this.items,activeKey:this.activeKey,onChange:(0,c.A)(qp,this)})}}function Jp(e){let{items:t,activeKey:i,onChange:a}=e;const[n,s]=(0,p.useState)(null!=i?i:null),r=(0,p.useRef)(!1);(0,p.useEffect)((()=>{s(null!=i?i:null)}),[i]),(0,p.useEffect)((()=>{var e;r.current?a(n&&null!==(e=null==t?void 0:t.find((e=>!e.hidden&&e.key===n)))&&void 0!==e?e:null):r.current=!0}),[n,t,a]);const o=(0,p.useMemo)((()=>null==t?void 0:t.filter((e=>!e.hidden&&!n||e.key===n))),[t,n]);return h().createElement("div",{className:"button-container"},null==o?void 0:o.map((e=>{const{text:t,icon:i,key:a}=e;return h().createElement(Hp,{key:a,className:"action"+(n?" active":""),themeVariant:"elevo",type:"neutral",onClick:()=>{n||s(a)}},i?h().createElement(Pp,(0,kt.A)({className:"icon"},i)):null,t,n?h().createElement(Pp,{className:"remove",lib:"lucide",icon:"x",onClick:e=>{e.stopPropagation(),e.preventDefault(),s(null)}}):null)})))}Sp=Yp,({e:[_p,Rp,Wp,Ip,Lp,Dp,Op,zp],c:[Vp,Mp]}=(0,d.A)(Sp,[Bp("ai-portal.action-buttons",{styleTexts:[Np.A]})],[[Up({attribute:!1}),1,"items"],[Up(),1,"activeKey"],[Fp({type:"change"}),1,"change",e=>(0,c.A)(Kp,e),(e,t)=>(0,l.A)(Kp,e,t)]],0,(e=>qp.has((0,r.A)(e))),m.ReactNextElement)),Mp();let Xp=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 Qp="bricks/ai-portal/goal-card-list",Zp={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:"新对话"}},eh=g.i18n.getFixedT(null,Qp);var th=i(46342),ih=i(10335);let ah;(0,g.initializeI18n)(Qp,Zp);const nh=(0,m.wrapBrick)("eo-icon"),sh=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),rh=(0,m.wrapBrick)("eo-easyops-avatar"),oh=(0,m.wrapBrick)("eo-button"),lh={ready:"uncheck-status",working:"active-status",completed:"check-status"},ch=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:eh(Xp.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:eh(Xp.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:eh(Xp.COMPLETED_STATUS)}];function dh(e){let{goalItem:t,idWidth:i,cardStyle:a,onStatusChange:n,onTitleChange:s,onClick:r,onNewChat:o,onAppendChild:l,onRevokeAppendChild:c,isActive:d}=e;const{state:u,id:m,title:g,conversations:b,owner:A,pending:f}=t,k=(0,p.useRef)(!1),x=(0,p.useCallback)((()=>{k.current=!0}),[]),v=(0,p.useCallback)((()=>{k.current=!1}),[]),[w,E]=(0,p.useState)(!1),y=(0,p.useCallback)((()=>{E(!0)}),[]),T=(0,p.useCallback)((e=>{E(!1);const t=e.currentTarget.textContent;!f||null!=t&&t.trim()?null!==t&&g!==t&&(null==s||s(t)):null==c||c()}),[f,g,c,s]),C=(0,p.useCallback)((e=>{k.current||"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]),S=(0,p.useRef)(null);return(0,p.useEffect)((()=>{var e;f&&(null===(e=S.current)||void 0===e||e.focus())}),[f]),h().createElement("div",{className:ya()("goal-item",t.state,{editing:w},{active:d}),style:{paddingLeft:24*(t.level+1)+"px",...a},onClick:f?void 0:r},h().createElement("div",{className:"start"},h().createElement(sh,{actions:ch,disabled:f,onActionClick:e=>{var t;t=e.detail,null==n||n(t.key)}},h().createElement(nh,{className:"icon",lib:"easyops",category:"colored-common",icon:lh[u],onClick:e=>e.stopPropagation()})),h().createElement("span",{className:"serial-number",style:{width:i}},"#",f?"":m),h().createElement("span",{className:"title",ref:S,onClick:e=>e.stopPropagation(),onFocus:y,onBlur:T,onKeyDown:C,onCompositionStart:x,onCompositionEnd:v,contentEditable:(N=!0,N?function(){if("boolean"!=typeof ah){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),ah="plaintext-only"===e.contentEditable}return ah}()?"plaintext-only":"true":"false"),suppressContentEditableWarning:!0},g)),h().createElement("div",{className:"end"},h().createElement("div",{className:"info"},h().createElement("div",{className:"message"},h().createElement(nh,{lib:"easyops",category:"common",icon:"message"}),h().createElement("span",{className:"count"},b||0)),h().createElement(rh,{nameOrInstanceId:null==A?void 0:A.instanceId,size:"small"})),h().createElement("div",{className:"operation",onClick:e=>e.stopPropagation()},0===t.level&&h().createElement(oh,{className:"append-child",themeVariant:"elevo",type:"neutral",size:"small",onClick:l},h().createElement(nh,{lib:"lucide",icon:"plus"})),!f&&h().createElement(oh,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:o},eh(Xp.NEW_CHAT)))));var N}var ph;let hh,uh,mh,gh,bh,Ah,fh,kh,xh,vh,wh,Eh,yh,Th,Ch,Sh,Nh,Mh,_h,Rh,Wh,Ih,Lh,Dh;(0,g.initializeI18n)(Qp,Zp);const{defineElement:Oh,property:zh,event:Ph,method:Hh}=(0,u.createDecorators)(),Bh=(0,m.wrapBrick)("eo-icon"),Uh=(0,p.forwardRef)(au);let Fh;var Vh=new WeakMap,jh=new WeakMap,Gh=new WeakMap,Kh=new WeakMap,$h=new WeakSet,qh=new WeakMap,Yh=new WeakMap,Jh=new WeakMap,Xh=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,eu=new WeakMap,tu=new WeakMap;class iu extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,$h),(0,s.A)(this,Vh,(hh(this),mh(this))),(0,s.A)(this,jh,(gh(this),bh(this))),(0,s.A)(this,Gh,(Ah(this),fh(this))),(0,s.A)(this,Kh,(kh(this),xh(this))),(0,s.A)(this,qh,(Eh(this),e=>{(0,o.A)($h,this,vh).emit(e)})),(0,s.A)(this,Yh,yh(this)),(0,s.A)(this,Jh,(Sh(this),e=>{(0,o.A)($h,this,Th).emit(e)})),(0,s.A)(this,Xh,Nh(this)),(0,s.A)(this,Qh,(Rh(this),e=>{(0,o.A)($h,this,Mh).emit(e)})),(0,s.A)(this,Zh,Wh(this)),(0,s.A)(this,eu,(Dh(this),e=>{(0,o.A)($h,this,Ih).emit(e)})),(0,s.A)(this,tu,(0,p.createRef)())}get goalList(){return(0,c.A)(Vh,this)}set goalList(e){(0,l.A)(Vh,this,e)}get cardStyle(){return(0,c.A)(jh,this)}set cardStyle(e){(0,l.A)(jh,this,e)}get activeKey(){return(0,c.A)(Gh,this)}set activeKey(e){(0,l.A)(Gh,this,e)}appendChildDone(e,t){var i;null===(i=(0,c.A)(tu,this).current)||void 0===i||i.appendChildDone(e,t)}render(){return h().createElement(Uh,{ref:(0,c.A)(tu,this),goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,c.A)(Qh,this),onStatusChange:(0,c.A)(Jh,this),onItemClick:(0,c.A)(qh,this),onNewChat:(0,c.A)(eu,this),activeKey:this.activeKey})}}function au(e,t){let{goalList:i,cardStyle:a,onTitleChange:n,onStatusChange:s,onItemClick:r,onNewChat:o,activeKey:l}=e;const[c,d]=(0,p.useState)(i);(0,p.useEffect)((()=>{d(i)}),[i]);const u=(e,t,i,a)=>{const n={...e,[t]:i};d(null==c?void 0:c.map((e=>e.instanceId===n.instanceId?n:e))),null==a||a(n)};(0,p.useImperativeHandle)(t,(()=>({appendChildDone:(e,t)=>{d((i=>null==i?void 0:i.map((i=>i.instanceId===e?{...t,level:i.level}:i))))}})),[]);const m=(0,p.useMemo)((()=>{var e;return 10*((null!==(e=null==c?void 0:c.reduce(((e,t)=>Math.max(e,t.id)),0))&&void 0!==e?e:0).toString().length+1)}),[c]);return c?h().createElement("div",{className:"goal-container"},null==c?void 0:c.map((e=>h().createElement(dh,{key:e.instanceId,isActive:l===e.instanceId,goalItem:e,idWidth:m,cardStyle:a,onTitleChange:t=>((e,t)=>{u(t,"title",e,n)})(t,e),onStatusChange:t=>((e,t)=>{u(t,"state",e,s)})(t,e),onNewChat:()=>null==o?void 0:o(e),onClick:()=>null==r?void 0:r(e),onAppendChild:()=>(e=>{const t={instanceId:(0,jc.uniqueId)("pending-"),pending:!0,id:0,title:"",state:"ready",level:1,pendingParentId:e.instanceId};d((i=>{var a;const n=null!==(a=null==i?void 0:i.findIndex((t=>t.instanceId===e.instanceId)))&&void 0!==a?a:-1;if(-1===n)return i;const s=i.slice(n+1).findIndex((e=>0===e.level))+1;return 0===s?[...i,t]:[...i.slice(0,n+s),t,...i.slice(n+s)]}))})(e),onRevokeAppendChild:()=>{d((t=>null==t?void 0:t.filter((t=>t.instanceId!==e.instanceId))))}})))):h().createElement("div",{className:"loading"},h().createElement(Bh,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}ph=iu,({e:[mh,gh,bh,Ah,fh,kh,xh,vh,wh,Eh,yh,Th,Ch,Sh,Nh,Mh,_h,Rh,Wh,Ih,Lh,Dh,hh],c:[Fh,uh]}=(0,d.A)(ph,[Oh("ai-portal.goal-card-list",{styleTexts:[ih.A,th.A]})],[[zh({attribute:!1}),1,"goalList"],[zh({attribute:!1}),1,"cardStyle"],[zh(),1,"activeKey"],[Ph({type:"item.click"}),1,"itemClickEvent",e=>(0,c.A)(Kh,e),(e,t)=>(0,l.A)(Kh,e,t)],[Ph({type:"item.status.change"}),1,"itemStatusChangeEvent",e=>(0,c.A)(Yh,e),(e,t)=>(0,l.A)(Yh,e,t)],[Ph({type:"item.title.change"}),1,"itemTitleChangeEvent",e=>(0,c.A)(Xh,e),(e,t)=>(0,l.A)(Xh,e,t)],[Ph({type:"item.new.chat"}),1,"itemNewChatEvent",e=>(0,c.A)(Zh,e),(e,t)=>(0,l.A)(Zh,e,t)],[Hh(),2,"appendChildDone"]],0,(e=>tu.has((0,r.A)(e))),m.ReactNextElement)),uh();var nu=i(62916);let su=function(e){return e.PROJECT_OVERALL="PROJECT_OVERALL",e}({});const ru="bricks/ai-portal/project-conversations",ou=g.i18n.getFixedT(null,ru);var lu,cu=i(79286);let du,pu,hu,uu,mu,gu,bu,Au,fu,ku,xu,vu,wu,Eu,yu,Tu,Cu;(0,g.initializeI18n)(ru,{en:{PROJECT_OVERALL:"Project overall"},zh:{PROJECT_OVERALL:"项目整体"}});const Su=(0,m.wrapBrick)("eo-link"),Nu=(0,m.wrapBrick)("eo-icon"),Mu=(0,m.wrapBrick)("eo-easyops-avatar"),_u=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Ru,property:Wu,event:Iu}=(0,u.createDecorators)();let Lu;var Du=new WeakMap,Ou=new WeakMap,zu=new WeakMap,Pu=new WeakMap,Hu=new WeakMap,Bu=new WeakSet,Uu=new WeakMap,Fu=new WeakMap,Vu=new WeakMap;class ju extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Bu),(0,s.A)(this,Du,pu(this)),(0,s.A)(this,Ou,(hu(this),uu(this))),(0,s.A)(this,zu,(mu(this),gu(this))),(0,s.A)(this,Pu,(bu(this),Au(this))),(0,s.A)(this,Hu,(fu(this),ku(this))),(0,s.A)(this,Uu,(wu(this),e=>{(0,o.A)(Bu,this,xu).emit(e)})),(0,s.A)(this,Fu,Eu(this)),(0,s.A)(this,Vu,(Cu(this),e=>{(0,o.A)(Bu,this,yu).emit(e)}))}get list(){return(0,c.A)(Du,this)}set list(e){(0,l.A)(Du,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)(zu,this)}set actions(e){(0,l.A)(zu,this,e)}get goals(){return(0,c.A)(Pu,this)}set goals(e){(0,l.A)(Pu,this,e)}render(){return h().createElement(Gu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,goals:this.goals,onGoalClick:(0,c.A)(Uu,this),onActionClick:(0,c.A)(Vu,this)})}}function Gu(e){let{list:t,urlTemplate:i,actions:a,goals:n,onGoalClick:s,onActionClick:r}=e;return t?h().createElement("ul",null,t.map((e=>h().createElement("li",{className:"item",key:e.conversationId},h().createElement(Ku,{conversation:e,urlTemplate:i,actions:a,goals:n,onGoalClick:s,onActionClick:r}))))):h().createElement("div",{className:"loading"},h().createElement(Nu,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function Ku(e){var t;let{conversation:i,urlTemplate:a,actions:n,goals:s,onGoalClick:r,onActionClick:o}=e;const l=(0,p.useRef)(null),c=g.i18n.language.split("-")[0];(0,p.useEffect)((()=>{const e=l.current;if(!e)return;const t=e=>{e.stopPropagation(),e.preventDefault(),r(i)};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[i,r]);const[d,u]=(0,p.useState)(!1);return h().createElement(Su,{className:ya()("link",{"actions-active":d}),url:(0,nl.Q)(a,i)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(Nu,{className:"icon",lib:"easyops",category:"common",icon:"clock"}),h().createElement("div",{className:"title"},i.title)),i.description&&h().createElement("div",{className:"description"},i.description)),s&&h().createElement("div",{className:ya()("goal",{global:!i.goalInstanceId}),ref:l},i.goalInstanceId?null===(t=s.find((e=>e.instanceId===i.goalInstanceId)))||void 0===t?void 0:t.title:ou(su.PROJECT_OVERALL)),h().createElement(Mu,{className:"avatar",size:"small",nameOrInstanceId:i.username}),h().createElement("div",{className:`operations lang-${c}`},h().createElement(_u,{className:"actions",actions:n,onActionClick:e=>{o({action:e.detail,item:i})},onVisibleChange:e=>{u(e.detail)}}),h().createElement("div",{className:"time",title:(0,nu.P)(1e3*i.startTime,nu.c.full)},(0,nu.P)(1e3*i.startTime,nu.c.relative))))}lu=ju,({e:[pu,hu,uu,mu,gu,bu,Au,fu,ku,xu,vu,wu,Eu,yu,Tu,Cu],c:[Lu,du]}=(0,d.A)(lu,[Ru("ai-portal.project-conversations",{styleTexts:[cu.A]})],[[Wu({attribute:!1}),1,"list"],[Wu(),1,"urlTemplate"],[Wu({attribute:!1}),1,"actions"],[Wu({attribute:!1}),1,"goals"],[Iu({type:"goal.click"}),1,"goalClick",e=>(0,c.A)(Hu,e),(e,t)=>(0,l.A)(Hu,e,t)],[Iu({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Fu,e),(e,t)=>(0,l.A)(Fu,e,t)]],0,(e=>Vu.has((0,r.A)(e))),m.ReactNextElement)),du();var $u,qu=i(23677);let Yu,Ju,Xu,Qu,Zu,em,tm,im,am,nm,sm,rm,om,lm,cm;const dm=(0,m.wrapBrick)("eo-link"),pm=(0,m.wrapBrick)("eo-icon"),hm=(0,m.wrapBrick)("eo-easyops-avatar"),um=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:mm,property:gm,event:bm}=(0,u.createDecorators)();let Am;var fm=new WeakMap,km=new WeakMap,xm=new WeakMap,vm=new WeakMap,wm=new WeakSet,Em=new WeakMap,ym=new WeakMap,Tm=new WeakMap;class Cm extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,wm),(0,s.A)(this,fm,Ju(this)),(0,s.A)(this,km,(Xu(this),Qu(this))),(0,s.A)(this,xm,(Zu(this),em(this))),(0,s.A)(this,vm,(tm(this),im(this))),(0,s.A)(this,Em,(sm(this),rm(this))),(0,s.A)(this,ym,(cm(this),e=>{(0,o.A)(wm,this,am).emit(e)})),(0,s.A)(this,Tm,(e=>{(0,o.A)(wm,this,om).emit(e)}))}get list(){return(0,c.A)(fm,this)}set list(e){(0,l.A)(fm,this,e)}get urlTemplate(){return(0,c.A)(km,this)}set urlTemplate(e){(0,l.A)(km,this,e)}get actions(){return(0,c.A)(xm,this)}set actions(e){(0,l.A)(xm,this,e)}render(){return h().createElement(Sm,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,onActionClick:(0,c.A)(ym,this),onItemClick:(0,c.A)(Tm,this)})}}function Sm(e){let{list:t,urlTemplate:i,actions:a,onActionClick:n,onItemClick:s}=e;return t?h().createElement("ul",null,null==t?void 0:t.map((e=>h().createElement("li",{className:"item",key:e.instanceId},h().createElement(Nm,{knowledge:e,urlTemplate:i,actions:a,onActionClick:n,onItemClick:s}))))):h().createElement("div",{className:"loading"},h().createElement(pm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function Nm(e){let{knowledge:t,urlTemplate:i,actions:a,onActionClick:n,onItemClick:s}=e;const[r,o]=(0,p.useState)(!1);return h().createElement(dm,{className:ya()("link",{"actions-active":r}),url:(0,nl.Q)(i,t),onClick:()=>null==s?void 0:s(t)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(pm,{className:"icon",lib:"easyops",icon:"lightbulb",category:"common"}),h().createElement("span",{className:"title"},t.name),h().createElement(pm,{className:"attachment",lib:"lucide",icon:"paperclip"})),t.description&&h().createElement("div",{className:"description"},t.description)),h().createElement("div",{className:"time"},(0,nu.P)(1e3*t.time,nu.c.relative)),h().createElement("div",{className:"operations"},h().createElement(um,{className:"actions",actions:a,onActionClick:e=>{n({action:e.detail,item:t})},onVisibleChange:e=>{o(e.detail)}}),h().createElement(hm,{className:"avatar",size:"small",nameOrInstanceId:t.user})))}$u=Cm,({e:[Ju,Xu,Qu,Zu,em,tm,im,am,nm,sm,rm,om,lm,cm],c:[Am,Yu]}=(0,d.A)($u,[mm("ai-portal.project-knowledges",{styleTexts:[qu.A]})],[[gm({attribute:!1}),1,"list"],[gm(),1,"urlTemplate"],[gm({attribute:!1}),1,"actions"],[bm({type:"action.click"}),1,"actionClick",e=>(0,c.A)(vm,e),(e,t)=>(0,l.A)(vm,e,t)],[bm({type:"item.click"}),1,"itemClick",e=>(0,c.A)(Em,e),(e,t)=>(0,l.A)(Em,e,t)]],0,(e=>Tm.has((0,r.A)(e))),m.ReactNextElement)),Yu();let Mm=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 _m="bricks/ai-portal/activity-timeline",Rm=g.i18n.getFixedT(null,_m);var Wm,Im=i(14763);let Lm,Dm,Om,zm,Pm;(0,g.initializeI18n)(_m,{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 Hm=(0,m.wrapBrick)("eo-link"),Bm=(0,m.wrapBrick)("eo-icon"),Um=(0,m.wrapBrick)("eo-easyops-avatar"),{defineElement:Fm,property:Vm}=(0,u.createDecorators)();let jm;var Gm=new WeakMap,Km=new WeakMap;class $m extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Gm,Dm(this)),(0,s.A)(this,Km,(Om(this),zm(this))),Pm(this)}get list(){return(0,c.A)(Gm,this)}set list(e){(0,l.A)(Gm,this,e)}get chatUrlTemplate(){return(0,c.A)(Km,this)}set chatUrlTemplate(e){(0,l.A)(Km,this,e)}render(){return h().createElement(qm,{list:this.list,chatUrlTemplate:this.chatUrlTemplate})}}function qm(e){let{list:t,chatUrlTemplate:i}=e;return t?h().createElement("ul",null,t.map(((e,t)=>{var a,n;return h().createElement("li",{className:"activity",key:t},h().createElement("div",{className:"guide-line"}),h().createElement("div",{className:"main"},h().createElement(Um,{className:"avatar",nameOrInstanceId:e.user_id,size:"xs"}),h().createElement("span",{className:"action"},e.user_name," ","start_conversation"===e.action_type?h().createElement(h().Fragment,null,h().createElement("span",null,Rm(Mm.STARTED_A_CHAT)),h().createElement(Hm,{className:"conversation",url:(0,nl.Q)(i,e),target:"_blank"},null===(a=e.metadata)||void 0===a?void 0:a.conversation_title),h().createElement(Bm,{className:"external-link-icon",lib:"lucide",icon:"external-link"})):"create_goal"===e.action_type?Rm(Mm.CREATED_THIS_GOAL):"edit_goal"===e.action_type?e.metadata.after.title?Rm(Mm.CHANGED_THE_GOAL_TITLE,e.metadata.after):e.metadata.after.description?Rm(Mm.CHANGED_THE_GOAL_DESCRIPTION,e.metadata.after):Rm(Mm.CHANGED_THE_GOAL):"delete_goal"===e.action_type?Rm(Mm.DELETED_THIS_GOAL):"decompose_goals"===e.action_type?`${Rm(Mm.DECOMPOSED_THIS_GOAL,{count:e.metadata.sub_goals_count})}${e.metadata.sub_goals.map((e=>e.title)).join(Rm(Mm.COMMA))}`:"alter_owner"===e.action_type?Rm(Mm.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 s=[];return t.length>0&&s.push(Rm(Mm.REMOVED_GOAL_PARTICIPANTS,{count:t.length})+t.join(Rm(Mm.COMMA))),i.length>0&&s.push(Rm(Mm.ADDED_GOAL_PARTICIPANTS,{count:i.length})+i.join(Rm(Mm.COMMA))),s.join(Rm(Mm.SEMICOLON))}(e):"add_comment"===e.action_type?Rm(Mm.COMMENTED):e.action_type),h().createElement("span",{className:"time",title:(0,nu.P)(e.time,nu.c.full)},(0,nu.P)(e.time,nu.c.relative))),"add_comment"===e.action_type&&h().createElement("div",{className:"comment"},null===(n=e.metadata)||void 0===n?void 0:n.comment_content))}))):h().createElement("div",{className:"loading"},h().createElement(Bm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Wm=$m,({e:[Dm,Om,zm,Pm],c:[jm,Lm]}=(0,d.A)(Wm,[Fm("ai-portal.activity-timeline",{styleTexts:[Im.A]})],[[Vm({attribute:!1}),1,"list"],[Vm(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),Lm();let Ym=function(e){return e.TERMINATE_THE_TASK="TERMINATE_THE_TASK",e}({});const Jm="bricks/ai-portal/chat-input",Xm=g.i18n.getFixedT(null,Jm);var Qm,Zm=i(84479);let eg,tg,ig,ag,ng,sg,rg,og,lg,cg,dg,pg,hg,ug,mg,gg,bg,Ag,fg;(0,g.initializeI18n)(Jm,{en:{TERMINATE_THE_TASK:"Terminate the task"},zh:{TERMINATE_THE_TASK:"终止任务"}});const kg={lib:"antd",icon:"loading-3-quarters",spinning:!0},xg={lib:"fa",prefix:"far",icon:"circle-stop"},vg=(0,m.wrapBrick)("eo-icon"),wg=(0,m.wrapBrick)("ai-portal.icon-button"),{defineElement:Eg,property:yg,event:Tg}=(0,u.createDecorators)();let Cg;var Sg=new WeakMap,Ng=new WeakMap,Mg=new WeakMap,_g=new WeakMap,Rg=new WeakMap,Wg=new WeakMap,Ig=new WeakSet,Lg=new WeakMap,Dg=new WeakMap,Og=new WeakMap;class zg extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,Ig),(0,s.A)(this,Sg,tg(this)),(0,s.A)(this,Ng,(ig(this),ag(this))),(0,s.A)(this,Mg,(ng(this),sg(this))),(0,s.A)(this,_g,(rg(this),og(this))),(0,s.A)(this,Rg,(lg(this),cg(this))),(0,s.A)(this,Wg,(dg(this),pg(this))),(0,s.A)(this,Lg,(mg(this),e=>{(0,o.A)(Ig,this,hg).emit(e)})),(0,s.A)(this,Dg,gg(this)),(0,s.A)(this,Og,(fg(this),()=>{(0,o.A)(Ig,this,bg).emit()}))}get placeholder(){return(0,c.A)(Sg,this)}set placeholder(e){(0,l.A)(Sg,this,e)}get autoFocus(){return(0,c.A)(Ng,this)}set autoFocus(e){(0,l.A)(Ng,this,e)}get submitDisabled(){return(0,c.A)(Mg,this)}set submitDisabled(e){(0,l.A)(Mg,this,e)}get supportsTerminate(){return(0,c.A)(_g,this)}set supportsTerminate(e){(0,l.A)(_g,this,e)}get terminating(){return(0,c.A)(Rg,this)}set terminating(e){(0,l.A)(Rg,this,e)}render(){return h().createElement(Pg,{placeholder:this.placeholder,autoFocus:this.autoFocus,submitDisabled:this.submitDisabled,supportsTerminate:this.supportsTerminate,terminating:this.terminating,onSubmit:(0,c.A)(Lg,this),onTerminate:(0,c.A)(Og,this)})}}function Pg(e){let{placeholder:t,autoFocus:i,submitDisabled:a,supportsTerminate:n,terminating:s,onSubmit:r,onTerminate:o}=e;const l=(0,p.useRef)(null),c=(0,p.useRef)(null),[d,u]=(0,p.useState)(""),m=(0,p.useRef)(""),[g,b]=(0,p.useState)(!1);(0,p.useEffect)((()=>{var e;i&&!a&&(null===(e=c.current)||void 0===e||e.focus())}),[i,a]);const A=(0,p.useCallback)((e=>{!a&&e&&(r(e),m.current="",u(""))}),[a,r]),f=(0,p.useCallback)((e=>{A(e.currentTarget.value)}),[A]),k=(0,p.useCallback)((e=>{m.current=e.target.value,u(e.target.value)}),[]),x=(0,p.useCallback)((()=>{A(m.current)}),[A]);(0,p.useEffect)((()=>{const e=null==l?void 0:l.current;if(!e)return;const t=new xt.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,p.useEffect)((()=>{d||b(!1)}),[d]);const v=(0,p.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 h().createElement("div",{className:"container",onClick:v},h().createElement("div",{className:ya()("box",{wrap:g})},h().createElement("div",{className:"input",ref:l},h().createElement(Et,{containerRef:l,ref:c,value:d,minRows:1,maxRows:4,borderSize:0,paddingSize:16,autoResize:!0,placeholder:t,submitWhen:"enter-without-shift",onSubmit:f,onChange:k})),h().createElement("div",{className:"toolbar"},a&&n?h().createElement(h().Fragment,null,s?h().createElement(wg,{icon:kg,disabled:!0}):h().createElement(wg,{icon:xg,tooltip:Xm(Ym.TERMINATE_THE_TASK),onClick:o})):h().createElement("button",{className:"btn-send",disabled:a||!d,onClick:x},h().createElement(vg,{lib:"fa",icon:"arrow-up"})))))}Qm=zg,({e:[tg,ig,ag,ng,sg,rg,og,lg,cg,dg,pg,hg,ug,mg,gg,bg,Ag,fg],c:[Cg,eg]}=(0,d.A)(Qm,[Eg("ai-portal.chat-input",{styleTexts:[Zm.A],shadowOptions:{delegatesFocus:!0}})],[[yg(),1,"placeholder"],[yg({type:Boolean}),1,"autoFocus"],[yg({type:Boolean}),1,"submitDisabled"],[yg({type:Boolean}),1,"supportsTerminate"],[yg({type:Boolean}),1,"terminating"],[Tg({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Wg,e),(e,t)=>(0,l.A)(Wg,e,t)],[Tg({type:"terminate"}),1,"terminate",e=>(0,c.A)(Dg,e),(e,t)=>(0,l.A)(Dg,e,t)]],0,(e=>Og.has((0,r.A)(e))),m.ReactNextElement)),eg();const Hg=i.p+"images/e47076cc.png";var Bg,Ug=i(31653);let Fg;const{defineElement:Vg}=(0,u.createDecorators)();let jg;class Gg extends m.ReactNextElement{render(){return h().createElement("img",{className:"logo",alt:"Elevo",src:Hg,width:95,height:28})}}Bg=Gg,[jg,Fg]=(0,d.A)(Bg,[Vg("ai-portal.elevo-logo",{styleTexts:[Ug.A]})],[],0,void 0,m.ReactNextElement).c,Fg();let Kg=function(e){return e.WATCH_REPLAY="WATCH_REPLAY",e}({});const $g="bricks/ai-portal/show-case",qg={en:{[Kg.WATCH_REPLAY]:"Watch replay"},zh:{[Kg.WATCH_REPLAY]:"查看回放"}},Yg=g.i18n.getFixedT(null,$g);var Jg,Xg=i(46122);let Qg,Zg,eb,tb,ib,ab,nb;(0,g.initializeI18n)($g,qg);const sb=["purple","green","pink"],rb=(0,m.wrapBrick)("eo-icon"),ob=(0,m.wrapBrick)("eo-link"),{defineElement:lb,property:cb}=(0,u.createDecorators)();let db;var pb=new WeakMap,hb=new WeakMap,ub=new WeakMap;class mb extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,pb,Zg(this)),(0,s.A)(this,hb,(eb(this),tb(this))),(0,s.A)(this,ub,(ib(this),ab(this))),nb(this)}get caseTitle(){return(0,c.A)(pb,this)}set caseTitle(e){(0,l.A)(pb,this,e)}get summary(){return(0,c.A)(hb,this)}set summary(e){(0,l.A)(hb,this,e)}get url(){return(0,c.A)(ub,this)}set url(e){(0,l.A)(ub,this,e)}render(){return h().createElement(gb,{caseTitle:this.caseTitle,summary:this.summary,url:this.url})}}function gb(e){let{caseTitle:t,summary:i,url:a}=e;const n=(0,p.useMemo)((()=>{if(!t)return sb[0];let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const i=Math.abs(e)%sb.length;return sb[i]}),[t]);return h().createElement(ob,{className:`link ${n}`,url:a},h().createElement("span",{className:"title"},t),h().createElement("span",{className:"description"},i),h().createElement("span",{className:"mask"}),h().createElement("span",{className:"button"},h().createElement(rb,{lib:"easyops",icon:"replay"}),Yg(Kg.WATCH_REPLAY)))}Jg=mb,({e:[Zg,eb,tb,ib,ab,nb],c:[db,Qg]}=(0,d.A)(Jg,[lb("ai-portal.show-case",{styleTexts:[Xg.A]})],[[cb(),1,"caseTitle"],[cb(),1,"summary"],[cb(),1,"url"]],0,void 0,m.ReactNextElement)),Qg();var bb=i(22919);customElements.define("ai-portal.call-tool",(0,Yl.createProviderClass)((async function(e,t){return(await bb.http.post(`api/gateway/logic.llm.aiops_service/api/v1/elevo/conversation/${e.conversationId}/step/${e.stepId}/view`,{params:t})).data})));const Ab=i.p+"images/449e2e64.png",fb=i.p+"images/fc2c99bb.png",kb=i.p+"images/27bd64e1.png",xb=i.p+"images/c19e3f37.png";var vb,wb=i(19428);let Eb,yb,Tb,Cb,Sb;const{defineElement:Nb,property:Mb}=(0,u.createDecorators)();let _b;var Rb=new WeakMap,Wb=new WeakMap;class Ib extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,Rb,yb(this)),(0,s.A)(this,Wb,(Tb(this),Cb(this))),Sb(this)}get illustration(){return(0,c.A)(Rb,this)}set illustration(e){(0,l.A)(Rb,this,e)}get description(){return(0,c.A)(Wb,this)}set description(e){(0,l.A)(Wb,this,e)}render(){return h().createElement(Lb,{illustration:this.illustration,description:this.description})}}function Lb(e){let{illustration:t,description:i}=e;return h().createElement(h().Fragment,null,h().createElement("img",{src:Db(t),width:184,height:138}),h().createElement("p",null,i))}function Db(e){switch(e){case"goals":return Ab;case"collaboration-spaces":return kb;case"serviceflows":return xb;default:return fb}}vb=Ib,({e:[yb,Tb,Cb,Sb],c:[_b,Eb]}=(0,d.A)(vb,[Nb("ai-portal.blank-state",{styleTexts:[wb.A]})],[[Mb(),1,"illustration"],[Mb(),1,"description"]],0,void 0,m.ReactNextElement)),Eb();var Ob,zb=i(81129);let Pb,Hb,Bb;const{defineElement:Ub,property:Fb}=(0,u.createDecorators)();let Vb;var jb=new WeakMap;class Gb extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,jb,Hb(this)),Bb(this)}get variant(){return(0,c.A)(jb,this)}set variant(e){(0,l.A)(jb,this,e)}render(){return h().createElement(Kb,null)}}function Kb(){return h().createElement("slot",null)}Ob=Gb,({e:[Hb,Bb],c:[Vb,Pb]}=(0,d.A)(Ob,[Ub("ai-portal.sticky-container",{styleTexts:[zb.A]})],[[Fb({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),Pb();var $b,qb=i(18338);let Yb,Jb,Xb,Qb,Zb,eA,tA,iA,aA,nA,sA;const rA=(0,m.wrapBrick)("eo-link"),oA=(0,m.wrapBrick)("eo-icon"),{defineElement:lA,property:cA}=(0,u.createDecorators)();let dA;var pA=new WeakMap,hA=new WeakMap,uA=new WeakMap,mA=new WeakMap,gA=new WeakMap;class bA extends m.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,pA,Jb(this)),(0,s.A)(this,hA,(Xb(this),Qb(this))),(0,s.A)(this,uA,(Zb(this),eA(this))),(0,s.A)(this,mA,(tA(this),iA(this))),(0,s.A)(this,gA,(aA(this),nA(this))),sA(this)}get cardTitle(){return(0,c.A)(pA,this)}set cardTitle(e){(0,l.A)(pA,this,e)}get description(){return(0,c.A)(hA,this)}set description(e){(0,l.A)(hA,this,e)}get url(){return(0,c.A)(uA,this)}set url(e){(0,l.A)(uA,this,e)}get avatar(){return(0,c.A)(mA,this)}set avatar(e){(0,l.A)(mA,this,e)}get avatarType(){return(0,c.A)(gA,this)}set avatarType(e){(0,l.A)(gA,this,e)}render(){return h().createElement(AA,{cardTitle:this.cardTitle,description:this.description,url:this.url,avatar:this.avatar,avatarType:this.avatarType})}}function AA(e){let{cardTitle:t,description:i,url:a,avatar:n,avatarType:s}=e;return h().createElement(rA,{className:ya()("card",{clickable:!!a}),url:a},h().createElement("div",{className:"header"},h().createElement("div",{className:"heading"},"image"!==s&&n?h().createElement(fA,n):h().createElement("div",{className:"avatar"}),h().createElement("div",{className:"title"},t)),h().createElement("div",{className:"actions"},h().createElement("slot",{name:"actions"}))),h().createElement("div",{className:"body"},i),h().createElement("div",{className:"footer"},h().createElement("slot",{name:"footer"})))}function fA(e){let{color:t,...i}=e;return h().createElement("div",{className:"avatar",style:t?{borderColor:`rgba(var(--theme-${t}-color-rgb-channel), 0.15)`,color:`var(--theme-${t}-color)`}:void 0},h().createElement(oA,i))}$b=bA,({e:[Jb,Xb,Qb,Zb,eA,tA,iA,aA,nA,sA],c:[dA,Yb]}=(0,d.A)($b,[lA("ai-portal.elevo-card",{styleTexts:[qb.A]})],[[cA(),1,"cardTitle"],[cA(),1,"description"],[cA(),1,"url"],[cA({attribute:!1}),1,"avatar"],[cA(),1,"avatarType"]],0,void 0,m.ReactNextElement)),Yb();var kA=i(29511);const xA=window.devicePixelRatio||1,vA=40,wA=12,EA=36*Math.PI/180,yA=wA*(1-Math.sin(EA)),TA=wA*Math.cos(EA),CA=(vA-2*yA)*Math.tan(EA),SA=TA+CA/2;var NA;let MA,_A,RA,WA,IA,LA,DA,OA,zA;const{defineElement:PA,property:HA,event:BA}=(0,u.createDecorators)();let UA;var FA=new WeakMap,VA=new WeakMap,jA=new WeakMap,GA=new WeakSet,KA=new WeakMap;class $A extends m.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,GA),(0,s.A)(this,FA,_A(this)),(0,s.A)(this,VA,(RA(this),WA(this))),(0,s.A)(this,jA,(IA(this),LA(this))),(0,s.A)(this,KA,(zA(this),e=>{this.activeTab=e.id,(0,o.A)(GA,this,DA).emit(e)}))}get tabs(){return(0,c.A)(FA,this)}set tabs(e){(0,l.A)(FA,this,e)}get activeTab(){return(0,c.A)(VA,this)}set activeTab(e){(0,l.A)(VA,this,e)}render(){return h().createElement(qA,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(KA,this)})}}function qA(e){let{tabs:t,activeTab:i,onTabClick:a}=e;const n=(0,p.useRef)(null),s=(0,p.useRef)(null),r=(0,p.useRef)(null);return(0,p.useEffect)((()=>{const e=n.current,i=s.current,a=r.current;if(!(e&&i&&a&&null!=t&&t.length))return;const o=i.getContext("2d");if(!o)return;let l,c;const d=new xt.A((t=>{for(const i of t)if(i.target===e){const e=YA(i,"width"),t=YA(i,"height");l=[e,t]}const n=a.querySelector(".tab").getBoundingClientRect().width,s=Array.from(a.querySelectorAll(".tab")),r=s.find((e=>e.classList.contains("active"))),d=0===(r?s.indexOf(r):0);let p=0;if(!d){const e=a.getBoundingClientRect().left,t=r.getBoundingClientRect().left;p=t-e}c&&cancelAnimationFrame(c),c=requestAnimationFrame((()=>{l&&function(e,t,i,a,n,s,r){e.width=i*xA,e.height=a*xA,e.style.width=`${i}px`,e.style.height=`${a}px`,t.scale(xA,xA),t.clearRect(0,0,i,a),t.fillStyle="rgba(255,255,255,0.5)";const o=t.createLinearGradient(0,0,0,a);o.addColorStop(0,"rgba(255,255,255,0.9)"),o.addColorStop(1,"rgba(255,255,255,0.4)"),t.lineWidth=1,t.strokeStyle=o;const l=i-1,c=a-1;if(t.translate(.5,.5),t.beginPath(),n)t.moveTo(0,wA),t.arcTo(0,0,wA,0,wA);else{t.moveTo(0,52),t.arcTo(0,vA,wA,vA,wA);const e=s-SA;t.lineTo(e,vA),t.arc(e,28,wA,Math.PI/2,EA,!0),t.lineTo(e+TA+CA,yA),t.arc(e+2*SA,wA,wA,Math.PI+EA,1.5*Math.PI,!1)}const d=s+r-SA;t.lineTo(d,0),t.arc(d,wA,wA,1.5*Math.PI,2*Math.PI-EA,!1),t.lineTo(d+TA+CA,vA-yA),t.arc(d+2*SA,28,wA,Math.PI-EA,Math.PI/2,!0),t.lineTo(l-wA,vA),t.arcTo(l,vA,l,52,wA),t.lineTo(l,c-wA),t.arcTo(l,c,l-wA,c,wA),t.lineTo(wA,c),t.arcTo(0,c,0,c-wA,wA),t.closePath(),t.fill(),t.stroke()}(i,o,l[0],l[1],d,p,n)}))}));return d.observe(e),d.observe(a),()=>{d.disconnect(),c&&cancelAnimationFrame(c)}}),[t,i]),h().createElement("div",{className:"container",ref:n},h().createElement("canvas",{className:"bg",ref:s}),h().createElement("div",{className:"header"},h().createElement("ul",{className:"tabs",ref:r},null==t?void 0:t.map((e=>h().createElement("li",{key:e.id,part:"tab",className:ya()("tab",{active:e.id===i})},h().createElement("a",{onClick:()=>a(e)},e.label))))),h().createElement("div",{className:"toolbar"},h().createElement("slot",{name:"toolbar"}))),h().createElement("div",{className:"body"},h().createElement("slot",null)))}function YA(e,t){const i="height"===t?"blockSize":"inlineSize";return e.contentBoxSize?e.contentBoxSize[0]?e.contentBoxSize[0][i]:e.contentBoxSize[i]:e.contentRect[t]}NA=$A,({e:[_A,RA,WA,IA,LA,DA,OA,zA],c:[UA,MA]}=(0,d.A)(NA,[PA("ai-portal.flow-tabs",{styleTexts:[kA.A]})],[[HA({attribute:!1}),1,"tabs"],[HA({attribute:!1}),1,"activeTab"],[BA({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(jA,e),(e,t)=>(0,l.A)(jA,e,t)]],0,(e=>KA.has((0,r.A)(e))),m.ReactNextElement)),MA()},46121:(e,t,i)=>{e.exports=i.p+"images/69cf3ae2.png"},46122:(e,t,i)=>{i.d(t,{A:()=>b});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(56791),i.b),d=new URL(i(88786),i.b),p=new URL(i(46121),i.b),h=r()(n()),u=l()(c),m=l()(d),g=l()(p);h.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.link{display:block;background:rgba(255,255,255,0.6);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-size:cover;background-position:center;background-repeat:no-repeat;background-clip:padding-box;overflow:hidden}.purple{background-image:url(${u})}.green{background-image:url(${m})}.pink{background-image:url(${g})}.link::part(link){display:flex;flex-direction:column;gap:0;box-sizing:border-box;height:128px;padding:20px;position:relative}.title{width:100%;margin-bottom:8px;color:#262626;font-weight:500;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{width:100%;height:60px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:#18212f;line-height:20px}.link::part(link):hover{box-shadow:0px 4px 12px 0px rgba(96,96,138,0.15),0px 2px 4px 0px rgba(96,96,138,0.06)}.button{display:none;position:absolute;bottom:12px;left:20px;right:20px;height:32px;background:rgba(0,0,0,0.04);border-radius:8px;align-items:center;justify-content:center;gap:4px;color:#262626}.button:hover{background:rgba(0,0,0,0.08)}.link:hover .button{display:flex}.link:hover .description{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 60%;mask-size:100% 60%}`,""]);const b=h.toString()},46342:(e,t,i)=>{i.d(t,{A:()=>o});var 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:12px 24px;background-color:rgba(255,255,255,0.6);border-radius:8px;-webkit-user-select:none;user-select:none;border:1px solid transparent}.goal-item:hover,.goal-item:has(.title:focus){background-color:rgba(0,0,0,0.05)}.goal-item:has(.title:focus) .end .operation{display:flex}.goal-item:hover:not(.does-not-exist) .end .operation{display:flex}.goal-item:has(.title:focus) .end .info{display:none}.goal-item:hover:not(.does-not-exist) .end .info{display:none}.goal-item.completed .serial-number,.goal-item.completed .title{color:#bfbfbf}.goal-item.active{background:rgba(37,64,255,0.1);border:1px solid #2540ff}.goal-item > *{-webkit-user-select:auto;user-select:auto}.goal-item .start,.goal-item .end{display:flex;align-items:center}.goal-item .start{flex:1;min-width:0;column-gap:16px;min-width:0}.goal-item .end{flex-shrink:0;column-gap:30px}.goal-item .end .operation{display:none;align-items:center;gap:8px}.goal-item .end .operation eo-button::part(button){height:28px}.goal-item .end .operation .new-chat::part(button){padding:5px 10px;font-size:13px}.goal-item .end .operation .append-child::part(button){padding:5px 8px;font-size:14px}.goal-item .end .info{display:inline-flex;align-items:center;column-gap:24px}.goal-item .serial-number{font-weight:400;color:var(--palette-gray-7);font-size:16px;overflow:visible}.goal-item .title{font-weight:500;padding:2px 4px;font-size:16px;color:var(--palette-gray-10);border:1px solid transparent;border-radius:8px;cursor:pointer;min-width:80px}.goal-item .title:hover{background-color:rgba(255,255,255,0.6);border:1px solid var(--palette-gray-5);cursor:text}.goal-item .title:focus{outline:none;background-color:rgba(255,255,255,0.6);border:1px solid var(--elevo-color-brand)}.goal-item .icon{border-radius:8px;padding:6px;position:relative;top:2px}.goal-item .icon:hover{background-color:rgba(0,0,0,0.04)}.goal-item .message{color:var(--palette-gray-7);display:inline-flex;align-items:center;column-gap:6px}.goal-item .message .count{font-weight:500;color:var(--palette-gray-10)}.goal-item:not(.editing) .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]);const o=r.toString()},47008:(e,t,i)=>{i.d(t,{A:()=>h});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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${p}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;margin:0 -12px}.container{position:relative;background:#ffffff;box-shadow:0px 2px 4px 0px rgba(38,45,65,0.1);border-radius:16px;border:1px solid #dadfe8}.container:has(textarea:focus){border-color:#b7c3d8}textarea{display:block;width:100%;padding:10px 16px 50px;color:var(--antd-input-color);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);font:inherit;font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}.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;gap:6px}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}.mention-overlay{position:absolute;border-radius:4px;pointer-events:none;background:rgba(38,45,65,0.1)}`,""]);const h=d.toString()},47336:(e,t,i)=>{e.exports=i.p+"images/25c20165.png"},47338:(e,t,i)=>{i.d(t,{A:()=>o});var 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:()=>h});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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;color:#262626;padding:0 54px 48px;overflow:hidden;overflow-y:auto}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:rgb(205,206,207);background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}:host([hidden]){display:none}:host([variant="form"])::before{background:#fff}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}:host([size="small"]) .container{max-width:1000px}:host([size="full"]) .container{max-width:100%}.sticky-header{margin:0 -24px;padding:17px 24px 30px}.non-sticky-header{padding:17px 0 30px}.header{display:flex;justify-content:space-between;align-items:center}nav{font-weight:500;font-size:20px;line-height:28px;display:flex;min-width:0;white-space:nowrap;flex-wrap:wrap}h1{margin:0;font-size:inherit;line-height:inherit}.breadcrumbs{list-style:none;padding:0;margin:0;color:#bfbfbf}.breadcrumbs eo-link::part(link){color:inherit}.breadcrumbs eo-link::part(link):hover{color:#595959}.breadcrumbs li::after{content:"/";margin:0 8px}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}nav{margin-left:40px}}`,""]);const h=d.toString()},56791:(e,t,i)=>{e.exports=i.p+"images/3e0f6758.png"},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;gap:16px;padding:12px 24px;color:#262626;background:rgba(255,255,255,0.6);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.link.actions-active::part(link),\n.link::part(link):hover{background:rgba(0,0,0,0.05);-webkit-backdrop-filter:none;backdrop-filter:none}.item:not(:last-child){margin-bottom:4px}.icon{font-size:18px;margin-right:8px}.title{font-weight:500;font-size:16px}.title,\n.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal{background:#f0fff8;border-radius:4px;font-weight:500;font-size:12px;color:#1dc897;line-height:20px;padding:2px 8px;white-space:nowrap}.goal.global{background:#e6f4ff;color:#1a7aff}.header{display:flex;align-items:center}.description{color:#595959;margin-top:6px;padding-left:28px;line-height:20px}.time{color:rgba(0,0,0,0.45);white-space:nowrap}.main{flex:1;min-width:0}.operations{display:flex;align-items:center;justify-content:right;width:100px}.operations.lang-zh{width:64px}.link.actions-active .time,\n.link:hover .time,\n.link:not(:hover):not(.actions-active) .actions{display:none}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=r.toString()},81129:(e,t,i)=>{i.d(t,{A:()=>h});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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block;position:sticky;top:0}:host([hidden]){display:none}:host::before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background-color:rgb(205,206,207);background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed;pointer-events:none}:host([variant="home"])::before{background-color:#f1f1f1}`,""]);const h=d.toString()},82165:(e,t,i)=>{i.d(t,{A:()=>h});var 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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block;padding:24px 54px 72px}:host([sticky]){padding-top:0}:host([hidden]){display:none}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}}`,""]);const h=d.toString()},83059:(e,t,i)=>{i.d(t,{A:()=>h});var 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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${p});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1{font-weight:500;margin:0;font-size:20px;line-height:28px;margin-bottom:17px}.list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:12px;border:1px solid #e8e9ec;font-size:32px;color:#595959;margin-right:16px}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;margin:16px 0 -3px}.tag{display:block;background:rgba(0,0,0,0.04);border-radius:4px;font-size:12px;line-height:22px;padding:0 7px}`,""]);const h=d.toString()},84479:(e,t,i)=>{i.d(t,{A:()=>o});var 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}.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=r.toString()},88786:(e,t,i)=>{e.exports=i.p+"images/e15a6988.png"},98036:(e,t,i)=>{i.d(t,{A:()=>h});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),d=r()(n()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${p});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto;margin-bottom:17px}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.avatar{width:48px;height:48px;border-radius:12px;margin-right:16px;background-color:#d5d6e6;display:flex;align-items:center;justify-content:center;font-size:24px;overflow:hidden}.avatar img{width:100%;height:100%}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const h=d.toString()}}]);
2
- //# sourceMappingURL=943.7073ef6f.js.map