@meetelise/chat 1.20.205 → 1.20.206
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
|
@@ -4052,7 +4052,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4052
4052
|
/>
|
|
4053
4053
|
</svg>
|
|
4054
4054
|
</button>
|
|
4055
|
-
</div>`}};no.styles=[eo],to([ue({type:Number})],no.prototype,"right",void 0),to([ue({type:Number})],no.prototype,"bottom",void 0),to([ue({type:Number})],no.prototype,"top",void 0),to([ue({type:Number})],no.prototype,"left",void 0),to([ue({attribute:!0})],no.prototype,"isChatOpen",void 0),to([ue({attribute:!0})],no.prototype,"onClickCloseChat",void 0),to([ue({attribute:!0})],no.prototype,"onClickOpenChat",void 0),no=to([ae("healthcare-launcher")],no);var io=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ro=class extends re{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=xe(),this.firstUpdated=async()=>{
|
|
4055
|
+
</div>`}};no.styles=[eo],to([ue({type:Number})],no.prototype,"right",void 0),to([ue({type:Number})],no.prototype,"bottom",void 0),to([ue({type:Number})],no.prototype,"top",void 0),to([ue({type:Number})],no.prototype,"left",void 0),to([ue({attribute:!0})],no.prototype,"isChatOpen",void 0),to([ue({attribute:!0})],no.prototype,"onClickCloseChat",void 0),to([ue({attribute:!0})],no.prototype,"onClickOpenChat",void 0),no=to([ae("healthcare-launcher")],no);var io=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ro=class extends re{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=xe(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Er(this.healthcareId),t=Rr(this.healthcareId,e)?e:Nr(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new Pr(this.healthcareId,null,"",this.currentLeadSource,t.leadId),t.initiatedChat&&await this.myPubnub.initializePubnub(e),ln()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Ir(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return er(),this.isLoading?U``:U`
|
|
4056
4056
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
4057
4057
|
<div id="aria-describe-info" style="display: none;">
|
|
4058
4058
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -116,7 +116,7 @@ export class HealthChat extends LitElement {
|
|
|
116
116
|
launcherRef: Ref<Launcher> = createRef();
|
|
117
117
|
|
|
118
118
|
firstUpdated = async (): Promise<void> => {
|
|
119
|
-
const isInMaintenanceMode =
|
|
119
|
+
const isInMaintenanceMode = false; // TODO: check
|
|
120
120
|
if (isInMaintenanceMode) {
|
|
121
121
|
// eslint-disable-next-line no-console
|
|
122
122
|
console.warn(
|