import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{J as t,W as n}from"./lit-runtime-BEtFSUCp.js";function r(e){if(e.mode===`discrete`&&e.total<=12)return t`<span
      class="capacity-meter-pips session-context-meter--${e.tone}"
      role="img"
      aria-label=${e.label}
    >
      ${Array.from({length:e.total},(n,r)=>t`
          <span
            class="capacity-meter-pips__pip ${e.used!==null&&r<e.used?`capacity-meter-pips__pip--filled`:``}"
          ></span>
        `)}
    </span>`;let n=e.mode===`continuous`?e.percent:e.used===null?0:e.used/e.total*100;return t`<span
    class="session-context-meter session-context-meter--${e.tone}"
    role="img"
    aria-label=${e.label}
  >
    <span class="session-context-meter__fill" style=${`width: ${n}%`}></span>
  </span>`}function i(){return(i=e((()=>{n()})))()}export{r as n,i as t};
//# sourceMappingURL=capacity-meter-CmKC-EhZ.js.map