@meetelise/chat 1.20.50 → 1.20.52

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.50",
3
+ "version": "1.20.52",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -42,7 +42,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  color: #202020;
45
- font-family: "Helvetica Neue";
45
+ font-family: "Helvetica Neue", Arial;
46
46
  }
47
47
 
48
48
  :host([selected]) .text {
@@ -124,7 +124,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
124
124
  `}};Gt.styles=u`
125
125
  :host {
126
126
  box-sizing: border-box;
127
- font-family: "Helvetica Neue";
127
+ font-family: "Helvetica Neue", Arial;
128
128
  color: #202020;
129
129
  font-style: normal;
130
130
  }
@@ -262,7 +262,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
262
262
 
263
263
  :host {
264
264
  color: #202020;
265
- font-family: "Helvetica Neue";
265
+ font-family: "Helvetica Neue", Arial;
266
266
  }
267
267
 
268
268
  #optionContainer {
@@ -330,7 +330,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
330
330
  outline: none;
331
331
 
332
332
  color: #202020;
333
- font-family: "Helvetica Neue";
333
+ font-family: "Helvetica Neue", Arial;
334
334
  font-style: normal;
335
335
  font-weight: 400;
336
336
  font-size: 14px;
@@ -356,7 +356,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
356
356
 
357
357
  .webchat-input::placeholder {
358
358
  color: rgba(32, 32, 32, 0.5);
359
- font-family: "Helvetica Neue";
359
+ font-family: "Helvetica Neue", Arial;
360
360
  font-size: 14px;
361
361
  }
362
362
  `;var Yt=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 Kt=class extends re{constructor(){super(),this.options=[],this.placeholder="Select",this.activeOption=null,this.isOpen=!1,this.toggleSelect=()=>{this.isOpen&&(this.activeOption=null),this.isOpen=!this.isOpen},this.setSelectedOption=(e,t=!0)=>{this.value!==e.value?this.value=e.value:this.value=void 0,t&&(this.isOpen=!this.isOpen,this.activeOption=null),this.value?this.meSelect.style.color="rgba(32, 32, 32, 1)":this.meSelect.style.color="rgba(32, 32, 32, 0.5)",this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this.handleKeydown=(e,t)=>n=>{("string"==typeof e&&n.key===e||"object"==typeof e&&e.includes(n.key))&&t()},this.firstUpdated=()=>{this.value&&this.meSelect&&(this.meSelect.style.color="rgba(32, 32, 32, 1)")},document.addEventListener("click",(e=>{e.composedPath().includes(this.meSelect)||(this.isOpen=!1)}))}render(){var e,t;return U`
@@ -423,7 +423,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
423
423
 
424
424
  font-size: 14px;
425
425
  line-height: 14px;
426
- font-family: "Helvetica Neue";
426
+ font-family: "Helvetica Neue", Arial;
427
427
  }
428
428
 
429
429
  #select {
@@ -769,7 +769,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
769
769
  background: #ffffff;
770
770
  box-shadow: 0px 16px 18px 10px rgba(21, 21, 21, 0.4);
771
771
  border-radius: 10px;
772
- font-family: "Helvetica Neue";
772
+ font-family: "Helvetica Neue", Arial;
773
773
  color: #202020;
774
774
  padding: 0 25px 0 27px;
775
775
 
@@ -1073,7 +1073,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1073
1073
  background: #202020;
1074
1074
  border: 1px solid #ffffff;
1075
1075
  border-radius: 10px;
1076
- font-family: "Helvetica Neue";
1076
+ font-family: "Helvetica Neue", Arial;
1077
1077
  font-weight: 700;
1078
1078
  font-size: 14px;
1079
1079
  color: #ffffff;
@@ -1144,7 +1144,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1144
1144
  }
1145
1145
  `,Xt],En([ue({attribute:!1})],Fn.prototype,"layoutOptions",void 0),En([ue({attribute:!1})],Fn.prototype,"unitOptions",void 0),En([ue({attribute:!1})],Fn.prototype,"tourTypeOptions",void 0),En([ue({attribute:!0})],Fn.prototype,"chatId",void 0),En([ue({type:Number})],Fn.prototype,"buildingId",void 0),En([ue({attribute:!0})],Fn.prototype,"buildingSlug",void 0),En([ue({attribute:!0})],Fn.prototype,"sgtUrl",void 0),En([ue({attribute:!0})],Fn.prototype,"escortedToursLink",void 0),En([ue({attribute:!0})],Fn.prototype,"virtualToursLink",void 0),En([ue({attribute:!0})],Fn.prototype,"orgSlug",void 0),En([le()],Fn.prototype,"tourType",void 0),En([le()],Fn.prototype,"shouldShowTourType",void 0),En([le()],Fn.prototype,"email",void 0),En([le()],Fn.prototype,"phoneNumber",void 0),En([le()],Fn.prototype,"availabilitiesGroupedByDay",void 0),En([le()],Fn.prototype,"waitingForAvailabilities",void 0),En([le()],Fn.prototype,"selectedDate",void 0),En([le()],Fn.prototype,"selectedTime",void 0),En([le()],Fn.prototype,"mobilePageIndex",void 0),En([le()],Fn.prototype,"isSubmitting",void 0),En([le()],Fn.prototype,"tourIsBooked",void 0),En([ue({attribute:!1})],Fn.prototype,"leadSources",void 0),En([ue({attribute:!0})],Fn.prototype,"currentLeadSource",void 0),En([de(".nameContainer#firstName input")],Fn.prototype,"firstNameInput",void 0),En([de(".nameContainer#lastName input")],Fn.prototype,"lastNameInput",void 0),En([de(".inputContainer#email input")],Fn.prototype,"emailInput",void 0),En([de(".inputContainer#phone input")],Fn.prototype,"phoneInput",void 0),En([de("me-select#unitType")],Fn.prototype,"unitTypeSelect",void 0),En([de("me-select#layoutType")],Fn.prototype,"layoutTypeSelect",void 0),En([de("me-select#leadSource")],Fn.prototype,"selectedLeadSource",void 0),Fn=En([ae("tour-scheduler")],Fn),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(_n||(_n={}));const Mn={[_n.Guided]:$t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[_n.Self]:$t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[_n.Virtual]:$t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},Pn={[_n.Guided]:"escorted-tour",[_n.Self]:"self-guided-tour",[_n.Virtual]:"live-virtual-tour"},Dn=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(Cn.isNumber).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(Cn.isString);class qn{constructor(e,t,n){this.org=e,this.building=t,this.chatId=n,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){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:Un()})})}}const Un=()=>{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 Bn,Jn=new Uint8Array(16);function kn(){if(!Bn&&!(Bn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bn(Jn)}const Ln=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,jn=function(e){return"string"==typeof e&&Ln.test(e)};for(var Hn=[],Gn=0;Gn<256;++Gn)Hn.push((Gn+256).toString(16).substr(1));const Wn=function(e,t,n){var i=(e=e||{}).random||(e.rng||kn)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Hn[e[t+0]]+Hn[e[t+1]]+Hn[e[t+2]]+Hn[e[t+3]]+"-"+Hn[e[t+4]]+Hn[e[t+5]]+"-"+Hn[e[t+6]]+Hn[e[t+7]]+"-"+Hn[e[t+8]]+Hn[e[t+9]]+"-"+Hn[e[t+10]]+Hn[e[t+11]]+Hn[e[t+12]]+Hn[e[t+13]]+Hn[e[t+14]]+Hn[e[t+15]]).toLowerCase();if(!jn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Qn(e,t){const n=zn(e,t),i=Wn();return localStorage.setItem(n,i),Vn(e,t),i}function Vn(e,t){const n=Xn(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function zn(e,t){return`com.meetelise.chatID-${e}-${t}`}function Xn(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const Yn="#FFFFFF",Kn="#202020",Zn={user:{textColor:Yn,backgroundColor:"#1990FF"},agent:{textColor:Yn,backgroundColor:"#1E1E1E"}},$n={user:{textColor:Yn,backgroundColor:"#83818E"},agent:{textColor:Yn,backgroundColor:Kn}},ei={Light:{chatHeader:{backgroundColor:Yn,textColor:Kn},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:Zn},Dark:{chatHeader:{backgroundColor:Kn,textColor:Yn},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:Zn},Purple:{chatHeader:{backgroundColor:"#550098",textColor:Yn},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:Zn},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:Yn},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:Zn},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:Kn},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:$n},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:Yn},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:Zn},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:Kn},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:$n},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:Yn},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:Zn},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:Yn},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:Zn},Glass:{chatHeader:{backgroundColor:Yn,textColor:Kn},chatPaneBackgroundColor:"rgba(38, 38, 38, 0.4)",message:{user:{textColor:"#FFFFFF",backgroundColor:"#4d4d4d"},agent:{textColor:"#000000",backgroundColor:"#FFFFFF"}}}},ti=e=>ei[e&&Object.keys(ei).includes(e)?e:"Light"];function ni(e,t,n,i,r,o){var a;const s=new Ie.User({id:`building_${t.id}`,name:t.userFirstName,email:null,role:"Default",welcomeMessage:t.welcomeMessage,availabilityText:t.systemWelcomeMessage}),u=e.getOrCreateConversation(r);return u.setParticipant(e.me),u.setParticipant(s),u.subject=16===t.orgId?"Leasing team":null!==(a=t.chatTitle)&&void 0!==a?a:t.userFirstName,u.custom={buildingId:t.id.toString(),userId:t.userId.toString(),orgId:t.orgId.toString(),subtitle:t.chatSubtitle,url:location.href,buildingName:t.name,isMobile:o.toString(),chatHeaderBackgroundColor:n.chatHeader.backgroundColor,chatHeaderTextColor:n.chatHeader.textColor,chatPaneBackgroundColor:n.chatPaneBackgroundColor,userMessageTextColor:n.message.user.textColor,userMessageBackgroundColor:n.message.user.backgroundColor,agentMessageTextColor:n.message.agent.textColor,agentMessageBackgroundColor:n.message.agent.backgroundColor,isLightTheme:(n.message===$n).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}var ii;!function(e){e.ConceptBlueBlack="Concept 1 (Blue/Black)",e.ConceptBlueWhite="Concept 2 (Blue/White)"}(ii||(ii={}));const ri=u`
