@meetelise/chat 1.20.115 → 1.20.116

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.20.115",
3
+ "version": "1.20.116",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -1208,7 +1208,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
1208
1208
  </div>
1209
1209
  `}
1210
1210
  </div>
1211
- `}};var oi;ri.styles=[ni,Zt],ii([ue({attribute:!1})],ri.prototype,"layoutOptions",void 0),ii([ue({attribute:!1})],ri.prototype,"unitOptions",void 0),ii([ue({attribute:!1})],ri.prototype,"tourTypeOptions",void 0),ii([ue({attribute:!0})],ri.prototype,"chatId",void 0),ii([ue({type:Number})],ri.prototype,"buildingId",void 0),ii([ue({attribute:!0})],ri.prototype,"buildingSlug",void 0),ii([ue({attribute:!0})],ri.prototype,"sgtUrl",void 0),ii([ue({attribute:!0})],ri.prototype,"escortedToursLink",void 0),ii([ue({attribute:!0})],ri.prototype,"virtualToursLink",void 0),ii([ue({attribute:!0})],ri.prototype,"orgSlug",void 0),ii([ue({attribute:!0})],ri.prototype,"buildingName",void 0),ii([le()],ri.prototype,"tourType",void 0),ii([le()],ri.prototype,"shouldShowTourType",void 0),ii([le()],ri.prototype,"email",void 0),ii([le()],ri.prototype,"phoneNumber",void 0),ii([le()],ri.prototype,"availabilitiesGroupedByDay",void 0),ii([le()],ri.prototype,"waitingForAvailabilities",void 0),ii([le()],ri.prototype,"selectedDate",void 0),ii([le()],ri.prototype,"selectedTime",void 0),ii([le()],ri.prototype,"mobilePageIndex",void 0),ii([le()],ri.prototype,"isSubmitting",void 0),ii([le()],ri.prototype,"tourIsBooked",void 0),ii([ue({attribute:!1})],ri.prototype,"leadSources",void 0),ii([ue({attribute:!0})],ri.prototype,"currentLeadSource",void 0),ii([ue({attribute:!0})],ri.prototype,"featureFlagShowDropdown",void 0),ii([ue({attribute:!0})],ri.prototype,"compactDesign",void 0),ii([ue({attribute:!0})],ri.prototype,"brandColor",void 0),ii([de(".nameContainer#firstName input")],ri.prototype,"firstNameInput",void 0),ii([de(".nameContainer#lastName input")],ri.prototype,"lastNameInput",void 0),ii([de(".inputContainer#email input")],ri.prototype,"emailInput",void 0),ii([de(".inputContainer#phone input")],ri.prototype,"phoneInput",void 0),ii([de("me-select#unitType")],ri.prototype,"unitTypeSelect",void 0),ii([de("me-select#layoutType")],ri.prototype,"layoutTypeSelect",void 0),ii([de("me-select#leadSource")],ri.prototype,"selectedLeadSource",void 0),ri=ii([ae("tour-scheduler")],ri),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(oi||(oi={}));const ai={[oi.Guided]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[oi.Self]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[oi.Virtual]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},si={[oi.Guided]:"escorted-tour",[oi.Self]:"self-guided-tour",[oi.Virtual]:"live-virtual-tour"},ui=e=>e.map((e=>(e=>({studio:0,"1br":1,"2br":2,"3br":3,"4br":4,"5br":5,"6br":6,"7br":7,"8br":8,"9br":9,"10br":10}[e]))(e))).filter(qn()).sort().map((e=>(e=>({0:"studio",1:"1br",2:"2br",3:"3br",4:"4br",5:"5br",6:"6br",7:"7br",8:"8br",9:"9br",10:"10br"}[e]))(e))).filter(jn());class li{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:di(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.111"})})}}const di=()=>{var e,t,n;const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null;return{entrataCampaignSource:i.get("switch_cls[id]"),realpageCampaignSource:i.get("ilm"),utmCampaignSource:i.get("utm_source"),yardiCampaignSource:r}};var ci;!function(e){e.error="error",e.info="info",e.warn="warn"}(ci||(ci={}));const pi=async({logType:e,buildingSlug:n,orgSlug:i,logTitle:r,logData:o})=>{await t().post("https://app.meetelise.com/platformApi/webchat/logging",{...o},{headers:{"Content-Type":"application/json","building-slug":null!=n?n:"","org-slug":null!=i?i:"","log-type":null!=e?e:ci.error,"log-title":r.toUpperCase().replace(/\s/g,"_")}})};async function hi(e,n){const i="https://app.meetelise.com",r=`${i}/api/pub/v1/organization/${e}/building/${n}`,o=`${i}/eliseCrmApi/pub/building/${n}/units`,a=`${i}/eliseCrmApi/pub/building/${n}/layouts`,[s,u,l]=await Promise.all([t().get(r),t().get(o),t().get(a)]),d=s.data,c=u.data,p=l.data;return d.unitOptionsV2=c,d.layoutOptionsV2=p,d}var fi,mi;async function gi(e){try{const n=await t().get(`https://app.meetelise.com/eliseCrmApi/webchat/config/building/${e}`);if(n.data)return Dn(n.data)}catch(e){return null}return null}async function vi(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}async function yi(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Qn(),building_slug:e,referrer:n,campaign_sources:di()})).data}catch(e){return null}}!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(fi||(fi={})),function(e){e.ConceptEmoji="Concept 2 (Blue/White)"}(mi||(mi={}));const bi=u`
1211
+ `}};var oi;ri.styles=[ni,Zt],ii([ue({attribute:!1})],ri.prototype,"layoutOptions",void 0),ii([ue({attribute:!1})],ri.prototype,"unitOptions",void 0),ii([ue({attribute:!1})],ri.prototype,"tourTypeOptions",void 0),ii([ue({attribute:!0})],ri.prototype,"chatId",void 0),ii([ue({type:Number})],ri.prototype,"buildingId",void 0),ii([ue({attribute:!0})],ri.prototype,"buildingSlug",void 0),ii([ue({attribute:!0})],ri.prototype,"sgtUrl",void 0),ii([ue({attribute:!0})],ri.prototype,"escortedToursLink",void 0),ii([ue({attribute:!0})],ri.prototype,"virtualToursLink",void 0),ii([ue({attribute:!0})],ri.prototype,"orgSlug",void 0),ii([ue({attribute:!0})],ri.prototype,"buildingName",void 0),ii([le()],ri.prototype,"tourType",void 0),ii([le()],ri.prototype,"shouldShowTourType",void 0),ii([le()],ri.prototype,"email",void 0),ii([le()],ri.prototype,"phoneNumber",void 0),ii([le()],ri.prototype,"availabilitiesGroupedByDay",void 0),ii([le()],ri.prototype,"waitingForAvailabilities",void 0),ii([le()],ri.prototype,"selectedDate",void 0),ii([le()],ri.prototype,"selectedTime",void 0),ii([le()],ri.prototype,"mobilePageIndex",void 0),ii([le()],ri.prototype,"isSubmitting",void 0),ii([le()],ri.prototype,"tourIsBooked",void 0),ii([ue({attribute:!1})],ri.prototype,"leadSources",void 0),ii([ue({attribute:!0})],ri.prototype,"currentLeadSource",void 0),ii([ue({attribute:!0})],ri.prototype,"featureFlagShowDropdown",void 0),ii([ue({attribute:!0})],ri.prototype,"compactDesign",void 0),ii([ue({attribute:!0})],ri.prototype,"brandColor",void 0),ii([de(".nameContainer#firstName input")],ri.prototype,"firstNameInput",void 0),ii([de(".nameContainer#lastName input")],ri.prototype,"lastNameInput",void 0),ii([de(".inputContainer#email input")],ri.prototype,"emailInput",void 0),ii([de(".inputContainer#phone input")],ri.prototype,"phoneInput",void 0),ii([de("me-select#unitType")],ri.prototype,"unitTypeSelect",void 0),ii([de("me-select#layoutType")],ri.prototype,"layoutTypeSelect",void 0),ii([de("me-select#leadSource")],ri.prototype,"selectedLeadSource",void 0),ri=ii([ae("tour-scheduler")],ri),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(oi||(oi={}));const ai={[oi.Guided]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[oi.Self]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[oi.Virtual]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},si={[oi.Guided]:"escorted-tour",[oi.Self]:"self-guided-tour",[oi.Virtual]:"live-virtual-tour"},ui=e=>e.map((e=>(e=>({studio:0,"1br":1,"2br":2,"3br":3,"4br":4,"5br":5,"6br":6,"7br":7,"8br":8,"9br":9,"10br":10}[e]))(e))).filter(qn()).sort().map((e=>(e=>({0:"studio",1:"1br",2:"2br",3:"3br",4:"4br",5:"5br",6:"6br",7:"7br",8:"8br",9:"9br",10:"10br"}[e]))(e))).filter(jn());class li{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:di(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.116"})})}}const di=()=>{var e,t,n;const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null;return{entrataCampaignSource:i.get("switch_cls[id]"),realpageCampaignSource:i.get("ilm"),utmCampaignSource:i.get("utm_source"),yardiCampaignSource:r}};var ci;!function(e){e.error="error",e.info="info",e.warn="warn"}(ci||(ci={}));const pi=async({logType:e,buildingSlug:n,orgSlug:i,logTitle:r,logData:o})=>{await t().post("https://app.meetelise.com/platformApi/webchat/logging",{...o},{headers:{"Content-Type":"application/json","building-slug":null!=n?n:"","org-slug":null!=i?i:"","log-type":null!=e?e:ci.error,"log-title":r.toUpperCase().replace(/\s/g,"_")}})};async function hi(e,n){const i="https://app.meetelise.com",r=`${i}/api/pub/v1/organization/${e}/building/${n}`,o=`${i}/eliseCrmApi/pub/building/${n}/units`,a=`${i}/eliseCrmApi/pub/building/${n}/layouts`,[s,u,l]=await Promise.all([t().get(r),t().get(o),t().get(a)]),d=s.data,c=u.data,p=l.data;return d.unitOptionsV2=c,d.layoutOptionsV2=p,d}var fi,mi;async function gi(e){try{const n=await t().get(`https://app.meetelise.com/eliseCrmApi/webchat/config/building/${e}`);if(n.data)return Dn(n.data)}catch(e){return null}return null}async function vi(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}async function yi(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Qn(),building_slug:e,referrer:n,campaign_sources:di()})).data}catch(e){return null}}!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(fi||(fi={})),function(e){e.ConceptEmoji="Concept 2 (Blue/White)"}(mi||(mi={}));const bi=u`
1212
1212
  * {
1213
1213
  font-family: "Helvetica Neue", Arial;
1214
1214
  font-size: 14px;
@@ -2378,7 +2378,6 @@ otherwise there's some empty space at the bottom of the button, which interferes
2378
2378
  `,this.render=()=>k`
2379
2379
  <details-window
2380
2380
  height=${this.hasTextUsEnabled?"600px":"443px"}
2381
- headerText="${this.chatCallUsHeader}"
2382
2381
  .onCloseClick=${this.onCloseClicked}
2383
2382
  >
2384
2383
  ${this.hasCallUsEnabled?k` <div id="call-us-window__content-wrapper">
@@ -2480,7 +2479,6 @@ otherwise there's some empty space at the bottom of the button, which interferes
2480
2479
  }
2481
2480
 
2482
2481
  .text-us-wrapper {
2483
- margin-top: 33px;
2484
2482
  color: #202020;
2485
2483
  }
2486
2484
  .text-us-window__header {
@@ -2565,7 +2563,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
2565
2563
  justify-content: center;
2566
2564
  align-items: center;
2567
2565
  }
2568
- `;var Wi=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 Vi=class extends re{constructor(){super(...arguments),this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onChatTapped=()=>{},this.hideChat=!1,this.isMobile=!1,this.brandColor=Fe,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasCallUsEnabled=!1,this.hasSSTEnabled=!1,this.renderListElement=(e,t,n)=>e?k` <li
2566
+ `;var Wi=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 Vi=class extends re{constructor(){super(...arguments),this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onChatTapped=()=>{},this.hideChat=!1,this.isMobile=!1,this.brandColor=Fe,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasCallUsEnabled=!1,this.hasTextUsEnabled=!1,this.hasSSTEnabled=!1,this.renderListElement=(e,t,n)=>e?k` <li
2569
2567
  @click=${t}
2570
2568
  class="typeMobile-bttn"
2571
2569
  style=${_e({background:`${this.brandColor}`})}
@@ -2576,7 +2574,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
2576
2574
  </li>`:""}render(){return k`<div class="typeMobile-list">
2577
2575
  <ul>
2578
2576
  ${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,Fi)}
2579
- ${this.renderListElement(this.hasCallUsEnabled,this.onClickPhoneOption,_i)}
2577
+ ${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,_i)}
2580
2578
  ${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,Pi)}
2581
2579
  ${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,Di)}
2582
2580
  ${this.isMobile||this.hideChat?"":k`
@@ -2587,7 +2585,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
2587
2585
  ></minimize-expand-button>
2588
2586
  `}
2589
2587
  </ul>
2590
- </div>`}};Vi.styles=[Qi],Wi([ue({attribute:!0})],Vi.prototype,"onClickMinimize",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickEmailOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickPhoneOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickSSTOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onChatTapped",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hideChat",void 0),Wi([ue({attribute:!0})],Vi.prototype,"isMobile",void 0),Wi([ue({attribute:!0})],Vi.prototype,"brandColor",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasChatEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasEmailEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasCallUsEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasSSTEnabled",void 0),Vi=Wi([ae("mobile-launcher")],Vi);var Ki=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 Xi=class extends re{constructor(){super(...arguments),this.isMobile=!1,this.isMinimized=!1,this.isFirstMount=!1,this.autoOpenChatWidget=!1,this.phoneNumber="",this.buildingName="",this.chatId="",this.chatCallUsHeader="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.designConcept="",this.featureFlagShowDropdown="",this.leadSources=[],this.currentLeadSource="",this.escortedToursLink="",this.virtualToursLink="",this.hasCallUsEnabled=!1,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasSSTEnabled=!1,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.showTourNextToChat=!1,this.onChatTapped=()=>{},this.onClickMinimize=()=>{},this.launcherStyles={},this.brandColor=Fe,this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber&&this.hasCallUsEnabled,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Ae(),this.tourSchedulerRef=Ae(),this.updated=async()=>{this.attachOnClickToEmailUsWindow(),this.attachOnClickToSSTWindow(),(this.isEmailWindowOpen||this.isCallUsWindowOpen)&&this.isSSTWindowOpen&&this.onCloseSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return k`
2588
+ </div>`}};Vi.styles=[Qi],Wi([ue({attribute:!0})],Vi.prototype,"onClickMinimize",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickEmailOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickPhoneOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onClickSSTOption",void 0),Wi([ue({attribute:!0})],Vi.prototype,"onChatTapped",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hideChat",void 0),Wi([ue({attribute:!0})],Vi.prototype,"isMobile",void 0),Wi([ue({attribute:!0})],Vi.prototype,"brandColor",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasChatEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasEmailEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasCallUsEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasTextUsEnabled",void 0),Wi([ue({attribute:!0})],Vi.prototype,"hasSSTEnabled",void 0),Vi=Wi([ae("mobile-launcher")],Vi);var Ki=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 Xi=class extends re{constructor(){super(...arguments),this.isMobile=!1,this.isMinimized=!1,this.isFirstMount=!1,this.autoOpenChatWidget=!1,this.phoneNumber="",this.buildingName="",this.chatId="",this.chatCallUsHeader="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.designConcept="",this.featureFlagShowDropdown="",this.leadSources=[],this.currentLeadSource="",this.escortedToursLink="",this.virtualToursLink="",this.hasCallUsEnabled=!1,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasSSTEnabled=!1,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.showTourNextToChat=!1,this.onChatTapped=()=>{},this.onClickMinimize=()=>{},this.launcherStyles={},this.brandColor=Fe,this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber&&this.hasCallUsEnabled,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Ae(),this.tourSchedulerRef=Ae(),this.updated=async()=>{this.attachOnClickToEmailUsWindow(),this.attachOnClickToSSTWindow(),(this.isEmailWindowOpen||this.isCallUsWindowOpen)&&this.isSSTWindowOpen&&this.onCloseSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return k`
2591
2589
  <div
2592
2590
  @click=${this.onClickEmailOption}
2593
2591
  class="launcher__call-to-action-option"
@@ -2619,6 +2617,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
2619
2617
  .hasChatEnabled=${this.hasChatEnabled}
2620
2618
  .hasEmailEnabled=${this.hasEmailEnabled}
2621
2619
  .hasCallUsEnabled=${this.phoneNumber&&this.hasCallUsEnabled}
2620
+ .hasTextUsEnabled=${this.hasTextUsEnabled}
2622
2621
  .hasSSTEnabled=${this.hasSSTEnabled}
2623
2622
  ></mobile-launcher>`:this.designConcept===fi.EMOJI?k`
2624
2623
  <div
@@ -2675,8 +2674,8 @@ otherwise there's some empty space at the bottom of the button, which interferes
2675
2674
  <div class="type-hey__pill-left">
2676
2675
  <div class="type-hey__icon">${_i}</div>
2677
2676
  <div>
2678
- ${this.hasCallUsEnabled&&this.hasTextUsEnabled?k` <span class="title-bold">Call</span
2679
- >or<span class="title-bold">text</span> us`:""}
2677
+ ${this.hasCallUsEnabled&&this.hasTextUsEnabled?k` <span class="title-bold">Call</span> or
2678
+ <span class="title-bold">text</span> us`:""}
2680
2679
  ${this.hasCallUsEnabled&&!this.hasTextUsEnabled?k` <span class="title-bold">Call</span> us`:""}
2681
2680
  ${!this.hasCallUsEnabled&&this.hasTextUsEnabled?k` <span class="title-bold">Text</span> us`:""}
2682
2681
 
@@ -85,7 +85,6 @@ export class CallUsWindow extends LitElement {
85
85
  }
86
86
 
87
87
  .text-us-wrapper {
88
- margin-top: 33px;
89
88
  color: #202020;
90
89
  }
91
90
  .text-us-window__header {
@@ -316,7 +315,6 @@ export class CallUsWindow extends LitElement {
316
315
  return html`
317
316
  <details-window
318
317
  height=${this.hasTextUsEnabled ? "600px" : "443px"}
319
- headerText="${this.chatCallUsHeader}"
320
318
  .onCloseClick=${this.onCloseClicked}
321
319
  >
322
320
  ${this.hasCallUsEnabled
@@ -277,6 +277,7 @@ export class Launcher extends LitElement {
277
277
  .hasChatEnabled=${this.hasChatEnabled}
278
278
  .hasEmailEnabled=${this.hasEmailEnabled}
279
279
  .hasCallUsEnabled=${this.phoneNumber && this.hasCallUsEnabled}
280
+ .hasTextUsEnabled=${this.hasTextUsEnabled}
280
281
  .hasSSTEnabled=${this.hasSSTEnabled}
281
282
  ></mobile-launcher>`;
282
283
  }
@@ -351,8 +352,8 @@ export class Launcher extends LitElement {
351
352
  <div>
352
353
  ${
353
354
  this.hasCallUsEnabled && this.hasTextUsEnabled
354
- ? html` <span class="title-bold">Call</span
355
- >or<span class="title-bold">text</span> us`
355
+ ? html` <span class="title-bold">Call</span> or
356
+ <span class="title-bold">text</span> us`
356
357
  : ""
357
358
  }
358
359
  ${
@@ -54,6 +54,9 @@ export class MobileLauncher extends LitElement {
54
54
  @property({ attribute: true })
55
55
  hasCallUsEnabled = false;
56
56
 
57
+ @property({ attribute: true })
58
+ hasTextUsEnabled = false;
59
+
57
60
  @property({ attribute: true })
58
61
  hasSSTEnabled = false;
59
62
 
@@ -87,7 +90,7 @@ export class MobileLauncher extends LitElement {
87
90
  EmailBlackOutlineIcon
88
91
  )}
89
92
  ${this.renderListElement(
90
- this.hasCallUsEnabled,
93
+ this.hasCallUsEnabled || this.hasTextUsEnabled,
91
94
  this.onClickPhoneOption,
92
95
  PhoneBlackOutlineIcon
93
96
  )}
package/src/analytics.ts CHANGED
@@ -67,7 +67,7 @@ export default class Analytics {
67
67
  featureFlags: this.featureFlags,
68
68
  campaignSources: getCampaignSources(),
69
69
  incomingProcessedLeadSource: this.incomingProcessedLeadSource, // if we already know the lead source, send it along
70
- webchatVersion: process.env.npm_package_version ?? "1.20.111",
70
+ webchatVersion: process.env.npm_package_version ?? "1.20.116",
71
71
  }),
72
72
  }
73
73
  );