INSERT IGNORE INTO `#__rsform_config` (`SettingName`, `SettingValue`) VALUES
('turnstile.sitekey', ''),
('turnstile.secret', ''),
('turnstile.endpoint', 'global'),
('turnstile.language', 'auto'),
('turnstile.start', 'auto'),
('turnstile.delivery', 'jsdelivr');

DELETE FROM `#__rsform_component_types` WHERE `ComponentTypeId` IN (2420);

INSERT IGNORE INTO `#__rsform_component_types` (`ComponentTypeId`, `ComponentTypeName`, `CanBeDuplicated`) VALUES
(2420, 'turnstile', 0);

DELETE FROM `#__rsform_component_type_fields` WHERE ComponentTypeId = 2420;

INSERT IGNORE INTO `#__rsform_component_type_fields` (`ComponentTypeId`, `FieldName`, `FieldType`, `FieldValues`, `Properties`, `Ordering`) VALUES
(2420, 'NAME', 'textbox', '', '', 0),
(2420, 'CAPTION', 'textbox', '', '', 1),
(2420, 'ADDITIONALATTRIBUTES', 'textarea', '', '', 2),
(2420, 'DESCRIPTION', 'textarea', '', '', 3),
(2420, 'VALIDATIONMESSAGE', 'textarea', 'INVALIDINPUT', '', 4),
(2420, 'THEME', 'select', 'AUTOTHEME\r\nLIGHT\r\nDARK', '', 5),
(2420, 'COMPONENTTYPE', 'hidden', '2420', '', 8);