<script setup>
// eslint-disable-next-line
defineProps(["summary"]);
</script>

<template>
  <div v-if="summary" class="stats">
    <div class="item">
      <div class="measure">{{ summary.totalCount }}</div>
      <div class="label">Contacts Found</div>
    </div>

    <div class="item">
      <div class="measure">{{ summary.totalInboundCount }}</div>
      <div class="label">INBOUND Contacts Found</div>
    </div>

    <div class="item">
      <div class="measure">{{ summary.totalHTHours.toFixed(2) }}</div>
      <div class="label">Total Handle Time (hours)</div>
    </div>

    <div class="item">
      <div class="measure">{{ summary.activeHTMinutes.toFixed(2) }}</div>
      <div class="label">Active Handle Time (minutes)</div>
    </div>

    <div class="item">
      <div class="measure">
        {{ (summary.totalInboundActiveSeconds / 60).toFixed(2) }}
      </div>
      <div class="label">Total [INBOUND] Active Time (minutes)</div>
    </div>
  </div>
</template>
<style>
.stats {
  display: flex;
}

.item {
  width: 100%;
  border: 2px solid rgb(57, 145, 201);
  border-radius: 4px;
  background-color: #f7f9fc;
  font-weight: bold;
  white-space: normal;
  margin: 5px;
  padding: 5px;
  display: flex;
  align-items: center;
}

.measure {
  width: 100%;
  color: rgb(57, 145, 201);
  font-family: "DejaVu Sans", Ariel, Helvetica, sans-serif;
  text-align: center;
  font-size: 16px;
  padding: 5px;
}

.label {
  width: 100%;
  font-family: "DejaVu Sans", Ariel, Helvetica, sans-serif;
  font-size: 11px;
  text-align: center;
  padding: 5px;
}
</style>
