2019-08-21 08:37:49 +00:00
|
|
|
/**
|
|
|
|
* DO NOT EDIT THIS FILE.
|
|
|
|
* See the following change record for more information,
|
|
|
|
* https://www.drupal.org/node/2815083
|
|
|
|
* @preserve
|
|
|
|
**/
|
|
|
|
|
2021-12-18 06:12:16 +00:00
|
|
|
(Drupal => {
|
|
|
|
Drupal.theme.passwordConfirmMessage = ({
|
|
|
|
confirmTitle
|
|
|
|
}) => {
|
|
|
|
const confirmTextWrapper = '<span data-drupal-selector="password-match-status-text"></span>';
|
|
|
|
return `<div aria-live="polite" aria-atomic="true" class="password-confirm-message" data-drupal-selector="password-confirm-message">${confirmTitle} ${confirmTextWrapper}</div>`;
|
2020-09-29 23:44:28 +00:00
|
|
|
};
|
|
|
|
|
2021-12-18 06:12:16 +00:00
|
|
|
Drupal.theme.passwordStrength = ({
|
|
|
|
strengthTitle
|
|
|
|
}) => {
|
|
|
|
const strengthIndicator = '<div class="password-strength__indicator" data-drupal-selector="password-strength-indicator"></div>';
|
|
|
|
const strengthText = '<span class="password-strength__text" data-drupal-selector="password-strength-text"></span>';
|
|
|
|
return `
|
|
|
|
<div class="password-strength">
|
|
|
|
<div class="password-strength__meter" data-drupal-selector="password-strength-meter">${strengthIndicator}</div>
|
|
|
|
<div aria-live="polite" aria-atomic="true" class="password-strength__title">${strengthTitle} ${strengthText}</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2020-09-29 23:44:28 +00:00
|
|
|
};
|
|
|
|
|
2021-12-18 06:12:16 +00:00
|
|
|
Drupal.theme.passwordSuggestions = ({
|
|
|
|
hasWeaknesses
|
|
|
|
}, tips) => `<div class="password-suggestions">${tips.length ? `${hasWeaknesses}<ul><li>${tips.join('</li><li>')}</li></ul>` : ''}</div>`;
|
2019-08-21 08:37:49 +00:00
|
|
|
})(Drupal);
|