<templates>
  <t t-name="o-spreadsheet-BottomBarStatistic">
    <t t-set="selectedStatistic" t-value="this.getSelectedStatistic()"/>
    <div class="ms-auto d-flex o-bottom-bar-statistic">
      <Ripple t-if="selectedStatistic !== undefined">
        <div
          class="o-selection-statistic text-truncate user-select-none me-4 bg-white rounded shadow d-flex align-items-center"
          t-on-click="this.listSelectionStatistics">
          <t t-out="selectedStatistic"/>
          <span class="ms-2">
            <t t-call="o-spreadsheet-Icon.CARET_DOWN"/>
          </span>
        </div>
      </Ripple>
      <span
        class="o-data-analysis-button me-4 rounded"
        t-att-class="{ 'active': this.isDataAnalysisOpen }"
        t-on-click="this.toggleDataAnalysisPanel">
        <t t-call="o-spreadsheet-Icon.COLUMN_STATS"/>
      </span>
    </div>
  </t>
</templates>
