{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
{{! ACME clients added in 1.17 }}
{{#if (not this.byMonthActivityData)}}
{{! byMonthActivityData is an empty array if there is no monthly data (monthly breakdown was added in 1.11)
this means the user has queried dates before ACME clients existed. we render an empty state instead of
"0 acme clients" (which is what the activity response returns) to be more explicit }}
{{else if this.isDateRange}}
<:subTitle>
<:chart>
{{#if this.totalUsageCounts.acme_clients}}
{{! no need to render two empty charts! hide this one if there are no acme clients }}
<:stats>
{{#let (this.average this.byMonthNewClients "acme_clients") as |avg|}}
{{#if avg}}
{{/if}}
{{/let}}
<:chart>
{{/if}}
{{else}}
{{/if}}