pixivflow 2.34.0 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/download/novelMarkers.d.ts +18 -2
- package/dist/package.json +1 -1
- package/dist/version.js +1 -1
- package/dist/webui/package.json +1 -1
- package/dist/webui/routes/handlers/scheduler-handlers.d.ts +17 -0
- package/dist/webui/routes/handlers/scheduler-handlers.js +99 -0
- package/dist/webui/routes/scheduler.js +2 -0
- package/dist/webui/utils/error-codes.d.ts +2 -0
- package/dist/webui/utils/error-codes.js +2 -0
- package/package.json +1 -1
- package/webui-frontend/dist/assets/ActionButton-bmITMO8t.js +2 -0
- package/webui-frontend/dist/assets/{CheckCircleOutlined-H3DnUyMO.js → CheckCircleOutlined-DXxMdP08.js} +2 -2
- package/webui-frontend/dist/assets/{ClearOutlined-BpODq7I7.js → ClearOutlined-CVkP1OPo.js} +2 -2
- package/webui-frontend/dist/assets/{CloseCircleOutlined-BFfS5iXd.js → CloseCircleOutlined-DGYEx-rx.js} +2 -2
- package/webui-frontend/dist/assets/{Config-DRElCeDC.js → Config-BFBZgSvI.js} +3 -3
- package/webui-frontend/dist/assets/Dashboard-CHiRV77D.js +2 -0
- package/webui-frontend/dist/assets/{DeleteOutlined-BFmW1oWe.js → DeleteOutlined-DwsLtl_I.js} +2 -2
- package/webui-frontend/dist/assets/Download-BY0RQ0yW.js +2 -0
- package/webui-frontend/dist/assets/{Files-nNoRY5tl.js → Files-qrEyGaCr.js} +3 -3
- package/webui-frontend/dist/assets/{PictureOutlined-U51jGr2U.js → PictureOutlined-B5UcfS3J.js} +2 -2
- package/webui-frontend/dist/assets/{SortDescendingOutlined-CckVuL_b.js → SortDescendingOutlined-CIPBhzNI.js} +2 -2
- package/webui-frontend/dist/assets/{useErrorHandler-BOvHue1w.js → Table-COdSkj3k.js} +31 -31
- package/webui-frontend/dist/assets/ThunderboltOutlined-BlHGTLpd.js +2 -0
- package/webui-frontend/dist/assets/UrlDownload-Dxj1MDnw.js +3 -0
- package/webui-frontend/dist/assets/{dateUtils-gQt2uAjS.js → dateUtils-Dh-zVUtr.js} +2 -2
- package/webui-frontend/dist/assets/errorCodeTranslator-D5vahyqQ.js +2 -0
- package/webui-frontend/dist/assets/{index-DPigBPWX.js → index-B84Vd9_M.js} +2 -2
- package/webui-frontend/dist/assets/index-BhmvYPFd.js +19 -0
- package/webui-frontend/dist/assets/{index-CDrp3NIf.js → index-Bp5yfy4e.js} +2 -2
- package/webui-frontend/dist/assets/{index-DG6kGbYq.js → index-BtXc5-H2.js} +37 -37
- package/webui-frontend/dist/assets/index-BvQQNYa5.js +22 -0
- package/webui-frontend/dist/assets/index-C2qRwckx.js +2 -0
- package/webui-frontend/dist/assets/index-CFWcxkyB.js +2 -0
- package/webui-frontend/dist/assets/index-CZ44NQeD.js +2 -0
- package/webui-frontend/dist/assets/index-CZXbP5HB.js +3 -0
- package/webui-frontend/dist/assets/{index-CJln3zA7.js → index-CZlT-55J.js} +3 -3
- package/webui-frontend/dist/assets/index-Cfg0ICF_.js +20 -0
- package/webui-frontend/dist/assets/index-D1KRxkVR.js +2 -0
- package/webui-frontend/dist/assets/{index-B2ns27ii.js → index-D8iUeVsP.js} +2 -2
- package/webui-frontend/dist/assets/{index-B7yYDv10.js → index-DcqvG64t.js} +2 -2
- package/webui-frontend/dist/assets/index-eeF42ACG.js +2 -0
- package/webui-frontend/dist/assets/{index-_EG4kaKN.js → index-xZubvNRw.js} +6 -6
- package/webui-frontend/dist/assets/row-DaMDSIar.js +2 -0
- package/webui-frontend/dist/assets/{useAuth-wCjAOx6S.js → useAuth-BfM9bg0I.js} +4 -4
- package/webui-frontend/dist/assets/{useConfig-Ds7RpIL1.js → useConfig-nFBmSW5k.js} +2 -2
- package/webui-frontend/dist/assets/{useDownload-BlxvZNEm.js → useDownload-ChmDqdbc.js} +2 -2
- package/webui-frontend/dist/assets/useErrorHandler-MJ8OxkB4.js +2 -0
- package/webui-frontend/dist/index.html +1 -1
- package/webui-frontend/dist/assets/Dashboard-aqPMquSO.js +0 -2
- package/webui-frontend/dist/assets/Download-DCKDU51K.js +0 -2
- package/webui-frontend/dist/assets/ThunderboltOutlined-ulcCd7ui.js +0 -2
- package/webui-frontend/dist/assets/UrlDownload-Bzs0AZN0.js +0 -3
- package/webui-frontend/dist/assets/errorCodeTranslator-BqIackMm.js +0 -3
- package/webui-frontend/dist/assets/index-Bbsa44oT.js +0 -2
- package/webui-frontend/dist/assets/index-C2ANILg9.js +0 -19
- package/webui-frontend/dist/assets/index-CFtP5lqo.js +0 -22
- package/webui-frontend/dist/assets/index-CZhfhXvc.js +0 -2
- package/webui-frontend/dist/assets/index-CfHs6AUn.js +0 -2
- package/webui-frontend/dist/assets/index-DarObP-C.js +0 -2
- package/webui-frontend/dist/assets/row-_c51T55h.js +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aD as vt,a2 as o,aS as Ft,a8 as ft,bc as Xt,r as l,I as ht,_ as ee,i as Te,a3 as Q,n as M,h as q,a7 as rt,p as Jt,a4 as Gt,v as Ct,x as St,z as $t,A as h,bn as at,ab as Ut,b2 as Le,b4 as Qt,ac as Yt,J as Zt,bG as kt,aR as ot,ad as lt,X as en,F as tn,D as yt,aJ as nn,ag as rn,aL as an,bH as on,aM as ln,bI as cn}from"./index-DG6kGbYq.js";import{u as sn}from"./row-_c51T55h.js";import{a as un,i as dn,g as mn,n as gn,o as pn,p as bn}from"./index-_EG4kaKN.js";function ct(...e){const t={};return e.forEach(i=>{i&&Object.keys(i).forEach(n=>{i[n]!==void 0&&(t[n]=i[n])})}),t}function st(e){if(!e)return;const{closable:t,closeIcon:i}=e;return{closable:t,closeIcon:i}}function ut(e){const{closable:t,closeIcon:i}=e||{};return o.useMemo(()=>{if(!t&&(t===!1||i===!1||i===null))return!1;if(t===void 0&&i===void 0)return null;let n={closeIcon:typeof i!="boolean"&&i!==null?i:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,i])}const vn={},fn=(e,t,i=vn)=>{const n=ut(e),r=ut(t),[p]=vt("global",Xt.global),v=typeof n!="boolean"?!!n?.disabled:!1,b=o.useMemo(()=>Object.assign({closeIcon:o.createElement(Ft,null)},i),[i]),d=o.useMemo(()=>n===!1?!1:n?ct(b,r,n):r===!1?!1:r?ct(b,r):b.closable?b:!1,[n,r,b]);return o.useMemo(()=>{var $,x;if(d===!1)return[!1,null,v,{}];const{closeIconRender:s}=b,{closeIcon:C}=d;let f=C;const P=ft(d,!0);return f!=null&&(s&&(f=s(C)),f=o.isValidElement(f)?o.cloneElement(f,Object.assign(Object.assign(Object.assign({},f.props),{"aria-label":(x=($=f.props)===null||$===void 0?void 0:$["aria-label"])!==null&&x!==void 0?x:p.close}),P)):o.createElement("span",Object.assign({"aria-label":p.close},P),f)),[!0,f,v,P]},[v,p.close,d,b])};var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Cn=function(t,i){return l.createElement(ht,ee({},t,{ref:i,icon:hn}))},dt=l.forwardRef(Cn),Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},$n=function(t,i){return l.createElement(ht,ee({},t,{ref:i,icon:Sn}))},mt=l.forwardRef($n),yn={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},xn=[10,20,50,100],zn=function(t){var i=t.pageSizeOptions,n=i===void 0?xn:i,r=t.locale,p=t.changeSize,v=t.pageSize,b=t.goButton,d=t.quickGo,$=t.rootPrefixCls,x=t.disabled,s=t.buildOptionText,C=t.showSizeChanger,f=t.sizeChangerRender,P=o.useState(""),I=Te(P,2),y=I[0],E=I[1],_=function(){return!y||Number.isNaN(y)?void 0:Number(y)},D=typeof s=="function"?s:function(g){return"".concat(g," ").concat(r.items_per_page)},Y=function(S){E(S.target.value)},m=function(S){b||y===""||(E(""),!(S.relatedTarget&&(S.relatedTarget.className.indexOf("".concat($,"-item-link"))>=0||S.relatedTarget.className.indexOf("".concat($,"-item"))>=0))&&d?.(_()))},w=function(S){y!==""&&(S.keyCode===Q.ENTER||S.type==="click")&&(E(""),d?.(_()))},N=function(){return n.some(function(S){return S.toString()===v.toString()})?n:n.concat([v]).sort(function(S,L){var Z=Number.isNaN(Number(S))?0:Number(S),F=Number.isNaN(Number(L))?0:Number(L);return Z-F})},j="".concat($,"-options");if(!C&&!d)return null;var K=null,A=null,X=null;return C&&f&&(K=f({disabled:x,size:v,onSizeChange:function(S){p?.(Number(S))},"aria-label":r.page_size,className:"".concat(j,"-size-changer"),options:N().map(function(g){return{label:D(g),value:g}})})),d&&(b&&(X=typeof b=="boolean"?o.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:x,className:"".concat(j,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:w,onKeyUp:w},b)),A=o.createElement("div",{className:"".concat(j,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:x,type:"text",value:y,onChange:Y,onKeyUp:w,onBlur:m,"aria-label":r.page}),r.page,X)),o.createElement("li",{className:j},K,A)},he=function(t){var i=t.rootPrefixCls,n=t.page,r=t.active,p=t.className,v=t.showTitle,b=t.onClick,d=t.onKeyPress,$=t.itemRender,x="".concat(i,"-item"),s=M(x,"".concat(x,"-").concat(n),q(q({},"".concat(x,"-active"),r),"".concat(x,"-disabled"),!n),p),C=function(){b(n)},f=function(y){d(y,b,n)},P=$(n,"page",o.createElement("a",{rel:"nofollow"},n));return P?o.createElement("li",{title:v?String(n):null,className:s,onClick:C,onKeyDown:f,tabIndex:0},P):null},In=function(t,i,n){return n};function gt(){}function pt(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,i){var n=typeof e>"u"?t:e;return Math.floor((i-1)/n)+1}var Pn=function(t){var i=t.prefixCls,n=i===void 0?"rc-pagination":i,r=t.selectPrefixCls,p=r===void 0?"rc-select":r,v=t.className,b=t.current,d=t.defaultCurrent,$=d===void 0?1:d,x=t.total,s=x===void 0?0:x,C=t.pageSize,f=t.defaultPageSize,P=f===void 0?10:f,I=t.onChange,y=I===void 0?gt:I,E=t.hideOnSinglePage,_=t.align,D=t.showPrevNextJumpers,Y=D===void 0?!0:D,m=t.showQuickJumper,w=t.showLessItems,N=t.showTitle,j=N===void 0?!0:N,K=t.onShowSizeChange,A=K===void 0?gt:K,X=t.locale,g=X===void 0?yn:X,S=t.style,L=t.totalBoundaryShowSizeChanger,Z=L===void 0?50:L,F=t.disabled,H=t.simple,R=t.showTotal,oe=t.showSizeChanger,W=oe===void 0?s>Z:oe,le=t.sizeChangerRender,te=t.pageSizeOptions,Ce=t.itemRender,ne=Ce===void 0?In:Ce,Se=t.jumpPrevIcon,J=t.jumpNextIcon,ie=t.prevIcon,ue=t.nextIcon,de=o.useRef(null),re=rt(10,{value:C,defaultValue:P}),$e=Te(re,2),B=$e[0],ye=$e[1],Me=rt(1,{value:b,defaultValue:$,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,s)))}}),ce=Te(Me,2),c=ce[0],G=ce[1],_e=o.useState(c),qe=Te(_e,2),se=qe[0],xe=qe[1];l.useEffect(function(){xe(c)},[c]);var Ke=Math.max(1,c-(w?3:5)),Fe=Math.min(ae(void 0,B,s),c+(w?3:5));function ze(a,u){var z=a||o.createElement("button",{type:"button","aria-label":u,className:"".concat(n,"-item-link")});return typeof a=="function"&&(z=o.createElement(a,Gt({},t))),z}function Xe(a){var u=a.target.value,z=ae(void 0,B,s),k;return u===""?k=u:Number.isNaN(Number(u))?k=se:u>=z?k=z:k=Number(u),k}function Pt(a){return pt(a)&&a!==c&&pt(s)&&s>0}var Nt=s>B?m:!1;function Ot(a){(a.keyCode===Q.UP||a.keyCode===Q.DOWN)&&a.preventDefault()}function Je(a){var u=Xe(a);switch(u!==se&&xe(u),a.keyCode){case Q.ENTER:V(u);break;case Q.UP:V(u-1);break;case Q.DOWN:V(u+1);break}}function Et(a){V(Xe(a))}function jt(a){var u=ae(a,B,s),z=c>u&&u!==0?u:c;ye(a),xe(z),A?.(c,a),G(z),y?.(z,a)}function V(a){if(Pt(a)&&!F){var u=ae(void 0,B,s),z=a;return a>u?z=u:a<1&&(z=1),z!==se&&xe(z),G(z),y?.(z,B),z}return c}var Ie=c>1,Pe=c<ae(void 0,B,s);function Ge(){Ie&&V(c-1)}function Ue(){Pe&&V(c+1)}function Qe(){V(Ke)}function Ye(){V(Fe)}function me(a,u){if(a.key==="Enter"||a.charCode===Q.ENTER||a.keyCode===Q.ENTER){for(var z=arguments.length,k=new Array(z>2?z-2:0),Be=2;Be<z;Be++)k[Be-2]=arguments[Be];u.apply(void 0,k)}}function Bt(a){me(a,Ge)}function wt(a){me(a,Ue)}function Tt(a){me(a,Qe)}function Mt(a){me(a,Ye)}function _t(a){var u=ne(a,"prev",ze(ie,"prev page"));return o.isValidElement(u)?o.cloneElement(u,{disabled:!Ie}):u}function Ht(a){var u=ne(a,"next",ze(ue,"next page"));return o.isValidElement(u)?o.cloneElement(u,{disabled:!Pe}):u}function Ne(a){(a.type==="click"||a.keyCode===Q.ENTER)&&V(se)}var Ze=null,Rt=ft(t,{aria:!0,data:!0}),Dt=R&&o.createElement("li",{className:"".concat(n,"-total-text")},R(s,[s===0?0:(c-1)*B+1,c*B>s?s:c*B])),ke=null,O=ae(void 0,B,s);if(E&&s<=B)return null;var T=[],ge={rootPrefixCls:n,onClick:V,onKeyPress:me,showTitle:j,itemRender:ne,page:-1},At=c-1>0?c-1:0,Lt=c+1<O?c+1:O,Oe=m&&m.goButton,Wt=Jt(H)==="object"?H.readOnly:!H,pe=Oe,et=null;H&&(Oe&&(typeof Oe=="boolean"?pe=o.createElement("button",{type:"button",onClick:Ne,onKeyUp:Ne},g.jump_to_confirm):pe=o.createElement("span",{onClick:Ne,onKeyUp:Ne},Oe),pe=o.createElement("li",{title:j?"".concat(g.jump_to).concat(c,"/").concat(O):null,className:"".concat(n,"-simple-pager")},pe)),et=o.createElement("li",{title:j?"".concat(c,"/").concat(O):null,className:"".concat(n,"-simple-pager")},Wt?se:o.createElement("input",{type:"text","aria-label":g.jump_to,value:se,disabled:F,onKeyDown:Ot,onKeyUp:Je,onChange:Je,onBlur:Et,size:3}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),O));var U=w?1:2;if(O<=3+U*2){O||T.push(o.createElement(he,ee({},ge,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var be=1;be<=O;be+=1)T.push(o.createElement(he,ee({},ge,{key:be,page:be,active:c===be})))}else{var Vt=w?g.prev_3:g.prev_5,qt=w?g.next_3:g.next_5,tt=ne(Ke,"jump-prev",ze(Se,"prev page")),nt=ne(Fe,"jump-next",ze(J,"next page"));Y&&(Ze=tt?o.createElement("li",{title:j?Vt:null,key:"prev",onClick:Qe,tabIndex:0,onKeyDown:Tt,className:M("".concat(n,"-jump-prev"),q({},"".concat(n,"-jump-prev-custom-icon"),!!Se))},tt):null,ke=nt?o.createElement("li",{title:j?qt:null,key:"next",onClick:Ye,tabIndex:0,onKeyDown:Mt,className:M("".concat(n,"-jump-next"),q({},"".concat(n,"-jump-next-custom-icon"),!!J))},nt):null);var He=Math.max(1,c-U),Re=Math.min(c+U,O);c-1<=U&&(Re=1+U*2),O-c<=U&&(He=O-U*2);for(var ve=He;ve<=Re;ve+=1)T.push(o.createElement(he,ee({},ge,{key:ve,page:ve,active:c===ve})));if(c-1>=U*2&&c!==3&&(T[0]=o.cloneElement(T[0],{className:M("".concat(n,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Ze)),O-c>=U*2&&c!==O-2){var it=T[T.length-1];T[T.length-1]=o.cloneElement(it,{className:M("".concat(n,"-item-before-jump-next"),it.props.className)}),T.push(ke)}He!==1&&T.unshift(o.createElement(he,ee({},ge,{key:1,page:1}))),Re!==O&&T.push(o.createElement(he,ee({},ge,{key:O,page:O})))}var Ee=_t(At);if(Ee){var De=!Ie||!O;Ee=o.createElement("li",{title:j?g.prev_page:null,onClick:Ge,tabIndex:De?null:0,onKeyDown:Bt,className:M("".concat(n,"-prev"),q({},"".concat(n,"-disabled"),De)),"aria-disabled":De},Ee)}var je=Ht(Lt);if(je){var fe,Ae;H?(fe=!Pe,Ae=Ie?0:null):(fe=!Pe||!O,Ae=fe?null:0),je=o.createElement("li",{title:j?g.next_page:null,onClick:Ue,tabIndex:Ae,onKeyDown:wt,className:M("".concat(n,"-next"),q({},"".concat(n,"-disabled"),fe)),"aria-disabled":fe},je)}var Kt=M(n,v,q(q(q(q(q({},"".concat(n,"-start"),_==="start"),"".concat(n,"-center"),_==="center"),"".concat(n,"-end"),_==="end"),"".concat(n,"-simple"),H),"".concat(n,"-disabled"),F));return o.createElement("ul",ee({className:Kt,style:S,ref:de},Rt),Dt,Ee,H?et:T,je,o.createElement(zn,{locale:g,rootPrefixCls:n,disabled:F,selectPrefixCls:p,changeSize:jt,pageSize:B,pageSizeOptions:te,quickGo:Nt?V:null,goButton:pe,showSizeChanger:W,sizeChangerRender:le}))};const Nn=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},On=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:h(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:h(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
1
|
+
import{aD as vt,a2 as o,aS as Ft,a8 as ft,a$ as Jt,r as l,I as ht,_ as ee,i as Te,a3 as Q,n as M,h as q,a7 as rt,p as Xt,a4 as Ut,v as Ct,x as St,z as $t,A as h,bp as at,ab as Gt,ba as Le,bc as Qt,ac as Yt,J as Zt,bH as kt,aR as ot,ad as lt,X as en,F as tn,D as yt,aJ as nn,ag as rn,aL as an,bI as on,aM as ln,bJ as cn}from"./index-BtXc5-H2.js";import{u as sn}from"./index-Cfg0ICF_.js";import{a as un,i as dn,g as mn,n as gn,o as pn,p as bn}from"./index-xZubvNRw.js";function ct(...e){const t={};return e.forEach(i=>{i&&Object.keys(i).forEach(n=>{i[n]!==void 0&&(t[n]=i[n])})}),t}function st(e){if(!e)return;const{closable:t,closeIcon:i}=e;return{closable:t,closeIcon:i}}function ut(e){const{closable:t,closeIcon:i}=e||{};return o.useMemo(()=>{if(!t&&(t===!1||i===!1||i===null))return!1;if(t===void 0&&i===void 0)return null;let n={closeIcon:typeof i!="boolean"&&i!==null?i:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,i])}const vn={},fn=(e,t,i=vn)=>{const n=ut(e),r=ut(t),[p]=vt("global",Jt.global),v=typeof n!="boolean"?!!n?.disabled:!1,b=o.useMemo(()=>Object.assign({closeIcon:o.createElement(Ft,null)},i),[i]),d=o.useMemo(()=>n===!1?!1:n?ct(b,r,n):r===!1?!1:r?ct(b,r):b.closable?b:!1,[n,r,b]);return o.useMemo(()=>{var $,x;if(d===!1)return[!1,null,v,{}];const{closeIconRender:s}=b,{closeIcon:C}=d;let f=C;const P=ft(d,!0);return f!=null&&(s&&(f=s(C)),f=o.isValidElement(f)?o.cloneElement(f,Object.assign(Object.assign(Object.assign({},f.props),{"aria-label":(x=($=f.props)===null||$===void 0?void 0:$["aria-label"])!==null&&x!==void 0?x:p.close}),P)):o.createElement("span",Object.assign({"aria-label":p.close},P),f)),[!0,f,v,P]},[v,p.close,d,b])};var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Cn=function(t,i){return l.createElement(ht,ee({},t,{ref:i,icon:hn}))},dt=l.forwardRef(Cn),Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},$n=function(t,i){return l.createElement(ht,ee({},t,{ref:i,icon:Sn}))},mt=l.forwardRef($n),yn={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},xn=[10,20,50,100],zn=function(t){var i=t.pageSizeOptions,n=i===void 0?xn:i,r=t.locale,p=t.changeSize,v=t.pageSize,b=t.goButton,d=t.quickGo,$=t.rootPrefixCls,x=t.disabled,s=t.buildOptionText,C=t.showSizeChanger,f=t.sizeChangerRender,P=o.useState(""),I=Te(P,2),y=I[0],E=I[1],_=function(){return!y||Number.isNaN(y)?void 0:Number(y)},D=typeof s=="function"?s:function(g){return"".concat(g," ").concat(r.items_per_page)},Y=function(S){E(S.target.value)},m=function(S){b||y===""||(E(""),!(S.relatedTarget&&(S.relatedTarget.className.indexOf("".concat($,"-item-link"))>=0||S.relatedTarget.className.indexOf("".concat($,"-item"))>=0))&&d?.(_()))},w=function(S){y!==""&&(S.keyCode===Q.ENTER||S.type==="click")&&(E(""),d?.(_()))},N=function(){return n.some(function(S){return S.toString()===v.toString()})?n:n.concat([v]).sort(function(S,L){var Z=Number.isNaN(Number(S))?0:Number(S),F=Number.isNaN(Number(L))?0:Number(L);return Z-F})},j="".concat($,"-options");if(!C&&!d)return null;var K=null,A=null,J=null;return C&&f&&(K=f({disabled:x,size:v,onSizeChange:function(S){p?.(Number(S))},"aria-label":r.page_size,className:"".concat(j,"-size-changer"),options:N().map(function(g){return{label:D(g),value:g}})})),d&&(b&&(J=typeof b=="boolean"?o.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:x,className:"".concat(j,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:w,onKeyUp:w},b)),A=o.createElement("div",{className:"".concat(j,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:x,type:"text",value:y,onChange:Y,onKeyUp:w,onBlur:m,"aria-label":r.page}),r.page,J)),o.createElement("li",{className:j},K,A)},he=function(t){var i=t.rootPrefixCls,n=t.page,r=t.active,p=t.className,v=t.showTitle,b=t.onClick,d=t.onKeyPress,$=t.itemRender,x="".concat(i,"-item"),s=M(x,"".concat(x,"-").concat(n),q(q({},"".concat(x,"-active"),r),"".concat(x,"-disabled"),!n),p),C=function(){b(n)},f=function(y){d(y,b,n)},P=$(n,"page",o.createElement("a",{rel:"nofollow"},n));return P?o.createElement("li",{title:v?String(n):null,className:s,onClick:C,onKeyDown:f,tabIndex:0},P):null},In=function(t,i,n){return n};function gt(){}function pt(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,i){var n=typeof e>"u"?t:e;return Math.floor((i-1)/n)+1}var Pn=function(t){var i=t.prefixCls,n=i===void 0?"rc-pagination":i,r=t.selectPrefixCls,p=r===void 0?"rc-select":r,v=t.className,b=t.current,d=t.defaultCurrent,$=d===void 0?1:d,x=t.total,s=x===void 0?0:x,C=t.pageSize,f=t.defaultPageSize,P=f===void 0?10:f,I=t.onChange,y=I===void 0?gt:I,E=t.hideOnSinglePage,_=t.align,D=t.showPrevNextJumpers,Y=D===void 0?!0:D,m=t.showQuickJumper,w=t.showLessItems,N=t.showTitle,j=N===void 0?!0:N,K=t.onShowSizeChange,A=K===void 0?gt:K,J=t.locale,g=J===void 0?yn:J,S=t.style,L=t.totalBoundaryShowSizeChanger,Z=L===void 0?50:L,F=t.disabled,H=t.simple,R=t.showTotal,oe=t.showSizeChanger,W=oe===void 0?s>Z:oe,le=t.sizeChangerRender,te=t.pageSizeOptions,Ce=t.itemRender,ne=Ce===void 0?In:Ce,Se=t.jumpPrevIcon,X=t.jumpNextIcon,ie=t.prevIcon,ue=t.nextIcon,de=o.useRef(null),re=rt(10,{value:C,defaultValue:P}),$e=Te(re,2),B=$e[0],ye=$e[1],Me=rt(1,{value:b,defaultValue:$,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,s)))}}),ce=Te(Me,2),c=ce[0],U=ce[1],_e=o.useState(c),qe=Te(_e,2),se=qe[0],xe=qe[1];l.useEffect(function(){xe(c)},[c]);var Ke=Math.max(1,c-(w?3:5)),Fe=Math.min(ae(void 0,B,s),c+(w?3:5));function ze(a,u){var z=a||o.createElement("button",{type:"button","aria-label":u,className:"".concat(n,"-item-link")});return typeof a=="function"&&(z=o.createElement(a,Ut({},t))),z}function Je(a){var u=a.target.value,z=ae(void 0,B,s),k;return u===""?k=u:Number.isNaN(Number(u))?k=se:u>=z?k=z:k=Number(u),k}function Pt(a){return pt(a)&&a!==c&&pt(s)&&s>0}var Nt=s>B?m:!1;function Ot(a){(a.keyCode===Q.UP||a.keyCode===Q.DOWN)&&a.preventDefault()}function Xe(a){var u=Je(a);switch(u!==se&&xe(u),a.keyCode){case Q.ENTER:V(u);break;case Q.UP:V(u-1);break;case Q.DOWN:V(u+1);break}}function Et(a){V(Je(a))}function jt(a){var u=ae(a,B,s),z=c>u&&u!==0?u:c;ye(a),xe(z),A?.(c,a),U(z),y?.(z,a)}function V(a){if(Pt(a)&&!F){var u=ae(void 0,B,s),z=a;return a>u?z=u:a<1&&(z=1),z!==se&&xe(z),U(z),y?.(z,B),z}return c}var Ie=c>1,Pe=c<ae(void 0,B,s);function Ue(){Ie&&V(c-1)}function Ge(){Pe&&V(c+1)}function Qe(){V(Ke)}function Ye(){V(Fe)}function me(a,u){if(a.key==="Enter"||a.charCode===Q.ENTER||a.keyCode===Q.ENTER){for(var z=arguments.length,k=new Array(z>2?z-2:0),Be=2;Be<z;Be++)k[Be-2]=arguments[Be];u.apply(void 0,k)}}function Bt(a){me(a,Ue)}function wt(a){me(a,Ge)}function Tt(a){me(a,Qe)}function Mt(a){me(a,Ye)}function _t(a){var u=ne(a,"prev",ze(ie,"prev page"));return o.isValidElement(u)?o.cloneElement(u,{disabled:!Ie}):u}function Ht(a){var u=ne(a,"next",ze(ue,"next page"));return o.isValidElement(u)?o.cloneElement(u,{disabled:!Pe}):u}function Ne(a){(a.type==="click"||a.keyCode===Q.ENTER)&&V(se)}var Ze=null,Rt=ft(t,{aria:!0,data:!0}),Dt=R&&o.createElement("li",{className:"".concat(n,"-total-text")},R(s,[s===0?0:(c-1)*B+1,c*B>s?s:c*B])),ke=null,O=ae(void 0,B,s);if(E&&s<=B)return null;var T=[],ge={rootPrefixCls:n,onClick:V,onKeyPress:me,showTitle:j,itemRender:ne,page:-1},At=c-1>0?c-1:0,Lt=c+1<O?c+1:O,Oe=m&&m.goButton,Wt=Xt(H)==="object"?H.readOnly:!H,pe=Oe,et=null;H&&(Oe&&(typeof Oe=="boolean"?pe=o.createElement("button",{type:"button",onClick:Ne,onKeyUp:Ne},g.jump_to_confirm):pe=o.createElement("span",{onClick:Ne,onKeyUp:Ne},Oe),pe=o.createElement("li",{title:j?"".concat(g.jump_to).concat(c,"/").concat(O):null,className:"".concat(n,"-simple-pager")},pe)),et=o.createElement("li",{title:j?"".concat(c,"/").concat(O):null,className:"".concat(n,"-simple-pager")},Wt?se:o.createElement("input",{type:"text","aria-label":g.jump_to,value:se,disabled:F,onKeyDown:Ot,onKeyUp:Xe,onChange:Xe,onBlur:Et,size:3}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),O));var G=w?1:2;if(O<=3+G*2){O||T.push(o.createElement(he,ee({},ge,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var be=1;be<=O;be+=1)T.push(o.createElement(he,ee({},ge,{key:be,page:be,active:c===be})))}else{var Vt=w?g.prev_3:g.prev_5,qt=w?g.next_3:g.next_5,tt=ne(Ke,"jump-prev",ze(Se,"prev page")),nt=ne(Fe,"jump-next",ze(X,"next page"));Y&&(Ze=tt?o.createElement("li",{title:j?Vt:null,key:"prev",onClick:Qe,tabIndex:0,onKeyDown:Tt,className:M("".concat(n,"-jump-prev"),q({},"".concat(n,"-jump-prev-custom-icon"),!!Se))},tt):null,ke=nt?o.createElement("li",{title:j?qt:null,key:"next",onClick:Ye,tabIndex:0,onKeyDown:Mt,className:M("".concat(n,"-jump-next"),q({},"".concat(n,"-jump-next-custom-icon"),!!X))},nt):null);var He=Math.max(1,c-G),Re=Math.min(c+G,O);c-1<=G&&(Re=1+G*2),O-c<=G&&(He=O-G*2);for(var ve=He;ve<=Re;ve+=1)T.push(o.createElement(he,ee({},ge,{key:ve,page:ve,active:c===ve})));if(c-1>=G*2&&c!==3&&(T[0]=o.cloneElement(T[0],{className:M("".concat(n,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Ze)),O-c>=G*2&&c!==O-2){var it=T[T.length-1];T[T.length-1]=o.cloneElement(it,{className:M("".concat(n,"-item-before-jump-next"),it.props.className)}),T.push(ke)}He!==1&&T.unshift(o.createElement(he,ee({},ge,{key:1,page:1}))),Re!==O&&T.push(o.createElement(he,ee({},ge,{key:O,page:O})))}var Ee=_t(At);if(Ee){var De=!Ie||!O;Ee=o.createElement("li",{title:j?g.prev_page:null,onClick:Ue,tabIndex:De?null:0,onKeyDown:Bt,className:M("".concat(n,"-prev"),q({},"".concat(n,"-disabled"),De)),"aria-disabled":De},Ee)}var je=Ht(Lt);if(je){var fe,Ae;H?(fe=!Pe,Ae=Ie?0:null):(fe=!Pe||!O,Ae=fe?null:0),je=o.createElement("li",{title:j?g.next_page:null,onClick:Ge,tabIndex:Ae,onKeyDown:wt,className:M("".concat(n,"-next"),q({},"".concat(n,"-disabled"),fe)),"aria-disabled":fe},je)}var Kt=M(n,v,q(q(q(q(q({},"".concat(n,"-start"),_==="start"),"".concat(n,"-center"),_==="center"),"".concat(n,"-end"),_==="end"),"".concat(n,"-simple"),H),"".concat(n,"-disabled"),F));return o.createElement("ul",ee({className:Kt,style:S,ref:de},Rt),Dt,Ee,H?et:T,je,o.createElement(zn,{locale:g,rootPrefixCls:n,disabled:F,selectPrefixCls:p,changeSize:jt,pageSize:B,pageSizeOptions:te,quickGo:Nt?V:null,goButton:pe,showSizeChanger:W,sizeChangerRender:le}))};const Nn=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},On=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:h(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:h(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
2
2
|
&${t}-mini ${t}-prev ${t}-item-link,
|
|
3
3
|
&${t}-mini ${t}-next ${t}-item-link
|
|
4
4
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:h(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM),input:Object.assign(Object.assign({},bn(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},En=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:h(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:h(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${h(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${h(e.inputOutlineOffset)} 0 ${h(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:h(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},jn=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
@@ -10,5 +10,5 @@ import{aD as vt,a2 as o,aS as Ft,a8 as ft,bc as Xt,r as l,I as ht,_ as ee,i as T
|
|
|
10
10
|
${t}-next,
|
|
11
11
|
${t}-jump-prev,
|
|
12
12
|
${t}-jump-next
|
|
13
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:h(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${h(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:h(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},mn(e)),gn(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},pn(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Bn=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:h(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${h(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${h(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},wn=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$t(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:h(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Bn(e)),jn(e)),En(e)),On(e)),Nn(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Tn=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ut(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},at(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:at(e)}}}},xt=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},dn(e)),zt=e=>St(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},un(e)),Mn=Ct("Pagination",e=>{const t=zt(e);return[wn(t),Tn(t)]},xt),_n=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Hn=Le(["Pagination","bordered"],e=>{const t=zt(e);return _n(t)},xt);function bt(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Rn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Yn=e=>{const{align:t,prefixCls:i,selectPrefixCls:n,className:r,rootClassName:p,style:v,size:b,locale:d,responsive:$,showSizeChanger:x,selectComponentClass:s,pageSizeOptions:C}=e,f=Rn(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:P}=sn($),[,I]=Qt(),{getPrefixCls:y,direction:E,showSizeChanger:_,className:D,style:Y}=Yt("pagination"),m=y("pagination",i),[w,N,j]=Mn(m),K=Zt(b),A=K==="small"||!!(P&&!K&&$),[X]=vt("Pagination",kt),g=Object.assign(Object.assign({},X),d),[S,L]=bt(x),[Z,F]=bt(_),H=S??Z,R=L??F,oe=s||en,W=l.useMemo(()=>C?C.map(J=>Number(J)):void 0,[C]),le=J=>{var ie;const{disabled:ue,size:de,onSizeChange:re,"aria-label":$e,className:B,options:ye}=J,{className:Me,onChange:ce}=R||{},c=(ie=ye.find(G=>String(G.value)===String(de)))===null||ie===void 0?void 0:ie.value;return l.createElement(oe,Object.assign({disabled:ue,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:G=>G.parentNode,"aria-label":$e,options:ye},R,{value:c,onChange:(G,_e)=>{re?.(G),ce?.(G,_e)},size:A?"small":"middle",className:M(B,Me)}))},te=l.useMemo(()=>{const J=l.createElement("span",{className:`${m}-item-ellipsis`},"•••"),ie=l.createElement("button",{className:`${m}-item-link`,type:"button",tabIndex:-1},E==="rtl"?l.createElement(lt,null):l.createElement(ot,null)),ue=l.createElement("button",{className:`${m}-item-link`,type:"button",tabIndex:-1},E==="rtl"?l.createElement(ot,null):l.createElement(lt,null)),de=l.createElement("a",{className:`${m}-item-link`},l.createElement("div",{className:`${m}-item-container`},E==="rtl"?l.createElement(mt,{className:`${m}-item-link-icon`}):l.createElement(dt,{className:`${m}-item-link-icon`}),J)),re=l.createElement("a",{className:`${m}-item-link`},l.createElement("div",{className:`${m}-item-container`},E==="rtl"?l.createElement(dt,{className:`${m}-item-link-icon`}):l.createElement(mt,{className:`${m}-item-link-icon`}),J));return{prevIcon:ie,nextIcon:ue,jumpPrevIcon:de,jumpNextIcon:re}},[E,m]),Ce=y("select",n),ne=M({[`${m}-${t}`]:!!t,[`${m}-mini`]:A,[`${m}-rtl`]:E==="rtl",[`${m}-bordered`]:I.wireframe},D,r,p,N,j),Se=Object.assign(Object.assign({},Y),v);return w(l.createElement(l.Fragment,null,I.wireframe&&l.createElement(Hn,{prefixCls:m}),l.createElement(Pn,Object.assign({},te,f,{style:Se,prefixCls:m,selectPrefixCls:Ce,className:ne,locale:g,pageSizeOptions:W,showSizeChanger:H,sizeChangerRender:le}))))},Dn=e=>{const{paddingXXS:t,lineWidth:i,tagPaddingHorizontal:n,componentCls:r,calc:p}=e,v=p(n).sub(i).equal(),b=p(t).sub(i).equal();return{[r]:Object.assign(Object.assign({},$t(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:v,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:b,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:v}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},We=e=>{const{lineWidth:t,fontSizeIcon:i,calc:n}=e,r=e.fontSizeSM;return St(e,{tagFontSize:r,tagLineHeight:h(n(e.lineHeightSM).mul(r).equal()),tagIconSize:n(i).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ve=e=>({defaultBg:new tn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),It=Ct("Tag",e=>{const t=We(e);return Dn(t)},Ve);var An=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Ln=l.forwardRef((e,t)=>{const{prefixCls:i,style:n,className:r,checked:p,children:v,icon:b,onChange:d,onClick:$}=e,x=An(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:s,tag:C}=l.useContext(yt),f=D=>{d?.(!p),$?.(D)},P=s("tag",i),[I,y,E]=It(P),_=M(P,`${P}-checkable`,{[`${P}-checkable-checked`]:p},C?.className,r,y,E);return I(l.createElement("span",Object.assign({},x,{ref:t,style:Object.assign(Object.assign({},n),C?.style),className:_,onClick:f}),b,l.createElement("span",null,v)))}),Wn=e=>nn(e,(t,{textColor:i,lightBorderColor:n,lightColor:r,darkColor:p})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:i,background:r,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Vn=Le(["Tag","preset"],e=>{const t=We(e);return Wn(t)},Ve);function qn(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const we=(e,t,i)=>{const n=qn(i);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${i}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Kn=Le(["Tag","status"],e=>{const t=We(e);return[we(t,"success","Success"),we(t,"processing","Info"),we(t,"error","Error"),we(t,"warning","Warning")]},Ve);var Fn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Xn=l.forwardRef((e,t)=>{const{prefixCls:i,className:n,rootClassName:r,style:p,children:v,icon:b,color:d,onClose:$,bordered:x=!0,visible:s}=e,C=Fn(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:f,direction:P,tag:I}=l.useContext(yt),[y,E]=l.useState(!0),_=rn(C,["closeIcon","closable"]);l.useEffect(()=>{s!==void 0&&E(s)},[s]);const D=an(d),Y=on(d),m=D||Y,w=Object.assign(Object.assign({backgroundColor:d&&!m?d:void 0},I?.style),p),N=f("tag",i),[j,K,A]=It(N),X=M(N,I?.className,{[`${N}-${d}`]:m,[`${N}-has-color`]:d&&!m,[`${N}-hidden`]:!y,[`${N}-rtl`]:P==="rtl",[`${N}-borderless`]:!x},n,r,K,A),g=R=>{R.stopPropagation(),$?.(R),!R.defaultPrevented&&E(!1)},[,S]=fn(st(e),st(I),{closable:!1,closeIconRender:R=>{const oe=l.createElement("span",{className:`${N}-close-icon`,onClick:g},R);return cn(R,oe,W=>({onClick:le=>{var te;(te=W?.onClick)===null||te===void 0||te.call(W,le),g(le)},className:M(W?.className,`${N}-close-icon`)}))}}),L=typeof C.onClick=="function"||v&&v.type==="a",Z=b||null,F=Z?l.createElement(l.Fragment,null,Z,v&&l.createElement("span",null,v)):v,H=l.createElement("span",Object.assign({},_,{ref:t,className:X,style:w}),F,S,D&&l.createElement(Vn,{key:"preset",prefixCls:N}),Y&&l.createElement(Kn,{key:"status",prefixCls:N}));return j(L?l.createElement(ln,{component:"Tag"},H):H)}),Jn=Xn;Jn.CheckableTag=Ln;export{Yn as P,Jn as T,ct as m,st as p,fn as u};
|
|
14
|
-
//# sourceMappingURL=index-
|
|
13
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:h(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${h(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:h(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},mn(e)),gn(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},pn(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Bn=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:h(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${h(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${h(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},wn=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$t(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:h(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Bn(e)),jn(e)),En(e)),On(e)),Nn(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Tn=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Gt(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},at(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:at(e)}}}},xt=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},dn(e)),zt=e=>St(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},un(e)),Mn=Ct("Pagination",e=>{const t=zt(e);return[wn(t),Tn(t)]},xt),_n=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Hn=Le(["Pagination","bordered"],e=>{const t=zt(e);return _n(t)},xt);function bt(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Rn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Yn=e=>{const{align:t,prefixCls:i,selectPrefixCls:n,className:r,rootClassName:p,style:v,size:b,locale:d,responsive:$,showSizeChanger:x,selectComponentClass:s,pageSizeOptions:C}=e,f=Rn(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:P}=sn($),[,I]=Qt(),{getPrefixCls:y,direction:E,showSizeChanger:_,className:D,style:Y}=Yt("pagination"),m=y("pagination",i),[w,N,j]=Mn(m),K=Zt(b),A=K==="small"||!!(P&&!K&&$),[J]=vt("Pagination",kt),g=Object.assign(Object.assign({},J),d),[S,L]=bt(x),[Z,F]=bt(_),H=S??Z,R=L??F,oe=s||en,W=l.useMemo(()=>C?C.map(X=>Number(X)):void 0,[C]),le=X=>{var ie;const{disabled:ue,size:de,onSizeChange:re,"aria-label":$e,className:B,options:ye}=X,{className:Me,onChange:ce}=R||{},c=(ie=ye.find(U=>String(U.value)===String(de)))===null||ie===void 0?void 0:ie.value;return l.createElement(oe,Object.assign({disabled:ue,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:U=>U.parentNode,"aria-label":$e,options:ye},R,{value:c,onChange:(U,_e)=>{re?.(U),ce?.(U,_e)},size:A?"small":"middle",className:M(B,Me)}))},te=l.useMemo(()=>{const X=l.createElement("span",{className:`${m}-item-ellipsis`},"•••"),ie=l.createElement("button",{className:`${m}-item-link`,type:"button",tabIndex:-1},E==="rtl"?l.createElement(lt,null):l.createElement(ot,null)),ue=l.createElement("button",{className:`${m}-item-link`,type:"button",tabIndex:-1},E==="rtl"?l.createElement(ot,null):l.createElement(lt,null)),de=l.createElement("a",{className:`${m}-item-link`},l.createElement("div",{className:`${m}-item-container`},E==="rtl"?l.createElement(mt,{className:`${m}-item-link-icon`}):l.createElement(dt,{className:`${m}-item-link-icon`}),X)),re=l.createElement("a",{className:`${m}-item-link`},l.createElement("div",{className:`${m}-item-container`},E==="rtl"?l.createElement(dt,{className:`${m}-item-link-icon`}):l.createElement(mt,{className:`${m}-item-link-icon`}),X));return{prevIcon:ie,nextIcon:ue,jumpPrevIcon:de,jumpNextIcon:re}},[E,m]),Ce=y("select",n),ne=M({[`${m}-${t}`]:!!t,[`${m}-mini`]:A,[`${m}-rtl`]:E==="rtl",[`${m}-bordered`]:I.wireframe},D,r,p,N,j),Se=Object.assign(Object.assign({},Y),v);return w(l.createElement(l.Fragment,null,I.wireframe&&l.createElement(Hn,{prefixCls:m}),l.createElement(Pn,Object.assign({},te,f,{style:Se,prefixCls:m,selectPrefixCls:Ce,className:ne,locale:g,pageSizeOptions:W,showSizeChanger:H,sizeChangerRender:le}))))},Dn=e=>{const{paddingXXS:t,lineWidth:i,tagPaddingHorizontal:n,componentCls:r,calc:p}=e,v=p(n).sub(i).equal(),b=p(t).sub(i).equal();return{[r]:Object.assign(Object.assign({},$t(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:v,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:b,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:v}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},We=e=>{const{lineWidth:t,fontSizeIcon:i,calc:n}=e,r=e.fontSizeSM;return St(e,{tagFontSize:r,tagLineHeight:h(n(e.lineHeightSM).mul(r).equal()),tagIconSize:n(i).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ve=e=>({defaultBg:new tn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),It=Ct("Tag",e=>{const t=We(e);return Dn(t)},Ve);var An=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Ln=l.forwardRef((e,t)=>{const{prefixCls:i,style:n,className:r,checked:p,children:v,icon:b,onChange:d,onClick:$}=e,x=An(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:s,tag:C}=l.useContext(yt),f=D=>{d?.(!p),$?.(D)},P=s("tag",i),[I,y,E]=It(P),_=M(P,`${P}-checkable`,{[`${P}-checkable-checked`]:p},C?.className,r,y,E);return I(l.createElement("span",Object.assign({},x,{ref:t,style:Object.assign(Object.assign({},n),C?.style),className:_,onClick:f}),b,l.createElement("span",null,v)))}),Wn=e=>nn(e,(t,{textColor:i,lightBorderColor:n,lightColor:r,darkColor:p})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:i,background:r,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Vn=Le(["Tag","preset"],e=>{const t=We(e);return Wn(t)},Ve);function qn(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const we=(e,t,i)=>{const n=qn(i);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${i}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Kn=Le(["Tag","status"],e=>{const t=We(e);return[we(t,"success","Success"),we(t,"processing","Info"),we(t,"error","Error"),we(t,"warning","Warning")]},Ve);var Fn=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};const Jn=l.forwardRef((e,t)=>{const{prefixCls:i,className:n,rootClassName:r,style:p,children:v,icon:b,color:d,onClose:$,bordered:x=!0,visible:s}=e,C=Fn(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:f,direction:P,tag:I}=l.useContext(yt),[y,E]=l.useState(!0),_=rn(C,["closeIcon","closable"]);l.useEffect(()=>{s!==void 0&&E(s)},[s]);const D=an(d),Y=on(d),m=D||Y,w=Object.assign(Object.assign({backgroundColor:d&&!m?d:void 0},I?.style),p),N=f("tag",i),[j,K,A]=It(N),J=M(N,I?.className,{[`${N}-${d}`]:m,[`${N}-has-color`]:d&&!m,[`${N}-hidden`]:!y,[`${N}-rtl`]:P==="rtl",[`${N}-borderless`]:!x},n,r,K,A),g=R=>{R.stopPropagation(),$?.(R),!R.defaultPrevented&&E(!1)},[,S]=fn(st(e),st(I),{closable:!1,closeIconRender:R=>{const oe=l.createElement("span",{className:`${N}-close-icon`,onClick:g},R);return cn(R,oe,W=>({onClick:le=>{var te;(te=W?.onClick)===null||te===void 0||te.call(W,le),g(le)},className:M(W?.className,`${N}-close-icon`)}))}}),L=typeof C.onClick=="function"||v&&v.type==="a",Z=b||null,F=Z?l.createElement(l.Fragment,null,Z,v&&l.createElement("span",null,v)):v,H=l.createElement("span",Object.assign({},_,{ref:t,className:J,style:w}),F,S,D&&l.createElement(Vn,{key:"preset",prefixCls:N}),Y&&l.createElement(Kn,{key:"status",prefixCls:N}));return j(L?l.createElement(ln,{component:"Tag"},H):H)}),Xn=Jn;Xn.CheckableTag=Ln;export{Yn as P,Xn as T,ct as m,st as p,fn as u};
|
|
14
|
+
//# sourceMappingURL=index-CZlT-55J.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{a2 as ne,n as O,r as i,v as Be,x as Ve,aK as _a,A as v,D as be,ag as Fe,ac as Ea,bc as Oa,cc as Pa,cd as Ra,k as Ta,m as lt,a3 as fe,t as Kt,bW as Xt,bu as Ut,o as ze,i as W,am as Ma,_ as ve,h as re,I as Ia,a4 as le,q as Na,p as dt,ce as La,cf as ja,an as za,a9 as Nt,ap as at,b3 as Ba,a5 as Ha,l as Aa,a7 as Lt,aT as Da,a6 as Ga,au as jt,z as ut,aA as ft,bp as Yt,ab as st,E as Wa,aS as ka,J as Jt,br as Va,bb as vt,L as Fa}from"./index-BtXc5-H2.js";const qa=()=>ne.useReducer(e=>e+1,0),qe=e=>{const{prefixCls:t,className:a,style:n,size:r,shape:o}=e,l=O({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),s=O({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=i.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return i.createElement("span",{className:O(t,l,s,a),style:Object.assign(Object.assign({},c),n)})},Ka=new _a("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ke=e=>({height:e,lineHeight:v(e)}),Re=e=>Object.assign({width:e},Ke(e)),Xa=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ka,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nt=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ke(e)),Ua=e=>{const{skeletonAvatarCls:t,gradientFromColor:a,controlHeight:n,controlHeightLG:r,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:a},Re(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Re(r)),[`${t}${t}-sm`]:Object.assign({},Re(o))}},Ya=e=>{const{controlHeight:t,borderRadiusSM:a,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:a},nt(t,s)),[`${n}-lg`]:Object.assign({},nt(r,s)),[`${n}-sm`]:Object.assign({},nt(o,s))}},zt=e=>Object.assign({width:e},Ke(e)),Ja=e=>{const{skeletonImageCls:t,imageSizeBase:a,gradientFromColor:n,borderRadiusSM:r,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:r},zt(o(a).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zt(a)),{maxWidth:o(a).mul(4).equal(),maxHeight:o(a).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},rt=(e,t,a)=>{const{skeletonButtonCls:n}=e;return{[`${a}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${a}${n}-round`]:{borderRadius:t}}},it=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ke(e)),Qa=e=>{const{borderRadiusSM:t,skeletonButtonCls:a,controlHeight:n,controlHeightLG:r,controlHeightSM:o,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[a]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},it(n,s))},rt(e,n,a)),{[`${a}-lg`]:Object.assign({},it(r,s))}),rt(e,r,`${a}-lg`)),{[`${a}-sm`]:Object.assign({},it(o,s))}),rt(e,o,`${a}-sm`))},Za=e=>{const{componentCls:t,skeletonAvatarCls:a,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:o,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:d,controlHeightSM:f,gradientFromColor:u,padding:g,marginSM:y,borderRadius:B,titleHeight:P,blockRadius:S,paragraphLiHeight:m,controlHeightXS:p,paragraphMarginTop:T}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[a]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},Re(c)),[`${a}-circle`]:{borderRadius:"50%"},[`${a}-lg`]:Object.assign({},Re(d)),[`${a}-sm`]:Object.assign({},Re(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:P,background:u,borderRadius:S,[`+ ${r}`]:{marginBlockStart:f}},[r]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:u,borderRadius:S,"+ li":{marginBlockStart:p}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${r} > li`]:{borderRadius:B}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:y,[`+ ${r}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Qa(e)),Ua(e)),Ya(e)),Ja(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
2
|
+
${n},
|
|
3
|
+
${r} > li,
|
|
4
|
+
${a},
|
|
5
|
+
${o},
|
|
6
|
+
${l},
|
|
7
|
+
${s}
|
|
8
|
+
`]:Object.assign({},Xa(e))}}},en=e=>{const{colorFillContent:t,colorFill:a}=e,n=t,r=a;return{color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Te=Be("Skeleton",e=>{const{componentCls:t,calc:a}=e,n=Ve(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:a(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Za(n)},en,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),tn=e=>{const{prefixCls:t,className:a,rootClassName:n,active:r,shape:o="circle",size:l="default"}=e,{getPrefixCls:s}=i.useContext(be),c=s("skeleton",t),[d,f,u]=Te(c),g=Fe(e,["prefixCls","className"]),y=O(c,`${c}-element`,{[`${c}-active`]:r},a,n,f,u);return d(i.createElement("div",{className:y},i.createElement(qe,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:l},g))))},an=e=>{const{prefixCls:t,className:a,rootClassName:n,active:r,block:o=!1,size:l="default"}=e,{getPrefixCls:s}=i.useContext(be),c=s("skeleton",t),[d,f,u]=Te(c),g=Fe(e,["prefixCls"]),y=O(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:o},a,n,f,u);return d(i.createElement("div",{className:y},i.createElement(qe,Object.assign({prefixCls:`${c}-button`,size:l},g))))},nn="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",rn=e=>{const{prefixCls:t,className:a,rootClassName:n,style:r,active:o}=e,{getPrefixCls:l}=i.useContext(be),s=l("skeleton",t),[c,d,f]=Te(s),u=O(s,`${s}-element`,{[`${s}-active`]:o},a,n,d,f);return c(i.createElement("div",{className:u},i.createElement("div",{className:O(`${s}-image`,a),style:r},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:nn,className:`${s}-image-path`})))))},on=e=>{const{prefixCls:t,className:a,rootClassName:n,active:r,block:o,size:l="default"}=e,{getPrefixCls:s}=i.useContext(be),c=s("skeleton",t),[d,f,u]=Te(c),g=Fe(e,["prefixCls"]),y=O(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:o},a,n,f,u);return d(i.createElement("div",{className:y},i.createElement(qe,Object.assign({prefixCls:`${c}-input`,size:l},g))))},ln=e=>{const{prefixCls:t,className:a,rootClassName:n,style:r,active:o,children:l}=e,{getPrefixCls:s}=i.useContext(be),c=s("skeleton",t),[d,f,u]=Te(c),g=O(c,`${c}-element`,{[`${c}-active`]:o},f,a,n,u);return d(i.createElement("div",{className:g},i.createElement("div",{className:O(`${c}-image`,a),style:r},l)))},sn=(e,t)=>{const{width:a,rows:n=2}=t;if(Array.isArray(a))return a[e];if(n-1===e)return a},cn=e=>{const{prefixCls:t,className:a,style:n,rows:r=0}=e,o=Array.from({length:r}).map((l,s)=>i.createElement("li",{key:s,style:{width:sn(s,e)}}));return i.createElement("ul",{className:O(t,a),style:n},o)},dn=({prefixCls:e,className:t,width:a,style:n})=>i.createElement("h3",{className:O(e,t),style:Object.assign({width:a},n)});function ot(e){return e&&typeof e=="object"?e:{}}function un(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function fn(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function vn(e,t){const a={};return(!e||!t)&&(a.width="61%"),!e&&t?a.rows=3:a.rows=2,a}const Me=e=>{const{prefixCls:t,loading:a,className:n,rootClassName:r,style:o,children:l,avatar:s=!1,title:c=!0,paragraph:d=!0,active:f,round:u}=e,{getPrefixCls:g,direction:y,className:B,style:P}=Ea("skeleton"),S=g("skeleton",t),[m,p,T]=Te(S);if(a||!("loading"in e)){const N=!!s,I=!!c,j=!!d;let k;if(N){const R=Object.assign(Object.assign({prefixCls:`${S}-avatar`},un(I,j)),ot(s));k=i.createElement("div",{className:`${S}-header`},i.createElement(qe,Object.assign({},R)))}let M;if(I||j){let R;if(I){const x=Object.assign(Object.assign({prefixCls:`${S}-title`},fn(N,j)),ot(c));R=i.createElement(dn,Object.assign({},x))}let h;if(j){const x=Object.assign(Object.assign({prefixCls:`${S}-paragraph`},vn(N,I)),ot(d));h=i.createElement(cn,Object.assign({},x))}M=i.createElement("div",{className:`${S}-content`},R,h)}const w=O(S,{[`${S}-with-avatar`]:N,[`${S}-active`]:f,[`${S}-rtl`]:y==="rtl",[`${S}-round`]:u},B,n,r,p,T);return m(i.createElement("div",{className:w,style:Object.assign(Object.assign({},P),o)},k,M))}return l??null};Me.Button=an;Me.Avatar=tn;Me.Input=on;Me.Image=rn;Me.Node=ln;const gn=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},mn=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},bn=(e,t)=>{const{prefixCls:a,componentCls:n,gridColumns:r}=e,o={};for(let l=r;l>=0;l--)l===0?(o[`${n}${t}-${l}`]={display:"none"},o[`${n}-push-${l}`]={insetInlineStart:"auto"},o[`${n}-pull-${l}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${l}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${l}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${l}`]={marginInlineStart:0},o[`${n}${t}-order-${l}`]={order:0}):(o[`${n}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/r*100}%`,maxWidth:`${l/r*100}%`}],o[`${n}${t}-push-${l}`]={insetInlineStart:`${l/r*100}%`},o[`${n}${t}-pull-${l}`]={insetInlineEnd:`${l/r*100}%`},o[`${n}${t}-offset-${l}`]={marginInlineStart:`${l/r*100}%`},o[`${n}${t}-order-${l}`]={order:l});return o[`${n}${t}-flex`]={flex:`var(--${a}${t}-flex)`},o},ct=(e,t)=>bn(e,t),hn=(e,t,a)=>({[`@media (min-width: ${v(t)})`]:Object.assign({},ct(e,a))}),pn=()=>({}),$n=()=>({}),Lr=Be("Grid",gn,pn),yn=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),jr=Be("Grid",e=>{const t=Ve(e,{gridColumns:24}),a=yn(t);return delete a.xs,[mn(t),ct(t,""),ct(t,"-xs"),Object.keys(a).map(n=>hn(t,a[n],`-${n}`)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{})]},$n),Qt=["xxl","xl","lg","md","sm","xs"],Sn=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Cn=e=>{const t=e,a=[].concat(Qt).reverse();return a.forEach((n,r)=>{const o=n.toUpperCase(),l=`screen${o}Min`,s=`screen${o}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(r<a.length-1){const c=`screen${o}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const f=`screen${a[r+1].toUpperCase()}Min`;if(!(t[c]<=t[f]))throw new Error(`${c}<=${f} fails : !(${t[c]}<=${t[f]})`)}}),e},zr=(e,t)=>{if(t){for(const a of Qt)if(e[a]&&t?.[a]!==void 0)return t[a]}},xn=()=>{const[,e]=Oa(),t=Sn(Cn(e));return ne.useMemo(()=>{const a=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return r=o,a.forEach(l=>l(r)),a.size>=1},subscribe(o){return a.size||this.register(),n+=1,a.set(n,o),o(r),n},unsubscribe(o){a.delete(o),a.size||this.unregister()},register(){Object.entries(t).forEach(([o,l])=>{const s=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},r),{[o]:d}))},c=window.matchMedia(l);Ra(c,s),this.matchHandlers[l]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(o=>{const l=this.matchHandlers[o];Pa(l?.mql,l?.listener)}),a.clear()}}},[t])};function Br(e=!0,t={}){const a=i.useRef(t),[,n]=qa(),r=xn();return Ta(()=>{const o=r.subscribe(l=>{a.current=l,e&&n()});return()=>r.unsubscribe(o)},[]),a.current}var wn=fe.ESC,_n=fe.TAB;function En(e){var t=e.visible,a=e.triggerRef,n=e.onVisibleChange,r=e.autoFocus,o=e.overlayRef,l=i.useRef(!1),s=function(){if(t){var u,g;(u=a.current)===null||u===void 0||(g=u.focus)===null||g===void 0||g.call(u),n?.(!1)}},c=function(){var u;return(u=o.current)!==null&&u!==void 0&&u.focus?(o.current.focus(),l.current=!0,!0):!1},d=function(u){switch(u.keyCode){case wn:s();break;case _n:{var g=!1;l.current||(g=c()),g?u.preventDefault():s();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",d),r&<(c,3),function(){window.removeEventListener("keydown",d),l.current=!1}):function(){l.current=!1}},[t])}var On=i.forwardRef(function(e,t){var a=e.overlay,n=e.arrow,r=e.prefixCls,o=i.useMemo(function(){var s;return typeof a=="function"?s=a():s=a,s},[a]),l=Kt(t,Xt(o));return ne.createElement(ne.Fragment,null,n&&ne.createElement("div",{className:"".concat(r,"-arrow")}),ne.cloneElement(o,{ref:Ut(o)?l:void 0}))}),Ee={adjustX:1,adjustY:1},Oe=[0,0],Pn={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-4],targetOffset:Oe},top:{points:["bc","tc"],overflow:Ee,offset:[0,-4],targetOffset:Oe},topRight:{points:["br","tr"],overflow:Ee,offset:[0,-4],targetOffset:Oe},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,4],targetOffset:Oe},bottom:{points:["tc","bc"],overflow:Ee,offset:[0,4],targetOffset:Oe},bottomRight:{points:["tr","br"],overflow:Ee,offset:[0,4],targetOffset:Oe}},Rn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tn(e,t){var a,n=e.arrow,r=n===void 0?!1:n,o=e.prefixCls,l=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,g=e.placements,y=g===void 0?Pn:g,B=e.getPopupContainer,P=e.showAction,S=e.hideAction,m=e.overlayClassName,p=e.overlayStyle,T=e.visible,N=e.trigger,I=N===void 0?["hover"]:N,j=e.autoFocus,k=e.overlay,M=e.children,w=e.onVisibleChange,R=ze(e,Rn),h=ne.useState(),x=W(h,2),$=x[0],C=x[1],J="visible"in e?T:$,A=ne.useRef(null),V=ne.useRef(null),te=ne.useRef(null);ne.useImperativeHandle(t,function(){return A.current});var z=function(q){C(q),w?.(q)};En({visible:J,triggerRef:te,onVisibleChange:z,autoFocus:j,overlayRef:V});var _=function(q){var Q=e.onOverlayClick;C(!1),Q&&Q(q)},ae=function(){return ne.createElement(On,{ref:V,overlay:k,prefixCls:l,arrow:r})},oe=function(){return typeof k=="function"?ae:ae()},E=function(){var q=e.minOverlayWidthMatchTrigger,Q=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!Q},D=function(){var q=e.openClassName;return q!==void 0?q:"".concat(l,"-open")},Z=ne.cloneElement(M,{className:O((a=M.props)===null||a===void 0?void 0:a.className,J&&D()),ref:Ut(M)?Kt(te,Xt(M)):void 0}),X=S;return!X&&I.indexOf("contextMenu")!==-1&&(X=["click"]),ne.createElement(Ma,ve({builtinPlacements:y},R,{prefixCls:l,ref:A,popupClassName:O(m,re({},"".concat(l,"-show-arrow"),r)),popupStyle:p,action:I,showAction:P,hideAction:X,popupPlacement:u,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:J,stretch:E()?"minWidth":"",popup:oe(),onPopupVisibleChange:z,onPopupClick:_,getPopupContainer:B}),Z)}const Mn=ne.forwardRef(Tn);var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Nn=function(t,a){return i.createElement(Ia,ve({},t,{ref:a,icon:In}))},Ln=i.forwardRef(Nn);const Xe=i.createContext(null);var jn=function(t){var a=t.activeTabOffset,n=t.horizontal,r=t.rtl,o=t.indicator,l=o===void 0?{}:o,s=l.size,c=l.align,d=c===void 0?"center":c,f=i.useState(),u=W(f,2),g=u[0],y=u[1],B=i.useRef(),P=ne.useCallback(function(m){return typeof s=="function"?s(m):typeof s=="number"?s:m},[s]);function S(){lt.cancel(B.current)}return i.useEffect(function(){var m={};if(a)if(n){m.width=P(a.width);var p=r?"right":"left";d==="start"&&(m[p]=a[p]),d==="center"&&(m[p]=a[p]+a.width/2,m.transform=r?"translateX(50%)":"translateX(-50%)"),d==="end"&&(m[p]=a[p]+a.width,m.transform="translateX(-100%)")}else m.height=P(a.height),d==="start"&&(m.top=a.top),d==="center"&&(m.top=a.top+a.height/2,m.transform="translateY(-50%)"),d==="end"&&(m.top=a.top+a.height,m.transform="translateY(-100%)");return S(),B.current=lt(function(){var T=g&&m&&Object.keys(m).every(function(N){var I=m[N],j=g[N];return typeof I=="number"&&typeof j=="number"?Math.round(I)===Math.round(j):I===j});T||y(m)}),S},[JSON.stringify(a),n,r,d,P]),{style:g}},Bt={width:0,height:0,left:0,top:0};function zn(e,t,a){return i.useMemo(function(){for(var n,r=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Bt,l=o.left+o.width,s=0;s<e.length;s+=1){var c=e[s].key,d=t.get(c);if(!d){var f;d=t.get((f=e[s-1])===null||f===void 0?void 0:f.key)||Bt}var u=r.get(c)||le({},d);u.right=l-u.left-u.width,r.set(c,u)}return r},[e.map(function(n){return n.key}).join("_"),t,a])}function Ht(e,t){var a=i.useRef(e),n=i.useState({}),r=W(n,2),o=r[1];function l(s){var c=typeof s=="function"?s(a.current):s;c!==a.current&&t(c,a.current),a.current=c,o({})}return[a.current,l]}var Bn=.1,At=.01,ke=20,Dt=Math.pow(.995,ke);function Hn(e,t){var a=i.useState(),n=W(a,2),r=n[0],o=n[1],l=i.useState(0),s=W(l,2),c=s[0],d=s[1],f=i.useState(0),u=W(f,2),g=u[0],y=u[1],B=i.useState(),P=W(B,2),S=P[0],m=P[1],p=i.useRef();function T(w){var R=w.touches[0],h=R.screenX,x=R.screenY;o({x:h,y:x}),window.clearInterval(p.current)}function N(w){if(r){var R=w.touches[0],h=R.screenX,x=R.screenY;o({x:h,y:x});var $=h-r.x,C=x-r.y;t($,C);var J=Date.now();d(J),y(J-c),m({x:$,y:C})}}function I(){if(r&&(o(null),m(null),S)){var w=S.x/g,R=S.y/g,h=Math.abs(w),x=Math.abs(R);if(Math.max(h,x)<Bn)return;var $=w,C=R;p.current=window.setInterval(function(){if(Math.abs($)<At&&Math.abs(C)<At){window.clearInterval(p.current);return}$*=Dt,C*=Dt,t($*ke,C*ke)},ke)}}var j=i.useRef();function k(w){var R=w.deltaX,h=w.deltaY,x=0,$=Math.abs(R),C=Math.abs(h);$===C?x=j.current==="x"?R:h:$>C?(x=R,j.current="x"):(x=h,j.current="y"),t(-x,-x)&&w.preventDefault()}var M=i.useRef(null);M.current={onTouchStart:T,onTouchMove:N,onTouchEnd:I,onWheel:k},i.useEffect(function(){function w($){M.current.onTouchStart($)}function R($){M.current.onTouchMove($)}function h($){M.current.onTouchEnd($)}function x($){M.current.onWheel($)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",h,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",x,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",h)}},[])}function Zt(e){var t=i.useState(0),a=W(t,2),n=a[0],r=a[1],o=i.useRef(0),l=i.useRef();return l.current=e,Na(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function An(e){var t=i.useRef([]),a=i.useState({}),n=W(a,2),r=n[1],o=i.useRef(typeof e=="function"?e():e),l=Zt(function(){var c=o.current;t.current.forEach(function(d){c=d(c)}),t.current=[],o.current=c,r({})});function s(c){t.current.push(c),l()}return[o.current,s]}var Gt={width:0,height:0,left:0,top:0,right:0};function Dn(e,t,a,n,r,o,l){var s=l.tabs,c=l.tabPosition,d=l.rtl,f,u,g;return["top","bottom"].includes(c)?(f="width",u=d?"right":"left",g=Math.abs(a)):(f="height",u="top",g=-a),i.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,B=y,P=0;P<y;P+=1){var S=e.get(s[P].key)||Gt;if(Math.floor(S[u]+S[f])>Math.floor(g+t)){B=P-1;break}}for(var m=0,p=y-1;p>=0;p-=1){var T=e.get(s[p].key)||Gt;if(T[u]<g){m=p+1;break}}return m>B?[0,-1]:[m,B]},[e,t,n,r,o,g,c,s.map(function(y){return y.key}).join("_"),d])}function Wt(e){var t;return e instanceof Map?(t={},e.forEach(function(a,n){t[n]=a})):t=e,JSON.stringify(t)}var Gn="TABS_DQ";function ea(e){return String(e).replace(/"/g,Gn)}function gt(e,t,a,n){return!(!a||n||e===!1||e===void 0&&(t===!1||t===null))}var ta=i.forwardRef(function(e,t){var a=e.prefixCls,n=e.editable,r=e.locale,o=e.style;return!n||n.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:o,"aria-label":r?.addAriaLabel||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),kt=i.forwardRef(function(e,t){var a=e.position,n=e.prefixCls,r=e.extra;if(!r)return null;var o,l={};return dt(r)==="object"&&!i.isValidElement(r)?l=r:l.right=r,a==="right"&&(o=l.right),a==="left"&&(o=l.left),o?i.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null}),Wn=i.forwardRef(function(e,t){var a=e.prefixCls,n=e.id,r=e.tabs,o=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,d=e.style,f=e.className,u=e.editable,g=e.tabBarGutter,y=e.rtl,B=e.removeAriaLabel,P=e.onTabClick,S=e.getPopupContainer,m=e.popupClassName,p=i.useState(!1),T=W(p,2),N=T[0],I=T[1],j=i.useState(null),k=W(j,2),M=k[0],w=k[1],R=c.icon,h=R===void 0?"More":R,x="".concat(n,"-more-popup"),$="".concat(a,"-dropdown"),C=M!==null?"".concat(x,"-").concat(M):null,J=o?.dropdownAriaLabel;function A(E,D){E.preventDefault(),E.stopPropagation(),u.onEdit("remove",{key:D,event:E})}var V=i.createElement(La,{onClick:function(D){var Z=D.key,X=D.domEvent;P(Z,X),I(!1)},prefixCls:"".concat($,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":C,selectedKeys:[M],"aria-label":J!==void 0?J:"expanded dropdown"},r.map(function(E){var D=E.closable,Z=E.disabled,X=E.closeIcon,F=E.key,q=E.label,Q=gt(D,X,u,Z);return i.createElement(ja,{key:F,id:"".concat(x,"-").concat(F),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(F),disabled:Z},i.createElement("span",null,q),Q&&i.createElement("button",{type:"button","aria-label":B||"remove",tabIndex:0,className:"".concat($,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),A(se,F)}},X||u.removeIcon||"×"))}));function te(E){for(var D=r.filter(function(Q){return!Q.disabled}),Z=D.findIndex(function(Q){return Q.key===M})||0,X=D.length,F=0;F<X;F+=1){Z=(Z+E+X)%X;var q=D[Z];if(!q.disabled){w(q.key);return}}}function z(E){var D=E.which;if(!N){[fe.DOWN,fe.SPACE,fe.ENTER].includes(D)&&(I(!0),E.preventDefault());return}switch(D){case fe.UP:te(-1),E.preventDefault();break;case fe.DOWN:te(1),E.preventDefault();break;case fe.ESC:I(!1);break;case fe.SPACE:case fe.ENTER:M!==null&&P(M,E);break}}i.useEffect(function(){var E=document.getElementById(C);E&&E.scrollIntoView&&E.scrollIntoView(!1)},[M]),i.useEffect(function(){N||w(null)},[N]);var _=re({},y?"marginRight":"marginLeft",g);r.length||(_.visibility="hidden",_.order=1);var ae=O(re({},"".concat($,"-rtl"),y)),oe=l?null:i.createElement(Mn,ve({prefixCls:$,overlay:V,visible:r.length?N:!1,onVisibleChange:I,overlayClassName:O(ae,m),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},c),i.createElement("button",{type:"button",className:"".concat(a,"-nav-more"),style:_,"aria-haspopup":"listbox","aria-controls":x,id:"".concat(n,"-more"),"aria-expanded":N,onKeyDown:z},h));return i.createElement("div",{className:O("".concat(a,"-nav-operations"),f),style:d,ref:t},oe,i.createElement(ta,{prefixCls:a,locale:o,editable:u}))});const kn=i.memo(Wn,function(e,t){return t.tabMoving});var Vn=function(t){var a=t.prefixCls,n=t.id,r=t.active,o=t.focus,l=t.tab,s=l.key,c=l.label,d=l.disabled,f=l.closeIcon,u=l.icon,g=t.closable,y=t.renderWrapper,B=t.removeAriaLabel,P=t.editable,S=t.onClick,m=t.onFocus,p=t.onBlur,T=t.onKeyDown,N=t.onMouseDown,I=t.onMouseUp,j=t.style,k=t.tabCount,M=t.currentPosition,w="".concat(a,"-tab"),R=gt(g,f,P,d);function h(A){d||S(A)}function x(A){A.preventDefault(),A.stopPropagation(),P.onEdit("remove",{key:s,event:A})}var $=i.useMemo(function(){return u&&typeof c=="string"?i.createElement("span",null,c):c},[c,u]),C=i.useRef(null);i.useEffect(function(){o&&C.current&&C.current.focus()},[o]);var J=i.createElement("div",{key:s,"data-node-key":ea(s),className:O(w,re(re(re(re({},"".concat(w,"-with-remove"),R),"".concat(w,"-active"),r),"".concat(w,"-disabled"),d),"".concat(w,"-focus"),o)),style:j,onClick:h},i.createElement("div",{ref:C,role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(s),className:"".concat(w,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(s),"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:function(V){V.stopPropagation(),h(V)},onKeyDown:T,onMouseDown:N,onMouseUp:I,onFocus:m,onBlur:p},o&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(M," of ").concat(k)),u&&i.createElement("span",{className:"".concat(w,"-icon")},u),c&&$),R&&i.createElement("button",{type:"button",role:"tab","aria-label":B||"remove",tabIndex:r?0:-1,className:"".concat(w,"-remove"),onClick:function(V){V.stopPropagation(),x(V)}},f||P.removeIcon||"×"));return y?y(J):J},Fn=function(t,a){var n=t.offsetWidth,r=t.offsetHeight,o=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,d=s.height,f=s.left,u=s.top;return Math.abs(c-n)<1?[c,d,f-a.left,u-a.top]:[n,r,l,o]},Pe=function(t){var a=t.current||{},n=a.offsetWidth,r=n===void 0?0:n,o=a.offsetHeight,l=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,d=s.height;if(Math.abs(c-r)<1)return[c,d]}return[r,l]},We=function(t,a){return t[a?0:1]},Vt=i.forwardRef(function(e,t){var a=e.className,n=e.style,r=e.id,o=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,d=e.editable,f=e.locale,u=e.tabPosition,g=e.tabBarGutter,y=e.children,B=e.onTabClick,P=e.onTabScroll,S=e.indicator,m=i.useContext(Xe),p=m.prefixCls,T=m.tabs,N=i.useRef(null),I=i.useRef(null),j=i.useRef(null),k=i.useRef(null),M=i.useRef(null),w=i.useRef(null),R=i.useRef(null),h=u==="top"||u==="bottom",x=Ht(0,function(H,b){h&&P&&P({direction:H>b?"left":"right"})}),$=W(x,2),C=$[0],J=$[1],A=Ht(0,function(H,b){!h&&P&&P({direction:H>b?"top":"bottom"})}),V=W(A,2),te=V[0],z=V[1],_=i.useState([0,0]),ae=W(_,2),oe=ae[0],E=ae[1],D=i.useState([0,0]),Z=W(D,2),X=Z[0],F=Z[1],q=i.useState([0,0]),Q=W(q,2),he=Q[0],se=Q[1],pe=i.useState([0,0]),$e=W(pe,2),G=$e[0],ce=$e[1],de=An(new Map),Ce=W(de,2),Ie=Ce[0],Ue=Ce[1],ee=zn(T,Ie,X[0]),U=We(oe,h),ge=We(X,h),Ne=We(he,h),mt=We(G,h),bt=Math.floor(U)<Math.floor(ge+Ne),ue=bt?U-mt:U-Ne,oa="".concat(p,"-nav-operations-hidden"),ye=0,Se=0;h&&s?(ye=0,Se=Math.max(0,ge-ue)):(ye=Math.min(0,ue-ge),Se=0);function Ye(H){return H<ye?ye:H>Se?Se:H}var Je=i.useRef(null),la=i.useState(),ht=W(la,2),He=ht[0],pt=ht[1];function Qe(){pt(Date.now())}function Ze(){Je.current&&clearTimeout(Je.current)}Hn(k,function(H,b){function L(K,Y){K(function(ie){var _e=Ye(ie+Y);return _e})}return bt?(h?L(J,H):L(z,b),Ze(),Qe(),!0):!1}),i.useEffect(function(){return Ze(),He&&(Je.current=setTimeout(function(){pt(0)},100)),Ze},[He]);var sa=Dn(ee,ue,h?C:te,ge,Ne,mt,le(le({},e),{},{tabs:T})),$t=W(sa,2),ca=$t[0],da=$t[1],yt=za(function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,b=ee.get(H)||{width:0,height:0,left:0,right:0,top:0};if(h){var L=C;s?b.right<C?L=b.right:b.right+b.width>C+ue&&(L=b.right+b.width-ue):b.left<-C?L=-b.left:b.left+b.width>-C+ue&&(L=-(b.left+b.width-ue)),z(0),J(Ye(L))}else{var K=te;b.top<-te?K=-b.top:b.top+b.height>-te+ue&&(K=-(b.top+b.height-ue)),J(0),z(Ye(K))}}),ua=i.useState(),St=W(ua,2),xe=St[0],Le=St[1],fa=i.useState(!1),Ct=W(fa,2),va=Ct[0],xt=Ct[1],me=T.filter(function(H){return!H.disabled}).map(function(H){return H.key}),we=function(b){var L=me.indexOf(xe||l),K=me.length,Y=(L+b+K)%K,ie=me[Y];Le(ie)},wt=function(b,L){var K=me.indexOf(b),Y=T.find(function(_e){return _e.key===b}),ie=gt(Y?.closable,Y?.closeIcon,d,Y?.disabled);ie&&(L.preventDefault(),L.stopPropagation(),d.onEdit("remove",{key:b,event:L}),K===me.length-1?we(-1):we(1))},ga=function(b,L){xt(!0),L.button===1&&wt(b,L)},ma=function(b){var L=b.code,K=s&&h,Y=me[0],ie=me[me.length-1];switch(L){case"ArrowLeft":{h&&we(K?1:-1);break}case"ArrowRight":{h&&we(K?-1:1);break}case"ArrowUp":{b.preventDefault(),h||we(-1);break}case"ArrowDown":{b.preventDefault(),h||we(1);break}case"Home":{b.preventDefault(),Le(Y);break}case"End":{b.preventDefault(),Le(ie);break}case"Enter":case"Space":{b.preventDefault(),B(xe??l,b);break}case"Backspace":case"Delete":{wt(xe,b);break}}},Ae={};h?Ae[s?"marginRight":"marginLeft"]=g:Ae.marginTop=g;var _t=T.map(function(H,b){var L=H.key;return i.createElement(Vn,{id:r,prefixCls:p,key:L,tab:H,style:b===0?void 0:Ae,closable:H.closable,editable:d,active:L===l,focus:L===xe,renderWrapper:y,removeAriaLabel:f?.removeAriaLabel,tabCount:me.length,currentPosition:b+1,onClick:function(Y){B(L,Y)},onKeyDown:ma,onFocus:function(){va||Le(L),yt(L),Qe(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)},onBlur:function(){Le(void 0)},onMouseDown:function(Y){return ga(L,Y)},onMouseUp:function(){xt(!1)}})}),Et=function(){return Ue(function(){var b,L=new Map,K=(b=M.current)===null||b===void 0?void 0:b.getBoundingClientRect();return T.forEach(function(Y){var ie,_e=Y.key,It=(ie=M.current)===null||ie===void 0?void 0:ie.querySelector('[data-node-key="'.concat(ea(_e),'"]'));if(It){var ya=Fn(It,K),Ge=W(ya,4),Sa=Ge[0],Ca=Ge[1],xa=Ge[2],wa=Ge[3];L.set(_e,{width:Sa,height:Ca,left:xa,top:wa})}}),L})};i.useEffect(function(){Et()},[T.map(function(H){return H.key}).join("_")]);var De=Zt(function(){var H=Pe(N),b=Pe(I),L=Pe(j);E([H[0]-b[0]-L[0],H[1]-b[1]-L[1]]);var K=Pe(R);se(K);var Y=Pe(w);ce(Y);var ie=Pe(M);F([ie[0]-K[0],ie[1]-K[1]]),Et()}),ba=T.slice(0,ca),ha=T.slice(da+1),Ot=[].concat(Nt(ba),Nt(ha)),Pt=ee.get(l),pa=jn({activeTabOffset:Pt,horizontal:h,indicator:S,rtl:s}),$a=pa.style;i.useEffect(function(){yt()},[l,ye,Se,Wt(Pt),Wt(ee),h]),i.useEffect(function(){De()},[s]);var Rt=!!Ot.length,je="".concat(p,"-nav-wrap"),et,tt,Tt,Mt;return h?s?(tt=C>0,et=C!==Se):(et=C<0,tt=C!==ye):(Tt=te<0,Mt=te!==ye),i.createElement(at,{onResize:De},i.createElement("div",{ref:Ba(t,N),role:"tablist","aria-orientation":h?"horizontal":"vertical",className:O("".concat(p,"-nav"),a),style:n,onKeyDown:function(){Qe()}},i.createElement(kt,{ref:I,position:"left",extra:c,prefixCls:p}),i.createElement(at,{onResize:De},i.createElement("div",{className:O(je,re(re(re(re({},"".concat(je,"-ping-left"),et),"".concat(je,"-ping-right"),tt),"".concat(je,"-ping-top"),Tt),"".concat(je,"-ping-bottom"),Mt)),ref:k},i.createElement(at,{onResize:De},i.createElement("div",{ref:M,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(C,"px, ").concat(te,"px)"),transition:He?"none":void 0}},_t,i.createElement(ta,{ref:R,prefixCls:p,locale:f,editable:d,style:le(le({},_t.length===0?void 0:Ae),{},{visibility:Rt?"hidden":null})}),i.createElement("div",{className:O("".concat(p,"-ink-bar"),re({},"".concat(p,"-ink-bar-animated"),o.inkBar)),style:$a}))))),i.createElement(kn,ve({},e,{removeAriaLabel:f?.removeAriaLabel,ref:w,prefixCls:p,tabs:Ot,className:!Rt&&oa,tabMoving:!!He})),i.createElement(kt,{ref:j,position:"right",extra:c,prefixCls:p})))}),aa=i.forwardRef(function(e,t){var a=e.prefixCls,n=e.className,r=e.style,o=e.id,l=e.active,s=e.tabKey,c=e.children;return i.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!l,style:r,className:O(a,l&&"".concat(a,"-active"),n),ref:t},c)}),qn=["renderTabBar"],Kn=["label","key"],Xn=function(t){var a=t.renderTabBar,n=ze(t,qn),r=i.useContext(Xe),o=r.tabs;if(a){var l=le(le({},n),{},{panes:o.map(function(s){var c=s.label,d=s.key,f=ze(s,Kn);return i.createElement(aa,ve({tab:c,key:d,tabKey:d},f))})});return a(l,Vt)}return i.createElement(Vt,n)},Un=["key","forceRender","style","className","destroyInactiveTabPane"],Yn=function(t){var a=t.id,n=t.activeKey,r=t.animated,o=t.tabPosition,l=t.destroyInactiveTabPane,s=i.useContext(Xe),c=s.prefixCls,d=s.tabs,f=r.tabPane,u="".concat(c,"-tabpane");return i.createElement("div",{className:O("".concat(c,"-content-holder"))},i.createElement("div",{className:O("".concat(c,"-content"),"".concat(c,"-content-").concat(o),re({},"".concat(c,"-content-animated"),f))},d.map(function(g){var y=g.key,B=g.forceRender,P=g.style,S=g.className,m=g.destroyInactiveTabPane,p=ze(g,Un),T=y===n;return i.createElement(Ha,ve({key:y,visible:T,forceRender:B,removeOnLeave:!!(l||m),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(N,I){var j=N.style,k=N.className;return i.createElement(aa,ve({},p,{prefixCls:u,id:a,tabKey:y,animated:f,active:T,style:le(le({},P),j),className:O(S,k),ref:I}))})})))};function Jn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=le({inkBar:!0},dt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Qn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ft=0,Zn=i.forwardRef(function(e,t){var a=e.id,n=e.prefixCls,r=n===void 0?"rc-tabs":n,o=e.className,l=e.items,s=e.direction,c=e.activeKey,d=e.defaultActiveKey,f=e.editable,u=e.animated,g=e.tabPosition,y=g===void 0?"top":g,B=e.tabBarGutter,P=e.tabBarStyle,S=e.tabBarExtraContent,m=e.locale,p=e.more,T=e.destroyInactiveTabPane,N=e.renderTabBar,I=e.onChange,j=e.onTabClick,k=e.onTabScroll,M=e.getPopupContainer,w=e.popupClassName,R=e.indicator,h=ze(e,Qn),x=i.useMemo(function(){return(l||[]).filter(function(G){return G&&dt(G)==="object"&&"key"in G})},[l]),$=s==="rtl",C=Jn(u),J=i.useState(!1),A=W(J,2),V=A[0],te=A[1];i.useEffect(function(){te(Aa())},[]);var z=Lt(function(){var G;return(G=x[0])===null||G===void 0?void 0:G.key},{value:c,defaultValue:d}),_=W(z,2),ae=_[0],oe=_[1],E=i.useState(function(){return x.findIndex(function(G){return G.key===ae})}),D=W(E,2),Z=D[0],X=D[1];i.useEffect(function(){var G=x.findIndex(function(de){return de.key===ae});if(G===-1){var ce;G=Math.max(0,Math.min(Z,x.length-1)),oe((ce=x[G])===null||ce===void 0?void 0:ce.key)}X(G)},[x.map(function(G){return G.key}).join("_"),ae,Z]);var F=Lt(null,{value:a}),q=W(F,2),Q=q[0],he=q[1];i.useEffect(function(){a||(he("rc-tabs-".concat(Ft)),Ft+=1)},[]);function se(G,ce){j?.(G,ce);var de=G!==ae;oe(G),de&&I?.(G)}var pe={id:Q,activeKey:ae,animated:C,tabPosition:y,rtl:$,mobile:V},$e=le(le({},pe),{},{editable:f,locale:m,more:p,tabBarGutter:B,onTabClick:se,onTabScroll:k,extra:S,style:P,panes:null,getPopupContainer:M,popupClassName:w,indicator:R});return i.createElement(Xe.Provider,{value:{tabs:x,prefixCls:r}},i.createElement("div",ve({ref:t,id:a,className:O(r,"".concat(r,"-").concat(y),re(re(re({},"".concat(r,"-mobile"),V),"".concat(r,"-editable"),f),"".concat(r,"-rtl"),$),o)},h),i.createElement(Xn,ve({},$e,{renderTabBar:N})),i.createElement(Yn,ve({destroyInactiveTabPane:T},pe,{animated:C}))))});const er={motionAppear:!1,motionEnter:!0,motionLeave:!0};function tr(e,t={inkBar:!0,tabPane:!1}){let a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},er),{motionName:Da(e,"switch")})),a}var ar=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};function nr(e){return e.filter(t=>t)}function rr(e,t){if(e)return e.map(n=>{var r;const o=(r=n.destroyOnHidden)!==null&&r!==void 0?r:n.destroyInactiveTabPane;return Object.assign(Object.assign({},n),{destroyInactiveTabPane:o})});const a=Ga(t).map(n=>{if(i.isValidElement(n)){const{key:r,props:o}=n,l=o||{},{tab:s}=l,c=ar(l,["tab"]);return Object.assign(Object.assign({key:String(r)},c),{label:s})}return null});return nr(a)}const ir=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[jt(e,"slide-up"),jt(e,"slide-down")]]},or=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:n,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:n,border:`${v(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Yt(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:v(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:v(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${v(e.borderRadiusLG)} 0 0 ${v(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},lr=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ut(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${v(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ft),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${v(e.paddingXXS)} ${v(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sr=e=>{const{componentCls:t,margin:a,colorBorderSecondary:n,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${v(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
9
|
+
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,
|
|
10
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:v(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${v(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${v(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},cr=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:n,cardHeightSM:r,cardHeightLG:o,horizontalItemPaddingSM:l,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${v(e.borderRadius)} ${v(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${v(e.borderRadius)} ${v(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${v(e.borderRadius)} ${v(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${v(e.borderRadius)} 0 0 ${v(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},dr=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:n,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:a}},"&-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}},st(e)),"&:hover":{color:n},[`&${d}-active ${d}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:Yt(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},ur=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:n,cardGutter:r,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:v(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:v(e.marginXS)},marginLeft:{_skip_check_:!0,value:v(o(e.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},fr=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:n,cardGutter:r,itemHoverColor:o,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ut(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${v(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:l}},st(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),dr(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},st(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},vr=e=>{const{cardHeight:t,cardHeightSM:a,cardHeightLG:n,controlHeight:r,controlHeightLG:o}=e,l=t||o,s=a||r,c=n||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},gr=Be("Tabs",e=>{const t=Ve(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${v(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${v(e.horizontalItemGutter)}`});return[cr(t),ur(t),sr(t),lr(t),or(t),fr(t),ir(t)]},vr),mr=()=>null;var br=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};const hr=i.forwardRef((e,t)=>{var a,n,r,o,l,s,c,d,f,u,g;const{type:y,className:B,rootClassName:P,size:S,onEdit:m,hideAdd:p,centered:T,addIcon:N,removeIcon:I,moreIcon:j,more:k,popupClassName:M,children:w,items:R,animated:h,style:x,indicatorSize:$,indicator:C,destroyInactiveTabPane:J,destroyOnHidden:A}=e,V=br(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:te}=V,{direction:z,tabs:_,getPrefixCls:ae,getPopupContainer:oe}=i.useContext(be),E=ae("tabs",te),D=Wa(E),[Z,X,F]=gr(E,D),q=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:q.current}));let Q;y==="editable-card"&&(Q={onEdit:(de,{key:Ce,event:Ie})=>{m?.(de==="add"?Ie:Ce,de)},removeIcon:(a=I??_?.removeIcon)!==null&&a!==void 0?a:i.createElement(ka,null),addIcon:(N??_?.addIcon)||i.createElement(Ln,null),showAdd:p!==!0});const he=ae(),se=Jt(S),pe=rr(R,w),$e=tr(E,h),G=Object.assign(Object.assign({},_?.style),x),ce={align:(n=C?.align)!==null&&n!==void 0?n:(r=_?.indicator)===null||r===void 0?void 0:r.align,size:(c=(l=(o=C?.size)!==null&&o!==void 0?o:$)!==null&&l!==void 0?l:(s=_?.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:_?.indicatorSize};return Z(i.createElement(Zn,Object.assign({ref:q,direction:z,getPopupContainer:oe},V,{items:pe,className:O({[`${E}-${se}`]:se,[`${E}-card`]:["card","editable-card"].includes(y),[`${E}-editable-card`]:y==="editable-card",[`${E}-centered`]:T},_?.className,B,P,X,F,D),popupClassName:O(M,X,F,D),style:G,editable:Q,more:Object.assign({icon:(g=(u=(f=(d=_?.more)===null||d===void 0?void 0:d.icon)!==null&&f!==void 0?f:_?.moreIcon)!==null&&u!==void 0?u:j)!==null&&g!==void 0?g:i.createElement(Va,null),transitionName:`${he}-slide-up`},k),prefixCls:E,animated:$e,indicator:ce,destroyInactiveTabPane:A??J})))}),na=hr;na.TabPane=mr;var pr=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};const ra=e=>{var{prefixCls:t,className:a,hoverable:n=!0}=e,r=pr(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=i.useContext(be),l=o("card",t),s=O(`${l}-grid`,a,{[`${l}-grid-hoverable`]:n});return i.createElement("div",Object.assign({},r,{className:s}))},$r=e=>{const{antCls:t,componentCls:a,headerHeight:n,headerPadding:r,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${v(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${v(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)} 0 0`},vt()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ft),{[`
|
|
11
|
+
> ${a}-typography,
|
|
12
|
+
> ${a}-typography-edit-content
|
|
13
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${v(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},yr=e=>{const{cardPaddingBase:t,colorBorderSecondary:a,cardShadow:n,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
14
|
+
${v(r)} 0 0 0 ${a},
|
|
15
|
+
0 ${v(r)} 0 0 ${a},
|
|
16
|
+
${v(r)} ${v(r)} 0 0 ${a},
|
|
17
|
+
${v(r)} 0 0 0 ${a} inset,
|
|
18
|
+
0 ${v(r)} 0 0 ${a} inset;
|
|
19
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},Sr=e=>{const{componentCls:t,iconCls:a,actionsLiMargin:n,cardActionsIconSize:r,colorBorderSecondary:o,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${v(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)}`},vt()),{"& > li":{margin:n,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), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:v(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:r,lineHeight:v(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${v(e.lineWidth)} ${e.lineType} ${o}`}}})},Cr=e=>Object.assign(Object.assign({margin:`${v(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},vt()),{"&-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},ft),"&-description":{color:e.colorTextDescription}}),xr=e=>{const{componentCls:t,colorFillAlter:a,headerPadding:n,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${v(n)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${v(e.padding)} ${v(r)}`}}},wr=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},_r=e=>{const{componentCls:t,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:r,boxShadowTertiary:o,bodyPadding:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ut(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:$r(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)}`},[`${t}-grid`]:yr(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${v(e.borderRadiusLG)} ${v(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Sr(e),[`${t}-meta`]:Cr(e)}),[`${t}-bordered`]:{border:`${v(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:a}},[`${t}-contain-grid`]:{borderRadius:`${v(e.borderRadiusLG)} ${v(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:n}}},[`${t}-type-inner`]:xr(e),[`${t}-loading`]:wr(e),[`${t}-rtl`]:{direction:"rtl"}}},Er=e=>{const{componentCls:t,bodyPaddingSM:a,headerPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${v(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:a}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Or=e=>{var t,a;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&&t!==void 0?t:e.paddingLG,headerPadding:(a=e.headerPadding)!==null&&a!==void 0?a:e.paddingLG}},Pr=Be("Card",e=>{const t=Ve(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[_r(t),Er(t)]},Or);var qt=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};const Rr=e=>{const{actionClasses:t,actions:a=[],actionStyle:n}=e;return i.createElement("ul",{className:t,style:n},a.map((r,o)=>{const l=`action-${o}`;return i.createElement("li",{style:{width:`${100/a.length}%`},key:l},i.createElement("span",null,r))}))},Tr=i.forwardRef((e,t)=>{const{prefixCls:a,className:n,rootClassName:r,style:o,extra:l,headStyle:s={},bodyStyle:c={},title:d,loading:f,bordered:u,variant:g,size:y,type:B,cover:P,actions:S,tabList:m,children:p,activeTabKey:T,defaultActiveTabKey:N,tabBarExtraContent:I,hoverable:j,tabProps:k={},classNames:M,styles:w}=e,R=qt(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:h,direction:x,card:$}=i.useContext(be),[C]=Fa("card",g,u),J=ee=>{var U;(U=e.onTabChange)===null||U===void 0||U.call(e,ee)},A=ee=>{var U;return O((U=$?.classNames)===null||U===void 0?void 0:U[ee],M?.[ee])},V=ee=>{var U;return Object.assign(Object.assign({},(U=$?.styles)===null||U===void 0?void 0:U[ee]),w?.[ee])},te=i.useMemo(()=>{let ee=!1;return i.Children.forEach(p,U=>{U?.type===ra&&(ee=!0)}),ee},[p]),z=h("card",a),[_,ae,oe]=Pr(z),E=i.createElement(Me,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),D=T!==void 0,Z=Object.assign(Object.assign({},k),{[D?"activeKey":"defaultActiveKey"]:D?T:N,tabBarExtraContent:I});let X;const F=Jt(y),q=!F||F==="default"?"large":F,Q=m?i.createElement(na,Object.assign({size:q},Z,{className:`${z}-head-tabs`,onChange:J,items:m.map(ee=>{var{tab:U}=ee,ge=qt(ee,["tab"]);return Object.assign({label:U},ge)})})):null;if(d||l||Q){const ee=O(`${z}-head`,A("header")),U=O(`${z}-head-title`,A("title")),ge=O(`${z}-extra`,A("extra")),Ne=Object.assign(Object.assign({},s),V("header"));X=i.createElement("div",{className:ee,style:Ne},i.createElement("div",{className:`${z}-head-wrapper`},d&&i.createElement("div",{className:U,style:V("title")},d),l&&i.createElement("div",{className:ge,style:V("extra")},l)),Q)}const he=O(`${z}-cover`,A("cover")),se=P?i.createElement("div",{className:he,style:V("cover")},P):null,pe=O(`${z}-body`,A("body")),$e=Object.assign(Object.assign({},c),V("body")),G=i.createElement("div",{className:pe,style:$e},f?E:p),ce=O(`${z}-actions`,A("actions")),de=S?.length?i.createElement(Rr,{actionClasses:ce,actionStyle:V("actions"),actions:S}):null,Ce=Fe(R,["onTabChange"]),Ie=O(z,$?.className,{[`${z}-loading`]:f,[`${z}-bordered`]:C!=="borderless",[`${z}-hoverable`]:j,[`${z}-contain-grid`]:te,[`${z}-contain-tabs`]:m?.length,[`${z}-${F}`]:F,[`${z}-type-${B}`]:!!B,[`${z}-rtl`]:x==="rtl"},n,r,ae,oe),Ue=Object.assign(Object.assign({},$?.style),o);return _(i.createElement("div",Object.assign({ref:t},Ce,{className:Ie,style:Ue}),X,se,G,de))});var Mr=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};const Ir=e=>{const{prefixCls:t,className:a,avatar:n,title:r,description:o}=e,l=Mr(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=i.useContext(be),c=s("card",t),d=O(`${c}-meta`,a),f=n?i.createElement("div",{className:`${c}-meta-avatar`},n):null,u=r?i.createElement("div",{className:`${c}-meta-title`},r):null,g=o?i.createElement("div",{className:`${c}-meta-description`},o):null,y=u||g?i.createElement("div",{className:`${c}-meta-detail`},u,g):null;return i.createElement("div",Object.assign({},l,{className:d}),f,y)},ia=Tr;ia.Grid=ra;ia.Meta=Ir;export{ia as C,Mn as D,Ln as R,Me as S,na as T,qa as a,jr as b,Lr as c,yn as g,zr as m,Qt as r,Br as u};
|
|
20
|
+
//# sourceMappingURL=index-Cfg0ICF_.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,v as F,x as H,z as I,ac as _,n as L,a8 as B,an as U,m as O,ae as V}from"./index-BtXc5-H2.js";import{S as X}from"./index-Cfg0ICF_.js";const A=t=>{const{value:n,formatter:o,precision:e,decimalSeparator:a,groupSeparator:u="",prefixCls:i}=t;let c;if(typeof o=="function")c=o(n);else{const s=String(n),f=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!f||s==="-")c=s;else{const d=f[1];let p=f[2]||"0",m=f[4]||"";p=p.replace(/\B(?=(\d{3})+(?!\d))/g,u),typeof e=="number"&&(m=m.padEnd(e,"0").slice(0,e>0?e:0)),m&&(m=`${a}${m}`),c=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},d,p),m&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},m)]}}return r.createElement("span",{className:`${i}-content-value`},c)},Y=t=>{const{componentCls:n,marginXXS:o,padding:e,colorTextDescription:a,titleFontSize:u,colorTextHeading:i,contentFontSize:c,fontFamily:s}=t;return{[n]:Object.assign(Object.assign({},I(t)),{[`${n}-title`]:{marginBottom:o,color:a,fontSize:u},[`${n}-skeleton`]:{paddingTop:e},[`${n}-content`]:{color:i,fontSize:c,fontFamily:s,[`${n}-content-value`]:{display:"inline-block",direction:"ltr"},[`${n}-content-prefix, ${n}-content-suffix`]:{display:"inline-block"},[`${n}-content-prefix`]:{marginInlineEnd:o},[`${n}-content-suffix`]:{marginInlineStart:o}}})}},q=t=>{const{fontSizeHeading3:n,fontSize:o}=t;return{titleFontSize:o,contentFontSize:n}},G=F("Statistic",t=>{const n=H(t,{});return Y(n)},q);var J=function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a<e.length;a++)n.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(o[e[a]]=t[e[a]]);return o};const y=r.forwardRef((t,n)=>{const{prefixCls:o,className:e,rootClassName:a,style:u,valueStyle:i,value:c=0,title:s,valueRender:f,prefix:d,suffix:p,loading:m=!1,formatter:l,precision:g,decimalSeparator:S=".",groupSeparator:w=",",onMouseEnter:$,onMouseLeave:C}=t,h=J(t,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:N,direction:j,className:T,style:k}=_("statistic"),v=N("statistic",o),[z,R,P]=G(v),x=r.createElement(A,{decimalSeparator:S,groupSeparator:w,prefixCls:v,formatter:l,precision:g,value:c}),D=L(v,{[`${v}-rtl`]:j==="rtl"},T,e,a,R,P),b=r.useRef(null);r.useImperativeHandle(n,()=>({nativeElement:b.current}));const M=B(h,{aria:!0,data:!0});return z(r.createElement("div",Object.assign({},M,{ref:b,className:D,style:Object.assign(Object.assign({},k),u),onMouseEnter:$,onMouseLeave:C}),s&&r.createElement("div",{className:`${v}-title`},s),r.createElement(X,{paragraph:!1,loading:m,className:`${v}-skeleton`,active:!0},r.createElement("div",{style:i,className:`${v}-content`},d&&r.createElement("span",{className:`${v}-content-prefix`},d),f?f(x):x,p&&r.createElement("span",{className:`${v}-content-suffix`},p)))))}),K=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Q(t,n){let o=t;const e=/\[[^\]]*]/g,a=(n.match(e)||[]).map(s=>s.slice(1,-1)),u=n.replace(e,"[]"),i=K.reduce((s,[f,d])=>{if(s.includes(f)){const p=Math.floor(o/d);return o-=p*d,s.replace(new RegExp(`${f}+`,"g"),m=>{const l=m.length;return p.toString().padStart(l,"0")})}return s},u);let c=0;return i.replace(e,()=>{const s=a[c];return c+=1,s})}function W(t,n,o){const{format:e=""}=n,a=new Date(t).getTime(),u=Date.now(),i=Math.max(o?a-u:u-a,0);return Q(i,e)}var Z=function(t,n){var o={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(o[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(t);a<e.length;a++)n.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(t,e[a])&&(o[e[a]]=t[e[a]]);return o};function ee(t){return new Date(t).getTime()}const E=t=>{const{value:n,format:o="HH:mm:ss",onChange:e,onFinish:a,type:u}=t,i=Z(t,["value","format","onChange","onFinish","type"]),c=u==="countdown",[s,f]=r.useState(null),d=U(()=>{const l=Date.now(),g=ee(n);f({});const S=c?g-l:l-g;return e?.(S),c&&g<l?(a?.(),!1):!0});r.useEffect(()=>{let l;const g=()=>O.cancel(l),S=()=>{l=O(()=>{d()&&S()})};return S(),g},[n,c]),r.useEffect(()=>{f({})},[]);const p=(l,g)=>s?W(l,Object.assign(Object.assign({},g),{format:o}),c):"-",m=l=>V(l,{title:void 0});return r.createElement(y,Object.assign({},i,{value:n,valueRender:m,formatter:p}))},te=t=>r.createElement(E,Object.assign({},t,{type:"countdown"})),ne=r.memo(te);y.Timer=E;y.Countdown=ne;export{y as S};
|
|
2
|
+
//# sourceMappingURL=index-D1KRxkVR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as P,x as W,z as j,A as d,ac as T,J as H,r as c,n as D}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{v as P,x as W,z as j,A as d,ac as T,J as H,r as c,n as D}from"./index-BtXc5-H2.js";const G=t=>{const{componentCls:e}=t;return{[e]:{"&-horizontal":{[`&${e}`]:{"&-sm":{marginBlock:t.marginXS},"&-md":{marginBlock:t.margin}}}}}},A=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:g,orientationMargin:l,verticalMarginInline:s}=t;return{[e]:Object.assign(Object.assign({},j(t)),{borderBlockStart:`${d(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${d(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${d(t.marginLG)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${d(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${d(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-start`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${e}-with-text-end`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:g},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${d(n)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${d(n)} 0 0`},[`&-horizontal${e}-with-text${e}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${e}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-start${e}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-end${e}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},L=t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),V=P("Divider",t=>{const e=W(t,{dividerHorizontalWithTextGutterMargin:t.margin,sizePaddingEdgeHorizontal:0});return[A(e),G(e)]},L,{unitless:{orientationMargin:!0}});var X=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]]);return o};const _={small:"sm",middle:"md"},J=t=>{const{getPrefixCls:e,direction:o,className:r,style:n}=T("divider"),{prefixCls:g,type:l="horizontal",orientation:s="center",orientationMargin:a,className:x,rootClassName:y,children:h,dashed:z,variant:f="solid",plain:v,style:w,size:C}=t,I=X(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),i=e("divider",g),[O,M,E]=V(i),B=H(C),b=_[B],$=!!h,m=c.useMemo(()=>s==="left"?o==="rtl"?"end":"start":s==="right"?o==="rtl"?"start":"end":s,[o,s]),p=m==="start"&&a!=null,S=m==="end"&&a!=null,N=D(i,r,M,E,`${i}-${l}`,{[`${i}-with-text`]:$,[`${i}-with-text-${m}`]:$,[`${i}-dashed`]:!!z,[`${i}-${f}`]:f!=="solid",[`${i}-plain`]:!!v,[`${i}-rtl`]:o==="rtl",[`${i}-no-default-orientation-margin-start`]:p,[`${i}-no-default-orientation-margin-end`]:S,[`${i}-${b}`]:!!b},x,y),u=c.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),k={marginInlineStart:p?u:void 0,marginInlineEnd:S?u:void 0};return O(c.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},n),w)},I,{role:"separator"}),h&&l!=="vertical"&&c.createElement("span",{className:`${i}-inner-text`,style:k},h)))};export{J as D};
|
|
2
|
+
//# sourceMappingURL=index-D8iUeVsP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as g,o as L,a7 as q,i as A,n as D,h as H,_ as R,a3 as N,v as X,x as K,z as V,A as $,ab as F,F as _,D as B,K as G,J,aM as Q,aN as U}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as g,o as L,a7 as q,i as A,n as D,h as H,_ as R,a3 as N,v as X,x as K,z as V,A as $,ab as F,F as _,D as B,K as G,J,aM as Q,aN as U}from"./index-BtXc5-H2.js";var Y=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],P=g.forwardRef(function(e,n){var c,a=e.prefixCls,l=a===void 0?"rc-switch":a,r=e.className,d=e.checked,t=e.defaultChecked,i=e.disabled,o=e.loadingIcon,s=e.checkedChildren,u=e.unCheckedChildren,I=e.onClick,C=e.onChange,w=e.onKeyDown,M=L(e,Y),x=q(!1,{value:d,defaultValue:t}),f=A(x,2),p=f[0],S=f[1];function v(h,k){var b=p;return i||(b=h,S(b),C?.(b,k)),b}function y(h){h.which===N.LEFT?v(!1,h):h.which===N.RIGHT&&v(!0,h),w?.(h)}function m(h){var k=v(!p,h);I?.(k,h)}var E=D(l,r,(c={},H(c,"".concat(l,"-checked"),p),H(c,"".concat(l,"-disabled"),i),c));return g.createElement("button",R({},M,{type:"button",role:"switch","aria-checked":p,disabled:i,className:E,ref:n,onKeyDown:y,onClick:m}),o,g.createElement("span",{className:"".concat(l,"-inner")},g.createElement("span",{className:"".concat(l,"-inner-checked")},s),g.createElement("span",{className:"".concat(l,"-inner-unchecked")},u)))});P.displayName="Switch";const Z=e=>{const{componentCls:n,trackHeightSM:c,trackPadding:a,trackMinWidthSM:l,innerMinMarginSM:r,innerMaxMarginSM:d,handleSizeSM:t,calc:i}=e,o=`${n}-inner`,s=$(i(t).add(i(a).mul(2)).equal()),u=$(i(d).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:l,height:c,lineHeight:$(c),[`${n}-inner`]:{paddingInlineStart:d,paddingInlineEnd:r,[`${o}-checked, ${o}-unchecked`]:{minHeight:c},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${o}-unchecked`]:{marginTop:i(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:t,height:t},[`${n}-loading-icon`]:{top:i(i(t).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:r,paddingInlineEnd:d,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${$(i(t).add(a).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:i(e.marginXXS).div(2).equal(),marginInlineEnd:i(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:i(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:i(e.marginXXS).div(2).equal()}}}}}}},ee=e=>{const{componentCls:n,handleSize:c,calc:a}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:a(a(c).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},ne=e=>{const{componentCls:n,trackPadding:c,handleBg:a,handleShadow:l,handleSize:r,calc:d}=e,t=`${n}-handle`;return{[n]:{[t]:{position:"absolute",top:c,insetInlineStart:c,width:r,height:r,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:d(r).div(2).equal(),boxShadow:l,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${t}`]:{insetInlineStart:`calc(100% - ${$(d(r).add(c).equal())})`},[`&:not(${n}-disabled):active`]:{[`${t}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${t}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ie=e=>{const{componentCls:n,trackHeight:c,trackPadding:a,innerMinMargin:l,innerMaxMargin:r,handleSize:d,calc:t}=e,i=`${n}-inner`,o=$(t(d).add(t(a).mul(2)).equal()),s=$(t(r).mul(2).equal());return{[n]:{[i]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:r,paddingInlineEnd:l,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${i}-checked, ${i}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:c},[`${i}-checked`]:{marginInlineStart:`calc(-100% + ${o} - ${s})`,marginInlineEnd:`calc(100% - ${o} + ${s})`},[`${i}-unchecked`]:{marginTop:t(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${i}`]:{paddingInlineStart:l,paddingInlineEnd:r,[`${i}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${i}-unchecked`]:{marginInlineStart:`calc(100% - ${o} + ${s})`,marginInlineEnd:`calc(-100% + ${o} - ${s})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${i}`]:{[`${i}-unchecked`]:{marginInlineStart:t(a).mul(2).equal(),marginInlineEnd:t(a).mul(-1).mul(2).equal()}},[`&${n}-checked ${i}`]:{[`${i}-checked`]:{marginInlineStart:t(a).mul(-1).mul(2).equal(),marginInlineEnd:t(a).mul(2).equal()}}}}}},ae=e=>{const{componentCls:n,trackHeight:c,trackMinWidth:a}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},V(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:c,lineHeight:$(c),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),F(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},te=e=>{const{fontSize:n,lineHeight:c,controlHeight:a,colorWhite:l}=e,r=n*c,d=a/2,t=2,i=r-t*2,o=d-t*2;return{trackHeight:r,trackHeightSM:d,trackMinWidth:i*2+t*4,trackMinWidthSM:o*2+t*2,trackPadding:t,handleBg:l,handleSize:i,handleSizeSM:o,handleShadow:`0 2px 4px 0 ${new _("#00230b").setA(.2).toRgbString()}`,innerMinMargin:i/2,innerMaxMargin:i+t+t*2,innerMinMarginSM:o/2,innerMaxMarginSM:o+t+t*2}},ce=X("Switch",e=>{const n=K(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ae(n),ie(n),ne(n),ee(n),Z(n)]},te);var le=function(e,n){var c={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(c[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)n.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(c[a[l]]=e[a[l]]);return c};const oe=g.forwardRef((e,n)=>{const{prefixCls:c,size:a,disabled:l,loading:r,className:d,rootClassName:t,style:i,checked:o,value:s,defaultChecked:u,defaultValue:I,onChange:C}=e,w=le(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[M,x]=q(!1,{value:o??s,defaultValue:u??I}),{getPrefixCls:f,direction:p,switch:S}=g.useContext(B),v=g.useContext(G),y=(l??v)||r,m=f("switch",c),E=g.createElement("div",{className:`${m}-handle`},r&&g.createElement(U,{className:`${m}-loading-icon`})),[h,k,b]=ce(m),O=J(a),T=D(S?.className,{[`${m}-small`]:O==="small",[`${m}-loading`]:r,[`${m}-rtl`]:p==="rtl"},d,t,k,b),j=Object.assign(Object.assign({},S?.style),i),W=(...z)=>{x(z[0]),C?.apply(void 0,z)};return h(g.createElement(Q,{component:"Switch",disabled:y},g.createElement(P,Object.assign({},w,{checked:M,onChange:W,prefixCls:m,className:T,style:j,disabled:y,ref:n,loadingIcon:E}))))}),re=oe;re.__ANT_SWITCH=!0;export{re as S};
|
|
2
|
+
//# sourceMappingURL=index-DcqvG64t.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b1 as h,R as w,u as S,Q as R,b,r as y,s as l,j as r,B as p,c as T,Z as C,S as E}from"./index-BtXc5-H2.js";import{f as L}from"./dateUtils-Dh-zVUtr.js";import{M as A}from"./index-Bp5yfy4e.js";import{T as F}from"./index-xZubvNRw.js";import{T as d}from"./index-CZlT-55J.js";import{C as M}from"./index-Cfg0ICF_.js";import{F as m}from"./Table-COdSkj3k.js";import"./ActionButton-bmITMO8t.js";import"./index-CZXbP5HB.js";const f={async listRecentSlots(e){return(await h.listRecentSlots(e)).data.data},async submitRecover(e,c){return(await h.submitRecover(e,c)).data},async recoverStatus(e,c){return(await h.recoverStatus(e,c)).data}};function D(e,c=w.SCHEDULER){const{data:o,isLoading:i,error:a,refetch:u}=S({queryKey:R.SCHEDULER,queryFn:()=>f.listRecentSlots(e),refetchInterval:c});return{slots:o?.slots,isLoading:i,error:a,refetch:u}}const{Text:x,Title:U}=F;function g(e){switch(e.toLowerCase()){case"running":return"processing";case"pending":return"default";case"success":case"submitted":case"published":return"success";case"failed":return"error";default:return"warning"}}function _(e){return Array.isArray(e)?e:[]}function z(e){return["failed","no_candidate","duplicate"].includes(e.toLowerCase())}function V(){const{t:e}=b(),{slots:c,isLoading:o,error:i,refetch:a}=D(),u=y.useCallback(async()=>{l.loading({content:e("scheduler.refreshing"),key:"scheduler-refresh"});try{await a(),l.success({content:e("scheduler.refreshed"),key:"scheduler-refresh",duration:2})}catch{l.error({content:e("scheduler.refreshFailed"),key:"scheduler-refresh",duration:3})}},[a,e]),k=y.useCallback(s=>{const t=crypto.randomUUID();A.confirm({title:e("scheduler.recovery"),content:e("scheduler.recoveryConfirm",{target:s}),okText:e("scheduler.recovery"),cancelText:e("common.cancel"),onOk:async()=>{l.loading({content:e("scheduler.recoverySubmitting"),key:"recover"});try{await f.submitRecover(s,{requestId:t,retryMode:"normal"}),l.success({content:e("scheduler.recoverySubmitted"),key:"recover",duration:3}),setTimeout(()=>a(),1500)}catch(n){const I=n?.response?.status,j=e(I===503?"scheduler.recoveryUnavailable":"scheduler.recoveryFailed");l.error({content:j,key:"recover",duration:4})}}})},[e,a]),v=[{title:e("scheduler.slotId"),dataIndex:"slotId",key:"slotId",ellipsis:!0,render:s=>r.jsx(x,{copyable:{text:s},children:s})},{title:e("scheduler.schedule"),dataIndex:"scheduleId",key:"scheduleId"},{title:e("scheduler.occurrence"),key:"occurrence",render:(s,t)=>r.jsxs("span",{children:[t.occurrenceDate,t.occurrenceLabel?` ${t.occurrenceLabel}`:"",t.occurrenceAt?r.jsx("div",{className:"scheduler-utc",children:L(new Date(t.occurrenceAt))}):null]})},{title:e("scheduler.status"),dataIndex:"status",key:"status",render:(s,t)=>r.jsxs("span",{children:[r.jsx(d,{color:g(s),children:s}),t.recoveryMode?r.jsxs(d,{color:"purple",children:[e("scheduler.recoveryMode"),": ",t.recoveryMode]}):null]})},{title:e("scheduler.trigger"),dataIndex:"triggerSource",key:"triggerSource",render:s=>s||"-"}];return r.jsxs("div",{children:[r.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[r.jsx(U,{level:2,style:{margin:0},children:e("scheduler.title")}),r.jsx(p,{icon:r.jsx(T,{}),onClick:u,loading:o,children:e("scheduler.refresh")})]}),i?r.jsx(C,{type:"error",showIcon:!0,message:e("scheduler.loadFailed"),closable:!0,style:{marginBottom:16}}):null,o&&!c?r.jsx(E,{size:"large",style:{display:"block",textAlign:"center",marginTop:50}}):r.jsx(M,{title:e("scheduler.recentSlots"),children:r.jsx(m,{rowKey:s=>s.slotId,columns:v,dataSource:c||[],pagination:{pageSize:10},expandable:{expandedRowRender:s=>r.jsx(m,{rowKey:t=>`${s.slotId}:${t.targetId}`,size:"small",pagination:!1,dataSource:_(s.targets),columns:[{title:e("scheduler.target"),dataIndex:"targetId",key:"targetId"},{title:e("scheduler.workType"),dataIndex:"workType",key:"workType"},{title:e("scheduler.status"),dataIndex:"status",key:"status",render:t=>r.jsx(d,{color:g(t),children:t})},{title:e("scheduler.workId"),dataIndex:"workId",key:"workId",render:t=>t||"-"},{title:e("scheduler.reason"),key:"reason",render:(t,n)=>r.jsxs("span",{children:[n.terminalReasonCode?r.jsx(d,{color:"volcano",children:n.terminalReasonCode}):null,r.jsx(x,{type:"secondary",children:n.reason||"-"})]})},{title:"",key:"recovery",width:120,render:(t,n)=>z(n.status)?r.jsx(p,{size:"small",onClick:()=>k(n.targetId),children:e("scheduler.recovery")}):null}]})}})})]})}export{V as default};
|
|
2
|
+
//# sourceMappingURL=index-eeF42ACG.js.map
|