"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[12],{37:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(0),c=r(1),s=r(38),a=r(2);const{wrapper:i,wrapperTooltip:l,wrapperTooltipArrow:u}=s.a,o=({delay:e,content:t,children:r})=>{const{arrowLeft:s,hideTip:o,innerRef:f,left:p,outerRef:h,showTip:d,active:w}=(e=>{let t;const[r,n]=(0,a.useState)(!1),c=(0,a.useRef)(null),s=(0,a.useRef)(null),[i,l]=(0,a.useState)("50%"),[u,o]=(0,a.useState)("50%");return(0,a.useEffect)((()=>{if(c.current&&s.current){const e=s.current.clientWidth,t=s.current.offsetLeft,r=c.current.clientWidth;if(r>e+t&&tn+e&&n{t=setTimeout((()=>{n(!0)}),e||400)},hideTip:()=>{clearInterval(t),n(!1)},active:r}})(e);return(0,n.jsxs)("div",Object.assign({ref:h,className:i,onMouseEnter:d,onMouseLeave:o,onTouchStart:d,onTouchEnd:o},{children:[r,w&&(0,n.jsx)(c.Fragment,{children:(0,n.jsxs)("div",Object.assign({style:{left:p},ref:f,className:l},{children:[(0,n.jsx)("span",{className:u,style:{left:s}}),t]}))})]}))}},5:(e,t,r)=>{r.d(t,{a:()=>n});var n=r(6)}}]);