import{t as e}from"./button-DqbiydrF.js";import{n as t}from"./index-Bg7bo8aA.js";var n=t();function r({children:e}){return(0,n.jsx)(`div`,{className:`compliance-v2`,children:e})}function i({items:e}){return(0,n.jsx)(`div`,{className:`cp-kpi-strip`,children:e.map(e=>(0,n.jsxs)(`div`,{className:`cp-kpi-card`,children:[(0,n.jsx)(`div`,{className:`cp-kpi-label`,children:e.label}),(0,n.jsx)(`div`,{className:`cp-kpi-num`,children:e.value}),e.sub&&(0,n.jsx)(`div`,{className:`cp-kpi-sub`,children:e.sub})]},e.key))})}function a({title:e,extra:t,children:r,danger:i,pad:a}){return(0,n.jsxs)(`div`,{className:`cp-card${i?` danger`:``}`,children:[(0,n.jsxs)(`div`,{className:`cp-card-h`,children:[(0,n.jsx)(`h3`,{children:e}),t]}),(0,n.jsx)(`div`,{className:`cp-card-b${a?` pad`:``}`,children:r})]})}function o({tabs:e,active:t,onChange:r}){return(0,n.jsx)(`div`,{className:`cp-page-tabs`,children:e.map(e=>(0,n.jsx)(`button`,{type:`button`,className:`cp-page-tab${t===e.key?` on`:``}`,onClick:()=>r(e.key),children:e.label},e.key))})}function s({tone:e,children:t}){return(0,n.jsx)(`span`,{className:`cp-tag ${e}`,children:t})}function c({left:e,right:t}){return(0,n.jsxs)(`div`,{className:`cp-table-footer`,children:[(0,n.jsx)(`span`,{children:e}),(0,n.jsx)(`span`,{children:t})]})}function l({onClick:t,label:r=`导出 CSV`}){return(0,n.jsx)(e,{size:`small`,onClick:t,children:r})}function u(e){return[`IN_USE`,`ASSIGNED`,`NORMAL`,`COMPLETED`,`RESOLVED`,`IN_PROGRESS`].includes(e)?`g`:[`BANNED`,`OVERDUE`,`PENDING`,`PENDING_ASSIGN`,`PENDING_REALNAME`,`REPAIR`].includes(e)?e===`REPAIR`||e===`PENDING`?`o`:`r`:[`IN_STOCK`,`LIMITED`,`FROZEN`].includes(e)?`n`:`t`}export{c as a,u as c,r as i,i as n,s as o,o as r,l as s,a as t};