import{g as W,r as E,aM as j,o as F,c as z,a as p,a4 as B,j as y,q as C,v as A,bY as D,aZ as S,bZ as M,b_ as H}from"./DgR3D_w1.js";const U=p("span",{class:"tw-absolute -tw-inset-1"},null,-1),X=["innerHTML"],at=W({__name:"Tooltip",props:{position:{type:String,default:"bottom-left"},value:String,width:{type:Number,default:174}},setup(u){const e=E(!1),n=E(null),r=u,a={"top-center":"tw-bottom-full tw-left-1/2 -tw-translate-x-1/2","top-right":"tw-left-full -tw-top-4","bottom-center":"tw-top-full tw-left-1/2 -tw-translate-x-1/2","bottom-left":"tw-top-full tw-left-[-24px]"},f={"top-center":"tw-top-full -tw-rotate-180 tw-left-1/2 -tw-translate-x-1/2 -tw-ml-2.5","top-right":"tw-right-full -tw-rotate-90 tw-left-[-13px] tw-top-[14px]","bottom-center":"tw-bottom-full tw-left-1/2 -tw-translate-x-1/2 -tw-ml-2.5","bottom-left":"tw-bottom-full"};return j(n,()=>e.value=!1),(i,o)=>(F(),z("div",{class:"tw-relative tw-group",style:A(`--width: ${r.width}px`),ref_key:"tooltip",ref:n},[p("div",{onClick:o[0]||(o[0]=l=>e.value=!y(e)),class:"tw-flex tw-cursor-pointer tw-relative"},[U,B(i.$slots,"default")]),p("div",{class:C(["group-hover:lg:tw-block lg:tw-hidden tw-z-10 tw-font-medium tw-text-body-sm tw-m-2.5 tw-w-[var(--width)] tw-rounded-[7px] tw-bg-white tw-pt-[9px] tw-pl-[17px] tw-pb-2.5 tw-pr-3 tw-absolute tw-ring-[2.5px] tw-ring-nl-green-100",a[r.position],y(e)?"max-lg:tw-block":"max-lg:tw-hidden"])},[p("span",{class:C(["tw-absolute tw-border-b-[8px] tw-border-x-[9px] tw-border-x-transparent tw-border-b-nl-green-100 before:tw-absolute before:tw-content-[''] before:tw-border-b-[5px] before:tw-border-x-[6px] before:tw-border-x-transparent before:tw-border-b-white before:tw-left-1/2 before:-tw-translate-x-1/2 before:tw-top-[3px]",f[r.position]])},null,2),p("span",{innerHTML:r.value,className:"[&_a]:tw-underline [&_a]:tw-font-semibold [&_a:hover]:tw-no-underline"},null,8,X)],2)],4))}});var Z=D,q=function(){return Z.Date.now()},P=q,V=M,x=P,$=H,Y="Expected a function",G=Math.max,J=Math.min;function K(u,e,n){var r,a,f,i,o,l,d=0,h=!1,w=!1,m=!0;if(typeof u!="function")throw new TypeError(Y);e=$(e)||0,V(n)&&(h=!!n.leading,w="maxWait"in n,f=w?G($(n.maxWait)||0,e):f,m="trailing"in n?!!n.trailing:m);function g(t){var s=r,c=a;return r=a=void 0,d=t,i=u.apply(c,s),i}function O(t){return d=t,o=setTimeout(b,e),h?g(t):i}function I(t){var s=t-l,c=t-d,k=e-s;return w?J(k,f-c):k}function _(t){var s=t-l,c=t-d;return l===void 0||s>=e||s<0||w&&c>=f}function b(){var t=x();if(_(t))return T(t);o=setTimeout(b,I(t))}function T(t){return o=void 0,m&&r?g(t):(r=a=void 0,i)}function L(){o!==void 0&&clearTimeout(o),d=0,r=l=a=o=void 0}function R(){return o===void 0?i:T(x())}function v(){var t=x(),s=_(t);if(r=arguments,a=this,l=t,s){if(o===void 0)return O(l);if(w)return clearTimeout(o),o=setTimeout(b,e),g(l)}return o===void 0&&(o=setTimeout(b,e)),i}return v.cancel=L,v.flush=R,v}var N=K;const it=S(N);var Q=N,tt=M,et="Expected a function";function nt(u,e,n){var r=!0,a=!0;if(typeof u!="function")throw new TypeError(et);return tt(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Q(u,e,{leading:r,maxWait:e,trailing:a})}var rt=nt;const lt=S(rt);export{at as _,it as d,lt as t};