import{B as e,G as t,H as n,K as r,U as i,V as a,W as o,at as s}from"./vendor-ui-CWUk2ulb.js";import{t as c}from"./utils-XFKvwlFT.js";var l=s();function u({delay:t=0,...n}){return(0,l.jsx)(e,{"data-slot":`tooltip-provider`,delay:t,...n})}function d({...e}){return(0,l.jsx)(r,{"data-slot":`tooltip`,...e})}function f({...e}){return(0,l.jsx)(t,{"data-slot":`tooltip-trigger`,...e})}function p({className:e,side:t=`top`,sideOffset:r=3,align:s=`center`,alignOffset:u=0,children:d,...f}){return(0,l.jsx)(o,{children:(0,l.jsx)(i,{align:s,alignOffset:u,side:t,sideOffset:r,className:`isolate z-50`,children:(0,l.jsxs)(n,{"data-slot":`tooltip-content`,className:c(`z-50 inline-flex w-fit max-w-[min(18rem,85vw)] origin-(--transform-origin) items-center gap-1 rounded-[var(--miravo-radius-tight)] bg-tooltip px-2 py-1 text-[11px] leading-tight text-tooltip-foreground shadow-md shadow-black/25 has-data-[slot=kbd]:pr-1 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-[var(--miravo-radius-tight)] data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...f,children:[d,(0,l.jsx)(a,{className:`z-50 size-2 translate-y-[calc(-50%-1px)] rotate-45 rounded-[1px] bg-tooltip fill-tooltip data-[side=bottom]:top-0.5 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-0.5 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-0.5 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-0.5 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-0.5 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2`})]})})})}export{f as i,p as n,u as r,d as t};