UNPKG

@kelvininc/ui-components

Version:
1 lines 511 B
import{D as r}from"./p-nGbDFIaH.js";import{i as n}from"./p-DjSNdVAB.js";const o=()=>{if("undefined"!=typeof window){const r=window.KvUiComponents;if(!n(r)&&!n(r.config))return r.config}return r},t=r=>{var n;if(0===r.length)return;const[o,...i]=r;return e(o)?o:null!==(n=t(Array.from(o.childNodes)))&&void 0!==n?n:t(i)},e=r=>!i(r)&&!s(r)&&"ellipsis"===a(r,"text-overflow"),i=r=>"#text"===r.nodeName,s=r=>"#comment"===r.nodeName,a=(r,n)=>window.getComputedStyle(r,null).getPropertyValue(n);export{a,t as b,o as g}