LOCK TABLES `content_block_setting` WRITE;

DELETE FROM `content_block_setting`;

INSERT INTO `content_block_setting` (`id`, `site_id`, `name`, `settings`)
VALUES
	(1, 3, 'event-calendar', '{\"template\":\"event-calendar\"}'),
	(2, 3, 'slider', '{\"templates\":{\"Standard carousel\":{\"filename\":\"slider\"}},\"grouped\":{\"slides\":{\"max_members\":3,\"member\":{\"image\":{\"type\":\"image\",\"width\":1920,\"height\":1080},\"title\":{\"type\":\"text\",\"max_length\":20,\"font\":{\"family\":\"\",\"size\":12}},\"desc\":{\"type\":\"textarea\",\"max_length\":255},\"cta\":{\"type\":\"button\",\"label\":{\"text\":\"\",\"max_length\":20},\"link\":{\"url\":\"\",\"target\":\"_blank\"}}}}},\"fields\":[]}'),
	(3, 3, 'promo-block', '{\n  \"templates\": {\n    \"Left Light template\": {\n      \"filename\": \"template-1\"\n    },\n    \"Right Light template\": {\n      \"filename\": \"template-2\"\n    },\n    \"Left Dark template\": {\n      \"filename\": \"template-1-dark\"\n    },\n    \"Right Dark template\": {\n      \"filename\": \"template-2-dark\"\n    }\n  },\n  \"grouped\": {},\n  \"fields\": {\n    \"header\": {\n      \"type\": \"text\",\n      \"max_length\": 15\n    },\n    \"desc\": {\n      \"type\": \"textarea\",\n      \"max_length\": 255\n    },\n    \"hero\": {\n      \"type\": \"image\",\n      \"width\": 800,\n      \"height\": 1432\n    },\n    \"image1\": {\n      \"type\": \"image\",\n      \"width\": 800,\n      \"height\": 716\n    },\n    \"image2\": {\n      \"type\": \"image\",\n      \"width\": 800,\n      \"height\": 716\n    },\n    \"cta\": {\"type\": \"button\",\"label\": {\"text\": \"\",\"max_length\": 20},\"link\": {\"url\": \"\",\"target\": \"_blank\"},\"labels\": [\"Buy Tickets\",\n       	\"Find Out More\",\n       	\"Click Here\",\n	\"Download\",\n       	\"Enter Competition\",\n	\"Contact Us\"]}\n  }\n}'),
	(4, 3, 'intro-block', '{\"templates\": {\n    \"Light template\": {\n      \"filename\": \"template-1\"\n    },\n    \"Dark template\": {\n      \"filename\": \"template-2\"\n    }\n  },\n  \"grouped\": [],\n  \"fields\": {\n    \"head\": {\n      \"type\": \"text\",\n      \"max_length\": 50\n    },\n    \"desc\": {\n      \"type\": \"textarea\",\n      \"max-lengh\": 255\n    },\n    \"cta\": {\n      \"type\": \"button\",\n      \"label\": {\n        \"text\": \"\",\n        \"max_length\": 20\n      },\n      \"link\": {\n        \"url\": \"\",\n        \"target\": \"_blank\"\n      },\n      \"labels\": [\n        \"Buy Tickets\",\n        \"Find Out More\",\n        \"Click Here\",\n        \"Enter Competition\"\n      ]\n    }\n  }\n}'),
	(5, 3, 'broadcast-block', '{\n  \"templates\": {\n    \"Main template\": {\n      \"name\": \"template-1\",\n      \"preview\": \"main_template.png\"\n    }\n  },\n  \"cms-broadcast-header\": {\n    \"type\": \"text\",\n    \"max_length\": 128\n  }\n}'),
	(6, 3, 'forms', '{\n\"templates\":\n	{\n		\"Contact us template\":{\n			\"filename\":\"contact\"\n		},\n		\"Newsletter sign-up template\":{\n			\"filename\":\"newsletter\"\n		}\n	}\n}'),
	(7, 3, 'paragraph', '{\n  \"templates\": {\n    \"Full text\": {\n      \"filename\": \"paragraph\"\n    },\n    \"Image left\": {\n      \"filename\": \"paragraph-img-left\"\n    },\n    \"Image right\": {\n      \"filename\": \"paragraph-img-right\"\n    },\n    \"Image left 50\": {\n      \"filename\": \"paragraph-img-50-left\"\n    },\n    \"Image right 50\": {\n      \"filename\": \"paragraph-img-50-right\"\n    }\n  },\n  \"grouped\": [],\n  \"fields\": {\n    \"paragraph\": {\n      \"type\": \"html\",\n      \"max-lengh\": null\n    },\n    \"image\": {\n      \"type\": \"image\",\n      \"width\": 1340,\n      \"height\": 1004\n    },\n    \"image50\": {\n      \"type\": \"image\",\n      \"width\": 1340,\n      \"height\": 1004\n    }\n  }\n}'),
	(8, 3, 'page-hero-block', '{\n  \"templates\": {\n    \"Main template\": {\n      \"filename\": \"template-main\"\n    }\n  },\n  \"grouped\": {},\n  \"fields\": {\n    \"header\": {\n      \"type\": \"text\",\n      \"max_length\": 25\n    },\n    \"desc\": {\n      \"type\": \"textarea\",\n      \"max_length\": 255\n    },\n    \"hero\": {\n      \"type\": \"image\",\n      \"width\": 2000,\n      \"height\": 600\n    },\n    \"cta\": {\n      \"type\": \"button\",\n      \"label\": {\n        \"text\": \"\",\n        \"max_length\": 20\n      },\n      \"link\": {\n        \"url\": \"\",\n        \"target\": \"_blank\"\n      }\n    }\n  }\n}'),
	(9, 3, 'event-info', '{\n  \"templates\": [],\n  \"grouped\": [],\n  \"fields\": {\n    \"gates_open\": {\n      \"type\": \"time\"\n    },\n    \"first_race\": {\n      \"type\": \"time\"\n    },\n    \"last_race\": {\n      \"type\": \"time\"\n    },\n    \"race_type\": {\n      \"type\": \"list\",\n      \"items\": [\n        {\n          \"label\": \"FLAT\",\n          \"value\": 0\n        },\n        {\n          \"label\": \"JUMP\",\n          \"value\": 1\n        }\n      ]\n    },\n    \"races\": {\n      \"type\": \"text\",\n      \"max_length\": 2\n    },\n    \"sponsor_image\": {\n      \"type\": \"image\",\n      \"width\": 384,\n      \"height\": 183\n    }\n  }\n}'),
	(10, 3, 'video', '{\n  \"templates\": {\n    \"Main Template\": {\n      \"filename\": \"template-1\"\n    }\n  },\n  \"grouped\": [],\n  \"fields\": {\n    \"video\": {\n      \"type\": \"video\",\n      \"max_length\": 255\n    }\n\n  }\n}'),
	(11, 3, 'event-news', '{\n  \"templates\": {\n    \"Light background\": {\n      \"filename\": \"light\"\n    },\n    \"Dark background\": {\n      \"filename\": \"dark\"\n    }\n  },\n  \"fields\": {\n    \"title\": {\n      \"type\": \"text\",\n      \"max_length\": 20\n    }\n  },\n  \"grouped\": {\n    \"items\": {\n      \"max_members\": 6,\n      \"member\": {\n        \"image\": {\n          \"type\": \"image\",\n          \"width\": 800,\n          \"height\": 600\n        },\n        \"title\": {\n          \"type\": \"text\",\n          \"max_length\": 20\n        },\n        \"subtitle\": {\n          \"type\": \"text\",\n          \"max_length\": 20\n        },\n        \"cta\": {\n          \"type\": \"button\",\n          \"label\": {\n            \"text\": \"\",\n            \"max_length\": 20\n          },\n          \"link\": {\n            \"url\": \"\",\n            \"target\": \"_blank\"\n          },\n          \"labels\": [\n            \"Buy Tickets\",\n            \"Find Out More\",\n            \"Click Here\",\n	   \"Download\",\n            \"Enter Competition\"\n          ]\n        }\n      }\n    }\n  }\n} '),
	(12, 3, 'trio-image-block', '{\n  \"templates\": {\n    \"Main template\": {\n      \"filename\": \"template-1\"\n    }\n  },\n  \"grouped\": {},\n  \"fields\": {\n    \"imageleft\": {\n      \"type\": \"image\",\n      \"width\": 1000,\n      \"height\": 1000\n    },\n    \"imagecenter\": {\n      \"type\": \"image\",\n      \"width\": 1000,\n      \"height\": 1000\n    },\n    \"imageright\": {\n      \"type\": \"image\",\n      \"width\": 1000,\n      \"height\": 1000\n    }\n  }\n}'),
	(13, 3, 'call-to-action', '{\"templates\": {\n    \"Light template\": {\n      \"filename\": \"template-1\"\n    },\n    \"Dark template\": {\n      \"filename\": \"template-2\"\n    }\n  },\n  \"grouped\": [],\n  \"fields\": {\n\n    \"desc\": {\n      \"type\": \"html\",\n      \"max-lengh\": 255\n    },\n    \"cta\": {\n      \"type\": \"button\",\n      \"link\": {\n        \"url\": \"\",\n        \"target\": \"_blank\"\n      },\n      \"labels\": [\n       	\"Buy Tickets\",\n       	\"Find Out More\",\n       	\"Click Here\",\n	\"Download\",\n       	\"Enter Competition\",\n	\"Contact Us\"\n      ]\n    },\n\n    \"desc_left\": {\n      \"type\": \"html\",\n      \"max-lengh\": 255\n    },\n    \"cta_left\": {\n      \"type\": \"button\",\n      \"link\": {\n        \"url\": \"\",\n        \"target\": \"_blank\"\n      },\n      \"labels\": [\n       	\"Buy Tickets\",\n       	\"Find Out More\",\n       	\"Click Here\",\n	\"Download\",\n       	\"Enter Competition\",\n	\"Contact Us\"\n      ]\n    },\n\n    \"desc_right\": {\n      \"type\": \"html\",\n      \"max-lengh\": 255\n    },\n    \"cta_right\": {\n      \"type\": \"button\",\n      \"link\": {\n        \"url\": \"\",\n        \"target\": \"_blank\"\n      },\n      \"labels\": [\n       	\"Buy Tickets\",\n       	\"Find Out More\",\n       	\"Click Here\",\n	\"Download\",\n       	\"Enter Competition\",\n	\"Contact Us\"\n      ]\n    }\n\n  }\n}'),
	(14, 3, 'fast-facts', '{\n  \"templates\": {\n    \"Light background\": {\n      \"filename\": \"template-light\"\n    },\n    \"Dark background\": {\n      \"filename\": \"template-dark\"\n    }\n  },\n  \"fields\": {},\n  \"grouped\": {\n    \"items\": {\n\n\n      \"max_members\": 8,\n      \"member\": {\n        \n	\"icon\": {\n      		\"type\": \"icon\",\n      		\"names\": [\n			\"15-racecourses\",\n			\"annual-membership\",\n			\"banquets-and-awards\",\n			\"cars\",\n			\"carvery\",\n			\"cash\",\n			\"christmas\",\n			\"coffee\",\n			\"conferences\",\n			\"email\",\n			\"exhibition\",\n			\"exhibitions\",\n			\"eye\",\n			\"food-and-drink\",\n			\"game\",\n			\"guide-to-betting\",\n			\"join-our-team\",\n			\"location\",\n			\"multiple-access\",\n			\"outdoor-events\",\n			\"owners-and-trainers\",\n			\"package\",\n			\"parking\",\n			\"parties\",\n			\"pdf\",\n			\"people\",\n			\"person\",\n			\"phone\",\n			\"power\",\n			\"private\",\n			\"product-launches\",\n			\"programme\",\n			\"proms\",\n			\"screen\",\n			\"sponsor\",\n			\"ticket\",\n			\"training\",\n			\"venue-accessibility\",\n			\"venue-etiquette\",\n		        \"view\",\n			\"voucher\",\n			\"waiter\",\n			\"weddings\"      		]\n    	},\n        \"title\": {\n          \"type\": \"text\",\n          \"max_length\": 30\n        },\n        \"subtitle\": {\n          \"type\": \"text\",\n          \"max_length\": 40\n        }\n\n      }\n\n    }\n  }\n} '),
	(15, 3, 'event-hero', '{\n  \"templates\": [],\n  \"grouped\": [],\n  \"fields\": {\n    \"hero_image\": {\n      \"type\": \"image\",\n      \"width\": 2000,\n      \"height\": 600\n    }\n  }\n}');

UNLOCK TABLES;