import { structuredDataMock } from "../store/SitesList";

export const sitesResponseDataPack = {
	data: {
		totalItems: 1,
		items: [
			{
				id: "ARTICLES",
				title: "Articles",
				category: {
					id: "ARTICLES",
					label: "Articles",
				},
				description: "Allows you to hightlight articles",
				image:
					"https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/articles.png",
				templates: [
					{
						id: "ArticlesList",
						title: "Articles List",
						thumbnails: {
							"1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesList",
							"2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesList@2x",
						},
						dataPacks: ["ARTICLES"],
						type: {
							label: "Articles",
							value: "articles",
							mode: "list",
						},
					},
				],
				modules: [
					{
						id: "ArticlesDistributor",
						title: "Articles Distributor",
						category: "articlesAndEvents",
						thumbnails: {
							"1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesDistributor",
							"2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesDistributor@2x",
						},
						dataPacks: ["ARTICLES"],
						type: {},
						sectionList: {
							BasicTemplate: ["mainContent"],
							NewsDetail: ["closureContent"],
							NewsList: ["relatedContent"],
							SitemapTemplate: ["relatedContent", "closureContent"],
							StoryDetail: ["mainContent", "relatedContent"],
						},
					},
				],
				categories: [
					{
						id: "STORY_TYPE",
						title: "Story Type",
						dataPacks: ["STORIES"],
						local: false,
						taxonomy: true,
						fromPage: false,
						translate: true,
						schema: null,
						clone: null,
						defaults: null,
						editable: true,
					},
				],
				structuredData: [
					{
						id: "ARTICLES",
						title: "Articles",
						dataPacks: ["ARTICLES"],
						local: false,
						fromPage: false,
						relatedCategories: [],
					},
				],
				activated: true,
				config: {
					defaultParent: null,
					indexDefault: true,
					modifiableOnPage: false,
					templates: {
						ArticlesList: {
							defaultHeader: 178,
							defaultFooter: 78,
							integrations: [
								{
									id: 91,
									name: "Script",
									description: "Super script",
									site: null,
									contentHead: '<script>alert("hola")</script>',
									contentBody: "",
									contentBodyPosition: "start",
									contentPresence: {
										presenceType: "page-specific",
										relatedPages: [4111, 4111],
									},
									active: true,
									variables: [
										{
											id: 93,
											variableName: "v1",
											variableKey: "key",
											isMultilanguage: true,
											defaultValue: "",
											multilanguage: [
												{
													id: 54,
													languageId: 4,
													value: null,
												},
												{
													id: 55,
													languageId: 2,
													value: null,
												},
											],
										},
									],
								},
								{
									name: "codigoCustom",
									contentHead: "",
									contentBody: "",
									contentBodyPosition: null,
									contentPresence: {
										presenceType: "page-manual",
										relatedPages: null,
									},
								},
							],
						},
					},
					defaultHeader: null,
					defaultFooter: null,
				},
			},
		],
		page: "1",
	},
	status: 200,
	statusText: "Ok",
	headers: {},
	config: {},
};

export const structuredDataResponse = {
	data: structuredDataMock,
	status: 200,
	statusText: "Ok",
	headers: {},
	config: {},
};
