@next-bricks/ai-portal 0.27.2 → 0.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/bricks.json +22 -22
  2. package/dist/chunks/1097.2d02ad95.js +3 -0
  3. package/dist/chunks/{2966.30d4dbdb.js.LICENSE.txt → 1097.2d02ad95.js.LICENSE.txt} +2 -2
  4. package/dist/chunks/1097.2d02ad95.js.map +1 -0
  5. package/dist/chunks/{5552.02ddc385.js → 3171.f486ac82.js} +2 -2
  6. package/dist/chunks/{3171.1b784ef4.js.map → 3171.f486ac82.js.map} +1 -1
  7. package/dist/chunks/{4306.27789c20.js → 4306.bae21d5d.js} +2 -2
  8. package/dist/chunks/4306.bae21d5d.js.map +1 -0
  9. package/dist/chunks/{7146.9e1f38b0.js → 4765.ae81ae59.js} +2 -2
  10. package/dist/chunks/4765.ae81ae59.js.map +1 -0
  11. package/dist/chunks/4820.4305acaa.js +2 -0
  12. package/dist/chunks/4820.4305acaa.js.map +1 -0
  13. package/dist/chunks/{4837.5b90ffe2.js → 4837.ef36f6e2.js} +2 -2
  14. package/dist/chunks/{7218.893a0ad4.js.map → 4837.ef36f6e2.js.map} +1 -1
  15. package/dist/chunks/{5054.dee4d597.js → 5054.0e746eec.js} +2 -2
  16. package/dist/chunks/{5054.dee4d597.js.map → 5054.0e746eec.js.map} +1 -1
  17. package/dist/chunks/{3171.1b784ef4.js → 5552.57a9edba.js} +2 -2
  18. package/dist/chunks/{5552.02ddc385.js.map → 5552.57a9edba.js.map} +1 -1
  19. package/dist/chunks/{4765.0d4af568.js → 7146.c0ae3b12.js} +2 -2
  20. package/dist/chunks/7146.c0ae3b12.js.map +1 -0
  21. package/dist/chunks/{7218.893a0ad4.js → 7218.13c19b72.js} +2 -2
  22. package/dist/chunks/{4837.5b90ffe2.js.map → 7218.13c19b72.js.map} +1 -1
  23. package/dist/chunks/871.42c14164.js +2 -0
  24. package/dist/chunks/871.42c14164.js.map +1 -0
  25. package/dist/chunks/{8928.31043568.js → 8928.c3da7b15.js} +3 -3
  26. package/dist/chunks/{8928.31043568.js.map → 8928.c3da7b15.js.map} +1 -1
  27. package/dist/chunks/9140.8e69fcb4.js +3 -0
  28. package/dist/chunks/9140.8e69fcb4.js.map +1 -0
  29. package/dist/chunks/981.e0bd1e25.js +2 -0
  30. package/dist/chunks/981.e0bd1e25.js.map +1 -0
  31. package/dist/chunks/{ai-agents.2da5692c.js → ai-agents.921e8399.js} +2 -2
  32. package/dist/chunks/{ai-agents.2da5692c.js.map → ai-agents.921e8399.js.map} +1 -1
  33. package/dist/chunks/{ai-employees.1c05e0e7.js → ai-employees.f2cc101e.js} +3 -3
  34. package/dist/chunks/{ai-employees.1c05e0e7.js.map → ai-employees.f2cc101e.js.map} +1 -1
  35. package/dist/chunks/{chat-box.2fbc1947.js → chat-box.b34adf84.js} +2 -2
  36. package/dist/chunks/{chat-box.2fbc1947.js.map → chat-box.b34adf84.js.map} +1 -1
  37. package/dist/chunks/{chat-history.a7ed7639.js → chat-history.d6faa19d.js} +3 -3
  38. package/dist/chunks/{chat-history.a7ed7639.js.map → chat-history.d6faa19d.js.map} +1 -1
  39. package/dist/chunks/{chat-stream.52db0e15.js → chat-stream.0274b098.js} +2 -2
  40. package/dist/chunks/{chat-stream.52db0e15.js.map → chat-stream.0274b098.js.map} +1 -1
  41. package/dist/chunks/{cruise-canvas.847fcd10.js → cruise-canvas.d4e9e5d8.js} +2 -2
  42. package/dist/chunks/{cruise-canvas.847fcd10.js.map → cruise-canvas.d4e9e5d8.js.map} +1 -1
  43. package/dist/chunks/{elevo-sidebar.c1b8a33b.js → elevo-sidebar.f02fd532.js} +3 -3
  44. package/dist/chunks/{elevo-sidebar.c1b8a33b.js.map → elevo-sidebar.f02fd532.js.map} +1 -1
  45. package/dist/chunks/{load-request-store.291fe1bf.js → load-request-store.eb92f754.js} +2 -2
  46. package/dist/chunks/{load-request-store.291fe1bf.js.map → load-request-store.eb92f754.js.map} +1 -1
  47. package/dist/chunks/main.b1cbab28.js +2 -0
  48. package/dist/chunks/{main.7f69e4a0.js.map → main.b1cbab28.js.map} +1 -1
  49. package/dist/chunks/{mcp-tools.169e225f.js → mcp-tools.089be187.js} +3 -3
  50. package/dist/chunks/{mcp-tools.169e225f.js.map → mcp-tools.089be187.js.map} +1 -1
  51. package/dist/chunks/{show-cases.cac0e03e.js → show-cases.f0f70cfb.js} +3 -3
  52. package/dist/chunks/{show-cases.cac0e03e.js.map → show-cases.f0f70cfb.js.map} +1 -1
  53. package/dist/examples.json +10 -10
  54. package/dist/index.978fd8b7.js +2 -0
  55. package/dist/index.978fd8b7.js.map +1 -0
  56. package/dist/manifest.json +200 -200
  57. package/dist/types.json +301 -301
  58. package/package.json +3 -3
  59. package/dist/chunks/2966.30d4dbdb.js +0 -3
  60. package/dist/chunks/2966.30d4dbdb.js.map +0 -1
  61. package/dist/chunks/4306.27789c20.js.map +0 -1
  62. package/dist/chunks/4765.0d4af568.js.map +0 -1
  63. package/dist/chunks/4820.e3f1d522.js +0 -2
  64. package/dist/chunks/4820.e3f1d522.js.map +0 -1
  65. package/dist/chunks/7146.9e1f38b0.js.map +0 -1
  66. package/dist/chunks/871.4a339fab.js +0 -2
  67. package/dist/chunks/871.4a339fab.js.map +0 -1
  68. package/dist/chunks/9140.5bed5052.js +0 -3
  69. package/dist/chunks/9140.5bed5052.js.map +0 -1
  70. package/dist/chunks/981.03a72180.js +0 -2
  71. package/dist/chunks/981.03a72180.js.map +0 -1
  72. package/dist/chunks/main.7f69e4a0.js +0 -2
  73. package/dist/index.bd7e0061.js +0 -2
  74. package/dist/index.bd7e0061.js.map +0 -1
  75. /package/dist/chunks/{8928.31043568.js.LICENSE.txt → 8928.c3da7b15.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{9140.5bed5052.js.LICENSE.txt → 9140.8e69fcb4.js.LICENSE.txt} +0 -0
  77. /package/dist/chunks/{ai-employees.1c05e0e7.js.LICENSE.txt → ai-employees.f2cc101e.js.LICENSE.txt} +0 -0
  78. /package/dist/chunks/{chat-history.a7ed7639.js.LICENSE.txt → chat-history.d6faa19d.js.LICENSE.txt} +0 -0
  79. /package/dist/chunks/{elevo-sidebar.c1b8a33b.js.LICENSE.txt → elevo-sidebar.f02fd532.js.LICENSE.txt} +0 -0
  80. /package/dist/chunks/{mcp-tools.169e225f.js.LICENSE.txt → mcp-tools.089be187.js.LICENSE.txt} +0 -0
  81. /package/dist/chunks/{show-cases.cac0e03e.js.LICENSE.txt → show-cases.f0f70cfb.js.LICENSE.txt} +0 -0
@@ -1,3 +1,3 @@
1
- /*! For license information please see show-cases.cac0e03e.js.LICENSE.txt */
2
- (globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,4332],{11369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},12559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},17545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},20062:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},26902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},32118:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShowCases:()=>j});var n,i=r(70918),a=r(86121),o=r(70829),l=r(62740),s=r(18769),c=r.n(s),u=r(7921),p=r(11280),d=(r(65168),r(90079)),f=r(41030),m=r(53373),h=r.n(m),g=r(23081),b=r(37744),v=r(42873);let y,x,w,k,A;(0,d.initializeI18n)(b.NS,b.I);const E=(0,p.wrapBrick)("eo-link"),{defineElement:S,property:T}=(0,u.createDecorators)();let j;var N=new WeakMap,z=new WeakMap;class L extends p.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,N,x(this)),(0,i.A)(this,z,(w(this),k(this))),A(this)}get list(){return(0,o.A)(N,this)}set list(e){(0,a.A)(N,this,e)}get taskUrlTemplate(){return(0,o.A)(z,this)}set taskUrlTemplate(e){(0,a.A)(z,this,e)}render(){return c().createElement(U,{list:this.list,taskUrlTemplate:this.taskUrlTemplate})}}function U(e){let{list:t,taskUrlTemplate:r}=e;const n=(0,s.useMemo)((()=>[null,...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[i,a]=(0,s.useState)(null),o=(0,s.useMemo)((()=>i?null==t?void 0:t.filter((e=>e.scenario===i)):t),[i,t]);return null!=t&&t.length?c().createElement(c().Fragment,null,c().createElement("ul",{className:"nav"},null==n?void 0:n.map((e=>c().createElement("li",{key:e,className:"item"},c().createElement("a",{className:h()({active:i===e}),onClick:()=>a(e)},null===e?(0,b.t)(b.K.ALL):e))))),c().createElement("ul",{className:"cases"},null==o?void 0:o.map((e=>{return c().createElement("li",{key:e.taskId,className:"item"},c().createElement(E,{className:"link",url:(t=r,n=e,null==t?void 0:t.replace(/{{(.*?)}}/g,((e,t)=>(0,f.get)(n,t))))},c().createElement("span",{className:h()("placeholder",e.thumbUrl?"thumbnail":"summary")},e.thumbUrl?c().createElement("span",{style:{backgroundImage:`url(${(0,g.getBasePath)()}${e.thumbUrl})`}}):c().createElement("span",{className:"summary-1"},c().createElement("span",{className:"summary-2"},c().createElement("span",null,e.summary)))),c().createElement("span",{className:"title"},c().createElement("span",null,e.title))));var t,n})))):null}n=L,({e:[x,w,k,A],c:[j,y]}=(0,l.A)(n,[S("ai-portal.show-cases",{styleTexts:[v.A]})],[[T({attribute:!1}),1,"list"],[T(),1,"taskUrlTemplate"]],0,void 0,p.ReactNextElement)),y()},36758:e=>{"use strict";e.exports=function(e){return e[1]}},37744:(e,t,r)=>{"use strict";r.d(t,{I:()=>s,K:()=>i,NS:()=>l,t:()=>c});var n=r(90079);let i=function(e){return e.ALL="ALL",e}({});const a={[i.ALL]:"All"},o={[i.ALL]:"全部"},l="bricks/ai-portal/show-cases",s={en:a,zh:o},c=n.i18n.getFixedT(null,l)},40935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},42873:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(36758),i=r.n(n),a=r(40935),o=r.n(a),l=r(20062),s=r.n(l),c=new URL(r(89518),r.b),u=o()(i()),p=s()(c);u.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}.nav,\n.cases{list-style:none;padding:0;margin:0}.nav{display:flex;font-size:16px}.nav .item + .item{margin-left:32px}.nav .item a{color:rgba(38,38,38,0.65);cursor:pointer}.nav .item a.active{color:#262626;font-weight:500}.nav .item a.active::after{content:"";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}.cases{display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(276px,1fr));gap:24px;margin-top:2em}.link{background:#fefefe;border:1px solid #e8e9ec;border-radius:12px;overflow:hidden;display:block}.link::part(link){display:flex;gap:0;flex-direction:column;height:218px}.title{width:100%;height:76px;padding:16px 16px 15px;color:#262626;border-top:1px solid #e8e9ec;font-weight:500;font-size:15px;line-height:22px}.title span{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.placeholder{width:100%;height:142px;background:linear-gradient(308deg,#dee9fc 0%,#fcfbfd 100%,#fbf9fe 100%);overflow:hidden}.summary{color:rgba(0,0,0,0.65);padding:27px 0 0 24px}.thumbnail span{display:block;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.link:hover{box-shadow:0px 4px 12px 0px rgba(0,0,0,0.06)}.link:hover .title{color:var(--elevo-color-brand)}.summary-1{display:block;background-image:url(${p});background-size:237px 115px;background-repeat:no-repeat;background-position:0 0;padding:10px 0 0 10px}.summary-2{display:block;background:linear-gradient(90deg,#ffffff 0%,#e4ecfc 100%);padding:12px 15px 5px 15px;border-top-left-radius:12px}.summary-2 span{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;color:#525971;line-height:22px;height:88px}`,""]);const d=u.toString()},53373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},62740:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(17545),i=r(26902);function a(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var o=r(11369);function l(e,t,r,l,s,c){var u,p,d,f,m,h,g,b=Symbol.metadata||Symbol.for("Symbol.metadata"),v=Object.defineProperty,y=Object.create,x=[y(null),y(null)],w=t.length;function k(t,r,n){return function(i,a){r&&(a=i,i=e);for(var o=0;o<t.length;o++)a=t[o].apply(i,n?[a]:[]);return n?a:i}}function A(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function E(e,t,r,i,o,l,s,c,d,f,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),b=t[3],y=!s,w=1===o,E=3===o,S=4===o,T=2===o;function j(t,r,n){return function(i,a){return r&&(a=i,i=e),n&&n(i),N[t].call(i,a)}}if(!y){var N={},z=[],L=E?"get":S||w?"set":"value";if(d?(f||w?N={get:a((function(){return b(this)}),i,"get"),set:function(e){t[4](this,e)}}:N[L]=b,f||a(N[L],i,T?"":L)):f||(N=Object.getOwnPropertyDescriptor(e,i)),!f&&!d){if((p=x[+c][i])&&7!=(p^o))throw Error("Decorating two elements with the same name ("+N[L].name+") is not supported yet");x[+c][i]=o<3?1:o}}for(var U=e,_=g.length-1;_>=0;_-=r?2:1){var O=A(g[_],"A decorator","be",!0),P=r?g[_-1]:void 0,I={},C={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");A(t,"An initializer","be",!0),l.push(t)}.bind(null,I)};if(y)p=O.call(P,U,C),I.v=1,A(p,"class decorators","return")&&(U=p);else if(C.static=c,C.private=d,p=C.access={has:d?m.bind():function(e){return i in e}},S||(p.get=d?T?function(e){return h(e),N.value}:j("get",0,h):function(e){return e[i]}),T||E||(p.set=d?j("set",0,h):function(e,t){e[i]=t}),U=O.call(P,w?{get:N.get,set:N.set}:N[L],C),I.v=1,w){if("object"==(0,n.A)(U)&&U)(p=A(U.get,"accessor.get"))&&(N.get=p),(p=A(U.set,"accessor.set"))&&(N.set=p),(p=A(U.init,"accessor.init"))&&z.unshift(p);else if(void 0!==U)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else A(U,(f?"field":"method")+" decorators","return")&&(f?z.unshift(U):N[L]=U)}return o<2&&s.push(k(z,c,1),k(l,c,0)),f||y||(d?w?s.splice(-1,0,j("get",c),j("set",c)):s.push(T?N[L]:A.call.bind(N[L])):v(e,i,N)),U}function S(e){return v(e,b,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[b]),u=y(null==u?null:u),m=[],h=function(e){e&&m.push(k(e))},g=function(t,n){for(var a=0;a<r.length;a++){var l=r[a],c=l[1],u=7&c;if((8&c)==t&&!u==n){var p=l[2],h=!!l[3],g=16&c;E(t?e:e.prototype,l,g,h?"#"+p:(0,o.A)(p),u,u<2?[]:t?f=f||[]:d=d||[],m,!!t,h,n,t&&h?function(t){return(0,i.A)(t)===e}:s)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(d),h(f),p=m,w||S(e),{e:p,get c(){var r=[];return w&&[S(e=E(e,[t],l,e.name,5,r)),k(r,1)]}}}},70829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(72016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},72016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},86121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},89518:(e,t,r)=>{"use strict";e.exports=r.p+"images/f819b04a.png"}}]);
3
- //# sourceMappingURL=show-cases.cac0e03e.js.map
1
+ /*! For license information please see show-cases.f0f70cfb.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,4332],{11369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},12559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},17545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},20062:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},26902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},32118:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShowCases:()=>j});var n,i=r(70918),a=r(86121),o=r(70829),l=r(62740),s=r(18769),c=r.n(s),u=r(7921),p=r(11280),d=(r(65168),r(87117)),f=r(41030),m=r(53373),h=r.n(m),g=r(29475),b=r(37744),v=r(42873);let y,x,w,k,A;(0,d.initializeI18n)(b.NS,b.I);const E=(0,p.wrapBrick)("eo-link"),{defineElement:S,property:T}=(0,u.createDecorators)();let j;var N=new WeakMap,z=new WeakMap;class L extends p.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,N,x(this)),(0,i.A)(this,z,(w(this),k(this))),A(this)}get list(){return(0,o.A)(N,this)}set list(e){(0,a.A)(N,this,e)}get taskUrlTemplate(){return(0,o.A)(z,this)}set taskUrlTemplate(e){(0,a.A)(z,this,e)}render(){return c().createElement(U,{list:this.list,taskUrlTemplate:this.taskUrlTemplate})}}function U(e){let{list:t,taskUrlTemplate:r}=e;const n=(0,s.useMemo)((()=>[null,...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[i,a]=(0,s.useState)(null),o=(0,s.useMemo)((()=>i?null==t?void 0:t.filter((e=>e.scenario===i)):t),[i,t]);return null!=t&&t.length?c().createElement(c().Fragment,null,c().createElement("ul",{className:"nav"},null==n?void 0:n.map((e=>c().createElement("li",{key:e,className:"item"},c().createElement("a",{className:h()({active:i===e}),onClick:()=>a(e)},null===e?(0,b.t)(b.K.ALL):e))))),c().createElement("ul",{className:"cases"},null==o?void 0:o.map((e=>{return c().createElement("li",{key:e.taskId,className:"item"},c().createElement(E,{className:"link",url:(t=r,n=e,null==t?void 0:t.replace(/{{(.*?)}}/g,((e,t)=>(0,f.get)(n,t))))},c().createElement("span",{className:h()("placeholder",e.thumbUrl?"thumbnail":"summary")},e.thumbUrl?c().createElement("span",{style:{backgroundImage:`url(${(0,g.getBasePath)()}${e.thumbUrl})`}}):c().createElement("span",{className:"summary-1"},c().createElement("span",{className:"summary-2"},c().createElement("span",null,e.summary)))),c().createElement("span",{className:"title"},c().createElement("span",null,e.title))));var t,n})))):null}n=L,({e:[x,w,k,A],c:[j,y]}=(0,l.A)(n,[S("ai-portal.show-cases",{styleTexts:[v.A]})],[[T({attribute:!1}),1,"list"],[T(),1,"taskUrlTemplate"]],0,void 0,p.ReactNextElement)),y()},36758:e=>{"use strict";e.exports=function(e){return e[1]}},37744:(e,t,r)=>{"use strict";r.d(t,{I:()=>s,K:()=>i,NS:()=>l,t:()=>c});var n=r(87117);let i=function(e){return e.ALL="ALL",e}({});const a={[i.ALL]:"All"},o={[i.ALL]:"全部"},l="bricks/ai-portal/show-cases",s={en:a,zh:o},c=n.i18n.getFixedT(null,l)},40935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},42873:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(36758),i=r.n(n),a=r(40935),o=r.n(a),l=r(20062),s=r.n(l),c=new URL(r(89518),r.b),u=o()(i()),p=s()(c);u.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}.nav,\n.cases{list-style:none;padding:0;margin:0}.nav{display:flex;font-size:16px}.nav .item + .item{margin-left:32px}.nav .item a{color:rgba(38,38,38,0.65);cursor:pointer}.nav .item a.active{color:#262626;font-weight:500}.nav .item a.active::after{content:"";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}.cases{display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(276px,1fr));gap:24px;margin-top:2em}.link{background:#fefefe;border:1px solid #e8e9ec;border-radius:12px;overflow:hidden;display:block}.link::part(link){display:flex;gap:0;flex-direction:column;height:218px}.title{width:100%;height:76px;padding:16px 16px 15px;color:#262626;border-top:1px solid #e8e9ec;font-weight:500;font-size:15px;line-height:22px}.title span{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.placeholder{width:100%;height:142px;background:linear-gradient(308deg,#dee9fc 0%,#fcfbfd 100%,#fbf9fe 100%);overflow:hidden}.summary{color:rgba(0,0,0,0.65);padding:27px 0 0 24px}.thumbnail span{display:block;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.link:hover{box-shadow:0px 4px 12px 0px rgba(0,0,0,0.06)}.link:hover .title{color:var(--elevo-color-brand)}.summary-1{display:block;background-image:url(${p});background-size:237px 115px;background-repeat:no-repeat;background-position:0 0;padding:10px 0 0 10px}.summary-2{display:block;background:linear-gradient(90deg,#ffffff 0%,#e4ecfc 100%);padding:12px 15px 5px 15px;border-top-left-radius:12px}.summary-2 span{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;color:#525971;line-height:22px;height:88px}`,""]);const d=u.toString()},53373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},62740:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(17545),i=r(26902);function a(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var o=r(11369);function l(e,t,r,l,s,c){var u,p,d,f,m,h,g,b=Symbol.metadata||Symbol.for("Symbol.metadata"),v=Object.defineProperty,y=Object.create,x=[y(null),y(null)],w=t.length;function k(t,r,n){return function(i,a){r&&(a=i,i=e);for(var o=0;o<t.length;o++)a=t[o].apply(i,n?[a]:[]);return n?a:i}}function A(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function E(e,t,r,i,o,l,s,c,d,f,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),b=t[3],y=!s,w=1===o,E=3===o,S=4===o,T=2===o;function j(t,r,n){return function(i,a){return r&&(a=i,i=e),n&&n(i),N[t].call(i,a)}}if(!y){var N={},z=[],L=E?"get":S||w?"set":"value";if(d?(f||w?N={get:a((function(){return b(this)}),i,"get"),set:function(e){t[4](this,e)}}:N[L]=b,f||a(N[L],i,T?"":L)):f||(N=Object.getOwnPropertyDescriptor(e,i)),!f&&!d){if((p=x[+c][i])&&7!=(p^o))throw Error("Decorating two elements with the same name ("+N[L].name+") is not supported yet");x[+c][i]=o<3?1:o}}for(var U=e,_=g.length-1;_>=0;_-=r?2:1){var O=A(g[_],"A decorator","be",!0),P=r?g[_-1]:void 0,I={},C={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");A(t,"An initializer","be",!0),l.push(t)}.bind(null,I)};if(y)p=O.call(P,U,C),I.v=1,A(p,"class decorators","return")&&(U=p);else if(C.static=c,C.private=d,p=C.access={has:d?m.bind():function(e){return i in e}},S||(p.get=d?T?function(e){return h(e),N.value}:j("get",0,h):function(e){return e[i]}),T||E||(p.set=d?j("set",0,h):function(e,t){e[i]=t}),U=O.call(P,w?{get:N.get,set:N.set}:N[L],C),I.v=1,w){if("object"==(0,n.A)(U)&&U)(p=A(U.get,"accessor.get"))&&(N.get=p),(p=A(U.set,"accessor.set"))&&(N.set=p),(p=A(U.init,"accessor.init"))&&z.unshift(p);else if(void 0!==U)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else A(U,(f?"field":"method")+" decorators","return")&&(f?z.unshift(U):N[L]=U)}return o<2&&s.push(k(z,c,1),k(l,c,0)),f||y||(d?w?s.splice(-1,0,j("get",c),j("set",c)):s.push(T?N[L]:A.call.bind(N[L])):v(e,i,N)),U}function S(e){return v(e,b,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[b]),u=y(null==u?null:u),m=[],h=function(e){e&&m.push(k(e))},g=function(t,n){for(var a=0;a<r.length;a++){var l=r[a],c=l[1],u=7&c;if((8&c)==t&&!u==n){var p=l[2],h=!!l[3],g=16&c;E(t?e:e.prototype,l,g,h?"#"+p:(0,o.A)(p),u,u<2?[]:t?f=f||[]:d=d||[],m,!!t,h,n,t&&h?function(t){return(0,i.A)(t)===e}:s)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(d),h(f),p=m,w||S(e),{e:p,get c(){var r=[];return w&&[S(e=E(e,[t],l,e.name,5,r)),k(r,1)]}}}},70829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(72016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},72016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},86121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},89518:(e,t,r)=>{"use strict";e.exports=r.p+"images/f819b04a.png"}}]);
3
+ //# sourceMappingURL=show-cases.f0f70cfb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/show-cases.cac0e03e.js","mappings":";kLAEe,SAASA,EAAcC,GACpC,IAAIC,ECFS,SAAqBD,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIE,EAAIF,EAAEG,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKL,EAAGM,UAClB,GAAI,WAAY,OAAQL,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAyBC,OAAiBR,EAC5C,CDPUI,CAAYJ,GACpB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,gCELe,SAASQ,EAAkBP,EAAGF,EAAGU,GAC9C,GAAI,mBAAqBR,EAAIA,IAAMF,EAAIE,EAAES,IAAIX,GAAI,OAAOY,UAAUC,OAAS,EAAIb,EAAIU,EACnF,MAAM,IAAIH,UAAU,gDACtB,gDCHe,SAASO,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBX,QAAU,iBAAmBA,OAAOa,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBZ,QAAUY,EAAEE,cAAgBd,QAAUY,IAAMZ,OAAOe,U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,EAAKC,EAAYlD,IAClE,OAA0BiD,EAAKC,GAC/BA,EAAWpB,IAAImB,EAAKjD,EACtB,gCCJe,SAASmD,EAA2BF,EAAKG,GACtD,GAAIA,EAAkB/K,IAAI4K,GACxB,MAAM,IAAIhL,UAAU,iEAExB,gFCHe,SAASoL,EAAuB5C,EAAGF,EAAGvI,GACnD,OAAOyI,EAAEqB,KAAI,OAAiBrB,EAAGF,GAAIvI,GAAIA,CAC3C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///./src/show-cases/index.tsx","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///./src/show-cases/i18n.ts","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///./src/show-cases/styles.shadow.css","webpack:///../../node_modules/classnames/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","import React, { useMemo, useState } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { initializeI18n } from \"@next-core/i18n\";\nimport type { Link, LinkProps } from \"@next-bricks/basic/link\";\nimport { get } from \"lodash\";\nimport classNames from \"classnames\";\nimport { getBasePath } from \"@next-core/runtime\";\nimport { K, NS, locales, t } from \"./i18n.js\";\nimport styleText from \"./styles.shadow.css\";\n\ninitializeI18n(NS, locales);\n\nconst WrappedLink = wrapBrick<Link, LinkProps>(\"eo-link\");\n\nconst { defineElement, property } = createDecorators();\n\nexport interface ShowCasesProps {\n list?: ShowCase[];\n taskUrlTemplate?: string;\n}\n\nexport interface ShowCase {\n taskId: string;\n title: string;\n summary: string;\n scenario: string;\n thumbUrl?: string;\n}\n\n/**\n * 构件 `ai-portal.show-cases`\n */\nexport\n@defineElement(\"ai-portal.show-cases\", {\n styleTexts: [styleText],\n})\nclass ShowCases extends ReactNextElement implements ShowCasesProps {\n @property({ attribute: false })\n accessor list: ShowCase[] | undefined;\n\n @property()\n accessor taskUrlTemplate: string | undefined;\n\n render() {\n return (\n <ShowCasesComponent\n list={this.list}\n taskUrlTemplate={this.taskUrlTemplate}\n />\n );\n }\n}\n\nfunction ShowCasesComponent({ list, taskUrlTemplate }: ShowCasesProps) {\n // Grouping the list by scenario\n const groups = useMemo<(string | null)[]>(() => {\n return [\n null,\n ...new Set(list?.map((item) => item.scenario).filter(Boolean)),\n ];\n }, [list]);\n\n const [activeGroup, setActiveGroup] = useState<string | null>(null);\n\n const filteredList = useMemo(() => {\n if (!activeGroup) {\n return list;\n }\n return list?.filter((item) => item.scenario === activeGroup);\n }, [activeGroup, list]);\n\n if (!list?.length) {\n return null;\n }\n\n return (\n <>\n <ul className=\"nav\">\n {groups?.map((group) => (\n <li key={group} className=\"item\">\n <a\n className={classNames({ active: activeGroup === group })}\n onClick={() => setActiveGroup(group)}\n >\n {group === null ? t(K.ALL) : group}\n </a>\n </li>\n ))}\n </ul>\n <ul className=\"cases\">\n {filteredList?.map((item) => (\n <li key={item.taskId} className=\"item\">\n <WrappedLink\n className=\"link\"\n url={parseTemplate(taskUrlTemplate, item)}\n >\n <span\n className={classNames(\n \"placeholder\",\n item.thumbUrl ? \"thumbnail\" : \"summary\"\n )}\n >\n {item.thumbUrl ? (\n <span\n style={{\n backgroundImage: `url(${getBasePath()}${item.thumbUrl})`,\n }}\n />\n ) : (\n <span className=\"summary-1\">\n <span className=\"summary-2\">\n <span>{item.summary}</span>\n </span>\n </span>\n )}\n </span>\n <span className=\"title\">\n <span>{item.title}</span>\n </span>\n </WrappedLink>\n </li>\n ))}\n </ul>\n </>\n );\n}\n\nfunction parseTemplate(\n template: string | undefined,\n context: Record<string, any>\n) {\n return template?.replace(/{{(.*?)}}/g, (_match: string, key: string) => {\n const value = get(context, key);\n return value;\n });\n}\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n ALL = \"ALL\",\n}\n\nconst en: Locale = {\n [K.ALL]: \"All\",\n};\n\nconst zh: Locale = {\n [K.ALL]: \"全部\",\n};\n\nexport const NS = \"bricks/ai-portal/show-cases\";\n\nexport const locales = { en, zh };\n\nexport const t = i18n.getFixedT(null, NS);\n\ntype Locale = { [k in K]: string } & {\n [k in K as `${k}_plural`]?: string;\n};\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./images/border@2x.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:flex;flex-direction:column;align-items:center;max-width:1200px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.nav,\n.cases{list-style:none;padding:0;margin:0}.nav{display:flex;font-size:16px}.nav .item + .item{margin-left:32px}.nav .item a{color:rgba(38,38,38,0.65);cursor:pointer}.nav .item a.active{color:#262626;font-weight:500}.nav .item a.active::after{content:\"\";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}.cases{display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(276px,1fr));gap:24px;margin-top:2em}.link{background:#fefefe;border:1px solid #e8e9ec;border-radius:12px;overflow:hidden;display:block}.link::part(link){display:flex;gap:0;flex-direction:column;height:218px}.title{width:100%;height:76px;padding:16px 16px 15px;color:#262626;border-top:1px solid #e8e9ec;font-weight:500;font-size:15px;line-height:22px}.title span{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.placeholder{width:100%;height:142px;background:linear-gradient(308deg,#dee9fc 0%,#fcfbfd 100%,#fbf9fe 100%);overflow:hidden}.summary{color:rgba(0,0,0,0.65);padding:27px 0 0 24px}.thumbnail span{display:block;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.link:hover{box-shadow:0px 4px 12px 0px rgba(0,0,0,0.06)}.link:hover .title{color:var(--elevo-color-brand)}.summary-1{display:block;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-size:237px 115px;background-repeat:no-repeat;background-position:0 0;padding:10px 0 0 10px}.summary-2{display:block;background:linear-gradient(90deg,#ffffff 0%,#e4ecfc 100%);padding:12px 15px 5px 15px;border-top-left-radius:12px}.summary-2 span{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;color:#525971;line-height:22px;height:88px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2311(e, t, n, r, o, i) {\n var a,\n c,\n u,\n s,\n f,\n l,\n p,\n d = Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"),\n m = Object.defineProperty,\n h = Object.create,\n y = [h(null), h(null)],\n v = t.length;\n function g(t, n, r) {\n return function (o, i) {\n n && (i = o, o = e);\n for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);\n return r ? i : o;\n };\n }\n function b(e, t, n, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, n, r, o, i, u, s, f, l, p) {\n function d(e) {\n if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var h = [].concat(t[0]),\n v = t[3],\n w = !u,\n D = 1 === o,\n S = 3 === o,\n j = 4 === o,\n E = 2 === o;\n function I(t, n, r) {\n return function (o, i) {\n return n && (i = o, o = e), r && r(o), P[t].call(o, i);\n };\n }\n if (!w) {\n var P = {},\n k = [],\n F = S ? \"get\" : j || D ? \"set\" : \"value\";\n if (f ? (l || D ? P = {\n get: setFunctionName(function () {\n return v(this);\n }, r, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : P[F] = v, l || setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {\n if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\");\n y[+s][r] = o < 3 ? 1 : o;\n }\n }\n for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {\n var z = b(h[O], \"A decorator\", \"be\", !0),\n A = n ? h[O - 1] : void 0,\n H = {},\n K = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: r,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw Error(\"attempted to call addInitializer after decoration was finished\");\n b(t, \"An initializer\", \"be\", !0), i.push(t);\n }.bind(null, H)\n };\n if (w) c = z.call(A, N, K), H.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (K[\"static\"] = s, K[\"private\"] = f, c = K.access = {\n has: f ? p.bind() : function (e) {\n return r in e;\n }\n }, j || (c.get = f ? E ? function (e) {\n return d(e), P.value;\n } : I(\"get\", 0, d) : function (e) {\n return e[r];\n }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) {\n e[r] = t;\n }), N = z.call(A, D ? {\n get: P.get,\n set: P.set\n } : P[F], K), H.v = 1, D) {\n if (\"object\" == _typeof(N) && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\");\n } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N);\n }\n return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;\n }\n function w(e) {\n return m(e, d, {\n configurable: !0,\n enumerable: !0,\n value: a\n });\n }\n return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {\n e && f.push(g(e));\n }, p = function p(t, r) {\n for (var i = 0; i < n.length; i++) {\n var a = n[i],\n c = a[1],\n l = 7 & c;\n if ((8 & c) == t && !l == r) {\n var p = a[2],\n d = !!a[3],\n m = 16 & c;\n applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {\n return checkInRHS(t) === e;\n } : o);\n }\n }\n }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {\n e: c,\n get c() {\n var n = [];\n return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];\n }\n };\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}"],"names":["toPropertyKey","t","i","e","Symbol","toPrimitive","call","r","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","module","exports","url","options","__esModule","default","test","slice","hash","needQuotes","concat","replace","_checkInRHS","Object","initializeI18n","NS","locales","WrappedLink","wrapBrick","defineElement","property","createDecorators","_ShowCases","_A","WeakMap","_B","ShowCases","ReactNextElement","_classPrivateFieldInitSpec","_init_list","_init_extra_list","_init_taskUrlTemplate","_init_extra_taskUrlTemplate","list","_classPrivateFieldGet","v","_classPrivateFieldSet","taskUrlTemplate","render","React","ShowCasesComponent","this","_ref","groups","useMemo","Set","map","item","scenario","filter","Boolean","activeGroup","setActiveGroup","useState","filteredList","className","group","key","classNames","active","onClick","K","ALL","taskId","template","context","_match","get","thumbUrl","style","backgroundImage","getBasePath","summary","title","_ShowCases2","c","_initClass","_applyDecs","styleTexts","styleText","attribute","en","zh","i18n","getFixedT","cssWithMappingToString","toString","content","needLayer","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","id","_k","push","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","hasOwn","hasOwnProperty","classes","arg","appendClass","parseValue","Array","isArray","apply","includes","value","newClass","setFunctionName","description","defineProperty","configurable","applyDecs2311","a","u","s","f","l","p","d","metadata","m","h","create","y","g","b","applyDec","w","D","S","j","E","I","P","F","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","_classPrivateFieldGet2","obj","privateMap","_checkPrivateRedeclaration","privateCollection","_classPrivateFieldSet2"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/show-cases.f0f70cfb.js","mappings":";kLAEe,SAASA,EAAcC,GACpC,IAAIC,ECFS,SAAqBD,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIE,EAAIF,EAAEG,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKL,EAAGM,UAClB,GAAI,WAAY,OAAQL,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAyBC,OAAiBR,EAC5C,CDPUI,CAAYJ,GACpB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,gCELe,SAASQ,EAAkBP,EAAGF,EAAGU,GAC9C,GAAI,mBAAqBR,EAAIA,IAAMF,EAAIE,EAAES,IAAIX,GAAI,OAAOY,UAAUC,OAAS,EAAIb,EAAIU,EACnF,MAAM,IAAIH,UAAU,gDACtB,gDCHe,SAASO,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBX,QAAU,iBAAmBA,OAAOa,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBZ,QAAUY,EAAEE,cAAgBd,QAAUY,IAAMZ,OAAOe,UAAY,gBAAkBH,CACpH,EAAGD,EAAQC,EACb,0CCNAI,EAAOC,QAAU,SAAUC,EAAKC,GAI9B,OAHKA,IACHA,EAAU,CAAC,GAERD,GAGLA,EAAMb,OAAOa,EAAIE,WAAaF,EAAIG,QAAUH,GAGxC,eAAeI,KAAKJ,KACtBA,EAAMA,EAAIK,MAAM,GAAI,IAElBJ,EAAQK,OACVN,GAAOC,EAAQK,MAKb,oBAAoB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IA,CAC3C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///./src/show-cases/index.tsx","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///./src/show-cases/i18n.ts","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///./src/show-cases/styles.shadow.css","webpack:///../../node_modules/classnames/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","import React, { useMemo, useState } from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { initializeI18n } from \"@next-core/i18n\";\nimport type { Link, LinkProps } from \"@next-bricks/basic/link\";\nimport { get } from \"lodash\";\nimport classNames from \"classnames\";\nimport { getBasePath } from \"@next-core/runtime\";\nimport { K, NS, locales, t } from \"./i18n.js\";\nimport styleText from \"./styles.shadow.css\";\n\ninitializeI18n(NS, locales);\n\nconst WrappedLink = wrapBrick<Link, LinkProps>(\"eo-link\");\n\nconst { defineElement, property } = createDecorators();\n\nexport interface ShowCasesProps {\n list?: ShowCase[];\n taskUrlTemplate?: string;\n}\n\nexport interface ShowCase {\n taskId: string;\n title: string;\n summary: string;\n scenario: string;\n thumbUrl?: string;\n}\n\n/**\n * 构件 `ai-portal.show-cases`\n */\nexport\n@defineElement(\"ai-portal.show-cases\", {\n styleTexts: [styleText],\n})\nclass ShowCases extends ReactNextElement implements ShowCasesProps {\n @property({ attribute: false })\n accessor list: ShowCase[] | undefined;\n\n @property()\n accessor taskUrlTemplate: string | undefined;\n\n render() {\n return (\n <ShowCasesComponent\n list={this.list}\n taskUrlTemplate={this.taskUrlTemplate}\n />\n );\n }\n}\n\nfunction ShowCasesComponent({ list, taskUrlTemplate }: ShowCasesProps) {\n // Grouping the list by scenario\n const groups = useMemo<(string | null)[]>(() => {\n return [\n null,\n ...new Set(list?.map((item) => item.scenario).filter(Boolean)),\n ];\n }, [list]);\n\n const [activeGroup, setActiveGroup] = useState<string | null>(null);\n\n const filteredList = useMemo(() => {\n if (!activeGroup) {\n return list;\n }\n return list?.filter((item) => item.scenario === activeGroup);\n }, [activeGroup, list]);\n\n if (!list?.length) {\n return null;\n }\n\n return (\n <>\n <ul className=\"nav\">\n {groups?.map((group) => (\n <li key={group} className=\"item\">\n <a\n className={classNames({ active: activeGroup === group })}\n onClick={() => setActiveGroup(group)}\n >\n {group === null ? t(K.ALL) : group}\n </a>\n </li>\n ))}\n </ul>\n <ul className=\"cases\">\n {filteredList?.map((item) => (\n <li key={item.taskId} className=\"item\">\n <WrappedLink\n className=\"link\"\n url={parseTemplate(taskUrlTemplate, item)}\n >\n <span\n className={classNames(\n \"placeholder\",\n item.thumbUrl ? \"thumbnail\" : \"summary\"\n )}\n >\n {item.thumbUrl ? (\n <span\n style={{\n backgroundImage: `url(${getBasePath()}${item.thumbUrl})`,\n }}\n />\n ) : (\n <span className=\"summary-1\">\n <span className=\"summary-2\">\n <span>{item.summary}</span>\n </span>\n </span>\n )}\n </span>\n <span className=\"title\">\n <span>{item.title}</span>\n </span>\n </WrappedLink>\n </li>\n ))}\n </ul>\n </>\n );\n}\n\nfunction parseTemplate(\n template: string | undefined,\n context: Record<string, any>\n) {\n return template?.replace(/{{(.*?)}}/g, (_match: string, key: string) => {\n const value = get(context, key);\n return value;\n });\n}\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","import { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n ALL = \"ALL\",\n}\n\nconst en: Locale = {\n [K.ALL]: \"All\",\n};\n\nconst zh: Locale = {\n [K.ALL]: \"全部\",\n};\n\nexport const NS = \"bricks/ai-portal/show-cases\";\n\nexport const locales = { en, zh };\n\nexport const t = i18n.getFixedT(null, NS);\n\ntype Locale = { [k in K]: string } & {\n [k in K as `${k}_plural`]?: string;\n};\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./images/border@2x.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:flex;flex-direction:column;align-items:center;max-width:1200px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.nav,\n.cases{list-style:none;padding:0;margin:0}.nav{display:flex;font-size:16px}.nav .item + .item{margin-left:32px}.nav .item a{color:rgba(38,38,38,0.65);cursor:pointer}.nav .item a.active{color:#262626;font-weight:500}.nav .item a.active::after{content:\"\";display:block;width:100%;height:4px;background-color:currentColor;border-radius:2px}.cases{display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(276px,1fr));gap:24px;margin-top:2em}.link{background:#fefefe;border:1px solid #e8e9ec;border-radius:12px;overflow:hidden;display:block}.link::part(link){display:flex;gap:0;flex-direction:column;height:218px}.title{width:100%;height:76px;padding:16px 16px 15px;color:#262626;border-top:1px solid #e8e9ec;font-weight:500;font-size:15px;line-height:22px}.title span{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.placeholder{width:100%;height:142px;background:linear-gradient(308deg,#dee9fc 0%,#fcfbfd 100%,#fbf9fe 100%);overflow:hidden}.summary{color:rgba(0,0,0,0.65);padding:27px 0 0 24px}.thumbnail span{display:block;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}.link:hover{box-shadow:0px 4px 12px 0px rgba(0,0,0,0.06)}.link:hover .title{color:var(--elevo-color-brand)}.summary-1{display:block;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-size:237px 115px;background-repeat:no-repeat;background-position:0 0;padding:10px 0 0 10px}.summary-2{display:block;background:linear-gradient(90deg,#ffffff 0%,#e4ecfc 100%);padding:12px 15px 5px 15px;border-top-left-radius:12px}.summary-2 span{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;color:#525971;line-height:22px;height:88px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2311(e, t, n, r, o, i) {\n var a,\n c,\n u,\n s,\n f,\n l,\n p,\n d = Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"),\n m = Object.defineProperty,\n h = Object.create,\n y = [h(null), h(null)],\n v = t.length;\n function g(t, n, r) {\n return function (o, i) {\n n && (i = o, o = e);\n for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);\n return r ? i : o;\n };\n }\n function b(e, t, n, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, n, r, o, i, u, s, f, l, p) {\n function d(e) {\n if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var h = [].concat(t[0]),\n v = t[3],\n w = !u,\n D = 1 === o,\n S = 3 === o,\n j = 4 === o,\n E = 2 === o;\n function I(t, n, r) {\n return function (o, i) {\n return n && (i = o, o = e), r && r(o), P[t].call(o, i);\n };\n }\n if (!w) {\n var P = {},\n k = [],\n F = S ? \"get\" : j || D ? \"set\" : \"value\";\n if (f ? (l || D ? P = {\n get: setFunctionName(function () {\n return v(this);\n }, r, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : P[F] = v, l || setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {\n if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\");\n y[+s][r] = o < 3 ? 1 : o;\n }\n }\n for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {\n var z = b(h[O], \"A decorator\", \"be\", !0),\n A = n ? h[O - 1] : void 0,\n H = {},\n K = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: r,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw Error(\"attempted to call addInitializer after decoration was finished\");\n b(t, \"An initializer\", \"be\", !0), i.push(t);\n }.bind(null, H)\n };\n if (w) c = z.call(A, N, K), H.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (K[\"static\"] = s, K[\"private\"] = f, c = K.access = {\n has: f ? p.bind() : function (e) {\n return r in e;\n }\n }, j || (c.get = f ? E ? function (e) {\n return d(e), P.value;\n } : I(\"get\", 0, d) : function (e) {\n return e[r];\n }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) {\n e[r] = t;\n }), N = z.call(A, D ? {\n get: P.get,\n set: P.set\n } : P[F], K), H.v = 1, D) {\n if (\"object\" == _typeof(N) && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\");\n } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N);\n }\n return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;\n }\n function w(e) {\n return m(e, d, {\n configurable: !0,\n enumerable: !0,\n value: a\n });\n }\n return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {\n e && f.push(g(e));\n }, p = function p(t, r) {\n for (var i = 0; i < n.length; i++) {\n var a = n[i],\n c = a[1],\n l = 7 & c;\n if ((8 & c) == t && !l == r) {\n var p = a[2],\n d = !!a[3],\n m = 16 & c;\n applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {\n return checkInRHS(t) === e;\n } : o);\n }\n }\n }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {\n e: c,\n get c() {\n var n = [];\n return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];\n }\n };\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}"],"names":["toPropertyKey","t","i","e","Symbol","toPrimitive","call","r","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","module","exports","url","options","__esModule","default","test","slice","hash","needQuotes","concat","replace","_checkInRHS","Object","initializeI18n","NS","locales","WrappedLink","wrapBrick","defineElement","property","createDecorators","_ShowCases","_A","WeakMap","_B","ShowCases","ReactNextElement","_classPrivateFieldInitSpec","_init_list","_init_extra_list","_init_taskUrlTemplate","_init_extra_taskUrlTemplate","list","_classPrivateFieldGet","v","_classPrivateFieldSet","taskUrlTemplate","render","React","ShowCasesComponent","this","_ref","groups","useMemo","Set","map","item","scenario","filter","Boolean","activeGroup","setActiveGroup","useState","filteredList","className","group","key","classNames","active","onClick","K","ALL","taskId","template","context","_match","get","thumbUrl","style","backgroundImage","getBasePath","summary","title","_ShowCases2","c","_initClass","_applyDecs","styleTexts","styleText","attribute","en","zh","i18n","getFixedT","cssWithMappingToString","toString","content","needLayer","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","id","_k","push","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","hasOwn","hasOwnProperty","classes","arg","appendClass","parseValue","Array","isArray","apply","includes","value","newClass","setFunctionName","description","defineProperty","configurable","applyDecs2311","a","u","s","f","l","p","d","metadata","m","h","create","y","g","b","applyDec","w","D","S","j","E","I","P","F","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","_classPrivateFieldGet2","obj","privateMap","_checkPrivateRedeclaration","privateCollection","_classPrivateFieldSet2"],"sourceRoot":""}
@@ -1,13 +1,19 @@
1
1
  {
2
- "ai-portal.home-container": {
3
- "doc": "构件 `ai-portal.home-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>Hello world</ai-portal.home-container>\n# \n```\n"
2
+ "ai-portal.cruise-canvas": {
3
+ "doc": "构件 `ai-portal.cruise-canvas`\n\n## Examples\n\n### Basic\n\n```yaml preview minHeight=\"600px\"\nbrick: div\nproperties:\n style:\n width: 100vw\n height: 100vh\n position: fixed\n top: 0\n left: 0\nchildren:\n - brick: ai-portal.cruise-canvas\n properties:\n task:\n state: completed\n requirement: |-\n 帮我在CMDB中完成手机银行系统的资源纳管\n plan:\n - id: \"2\"\n state: completed\n instruction: |-\n 深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\n - id: \"8\"\n state: completed\n instruction: |-\n 深度搜素CMDB给出资源的纳管现状\n - id: \"10\"\n state: completed\n instruction: |-\n 利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\n - id: \"12\"\n state: completed\n instruction: |-\n 在CMDB中完成手机银行系统的资源纳管\n - id: \"14\"\n state: completed\n instruction: |-\n 生成纳管后手机银行系统的逻辑架构和部署架构图\n jobs:\n - id: \"2\"\n state: completed\n instruction: |-\n 深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\n - id: \"4\"\n upstream: [\"2\"]\n toolCall:\n name: online_search\n originalArguments: |-\n {\"keywords\":\"手机银行系统\"}\n state: completed\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n {\"content\":\"手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\"}\n - role: assistant\n parts:\n - type: text\n text: |-\n 《手机银行系统》\n\n 依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\n - id: \"5\"\n upstream: [\"2\"]\n state: completed\n toolCall:\n name: online_search\n originalArguments: |-\n {\"keywords\":\"XX公司运维管理文件\"}\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 《XX公司运维管理文件》\n\n 依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\n - role: tool\n parts:\n - type: data\n data:\n type: cmdb_instance_detail\n objectId: HOST\n detail:\n hostname: dev-01\n env:\n - id: prod\n name: 生产\n - id: test\n name: 测试\n backupOwners:\n - username: Jerry\n email: jerry@example.com\n - username: Lucy\n email: lucy@example.com\n - username: Mark\n email: mark@example.com\n owner:\n username: Jim\n email: jim@example.com\n - id: dev\n name: 开发\n owner:\n username: Tom\n email: tom@example.com\n system:\n id: web\n name: Web\n outputSchema:\n type: object\n properties:\n hostname:\n description: 主机名\n type: string\n system:\n type: object\n properties:\n id:\n type: string\n description: ID\n name:\n type: string\n env:\n type: array\n description: 环境\n items:\n type: object\n properties:\n id:\n description: ID\n type: string\n name:\n description: 环境名称\n type: string\n owner:\n type: object\n properties:\n username:\n type: string\n description: 用户名\n email:\n type: string\n description: 邮箱\n backupOwners:\n type: array\n items:\n type: object\n properties:\n username:\n type: string\n description: 用户名\n email:\n type: string\n description: 邮箱\n - id: \"7\"\n upstream: [\"4\", \"5\"]\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\n - id: \"8\"\n upstream: [\"7\"]\n instruction: |-\n 深度搜素CMDB给出资源的纳管现状\n state: completed\n toolCall:\n name: create_view\n originalArguments: |-\n {\"requirement\":\"创建一个 XX 视图\"}\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n <%\n JSON.stringify({\n \"viewId\": \"view-123\",\n \"code\": `// 调用监控数据查询接口查询该主机该时间段内的 CPU 使用率、磁盘使用率和网络流量的指标数据\n defineDataSource(\"hostMetrics\", {\n api: \"easyops.api.data_exchange.olap@Query\",\n objectId: \"HOST\",\n params: {\n model: \"easyops.HOST\",\n filters: [\n {\n name: \"ip\",\n operator: \"==\",\n value: \"1.2.3.4\"\n },\n {\n name: \"time\",\n operator: \">=\",\n value: \"now-2d\"\n },\n {\n name: \"time\",\n operator: \"<=\",\n value: \"now-1s\"\n }\n ],\n dims: [\"time(auto)\"],\n measures: [\n {\n function: {\n args: [\"system_cpu_total_norm_pct\"],\n expression: \"avg\"\n },\n name: \"system_cpu_total_norm_pct\"\n },\n {\n function: {\n args: [\"system_filesystem_usage_pct\"],\n expression: \"avg\"\n },\n name: \"system_filesystem_usage_pct\"\n },\n {\n function: {\n args: [\"system_network_in_bits_per_sec\"],\n expression: \"avg\"\n },\n name: \"system_network_in_bits_per_sec\"\n },\n {\n function: {\n args: [\"system_network_out_bits_per_sec\"],\n expression: \"avg\"\n },\n name: \"system_network_out_bits_per_sec\"\n }\n ]\n }\n });\n\n export default (\n <eo-view title=\"主机 1.2.3.4 监控趋势\">\n <eo-dashboard\n dataSource={CTX.hostMetrics}\n widgets={[\n {\n widget: \"chart\",\n type: \"line\",\n title: \"CPU 使用率\",\n metric: {\n id: \"system_cpu_total_norm_pct\",\n unit: \"percent(1)\"\n }\n },\n {\n widget: \"chart\",\n type: \"area\",\n title: \"磁盘使用率\",\n metric: {\n id: \"system_filesystem_usage_pct\",\n unit: \"percent(1)\"\n }\n },\n {\n widget: \"chart\",\n type: \"line\",\n title: \"网络流量 (入)\",\n metric: {\n id: \"system_network_in_bits_per_sec\",\n unit: \"bits/sec\"\n }\n },\n {\n widget: \"chart\",\n type: \"line\",\n title: \"网络流量 (出)\",\n metric: {\n id: \"system_network_out_bits_per_sec\",\n unit: \"bits/sec\"\n }\n }\n ]}\n />\n </eo-view>\n );`\n })\n %>\n - role: assistant\n parts:\n - type: text\n text: |-\n 基于CMDB查询手机银行的资源纳管情况,纳管现状总结如下:\n\n 实例数据的完整性\n 1. 系统录入(已完成)\n 2. 模块录入(部分完成),交易接入模块未录入\n 3. 环境录入(已完成)\n 4. 主机录入(部分完成),交易接入模块主机未录入\n 5. 部署实例录入(部分完成),交易接入模块的部署实例未录入\n\n 关系数据的完整性\n 1. 系统和模块(部分完成),系统和交易接入模块的关系未建立\n 2. 系统和环境(√)\n 3. 模块和主机(部分完成)\n 4. ...\n - id: \"10\"\n upstream: [\"8\"]\n toolCall:\n name: ask_human\n arguments:\n command: ask_user_more\n question: |-\n - 交易接入模块的录入;\n - 系统和交易接入模块的关系创建 ;\n - 部署实例自动采集特征录入。\n instruction: |-\n 利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\n state: completed\n messages:\n - role: user\n parts:\n - type: text\n text: |-\n 我补充下...\n - id: \"12\"\n upstream: [\"10\"]\n instruction: |-\n 在CMDB中完成手机银行系统的资源纳管\n toolCall:\n name: ask_human\n arguments:\n command: ask_user_confirm\n question: |-\n 方案执行的过程信息\n state: completed\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n 确认\n - id: \"14\"\n upstream: [\"12\"]\n instruction: |-\n 生成纳管后手机银行系统的逻辑架构和部署架构图\n tag: topology\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n https://example.com/topology\n - id: \"16\"\n upstream: [\"14\"]\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 该手机银行系统的资源纳管已经完成,本次纳管新增了交易接入模块和该模块相关的主机,以及部署实例信息,模块的纳管建议和架构管理平台打通,部署实例的纳管建议和自动发布平台打通,以便自动完成数据变更,确保数据的准确性,降低架构维护成本。\n# -- YAML DELIMITER (1nbbm8) --\n# <div style=\"width: 100vw; height: 100vh; position: fixed; top: 0; left: 0\">\n# <ai-portal.cruise-canvas id=\"brick-1\"></ai-portal.cruise-canvas>\n# </div>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.task = {\n# state: \"completed\",\n# requirement: \"帮我在CMDB中完成手机银行系统的资源纳管\",\n# plan: [\n# {\n# id: \"2\",\n# state: \"completed\",\n# instruction:\n# \"深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\",\n# },\n# {\n# id: \"8\",\n# state: \"completed\",\n# instruction: \"深度搜素CMDB给出资源的纳管现状\",\n# },\n# {\n# id: \"10\",\n# state: \"completed\",\n# instruction:\n# \"利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\",\n# },\n# {\n# id: \"12\",\n# state: \"completed\",\n# instruction: \"在CMDB中完成手机银行系统的资源纳管\",\n# },\n# {\n# id: \"14\",\n# state: \"completed\",\n# instruction: \"生成纳管后手机银行系统的逻辑架构和部署架构图\",\n# },\n# ],\n# };\n# brick_1.jobs = [\n# {\n# id: \"2\",\n# state: \"completed\",\n# instruction:\n# \"深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\",\n# },\n# {\n# id: \"4\",\n# upstream: [\"2\"],\n# toolCall: {\n# name: \"online_search\",\n# originalArguments: '{\"keywords\":\"手机银行系统\"}',\n# },\n# state: \"completed\",\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: '{\"content\":\"手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\"}',\n# },\n# ],\n# },\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"《手机银行系统》\\n\\n依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"5\",\n# upstream: [\"2\"],\n# state: \"completed\",\n# toolCall: {\n# name: \"online_search\",\n# originalArguments: '{\"keywords\":\"XX公司运维管理文件\"}',\n# },\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"《XX公司运维管理文件》\\n\\n依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\",\n# },\n# ],\n# },\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"data\",\n# data: {\n# type: \"cmdb_instance_detail\",\n# objectId: \"HOST\",\n# detail: {\n# hostname: \"dev-01\",\n# env: [\n# {\n# id: \"prod\",\n# name: \"生产\",\n# },\n# {\n# id: \"test\",\n# name: \"测试\",\n# backupOwners: [\n# {\n# username: \"Jerry\",\n# email: \"jerry@example.com\",\n# },\n# {\n# username: \"Lucy\",\n# email: \"lucy@example.com\",\n# },\n# {\n# username: \"Mark\",\n# email: \"mark@example.com\",\n# },\n# ],\n# owner: {\n# username: \"Jim\",\n# email: \"jim@example.com\",\n# },\n# },\n# {\n# id: \"dev\",\n# name: \"开发\",\n# owner: {\n# username: \"Tom\",\n# email: \"tom@example.com\",\n# },\n# },\n# ],\n# system: {\n# id: \"web\",\n# name: \"Web\",\n# },\n# },\n# outputSchema: {\n# type: \"object\",\n# properties: {\n# hostname: {\n# description: \"主机名\",\n# type: \"string\",\n# },\n# system: {\n# type: \"object\",\n# properties: {\n# id: {\n# type: \"string\",\n# description: \"ID\",\n# },\n# name: {\n# type: \"string\",\n# },\n# },\n# },\n# env: {\n# type: \"array\",\n# description: \"环境\",\n# items: {\n# type: \"object\",\n# properties: {\n# id: {\n# description: \"ID\",\n# type: \"string\",\n# },\n# name: {\n# description: \"环境名称\",\n# type: \"string\",\n# },\n# owner: {\n# type: \"object\",\n# properties: {\n# username: {\n# type: \"string\",\n# description: \"用户名\",\n# },\n# email: {\n# type: \"string\",\n# description: \"邮箱\",\n# },\n# },\n# },\n# backupOwners: {\n# type: \"array\",\n# items: {\n# type: \"object\",\n# properties: {\n# username: {\n# type: \"string\",\n# description: \"用户名\",\n# },\n# email: {\n# type: \"string\",\n# description: \"邮箱\",\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"7\",\n# upstream: [\"4\", \"5\"],\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"8\",\n# upstream: [\"7\"],\n# instruction: \"深度搜素CMDB给出资源的纳管现状\",\n# state: \"completed\",\n# toolCall: {\n# name: \"create_view\",\n# originalArguments: '{\"requirement\":\"创建一个 XX 视图\"}',\n# },\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: '<%\\n JSON.stringify({\\n \"viewId\": \"view-123\",\\n \"code\": `// 调用监控数据查询接口查询该主机该时间段内的 CPU 使用率、磁盘使用率和网络流量的指标数据\\ndefineDataSource(\"hostMetrics\", {\\n api: \"easyops.api.data_exchange.olap@Query\",\\n objectId: \"HOST\",\\n params: {\\n model: \"easyops.HOST\",\\n filters: [\\n {\\n name: \"ip\",\\n operator: \"==\",\\n value: \"1.2.3.4\"\\n },\\n {\\n name: \"time\",\\n operator: \">=\",\\n value: \"now-2d\"\\n },\\n {\\n name: \"time\",\\n operator: \"<=\",\\n value: \"now-1s\"\\n }\\n ],\\n dims: [\"time(auto)\"],\\n measures: [\\n {\\n function: {\\n args: [\"system_cpu_total_norm_pct\"],\\n expression: \"avg\"\\n },\\n name: \"system_cpu_total_norm_pct\"\\n },\\n {\\n function: {\\n args: [\"system_filesystem_usage_pct\"],\\n expression: \"avg\"\\n },\\n name: \"system_filesystem_usage_pct\"\\n },\\n {\\n function: {\\n args: [\"system_network_in_bits_per_sec\"],\\n expression: \"avg\"\\n },\\n name: \"system_network_in_bits_per_sec\"\\n },\\n {\\n function: {\\n args: [\"system_network_out_bits_per_sec\"],\\n expression: \"avg\"\\n },\\n name: \"system_network_out_bits_per_sec\"\\n }\\n ]\\n }\\n});\\n\\nexport default (\\n <eo-view title=\"主机 1.2.3.4 监控趋势\">\\n <eo-dashboard\\n dataSource={CTX.hostMetrics}\\n widgets={[\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"CPU 使用率\",\\n metric: {\\n id: \"system_cpu_total_norm_pct\",\\n unit: \"percent(1)\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"area\",\\n title: \"磁盘使用率\",\\n metric: {\\n id: \"system_filesystem_usage_pct\",\\n unit: \"percent(1)\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"网络流量 (入)\",\\n metric: {\\n id: \"system_network_in_bits_per_sec\",\\n unit: \"bits/sec\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"网络流量 (出)\",\\n metric: {\\n id: \"system_network_out_bits_per_sec\",\\n unit: \"bits/sec\"\\n }\\n }\\n ]}\\n />\\n </eo-view>\\n);`\\n })\\n%>',\n# },\n# ],\n# },\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"基于CMDB查询手机银行的资源纳管情况,纳管现状总结如下:\\n\\n实例数据的完整性\\n1. 系统录入(已完成)\\n2. 模块录入(部分完成),交易接入模块未录入\\n3. 环境录入(已完成)\\n4. 主机录入(部分完成),交易接入模块主机未录入\\n5. 部署实例录入(部分完成),交易接入模块的部署实例未录入\\n\\n关系数据的完整性\\n1. 系统和模块(部分完成),系统和交易接入模块的关系未建立\\n2. 系统和环境(√)\\n3. 模块和主机(部分完成)\\n4. ...\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"10\",\n# upstream: [\"8\"],\n# toolCall: {\n# name: \"ask_human\",\n# arguments: {\n# command: \"ask_user_more\",\n# question:\n# \"- 交易接入模块的录入;\\n- 系统和交易接入模块的关系创建 ;\\n- 部署实例自动采集特征录入。\",\n# },\n# },\n# instruction:\n# \"利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\",\n# state: \"completed\",\n# messages: [\n# {\n# role: \"user\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"我补充下...\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"12\",\n# upstream: [\"10\"],\n# instruction: \"在CMDB中完成手机银行系统的资源纳管\",\n# toolCall: {\n# name: \"ask_human\",\n# arguments: {\n# command: \"ask_user_confirm\",\n# question: \"方案执行的过程信息\",\n# },\n# },\n# state: \"completed\",\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"确认\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"14\",\n# upstream: [\"12\"],\n# instruction: \"生成纳管后手机银行系统的逻辑架构和部署架构图\",\n# tag: \"topology\",\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"https://example.com/topology\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"16\",\n# upstream: [\"14\"],\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"该手机银行系统的资源纳管已经完成,本次纳管新增了交易接入模块和该模块相关的主机,以及部署实例信息,模块的纳管建议和架构管理平台打通,部署实例的纳管建议和自动发布平台打通,以便自动完成数据变更,确保数据的准确性,降低架构维护成本。\",\n# },\n# ],\n# },\n# ],\n# },\n# ];\n# </script>\n# \n```\n"
4
4
  },
5
5
  "ai-portal.chat-box": {
6
6
  "doc": "构件 `ai-portal.chat-box`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-box\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-box>Hello world</ai-portal.chat-box>\n# \n```\n\n### With cruise canvas\n\n```yaml preview minHeight=\"600px\"\nbrick: div\nproperties:\n style:\n width: 100vw\n height: 100vh\n position: fixed\n top: 0\n left: 0\ncontext:\n - name: task\nchildren:\n - brick: ai-portal.chat-box\n if: <%= !CTX.task %>\n properties:\n style:\n position: absolute\n width: 500px\n maxWidth: 90vw\n maxHeight: 90vh\n top: 50%\n left: 50%\n transform: translate(-50%, -50%)\n events:\n message.submit:\n useProvider: basic.http-request\n args:\n - \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\"\n # - /api/mocks/task/send\n # - \"http://localhost:8888/.netlify/functions/task-send\"\n # - \"https://serverless-mocks.netlify.app/.netlify/functions/task-send\"\n - method: POST\n body: |\n <%\n JSON.stringify({\n input: EVENT.detail\n })\n %>\n headers:\n Content-Type: application/json\n callback:\n error:\n action: handleHttpError\n success:\n action: context.replace\n args:\n - task\n - <% EVENT.detail %>\n - brick: ai-portal.cruise-canvas\n if: <%= !!CTX.task %>\n properties:\n taskId: <% CTX.task.id %>\n# -- YAML DELIMITER (1nbbm8) --\n# <div style=\"width: 100vw; height: 100vh; position: fixed; top: 0; left: 0\">\n# <ai-portal.chat-box\n# style=\"\n# position: absolute;\n# width: 500px;\n# max-width: 90vw;\n# max-height: 90vh;\n# top: 50%;\n# left: 50%;\n# transform: translate(-50%, -50%);\n# \"\n# id=\"brick-1\"\n# ></ai-portal.chat-box>\n# <ai-portal.cruise-canvas\n# task-id=\"&lt;% CTX.task.id %&gt;\"\n# ></ai-portal.cruise-canvas>\n# </div>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.addEventListener(\"message.submit\", (e) => {\n# const provider = document.createElement(\"basic.http-request\");\n# const promise = Promise.resolve(\n# provider.resolve(\n# /* WARN: incompatible expressions in HTML, please try YAML: */\n# \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\",\n# {\n# method: \"POST\",\n# body: \"<%\\n JSON.stringify({\\n input: EVENT.detail\\n })\\n%>\\n\",\n# headers: { \"Content-Type\": \"application/json\" },\n# }\n# )\n# );\n# promise.then((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# promise.catch((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# });\n# </script>\n# \n```\n"
7
7
  },
8
+ "ai-portal.home-container": {
9
+ "doc": "构件 `ai-portal.home-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>Hello world</ai-portal.home-container>\n# \n```\n"
10
+ },
8
11
  "ai-portal.chat-history": {
9
12
  "doc": "构件 `ai-portal.chat-history`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-history\nproperties:\n list:\n - id: task_x\n url: /task_x\n title: 纳管 X 系统\n startTime: <% (+moment()) / 1000 %>\n state: working\n - id: task_y\n url: /task_y\n title: 纳管 Y 系统\n startTime: <% (+moment().subtract(2, \"hours\")) / 1000 %>\n state: completed\n - id: task_z\n url: /task_z\n title: 纳管 Z 系统\n startTime: <% (+moment().subtract(1, \"days\")) / 1000 %>\n state: completed\n actions:\n - icon:\n lib: antd\n icon: upload\n text: 分享\n isDropdown: true\n event: share\n - icon:\n lib: antd\n icon: edit\n text: 重命名\n isDropdown: true\n event: rename\n - icon:\n lib: antd\n icon: delete\n text: 删除\n isDropdown: true\n danger: true\n event: delete\nevents:\n action.click:\n - action: console.log\n - if: <% EVENT.detail.action.event === \"delete\" %>\n useProvider: basic.show-dialog\n args:\n - type: delete\n title: 确定删除这一条任务记录吗?\n content: 删除后任务记录无法恢复,请谨慎操作\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-history id=\"brick-1\"></ai-portal.chat-history>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# id: \"task_x\",\n# url: \"/task_x\",\n# title: \"纳管 X 系统\",\n# startTime: \"<% (+moment()) / 1000 %>\",\n# state: \"working\",\n# },\n# {\n# id: \"task_y\",\n# url: \"/task_y\",\n# title: \"纳管 Y 系统\",\n# startTime: '<% (+moment().subtract(2, \"hours\")) / 1000 %>',\n# state: \"completed\",\n# },\n# {\n# id: \"task_z\",\n# url: \"/task_z\",\n# title: \"纳管 Z 系统\",\n# startTime: '<% (+moment().subtract(1, \"days\")) / 1000 %>',\n# state: \"completed\",\n# },\n# ];\n# brick_1.actions = [\n# {\n# icon: {\n# lib: \"antd\",\n# icon: \"upload\",\n# },\n# text: \"分享\",\n# isDropdown: true,\n# event: \"share\",\n# },\n# {\n# icon: {\n# lib: \"antd\",\n# icon: \"edit\",\n# },\n# text: \"重命名\",\n# isDropdown: true,\n# event: \"rename\",\n# },\n# {\n# icon: {\n# lib: \"antd\",\n# icon: \"delete\",\n# },\n# text: \"删除\",\n# isDropdown: true,\n# danger: true,\n# event: \"delete\",\n# },\n# ];\n# brick_1.addEventListener(\"action.click\", (e) => {\n# console.log(e.detail);\n# });\n# brick_1.addEventListener(\"action.click\", (e) => {\n# const provider = document.createElement(\"basic.show-dialog\");\n# provider.resolve({\n# type: \"delete\",\n# title: \"确定删除这一条任务记录吗?\",\n# content: \"删除后任务记录无法恢复,请谨慎操作\",\n# });\n# });\n# </script>\n# \n```\n"
10
13
  },
14
+ "ai-portal.stat-with-mini-chart": {
15
+ "doc": "构件 `ai-portal.stat-with-mini-chart`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n\n### Size\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n size: small\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# size=\"small\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n"
16
+ },
11
17
  "ai-portal.elevo-logo": {
12
18
  "doc": "构件 `ai-portal.elevo-logo`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.elevo-logo\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.elevo-logo></ai-portal.elevo-logo>\n# \n```\n"
13
19
  },
@@ -23,17 +29,11 @@
23
29
  "ai-portal.mcp-tools": {
24
30
  "doc": "构件 `ai-portal.mcp-tools`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.mcp-tools\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.mcp-tools>Hello world</ai-portal.mcp-tools>\n# \n```\n"
25
31
  },
26
- "ai-portal.ai-employees": {
27
- "doc": "构件 `ai-portal.ai-employees`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.ai-employees\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.ai-employees>Hello world</ai-portal.ai-employees>\n# \n```\n"
28
- },
29
32
  "ai-portal.chat-stream": {
30
33
  "doc": "构件 `ai-portal.chat-stream`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-stream\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-stream>Hello world</ai-portal.chat-stream>\n# \n```\n"
31
34
  },
32
- "ai-portal.stat-with-mini-chart": {
33
- "doc": "构件 `ai-portal.stat-with-mini-chart`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n\n### Size\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n size: small\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# size=\"small\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n"
34
- },
35
- "ai-portal.cruise-canvas": {
36
- "doc": "构件 `ai-portal.cruise-canvas`\n\n## Examples\n\n### Basic\n\n```yaml preview minHeight=\"600px\"\nbrick: div\nproperties:\n style:\n width: 100vw\n height: 100vh\n position: fixed\n top: 0\n left: 0\nchildren:\n - brick: ai-portal.cruise-canvas\n properties:\n task:\n state: completed\n requirement: |-\n 帮我在CMDB中完成手机银行系统的资源纳管\n plan:\n - id: \"2\"\n state: completed\n instruction: |-\n 深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\n - id: \"8\"\n state: completed\n instruction: |-\n 深度搜素CMDB给出资源的纳管现状\n - id: \"10\"\n state: completed\n instruction: |-\n 利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\n - id: \"12\"\n state: completed\n instruction: |-\n 在CMDB中完成手机银行系统的资源纳管\n - id: \"14\"\n state: completed\n instruction: |-\n 生成纳管后手机银行系统的逻辑架构和部署架构图\n jobs:\n - id: \"2\"\n state: completed\n instruction: |-\n 深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\n - id: \"4\"\n upstream: [\"2\"]\n toolCall:\n name: online_search\n originalArguments: |-\n {\"keywords\":\"手机银行系统\"}\n state: completed\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n {\"content\":\"手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\"}\n - role: assistant\n parts:\n - type: text\n text: |-\n 《手机银行系统》\n\n 依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\n - id: \"5\"\n upstream: [\"2\"]\n state: completed\n toolCall:\n name: online_search\n originalArguments: |-\n {\"keywords\":\"XX公司运维管理文件\"}\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 《XX公司运维管理文件》\n\n 依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\n - role: tool\n parts:\n - type: data\n data:\n type: cmdb_instance_detail\n objectId: HOST\n detail:\n hostname: dev-01\n env:\n - id: prod\n name: 生产\n - id: test\n name: 测试\n backupOwners:\n - username: Jerry\n email: jerry@example.com\n - username: Lucy\n email: lucy@example.com\n - username: Mark\n email: mark@example.com\n owner:\n username: Jim\n email: jim@example.com\n - id: dev\n name: 开发\n owner:\n username: Tom\n email: tom@example.com\n system:\n id: web\n name: Web\n outputSchema:\n type: object\n properties:\n hostname:\n description: 主机名\n type: string\n system:\n type: object\n properties:\n id:\n type: string\n description: ID\n name:\n type: string\n env:\n type: array\n description: 环境\n items:\n type: object\n properties:\n id:\n description: ID\n type: string\n name:\n description: 环境名称\n type: string\n owner:\n type: object\n properties:\n username:\n type: string\n description: 用户名\n email:\n type: string\n description: 邮箱\n backupOwners:\n type: array\n items:\n type: object\n properties:\n username:\n type: string\n description: 用户名\n email:\n type: string\n description: 邮箱\n - id: \"7\"\n upstream: [\"4\", \"5\"]\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\n - id: \"8\"\n upstream: [\"7\"]\n instruction: |-\n 深度搜素CMDB给出资源的纳管现状\n state: completed\n toolCall:\n name: create_view\n originalArguments: |-\n {\"requirement\":\"创建一个 XX 视图\"}\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n <%\n JSON.stringify({\n \"viewId\": \"view-123\",\n \"code\": `// 调用监控数据查询接口查询该主机该时间段内的 CPU 使用率、磁盘使用率和网络流量的指标数据\n defineDataSource(\"hostMetrics\", {\n api: \"easyops.api.data_exchange.olap@Query\",\n objectId: \"HOST\",\n params: {\n model: \"easyops.HOST\",\n filters: [\n {\n name: \"ip\",\n operator: \"==\",\n value: \"1.2.3.4\"\n },\n {\n name: \"time\",\n operator: \">=\",\n value: \"now-2d\"\n },\n {\n name: \"time\",\n operator: \"<=\",\n value: \"now-1s\"\n }\n ],\n dims: [\"time(auto)\"],\n measures: [\n {\n function: {\n args: [\"system_cpu_total_norm_pct\"],\n expression: \"avg\"\n },\n name: \"system_cpu_total_norm_pct\"\n },\n {\n function: {\n args: [\"system_filesystem_usage_pct\"],\n expression: \"avg\"\n },\n name: \"system_filesystem_usage_pct\"\n },\n {\n function: {\n args: [\"system_network_in_bits_per_sec\"],\n expression: \"avg\"\n },\n name: \"system_network_in_bits_per_sec\"\n },\n {\n function: {\n args: [\"system_network_out_bits_per_sec\"],\n expression: \"avg\"\n },\n name: \"system_network_out_bits_per_sec\"\n }\n ]\n }\n });\n\n export default (\n <eo-view title=\"主机 1.2.3.4 监控趋势\">\n <eo-dashboard\n dataSource={CTX.hostMetrics}\n widgets={[\n {\n widget: \"chart\",\n type: \"line\",\n title: \"CPU 使用率\",\n metric: {\n id: \"system_cpu_total_norm_pct\",\n unit: \"percent(1)\"\n }\n },\n {\n widget: \"chart\",\n type: \"area\",\n title: \"磁盘使用率\",\n metric: {\n id: \"system_filesystem_usage_pct\",\n unit: \"percent(1)\"\n }\n },\n {\n widget: \"chart\",\n type: \"line\",\n title: \"网络流量 (入)\",\n metric: {\n id: \"system_network_in_bits_per_sec\",\n unit: \"bits/sec\"\n }\n },\n {\n widget: \"chart\",\n type: \"line\",\n title: \"网络流量 (出)\",\n metric: {\n id: \"system_network_out_bits_per_sec\",\n unit: \"bits/sec\"\n }\n }\n ]}\n />\n </eo-view>\n );`\n })\n %>\n - role: assistant\n parts:\n - type: text\n text: |-\n 基于CMDB查询手机银行的资源纳管情况,纳管现状总结如下:\n\n 实例数据的完整性\n 1. 系统录入(已完成)\n 2. 模块录入(部分完成),交易接入模块未录入\n 3. 环境录入(已完成)\n 4. 主机录入(部分完成),交易接入模块主机未录入\n 5. 部署实例录入(部分完成),交易接入模块的部署实例未录入\n\n 关系数据的完整性\n 1. 系统和模块(部分完成),系统和交易接入模块的关系未建立\n 2. 系统和环境(√)\n 3. 模块和主机(部分完成)\n 4. ...\n - id: \"10\"\n upstream: [\"8\"]\n toolCall:\n name: ask_human\n arguments:\n command: ask_user_more\n question: |-\n - 交易接入模块的录入;\n - 系统和交易接入模块的关系创建 ;\n - 部署实例自动采集特征录入。\n instruction: |-\n 利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\n state: completed\n messages:\n - role: user\n parts:\n - type: text\n text: |-\n 我补充下...\n - id: \"12\"\n upstream: [\"10\"]\n instruction: |-\n 在CMDB中完成手机银行系统的资源纳管\n toolCall:\n name: ask_human\n arguments:\n command: ask_user_confirm\n question: |-\n 方案执行的过程信息\n state: completed\n messages:\n - role: tool\n parts:\n - type: text\n text: |-\n 确认\n - id: \"14\"\n upstream: [\"12\"]\n instruction: |-\n 生成纳管后手机银行系统的逻辑架构和部署架构图\n tag: topology\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n https://example.com/topology\n - id: \"16\"\n upstream: [\"14\"]\n state: completed\n messages:\n - role: assistant\n parts:\n - type: text\n text: |-\n 该手机银行系统的资源纳管已经完成,本次纳管新增了交易接入模块和该模块相关的主机,以及部署实例信息,模块的纳管建议和架构管理平台打通,部署实例的纳管建议和自动发布平台打通,以便自动完成数据变更,确保数据的准确性,降低架构维护成本。\n# -- YAML DELIMITER (1nbbm8) --\n# <div style=\"width: 100vw; height: 100vh; position: fixed; top: 0; left: 0\">\n# <ai-portal.cruise-canvas id=\"brick-1\"></ai-portal.cruise-canvas>\n# </div>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.task = {\n# state: \"completed\",\n# requirement: \"帮我在CMDB中完成手机银行系统的资源纳管\",\n# plan: [\n# {\n# id: \"2\",\n# state: \"completed\",\n# instruction:\n# \"深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\",\n# },\n# {\n# id: \"8\",\n# state: \"completed\",\n# instruction: \"深度搜素CMDB给出资源的纳管现状\",\n# },\n# {\n# id: \"10\",\n# state: \"completed\",\n# instruction:\n# \"利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\",\n# },\n# {\n# id: \"12\",\n# state: \"completed\",\n# instruction: \"在CMDB中完成手机银行系统的资源纳管\",\n# },\n# {\n# id: \"14\",\n# state: \"completed\",\n# instruction: \"生成纳管后手机银行系统的逻辑架构和部署架构图\",\n# },\n# ],\n# };\n# brick_1.jobs = [\n# {\n# id: \"2\",\n# state: \"completed\",\n# instruction:\n# \"深度搜素内部知识库,确认手机银行系统包含的逻辑组件和部署要求\",\n# },\n# {\n# id: \"4\",\n# upstream: [\"2\"],\n# toolCall: {\n# name: \"online_search\",\n# originalArguments: '{\"keywords\":\"手机银行系统\"}',\n# },\n# state: \"completed\",\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: '{\"content\":\"手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\"}',\n# },\n# ],\n# },\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"《手机银行系统》\\n\\n依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"5\",\n# upstream: [\"2\"],\n# state: \"completed\",\n# toolCall: {\n# name: \"online_search\",\n# originalArguments: '{\"keywords\":\"XX公司运维管理文件\"}',\n# },\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"《XX公司运维管理文件》\\n\\n依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\",\n# },\n# ],\n# },\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"data\",\n# data: {\n# type: \"cmdb_instance_detail\",\n# objectId: \"HOST\",\n# detail: {\n# hostname: \"dev-01\",\n# env: [\n# {\n# id: \"prod\",\n# name: \"生产\",\n# },\n# {\n# id: \"test\",\n# name: \"测试\",\n# backupOwners: [\n# {\n# username: \"Jerry\",\n# email: \"jerry@example.com\",\n# },\n# {\n# username: \"Lucy\",\n# email: \"lucy@example.com\",\n# },\n# {\n# username: \"Mark\",\n# email: \"mark@example.com\",\n# },\n# ],\n# owner: {\n# username: \"Jim\",\n# email: \"jim@example.com\",\n# },\n# },\n# {\n# id: \"dev\",\n# name: \"开发\",\n# owner: {\n# username: \"Tom\",\n# email: \"tom@example.com\",\n# },\n# },\n# ],\n# system: {\n# id: \"web\",\n# name: \"Web\",\n# },\n# },\n# outputSchema: {\n# type: \"object\",\n# properties: {\n# hostname: {\n# description: \"主机名\",\n# type: \"string\",\n# },\n# system: {\n# type: \"object\",\n# properties: {\n# id: {\n# type: \"string\",\n# description: \"ID\",\n# },\n# name: {\n# type: \"string\",\n# },\n# },\n# },\n# env: {\n# type: \"array\",\n# description: \"环境\",\n# items: {\n# type: \"object\",\n# properties: {\n# id: {\n# description: \"ID\",\n# type: \"string\",\n# },\n# name: {\n# description: \"环境名称\",\n# type: \"string\",\n# },\n# owner: {\n# type: \"object\",\n# properties: {\n# username: {\n# type: \"string\",\n# description: \"用户名\",\n# },\n# email: {\n# type: \"string\",\n# description: \"邮箱\",\n# },\n# },\n# },\n# backupOwners: {\n# type: \"array\",\n# items: {\n# type: \"object\",\n# properties: {\n# username: {\n# type: \"string\",\n# description: \"用户名\",\n# },\n# email: {\n# type: \"string\",\n# description: \"邮箱\",\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"7\",\n# upstream: [\"4\", \"5\"],\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"依据内部知识库,手机银行系统的逻辑组件包含用户认证,交易接入和理财中心三个模块组成。依据《XX公司运维管理文件》该系统的重要等级为一级,可用性要求99.999%,MTTR为小于3分钟,该系统部署需要实现异地容灾,建议采用双中心部署,且单中心内核心模块无单点。\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"8\",\n# upstream: [\"7\"],\n# instruction: \"深度搜素CMDB给出资源的纳管现状\",\n# state: \"completed\",\n# toolCall: {\n# name: \"create_view\",\n# originalArguments: '{\"requirement\":\"创建一个 XX 视图\"}',\n# },\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: '<%\\n JSON.stringify({\\n \"viewId\": \"view-123\",\\n \"code\": `// 调用监控数据查询接口查询该主机该时间段内的 CPU 使用率、磁盘使用率和网络流量的指标数据\\ndefineDataSource(\"hostMetrics\", {\\n api: \"easyops.api.data_exchange.olap@Query\",\\n objectId: \"HOST\",\\n params: {\\n model: \"easyops.HOST\",\\n filters: [\\n {\\n name: \"ip\",\\n operator: \"==\",\\n value: \"1.2.3.4\"\\n },\\n {\\n name: \"time\",\\n operator: \">=\",\\n value: \"now-2d\"\\n },\\n {\\n name: \"time\",\\n operator: \"<=\",\\n value: \"now-1s\"\\n }\\n ],\\n dims: [\"time(auto)\"],\\n measures: [\\n {\\n function: {\\n args: [\"system_cpu_total_norm_pct\"],\\n expression: \"avg\"\\n },\\n name: \"system_cpu_total_norm_pct\"\\n },\\n {\\n function: {\\n args: [\"system_filesystem_usage_pct\"],\\n expression: \"avg\"\\n },\\n name: \"system_filesystem_usage_pct\"\\n },\\n {\\n function: {\\n args: [\"system_network_in_bits_per_sec\"],\\n expression: \"avg\"\\n },\\n name: \"system_network_in_bits_per_sec\"\\n },\\n {\\n function: {\\n args: [\"system_network_out_bits_per_sec\"],\\n expression: \"avg\"\\n },\\n name: \"system_network_out_bits_per_sec\"\\n }\\n ]\\n }\\n});\\n\\nexport default (\\n <eo-view title=\"主机 1.2.3.4 监控趋势\">\\n <eo-dashboard\\n dataSource={CTX.hostMetrics}\\n widgets={[\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"CPU 使用率\",\\n metric: {\\n id: \"system_cpu_total_norm_pct\",\\n unit: \"percent(1)\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"area\",\\n title: \"磁盘使用率\",\\n metric: {\\n id: \"system_filesystem_usage_pct\",\\n unit: \"percent(1)\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"网络流量 (入)\",\\n metric: {\\n id: \"system_network_in_bits_per_sec\",\\n unit: \"bits/sec\"\\n }\\n },\\n {\\n widget: \"chart\",\\n type: \"line\",\\n title: \"网络流量 (出)\",\\n metric: {\\n id: \"system_network_out_bits_per_sec\",\\n unit: \"bits/sec\"\\n }\\n }\\n ]}\\n />\\n </eo-view>\\n);`\\n })\\n%>',\n# },\n# ],\n# },\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"基于CMDB查询手机银行的资源纳管情况,纳管现状总结如下:\\n\\n实例数据的完整性\\n1. 系统录入(已完成)\\n2. 模块录入(部分完成),交易接入模块未录入\\n3. 环境录入(已完成)\\n4. 主机录入(部分完成),交易接入模块主机未录入\\n5. 部署实例录入(部分完成),交易接入模块的部署实例未录入\\n\\n关系数据的完整性\\n1. 系统和模块(部分完成),系统和交易接入模块的关系未建立\\n2. 系统和环境(√)\\n3. 模块和主机(部分完成)\\n4. ...\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"10\",\n# upstream: [\"8\"],\n# toolCall: {\n# name: \"ask_human\",\n# arguments: {\n# command: \"ask_user_more\",\n# question:\n# \"- 交易接入模块的录入;\\n- 系统和交易接入模块的关系创建 ;\\n- 部署实例自动采集特征录入。\",\n# },\n# },\n# instruction:\n# \"利用深度思考能力,给出手机银行系统的资源纳管优化方案,该方案用户可以微调或确认\",\n# state: \"completed\",\n# messages: [\n# {\n# role: \"user\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"我补充下...\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"12\",\n# upstream: [\"10\"],\n# instruction: \"在CMDB中完成手机银行系统的资源纳管\",\n# toolCall: {\n# name: \"ask_human\",\n# arguments: {\n# command: \"ask_user_confirm\",\n# question: \"方案执行的过程信息\",\n# },\n# },\n# state: \"completed\",\n# messages: [\n# {\n# role: \"tool\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"确认\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"14\",\n# upstream: [\"12\"],\n# instruction: \"生成纳管后手机银行系统的逻辑架构和部署架构图\",\n# tag: \"topology\",\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"https://example.com/topology\",\n# },\n# ],\n# },\n# ],\n# },\n# {\n# id: \"16\",\n# upstream: [\"14\"],\n# state: \"completed\",\n# messages: [\n# {\n# role: \"assistant\",\n# parts: [\n# {\n# type: \"text\",\n# text: \"该手机银行系统的资源纳管已经完成,本次纳管新增了交易接入模块和该模块相关的主机,以及部署实例信息,模块的纳管建议和架构管理平台打通,部署实例的纳管建议和自动发布平台打通,以便自动完成数据变更,确保数据的准确性,降低架构维护成本。\",\n# },\n# ],\n# },\n# ],\n# },\n# ];\n# </script>\n# \n```\n"
35
+ "ai-portal.ai-employees": {
36
+ "doc": "构件 `ai-portal.ai-employees`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.ai-employees\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.ai-employees>Hello world</ai-portal.ai-employees>\n# \n```\n"
37
37
  },
38
38
  "ai-portal.ai-agents": {
39
39
  "doc": "构件 `ai-portal.ai-agents`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.ai-agents\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.ai-agents>Hello world</ai-portal.ai-agents>\n# \n```\n"
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e,t,r,a,n,o,l,i,s,c,d,h,u,f,m,p,b,v,g,x,P,y,w,k={69061:(e,t,r)=>{var a={"./cruise-canvas":()=>Promise.all([r.e(1165),r.e(6677),r.e(9828),r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1030),r.e(4558),r.e(1302),r.e(9475),r.e(7372),r.e(1321),r.e(9435),r.e(0),r.e(8377),r.e(580),r.e(981),r.e(4820),r.e(2267)]).then((()=>()=>r(16185))),"./chat-box":()=>Promise.all([r.e(1165),r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1030),r.e(9435),r.e(6573)]).then((()=>()=>r(67707))),"./home-container":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(3172)]).then((()=>()=>r(67494))),"./chat-history":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1302),r.e(1750)]).then((()=>()=>r(25704))),"./stat-with-mini-chart":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7345)]).then((()=>()=>r(57687))),"./elevo-logo":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(5064)]).then((()=>()=>r(76722))),"./elevo-sidebar":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1030),r.e(1302),r.e(9475),r.e(7372),r.e(7771)]).then((()=>()=>r(86833))),"./icon-button":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(1541)]).then((()=>()=>r(99011))),"./show-cases":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1030),r.e(9475),r.e(4332)]).then((()=>()=>r(32118))),"./mcp-tools":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(7087)]).then((()=>()=>r(72789))),"./chat-stream":()=>Promise.all([r.e(1165),r.e(6677),r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(1030),r.e(4558),r.e(1302),r.e(9475),r.e(7372),r.e(1321),r.e(9435),r.e(0),r.e(8377),r.e(580),r.e(981),r.e(5054),r.e(366)]).then((()=>()=>r(38208))),"./ai-employees":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(6729)]).then((()=>()=>r(61159))),"./ai-agents":()=>Promise.all([r.e(8769),r.e(7921),r.e(1280),r.e(5168),r.e(7117),r.e(304)]).then((()=>()=>r(72714))),"./save-request-store":()=>Promise.all([r.e(4558),r.e(8539)]).then((()=>()=>r(10917))),"./load-request-store":()=>Promise.all([r.e(4558),r.e(8539)]).then((()=>()=>r(10917))),"./clear-request-store":()=>Promise.all([r.e(4558),r.e(8539)]).then((()=>()=>r(10917)))},n=(e,t)=>(r.R=t,t=r.o(a,e)?a[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),o=(e,t)=>{if(r.S){var a="default",n=r.S[a];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[a]=e,r.I(a,t)}};r.d(t,{get:()=>n,init:()=>o})}},j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var r=j[e]={id:e,loaded:!1,exports:{}};return k[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=k,S.c=j,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var r in t)S.o(t,r)&&!S.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,r)=>(S.f[r](e,t),t)),[])),S.u=e=>"chunks/"+({304:"ai-agents",366:"chat-stream",1541:"icon-button",1750:"chat-history",2267:"cruise-canvas",3172:"home-container",4332:"show-cases",5064:"elevo-logo",6573:"chat-box",6729:"ai-employees",7087:"mcp-tools",7345:"stat-with-mini-chart",7771:"elevo-sidebar",8539:"load-request-store"}[e]||e)+"."+{114:"86e10cdd",304:"921e8399",366:"0274b098",721:"f43de0ef",726:"392de709",843:"9b7325c3",871:"42c14164",879:"a469d051",981:"e0bd1e25",1045:"0906fc23",1097:"2d02ad95",1122:"95231c39",1165:"9f35625d",1370:"e6adbca3",1541:"62a7f33f",1750:"d6faa19d",1889:"218ea7ea",1931:"2abee15e",1940:"afcdea49",2052:"ef23d12a",2260:"9564eb16",2267:"d4e9e5d8",2277:"b026624f",2432:"352ae272",2508:"15c05669",3003:"a607b32b",3144:"4088b5d1",3171:"f486ac82",3172:"a6b3f647",3208:"0796f5be",3331:"bb7b4c1c",3419:"28287d23",3744:"1c2c9ded",3816:"fc867cd4",3935:"3b6a2f5d",4041:"6b503155",4228:"fb9278c3",4281:"ddad94d5",4306:"bae21d5d",4332:"f0f70cfb",4474:"5fd3e9c8",4491:"539d30f8",4658:"18d5ee4d",4765:"ae81ae59",4820:"4305acaa",4837:"ef36f6e2",5054:"0e746eec",5064:"f5f72599",5191:"ce5dfec4",5250:"5294dc23",5307:"28ab7643",5384:"564ae2e4",5399:"501fc322",5548:"498b312d",5552:"57a9edba",5727:"93a1388d",5807:"0b926b80",5936:"5bba7f2f",6023:"843ea4a1",6029:"6fe4c192",6161:"d7e3ea42",6519:"2e968600",6530:"dd7ab536",6573:"b34adf84",6677:"2fea9748",6729:"f2cc101e",6773:"afd27a30",7087:"089be187",7146:"c0ae3b12",7218:"13c19b72",7302:"3117acc5",7345:"0c308dd8",7353:"02afd00b",7721:"c985db03",7733:"0615ed85",7771:"f02fd532",7842:"d5a94411",8231:"89b65f56",8348:"2fbb3b7e",8539:"eb92f754",8588:"0bce58e7",8633:"1b8bb39e",8755:"1525c38d",8936:"b9a73775",8989:"9db8c4fb",9034:"7ff08734",9140:"8e69fcb4",9263:"affcdb7b",9515:"468a8527",9559:"3db56cb0",9634:"71192f72",9828:"6afc1a0f",9831:"f659ce60",9844:"c3062a6b",9848:"ab8ad988"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@next-bricks/ai-portal:",S.l=(r,a,n,o)=>{if(e[r])e[r].push(a);else{var l,i;if(void 0!==n)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+n){l=d;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",t+n),l.src=r),e[r]=[a];var h=(t,a)=>{l.onerror=l.onload=null,clearTimeout(u);var n=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(a))),t)return t(a)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,a)=>{a||(a=[]);var n=t[r];if(n||(n=t[r]={}),!(a.indexOf(n)>=0)){if(a.push(n),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/ai-portal",i=(e,t,r,a)=>{var n=o[e]=o[e]||{},i=n[t];(!i||!i.loaded&&(!a!=!i.eager?a:l>i.from))&&(n[t]={get:r,from:l,eager:!!a})},s=[];return"default"===r&&(i("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(46773))))),i("@easyops-cn/brick-next-pipes","0.7.3",(()=>Promise.all([S.e(4306),S.e(1030),S.e(1302),S.e(5310)]).then((()=>()=>S(34306))))),i("@next-core/cook","2.5.10",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),i("@next-core/easyops-runtime","0.15.8",(()=>Promise.all([S.e(1097),S.e(7117),S.e(1030),S.e(4558),S.e(9475),S.e(7372),S.e(1321),S.e(0),S.e(9933),S.e(1732),S.e(5310),S.e(9848)]).then((()=>()=>S(11097))))),i("@next-core/element","1.2.18",(()=>S.e(1045).then((()=>()=>S(21045))))),i("@next-core/http","1.2.13",(()=>S.e(8989).then((()=>()=>S(48989))))),i("@next-core/i18n","1.0.83",(()=>Promise.all([S.e(7117),S.e(4558),S.e(671),S.e(5552)]).then((()=>()=>S(75552))))),i("@next-core/inject","1.0.58",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(72277))))),i("@next-core/loader","1.6.16",(()=>S.e(5399).then((()=>()=>S(35399))))),i("@next-core/pipes","2.0.34",(()=>Promise.all([S.e(8377),S.e(6519)]).then((()=>()=>S(76519))))),i("@next-core/react-element","1.0.37",(()=>Promise.all([S.e(8769),S.e(7921),S.e(9435),S.e(114)]).then((()=>()=>S(20114))))),i("@next-core/react-runtime","1.7.28",(()=>Promise.all([S.e(8769),S.e(1280),S.e(1030),S.e(9475),S.e(4837)]).then((()=>()=>S(64837))))),i("@next-core/runtime","1.65.6",(()=>Promise.all([S.e(9140),S.e(7117),S.e(1030),S.e(4558),S.e(1302),S.e(7372),S.e(1321),S.e(0),S.e(1732),S.e(9718)]).then((()=>()=>S(19140))))),i("@next-core/supply","2.3.7",(()=>Promise.all([S.e(1030),S.e(1302),S.e(9933),S.e(9559)]).then((()=>()=>S(49559))))),i("@next-core/theme","1.6.0",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(51889))))),i("@next-core/utils/general","1.8.4",(()=>S.e(871).then((()=>()=>S(40871))))),i("@next-core/utils/storyboard","1.8.4",(()=>Promise.all([S.e(1030),S.e(4558),S.e(1321),S.e(7146)]).then((()=>()=>S(97146))))),i("history","4.10.1",(()=>S.e(3003).then((()=>()=>S(65384))))),i("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(50726))))),i("i18next","22.5.1",(()=>S.e(843).then((()=>()=>S(20843))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(19515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(45250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(61329))))),i("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(43144))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(14041)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),r=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),a=r[1]?t(r[1]):[];return r[2]&&(a.length++,a.push.apply(a,t(r[2]))),r[3]&&(a.push([]),a.push.apply(a,t(r[3]))),a},a=(e,t)=>{e=r(e),t=r(t);for(var a=0;;){if(a>=e.length)return a<t.length&&"u"!=(typeof t[a])[0];var n=e[a],o=(typeof n)[0];if(a>=t.length)return"u"==o;var l=t[a],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=l)return n<l;a++}},n=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var a=1,o=1;o<e.length;o++)a--,r+="u"==(typeof(i=e[o]))[0]?"-":(a>0?".":"")+(a=2,i);return r}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+s()+")":1===i?"("+s()+" || "+s()+")":2===i?l.pop()+" "+l.pop():n(i))}return s();function s(){return l.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,t)=>{if(0 in e){t=r(t);var a=e[0],n=a<0;n&&(a=-a-1);for(var l=0,i=1,s=!0;;i++,l++){var c,d,h=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(d=(typeof(c=t[l]))[0]))return!s||("u"==h?i>a&&!n:""==h!=n);if("u"==d){if(!s||"u"!=h)return!1}else if(s)if(h==d)if(i<=a){if(c!=e[i])return!1}else{if(n?c>e[i]:c<e[i])return!1;c!=e[i]&&(s=!1)}else if("s"!=h&&"n"!=h){if(n||i<=a)return!1;s=!1,i--}else{if(i<=a||d<h!=n)return!1;s=!1}else"s"!=h&&"n"!=h&&(s=!1,i--)}}var u=[],f=u.pop.bind(u);for(l=1;l<e.length;l++){var m=e[l];u.push(1==m?f()|f():2==m?f()&f():m?o(m,t):!f())}return!!f()},l=(e,t)=>e&&S.o(e,t),i=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),c=(e,t,r,n)=>{var l=n?s(e[t]):e[t];return(t=Object.keys(l).reduce(((e,t)=>!o(r,t)||e&&!a(e,t)?e:t),0))&&l[t]},d=(e,t,r)=>{var n=r?s(e[t]):e[t];return Object.keys(n).reduce(((e,t)=>!e||!n[e].loaded&&a(e,t)?t:e),0)},h=(e,t,r,a)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+n(a)+")",u=(e,t,r,a,o)=>{var l=e[r];return"No satisfying version ("+n(a)+")"+(o?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(l).map((e=>e+" from "+l[e].from)).join(", ")},f=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},b=(e,t,r)=>r?r():((e,t)=>f("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),v=(p=e=>function(t,r,a,n,o){var l=S.I(t);return l&&l.then&&!a?l.then(e.bind(e,t,S.S[t],r,!1,n,o)):e(t,S.S[t],r,a,n,o)})(((e,t,r,a,n,o)=>{if(!l(t,r))return b(e,r,o);var s=c(t,r,n,a);return s?i(s):o?o():void f(u(t,e,r,n,a))})),g=p(((e,t,r,a,n,s)=>{if(!l(t,r))return b(e,r,s);var c=d(t,r,a);return o(n,c)||m(h(t,r,c,n)),i(t[r][c])})),x={},P={41030:()=>g("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(45250))))),21302:()=>g("default","moment",!1,[1,2,30,1],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),55310:()=>g("default","js-yaml",!1,[0],(()=>S.e(9515).then((()=>()=>S(19515))))),40580:()=>g("default","@babel/parser",!1,[0],(()=>S.e(6773).then((()=>()=>S(46773))))),87117:()=>g("default","@next-core/i18n",!1,[1,1,0,83],(()=>Promise.all([S.e(4558),S.e(671),S.e(3171)]).then((()=>()=>S(75552))))),94558:()=>g("default","@next-core/utils/general",!1,[1,1,8,4],(()=>S.e(871).then((()=>()=>S(40871))))),29475:()=>g("default","@next-core/runtime",!1,[1,1,65,6],(()=>Promise.all([S.e(9140),S.e(7117),S.e(4558),S.e(1302),S.e(7372),S.e(1321),S.e(0),S.e(1732),S.e(9718)]).then((()=>()=>S(19140))))),57372:()=>g("default","@next-core/http",!1,[1,1,2,13],(()=>S.e(1370).then((()=>()=>S(48989))))),71321:()=>g("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),7e4:()=>g("default","@next-core/utils/storyboard",!1,[1,1,8,4],(()=>S.e(4765).then((()=>()=>S(97146))))),59933:()=>g("default","@next-core/pipes",!1,[0],(()=>Promise.all([S.e(8377),S.e(6519)]).then((()=>()=>S(76519))))),11732:()=>g("default","history",!1,[0],(()=>S.e(3003).then((()=>()=>S(65384))))),848:()=>g("default","i18next-browser-languagedetector",!1,[0],(()=>S.e(726).then((()=>()=>S(50726))))),75630:()=>g("default","i18next",!1,[0],(()=>S.e(843).then((()=>()=>S(20843))))),58377:()=>g("default","@easyops-cn/brick-next-pipes",!1,[0],(()=>Promise.all([S.e(4306),S.e(1030),S.e(1302),S.e(5310)]).then((()=>()=>S(34306))))),18769:()=>v("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(14041))))),7921:()=>v("default","@next-core/element",!1,[1,1,2,18],(()=>S.e(1045).then((()=>()=>S(21045))))),59435:()=>v("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(43144))))),11280:()=>v("default","@next-core/react-element",!1,[1,1,0,37],(()=>Promise.all([S.e(7921),S.e(9435),S.e(7733)]).then((()=>()=>S(20114))))),26036:()=>g("default","moment/locale/zh-cn.js",!1,[1,2,30,1],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(61329))))),29283:()=>g("default","@next-core/inject",!1,[0],(()=>Promise.all([S.e(9933),S.e(4658)]).then((()=>()=>S(72277))))),45599:()=>g("default","@next-core/loader",!1,[0],(()=>S.e(5399).then((()=>()=>S(35399))))),94167:()=>g("default","@next-core/supply",!1,[0],(()=>Promise.all([S.e(9933),S.e(1940)]).then((()=>()=>S(49559))))),65168:()=>g("default","@next-core/theme",!1,[1,1,6,0],(()=>S.e(1889).then((()=>()=>S(51889))))),28247:()=>v("default","@next-core/react-runtime",!1,[1,1,7,28],(()=>S.e(7218).then((()=>()=>S(64837))))),92775:()=>g("default","@next-core/easyops-runtime",!1,[2,0,15,8],(()=>Promise.all([S.e(1097),S.e(9933),S.e(1732),S.e(5310)]).then((()=>()=>S(11097)))))},y={0:[7e4],580:[40580],671:[848,75630],981:[28247],1030:[41030],1280:[11280],1302:[21302],1321:[71321],1732:[11732],4558:[94558],4820:[92775],5168:[65168],5310:[55310],7117:[87117],7372:[57372],7921:[7921],8377:[58377],8769:[18769],9435:[59435],9475:[29475],9718:[26036,29283,45599,94167],9933:[59933]},w={},S.f.consumes=(e,t)=>{S.o(y,e)&&y[e].forEach((e=>{if(S.o(x,e))return t.push(x[e]);if(!w[e]){var r=t=>{x[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var a=t=>{delete x[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var n=P[e]();n.then?t.push(x[e]=n.then(r).catch(a)):r(n)}catch(e){a(e)}}}))},(()=>{S.b=document.baseURI||self.location.href;var e={2641:0};S.f.j=(t,r)=>{var a=S.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else if(/^(1(030|280|302|321|732)|5(168|310|80)|7(117|372|921)|9(435|475|718|933)|0|4558|671|8377|8769)$/.test(t))e[t]=0;else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var o=S.p+S.u(t),l=new Error;S.l(o,(r=>{if(S.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,a[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,[o,l,i]=r,s=0;if(o.some((t=>0!==e[t]))){for(a in l)S.o(l,a)&&(S.m[a]=l[a]);i&&i(S)}for(t&&t(r);s<o.length;s++)n=o[s],S.o(e,n)&&e[n]&&e[n][0](),e[n]=0},r=globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),S.nc=void 0;var E=S(69061);window["bricks/ai-portal"]=E})();
2
+ //# sourceMappingURL=index.978fd8b7.js.map