<template>
  <Page :extra-filters="extraFilters" :extra-fields="extraFields" />
</template>

<script setup>
import Page from '@inside-events/components/pages/CalendarPage'

import { i18n } from '@inside-library/helpers/global-methods/langs'

const tr = i18n('events.CALENDAR')

const extraFields = ['total_views', 'unique_views']
const extraFilters = [
  {
    modelName: 'entities',
    type: 'selectbox',
    fetch: true,
    label: tr('filters.entities'),
    reference: 'entities',
    fields: ['uuid', 'title'],
    filters: { 'status:eq': 1, sort: 'title:asc' },
    objectValueKey: 'uuid',
    objectLabelKey: 'title'
  }
]
</script>
