2025-08-18 18:29:28 +03:30
|
|
|
import{bd as he,be as me,aJ as o,bf as ze,bG as N,cA as ve,d as y,C as r,aQ as x,bg as Pe,aL as ae,aM as B,k as G,aR as w,b0 as be,aY as E,dx as L,bU as Ee,cV as Le,dy as De,bi as pe,du as Ge,dz as U,bh as J}from"./B3Hm6diO.js";import{T as fe}from"./B-wJLeYS.js";import{i as We}from"./SlW51Ucp.js";const ke=e=>{const{antCls:t,componentCls:n,cardHeadHeight:a,cardPaddingBase:i,cardHeadTabsMarginBottom:l}=e;return o(o({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},N()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":o(o({display:"inline-block",flex:1},ve),{[`
|
2025-07-26 22:08:43 +03:30
|
|
|
> ${n}-typography,
|
|
|
|
|
> ${n}-typography-edit-content
|
|
|
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},_e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
|
|
|
${i}px 0 0 0 ${n},
|
|
|
|
|
0 ${i}px 0 0 ${n},
|
|
|
|
|
${i}px ${i}px 0 0 ${n},
|
|
|
|
|
${i}px 0 0 0 ${n} inset,
|
|
|
|
|
0 ${i}px 0 0 ${n} inset;
|
2025-08-09 21:39:49 +03:30
|
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},Oe=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:a,cardActionsIconSize:i,colorBorderSecondary:l}=e;return o(o({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},N()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:`${i*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},Ne=e=>o(o({margin:`-${e.marginXXS}px 0`,display:"flex"},N()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":o({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ve),"&-description":{color:e.colorTextDescription}}),je=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},qe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Xe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:i,boxShadow:l,cardPaddingBase:d}=e;return{[t]:o(o({},ze(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:ke(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:o({padding:d,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},N()),[`${t}-grid`]:_e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:Oe(e),[`${t}-meta`]:Ne(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:je(e),[`${t}-loading`]:qe(e),[`${t}-rtl`]:{direction:"rtl"}}},Ke=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}},Fe=he("Card",e=>{const t=me(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Xe(t),Ke(t)]}),Ve=()=>({prefixCls:String,width:{type:[Number,String]}}),oe=y({compatConfig:{MODE:3},name:"SkeletonTitle",props:Ve(),setup(e){return()=>{const{prefixCls:t,width:n}=e,a=typeof n=="number"?`${n}px`:n;return r("h3",{class:t,style:{width:a}},null)}}}),Ue=()=>({prefixCls:String,width:{type:[Number,String,Array
|
2025-07-26 22:08:43 +03:30
|
|
|
${a},
|
|
|
|
|
${i} > li,
|
|
|
|
|
${n},
|
|
|
|
|
${l},
|
|
|
|
|
${d},
|
|
|
|
|
${g}
|
2025-08-09 21:39:49 +03:30
|
|
|
`]:o({},Ye(e))}}},k=he("Skeleton",e=>{const{componentCls:t}=e,n=me(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[at(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),ot=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function ee(e){return e&&typeof e=="object"?e:{}}function it(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function rt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function lt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const $=y({compatConfig:{MODE:3},name:"ASkeleton",props:ae(ot(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:i}=B("skeleton",e),[l,d]=k(a);return()=>{var g;const{loading:T,avatar:f,title:m,paragraph:v,active:p,round:u}=e,s=a.value;if(T||e.loading===void 0){const h=!!f||f==="",b=!!m||m==="",S=!!v||v==="";let H;if(h){const M=o(o({prefixCls:`${s}-avatar`},it(b,S)),ee(f));H=r("div",{class:`${s}-header`},[r(W,M,null)])}let A;if(b||S){let M;if(b){const C=o(o({prefixCls:`${s}-title`},rt(h,S)),ee(m));M=r(oe,C,null)}let R;if(S){const C=o(o({prefixCls:`${s}-paragraph`},lt(h,b)),ee(v));R=r(Je,C,null)}A=r("div",{class:`${s}-content`},[M,R])}const _=x(s,{[`${s}-with-avatar`]:h,[`${s}-active`]:p,[`${s}-rtl`]:i.value==="rtl",[`${s}-round`]:u,[d.value]:!0});return l(r("div",{class:_},[H,A]))}return(g=n.default)===null||g===void 0?void 0:g.call(n)}}}),st=()=>o(o({},j()),{size:String,block:Boolean}),Se=y({compatConfig:{MODE:3},name:"ASkeletonButton",props:ae(st(),{size:"default"}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(W,w(w({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),ye=y({compatConfig:{MODE:3},name:"ASkeletonInput",props:o(o({},be(j(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},a.value));return()=>n(r("div",{class:i.value},[r(W,w(w({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),dt="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",Ce=y({compatConfig:{MODE:3},name:"ASkeletonImage",props:be(j(),["size","shape","active"]),setup(e){const{prefixCls:t}=B("skeleton",e),[n,a]=k(t),i=G(()=>x(t.value,`${t.value}-element`,a.value));return()=>n(r("div",{class:i.value},[r("div",{clas
|