@next-bricks/ai-portal 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/bricks.json +29 -28
  2. package/dist/chunks/2084.0e9751e7.js +3 -0
  3. package/dist/chunks/2084.0e9751e7.js.map +1 -0
  4. package/dist/chunks/{2142.c02a98d9.js → 2142.0599aecd.js} +2 -2
  5. package/dist/chunks/{2142.c02a98d9.js.map → 2142.0599aecd.js.map} +1 -1
  6. package/dist/chunks/3020.acf9607e.js +2 -0
  7. package/dist/chunks/3020.acf9607e.js.map +1 -0
  8. package/dist/chunks/{3171.a4a34e43.js → 3171.a0251432.js} +2 -2
  9. package/dist/chunks/{3171.a4a34e43.js.map → 3171.a0251432.js.map} +1 -1
  10. package/dist/chunks/{7146.6cc7fa79.js → 4765.e2813cac.js} +2 -2
  11. package/dist/chunks/{4765.f5f33140.js.map → 4765.e2813cac.js.map} +1 -1
  12. package/dist/chunks/{4837.488c5888.js → 4837.c7f9a784.js} +2 -2
  13. package/dist/chunks/{9599.f127b5a1.js.map → 4837.c7f9a784.js.map} +1 -1
  14. package/dist/chunks/{5552.39ed2457.js → 5552.84bdc597.js} +2 -2
  15. package/dist/chunks/{5552.39ed2457.js.map → 5552.84bdc597.js.map} +1 -1
  16. package/dist/chunks/{6201.993201cb.js → 6201.58eeb93e.js} +2 -2
  17. package/dist/chunks/{6201.993201cb.js.map → 6201.58eeb93e.js.map} +1 -1
  18. package/dist/chunks/{6593.f25cfd6b.js → 6593.1afe9a04.js} +2 -2
  19. package/dist/chunks/{6593.f25cfd6b.js.map → 6593.1afe9a04.js.map} +1 -1
  20. package/dist/chunks/{4317.d0f5904b.js → 6947.1cec7258.js} +3 -3
  21. package/dist/chunks/6947.1cec7258.js.map +1 -0
  22. package/dist/chunks/{4765.f5f33140.js → 7146.1af0c62e.js} +2 -2
  23. package/dist/chunks/{7146.6cc7fa79.js.map → 7146.1af0c62e.js.map} +1 -1
  24. package/dist/chunks/{8717.fc81dec5.js → 8717.1e5ad2b1.js} +2 -2
  25. package/dist/chunks/{8717.fc81dec5.js.map → 8717.1e5ad2b1.js.map} +1 -1
  26. package/dist/chunks/943.7073ef6f.js +2 -0
  27. package/dist/chunks/943.7073ef6f.js.map +1 -0
  28. package/dist/chunks/948.d125d58c.js +3 -0
  29. package/dist/chunks/948.d125d58c.js.map +1 -0
  30. package/dist/chunks/{9599.f127b5a1.js → 9599.1f04dd1f.js} +2 -2
  31. package/dist/chunks/{4837.488c5888.js.map → 9599.1f04dd1f.js.map} +1 -1
  32. package/dist/chunks/{action-buttons.44ddca46.js → action-buttons.989fd1c9.js} +2 -2
  33. package/dist/chunks/{action-buttons.44ddca46.js.map → action-buttons.989fd1c9.js.map} +1 -1
  34. package/dist/chunks/activity-timeline.60adaa84.js +2 -0
  35. package/dist/chunks/activity-timeline.60adaa84.js.map +1 -0
  36. package/dist/chunks/{ai-agents.d47947e5.js → ai-agents.92ed0274.js} +3 -3
  37. package/dist/chunks/{ai-agents.d47947e5.js.map → ai-agents.92ed0274.js.map} +1 -1
  38. package/dist/chunks/{ai-employees.6d586b8d.js → ai-employees.12986d4b.js} +3 -3
  39. package/dist/chunks/{ai-employees.6d586b8d.js.map → ai-employees.12986d4b.js.map} +1 -1
  40. package/dist/chunks/blank-state.ad3eee7a.js +2 -0
  41. package/dist/chunks/blank-state.ad3eee7a.js.map +1 -0
  42. package/dist/chunks/{call-tool.28aa1c47.js → call-tool.89a848e0.js} +2 -2
  43. package/dist/chunks/{call-tool.28aa1c47.js.map → call-tool.89a848e0.js.map} +1 -1
  44. package/dist/chunks/chat-box.59ab1b62.js +2 -0
  45. package/dist/chunks/chat-box.59ab1b62.js.map +1 -0
  46. package/dist/chunks/chat-input.b09e4ba0.js +3 -0
  47. package/dist/chunks/chat-input.b09e4ba0.js.map +1 -0
  48. package/dist/chunks/{chat-stream.052c4869.js → chat-stream.11c6ade7.js} +2 -2
  49. package/dist/chunks/{chat-stream.052c4869.js.map → chat-stream.11c6ade7.js.map} +1 -1
  50. package/dist/chunks/{cruise-canvas.3600fc3c.js → cruise-canvas.60fa24a3.js} +2 -2
  51. package/dist/chunks/{cruise-canvas.3600fc3c.js.map → cruise-canvas.60fa24a3.js.map} +1 -1
  52. package/dist/chunks/{dropdown-select.11c89c58.js → dropdown-select.1140bf2b.js} +2 -2
  53. package/dist/chunks/{dropdown-select.11c89c58.js.map → dropdown-select.1140bf2b.js.map} +1 -1
  54. package/dist/chunks/{elevo-sidebar.402d464e.js → elevo-sidebar.bfad7500.js} +3 -3
  55. package/dist/chunks/{elevo-sidebar.402d464e.js.map → elevo-sidebar.bfad7500.js.map} +1 -1
  56. package/dist/chunks/flow-tabs.ba72493e.js +3 -0
  57. package/dist/chunks/flow-tabs.ba72493e.js.map +1 -0
  58. package/dist/chunks/{goal-card-list.11057103.js → goal-card-list.44c21cf2.js} +3 -3
  59. package/dist/chunks/{goal-card-list.11057103.js.map → goal-card-list.44c21cf2.js.map} +1 -1
  60. package/dist/chunks/{load-request-store.843b9a8c.js → load-request-store.b4cf045b.js} +2 -2
  61. package/dist/chunks/{load-request-store.843b9a8c.js.map → load-request-store.b4cf045b.js.map} +1 -1
  62. package/dist/chunks/main.4cb00675.js +2 -0
  63. package/dist/chunks/{main.5dcdeb69.js.map → main.4cb00675.js.map} +1 -1
  64. package/dist/chunks/{mcp-tools.16acda69.js → mcp-tools.0acb474a.js} +2 -2
  65. package/dist/chunks/{mcp-tools.16acda69.js.map → mcp-tools.0acb474a.js.map} +1 -1
  66. package/dist/chunks/{page-container.e59d6a94.js → page-container.97947b50.js} +2 -2
  67. package/dist/chunks/page-container.97947b50.js.map +1 -0
  68. package/dist/chunks/{preview-container.6b29ee97.js → preview-container.19631a7b.js} +2 -2
  69. package/dist/chunks/{preview-container.6b29ee97.js.map → preview-container.19631a7b.js.map} +1 -1
  70. package/dist/chunks/{project-conversations.9bd710bf.js → project-conversations.3f559e57.js} +3 -3
  71. package/dist/chunks/{project-conversations.9bd710bf.js.map → project-conversations.3f559e57.js.map} +1 -1
  72. package/dist/chunks/{project-knowledges.14b07366.js → project-knowledges.24611263.js} +3 -3
  73. package/dist/chunks/project-knowledges.24611263.js.LICENSE.txt +5 -0
  74. package/dist/chunks/{project-knowledges.14b07366.js.map → project-knowledges.24611263.js.map} +1 -1
  75. package/dist/chunks/{show-case.be5d82fd.js → show-case.7bc5fc9e.js} +2 -2
  76. package/dist/chunks/{show-case.be5d82fd.js.map → show-case.7bc5fc9e.js.map} +1 -1
  77. package/dist/chunks/{show-cases.e3d47e29.js → show-cases.85fe99d4.js} +2 -2
  78. package/dist/chunks/{show-cases.e3d47e29.js.map → show-cases.85fe99d4.js.map} +1 -1
  79. package/dist/examples.json +19 -16
  80. package/dist/images/c19e3f37.png +0 -0
  81. package/dist/index.fede9e49.js +2 -0
  82. package/dist/index.fede9e49.js.map +1 -0
  83. package/dist/manifest.json +193 -166
  84. package/dist/types.json +258 -179
  85. package/dist-types/blank-state/index.d.ts +1 -1
  86. package/dist-types/bootstrap.d.ts +1 -0
  87. package/dist-types/flow-tabs/drawBg.d.ts +1 -0
  88. package/dist-types/flow-tabs/index.d.ts +20 -0
  89. package/dist-types/flow-tabs/index.spec.d.ts +1 -0
  90. package/dist-types/page-container/index.d.ts +2 -2
  91. package/docs/flow-tabs.md +21 -0
  92. package/package.json +2 -2
  93. package/dist/chunks/2084.37e19e93.js +0 -3
  94. package/dist/chunks/2084.37e19e93.js.map +0 -1
  95. package/dist/chunks/3506.da6e43af.js +0 -2
  96. package/dist/chunks/3506.da6e43af.js.map +0 -1
  97. package/dist/chunks/4317.d0f5904b.js.map +0 -1
  98. package/dist/chunks/6206.874a68ab.js +0 -2
  99. package/dist/chunks/6206.874a68ab.js.map +0 -1
  100. package/dist/chunks/948.85b663ec.js +0 -3
  101. package/dist/chunks/948.85b663ec.js.map +0 -1
  102. package/dist/chunks/activity-timeline.60e516fd.js +0 -2
  103. package/dist/chunks/activity-timeline.60e516fd.js.map +0 -1
  104. package/dist/chunks/blank-state.2b55f2c6.js +0 -2
  105. package/dist/chunks/blank-state.2b55f2c6.js.map +0 -1
  106. package/dist/chunks/chat-box.6156ad59.js +0 -2
  107. package/dist/chunks/chat-box.6156ad59.js.map +0 -1
  108. package/dist/chunks/chat-input.720e6130.js +0 -3
  109. package/dist/chunks/chat-input.720e6130.js.map +0 -1
  110. package/dist/chunks/main.5dcdeb69.js +0 -2
  111. package/dist/chunks/page-container.e59d6a94.js.map +0 -1
  112. package/dist/index.28d7dd85.js +0 -2
  113. package/dist/index.28d7dd85.js.map +0 -1
  114. /package/dist/chunks/{2084.37e19e93.js.LICENSE.txt → 2084.0e9751e7.js.LICENSE.txt} +0 -0
  115. /package/dist/chunks/{4317.d0f5904b.js.LICENSE.txt → 6947.1cec7258.js.LICENSE.txt} +0 -0
  116. /package/dist/chunks/{948.85b663ec.js.LICENSE.txt → 948.d125d58c.js.LICENSE.txt} +0 -0
  117. /package/dist/chunks/{ai-agents.d47947e5.js.LICENSE.txt → ai-agents.92ed0274.js.LICENSE.txt} +0 -0
  118. /package/dist/chunks/{ai-employees.6d586b8d.js.LICENSE.txt → ai-employees.12986d4b.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{chat-input.720e6130.js.LICENSE.txt → chat-input.b09e4ba0.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{elevo-sidebar.402d464e.js.LICENSE.txt → elevo-sidebar.bfad7500.js.LICENSE.txt} +0 -0
  121. /package/dist/chunks/{goal-card-list.11057103.js.LICENSE.txt → flow-tabs.ba72493e.js.LICENSE.txt} +0 -0
  122. /package/dist/chunks/{project-conversations.9bd710bf.js.LICENSE.txt → goal-card-list.44c21cf2.js.LICENSE.txt} +0 -0
  123. /package/dist/chunks/{project-knowledges.14b07366.js.LICENSE.txt → project-conversations.3f559e57.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,4332],{8574:(t,e,n)=>{n.d(e,{I:()=>s,K:()=>i,NS:()=>c,t:()=>l});var r=n(68443);let i=function(t){return t.ALL="ALL",t.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",t}({});const o={[i.ALL]:"All",[i.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},a={[i.ALL]:"全部",[i.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"},c="bricks/ai-portal/show-cases",s={en:o,zh:a},l=r.i18n.getFixedT(null,c)},11369:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},12559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},17545:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},26902:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},36758:t=>{t.exports=function(t){return t[1]}},40935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},42873:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o)()(i());a.push([t.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}",""]);const c=a.toString()},62740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(17545),i=n(26902);function o(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(11369);function c(t,e,n,c,s,l){var u,f,p,d,m,h,v,b=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,E=Object.create,y=[E(null),E(null)],A=e.length;function w(e,n,r){return function(i,o){n&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,r?[o]:[]);return r?o:i}}function S(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function L(t,e,n,i,a,c,s,l,p,d,m){function h(t){if(!m(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),b=e[3],E=!s,A=1===a,L=3===a,x=4===a,T=2===a;function _(e,n,r){return function(i,o){return n&&(o=i,i=t),r&&r(i),k[e].call(i,o)}}if(!E){var k={},C=[],j=L?"get":x||A?"set":"value";if(p?(d||A?k={get:o((function(){return b(this)}),i,"get"),set:function(t){e[4](this,t)}}:k[j]=b,d||o(k[j],i,T?"":j)):d||(k=Object.getOwnPropertyDescriptor(t,i)),!d&&!p){if((f=y[+l][i])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+k[j].name+") is not supported yet");y[+l][i]=a<3?1:a}}for(var N=t,O=v.length-1;O>=0;O-=n?2:1){var P=S(v[O],"A decorator","be",!0),X=n?v[O-1]:void 0,z={},R={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.bind(null,z)};if(E)f=P.call(X,N,R),z.v=1,S(f,"class decorators","return")&&(N=f);else if(R.static=l,R.private=p,f=R.access={has:p?m.bind():function(t){return i in t}},x||(f.get=p?T?function(t){return h(t),k.value}:_("get",0,h):function(t){return t[i]}),T||L||(f.set=p?_("set",0,h):function(t,e){t[i]=e}),N=P.call(X,A?{get:k.get,set:k.set}:k[j],R),z.v=1,A){if("object"==(0,r.A)(N)&&N)(f=S(N.get,"accessor.get"))&&(k.get=f),(f=S(N.set,"accessor.set"))&&(k.set=f),(f=S(N.init,"accessor.init"))&&C.unshift(f);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(N,(d?"field":"method")+" decorators","return")&&(d?C.unshift(N):k[j]=N)}return a<2&&s.push(w(C,l,1),w(c,l,0)),d||E||(p?A?s.splice(-1,0,_("get",l),_("set",l)):s.push(T?k[j]:S.call.bind(k[j])):g(t,i,k)),N}function x(t){return g(t,b,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[b]),u=E(null==u?null:u),m=[],h=function(t){t&&m.push(w(t))},v=function(e,r){for(var o=0;o<n.length;o++){var c=n[o],l=c[1],u=7&l;if((8&l)==e&&!u==r){var f=c[2],h=!!c[3],v=16&l;L(e?t:t.prototype,c,v,h?"#"+f:(0,a.A)(f),u,u<2?[]:e?d=d||[]:p=p||[],m,!!e,h,r,e&&h?function(e){return(0,i.A)(e)===t}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),h(p),h(d),f=m,A||x(t),{e:f,get c(){var n=[];return A&&[x(t=L(t,[e],c,t.name,5,n)),w(n,1)]}}}},64604:(t,e,n)=>{n.r(e),n.d(e,{ShowCases:()=>L});var r,i=n(70918),o=n(86121),a=n(70829),c=n(62740),s=n(18769),l=n.n(s),u=n(90870),f=n(30981),p=(n(34419),n(68443)),d=n(8574),m=n(42873);let h,v,b,g,E;(0,p.initializeI18n)(d.NS,d.I);const y=(0,f.wrapBrick)("ai-portal.show-case"),A=(0,f.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:w,property:S}=(0,u.createDecorators)();let L;var x=new WeakMap,T=new WeakMap;class _ extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,x,v(this)),(0,i.A)(this,T,(b(this),g(this))),E(this)}get list(){return(0,a.A)(x,this)}set list(t){(0,o.A)(x,this,t)}get limit(){return(0,a.A)(T,this)}set limit(t){(0,o.A)(T,this,t)}render(){return l().createElement(k,{list:this.list,limit:this.limit})}}function k(t){let{list:e,limit:n}=t;const r=(0,s.useMemo)((()=>["",...new Set(null==e?void 0:e.map((t=>t.scenario)).filter(Boolean))]),[e]),[i,o]=(0,s.useState)(""),a=(0,s.useMemo)((()=>{if(!e)return;let t=e;return i&&(t=t.filter((t=>t.scenario===i))),n&&(t=t.slice(0,n)),t}),[i,e,n]),c=(0,s.useMemo)((()=>r.map((t=>({id:t,label:""===t?(0,d.t)(d.K.ALL):t})))),[r]);return null!=e&&e.length?l().createElement(l().Fragment,null,l().createElement("div",{className:"tips"},`${(0,d.t)(d.K.EXPLORE_EXCELLENT_CASES)} ↓`),l().createElement(A,{tabs:c,activeTab:i,onTabClick:t=>o(t.detail.id)}),l().createElement("ul",{className:"cases"},null==a?void 0:a.map((t=>l().createElement("li",{key:t.conversationId},l().createElement(y,{caseTitle:t.title,summary:t.summary,url:t.url})))))):null}r=_,({e:[v,b,g,E],c:[L,h]}=(0,c.A)(r,[w("ai-portal.show-cases",{styleTexts:[m.A]})],[[S({attribute:!1}),1,"list"],[S({type:Number}),1,"limit"]],0,void 0,f.ReactNextElement)),h()},70829:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e){return t.get((0,r.A)(t,e))}},70918:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(72016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},72016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},86121:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}}}]);
