/*!
 * Custom elements for Nanopore-Digital Web applications
 */
'use strict';

const user = {
	uuid: 123,
	name: "Jean-Luc Picard",
	first_name: "Jean-Luc",
	last_name: "Picard",
	company: "Starfleet",
	job_title: "Captain",
	small_avatar_url: "https://randomuser.me/api/portraits/men/75.jpg"
};
const domains = [
	{
		origin: "cws",
		domain: "nanoporetech.com"
	},
	{
		origin: "store",
		domain: "store.nanoporetech.com"
	},
	{
		origin: "community",
		domain: "community.nanoporetech.com"
	}
];
const cart = {
	count: 1,
	url: "https://store.nanoporetech.com/cart"
};
const notifications = {
	count: 1,
	url: "https://myaccount.nanoporetech.com/message_centre"
};
const links = [
	{
		id: 55,
		area: "profile-panel-list",
		address: "https://myaccount.nanoporetech.com/message_centre",
		title: "Messages",
		order: 0,
		target: ""
	},
	{
		id: 54,
		area: "profile-panel-list",
		address: "https://community.nanoporetech.com",
		title: "Community Dashboard",
		order: 1,
		target: ""
	},
	{
		id: 56,
		area: "profile-panel-list",
		address: "https://community.nanoporetech.com/my-activity",
		title: "My Activity",
		order: 2,
		target: ""
	},
	{
		id: 57,
		area: "profile-panel-list",
		address: "https://myaccount.nanoporetech.com/home",
		title: "My Account",
		order: 3,
		target: ""
	},
	{
		id: 58,
		area: "profile-panel-list",
		address: "https://myaccount.nanoporetech.com/account/teams",
		title: "Team Management",
		order: 4,
		target: ""
	},
	{
		id: 59,
		area: "profile-panel-list",
		address: "https://nanoporetech.com/resource-centre/publications",
		title: "Publications",
		order: 5,
		target: ""
	},
	{
		id: 60,
		area: "profile-panel-list",
		address: "https://myaccount.nanoporetech.com/profile/status",
		title: "Preferences",
		order: 6,
		target: ""
	}
];
const urls = {
	logout: "https://myaccount.nanoporetech.com/sso/logout",
	login: null,
	messages: "https://myaccount.nanoporetech.com/message_centre",
	cart: "https://store.nanoporetech.com/cart"
};
const search = {
	app_id: "N8NZI5A47F",
	api_key: "MDRhNGI1ZjFkMDU3MjAyNTQ2ZDA4MmQ2ZTBjODBhM2ViODZjMWNhYTFjZmI5YjM3ODljYWUyNTY0MDAyZGJmOWZpbHRlcnM9JTI4JTI3cmVnaW9uJTI3JTNBJTI3dXMlMjcrT1IrJTI3cmVnaW9uJTI3JTNBJTI3YW55JTI3JTI5K0FORCslMjhOT1QrJTI3dHlwZSUyNyUzQSUyN3doaXRlX3BhcGVyJTI3JTI5K0FORCslMjhOT1QrJTI3b3JpZ2luJTI3JTNBJTI3Y29tbXVuaXR5JTI3JTI5JnZhbGlkVW50aWw9MjA3MTkwOTQ0MA==",
	indeces: [
		{
			index: "ont_prod_en_v3",
			name: "All",
			domain: "nanoporetech.com",
			all_group: true,
			filters: [
				"tags",
				"type"
			],
			replicas: [
				{
					name: "Sort by: Most relevant",
					index: "ont_prod_en_v3"
				},
				{
					name: "Sort by: Newest",
					index: "ont_prod_en_v3_date_desc_published_time"
				},
				{
					name: "Sort by: Oldest",
					index: "ont_prod_en_v3_date_asc_published_time"
				},
				{
					name: "Sort by: Recent activity",
					index: "ont_prod_en_v3_activity_date_desc"
				}
			]
		},
		{
			index: "cws_english_en",
			name: "www",
			domain: "nanoporetech.com",
			filters: [
				"tags",
				"type"
			],
			replicas: [
				{
					name: "Sort by: Most relevant",
					index: "cws_english_en"
				},
				{
					name: "Sort by: Newest",
					index: "cws_english_en_date_desc_published_time"
				},
				{
					name: "Sort by: Oldest",
					index: "cws_english_en_date_asc_published_time"
				},
				{
					name: "Sort by: Recent activity",
					index: "cws_english_en_activity_date_desc"
				}
			]
		},
		{
			index: "store_prod",
			name: "Store",
			domain: "store.nanoporetech.com",
			filters: [
				"type"
			],
			replicas: [
				{
					name: "Sort by: Most relevant",
					index: "store_prod"
				},
				{
					name: "Sort by: Newest",
					index: "store_prod_date_desc_published_time"
				},
				{
					name: "Sort by: Oldest",
					index: "store_prod_date_asc_published_time"
				}
			]
		},
		{
			index: "cws_english_resources_en",
			name: "Resources",
			domain: "nanoporetech.com",
			filters: [
				"tags"
			],
			replicas: [
				{
					name: "Sort by: Most relevant",
					index: "cws_english_resources_en"
				},
				{
					name: "Sort by: Newest",
					index: "cws_english_resources_en_date_desc_published_time"
				},
				{
					name: "Sort by: Oldest",
					index: "cws_english_resources_en_date_asc_published_time"
				}
			]
		}
	]
};
var localLoggedIn = {
	user: user,
	domains: domains,
	cart: cart,
	notifications: notifications,
	links: links,
	urls: urls,
	search: search
};

exports.cart = cart;
exports.default = localLoggedIn;
exports.domains = domains;
exports.links = links;
exports.notifications = notifications;
exports.search = search;
exports.urls = urls;
exports.user = user;
