import { defineComponent, mergeProps, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrInterpolate } from 'vue/server-renderer';
import { u as useToast } from './useToast-MBvLaNjH.mjs';
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "AccountCredentialDialog",
__ssrInlineRender: true,
props: {
info: {}
},
emits: ["close"],
setup(__props) {
useToast();
return (_ctx, _push, _parent, _attrs) => {
if (__props.info) {
_push(`
${ssrInterpolate(__props.info.title)}
初始密码仅在此显示一次,关闭后无法再查看(如需重设请到「后台账号」改密)。
登录用户名${ssrInterpolate(__props.info.username)}
初始密码${ssrInterpolate(__props.info.password)}
`);
if (__props.info.mailTo) {
_push(`
✓ 凭据已邮件发送至 ${ssrInterpolate(__props.info.mailTo)}
`);
} else {
_push(`
⚠ 凭据未能邮件送达${ssrInterpolate(__props.info.mailError ? ":" + __props.info.mailError : "")},请手工转达上面的用户名和密码。
`);
}
_push(`
`);
} else {
_push(``);
}
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/AccountCredentialDialog.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const __nuxt_component_0 = Object.assign(_sfc_main, { __name: "AccountCredentialDialog" });
export { __nuxt_component_0 as _ };
//# sourceMappingURL=AccountCredentialDialog-D37zgaXm.mjs.map