unis_crm/frontend1/dist/assets/index-DxgbQv5l.js

13 lines
46 KiB
JavaScript
Raw Normal View History

2026-04-10 05:33:17 +00:00
import{r as i,b4 as oa,aX as fe,ep as la,aS as D,am as ca,bM as gt,aV as ie,bN as sa,aU as Ue,eq as da,er as ua,bc as ae,ao as K,es as va,cW as pe,bL as fa,ax as ht,bQ as Xe,et as ba,aW as Ne,bp as ma,eu as ga,bv as pt,d1 as ha,cr as pa,c6 as $t,aq as It,ar as Ot,as as u,at as qe,bh as Ye,e0 as Mt,d3 as Fe,an as Be,ce as $a,b1 as ya,av as zt,ev as Sa,bg as Qe,cd as xa,a$ as Ca,S as _a}from"./index-BGI3tmtB.js";var wa=function(t,n){return i.createElement(oa,fe({},t,{ref:n,icon:la}))},Ta=i.forwardRef(wa);const De=i.createContext(null);var Pa=function(t){var n=t.activeTabOffset,a=t.horizontal,r=t.rtl,o=t.indicator,c=o===void 0?{}:o,l=c.size,s=c.align,d=s===void 0?"center":s,h=i.useState(),g=D(h,2),y=g[0],T=g[1],A=i.useRef(),P=ca.useCallback(function(f){return typeof l=="function"?l(f):typeof l=="number"?l:f},[l]);function N(){gt.cancel(A.current)}return i.useEffect(function(){var f={};if(n)if(a){f.width=P(n.width);var p=r?"right":"left";d==="start"&&(f[p]=n[p]),d==="center"&&(f[p]=n[p]+n.width/2,f.transform=r?"translateX(50%)":"translateX(-50%)"),d==="end"&&(f[p]=n[p]+n.width,f.transform="translateX(-100%)")}else f.height=P(n.height),d==="start"&&(f.top=n.top),d==="center"&&(f.top=n.top+n.height/2,f.transform="translateY(-50%)"),d==="end"&&(f.top=n.top+n.height,f.transform="translateY(-100%)");return N(),A.current=gt(function(){var E=y&&f&&Object.keys(f).every(function(B){var z=f[B],G=y[B];return typeof z=="number"&&typeof G=="number"?Math.round(z)===Math.round(G):z===G});E||T(f)}),N},[JSON.stringify(n),a,r,d,P]),{style:y}},yt={width:0,height:0,left:0,top:0};function Ea(e,t,n){return i.useMemo(function(){for(var a,r=new Map,o=t.get((a=e[0])===null||a===void 0?void 0:a.key)||yt,c=o.left+o.width,l=0;l<e.length;l+=1){var s=e[l].key,d=t.get(s);if(!d){var h;d=t.get((h=e[l-1])===null||h===void 0?void 0:h.key)||yt}var g=r.get(s)||ie({},d);g.right=c-g.left-g.width,r.set(s,g)}return r},[e.map(function(a){return a.key}).join("_"),t,n])}function St(e,t){var n=i.useRef(e),a=i.useState({}),r=D(a,2),o=r[1];function c(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,o({})}return[n.current,c]}var Ra=.1,xt=.01,Le=20,Ct=Math.pow(.995,Le);function Ia(e,t){var n=i.useState(),a=D(n,2),r=a[0],o=a[1],c=i.useState(0),l=D(c,2),s=l[0],d=l[1],h=i.useState(0),g=D(h,2),y=g[0],T=g[1],A=i.useState(),P=D(A,2),N=P[0],f=P[1],p=i.useRef();function E(C){var R=C.touches[0],b=R.screenX,_=R.screenY;o({x:b,y:_}),window.clearInterval(p.current)}function B(C){if(r){var R=C.touches[0],b=R.screenX,_=R.screenY;o({x:b,y:_});var m=b-r.x,$=_-r.y;t(m,$);var J=Date.now();d(J),T(J-s),f({x:m,y:$})}}function z(){if(r&&(o(null),f(null),N)){var C=N.x/y,R=N.y/y,b=Math.abs(C),_=Math.abs(R);if(Math.max(b,_)<Ra)return;var m=C,$=R;p.current=window.setInterval(function(){if(Math.abs(m)<xt&&Math.abs($)<xt){window.clearInterval(p.current);return}m*=Ct,$*=Ct,t(m*Le,$*Le)},Le)}}var G=i.useRef();function U(C){var R=C.deltaX,b=C.deltaY,_=0,m=Math.abs(R),$=Math.abs(b);m===$?_=G.current==="x"?R:b:m>$?(_=R,G.current="x"):(_=b,G.current="y"),t(-_,-_)&&C.preventDefault()}var O=i.useRef(null);O.current={onTouchStart:E,onTouchMove:B,onTouchEnd:z,onWheel:U},i.useEffect(function(){function C(m){O.current.onTouchStart(m)}function R(m){O.current.onTouchMove(m)}function b(m){O.current.onTouchEnd(m)}function _(m){O.current.onWheel(m)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",b,{passive:!0}),e.current.addEventListener("touchstart",C,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",b)}},[])}function Lt(e){var t=i.useState(0),n=D(t,2),a=n[0],r=n[1],o=i.useRef(0),c=i.useRef();return c.current=e,sa(function(){var l;(l=c.current)===null||l===void 0||l.call(c)},[a]),function(){o.current===a&&(o.current+=1,r(o.current))}}function Oa(e){var t=i.useRef([]),n=i.useState({}),a=D(n,2),r=a[1],o=i.useRef(typeof e=="function"?e():e),c=Lt(function(){var s=o.current;t.current.forEach(function(d){s=d(s)}),t.current=[],
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:u(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tn=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:r,cardHeightLG:o,horizontalItemPaddingSM:c,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},an=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:l,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Fe(e)),"&:hover":{color:a},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:Mt(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allo
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},fn=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${u(r)} 0 0 0 ${n},
0 ${u(r)} 0 0 ${n},
${u(r)} ${u(r)} 0 0 ${n},
${u(r)} 0 0 0 ${n} inset,
0 ${u(r)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},bn=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:o,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${u(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`},Qe()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:u(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:u(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${u(e.lineWidth)} ${e.lineType} ${o}`}}})},mn=e=>Object.assign(Object.assign({margin:`${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Qe()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ye),"&-description":{color:e.colorTextDescription}}),gn=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:a,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${u(a)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${u(e.padding)} ${u(r)}`}}},hn=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},pn=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:r,boxShadowTertiary:o,bodyPadding:c,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},qe(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:vn(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`},[`${t}-grid`]:fn(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:bn(e),[`${t}-meta`]:mn(e)}),[`${t}-bordered`]:{border:`${u(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:gn(e),[`${t}-loading`]:hn(e),[`${t}-rtl`]:{direction:"rtl"}}},$n=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:a,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${u(a)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},yn=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&