import{i as e}from"./rolldown-runtime-BgaNhQyE.js";import{Dr as t,St as n,Vn as r,Wt as i,en as a,mn as o,pt as s,xn as c,xt as l,zn as u}from"./jsx-runtime-CRBytmvs.js";var d=e(t()),f=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new o(e).onBackground(t).toHexString(),p=()=>{let[,e]=a(),[t]=s(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:o,colorTextQuaternary:c}=e,{panelBgColor:l,borderColor:u,detailColor:p,shadowColor:m,iconColor:h}=(0,d.useMemo)(()=>({panelBgColor:f(o,n),borderColor:f(c,n),detailColor:f(r,n),shadowColor:f(i,n),iconColor:n}),[n,r,i,o,c]);return d.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},d.createElement(`title`,null,t?.description||`Empty`),d.createElement(`g`,{fill:`none`,fillRule:`evenodd`},d.createElement(`g`,{transform:`translate(24 31.7)`},d.createElement(`ellipse`,{fillOpacity:`.8`,fill:m,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),d.createElement(`path`,{fill:u,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),d.createElement(`path`,{fill:l,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),d.createElement(`path`,{fill:p,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),d.createElement(`path`,{fill:p,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),d.createElement(`g`,{fill:h,transform:`translate(149.7 15.4)`},d.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),d.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},m=()=>{let[,e]=a(),[t]=s(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:c,shadowColor:l,contentColor:u}=(0,d.useMemo)(()=>({borderColor:f(n,o),shadowColor:f(r,o),contentColor:f(i,o)}),[n,r,i,o]);return d.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},d.createElement(`title`,null,t?.description||`Empty`),d.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},d.createElement(`ellipse`,{fill:l,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),d.createElement(`g`,{fillRule:`nonzero`,stroke:c},d.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),d.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:u}))))},h=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},g=i(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return h(c(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),_=d.createElement(p,null),v=d.createElement(m,null),y=e=>{let{className:t,rootClassName:i,prefixCls:a,image:o,description:c,children:f,imageStyle:p,style:m,classNames:h,styles:y,...b}=e,{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E,image:D}=u(`empty`),O=x(`empty`,a),[k,A]=g(O),j=n(w),M=n(m),[N,P]=l([T,h],[E,j,y,M],{props:e}),[F]=s(`Empty`),I=c===void 0?F?.description:c,L=typeof I==`string`?I:`empty`,R=o??D??_,z=null;return z=typeof R==`string`?d.createElement(`img`,{draggable:!1,alt:L,src:R}):R,d.createElement(`div`,{className:r(k,A,O,C,{[`${O}-normal`]:R===v,[`${O}-rtl`]:S===`rtl`},t,i,N.root),style:P.root,...b},d.createElement(`div`,{className:r(`${O}-image`,N.image),style:{...p,...P.image}},z),I&&d.createElement(`div`,{className:r(`${O}-description`,N.description),style:P.description},I),f&&d.createElement(`div`,{className:r(`${O}-footer`,N.footer),style:P.footer},f))};y.PRESENTED_IMAGE_DEFAULT=_,y.PRESENTED_IMAGE_SIMPLE=v;export{y as t};