import tplSwitchForm from './switch_form.js'; import { __ } from 'i18n'; import { api } from '@converse/headless/core'; import { html } from 'lit'; export default (el) => { const i18n_choose_provider = __('Choose a different provider'); const i18n_legend = __('Account Registration:'); const i18n_register = __('Register'); const registration_domain = api.settings.get('registration_domain'); return html`
el.onFormSubmission(ev)}> ${i18n_legend} ${el.domain}

${el.title}

${el.instructions}

${el.form_fields}
${el.fields ? html` ` : ''} ${registration_domain ? '' : html` el.renderProviderChoiceForm(ev)} /> `} ${ tplSwitchForm() }
`; };