const $ = require('jquery'); class Contacts { constructor(wrapper) { wrapper.addClass('initiated'); this.contactsWrapper = wrapper.find('.contacts'); this.contacts = this.contactsWrapper.find('.contact-person'); this.current = 0; this.tabStyle = wrapper.data('tab-style'); this.TABS_CLOSED = "closed"; this.TABS_OPEN = "open"; this.initTabs(); } initTabs() { if (this.tabStyle === this.TABS_OPEN || this.contacts.length < 2) { this.contacts.addClass('active'); return; } this.tabs = $('