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