(rl => { if (rl) { const forgotUrl = rl.settings.get('forgotPasswordLinkUrl'), registerUrl = rl.settings.get('registrationLinkUrl'); if (forgotUrl || registerUrl) { addEventListener('rl-view-model', e => { if (e.detail && 'Login' === e.detail.viewModelTemplateID) { const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'), forgot = 'LOGIN/LABEL_FORGOT_PASSWORD', register = 'LOGIN/LABEL_REGISTRATION'; if (container) { let html = ''; if (forgotUrl) { html = html + '
' + ''+rl.i18n(forgot)+'' + '
'; } if (registerUrl) { html = html + '' + ''+rl.i18n(register)+'' + '
'; } container.append(Element.fromHTML('