(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 + ''; } if (registerUrl) { html = html + ''; } container.append(Element.fromHTML('
' + html + '
')); } } }); } } })(window.rl);