import{aK as e,aE as n,aH as o,aC as i,aM as t,aN as r,bH as s,cq as l,aT as a,aP as c,b5 as d}from"./index.js?v=1723125373998";import{l as p,p as m,a as u,k as C}from"./vue.js?v=1723125373998";const v=p({name:"Empty",render:()=>m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),m("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}),f={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},x={name:"Empty",common:e,self:e=>{const{textColorDisabled:n,iconColor:o,textColor2:i,fontSizeSmall:t,fontSizeMedium:r,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},f),{fontSizeSmall:t,fontSizeMedium:r,fontSizeLarge:s,fontSizeHuge:l,textColor:n,iconColor:o,extraTextColor:i})}},z=n("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[o("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[i("+",[o("description","\n margin-top: 8px;\n ")])]),o("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),o("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]),g=p({name:"Empty",props:Object.assign(Object.assign({},r.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:o}=t(e),i=r("Empty","-empty",z,x,e,n),{localeRef:d}=s("Empty"),p=u(l,null),f=C((()=>{var n,o,i;return null!==(n=e.description)&&void 0!==n?n:null===(i=null===(o=null==p?void 0:p.mergedComponentPropsRef.value)||void 0===o?void 0:o.Empty)||void 0===i?void 0:i.description})),g=C((()=>{var e,n;return(null===(n=null===(e=null==p?void 0:p.mergedComponentPropsRef.value)||void 0===e?void 0:e.Empty)||void 0===n?void 0:n.renderIcon)||(()=>m(v,null))})),h=C((()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:o},self:{[a("iconSize",n)]:t,[a("fontSize",n)]:r,textColor:s,iconColor:l,extraTextColor:c}}=i.value;return{"--n-icon-size":t,"--n-font-size":r,"--n-bezier":o,"--n-text-color":s,"--n-icon-color":l,"--n-extra-text-color":c}})),y=o?c("empty",C((()=>{let n="";const{size:o}=e;return n+=o[0],n})),h,e):void 0;return{mergedClsPrefix:n,mergedRenderIcon:g,localizedDescription:C((()=>f.value||d.value.description)),cssVars:o?void 0:h,themeClass:null==y?void 0:y.themeClass,onRender:null==y?void 0:y.onRender}},render(){const{$slots:e,mergedClsPrefix:n,onRender:o}=this;return null==o||o(),m("div",{class:["".concat(n,"-empty"),this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:"".concat(n,"-empty__icon")},e.icon?e.icon():m(d,{clsPrefix:n},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:"".concat(n,"-empty__description")},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:"".concat(n,"-empty__extra")},e.extra()):null)}});export{g as _,x as e};
