<script setup>
import { defineAsyncComponent } from "vue";

const size375 = defineAsyncComponent(() =>
  import("@/views/events-calendar/index.vue")
);
const size768 = defineAsyncComponent(() =>
  import("@/views/events-calendar/index.vue")
);
const size1440 = defineAsyncComponent(() =>
  import("@/views/events-calendar/index.vue")
);
const size1920 = defineAsyncComponent(() =>
  import("@/views/events-calendar/index.vue")
);

const { viewComponent, componentKey } = useViewSelector({
  size375,
  size768,
  size1440,
  size1920,
});

const bg = usePageBackground("bg-events-calendar.png");

definePageMeta({
  layout: "default",
});

useSeoMeta({
  title: "Events Calendar | Investor Events | FiEE",
  description:
    "View upcoming FiEE investor events, earnings calls, and corporate presentations.",
  ogTitle: "FiEE Events Calendar",
});

// Provide background to layout
provide('pageBg', bg);
</script>

<template>
  <component :is="viewComponent" :key="componentKey" />
</template>
