import{j as e,K as p,B as d,c as u,T as x}from"./index-60a3c753.js";import{T as w}from"./Tooltip-88e63512.js";import{Z as h}from"./Zoom-9a0dc652.js";const j=({authorized_status:r,authorized_status_name:a})=>{const o=(()=>{let t="default";switch(r){case 1:t="warning";break;case 2:t="success";break;case 3:t="error";break;case 4:t="primary";break;default:t="primary"}return t})();return e.jsx(p,{variant:"outlined",disableRipple:!0,color:o,startIcon:e.jsx(d,{sx:t=>({width:"10px",height:"10px",bgcolor:t.palette[o].main,borderRadius:"50%"})}),sx:{width:100,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a})},m=({priority:r,priority_name:a})=>{const o=(()=>{switch(r){case 1:return"#F27900";case 2:return"#0073EA";case 3:return"#E43B3B";case 4:return"#E43B3B";default:return"#ADD8E6"}})();return e.jsx(p,{variant:"outlined",disableRipple:!0,sx:{width:100,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:r==3||r==4?"white":o,border:`1px solid ${o}`,bgcolor:r==3||r==4?o:"none"},children:a})},k=({code:r,onClick:a,navigateUrl:o,tooltipTitle:t})=>e.jsx(w,{TransitionComponent:h,title:t,children:e.jsx(d,{sx:s=>{var n,i,l,c;return{color:s.palette.mode=="dark"?(i=(n=s==null?void 0:s.palette)==null?void 0:n.common)==null?void 0:i.white:(c=(l=s==null?void 0:s.palette)==null?void 0:l.primary2)==null?void 0:c.main}},children:o?e.jsx(u,{to:o,style:{color:"inherit"},children:r}):e.jsx(x,{sx:{cursor:"pointer"},onClick:a,children:r})})});export{k as C,m as P,j as S};
