const anyLocaleRegex = '([a-z]{2,3}|[a-z]{2}-[a-z]{2})';

const sections = [
	{
		name: 'root',
		paths: [ '/' ],
		module: 'calypso/root',
		group: 'root',
		enableLoggedOut: true,
	},
	{
		name: 'reauth-required',
		paths: [ '/me/reauth-required' ],
		module: 'calypso/reauth-required',
	},
	{
		name: 'customize',
		paths: [ '/customize' ],
		module: 'calypso/my-sites/customize',
		group: 'sites',
	},
	{
		name: 'sites-dashboard',
		paths: [ '/sites' ],
		module: 'calypso/sites',
		group: 'sites-dashboard',
	},
	{
		name: 'sites-dashboard',
		paths: [ '/p2s' ],
		module: 'calypso/sites',
		group: 'sites-dashboard',
	},
	{
		name: 'switch-site',
		paths: [ '/switch-site' ],
		module: 'calypso/switch-site',
	},
	{
		name: 'account',
		paths: [ '/me/account' ],
		module: 'calypso/me/account',
		group: 'me',
	},
	{
		name: 'account-close',
		// /me/account/closed enables account restoration for logged-out users
		// Parent route is private so enableLoggedOut flag won't work here
		// Redirection is handled in redirectLoggedOut
		paths: [ '/me/account/close', '/me/account/closed' ],
		module: 'calypso/me/account-close',
		group: 'me',
	},
	{
		name: 'promote-post-i2',
		paths: [ '/advertising' ],
		module: 'calypso/my-sites/promote-post-i2',
		group: 'sites',
	},
	{
		name: 'concierge',
		paths: [ '/me/concierge', '/me/quickstart' ],
		module: 'calypso/me/concierge',
		group: 'me',
	},
	{
		name: 'developer',
		paths: [ '/me/developer' ],
		module: 'calypso/me/developer',
		group: 'me',
	},
	{
		name: 'notification-settings',
		paths: [ '/me/notifications' ],
		module: 'calypso/me/notification-settings',
		group: 'me',
	},
	{
		name: 'privacy',
		paths: [ '/me/privacy' ],
		module: 'calypso/me/privacy',
		group: 'me',
	},
	{
		name: 'purchases',
		paths: [
			'/me/purchases',
			'/me/purchases-by-owner',
			'/me/billing',
			'/payment-methods/add-credit-card',
		],
		module: 'calypso/me/purchases',
		group: 'me',
	},
	{
		name: 'security',
		paths: [ '/me/security' ],
		module: 'calypso/me/security',
		group: 'me',
	},
	{
		name: 'site-blocks',
		paths: [ '/me/site-blocks' ],
		module: 'calypso/me/site-blocks',
		group: 'me',
	},
	// This should be the last section for `/me` paths as it would otherwise have precedence over
	// the other sub `/me/*` sections when resolving the requested path
	{
		name: 'me',
		paths: [ '/me' ],
		module: 'calypso/me',
		group: 'me',
	},
	{
		name: 'activity',
		paths: [ '/activity-log' ],
		module: 'calypso/my-sites/activity',
		group: 'sites',
	},
	{
		name: 'site-purchases',
		paths: [ '/purchases' ],
		module: 'calypso/my-sites/purchases',
		group: 'sites',
	},
	{
		name: 'media',
		paths: [ '/media' ],
		module: 'calypso/my-sites/media',
		group: 'sites',
	},
	{
		name: 'people',
		paths: [ '/people' ],
		module: 'calypso/my-sites/people',
		group: 'sites',
	},
	{
		name: 'plugins',
		paths: [ '/plugins', `/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/plugins` ],
		module: 'calypso/my-sites/plugins',
		group: 'sites',
		enableLoggedOut: true,
		enableNoSites: true,
		isomorphic: true,
		title: 'Plugins',
	},
	{
		name: 'marketplace',
		paths: [ '/marketplace' ],
		module: 'calypso/my-sites/marketplace',
		group: 'sites',
	},
	{
		name: 'pages',
		paths: [ '/pages' ],
		module: 'calypso/my-sites/pages',
		group: 'sites',
	},
	{
		name: 'posts',
		paths: [ '/posts' ],
		module: 'calypso/my-sites/posts',
		group: 'sites',
	},
	{
		name: 'settings-performance',
		paths: [ '/settings/performance' ],
		module: 'calypso/my-sites/site-settings/settings-performance',
		group: 'sites',
	},
	{
		name: 'settings-writing',
		paths: [ '/settings/writing', '/settings/taxonomies', '/settings/podcasting' ],
		module: 'calypso/my-sites/site-settings/settings-writing',
		group: 'sites',
	},
	{
		name: 'settings-reading',
		paths: [ '/settings/reading' ],
		module: 'calypso/my-sites/site-settings/settings-reading',
		group: 'sites',
	},
	{
		name: 'settings-discussion',
		paths: [ '/settings/discussion' ],
		module: 'calypso/my-sites/site-settings/settings-discussion',
		group: 'sites',
	},
	{
		name: 'settings-newsletter',
		paths: [ '/settings/newsletter' ],
		module: 'calypso/my-sites/site-settings/settings-newsletter',
	},
	{
		name: 'settings-podcast',
		paths: [ '/settings/podcasting' ],
		module: 'calypso/my-sites/site-settings/settings-podcast',
		group: 'sites',
	},
	{
		name: 'settings-security',
		paths: [ '/settings/security' ],
		module: 'calypso/my-sites/site-settings/settings-security',
		group: 'sites',
	},
	{
		name: 'settings-jetpack',
		paths: [ '/settings/jetpack' ],
		module: 'calypso/my-sites/site-settings/settings-jetpack',
		group: 'sites',
	},
	{
		name: 'settings',
		paths: [ '/settings' ],
		module: 'calypso/my-sites/site-settings',
		group: 'sites',
	},
	{
		name: 'marketing',
		paths: [ '/marketing', '/sharing' ],
		module: 'calypso/my-sites/marketing',
		group: 'sites',
	},
	{
		name: 'subscribers',
		paths: [ '/subscribers' ],
		module: 'calypso/my-sites/subscribers',
		group: 'sites',
	},
	{
		name: 'overview',
		paths: [ '/overview' ],
		module: 'calypso/sites/overview',
		group: 'sites',
	},
	{
		name: 'hosting',
		paths: [ '/hosting-config', '/hosting-features' ],
		module: 'calypso/sites/hosting',
		group: 'sites',
	},
	{
		name: 'jetpack-connect',
		paths: [ '/jetpack' ],
		module: 'calypso/jetpack-connect',
		enableLoggedOut: true,
	},
	{
		name: 'purchase-product',
		paths: [ '/purchase-product' ],
		module: 'calypso/my-sites/purchase-product',
		enableLoggedOut: true,
	},
	{
		name: 'signup',
		paths: [ '/start' ],
		module: 'calypso/signup',
		enableLoggedOut: true,
		isomorphic: true,
	},
	{
		name: 'jetpack-app',
		paths: [ '/jetpack-app' ],
		module: 'calypso/jetpack-app',
	},
	{
		name: 'stats',
		paths: [ '/stats' ],
		module: 'calypso/my-sites/stats',
		group: 'sites',
		trackLoadPerformance: true,
	},
	{
		name: 'google-my-business',
		paths: [ '/google-my-business' ],
		module: 'calypso/my-sites/google-my-business',
		group: 'sites',
	},
	{
		name: 'patterns',
		paths: [ '/patterns', '/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/patterns' ],
		module: 'calypso/my-sites/patterns',
		enableLoggedOut: true,
		isomorphic: true,
	},
	// Since we're using find() and startsWith() on paths, 'themes' needs to go before 'theme',
	// or it'll be falsely associated with the latter section.
	{
		name: 'themes',
		paths: [ '/themes', `/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/themes`, '/design' ],
		module: 'calypso/my-sites/themes',
		enableLoggedOut: true,
		enableNoSites: true,
		group: 'sites',
		isomorphic: true,
		title: 'Themes',
	},
	{
		name: 'theme',
		paths: [ '/theme', `/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/theme` ],
		module: 'calypso/my-sites/theme',
		enableLoggedOut: true,
		enableNoSites: true,
		group: 'sites',
		isomorphic: true,
		title: 'Themes',
		trackLoadPerformance: true,
	},
	{
		name: 'site-profiler',
		paths: [ '/site-profiler', `/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/site-profiler` ],
		module: 'calypso/site-profiler',
		enableLoggedOut: true,
		group: 'site-profiler',
		isomorphic: true,
		title: 'Site Profiler',
		trackLoadPerformance: true,
	},
	{
		name: 'performance-profiler',
		paths: [ '/speed-test-tool', `/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/speed-test-tool` ],
		module: 'calypso/performance-profiler',
		enableLoggedOut: true,
		group: 'performance-profiler',
		isomorphic: true,
		title: 'Speed Test',
		trackLoadPerformance: true,
	},
	{
		name: 'domains',
		paths: [ '/domains' ],
		module: 'calypso/my-sites/domains',
		group: 'sites',
	},
	{
		name: 'incoming-redirect',
		paths: [ '/incoming-redirect' ],
		module: 'calypso/incoming-redirect',
		enableLoggedOut: true,
	},
	{
		name: 'email',
		paths: [ '/email' ],
		module: 'calypso/my-sites/email',
		group: 'sites',
	},
	{
		name: 'mailboxes',
		paths: [ '/mailboxes' ],
		module: 'calypso/my-sites/email',
		group: 'sites',
	},
	{
		name: 'checkout',
		paths: [ '/checkout' ],
		module: 'calypso/my-sites/checkout',
		group: 'sites',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'plans',
		paths: [ '/plans' ],
		module: 'calypso/my-sites/plans',
		group: 'sites',
		trackLoadPerformance: true,
	},
	{
		name: 'accept-invite',
		paths: [ '/accept-invite' ],
		module: 'calypso/my-sites/invites',
		enableLoggedOut: true,
	},
	{
		name: 'earn',
		paths: [ '/earn', '/ads' ],
		module: 'calypso/my-sites/earn',
		group: 'sites',
	},
	{
		name: 'mailing-lists',
		paths: [ '/mailing-lists/unsubscribe' ],
		module: 'calypso/mailing-lists',
		enableLoggedOut: true,
		group: 'me',
	},
	// this MUST be the first section for /reader paths so subsequent sections under /reader can override settings
	{
		name: 'reader',
		paths: [
			'/reader',
			'/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/reader', // For locale-specific reader.
			// Legacy paths that we need to support for backwards compatibility.
			'/read(/?.*)',
			'/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/read', // For locale-specific reader.
		],
		module: 'calypso/reader',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/reader/feeds/[^\\/]+', '/reader/blogs/[^\\/]+', '/reader/a8c', '/reader/p2' ],
		module: 'calypso/reader',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/reader/feeds/lookup/.*' ],
		module: 'calypso/reader',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/reader/feeds/[^\\/]+/posts/[^\\/]+', '/reader/blogs/[^\\/]+/posts/[^\\/]+' ],
		module: 'calypso/reader/full-post',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/discover', '/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/discover' ],
		module: 'calypso/reader/discover',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
		isomorphic: true,
	},
	{
		name: 'reader',
		paths: [ '/following' ],
		module: 'calypso/reader/following',
		group: 'reader',
	},
	{
		name: 'reader',
		paths: [ '/tags', '/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/tags' ],
		module: 'calypso/reader/tags',
		group: 'reader',
		trackLoadPerformance: true,
		enableLoggedOut: true,
		isomorphic: true,
	},
	{
		name: 'reader',
		paths: [ '/tag', '/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/tag' ],
		module: 'calypso/reader/tag-stream',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/activities' ],
		module: 'calypso/reader/liked-stream',
		group: 'reader',
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [
			'/reader/search',
			'/([a-z]{2,3}|[a-z]{2}-[a-z]{2})/reader/search',
			'/recommendations',
		],
		module: 'calypso/reader/search',
		group: 'reader',
		enableLoggedOut: true,
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/reader/list' ],
		module: 'calypso/reader/list',
		group: 'reader',
	},
	{
		name: 'reader',
		paths: [ '/reader/conversations' ],
		module: 'calypso/reader/conversations',
		group: 'reader',
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [ '/reader/notifications' ],
		module: 'calypso/reader/notifications',
		group: 'reader',
		trackLoadPerformance: true,
	},
	{
		name: 'reader',
		paths: [
			'/reader/subscriptions',
			'/reader/subscriptions/comments',
			'/reader/subscriptions/pending',
			'^/reader/subscriptions/(\\d+)(/)?$',
		],
		module: 'calypso/reader/site-subscriptions-manager',
		group: 'reader',
	},
	{
		name: 'auth',
		paths: [ '/api/oauth/token' ],
		module: 'calypso/auth',
		enableLoggedOut: true,
	},
	{
		name: 'posts-custom',
		paths: [ '/types' ],
		module: 'calypso/my-sites/types',
		group: 'sites',
	},
	{
		name: 'comments',
		paths: [ '/comments', '/comment' ],
		module: 'calypso/my-sites/comments',
		group: 'sites',
	},
	{
		name: 'domain-connect-authorize',
		paths: [ '/domain-connect' ],
		module: 'calypso/my-sites/domains/domain-management/domain-connect',
	},
	{
		name: 'gutenberg-editor',
		paths: [ '/block-editor', '/site-editor', '/post', '/page', '/edit' ],
		module: 'calypso/gutenberg/editor',
		group: 'gutenberg',
		trackLoadPerformance: true,
		enableLoggedOut: true,
	},
	{
		name: 'import',
		paths: [ '/import' ],
		module: 'calypso/my-sites/importer',
		group: 'sites',
	},
	{
		name: 'export',
		paths: [ '/export' ],
		module: 'calypso/my-sites/exporter',
		group: 'sites',
	},
	{
		name: 'migrate',
		paths: [ '/migrate' ],
		module: 'calypso/my-sites/migrate',
		group: 'sites',
	},
	{
		name: 'devdocs',
		paths: [ '/devdocs' ],
		module: 'calypso/devdocs',
		enableLoggedOut: true,
	},
	{
		name: 'home',
		paths: [ '/home' ],
		module: 'calypso/my-sites/customer-home',
		group: 'sites',
		trackLoadPerformance: true,
	},
	{
		name: 'preview',
		paths: [ '/view' ],
		module: 'calypso/my-sites/customer-home',
		group: 'sites',
	},
	{
		name: 'site-settings',
		paths: [ '/sites/settings' ],
		module: 'calypso/sites/settings',
		group: 'sites',
	},
	{
		name: 'backup',
		paths: [ '/backup' ],
		module: 'calypso/my-sites/backup',
		group: 'sites',
	},
	{
		name: 'scan',
		paths: [ '/scan' ],
		module: 'calypso/my-sites/scan',
		group: 'sites',
	},
	{
		name: 'jetpack-cloud',
		paths: [ '/', '/landing', '/settings' ],
		module: 'calypso/jetpack-cloud',
		group: 'jetpack-cloud',
		enableLoggedOut: true,
	},
	{
		name: 'jetpack-cloud-agency-dashboard',
		paths: [ '/dashboard' ],
		module: 'calypso/jetpack-cloud/sections/agency-dashboard',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-plugin-management',
		paths: [ '/plugins' ],
		module: 'calypso/jetpack-cloud/sections/plugin-management',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-settings',
		paths: [ '/settings' ],
		module: 'calypso/jetpack-cloud/sections/settings',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-auth',
		paths: [ '/connect', '/connect/oauth/token' ],
		module: 'calypso/jetpack-cloud/sections/auth',
		group: 'jetpack-cloud',
		enableLoggedOut: true,
	},
	{
		name: 'jetpack-cloud-pricing',
		paths: [ '/pricing', '/(?!manage)[^\\/]+/pricing', '/plans', '/[^\\/]+/plans' ],
		module: 'calypso/jetpack-cloud/sections/pricing',
		group: 'jetpack-cloud',
		enableLoggedOut: true,
		isomorphic: true,
		links: [
			{
				rel: 'stylesheet',
				href: 'https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap',
			},
		],
	},
	{
		name: 'jetpack-cloud-manage-pricing',
		paths: [ '/manage/pricing', `/${ anyLocaleRegex }/manage/pricing` ],
		module: 'calypso/jetpack-cloud/sections/manage/pricing',
		group: 'jetpack-cloud',
		enableLoggedOut: true,
		isomorphic: true,
	},
	{
		name: 'jetpack-cloud-features-comparison',
		paths: [ '/features/comparison', '/[^\\/]+/features/comparison' ],
		module: 'calypso/jetpack-cloud/sections/comparison',
		group: 'jetpack-cloud',
		enableLoggedOut: true,
		isomorphic: true,
	},
	{
		name: 'jetpack-search',
		paths: [ '/jetpack-search' ],
		module: 'calypso/my-sites/jetpack-search',
		group: 'sites',
	},
	{
		name: 'jetpack-cloud-overview',
		paths: [ '/overview' ],
		module: 'calypso/jetpack-cloud/sections/overview',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-partner-portal',
		paths: [ '/partner-portal' ],
		module: 'calypso/jetpack-cloud/sections/partner-portal',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-agency-signup',
		paths: [ '/manage/signup', '/agency/signup' ],
		module: 'calypso/jetpack-cloud/sections/agency-signup',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-cloud-golden-token',
		paths: [ '/golden-token' ],
		module: 'calypso/jetpack-cloud/sections/golden-token',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-social',
		paths: [ '/jetpack-social' ],
		module: 'calypso/jetpack-cloud/sections/jetpack-social',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-subscribers',
		paths: [ '/subscribers' ],
		module: 'calypso/my-sites/subscribers',
		group: 'jetpack-cloud',
	},
	{
		name: 'jetpack-monetize',
		paths: [ '/monetize' ],
		module: 'calypso/my-sites/earn',
		group: 'jetpack-cloud',
	},
	{
		name: 'woocommerce-installation',
		paths: [ '/woocommerce-installation' ],
		module: 'calypso/my-sites/woocommerce',
		group: 'woocommerce-installation',
	},
	{
		name: 'woocommerce',
		paths: [ '/store' ],
		module: 'calypso/my-sites/store',
		group: 'sites',
	},
	{
		name: 'add-ons',
		paths: [ '/add-ons', '/add-ons/[^\\/]+' ],
		module: 'calypso/my-sites/add-ons',
		group: 'sites',
	},
	{
		name: 'site-monitoring',
		paths: [ '/site-monitoring' ],
		module: 'calypso/sites/monitoring',
		group: 'sites',
	},
	{
		name: 'site-performance',
		paths: [ '/sites/performance' ],
		module: 'calypso/hosting/performance',
		group: 'sites',
	},
	{
		name: 'site-logs',
		paths: [ '/site-logs' ],
		module: 'calypso/sites/logs',
		group: 'sites',
	},
	{
		name: 'github-deployments',
		paths: [ '/github-deployments' ],
		module: 'calypso/sites/deployments',
		group: 'sites',
	},
	{
		name: 'staging-site',
		paths: [ '/staging-site' ],
		module: 'calypso/sites/staging-site',
		group: 'sites',
	},
	{
		name: 'a8c-for-agencies',
		paths: [ '/' ],
		module: 'calypso/a8c-for-agencies',
		group: 'a8c-for-agencies',
		enableLoggedOut: true,
	},
	{
		name: 'a8c-for-agencies-landing',
		paths: [ '/landing' ],
		module: 'calypso/a8c-for-agencies/sections/landing',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-feedback',
		paths: [ '/feedback' ],
		module: 'calypso/a8c-for-agencies/sections/feedback',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-auth',
		paths: [ '/log-in', '/connect', '/connect/oauth/token' ],
		module: 'calypso/a8c-for-agencies/sections/auth',
		group: 'a8c-for-agencies',
		enableLoggedOut: true,
	},
	{
		name: 'a8c-for-agencies-overview',
		paths: [ '/overview' ],
		module: 'calypso/a8c-for-agencies/sections/overview',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-reports',
		paths: [ '/reports', '/reports/overview', '/reports/dashboard' ],
		module: 'calypso/a8c-for-agencies/sections/reports',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-sites',
		paths: [ '/sites', 'sites/need-setup' ],
		module: 'calypso/a8c-for-agencies/sections/sites',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-plugins',
		paths: [ '/plugins' ],
		module: 'calypso/a8c-for-agencies/sections/plugins',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-marketplace',
		paths: [
			'/marketplace',
			'/marketplace/products',
			'/marketplace/hosting',
			'/marketplace/hosting/pressable',
			'/marketplace/hosting/wpcom',
			'/marketplace/checkout',
			'/marketplace/assign-license',
			'/marketplace/download-products',
		],
		module: 'calypso/a8c-for-agencies/sections/marketplace',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-purchases',
		paths: [
			'/purchases',
			'/purchases/licenses',
			'/purchases/billing',
			'/purchases/payment-methods',
			'/purchases/payment-methods/add',
			'/purchases/invoices',
		],
		module: 'calypso/a8c-for-agencies/sections/purchases',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-referrals',
		paths: [ '/referrals/dashboard', '/referrals/payment-settings', '/referrals/faq' ],
		module: 'calypso/a8c-for-agencies/sections/referrals',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-migrations',
		paths: [
			'/migrations',
			'/migrations/overview',
			'/migrations/overview/migrate-to-pressable',
			'/migrations/overview/migrate-to-wpcom',
			'/migrations/commissions',
			'/migrations/payment-settings',
		],
		module: 'calypso/a8c-for-agencies/sections/migrations',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-settings',
		paths: [ '/settings' ],
		module: 'calypso/a8c-for-agencies/sections/settings',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-partner-directory',
		paths: [ '/partner-directory' ],
		module: 'calypso/a8c-for-agencies/sections/partner-directory',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-team',
		paths: [ '/team', '/team/invite' ],
		module: 'calypso/a8c-for-agencies/sections/team',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-signup',
		paths: [ '/signup', '/signup/finish', '/signup/oauth/token', '/signup/wc-asia' ],
		module: 'calypso/a8c-for-agencies/sections/signup',
		group: 'a8c-for-agencies',
		enableLoggedOut: true,
	},
	{
		name: 'a8c-for-agencies-client',
		paths: [
			'/client/landing',
			'/client/subscriptions',
			'/client/payment-methods',
			'/client/payment-methods/add',
			'/client/invoices',
			'/client/checkout',
		],
		module: 'calypso/a8c-for-agencies/sections/client',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-agency-tier',
		paths: [ '/agency-tier' ],
		module: 'calypso/a8c-for-agencies/sections/agency-tier',
		group: 'a8c-for-agencies',
	},
	{
		name: 'a8c-for-agencies-woopayments',
		paths: [
			'/woopayments',
			'/woopayments/overview',
			'/woopayments/dashboard',
			'/woopayments/payment-settings',
			'/woopayments/site-setup',
		],
		module: 'calypso/a8c-for-agencies/sections/woopayments',
		group: 'a8c-for-agencies',
	},
];

module.exports = sections;
