Files
doormile_crm_build/dist/assets/EmptyState-B9FcYx_n.js

2 lines
4.2 KiB
JavaScript

import{x as C,y as w,b as _,z as R,E as S,_ as b,j as e,F as z,H as $,J as I,r as u,i as p,B as d,S as x,T as i}from"./index-D7LVXeIK.js";import{C as M}from"./Link-BEif5YS2.js";function D(r){return C("MuiCardContent",r)}w("MuiCardContent",["root"]);const k=["className","component"],E=r=>{const{classes:o}=r;return $({root:["root"]},D,o)},U=I("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(r,o)=>o.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),H=_.forwardRef(function(o,t){const s=R({props:o,name:"MuiCardContent"}),{className:l,component:n="div"}=s,v=S(s,k),a=b({},s,{component:n}),c=E(a);return e.jsx(U,b({as:n,className:z(c.root,l),ownerState:a,ref:t},v))});var h={},q=p;Object.defineProperty(h,"__esModule",{value:!0});var j=h.default=void 0,A=q(u()),O=e;j=h.default=(0,A.default)((0,O.jsx)("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0 .39-.39.39-1.02 0-1.41l-6.59-6.59a.9959.9959 0 0 0-1.41 0l-6.6 6.58c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1"}),"ArrowUpwardRounded");var f={},P=p;Object.defineProperty(f,"__esModule",{value:!0});var m=f.default=void 0,V=P(u()),W=e;m=f.default=(0,V.default)((0,W.jsx)("path",{d:"M11 5v11.17l-4.88-4.88c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L13 16.17V5c0-.55-.45-1-1-1s-1 .45-1 1"}),"ArrowDownwardRounded");function G({title:r,value:o,icon:t,color:s="primary",trend:l,caption:n,accent:v=!1}){const a=typeof l=="number"?l>=0:null;return e.jsxs(M,{sx:{height:"100%",position:"relative",overflow:"hidden",borderRadius:3,boxShadow:"0 8px 24px rgba(0,0,0,0.03)",border:"1px solid rgba(0,0,0,0.04)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-4px)",boxShadow:"0 16px 32px rgba(0,0,0,0.06)"},background:c=>`linear-gradient(145deg, ${c.palette.background.paper} 0%, ${c.palette[s].lighter}15 100%)`},children:[t&&e.jsx(d,{sx:{position:"absolute",right:-15,bottom:-15,opacity:.04,transform:"rotate(-15deg)",pointerEvents:"none"},children:e.jsx(t,{sx:{fontSize:110}})}),e.jsxs(H,{sx:{p:2.5,"&:last-child":{pb:2.5},height:"100%",display:"flex",flexDirection:"column"},children:[e.jsxs(x,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",sx:{mb:1.5,position:"relative",zIndex:2},children:[e.jsx(i,{variant:"body2",sx:{fontWeight:600,color:"text.secondary"},children:r}),t&&e.jsx(d,{sx:{width:38,height:38,borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:`${s}.lighter`,color:`${s}.main`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.05)"},children:e.jsx(t,{fontSize:"small"})})]}),e.jsx(d,{sx:{flexGrow:1,position:"relative",zIndex:2},children:e.jsx(i,{variant:"h4",sx:{fontWeight:800,color:"grey.900",letterSpacing:"-0.5px",lineHeight:1},children:o})}),(a!==null||n)&&e.jsxs(x,{direction:"row",spacing:1,alignItems:"center",sx:{mt:2,pt:1.5,borderTop:"1px dashed rgba(0,0,0,0.06)",position:"relative",zIndex:2},children:[a!==null&&e.jsxs(x,{direction:"row",spacing:.25,alignItems:"center",sx:{bgcolor:a?"success.lighter":"error.lighter",px:.75,py:.25,borderRadius:1},children:[a?e.jsx(j,{sx:{fontSize:14,color:"success.dark"}}):e.jsx(m,{sx:{fontSize:14,color:"error.dark"}}),e.jsxs(i,{variant:"caption",sx:{fontWeight:700,color:a?"success.dark":"error.dark"},children:[Math.abs(l),"%"]})]}),n&&e.jsx(i,{variant:"caption",sx:{color:"text.secondary",fontWeight:600},children:n})]})]})]})}var g={},N=p;Object.defineProperty(g,"__esModule",{value:!0});var y=g.default=void 0,B=N(u()),L=e;y=g.default=(0,B.default)((0,L.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5v-3h3.56c.69 1.19 1.97 2 3.45 2s2.75-.81 3.45-2H19zm0-5h-4.99c0 1.1-.9 2-2 2s-2-.9-2-2H5V5h14z"}),"InboxOutlined");function J({icon:r=y,title:o="No records found",caption:t,sx:s}){return e.jsxs(d,{sx:{textAlign:"center",py:6,px:2,...s},children:[e.jsx(d,{sx:{width:72,height:72,borderRadius:"50%",bgcolor:"grey.100",display:"inline-flex",alignItems:"center",justifyContent:"center",mb:2},children:e.jsx(r,{sx:{fontSize:34,color:"grey.400"}})}),e.jsx(i,{variant:"h5",color:"text.secondary",children:o}),t&&e.jsx(i,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:t})]})}export{J as E,G as S};