@product7/product7-js 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11064,8 +11064,10 @@
11064
11064
  }
11065
11065
 
11066
11066
  _updateContent() {
11067
- const avatarsHtml = this.state.showAvatars ? this._renderAvatarStack() : '';
11067
+ const isUnavailable = this.state.businessHoursState === 'offline' || this.state.businessHoursState === 'away';
11068
+ const avatarsHtml = (this.state.showAvatars && !isUnavailable) ? this._renderAvatarStack() : '';
11068
11069
  const recentChangelogHtml = this._renderRecentChangelog();
11070
+ const availabilityHtml = this._renderAvailabilityStatus();
11069
11071
 
11070
11072
  this.element.innerHTML = `
11071
11073
  <div class="liveChat-home-scroll">
@@ -11079,6 +11081,7 @@
11079
11081
  <div class="liveChat-home-welcome">
11080
11082
  <span class="liveChat-home-greeting">${this.state.greetingMessage}</span>
11081
11083
  <span class="liveChat-home-question">${this.state.welcomeMessage}</span>
11084
+ ${availabilityHtml}
11082
11085
  </div>
11083
11086
  </div>
11084
11087