@gientech/modual 2.2.19 → 2.2.20

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.
@@ -1,4 +1,4 @@
1
- import{jsxs as At,jsx as Se,Fragment as Ep}from"react/jsx-runtime";import*as _ from"react";import je,{forwardRef as da,createElement as xd,createContext as ic,version as DK,useMemo as cn,useContext as Ar,useState as vt,useRef as ot,Children as PK,useEffect as kt,useCallback as $i,useImperativeHandle as jl,useLayoutEffect as YB,cloneElement as RK,isValidElement as XB}from"react";import{T as LK,F as FK,q as BK,a as jK}from"./index-7vlgiCIK.js";import{b as di,a as KB,T as zK,c as Zc,d as UK}from"./index-BbQ5_tfg.js";import{c as Ik,j as jf,a as QB,m as HK,C as Nk,az as ZB,ar as JB,ag as VK,aK as qK,H as Ed,ax as WK,u as GK,l as YK,F as Kr,T as zf,a4 as XK,G as Xm,J as zc,aH as Dk,bp as KK,S as e9,x as pO,f as gO}from"./index-DCnYE71u.js";import{u as fs}from"./index-CpW6Dhpp.js";import{G as t9,C as QK}from"./GientechStreamReader-C4xVfNQX.js";import{S as ZK,P as JK}from"./index-O8MDfMV6.js";import{D as n9}from"./index-zCzB-56N.js";import{A as eQ,s as xa,M as tQ}from"./index-DiTGnLML.js";import{i as mO}from"./index-CaKTISxy.js";import{g as vO,a as nQ,P as r9,L as yO}from"./index-BB-K4Uv2.js";import{X as Pk}from"./x-BHe7G4Ln.js";import{B as i9}from"./index-DIaywdNt.js";import*as rQ from"react-dom";import bO,{flushSync as US,createPortal as a9,unstable_batchedUpdates as iQ}from"react-dom";import{C as aQ}from"./circle-plus-Bqwlq2UM.js";/**
1
+ import{jsxs as At,jsx as Se,Fragment as Ep}from"react/jsx-runtime";import*as _ from"react";import je,{forwardRef as da,createElement as xd,createContext as ic,version as DK,useMemo as cn,useContext as Ar,useState as vt,useRef as ot,Children as PK,useEffect as kt,useCallback as $i,useImperativeHandle as jl,useLayoutEffect as YB,cloneElement as RK,isValidElement as XB}from"react";import{T as LK,F as FK,q as BK,a as jK}from"./index-g1ObzlRk.js";import{b as di,a as KB,T as zK,c as Zc,d as UK}from"./index-BbQ5_tfg.js";import{c as Ik,j as jf,a as QB,m as HK,C as Nk,az as ZB,ar as JB,ag as VK,aK as qK,H as Ed,ax as WK,u as GK,l as YK,F as Kr,T as zf,a4 as XK,G as Xm,J as zc,aH as Dk,bp as KK,S as e9,x as pO,f as gO}from"./index-DCnYE71u.js";import{u as fs}from"./index-CpW6Dhpp.js";import{G as t9,C as QK}from"./GientechStreamReader-ClJ18ke0.js";import{S as ZK,P as JK}from"./index-O8MDfMV6.js";import{D as n9}from"./index-zCzB-56N.js";import{A as eQ,s as xa,M as tQ}from"./index-DiTGnLML.js";import{i as mO}from"./index-CaKTISxy.js";import{g as vO,a as nQ,P as r9,L as yO}from"./index-BB-K4Uv2.js";import{X as Pk}from"./x-BHe7G4Ln.js";import{B as i9}from"./index-DIaywdNt.js";import*as rQ from"react-dom";import bO,{flushSync as US,createPortal as a9,unstable_batchedUpdates as iQ}from"react-dom";import{C as aQ}from"./circle-plus-Bqwlq2UM.js";/**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -935,7 +935,7 @@ ${v.substring(ae)}`;y(ve),requestAnimationFrame(()=>{ee.selectionStart=ee.select
935
935
  -ms-overflow-style: none; /* IE/Edge - \u9690\u85CF\u6EDA\u52A8\u6761 */
936
936
  scrollbar-width: none; /* Firefox - \u9690\u85CF\u6EDA\u52A8\u6761 */
937
937
  }
