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