/**
 * In an effort to support the OSS community, we provide dynamically loaded components that allow us to
 * globally register components with different implementation based on the presence/absence of a custom component.
 */ import Vue from 'vue' ; const DEFAULT = 'base' ; const CUSTOM = 'nflx' ; /**
 * The list of dynamically loaded components.
 */ const GLOBAL_COMPONENT_NAMES = [ 'email-selector' , 'notification-element' ] ; /**
 * Globally registers dynamically loaded components.
 */ export default function register ( ) { GLOBAL_COMPONENT_NAMES . forEach ( ( componentName ) => { Vue . component ( componentName , ( ) => import ( `../components/dynamic/${ CUSTOM }/${ componentName }.vue` ) . catch ( ( ) => import ( `../components/dynamic/${ DEFAULT }/${ componentName }.vue` ) ) ) ; } ) ; }