(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776167467284-ccee406086"}catch(l){}})();import{r,j as n}from"./c2heove9.js";import{W as v,_ as D,au as d,n as I}from"./lej86w1k.js";import{c as R}from"./oat2b3jh.js";const M=(s,e)=>n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...s,children:n.jsx("path",{d:"M21 9L21 3M21 3H15M21 3L13 11M10 5H7.8C6.11984 5 5.27976 5 4.63803 5.32698C4.07354 5.6146 3.6146 6.07354 3.32698 6.63803C3 7.27976 3 8.11984 3 9.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21H14.2C15.8802 21 16.7202 21 17.362 20.673C17.9265 20.3854 18.3854 19.9265 18.673 19.362C19 18.7202 19 17.8802 19 16.2V14",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),b=r.forwardRef(M),f=r.forwardRef((s,e)=>n.jsx(v,{"data-testid":"LinkExternalIcon",component:b,ref:e,...s}));f.muiName="LinkExternal";const a={root:"DDSExternalLink-root",icon:"DDSExternalLink-icon"},N=r.forwardRef(function({children:e,href:l,sx:m={},style:k={},showIcon:g,showTooltip:c,tooltipPlacement:h="top",title:i,onAuxClick:p,onClick:x,className:L,...w},C){const E=r.useMemo(()=>c??(i||A()),[c,i]),j=(g??!0)||!e,[t,y]=r.useState({y:0,x:0}),u=n.jsxs(D,{sx:[{[`&.${d.root}`]:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},[`&.${d.root} .${a.icon}`]:{verticalAlign:"middle"}},m,k],onAuxClick:(...o)=>{const[S]=o;if(p){p(...o);return}S.button===1&&x?.(...o)},onClick:x,rel:"noopener",...w,className:R(L,a.root),href:l,target:"_blank",ref:C,onMouseEnter:o=>{y({x:o.clientX,y:o.clientY})},children:[e,j&&n.jsx(n.Fragment,{children:n.jsxs("span",{style:{whiteSpace:"nowrap",userSelect:"none"},children:[!!e&&n.jsx(n.Fragment,{children:"⁠"}),n.jsx(f,{fontSize:"inherit",className:a.icon,sx:[!e&&{marginLeft:"0 !important"}]})]})})]});return E?n.jsx(I,{title:i||l||"",placement:h,describeChild:!0,slotProps:{popper:{anchorEl:{getBoundingClientRect:()=>({top:t.y,left:t.x,right:t.x,bottom:t.y,width:0,height:0,x:t.x,y:t.y,toJSON:()=>{}})}}},children:u}):u}),$=r.memo(N);function A(){return typeof navigator>"u"?!1:navigator.userAgent.includes("DockerDesktop")||navigator.userAgent.includes("Electron")}export{$ as E,f as L};