import{r as x,j as i}from"./iframe-B8FSoBNY.js";import{c as w}from"./compiler-runtime-BXE7OOXE.js";import{P as b}from"./portal-CZHfPTRw.js";import{a as E,b as q,c as C,T as g,h as P,i as A}from"./tooltip-C_a-XGZ8.js";const _=x.forwardRef(function(s,h){const e=w.c(26);let r,o,n,T,l,a,p,u;e[0]!==s?({showArrow:p,children:r,disabled:T,portalled:u,content:o,contentProps:n,portalRef:l,...a}=s,e[0]=s,e[1]=r,e[2]=o,e[3]=n,e[4]=T,e[5]=l,e[6]=a,e[7]=p,e[8]=u):(r=e[1],o=e[2],n=e[3],T=e[4],l=e[5],a=e[6],p=e[7],u=e[8]);const j=u===void 0?!0:u;if(T||N(o))return r;let c;e[9]!==r?(c=i.jsx(g,{asChild:!0,children:r}),e[9]=r,e[10]=c):c=e[10];const y=!j;let d;e[11]!==p?(d=p&&i.jsx(P,{children:i.jsx(A,{})}),e[11]=p,e[12]=d):d=e[12];let m;e[13]!==o||e[14]!==n||e[15]!==h||e[16]!==d?(m=i.jsx(E,{children:i.jsxs(q,{ref:h,...n,children:[d,o]})}),e[13]=o,e[14]=n,e[15]=h,e[16]=d,e[17]=m):m=e[17];let f;e[18]!==l||e[19]!==y||e[20]!==m?(f=i.jsx(b,{disabled:y,container:l,children:m}),e[18]=l,e[19]=y,e[20]=m,e[21]=f):f=e[21];let R;return e[22]!==a||e[23]!==c||e[24]!==f?(R=i.jsxs(C,{openDelay:100,closeDelay:100,...a,children:[c,f]}),e[22]=a,e[23]=c,e[24]=f,e[25]=R):R=e[25],R});_.__docgenInfo={description:"",methods:[],displayName:"Tooltip",props:{children:{required:!1,tsType:{name:"ReactReactElement",raw:"React.ReactElement"},description:""},showArrow:{required:!1,tsType:{name:"boolean"},description:""},portalled:{required:!1,tsType:{name:"boolean"},description:""},portalRef:{required:!1,tsType:{name:"ReactRefObject",raw:"React.RefObject<HTMLElement>",elements:[{name:"HTMLElement"}]},description:""},content:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},contentProps:{required:!1,tsType:{name:"ChakraTooltip.ContentProps"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""}}};function v(t){return typeof t=="string"?t.trim().length===0:!1}function N(t){if(t==null||t===!1)return!0;const s=x.Children.toArray(t);return s.length===0?!0:s.every(v)}export{_ as T};
