@gientech/modual 2.3.13 → 2.3.15

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.
@@ -340,4 +340,4 @@ ${S.substring(ve)}`;v(Oe),requestAnimationFrame(()=>{Ce.selectionStart=Ce.select
340
340
  relative w-[35px] h-8 flex items-center justify-center rounded-full group overflow-hidden shadow-sm
341
341
  transition-all duration-200
342
342
  ${A==="processing"?"animate-pulse":""}
343
- `,style:{cursor:A==="processing"||F?"pointer":"not-allowed",background:A==="processing"?"#222222":F?`linear-gradient(to bottom right, ${te}, ${(Z==null?void 0:Z.primary)||"#0275d8"})`:oe},onClick:()=>{A==="processing"?e&&e("sender:stop",{}):F&&e&&e("sender:send")},title:A==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:V("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!F&&A!=="processing"?ge:"#ffffff"},children:A==="processing"?V(ZQ,{size:46,color:"#ffffff",circleColor:"#ffffff"}):V($6,{size:20,className:F?"sender-icon-active":"",style:{color:F?"#ffffff":ge,strokeWidth:2.5}})})})]})]})]})}),V("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:V("span",{className:"text-[10px]",style:{color:ee}})})]}),E&&V("div",{className:" absolute bottom-3 left-0 right-0 w-full text-xs text-center",children:V("div",{className:"text-xs text-center",style:{color:ge},children:E})})]})]})}const _Q={sm:"240px",md:"260px",lg:"280px"},$Q={sm:"12px",md:"16px",lg:"20px"},ew={sm:"2px",md:"4px",lg:"8px"},tw={sm:"4px",md:"8px",lg:"16px"},iw={sm:"4px",md:"8px",lg:"16px"},Aw={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},rw={sm:"1.2",md:"1.5",lg:"2"};function nw(i){return{...i,size:$Q[i.size]||i.size,radius:ew[i.radius]||i.radius,padding:tw[i.padding]||i.padding,margin:iw[i.margin]||i.margin,shadow:Aw[i.shadow]||i.shadow,lineHeight:rw[i.lineHeight]||i.lineHeight,sidebar:_Q[i.sidebar]||i.sidebar}}function an(i,e){if(!e)return i;const t=Array.isArray(i)?[...i]:{...i};for(const A in e)if(e[A]!==void 0&&e[A]!==null&&Object.prototype.hasOwnProperty.call(e,A))if(A==="actions"&&Array.isArray(i[A])&&Array.isArray(e[A])){const r=new Map;i[A].forEach(n=>{n.name&&r.set(n.name,n)}),e[A].forEach(n=>{n.name&&r.set(n.name,n)}),t[A]=Array.from(r.values())}else typeof i[A]=="object"&&i[A]!==null&&!Array.isArray(i[A])&&typeof e[A]=="object"&&e[A]!==null&&!Array.isArray(e[A])?t[A]=an(i[A],e[A]):t[A]=e[A];return t}const sw=i=>it.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},it.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C11.6819 14.6666 14.6667 11.6819 14.6667 7.99998C14.6667 4.31808 11.6819 1.33331 8 1.33331C4.3181 1.33331 1.33334 4.31808 1.33334 7.99998C1.33334 11.6819 4.3181 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M1.33334 8H14.6667",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C9.47277 14.6666 10.6667 11.6819 10.6667 7.99998C10.6667 4.31808 9.47277 1.33331 8 1.33331C6.52724 1.33331 5.33334 4.31808 5.33334 7.99998C5.33334 11.6819 6.52724 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M3.28597 3.38068C4.4924 4.58711 6.15907 5.33331 8 5.33331C9.84097 5.33331 11.5076 4.58711 12.7141 3.38068",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M12.7141 12.6193C11.5076 11.4129 9.84097 10.6667 8 10.6667C6.15907 10.6667 4.4924 11.4129 3.28597 12.6193",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),aw=i=>it.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},it.createElement("path",{d:"M1.73633 1.57642C2.53848 0.774265 3.74473 0.714862 4.87207 1.03052C6.02182 1.35245 7.24885 2.09683 8.3125 3.1604C9.37624 4.22414 10.1204 5.45195 10.4424 6.60181C10.758 7.72909 10.6986 8.93446 9.89648 9.73657C9.09439 10.5387 7.88901 10.5981 6.76172 10.2825C5.61186 9.96051 4.38405 9.21632 3.32031 8.15259C2.25674 7.08894 1.51236 5.86191 1.19043 4.71216C0.874775 3.58481 0.934176 2.37857 1.73633 1.57642Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M6.76172 5.41479C7.88883 5.09929 9.09442 5.15888 9.89648 5.96069C10.6986 6.76284 10.758 7.96909 10.4424 9.09644C10.1204 10.2462 9.37617 11.4732 8.3125 12.5369C7.24882 13.6005 6.02187 14.3448 4.87207 14.6667C3.74472 14.9824 2.53848 14.923 1.73633 14.1208C0.934528 13.3188 0.874922 12.1132 1.19043 10.9861C1.51239 9.83623 2.25659 8.60841 3.32031 7.54468C4.38405 6.48096 5.61186 5.73675 6.76172 5.41479Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M11.1282 1.03052C12.2553 0.715012 13.4609 0.774612 14.263 1.57642C15.0651 2.37857 15.1246 3.58481 14.8089 4.71216C14.4869 5.86196 13.7427 7.08892 12.679 8.15259C11.6153 9.21627 10.3884 9.96048 9.23859 10.2825C8.11124 10.5981 6.90499 10.5387 6.10284 9.73657C5.30106 8.9345 5.24144 7.72892 5.55695 6.60181C5.8789 5.45195 6.62311 4.22414 7.68683 3.1604C8.75056 2.09668 9.97838 1.35248 11.1282 1.03052Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M6.10284 5.96069C6.90499 5.15855 8.11124 5.09914 9.23859 5.41479C10.3883 5.73673 11.6154 6.48111 12.679 7.54468C13.7427 8.60841 14.4869 9.83623 14.8089 10.9861C15.1245 12.1134 15.0651 13.3188 14.263 14.1208C13.4609 14.9229 12.2555 14.9823 11.1282 14.6667C9.97838 14.3448 8.75055 13.6006 7.68683 12.5369C6.62325 11.4732 5.87888 10.2462 5.55695 9.09644C5.24129 7.96909 5.3007 6.76284 6.10284 5.96069Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),qo={actions:[{name:"upload",icon:V(m2,{type:"wenda/shangchuanwenjian",color:"#000",size:20}),tip:"\u6587\u4EF6\u4E0A\u4F20"}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"switch",defaultValue:!1,enabled:!0,icon:V(sw,{width:16,height:16,className:"aichat-netsearch-icon",style:{color:"#4B8CF7"}})},{label:"\u6DF1\u5EA6\u601D\u8003",name:"reasoning",type:"switch",defaultValue:!0,enabled:!0,icon:V(aw,{width:16,height:16})}]};function ow({senderConfig:i,handleEventsEmit:e}){const[t,A]=ke(""),[r,n]=ke([]);Ue(()=>{console.log("uploadedFiles",r)},[r]);const s=()=>{A(""),r.forEach(m=>{m.preview&&m.type==="image"&&URL.revokeObjectURL(m.preview)}),console.log("=============1"),n([])},a=m=>{A(m)},g=m=>{console.log("Sending message:",m)},u=m=>m.type.startsWith("image")?"image":"document",d=m=>{const b=u(m),p={file:m,type:b};return b==="image"&&(p.preview=URL.createObjectURL(m)),p},E=m=>{if(m&&m.length>0){const b=Array.from(m),p=r3(b,r,i);if(p.valid)console.log("=============3"),n([...b.map(w=>d(w))]);else{n3(p);const w=b.filter(S=>!p.rejectedFiles.includes(S));w.length>0&&(console.log("=============2"),n([...w.map(S=>d(S))]))}}},y=m=>{console.log("=============4"),n(b=>b.filter((p,w)=>w!==m))};return Ue(()=>{e==null||e("fileManager:change",{uploadedFiles:r,senderConfig:i,setUploadedFiles:m=>{n([...m])}})},[r,i]),{uploadedFiles:r,inputValue:t,handleSendMessage:g,handleMessageChange:a,clearInput:s,handleUploadFiles:E,handleRemoveFile:y,setUploadedFiles:n}}const Wo=[{id:Bt(32)},{id:Bt(32)}],Lw=({scrollOld:i=!1,token:e,styles:t={},senderConfig:A={},disclaimer:r="\u5185\u5BB9\u7531AI\u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003\uFF0C\u4E0D\u4EE3\u8868\u672C\u516C\u53F8\u89C2\u70B9\u3002",viewLimit:n})=>{const s=i2(null),a=i2(void 0),g=i2([]),u=i2(void 0),d=i2(void 0),E=i2(null),y=i2(new Map),[m,b]=ke([]);Wo.forEach(Ie=>{y.current.set(Ie.id,{current:Ie.id})});const p=(Ie,ne)=>{[...y.current.values()].forEach(re=>{const ue=re==null?void 0:re.current;ue&&typeof ue[Ie]=="function"&&ue[Ie](be)})},[w,S]=ke(()=>({uploadedFiles:[]})),[v,T]=ke(Wo),[X,U]=ke([]),[Y,x]=ke(!1),[k,B]=ke({}),[I,O]=ke({}),F=_o(),G=QA(QA(Ks,(F==null?void 0:F.theme)||{}),(t==null?void 0:t.theme)||{}),q=nw(G.space),Z={...G,space:q,colors:{...G.colors,info:G.colors.info||"#0000FF",background:G.colors.background||"#ffffff",text:G.colors.text||"#343a40",border:G.colors.border||"#dee2e6",disabled:G.colors.disabled||"#808080",disabledBackground:G.colors.disabledBackground||"#F5F5F5",disabledText:G.colors.disabledText||"#808080"}},te=s2(()=>{const ne=QA({theme:Ks,mode:"light"},F||{});return QA(ne,t||{})},[F,t]),L={...t,theme:Z},[N,K]=ke([]),[_,ee]=ke(()=>an(qo,A));Ue(()=>{if(A){const Ie=an(qo,A);ee(Ie)}},[A]);const oe=(Ie,ne)=>{switch(console.log("Event emitted:",Ie,ne),Ie){case"sender:action_upload":E.current&&E.current.click();break;case"fileChanges":S(ne);break;case"fileManager:change":{typeof(ne==null?void 0:ne.setUploadedFiles)=="function"&&(d.current=ne.setUploadedFiles,a.current=ne.removeFile,u.current=ne==null?void 0:ne.senderConfig,g.current=Array.isArray(ne==null?void 0:ne.uploadedFiles)?ne.uploadedFiles:[],Array.isArray(ne==null?void 0:ne.uploadedFiles)&&b(ne.uploadedFiles));break}case"sender:stop":p("handleStopMessage");break;case"assistant:change":T(we=>we.map(re=>re.id===ne.id?{...re,configId:ne.configId}:re));break;case"sender:configChange":ne&&ne.all&&B(ne.all);break;case"sender:change":ge(ne);break;case"sender:send":{p("handleSendMessage");break}}},{handleMessageChange:ge,clearInput:ce,inputValue:de,handleUploadFiles:Fe,uploadedFiles:be,handleRemoveFile:ae}=ow({senderConfig:A,handleEventsEmit:oe}),Ce=Ie=>{O(Ie.all)},ye=()=>{const Ie=Bt(32);y.current.set(Ie,{current:Ie});const ne=new Set(v.map(ue=>ue.configId).filter(Boolean));let we="";const re=X.find(ue=>!ne.has(ue.value));re?we=re.value:X.length&&(we=X[0].value),T(ue=>[...ue,{id:Ie,configId:we}])},ve=Ie=>{T(ne=>{if(ne.length<=2)return ne;const we=ne.findIndex(ze=>ze.id===Ie);if(we===-1)return ne;const re=ne[we],ue=y.current.get(re.id),De=ue==null?void 0:ue.current;if(De&&typeof(De==null?void 0:De.unmount)=="function")try{De.unmount()}catch{}return y.current.delete(re.id),[...ne.slice(0,we),...ne.slice(we+1)]})},Oe=Ie=>Ie.map(ne=>{const we=JSON.parse(ne.configJson);return{details:{model_name:we.model_name||"",temperature:we.temperature||"",max_tokens:we.max_tokens||""},label:ne.name,value:ne.id}}),Ze=async()=>{try{const Ie=await rQ({token:e});if(Ie.length){const ne=Oe(Ie);U(ne),T(we=>we.map((re,ue)=>{var De;return{...re,configId:((De=ne==null?void 0:ne[ue])==null?void 0:De.value)||""}})),x(!1)}}catch(Ie){console.log("error",Ie)}},fe=s2(()=>w.uploadedFiles||[],[w]);s3({fileManagerData:{uploadedFiles:fe},styles:te,eventsEmit:oe});const Be=Ie=>{const ne=Ie.target.files;if(ne&&ne.length>0){console.log("[DEBUG] handleFileSelect \u89E6\u53D1",{filesCount:ne.length,hasSetUploadedFilesRef:!!d.current,hasSenderConfig:!!u.current,dynamicSenderConfig:_,dynamicSenderConfigKeys:_?Object.keys(_):[],senderConfigRef:u.current,senderConfigRefKeys:u.current?Object.keys(u.current):[]});const we=Array.from(ne);let re=u.current;(!re||re.upload_size_limit===void 0&&re.upload_number_limit===void 0&&(!re.upload_file_type_limit||re.upload_file_type_limit.length===0))&&(re=_);const ue=g.current||[];console.log("[DEBUG] \u9A8C\u8BC1\u914D\u7F6E\u68C0\u67E5",{configSource:re,upload_number_limit:re==null?void 0:re.upload_number_limit,upload_size_limit:re==null?void 0:re.upload_size_limit,existingFilesCount:ue.length,newFilesCount:we.length});const De=re&&(re.upload_size_limit!==void 0||re.upload_number_limit!==void 0&&re.upload_number_limit>0||re.upload_file_type_limit&&re.upload_file_type_limit.length>0);if(console.log("[DEBUG] \u914D\u7F6E\u68C0\u67E5\u7ED3\u679C",{hasUploadLimitConfig:De,upload_number_limit:re==null?void 0:re.upload_number_limit,upload_size_limit:re==null?void 0:re.upload_size_limit,upload_file_type_limit:re==null?void 0:re.upload_file_type_limit}),De){const ze={upload_size_limit:re.upload_size_limit,upload_number_limit:re.upload_number_limit,upload_file_type_limit:re.upload_file_type_limit,upload_limit_message:re.upload_limit_message};console.log("[DEBUG] \u6267\u884C\u6587\u4EF6\u9A8C\u8BC1",{uploadConfig:ze,existingFilesCount:ue.length,newFilesCount:we.length,totalCount:ue.length+we.length});const Ge=r3(we,ue,ze);if(console.log("[DEBUG] \u9A8C\u8BC1\u7ED3\u679C",{valid:Ge.valid,errors:Ge.errors,rejectedFilesCount:Ge.rejectedFiles.length}),!Ge.valid){n3(Ge);const B2=we.filter(Ne=>!Ge.rejectedFiles.includes(Ne));if(B2.length===0){E.current&&(E.current.value="");return}we.splice(0,we.length,...B2)}}if(d.current){const ze=we.map(Ge=>({file:Ge,type:Ge.type.startsWith("image/")?"image":"document",status:"pending",name:Ge.name}));console.log("[DEBUG] \u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ze),d.current(ze)}else console.warn("[DEBUG] setUploadedFilesRef \u672A\u8BBE\u7F6E\uFF0C\u5EF6\u8FDF\u91CD\u8BD5"),setTimeout(()=>{if(d.current){const ze=we.map(Ge=>({file:Ge,type:Ge.type.startsWith("image/")?"image":"document",status:"pending",name:Ge.name}));console.log("[DEBUG] \u5EF6\u8FDF\u540E\u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ze),d.current(ze)}else console.error("[DEBUG] \u5EF6\u8FDF\u540E setUploadedFilesRef \u4ECD\u672A\u8BBE\u7F6E")},100)}E.current&&(E.current.value="")},Qe=s2(()=>{const Ie=v.map(ne=>{var we;return(we=ne==null?void 0:ne.appStatus)==null?void 0:we.sender}).filter(Boolean);return console.log("chatItems",v),Ie.includes("error")?"error":Ie.includes("uploading")?"uploading":Ie.includes("processing")?"processing":"ready"},[v]);return Ue(()=>{console.log("senderStatus",Qe)},[Qe]),Ue(()=>{x(!0),Ze()},[]),Ee("div",{style:{display:"flex",gap:"20px",height:"100%",boxSizing:"border-box",flexDirection:"column",position:"relative"},className:"selfScrollBar",ref:s,children:[Ee("div",{style:{display:"flex",gap:"20px",height:"calc(100% - 195px)",overflowX:"auto"},children:[V("input",{ref:E,type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.txt,.md,.json,.csv,.zip,.rar,.7z,.ofd",style:{display:"none"},onChange:Be}),v.map((Ie,ne)=>{const we=y.current.get(Ie.id);return V(cQ,{index:ne,ref:we,item:Ie,scrollOld:i,token:e,styles:t,status:Qe,inputValue:de,uploadedFiles:be,senderSwitchValues:k,clearInput:ce,configLoading:Y,showRemoveIcon:(v==null?void 0:v.length)>2,assistantList:X.filter(re=>re.value===Ie.configId||v.every(ue=>ue.configId!==re.value)),emitEvent:oe,onRemove:ve,senderConfig:_,normalizedStyles:te,setChatItems:T},Ie.id)})]}),Ee("div",{style:{flex:1,display:"flex",justifyContent:"center",alignItems:"end"},children:[V(KQ,{value:de,status:Qe,styles:L,recommandQuestions:[],eventsEmit:(Ie,ne)=>{oe(Ie,ne)},uploadedFiles:be,fileUploadStatus:N,onUpload:Fe,onRemoveFile:ae,senderConfig:A,onSenderConfigChange:Ce,disclaimer:r}),V("div",{className:"flex absolute text-[12px] cursor-pointer z-20",style:{left:"24px",bottom:"150px"},children:V(t3,{count:v.length,size:"small",color:"#1677ff",children:V(Mi,{icon:V(_6,{className:"w-3"}),onClick:ye,type:"link",disabled:v.length>=(n||10),size:"small",children:"\u6DFB\u52A0\u52A9\u624B"})})})]})]})};export{Lw as C,g7 as D,s7 as F,l7 as G,EC as N,C7 as T,u7 as W,e7 as a,xw as b,sr as c,h7 as d,f7 as e,Mw as f,E7 as g,p7 as h,Sw as i,Pw as j,kw as k,Tw as l,c7 as m,A7 as n,$s as o,ea as p,d7 as q,bw as r,Dw as s,yw as t,s3 as u,vw as v,o7 as w};
343
+ `,style:{cursor:A==="processing"||F?"pointer":"not-allowed",background:A==="processing"?"#222222":F?`linear-gradient(to bottom right, ${te}, ${(Z==null?void 0:Z.primary)||"#0275d8"})`:oe},onClick:()=>{A==="processing"?e&&e("sender:stop",{}):F&&e&&e("sender:send")},title:A==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:V("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!F&&A!=="processing"?ge:"#ffffff"},children:A==="processing"?V(ZQ,{size:46,color:"#ffffff",circleColor:"#ffffff"}):V($6,{size:20,className:F?"sender-icon-active":"",style:{color:F?"#ffffff":ge,strokeWidth:2.5}})})})]})]})]})}),V("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:V("span",{className:"text-[10px]",style:{color:ee}})})]}),E&&V("div",{className:" absolute bottom-3 left-0 right-0 w-full text-xs text-center",children:V("div",{className:"text-xs text-center",style:{color:ge},children:E})})]})]})}const _Q={sm:"240px",md:"260px",lg:"280px"},$Q={sm:"12px",md:"16px",lg:"20px"},ew={sm:"2px",md:"4px",lg:"8px"},tw={sm:"4px",md:"8px",lg:"16px"},iw={sm:"4px",md:"8px",lg:"16px"},Aw={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},rw={sm:"1.2",md:"1.5",lg:"2"};function nw(i){return{...i,size:$Q[i.size]||i.size,radius:ew[i.radius]||i.radius,padding:tw[i.padding]||i.padding,margin:iw[i.margin]||i.margin,shadow:Aw[i.shadow]||i.shadow,lineHeight:rw[i.lineHeight]||i.lineHeight,sidebar:_Q[i.sidebar]||i.sidebar}}function an(i,e){if(!e)return i;const t=Array.isArray(i)?[...i]:{...i};for(const A in e)if(e[A]!==void 0&&e[A]!==null&&Object.prototype.hasOwnProperty.call(e,A))if(A==="actions"&&Array.isArray(i[A])&&Array.isArray(e[A])){const r=new Map;i[A].forEach(n=>{n.name&&r.set(n.name,n)}),e[A].forEach(n=>{n.name&&r.set(n.name,n)}),t[A]=Array.from(r.values())}else typeof i[A]=="object"&&i[A]!==null&&!Array.isArray(i[A])&&typeof e[A]=="object"&&e[A]!==null&&!Array.isArray(e[A])?t[A]=an(i[A],e[A]):t[A]=e[A];return t}const sw=i=>it.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},it.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C11.6819 14.6666 14.6667 11.6819 14.6667 7.99998C14.6667 4.31808 11.6819 1.33331 8 1.33331C4.3181 1.33331 1.33334 4.31808 1.33334 7.99998C1.33334 11.6819 4.3181 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M1.33334 8H14.6667",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C9.47277 14.6666 10.6667 11.6819 10.6667 7.99998C10.6667 4.31808 9.47277 1.33331 8 1.33331C6.52724 1.33331 5.33334 4.31808 5.33334 7.99998C5.33334 11.6819 6.52724 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M3.28597 3.38068C4.4924 4.58711 6.15907 5.33331 8 5.33331C9.84097 5.33331 11.5076 4.58711 12.7141 3.38068",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M12.7141 12.6193C11.5076 11.4129 9.84097 10.6667 8 10.6667C6.15907 10.6667 4.4924 11.4129 3.28597 12.6193",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),aw=i=>it.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},it.createElement("path",{d:"M1.73633 1.57642C2.53848 0.774265 3.74473 0.714862 4.87207 1.03052C6.02182 1.35245 7.24885 2.09683 8.3125 3.1604C9.37624 4.22414 10.1204 5.45195 10.4424 6.60181C10.758 7.72909 10.6986 8.93446 9.89648 9.73657C9.09439 10.5387 7.88901 10.5981 6.76172 10.2825C5.61186 9.96051 4.38405 9.21632 3.32031 8.15259C2.25674 7.08894 1.51236 5.86191 1.19043 4.71216C0.874775 3.58481 0.934176 2.37857 1.73633 1.57642Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M6.76172 5.41479C7.88883 5.09929 9.09442 5.15888 9.89648 5.96069C10.6986 6.76284 10.758 7.96909 10.4424 9.09644C10.1204 10.2462 9.37617 11.4732 8.3125 12.5369C7.24882 13.6005 6.02187 14.3448 4.87207 14.6667C3.74472 14.9824 2.53848 14.923 1.73633 14.1208C0.934528 13.3188 0.874922 12.1132 1.19043 10.9861C1.51239 9.83623 2.25659 8.60841 3.32031 7.54468C4.38405 6.48096 5.61186 5.73675 6.76172 5.41479Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M11.1282 1.03052C12.2553 0.715012 13.4609 0.774612 14.263 1.57642C15.0651 2.37857 15.1246 3.58481 14.8089 4.71216C14.4869 5.86196 13.7427 7.08892 12.679 8.15259C11.6153 9.21627 10.3884 9.96048 9.23859 10.2825C8.11124 10.5981 6.90499 10.5387 6.10284 9.73657C5.30106 8.9345 5.24144 7.72892 5.55695 6.60181C5.8789 5.45195 6.62311 4.22414 7.68683 3.1604C8.75056 2.09668 9.97838 1.35248 11.1282 1.03052Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),it.createElement("path",{d:"M6.10284 5.96069C6.90499 5.15855 8.11124 5.09914 9.23859 5.41479C10.3883 5.73673 11.6154 6.48111 12.679 7.54468C13.7427 8.60841 14.4869 9.83623 14.8089 10.9861C15.1245 12.1134 15.0651 13.3188 14.263 14.1208C13.4609 14.9229 12.2555 14.9823 11.1282 14.6667C9.97838 14.3448 8.75055 13.6006 7.68683 12.5369C6.62325 11.4732 5.87888 10.2462 5.55695 9.09644C5.24129 7.96909 5.3007 6.76284 6.10284 5.96069Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),qo={actions:[{name:"upload",icon:V(m2,{type:"wenda/shangchuanwenjian",color:"#000",size:20}),tip:"\u6587\u4EF6\u4E0A\u4F20"}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"switch",defaultValue:!1,enabled:!0,icon:V(sw,{width:16,height:16,className:"aichat-netsearch-icon",style:{color:"#4B8CF7"}})},{label:"\u6DF1\u5EA6\u601D\u8003",name:"reasoning",type:"switch",defaultValue:!0,enabled:!0,icon:V(aw,{width:16,height:16})}]};function ow({senderConfig:i,handleEventsEmit:e}){const[t,A]=ke(""),[r,n]=ke([]);Ue(()=>{console.log("uploadedFiles",r)},[r]);const s=()=>{A(""),r.forEach(m=>{m.preview&&m.type==="image"&&URL.revokeObjectURL(m.preview)}),console.log("=============1"),n([])},a=m=>{A(m)},g=m=>{console.log("Sending message:",m)},u=m=>m.type.startsWith("image")?"image":"document",d=m=>{const b=u(m),p={file:m,type:b};return b==="image"&&(p.preview=URL.createObjectURL(m)),p},E=m=>{if(m&&m.length>0){const b=Array.from(m),p=r3(b,r,i);if(p.valid)console.log("=============3"),n([...b.map(w=>d(w))]);else{n3(p);const w=b.filter(S=>!p.rejectedFiles.includes(S));w.length>0&&(console.log("=============2"),n([...w.map(S=>d(S))]))}}},y=m=>{console.log("=============4"),n(b=>b.filter((p,w)=>w!==m))};return Ue(()=>{e==null||e("fileManager:change",{uploadedFiles:r,senderConfig:i,setUploadedFiles:m=>{n([...m])}})},[r,i]),{uploadedFiles:r,inputValue:t,handleSendMessage:g,handleMessageChange:a,clearInput:s,handleUploadFiles:E,handleRemoveFile:y,setUploadedFiles:n}}const Wo=[{id:Bt(32)},{id:Bt(32)}],Lw=({scrollOld:i=!1,token:e,styles:t={},senderConfig:A={},disclaimer:r="\u5185\u5BB9\u7531AI\u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003\uFF0C\u4E0D\u4EE3\u8868\u672C\u516C\u53F8\u89C2\u70B9\u3002",viewLimit:n})=>{const s=i2(null),a=i2(void 0),g=i2([]),u=i2(void 0),d=i2(void 0),E=i2(null),y=i2(new Map),[m,b]=ke([]);Wo.forEach(Ie=>{y.current.set(Ie.id,{current:Ie.id})});const p=(Ie,ne)=>{[...y.current.values()].forEach(re=>{const ue=re==null?void 0:re.current;ue&&typeof ue[Ie]=="function"&&ue[Ie](be)})},[w,S]=ke(()=>({uploadedFiles:[]})),[v,T]=ke(Wo),[X,U]=ke([]),[Y,x]=ke(!1),[k,B]=ke({}),[I,O]=ke({}),F=_o(),G=QA(QA(Ks,(F==null?void 0:F.theme)||{}),(t==null?void 0:t.theme)||{}),q=nw(G.space),Z={...G,space:q,colors:{...G.colors,info:G.colors.info||"#0000FF",background:G.colors.background||"#ffffff",text:G.colors.text||"#343a40",border:G.colors.border||"#dee2e6",disabled:G.colors.disabled||"#808080",disabledBackground:G.colors.disabledBackground||"#F5F5F5",disabledText:G.colors.disabledText||"#808080"}},te=s2(()=>{const ne=QA({theme:Ks,mode:"light"},F||{});return QA(ne,t||{})},[F,t]),L={...t,theme:Z},[N,K]=ke([]),[_,ee]=ke(()=>an(qo,A));Ue(()=>{if(A){const Ie=an(qo,A);ee(Ie)}},[A]);const oe=(Ie,ne)=>{switch(console.log("Event emitted:",Ie,ne),Ie){case"sender:action_upload":E.current&&E.current.click();break;case"fileChanges":S(ne);break;case"fileManager:change":{typeof(ne==null?void 0:ne.setUploadedFiles)=="function"&&(d.current=ne.setUploadedFiles,a.current=ne.removeFile,u.current=ne==null?void 0:ne.senderConfig,g.current=Array.isArray(ne==null?void 0:ne.uploadedFiles)?ne.uploadedFiles:[],Array.isArray(ne==null?void 0:ne.uploadedFiles)&&b(ne.uploadedFiles));break}case"sender:stop":p("handleStopMessage");break;case"assistant:change":T(we=>we.map(re=>re.id===ne.id?{...re,configId:ne.configId}:re));break;case"sender:configChange":ne&&ne.all&&B(ne.all);break;case"sender:change":ge(ne);break;case"sender:send":{p("handleSendMessage");break}}},{handleMessageChange:ge,clearInput:ce,inputValue:de,handleUploadFiles:Fe,uploadedFiles:be,handleRemoveFile:ae}=ow({senderConfig:A,handleEventsEmit:oe}),Ce=Ie=>{O(Ie.all)},ye=()=>{const Ie=Bt(32);y.current.set(Ie,{current:Ie});const ne=new Set(v.map(ue=>ue.configId).filter(Boolean));let we="";const re=X.find(ue=>!ne.has(ue.value));re?we=re.value:X.length&&(we=X[0].value),T(ue=>[...ue,{id:Ie,configId:we}])},ve=Ie=>{T(ne=>{if(ne.length<=2)return ne;const we=ne.findIndex(ze=>ze.id===Ie);if(we===-1)return ne;const re=ne[we],ue=y.current.get(re.id),De=ue==null?void 0:ue.current;if(De&&typeof(De==null?void 0:De.unmount)=="function")try{De.unmount()}catch{}return y.current.delete(re.id),[...ne.slice(0,we),...ne.slice(we+1)]})},Oe=Ie=>Ie.map(ne=>{const we=JSON.parse(ne.configJson);return{details:{model_name:we.model_name||"",temperature:we.temperature||"",max_tokens:we.max_tokens||""},label:ne.name,value:ne.id}}),Ze=async()=>{try{const Ie=await rQ({token:e});if(Ie.length){const ne=Oe(Ie);U(ne),T(we=>we.map((re,ue)=>{var De;return{...re,configId:((De=ne==null?void 0:ne[ue])==null?void 0:De.value)||""}})),x(!1)}}catch(Ie){console.log("error",Ie)}},fe=s2(()=>w.uploadedFiles||[],[w]);s3({fileManagerData:{uploadedFiles:fe},styles:te,eventsEmit:oe});const Be=Ie=>{const ne=Ie.target.files;if(ne&&ne.length>0){console.log("[DEBUG] handleFileSelect \u89E6\u53D1",{filesCount:ne.length,hasSetUploadedFilesRef:!!d.current,hasSenderConfig:!!u.current,dynamicSenderConfig:_,dynamicSenderConfigKeys:_?Object.keys(_):[],senderConfigRef:u.current,senderConfigRefKeys:u.current?Object.keys(u.current):[]});const we=Array.from(ne);let re=u.current;(!re||re.upload_size_limit===void 0&&re.upload_number_limit===void 0&&(!re.upload_file_type_limit||re.upload_file_type_limit.length===0))&&(re=_);const ue=g.current||[];console.log("[DEBUG] \u9A8C\u8BC1\u914D\u7F6E\u68C0\u67E5",{configSource:re,upload_number_limit:re==null?void 0:re.upload_number_limit,upload_size_limit:re==null?void 0:re.upload_size_limit,existingFilesCount:ue.length,newFilesCount:we.length});const De=re&&(re.upload_size_limit!==void 0||re.upload_number_limit!==void 0&&re.upload_number_limit>0||re.upload_file_type_limit&&re.upload_file_type_limit.length>0);if(console.log("[DEBUG] \u914D\u7F6E\u68C0\u67E5\u7ED3\u679C",{hasUploadLimitConfig:De,upload_number_limit:re==null?void 0:re.upload_number_limit,upload_size_limit:re==null?void 0:re.upload_size_limit,upload_file_type_limit:re==null?void 0:re.upload_file_type_limit}),De){const ze={upload_size_limit:re.upload_size_limit,upload_number_limit:re.upload_number_limit,upload_file_type_limit:re.upload_file_type_limit,upload_limit_message:re.upload_limit_message};console.log("[DEBUG] \u6267\u884C\u6587\u4EF6\u9A8C\u8BC1",{uploadConfig:ze,existingFilesCount:ue.length,newFilesCount:we.length,totalCount:ue.length+we.length});const Ge=r3(we,ue,ze);if(console.log("[DEBUG] \u9A8C\u8BC1\u7ED3\u679C",{valid:Ge.valid,errors:Ge.errors,rejectedFilesCount:Ge.rejectedFiles.length}),!Ge.valid){n3(Ge);const B2=we.filter(Ne=>!Ge.rejectedFiles.includes(Ne));if(B2.length===0){E.current&&(E.current.value="");return}we.splice(0,we.length,...B2)}}if(d.current){const ze=we.map(Ge=>({file:Ge,type:Ge.type.startsWith("image/")?"image":"document",status:"pending",name:Ge.name}));console.log("[DEBUG] \u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ze),d.current(ze)}else console.warn("[DEBUG] setUploadedFilesRef \u672A\u8BBE\u7F6E\uFF0C\u5EF6\u8FDF\u91CD\u8BD5"),setTimeout(()=>{if(d.current){const ze=we.map(Ge=>({file:Ge,type:Ge.type.startsWith("image/")?"image":"document",status:"pending",name:Ge.name}));console.log("[DEBUG] \u5EF6\u8FDF\u540E\u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ze),d.current(ze)}else console.error("[DEBUG] \u5EF6\u8FDF\u540E setUploadedFilesRef \u4ECD\u672A\u8BBE\u7F6E")},100)}E.current&&(E.current.value="")},Qe=s2(()=>{const Ie=v.map(ne=>{var we;return(we=ne==null?void 0:ne.appStatus)==null?void 0:we.sender}).filter(Boolean);return console.log("chatItems",v),Ie.includes("error")?"error":Ie.includes("uploading")?"uploading":Ie.includes("processing")?"processing":"ready"},[v]);return Ue(()=>{console.log("senderStatus",Qe)},[Qe]),Ue(()=>{x(!0),Ze()},[]),Ee("div",{style:{display:"flex",gap:"20px",height:"100%",boxSizing:"border-box",flexDirection:"column",position:"relative"},className:"selfScrollBar",ref:s,children:[Ee("div",{style:{display:"flex",gap:"20px",height:"calc(100% - 195px)",overflowX:"auto"},children:[V("input",{ref:E,type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.txt,.md,.json,.csv,.zip,.rar,.7z,.ofd",style:{display:"none"},onChange:Be}),v.map((Ie,ne)=>{const we=y.current.get(Ie.id);return V(cQ,{index:ne,ref:we,item:Ie,scrollOld:i,token:e,styles:t,status:Qe,inputValue:de,uploadedFiles:be,senderSwitchValues:k,clearInput:ce,configLoading:Y,showRemoveIcon:(v==null?void 0:v.length)>2,assistantList:X.filter(re=>re.value===Ie.configId||v.every(ue=>ue.configId!==re.value)),emitEvent:oe,onRemove:ve,senderConfig:_,normalizedStyles:te,setChatItems:T},Ie.id)})]}),Ee("div",{style:{flex:1,display:"flex",justifyContent:"center",alignItems:"end"},children:[V(KQ,{value:de,status:Qe,styles:L,recommandQuestions:[],eventsEmit:(Ie,ne)=>{oe(Ie,ne)},uploadedFiles:be,fileUploadStatus:N,onUpload:Fe,onRemoveFile:ae,senderConfig:A,onSenderConfigChange:Ce,disclaimer:r}),V("div",{className:"flex absolute text-[12px] cursor-pointer z-20",style:{left:"24px",bottom:"150px"},children:V(t3,{count:v.length,size:"small",color:"#1677ff",children:V(Mi,{icon:V(_6,{className:"w-3"}),onClick:ye,type:"link",disabled:v.length>=(n||10),size:"small",children:"\u6DFB\u52A0\u52A9\u624B"})})})]})]})};export{Lw as C,g7 as D,s7 as F,l7 as G,EC as N,C7 as T,u7 as W,e7 as a,E7 as b,sr as c,h7 as d,xw as e,f7 as f,p7 as g,Mw as h,Sw as i,Pw as j,kw as k,Tw as l,c7 as m,A7 as n,$s as o,ea as p,d7 as q,bw as r,Dw as s,yw as t,s3 as u,vw as v,o7 as w};
package/chat.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as G,w as H}from"./assets/ReviewManage-bo3oWSa2.js";import"./assets/index-Bttzd-R0.js";import"./assets/index-B3i3ClAr.js";/* empty css *//* empty css */import"./assets/index-DDOYnvar.js";import{registerPDFWorker as J}from"@mxmweb/fviewer";import"./assets/lodash-Damzdmsp.js";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"./assets/GientechStreamReader-_ih9ja1B.js";import"styled-components";import"./database.js";import"@mxmweb/xviewer";import"./databaseId.js";import"./assets/triangle-alert-LqO4u4ts.js";import"./assets/loader-circle-C1Oa97Sz.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assets/circle-plus-RlDPoPkb.js";import"./oprecords.js";import"./assets/index-CJfOfBmA.js";import"react-dom";export{G as DrawerType,H as default,J as registerPDFWorker};
1
+ import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as G,w as H}from"./assets/ReviewManage-1zLs2EkP.js";import"./assets/index-DmyNs9eP.js";import"./assets/index-yfKSY1ed.js";/* empty css *//* empty css */import"./assets/index-DDOYnvar.js";import{registerPDFWorker as J}from"@mxmweb/fviewer";import"./assets/lodash-Damzdmsp.js";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"./assets/GientechStreamReader-_ih9ja1B.js";import"styled-components";import"./database.js";import"@mxmweb/xviewer";import"./databaseId.js";import"./assets/triangle-alert-LqO4u4ts.js";import"./assets/loader-circle-C1Oa97Sz.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assets/circle-plus-RlDPoPkb.js";import"./oprecords.js";import"./assets/index-CJfOfBmA.js";import"react-dom";export{G as DrawerType,H as default,J as registerPDFWorker};
package/chatCompare.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import{C as j,C as k}from"./assets/index-B3i3ClAr.js";import"react";import"@mxmweb/zui";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/aichat";import"./assets/circle-plus-RlDPoPkb.js";import"@mxmweb/rtext";import"dayjs";import"axios";import"./assets/index-DDOYnvar.js";import"react-dom";import"./assets/GientechStreamReader-_ih9ja1B.js";import"styled-components";import"@mxmweb/fviewer";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";import"./assets/loader-circle-C1Oa97Sz.js";export{j as ChatCompareComponent,k as default};
1
+ import"react/jsx-runtime";import{C as j,C as k}from"./assets/index-yfKSY1ed.js";import"react";import"@mxmweb/zui";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/aichat";import"./assets/circle-plus-RlDPoPkb.js";import"@mxmweb/rtext";import"dayjs";import"axios";import"./assets/index-DDOYnvar.js";import"react-dom";import"./assets/GientechStreamReader-_ih9ja1B.js";import"styled-components";import"@mxmweb/fviewer";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";import"./assets/loader-circle-C1Oa97Sz.js";export{j as ChatCompareComponent,k as default};
package/graphBase.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"react-dom";import"@mxmweb/zui";import"@mxmweb/xviewer";/* empty css */import"styled-components";import{G as b}from"./assets/index-Bttzd-R0.js";import"antd";import"./assets/index-DDOYnvar.js";import"dayjs";import"axios";import"./assets/lodash-Damzdmsp.js";import"./assets/index-CpW6Dhpp.js";export{b as default};
1
+ import"react/jsx-runtime";import"react";import"react-dom";import"@mxmweb/zui";import"@mxmweb/xviewer";/* empty css */import"styled-components";import{G as b}from"./assets/index-DmyNs9eP.js";import"antd";import"./assets/index-DDOYnvar.js";import"dayjs";import"axios";import"./assets/lodash-Damzdmsp.js";import"./assets/index-CpW6Dhpp.js";export{b as default};
package/index.js CHANGED
@@ -1 +1 @@
1
- import{D as c,a as G,L as T,d as k,R as y,b as F,g as W,u as j,c as q}from"./assets/ReviewManage-bo3oWSa2.js";import"./assets/index-Bttzd-R0.js";import{C as B}from"./assets/index-B3i3ClAr.js";import"./database.js";import{DatabaseIdI18nContext as H,DatabaseIdI18nProvider as J,getDatabaseIdMessages as K,useDatabaseIdI18n as N}from"./databaseId.js";import"./databaseTable.js";import"react/jsx-runtime";import"antd";import"react";import"axios";import{ModelManageI18nContext as Q,ModelManageI18nProvider as U,getModelManageMessages as V,interpolateModelManage as X,useModelManageI18n as Y}from"./modelManage.js";import{SensitiveI18nContext as _,SensitiveI18nProvider as $,getSensitiveMessages as ee,interpolate as te,useSensitiveI18n as oe}from"./sensitive.js";import"./oprecords.js";import{G as ie}from"./assets/GientechStreamReader-_ih9ja1B.js";import{a as se,A as ne,p as pe,g as me,u as ge}from"./assets/index-CJfOfBmA.js";import{registerPDFWorker as de}from"@mxmweb/fviewer";import"@mxmweb/aichat";import"@mxmweb/rtext";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import"./assets/lodash-Damzdmsp.js";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"./assets/index-DDOYnvar.js";import"react-dom";/* empty css *//* empty css */import"styled-components";import"@mxmweb/xviewer";import"./assets/loader-circle-C1Oa97Sz.js";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/triangle-alert-LqO4u4ts.js";export{se as AssistantConfigI18nContext,ne as AssistantConfigI18nProvider,B as ChatCompareComponent,H as DatabaseIdI18nContext,J as DatabaseIdI18nProvider,c as DrawerType,ie as GientechStreamReader,G as LoginI18nContext,T as LoginI18nProvider,Q as ModelManageI18nContext,U as ModelManageI18nProvider,k as ReviewManage,y as ReviewSetting,F as ReviewSettingI18nProvider,_ as SensitiveI18nContext,$ as SensitiveI18nProvider,pe as defaultTheme,me as getAssistantConfigMessages,K as getDatabaseIdMessages,W as getLoginMessages,V as getModelManageMessages,ee as getSensitiveMessages,te as interpolate,X as interpolateModelManage,de as registerPDFWorker,ge as useAssistantConfigI18n,N as useDatabaseIdI18n,j as useLoginI18n,Y as useModelManageI18n,q as useReviewSettingI18n,oe as useSensitiveI18n};
1
+ import{D as c,a as G,L as T,d as k,R as y,b as F,g as W,u as j,c as q}from"./assets/ReviewManage-1zLs2EkP.js";import"./assets/index-DmyNs9eP.js";import{C as B}from"./assets/index-yfKSY1ed.js";import"./database.js";import{DatabaseIdI18nContext as H,DatabaseIdI18nProvider as J,getDatabaseIdMessages as K,useDatabaseIdI18n as N}from"./databaseId.js";import"./databaseTable.js";import"react/jsx-runtime";import"antd";import"react";import"axios";import{ModelManageI18nContext as Q,ModelManageI18nProvider as U,getModelManageMessages as V,interpolateModelManage as X,useModelManageI18n as Y}from"./modelManage.js";import{SensitiveI18nContext as _,SensitiveI18nProvider as $,getSensitiveMessages as ee,interpolate as te,useSensitiveI18n as oe}from"./sensitive.js";import"./oprecords.js";import{G as ie}from"./assets/GientechStreamReader-_ih9ja1B.js";import{a as se,A as ne,p as pe,g as me,u as ge}from"./assets/index-CJfOfBmA.js";import{registerPDFWorker as de}from"@mxmweb/fviewer";import"@mxmweb/aichat";import"@mxmweb/rtext";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import"./assets/lodash-Damzdmsp.js";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"./assets/index-DDOYnvar.js";import"react-dom";/* empty css *//* empty css */import"styled-components";import"@mxmweb/xviewer";import"./assets/loader-circle-C1Oa97Sz.js";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/triangle-alert-LqO4u4ts.js";export{se as AssistantConfigI18nContext,ne as AssistantConfigI18nProvider,B as ChatCompareComponent,H as DatabaseIdI18nContext,J as DatabaseIdI18nProvider,c as DrawerType,ie as GientechStreamReader,G as LoginI18nContext,T as LoginI18nProvider,Q as ModelManageI18nContext,U as ModelManageI18nProvider,k as ReviewManage,y as ReviewSetting,F as ReviewSettingI18nProvider,_ as SensitiveI18nContext,$ as SensitiveI18nProvider,pe as defaultTheme,me as getAssistantConfigMessages,K as getDatabaseIdMessages,W as getLoginMessages,V as getModelManageMessages,ee as getSensitiveMessages,te as interpolate,X as interpolateModelManage,de as registerPDFWorker,ge as useAssistantConfigI18n,N as useDatabaseIdI18n,j as useLoginI18n,Y as useModelManageI18n,q as useReviewSettingI18n,oe as useSensitiveI18n};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "style": "assets/style.css",
5
5
  "private": false,
6
- "version": "2.3.13",
6
+ "version": "2.3.15",
7
7
  "author": "hanfeng_Zhang",
8
8
  "type": "module",
9
9
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "dependencies": {
93
93
  "@mxmweb/aichat": "2.2.1",
94
94
  "@mxmweb/fviewer": "1.5.7",
95
- "@mxmweb/rtext": "1.7.7",
95
+ "@mxmweb/rtext": "1.7.8",
96
96
  "@mxmweb/xviewer": "1.4.15",
97
97
  "@mxmweb/zui": "1.4.0",
98
98
  "antd": "^5.18.0",