2021-01-06 22:08:57 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-03-10 15:11:37 +00:00
|
|
|
import { getCountryCode } from '~/dashboard/utils';
|
2021-01-06 22:08:57 +00:00
|
|
|
|
|
|
|
// Determine if a store should see the selective bundle install a/b experiment based on country and chosen industries
|
|
|
|
// from the profile wizard.
|
2021-03-08 14:23:39 +00:00
|
|
|
const SUPPORTED_COUNTRIES = [
|
|
|
|
'US',
|
|
|
|
'BR',
|
|
|
|
'FR',
|
|
|
|
'ID',
|
|
|
|
'GB',
|
|
|
|
'DE',
|
|
|
|
'VN',
|
|
|
|
'CA',
|
|
|
|
'PL',
|
|
|
|
'MY',
|
|
|
|
'AU',
|
|
|
|
'NG',
|
|
|
|
'GR',
|
|
|
|
'BE',
|
|
|
|
'PT',
|
|
|
|
'DK',
|
|
|
|
'SE',
|
|
|
|
'JP',
|
2021-03-24 12:30:20 +00:00
|
|
|
'IE',
|
|
|
|
'NZ',
|
2021-03-08 14:23:39 +00:00
|
|
|
];
|
|
|
|
export const isSelectiveBundleInstallSegmentation = ( country ) => {
|
|
|
|
return SUPPORTED_COUNTRIES.includes( getCountryCode( country ) );
|
2021-01-06 22:08:57 +00:00
|
|
|
};
|