import Bind from "@web-atoms/core/dist/core/Bind.js"; import XNode from "@web-atoms/core/dist/core/XNode.js"; import Form from "@web-atoms/web-controls/dist/basic/Form.js"; import FormField from "@web-atoms/web-controls/dist/basic/FormField.js"; import { CountrySelect, formatForCountry, isdForCountry } from "../../../controls/countries/CountrySelect.js"; import MaskedInput from "@web-atoms/web-controls/dist/basic/MaskedInput.js"; import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder.js"; import Action from "@web-atoms/core/dist/view-model/Action.js"; import Pack from "@web-atoms/core/dist/Pack.js"; import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp.js"; import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator.js"; import TermsPage from "../../terms/TermsPage.js"; import "./SignupPage.local.css"; const css = "social-mail-site-sign-up-page"; interface IVerification { id?: string; code?: string; verified?: string; } @Pack export default class SignupPage extends ContentPage { termsAgreed = false; model: { username: string; password: string; passwordAgain: string; phoneNumber: string; country: string; phoneNumberText: string; name: string; captcha: IVerification; phone: IVerification; } = { name: "", username: "", password: "", passwordAgain: "", phoneNumber: "", country: "US", phoneNumberText: "", captcha: { code: "" }, phone: { code: "" } } async init() { this.hideToolbar = true; this.element.className = css; this.title = "Social Mail Signup"; const { id } = await FetchBuilder.put("/api/users/captcha").asJson<{ id }>(); this.model.captcha.id = id; this.renderer =
We have send text verification code on your phone number, please enter the code below to verify.