2
- //# sourceMappingURL=show-cases.e3d47e29.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,4332],{8574:(t,e,n)=>{n.d(e,{I:()=>s,K:()=>i,NS:()=>c,t:()=>l});var r=n(52616);let i=function(t){return t.ALL="ALL",t.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",t}({});const o={[i.ALL]:"All",[i.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},a={[i.ALL]:"全部",[i.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"},c="bricks/ai-portal/show-cases",s={en:o,zh:a},l=r.i18n.getFixedT(null,c)},11369:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},12559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},17545:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},26902:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},36758:t=>{t.exports=function(t){return t[1]}},40935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},42873:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o)()(i());a.push([t.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}",""]);const c=a.toString()},62740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(17545),i=n(26902);function o(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(11369);function c(t,e,n,c,s,l){var u,f,p,d,m,h,v,b=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,E=Object.create,y=[E(null),E(null)],A=e.length;function w(e,n,r){return function(i,o){n&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,r?[o]:[]);return r?o:i}}function S(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function L(t,e,n,i,a,c,s,l,p,d,m){function h(t){if(!m(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),b=e[3],E=!s,A=1===a,L=3===a,x=4===a,T=2===a;function _(e,n,r){return function(i,o){return n&&(o=i,i=t),r&&r(i),k[e].call(i,o)}}if(!E){var k={},C=[],j=L?"get":x||A?"set":"value";if(p?(d||A?k={get:o((function(){return b(this)}),i,"get"),set:function(t){e[4](this,t)}}:k[j]=b,d||o(k[j],i,T?"":j)):d||(k=Object.getOwnPropertyDescriptor(t,i)),!d&&!p){if((f=y[+l][i])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+k[j].name+") is not supported yet");y[+l][i]=a<3?1:a}}for(var N=t,O=v.length-1;O>=0;O-=n?2:1){var P=S(v[O],"A decorator","be",!0),X=n?v[O-1]:void 0,z={},R={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.bind(null,z)};if(E)f=P.call(X,N,R),z.v=1,S(f,"class decorators","return")&&(N=f);else if(R.static=l,R.private=p,f=R.access={has:p?m.bind():function(t){return i in t}},x||(f.get=p?T?function(t){return h(t),k.value}:_("get",0,h):function(t){return t[i]}),T||L||(f.set=p?_("set",0,h):function(t,e){t[i]=e}),N=P.call(X,A?{get:k.get,set:k.set}:k[j],R),z.v=1,A){if("object"==(0,r.A)(N)&&N)(f=S(N.get,"accessor.get"))&&(k.get=f),(f=S(N.set,"accessor.set"))&&(k.set=f),(f=S(N.init,"accessor.init"))&&C.unshift(f);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(N,(d?"field":"method")+" decorators","return")&&(d?C.unshift(N):k[j]=N)}return a<2&&s.push(w(C,l,1),w(c,l,0)),d||E||(p?A?s.splice(-1,0,_("get",l),_("set",l)):s.push(T?k[j]:S.call.bind(k[j])):g(t,i,k)),N}function x(t){return g(t,b,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[b]),u=E(null==u?null:u),m=[],h=function(t){t&&m.push(w(t))},v=function(e,r){for(var o=0;o<n.length;o++){var c=n[o],l=c[1],u=7&l;if((8&l)==e&&!u==r){var f=c[2],h=!!c[3],v=16&l;L(e?t:t.prototype,c,v,h?"#"+f:(0,a.A)(f),u,u<2?[]:e?d=d||[]:p=p||[],m,!!e,h,r,e&&h?function(e){return(0,i.A)(e)===t}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),h(p),h(d),f=m,A||x(t),{e:f,get c(){var n=[];return A&&[x(t=L(t,[e],c,t.name,5,n)),w(n,1)]}}}},64604:(t,e,n)=>{n.r(e),n.d(e,{ShowCases:()=>L});var r,i=n(70918),o=n(86121),a=n(70829),c=n(62740),s=n(18769),l=n.n(s),u=n(90870),f=n(30981),p=(n(34419),n(52616)),d=n(8574),m=n(42873);let h,v,b,g,E;(0,p.initializeI18n)(d.NS,d.I);const y=(0,f.wrapBrick)("ai-portal.show-case"),A=(0,f.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:w,property:S}=(0,u.createDecorators)();let L;var x=new WeakMap,T=new WeakMap;class _ extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,x,v(this)),(0,i.A)(this,T,(b(this),g(this))),E(this)}get list(){return(0,a.A)(x,this)}set list(t){(0,o.A)(x,this,t)}get limit(){return(0,a.A)(T,this)}set limit(t){(0,o.A)(T,this,t)}render(){return l().createElement(k,{list:this.list,limit:this.limit})}}function k(t){let{list:e,limit:n}=t;const r=(0,s.useMemo)((()=>["",...new Set(null==e?void 0:e.map((t=>t.scenario)).filter(Boolean))]),[e]),[i,o]=(0,s.useState)(""),a=(0,s.useMemo)((()=>{if(!e)return;let t=e;return i&&(t=t.filter((t=>t.scenario===i))),n&&(t=t.slice(0,n)),t}),[i,e,n]),c=(0,s.useMemo)((()=>r.map((t=>({id:t,label:""===t?(0,d.t)(d.K.ALL):t})))),[r]);return null!=e&&e.length?l().createElement(l().Fragment,null,l().createElement("div",{className:"tips"},`${(0,d.t)(d.K.EXPLORE_EXCELLENT_CASES)} ↓`),l().createElement(A,{tabs:c,activeTab:i,onTabClick:t=>o(t.detail.id)}),l().createElement("ul",{className:"cases"},null==a?void 0:a.map((t=>l().createElement("li",{key:t.conversationId},l().createElement(y,{caseTitle:t.title,summary:t.summary,url:t.url})))))):null}r=_,({e:[v,b,g,E],c:[L,h]}=(0,c.A)(r,[w("ai-portal.show-cases",{styleTexts:[m.A]})],[[S({attribute:!1}),1,"list"],[S({type:Number}),1,"limit"]],0,void 0,f.ReactNextElement)),h()},70829:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e){return t.get((0,r.A)(t,e))}},70918:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(72016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},72016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},86121:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}}}]);
2
+ //# sourceMappingURL=show-cases.85fe99d4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/show-cases.e3d47e29.js","mappings":"0MAEO,IAAKA,EAAC,SAADA,GAAC,OAADA,EAAC,UAADA,EAAC,kDAADA,CAAC,MAKb,MAAMC,EAAa,CACjB,CAACD,EAAEE,KAAM,MACT,CAACF,EAAEG,yBAA0B,2BAGzBC,EAAa,CACjB,CAACJ,EAAEE,KAAM,KACT,CAACF,EAAEG,yBAA0B,UAGlBE,EAAK,8BAELC,EAAU,CAAEL,KAAIG,MAEhBG,EAAIC,EAAAA,KAAKC,UAAU,KAAMJ,E,kDCnBvB,SAASK,EAAcH,GACpC,IAAII,ECFS,SAAqBJ,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIK,EAAIL,EAAEM,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKR,EAAGS,UAClB,GAAI,WAAY,OAAQL,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAyBC,OAAiBX,EAC5C,CDPUO,CAAYP,GACpB,MAAO,WAAY,OAAQI,GAAKA,EAAIA,EAAI,EAC1C,C,kBELe,SAASQ,EAAkBP,EAAGL,EAAGa,GAC9C,GAAI,mBAAqBR,EAAIA,IAAML,EAAIK,EAAES,IAAId,GAAI,OAAOe,UAAUC,OAAS,EAAIhB,EAAIa,EACnF,MAAM,IAAIH,UAAU,gDACtB,C,kCCHe,SAASO,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBX,QAAU,iBAAmBA,OAAOa,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBZ,QAAUY,EAAEE,cAAgBd,QAAUY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D8E,IAAAA,cAAA,MAAIkB,UAAU,SACXN,aAAY,EAAZA,EAAcxG,KAAKC,GAClB2F,IAAAA,cAAA,MAAIsB,IAAKjH,EAAKkH,gBACZvB,IAAAA,cAACtB,EAAe,CACd8C,UAAWnH,EAAKoH,MAChBC,QAASrH,EAAKqH,QACdC,IAAKtH,EAAKsH,WAjBb,IAwBX,CAxDCC,EAAAvC,IAAA1G,GAAA6G,EAAAC,EAAAC,EAAAC,GAAA9D,GAAAoD,EAAA4C,KAAAC,EAAAA,EAAAA,GAAAF,EAAA,CAbA9C,EAAc,uBAAwB,CACrCiD,WAAY,CAACC,EAAAA,MACb,EAECjD,EAAS,CAAEkD,WAAW,IAAQ,WAG9BlD,EAAS,CAAEmD,KAAMC,SAAS,qBAJL7C,EAAAA,mBAAgBuC,G,kDC5CzB,SAASO,EAAuBrG,EAAGH,GAChD,OAAOG,EAAEuB,KAAI,OAAiBvB,EAAGH,GACnC,C,kDCFe,SAAS2D,EAA2B8C,EAAKC,EAAY5G,IAClE,OAA0B2G,EAAKC,GAC/BA,EAAW/E,IAAI8E,EAAK3G,EACtB,C,kBCJe,SAAS6G,EAA2BF,EAAKG,GACtD,GAAIA,EAAkBpJ,IAAIiJ,GACxB,MAAM,IAAIrJ,UAAU,iEAExB,C,kECHe,SAASyJ,EAAuB1G,EAAGH,EAAG7C,GACnD,OAAOgD,EAAEwB,KAAI,OAAiBxB,EAAGH,GAAI7C,GAAIA,CAC3C,C","sources":["webpack:///./src/show-cases/i18n.ts","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/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///./src/show-cases/styles.shadow.css","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///./src/show-cases/index.tsx","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 { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n ALL = \"ALL\",\n EXPLORE_EXCELLENT_CASES = \"EXPLORE_EXCELLENT_CASES\",\n}\n\nconst en: Locale = {\n [K.ALL]: \"All\",\n [K.EXPLORE_EXCELLENT_CASES]: \"Explore excellent cases\",\n};\n\nconst zh: Locale = {\n [K.ALL]: \"全部\",\n [K.EXPLORE_EXCELLENT_CASES]: \"探索优秀案例\",\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","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}","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}","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\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\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\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 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 { K, NS, locales, t } from \"./i18n.js\";\nimport styleText from \"./styles.shadow.css\";\nimport type {\n Tab,\n TabList,\n TabListEvents,\n TabListMapping,\n TabListProps,\n} from \"../tab-list/index.js\";\nimport type { ShowCase, ShowCaseProps } from \"../show-case/index.js\";\nimport type { ShowCaseType } from \"../shared/interfaces.js\";\n\ninitializeI18n(NS, locales);\n\nconst WrappedShowCase = wrapBrick<ShowCase, ShowCaseProps>(\n \"ai-portal.show-case\"\n);\nconst WrappedTabList = wrapBrick<\n TabList,\n TabListProps,\n TabListEvents,\n TabListMapping\n>(\"ai-portal.tab-list\", {\n onTabClick: \"tab.click\",\n});\n\nconst { defineElement, property } = createDecorators();\n\nexport interface ShowCasesProps {\n list?: ShowCaseType[];\n limit?: number;\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: ShowCaseType[] | undefined;\n\n @property({ type: Number })\n accessor limit: number | undefined;\n\n render() {\n return <ShowCasesComponent list={this.list} limit={this.limit} />;\n }\n}\n\nfunction ShowCasesComponent({ list, limit }: ShowCasesProps) {\n // Grouping the list by scenario\n const groups = useMemo<string[]>(() => {\n return [\"\", ...new Set(list?.map((item) => item.scenario).filter(Boolean))];\n }, [list]);\n\n const [activeGroup, setActiveGroup] = useState(\"\");\n\n const filteredList = useMemo(() => {\n if (!list) {\n return;\n }\n let filtered = list;\n if (activeGroup) {\n filtered = filtered.filter((item) => item.scenario === activeGroup);\n }\n if (limit) {\n filtered = filtered.slice(0, limit);\n }\n return filtered;\n }, [activeGroup, list, limit]);\n\n const tabs = useMemo<Tab[]>(() => {\n return groups.map((group) => ({\n id: group,\n label: group === \"\" ? t(K.ALL) : group,\n }));\n }, [groups]);\n\n if (!list?.length) {\n return null;\n }\n\n return (\n <>\n <div className=\"tips\">{`${t(K.EXPLORE_EXCELLENT_CASES)} ↓`}</div>\n <WrappedTabList\n tabs={tabs}\n activeTab={activeGroup}\n onTabClick={(event) => setActiveGroup(event.detail.id)}\n />\n <ul className=\"cases\">\n {filteredList?.map((item) => (\n <li key={item.conversationId}>\n <WrappedShowCase\n caseTitle={item.title}\n summary={item.summary}\n url={item.url}\n />\n </li>\n ))}\n </ul>\n </>\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":["K","en","ALL","EXPLORE_EXCELLENT_CASES","zh","NS","locales","t","i18n","getFixedT","toPropertyKey","i","e","Symbol","toPrimitive","call","r","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","_checkInRHS","Object","module","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","id","_k","push","___CSS_LOADER_EXPORT___","setFunctionName","description","defineProperty","configurable","value","applyDecs2311","a","c","u","s","f","l","p","d","metadata","m","h","create","y","v","g","apply","b","applyDec","w","D","S","j","E","I","P","F","get","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","initializeI18n","WrappedShowCase","wrapBrick","WrappedTabList","onTabClick","defineElement","property","createDecorators","_ShowCases","_A","WeakMap","_B","ShowCases","ReactNextElement","_classPrivateFieldInitSpec","_init_list","_init_extra_list","_init_limit","_init_extra_limit","_classPrivateFieldGet","_classPrivateFieldSet","limit","render","React","ShowCasesComponent","_ref","groups","useMemo","Set","scenario","filter","Boolean","activeGroup","setActiveGroup","useState","filteredList","filtered","slice","tabs","group","label","className","activeTab","event","detail","key","conversationId","caseTitle","title","summary","url","_ShowCases2","_initClass","_applyDecs","styleTexts","styleText","attribute","type","Number","_classPrivateFieldGet2","obj","privateMap","_checkPrivateRedeclaration","privateCollection","_classPrivateFieldSet2"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/show-cases.85fe99d4.js","mappings":"0MAEO,IAAKA,EAAC,SAADA,GAAC,OAADA,EAAC,UAADA,EAAC,kDAADA,CAAC,MAKb,MAAMC,EAAa,CACjB,CAACD,EAAEE,KAAM,MACT,CAACF,EAAEG,yBAA0B,2BAGzBC,EAAa,CACjB,CAACJ,EAAEE,KAAM,KACT,CAACF,EAAEG,yBAA0B,UAGlBE,EAAK,8BAELC,EAAU,CAAEL,KAAIG,MAEhBG,EAAIC,EAAAA,KAAKC,UAAU,KAAMJ,E,kDCnBvB,SAASK,EAAcH,GACpC,IAAII,ECFS,SAAqBJ,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIK,EAAIL,EAAEM,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKR,EAAGS,UAClB,GAAI,WAAY,OAAQL,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAyBC,OAAiBX,EAC5C,CDPUO,CAAYP,GACpB,MAAO,WAAY,OAAQI,GAAKA,EAAIA,EAAI,EAC1C,C,kBELe,SAASQ,EAAkBP,EAAGL,EAAGa,GAC9C,GAAI,mBAAqBR,EAAIA,IAAML,EAAIK,EAAES,IAAId,GAAI,OAAOe,UAAUC,OAAS,EAAIhB,EAAIa,EACnF,MAAM,IAAIH,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A,KACEA,IAAAA,cAAA,OAAKkB,UAAU,QAAQ,IAAG5I,EAAAA,EAAAA,GAAEP,EAAAA,EAAEG,8BAC9B8H,IAAAA,cAACpB,EAAc,CACbmC,KAAMA,EACNI,UAAWV,EACX5B,WAAauC,GAAUV,EAAeU,EAAMC,OAAOnG,MAErD8E,IAAAA,cAAA,MAAIkB,UAAU,SACXN,aAAY,EAAZA,EAAcxG,KAAKC,GAClB2F,IAAAA,cAAA,MAAIsB,IAAKjH,EAAKkH,gBACZvB,IAAAA,cAACtB,EAAe,CACd8C,UAAWnH,EAAKoH,MAChBC,QAASrH,EAAKqH,QACdC,IAAKtH,EAAKsH,WAjBb,IAwBX,CAxDCC,EAAAvC,IAAA1G,GAAA6G,EAAAC,EAAAC,EAAAC,GAAA9D,GAAAoD,EAAA4C,KAAAC,EAAAA,EAAAA,GAAAF,EAAA,CAbA9C,EAAc,uBAAwB,CACrCiD,WAAY,CAACC,EAAAA,MACb,EAECjD,EAAS,CAAEkD,WAAW,IAAQ,WAG9BlD,EAAS,CAAEmD,KAAMC,SAAS,qBAJL7C,EAAAA,mBAAgBuC,G,kDC5CzB,SAASO,EAAuBrG,EAAGH,GAChD,OAAOG,EAAEuB,KAAI,OAAiBvB,EAAGH,GACnC,C,kDCFe,SAAS2D,EAA2B8C,EAAKC,EAAY5G,IAClE,OAA0B2G,EAAKC,GAC/BA,EAAW/E,IAAI8E,EAAK3G,EACtB,C,kBCJe,SAAS6G,EAA2BF,EAAKG,GACtD,GAAIA,EAAkBpJ,IAAIiJ,GACxB,MAAM,IAAIrJ,UAAU,iEAExB,C,kECHe,SAASyJ,EAAuB1G,EAAGH,EAAG7C,GACnD,OAAOgD,EAAEwB,KAAI,OAAiBxB,EAAGH,GAAI7C,GAAIA,CAC3C,C","sources":["webpack:///./src/show-cases/i18n.ts","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/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///./src/show-cases/styles.shadow.css","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///./src/show-cases/index.tsx","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 { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n ALL = \"ALL\",\n EXPLORE_EXCELLENT_CASES = \"EXPLORE_EXCELLENT_CASES\",\n}\n\nconst en: Locale = {\n [K.ALL]: \"All\",\n [K.EXPLORE_EXCELLENT_CASES]: \"Explore excellent cases\",\n};\n\nconst zh: Locale = {\n [K.ALL]: \"全部\",\n [K.EXPLORE_EXCELLENT_CASES]: \"探索优秀案例\",\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","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}","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}","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\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\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\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 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 { K, NS, locales, t } from \"./i18n.js\";\nimport styleText from \"./styles.shadow.css\";\nimport type {\n Tab,\n TabList,\n TabListEvents,\n TabListMapping,\n TabListProps,\n} from \"../tab-list/index.js\";\nimport type { ShowCase, ShowCaseProps } from \"../show-case/index.js\";\nimport type { ShowCaseType } from \"../shared/interfaces.js\";\n\ninitializeI18n(NS, locales);\n\nconst WrappedShowCase = wrapBrick<ShowCase, ShowCaseProps>(\n \"ai-portal.show-case\"\n);\nconst WrappedTabList = wrapBrick<\n TabList,\n TabListProps,\n TabListEvents,\n TabListMapping\n>(\"ai-portal.tab-list\", {\n onTabClick: \"tab.click\",\n});\n\nconst { defineElement, property } = createDecorators();\n\nexport interface ShowCasesProps {\n list?: ShowCaseType[];\n limit?: number;\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: ShowCaseType[] | undefined;\n\n @property({ type: Number })\n accessor limit: number | undefined;\n\n render() {\n return <ShowCasesComponent list={this.list} limit={this.limit} />;\n }\n}\n\nfunction ShowCasesComponent({ list, limit }: ShowCasesProps) {\n // Grouping the list by scenario\n const groups = useMemo<string[]>(() => {\n return [\"\", ...new Set(list?.map((item) => item.scenario).filter(Boolean))];\n }, [list]);\n\n const [activeGroup, setActiveGroup] = useState(\"\");\n\n const filteredList = useMemo(() => {\n if (!list) {\n return;\n }\n let filtered = list;\n if (activeGroup) {\n filtered = filtered.filter((item) => item.scenario === activeGroup);\n }\n if (limit) {\n filtered = filtered.slice(0, limit);\n }\n return filtered;\n }, [activeGroup, list, limit]);\n\n const tabs = useMemo<Tab[]>(() => {\n return groups.map((group) => ({\n id: group,\n label: group === \"\" ? t(K.ALL) : group,\n }));\n }, [groups]);\n\n if (!list?.length) {\n return null;\n }\n\n return (\n <>\n <div className=\"tips\">{`${t(K.EXPLORE_EXCELLENT_CASES)} ↓`}</div>\n <WrappedTabList\n tabs={tabs}\n activeTab={activeGroup}\n onTabClick={(event) => setActiveGroup(event.detail.id)}\n />\n <ul className=\"cases\">\n {filteredList?.map((item) => (\n <li key={item.conversationId}>\n <WrappedShowCase\n caseTitle={item.title}\n summary={item.summary}\n url={item.url}\n />\n </li>\n ))}\n </ul>\n </>\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":["K","en","ALL","EXPLORE_EXCELLENT_CASES","zh","NS","locales","t","i18n","getFixedT","toPropertyKey","i","e","Symbol","toPrimitive","call","r","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","_checkInRHS","Object","module","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","id","_k","push","___CSS_LOADER_EXPORT___","setFunctionName","description","defineProperty","configurable","value","applyDecs2311","a","c","u","s","f","l","p","d","metadata","m","h","create","y","v","g","apply","b","applyDec","w","D","S","j","E","I","P","F","get","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","initializeI18n","WrappedShowCase","wrapBrick","WrappedTabList","onTabClick","defineElement","property","createDecorators","_ShowCases","_A","WeakMap","_B","ShowCases","ReactNextElement","_classPrivateFieldInitSpec","_init_list","_init_extra_list","_init_limit","_init_extra_limit","_classPrivateFieldGet","_classPrivateFieldSet","limit","render","React","ShowCasesComponent","_ref","groups","useMemo","Set","scenario","filter","Boolean","activeGroup","setActiveGroup","useState","filteredList","filtered","slice","tabs","group","label","className","activeTab","event","detail","key","conversationId","caseTitle","title","summary","url","_ShowCases2","_initClass","_applyDecs","styleTexts","styleText","attribute","type","Number","_classPrivateFieldGet2","obj","privateMap","_checkPrivateRedeclaration","privateCollection","_classPrivateFieldSet2"],"sourceRoot":""}
@@ -1,12 +1,15 @@
1
1
  {
2
- "ai-portal.stat-with-mini-chart": {
3
- "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"
2
+ "ai-portal.chat-box": {
3
+ "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"
4
4
  },
5
5
  "ai-portal.home-container": {
6
6
  "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"
7
7
  },
8
- "ai-portal.chat-box": {
9
- "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"
8
+ "ai-portal.stat-with-mini-chart": {
9
+ "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"
10
+ },
11
+ "ai-portal.elevo-sidebar": {
12
+ "doc": "构件 `ai-portal.elevo-sidebar`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.elevo-sidebar\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.elevo-sidebar></ai-portal.elevo-sidebar>\n# \n```\n"
10
13
  },
11
14
  "ai-portal.icon-button": {
12
15
  "doc": "构件 `ai-portal.icon-button`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.icon-button\nproperties:\n icon:\n lib: antd\n icon: download\n tooltip: Go to homepage\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.icon-button\n# tooltip=\"Go to homepage\"\n# id=\"brick-1\"\n# ></ai-portal.icon-button>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.icon = {\n# lib: \"antd\",\n# icon: \"download\",\n# };\n# </script>\n# \n```\n"
@@ -14,27 +17,24 @@
14
17
  "ai-portal.show-cases": {
15
18
  "doc": "构件 `ai-portal.show-cases`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.show-cases\nproperties:\n list:\n - conversationId: c-1\n title: 故障排查-操作系统内存高\n summary: 服务已经正常启动,正常运行,但用户在外部访问失败服务已经正常启动,正常运行但用户正常运行\n scenario: 主机故障排查\n - conversationId: c-2\n title: Hi\n summary: There\n scenario: 主机巡检\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.show-cases id=\"brick-1\"></ai-portal.show-cases>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# conversationId: \"c-1\",\n# title: \"故障排查-操作系统内存高\",\n# summary:\n# \"服务已经正常启动,正常运行,但用户在外部访问失败服务已经正常启动,正常运行但用户正常运行\",\n# scenario: \"主机故障排查\",\n# },\n# {\n# conversationId: \"c-2\",\n# title: \"Hi\",\n# summary: \"There\",\n# scenario: \"主机巡检\",\n# },\n# ];\n# </script>\n# \n```\n"
16
19
  },
17
- "ai-portal.elevo-sidebar": {
18
- "doc": "构件 `ai-portal.elevo-sidebar`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.elevo-sidebar\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.elevo-sidebar></ai-portal.elevo-sidebar>\n# \n```\n"
19
- },
20
20
  "ai-portal.mcp-tools": {
21
21
  "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"
22
22
  },
23
- "ai-portal.ai-employees": {
24
- "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"
25
- },
26
23
  "ai-portal.chat-stream": {
27
24
  "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"
28
25
  },
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
29
  "ai-portal.ai-agents": {
30
30
  "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"
31
31
  },
32
- "ai-portal.tab-list": {
33
- "doc": "构件 `ai-portal.tab-list`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.tab-list\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.tab-list>Hello world</ai-portal.tab-list>\n# \n```\n"
34
- },
35
32
  "ai-portal.page-container": {
36
33
  "doc": "构件 `ai-portal.page-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.page-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.page-container>Hello world</ai-portal.page-container>\n# \n```\n"
37
34
  },
35
+ "ai-portal.tab-list": {
36
+ "doc": "构件 `ai-portal.tab-list`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.tab-list\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.tab-list>Hello world</ai-portal.tab-list>\n# \n```\n"
37
+ },
38
38
  "ai-portal.dropdown-select": {
39
39
  "doc": "构件 `ai-portal.dropdown-select`\n\n下拉选择器组件,提供选项列表供用户选择,支持搜索过滤功能。\n\n## Examples\n\n### Basic\n\n基础用法,提供选项列表:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n options:\n - label: \"选项1\"\n value: \"option1\"\n - label: \"选项2\"\n value: \"option2\"\n - label: \"选项3\"\n value: \"option3\"\n value: \"option1\"\nevents:\n change:\n action: \"console.log\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select\n# value=\"option1\"\n# id=\"brick-1\"\n# ></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.options = [\n# {\n# label: \"选项1\",\n# value: \"option1\",\n# },\n# {\n# label: \"选项2\",\n# value: \"option2\",\n# },\n# {\n# label: \"选项3\",\n# value: \"option3\",\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n\n### With Search\n\n启用搜索功能:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n showSearch: true\n searchPlaceholder: \"请输入关键词搜索\"\n options:\n - label: \"北京市\"\n value: \"beijing\"\n - label: \"上海市\"\n value: \"shanghai\"\n - label: \"广州市\"\n value: \"guangzhou\"\n - label: \"深圳市\"\n value: \"shenzhen\"\n - label: \"杭州市\"\n value: \"hangzhou\"\nevents:\n change:\n action: \"console.log\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select show-search id=\"brick-1\"></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.searchPlaceholder = \"请输入关键词搜索\";\n# brick_1.options = [\n# {\n# label: \"北京市\",\n# value: \"beijing\",\n# },\n# {\n# label: \"上海市\",\n# value: \"shanghai\",\n# },\n# {\n# label: \"广州市\",\n# value: \"guangzhou\",\n# },\n# {\n# label: \"深圳市\",\n# value: \"shenzhen\",\n# },\n# {\n# label: \"杭州市\",\n# value: \"hangzhou\",\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n\n### Loading State\n\n加载状态显示:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n loading: true\n options:\n - label: \"加载中...\"\n value: \"loading\"\nevents:\n change:\n action: \"console.log\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select loading id=\"brick-1\"></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.options = [\n# {\n# label: \"加载中...\",\n# value: \"loading\",\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n\n### Custom Width\n\n自定义标签和下拉框宽度:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n labelMaxWidth: \"150px\"\n dropdownMaxWidth: \"300px\"\n options:\n - label: \"这是一个很长的选项标签文本\"\n value: \"long-option\"\n - label: \"短选项\"\n value: \"short\"\n - label: \"中等长度的选项\"\n value: \"medium\"\n value: \"long-option\"\nevents:\n change:\n action: \"console.log\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select\n# value=\"long-option\"\n# id=\"brick-1\"\n# ></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.labelMaxWidth = \"150px\";\n# brick_1.dropdownMaxWidth = \"300px\";\n# brick_1.options = [\n# {\n# label: \"这是一个很长的选项标签文本\",\n# value: \"long-option\",\n# },\n# {\n# label: \"短选项\",\n# value: \"short\",\n# },\n# {\n# label: \"中等长度的选项\",\n# value: \"medium\",\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n\n### With Disabled Options\n\n包含禁用选项:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n options:\n - label: \"可用选项1\"\n value: \"enabled1\"\n - label: \"禁用选项\"\n value: \"disabled1\"\n disabled: true\n - label: \"可用选项2\"\n value: \"enabled2\"\n - label: \"禁用选项2\"\n value: \"disabled2\"\n disabled: true\nevents:\n change:\n action: \"console.log\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select id=\"brick-1\"></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.options = [\n# {\n# label: \"可用选项1\",\n# value: \"enabled1\",\n# },\n# {\n# label: \"禁用选项\",\n# value: \"disabled1\",\n# disabled: true,\n# },\n# {\n# label: \"可用选项2\",\n# value: \"enabled2\",\n# },\n# {\n# label: \"禁用选项2\",\n# value: \"disabled2\",\n# disabled: true,\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n\n### Complex Example\n\n综合示例,包含所有功能:\n\n```yaml preview\nbrick: ai-portal.dropdown-select\nproperties:\n value: \"frontend\"\n showSearch: true\n searchPlaceholder: \"搜索技术栈\"\n labelMaxWidth: \"200px\"\n dropdownMaxWidth: \"400px\"\n options:\n - label: \"前端开发 - React\"\n value: \"frontend\"\n - label: \"后端开发 - Node.js\"\n value: \"backend\"\n - label: \"移动开发 - React Native\"\n value: \"mobile\"\n - label: \"数据库 - MongoDB\"\n value: \"database\"\n - label: \"DevOps - Docker\"\n value: \"devops\"\n disabled: true\n - label: \"机器学习 - Python\"\n value: \"ml\"\n - label: \"云计算 - AWS\"\n value: \"cloud\"\nevents:\n change:\n - action: \"console.log\"\n args:\n - \"选择了:\"\n - \"<% EVENT.detail %>\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.dropdown-select\n# value=\"frontend\"\n# show-search\n# id=\"brick-1\"\n# ></ai-portal.dropdown-select>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.searchPlaceholder = \"搜索技术栈\";\n# brick_1.labelMaxWidth = \"200px\";\n# brick_1.dropdownMaxWidth = \"400px\";\n# brick_1.options = [\n# {\n# label: \"前端开发 - React\",\n# value: \"frontend\",\n# },\n# {\n# label: \"后端开发 - Node.js\",\n# value: \"backend\",\n# },\n# {\n# label: \"移动开发 - React Native\",\n# value: \"mobile\",\n# },\n# {\n# label: \"数据库 - MongoDB\",\n# value: \"database\",\n# },\n# {\n# label: \"DevOps - Docker\",\n# value: \"devops\",\n# disabled: true,\n# },\n# {\n# label: \"机器学习 - Python\",\n# value: \"ml\",\n# },\n# {\n# label: \"云计算 - AWS\",\n# value: \"cloud\",\n# },\n# ];\n# brick_1.addEventListener(\"change\", (e) => {\n# console.log(\"选择了:\", e.detail);\n# });\n# </script>\n# \n```\n"
40
40
  },
@@ -50,12 +50,12 @@
50
50
  "ai-portal.project-conversations": {
51
51
  "doc": "构件 `ai-portal.project-conversations`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.project-conversations\nproperties:\n list:\n - conversationId: \"conv-a\"\n title: 标题一\n description: 这是一段描述\n startTime: 1757904096\n goal: GOAL0005\n - conversationId: \"conv-b\"\n title: 标题二\n startTime: 1757863597\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations id=\"brick-1\"></ai-portal.project-conversations>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# conversationId: \"conv-a\",\n# title: \"标题一\",\n# description: \"这是一段描述\",\n# startTime: 1757904096,\n# goal: \"GOAL0005\",\n# },\n# {\n# conversationId: \"conv-b\",\n# title: \"标题二\",\n# startTime: 1757863597,\n# },\n# ];\n# </script>\n# \n```\n\n### Loading\n\n```yaml preview\nbrick: ai-portal.project-conversations\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations></ai-portal.project-conversations>\n# \n```\n"
52
52
  },
53
- "ai-portal.activity-timeline": {
54
- "doc": "构件 `ai-portal.activity-timeline`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.activity-timeline\nproperties:\n list:\n - user_id: u001\n user_name: Tom\n action_type: create_goal\n time: 1757853597\n - user_id: u001\n user_name: Tom\n action_type: alter_owner\n time: 1757863597\n metadata:\n after:\n user_name: Lucy\n - user_id: u002\n user_name: Lucy\n action_type: start_conversation\n time: 1757904096\n metadata:\n conversation_id: c001\n conversation_title: 项目规划\n - user_id: u002\n user_name: Lucy\n action_type: decompose_goals\n time: 1757904096\n metadata:\n sub_goals_count: 2\n sub_goals:\n - title: \"先计划\"\n - title: \"再执行\"\n - user_id: u002\n user_name: Lucy\n action_type: alter_user\n time: 1757904096\n metadata:\n before:\n - user_name: Jim\n after:\n - user_name: Joy\n - user_name: Green\n - user_id: u001\n user_name: Tom\n action_type: add_comment\n time: 1757904096\n metadata:\n comment_content: Good!\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.activity-timeline id=\"brick-1\"></ai-portal.activity-timeline>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"create_goal\",\n# time: 1757853597,\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"alter_owner\",\n# time: 1757863597,\n# metadata: {\n# after: {\n# user_name: \"Lucy\",\n# },\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"start_conversation\",\n# time: 1757904096,\n# metadata: {\n# conversation_id: \"c001\",\n# conversation_title: \"项目规划\",\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"decompose_goals\",\n# time: 1757904096,\n# metadata: {\n# sub_goals_count: 2,\n# sub_goals: [\n# {\n# title: \"先计划\",\n# },\n# {\n# title: \"再执行\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"alter_user\",\n# time: 1757904096,\n# metadata: {\n# before: [\n# {\n# user_name: \"Jim\",\n# },\n# ],\n# after: [\n# {\n# user_name: \"Joy\",\n# },\n# {\n# user_name: \"Green\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"add_comment\",\n# time: 1757904096,\n# metadata: {\n# comment_content: \"Good!\",\n# },\n# },\n# ];\n# </script>\n# \n```\n"
55
- },
56
53
  "ai-portal.project-knowledges": {
57
54
  "doc": "构件 `ai-portal.project-knowledges`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.project-knowledges\nproperties:\n list:\n - knowledgeId: \"knowledge-a\"\n title: 标题一\n description: 这是一段描述\n time: 1757904096\n - knowledgeId: \"knowledge-b\"\n title: 标题二\n time: 1757863597\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-knowledges id=\"brick-1\"></ai-portal.project-knowledges>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# knowledgeId: \"knowledge-a\",\n# title: \"标题一\",\n# description: \"这是一段描述\",\n# time: 1757904096,\n# },\n# {\n# knowledgeId: \"knowledge-b\",\n# title: \"标题二\",\n# time: 1757863597,\n# },\n# ];\n# </script>\n# \n```\n\n### Loading\n\n```yaml preview\nbrick: ai-portal.project-knowledges\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-knowledges></ai-portal.project-knowledges>\n# \n```\n"
58
55
  },
56
+ "ai-portal.activity-timeline": {
57
+ "doc": "构件 `ai-portal.activity-timeline`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.activity-timeline\nproperties:\n list:\n - user_id: u001\n user_name: Tom\n action_type: create_goal\n time: 1757853597\n - user_id: u001\n user_name: Tom\n action_type: alter_owner\n time: 1757863597\n metadata:\n after:\n user_name: Lucy\n - user_id: u002\n user_name: Lucy\n action_type: start_conversation\n time: 1757904096\n metadata:\n conversation_id: c001\n conversation_title: 项目规划\n - user_id: u002\n user_name: Lucy\n action_type: decompose_goals\n time: 1757904096\n metadata:\n sub_goals_count: 2\n sub_goals:\n - title: \"先计划\"\n - title: \"再执行\"\n - user_id: u002\n user_name: Lucy\n action_type: alter_user\n time: 1757904096\n metadata:\n before:\n - user_name: Jim\n after:\n - user_name: Joy\n - user_name: Green\n - user_id: u001\n user_name: Tom\n action_type: add_comment\n time: 1757904096\n metadata:\n comment_content: Good!\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.activity-timeline id=\"brick-1\"></ai-portal.activity-timeline>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"create_goal\",\n# time: 1757853597,\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"alter_owner\",\n# time: 1757863597,\n# metadata: {\n# after: {\n# user_name: \"Lucy\",\n# },\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"start_conversation\",\n# time: 1757904096,\n# metadata: {\n# conversation_id: \"c001\",\n# conversation_title: \"项目规划\",\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"decompose_goals\",\n# time: 1757904096,\n# metadata: {\n# sub_goals_count: 2,\n# sub_goals: [\n# {\n# title: \"先计划\",\n# },\n# {\n# title: \"再执行\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"alter_user\",\n# time: 1757904096,\n# metadata: {\n# before: [\n# {\n# user_name: \"Jim\",\n# },\n# ],\n# after: [\n# {\n# user_name: \"Joy\",\n# },\n# {\n# user_name: \"Green\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"add_comment\",\n# time: 1757904096,\n# metadata: {\n# comment_content: \"Good!\",\n# },\n# },\n# ];\n# </script>\n# \n```\n"
58
+ },
59
59
  "ai-portal.chat-input": {
60
60
  "doc": "构件 `ai-portal.chat-input`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-input\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-input></ai-portal.chat-input>\n# \n```\n"
61
61
  },
@@ -73,5 +73,8 @@
73
73
  },
74
74
  "ai-portal.elevo-card": {
75
75
  "doc": "构件 `ai-portal.elevo-card`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nchildren:\n - brick: ai-portal.elevo-card\n properties:\n cardTitle: HR\n description: Provide standard HR workflows. e.g. leave applications, office supply requistion, purchase requistion, etc.\n style:\n maxWidth: 400px\n children:\n - brick: eo-dropdown-actions\n slot: actions\n properties:\n themeVariant: elevo\n actions:\n - text: Edit\n event: edit\n - text: Delete\n event: delete\n danger: true\n children:\n - brick: ai-portal.icon-button\n properties:\n variant: mini\n icon:\n lib: antd\n icon: setting\n - brick: eo-button\n slot: footer\n properties:\n themeVariant: elevo\n textContent: Chat\n type: flat\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>\n# <ai-portal.elevo-card\n# card-title=\"HR\"\n# description=\"Provide standard HR workflows. e.g. leave applications, office supply requistion, purchase requistion, etc.\"\n# style=\"max-width: 400px\"\n# >\n# <eo-dropdown-actions\n# slot=\"actions\"\n# theme-variant=\"elevo\"\n# actions=\"[object Object],[object Object]\"\n# >\n# <ai-portal.icon-button\n# variant=\"mini\"\n# id=\"brick-1\"\n# ></ai-portal.icon-button>\n# </eo-dropdown-actions>\n# <eo-button slot=\"footer\" theme-variant=\"elevo\" type=\"flat\">Chat</eo-button>\n# </ai-portal.elevo-card>\n# </ai-portal.home-container>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.icon = {\n# lib: \"antd\",\n# icon: \"setting\",\n# };\n# </script>\n# \n```\n"
76
+ },
77
+ "ai-portal.flow-tabs": {
78
+ "doc": "构件 `ai-portal.flow-tabs`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nchildren:\n - brick: ai-portal.flow-tabs\n properties:\n textContent: Hello world\n tabs:\n - id: foo\n label: Fooooo\n - id: bar\n label: Baaaaar\n - id: baz\n label: Baaaaaz\n activeTab: foo\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>\n# <ai-portal.flow-tabs id=\"brick-1\">Hello world</ai-portal.flow-tabs>\n# </ai-portal.home-container>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.tabs = [\n# {\n# id: \"foo\",\n# label: \"Fooooo\",\n# },\n# {\n# id: \"bar\",\n# label: \"Baaaaar\",\n# },\n# {\n# id: \"baz\",\n# label: \"Baaaaaz\",\n# },\n# ];\n# brick_1.activeTab = \"foo\";\n# </script>\n# \n```\n"
76
79
  }
77
80
  }
Binary file
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e,t,r,a,n,o,l,i,c,s,d,f,h,u,m,b,p,v,g,P,x,y,w,k={48387:(e,t,r)=>{var a={"./cruise-canvas":()=>Promise.all([r.e(3020),r.e(8135),r.e(6947),r.e(8324),r.e(161),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(7019),r.e(1302),r.e(348),r.e(2919),r.e(1321),r.e(9655),r.e(6593),r.e(6201),r.e(1919),r.e(2142),r.e(2267)]).then((()=>()=>r(99631))),"./chat-box":()=>Promise.all([r.e(3020),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(9435),r.e(6573)]).then((()=>()=>r(94669))),"./home-container":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(3172)]).then((()=>()=>r(6492))),"./stat-with-mini-chart":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(7345)]).then((()=>()=>r(45657))),"./elevo-sidebar":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(348),r.e(2919),r.e(2084),r.e(7771)]).then((()=>()=>r(17295))),"./icon-button":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(1541)]).then((()=>()=>r(68845))),"./show-cases":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(4332)]).then((()=>()=>r(64604))),"./mcp-tools":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(7087)]).then((()=>()=>r(91375))),"./chat-stream":()=>Promise.all([r.e(3020),r.e(8135),r.e(6947),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(7019),r.e(1302),r.e(348),r.e(2919),r.e(1321),r.e(9655),r.e(6593),r.e(6201),r.e(8717),r.e(366)]).then((()=>()=>r(23182))),"./ai-employees":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(6729)]).then((()=>()=>r(80749))),"./ai-agents":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(304)]).then((()=>()=>r(50520))),"./call-tool":()=>Promise.all([r.e(7019),r.e(2919),r.e(5234)]).then((()=>()=>r(24963))),"./save-request-store":()=>Promise.all([r.e(7019),r.e(8539)]).then((()=>()=>r(93291))),"./load-request-store":()=>Promise.all([r.e(7019),r.e(8539)]).then((()=>()=>r(93291))),"./clear-request-store":()=>Promise.all([r.e(7019),r.e(8539)]).then((()=>()=>r(93291))),"./page-container":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(348),r.e(5020)]).then((()=>()=>r(7476))),"./tab-list":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(9873)]).then((()=>()=>r(48581))),"./dropdown-select":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(9053)]).then((()=>()=>r(26001))),"./preview-container":()=>Promise.all([r.e(8135),r.e(3199),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(7019),r.e(348),r.e(1321),r.e(9655),r.e(6593),r.e(8775)]).then((()=>()=>r(54519))),"./action-buttons":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(6109)]).then((()=>()=>r(27725))),"./goal-card-list":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(4322)]).then((()=>()=>r(96318))),"./project-conversations":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(1302),r.e(2697)]).then((()=>()=>r(36709))),"./project-knowledges":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(1302),r.e(7908)]).then((()=>()=>r(73388))),"./activity-timeline":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(1030),r.e(1302),r.e(9576)]).then((()=>()=>r(59544))),"./chat-input":()=>Promise.all([r.e(3020),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(9435),r.e(7218)]).then((()=>()=>r(45962))),"./elevo-logo":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(5064)]).then((()=>()=>r(52404))),"./show-case":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(2616),r.e(3901)]).then((()=>()=>r(2865))),"./blank-state":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(1291)]).then((()=>()=>r(3019))),"./sticky-container":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(5144)]).then((()=>()=>r(46544))),"./elevo-card":()=>Promise.all([r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(7923)]).then((()=>()=>r(5527))),"./flow-tabs":()=>Promise.all([r.e(3020),r.e(8769),r.e(870),r.e(981),r.e(4419),r.e(5764)]).then((()=>()=>r(42252)))},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",1291:"blank-state",1541:"icon-button",2267:"cruise-canvas",2697:"project-conversations",3172:"home-container",3901:"show-case",4322:"goal-card-list",4332:"show-cases",5020:"page-container",5064:"elevo-logo",5144:"sticky-container",5234:"call-tool",5764:"flow-tabs",6109:"action-buttons",6573:"chat-box",6729:"ai-employees",7087:"mcp-tools",7218:"chat-input",7345:"stat-with-mini-chart",7771:"elevo-sidebar",7908:"project-knowledges",7923:"elevo-card",8539:"load-request-store",8775:"preview-container",9053:"dropdown-select",9576:"activity-timeline",9873:"tab-list"}[e]||e)+"."+{114:"af61e48a",161:"6c50f07c",304:"92ed0274",366:"11c6ade7",721:"f43de0ef",726:"392de709",843:"9b7325c3",871:"42c14164",879:"a469d051",948:"d125d58c",1045:"0906fc23",1120:"fd177648",1122:"95231c39",1136:"456f1c68",1215:"78630d79",1291:"ad3eee7a",1334:"aae33a33",1541:"0881c876",1889:"b7766f77",1931:"2abee15e",1940:"afcdea49",2052:"ef23d12a",2084:"0e9751e7",2142:"0599aecd",2260:"9564eb16",2267:"60fa24a3",2277:"b026624f",2432:"352ae272",2449:"b46fc22a",2508:"15c05669",2510:"91062655",2593:"783fb42e",2697:"3f559e57",3003:"a607b32b",3020:"acf9607e",3144:"4088b5d1",3171:"a0251432",3172:"3e8a670e",3199:"0220cf6e",3208:"0796f5be",3331:"bb7b4c1c",3419:"28287d23",3744:"ed6d0719",3816:"fc867cd4",3901:"7bc5fc9e",3935:"3b6a2f5d",4041:"6b503155",4190:"7612613e",4228:"ea602510",4281:"ddad94d5",4306:"9e8251b7",4322:"44c21cf2",4332:"85fe99d4",4474:"5fd3e9c8",4491:"539d30f8",4609:"e21567a0",4658:"18d5ee4d",4735:"24157512",4765:"e2813cac",4837:"c7f9a784",5020:"97947b50",5032:"2e4fb116",5064:"25e3b889",5065:"9616e9d3",5144:"d3f7054e",5191:"ce5dfec4",5234:"89a848e0",5250:"5294dc23",5307:"28ab7643",5384:"564ae2e4",5399:"501fc322",5498:"298984c7",5548:"498b312d",5552:"84bdc597",5727:"93a1388d",5764:"ba72493e",5807:"0b926b80",5936:"5bba7f2f",6023:"843ea4a1",6029:"6fe4c192",6109:"989fd1c9",6161:"d7e3ea42",6201:"58eeb93e",6519:"3ce478ef",6530:"3c295a95",6573:"59ab1b62",6593:"1afe9a04",6729:"12986d4b",6773:"afd27a30",6947:"1cec7258",7087:"0acb474a",7146:"1af0c62e",7218:"b09e4ba0",7302:"3117acc5",7345:"1509cf8c",7353:"02afd00b",7367:"d389861e",7721:"c985db03",7733:"dbb66cbc",7771:"bfad7500",7842:"d5a94411",7908:"24611263",7923:"731505e0",8135:"3255c5ba",8231:"89b65f56",8263:"d9eaafab",8311:"69ab488d",8324:"5ac013ff",8348:"2fbb3b7e",8539:"b4cf045b",8588:"0bce58e7",8633:"1b8bb39e",8717:"1e5ad2b1",8755:"1525c38d",8757:"5cde95c7",8775:"19631a7b",8936:"b9a73775",8989:"ddf83737",9034:"7ff08734",9053:"1140bf2b",9251:"52df4857",9263:"affcdb7b",9515:"468a8527",9559:"3db56cb0",9576:"60adaa84",9599:"1f04dd1f",9634:"71192f72",9831:"f659ce60",9844:"c3062a6b",9873:"ee97567f"}[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 c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var d=c[s];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 f=(t,a)=>{l.onerror=l.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.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})},c=[];return"default"===r&&(i("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(46773))))),i("@easyops-cn/brick-next-pipes","0.7.6",(()=>Promise.all([S.e(4306),S.e(1030),S.e(1302),S.e(5310)]).then((()=>()=>S(34306))))),i("@next-core/cook","2.5.12",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),i("@next-core/element","1.2.19",(()=>S.e(1045).then((()=>()=>S(21045))))),i("@next-core/http","1.2.14",(()=>S.e(8989).then((()=>()=>S(48989))))),i("@next-core/i18n","1.0.86",(()=>Promise.all([S.e(2616),S.e(7019),S.e(671),S.e(5552)]).then((()=>()=>S(75552))))),i("@next-core/inject","1.0.61",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(72277))))),i("@next-core/loader","1.6.17",(()=>S.e(5399).then((()=>()=>S(35399))))),i("@next-core/pipes","2.0.36",(()=>Promise.all([S.e(1919),S.e(6519)]).then((()=>()=>S(76519))))),i("@next-core/react-element","1.0.38",(()=>Promise.all([S.e(8769),S.e(870),S.e(9435),S.e(114)]).then((()=>()=>S(20114))))),i("@next-core/react-runtime","1.7.39",(()=>Promise.all([S.e(8769),S.e(981),S.e(1030),S.e(348),S.e(4837)]).then((()=>()=>S(64837))))),i("@next-core/runtime","1.71.0",(()=>Promise.all([S.e(948),S.e(2616),S.e(1030),S.e(7019),S.e(1302),S.e(2919),S.e(1321),S.e(9655),S.e(5651)]).then((()=>()=>S(30948))))),i("@next-core/supply","2.3.9",(()=>Promise.all([S.e(1030),S.e(1302),S.e(9933),S.e(9559)]).then((()=>()=>S(49559))))),i("@next-core/theme","1.6.1",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(51889))))),i("@next-core/utils/general","1.8.7",(()=>S.e(871).then((()=>()=>S(40871))))),i("@next-core/utils/storyboard","1.8.7",(()=>Promise.all([S.e(1030),S.e(7019),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]=c.length?Promise.all(c).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("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?l.pop()+" "+l.pop():n(i))}return c();function c(){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,c=!0;;i++,l++){var s,d,f=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(d=(typeof(s=t[l]))[0]))return!c||("u"==f?i>a&&!n:""==f!=n);if("u"==d){if(!c||"u"!=f)return!1}else if(c)if(f==d)if(i<=a){if(s!=e[i])return!1}else{if(n?s>e[i]:s<e[i])return!1;s!=e[i]&&(c=!1)}else if("s"!=f&&"n"!=f){if(n||i<=a)return!1;c=!1,i--}else{if(i<=a||d<f!=n)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,i--)}}var h=[],u=h.pop.bind(h);for(l=1;l<e.length;l++){var m=e[l];h.push(1==m?u()|u():2==m?u()&u():m?o(m,t):!u())}return!!u()},l=(e,t)=>e&&S.o(e,t),i=e=>(e.loaded=1,e.get()),c=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),s=(e,t,r,n)=>{var l=n?c(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?c(e[t]):e[t];return Object.keys(n).reduce(((e,t)=>!e||!n[e].loaded&&a(e,t)?t:e),0)},f=(e,t,r,a)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+n(a)+")",h=(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(", ")},u=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=(e,t,r)=>r?r():((e,t)=>u("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),v=(b=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 p(e,r,o);var c=s(t,r,n,a);return c?i(c):o?o():void u(h(t,e,r,n,a))})),g=b(((e,t,r,a,n,c)=>{if(!l(t,r))return p(e,r,c);var s=d(t,r,a);return o(n,s)||m(f(t,r,s,n)),i(t[r][s])})),P={},x={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))))),52616:()=>g("default","@next-core/i18n",!1,[1,1,0,86],(()=>Promise.all([S.e(7019),S.e(671),S.e(3171)]).then((()=>()=>S(75552))))),77019:()=>g("default","@next-core/utils/general",!1,[1,1,8,7],(()=>S.e(871).then((()=>()=>S(40871))))),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))))),59933:()=>g("default","@next-core/pipes",!1,[0],(()=>Promise.all([S.e(1919),S.e(6519)]).then((()=>()=>S(76519))))),61919:()=>g("default","@easyops-cn/brick-next-pipes",!1,[2,0,7,3],(()=>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))))),90870:()=>v("default","@next-core/element",!1,[1,1,2,19],(()=>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))))),30981:()=>v("default","@next-core/react-element",!1,[1,1,0,38],(()=>Promise.all([S.e(870),S.e(9435),S.e(7733)]).then((()=>()=>S(20114))))),30348:()=>g("default","@next-core/runtime",!1,[1,1,71,0],(()=>Promise.all([S.e(948),S.e(2616),S.e(1030),S.e(7019),S.e(1302),S.e(2919),S.e(1321),S.e(9655),S.e(5651)]).then((()=>()=>S(30948))))),22919:()=>g("default","@next-core/http",!1,[1,1,2,14],(()=>S.e(8989).then((()=>()=>S(48989))))),71321:()=>g("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),69655:()=>g("default","@next-core/utils/storyboard",!1,[1,1,8,7],(()=>S.e(4765).then((()=>()=>S(97146))))),11732:()=>g("default","history",!1,[0],(()=>S.e(3003).then((()=>()=>S(65384))))),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))))),34419:()=>g("default","@next-core/theme",!1,[1,1,6,1],(()=>S.e(1889).then((()=>()=>S(51889))))),60709:()=>v("default","@next-core/react-runtime",!1,[1,1,7,39],(()=>S.e(9599).then((()=>()=>S(64837)))))},y={348:[30348],580:[40580],671:[848,75630],870:[90870],981:[30981],1030:[41030],1302:[21302],1321:[71321],1919:[61919],2616:[52616],2919:[22919],4419:[34419],5310:[55310],5651:[11732,26036,29283,45599,94167],6201:[60709],7019:[77019],8769:[18769],9435:[59435],9655:[69655],9933:[59933]},w={},S.f.consumes=(e,t)=>{S.o(y,e)&&y[e].forEach((e=>{if(S.o(P,e))return t.push(P[e]);if(!w[e]){var r=t=>{P[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var a=t=>{delete P[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var n=x[e]();n.then?t.push(P[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|302|321|919)|5(310|651|80)|87(0|69)|9(435|655|81|933)|(29|44|70)19|2616|348|671)$/.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,c=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);c<o.length;c++)n=o[c],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(48387);window["bricks/ai-portal"]=E})();
2
+ //# sourceMappingURL=index.fede9e49.js.map