import{j as e,al as s,aj as f,an as c,I as x,b6 as d,X as n}from"./vendor-mui-core-D7t4vMS5.js";import{r as j}from"./vendor-react-DX7tU9aY.js";import{W as b}from"./vendor-ux-Dl3wVbv_.js";import{u as g}from"./use-mobile-BSL5RsRd.js";function y({title:r,tooltipTitle:o,link:i}){const{t}=b(),p=g(),[h,l]=j.useState(!1),m=()=>l(u=>!u),a=()=>l(!1);return p?e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[r,e.jsx(f,{onClickAway:a,children:e.jsx("span",{children:e.jsx(c,{open:h,onClose:a,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",onClick:m,sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})})})]}):e.jsxs(s,{sx:{color:"text.secondary",fontSize:"14px",lineHeight:1.5},children:[r,e.jsx(c,{enterTouchDelay:0,leaveTouchDelay:3e3,title:e.jsxs(s,{sx:{fontSize:"14px",lineHeight:1.5},children:[o,e.jsx(s,{sx:{color:"primary.main",ml:.5},component:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:t("dashboard.document")})]}),children:e.jsx(x,{size:"small",sx:{ml:.5},children:e.jsx(d,{fontSize:"14"})})})]})}y.propTypes={title:n.string.isRequired,tooltipTitle:n.string.isRequired,link:n.string.isRequired};export{y as T};
