-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathconstants.js
1613 lines (1503 loc) · 53.4 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/** @format */
/**
* External dependencies
*/
import React from 'react';
import i18n from 'i18n-calypso';
import { compact, includes } from 'lodash';
/**
* Internal dependencies
*/
import { isEnabled } from 'config';
import { isBusinessPlan, isFreePlan, isPersonalPlan, isPremiumPlan } from './index';
// plans constants
export const PLAN_BUSINESS = 'business-bundle';
export const PLAN_BUSINESS_2_YEARS = 'business-bundle-2y';
export const PLAN_PREMIUM = 'value_bundle';
export const PLAN_PREMIUM_2_YEARS = 'value_bundle-2y';
export const PLAN_PERSONAL = 'personal-bundle';
export const PLAN_PERSONAL_2_YEARS = 'personal-bundle-2y';
export const PLAN_FREE = 'free_plan';
export const PLAN_JETPACK_FREE = 'jetpack_free';
export const PLAN_JETPACK_PREMIUM = 'jetpack_premium';
export const PLAN_JETPACK_BUSINESS = 'jetpack_business';
export const PLAN_JETPACK_PERSONAL = 'jetpack_personal';
export const PLAN_JETPACK_PREMIUM_MONTHLY = 'jetpack_premium_monthly';
export const PLAN_JETPACK_BUSINESS_MONTHLY = 'jetpack_business_monthly';
export const PLAN_JETPACK_PERSONAL_MONTHLY = 'jetpack_personal_monthly';
export const PLAN_HOST_BUNDLE = 'host-bundle';
export const PLAN_WPCOM_ENTERPRISE = 'wpcom-enterprise';
export const PLAN_CHARGEBACK = 'chargeback';
export const POPULAR_PLANS = [ PLAN_PREMIUM ];
export const NEW_PLANS = [];
export const BEST_VALUE_PLANS = [ PLAN_JETPACK_PREMIUM, PLAN_JETPACK_PREMIUM_MONTHLY ];
export const JETPACK_PLANS = [
PLAN_JETPACK_BUSINESS,
PLAN_JETPACK_BUSINESS_MONTHLY,
PLAN_JETPACK_FREE,
PLAN_JETPACK_PERSONAL,
PLAN_JETPACK_PERSONAL_MONTHLY,
PLAN_JETPACK_PREMIUM,
PLAN_JETPACK_PREMIUM_MONTHLY,
];
export const JETPACK_MONTHLY_PLANS = [
PLAN_JETPACK_PREMIUM_MONTHLY,
PLAN_JETPACK_BUSINESS_MONTHLY,
PLAN_JETPACK_PERSONAL_MONTHLY,
];
export const PLAN_MONTHLY_PERIOD = 31;
export const PLAN_ANNUAL_PERIOD = 365;
export const PLAN_BIENNIAL_PERIOD = 730;
// features constants
export const FEATURE_WP_SUBDOMAIN = 'wordpress-subdomain';
export const FEATURE_CUSTOM_DOMAIN = 'custom-domain';
export const FEATURE_JETPACK_ESSENTIAL = 'jetpack-essential';
export const FEATURE_FREE_THEMES = 'free-themes';
export const FEATURE_UNLIMITED_PREMIUM_THEMES = 'premium-themes';
export const FEATURE_3GB_STORAGE = '3gb-storage';
export const FEATURE_6GB_STORAGE = '6gb-storage';
export const FEATURE_13GB_STORAGE = '13gb-storage';
export const FEATURE_UNLIMITED_STORAGE = 'unlimited-storage';
export const FEATURE_COMMUNITY_SUPPORT = 'community-support';
export const FEATURE_EMAIL_LIVE_CHAT_SUPPORT = 'email-live-chat-support';
export const FEATURE_PREMIUM_SUPPORT = 'priority-support';
export const FEATURE_BASIC_DESIGN = 'basic-design';
export const FEATURE_ADVANCED_DESIGN = 'advanced-design';
export const FEATURE_GOOGLE_ANALYTICS = 'google-analytics';
export const FEATURE_LIVE_CHAT_SUPPORT = 'live-chat-support';
export const FEATURE_NO_ADS = 'no-adverts';
export const FEATURE_VIDEO_UPLOADS = 'video-upload';
export const FEATURE_VIDEO_UPLOADS_JETPACK_PREMIUM = 'video-upload-jetpack-premium';
export const FEATURE_VIDEO_UPLOADS_JETPACK_PRO = 'video-upload-jetpack-pro';
export const FEATURE_AUDIO_UPLOADS = 'audio-upload';
export const FEATURE_WORDADS_INSTANT = 'wordads-instant';
export const FEATURE_NO_BRANDING = 'no-wp-branding';
export const FEATURE_ADVANCED_SEO = 'advanced-seo';
export const FEATURE_BUSINESS_ONBOARDING = 'business-onboarding';
export const FEATURE_UPLOAD_PLUGINS = 'upload-plugins';
export const FEATURE_UPLOAD_THEMES = 'upload-themes';
export const FEATURE_REPUBLICIZE = 'republicize';
export const FEATURE_SIMPLE_PAYMENTS = 'simple-payments';
export const FEATURE_ALL_FREE_FEATURES = 'all-free-features';
export const FEATURE_ALL_FREE_FEATURES_JETPACK = 'all-free-features-jetpack';
export const FEATURE_ALL_PERSONAL_FEATURES = 'all-personal-features';
export const FEATURE_ALL_PERSONAL_FEATURES_JETPACK = 'all-personal-features-jetpack';
export const FEATURE_ALL_PREMIUM_FEATURES = 'all-premium-features';
export const FEATURE_ALL_PREMIUM_FEATURES_JETPACK = 'all-premium-features-jetpack';
export const FEATURE_ADVANCED_CUSTOMIZATION = 'advanced-customization';
export const FEATURE_PREMIUM_THEMES = 'unlimited-premium-themes';
export const FEATURE_UPLOAD_THEMES_PLUGINS = 'upload-themes-and-plugins';
export const FEATURE_GOOGLE_ANALYTICS_SIGNUP = 'google-analytics-signup';
export const FEATURE_FREE_DOMAIN = 'free-custom-domain';
export const FEATURE_UNLIMITED_STORAGE_SIGNUP = 'unlimited-storage-signup';
export const FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP = 'email-live-chat-support-signup';
export const FEATURE_MONETISE = 'monetise-your-site';
export const FEATURE_WP_SUBDOMAIN_SIGNUP = 'wordpress-subdomain-signup';
export const FEATURE_ADVANCED_SEO_TOOLS = 'advanced-seo-tools';
export const FEATURE_FREE_THEMES_SIGNUP = 'free-themes-signup';
export const FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED_SIGNUP = 'unlimited-backup';
// jetpack features constants
export const FEATURE_BLANK = 'blank-feature';
export const FEATURE_STANDARD_SECURITY_TOOLS = 'standard-security-tools';
export const FEATURE_SITE_STATS = 'site-stats';
export const FEATURE_TRAFFIC_TOOLS = 'traffic-tools';
export const FEATURE_MANAGE = 'jetpack-manage';
export const FEATURE_SPAM_AKISMET_PLUS = 'spam-akismet-plus';
export const FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY = 'offsite-backup-vaultpress-daily';
export const FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME = 'offsite-backup-vaultpress-realtime';
export const FEATURE_BACKUP_ARCHIVE_30 = 'backup-archive-30';
export const FEATURE_BACKUP_ARCHIVE_15 = 'backup-archive-15';
export const FEATURE_BACKUP_ARCHIVE_UNLIMITED = 'backup-archive-unlimited';
export const FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED = 'backup-storage-space-unlimited';
export const FEATURE_AUTOMATED_RESTORES = 'automated-restores';
export const FEATURE_EASY_SITE_MIGRATION = 'easy-site-migration';
export const FEATURE_MALWARE_SCANNING_DAILY = 'malware-scanning-daily';
export const FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND = 'malware-scanning-daily-and-on-demand';
export const FEATURE_ONE_CLICK_THREAT_RESOLUTION = 'one-click-threat-resolution';
export const FEATURE_POLLS_PRO = 'polls-pro';
export const FEATURE_CORE_JETPACK = 'core-jetpack';
export const FEATURE_BASIC_SUPPORT_JETPACK = 'basic-support-jetpack';
export const FEATURE_SPEED_JETPACK = 'speed-jetpack';
export const FEATURE_SPEED_ADVANCED_JETPACK = 'speed-advanced-jetpack';
export const FEATURE_SPEED_UNLIMITED_JETPACK = 'speed-unlimited_jetpack';
export const FEATURE_BASIC_SECURITY_JETPACK = 'basic-security-jetpack';
export const FEATURE_SITE_BACKUPS_JETPACK = 'site-backups-jetpack';
export const FEATURE_SECURITY_SCANNING_JETPACK = 'security-scanning-jetpack';
export const FEATURE_REVENUE_GENERATION_JETPACK = 'revenue-generation-jetpack';
export const FEATURE_VIDEO_HOSTING_JETPACK = 'vidoe-hosting-jetpack';
export const FEATURE_SECURITY_ESSENTIALS_JETPACK = 'security-essentials-jetpack';
export const FEATURE_PRIORITY_SUPPORT_JETPACK = 'priority-support-jetpack';
export const FEATURE_TRAFFIC_TOOLS_JETPACK = 'seo-tools-jetpack';
export const FEATURE_ADVANCED_TRAFFIC_TOOLS_JETPACK = 'seo-tools-jetpack';
export const FEATURE_FREE_WORDPRESS_THEMES = 'free-wordpress-themes';
export const FEATURE_VIDEO_CDN_LIMITED = 'video-cdn-limited';
export const FEATURE_VIDEO_CDN_UNLIMITED = 'video-cdn-unlimited';
export const FEATURE_SEO_PREVIEW_TOOLS = 'seo-preview-tools';
export const FEATURE_CONCIERGE_SETUP = 'concierge-setup-jetpack';
export const FEATURE_MARKETING_AUTOMATION = 'marketing-automation';
export const FEATURE_SEARCH = 'search';
// Meta grouping constants
export const GROUP_WPCOM = 'GROUP_WPCOM';
export const GROUP_JETPACK = 'GROUP_JETPACK';
export const TERM_MONTHLY = 'TERM_MONTHLY';
export const TERM_ANNUALLY = 'TERM_ANNUALLY';
export const TERM_BIENNIALLY = 'TERM_BIENNIALLY';
export const TYPE_FREE = 'TYPE_FREE';
export const TYPE_PERSONAL = 'TYPE_PERSONAL';
export const TYPE_PREMIUM = 'TYPE_PREMIUM';
export const TYPE_BUSINESS = 'TYPE_BUSINESS';
const WPComGetBillingTimeframe = abtest => {
if ( abtest ) {
if ( isEnabled( 'upgrades/2-year-plans' ) && abtest( 'multiyearSubscriptions' ) === 'show' ) {
return i18n.translate( '/month, billed annually or every two years' );
}
}
return i18n.translate( 'per month, billed yearly' );
};
const WPComGetBiennialBillingTimeframe = abtest => {
if ( abtest ) {
if ( isEnabled( 'upgrades/2-year-plans' ) && abtest( 'multiyearSubscriptions' ) === 'show' ) {
return i18n.translate( '/month, billed every two years' );
}
}
return WPComGetBillingTimeframe( abtest );
};
const getPlanPersonalDetails = () => ( {
group: GROUP_WPCOM,
type: TYPE_PERSONAL,
getTitle: () => i18n.translate( 'Personal' ),
getAudience: () => i18n.translate( 'Best for hobbyists' ),
getBlogAudience: () => i18n.translate( 'Best for hobbyists' ),
getPortfolioAudience: () => i18n.translate( 'Best for hobbyists' ),
getStoreAudience: () => i18n.translate( 'Best for hobbyists' ),
getDescription: () =>
i18n.translate(
'{{strong}}Best for Personal Use:{{/strong}} Boost your' +
' website with a custom domain name, and remove all WordPress.com advertising. ' +
'Get access to high-quality email and live chat support.',
{
components: {
strong: (
<strong className="plans__features plan-features__targeted-description-heading" />
),
},
}
),
getFeatures: () => [
// pay attention to ordering, shared features should align on /plan page
FEATURE_CUSTOM_DOMAIN,
FEATURE_JETPACK_ESSENTIAL,
FEATURE_EMAIL_LIVE_CHAT_SUPPORT,
FEATURE_FREE_THEMES,
FEATURE_BASIC_DESIGN,
FEATURE_6GB_STORAGE,
FEATURE_NO_ADS,
],
getSignupFeatures: () => [
FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP,
FEATURE_FREE_DOMAIN,
FEATURE_ALL_FREE_FEATURES,
],
getBlogSignupFeatures: () => [
FEATURE_FREE_DOMAIN,
FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP,
FEATURE_ALL_FREE_FEATURES,
],
getPortfolioSignupFeatures: () => [
FEATURE_FREE_DOMAIN,
FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP,
FEATURE_ALL_FREE_FEATURES,
],
} );
const getPlanPremiumDetails = () => ( {
group: GROUP_WPCOM,
type: TYPE_PREMIUM,
getTitle: () => i18n.translate( 'Premium' ),
getAudience: () => i18n.translate( 'Best for entrepreneurs' ),
getBlogAudience: () => i18n.translate( 'Best for professionals' ),
getPortfolioAudience: () => i18n.translate( 'Best for freelancers' ),
getStoreAudience: () => i18n.translate( 'Best for freelancers' ),
getDescription: () =>
i18n.translate(
'{{strong}}Best for Entrepreneurs & Freelancers:{{/strong}}' +
' Build a unique website with advanced design tools, CSS editing, lots of space for audio and video,' +
' and the ability to monetize your site with ads.',
{
components: {
strong: (
<strong className="plans__features plan-features__targeted-description-heading" />
),
},
}
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_CUSTOM_DOMAIN,
FEATURE_JETPACK_ESSENTIAL,
FEATURE_EMAIL_LIVE_CHAT_SUPPORT,
FEATURE_UNLIMITED_PREMIUM_THEMES,
FEATURE_ADVANCED_DESIGN,
FEATURE_13GB_STORAGE,
FEATURE_NO_ADS,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS,
] ),
getPromotedFeatures: () => [
FEATURE_CUSTOM_DOMAIN,
FEATURE_NO_ADS,
FEATURE_ADVANCED_DESIGN,
FEATURE_13GB_STORAGE,
],
getSignupFeatures: () =>
compact( [
FEATURE_ADVANCED_CUSTOMIZATION,
FEATURE_PREMIUM_THEMES,
FEATURE_ALL_PERSONAL_FEATURES,
] ),
getBlogSignupFeatures: () => [
FEATURE_MONETISE,
FEATURE_PREMIUM_THEMES,
FEATURE_ALL_PERSONAL_FEATURES,
],
getPortfolioSignupFeatures: () => [
FEATURE_ADVANCED_CUSTOMIZATION,
FEATURE_PREMIUM_THEMES,
FEATURE_ALL_PERSONAL_FEATURES,
],
} );
const getPlanBusinessDetails = () => ( {
group: GROUP_WPCOM,
type: TYPE_BUSINESS,
getTitle: () => i18n.translate( 'Business' ),
getAudience: () => i18n.translate( 'Best for small businesses' ),
getBlogAudience: () => i18n.translate( 'Best for brands' ),
getPortfolioAudience: () => i18n.translate( 'Best for small businesses' ),
getStoreAudience: () => i18n.translate( 'The plan for stores and small businesses' ),
getDescription: abtest => {
if ( abtest && abtest( 'businessPlanDescriptionAT' ) === 'pluginsAndThemes' ) {
return i18n.translate(
'{{strong}}Best for Small Business:{{/strong}} Power your' +
' business website with custom plugins and themes, unlimited premium and business theme templates,' +
' Google Analytics support, unlimited' +
' storage, and the ability to remove WordPress.com branding.',
{
components: {
strong: (
<strong className="plans__features plan-features__targeted-description-heading" />
),
},
}
);
}
return i18n.translate(
'{{strong}}Best for Small Business:{{/strong}} Power your' +
' business website with unlimited premium and business theme templates, Google Analytics support, unlimited' +
' storage, and the ability to remove WordPress.com branding.',
{
components: {
strong: (
<strong className="plans__features plan-features__targeted-description-heading" />
),
},
}
);
},
getTagline: () =>
i18n.translate(
'Learn more about everything included with Business and take advantage of its professional features.'
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_CUSTOM_DOMAIN,
FEATURE_JETPACK_ESSENTIAL,
FEATURE_EMAIL_LIVE_CHAT_SUPPORT,
FEATURE_UNLIMITED_PREMIUM_THEMES,
FEATURE_ADVANCED_DESIGN,
FEATURE_UNLIMITED_STORAGE,
FEATURE_NO_ADS,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS,
FEATURE_BUSINESS_ONBOARDING,
FEATURE_ADVANCED_SEO,
isEnabled( 'automated-transfer' ) && FEATURE_UPLOAD_PLUGINS,
isEnabled( 'automated-transfer' ) && FEATURE_UPLOAD_THEMES,
FEATURE_GOOGLE_ANALYTICS,
FEATURE_NO_BRANDING,
] ),
getPromotedFeatures: () => [
FEATURE_UNLIMITED_STORAGE,
FEATURE_UNLIMITED_PREMIUM_THEMES,
FEATURE_CUSTOM_DOMAIN,
FEATURE_NO_ADS,
FEATURE_ADVANCED_DESIGN,
FEATURE_VIDEO_UPLOADS,
FEATURE_BUSINESS_ONBOARDING,
],
getSignupFeatures: () => [
FEATURE_UPLOAD_THEMES_PLUGINS,
FEATURE_GOOGLE_ANALYTICS_SIGNUP,
FEATURE_ALL_PREMIUM_FEATURES,
],
getBlogSignupFeatures: () => [
FEATURE_UPLOAD_THEMES_PLUGINS,
FEATURE_ADVANCED_SEO_TOOLS,
FEATURE_ALL_PREMIUM_FEATURES,
],
getPortfolioSignupFeatures: () => [
FEATURE_UPLOAD_THEMES_PLUGINS,
FEATURE_UNLIMITED_STORAGE_SIGNUP,
FEATURE_ALL_PREMIUM_FEATURES,
],
} );
// DO NOT import. Use `getPlan` from `lib/plans` instead.
export const PLANS_LIST = {
[ PLAN_FREE ]: {
group: GROUP_WPCOM,
type: TYPE_FREE,
term: TERM_ANNUALLY,
getTitle: () => i18n.translate( 'Free' ),
getAudience: () => i18n.translate( 'Best for students' ),
getBlogAudience: () => i18n.translate( 'Best for students' ),
getPortfolioAudience: () => i18n.translate( 'Best for students' ),
getStoreAudience: () => i18n.translate( 'Best for students' ),
getProductId: () => 1,
getStoreSlug: () => PLAN_FREE,
getPathSlug: () => 'beginner',
getDescription: () =>
i18n.translate(
'Get a free website and be on your way to publishing your ' +
'first post in less than five minutes.'
),
getFeatures: () => [
// pay attention to ordering, shared features should align on /plan page
FEATURE_WP_SUBDOMAIN,
FEATURE_JETPACK_ESSENTIAL,
FEATURE_COMMUNITY_SUPPORT,
FEATURE_FREE_THEMES,
FEATURE_BASIC_DESIGN,
FEATURE_3GB_STORAGE,
],
getSignupFeatures: () => [
FEATURE_COMMUNITY_SUPPORT,
FEATURE_WP_SUBDOMAIN_SIGNUP,
FEATURE_FREE_THEMES_SIGNUP,
],
getBlogSignupFeatures: () => [
FEATURE_COMMUNITY_SUPPORT,
FEATURE_WP_SUBDOMAIN_SIGNUP,
FEATURE_FREE_THEMES_SIGNUP,
],
getPortfolioSignupFeatures: () => [
FEATURE_COMMUNITY_SUPPORT,
FEATURE_WP_SUBDOMAIN_SIGNUP,
FEATURE_FREE_THEMES_SIGNUP,
],
getBillingTimeFrame: () => i18n.translate( 'for life' ),
},
[ PLAN_PERSONAL ]: {
...getPlanPersonalDetails(),
term: TERM_ANNUALLY,
getBillingTimeFrame: WPComGetBillingTimeframe,
availableFor: plan => includes( [ PLAN_FREE ], plan ),
getProductId: () => 1009,
getStoreSlug: () => PLAN_PERSONAL,
getPathSlug: () => 'personal',
},
[ PLAN_PERSONAL_2_YEARS ]: {
...getPlanPersonalDetails(),
term: TERM_BIENNIALLY,
getBillingTimeFrame: WPComGetBiennialBillingTimeframe,
availableFor: plan => includes( [ PLAN_FREE, PLAN_PERSONAL ], plan ),
getProductId: () => 1029,
getStoreSlug: () => PLAN_PERSONAL_2_YEARS,
getPathSlug: () => 'personal-2-years',
},
[ PLAN_PREMIUM ]: {
...getPlanPremiumDetails(),
term: TERM_ANNUALLY,
getBillingTimeFrame: WPComGetBillingTimeframe,
availableFor: plan => includes( [ PLAN_FREE, PLAN_PERSONAL, PLAN_PERSONAL_2_YEARS ], plan ),
getProductId: () => 1003,
getStoreSlug: () => PLAN_PREMIUM,
getPathSlug: () => 'premium',
},
[ PLAN_PREMIUM_2_YEARS ]: {
...getPlanPremiumDetails(),
term: TERM_BIENNIALLY,
getBillingTimeFrame: WPComGetBiennialBillingTimeframe,
availableFor: plan =>
includes( [ PLAN_FREE, PLAN_PERSONAL, PLAN_PERSONAL_2_YEARS, PLAN_PREMIUM ], plan ),
getProductId: () => 1023,
getStoreSlug: () => PLAN_PREMIUM_2_YEARS,
getPathSlug: () => 'premium-2-years',
},
[ PLAN_BUSINESS ]: {
...getPlanBusinessDetails(),
term: TERM_ANNUALLY,
getBillingTimeFrame: WPComGetBillingTimeframe,
availableFor: plan =>
includes(
[ PLAN_FREE, PLAN_PERSONAL, PLAN_PERSONAL_2_YEARS, PLAN_PREMIUM, PLAN_PREMIUM_2_YEARS ],
plan
),
getProductId: () => 1008,
getStoreSlug: () => PLAN_BUSINESS,
getPathSlug: () => 'business',
},
[ PLAN_BUSINESS_2_YEARS ]: {
...getPlanBusinessDetails(),
term: TERM_BIENNIALLY,
getBillingTimeFrame: WPComGetBiennialBillingTimeframe,
availableFor: plan =>
includes(
[
PLAN_FREE,
PLAN_PERSONAL,
PLAN_PERSONAL_2_YEARS,
PLAN_PREMIUM,
PLAN_PREMIUM_2_YEARS,
PLAN_BUSINESS,
],
plan
),
getProductId: () => 1028,
getStoreSlug: () => PLAN_BUSINESS_2_YEARS,
getPathSlug: () => 'business-2-years',
},
[ PLAN_JETPACK_FREE ]: {
term: TERM_ANNUALLY,
group: GROUP_JETPACK,
type: TYPE_FREE,
getTitle: () => i18n.translate( 'Free' ),
getAudience: () => i18n.translate( 'Best for students' ),
getProductId: () => 2002,
getStoreSlug: () => PLAN_JETPACK_FREE,
getTagline: () =>
i18n.translate(
'Upgrade your site to access additional features, including spam protection, backups, and priority support.'
),
getDescription: () =>
i18n.translate(
'The features most needed by WordPress sites' +
' — perfectly packaged and optimized for everyone.'
),
getFeatures: () => [
// pay attention to ordering, shared features should align on /plan page
FEATURE_STANDARD_SECURITY_TOOLS,
FEATURE_SITE_STATS,
FEATURE_TRAFFIC_TOOLS,
FEATURE_MANAGE,
],
getSignupFeatures: () => [
FEATURE_FREE_WORDPRESS_THEMES,
FEATURE_SITE_STATS,
FEATURE_STANDARD_SECURITY_TOOLS,
FEATURE_TRAFFIC_TOOLS,
FEATURE_BLANK,
],
getBillingTimeFrame: () => i18n.translate( 'for life' ),
getSignupBillingTimeFrame: () => i18n.translate( 'for life' ),
},
[ PLAN_JETPACK_PREMIUM ]: {
group: GROUP_JETPACK,
type: TYPE_PREMIUM,
term: TERM_ANNUALLY,
getTitle: () => i18n.translate( 'Premium' ),
getAudience: () => i18n.translate( 'Best for small businesses' ),
getSubtitle: () => i18n.translate( 'Protection, speed, and revenue.' ),
getProductId: () => 2000,
getStoreSlug: () => PLAN_JETPACK_PREMIUM,
availableFor: plan =>
includes(
[
PLAN_JETPACK_FREE,
PLAN_JETPACK_PERSONAL,
PLAN_JETPACK_PERSONAL_MONTHLY,
PLAN_JETPACK_PREMIUM_MONTHLY,
],
plan
),
getPathSlug: () => 'premium',
getDescription: () =>
i18n.translate(
'Comprehensive, automated scanning for security vulnerabilities, ' +
'fast video hosting, and marketing automation.'
),
getTagline: () =>
i18n.translate(
'Your site is being secured and you have access to marketing tools and priority support.'
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_BACKUP_ARCHIVE_30,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_MALWARE_SCANNING_DAILY,
FEATURE_ADVANCED_SEO,
FEATURE_GOOGLE_ANALYTICS,
] ),
getSignupFeatures: () =>
compact( [
FEATURE_MALWARE_SCANNING_DAILY,
FEATURE_MARKETING_AUTOMATION,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_ADVANCED_SEO,
FEATURE_CONCIERGE_SETUP,
FEATURE_ALL_PERSONAL_FEATURES_JETPACK,
] ),
getBillingTimeFrame: () => i18n.translate( 'per year' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per year' ),
},
[ PLAN_JETPACK_PREMIUM_MONTHLY ]: {
group: GROUP_JETPACK,
type: TYPE_PREMIUM,
term: TERM_MONTHLY,
getTitle: () => i18n.translate( 'Premium' ),
getAudience: () => i18n.translate( 'Best for small businesses' ),
getProductId: () => 2003,
getStoreSlug: () => PLAN_JETPACK_PREMIUM_MONTHLY,
getPathSlug: () => 'premium-monthly',
availableFor: plan =>
includes( [ PLAN_JETPACK_FREE, PLAN_JETPACK_PERSONAL, PLAN_JETPACK_PERSONAL_MONTHLY ], plan ),
getDescription: () =>
i18n.translate(
'Comprehensive, automated scanning for security vulnerabilities, ' +
'fast video hosting, and marketing automation.'
),
getTagline: () =>
i18n.translate(
'Your site is being secured and you have access to marketing tools and priority support.'
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_BACKUP_ARCHIVE_30,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_MALWARE_SCANNING_DAILY,
FEATURE_ADVANCED_SEO,
FEATURE_GOOGLE_ANALYTICS,
] ),
getSignupFeatures: () =>
compact( [
FEATURE_MALWARE_SCANNING_DAILY,
FEATURE_MARKETING_AUTOMATION,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_ADVANCED_SEO,
FEATURE_CONCIERGE_SETUP,
FEATURE_ALL_PERSONAL_FEATURES_JETPACK,
] ),
getBillingTimeFrame: () => i18n.translate( 'per month, billed monthly' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per month' ),
},
[ PLAN_JETPACK_PERSONAL ]: {
group: GROUP_JETPACK,
type: TYPE_PERSONAL,
term: TERM_ANNUALLY,
getTitle: () => i18n.translate( 'Personal' ),
getAudience: () => i18n.translate( 'Best for hobbyists' ),
getProductId: () => 2005,
getStoreSlug: () => PLAN_JETPACK_PERSONAL,
availableFor: plan => includes( [ PLAN_JETPACK_FREE, PLAN_JETPACK_PERSONAL_MONTHLY ], plan ),
getPathSlug: () => 'jetpack-personal',
getDescription: () =>
i18n.translate(
'Security essentials for your WordPress site, including ' +
'automated backups and priority support.'
),
getTagline: () =>
i18n.translate(
'Your data is being securely backed up and you have access to priority support.'
),
getFeatures: () => [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_BACKUP_ARCHIVE_30,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
],
getSignupFeatures: () => [
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_PREMIUM_SUPPORT,
FEATURE_ALL_FREE_FEATURES_JETPACK,
],
getBillingTimeFrame: () => i18n.translate( 'per year' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per year' ),
},
[ PLAN_JETPACK_PERSONAL_MONTHLY ]: {
group: GROUP_JETPACK,
type: TYPE_PERSONAL,
term: TERM_MONTHLY,
getTitle: () => i18n.translate( 'Personal' ),
getAudience: () => i18n.translate( 'Best for hobbyists' ),
getStoreSlug: () => PLAN_JETPACK_PERSONAL_MONTHLY,
getProductId: () => 2006,
getPathSlug: () => 'jetpack-personal-monthly',
availableFor: plan => includes( [ PLAN_JETPACK_FREE ], plan ),
getDescription: () =>
i18n.translate(
'Security essentials for your WordPress site, including ' +
'automated backups and priority support.'
),
getTagline: () =>
i18n.translate(
'Your data is being securely backed up and you have access to priority support.'
),
getFeatures: () => [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_BACKUP_ARCHIVE_30,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
],
getSignupFeatures: () => [
FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_PREMIUM_SUPPORT,
FEATURE_ALL_FREE_FEATURES_JETPACK,
],
getBillingTimeFrame: () => i18n.translate( 'per month, billed monthly' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per month' ),
},
[ PLAN_JETPACK_BUSINESS ]: {
group: GROUP_JETPACK,
type: TYPE_BUSINESS,
term: TERM_ANNUALLY,
getTitle: () => i18n.translate( 'Professional' ),
getAudience: () => i18n.translate( 'Best for organizations' ),
getStoreSlug: () => PLAN_JETPACK_BUSINESS,
getProductId: () => 2001,
availableFor: plan =>
includes(
[
PLAN_JETPACK_BUSINESS_MONTHLY,
PLAN_JETPACK_FREE,
PLAN_JETPACK_PREMIUM,
PLAN_JETPACK_PREMIUM_MONTHLY,
PLAN_JETPACK_PERSONAL,
PLAN_JETPACK_PERSONAL_MONTHLY,
],
plan
),
getPathSlug: () => 'professional',
getDescription: () =>
i18n.translate(
'The most powerful WordPress sites: unlimited premium ' +
'themes, real-time backups, and enhanced search.'
),
getTagline: () =>
i18n.translate(
'You have full access to premium themes, marketing tools, and priority support.'
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME,
FEATURE_BACKUP_ARCHIVE_UNLIMITED,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
FEATURE_SEARCH,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND,
FEATURE_ONE_CLICK_THREAT_RESOLUTION,
FEATURE_ADVANCED_SEO,
FEATURE_GOOGLE_ANALYTICS,
FEATURE_UNLIMITED_PREMIUM_THEMES,
] ),
getSignupFeatures: () =>
compact( [
FEATURE_UNLIMITED_PREMIUM_THEMES,
FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME,
FEATURE_SEARCH,
FEATURE_ALL_PREMIUM_FEATURES_JETPACK,
] ),
getBillingTimeFrame: () => i18n.translate( 'per year' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per year' ),
},
[ PLAN_JETPACK_BUSINESS_MONTHLY ]: {
group: GROUP_JETPACK,
type: TYPE_BUSINESS,
term: TERM_MONTHLY,
getTitle: () => i18n.translate( 'Professional' ),
getAudience: () => i18n.translate( 'Best for organizations' ),
getSubtitle: () => i18n.translate( 'Ultimate security and traffic tools.' ),
getProductId: () => 2004,
getStoreSlug: () => PLAN_JETPACK_BUSINESS_MONTHLY,
getPathSlug: () => 'professional-monthly',
availableFor: plan =>
includes(
[
PLAN_JETPACK_FREE,
PLAN_JETPACK_PREMIUM,
PLAN_JETPACK_PREMIUM_MONTHLY,
PLAN_JETPACK_PERSONAL,
PLAN_JETPACK_PERSONAL_MONTHLY,
],
plan
),
getDescription: () =>
i18n.translate(
'The most powerful WordPress sites: unlimited premium ' +
'themes, real-time backups, and enhanced search.'
),
getTagline: () =>
i18n.translate(
'You have full access to premium themes, marketing tools, and priority support.'
),
getFeatures: () =>
compact( [
// pay attention to ordering, shared features should align on /plan page
FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME,
FEATURE_BACKUP_ARCHIVE_UNLIMITED,
FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED,
FEATURE_AUTOMATED_RESTORES,
FEATURE_SPAM_AKISMET_PLUS,
FEATURE_EASY_SITE_MIGRATION,
FEATURE_PREMIUM_SUPPORT,
isEnabled( 'republicize' ) && FEATURE_REPUBLICIZE,
isEnabled( 'simple-payments' ) && FEATURE_SIMPLE_PAYMENTS,
FEATURE_WORDADS_INSTANT,
FEATURE_VIDEO_UPLOADS_JETPACK_PRO,
FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND,
FEATURE_ONE_CLICK_THREAT_RESOLUTION,
FEATURE_ADVANCED_SEO,
FEATURE_GOOGLE_ANALYTICS,
FEATURE_UNLIMITED_PREMIUM_THEMES,
] ),
getSignupFeatures: () =>
compact( [
FEATURE_UNLIMITED_PREMIUM_THEMES,
FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME,
FEATURE_SEARCH,
FEATURE_ALL_PREMIUM_FEATURES_JETPACK,
] ),
getBillingTimeFrame: () => i18n.translate( 'per month, billed monthly' ),
getSignupBillingTimeFrame: () => i18n.translate( 'per month' ),
},
};
export const PLANS_CONSTANTS_LIST = Object.keys( PLANS_LIST );
export const FEATURES_LIST = {
[ FEATURE_BLANK ]: {
getSlug: () => FEATURE_BLANK,
getTitle: () => '',
},
[ FEATURE_ALL_FREE_FEATURES_JETPACK ]: {
getSlug: () => FEATURE_ALL_FREE_FEATURES_JETPACK,
getTitle: () =>
i18n.translate( '{{a}}All free features{{/a}}', {
components: {
a: (
<a
href="https://jetpack.com/features/comparison"
target="_blank"
rel="noopener noreferrer"
/>
),
},
} ),
getDescription: () =>
i18n.translate( 'Also includes all features offered in the free version of Jetpack.' ),
},
[ FEATURE_ALL_FREE_FEATURES ]: {
getSlug: () => FEATURE_ALL_FREE_FEATURES,
getTitle: () => i18n.translate( 'All free features' ),
},
[ FEATURE_ALL_PERSONAL_FEATURES_JETPACK ]: {
getSlug: () => FEATURE_ALL_PERSONAL_FEATURES_JETPACK,
getTitle: () =>
i18n.translate( '{{a}}All Personal features{{/a}}', {
components: {
a: (
<a
href="https://jetpack.com/features/comparison"
target="_blank"
rel="noopener noreferrer"
/>
),
},
} ),
getDescription: () =>
i18n.translate( 'Also includes all features offered in the Personal plan.' ),
},
[ FEATURE_ALL_PERSONAL_FEATURES ]: {
getSlug: () => FEATURE_ALL_PERSONAL_FEATURES,
getTitle: () => i18n.translate( 'All Personal features' ),
},
[ FEATURE_ALL_PREMIUM_FEATURES_JETPACK ]: {
getSlug: () => FEATURE_ALL_PREMIUM_FEATURES_JETPACK,
getTitle: () =>
i18n.translate( '{{a}}All Premium features{{/a}}', {
components: {
a: (
<a
href="https://jetpack.com/features/comparison"
target="_blank"
rel="noopener noreferrer"
/>
),
},
} ),
getDescription: () =>
i18n.translate( 'Also includes all features offered in the Premium plan.' ),
},
[ FEATURE_ALL_PREMIUM_FEATURES ]: {
getSlug: () => FEATURE_ALL_PREMIUM_FEATURES,
getTitle: () => i18n.translate( 'All Premium features' ),
},
[ FEATURE_ADVANCED_CUSTOMIZATION ]: {
getSlug: () => FEATURE_ADVANCED_CUSTOMIZATION,
getTitle: () => i18n.translate( 'Advanced customization' ),
},
[ FEATURE_FREE_DOMAIN ]: {
getSlug: () => FEATURE_FREE_DOMAIN,
getTitle: () => i18n.translate( 'Free custom domain' ),
},
[ FEATURE_PREMIUM_THEMES ]: {
getSlug: () => FEATURE_PREMIUM_THEMES,
getTitle: () => i18n.translate( 'Unlimited premium themes' ),
},
[ FEATURE_MONETISE ]: {
getSlug: () => FEATURE_MONETISE,
getTitle: () => i18n.translate( 'Monetize your site with ads' ),
},
[ FEATURE_UPLOAD_THEMES_PLUGINS ]: {
getSlug: () => FEATURE_UPLOAD_THEMES_PLUGINS,
getTitle: () => i18n.translate( 'Upload themes and plugins' ),
},
[ FEATURE_GOOGLE_ANALYTICS_SIGNUP ]: {
getSlug: () => FEATURE_GOOGLE_ANALYTICS_SIGNUP,
getTitle: () => i18n.translate( 'Google Analytics' ),
},
[ FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP ]: {
getSlug: () => FEATURE_EMAIL_LIVE_CHAT_SUPPORT_SIGNUP,
getTitle: () => i18n.translate( 'Email and live chat support' ),
},
[ FEATURE_FREE_THEMES_SIGNUP ]: {
getSlug: () => FEATURE_FREE_THEMES_SIGNUP,
getTitle: () => i18n.translate( 'Dozens of Free Themes' ),
},
[ FEATURE_WP_SUBDOMAIN_SIGNUP ]: {
getSlug: () => FEATURE_WP_SUBDOMAIN_SIGNUP,
getTitle: () => i18n.translate( 'WordPress.com subdomain' ),
},
[ FEATURE_UNLIMITED_STORAGE_SIGNUP ]: {
getSlug: () => FEATURE_UNLIMITED_STORAGE_SIGNUP,
getTitle: () => i18n.translate( 'Unlimited storage' ),
},
[ FEATURE_ADVANCED_SEO_TOOLS ]: {
getSlug: () => FEATURE_ADVANCED_SEO_TOOLS,
getTitle: () => i18n.translate( 'Advanced SEO tools' ),
},
[ FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED_SIGNUP ]: {
getSlug: () => FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED_SIGNUP,
getTitle: () => i18n.translate( 'Unlimited Backup Space' ),
},
[ FEATURE_FREE_WORDPRESS_THEMES ]: {
getSlug: () => FEATURE_FREE_WORDPRESS_THEMES,
getTitle: () => i18n.translate( 'Free WordPress Themes' ),
},
[ FEATURE_VIDEO_CDN_LIMITED ]: {
getSlug: () => FEATURE_VIDEO_CDN_LIMITED,
getTitle: () => i18n.translate( '13GB Video Storage' ),
getDescription: () =>
i18n.translate(
'High-speed video hosting on our CDN, free of ads and watermarks, fully optimized for WordPress.'
),
},
[ FEATURE_VIDEO_CDN_UNLIMITED ]: {