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