2020-06-01 20:08:07 -04:00
|
|
|
import PersistentUserCallout from './persistent_user_callout';
|
|
|
|
|
|
|
|
const PERSISTENT_USER_CALLOUTS = [
|
|
|
|
'.js-recovery-settings-callout',
|
|
|
|
'.js-users-over-license-callout',
|
|
|
|
'.js-admin-licensed-user-count-threshold',
|
2020-06-26 08:08:51 -04:00
|
|
|
'.js-buy-pipeline-minutes-notification-callout',
|
2020-07-06 23:09:32 -04:00
|
|
|
'.js-token-expiry-callout',
|
2020-11-16 04:09:18 -05:00
|
|
|
'.js-registration-enabled-callout',
|
2020-11-19 10:09:13 -05:00
|
|
|
'.js-new-user-signups-cap-reached',
|
2021-03-22 23:09:04 -04:00
|
|
|
'.js-eoa-bronze-plan-banner',
|
2021-09-30 14:11:31 -04:00
|
|
|
'.js-security-newsletter-callout',
|
2020-06-01 20:08:07 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
const initCallouts = () => {
|
2020-12-23 19:10:25 -05:00
|
|
|
PERSISTENT_USER_CALLOUTS.forEach((calloutContainer) =>
|
2020-06-01 20:08:07 -04:00
|
|
|
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default initCallouts;
|