<script setup>
import { defineAsyncComponent } from 'vue'

const size375 = defineAsyncComponent(() => import("@/views/financialinformation/quarterlyreports/index.vue"));
const size1920 = defineAsyncComponent(() => import("@/views/financialinformation/quarterlyreports/index.vue"));

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

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

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

// 国际化支持
const { locale } = useI18n();

const seoTitles = {
  zh: "季度报告 | 财务业绩 | FiEE",
  en: "Quarterly Reports | Financial Results | FiEE",
  ja: "四半期報告書 | 財務業績 | FiEE",
  "zh-TW": "季度報告 | 財務業績 | FiEE",
};

const seoDescriptions = {
  zh: "查看FiEE的季度收益、财务报表和业绩亮点。",
  en: "Review FiEE's quarterly earnings, financial statements, and performance highlights.",
  ja: "FiEEの四半期収益、財務諸表、業績ハイライトをご覧ください。",
  "zh-TW": "查看FiEE的季度收益、財務報表和業績亮點。",
};

const currentLocale = locale.value;

useSeoMeta({
  title: seoTitles[currentLocale] || seoTitles.en,
  description: seoDescriptions[currentLocale] || seoDescriptions.en,
  ogTitle: seoTitles[currentLocale] || seoTitles.en,
});

provide('pageBg', bg);
</script>

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