import{j as e,ak as s,ai as f,am as c,I as x,bl as d,W as r}from"./vendor-mui-core-CKKG_1TN.js";import{r as j}from"./vendor-react-CTtPmzVP.js";import{V as b}from"./vendor-ux-DjXlxcvL.js";import{u as g}from"./use-mobile-_vjPRYx2.js";function y({title:n,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:[n,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:[n,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:r.string.isRequired,tooltipTitle:r.string.isRequired,link:r.string.isRequired};export{y as T};
