@next-bricks/ai-portal 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +43 -35
- package/dist/chunks/6201.610c66e3.js +2 -0
- package/dist/chunks/6201.610c66e3.js.map +1 -0
- package/dist/chunks/7713.278cfb8b.js +2 -0
- package/dist/chunks/7713.278cfb8b.js.map +1 -0
- package/dist/chunks/chat-box.279647b5.js +2 -0
- package/dist/chunks/chat-box.279647b5.js.map +1 -0
- package/dist/chunks/flow-tabs.222a11ea.js +3 -0
- package/dist/chunks/flow-tabs.222a11ea.js.map +1 -0
- package/dist/chunks/main.72d51c8f.js +2 -0
- package/dist/chunks/{main.4cb00675.js.map → main.72d51c8f.js.map} +1 -1
- package/dist/chunks/set-chat-command.367b9c88.js +2 -0
- package/dist/chunks/set-chat-command.367b9c88.js.map +1 -0
- package/dist/chunks/stage-flow.1ece0479.js +2 -0
- package/dist/chunks/stage-flow.1ece0479.js.map +1 -0
- package/dist/examples.json +19 -16
- package/dist/images/60cd488d.svg +6 -0
- package/dist/images/ecaecc18.svg +6 -0
- package/dist/index.6e1371ec.js +2 -0
- package/dist/index.6e1371ec.js.map +1 -0
- package/dist/manifest.json +384 -298
- package/dist/types.json +1507 -736
- package/dist-types/bootstrap.d.ts +2 -0
- package/dist-types/chat-box/index.d.ts +3 -1
- package/dist-types/data-providers/set-chat-command.d.ts +7 -0
- package/dist-types/data-providers/set-chat-command.spec.d.ts +1 -0
- package/dist-types/shared/interfaces.d.ts +9 -0
- package/dist-types/stage-flow/i18n.d.ts +23 -0
- package/dist-types/stage-flow/index.d.ts +39 -0
- package/dist-types/stage-flow/index.spec.d.ts +1 -0
- package/docs/stage-flow.md +32 -0
- package/package.json +2 -2
- package/dist/chunks/6201.58eeb93e.js +0 -2
- package/dist/chunks/6201.58eeb93e.js.map +0 -1
- package/dist/chunks/943.7073ef6f.js +0 -2
- package/dist/chunks/943.7073ef6f.js.map +0 -1
- package/dist/chunks/chat-box.59ab1b62.js +0 -2
- package/dist/chunks/chat-box.59ab1b62.js.map +0 -1
- package/dist/chunks/flow-tabs.ba72493e.js +0 -3
- package/dist/chunks/flow-tabs.ba72493e.js.map +0 -1
- package/dist/chunks/main.4cb00675.js +0 -2
- package/dist/index.fede9e49.js +0 -2
- package/dist/index.fede9e49.js.map +0 -1
- /package/dist/chunks/{flow-tabs.ba72493e.js.LICENSE.txt → flow-tabs.222a11ea.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[6573],{10236:(e,t,n)=>{n.d(t,{e:()=>c});var o=n(89575),r=n(18769),i=n(59435),a=n(99126),l=n(79644);const s=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey",c=r.forwardRef(u);function u(e,t){let{autoResize:n,minRows:c,maxRows:u,borderSize:d,paddingSize:p,containerRef:h,value:f,style:m,submitWhen:g,desiredSelectionRef:b,onChange:v,onSubmit:x,onKeyDown:y,onCompositionStart:A,onCompositionEnd:w,...k}=e;const S=null==n||n,[C,E]=(0,r.useState)(null!=f?f:""),R=(0,r.useRef)(null),[_,M]=(0,r.useState)(null);(0,r.useImperativeHandle)(t,(()=>({focus:()=>{const e=R.current;if(e){var t;const n=null===(t=e.value)||void 0===t?void 0:t.length;e.focus(),n&&e.setSelectionRange(n,n)}},element:R.current})),[]);const z=(0,r.useCallback)((()=>{const e=R.current;if(e&&S){const t=(0,l.A)(e,{minRows:c,maxRows:u,borderSize:d,paddingSize:p});(0,i.flushSync)((()=>{M(t)}))}}),[S,u,c,d,p]);(0,r.useEffect)((()=>{E(null!=f?f:"")}),[f]),(0,r.useEffect)((()=>{z()}),[z,C]);const I=(0,r.useRef)(!1),N=(0,r.useCallback)((e=>{I.current=!0,null==A||A(e)}),[A]),O=(0,r.useCallback)((e=>{I.current=!1,null==w||w(e)}),[w]),P=(0,r.useCallback)((e=>{I.current||!1!==(null==y?void 0:y(e))&&"Enter"===e.key&&("enter-without-shift"===g?!e.shiftKey:"enter-with-mod"===g&&e[s])&&(e.preventDefault(),e.stopPropagation(),null==x||x(e))}),[y,x,g]);return(0,r.useLayoutEffect)((()=>{const e=null==b?void 0:b.current,t=R.current;if(e&&t){const{start:n,end:o}=e;b.current=null,t.setSelectionRange(n,o)}}),[b,C]),(0,r.useEffect)((()=>{const e=null==h?void 0:h.current;if(!e||!S)return;let t;const n=new a.A((n=>{for(const o of n)if(o.target===e){const e=o.contentBoxSize?o.contentBoxSize[0]?o.contentBoxSize[0].inlineSize:o.contentBoxSize.inlineSize:o.contentRect.width;if(void 0!==e&&e!==t){const n=!t;t=e,n||requestAnimationFrame(z)}}}));return n.observe(e),()=>{n.disconnect()}}),[S,h,z]),r.createElement("textarea",(0,o.A)({},k,{ref:R,value:C,style:{...m,..._},onChange:e=>{E(e.target.value),null==v||v(e)},onCompositionStart:N,onCompositionEnd:O,onKeyDown:P}))}},16195:(e,t,n)=>{n.d(t,{I:()=>s,K:()=>r,NS:()=>l,t:()=>c});var o=n(52616);let r=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const i={[r.ASK_ANY_THING]:"Ask anything",[r.COMMON_TASKS]:"Common tasks"},a={[r.ASK_ANY_THING]:"询问任何问题",[r.COMMON_TASKS]:"常用任务"},l="bricks/ai-portal/chat-box",s={en:i,zh:a},c=o.i18n.getFixedT(null,l)},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},24586:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(11369);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},47008:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(36758),r=n.n(o),i=n(40935),a=n.n(i),l=n(20062),s=n.n(l),c=new URL(n(47336),n.b),u=a()(r()),d=s()(c);u.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${d}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;margin:0 -12px}.container{position:relative;background:#ffffff;box-shadow:0px 2px 4px 0px rgba(38,45,65,0.1);border-radius:16px;border:1px solid #dadfe8}.container:has(textarea:focus){border-color:#b7c3d8}textarea{display:block;width:100%;padding:10px 16px 50px;color:var(--antd-input-color);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);font:inherit;font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}.btn-send:focus,\ntextarea:focus{outline:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}.mention-overlay{position:absolute;border-radius:4px;pointer-events:none;background:rgba(38,45,65,0.1)}`,""]);const p=u.toString()},47336:(e,t,n)=>{e.exports=n.p+"images/25c20165.png"},78404:(e,t,n)=>{n.d(t,{U:()=>i});var o=n(80592);let r;function i(e,t){r||(r=document.createElement("div"),r.setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),r.setAttribute("style",(0,o.w)(e)),r.textContent=e.value.slice(0,t);const n=document.createElement("span");n.textContent="",r.appendChild(n);const i=n.getBoundingClientRect();return n.remove(),{top:i.top,left:i.left}}},79644:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(80592);let r;function i(e,t){const{minRows:n=null,maxRows:i=null,borderSize:a=2,paddingSize:l=8}=null!=t?t:{};let s,c,u;r||(r=document.createElement("textarea"),r.setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),r.setAttribute("style",(0,o.w)(e)),r.value=e.value||e.placeholder||"";let d=r.scrollHeight+a;if(null!==n||null!==i){const e=parseFloat(window.getComputedStyle(r).getPropertyValue("line-height"));null!==n&&(s=e*n+l+a,d=Math.max(s,d)),null!==i&&(c=e*i+l+a,d<=c&&(u="hidden"),d=Math.min(c,d))}const p={height:d,overflowY:u,resize:"none"};return s&&(p.minHeight=s),c&&(p.maxHeight=c),p}},80592:(e,t,n)=>{n.d(t,{w:()=>i});const o="\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n left: 0!important;\n pointer-events: none!important;\n",r=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"];function i(e){const t=window.getComputedStyle(e);return`${r.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";")};${o}`}},89575:(e,t,n)=>{function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})},89719:(e,t,n)=>{n.d(t,{f:()=>i});var o=n(80592);let r;function i(e,t,n){r||(r=document.createElement("div"),r.setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),r.setAttribute("style",(0,o.w)(e)),r.textContent=t;const i=document.createElement("span");i.textContent=n,r.appendChild(i);const a=i.getBoundingClientRect();return i.remove(),a}},94669:(e,t,n)=>{n.r(t),n.d(t,{ChatBox:()=>ee,ChatBoxComponent:()=>Z});var o,r=n(74635),i=n(70918),a=n(24586),l=n(26902),s=n(5536),c=n(86121),u=n(70829),d=n(62740),p=n(18769),h=n.n(p),f=n(59435),m=n(90870),g=n(30981),b=n(78404),v=n(89719),x=n(10236),y=(n(34419),n(52616)),A=n(16195),w=n(47008);let k,S,C,E,R,_,M,z,I,N,O,P,T,K,$,B,L,W,D,F,H,V,j,U;(0,y.initializeI18n)(A.NS,A.I);const Y=(0,g.wrapBrick)("eo-icon"),G=(0,g.wrapBrick)("eo-actions",{onActionClick:"action.click",onItemDragEnd:"item.drag.end",onItemDragStart:"item.drag.start"}),{defineElement:q,property:Q,event:J,method:X}=(0,m.createDecorators)(),Z=(0,p.forwardRef)(fe);let ee;var te=new WeakMap,ne=new WeakMap,oe=new WeakMap,re=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakSet,se=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap,pe=new WeakMap;class he extends g.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,le),(0,a.A)(this,"ref",(k(this),(0,p.createRef)())),(0,i.A)(this,te,C(this)),(0,i.A)(this,ne,(E(this),R(this))),(0,i.A)(this,oe,(_(this),M(this))),(0,i.A)(this,re,(z(this),I(this))),(0,i.A)(this,ie,(N(this),O(this))),(0,i.A)(this,ae,(P(this),T(this))),(0,i.A)(this,se,(B(this),e=>{(0,s.A)(le,this,K).emit(e)})),(0,i.A)(this,ce,L(this)),(0,i.A)(this,ue,(F(this),e=>{(0,s.A)(le,this,W).emit(e)})),(0,i.A)(this,de,H(this)),(0,i.A)(this,pe,(U(this),e=>{(0,s.A)(le,this,V).emit(e)}))}get disabled(){return(0,u.A)(te,this)}set disabled(e){(0,c.A)(te,this,e)}get placeholder(){return(0,u.A)(ne,this)}set placeholder(e){(0,c.A)(ne,this,e)}get autoFocus(){return(0,u.A)(oe,this)}set autoFocus(e){(0,c.A)(oe,this,e)}get aiEmployees(){return(0,u.A)(re,this)}set aiEmployees(e){(0,c.A)(re,this,e)}get commands(){return(0,u.A)(ie,this)}set commands(e){(0,c.A)(ie,this,e)}setValue(e){var t;null===(t=this.ref.current)||void 0===t||t.setValue(e)}getValue(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.getValue()}focusOnInput(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.focusOnInput()}render(){return h().createElement(Z,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,aiEmployees:this.aiEmployees,commands:this.commands,onSubmit:(0,u.A)(se,this),onEmployeeMention:(0,u.A)(ue,this),onCommandSelect:(0,u.A)(pe,this),ref:this.ref})}}function fe(e,t){let{disabled:n,placeholder:o,autoFocus:r,aiEmployees:i,commands:a,onSubmit:l,onEmployeeMention:s,onCommandSelect:c}=e;const u=(0,p.useRef)(null),d=(0,p.useRef)(null),[m,g]=(0,p.useState)(""),y=(0,p.useRef)(""),[w,k]=(0,p.useState)(null),[S,C]=(0,p.useState)(""),[E,R]=(0,p.useState)(0),[_,M]=(0,p.useState)([0]),[z,I]=(0,p.useState)(null),[N,O]=(0,p.useState)(""),P=(0,p.useRef)(null);(0,p.useEffect)((()=>{const e=window.__elevo_try_it_out;e&&delete window.__elevo_try_it_out,"string"==typeof(null==e?void 0:e.content)&&(y.current=e.content,g(e.content))}),[]),(0,p.useImperativeHandle)(t,(()=>({setValue:e=>{y.current=e,g(e)},getValue:()=>y.current,focusOnInput:()=>{var e;null===(e=d.current)||void 0===e||e.focus()}})));const T=(0,p.useCallback)((e=>{var t;l(e.slice(null!==(t=null==N?void 0:N.length)&&void 0!==t?t:0))}),[null==N?void 0:N.length,l]),K=(0,p.useCallback)((e=>{e.currentTarget.value&&T(e.currentTarget.value)}),[T]),$=(0,p.useCallback)((e=>{const{value:t,selectionStart:n,selectionEnd:o}=e.target;if(y.current=t,g(t),!S&&null!==n&&n===o&&null!=i&&i.length){const o=t.slice(0,n),r=o.lastIndexOf("@");if(r>=0){const t=o.slice(r+1).toLowerCase(),a=i.filter((e=>e.employeeId.toLowerCase().includes(t)||e.name.toLowerCase().includes(t))).slice(0,10);if(a.length>0){const t=(0,b.U)(e.currentTarget,n),o=e.currentTarget.getBoundingClientRect();return k({style:{left:t.left+10+o.left,top:t.top+22+o.top,position:"absolute",zIndex:1},range:{start:r,end:n},actions:a.map((e=>({key:e.employeeId,text:e.name,data:e})))}),void R(0)}}}if(k(null),null!==n&&n===o&&null!=a&&a.length){const o=t.slice(0,n);if(o.startsWith("/")){const t=o.slice(1).toLowerCase(),r=a.filter((e=>e.label.toLowerCase().includes(t))).slice(0,10);if(r.length>0){const t=(0,b.U)(e.currentTarget,n),o=e.currentTarget.getBoundingClientRect();return I({style:{left:t.left+10+o.left,top:t.top+22+o.top,position:"absolute",zIndex:1},range:{start:0,end:n},actions:r.map((e=>({key:e.value,text:e.label,data:e,ancestors:[],items:me(e,[])})))}),void M([0])}}}I(null)}),[i,a,S]);(0,p.useEffect)((()=>{S&&!m.includes(S)&&(C(""),s(null))}),[S,s,m]),(0,p.useEffect)((()=>{N&&!m.includes(N)&&(O(""),c(null))}),[N,c,m]);const B=(0,p.useCallback)((()=>{T(y.current)}),[T]);(0,p.useEffect)((()=>{r&&Promise.resolve().then((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))}),[]);const L=(0,p.useMemo)((()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.element;if(!S||!t)return"";const n=m.indexOf(S);return n<0?"":m.slice(0,n)}),[S,m]),W=(0,p.useMemo)((()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.element;if(!S||!t)return null;const n=(0,v.f)(t,L,S.slice(0,-1));return{left:n.left-1,top:n.top-1,width:n.width+4,height:n.height+4}}),[S,L]),D=(0,p.useMemo)((()=>{var e;const t=null===(e=d.current)||void 0===e?void 0:e.element;if(!N||!t)return null;const n=(0,v.f)(t,"",N.slice(0,-1));return{left:n.left-1,top:n.top-1,width:n.width+4,height:n.height+4}}),[N]),F=(0,p.useCallback)((e=>{var t;const n=`@${e.text} `,o=`${y.current.slice(0,w.range.start)}${n}`,r=`${o}${y.current.slice(w.range.end)}`;y.current=r,P.current={start:o.length,end:o.length},g(r),C(n),k(null),s(e.data),null===(t=d.current)||void 0===t||t.focus()}),[w,s]),H=(0,p.useCallback)((e=>{var t;const n=`/${[...e.ancestors.map((e=>e.label)),e.text].join(": ")} `,o=`${y.current.slice(0,z.range.start)}${n}`,r=`${o}${y.current.slice(z.range.end)}`;y.current=r,P.current={start:o.length,end:o.length},g(r),O(n),I(null),c(e.text),null===(t=d.current)||void 0===t||t.focus()}),[z,c]),V=(0,p.useCallback)((e=>{switch(e.key){case"Escape":if(!w&&!z)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),k(null),I(null),!1;case"ArrowUp":case"ArrowDown":if(!w&&!z)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),w?R((t=>{const n=t+("ArrowUp"===e.key?-1:1),o=w.actions.length;return(o+n)%o})):M((t=>{let n=0,{actions:o}=z;const r=[];for(;n<t.length-1;){const e=o[t[n]];if(!ge(e))break;o=e.items,r.push(t[n]),n+=1}const i=t[n]+("ArrowUp"===e.key?-1:1),a=o.length,l=(a+i)%a;return r.push(l),r})),!1;case"Enter":case"ArrowLeft":case"ArrowRight":if(w){if("Enter"===e.key)return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),F(w.actions[E]),!1}else if(z){if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),"ArrowLeft"===e.key)return _.length>1&&M((e=>e.slice(0,-1))),!1;let t,n=0,{actions:o}=z;for(;n<_.length&&(t=o[_[n]],ge(t));)o=t.items,n+=1;return t&&(ge(t)?M((e=>[...e,0])):"Enter"===e.key&&H(t)),!1}break;case"Delete":case"Backspace":{const t=[{textLength:null==S?void 0:S.length,prefixLength:L.length},{textLength:null==N?void 0:N.length,prefixLength:0}];for(const{textLength:n,prefixLength:o}of t)if(n){let{selectionStart:t,selectionEnd:r}=e.currentTarget;t===r&&("Backspace"===e.key?t-=1:r+=1);const i=o,a=i+n;if(t<a&&r>i){const n=Math.min(t,i),o=Math.max(r,a),l=`${y.current.slice(0,n)}${y.current.slice(o)}`;return y.current=l,P.current={start:n,end:n},g(l),e.preventDefault(),e.stopPropagation(),!1}}break}}}),[E,_,z,null==N?void 0:N.length,F,H,w,L.length,null==S?void 0:S.length]),j=(0,p.useMemo)((()=>{if(!z)return[];let e=z.actions;const t=[];for(let n=0;n<_.length;n+=1){const o=e[_[n]];if(!o)break;if(!ge(o)){t.push(o.key);break}t.push(o.key),e=o.items}return t}),[_,z]);return h().createElement("div",{className:"root"},h().createElement("div",{className:"container",ref:u},h().createElement(x.e,{containerRef:u,ref:d,value:m,minRows:58/22,paddingSize:60,autoResize:!0,disabled:n,placeholder:null!=o?o:(0,A.t)(A.K.ASK_ANY_THING),submitWhen:"enter-without-shift",desiredSelectionRef:P,onSubmit:K,onChange:$,onKeyDown:V}),h().createElement("div",{className:"actions-bar"},h().createElement("div",null,h().createElement("slot",{name:"actions"})),h().createElement("button",{className:"btn-send",disabled:!m,onClick:B},h().createElement(Y,{lib:"fa",prefix:"fas",icon:"arrow-up"}))),W&&h().createElement("div",{className:"mention-overlay",style:W}),D&&h().createElement("div",{className:"mention-overlay",style:D}),w&&(0,f.createPortal)(h().createElement(G,{actions:w.actions,style:w.style,activeKeys:[w.actions[E].key],onActionClick:e=>F(e.detail)}),document.body),z&&(0,f.createPortal)(h().createElement(G,{actions:z.actions,style:z.style,activeKeys:j,onActionClick:e=>H(e.detail)}),document.body)))}function me(e,t){var n;return null===(n=e.options)||void 0===n?void 0:n.map((n=>{const o=[...t,e];return{key:n.value,text:n.label,data:n,ancestors:o,items:me(n,o)}}))}function ge(e){var t;return!(null===(t=e.items)||void 0===t||!t.length)}o=he,({e:[C,E,R,_,M,z,I,N,O,P,T,K,$,B,L,W,D,F,H,V,j,U,k],c:[ee,S]}=(0,d.A)(o,[q("ai-portal.chat-box",{styleTexts:[w.A],shadowOptions:{delegatesFocus:!0}})],[[Q({type:Boolean}),1,"disabled"],[Q(),1,"placeholder"],[Q({type:Boolean}),1,"autoFocus"],[Q({attribute:!1}),1,"aiEmployees"],[Q({attribute:!1}),1,"commands"],[J({type:"message.submit"}),1,"messageSubmit",e=>(0,u.A)(ae,e),(e,t)=>(0,c.A)(ae,e,t)],[J({type:"ai-employee.mention"}),1,"employeeMention",e=>(0,u.A)(ce,e),(e,t)=>(0,c.A)(ce,e,t)],[J({type:"command.select"}),1,"commandSelect",e=>(0,u.A)(de,e),(e,t)=>(0,c.A)(de,e,t)],[X(),2,"setValue"],[X(),2,"getValue"],[X(),2,"focusOnInput"]],0,(e=>pe.has((0,l.A)(e))),g.ReactNextElement)),S()}}]);
|
|
2
|
-
//# sourceMappingURL=chat-box.59ab1b62.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/chat-box.59ab1b62.js","mappings":"yNAaA,MAAMA,EAAS,uBAAuBC,KAAKC,UAAUC,UACjD,UACA,UAiCSC,EAAqBC,EAAAA,WAGhCC,GAEF,SAASA,EAAwBC,EAmB/BC,GACmB,IAlBjBC,WAAYC,EAAW,QACvBC,EAAO,QACPC,EAAO,WACPC,EAAU,YACVC,EAAW,aACXC,EACAC,MAAOC,EAAS,MAChBC,EAAK,WACLC,EAAU,oBACVC,EAAmB,SACnBC,EAAQ,SACRC,EAAQ,UACRC,EAAS,mBACTC,EAAkB,iBAClBC,KACGC,GACqBnB,EAG1B,MAAME,EAAaC,SAAAA,GACZM,EAAOW,IAAYC,EAAAA,EAAAA,UAASX,QAAAA,EAAa,IAC1CY,GAAcC,EAAAA,EAAAA,QAA4B,OACzCC,EAAWC,IAAgBJ,EAAAA,EAAAA,UAAqC,OAEvEK,EAAAA,EAAAA,qBACEzB,GACA,KAAM,CACJ0B,MAAOA,KACL,MAAM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,mBAAmB,kBAAAG,IAAA3H,EAAAA,EAAAA,GAAAjC,GAAA4J,GAAA,CAAAA,EAAA1H,KAAAC,EAAAA,EAAAA,GAAAnC,GAAA4J,EAAA1H,IAAA,CAOjCpD,IAAQ,eAKRA,IAAQ,eAKRA,IAAQ,sBAAA+K,GAAA5J,GAAA6J,KAAAC,EAAAA,EAAAA,GAAAF,KAjDW1J,EAAAA,mBAAgBgJ,G","sources":["webpack:///../../src/TextareaAutoResize.tsx","webpack:///./src/chat-box/i18n.ts","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./src/chat-box/styles.shadow.css","webpack:///../../src/getCaretPositionInTextarea.ts","webpack:///../../../src/utils/calculateAutoSizeStyle.ts","webpack:///../../../src/utils/getMirroredStyle.ts","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../src/getContentRectInTextarea.ts","webpack:///./src/chat-box/index.tsx"],"sourcesContent":["import React, {\n useCallback,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { flushSync } from \"react-dom\";\nimport ResizeObserver from \"resize-observer-polyfill\";\nimport calculateAutoSizeStyle from \"./utils/calculateAutoSizeStyle.js\";\n\n// istanbul ignore next\nconst modKey = /Mac|iPod|iPhone|iPad/.test(navigator.platform)\n ? \"metaKey\"\n : \"ctrlKey\";\n\nexport interface TextareaAutoResizeProps\n extends React.DetailedHTMLProps<\n React.TextareaHTMLAttributes<HTMLTextAreaElement>,\n HTMLTextAreaElement\n > {\n /** @default true */\n autoResize?: boolean;\n minRows?: number | null;\n maxRows?: number | null;\n /** @default 2 */\n borderSize?: number;\n /** @default 8 */\n paddingSize?: number;\n containerRef?: React.RefObject<HTMLElement>;\n submitWhen?: \"enter-without-shift\" | \"enter-with-mod\";\n desiredSelectionRef?: React.MutableRefObject<{\n start: number;\n end: number;\n } | null>;\n onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;\n /**\n * The handler can return false to prevent default behavior (submit)\n */\n onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void | false;\n}\n\nexport interface TextareaAutoResizeRef {\n focus(): void;\n element: HTMLTextAreaElement | null;\n}\n\nexport const TextareaAutoResize = React.forwardRef<\n TextareaAutoResizeRef,\n TextareaAutoResizeProps\n>(LegacyTextareaAutoResize);\n\nfunction LegacyTextareaAutoResize(\n {\n autoResize: _autoResize,\n minRows,\n maxRows,\n borderSize,\n paddingSize,\n containerRef,\n value: propValue,\n style,\n submitWhen,\n desiredSelectionRef,\n onChange,\n onSubmit,\n onKeyDown,\n onCompositionStart,\n onCompositionEnd,\n ...props\n }: TextareaAutoResizeProps,\n ref: React.ForwardedRef<TextareaAutoResizeRef>\n): React.JSX.Element {\n const autoResize = _autoResize ?? true;\n const [value, setValue] = useState(propValue ?? \"\");\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n const [autoStyle, setAutoStyle] = useState<React.CSSProperties | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n focus: () => {\n const textarea = textareaRef.current;\n // istanbul ignore else: defensive check\n if (textarea) {\n const valueLength = textarea.value?.length;\n textarea.focus();\n valueLength && textarea.setSelectionRange(valueLength, valueLength);\n }\n },\n element: textareaRef.current,\n }),\n []\n );\n\n const doAutoResize = useCallback(() => {\n const textarea = textareaRef.current;\n if (textarea && autoResize) {\n const style = calculateAutoSizeStyle(textarea, {\n minRows,\n maxRows,\n borderSize,\n paddingSize,\n });\n // istanbul ignore next\n if (process.env.NODE_ENV === \"test\") {\n setAutoStyle(style);\n } else {\n flushSync(() => {\n setAutoStyle(style);\n });\n }\n }\n }, [autoResize, maxRows, minRows, borderSize, paddingSize]);\n\n const handleInputChange = (\n e: React.ChangeEvent<HTMLTextAreaElement>\n ): void => {\n setValue(e.target.value);\n onChange?.(e);\n };\n\n useEffect(() => {\n setValue(propValue ?? \"\");\n }, [propValue]);\n\n useEffect(() => {\n doAutoResize();\n }, [doAutoResize, value]);\n\n const compositionRef = useRef(false);\n\n const handleCompositionStart = useCallback(\n (e: React.CompositionEvent<HTMLTextAreaElement>) => {\n compositionRef.current = true;\n onCompositionStart?.(e);\n },\n [onCompositionStart]\n );\n\n const handleCompositionEnd = useCallback(\n (e: React.CompositionEvent<HTMLTextAreaElement>) => {\n compositionRef.current = false;\n onCompositionEnd?.(e);\n },\n [onCompositionEnd]\n );\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (compositionRef.current) {\n // Ignore key events during composition\n return;\n }\n\n if (onKeyDown?.(e) === false) {\n return;\n }\n\n if (\n e.key === \"Enter\" &&\n (submitWhen === \"enter-without-shift\"\n ? !e.shiftKey\n : submitWhen === \"enter-with-mod\" && e[modKey])\n ) {\n e.preventDefault();\n e.stopPropagation();\n onSubmit?.(e);\n }\n },\n [onKeyDown, onSubmit, submitWhen]\n );\n\n useLayoutEffect(() => {\n const desiredSelection = desiredSelectionRef?.current;\n const textarea = textareaRef.current;\n if (desiredSelection && textarea) {\n const { start, end } = desiredSelection;\n desiredSelectionRef.current = null;\n textarea.setSelectionRange(start, end);\n }\n }, [desiredSelectionRef, value]);\n\n // istanbul ignore next\n useEffect(() => {\n const container = containerRef?.current;\n if (!container || !autoResize) {\n return;\n }\n let previousInlineSize: number | undefined;\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n if (entry.target === container) {\n // istanbul ignore next: compatibility\n const currentInlineSize = entry.contentBoxSize\n ? entry.contentBoxSize[0]\n ? entry.contentBoxSize[0].inlineSize\n : (entry.contentBoxSize as unknown as ResizeObserverSize)\n .inlineSize\n : entry.contentRect.width;\n if (\n currentInlineSize !== undefined &&\n currentInlineSize !== previousInlineSize\n ) {\n const isInitial = !previousInlineSize;\n previousInlineSize = currentInlineSize;\n if (!isInitial) {\n requestAnimationFrame(doAutoResize);\n }\n }\n }\n }\n });\n observer.observe(container);\n return () => {\n observer.disconnect();\n };\n }, [autoResize, containerRef, doAutoResize]);\n\n return (\n <textarea\n {...props}\n ref={textareaRef}\n value={value}\n style={{\n ...style,\n ...autoStyle,\n }}\n onChange={handleInputChange}\n onCompositionStart={handleCompositionStart}\n onCompositionEnd={handleCompositionEnd}\n onKeyDown={handleKeyDown}\n />\n );\n}\n","import { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n ASK_ANY_THING = \"ASK_ANYTHING\",\n COMMON_TASKS = \"COMMON_TASKS\",\n}\n\nconst en: Locale = {\n [K.ASK_ANY_THING]: \"Ask anything\",\n [K.COMMON_TASKS]: \"Common tasks\",\n};\n\nconst zh: Locale = {\n [K.ASK_ANY_THING]: \"询问任何问题\",\n [K.COMMON_TASKS]: \"常用任务\",\n};\n\nexport const NS = \"bricks/ai-portal/chat-box\";\n\nexport const locales = { en, zh };\n\nexport const t = i18n.getFixedT(null, NS);\n\ntype Locale = { [k in K]: string } & {\n [k in K as `${k}_plural`]?: string;\n};\n","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"./images/bg.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${___CSS_LOADER_URL_REPLACEMENT_0___}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;margin:0 -12px}.container{position:relative;background:#ffffff;box-shadow:0px 2px 4px 0px rgba(38,45,65,0.1);border-radius:16px;border:1px solid #dadfe8}.container:has(textarea:focus){border-color:#b7c3d8}textarea{display:block;width:100%;padding:10px 16px 50px;color:var(--antd-input-color);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);font:inherit;font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}.btn-send:focus,\ntextarea:focus{outline:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}.mention-overlay{position:absolute;border-radius:4px;pointer-events:none;background:rgba(38,45,65,0.1)}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import { getMirroredStyle } from \"./utils/getMirroredStyle.js\";\n\nlet hiddenElement: HTMLDivElement | undefined;\n\nexport function getCaretPositionInTextarea(\n textarea: HTMLTextAreaElement,\n index: number\n) {\n if (!hiddenElement) {\n hiddenElement = document.createElement(\"div\");\n hiddenElement.setAttribute(\"tab-index\", \"-1\");\n hiddenElement.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(hiddenElement);\n }\n\n hiddenElement.setAttribute(\"style\", getMirroredStyle(textarea));\n hiddenElement.textContent = textarea.value.slice(0, index);\n\n const span = document.createElement(\"span\");\n span.textContent = \"\\u200b\"; // 占位符\n hiddenElement.appendChild(span);\n\n const rect = span.getBoundingClientRect();\n span.remove();\n return {\n top: rect.top,\n left: rect.left,\n };\n}\n","// istanbul ignore file\nimport type React from \"react\";\nimport { getMirroredStyle } from \"./getMirroredStyle.js\";\n\nlet hiddenTextarea: HTMLTextAreaElement | undefined;\n\nexport interface AutoSizeOptions {\n minRows?: number | null;\n maxRows?: number | null;\n borderSize?: number;\n paddingSize?: number;\n}\n\n/**\n * 计算 textarea 高度\n * https://github.com/react-component/textarea/blob/1c0026fbe30e5f7dff1fca695b2cf262246381ca/src/calculateNodeHeight.tsx\n */\nexport default function calculateAutoSizeStyle(\n uiTextNode: HTMLTextAreaElement,\n options?: AutoSizeOptions\n): React.CSSProperties {\n const {\n minRows = null,\n maxRows = null,\n borderSize = 2,\n paddingSize = 8,\n } = options ?? {};\n\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement(\"textarea\");\n hiddenTextarea.setAttribute(\"tab-index\", \"-1\");\n hiddenTextarea.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(hiddenTextarea);\n }\n\n // equal style\n hiddenTextarea.setAttribute(\"style\", getMirroredStyle(uiTextNode));\n hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || \"\";\n\n let minHeight: number | undefined;\n let maxHeight: number | undefined;\n let overflowY: React.CSSProperties[\"overflowY\"];\n\n let height = hiddenTextarea.scrollHeight + borderSize;\n\n if (minRows !== null || maxRows !== null) {\n const singleRowHeight =\n process.env.NODE_ENV === \"test\"\n ? 22\n : parseFloat(\n window\n .getComputedStyle(hiddenTextarea)\n .getPropertyValue(\"line-height\")\n );\n if (minRows !== null) {\n minHeight = singleRowHeight * minRows + paddingSize + borderSize;\n height = Math.max(minHeight, height);\n }\n if (maxRows !== null) {\n maxHeight = singleRowHeight * maxRows + paddingSize + borderSize;\n if (height <= maxHeight) {\n overflowY = \"hidden\";\n }\n height = Math.min(maxHeight, height);\n }\n }\n\n const style: React.CSSProperties = {\n height,\n overflowY,\n resize: \"none\",\n };\n\n if (minHeight) {\n style.minHeight = minHeight;\n }\n if (maxHeight) {\n style.maxHeight = maxHeight;\n }\n\n return style;\n}\n","const HIDDEN_STYLE = `\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n left: 0!important;\n pointer-events: none!important;\n`;\n\nconst SIZING_STYLE = [\n \"letter-spacing\",\n \"line-height\",\n \"padding-top\",\n \"padding-bottom\",\n \"font-family\",\n \"font-weight\",\n \"font-size\",\n \"font-variant\",\n \"text-rendering\",\n \"text-transform\",\n \"width\",\n \"text-indent\",\n \"padding-left\",\n \"padding-right\",\n \"border-width\",\n \"box-sizing\",\n \"word-break\",\n \"white-space\",\n];\n\n/**\n * 创建一个镜像元素,用于计算光标位置或文本尺寸。\n */\nexport function getMirroredStyle(element: HTMLElement) {\n const uiTextNodeStyle = window.getComputedStyle(element);\n const sizingStyle = SIZING_STYLE.map(\n (name) => `${name}:${uiTextNodeStyle.getPropertyValue(name)}`\n ).join(\";\");\n return `${sizingStyle};${HIDDEN_STYLE}`;\n}\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import { getMirroredStyle } from \"./utils/getMirroredStyle.js\";\n\nlet hiddenElement: HTMLDivElement | undefined;\n\nexport function getContentRectInTextarea(\n textarea: HTMLTextAreaElement,\n prefix: string,\n measureContent: string\n) {\n if (!hiddenElement) {\n hiddenElement = document.createElement(\"div\");\n hiddenElement.setAttribute(\"tab-index\", \"-1\");\n hiddenElement.setAttribute(\"aria-hidden\", \"true\");\n document.body.appendChild(hiddenElement);\n }\n hiddenElement.setAttribute(\"style\", getMirroredStyle(textarea));\n\n hiddenElement.textContent = prefix;\n\n const span = document.createElement(\"span\");\n span.textContent = measureContent;\n hiddenElement.appendChild(span);\n\n const rect = span.getBoundingClientRect();\n span.remove();\n return rect;\n}\n","import React, {\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n useImperativeHandle,\n createRef,\n useMemo,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { createDecorators, type EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement, wrapBrick } from \"@next-core/react-element\";\nimport {\n getCaretPositionInTextarea,\n getContentRectInTextarea,\n TextareaAutoResize,\n type TextareaAutoResizeRef,\n} from \"@next-shared/form\";\nimport \"@next-core/theme\";\nimport { initializeI18n } from \"@next-core/i18n\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport type {\n ActionsEvents,\n ActionsEventsMapping,\n ActionsProps,\n EoActions,\n SimpleAction,\n SubMenuAction,\n} from \"@next-bricks/basic/actions\";\nimport { K, NS, locales, t } from \"./i18n.js\";\nimport styleText from \"./styles.shadow.css\";\n\ninitializeI18n(NS, locales);\n\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\nconst WrappedActions = wrapBrick<\n EoActions,\n ActionsProps & { activeKeys?: (string | number)[] },\n ActionsEvents,\n ActionsEventsMapping\n>(\"eo-actions\", {\n onActionClick: \"action.click\",\n onItemDragEnd: \"item.drag.end\",\n onItemDragStart: \"item.drag.start\",\n});\n\nconst { defineElement, property, event, method } = createDecorators();\n\nexport const ChatBoxComponent = forwardRef(LegacyChatBoxComponent);\n\nexport interface ChatBoxProps {\n disabled?: boolean;\n placeholder?: string;\n autoFocus?: boolean;\n aiEmployees?: AIEmployee[];\n commands?: Command[];\n}\n\nexport interface AIEmployee {\n employeeId: string;\n name: string;\n}\n\nexport interface ChatBoxRef {\n setValue: (value: string) => void;\n getValue: () => string;\n focusOnInput: () => void;\n}\n\nexport interface Command {\n label: string;\n value: string;\n options?: Command[];\n}\n\ntype ActionWithAncestors = SimpleAction & {\n key: string | number;\n ancestors?: Command[];\n items?: ActionWithAncestors[];\n};\n\n/**\n * 构件 `ai-portal.chat-box`\n */\nexport\n@defineElement(\"ai-portal.chat-box\", {\n styleTexts: [styleText],\n shadowOptions: {\n delegatesFocus: true,\n },\n})\nclass ChatBox extends ReactNextElement implements ChatBoxProps {\n ref = createRef<ChatBoxRef>();\n\n @property({ type: Boolean })\n accessor disabled: boolean | undefined;\n\n @property()\n accessor placeholder: string | undefined;\n\n @property({ type: Boolean })\n accessor autoFocus: boolean | undefined;\n\n @property({ attribute: false })\n accessor aiEmployees: AIEmployee[] | undefined;\n\n @property({ attribute: false })\n accessor commands: Command[] | undefined;\n\n @event({ type: \"message.submit\" })\n accessor #messageSubmit!: EventEmitter<string>;\n\n #handleMessageSubmit = (value: string) => {\n this.#messageSubmit.emit(value);\n };\n\n @event({ type: \"ai-employee.mention\" })\n accessor #employeeMention!: EventEmitter<AIEmployee | null>;\n\n #handleEmployeeMention = (employee: AIEmployee | null) => {\n this.#employeeMention.emit(employee);\n };\n\n @event({ type: \"command.select\" })\n accessor #commandSelect!: EventEmitter<string | null>;\n\n #handleCommandSelect = (command: string | null) => {\n this.#commandSelect.emit(command);\n };\n\n @method()\n setValue(value: string) {\n this.ref.current?.setValue(value);\n }\n\n @method()\n getValue() {\n return this.ref.current?.getValue();\n }\n\n @method()\n focusOnInput() {\n return this.ref.current?.focusOnInput();\n }\n\n render() {\n return (\n <ChatBoxComponent\n disabled={this.disabled}\n placeholder={this.placeholder}\n autoFocus={this.autoFocus}\n aiEmployees={this.aiEmployees}\n commands={this.commands}\n onSubmit={this.#handleMessageSubmit}\n onEmployeeMention={this.#handleEmployeeMention}\n onCommandSelect={this.#handleCommandSelect}\n ref={this.ref}\n />\n );\n }\n}\n\ninterface ChatBoxComponentProps extends ChatBoxProps {\n onSubmit: (value: string) => void;\n onEmployeeMention: (employee: AIEmployee | null) => void;\n onCommandSelect: (command: string | null) => void;\n ref?: React.Ref<ChatBoxRef>;\n}\n\ninterface MentionPopover {\n style: React.CSSProperties;\n range: {\n start: number;\n end: number;\n };\n actions: ActionWithAncestors[];\n}\n\nfunction LegacyChatBoxComponent(\n {\n disabled,\n placeholder,\n autoFocus,\n aiEmployees,\n commands,\n onSubmit,\n onEmployeeMention,\n onCommandSelect,\n }: ChatBoxComponentProps,\n ref: React.Ref<ChatBoxRef>\n) {\n const containerRef = useRef<HTMLDivElement>(null);\n const textareaRef = useRef<TextareaAutoResizeRef>(null);\n const [value, setValue] = useState(\"\");\n const valueRef = useRef(\"\");\n const [mentionPopover, setMentionPopover] = useState<MentionPopover | null>(\n null\n );\n const [mentionedText, setMentionedText] = useState(\"\");\n const [activeActionIndex, setActiveActionIndex] = useState(0);\n const [activeActionIndexes, setActiveActionIndexes] = useState<number[]>([0]);\n const [commandPopover, setCommandPopover] = useState<MentionPopover | null>(\n null\n );\n const [commandText, setCommandText] = useState(\"\");\n const selectionRef = useRef<{ start: number; end: number } | null>(null);\n\n useEffect(() => {\n const store = window.__elevo_try_it_out;\n if (store) {\n delete window.__elevo_try_it_out;\n }\n if (typeof store?.content === \"string\") {\n valueRef.current = store.content;\n setValue(store.content);\n }\n }, []);\n\n useImperativeHandle(ref, () => ({\n setValue: (value: string) => {\n valueRef.current = value;\n setValue(value);\n },\n getValue: () => {\n return valueRef.current;\n },\n focusOnInput: () => {\n textareaRef.current?.focus();\n },\n }));\n\n const submitWithoutCommand = useCallback(\n (value: string) => {\n onSubmit(value.slice(commandText?.length ?? 0));\n },\n [commandText?.length, onSubmit]\n );\n\n const handleSubmit = useCallback(\n (e: React.FormEvent<HTMLTextAreaElement>) => {\n if (e.currentTarget.value) {\n submitWithoutCommand(e.currentTarget.value);\n }\n },\n [submitWithoutCommand]\n );\n\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n const { value, selectionStart, selectionEnd } = e.target;\n valueRef.current = value;\n setValue(value);\n\n if (\n !mentionedText &&\n selectionStart !== null &&\n selectionStart === selectionEnd &&\n aiEmployees?.length\n ) {\n const previousContent = value.slice(0, selectionStart);\n const mentionIndex = previousContent.lastIndexOf(\"@\");\n if (mentionIndex >= 0) {\n const mentionText = previousContent\n .slice(mentionIndex + 1)\n .toLowerCase();\n const matchedEmployees = aiEmployees\n .filter(\n (employee) =>\n employee.employeeId.toLowerCase().includes(mentionText) ||\n employee.name.toLowerCase().includes(mentionText)\n )\n .slice(0, 10);\n if (matchedEmployees.length > 0) {\n const position = getCaretPositionInTextarea(\n e.currentTarget,\n selectionStart\n );\n const textareaRect = e.currentTarget.getBoundingClientRect();\n setMentionPopover({\n style: {\n left: position.left + 10 + textareaRect.left,\n top: position.top + 22 + textareaRect.top,\n position: \"absolute\",\n zIndex: 1,\n },\n range: { start: mentionIndex, end: selectionStart },\n actions: matchedEmployees.map((employee) => ({\n key: employee.employeeId,\n text: employee.name,\n data: employee,\n })),\n });\n setActiveActionIndex(0);\n return;\n }\n }\n }\n setMentionPopover(null);\n\n if (\n selectionStart !== null &&\n selectionStart === selectionEnd &&\n commands?.length\n ) {\n const previousContent = value.slice(0, selectionStart);\n if (previousContent.startsWith(\"/\")) {\n const commandText = previousContent.slice(1).toLowerCase();\n const matchedCommands = commands\n .filter((command) =>\n command.label.toLowerCase().includes(commandText)\n )\n .slice(0, 10);\n if (matchedCommands.length > 0) {\n const position = getCaretPositionInTextarea(\n e.currentTarget,\n selectionStart\n );\n const textareaRect = e.currentTarget.getBoundingClientRect();\n setCommandPopover({\n style: {\n left: position.left + 10 + textareaRect.left,\n top: position.top + 22 + textareaRect.top,\n position: \"absolute\",\n zIndex: 1,\n },\n range: { start: 0, end: selectionStart },\n actions: matchedCommands.map((command) => ({\n key: command.value,\n text: command.label,\n data: command,\n ancestors: [],\n items: getCommandSubMenu(command, []),\n })),\n });\n setActiveActionIndexes([0]);\n return;\n }\n }\n }\n setCommandPopover(null);\n },\n [aiEmployees, commands, mentionedText]\n );\n\n useEffect(() => {\n if (mentionedText && !value.includes(mentionedText)) {\n setMentionedText(\"\");\n onEmployeeMention(null);\n }\n }, [mentionedText, onEmployeeMention, value]);\n\n useEffect(() => {\n if (commandText && !value.includes(commandText)) {\n setCommandText(\"\");\n onCommandSelect(null);\n }\n }, [commandText, onCommandSelect, value]);\n\n const handleSubmitClick = useCallback(() => {\n submitWithoutCommand(valueRef.current);\n }, [submitWithoutCommand]);\n\n useEffect(\n () => {\n if (autoFocus) {\n Promise.resolve().then(() => {\n textareaRef.current?.focus();\n });\n }\n },\n // One-time focus\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n\n const mentionPrefix = useMemo(() => {\n const element = textareaRef.current?.element;\n if (!mentionedText || !element) {\n return \"\";\n }\n const index = value.indexOf(mentionedText);\n if (index < 0) {\n return \"\";\n }\n return value.slice(0, index);\n }, [mentionedText, value]);\n\n const mentionOverlay = useMemo(() => {\n const element = textareaRef.current?.element;\n if (!mentionedText || !element) {\n return null;\n }\n const rect = getContentRectInTextarea(\n element,\n mentionPrefix,\n // Ignore the last space\n mentionedText.slice(0, -1)\n );\n return {\n left: rect.left - 1,\n top: rect.top - 1,\n width: rect.width + 4,\n height: rect.height + 4,\n };\n }, [mentionedText, mentionPrefix]);\n\n const commandOverlay = useMemo(() => {\n const element = textareaRef.current?.element;\n if (!commandText || !element) {\n return null;\n }\n const rect = getContentRectInTextarea(\n element,\n \"\",\n // Ignore the last space\n commandText.slice(0, -1)\n );\n return {\n left: rect.left - 1,\n top: rect.top - 1,\n width: rect.width + 4,\n height: rect.height + 4,\n };\n }, [commandText]);\n\n const handleMention = useCallback(\n (action: SimpleAction) => {\n const mention = `@${action.text} `;\n const prefix = `${valueRef.current.slice(0, mentionPopover!.range.start)}${mention}`;\n const newValue = `${prefix}${valueRef.current.slice(mentionPopover!.range.end)}`;\n valueRef.current = newValue;\n selectionRef.current = { start: prefix.length, end: prefix.length };\n setValue(newValue);\n setMentionedText(mention);\n setMentionPopover(null);\n onEmployeeMention((action as { data?: AIEmployee }).data!);\n textareaRef.current?.focus();\n },\n [mentionPopover, onEmployeeMention]\n );\n\n const handleSelectCommand = useCallback(\n (action: ActionWithAncestors) => {\n const command = `/${[...action.ancestors!.map((an) => an.label), action.text].join(\": \")} `;\n const prefix = `${valueRef.current.slice(0, commandPopover!.range.start)}${command}`;\n const newValue = `${prefix}${valueRef.current.slice(commandPopover!.range.end)}`;\n valueRef.current = newValue;\n selectionRef.current = { start: prefix.length, end: prefix.length };\n setValue(newValue);\n setCommandText(command);\n setCommandPopover(null);\n onCommandSelect(action.text);\n textareaRef.current?.focus();\n },\n [commandPopover, onCommandSelect]\n );\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n switch (e.key) {\n case \"Escape\":\n if (!mentionPopover && !commandPopover) {\n return;\n }\n e.preventDefault();\n e.stopPropagation();\n e.nativeEvent.stopImmediatePropagation();\n setMentionPopover(null);\n setCommandPopover(null);\n return false;\n case \"ArrowUp\":\n case \"ArrowDown\": {\n if (!mentionPopover && !commandPopover) {\n return;\n }\n e.preventDefault();\n e.stopPropagation();\n e.nativeEvent.stopImmediatePropagation();\n if (mentionPopover) {\n setActiveActionIndex((prev) => {\n const nextIndex = prev + (e.key === \"ArrowUp\" ? -1 : 1);\n const total = mentionPopover.actions.length;\n const next = (total + nextIndex) % total;\n return next;\n });\n } else {\n setActiveActionIndexes((prev) => {\n let cursor = 0;\n let { actions } = commandPopover!;\n const list: number[] = [];\n while (cursor < prev.length - 1) {\n const action = actions[prev[cursor]];\n if (isSubMenuAction(action)) {\n actions = action.items;\n } else {\n break;\n }\n list.push(prev[cursor]);\n cursor += 1;\n }\n const nextIndex = prev[cursor] + (e.key === \"ArrowUp\" ? -1 : 1);\n const total = actions.length;\n const next = (total + nextIndex) % total;\n list.push(next);\n return list;\n });\n }\n return false;\n }\n case \"Enter\":\n case \"ArrowLeft\":\n case \"ArrowRight\":\n if (mentionPopover) {\n if (e.key === \"Enter\") {\n e.preventDefault();\n e.stopPropagation();\n e.nativeEvent.stopImmediatePropagation();\n handleMention(mentionPopover.actions[activeActionIndex]);\n return false;\n }\n } else if (commandPopover) {\n e.preventDefault();\n e.stopPropagation();\n e.nativeEvent.stopImmediatePropagation();\n\n if (e.key === \"ArrowLeft\") {\n if (activeActionIndexes.length > 1) {\n setActiveActionIndexes((prev) => prev.slice(0, -1));\n }\n return false;\n }\n\n let cursor = 0;\n let { actions } = commandPopover!;\n let action: ActionWithAncestors | undefined;\n while (cursor < activeActionIndexes.length) {\n action = actions[activeActionIndexes[cursor]];\n if (isSubMenuAction(action)) {\n actions = action.items;\n } else {\n break;\n }\n cursor += 1;\n }\n if (action) {\n if (isSubMenuAction(action)) {\n setActiveActionIndexes((prev) => [...prev, 0]);\n } else if (e.key === \"Enter\") {\n handleSelectCommand(action);\n }\n }\n return false;\n }\n break;\n case \"Delete\":\n case \"Backspace\": {\n const popovers = [\n {\n textLength: mentionedText?.length,\n prefixLength: mentionPrefix.length,\n },\n {\n textLength: commandText?.length,\n prefixLength: 0,\n },\n ];\n\n for (const { textLength, prefixLength } of popovers) {\n if (textLength) {\n let { selectionStart, selectionEnd } = e.currentTarget;\n if (selectionStart === selectionEnd) {\n if (e.key === \"Backspace\") {\n selectionStart -= 1;\n } else {\n selectionEnd += 1;\n }\n }\n const currentStart = prefixLength;\n const currentEnd = currentStart + textLength;\n if (selectionStart < currentEnd && selectionEnd > currentStart) {\n const start = Math.min(selectionStart, currentStart);\n const end = Math.max(selectionEnd, currentEnd);\n const newValue = `${valueRef.current.slice(0, start)}${valueRef.current.slice(end)}`;\n valueRef.current = newValue;\n selectionRef.current = { start, end: start };\n setValue(newValue);\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n }\n }\n break;\n }\n }\n },\n [\n activeActionIndex,\n activeActionIndexes,\n commandPopover,\n commandText?.length,\n handleMention,\n handleSelectCommand,\n mentionPopover,\n mentionPrefix.length,\n mentionedText?.length,\n ]\n );\n\n const commandCheckedKeys = useMemo(() => {\n if (!commandPopover) {\n return [];\n }\n let actions = commandPopover.actions;\n const checkedKeys: (string | number)[] = [];\n for (let i = 0; i < activeActionIndexes.length; i += 1) {\n const index = activeActionIndexes[i];\n const action = actions[index];\n if (action) {\n if (isSubMenuAction(action)) {\n checkedKeys.push(action.key!);\n actions = action.items;\n } else {\n checkedKeys.push(action.key!);\n break;\n }\n } else {\n break;\n }\n }\n return checkedKeys;\n }, [activeActionIndexes, commandPopover]);\n\n return (\n <div className=\"root\">\n <div className=\"container\" ref={containerRef}>\n <TextareaAutoResize\n containerRef={containerRef}\n ref={textareaRef}\n value={value}\n minRows={58 / 22}\n paddingSize={60}\n autoResize\n disabled={disabled}\n placeholder={placeholder ?? t(K.ASK_ANY_THING)}\n submitWhen=\"enter-without-shift\"\n desiredSelectionRef={selectionRef}\n onSubmit={handleSubmit}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n />\n <div className=\"actions-bar\">\n <div>\n <slot name=\"actions\"></slot>\n </div>\n <button\n className=\"btn-send\"\n disabled={!value}\n onClick={handleSubmitClick}\n >\n <WrappedIcon lib=\"fa\" prefix=\"fas\" icon=\"arrow-up\" />\n </button>\n </div>\n {mentionOverlay && (\n <div className=\"mention-overlay\" style={mentionOverlay} />\n )}\n {commandOverlay && (\n <div className=\"mention-overlay\" style={commandOverlay} />\n )}\n {mentionPopover &&\n createPortal(\n <WrappedActions\n actions={mentionPopover.actions}\n style={mentionPopover.style}\n activeKeys={[mentionPopover.actions[activeActionIndex].key!]}\n onActionClick={(e) => handleMention(e.detail)}\n />,\n document.body\n )}\n {commandPopover &&\n createPortal(\n <WrappedActions\n actions={commandPopover.actions}\n style={commandPopover.style}\n activeKeys={commandCheckedKeys}\n onActionClick={(e) =>\n handleSelectCommand(e.detail as ActionWithAncestors)\n }\n />,\n document.body\n )}\n </div>\n </div>\n );\n}\n\nfunction getCommandSubMenu(\n command: Command,\n ancestors: Command[]\n): ActionWithAncestors[] | undefined {\n return command.options?.map((subCommand) => {\n const nextAncestors = [...ancestors, command];\n return {\n key: subCommand.value,\n text: subCommand.label,\n data: subCommand,\n ancestors: nextAncestors,\n items: getCommandSubMenu(subCommand, nextAncestors),\n };\n });\n}\n\nfunction isSubMenuAction(\n action: SimpleAction | SubMenuAction\n): action is SubMenuAction {\n return !!(action as SubMenuAction).items?.length;\n}\n"],"names":["modKey","test","navigator","platform","TextareaAutoResize","React","LegacyTextareaAutoResize","_ref","ref","autoResize","_autoResize","minRows","maxRows","borderSize","paddingSize","containerRef","value","propValue","style","submitWhen","desiredSelectionRef","onChange","onSubmit","onKeyDown","onCompositionStart","onCompositionEnd","props","setValue","useState","textareaRef","useRef","autoStyle","setAutoStyle","useImperativeHandle","focus","textarea","current","_textarea$value","valueLength","length","setSelectionRange","element","doAutoResize","useCallback","calculateAutoSizeStyle","flushSync","useEffect","compositionRef","handleCompositionStart","e","handleCompositionEnd","handleKeyDown","key","shiftKey","preventDefault","stopPropagation","useLayoutEffect","desiredSelection","start","end","container","previousInlineSize","observer","ResizeObserver","entries","entry","target","currentInlineSize","contentBoxSize","inlineSize","contentRect","width","undefined","isInitial","requestAnimationFrame","observe","disconnect","_extends","K","en","ASK_ANY_THING","COMMON_TASKS","zh","NS","locales","t","i18n","getFixedT","module","exports","url","options","String","__esModule","default","slice","hash","needQuotes","concat","replace","_defineProperty","obj","Object","defineProperty","enumerable","configurable","writable","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","push","id","toString","hiddenElement","getCaretPositionInTextarea","index","document","createElement","setAttribute","body","appendChild","getMirroredStyle","textContent","span","rect","getBoundingClientRect","remove","top","left","hiddenTextarea","uiTextNode","minHeight","maxHeight","overflowY","placeholder","height","scrollHeight","singleRowHeight","parseFloat","window","getComputedStyle","getPropertyValue","Math","max","min","resize","HIDDEN_STYLE","SIZING_STYLE","uiTextNodeStyle","map","name","join","assign","bind","i","arguments","source","prototype","hasOwnProperty","call","apply","this","getContentRectInTextarea","prefix","measureContent","initializeI18n","WrappedIcon","wrapBrick","WrappedActions","onActionClick","onItemDragEnd","onItemDragStart","defineElement","property","event","method","createDecorators","ChatBoxComponent","forwardRef","LegacyChatBoxComponent","_ChatBox","_A","WeakMap","_B","_C","_D","_E","_F","_ChatBox_brand","WeakSet","_handleMessageSubmit","_G","_handleEmployeeMention","_H","_handleCommandSelect","ChatBox","ReactNextElement","constructor","_classPrivateMethodInitSpec","_initProto","createRef","_classPrivateFieldInitSpec","_init_disabled","_init_extra_disabled","_init_placeholder","_init_extra_placeholder","_init_autoFocus","_init_extra_autoFocus","_init_aiEmployees","_init_extra_aiEmployees","_init_commands","_init_extra_commands","_init_messageSubmit","_init_extra_messageSubmit","_classPrivateGetter","_get_messageSubmit","emit","_init_employeeMention","_init_extra_employeeMention","employee","_get_employeeMention","_init_commandSelect","_init_extra_commandSelect","command","_get_commandSelect","disabled","_classPrivateFieldGet","v","_classPrivateFieldSet","autoFocus","aiEmployees","commands","_this$ref$current","getValue","_this$ref$current2","focusOnInput","_this$ref$current3","render","onEmployeeMention","onCommandSelect","valueRef","mentionPopover","setMentionPopover","mentionedText","setMentionedText","activeActionIndex","setActiveActionIndex","activeActionIndexes","setActiveActionIndexes","commandPopover","setCommandPopover","commandText","setCommandText","selectionRef","store","__elevo_try_it_out","content","_textareaRef$current","submitWithoutCommand","_commandText$length","handleSubmit","currentTarget","handleChange","selectionStart","selectionEnd","previousContent","mentionIndex","lastIndexOf","mentionText","toLowerCase","matchedEmployees","filter","employeeId","includes","position","textareaRect","zIndex","range","actions","text","data","startsWith","matchedCommands","label","ancestors","items","getCommandSubMenu","handleSubmitClick","Promise","resolve","then","_textareaRef$current2","mentionPrefix","useMemo","_textareaRef$current3","indexOf","mentionOverlay","_textareaRef$current4","commandOverlay","_textareaRef$current5","handleMention","action","_textareaRef$current6","mention","newValue","handleSelectCommand","_textareaRef$current7","an","nativeEvent","stopImmediatePropagation","prev","nextIndex","total","cursor","list","isSubMenuAction","next","popovers","textLength","prefixLength","currentStart","currentEnd","commandCheckedKeys","checkedKeys","className","onClick","lib","icon","createPortal","activeKeys","detail","_command$options","subCommand","nextAncestors","_items","_ChatBox2","_set_messageSubmit","_set_employeeMention","_set_commandSelect","c","_initClass","_applyDecs","styleTexts","styleText","shadowOptions","delegatesFocus","type","Boolean","attribute","o","_","has","_checkInRHS"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see flow-tabs.ba72493e.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[5764],{29511:(t,e,a)=>{"use strict";a.d(e,{A:()=>s});var n=a(36758),i=a.n(n),r=a(40935),o=a.n(r)()(i());o.push([t.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container{position:relative}.bg{position:absolute;top:0;left:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header{display:flex;align-items:center;justify-content:space-between}.tabs{list-style:none;padding:0;margin:0;display:flex}.tabs a{display:block;padding:9px 27px;color:rgba(0,0,0,0.55);line-height:20px;cursor:pointer}.tabs .active a{font-weight:500;color:#262626}.body{padding:23px 27px}.toolbar{display:flex;align-items:center;gap:8px}",""]);const s=o.toString()},42252:(t,e,a)=>{"use strict";a.r(e),a.d(e,{FlowTabs:()=>z});var n,i=a(74635),r=a(70918),o=a(26902),s=a(5536),l=a(86121),c=a(70829),b=a(62740),u=a(18769),h=a.n(u),d=a(90870),p=a(30981),f=(a(34419),a(53373)),g=a.n(f),m=a(99126),v=a(29511),x=a(96487);let y,A,T,k,w,S,E,M,C;const{defineElement:P,property:R,event:N}=(0,d.createDecorators)();let z;var I=new WeakMap,_=new WeakMap,B=new WeakMap,W=new WeakSet,F=new WeakMap;class j extends p.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,W),(0,r.A)(this,I,A(this)),(0,r.A)(this,_,(T(this),k(this))),(0,r.A)(this,B,(w(this),S(this))),(0,r.A)(this,F,(C(this),t=>{this.activeTab=t.id,(0,s.A)(W,this,E).emit(t)}))}get tabs(){return(0,c.A)(I,this)}set tabs(t){(0,l.A)(I,this,t)}get activeTab(){return(0,c.A)(_,this)}set activeTab(t){(0,l.A)(_,this,t)}render(){return h().createElement(q,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(F,this)})}}function q(t){let{tabs:e,activeTab:a,onTabClick:n}=t;const i=(0,u.useRef)(null),r=(0,u.useRef)(null),o=(0,u.useRef)(null);return(0,u.useEffect)((()=>{const t=i.current,a=r.current,n=o.current;if(!(t&&a&&n&&null!=e&&e.length))return;const s=a.getContext("2d");if(!s)return;let l,c;const b=new m.A((e=>{for(const a of e)if(a.target===t){const t=O(a,"width"),e=O(a,"height");l=[t,e]}const i=n.querySelector(".tab").getBoundingClientRect().width,r=Array.from(n.querySelectorAll(".tab")),o=r.find((t=>t.classList.contains("active"))),b=0===(o?r.indexOf(o):0);let u=0;if(!b){const t=n.getBoundingClientRect().left,e=o.getBoundingClientRect().left;u=e-t}c&&cancelAnimationFrame(c),c=requestAnimationFrame((()=>{l&&(0,x.A)(a,s,l[0],l[1],b,u,i)}))}));return b.observe(t),b.observe(n),()=>{b.disconnect(),c&&cancelAnimationFrame(c)}}),[e,a]),h().createElement("div",{className:"container",ref:i},h().createElement("canvas",{className:"bg",ref:r}),h().createElement("div",{className:"header"},h().createElement("ul",{className:"tabs",ref:o},null==e?void 0:e.map((t=>h().createElement("li",{key:t.id,part:"tab",className:g()("tab",{active:t.id===a})},h().createElement("a",{onClick:()=>n(t)},t.label))))),h().createElement("div",{className:"toolbar"},h().createElement("slot",{name:"toolbar"}))),h().createElement("div",{className:"body"},h().createElement("slot",null)))}function O(t,e){const a="height"===e?"blockSize":"inlineSize";return t.contentBoxSize?t.contentBoxSize[0]?t.contentBoxSize[0][a]:t.contentBoxSize[a]:t.contentRect[e]}n=j,({e:[A,T,k,w,S,E,M,C],c:[z,y]}=(0,b.A)(n,[P("ai-portal.flow-tabs",{styleTexts:[v.A]})],[[R({attribute:!1}),1,"tabs"],[R({attribute:!1}),1,"activeTab"],[N({type:"tab.click"}),1,"tabClick",t=>(0,c.A)(B,t),(t,e)=>(0,l.A)(B,t,e)]],0,(t=>F.has((0,o.A)(t))),p.ReactNextElement)),y()},53373:(t,e)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var a=arguments[e];a&&(t=o(t,r(a)))}return t}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var a in t)n.call(t,a)&&t[a]&&(e=o(e,a));return e}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(a=function(){return i}.apply(e,[]))||(t.exports=a)}()},96487:(t,e,a)=>{"use strict";a.d(e,{A:()=>u});const n=window.devicePixelRatio||1,i=40,r=12,o=36*Math.PI/180,s=r*(1-Math.sin(o)),l=r*Math.cos(o),c=(i-2*s)*Math.tan(o),b=l+c/2;function u(t,e,a,u,h,d,p){t.width=a*n,t.height=u*n,t.style.width=`${a}px`,t.style.height=`${u}px`,e.scale(n,n),e.clearRect(0,0,a,u),e.fillStyle="rgba(255,255,255,0.5)";const f=e.createLinearGradient(0,0,0,u);f.addColorStop(0,"rgba(255,255,255,0.9)"),f.addColorStop(1,"rgba(255,255,255,0.4)"),e.lineWidth=1,e.strokeStyle=f;const g=a-1,m=u-1;if(e.translate(.5,.5),e.beginPath(),h)e.moveTo(0,r),e.arcTo(0,0,r,0,r);else{e.moveTo(0,r+i),e.arcTo(0,i,r,i,r);const t=d-b;e.lineTo(t,i),e.arc(t,i-r,r,Math.PI/2,o,!0),e.lineTo(t+l+c,s),e.arc(t+2*b,r,r,Math.PI+o,1.5*Math.PI,!1)}const v=d+p-b;e.lineTo(v,0),e.arc(v,r,r,1.5*Math.PI,2*Math.PI-o,!1),e.lineTo(v+l+c,i-s),e.arc(v+2*b,i-r,r,Math.PI-o,Math.PI/2,!0),e.lineTo(g-r,i),e.arcTo(g,i,g,i+r,r),e.lineTo(g,m-r),e.arcTo(g,m,g-r,m,r),e.lineTo(r,m),e.arcTo(0,m,0,m-r,r),e.closePath(),e.fill(),e.stroke()}}}]);
|
|
3
|
-
//# sourceMappingURL=flow-tabs.ba72493e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/flow-tabs.ba72493e.js","mappings":";iMAGIA,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,siBAAuiB,KAEhlB,QAAeH,EAAwBI,0RCEvC,MAAM,cAAEC,EAAa,SAAEC,EAAQ,MAAEC,IAAUC,EAAAA,EAAAA,oBAAmB,IAAAC,EAAA,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAC,QAAAC,EAAA,IAAAL,QAkB9D,MAAAM,UAGuBC,EAAAA,iBAA0CC,WAAAA,GAAA,SAAAC,YAAAC,EAAAA,EAAAA,GAAA,KAAAP,IAAAQ,EAAAA,EAAAA,GAAA,KAAAZ,EAAAa,EAAA,QAAAD,EAAAA,EAAAA,GAAA,KAAAV,GAAAY,EAAA,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CACLlF,EAAI2G,OAAO,EAAGzB,EAAgBD,GAC9BjF,EAAI4G,MAAM,EAAG3B,EAAYC,EAAeD,EAAYC,GAEpD,MAAM2B,EAAWpF,EAAYmE,EAC7B5F,EAAI8G,OAAOD,EAAU5B,GACrBjF,EAAI+G,IACFF,EACA5B,EAAaC,EACbA,EACAE,KAAKC,GAAK,EACVF,GACA,GAGFnF,EAAI8G,OAAOD,EAAWrB,EAASE,EAAYJ,GAC3CtF,EAAI+G,IACFF,EAAqB,EAAVjB,EACXV,EACAA,EACAE,KAAKC,GAAKF,EACA,IAAVC,KAAKC,IACL,EAEJ,CAEA,MAAM2B,EAAavF,EAAYoE,EAAWD,EAC1C5F,EAAI8G,OAAOE,EAAY,GACvBhH,EAAI+G,IACFC,EACA9B,EACAA,EACU,IAAVE,KAAKC,GACK,EAAVD,KAAKC,GAASF,GACd,GAGFnF,EAAI8G,OAAOE,EAAaxB,EAASE,EAAYT,EAAaK,GAC1DtF,EAAI+G,IACFC,EAAuB,EAAVpB,EACbX,EAAaC,EACbA,EACAE,KAAKC,GAAKF,EACVC,KAAKC,GAAK,GACV,GAGFrF,EAAI8G,OAAOP,EAAcrB,EAAeD,GACxCjF,EAAI4G,MACFL,EACAtB,EACAsB,EACAtB,EAAaC,EACbA,GAGFlF,EAAI8G,OAAOP,EAAaC,EAAetB,GACvClF,EAAI4G,MACFL,EACAC,EACAD,EAAcrB,EACdsB,EACAtB,GAGFlF,EAAI8G,OAAO5B,EAAesB,GAC1BxG,EAAI4G,MAAM,EAAGJ,EAAc,EAAGA,EAAetB,EAAeA,GAE5DlF,EAAIiH,YAEJjH,EAAIkH,OACJlH,EAAImH,QACN","sources":["webpack:///./src/flow-tabs/styles.shadow.css","webpack:///./src/flow-tabs/index.tsx","webpack:///../../node_modules/classnames/index.js","webpack:///./src/flow-tabs/drawBg.ts"],"sourcesContent":["// 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:block}:host([hidden]){display:none}*{box-sizing:border-box}.container{position:relative}.bg{position:absolute;top:0;left:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header{display:flex;align-items:center;justify-content:space-between}.tabs{list-style:none;padding:0;margin:0;display:flex}.tabs a{display:block;padding:9px 27px;color:rgba(0,0,0,0.55);line-height:20px;cursor:pointer}.tabs .active a{font-weight:500;color:#262626}.body{padding:23px 27px}.toolbar{display:flex;align-items:center;gap:8px}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import React, { useEffect, useRef } from \"react\";\nimport { createDecorators, type EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport classNames from \"classnames\";\nimport ResizeObserver from \"resize-observer-polyfill\";\nimport styleText from \"./styles.shadow.css\";\nimport drawBg from \"./drawBg\";\n\nconst { defineElement, property, event } = createDecorators();\n\nexport interface FlowTabsProps {\n tabs?: Tab[];\n activeTab?: string;\n}\n\nexport interface Tab {\n id: string;\n label: string;\n}\n\ntype SizeTuple = [width: number, height: number];\n\n/**\n * 构件 `ai-portal.flow-tabs`\n */\nexport\n@defineElement(\"ai-portal.flow-tabs\", {\n styleTexts: [styleText],\n})\nclass FlowTabs extends ReactNextElement implements FlowTabsProps {\n @property({ attribute: false })\n accessor tabs: Tab[] | undefined;\n\n @property({ attribute: false })\n accessor activeTab: string | undefined;\n\n @event({ type: \"tab.click\" })\n accessor #tabClick!: EventEmitter<Tab>;\n\n #handleTabClick = (tab: Tab) => {\n this.activeTab = tab.id;\n this.#tabClick.emit(tab);\n };\n\n render() {\n return (\n <FlowTabsComponent\n tabs={this.tabs}\n activeTab={this.activeTab}\n onTabClick={this.#handleTabClick}\n />\n );\n }\n}\n\ninterface FlowTabsComponentProps extends FlowTabsProps {\n onTabClick: (tab: Tab) => void;\n}\n\nfunction FlowTabsComponent({\n tabs,\n activeTab,\n onTabClick,\n}: FlowTabsComponentProps) {\n const rootRef = useRef<HTMLDivElement>(null);\n const bgRef = useRef<HTMLCanvasElement>(null);\n const tabsRef = useRef<HTMLUListElement>(null);\n\n useEffect(() => {\n const root = rootRef.current;\n const canvas = bgRef.current;\n const nav = tabsRef.current;\n if (!root || !canvas || !nav || !tabs?.length) return;\n\n const ctx = canvas.getContext(\"2d\");\n if (!ctx) return;\n\n let rootSize: SizeTuple | undefined;\n\n let requestId: number | undefined;\n\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n if (entry.target === root) {\n const width = getContentBoxSize(entry, \"width\");\n const height = getContentBoxSize(entry, \"height\");\n rootSize = [width, height];\n }\n }\n\n const firstTabWidth = nav\n .querySelector(\".tab\")!\n .getBoundingClientRect().width;\n const tabElements = Array.from(nav.querySelectorAll(\".tab\"));\n const activeTabElement = tabElements.find((tab) =>\n tab.classList.contains(\"active\")\n );\n const activeTabIndex = activeTabElement\n ? tabElements.indexOf(activeTabElement)\n : 0;\n const isFirstTab = activeTabIndex === 0;\n let tabOffset = 0;\n if (!isFirstTab) {\n const tabsOffset = nav.getBoundingClientRect().left;\n const activeTabOffset = activeTabElement!.getBoundingClientRect().left;\n tabOffset = activeTabOffset - tabsOffset;\n }\n\n if (requestId) {\n cancelAnimationFrame(requestId);\n }\n requestId = requestAnimationFrame(() => {\n if (rootSize) {\n drawBg(\n canvas,\n ctx,\n rootSize[0],\n rootSize[1],\n isFirstTab,\n tabOffset,\n firstTabWidth\n );\n }\n });\n });\n observer.observe(root);\n observer.observe(nav);\n return () => {\n observer.disconnect();\n if (requestId) {\n cancelAnimationFrame(requestId);\n }\n };\n }, [tabs, activeTab]);\n\n return (\n <div className=\"container\" ref={rootRef}>\n <canvas className=\"bg\" ref={bgRef} />\n <div className=\"header\">\n <ul className=\"tabs\" ref={tabsRef}>\n {tabs?.map((tab) => (\n <li\n key={tab.id}\n part=\"tab\"\n className={classNames(\"tab\", { active: tab.id === activeTab })}\n >\n <a onClick={() => onTabClick(tab)}>{tab.label}</a>\n </li>\n ))}\n </ul>\n <div className=\"toolbar\">\n <slot name=\"toolbar\" />\n </div>\n </div>\n <div className=\"body\">\n <slot />\n </div>\n </div>\n );\n}\n\n// istanbul ignore next: compatibility code\nfunction getContentBoxSize(\n entry: ResizeObserverEntry,\n type: \"width\" | \"height\"\n): number {\n const boxSizeType = type === \"height\" ? \"blockSize\" : \"inlineSize\";\n const size = entry.contentBoxSize\n ? entry.contentBoxSize[0]\n ? entry.contentBoxSize[0][boxSizeType]\n : (entry.contentBoxSize as unknown as ResizeObserverSize)[boxSizeType]\n : entry.contentRect[type];\n return size;\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","const dpr = window.devicePixelRatio || 1;\n\nconst TAB_HEIGHT = 40;\nconst BORDER_RADIUS = 12;\nconst slopeAngle = (Math.PI * 36) / 180; // 36度角\nconst deltaY = BORDER_RADIUS * (1 - Math.sin(slopeAngle));\nconst deltaX = BORDER_RADIUS * Math.cos(slopeAngle);\nconst slopeHeight = TAB_HEIGHT - deltaY * 2;\nconst slopeWidth = slopeHeight * Math.tan(slopeAngle);\nconst offsetX = deltaX + slopeWidth / 2;\n\nexport default function drawBg(\n canvas: HTMLCanvasElement,\n ctx: CanvasRenderingContext2D,\n width: number,\n height: number,\n isFirstTab: boolean,\n tabOffset: number,\n tabWidth: number\n) {\n canvas.width = width * dpr;\n canvas.height = height * dpr;\n canvas.style.width = `${width}px`;\n canvas.style.height = `${height}px`;\n\n ctx.scale(dpr, dpr);\n\n ctx.clearRect(0, 0, width, height);\n\n ctx.fillStyle = \"rgba(255,255,255,0.5)\";\n\n // 创建渐变边框\n const borderGradient = ctx.createLinearGradient(0, 0, 0, height);\n borderGradient.addColorStop(0, \"rgba(255,255,255,0.9)\");\n borderGradient.addColorStop(1, \"rgba(255,255,255,0.4)\");\n\n ctx.lineWidth = 1;\n ctx.strokeStyle = borderGradient;\n\n const actualWidth = width - 1;\n const actualHeight = height - 1;\n\n ctx.translate(0.5, 0.5);\n ctx.beginPath();\n\n if (isFirstTab) {\n ctx.moveTo(0, BORDER_RADIUS);\n ctx.arcTo(0, 0, BORDER_RADIUS, 0, BORDER_RADIUS);\n } else {\n ctx.moveTo(0, BORDER_RADIUS + TAB_HEIGHT);\n ctx.arcTo(0, TAB_HEIGHT, BORDER_RADIUS, TAB_HEIGHT, BORDER_RADIUS);\n\n const upStartX = tabOffset - offsetX;\n ctx.lineTo(upStartX, TAB_HEIGHT);\n ctx.arc(\n upStartX,\n TAB_HEIGHT - BORDER_RADIUS,\n BORDER_RADIUS,\n Math.PI / 2,\n slopeAngle,\n true\n );\n\n ctx.lineTo(upStartX + deltaX + slopeWidth, deltaY);\n ctx.arc(\n upStartX + offsetX * 2,\n BORDER_RADIUS,\n BORDER_RADIUS,\n Math.PI + slopeAngle,\n Math.PI * 1.5,\n false\n );\n }\n\n const downStartX = tabOffset + tabWidth - offsetX;\n ctx.lineTo(downStartX, 0);\n ctx.arc(\n downStartX,\n BORDER_RADIUS,\n BORDER_RADIUS,\n Math.PI * 1.5,\n Math.PI * 2 - slopeAngle,\n false\n );\n\n ctx.lineTo(downStartX + deltaX + slopeWidth, TAB_HEIGHT - deltaY);\n ctx.arc(\n downStartX + offsetX * 2,\n TAB_HEIGHT - BORDER_RADIUS,\n BORDER_RADIUS,\n Math.PI - slopeAngle,\n Math.PI / 2,\n true\n );\n\n ctx.lineTo(actualWidth - BORDER_RADIUS, TAB_HEIGHT);\n ctx.arcTo(\n actualWidth,\n TAB_HEIGHT,\n actualWidth,\n TAB_HEIGHT + BORDER_RADIUS,\n BORDER_RADIUS\n );\n\n ctx.lineTo(actualWidth, actualHeight - BORDER_RADIUS);\n ctx.arcTo(\n actualWidth,\n actualHeight,\n actualWidth - BORDER_RADIUS,\n actualHeight,\n BORDER_RADIUS\n );\n\n ctx.lineTo(BORDER_RADIUS, actualHeight);\n ctx.arcTo(0, actualHeight, 0, actualHeight - BORDER_RADIUS, BORDER_RADIUS);\n\n ctx.closePath();\n\n ctx.fill();\n ctx.stroke();\n}\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","toString","defineElement","property","event","createDecorators","_FlowTabs","_A","WeakMap","_B","_C","_FlowTabs_brand","WeakSet","_handleTabClick","FlowTabs","ReactNextElement","constructor","arguments","_classPrivateMethodInitSpec","_classPrivateFieldInitSpec","_init_tabs","_init_extra_tabs","_init_activeTab","_init_extra_activeTab","_init_tabClick","_init_extra_tabClick","tab","this","activeTab","_classPrivateGetter","_get_tabClick","emit","tabs","_classPrivateFieldGet","v","_classPrivateFieldSet","render","React","FlowTabsComponent","onTabClick","_ref","rootRef","useRef","bgRef","tabsRef","useEffect","root","current","canvas","nav","length","ctx","getContext","rootSize","requestId","observer","ResizeObserver","entries","entry","target","width","getContentBoxSize","height","firstTabWidth","querySelector","getBoundingClientRect","tabElements","Array","from","querySelectorAll","activeTabElement","find","classList","contains","isFirstTab","indexOf","tabOffset","tabsOffset","left","activeTabOffset","cancelAnimationFrame","requestAnimationFrame","drawBg","observe","disconnect","className","ref","map","key","part","classNames","active","onClick","label","name","type","boxSizeType","contentBoxSize","contentRect","_FlowTabs2","e","_set_tabClick","c","_initClass","_applyDecs","styleTexts","styleText","attribute","o","_","has","_checkInRHS","hasOwn","hasOwnProperty","classes","i","arg","appendClass","parseValue","isArray","apply","Object","prototype","includes","call","value","newClass","exports","default","dpr","window","devicePixelRatio","TAB_HEIGHT","BORDER_RADIUS","slopeAngle","Math","PI","deltaY","sin","deltaX","cos","slopeWidth","tan","offsetX","tabWidth","style","scale","clearRect","fillStyle","borderGradient","createLinearGradient","addColorStop","lineWidth","strokeStyle","actualWidth","actualHeight","translate","beginPath","moveTo","arcTo","upStartX","lineTo","arc","downStartX","closePath","fill","stroke"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,a,n,o,l,c,i,d,s,f,u,h,p,b,m,v,g,x,y,P,k,w={77736:(e,t,r)=>{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(9435),r.e(9655),r.e(6593),r.e(6201),r.e(1919),r.e(2142),r.e(8717),r.e(2084),r.e(943)]).then(r.bind(r,45137))}},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 w[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=w,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/"+e+"."+{114:"af61e48a",161:"6c50f07c",721:"f43de0ef",726:"392de709",843:"9b7325c3",871:"42c14164",879:"a469d051",943:"7073ef6f",948:"d125d58c",1045:"0906fc23",1120:"fd177648",1122:"95231c39",1136:"456f1c68",1215:"78630d79",1334:"aae33a33",1889:"b7766f77",1931:"2abee15e",1940:"afcdea49",2052:"ef23d12a",2084:"0e9751e7",2142:"0599aecd",2260:"9564eb16",2277:"b026624f",2432:"352ae272",2449:"b46fc22a",2508:"15c05669",2510:"91062655",2593:"783fb42e",3003:"a607b32b",3020:"acf9607e",3144:"4088b5d1",3171:"a0251432",3208:"0796f5be",3331:"bb7b4c1c",3419:"28287d23",3744:"ed6d0719",3816:"fc867cd4",3935:"3b6a2f5d",4041:"6b503155",4190:"7612613e",4228:"ea602510",4281:"ddad94d5",4306:"9e8251b7",4474:"5fd3e9c8",4491:"539d30f8",4609:"e21567a0",4658:"18d5ee4d",4735:"24157512",4765:"e2813cac",4837:"c7f9a784",5032:"2e4fb116",5065:"9616e9d3",5191:"ce5dfec4",5250:"5294dc23",5307:"28ab7643",5384:"564ae2e4",5399:"501fc322",5498:"298984c7",5548:"498b312d",5552:"84bdc597",5727:"93a1388d",5807:"0b926b80",5936:"5bba7f2f",6023:"843ea4a1",6029:"6fe4c192",6161:"d7e3ea42",6201:"58eeb93e",6519:"3ce478ef",6530:"3c295a95",6593:"1afe9a04",6773:"afd27a30",6947:"1cec7258",7146:"1af0c62e",7302:"3117acc5",7353:"02afd00b",7367:"d389861e",7721:"c985db03",7733:"dbb66cbc",7842:"d5a94411",8135:"3255c5ba",8231:"89b65f56",8263:"d9eaafab",8311:"69ab488d",8324:"5ac013ff",8348:"2fbb3b7e",8588:"0bce58e7",8633:"1b8bb39e",8717:"1e5ad2b1",8755:"1525c38d",8757:"5cde95c7",8936:"b9a73775",8989:"ddf83737",9034:"7ff08734",9251:"52df4857",9263:"affcdb7b",9515:"468a8527",9559:"3db56cb0",9599:"1f04dd1f",9634:"71192f72",9831:"f659ce60",9844:"c3062a6b"}[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,c;if(void 0!==n)for(var i=document.getElementsByTagName("script"),d=0;d<i.length;d++){var s=i[d];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==t+n){l=s;break}}l||(c=!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(u);var n=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(a))),t)return t(a)},u=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),c&&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",c=(e,t,r,a)=>{var n=o[e]=o[e]||{},c=n[t];(!c||!c.loaded&&(!a!=!c.eager?a:l>c.from))&&(n[t]={get:r,from:l,eager:!!a})},i=[];return"default"===r&&(c("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(46773))))),c("@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))))),c("@next-core/cook","2.5.12",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),c("@next-core/element","1.2.19",(()=>S.e(1045).then((()=>()=>S(21045))))),c("@next-core/http","1.2.14",(()=>S.e(8989).then((()=>()=>S(48989))))),c("@next-core/i18n","1.0.86",(()=>Promise.all([S.e(2616),S.e(7019),S.e(671),S.e(5552)]).then((()=>()=>S(75552))))),c("@next-core/inject","1.0.61",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(72277))))),c("@next-core/loader","1.6.17",(()=>S.e(5399).then((()=>()=>S(35399))))),c("@next-core/pipes","2.0.36",(()=>Promise.all([S.e(1919),S.e(6519)]).then((()=>()=>S(76519))))),c("@next-core/react-element","1.0.38",(()=>Promise.all([S.e(8769),S.e(870),S.e(9435),S.e(114)]).then((()=>()=>S(20114))))),c("@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))))),c("@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))))),c("@next-core/supply","2.3.9",(()=>Promise.all([S.e(1030),S.e(1302),S.e(9933),S.e(9559)]).then((()=>()=>S(49559))))),c("@next-core/theme","1.6.1",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(51889))))),c("@next-core/utils/general","1.8.7",(()=>S.e(871).then((()=>()=>S(40871))))),c("@next-core/utils/storyboard","1.8.7",(()=>Promise.all([S.e(1030),S.e(7019),S.e(1321),S.e(7146)]).then((()=>()=>S(97146))))),c("history","4.10.1",(()=>S.e(3003).then((()=>()=>S(65384))))),c("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(50726))))),c("i18next","22.5.1",(()=>S.e(843).then((()=>()=>S(20843))))),c("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(19515))))),c("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(45250))))),c("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(61329))))),c("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),c("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(43144))))),c("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(14041)))))),e[r]=i.length?Promise.all(i).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],c=(typeof l)[0];if(o!=c)return"o"==o&&"n"==c||"s"==c||"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(c=e[o]))[0]?"-":(a>0?".":"")+(a=2,c);return r}var l=[];for(o=1;o<e.length;o++){var c=e[o];l.push(0===c?"not("+i()+")":1===c?"("+i()+" || "+i()+")":2===c?l.pop()+" "+l.pop():n(c))}return i();function i(){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,c=1,i=!0;;c++,l++){var d,s,f=c<e.length?(typeof e[c])[0]:"";if(l>=t.length||"o"==(s=(typeof(d=t[l]))[0]))return!i||("u"==f?c>a&&!n:""==f!=n);if("u"==s){if(!i||"u"!=f)return!1}else if(i)if(f==s)if(c<=a){if(d!=e[c])return!1}else{if(n?d>e[c]:d<e[c])return!1;d!=e[c]&&(i=!1)}else if("s"!=f&&"n"!=f){if(n||c<=a)return!1;i=!1,c--}else{if(c<=a||s<f!=n)return!1;i=!1}else"s"!=f&&"n"!=f&&(i=!1,c--)}}var u=[],h=u.pop.bind(u);for(l=1;l<e.length;l++){var p=e[l];u.push(1==p?h()|h():2==p?h()&h():p?o(p,t):!h())}return!!h()},l=(e,t)=>e&&S.o(e,t),c=e=>(e.loaded=1,e.get()),i=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),d=(e,t,r,n)=>{var l=n?i(e[t]):e[t];return(t=Object.keys(l).reduce(((e,t)=>!o(r,t)||e&&!a(e,t)?e:t),0))&&l[t]},s=(e,t,r)=>{var n=r?i(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)+")",u=(e,t,r,a,o)=>{var l=e[r];return"No satisfying version ("+n(a)+")"+(o?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(l).map((e=>e+" from "+l[e].from)).join(", ")},h=e=>{throw new Error(e)},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,t,r)=>r?r():((e,t)=>h("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 m(e,r,o);var i=d(t,r,n,a);return i?c(i):o?o():void h(u(t,e,r,n,a))})),g=b(((e,t,r,a,n,i)=>{if(!l(t,r))return m(e,r,i);var d=s(t,r,a);return o(n,d)||p(f(t,r,d,n)),c(t[r][d])})),x={},y={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))))),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))))),34419:()=>g("default","@next-core/theme",!1,[1,1,6,1],(()=>S.e(1889).then((()=>()=>S(51889))))),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))))),41030:()=>g("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(45250))))),77019:()=>g("default","@next-core/utils/general",!1,[1,1,8,7],(()=>S.e(871).then((()=>()=>S(40871))))),21302:()=>g("default","moment",!1,[1,2,30,1],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),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))))),59435:()=>v("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(43144))))),69655:()=>g("default","@next-core/utils/storyboard",!1,[1,1,8,7],(()=>S.e(4765).then((()=>()=>S(97146))))),60709:()=>v("default","@next-core/react-runtime",!1,[1,1,7,39],(()=>S.e(9599).then((()=>()=>S(64837))))),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))))),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))))),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))))),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)))))},P={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]},k={},S.f.consumes=(e,t)=>{S.o(P,e)&&P[e].forEach((e=>{if(S.o(x,e))return t.push(x[e]);if(!k[e]){var r=t=>{x[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};k[e]=!0;var a=t=>{delete x[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var n=y[e]();n.then?t.push(x[e]=n.then(r).catch(a)):r(n)}catch(e){a(e)}}}))},(()=>{S.b=document.baseURI||self.location.href;var e={8792: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,c]=r,i=0;if(o.some((t=>0!==e[t]))){for(a in l)S.o(l,a)&&(S.m[a]=l[a]);c&&c(S)}for(t&&t(r);i<o.length;i++)n=o[i],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,S(77736)})();
|
|
2
|
-
//# sourceMappingURL=main.4cb00675.js.map
|
package/dist/index.fede9e49.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.fede9e49.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAIAC,EAGAC,EAIAC,EAe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ASG,MAAMxI,GAAgC,IAAxB0H,EAAgB1H,KAAa,CACtD,IAAIF,KAAYwI,EACZ3J,EAAoBM,EAAEqJ,EAAaxI,KACrCnB,EAAoByB,EAAEN,GAAYwI,EAAYxI,IAG7CyI,GAAsBA,EAAQ5J,EAClC,CAEA,IADGwJ,GAA4BA,EAA2BC,GACrD7F,EAAI8F,EAAS7F,OAAQD,IACzBvB,EAAUqH,EAAS9F,GAChB5D,EAAoBM,EAAEyI,EAAiB1G,IAAY0G,EAAgB1G,IACrE0G,EAAgB1G,GAAS,KAE1B0G,EAAgB1G,GAAW,CAC5B,EAIGyH,EAAqBnH,WAA+C,mCAAIA,WAA+C,oCAAK,GAChImH,EAAmB/E,QAAQwE,EAAqBrE,KAAK,KAAM,IAC3D4E,EAAmBxG,KAAOiG,EAAqBrE,KAAK,KAAM4E,EAAmBxG,KAAK4B,KAAK4E,G,KCrFvF9J,EAAoBmE,QAAK1D,ECGzB,IAAIsJ,EAAsB/J,EAAoB,O","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///webpack/container-entry","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/runtime/nonce","webpack:///webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/ai-portal:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t41030: () => (loadSingletonVersion(\"default\", \"lodash\", false, [1,4,17,21], () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(45250))))))),\n\t21302: () => (loadSingletonVersion(\"default\", \"moment\", false, [1,2,30,1], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(99420))))))),\n\t55310: () => (loadSingletonVersion(\"default\", \"js-yaml\", false, [0], () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(19515))))))),\n\t40580: () => (loadSingletonVersion(\"default\", \"@babel/parser\", false, [0], () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(46773))))))),\n\t52616: () => (loadSingletonVersion(\"default\", \"@next-core/i18n\", false, [1,1,0,86], () => (Promise.all([__webpack_require__.e(7019), __webpack_require__.e(671), __webpack_require__.e(3171)]).then(() => (() => (__webpack_require__(75552))))))),\n\t77019: () => (loadSingletonVersion(\"default\", \"@next-core/utils/general\", false, [1,1,8,7], () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(40871))))))),\n\t848: () => (loadSingletonVersion(\"default\", \"i18next-browser-languagedetector\", false, [0], () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(50726))))))),\n\t75630: () => (loadSingletonVersion(\"default\", \"i18next\", false, [0], () => (__webpack_require__.e(843).then(() => (() => (__webpack_require__(20843))))))),\n\t59933: () => (loadSingletonVersion(\"default\", \"@next-core/pipes\", false, [0], () => (Promise.all([__webpack_require__.e(1919), __webpack_require__.e(6519)]).then(() => (() => (__webpack_require__(76519))))))),\n\t61919: () => (loadSingletonVersion(\"default\", \"@easyops-cn/brick-next-pipes\", false, [2,0,7,3], () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(34306))))))),\n\t18769: () => (loadStrictVersion(\"default\", \"react\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(14041))))))),\n\t90870: () => (loadStrictVersion(\"default\", \"@next-core/element\", false, [1,1,2,19], () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(21045))))))),\n\t59435: () => (loadStrictVersion(\"default\", \"react-dom\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(3144).then(() => (() => (__webpack_require__(43144))))))),\n\t30981: () => (loadStrictVersion(\"default\", \"@next-core/react-element\", false, [1,1,0,38], () => (Promise.all([__webpack_require__.e(870), __webpack_require__.e(9435), __webpack_require__.e(7733)]).then(() => (() => (__webpack_require__(20114))))))),\n\t30348: () => (loadSingletonVersion(\"default\", \"@next-core/runtime\", false, [1,1,71,0], () => (Promise.all([__webpack_require__.e(948), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(1302), __webpack_require__.e(2919), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(5651)]).then(() => (() => (__webpack_require__(30948))))))),\n\t22919: () => (loadSingletonVersion(\"default\", \"@next-core/http\", false, [1,1,2,14], () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(48989))))))),\n\t71321: () => (loadSingletonVersion(\"default\", \"@next-core/cook\", false, [0], () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(61122))))))),\n\t69655: () => (loadSingletonVersion(\"default\", \"@next-core/utils/storyboard\", false, [1,1,8,7], () => (__webpack_require__.e(4765).then(() => (() => (__webpack_require__(97146))))))),\n\t11732: () => (loadSingletonVersion(\"default\", \"history\", false, [0], () => (__webpack_require__.e(3003).then(() => (() => (__webpack_require__(65384))))))),\n\t26036: () => (loadSingletonVersion(\"default\", \"moment/locale/zh-cn.js\", false, [1,2,30,1], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(61329))))))),\n\t29283: () => (loadSingletonVersion(\"default\", \"@next-core/inject\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(4658)]).then(() => (() => (__webpack_require__(72277))))))),\n\t45599: () => (loadSingletonVersion(\"default\", \"@next-core/loader\", false, [0], () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(35399))))))),\n\t94167: () => (loadSingletonVersion(\"default\", \"@next-core/supply\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(1940)]).then(() => (() => (__webpack_require__(49559))))))),\n\t34419: () => (loadSingletonVersion(\"default\", \"@next-core/theme\", false, [1,1,6,1], () => (__webpack_require__.e(1889).then(() => (() => (__webpack_require__(51889))))))),\n\t60709: () => (loadStrictVersion(\"default\", \"@next-core/react-runtime\", false, [1,1,7,39], () => (__webpack_require__.e(9599).then(() => (() => (__webpack_require__(64837)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"348\": [\n\t\t30348\n\t],\n\t\"580\": [\n\t\t40580\n\t],\n\t\"671\": [\n\t\t848,\n\t\t75630\n\t],\n\t\"870\": [\n\t\t90870\n\t],\n\t\"981\": [\n\t\t30981\n\t],\n\t\"1030\": [\n\t\t41030\n\t],\n\t\"1302\": [\n\t\t21302\n\t],\n\t\"1321\": [\n\t\t71321\n\t],\n\t\"1919\": [\n\t\t61919\n\t],\n\t\"2616\": [\n\t\t52616\n\t],\n\t\"2919\": [\n\t\t22919\n\t],\n\t\"4419\": [\n\t\t34419\n\t],\n\t\"5310\": [\n\t\t55310\n\t],\n\t\"5651\": [\n\t\t11732,\n\t\t26036,\n\t\t29283,\n\t\t45599,\n\t\t94167\n\t],\n\t\"6201\": [\n\t\t60709\n\t],\n\t\"7019\": [\n\t\t77019\n\t],\n\t\"8769\": [\n\t\t18769\n\t],\n\t\"9435\": [\n\t\t59435\n\t],\n\t\"9655\": [\n\t\t69655\n\t],\n\t\"9933\": [\n\t\t59933\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./cruise-canvas\": () => {\n\t\treturn Promise.all(/* cruise-canvas */[__webpack_require__.e(3020), __webpack_require__.e(8135), __webpack_require__.e(6947), __webpack_require__.e(8324), __webpack_require__.e(161), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(1302), __webpack_require__.e(348), __webpack_require__.e(2919), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(6593), __webpack_require__.e(6201), __webpack_require__.e(1919), __webpack_require__.e(2142), __webpack_require__.e(2267)]).then(() => (() => ((__webpack_require__(99631)))));\n\t},\n\t\"./chat-box\": () => {\n\t\treturn Promise.all(/* chat-box */[__webpack_require__.e(3020), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(9435), __webpack_require__.e(6573)]).then(() => (() => ((__webpack_require__(94669)))));\n\t},\n\t\"./home-container\": () => {\n\t\treturn Promise.all(/* home-container */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(3172)]).then(() => (() => ((__webpack_require__(6492)))));\n\t},\n\t\"./stat-with-mini-chart\": () => {\n\t\treturn Promise.all(/* stat-with-mini-chart */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(7345)]).then(() => (() => ((__webpack_require__(45657)))));\n\t},\n\t\"./elevo-sidebar\": () => {\n\t\treturn Promise.all(/* elevo-sidebar */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(348), __webpack_require__.e(2919), __webpack_require__.e(2084), __webpack_require__.e(7771)]).then(() => (() => ((__webpack_require__(17295)))));\n\t},\n\t\"./icon-button\": () => {\n\t\treturn Promise.all(/* icon-button */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(1541)]).then(() => (() => ((__webpack_require__(68845)))));\n\t},\n\t\"./show-cases\": () => {\n\t\treturn Promise.all(/* show-cases */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(4332)]).then(() => (() => ((__webpack_require__(64604)))));\n\t},\n\t\"./mcp-tools\": () => {\n\t\treturn Promise.all(/* mcp-tools */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(7087)]).then(() => (() => ((__webpack_require__(91375)))));\n\t},\n\t\"./chat-stream\": () => {\n\t\treturn Promise.all(/* chat-stream */[__webpack_require__.e(3020), __webpack_require__.e(8135), __webpack_require__.e(6947), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(1302), __webpack_require__.e(348), __webpack_require__.e(2919), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(6593), __webpack_require__.e(6201), __webpack_require__.e(8717), __webpack_require__.e(366)]).then(() => (() => ((__webpack_require__(23182)))));\n\t},\n\t\"./ai-employees\": () => {\n\t\treturn Promise.all(/* ai-employees */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(6729)]).then(() => (() => ((__webpack_require__(80749)))));\n\t},\n\t\"./ai-agents\": () => {\n\t\treturn Promise.all(/* ai-agents */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(304)]).then(() => (() => ((__webpack_require__(50520)))));\n\t},\n\t\"./call-tool\": () => {\n\t\treturn Promise.all(/* call-tool */[__webpack_require__.e(7019), __webpack_require__.e(2919), __webpack_require__.e(5234)]).then(() => (() => ((__webpack_require__(24963)))));\n\t},\n\t\"./save-request-store\": () => {\n\t\treturn Promise.all(/* save-request-store */[__webpack_require__.e(7019), __webpack_require__.e(8539)]).then(() => (() => ((__webpack_require__(93291)))));\n\t},\n\t\"./load-request-store\": () => {\n\t\treturn Promise.all(/* load-request-store */[__webpack_require__.e(7019), __webpack_require__.e(8539)]).then(() => (() => ((__webpack_require__(93291)))));\n\t},\n\t\"./clear-request-store\": () => {\n\t\treturn Promise.all(/* clear-request-store */[__webpack_require__.e(7019), __webpack_require__.e(8539)]).then(() => (() => ((__webpack_require__(93291)))));\n\t},\n\t\"./page-container\": () => {\n\t\treturn Promise.all(/* page-container */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(348), __webpack_require__.e(5020)]).then(() => (() => ((__webpack_require__(7476)))));\n\t},\n\t\"./tab-list\": () => {\n\t\treturn Promise.all(/* tab-list */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(9873)]).then(() => (() => ((__webpack_require__(48581)))));\n\t},\n\t\"./dropdown-select\": () => {\n\t\treturn Promise.all(/* dropdown-select */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(9053)]).then(() => (() => ((__webpack_require__(26001)))));\n\t},\n\t\"./preview-container\": () => {\n\t\treturn Promise.all(/* preview-container */[__webpack_require__.e(8135), __webpack_require__.e(3199), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(348), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(6593), __webpack_require__.e(8775)]).then(() => (() => ((__webpack_require__(54519)))));\n\t},\n\t\"./action-buttons\": () => {\n\t\treturn Promise.all(/* action-buttons */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(6109)]).then(() => (() => ((__webpack_require__(27725)))));\n\t},\n\t\"./goal-card-list\": () => {\n\t\treturn Promise.all(/* goal-card-list */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(4322)]).then(() => (() => ((__webpack_require__(96318)))));\n\t},\n\t\"./project-conversations\": () => {\n\t\treturn Promise.all(/* project-conversations */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(2697)]).then(() => (() => ((__webpack_require__(36709)))));\n\t},\n\t\"./project-knowledges\": () => {\n\t\treturn Promise.all(/* project-knowledges */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(7908)]).then(() => (() => ((__webpack_require__(73388)))));\n\t},\n\t\"./activity-timeline\": () => {\n\t\treturn Promise.all(/* activity-timeline */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(9576)]).then(() => (() => ((__webpack_require__(59544)))));\n\t},\n\t\"./chat-input\": () => {\n\t\treturn Promise.all(/* chat-input */[__webpack_require__.e(3020), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(9435), __webpack_require__.e(7218)]).then(() => (() => ((__webpack_require__(45962)))));\n\t},\n\t\"./elevo-logo\": () => {\n\t\treturn Promise.all(/* elevo-logo */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(5064)]).then(() => (() => ((__webpack_require__(52404)))));\n\t},\n\t\"./show-case\": () => {\n\t\treturn Promise.all(/* show-case */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(2616), __webpack_require__.e(3901)]).then(() => (() => ((__webpack_require__(2865)))));\n\t},\n\t\"./blank-state\": () => {\n\t\treturn Promise.all(/* blank-state */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(1291)]).then(() => (() => ((__webpack_require__(3019)))));\n\t},\n\t\"./sticky-container\": () => {\n\t\treturn Promise.all(/* sticky-container */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(5144)]).then(() => (() => ((__webpack_require__(46544)))));\n\t},\n\t\"./elevo-card\": () => {\n\t\treturn Promise.all(/* elevo-card */[__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(7923)]).then(() => (() => ((__webpack_require__(5527)))));\n\t},\n\t\"./flow-tabs\": () => {\n\t\treturn Promise.all(/* flow-tabs */[__webpack_require__.e(3020), __webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(981), __webpack_require__.e(4419), __webpack_require__.e(5764)]).then(() => (() => ((__webpack_require__(42252)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"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\"}[chunkId] || chunkId) + \".\" + {\"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\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/ai-portal\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@babel/parser\", \"7.27.2\", () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(46773))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.7.6\", () => (Promise.all([__webpack_require__.e(4306), __webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(5310)]).then(() => (() => (__webpack_require__(34306))))));\n\t\t\tregister(\"@next-core/cook\", \"2.5.12\", () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(61122))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.19\", () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(21045))))));\n\t\t\tregister(\"@next-core/http\", \"1.2.14\", () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(48989))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.86\", () => (Promise.all([__webpack_require__.e(2616), __webpack_require__.e(7019), __webpack_require__.e(671), __webpack_require__.e(5552)]).then(() => (() => (__webpack_require__(75552))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.61\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(9933), __webpack_require__.e(2277)]).then(() => (() => (__webpack_require__(72277))))));\n\t\t\tregister(\"@next-core/loader\", \"1.6.17\", () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(35399))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.36\", () => (Promise.all([__webpack_require__.e(1919), __webpack_require__.e(6519)]).then(() => (() => (__webpack_require__(76519))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.38\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(870), __webpack_require__.e(9435), __webpack_require__.e(114)]).then(() => (() => (__webpack_require__(20114))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.7.39\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(981), __webpack_require__.e(1030), __webpack_require__.e(348), __webpack_require__.e(4837)]).then(() => (() => (__webpack_require__(64837))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.71.0\", () => (Promise.all([__webpack_require__.e(948), __webpack_require__.e(2616), __webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(1302), __webpack_require__.e(2919), __webpack_require__.e(1321), __webpack_require__.e(9655), __webpack_require__.e(5651)]).then(() => (() => (__webpack_require__(30948))))));\n\t\t\tregister(\"@next-core/supply\", \"2.3.9\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(1302), __webpack_require__.e(9933), __webpack_require__.e(9559)]).then(() => (() => (__webpack_require__(49559))))));\n\t\t\tregister(\"@next-core/theme\", \"1.6.1\", () => (Promise.all([__webpack_require__.e(1889), __webpack_require__.e(2052)]).then(() => (() => (__webpack_require__(51889))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.8.7\", () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(40871))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.8.7\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(7019), __webpack_require__.e(1321), __webpack_require__.e(7146)]).then(() => (() => (__webpack_require__(97146))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(3003).then(() => (() => (__webpack_require__(65384))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.2\", () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(50726))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(843).then(() => (() => (__webpack_require__(20843))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(19515))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(45250))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(61329))))));\n\t\t\tregister(\"moment\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(99420))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(3144), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(43144))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(14041))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2641: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(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(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunk_next_bricks_ai_portal\"] = globalThis[\"webpackChunk_next_bricks_ai_portal\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(48387);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","exists","get","eagerOnly","findSatisfyingVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getInvalidVersionMessage","fail","warn","init","useFallback","loadStrictVersion","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","nmd","paths","children","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","replace","p","str","split","map","exec","apply","b","t","range","pop","entry","filtered","requiredVersion","scopeName","join","msg","console","fallback","failAsNotExist","promise","satisfyingVersion","consumes","onFactory","onError","error","baseURI","self","href","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
|
/package/dist/chunks/{flow-tabs.ba72493e.js.LICENSE.txt → flow-tabs.222a11ea.js.LICENSE.txt}
RENAMED
|
File without changes
|