@meetelise/chat 1.20.62 → 1.20.63
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
|
@@ -1142,7 +1142,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1142
1142
|
margin-top: 37px;
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
`,Yt],Dn([ue({attribute:!1})],qn.prototype,"layoutOptions",void 0),Dn([ue({attribute:!1})],qn.prototype,"unitOptions",void 0),Dn([ue({attribute:!1})],qn.prototype,"tourTypeOptions",void 0),Dn([ue({attribute:!0})],qn.prototype,"chatId",void 0),Dn([ue({type:Number})],qn.prototype,"buildingId",void 0),Dn([ue({attribute:!0})],qn.prototype,"buildingSlug",void 0),Dn([ue({attribute:!0})],qn.prototype,"sgtUrl",void 0),Dn([ue({attribute:!0})],qn.prototype,"escortedToursLink",void 0),Dn([ue({attribute:!0})],qn.prototype,"virtualToursLink",void 0),Dn([ue({attribute:!0})],qn.prototype,"orgSlug",void 0),Dn([le()],qn.prototype,"tourType",void 0),Dn([le()],qn.prototype,"shouldShowTourType",void 0),Dn([le()],qn.prototype,"email",void 0),Dn([le()],qn.prototype,"phoneNumber",void 0),Dn([le()],qn.prototype,"availabilitiesGroupedByDay",void 0),Dn([le()],qn.prototype,"waitingForAvailabilities",void 0),Dn([le()],qn.prototype,"selectedDate",void 0),Dn([le()],qn.prototype,"selectedTime",void 0),Dn([le()],qn.prototype,"mobilePageIndex",void 0),Dn([le()],qn.prototype,"isSubmitting",void 0),Dn([le()],qn.prototype,"tourIsBooked",void 0),Dn([ue({attribute:!1})],qn.prototype,"leadSources",void 0),Dn([ue({attribute:!0})],qn.prototype,"currentLeadSource",void 0),Dn([ue({attribute:!0})],qn.prototype,"featureFlagShowDropdown",void 0),Dn([de(".nameContainer#firstName input")],qn.prototype,"firstNameInput",void 0),Dn([de(".nameContainer#lastName input")],qn.prototype,"lastNameInput",void 0),Dn([de(".inputContainer#email input")],qn.prototype,"emailInput",void 0),Dn([de(".inputContainer#phone input")],qn.prototype,"phoneInput",void 0),Dn([de("me-select#unitType")],qn.prototype,"unitTypeSelect",void 0),Dn([de("me-select#layoutType")],qn.prototype,"layoutTypeSelect",void 0),Dn([de("me-select#leadSource")],qn.prototype,"selectedLeadSource",void 0),qn=Dn([ae("tour-scheduler")],qn),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(Un||(Un={}));const Bn={[Un.Guided]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[Un.Self]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[Un.Virtual]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},Jn={[Un.Guided]:"escorted-tour",[Un.Self]:"self-guided-tour",[Un.Virtual]:"live-virtual-tour"},kn=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(On.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(On.isString);class Ln{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:jn()})})}}const jn=()=>{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 Hn,Gn=new Uint8Array(16);function Wn(){if(!Hn&&!(Hn="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 Hn(Gn)}const Qn=/^(?:[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,zn=function(e){return"string"==typeof e&&Qn.test(e)};for(var Vn=[],Xn=0;Xn<256;++Xn)Vn.push((Xn+256).toString(16).substr(1));const Yn=function(e,t,n){var i=(e=e||{}).random||(e.rng||Wn)();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=(Vn[e[t+0]]+Vn[e[t+1]]+Vn[e[t+2]]+Vn[e[t+3]]+"-"+Vn[e[t+4]]+Vn[e[t+5]]+"-"+Vn[e[t+6]]+Vn[e[t+7]]+"-"+Vn[e[t+8]]+Vn[e[t+9]]+"-"+Vn[e[t+10]]+Vn[e[t+11]]+Vn[e[t+12]]+Vn[e[t+13]]+Vn[e[t+14]]+Vn[e[t+15]]).toLowerCase();if(!zn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Kn(e,t){const n=$n(e,t),i=Yn();return localStorage.setItem(n,i),Zn(e,t),i}function Zn(e,t){const n=ei(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function $n(e,t){return`com.meetelise.chatID-${e}-${t}`}function ei(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const ti="#FFFFFF",ni="#202020",ii={user:{textColor:ti,backgroundColor:"#1990FF"},agent:{textColor:ti,backgroundColor:"#1E1E1E"}},ri={user:{textColor:ti,backgroundColor:"#83818E"},agent:{textColor:ti,backgroundColor:ni}},oi={Light:{chatHeader:{backgroundColor:ti,textColor:ni},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:ii},Dark:{chatHeader:{backgroundColor:ni,textColor:ti},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:ii},Purple:{chatHeader:{backgroundColor:"#550098",textColor:ti},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:ii},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:ti},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:ii},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:ni},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:ri},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:ti},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:ii},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:ni},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:ri},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:ti},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:ii},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:ti},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:ii},Glass:{chatHeader:{backgroundColor:ti,textColor:ni},chatPaneBackgroundColor:"rgba(
|
|
1145
|
+
`,Yt],Dn([ue({attribute:!1})],qn.prototype,"layoutOptions",void 0),Dn([ue({attribute:!1})],qn.prototype,"unitOptions",void 0),Dn([ue({attribute:!1})],qn.prototype,"tourTypeOptions",void 0),Dn([ue({attribute:!0})],qn.prototype,"chatId",void 0),Dn([ue({type:Number})],qn.prototype,"buildingId",void 0),Dn([ue({attribute:!0})],qn.prototype,"buildingSlug",void 0),Dn([ue({attribute:!0})],qn.prototype,"sgtUrl",void 0),Dn([ue({attribute:!0})],qn.prototype,"escortedToursLink",void 0),Dn([ue({attribute:!0})],qn.prototype,"virtualToursLink",void 0),Dn([ue({attribute:!0})],qn.prototype,"orgSlug",void 0),Dn([le()],qn.prototype,"tourType",void 0),Dn([le()],qn.prototype,"shouldShowTourType",void 0),Dn([le()],qn.prototype,"email",void 0),Dn([le()],qn.prototype,"phoneNumber",void 0),Dn([le()],qn.prototype,"availabilitiesGroupedByDay",void 0),Dn([le()],qn.prototype,"waitingForAvailabilities",void 0),Dn([le()],qn.prototype,"selectedDate",void 0),Dn([le()],qn.prototype,"selectedTime",void 0),Dn([le()],qn.prototype,"mobilePageIndex",void 0),Dn([le()],qn.prototype,"isSubmitting",void 0),Dn([le()],qn.prototype,"tourIsBooked",void 0),Dn([ue({attribute:!1})],qn.prototype,"leadSources",void 0),Dn([ue({attribute:!0})],qn.prototype,"currentLeadSource",void 0),Dn([ue({attribute:!0})],qn.prototype,"featureFlagShowDropdown",void 0),Dn([de(".nameContainer#firstName input")],qn.prototype,"firstNameInput",void 0),Dn([de(".nameContainer#lastName input")],qn.prototype,"lastNameInput",void 0),Dn([de(".inputContainer#email input")],qn.prototype,"emailInput",void 0),Dn([de(".inputContainer#phone input")],qn.prototype,"phoneInput",void 0),Dn([de("me-select#unitType")],qn.prototype,"unitTypeSelect",void 0),Dn([de("me-select#layoutType")],qn.prototype,"layoutTypeSelect",void 0),Dn([de("me-select#leadSource")],qn.prototype,"selectedLeadSource",void 0),qn=Dn([ae("tour-scheduler")],qn),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(Un||(Un={}));const Bn={[Un.Guided]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[Un.Self]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[Un.Virtual]:en.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},Jn={[Un.Guided]:"escorted-tour",[Un.Self]:"self-guided-tour",[Un.Virtual]:"live-virtual-tour"},kn=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(On.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(On.isString);class Ln{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:jn()})})}}const jn=()=>{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 Hn,Gn=new Uint8Array(16);function Wn(){if(!Hn&&!(Hn="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 Hn(Gn)}const Qn=/^(?:[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,zn=function(e){return"string"==typeof e&&Qn.test(e)};for(var Vn=[],Xn=0;Xn<256;++Xn)Vn.push((Xn+256).toString(16).substr(1));const Yn=function(e,t,n){var i=(e=e||{}).random||(e.rng||Wn)();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=(Vn[e[t+0]]+Vn[e[t+1]]+Vn[e[t+2]]+Vn[e[t+3]]+"-"+Vn[e[t+4]]+Vn[e[t+5]]+"-"+Vn[e[t+6]]+Vn[e[t+7]]+"-"+Vn[e[t+8]]+Vn[e[t+9]]+"-"+Vn[e[t+10]]+Vn[e[t+11]]+Vn[e[t+12]]+Vn[e[t+13]]+Vn[e[t+14]]+Vn[e[t+15]]).toLowerCase();if(!zn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Kn(e,t){const n=$n(e,t),i=Yn();return localStorage.setItem(n,i),Zn(e,t),i}function Zn(e,t){const n=ei(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function $n(e,t){return`com.meetelise.chatID-${e}-${t}`}function ei(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const ti="#FFFFFF",ni="#202020",ii={user:{textColor:ti,backgroundColor:"#1990FF"},agent:{textColor:ti,backgroundColor:"#1E1E1E"}},ri={user:{textColor:ti,backgroundColor:"#83818E"},agent:{textColor:ti,backgroundColor:ni}},oi={Light:{chatHeader:{backgroundColor:ti,textColor:ni},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:ii},Dark:{chatHeader:{backgroundColor:ni,textColor:ti},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:ii},Purple:{chatHeader:{backgroundColor:"#550098",textColor:ti},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:ii},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:ti},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:ii},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:ni},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:ri},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:ti},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:ii},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:ni},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:ri},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:ti},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:ii},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:ti},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:ii},Glass:{chatHeader:{backgroundColor:ti,textColor:ni},chatPaneBackgroundColor:"rgba(193, 193, 193, 0.3)",message:{user:{textColor:"#FFFFFF",backgroundColor:"#000000"},agent:{textColor:"#000000",backgroundColor:"#FFFFFF"}}}},ai=e=>oi[e&&Object.keys(oi).includes(e)?e:"Light"];function si(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===ri).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}async function ui(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}var li;async function di(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}async function ci(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:En(),building_slug:e,referrer:n,campaign_sources:jn()})).data}catch(e){return null}}!function(e){e.ConceptBlueBlack="Concept 1 (Blue/Black)",e.ConceptBlueWhite="Concept 2 (Blue/White)"}(li||(li={}));const pi=u`
|
|
1146
1146
|
* {
|
|
1147
1147
|
font-family: "Helvetica Neue", Arial;
|
|
1148
1148
|
font-size: 14px;
|
|
@@ -1172,7 +1172,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1172
1172
|
align-items: center;
|
|
1173
1173
|
background-color: rgba(255, 255, 255, 0.8);
|
|
1174
1174
|
color: #202020;
|
|
1175
|
-
backdrop-filter: blur(
|
|
1175
|
+
backdrop-filter: blur(50px);
|
|
1176
1176
|
box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.25);
|
|
1177
1177
|
}
|
|
1178
1178
|
.launcher:not(.miniLauncher).launcher__mobile {
|
|
@@ -30,7 +30,7 @@ export const launcherStyles = css`
|
|
|
30
30
|
align-items: center;
|
|
31
31
|
background-color: rgba(255, 255, 255, 0.8);
|
|
32
32
|
color: #202020;
|
|
33
|
-
backdrop-filter: blur(
|
|
33
|
+
backdrop-filter: blur(50px);
|
|
34
34
|
box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.25);
|
|
35
35
|
}
|
|
36
36
|
.launcher:not(.miniLauncher).launcher__mobile {
|
package/src/themes.ts
CHANGED