(function(api) {

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

  const smoothone_section_lists = ['Main', 'Clients', 'Logo'];
  smoothone_section_lists.forEach(smoothone_homepage_scroll);

  function smoothone_homepage_scroll(item) {
      item = item.replace(/-/g, '_');
      wp.customize.section('smoothone_' + item + '_section', function(section) {
          section.expanded.bind(function(isExpanding) {
              wp.customize.previewer.send(item, { expanded: isExpanding });
          });
      });
  }
})(wp.customize);