{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 ~}} {{#if this.flags.secretsSyncIsActivated}} {{#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 sync clients existed. we render an empty state instead of "0 sync clients" (which is what the activity response returns) to be more explicit }} {{else if this.isDateRange}} <:subTitle> <:chart> {{! no need to render two empty charts! hide this one if there is no sync data }} {{#if this.totalUsageCounts.secret_syncs}} <:stats> {{#let (this.average this.byMonthNewClients "secret_syncs") as |avg|}} {{#if avg}} {{/if}} {{/let}} <:chart> {{/if}} {{else}} {{/if}} {{else}} {{/if}}