2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2023-04-08 00:01:42 +00:00
|
|
|
<XModalWindow
|
|
|
|
ref="dialog"
|
|
|
|
:width="400"
|
|
|
|
@close="dialog!.close()"
|
|
|
|
@closed="$emit('closed')"
|
|
|
|
>
|
|
|
|
<template #header>{{ i18n.ts.signup }}</template>
|
2020-10-17 11:12:00 +00:00
|
|
|
|
2023-04-08 00:01:42 +00:00
|
|
|
<div class="_monolithic_">
|
|
|
|
<div class="_section">
|
|
|
|
<XSignup
|
|
|
|
:auto-set="autoSet"
|
|
|
|
@signup="onSignup"
|
|
|
|
@signup-email-pending="onSignupEmailPending"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-04-13 03:43:19 +00:00
|
|
|
</div>
|
2023-04-08 00:01:42 +00:00
|
|
|
</XModalWindow>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-15 21:59:35 +00:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 00:01:42 +00:00
|
|
|
import {} from "vue";
|
|
|
|
import XSignup from "@/components/MkSignup.vue";
|
|
|
|
import XModalWindow from "@/components/MkModalWindow.vue";
|
|
|
|
import { i18n } from "@/i18n";
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2023-04-08 00:01:42 +00:00
|
|
|
const props = withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
autoSet?: boolean;
|
|
|
|
}>(),
|
|
|
|
{
|
|
|
|
autoSet: false,
|
|
|
|
}
|
|
|
|
);
|
2020-02-14 16:33:09 +00:00
|
|
|
|
2022-01-15 21:59:35 +00:00
|
|
|
const emit = defineEmits<{
|
2023-04-08 00:01:42 +00:00
|
|
|
(ev: "done"): void;
|
|
|
|
(ev: "closed"): void;
|
2022-01-15 21:59:35 +00:00
|
|
|
}>();
|
2020-02-14 16:33:09 +00:00
|
|
|
|
2022-01-15 21:59:35 +00:00
|
|
|
const dialog = $ref<InstanceType<typeof XModalWindow>>();
|
2020-10-17 11:12:00 +00:00
|
|
|
|
2022-01-15 21:59:35 +00:00
|
|
|
function onSignup(res) {
|
2023-04-08 00:01:42 +00:00
|
|
|
emit("done", res);
|
2022-12-06 06:14:26 +00:00
|
|
|
dialog?.close();
|
2022-01-15 21:59:35 +00:00
|
|
|
}
|
2021-10-08 04:37:02 +00:00
|
|
|
|
2022-01-15 21:59:35 +00:00
|
|
|
function onSignupEmailPending() {
|
2022-12-06 06:14:26 +00:00
|
|
|
dialog?.close();
|
2022-01-15 21:59:35 +00:00
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|