(function(api) {

    api.sectionConstructor['solarium-upsell'] = api.Section.extend({
        attachEvents: function() {},
        isContextuallyActive: function() {
            return true;
        }
    });
  
    const businesssection_lists = ['banner', 'service'];
    businesssection_lists.forEach(business_homepage_scroll);
  
    function business_homepage_scroll(item) {
        item = item.replace(/-/g, '');
        wp.customize.section('solarium_' + item + '_section', function(section) {
            section.expanded.bind(function(isExpanding) {
                wp.customize.previewer.send(item, { expanded: isExpanding });
            });
        });
    }
  })(wp.customize);