1146
1146
  * {
1147
- font-family: "Helvetica Neue";
1147
+ font-family: "Helvetica Neue", Arial;
1148
1148
  font-size: 14px;
1149
1149
  }
1150
1150
  :host {
@@ -1162,7 +1162,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1162
1162
  }
1163
1163
  }
1164
1164
  .launcher {
1165
- font-family: "Helvetica Neue";
1165
+ font-family: "Helvetica Neue", Arial;
1166
1166
  user-select: none;
1167
1167
  position: fixed;
1168
1168
  }
@@ -1259,7 +1259,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1259
1259
  }
1260
1260
 
1261
1261
  .launcher__primary-action-text {
1262
- font-family: "Helvetica Neue";
1262
+ font-family: "Helvetica Neue", Arial;
1263
1263
  font-weight: 700;
1264
1264
  font-size: 24px;
1265
1265
  line-height: 22px;
@@ -1340,7 +1340,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1340
1340
  .launcher__mini-launcher-wrapper {
1341
1341
  position: fixed;
1342
1342
  right: 0px;
1343
- bottom: 130px;
1343
+ bottom: 210px;
1344
1344
  z-index: 100000;
1345
1345
  display: flex;
1346
1346
  align-items: center;
@@ -1475,7 +1475,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1475
1475
  align-items: center;
1476
1476
  gap: 7px;
1477
1477
 
1478
- font-family: "Helvetica Neue";
1478
+ font-family: "Helvetica Neue", Arial;
1479
1479
  font-style: normal;
1480
1480
  font-size: 15px;
1481
1481
  line-height: 18px;
@@ -1560,7 +1560,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1560
1560
  margin-top: 4px;
1561
1561
  }
1562
1562
  .type-gradient__chat-header > .title-bold {
1563
- font-family: "Helvetica Neue";
1563
+ font-family: "Helvetica Neue", Arial;
1564
1564
  font-style: normal;
1565
1565
  font-size: 22px;
1566
1566
  line-height: 28px;
@@ -1568,7 +1568,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1568
1568
  opacity: 0.95;
1569
1569
  }
1570
1570
  .type-gradient__chat-header {
1571
- font-family: "Helvetica Neue";
1571
+ font-family: "Helvetica Neue", Arial;
1572
1572
  font-style: normal;
1573
1573
  font-size: 22px;
1574
1574
  line-height: 28px;
@@ -1581,7 +1581,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1581
1581
  list-style: none;
1582
1582
  }
1583
1583
  .type-gradient__description > li {
1584
- font-family: "Helvetica Neue";
1584
+ font-family: "Helvetica Neue", Arial;
1585
1585
  font-style: normal;
1586
1586
  font-weight: 300;
1587
1587
  font-size: 18px;
@@ -1598,7 +1598,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1598
1598
  }
1599
1599
 
1600
1600
  .type-gradient__bottom-tab {
1601
- font-family: "Helvetica Neue";
1601
+ font-family: "Helvetica Neue", Arial;
1602
1602
  font-style: normal;
1603
1603
  font-weight: 400;
1604
1604
  font-size: 16px;
@@ -1629,6 +1629,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1629
1629
  margin-right: 24px;
1630
1630
 
1631
1631
  background: linear-gradient(139.82deg, #5770f5 -33.12%, #ffffff 111.99%);
1632
+ border: 2px solid #a6b4ff;
1632
1633
 
1633
1634
  border-radius: 16px;
1634
1635
  display: flex;
@@ -1636,6 +1637,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1636
1637
  justify-content: center;
1637
1638
  align-items: center;
1638
1639
  position: relative;
1640
+ overflow: hidden;
1639
1641
  }
1640
1642
  .type-hey__chat-container {
1641
1643
  position: absolute;
@@ -1729,7 +1731,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1729
1731
  gap: 4px;
1730
1732
  }
1731
1733
  .type-hey__greeting > h1 {
1732
- font-family: "Helvetica Neue";
1734
+ font-family: "Helvetica Neue", Arial;
1733
1735
  font-style: normal;
1734
1736
  font-weight: 500;
1735
1737
  font-size: 20px;
@@ -1772,7 +1774,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1772
1774
  gap: 8px;
1773
1775
  }
1774
1776
  .type-hey__ask-start > h2 {
1775
- font-family: "Helvetica Neue";
1777
+ font-family: "Helvetica Neue", Arial;
1776
1778
  font-style: normal;
1777
1779
  font-weight: 400;
1778
1780
  font-size: 12px;
@@ -1782,7 +1784,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1782
1784
 
1783
1785
  .type-hey__bottom-info {
1784
1786
  margin-top: 16px;
1785
- font-family: "Helvetica Neue";
1787
+ font-family: "Helvetica Neue", Arial;
1786
1788
  font-style: normal;
1787
1789
  font-size: 10px;
1788
1790
  line-height: 140%;
@@ -1792,7 +1794,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1792
1794
  font-weight: 700;
1793
1795
  }
1794
1796
  .heavy-blue {
1795
- font-family: "Helvetica Neue";
1797
+ font-family: "Helvetica Neue", Arial;
1796
1798
  font-style: normal;
1797
1799
  font-size: 10px;
1798
1800
  line-height: 140%;
@@ -1839,7 +1841,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1839
1841
  align-items: center;
1840
1842
  height: 18px;
1841
1843
 
1842
- font-family: "Helvetica Neue";
1844
+ font-family: "Helvetica Neue", Arial;
1843
1845
  font-style: normal;
1844
1846
  font-size: 12px;
1845
1847
  font-weight: 700;
@@ -1939,7 +1941,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1939
1941
 
1940
1942
  border-radius: 20px;
1941
1943
 
1942
- font-family: "Helvetica Neue";
1944
+ font-family: "Helvetica Neue", Arial;
1943
1945
  font-style: normal;
1944
1946
  font-weight: 400;
1945
1947
  font-size: 12px;
@@ -2082,7 +2084,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2082
2084
  font-size: 14px;
2083
2085
  line-height: 22px;
2084
2086
 
2085
- font-family: "Helvetica";
2087
+ font-family: "Helvetica", Arial;
2086
2088
  font-style: normal;
2087
2089
  font-weight: 700;
2088
2090
  font-size: 14px;
@@ -2257,7 +2259,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2257
2259
 
2258
2260
  .email-us__error-text {
2259
2261
  margin-top: 4px;
2260
- font-family: "Helvetica";
2262
+ font-family: "Helvetica", Arial;
2261
2263
  font-style: normal;
2262
2264
  font-weight: 400;
2263
2265
  font-size: 12px;
@@ -2352,7 +2354,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2352
2354
  color: #202020;
2353
2355
  }
2354
2356
  .text-us-window__header {
2355
- font-family: "Helvetica Neue";
2357
+ font-family: "Helvetica Neue", Arial;
2356
2358
  font-style: normal;
2357
2359
  font-weight: 700;
2358
2360
  line-height: 140%;
@@ -2376,7 +2378,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2376
2378
  }
2377
2379
  .text-us-window__description,
2378
2380
  .text-us-window__error {
2379
- font-family: "Helvetica";
2381
+ font-family: "Helvetica Neue", Arial;
2380
2382
  font-style: normal;
2381
2383
  font-weight: 400;
2382
2384
  font-size: 10px;
@@ -2557,13 +2559,13 @@ xmlns="http://www.w3.org/2000/svg"
2557
2559
  </details-window>
2558
2560
  `}};Di.styles=[u`
2559
2561
  #call-us-window__content-wrapper {
2560
- font-family: "Helvetica Neue";
2562
+ font-family: "Helvetica Neue", Arial;
2561
2563
  font-style: normal;
2562
2564
  color: 11ee1e;
2563
2565
  font-size: 14px;
2564
2566
  }
2565
2567
  .call-us-window__header {
2566
- font-family: "Helvetica Neue";
2568
+ font-family: "Helvetica Neue", Arial;
2567
2569
  font-style: normal;
2568
2570
  font-weight: 700;
2569
2571
  line-height: 140%;
@@ -2865,7 +2867,7 @@ xmlns="http://www.w3.org/2000/svg"
2865
2867
  `:""}
2866
2868
  ${this.isCallToActionWindowOpen()?"":this.renderActionPills()}
2867
2869
  </div>
2868
- `}};Bi.styles=ri,Ui([ue({type:Boolean})],Bi.prototype,"isMobile",void 0),Ui([ue({type:Boolean})],Bi.prototype,"isFirstMount",void 0),Ui([ue()],Bi.prototype,"backgroundColor",void 0),Ui([ue()],Bi.prototype,"textColor",void 0),Ui([ue({type:Boolean})],Bi.prototype,"isMini",void 0),Ui([ue({attribute:!1})],Bi.prototype,"autoOpenChatWidget",void 0),Ui([ue()],Bi.prototype,"phoneNumber",void 0),Ui([ue({attribute:!0})],Bi.prototype,"chatId",void 0),Ui([ue({attribute:!0})],Bi.prototype,"chatCallUsHeader",void 0),Ui([ue({attribute:!1})],Bi.prototype,"buildingId",void 0),Ui([ue({attribute:!0})],Bi.prototype,"buildingSlug",void 0),Ui([ue({attribute:!0})],Bi.prototype,"orgSlug",void 0),Ui([ue({attribute:!0})],Bi.prototype,"sgtUrl",void 0),Ui([ue({attribute:!0})],Bi.prototype,"buildingABTestType",void 0),Ui([ue({attribute:!1})],Bi.prototype,"leadSources",void 0),Ui([ue({attribute:!0})],Bi.prototype,"currentLeadSource",void 0),Ui([ue({attribute:!0})],Bi.prototype,"escortedToursLink",void 0),Ui([ue({attribute:!0})],Bi.prototype,"virtualToursLink",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasCallUsEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasChatEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasEmailEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasSSTEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasTextUsEnabled",void 0),Ui([ue({attribute:!1})],Bi.prototype,"layoutOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"unitOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"tourTypeOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"onChatTapped",void 0),Ui([ue({attribute:!1})],Bi.prototype,"launcherStyles",void 0),Ui([le()],Bi.prototype,"isEmailWindowOpen",void 0),Ui([le()],Bi.prototype,"isCallUsWindowOpen",void 0),Ui([le()],Bi.prototype,"isSSTWindowOpen",void 0),Ui([le()],Bi.prototype,"isTextUsWindowOpen",void 0),Bi=Ui([ae("meetelise-launcher")],Bi);var Ji=n(3379),ki=n.n(Ji),Li=n(7795),ji=n.n(Li),Hi=n(569),Gi=n.n(Hi),Wi=n(3565),Qi=n.n(Wi),Vi=n(9216),zi=n.n(Vi),Xi=n(4589),Yi=n.n(Xi),Ki=n(3631),Zi={};Zi.styleTagTransform=Yi(),Zi.setAttributes=Qi(),Zi.insert=Gi().bind(null,"head"),Zi.domAPI=ji(),Zi.insertStyleElement=zi(),ki()(Ki.Z,Zi),Ki.Z&&Ki.Z.locals&&Ki.Z.locals;var $i,er=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 tr=$i=class extends re{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.themeId="Glass",this.useMiniWidget=!0,this.launcherStyles={},this.popup=null,this.theme=ti(),this.chatId="",this.analytics=null,this.isMobile=xn(),this.launcher=null,this.building=null,this.buildingABTestType=null,this.leadSources=null,this.currentLeadSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.talkjsPopupElement=null,this.yardiDNIScriptInterval=null,this.launcherRef=Ae(),this.initializeInstanceVariables=async()=>{await this.setBuildingDerivedInfo(),await this.initializeLaunchJS(),this.attachOnClickToLauncher(),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,n;if(!this.buildingSlug||!this.orgSlug)return;this.building=await async function(e,t){const n="https://app.meetelise.com",i=`${n}/api/pub/v1/organization/${e}/building/${t}`,r=await fetch(i),o=await r.json(),a=await fetch(`${n}/eliseCrmApi/pub/building/${t}/units`),s=await a.json(),u=await fetch(`${n}/eliseCrmApi/pub/building/${t}/layouts`),l=await u.json();return o.unitOptionsV2=s,o.layoutOptionsV2=l,o}(this.orgSlug,this.buildingSlug);const i=await async function(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}(this.buildingSlug);this.leadSources=await async function(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/lead-sources`)).data}catch(e){return[]}}(this.buildingSlug),this.currentLeadSource=await async function(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Rn(),building_slug:e,referrer:n,campaign_sources:Un()})).data}catch(e){return null}}(this.buildingSlug,document.referrer),this.currentLeadSource&&(this.leadSources.includes(this.currentLeadSource)||this.leadSources.push(this.currentLeadSource)),0===this.leadSources.length&&(this.leadSources=["Other"],this.currentLeadSource||(this.currentLeadSource=this.leadSources[0])),this.buildingABTestType=null!==(e=null==i?void 0:i.abTestType)&&void 0!==e?e:"",bn(this.building.id),this.chatId=function(e,t){const n=zn(e,t),i=localStorage.getItem(n);return i&&!function(e,t){const n=Xn(e,t),i=localStorage.getItem(n)||Vn(e,t),r=new Date(new Date(i).getTime()+216e5);return new Date>r}(e,t)?i:Qn(e,t)}(this.orgSlug,this.buildingSlug),this.avatarSrc=this.avatarSrc||this.building.avatarSrc,this.theme=ti(null!==(n=this.themeId)&&void 0!==n?n:this.building.themeId),this.analytics=new qn(this.orgSlug,this.buildingSlug,this.chatId),this.analytics.ping("webchat_heartbeat")},this.initializeLaunchJS=async()=>{var e;if(!this.building||!this.theme)return;if(this.popup&&this.launcher)return;const[t,n,i,r]=await Promise.all([this.building,this.theme,this.avatarSrc,$i.session]);if(t.conversationMaintenanceMode)return new Promise((()=>{console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear.")}));await this.configureTalkJSPopup(t,n,r,i),this.configureLauncherElement(),null===(e=this.analytics)||void 0===e||e.ping("load"),this.yardiDNIScriptInterval=setInterval((()=>this.pollForYardiCampaignSource()),1e3),setTimeout(clearInterval,15e3,this.yardiDNIScriptInterval)},this.configureLauncherElement=()=>{this.popup&&this.launcherRef.value&&(this.launcher=this.launcherRef.value)},this.configureTalkJSPopup=async(e,t,n,i)=>{var r;const o=n.createPopup(ni(n,e,t,i||e.avatarSrc,this.chatId,this.isMobile),{launcher:"never",showCloseInHeader:!0,messageField:{placeholder:"Ask a question..."}});await o.mount({show:!1}),o.on("close",(()=>{this.hideLauncher=!1}));const a=document.querySelector(".__talkjs_popup");if(this.talkjsPopupElement=a,!a)throw new Error("Failed to find chat window");a.classList.add("meetelise-chat","pane"),this.isMobile||a.classList.add("launcher__desktop"),a.style.zIndex="99999999999",this.popup=o;const s=sessionStorage.getItem("autoOpenedTimestamp"),u=!s||s&&nn(on(s));e.autoOpenChatWidget&&u&&!xn()&&(this.popup.show(),this.hideLauncher=!0,this.hasMounted=!0,sessionStorage.setItem("autoOpenedTimestamp",Zt(function(e,t){Pe(2,arguments);var n=Ke(t);return Ze(e,6e4*n)}(new Date,15))),null===(r=this.analytics)||void 0===r||r.ping("autoOpen"))},this.firstUpdated=()=>{this.initializeInstanceVariables()},this.handleContactClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e)},this.handleContactTabClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickPhoneOption(e)},this.adjustTopHeaderContactCoords=()=>{var e;if(this.talkjsPopupElement){const t=function(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}(this.talkjsPopupElement),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("contactTabPopup");if(!n)return;n.style.left=`${t.left+20}px`,n.style.top=t.top-50+"px"}},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{var e;this.popup&&(this.popup.show(),null===(e=this.analytics)||void 0===e||e.ping("open"),this.hideLauncher=!0,this.hasMounted=!0)})}}pollForYardiCampaignSource(){var e,t,n;(null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&(null===(n=this.analytics)||void 0===n||n.ping("yardi-DNI-init"),this.yardiDNIScriptInterval&&clearInterval(this.yardiDNIScriptInterval))}async restartConversation(){if(!(this.analytics&&this.analytics.chatId&&this.building&&this.popup&&$i.session))return;this.chatId=Qn(this.orgSlug,this.buildingSlug);const e=await $i.session;this.analytics.chatId=this.chatId,this.popup.select(ni(e,this.building,this.theme,this.avatarSrc||this.building.avatarSrc,this.chatId,this.isMobile))}remove(){var e;null===(e=this.popup)||void 0===e||e.destroy()}open(){var e;null===(e=this.popup)||void 0===e||e.show()}close(){var e;null===(e=this.popup)||void 0===e||e.hide()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustTopHeaderContactCoords)}disconnectedCallback(){window.removeEventListener("resize",this.adjustTopHeaderContactCoords),super.disconnectedCallback()}updated(){this.adjustTopHeaderContactCoords()}render(){var e,t,n,i,r,o,a,s,u,l,d,c,p,f,h,m,v,g,y,w,b,S,T,A,x,C,O,I,N,R,E,F;window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Bi);const _=!this.hideLauncher||this.isLoading||"Concept 1 (Blue/Black)"!==this.buildingABTestType||this.isMobile;return U`
2870
+ `}};Bi.styles=ri,Ui([ue({type:Boolean})],Bi.prototype,"isMobile",void 0),Ui([ue({type:Boolean})],Bi.prototype,"isFirstMount",void 0),Ui([ue()],Bi.prototype,"backgroundColor",void 0),Ui([ue()],Bi.prototype,"textColor",void 0),Ui([ue({type:Boolean})],Bi.prototype,"isMini",void 0),Ui([ue({attribute:!1})],Bi.prototype,"autoOpenChatWidget",void 0),Ui([ue()],Bi.prototype,"phoneNumber",void 0),Ui([ue({attribute:!0})],Bi.prototype,"chatId",void 0),Ui([ue({attribute:!0})],Bi.prototype,"chatCallUsHeader",void 0),Ui([ue({attribute:!1})],Bi.prototype,"buildingId",void 0),Ui([ue({attribute:!0})],Bi.prototype,"buildingSlug",void 0),Ui([ue({attribute:!0})],Bi.prototype,"orgSlug",void 0),Ui([ue({attribute:!0})],Bi.prototype,"sgtUrl",void 0),Ui([ue({attribute:!0})],Bi.prototype,"buildingABTestType",void 0),Ui([ue({attribute:!1})],Bi.prototype,"leadSources",void 0),Ui([ue({attribute:!0})],Bi.prototype,"currentLeadSource",void 0),Ui([ue({attribute:!0})],Bi.prototype,"escortedToursLink",void 0),Ui([ue({attribute:!0})],Bi.prototype,"virtualToursLink",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasCallUsEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasChatEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasEmailEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasSSTEnabled",void 0),Ui([ue({type:Boolean})],Bi.prototype,"hasTextUsEnabled",void 0),Ui([ue({attribute:!1})],Bi.prototype,"layoutOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"unitOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"tourTypeOptions",void 0),Ui([ue({attribute:!1})],Bi.prototype,"onChatTapped",void 0),Ui([ue({attribute:!1})],Bi.prototype,"launcherStyles",void 0),Ui([le()],Bi.prototype,"isEmailWindowOpen",void 0),Ui([le()],Bi.prototype,"isCallUsWindowOpen",void 0),Ui([le()],Bi.prototype,"isSSTWindowOpen",void 0),Ui([le()],Bi.prototype,"isTextUsWindowOpen",void 0),Bi=Ui([ae("meetelise-launcher")],Bi);var Ji=n(3379),ki=n.n(Ji),Li=n(7795),ji=n.n(Li),Hi=n(569),Gi=n.n(Hi),Wi=n(3565),Qi=n.n(Wi),Vi=n(9216),zi=n.n(Vi),Xi=n(4589),Yi=n.n(Xi),Ki=n(3631),Zi={};Zi.styleTagTransform=Yi(),Zi.setAttributes=Qi(),Zi.insert=Gi().bind(null,"head"),Zi.domAPI=ji(),Zi.insertStyleElement=zi(),ki()(Ki.Z,Zi),Ki.Z&&Ki.Z.locals&&Ki.Z.locals;var $i,er=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 tr=$i=class extends re{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.themeId="Glass",this.useMiniWidget=!0,this.launcherStyles={},this.popup=null,this.theme=ti(),this.chatId="",this.analytics=null,this.isMobile=xn(),this.launcher=null,this.building=null,this.buildingABTestType=null,this.leadSources=null,this.currentLeadSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.talkjsPopupElement=null,this.yardiDNIScriptInterval=null,this.launcherRef=Ae(),this.initializeInstanceVariables=async()=>{await this.setBuildingDerivedInfo(),await this.initializeLaunchJS(),this.attachOnClickToLauncher(),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,n;if(!this.buildingSlug||!this.orgSlug)return;this.building=await async function(e,t){const n="https://app.meetelise.com",i=`${n}/api/pub/v1/organization/${e}/building/${t}`,r=await fetch(i),o=await r.json(),a=await fetch(`${n}/eliseCrmApi/pub/building/${t}/units`),s=await a.json(),u=await fetch(`${n}/eliseCrmApi/pub/building/${t}/layouts`),l=await u.json();return o.unitOptionsV2=s,o.layoutOptionsV2=l,o}(this.orgSlug,this.buildingSlug);const i=await async function(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}(this.buildingSlug);this.leadSources=await async function(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/lead-sources`)).data}catch(e){return[]}}(this.buildingSlug),this.currentLeadSource=await async function(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Rn(),building_slug:e,referrer:n,campaign_sources:Un()})).data}catch(e){return null}}(this.buildingSlug,document.referrer),this.currentLeadSource&&(this.leadSources.includes(this.currentLeadSource)||this.leadSources.push(this.currentLeadSource)),0===this.leadSources.length&&(this.leadSources=["Other"],this.currentLeadSource||(this.currentLeadSource=this.leadSources[0])),this.buildingABTestType=null!==(e=null==i?void 0:i.abTestType)&&void 0!==e?e:"",bn(this.building.id),this.chatId=function(e,t){const n=zn(e,t),i=localStorage.getItem(n);return i&&!function(e,t){const n=Xn(e,t),i=localStorage.getItem(n)||Vn(e,t),r=new Date(new Date(i).getTime()+216e5);return new Date>r}(e,t)?i:Qn(e,t)}(this.orgSlug,this.buildingSlug),this.avatarSrc=this.avatarSrc||this.building.avatarSrc,this.theme=ti(null!==(n=this.themeId)&&void 0!==n?n:this.building.themeId),this.analytics=new qn(this.orgSlug,this.buildingSlug,this.chatId),this.analytics.ping("webchat_heartbeat")},this.initializeLaunchJS=async()=>{var e;if(!this.building||!this.theme)return;if(this.popup&&this.launcher)return;const[t,n,i,r]=await Promise.all([this.building,this.theme,this.avatarSrc,$i.session]);if(t.conversationMaintenanceMode)return new Promise((()=>{console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear.")}));await this.configureTalkJSPopup(t,n,r,i),this.configureLauncherElement(),null===(e=this.analytics)||void 0===e||e.ping("load"),this.yardiDNIScriptInterval=setInterval((()=>this.pollForYardiCampaignSource()),1e3),setTimeout(clearInterval,15e3,this.yardiDNIScriptInterval)},this.configureLauncherElement=()=>{this.popup&&this.launcherRef.value&&(this.launcher=this.launcherRef.value)},this.configureTalkJSPopup=async(e,t,n,i)=>{var r;const o=n.createPopup(ni(n,e,t,i||e.avatarSrc,this.chatId,this.isMobile),{launcher:"never",showCloseInHeader:!0,messageField:{placeholder:"Ask a question..."}});await o.mount({show:!1}),o.on("close",(()=>{this.hideLauncher=!1}));const a=document.querySelector(".__talkjs_popup");if(this.talkjsPopupElement=a,!a)throw new Error("Failed to find chat window");a.classList.add("meetelise-chat","pane"),this.isMobile||a.classList.add("launcher__desktop"),a.style.zIndex="99999999999",this.popup=o;const s=sessionStorage.getItem("autoOpenedTimestamp"),u=!s||s&&nn(on(s));e.autoOpenChatWidget&&u&&!xn()&&(this.popup.show(),this.hideLauncher=!0,this.hasMounted=!0,sessionStorage.setItem("autoOpenedTimestamp",Zt(function(e,t){Pe(2,arguments);var n=Ke(t);return Ze(e,6e4*n)}(new Date,15))),null===(r=this.analytics)||void 0===r||r.ping("autoOpen"))},this.firstUpdated=()=>{this.initializeInstanceVariables()},this.handleContactClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e)},this.handleContactTabClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickPhoneOption(e)},this.adjustTopHeaderContactCoords=()=>{var e;if(this.talkjsPopupElement){const t=function(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}(this.talkjsPopupElement),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("contactTabPopup");if(!n)return;n.style.left=`${t.left+20}px`,n.style.top=t.top-50+"px"}},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{var e;this.popup&&(this.popup.show(),null===(e=this.analytics)||void 0===e||e.ping("open"),this.hideLauncher=!0,this.hasMounted=!0)})}}pollForYardiCampaignSource(){var e,t,n;(null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&(null===(n=this.analytics)||void 0===n||n.ping("yardi-DNI-init"),this.yardiDNIScriptInterval&&clearInterval(this.yardiDNIScriptInterval))}async restartConversation(){if(!(this.analytics&&this.analytics.chatId&&this.building&&this.popup&&$i.session))return;this.chatId=Qn(this.orgSlug,this.buildingSlug);const e=await $i.session;this.analytics.chatId=this.chatId,this.popup.select(ni(e,this.building,this.theme,this.avatarSrc||this.building.avatarSrc,this.chatId,this.isMobile))}remove(){var e;null===(e=this.popup)||void 0===e||e.destroy()}open(){var e;null===(e=this.popup)||void 0===e||e.show()}close(){var e;null===(e=this.popup)||void 0===e||e.hide()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustTopHeaderContactCoords)}disconnectedCallback(){window.removeEventListener("resize",this.adjustTopHeaderContactCoords),super.disconnectedCallback()}updated(){this.adjustTopHeaderContactCoords()}render(){var e,t,n,i,r,o,a,s,u,l,d,c,p,f,h,m,v,g,y,w,b,S,T,A,x,C,O,I,N,R,E,F;window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Bi);const _=!this.hideLauncher||this.isLoading||this.buildingABTestType!==ii.ConceptBlueBlack&&this.buildingABTestType!==ii.ConceptBlueWhite||this.isMobile;return U`
2869
2871
  <div>
2870
2872
  <div
2871
2873
  id="contactTabPopup"
@@ -2956,7 +2958,7 @@ xmlns="http://www.w3.org/2000/svg"
2956
2958
  border-color: #ffffff;
2957
2959
  }
2958
2960
  .actionTabBttn {
2959
- font-family: "Helvetica Neue";
2961
+ font-family: "Helvetica Neue", Arial;
2960
2962
  font-style: normal;
2961
2963
  font-size: 14px;
2962
2964
  line-height: 18px;
@@ -2975,4 +2977,4 @@ xmlns="http://www.w3.org/2000/svg"
2975
2977
  .heavyLabel {
2976
2978
  font-weight: bold;
2977
2979
  }
2978
- `,tr.session=Ie.ready.then((()=>{const e=new Ie.User({id:"anonymous",name:"Me",email:null,role:"Default"});return new Ie.Session({appId:"ogKIvCor",me:e})})),er([ue({type:String})],tr.prototype,"buildingSlug",void 0),er([ue({type:String})],tr.prototype,"orgSlug",void 0),er([ue({type:String})],tr.prototype,"themeId",void 0),er([ue({attribute:!1})],tr.prototype,"avatarSrc",void 0),er([ue({type:Boolean})],tr.prototype,"useMiniWidget",void 0),er([ue({type:Object})],tr.prototype,"launcherStyles",void 0),er([le()],tr.prototype,"popup",void 0),er([le()],tr.prototype,"theme",void 0),er([le()],tr.prototype,"chatId",void 0),er([le()],tr.prototype,"analytics",void 0),er([le()],tr.prototype,"isMobile",void 0),er([le()],tr.prototype,"launcher",void 0),er([le()],tr.prototype,"building",void 0),er([le()],tr.prototype,"buildingABTestType",void 0),er([le()],tr.prototype,"leadSources",void 0),er([le()],tr.prototype,"currentLeadSource",void 0),er([le()],tr.prototype,"hasMounted",void 0),er([le()],tr.prototype,"hideLauncher",void 0),er([le()],tr.prototype,"isLoading",void 0),er([le()],tr.prototype,"talkjsPopupElement",void 0),tr=$i=er([ae("me-chat")],tr);class nr{static start(e,t=!0){if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;t&&(this.orgSlug=e.organization,this.hasBuildingSlug=!!e.building),ir(),rr();const n=document.createElement("me-chat");n.setAttribute("orgSlug",e.organization),this.handleBuildingslug(n,e.building),n.setAttribute("class","meetelise-chat"),e.themeId&&n.setAttribute("themeId",e.themeId),e.avatarSrc&&n.setAttribute("avatarSrc",e.avatarSrc),void 0!==e.mini&&(n.useMiniWidget=e.mini),e.launcherStyles&&(n.launcherStyles=e.launcherStyles),document.body.appendChild(n),nr.meChat=n}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),nr.meChat=null)}static async handleBuildingslug(e,t){t?e.setAttribute("buildingSlug",t):this.mutationObserver||(this.handleSingleFamilyUrl(),this.previousUrl=window.location.href,document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,this.handleSingleFamilyUrl())}))}),!0))}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,n=`https://app.meetelise.com/eliseCrmApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,i=await t().get(n,{headers:{"org-slug":this.orgSlug}});if(!i||!i.data)return;const r={organization:this.orgSlug,building:i.data};this.start(r,!1)}}nr.meChat=null,nr.orgSlug="",nr.mutationObserver=null,nr.previousUrl="",nr.hasBuildingSlug=null;const ir=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href","https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap"),document.head.appendChild(e)},rr=()=>{const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=2"),document.head.appendChild(e)}})();var r=i.Z;export{r as default};
2980
+ `,tr.session=Ie.ready.then((()=>{const e=new Ie.User({id:"anonymous",name:"Me",email:null,role:"Default"});return new Ie.Session({appId:"ogKIvCor",me:e})})),er([ue({type:String})],tr.prototype,"buildingSlug",void 0),er([ue({type:String})],tr.prototype,"orgSlug",void 0),er([ue({type:String})],tr.prototype,"themeId",void 0),er([ue({attribute:!1})],tr.prototype,"avatarSrc",void 0),er([ue({type:Boolean})],tr.prototype,"useMiniWidget",void 0),er([ue({type:Object})],tr.prototype,"launcherStyles",void 0),er([le()],tr.prototype,"popup",void 0),er([le()],tr.prototype,"theme",void 0),er([le()],tr.prototype,"chatId",void 0),er([le()],tr.prototype,"analytics",void 0),er([le()],tr.prototype,"isMobile",void 0),er([le()],tr.prototype,"launcher",void 0),er([le()],tr.prototype,"building",void 0),er([le()],tr.prototype,"buildingABTestType",void 0),er([le()],tr.prototype,"leadSources",void 0),er([le()],tr.prototype,"currentLeadSource",void 0),er([le()],tr.prototype,"hasMounted",void 0),er([le()],tr.prototype,"hideLauncher",void 0),er([le()],tr.prototype,"isLoading",void 0),er([le()],tr.prototype,"talkjsPopupElement",void 0),tr=$i=er([ae("me-chat")],tr);class nr{static start(e,t=!0){if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;t&&(this.orgSlug=e.organization,this.hasBuildingSlug=!!e.building),ir(),rr();const n=document.createElement("me-chat");n.setAttribute("orgSlug",e.organization),this.handleBuildingslug(n,e.building),n.setAttribute("class","meetelise-chat"),e.themeId&&n.setAttribute("themeId",e.themeId),e.avatarSrc&&n.setAttribute("avatarSrc",e.avatarSrc),void 0!==e.mini&&(n.useMiniWidget=e.mini),e.launcherStyles&&(n.launcherStyles=e.launcherStyles),document.body.appendChild(n),nr.meChat=n}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),nr.meChat=null)}static async handleBuildingslug(e,t){t?e.setAttribute("buildingSlug",t):this.mutationObserver||(this.handleSingleFamilyUrl(),this.previousUrl=window.location.href,document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,this.handleSingleFamilyUrl())}))}),!0))}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,n=`https://app.meetelise.com/eliseCrmApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,i=await t().get(n,{headers:{"org-slug":this.orgSlug}});if(!i||!i.data)return;const r={organization:this.orgSlug,building:i.data};this.start(r,!1)}}nr.meChat=null,nr.orgSlug="",nr.mutationObserver=null,nr.previousUrl="",nr.hasBuildingSlug=null;const ir=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)},rr=()=>{const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=2"),document.head.appendChild(e)}})();var r=i.Z;export{r as default};
package/src/MEChat.ts CHANGED
@@ -145,10 +145,6 @@ const installFont = () => {
145
145
  const link = document.createElement("link");
146
146
  link.setAttribute("rel", "stylesheet");
147
147
  link.setAttribute("type", "text/css");
148
- link.setAttribute(
149
- "href",
150
- "https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap"
151
- );
152
148
  document.head.appendChild(link);
153
149
  };
154
150
 
@@ -90,7 +90,7 @@ export class DatePicker extends LitElement {
90
90
  static styles = css`
91
91
  :host {
92
92
  box-sizing: border-box;
93
- font-family: "Helvetica Neue";
93
+ font-family: "Helvetica Neue", Arial;
94
94
  color: #202020;
95
95
  font-style: normal;
96
96
  }
@@ -44,7 +44,7 @@ export class TimePicker extends LitElement {
44
44
 
45
45
  :host {
46
46
  color: #202020;
47
- font-family: "Helvetica Neue";
47
+ font-family: "Helvetica Neue", Arial;
48
48
  }
49
49
 
50
50
  #optionContainer {
@@ -419,7 +419,7 @@ export class TourScheduler extends LitElement {
419
419
  background: #ffffff;
420
420
  box-shadow: 0px 16px 18px 10px rgba(21, 21, 21, 0.4);
421
421
  border-radius: 10px;
422
- font-family: "Helvetica Neue";
422
+ font-family: "Helvetica Neue", Arial;
423
423
  color: #202020;
424
424
  padding: 0 25px 0 27px;
425
425
 
@@ -723,7 +723,7 @@ export class TourScheduler extends LitElement {
723
723
  background: #202020;
724
724
  border: 1px solid #ffffff;
725
725
  border-radius: 10px;
726
- font-family: "Helvetica Neue";
726
+ font-family: "Helvetica Neue", Arial;
727
727
  font-weight: 700;
728
728
  font-size: 14px;
729
729
  color: #ffffff;
@@ -46,7 +46,7 @@ export class TourTypeOption extends LitElement {
46
46
  display: flex;
47
47
  flex-direction: column;
48
48
  color: #202020;
49
- font-family: "Helvetica Neue";
49
+ font-family: "Helvetica Neue", Arial;
50
50
  }
51
51
 
52
52
  :host([selected]) .text {
@@ -5,7 +5,7 @@ export const InputStyles = css`
5
5
  outline: none;
6
6
 
7
7
  color: #202020;
8
- font-family: "Helvetica Neue";
8
+ font-family: "Helvetica Neue", Arial;
9
9
  font-style: normal;
10
10
  font-weight: 400;
11
11
  font-size: 14px;
@@ -31,7 +31,7 @@ export const InputStyles = css`
31
31
 
32
32
  .webchat-input::placeholder {
33
33
  color: rgba(32, 32, 32, 0.5);
34
- font-family: "Helvetica Neue";
34
+ font-family: "Helvetica Neue", Arial;
35
35
  font-size: 14px;
36
36
  }
37
37
  `;
@@ -16,7 +16,7 @@ export class ActionConfirmButton extends LitElement {
16
16
 
17
17
  border-radius: 20px;
18
18
 
19
- font-family: "Helvetica Neue";
19
+ font-family: "Helvetica Neue", Arial;
20
20
  font-style: normal;
21
21
  font-weight: 400;
22
22
  font-size: 12px;
@@ -9,13 +9,13 @@ export class CallUsWindow extends LitElement {
9
9
  static styles = [
10
10
  css`
11
11
  #call-us-window__content-wrapper {
12
- font-family: "Helvetica Neue";
12
+ font-family: "Helvetica Neue", Arial;
13
13
  font-style: normal;
14
14
  color: 11ee1e;
15
15
  font-size: 14px;
16
16
  }
17
17
  .call-us-window__header {
18
- font-family: "Helvetica Neue";
18
+ font-family: "Helvetica Neue", Arial;
19
19
  font-style: normal;
20
20
  font-weight: 700;
21
21
  line-height: 140%;
@@ -52,7 +52,7 @@ export class DetailsWindow extends LitElement {
52
52
  font-size: 14px;
53
53
  line-height: 22px;
54
54
 
55
- font-family: "Helvetica";
55
+ font-family: "Helvetica", Arial;
56
56
  font-style: normal;
57
57
  font-weight: 700;
58
58
  font-size: 14px;
@@ -61,7 +61,7 @@ export class EmailUsWindow extends LitElement {
61
61
 
62
62
  .email-us__error-text {
63
63
  margin-top: 4px;
64
- font-family: "Helvetica";
64
+ font-family: "Helvetica", Arial;
65
65
  font-style: normal;
66
66
  font-weight: 400;
67
67
  font-size: 12px;
@@ -20,7 +20,7 @@ export class TextUsWindow extends LitElement {
20
20
  color: #202020;
21
21
  }
22
22
  .text-us-window__header {
23
- font-family: "Helvetica Neue";
23
+ font-family: "Helvetica Neue", Arial;
24
24
  font-style: normal;
25
25
  font-weight: 700;
26
26
  line-height: 140%;
@@ -44,7 +44,7 @@ export class TextUsWindow extends LitElement {
44
44
  }
45
45
  .text-us-window__description,
46
46
  .text-us-window__error {
47
- font-family: "Helvetica";
47
+ font-family: "Helvetica Neue", Arial;
48
48
  font-style: normal;
49
49
  font-weight: 400;
50
50
  font-size: 10px;
@@ -2,7 +2,7 @@ import { css } from "lit";
2
2
 
3
3
  export const launcherStyles = css`
4
4
  * {
5
- font-family: "Helvetica Neue";
5
+ font-family: "Helvetica Neue", Arial;
6
6
  font-size: 14px;
7
7
  }
8
8
  :host {
@@ -20,7 +20,7 @@ export const launcherStyles = css`
20
20
  }
21
21
  }
22
22
  .launcher {
23
- font-family: "Helvetica Neue";
23
+ font-family: "Helvetica Neue", Arial;
24
24
  user-select: none;
25
25
  position: fixed;
26
26
  }
@@ -117,7 +117,7 @@ export const launcherStyles = css`
117
117
  }
118
118
 
119
119
  .launcher__primary-action-text {
120
- font-family: "Helvetica Neue";
120
+ font-family: "Helvetica Neue", Arial;
121
121
  font-weight: 700;
122
122
  font-size: 24px;
123
123
  line-height: 22px;
@@ -198,7 +198,7 @@ export const launcherStyles = css`
198
198
  .launcher__mini-launcher-wrapper {
199
199
  position: fixed;
200
200
  right: 0px;
201
- bottom: 130px;
201
+ bottom: 210px;
202
202
  z-index: 100000;
203
203
  display: flex;
204
204
  align-items: center;
@@ -333,7 +333,7 @@ export const launcherStyles = css`
333
333
  align-items: center;
334
334
  gap: 7px;
335
335
 
336
- font-family: "Helvetica Neue";
336
+ font-family: "Helvetica Neue", Arial;
337
337
  font-style: normal;
338
338
  font-size: 15px;
339
339
  line-height: 18px;
@@ -418,7 +418,7 @@ export const launcherStyles = css`
418
418
  margin-top: 4px;
419
419
  }
420
420
  .type-gradient__chat-header > .title-bold {
421
- font-family: "Helvetica Neue";
421
+ font-family: "Helvetica Neue", Arial;
422
422
  font-style: normal;
423
423
  font-size: 22px;
424
424
  line-height: 28px;
@@ -426,7 +426,7 @@ export const launcherStyles = css`
426
426
  opacity: 0.95;
427
427
  }
428
428
  .type-gradient__chat-header {
429
- font-family: "Helvetica Neue";
429
+ font-family: "Helvetica Neue", Arial;
430
430
  font-style: normal;
431
431
  font-size: 22px;
432
432
  line-height: 28px;
@@ -439,7 +439,7 @@ export const launcherStyles = css`
439
439
  list-style: none;
440
440
  }
441
441
  .type-gradient__description > li {
442
- font-family: "Helvetica Neue";
442
+ font-family: "Helvetica Neue", Arial;
443
443
  font-style: normal;
444
444
  font-weight: 300;
445
445
  font-size: 18px;
@@ -456,7 +456,7 @@ export const launcherStyles = css`
456
456
  }
457
457
 
458
458
  .type-gradient__bottom-tab {
459
- font-family: "Helvetica Neue";
459
+ font-family: "Helvetica Neue", Arial;
460
460
  font-style: normal;
461
461
  font-weight: 400;
462
462
  font-size: 16px;
@@ -487,6 +487,7 @@ export const launcherStyles = css`
487
487
  margin-right: 24px;
488
488
 
489
489
  background: linear-gradient(139.82deg, #5770f5 -33.12%, #ffffff 111.99%);
490
+ border: 2px solid #a6b4ff;
490
491
 
491
492
  border-radius: 16px;
492
493
  display: flex;
@@ -494,6 +495,7 @@ export const launcherStyles = css`
494
495
  justify-content: center;
495
496
  align-items: center;
496
497
  position: relative;
498
+ overflow: hidden;
497
499
  }
498
500
  .type-hey__chat-container {
499
501
  position: absolute;
@@ -587,7 +589,7 @@ export const launcherStyles = css`
587
589
  gap: 4px;
588
590
  }
589
591
  .type-hey__greeting > h1 {
590
- font-family: "Helvetica Neue";
592
+ font-family: "Helvetica Neue", Arial;
591
593
  font-style: normal;
592
594
  font-weight: 500;
593
595
  font-size: 20px;
@@ -630,7 +632,7 @@ export const launcherStyles = css`
630
632
  gap: 8px;
631
633
  }
632
634
  .type-hey__ask-start > h2 {
633
- font-family: "Helvetica Neue";
635
+ font-family: "Helvetica Neue", Arial;
634
636
  font-style: normal;
635
637
  font-weight: 400;
636
638
  font-size: 12px;
@@ -640,7 +642,7 @@ export const launcherStyles = css`
640
642
 
641
643
  .type-hey__bottom-info {
642
644
  margin-top: 16px;
643
- font-family: "Helvetica Neue";
645
+ font-family: "Helvetica Neue", Arial;
644
646
  font-style: normal;
645
647
  font-size: 10px;
646
648
  line-height: 140%;
@@ -650,7 +652,7 @@ export const launcherStyles = css`
650
652
  font-weight: 700;
651
653
  }
652
654
  .heavy-blue {
653
- font-family: "Helvetica Neue";
655
+ font-family: "Helvetica Neue", Arial;
654
656
  font-style: normal;
655
657
  font-size: 10px;
656
658
  line-height: 140%;
@@ -697,7 +699,7 @@ export const launcherStyles = css`
697
699
  align-items: center;
698
700
  height: 18px;
699
701
 
700
- font-family: "Helvetica Neue";
702
+ font-family: "Helvetica Neue", Arial;
701
703
  font-style: normal;
702
704
  font-size: 12px;
703
705
  font-weight: 700;
@@ -9,7 +9,9 @@ import Analytics from "../analytics";
9
9
  import { createChatID, getChatID } from "../chatID";
10
10
  import createConversation from "../createConversation";
11
11
  import fetchBuildingInfo, { Building } from "../fetchBuildingInfo";
12
- import fetchBuildingABTestType from "../fetchBuildingABTestType";
12
+ import fetchBuildingABTestType, {
13
+ abTestTypes,
14
+ } from "../fetchBuildingABTestType";
13
15
  import fetchCurrentParsedLeadSource from "../fetchCurrentParsedLeadSource";
14
16
  import { getTheme, Theme, ThemeIdString } from "../themes";
15
17
  import { isMobile } from "../utils";
@@ -76,7 +78,7 @@ export class MEChat extends LitElement {
76
78
  border-color: #ffffff;
77
79
  }
78
80
  .actionTabBttn {
79
- font-family: "Helvetica Neue";
81
+ font-family: "Helvetica Neue", Arial;
80
82
  font-style: normal;
81
83
  font-size: 14px;
82
84
  line-height: 18px;
@@ -415,7 +417,8 @@ export class MEChat extends LitElement {
415
417
  const hideTopContactTab =
416
418
  !this.hideLauncher ||
417
419
  this.isLoading ||
418
- this.buildingABTestType !== "Concept 1 (Blue/Black)" ||
420
+ (this.buildingABTestType !== abTestTypes.ConceptBlueBlack &&
421
+ this.buildingABTestType !== abTestTypes.ConceptBlueWhite) ||
419
422
  this.isMobile;
420
423
  return html`
421
424
  <div>
@@ -110,7 +110,7 @@ export class MESelect extends LitElement {
110
110
 
111
111
  font-size: 14px;
112
112
  line-height: 14px;
113
- font-family: "Helvetica Neue";
113
+ font-family: "Helvetica Neue", Arial;
114
114
  }
115
115
 
116
116
  #select {