import{a as e,l as t}from"./preact.module-CNakwbc9.js";import{d as n,t as r}from"./hooks.module-BrXTvcfS.js";import{R as i}from"./content_renderer-DOj8g78V.js";import{t as a}from"./jsxRuntime.module-Cao1NCKs.js";import{U as o}from"./hooks-ClTXKdUl.js";import{t as s}from"./Dropdown-BUar6udP.js";import{t as c}from"./Icon-BEnt7704.js";n(),t();function l({title:e,className:t}){return a(`span`,{class:`badge ${t??``}`,children:e})}function u({icon:t,className:n,text:s,tooltip:l,href:u,outline:d,...f}){let p=r(null);o(p,{placement:`bottom`,fallbackPlacements:[`bottom`],animation:!1,html:!0,title:l,customClass:`pre-wrap-text`});let m=a(e,{children:[t&&a(c,{icon:t}),a(`span`,{class:`text`,children:s})]});return a(`div`,{ref:p,className:i(`ext-badge`,n,{clickable:!!f.onClick,outline:d}),...f,children:u?a(`a`,{href:u,children:m}):a(`span`,{children:m})})}function d({text:t,children:n,tooltip:r,className:i,dropdownOptions:o,...l}){return a(s,{className:`dropdown-badge dropdown-${i}`,text:a(u,{text:a(e,{children:[a(`span`,{class:`text-inner`,children:t}),a(c,{className:`arrow`,icon:`bx bx-chevron-down`})]}),className:i,...l}),noDropdownListStyle:!0,noSelectButtonStyle:!0,hideToggleArrow:!0,title:r,titlePosition:`bottom`,...o,dropdownOptions:{...o?.dropdownOptions,popperConfig:{...o?.dropdownOptions?.popperConfig,placement:`bottom`,strategy:`fixed`}},children:n})}export{d as n,l as r,u as t};