@gientech/modual 2.2.1 → 2.2.2
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/README.md +761 -761
- package/assets/{GientechStreamReader-C5jijqVw.js → GientechStreamReader-OCXcOLQC.js} +1 -1
- package/assets/{LeftOutlined-9XTSYGbi.js → LeftOutlined-DZMeGbKk.js} +1 -1
- package/assets/database.svg +11 -11
- package/assets/database_add.svg +53 -53
- package/assets/database_connect.svg +66 -66
- package/assets/database_upload.svg +29 -29
- package/assets/databse.svg +6 -6
- package/assets/defaultWeLogo.svg +14 -14
- package/assets/graph.svg +4 -4
- package/assets/iconAi.svg +9 -9
- package/assets/{index-BxR_BLxA.js → index-97Oe7YBe.js} +1 -1
- package/assets/{index-DaM9Fbys.js → index-B4k3tK0f.js} +1 -1
- package/assets/index-BIEKgWu0.js +27 -0
- package/assets/{index-B64Nj5uU.js → index-CGHHoZNS.js} +2 -2
- package/assets/index-CzZQWA2P.js +1 -0
- package/assets/{index-BvpN2hYX.js → index-DHK_n74G.js} +2 -2
- package/assets/{index-sWqCalkt.js → index-DPA1HCWQ.js} +233 -168
- package/assets/index-Dj91ulxd.js +646 -0
- package/assets/{index-hDlFWjNU.js → index-Dp4XCzCf.js} +1 -1
- package/assets/{index-D3Z0MZbL.js → index-iOuQJ8vu.js} +4 -4
- package/assets/{index-B872BsjL.js → index-usBlUHOb.js} +2 -2
- package/assets/knowledge.svg +4 -4
- package/assets/mysql.svg +14 -14
- package/assets/{plus-DDbDO7lA.js → plus-BICgMvz9.js} +1 -1
- package/assets/{search-BoBdGjgo.js → search-CD5YKija.js} +1 -1
- package/assets/sensitive.svg +5 -5
- package/assets/{style-DwfpZJI9.js → style-IJGVxGIy.js} +2 -2
- package/assets/style2.css +1 -1
- package/assets/style4.css +1 -1
- package/assets/{triangle-alert-DF53kXdm.js → triangle-alert-C4Z1AkGW.js} +1 -1
- package/assets/{x-DfdS1_QC.js → x-DWGzNb9c.js} +1 -1
- package/assistantConfig.js +28 -28
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/databaseId.d.ts +107 -2
- package/databaseId.js +1 -1
- package/databaseTable.js +2 -2
- package/index.d.ts +104 -0
- package/index.js +1 -1
- package/modelManage.js +1 -1
- package/package.json +6 -6
- package/sensitive.js +6 -6
- package/streamFilesReader.js +1 -1
- package/worker/pdf.worker.min.js +21 -21
- package/assets/index-BIrUv1JE.js +0 -576
- package/assets/index-Bk-pRt65.js +0 -27
- package/assets/index-CkVpaVb6.js +0 -1
- package/assets/index-SbYeytsI.js +0 -1
package/assets/index-Bk-pRt65.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import*as i from"react";import ce,{forwardRef as Dt,useMemo as Po,useRef as je,useCallback as Ee,useImperativeHandle as yn,createContext as Oo}from"react";import{R as Eo,a as No}from"./LeftOutlined-9XTSYGbi.js";import{b6 as Te,K as pe,a3 as In,b7 as At,b8 as Sn,O as de,W as ee,e as V,b9 as xn,_ as te,Y as K,ba as Bo,bb as wn,X as J,G as xe,bc as To,p as Ve,V as Mn,Q as Rn,aC as we,aV as Do,aW as Ao,aX as _o,aZ as zo,bd as We,t as Pn,z as ko,a9 as Ho,I as Lo,n as ct,s as ut,T as jo,be as Ko,a5 as Vo,x as T,ab as Wo,a_ as Fo,g as On,m as Mt,b1 as Xo,bf as it,f as En,aJ as rn,r as Nn,aR as an,bg as qo,a4 as Bn,aq as Rt,as as Tn,b4 as Go,bh as Uo,bi as Yo,bj as Zo,bk as Jo,j as Qo,bl as ln,a2 as sn,l as er,k as tr,ax as nr,ai as or,bm as rr,a6 as ir,bn as ar,bo as lr,N as cn}from"./index-BvpN2hYX.js";import{flushSync as sr}from"react-dom";import{S as cr}from"./index-SbYeytsI.js";var ur=pe.ESC,dr=pe.TAB;function mr(e){var n=e.visible,t=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,l=e.overlayRef,a=i.useRef(!1),s=function(){if(n){var u,m;(u=t.current)===null||u===void 0||(m=u.focus)===null||m===void 0||m.call(u),o==null||o(!1)}},c=function(){var u;return(u=l.current)!==null&&u!==void 0&&u.focus?(l.current.focus(),a.current=!0,!0):!1},d=function(u){switch(u.keyCode){case ur:s();break;case dr:{var m=!1;a.current||(m=c()),m?u.preventDefault():s();break}}};i.useEffect(function(){return n?(window.addEventListener("keydown",d),r&&Te(c,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[n])}var vr=Dt(function(e,n){var t=e.overlay,o=e.arrow,r=e.prefixCls,l=Po(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),a=In(n,At(l));return ce.createElement(ce.Fragment,null,o&&ce.createElement("div",{className:"".concat(r,"-arrow")}),ce.cloneElement(l,{ref:Sn(l)?a:void 0}))}),Ne={adjustX:1,adjustY:1},Be=[0,0],pr={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-4],targetOffset:Be},top:{points:["bc","tc"],overflow:Ne,offset:[0,-4],targetOffset:Be},topRight:{points:["br","tr"],overflow:Ne,offset:[0,-4],targetOffset:Be},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,4],targetOffset:Be},bottom:{points:["tc","bc"],overflow:Ne,offset:[0,4],targetOffset:Be},bottomRight:{points:["tr","br"],overflow:Ne,offset:[0,4],targetOffset:Be}},fr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function gr(e,n){var t,o=e.arrow,r=o===void 0?!1:o,l=e.prefixCls,a=l===void 0?"rc-dropdown":l,s=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?pr:m,v=e.getPopupContainer,p=e.showAction,b=e.hideAction,y=e.overlayClassName,w=e.overlayStyle,I=e.visible,C=e.trigger,$=C===void 0?["hover"]:C,h=e.autoFocus,N=e.overlay,S=e.children,x=e.onVisibleChange,B=de(e,fr),P=ce.useState(),M=ee(P,2),O=M[0],R=M[1],_="visible"in e?I:O,W=ce.useRef(null),E=ce.useRef(null),z=ce.useRef(null);ce.useImperativeHandle(n,function(){return W.current});var G=function(X){R(X),x==null||x(X)};mr({visible:_,triggerRef:z,onVisibleChange:G,autoFocus:h,overlayRef:E});var U=function(X){var H=e.onOverlayClick;R(!1),H&&H(X)},Z=function(){return ce.createElement(vr,{ref:E,overlay:N,prefixCls:a,arrow:r})},Y=function(){return typeof N=="function"?Z:Z()},D=function(){var X=e.minOverlayWidthMatchTrigger,H=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!H},k=function(){var X=e.openClassName;return X!==void 0?X:"".concat(a,"-open")},F=ce.cloneElement(S,{className:V((t=S.props)===null||t===void 0?void 0:t.className,_&&k()),ref:Sn(S)?In(z,At(S)):void 0}),re=b;return!re&&$.indexOf("contextMenu")!==-1&&(re=["click"]),ce.createElement(xn,te({builtinPlacements:g},B,{prefixCls:a,ref:W,popupClassName:V(y,K({},"".concat(a,"-show-arrow"),r)),popupStyle:w,action:$,showAction:p,hideAction:re,popupPlacement:u,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:_,stretch:D()?"minWidth":"",popup:Y(),onPopupVisibleChange:G,onPopupClick:U,getPopupContainer:v}),F)}const br=ce.forwardRef(gr),hr=e=>typeof e!="object"&&typeof e!="function"||e===null;var Dn=i.createContext(null);function An(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function _n(e){var n=i.useContext(Dn);return An(n,e)}var $r=["children","locked"],ve=i.createContext(null);function Cr(e,n){var t=J({},e);return Object.keys(n).forEach(function(o){var r=n[o];r!==void 0&&(t[o]=r)}),t}function Fe(e){var n=e.children,t=e.locked,o=de(e,$r),r=i.useContext(ve),l=Bo(function(){return Cr(r,o)},[r,o],function(a,s){return!t&&(a[0]!==s[0]||!wn(a[1],s[1],!0))});return i.createElement(ve.Provider,{value:l},n)}var yr=[],zn=i.createContext(null);function dt(){return i.useContext(zn)}var kn=i.createContext(yr);function De(e){var n=i.useContext(kn);return i.useMemo(function(){return e!==void 0?[].concat(xe(n),[e]):n},[n,e])}var Hn=i.createContext(null),_t=i.createContext({});function un(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(To(e)){var t=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),l=Number(r),a=null;return r&&!Number.isNaN(l)?a=l:o&&a===null&&(a=0),o&&e.disabled&&(a=null),a!==null&&(a>=0||n&&a<0)}return!1}function Ir(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=xe(e.querySelectorAll("*")).filter(function(o){return un(o,n)});return un(e,n)&&t.unshift(e),t}var Pt=pe.LEFT,Ot=pe.RIGHT,Et=pe.UP,ot=pe.DOWN,rt=pe.ENTER,Ln=pe.ESC,He=pe.HOME,Le=pe.END,dn=[Et,ot,Pt,Ot];function Sr(e,n,t,o){var r,l="prev",a="next",s="children",c="parent";if(e==="inline"&&o===rt)return{inlineTrigger:!0};var d=K(K({},Et,l),ot,a),f=K(K(K(K({},Pt,t?a:l),Ot,t?l:a),ot,s),rt,s),u=K(K(K(K(K(K({},Et,l),ot,a),rt,s),Ln,c),Pt,t?s:c),Ot,t?c:s),m={inline:d,horizontal:f,vertical:u,inlineSub:d,horizontalSub:u,verticalSub:u},g=(r=m["".concat(e).concat(n?"":"Sub")])===null||r===void 0?void 0:r[o];switch(g){case l:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function xr(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function wr(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function zt(e,n){var t=Ir(e,!0);return t.filter(function(o){return n.has(o)})}function mn(e,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var r=zt(e,n),l=r.length,a=r.findIndex(function(s){return t===s});return o<0?a===-1?a=l-1:a-=1:o>0&&(a+=1),a=(a+l)%l,r[a]}var Nt=function(n,t){var o=new Set,r=new Map,l=new Map;return n.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(An(t,a),"']"));s&&(o.add(s),l.set(s,a),r.set(a,s))}),{elements:o,key2element:r,element2key:l}};function Mr(e,n,t,o,r,l,a,s,c,d){var f=i.useRef(),u=i.useRef();u.current=n;var m=function(){Te.cancel(f.current)};return i.useEffect(function(){return function(){m()}},[]),function(g){var v=g.which;if([].concat(dn,[rt,Ln,He,Le]).includes(v)){var p=l(),b=Nt(p,o),y=b,w=y.elements,I=y.key2element,C=y.element2key,$=I.get(n),h=wr($,w),N=C.get(h),S=Sr(e,a(N,!0).length===1,t,v);if(!S&&v!==He&&v!==Le)return;(dn.includes(v)||[He,Le].includes(v))&&g.preventDefault();var x=function(E){if(E){var z=E,G=E.querySelector("a");G!=null&&G.getAttribute("href")&&(z=G);var U=C.get(E);s(U),m(),f.current=Te(function(){u.current===U&&z.focus()})}};if([He,Le].includes(v)||S.sibling||!h){var B;!h||e==="inline"?B=r.current:B=xr(h);var P,M=zt(B,w);v===He?P=M[0]:v===Le?P=M[M.length-1]:P=mn(B,w,h,S.offset),x(P)}else if(S.inlineTrigger)c(N);else if(S.offset>0)c(N,!0),m(),f.current=Te(function(){b=Nt(p,o);var W=h.getAttribute("aria-controls"),E=document.getElementById(W),z=mn(E,b.elements);x(z)},5);else if(S.offset<0){var O=a(N,!0),R=O[O.length-2],_=I.get(R);c(R,!1),x(_)}}d==null||d(g)}}function Rr(e){Promise.resolve().then(e)}var kt="__RC_UTIL_PATH_SPLIT__",vn=function(n){return n.join(kt)},Pr=function(n){return n.split(kt)},Bt="rc-menu-more";function Or(){var e=i.useState({}),n=ee(e,2),t=n[1],o=je(new Map),r=je(new Map),l=i.useState([]),a=ee(l,2),s=a[0],c=a[1],d=je(0),f=je(!1),u=function(){f.current||t({})},m=Ee(function(I,C){var $=vn(C);r.current.set($,I),o.current.set(I,$),d.current+=1;var h=d.current;Rr(function(){h===d.current&&u()})},[]),g=Ee(function(I,C){var $=vn(C);r.current.delete($),o.current.delete(I)},[]),v=Ee(function(I){c(I)},[]),p=Ee(function(I,C){var $=o.current.get(I)||"",h=Pr($);return C&&s.includes(h[0])&&h.unshift(Bt),h},[s]),b=Ee(function(I,C){return I.filter(function($){return $!==void 0}).some(function($){var h=p($,!0);return h.includes(C)})},[p]),y=function(){var C=xe(o.current.keys());return s.length&&C.push(Bt),C},w=Ee(function(I){var C="".concat(o.current.get(I)).concat(kt),$=new Set;return xe(r.current.keys()).forEach(function(h){h.startsWith(C)&&$.add(r.current.get(h))}),$},[]);return i.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:b,getKeyPath:p,getKeys:y,getSubPathKeys:w}}function Ke(e){var n=i.useRef(e);n.current=e;var t=i.useCallback(function(){for(var o,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];return(o=n.current)===null||o===void 0?void 0:o.call.apply(o,[n].concat(l))},[]);return e?t:void 0}var Er=Math.random().toFixed(5).toString().slice(2),pn=0;function Nr(e){var n=Ve(e,{value:e}),t=ee(n,2),o=t[0],r=t[1];return i.useEffect(function(){pn+=1;var l="".concat(Er,"-").concat(pn);r("rc-menu-uuid-".concat(l))},[]),o}function jn(e,n,t,o){var r=i.useContext(ve),l=r.activeKey,a=r.onActive,s=r.onInactive,c={active:l===e};return n||(c.onMouseEnter=function(d){t==null||t({key:e,domEvent:d}),a(e)},c.onMouseLeave=function(d){o==null||o({key:e,domEvent:d}),s(e)}),c}function Kn(e){var n=i.useContext(ve),t=n.mode,o=n.rtl,r=n.inlineIndent;if(t!=="inline")return null;var l=e;return o?{paddingRight:l*r}:{paddingLeft:l*r}}function Vn(e){var n=e.icon,t=e.props,o=e.children,r;return n===null||n===!1?null:(typeof n=="function"?r=i.createElement(n,J({},t)):typeof n!="boolean"&&(r=n),r||o||null)}var Br=["item"];function at(e){var n=e.item,t=de(e,Br);return Object.defineProperty(t,"item",{get:function(){return Mn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var Tr=["title","attribute","elementRef"],Dr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ar=["active"],_r=(function(e){Do(t,e);var n=Ao(t);function t(){return _o(this,t),n.apply(this,arguments)}return zo(t,[{key:"render",value:function(){var r=this.props,l=r.title,a=r.attribute,s=r.elementRef,c=de(r,Tr),d=we(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Mn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(We.Item,te({},a,{title:typeof l=="string"?l:void 0},d,{ref:s}))}}]),t})(i.Component),zr=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.eventKey;e.warnKey;var l=e.disabled,a=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,u=e.onClick,m=e.onKeyDown,g=e.onFocus,v=de(e,Dr),p=_n(r),b=i.useContext(ve),y=b.prefixCls,w=b.onItemClick,I=b.disabled,C=b.overflowDisabled,$=b.itemIcon,h=b.selectedKeys,N=b.onActive,S=i.useContext(_t),x=S._internalRenderMenuItem,B="".concat(y,"-item"),P=i.useRef(),M=i.useRef(),O=I||l,R=Rn(n,M),_=De(r),W=function(H){return{key:r,keyPath:xe(_).reverse(),item:P.current,domEvent:H}},E=a||$,z=jn(r,O,d,f),G=z.active,U=de(z,Ar),Z=h.includes(r),Y=Kn(_.length),D=function(H){if(!O){var oe=W(H);u==null||u(at(oe)),w(oe)}},k=function(H){if(m==null||m(H),H.which===pe.ENTER){var oe=W(H);u==null||u(at(oe)),w(oe)}},F=function(H){N(r),g==null||g(H)},re={};e.role==="option"&&(re["aria-selected"]=Z);var Q=i.createElement(_r,te({ref:P,elementRef:R,role:c===null?"none":c||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&p?null:p},we(v,["extra"]),U,re,{component:"li","aria-disabled":l,style:J(J({},Y),t),className:V(B,K(K(K({},"".concat(B,"-active"),G),"".concat(B,"-selected"),Z),"".concat(B,"-disabled"),O),o),onClick:D,onKeyDown:k,onFocus:F}),s,i.createElement(Vn,{props:J(J({},e),{},{isSelected:Z}),icon:E}));return x&&(Q=x(Q,e,{selected:Z})),Q});function kr(e,n){var t=e.eventKey,o=dt(),r=De(t);return i.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]),o?null:i.createElement(zr,te({},e,{ref:n}))}const mt=i.forwardRef(kr);var Hr=["className","children"],Lr=function(n,t){var o=n.className,r=n.children,l=de(n,Hr),a=i.useContext(ve),s=a.prefixCls,c=a.mode,d=a.rtl;return i.createElement("ul",te({className:V(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),o),role:"menu"},l,{"data-menu-list":!0,ref:t}),r)},Ht=i.forwardRef(Lr);Ht.displayName="SubMenuList";function Lt(e,n){return Pn(e).map(function(t,o){if(i.isValidElement(t)){var r,l,a=t.key,s=(r=(l=t.props)===null||l===void 0?void 0:l.eventKey)!==null&&r!==void 0?r:a,c=s==null;c&&(s="tmp_key-".concat([].concat(xe(n),[o]).join("-")));var d={key:s,eventKey:s};return i.cloneElement(t,d)}return t})}var ne={adjustX:1,adjustY:1},jr={topLeft:{points:["bl","tl"],overflow:ne},topRight:{points:["br","tr"],overflow:ne},bottomLeft:{points:["tl","bl"],overflow:ne},bottomRight:{points:["tr","br"],overflow:ne},leftTop:{points:["tr","tl"],overflow:ne},leftBottom:{points:["br","bl"],overflow:ne},rightTop:{points:["tl","tr"],overflow:ne},rightBottom:{points:["bl","br"],overflow:ne}},Kr={topLeft:{points:["bl","tl"],overflow:ne},topRight:{points:["br","tr"],overflow:ne},bottomLeft:{points:["tl","bl"],overflow:ne},bottomRight:{points:["tr","br"],overflow:ne},rightTop:{points:["tr","tl"],overflow:ne},rightBottom:{points:["br","bl"],overflow:ne},leftTop:{points:["tl","tr"],overflow:ne},leftBottom:{points:["bl","br"],overflow:ne}};function Wn(e,n,t){if(n)return n;if(t)return t[e]||t.other}var Vr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Wr(e){var n=e.prefixCls,t=e.visible,o=e.children,r=e.popup,l=e.popupStyle,a=e.popupClassName,s=e.popupOffset,c=e.disabled,d=e.mode,f=e.onVisibleChange,u=i.useContext(ve),m=u.getPopupContainer,g=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,b=u.builtinPlacements,y=u.triggerSubMenuAction,w=u.forceSubMenuRender,I=u.rootClassName,C=u.motion,$=u.defaultMotions,h=i.useState(!1),N=ee(h,2),S=N[0],x=N[1],B=g?J(J({},Kr),b):J(J({},jr),b),P=Vr[d],M=Wn(d,C,$),O=i.useRef(M);d!=="inline"&&(O.current=M);var R=J(J({},O.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=i.useRef();return i.useEffect(function(){return _.current=Te(function(){x(t)}),function(){Te.cancel(_.current)}},[t]),i.createElement(xn,{prefixCls:n,popupClassName:V("".concat(n,"-popup"),K({},"".concat(n,"-rtl"),g),a,I),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:B,popupPlacement:P,popupVisible:S,popup:r,popupStyle:l,popupAlign:s&&{offset:s},action:c?[]:[y],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:f,forceRender:w,popupMotion:R,fresh:!0},o)}function Fr(e){var n=e.id,t=e.open,o=e.keyPath,r=e.children,l="inline",a=i.useContext(ve),s=a.prefixCls,c=a.forceSubMenuRender,d=a.motion,f=a.defaultMotions,u=a.mode,m=i.useRef(!1);m.current=u===l;var g=i.useState(!m.current),v=ee(g,2),p=v[0],b=v[1],y=m.current?t:!1;i.useEffect(function(){m.current&&b(!1)},[u]);var w=J({},Wn(l,d,f));o.length>1&&(w.motionAppear=!1);var I=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!m.current&&!C&&b(!0),I==null?void 0:I(C)},p?null:i.createElement(Fe,{mode:l,locked:!m.current},i.createElement(ko,te({visible:y},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var $=C.className,h=C.style;return i.createElement(Ht,{id:n,className:$,style:h},r)}))}var Xr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],qr=["active"],Gr=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.title,l=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,u=e.popupClassName,m=e.popupOffset,g=e.popupStyle,v=e.onClick,p=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,w=e.onTitleMouseEnter,I=e.onTitleMouseLeave,C=de(e,Xr),$=_n(l),h=i.useContext(ve),N=h.prefixCls,S=h.mode,x=h.openKeys,B=h.disabled,P=h.overflowDisabled,M=h.activeKey,O=h.selectedKeys,R=h.itemIcon,_=h.expandIcon,W=h.onItemClick,E=h.onOpenChange,z=h.onActive,G=i.useContext(_t),U=G._internalRenderSubMenuItem,Z=i.useContext(Hn),Y=Z.isSubPathKey,D=De(),k="".concat(N,"-submenu"),F=B||a,re=i.useRef(),Q=i.useRef(),X=d??R,H=f??_,oe=x.includes(l),ie=!P&&oe,Me=Y(O,l),Re=jn(l,F,w,I),fe=Re.active,$e=de(Re,qr),Ce=i.useState(!1),j=ee(Ce,2),Pe=j[0],Ge=j[1],Ue=function(ae){F||Ge(ae)},ft=function(ae){Ue(!0),p==null||p({key:l,domEvent:ae})},Ye=function(ae){Ue(!1),b==null||b({key:l,domEvent:ae})},ge=i.useMemo(function(){return fe||(S!=="inline"?Pe||Y([M],l):!1)},[S,fe,M,Pe,l,Y]),gt=Kn(D.length),bt=function(ae){F||(y==null||y({key:l,domEvent:ae}),S==="inline"&&E(l,!oe))},Ze=Ke(function(me){v==null||v(at(me)),W(me)}),Je=function(ae){S!=="inline"&&E(l,ae)},ht=function(){z(l)},be=$&&"".concat($,"-popup"),Ae=i.useMemo(function(){return i.createElement(Vn,{icon:S!=="horizontal"?H:void 0,props:J(J({},e),{},{isOpen:ie,isSubMenu:!0})},i.createElement("i",{className:"".concat(k,"-arrow")}))},[S,H,e,ie,k]),ye=i.createElement("div",te({role:"menuitem",style:gt,className:"".concat(k,"-title"),tabIndex:F?null:-1,ref:re,title:typeof r=="string"?r:null,"data-menu-id":P&&$?null:$,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":F,onClick:bt,onFocus:ht},$e),r,Ae),_e=i.useRef(S);if(S!=="inline"&&D.length>1?_e.current="vertical":_e.current=S,!P){var Oe=_e.current;ye=i.createElement(Wr,{mode:Oe,prefixCls:k,visible:!s&&ie&&S!=="inline",popupClassName:u,popupOffset:m,popupStyle:g,popup:i.createElement(Fe,{mode:Oe==="horizontal"?"vertical":Oe},i.createElement(Ht,{id:be,ref:Q},c)),disabled:F,onVisibleChange:Je},ye)}var ue=i.createElement(We.Item,te({ref:n,role:"none"},C,{component:"li",style:t,className:V(k,"".concat(k,"-").concat(S),o,K(K(K(K({},"".concat(k,"-open"),ie),"".concat(k,"-active"),ge),"".concat(k,"-selected"),Me),"".concat(k,"-disabled"),F)),onMouseEnter:ft,onMouseLeave:Ye}),ye,!P&&i.createElement(Fr,{id:be,open:ie,keyPath:D},c));return U&&(ue=U(ue,e,{selected:Me,active:ge,open:ie,disabled:F})),i.createElement(Fe,{onItemClick:Ze,mode:S==="horizontal"?"vertical":S,itemIcon:X,expandIcon:H},ue)}),vt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=De(t),l=Lt(o,r),a=dt();i.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var s;return a?s=l:s=i.createElement(Gr,te({ref:n},e),l),i.createElement(kn.Provider,{value:r},s)});function jt(e){var n=e.className,t=e.style,o=i.useContext(ve),r=o.prefixCls,l=dt();return l?null:i.createElement("li",{role:"separator",className:V("".concat(r,"-item-divider"),n),style:t})}var Ur=["className","title","eventKey","children"],Yr=i.forwardRef(function(e,n){var t=e.className,o=e.title;e.eventKey;var r=e.children,l=de(e,Ur),a=i.useContext(ve),s=a.prefixCls,c="".concat(s,"-item-group");return i.createElement("li",te({ref:n,role:"presentation"},l,{onClick:function(f){return f.stopPropagation()},className:V(c,t)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof o=="string"?o:void 0},o),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},r))}),Kt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=De(t),l=Lt(o,r),a=dt();return a?l:i.createElement(Yr,te({ref:n},we(e,["warnKey"])),l)}),Zr=["label","children","key","type","extra"];function Tt(e,n,t){var o=n.item,r=n.group,l=n.submenu,a=n.divider;return(e||[]).map(function(s,c){if(s&&Ho(s)==="object"){var d=s,f=d.label,u=d.children,m=d.key,g=d.type,v=d.extra,p=de(d,Zr),b=m??"tmp-".concat(c);return u||g==="group"?g==="group"?i.createElement(r,te({key:b},p,{title:f}),Tt(u,n,t)):i.createElement(l,te({key:b},p,{title:f}),Tt(u,n,t)):g==="divider"?i.createElement(a,te({key:b},p)):i.createElement(o,te({key:b},p,{extra:v}),f,(!!v||v===0)&&i.createElement("span",{className:"".concat(t,"-item-extra")},v))}return null}).filter(function(s){return s})}function fn(e,n,t,o,r){var l=e,a=J({divider:jt,item:mt,group:Kt,submenu:vt},o);return n&&(l=Tt(n,a,r)),Lt(l,t)}var Jr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Se=[],Qr=i.forwardRef(function(e,n){var t,o=e,r=o.prefixCls,l=r===void 0?"rc-menu":r,a=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,u=o.items,m=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,w=o.disabled,I=o.disabledOverflow,C=o.subMenuOpenDelay,$=C===void 0?.1:C,h=o.subMenuCloseDelay,N=h===void 0?.1:h,S=o.forceSubMenuRender,x=o.defaultOpenKeys,B=o.openKeys,P=o.activeKey,M=o.defaultActiveFirst,O=o.selectable,R=O===void 0?!0:O,_=o.multiple,W=_===void 0?!1:_,E=o.defaultSelectedKeys,z=o.selectedKeys,G=o.onSelect,U=o.onDeselect,Z=o.inlineIndent,Y=Z===void 0?24:Z,D=o.motion,k=o.defaultMotions,F=o.triggerSubMenuAction,re=F===void 0?"hover":F,Q=o.builtinPlacements,X=o.itemIcon,H=o.expandIcon,oe=o.overflowedIndicator,ie=oe===void 0?"...":oe,Me=o.overflowedIndicatorPopupClassName,Re=o.getPopupContainer,fe=o.onClick,$e=o.onOpenChange,Ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var j=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,Ge=o._internalComponents,Ue=de(o,Jr),ft=i.useMemo(function(){return[fn(m,u,Se,Ge,l),fn(m,u,Se,{},l)]},[m,u,Ge]),Ye=ee(ft,2),ge=Ye[0],gt=Ye[1],bt=i.useState(!1),Ze=ee(bt,2),Je=Ze[0],ht=Ze[1],be=i.useRef(),Ae=Nr(v),ye=g==="rtl",_e=Ve(x,{value:B,postState:function(A){return A||Se}}),Oe=ee(_e,2),ue=Oe[0],me=Oe[1],ae=function(A){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function le(){me(A),$e==null||$e(A)}L?sr(le):le()},Zn=i.useState(ue),Vt=ee(Zn,2),Jn=Vt[0],Qn=Vt[1],$t=i.useRef(!1),eo=i.useMemo(function(){return(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Wt=ee(eo,2),Qe=Wt[0],Ct=Wt[1],Ft=Qe==="inline",to=i.useState(Qe),Xt=ee(to,2),he=Xt[0],no=Xt[1],oo=i.useState(Ct),qt=ee(oo,2),ro=qt[0],io=qt[1];i.useEffect(function(){no(Qe),io(Ct),$t.current&&(Ft?me(Jn):ae(Se))},[Qe,Ct]);var ao=i.useState(0),Gt=ee(ao,2),et=Gt[0],lo=Gt[1],yt=et>=ge.length-1||he!=="horizontal"||I;i.useEffect(function(){Ft&&Qn(ue)},[ue]),i.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var Ie=Or(),Ut=Ie.registerPath,Yt=Ie.unregisterPath,so=Ie.refreshOverflowKeys,Zt=Ie.isSubPathKey,co=Ie.getKeyPath,Jt=Ie.getKeys,uo=Ie.getSubPathKeys,mo=i.useMemo(function(){return{registerPath:Ut,unregisterPath:Yt}},[Ut,Yt]),vo=i.useMemo(function(){return{isSubPathKey:Zt}},[Zt]);i.useEffect(function(){so(yt?Se:ge.slice(et+1).map(function(q){return q.key}))},[et,yt]);var po=Ve(P||M&&((t=ge[0])===null||t===void 0?void 0:t.key),{value:P}),Qt=ee(po,2),ze=Qt[0],It=Qt[1],fo=Ke(function(q){It(q)}),go=Ke(function(){It(void 0)});yn(n,function(){return{list:be.current,focus:function(A){var L,le=Jt(),se=Nt(le,Ae),nt=se.elements,St=se.key2element,Mo=se.element2key,nn=zt(be.current,nt),on=ze??(nn[0]?Mo.get(nn[0]):(L=ge.find(function(Ro){return!Ro.props.disabled}))===null||L===void 0?void 0:L.key),ke=St.get(on);if(on&&ke){var xt;ke==null||(xt=ke.focus)===null||xt===void 0||xt.call(ke,A)}}}});var bo=Ve(E||[],{value:z,postState:function(A){return Array.isArray(A)?A:A==null?Se:[A]}}),en=ee(bo,2),tt=en[0],ho=en[1],$o=function(A){if(R){var L=A.key,le=tt.includes(L),se;W?le?se=tt.filter(function(St){return St!==L}):se=[].concat(xe(tt),[L]):se=[L],ho(se);var nt=J(J({},A),{},{selectedKeys:se});le?U==null||U(nt):G==null||G(nt)}!W&&ue.length&&he!=="inline"&&ae(Se)},Co=Ke(function(q){fe==null||fe(at(q)),$o(q)}),tn=Ke(function(q,A){var L=ue.filter(function(se){return se!==q});if(A)L.push(q);else if(he!=="inline"){var le=uo(q);L=L.filter(function(se){return!le.has(se)})}wn(ue,L,!0)||ae(L,!0)}),yo=function(A,L){var le=L??!ue.includes(A);tn(A,le)},Io=Mr(he,ze,ye,Ae,be,Jt,co,It,yo,Ce);i.useEffect(function(){ht(!0)},[]);var So=i.useMemo(function(){return{_internalRenderMenuItem:j,_internalRenderSubMenuItem:Pe}},[j,Pe]),xo=he!=="horizontal"||I?ge:ge.map(function(q,A){return i.createElement(Fe,{key:q.key,overflowDisabled:A>et},q)}),wo=i.createElement(We,te({id:v,ref:be,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:mt,className:V(l,"".concat(l,"-root"),"".concat(l,"-").concat(he),c,K(K({},"".concat(l,"-inline-collapsed"),ro),"".concat(l,"-rtl"),ye),a),dir:g,style:s,role:"menu",tabIndex:f,data:xo,renderRawItem:function(A){return A},renderRawRest:function(A){var L=A.length,le=L?ge.slice(-L):null;return i.createElement(vt,{eventKey:Bt,title:ie,disabled:yt,internalPopupClose:L===0,popupClassName:Me},le)},maxCount:he!=="horizontal"||I?We.INVALIDATE:We.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(A){lo(A)},onKeyDown:Io},Ue));return i.createElement(_t.Provider,{value:So},i.createElement(Dn.Provider,{value:Ae},i.createElement(Fe,{prefixCls:l,rootClassName:a,mode:he,openKeys:ue,rtl:ye,disabled:w,motion:Je?D:null,defaultMotions:Je?k:null,activeKey:ze,onActive:fo,onInactive:go,selectedKeys:tt,inlineIndent:Y,subMenuOpenDelay:$,subMenuCloseDelay:N,forceSubMenuRender:S,builtinPlacements:Q,triggerSubMenuAction:re,getPopupContainer:Re,itemIcon:X,expandIcon:H,onItemClick:Co,onOpenChange:tn},i.createElement(Hn.Provider,{value:vo},wo),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(zn.Provider,{value:mo},gt)))))}),Xe=Qr;Xe.Item=mt;Xe.SubMenu=vt;Xe.ItemGroup=Kt;Xe.Divider=jt;const Fn=i.createContext({});var ei={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ti=function(n,t){return i.createElement(Lo,te({},n,{ref:t,icon:ei}))},Xn=i.forwardRef(ti);const lt=Oo({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ni=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const qn=e=>{const{prefixCls:n,className:t,dashed:o}=e,r=ni(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(ct),a=l("menu",n),s=V({[`${a}-item-divider-dashed`]:!!o},t);return i.createElement(jt,Object.assign({className:s},r))},Gn=e=>{var n;const{className:t,children:o,icon:r,title:l,danger:a,extra:s}=e,{prefixCls:c,firstLevel:d,direction:f,disableMenuItemTitleTooltip:u,inlineCollapsed:m}=i.useContext(lt),g=I=>{const C=o==null?void 0:o[0],$=i.createElement("span",{className:V(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},o);return(!r||i.isValidElement(o)&&o.type==="span")&&o&&I&&d&&typeof C=="string"?i.createElement("div",{className:`${c}-inline-collapsed-noicon`},C.charAt(0)):$},{siderCollapsed:v}=i.useContext(Fn);let p=l;typeof l>"u"?p=d?o:"":l===!1&&(p="");const b={title:p};!v&&!m&&(b.title=null,b.open=!1);const y=Pn(o).length;let w=i.createElement(mt,Object.assign({},we(e,["title","icon","danger"]),{className:V({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(r?y+1:y)===1},t),title:typeof l=="string"?l:void 0}),ut(r,{className:V(i.isValidElement(r)?(n=r.props)===null||n===void 0?void 0:n.className:void 0,`${c}-item-icon`)}),g(m));return u||(w=i.createElement(jo,Object.assign({},b,{placement:f==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),w)),w};var oi=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const st=i.createContext(null),ri=i.forwardRef((e,n)=>{const{children:t}=e,o=oi(e,["children"]),r=i.useContext(st),l=i.useMemo(()=>Object.assign(Object.assign({},r),o),[r,o.prefixCls,o.mode,o.selectable,o.rootClassName]),a=Ko(t),s=Rn(n,a?At(t):null);return i.createElement(st.Provider,{value:l},i.createElement(Vo,{space:!0},a?i.cloneElement(t,{ref:s}):t))}),ii=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:o,colorSplit:r,lineWidth:l,lineType:a,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${T(l)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
|
|
2
|
-
> ${n}-item-active,
|
|
3
|
-
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},ai=({componentCls:e,menuArrowOffset:n,calc:t})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
4
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${T(t(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${T(n)})`}}}}),gn=e=>Wo(e),bn=(e,n)=>{const{componentCls:t,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:l,groupTitleColor:a,itemBg:s,subMenuItemBg:c,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:u,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:v,motionEaseOut:p,itemPaddingInline:b,motionDurationMid:y,itemHoverColor:w,lineType:I,colorSplit:C,itemDisabledColor:$,dangerItemColor:h,dangerItemHoverColor:N,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:B,popupBg:P,itemHoverBg:M,itemActiveBg:O,menuSubMenuBg:R,horizontalItemSelectedColor:_,horizontalItemSelectedBg:W,horizontalItemBorderRadius:E,horizontalItemHoverBg:z}=e;return{[`${t}-${n}, ${t}-${n} > ${t}`]:{color:o,background:s,[`&${t}-root:focus-visible`]:Object.assign({},gn(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:a}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:l},[`${t}-item, ${t}-submenu-title`]:{color:o,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},gn(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${$} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:w}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:O}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:O}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:N}},[`&${t}-item:active`]:{background:x}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:B}},[`&${t}-submenu > ${t}`]:{backgroundColor:R},[`&${t}-popup > ${t}`]:{backgroundColor:P},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:P},[`&${t}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:E,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${T(f)} solid transparent`,transition:`border-color ${g} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:f,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:W,"&:hover":{backgroundColor:W},"&::after":{borderBottomWidth:f,borderBottomColor:_}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${T(m)} ${I} ${C}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:c},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${T(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${v}`,`opacity ${y} ${v}`].join(",")}}}}}},hn=e=>{const{componentCls:n,itemHeight:t,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:a,itemMarginBlock:s,itemWidth:c,itemPaddingInline:d}=e,f=e.calc(l).add(r).add(a).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:T(t),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:c},[`> ${n}-item,
|
|
5
|
-
> ${n}-submenu > ${n}-submenu-title`]:{height:t,lineHeight:T(t)},[`${n}-item-group-list ${n}-submenu-title,
|
|
6
|
-
${n}-submenu-title`]:{paddingInlineEnd:f}}},li=e=>{const{componentCls:n,iconCls:t,itemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:f,motionDurationFast:u,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:v,collapsedWidth:p,collapsedIconSize:b}=e,y={height:o,lineHeight:T(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},hn(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},hn(e)),{boxShadow:v})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${T(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${u} ${s}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:y,[`& ${n}-item-group-title`]:{paddingInlineStart:c}},[`${n}-item`]:y}},{[`${n}-inline-collapsed`]:{width:p,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${n}-item,
|
|
7
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
8
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
9
|
-
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${T(e.calc(b).div(2).equal())} - ${T(d)})`,textOverflow:"clip",[`
|
|
10
|
-
${n}-submenu-arrow,
|
|
11
|
-
${n}-submenu-expand-icon
|
|
12
|
-
`]:{opacity:0},[`${n}-item-icon, ${t}`]:{margin:0,fontSize:b,lineHeight:T(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${n}-item-group-title`]:Object.assign(Object.assign({},Fo),{paddingInline:g})}}]},$n=e=>{const{componentCls:n,motionDurationSlow:t,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:l,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${r}`].join(","),[`${n}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${l}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${n}-item-icon`]:Object.assign({},qo()),[`&${n}-item-only-child`]:{[`> ${a}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Cn=e=>{const{componentCls:n,motionDurationSlow:t,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:a}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${o}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${o}`,`transform ${t} ${o}`,`top ${t} ${o}`,`color ${t} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${T(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${T(a)})`}}}}},si=e=>{const{antCls:n,componentCls:t,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:d,lineWidth:f,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:p,lineType:b,groupTitleLineHeight:y,groupTitleFontSize:w}=e;return[{"":{[t]:Object.assign(Object.assign({},rn()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nn(e)),rn()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${T(s)} ${T(c)}`,fontSize:w,lineHeight:y,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${l} ${a}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:b,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$n(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${T(e.calc(o).mul(2).equal())} ${T(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},$n(e)),Cn(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Cn(e)),{[`&-inline-collapsed ${t}-submenu-arrow,
|
|
13
|
-
&-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${T(p)})`},"&::after":{transform:`rotate(45deg) translateX(${T(e.calc(p).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${T(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${T(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${T(p)})`}}})},{[`${n}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},ci=e=>{var n,t,o;const{colorPrimary:r,colorError:l,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:d,colorBgContainer:f,colorFillAlter:u,colorFillContent:m,lineWidth:g,lineWidthBold:v,controlItemBgActive:p,colorBgTextHover:b,controlHeightLG:y,lineHeight:w,colorBgElevated:I,marginXXS:C,padding:$,fontSize:h,controlHeightSM:N,fontSizeLG:S,colorTextLightSolid:x,colorErrorHover:B}=e,P=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,M=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:g,O=(o=e.itemMarginInline)!==null&&o!==void 0?o:e.marginXXS,R=new an(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:f,itemBg:f,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:w,collapsedWidth:y*2,popupBg:I,itemMarginBlock:C,itemPaddingInline:$,horizontalLineHeight:`${y*1.15}px`,iconSize:h,iconMarginInlineEnd:N-h,collapsedIconSize:S,groupTitleFontSize:h,darkItemDisabledColor:new an(x).setA(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:r,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:x,darkDangerItemHoverColor:B,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:l,itemWidth:P?`calc(100% + ${M}px)`:`calc(100% - ${O*2}px)`}},ui=(e,n=e,t=!0)=>On("Menu",r=>{const{colorBgElevated:l,controlHeightLG:a,fontSize:s,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:w,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$,popupBg:h,darkPopupBg:N}=r,S=r.calc(s).div(7).mul(5).equal(),x=Mt(r,{menuArrowSize:S,menuHorizontalHeight:r.calc(a).mul(1.15).equal(),menuArrowOffset:r.calc(S).mul(.25).equal(),menuSubMenuBg:l,calc:r.calc,popupBg:h}),B=Mt(x,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:f,popupBg:N,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:I,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[si(x),ii(x),li(x),bn(x,"light"),bn(B,"dark"),ai(x),Xo(x),it(x,"slide-up"),it(x,"slide-down"),En(x,"zoom-big")]},ci,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,n),Un=e=>{var n;const{popupClassName:t,icon:o,title:r,theme:l}=e,a=i.useContext(lt),{prefixCls:s,inlineCollapsed:c,theme:d}=a,f=De();let u;if(!o)u=c&&!f.length&&r&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${s}-title-content`},r);else{const v=i.isValidElement(r)&&r.type==="span";u=i.createElement(i.Fragment,null,ut(o,{className:V(i.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${s}-item-icon`)}),v?r:i.createElement("span",{className:`${s}-title-content`},r))}const m=i.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=Bn("Menu");return i.createElement(lt.Provider,{value:m},i.createElement(vt,Object.assign({},we(e,["icon"]),{title:u,popupClassName:V(s,t,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var di=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};function wt(e){return e===null||e===!1}const mi={item:Gn,submenu:Un,divider:qn},vi=Dt((e,n)=>{var t;const o=i.useContext(st),r=o||{},{getPrefixCls:l,getPopupContainer:a,direction:s,menu:c}=i.useContext(ct),d=l(),{prefixCls:f,className:u,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,rootClassName:w,mode:I,selectable:C,onClick:$,overflowedIndicatorPopupClassName:h}=e,N=di(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),S=we(N,["collapsedWidth"]);(t=r.validator)===null||t===void 0||t.call(r,{mode:I});const x=Rt((...Y)=>{var D;$==null||$.apply(void 0,Y),(D=r.onClick)===null||D===void 0||D.call(r)}),B=r.mode||I,P=C??r.selectable,M=b??y,O={horizontal:{motionName:`${d}-slide-up`},inline:Go(d),other:{motionName:`${d}-zoom-big`}},R=l("menu",f||r.prefixCls),_=Tn(R),[W,E,z]=ui(R,_,!o),G=V(`${R}-${g}`,c==null?void 0:c.className,u),U=i.useMemo(()=>{var Y,D;if(typeof v=="function"||wt(v))return v||null;if(typeof r.expandIcon=="function"||wt(r.expandIcon))return r.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||wt(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const k=(Y=v??(r==null?void 0:r.expandIcon))!==null&&Y!==void 0?Y:c==null?void 0:c.expandIcon;return ut(k,{className:V(`${R}-submenu-expand-icon`,i.isValidElement(k)?(D=k.props)===null||D===void 0?void 0:D.className:void 0)})},[v,r==null?void 0:r.expandIcon,c==null?void 0:c.expandIcon,R]),Z=i.useMemo(()=>({prefixCls:R,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:g,mode:B,disableMenuItemTitleTooltip:p}),[R,M,s,p,g]);return W(i.createElement(st.Provider,{value:null},i.createElement(lt.Provider,{value:Z},i.createElement(Xe,Object.assign({getPopupContainer:a,overflowedIndicator:i.createElement(Xn,null),overflowedIndicatorPopupClassName:V(R,`${R}-${g}`,h),mode:B,selectable:P,onClick:x},S,{inlineCollapsed:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:G,prefixCls:R,direction:s,defaultMotions:O,expandIcon:U,ref:n,rootClassName:V(w,E,r.rootClassName,z,_),_internalComponents:mi})))))}),qe=Dt((e,n)=>{const t=je(null),o=i.useContext(Fn);return yn(n,()=>({menu:t.current,focus:r=>{var l;(l=t.current)===null||l===void 0||l.focus(r)}})),i.createElement(vi,Object.assign({ref:t},e,o))});qe.Item=Gn;qe.SubMenu=Un;qe.Divider=qn;qe.ItemGroup=Kt;const pi=e=>{const{componentCls:n,menuCls:t,colorError:o,colorTextLightSolid:r}=e,l=`${t}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${t} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},fi=e=>{const{componentCls:n,menuCls:t,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:p}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:g}},[`${n}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${n}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
14
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
15
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottom,
|
|
16
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottom,
|
|
17
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomRight,
|
|
18
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:Jo},[`&${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-topLeft,
|
|
19
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-topLeft,
|
|
20
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-top,
|
|
21
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-top,
|
|
22
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${n}-placement-topRight,
|
|
23
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-placement-topRight`]:{animationName:Zo},[`&${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
24
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottom,
|
|
25
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:Yo},[`&${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topLeft,
|
|
26
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-top,
|
|
27
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Uo}}},Qo(e,p,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},Nn(e)),{[t]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},sn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${T(d)} ${T(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${T(d)} ${T(v)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},sn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${T(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:g,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${T(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${t}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[it(e,"slide-up"),it(e,"slide-down"),ln(e,"move-up"),ln(e,"move-down"),En(e,"zoom-big")]]},gi=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},er({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),tr(e)),bi=On("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:t,paddingXXS:o,componentCls:r}=e,l=Mt(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[fi(l),pi(l)]},gi,{resetStyle:!1}),pt=e=>{var n;const{menu:t,arrow:o,prefixCls:r,children:l,trigger:a,disabled:s,dropdownRender:c,popupRender:d,getPopupContainer:f,overlayClassName:u,rootClassName:m,overlayStyle:g,open:v,onOpenChange:p,visible:b,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:I=.1,autoAdjustOverflow:C=!0,placement:$="",overlay:h,transitionName:N,destroyOnHidden:S,destroyPopupOnHide:x}=e,{getPopupContainer:B,getPrefixCls:P,direction:M,dropdown:O}=i.useContext(ct),R=d||c;nr();const _=i.useMemo(()=>{const j=P();return N!==void 0?N:$.includes("top")?`${j}-slide-down`:`${j}-slide-up`},[P,$,N]),W=i.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:M==="rtl"?"bottomRight":"bottomLeft",[$,M]),E=P("dropdown",r),z=Tn(E),[G,U,Z]=bi(E,z),[,Y]=or(),D=i.Children.only(hr(l)?i.createElement("span",null,l):l),k=ut(D,{className:V(`${E}-trigger`,{[`${E}-rtl`]:M==="rtl"},D.props.className),disabled:(n=D.props.disabled)!==null&&n!==void 0?n:s}),F=s?[]:a,re=!!(F!=null&&F.includes("contextMenu")),[Q,X]=Ve(!1,{value:v??b}),H=Rt(j=>{p==null||p(j,{source:"trigger"}),y==null||y(j),X(j)}),oe=V(u,m,U,Z,z,O==null?void 0:O.className,{[`${E}-rtl`]:M==="rtl"}),ie=rr({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:C,offset:Y.marginXXS,arrowWidth:o?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),Me=Rt(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(p==null||p(!1,{source:"menu"}),X(!1))}),Re=()=>{let j;return t!=null&&t.items?j=i.createElement(qe,Object.assign({},t)):typeof h=="function"?j=h():j=h,R&&(j=R(j)),j=i.Children.only(typeof j=="string"?i.createElement("span",null,j):j),i.createElement(ri,{prefixCls:`${E}-menu`,rootClassName:V(Z,z),expandIcon:i.createElement("span",{className:`${E}-menu-submenu-arrow`},M==="rtl"?i.createElement(Eo,{className:`${E}-menu-submenu-arrow-icon`}):i.createElement(No,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Me,validator:({mode:Pe})=>{}},j)},[fe,$e]=Bn("Dropdown",g==null?void 0:g.zIndex);let Ce=i.createElement(br,Object.assign({alignPoint:re},we(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:I,visible:Q,builtinPlacements:ie,arrow:!!o,overlayClassName:oe,prefixCls:E,getPopupContainer:f||B,transitionName:_,trigger:F,overlay:Re,placement:W,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),g),{zIndex:fe}),autoDestroy:S??x}),k);return fe&&(Ce=i.createElement(ir.Provider,{value:$e},Ce)),G(Ce)},hi=ar(pt,"align",void 0,"dropdown",e=>e),$i=e=>i.createElement(hi,Object.assign({},e),i.createElement("span",null));pt._InternalPanelDoNotUseOrYouWillBeFired=$i;var Ci=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const Yn=e=>{const{getPopupContainer:n,getPrefixCls:t,direction:o}=i.useContext(ct),{prefixCls:r,type:l="default",danger:a,disabled:s,loading:c,onClick:d,htmlType:f,children:u,className:m,menu:g,arrow:v,autoFocus:p,overlay:b,trigger:y,align:w,open:I,onOpenChange:C,placement:$,getPopupContainer:h,href:N,icon:S=i.createElement(Xn,null),title:x,buttonsRender:B=ie=>ie,mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:O,overlayStyle:R,destroyOnHidden:_,destroyPopupOnHide:W,dropdownRender:E,popupRender:z}=e,G=Ci(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),U=t("dropdown",r),Z=`${U}-button`,D={menu:g,arrow:v,autoFocus:p,align:w,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:h||n,mouseEnterDelay:P,mouseLeaveDelay:M,overlayClassName:O,overlayStyle:R,destroyOnHidden:_,popupRender:z||E},{compactSize:k,compactItemClassnames:F}=lr(U,o),re=V(Z,F,m);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=W),"overlay"in e&&(D.overlay=b),"open"in e&&(D.open=I),"placement"in e?D.placement=$:D.placement=o==="rtl"?"bottomLeft":"bottomRight";const Q=i.createElement(cn,{type:l,danger:a,disabled:s,loading:c,onClick:d,htmlType:f,href:N,title:x},u),X=i.createElement(cn,{type:l,danger:a,icon:S}),[H,oe]=B([Q,X]);return i.createElement(cr.Compact,Object.assign({className:re,size:k,block:!0},G),H,i.createElement(pt,Object.assign({},D),oe))};Yn.__ANT_BUTTON=!0;const yi=pt;yi.Button=Yn;export{yi as D,qe as M,ri as O};
|
package/assets/index-CkVpaVb6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import{O as je,Q as Ie,_ as re,e as x,U as ce,V as Me,W as de,z as me,X as j,Y as fe,K as ie,Z as ve,$ as _e,u as Ce,a0 as ze,a1 as ge,g as He,m as Ke,x as Z,a2 as Le,a3 as We,a4 as Te,a5 as Be,a6 as Ae,q as he,n as Fe}from"./index-BvpN2hYX.js";import{S as Ve,u as Ue}from"./index-D3Z0MZbL.js";var be=n.createContext(null),we=n.createContext({}),Xe=["prefixCls","className","containerRef"],Ye=function(t){var a=t.prefixCls,o=t.className,r=t.containerRef,l=je(t,Xe),i=n.useContext(we),s=i.panel,b=Ie(s,r);return n.createElement("div",re({className:x("".concat(a,"-content"),o),role:"dialog",ref:b},ce(t,{aria:!0}),{"aria-modal":"true"},l))};function ye(e){return typeof e=="string"&&String(Number(e))===e?(Me(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var pe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ge(e,t){var a,o,r,l=e.prefixCls,i=e.open,s=e.placement,b=e.inline,C=e.push,O=e.forceRender,y=e.autoFocus,E=e.keyboard,f=e.classNames,d=e.rootClassName,u=e.rootStyle,v=e.zIndex,p=e.className,I=e.id,P=e.style,S=e.motion,D=e.width,N=e.height,g=e.children,w=e.mask,M=e.maskClosable,R=e.maskMotion,Q=e.maskClassName,K=e.maskStyle,z=e.afterOpenChange,$=e.onClose,W=e.onMouseEnter,J=e.onMouseOver,ee=e.onMouseLeave,X=e.onClick,te=e.onKeyDown,ne=e.onKeyUp,h=e.styles,T=e.drawerRender,_=n.useRef(),B=n.useRef(),A=n.useRef();n.useImperativeHandle(t,function(){return _.current});var ae=function(k){var Y=k.keyCode,G=k.shiftKey;switch(Y){case ie.TAB:{if(Y===ie.TAB){if(!G&&document.activeElement===A.current){var q;(q=B.current)===null||q===void 0||q.focus({preventScroll:!0})}else if(G&&document.activeElement===B.current){var le;(le=A.current)===null||le===void 0||le.focus({preventScroll:!0})}}break}case ie.ESC:{$&&E&&(k.stopPropagation(),$(k));break}}};n.useEffect(function(){if(i&&y){var c;(c=_.current)===null||c===void 0||c.focus({preventScroll:!0})}},[i]);var oe=n.useState(!1),F=de(oe,2),H=F[0],L=F[1],m=n.useContext(be),se;typeof C=="boolean"?se=C?{}:{distance:0}:se=C||{};var V=(a=(o=(r=se)===null||r===void 0?void 0:r.distance)!==null&&o!==void 0?o:m==null?void 0:m.pushDistance)!==null&&a!==void 0?a:180,Ne=n.useMemo(function(){return{pushDistance:V,push:function(){L(!0)},pull:function(){L(!1)}}},[V]);n.useEffect(function(){if(i){var c;m==null||(c=m.push)===null||c===void 0||c.call(m)}else{var k;m==null||(k=m.pull)===null||k===void 0||k.call(m)}},[i]),n.useEffect(function(){return function(){var c;m==null||(c=m.pull)===null||c===void 0||c.call(m)}},[]);var Ee=n.createElement(me,re({key:"mask"},R,{visible:w&&i}),function(c,k){var Y=c.className,G=c.style;return n.createElement("div",{className:x("".concat(l,"-mask"),Y,f==null?void 0:f.mask,Q),style:j(j(j({},G),K),h==null?void 0:h.mask),onClick:M&&i?$:void 0,ref:k})}),Pe=typeof S=="function"?S(s):S,U={};if(H&&V)switch(s){case"top":U.transform="translateY(".concat(V,"px)");break;case"bottom":U.transform="translateY(".concat(-V,"px)");break;case"left":U.transform="translateX(".concat(V,"px)");break;default:U.transform="translateX(".concat(-V,"px)");break}s==="left"||s==="right"?U.width=ye(D):U.height=ye(N);var De={onMouseEnter:W,onMouseOver:J,onMouseLeave:ee,onClick:X,onKeyDown:te,onKeyUp:ne},Re=n.createElement(me,re({key:"panel"},Pe,{visible:i,forceRender:O,onVisibleChanged:function(k){z==null||z(k)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(c,k){var Y=c.className,G=c.style,q=n.createElement(Ye,re({id:I,containerRef:k,prefixCls:l,className:x(p,f==null?void 0:f.content),style:j(j({},P),h==null?void 0:h.content)},ce(e,{aria:!0}),De),g);return n.createElement("div",re({className:x("".concat(l,"-content-wrapper"),f==null?void 0:f.wrapper,Y),style:j(j(j({},U),G),h==null?void 0:h.wrapper)},ce(e,{data:!0})),T?T(q):q)}),ue=j({},u);return v&&(ue.zIndex=v),n.createElement(be.Provider,{value:Ne},n.createElement("div",{className:x(l,"".concat(l,"-").concat(s),d,fe(fe({},"".concat(l,"-open"),i),"".concat(l,"-inline"),b)),style:ue,tabIndex:-1,ref:_,onKeyDown:ae},Ee,n.createElement("div",{tabIndex:0,ref:B,style:pe,"aria-hidden":"true","data-sentinel":"start"}),Re,n.createElement("div",{tabIndex:0,ref:A,style:pe,"aria-hidden":"true","data-sentinel":"end"})))}var qe=n.forwardRef(Ge),Ze=function(t){var a=t.open,o=a===void 0?!1:a,r=t.prefixCls,l=r===void 0?"rc-drawer":r,i=t.placement,s=i===void 0?"right":i,b=t.autoFocus,C=b===void 0?!0:b,O=t.keyboard,y=O===void 0?!0:O,E=t.width,f=E===void 0?378:E,d=t.mask,u=d===void 0?!0:d,v=t.maskClosable,p=v===void 0?!0:v,I=t.getContainer,P=t.forceRender,S=t.afterOpenChange,D=t.destroyOnClose,N=t.onMouseEnter,g=t.onMouseOver,w=t.onMouseLeave,M=t.onClick,R=t.onKeyDown,Q=t.onKeyUp,K=t.panelRef,z=n.useState(!1),$=de(z,2),W=$[0],J=$[1],ee=n.useState(!1),X=de(ee,2),te=X[0],ne=X[1];ve(function(){ne(!0)},[]);var h=te?o:!1,T=n.useRef(),_=n.useRef();ve(function(){h&&(_.current=document.activeElement)},[h]);var B=function(H){var L;if(J(H),S==null||S(H),!H&&_.current&&!((L=T.current)!==null&&L!==void 0&&L.contains(_.current))){var m;(m=_.current)===null||m===void 0||m.focus({preventScroll:!0})}},A=n.useMemo(function(){return{panel:K}},[K]);if(!P&&!W&&!h&&D)return null;var ae={onMouseEnter:N,onMouseOver:g,onMouseLeave:w,onClick:M,onKeyDown:R,onKeyUp:Q},oe=j(j({},t),{},{open:h,prefixCls:l,placement:s,autoFocus:C,keyboard:y,width:f,mask:u,maskClosable:p,inline:I===!1,afterOpenChange:B,ref:T},ae);return n.createElement(we.Provider,{value:A},n.createElement(_e,{open:h||P||W,autoDestroy:!1,getContainer:I,autoLock:u&&(h||W)},n.createElement(qe,oe)))};const xe=e=>{var t,a;const{prefixCls:o,title:r,footer:l,extra:i,closable:s,loading:b,onClose:C,headerStyle:O,bodyStyle:y,footerStyle:E,children:f,classNames:d,styles:u}=e,v=Ce("drawer");let p;s===!1?p=void 0:s===void 0||s===!0?p="start":p=(s==null?void 0:s.placement)==="end"?"end":"start";const I=n.useCallback(g=>n.createElement("button",{type:"button",onClick:C,className:x(`${o}-close`,{[`${o}-close-${p}`]:p==="end"})},g),[C,o,p]),[P,S]=ze(ge(e),ge(v),{closable:!0,closeIconRender:I}),D=()=>{var g,w;return!r&&!P?null:n.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(g=v.styles)===null||g===void 0?void 0:g.header),O),u==null?void 0:u.header),className:x(`${o}-header`,{[`${o}-header-close-only`]:P&&!r&&!i},(w=v.classNames)===null||w===void 0?void 0:w.header,d==null?void 0:d.header)},n.createElement("div",{className:`${o}-header-title`},p==="start"&&S,r&&n.createElement("div",{className:`${o}-title`},r)),i&&n.createElement("div",{className:`${o}-extra`},i),p==="end"&&S)},N=()=>{var g,w;if(!l)return null;const M=`${o}-footer`;return n.createElement("div",{className:x(M,(g=v.classNames)===null||g===void 0?void 0:g.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign(Object.assign({},(w=v.styles)===null||w===void 0?void 0:w.footer),E),u==null?void 0:u.footer)},l)};return n.createElement(n.Fragment,null,D(),n.createElement("div",{className:x(`${o}-body`,d==null?void 0:d.body,(t=v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(a=v.styles)===null||a===void 0?void 0:a.body),y),u==null?void 0:u.body)},b?n.createElement(Ve,{active:!0,title:!1,paragraph:{rows:5},className:`${o}-body-skeleton`}):f),N())},Qe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Se=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ke=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Se({opacity:e},{opacity:1})),Je=(e,t)=>[ke(.7,t),Se({transform:Qe(e)},{transform:"none"})],et=e=>{const{componentCls:t,motionDurationSlow:a}=e;return{[t]:{[`${t}-mask-motion`]:ke(0,a),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((o,r)=>Object.assign(Object.assign({},o),{[`&-${r}`]:Je(r,a)}),{})}}},tt=e=>{const{borderRadiusSM:t,componentCls:a,zIndexPopup:o,colorBgMask:r,colorBgElevated:l,motionDurationSlow:i,motionDurationMid:s,paddingXS:b,padding:C,paddingLG:O,fontSizeLG:y,lineHeightLG:E,lineWidth:f,lineType:d,colorSplit:u,marginXS:v,colorIcon:p,colorIconHover:I,colorBgTextHover:P,colorBgTextActive:S,colorText:D,fontWeightStrong:N,footerPaddingBlock:g,footerPaddingInline:w,calc:M}=e,R=`${a}-content-wrapper`;return{[a]:{position:"fixed",inset:0,zIndex:o,pointerEvents:"none",color:D,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${a}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${a}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${a}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${a}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${a}-mask`]:{position:"absolute",inset:0,zIndex:o,background:r,pointerEvents:"auto"},[R]:{position:"absolute",zIndex:o,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${R}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${R}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${R}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${R}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${a}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${a}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Z(C)} ${Z(O)}`,fontSize:y,lineHeight:E,borderBottom:`${Z(f)} ${d} ${u}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${a}-extra`]:{flex:"none"},[`${a}-close`]:Object.assign({display:"inline-flex",width:M(y).add(b).equal(),height:M(y).add(b).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:p,fontWeight:N,fontSize:y,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto",[`&${a}-close-end`]:{marginInlineStart:v},[`&:not(${a}-close-end)`]:{marginInlineEnd:v},"&:hover":{color:I,backgroundColor:P,textDecoration:"none"},"&:active":{backgroundColor:S}},Le(e)),[`${a}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:y,lineHeight:E},[`${a}-body`]:{flex:1,minWidth:0,minHeight:0,padding:O,overflow:"auto",[`${a}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${a}-footer`]:{flexShrink:0,padding:`${Z(g)} ${Z(w)}`,borderTop:`${Z(f)} ${d} ${u}`},"&-rtl":{direction:"rtl"}}}},nt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Oe=He("Drawer",e=>{const t=Ke(e,{});return[tt(t),et(t)]},nt);var $e=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(a[o[r]]=e[o[r]]);return a};const at={distance:180},ot=e=>{const{rootClassName:t,width:a,height:o,size:r="default",mask:l=!0,push:i=at,open:s,afterOpenChange:b,onClose:C,prefixCls:O,getContainer:y,panelRef:E=null,style:f,className:d,visible:u,afterVisibleChange:v,maskStyle:p,drawerStyle:I,contentWrapperStyle:P,destroyOnClose:S,destroyOnHidden:D}=e,N=$e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:g,getPrefixCls:w,direction:M,className:R,style:Q,classNames:K,styles:z}=Ce("drawer"),$=w("drawer",O),[W,J,ee]=Oe($),X=y===void 0&&g?()=>g(document.body):y,te=x({"no-mask":!l,[`${$}-rtl`]:M==="rtl"},t,J,ee),ne=n.useMemo(()=>a??(r==="large"?736:378),[a,r]),h=n.useMemo(()=>o??(r==="large"?736:378),[o,r]),T={motionName:he($,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_=L=>({motionName:he($,`panel-motion-${L}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),B=Ue(),A=We(E,B),[ae,oe]=Te("Drawer",N.zIndex),{classNames:F={},styles:H={}}=N;return W(n.createElement(Be,{form:!0,space:!0},n.createElement(Ae.Provider,{value:oe},n.createElement(Ze,Object.assign({prefixCls:$,onClose:C,maskMotion:T,motion:_},N,{classNames:{mask:x(F.mask,K.mask),content:x(F.content,K.content),wrapper:x(F.wrapper,K.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),p),z.mask),content:Object.assign(Object.assign(Object.assign({},H.content),I),z.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),P),z.wrapper)},open:s??u,mask:l,push:i,width:ne,height:h,style:Object.assign(Object.assign({},Q),f),className:x(R,d),rootClassName:te,getContainer:X,afterOpenChange:b??v,panelRef:A,zIndex:ae,destroyOnClose:D??S}),n.createElement(xe,Object.assign({prefixCls:$},N,{onClose:C}))))))},rt=e=>{const{prefixCls:t,style:a,className:o,placement:r="right"}=e,l=$e(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=n.useContext(Fe),s=i("drawer",t),[b,C,O]=Oe(s),y=x(s,`${s}-pure`,`${s}-${r}`,C,O,o);return b(n.createElement("div",{className:y,style:a},n.createElement(xe,Object.assign({prefixCls:s},l))))};ot._InternalPanelDoNotUseOrYouWillBeFired=rt;export{ot as D};
|
package/assets/index-SbYeytsI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import U from"react";import{u as X,t as Y,b as Z,e as O,C as ee}from"./index-BvpN2hYX.js";function $(e){return["small","middle","large"].includes(e)}function I(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const P=U.createContext({latestIndex:0}),te=P.Provider,se=({className:e,index:l,children:s,split:t,style:a})=>{const{latestIndex:o}=n.useContext(P);return s==null?null:n.createElement(n.Fragment,null,n.createElement("div",{className:e,style:a},s),l<o&&t&&n.createElement("span",{className:`${e}-split`},t))};var ae=function(e,l){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(s[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)l.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(s[t[a]]=e[t[a]]);return s};const ne=n.forwardRef((e,l)=>{var s;const{getPrefixCls:t,direction:a,size:o,className:j,style:w,classNames:E,styles:V}=X("space"),{size:c=o??"small",align:C,className:h,rootClassName:_,children:A,direction:S="horizontal",prefixCls:k,split:G,style:R,wrap:H=!1,classNames:x,styles:g}=e,L=ae(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[m,u]=Array.isArray(c)?c:[c,c],v=$(u),N=$(m),F=I(u),M=I(m),p=Y(A,{keepEmpty:!0}),b=C===void 0&&S==="horizontal"?"center":C,r=t("space",k),[W,q,B]=Z(r),D=O(r,j,q,`${r}-${S}`,{[`${r}-rtl`]:a==="rtl",[`${r}-align-${b}`]:b,[`${r}-gap-row-${u}`]:v,[`${r}-gap-col-${m}`]:N},h,_,B),z=O(`${r}-item`,(s=x==null?void 0:x.item)!==null&&s!==void 0?s:E.item),J=Object.assign(Object.assign({},V.item),g==null?void 0:g.item),K=p.map((i,f)=>{const y=(i==null?void 0:i.key)||`${z}-${f}`;return n.createElement(se,{className:z,key:y,index:f,split:G,style:J},i)}),Q=n.useMemo(()=>({latestIndex:p.reduce((f,y,T)=>y!=null?T:f,0)}),[p]);if(p.length===0)return null;const d={};return H&&(d.flexWrap="wrap"),!N&&M&&(d.columnGap=m),!v&&F&&(d.rowGap=u),W(n.createElement("div",Object.assign({ref:l,className:D,style:Object.assign(Object.assign(Object.assign({},d),w),R)},L),n.createElement(te,{value:Q},K)))}),re=ne;re.Compact=ee;export{re as S,$ as i};
|