938
- `,document.head.appendChild(W)},[K,H,D]),At("div",{className:"absolute w-full bottom-0 z-20 pb-[env(safe-area-inset-bottom)] bg-transparent!",children:[Se("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),Se("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),At("div",{className:"relative mx-auto px-8",style:{maxWidth:1e3,width:"85%",boxSizing:"border-box"},children:[At("div",{className:"p-3",style:{width:"100%",boxSizing:"border-box"},children:[Se("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:S&&k.map((W,ee)=>Se("button",{onClick:()=>{e&&e("sender:send_recommandQuestion",{content:W,clearFn:()=>{e&&e("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:U,color:X,border:"none"},onMouseEnter:Q=>{Q.currentTarget.style.color=z},onMouseOut:Q=>{Q.currentTarget.style.color=X},children:W},ee))}),Se("div",{className:"sender-container-gradient relative w-full rounded-[28px] transition-all duration-200",style:{padding:"1px",background:"transparent"},children:At("div",{className:"flex flex-col items-end w-full rounded-[28px] shadow-sm transition-all duration-200",style:{backgroundColor:G,border:`0.5px solid ${H}`,padding:"0 16px 12px 16px"},children:[$.length>0&&Se("div",{className:"files-display-wrapper w-full mb-2 overflow-x-auto",style:{maxHeight:"120px",paddingTop:"12px"},children:Se(VNe,{styles:n,uploadedFiles:$,onRemoveFile:s||(()=>{}),eventsEmit:e})}),Se("textarea",{ref:f,value:v,onChange:w,onPaste:x,onKeyDown:E,onFocus:C,rows:1,placeholder:"\u8F93\u5165\u95EE\u9898\u540E\u6309Enter\u53D1\u9001,Shift+Enter\u8FDB\u884C\u6362\u884C",className:`flex-1 w-full min-w-0 py-2 resize-none outline-none border-none min-h-[85px]
938
+ `,document.head.appendChild(W)},[K,H,D]),At("div",{className:"absolute w-full bottom-0 z-20 pb-[env(safe-area-inset-bottom)] bg-transparent!",children:[Se("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),Se("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),At("div",{className:"relative mx-auto px-8",style:{maxWidth:1e3,width:"85%",boxSizing:"border-box"},children:[At("div",{className:"p-3",style:{width:"100%",boxSizing:"border-box"},children:[Se("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:S&&k.map((W,ee)=>Se("button",{onClick:()=>{e&&e("sender:send_recommandQuestion",{content:W,clearFn:()=>{e&&e("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:U,color:X,border:"none"},onMouseEnter:Q=>{Q.currentTarget.style.color=z},onMouseOut:Q=>{Q.currentTarget.style.color=X},children:W},ee))}),Se("div",{className:"sender-container-gradient relative w-full rounded-[28px] transition-all duration-200",style:{padding:"1px",background:"transparent"},children:At("div",{className:"flex flex-col items-end w-full rounded-[28px] shadow-sm transition-all duration-200",style:{backgroundColor:G,border:`0.5px solid ${H}`,padding:"0 16px 12px 16px"},children:[$.length>0&&Se("div",{className:"files-display-wrapper w-full mb-2 overflow-x-auto",style:{maxHeight:"120px",paddingTop:"12px"},children:Se(VNe,{styles:n,uploadedFiles:$,onRemoveFile:s||(()=>{}),eventsEmit:e})}),Se("textarea",{ref:f,value:v,onChange:w,onPaste:x,onKeyDown:E,onFocus:C,rows:1,placeholder:"\u8F93\u5165\u95EE\u9898\u540E\u6309Enter\u53D1\u9001,Shift+Enter\u8FDB\u884C\u6362\u884C",className:`flex-1 w-full min-w-0 py-2 resize-none outline-none border-none min-h-[85px]\r
939
939
  max-h-[180px] text-[14px] leading-[24px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:N,whiteSpace:"pre-wrap"}}),At("div",{className:"flex items-center justify-between w-full ml-3 space-x-1.5 shrink-0 whitespace-nowrap",children:[Se("div",{children:Se("div",{className:"flex items-center gap-4",children:m.filter(W=>W.enabled!==!1).map(W=>W.type==="select"?At("div",{className:"flex items-center gap-2",children:[At("span",{className:"text-xs",style:{color:N},children:[W.label,":"]}),Se(GNe,{value:p[W.name],onChange:ee=>{g(Q=>({...Q,[W.name]:ee}))},options:W.options||[],styles:n,disabled:!W.enabled,placeholder:W.label})]},W.name):Se(WNe,{styles:n,checked:p[W.name],disabled:!W.enabled,onChange:ee=>{g(Q=>({...Q,[W.name]:ee}))},icon:W.icon,children:W.label},W.name))})}),At("div",{className:"flex items-center justify-end",children:[P.filter(W=>W.enabled!==!1).map((W,ee)=>{const Q=Se("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:N,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},onClick:()=>{W.name==="clear"?e&&e("sender:clear"):e&&e(`sender:action_${W.name}`)},children:W.icon}),ae=W.tip?Se(zf,{title:W.tip,placement:"top",styles:{body:{backgroundColor:"#4E5969",color:"#ffffff",fontSize:"12px",padding:"6px 12px",borderRadius:"6px"},root:{maxWidth:"300px"}},children:Q}):Q;return W.badgeCount===void 0?Se(je.Fragment,{children:ae},W.name||ee):Se(i9,{count:W.badgeCount,size:"small",style:{backgroundColor:B,color:F,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],children:ae},(W.name||ee)+"-badge")}),l.actions&&Se("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:H}}),Se("div",{className:`
940
940
  relative w-[35px] h-8 flex items-center justify-center rounded-full group overflow-hidden shadow-sm
941
941
  transition-all duration-200