import "../components/HeroBanner.vue.mjs"; import "../components/NotificationToast.vue.mjs"; import { defineComponent, reactive, ref } from "vue"; import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrRenderAttr, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual } from "vue/server-renderer"; import { useI18n } from "vue-i18n"; import _sfc_main$1 from "../components/HeroBanner.vue2.mjs"; import _sfc_main$2 from "../components/NotificationToast.vue2.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "contact", __ssrInlineRender: true, setup(__props) { const { t } = useI18n(); const contactMethods = [ { icon: "fas fa-phone", titleKey: "contact.methods.phone.title", subtitleKey: "contact.methods.phone.subtitle", contentKey: "contact.methods.phone.content", type: "phone" }, { icon: "fas fa-envelope", titleKey: "contact.methods.email.title", subtitleKey: "contact.methods.email.subtitle", contentKey: "contact.methods.email.content", type: "email" }, { icon: "fab fa-weixin", titleKey: "contact.methods.wechat.title", subtitleKey: "contact.methods.wechat.subtitle", contentKey: "", type: "wechat" } ]; const companyInfo = [ { icon: "fas fa-map-marker-alt", titleKey: "contact.companyInfo.beijing.title", contentKey: "contact.companyInfo.beijing.content" }, { icon: "fas fa-subway", titleKey: "contact.companyInfo.transport.title", contentKey: "contact.companyInfo.transport.content" }, { icon: "far fa-clock", titleKey: "contact.companyInfo.hours.title", contentKey: "contact.companyInfo.hours.content" } ]; const services = [ { value: "cloud", labelKey: "contact.form.serviceOptions.cloud" }, { value: "migration", labelKey: "contact.form.serviceOptions.migration" }, { value: "solution", labelKey: "contact.form.serviceOptions.solution" }, { value: "price", labelKey: "contact.form.serviceOptions.price" }, { value: "other", labelKey: "contact.form.serviceOptions.other" } ]; const faqs = [ { questionKey: "contact.faq.items.q1.question", answerKey: "contact.faq.items.q1.answer" }, { questionKey: "contact.faq.items.q2.question", answerKey: "contact.faq.items.q2.answer" }, { questionKey: "contact.faq.items.q3.question", answerKey: "contact.faq.items.q3.answer" }, { questionKey: "contact.faq.items.q4.question", answerKey: "contact.faq.items.q4.answer" } ]; const form = reactive({ name: "", company: "", email: "", phone: "", service: "", message: "" }); const submitting = ref(false); const notification = reactive({ message: "", type: "success" }); return (_ctx, _push, _parent, _attrs) => { const _component_HeroBanner = _sfc_main$1; const _component_NotificationToast = _sfc_main$2; _push(``); _push(ssrRenderComponent(_component_HeroBanner, { title: _ctx.$t("contact.hero.title"), subtitle: _ctx.$t("contact.hero.subtitle") }, null, _parent)); _push(`
`); ssrRenderList(contactMethods, (contact, index) => { _push(`

${ssrInterpolate(_ctx.$t(contact.titleKey))}

${ssrInterpolate(_ctx.$t(contact.subtitleKey))}

${ssrInterpolate(_ctx.$t(contact.contentKey))}

`); if (contact.type === "wechat") { _push(`
`); } else { _push(``); } _push(`
`); }); _push(`

${ssrInterpolate(_ctx.$t("contact.form.title"))}

${ssrInterpolate(_ctx.$t("contact.companyInfo.title"))}

`); ssrRenderList(companyInfo, (info, index) => { _push(`

${ssrInterpolate(_ctx.$t(info.titleKey))}

${ssrInterpolate(_ctx.$t(info.contentKey))}

`); }); _push(`
地图加载位置

${ssrInterpolate(_ctx.$t("contact.faq.title"))}

${ssrInterpolate(_ctx.$t("contact.faq.subtitle"))}

`); ssrRenderList(faqs, (faq, index) => { _push(`

${ssrInterpolate(_ctx.$t(faq.questionKey))}

${ssrInterpolate(_ctx.$t(faq.answerKey))}

`); }); _push(`
`); _push(ssrRenderComponent(_component_NotificationToast, { message: notification.message, type: notification.type, onClose: ($event) => notification.message = "" }, null, _parent)); _push(``); }; } }); export { _sfc_main as default }; //# sourceMappingURL=contact.vue2.mjs.map