"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
const _hoisted_1 = { class: "welcome-page" };
const _hoisted_2 = { class: "welcome-content" };
const _hoisted_3 = { class: "greeting-section" };
const _hoisted_4 = { class: "greeting" };
const _hoisted_5 = { class: "date" };
const _sfc_main = {
  __name: "WelcomeView",
  setup(__props) {
    const userName = vue.ref("用户");
    const greeting = vue.computed(() => {
      const hour = (/* @__PURE__ */ new Date()).getHours();
      if (hour < 12) return "上午好";
      if (hour < 18) return "下午好";
      return "晚上好";
    });
    const currentDate = vue.computed(() => {
      const now = /* @__PURE__ */ new Date();
      const weekDays = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
      return `${now.getFullYear()}年${now.getMonth() + 1}月${now.getDate()}日 ${weekDays[now.getDay()]}`;
    });
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
        _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "bg-decoration" }, [
          vue.createElementVNode("div", { class: "circle circle-1" }),
          vue.createElementVNode("div", { class: "circle circle-2" })
        ], -1)),
        vue.createElementVNode("div", _hoisted_2, [
          vue.createElementVNode("div", _hoisted_3, [
            vue.createElementVNode("h1", _hoisted_4, vue.toDisplayString(greeting.value) + ", " + vue.toDisplayString(userName.value), 1),
            vue.createElementVNode("p", _hoisted_5, vue.toDisplayString(currentDate.value), 1)
          ])
        ])
      ]);
    };
  }
};
const WelcomeView = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d5cd7883"]]);
exports.default = WelcomeView;
