import { defineComponent, ref, watch, reactive, useSSRContext } from 'file://D:/doc/workspace/web3/node_modules/vue/index.mjs'; import { ssrRenderTeleport, ssrRenderClass, ssrRenderStyle, ssrInterpolate, ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrRenderAttr, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual } from 'file://D:/doc/workspace/web3/node_modules/vue/server-renderer/index.mjs'; import { useI18n } from 'file://D:/doc/workspace/web3/node_modules/vue-i18n/dist/vue-i18n.mjs'; import { _ as _sfc_main$2 } from './HeroBanner.vue2.mjs'; const _sfc_main$1 = /* @__PURE__ */ defineComponent({ __name: "NotificationToast", __ssrInlineRender: true, props: { message: { default: "" }, type: { default: "success" }, duration: { default: 3e3 } }, emits: ["close"], setup(__props, { emit: __emit }) { const props = __props; const show = ref(false); const emit = __emit; watch(() => props.message, (newVal) => { if (newVal) { show.value = true; setTimeout(() => { show.value = false; setTimeout(() => { emit("close"); }, 300); }, props.duration); } }, { immediate: true }); return (_ctx, _push, _parent, _attrs) => { ssrRenderTeleport(_push, (_push2) => { if (_ctx.message) { _push2(`
${ssrInterpolate(_ctx.message)}
`); } else { _push2(``); } }, "body", false, _parent); }; } }); 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$2; const _component_NotificationToast = _sfc_main$1; _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(``); }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/contact.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=contact.vue.mjs.map