import{r as i,h as t,H as e}from"./p-52e3bb32.js";import{B as o}from"./p-717306ef.js";const a=class{constructor(t){i(this,t),this.afShape=o.PILL,this.afAriaLabel=void 0,this.afValue=""}afValueChangeHandler(){this.checkProps()}get cssModifiers(){return{"digi-badge-notification--circle":this.afShape===o.CIRCLE,"digi-badge-notification--oval":this.afShape===o.OVAL,"digi-badge-notification--pill":this.afShape===o.PILL}}componentWillLoad(){this.checkProps()}checkProps(){let i;null!=this.afValue&&""!==this.afValue&&(i=Number(this.afValue)),isNaN(i)?this.afShape=o.PILL:i>=100?(this.afValue="+99",this.afShape=o.PILL):this.afShape=i<100&&i>=10?o.OVAL:o.CIRCLE}render(){return t(e,{key:"2a3f82fe0bf3d3b43ee858a0184fb7d0045656f7"},t("div",{key:"f652cc5b76bdc72b4778fd16a1a9d270fe2400ea",class:Object.assign({"digi-badge-notification":!0},this.cssModifiers),"aria-label":this.afAriaLabel},t("div",{key:"ece907bc0004e24eafd221ead41300f7acd803ea",class:`${this.afShape}`},t("span",{key:"c83210ebbbcad768073095e52b601adc80a0645d"},this.afValue))))}static get watchers(){return{afValue:["afValueChangeHandler"]}}};a.style=".sc-digi-badge-notification-h{--digi--badge-notification--color--text:var(--digi--color--text--secondary);--digi--badge-notification--color--border:var(--digi--color--border--notification);--digi--badge-notification--background-color:var(--digi--color--background--notification);--digi--badge-notification--font-weight:var(--digi--global--typography--font-weight--semibold)}.sc-digi-badge-notification-h .digi-badge-notification.sc-digi-badge-notification{font-size:0.75rem;font-weight:var(--digi--badge-notification--font-weight);border-width:var(--digi--border-width--secondary);border-style:solid;color:var(--digi--badge-notification--color--text);background-color:var(--digi--badge-notification--background-color);border-color:var(--BORDER-COLOR)}.sc-digi-badge-notification-h .digi-badge-notification--circle.sc-digi-badge-notification{--BORDER-COLOR:var(--digi--badge-notification--color--border);display:flex;justify-content:center;align-items:center;white-space:nowrap;text-align:center;border-radius:50%;height:1.25rem;width:1.25rem}.sc-digi-badge-notification-h .digi-badge-notification--oval.sc-digi-badge-notification{--BORDER-COLOR:var(--digi--badge-notification--color--border);display:flex;justify-content:center;align-items:center;white-space:nowrap;text-align:center;border-radius:0.75rem;height:1.125rem;width:1.5625rem;padding-left:0.25rem;padding-right:0.25rem}.sc-digi-badge-notification-h .digi-badge-notification--pill.sc-digi-badge-notification{--BORDER-COLOR:var(--digi--badge-notification--color--border);display:inline-block;padding-left:0.5rem;padding-right:0.5rem;border-radius:0.75rem;height:1.125rem}";export{a as digi_badge_notification}