{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

{{#if (or @config.reporting_enabled (eq @config.enabled "default-enabled") (eq @config.enabled "enable"))}}
  <Hds::ApplicationState @align="center" class="top-padding-32" as |A|>
    <A.Header data-test-empty-state-title @title="No data received" @titleTag="h2" />
    <A.Body
      data-test-empty-state-message
      @text="Tracking is turned on and Vault is gathering data. It should appear here within 30 minutes."
    />
  </Hds::ApplicationState>
{{else if @config}}
  <Hds::ApplicationState @align="center" class="top-padding-32" as |A|>
    <A.Header data-test-empty-state-title @title="Data tracking is disabled" @titleTag="h2" />
    <A.Body
      data-test-empty-state-message
      @text="Tracking is disabled, and no data is being collected. To turn it on, edit the configuration."
    />
    {{#if @canUpdate}}
      <A.Footer as |F|>
        <F.LinkStandalone
          @icon="chevron-right"
          @iconPosition="trailing"
          @text="Go to configuration"
          @route="vault.cluster.clients.config"
          data-test-link-to="config"
        />
      </A.Footer>
    {{/if}}
  </Hds::ApplicationState>
{{else}}
  <Hds::ApplicationState @align="center" class="top-padding-32" as |A|>
    <A.Header data-test-empty-state-title @title="Activity configuration data is unavailable" @titleTag="h2" />
    <A.Body
      data-test-empty-state-message
      @text="Reporting status is unknown and could be enabled or disabled. Check the Vault logs for more information."
    />
  </Hds::ApplicationState>
{{/if}}