import{Q as g,S as r,ja as d,la as w,oa as x}from"./chunk-R2UR7BVM.js";import{j as C}from"./chunk-HKLJ6VPZ.js";import{Jc as z,Mc as $,S as l,T as o,Y as b,ac as m,bc as v,gb as c,ha as n,hb as h,kb as u,kc as S,ra as s,ub as p,wb as f,xb as y}from"./chunk-56X5LYJH.js";var E=({dt:e})=>`
.p-badge {
    display: inline-flex;
    border-radius: ${e("badge.border.radius")};
    justify-content: center;
    padding: ${e("badge.padding")};
    background: ${e("badge.primary.background")};
    color: ${e("badge.primary.color")};
    font-size: ${e("badge.font.size")};
    font-weight: ${e("badge.font.weight")};
    min-width: ${e("badge.min.width")};
    height: ${e("badge.height")};
    line-height: ${e("badge.height")};
}

.p-badge-dot {
    width: ${e("badge.dot.size")};
    min-width: ${e("badge.dot.size")};
    height: ${e("badge.dot.size")};
    border-radius: 50%;
    padding: 0;
}

.p-badge-circle {
    padding: 0;
    border-radius: 50%;
}

.p-badge-secondary {
    background: ${e("badge.secondary.background")};
    color: ${e("badge.secondary.color")};
}

.p-badge-success {
    background: ${e("badge.success.background")};
    color: ${e("badge.success.color")};
}

.p-badge-info {
    background: ${e("badge.info.background")};
    color: ${e("badge.info.color")};
}

.p-badge-warn {
    background: ${e("badge.warn.background")};
    color: ${e("badge.warn.color")};
}

.p-badge-danger {
    background: ${e("badge.danger.background")};
    color: ${e("badge.danger.color")};
}

.p-badge-contrast {
    background: ${e("badge.contrast.background")};
    color: ${e("badge.contrast.color")};
}

.p-badge-sm {
    font-size: ${e("badge.sm.font.size")};
    min-width: ${e("badge.sm.min.width")};
    height: ${e("badge.sm.height")};
    line-height: ${e("badge.sm.height")};
}

.p-badge-lg {
    font-size: ${e("badge.lg.font.size")};
    min-width: ${e("badge.lg.min.width")};
    height: ${e("badge.lg.height")};
    line-height: ${e("badge.lg.height")};
}

.p-badge-xl {
    font-size: ${e("badge.xl.font.size")};
    min-width: ${e("badge.xl.min.width")};
    height: ${e("badge.xl.height")};
    line-height: ${e("badge.xl.height")};
}

/* For PrimeNG (directive)*/

.p-overlay-badge {
    position: relative;
}

.p-overlay-badge > .p-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    transform: translate(50%, -50%);
    transform-origin: 100% 0;
    margin: 0;
}
`,k={root:({props:e,instance:B})=>["p-badge p-component",{"p-badge-circle":r(e.value)&&String(e.value).length===1,"p-badge-dot":g(e.value)&&!B.$slots.default,"p-badge-sm":e.size==="small","p-badge-lg":e.size==="large","p-badge-xl":e.size==="xlarge","p-badge-info":e.severity==="info","p-badge-success":e.severity==="success","p-badge-warn":e.severity==="warn","p-badge-danger":e.severity==="danger","p-badge-secondary":e.severity==="secondary","p-badge-contrast":e.severity==="contrast"}]},D=(()=>{class e extends w{name="badge";theme=E;classes=k;static \u0275fac=(()=>{let i;return function(t){return(i||(i=n(e)))(t||e)}})();static \u0275prov=l({token:e,factory:e.\u0275fac})}return e})();var M=(()=>{class e extends x{styleClass=s();style=s();badgeSize=s();size=s();severity=s();value=s();badgeDisabled=s(!1,{transform:z});_componentStyle=b(D);containerClass=$(()=>{let i="p-badge p-component";return r(this.value())&&String(this.value()).length===1&&(i+=" p-badge-circle"),this.badgeSize()==="large"?i+=" p-badge-lg":this.badgeSize()==="xlarge"?i+=" p-badge-xl":this.badgeSize()==="small"&&(i+=" p-badge-sm"),g(this.value())&&(i+=" p-badge-dot"),this.styleClass()&&(i+=` ${this.styleClass()}`),this.severity()&&(i+=` p-badge-${this.severity()}`),i});static \u0275fac=(()=>{let i;return function(t){return(i||(i=n(e)))(t||e)}})();static \u0275cmp=c({type:e,selectors:[["p-badge"]],hostVars:6,hostBindings:function(a,t){a&2&&(f(t.style()),y(t.containerClass()),p("display",t.badgeDisabled()?"none":null))},inputs:{styleClass:[1,"styleClass"],style:[1,"style"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[S([D]),u],decls:1,vars:1,template:function(a,t){a&1&&m(0),a&2&&v(t.value())},dependencies:[C,d],encapsulation:2,changeDetection:0})}return e})(),X=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=h({type:e});static \u0275inj=o({imports:[M,d,d]})}return e})();export{M as a,X as b};
