@meetelise/chat 1.22.22 → 1.22.23
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.
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -4515,7 +4515,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4515
4515
|
.backgroundColor=${this.backgroundColor}
|
|
4516
4516
|
.onClick=${()=>{this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,localStorage.setItem("isChatOpen","false")}}
|
|
4517
4517
|
></minimize-expand-button>
|
|
4518
|
-
</div>`}}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new an(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Gr(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){un({logType:ln.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E;vr();const R=this.hideLauncher&&!this.isLoading&&!ci();return
|
|
4518
|
+
</div>`}}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new an(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Gr(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){un({logType:ln.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E;vr();const R=this.hideLauncher&&!this.isLoading&&!ci();return U`
|
|
4519
4519
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
4520
4520
|
<div id="aria-describe-info" style="display: none;">
|
|
4521
4521
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -733,14 +733,6 @@ export class MEChat extends LitElement {
|
|
|
733
733
|
const showChatAdditionalActions =
|
|
734
734
|
this.hideLauncher && !this.isLoading && !isMobile();
|
|
735
735
|
|
|
736
|
-
const numEnabledChatWidgets = Object.values(this.enabledChatWidgets).filter(
|
|
737
|
-
(val) => val
|
|
738
|
-
).length;
|
|
739
|
-
|
|
740
|
-
if (numEnabledChatWidgets === 0) {
|
|
741
|
-
return html``;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
736
|
return html`
|
|
745
737
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
746
738
|
<div id="aria-describe-info" style="display: none;">
|