(function(api) {
	api.sectionConstructor['helya-upsell'] = api.Section.extend({
		attachEvents: function () {},
		isContextuallyActive: function () {
			return true;
		}
	});

	const helyaSections = ['Intro', 'Features', 'Testimonials'];
	helyaSections.forEach(helya_scroll_handler);

	function helya_scroll_handler(sectionName) {
		const id = sectionName.replace(/-/g, '_');
		wp.customize.section('helya_' + id + '_section', function (section) {
			section.expanded.bind(function (isExpanded) {
				wp.customize.previewer.send(id, { expanded: isExpanded });
			});
		});
	}
})(wp.customize);
