import{j as t,h as r,T as s}from"./vendor-ClLR6ncd.js";import{o as u}from"./lodash-ZyeDnt0e.js";const c={modifiers:[{name:"flip",enabled:!0,options:{altBoundary:!0,rootBoundary:"document",padding:8}},{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!1,tether:!0,rootBoundary:"document",padding:8}}]},m={tooltip:{sx:{maxWidth:"50vw"}}};function a({TypographySx:o,value:n,placement:p,originalValue:i,arrow:l=!1,...e}){return!i&&!n?null:t.jsx(r,{...u(e,["exploreValue"]),sx:o,children:t.jsx(s,{componentsProps:m,PopperProps:{...c,onClick:d=>{e!=null&&e.onClick&&d.stopPropagation()}},arrow:l,placement:p,title:i,children:t.jsx(r,{component:"span",variant:"inherit",fontSize:"inherit",fontWeight:"inherit",children:n})})})}function x({TypographySx:o,...n}){return t.jsx(a,{...n,TypographySx:{...o,wordBreak:"break-all",whiteSpace:"pre-wrap"}})}function T(o){return t.jsx(a,{...o,noWrap:!0})}export{x as T,T as a};
