import{ap as c,ao as g,L as u,c8 as b}from"./app-k0jcl5PQ.js";const h="_disabled_14ujg_1",p="_disabledHighlighted_14ujg_4",m="_badgeMd_14ujg_7",_="_badgeLg_14ujg_11",a={disabled:h,disabledHighlighted:p,badgeMd:m,badgeLg:_},x="shared.audienceItem",f=u.encloseNamespace(x);function C(s){return s.split(" ").map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(" ")}function j(s,e){return s?e?`${a.disabledHighlighted} text-light`:"bg-gray-900 text-light":e?`${a.disabled} text-secondary`:"bg-light"}A.defaultProps={extraClasses:"",size:"md"};const L={md:a.badgeMd,lg:a.badgeLg};function A(s){const{audience:e,highlight:i,setAudience:n,isDisabled:t,extraClasses:d,size:l}=s,r=c(j(i,t),t?"cursor-default":"cursor-pointer",L[l],d,"lh-1 rounded-pill d-inline-block user-select-none"),o=()=>{t||!b.isFunction(n)||n(e,!i)};return g.jsx("button",{type:"button",className:r,onClick:o,role:"checkbox","aria-checked":i,"aria-label":`${f("ariaFilter")} ${e.name}`,disabled:t,children:C(e.name)})}export{A};
//# sourceMappingURL=BlBosctA.chunk.js.map
