import{j as e,J as u,B as p,c as d,T as x}from"./index-d2b25495.js";import{T as w}from"./Tooltip-82372cdb.js";import{Z as h}from"./Zoom-6c53779c.js";const f=({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(u,{variant:"outlined",disableRipple:!0,color:o,startIcon:e.jsx(p,{sx:t=>({width:"10px",height:"10px",bgcolor:t.palette[o].main,borderRadius:"50%"})}),sx:{minWidth:100,width:"auto",whiteSpace:"nowrap"},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(u,{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(p,{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(d,{to:o,style:{color:"inherit"},children:r}):e.jsx(x,{sx:{cursor:"pointer"},onClick:a,children:r})})});export{k as C,m as P,f as S};
