@meetelise/chat 1.20.42 → 1.20.44

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.42",
3
+ "version": "1.20.44",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -2302,7 +2302,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2302
2302
  </div>
2303
2303
  `}
2304
2304
  </div>
2305
- `}};Mi.styles=ii,Fi([ae({type:Boolean})],Mi.prototype,"isMobile",void 0),Fi([ae({type:Boolean})],Mi.prototype,"isFirstMount",void 0),Fi([ae()],Mi.prototype,"backgroundColor",void 0),Fi([ae()],Mi.prototype,"textColor",void 0),Fi([ae({type:Boolean})],Mi.prototype,"isMini",void 0),Fi([ae({attribute:!1})],Mi.prototype,"autoOpenChatWidget",void 0),Fi([ae()],Mi.prototype,"phoneNumber",void 0),Fi([ae({attribute:!0})],Mi.prototype,"chatId",void 0),Fi([ae({attribute:!0})],Mi.prototype,"chatCallUsHeader",void 0),Fi([ae({attribute:!1})],Mi.prototype,"buildingId",void 0),Fi([ae({attribute:!0})],Mi.prototype,"buildingSlug",void 0),Fi([ae({attribute:!0})],Mi.prototype,"orgSlug",void 0),Fi([ae({attribute:!0})],Mi.prototype,"sgtUrl",void 0),Fi([ae({attribute:!0})],Mi.prototype,"buildingABTestType",void 0),Fi([ae({attribute:!1})],Mi.prototype,"leadSources",void 0),Fi([ae({attribute:!0})],Mi.prototype,"currentLeadSource",void 0),Fi([ae({attribute:!0})],Mi.prototype,"escortedToursLink",void 0),Fi([ae({attribute:!0})],Mi.prototype,"virtualToursLink",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasCallUsEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasChatEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasEmailEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasSSTEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasTextUsEnabled",void 0),Fi([ae({attribute:!1})],Mi.prototype,"layoutOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"unitOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"tourTypeOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"onChatTapped",void 0),Fi([ae({attribute:!1})],Mi.prototype,"launcherStyles",void 0),Fi([se()],Mi.prototype,"isEmailWindowOpen",void 0),Fi([se()],Mi.prototype,"isCallUsWindowOpen",void 0),Fi([se()],Mi.prototype,"isSSTWindowOpen",void 0),Fi([se()],Mi.prototype,"isTextUsWindowOpen",void 0),Mi=Fi([re("meetelise-launcher")],Mi);var Pi=n(3379),Di=n.n(Pi),qi=n(7795),Ui=n.n(qi),Ji=n(569),ki=n.n(Ji),Li=n(3565),Bi=n.n(Li),ji=n(9216),Hi=n.n(ji),Wi=n(4589),Gi=n.n(Wi),$i=n(3631),Vi={};Vi.styleTagTransform=Gi(),Vi.setAttributes=Bi(),Vi.insert=ki().bind(null,"head"),Vi.domAPI=Ui(),Vi.insertStyleElement=Hi(),Di()($i.Z,Vi),$i.Z&&$i.Z.locals&&$i.Z.locals;var zi,Xi=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 Zi=zi=class extends ne{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.useMiniWidget=!0,this.launcherStyles={},this.popup=null,this.theme=ti(),this.chatId="",this.analytics=null,this.isMobile=On(),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=Se(),this.initializeInstanceVariables=async()=>{await this.setBuildingDerivedInfo(),await this.initializeLaunchJS(),this.attachOnClickToLauncher(),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,t;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 n=await async function(e){try{return(await Kt().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 Kt().get(`https://app.meetelise.com/platformApi/webchat/${e}/lead-sources`)).data}catch(e){return[]}}(this.buildingSlug),this.currentLeadSource=await async function(e,t){try{return(await Kt().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:An(),building_slug:e,referrer:t})).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==n?void 0:n.abTestType)&&void 0!==e?e:"",wn(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:$n(e,t)}(this.orgSlug,this.buildingSlug),this.avatarSrc=this.avatarSrc||this.building.avatarSrc,this.theme=ti(null!==(t=this.themeId)&&void 0!==t?t: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,zi.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&&!On()&&"close"!==this.buildingABTestType&&(this.popup.show(),this.hideLauncher=!0,this.hasMounted=!0,sessionStorage.setItem("autoOpenedTimestamp",Zt(function(e,t){Fe(2,arguments);var n=Xe(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.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(),this.adjustTopHeaderContactCoords(),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&&zi.session))return;this.chatId=$n(this.orgSlug,this.buildingSlug);const e=await zi.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,b,w,S,T,x,O,I,R,C,N,A,E,_;window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Mi);const F=!this.hideLauncher||this.isLoading||"close"===this.buildingABTestType;return D`
2305
+ `}};Mi.styles=ii,Fi([ae({type:Boolean})],Mi.prototype,"isMobile",void 0),Fi([ae({type:Boolean})],Mi.prototype,"isFirstMount",void 0),Fi([ae()],Mi.prototype,"backgroundColor",void 0),Fi([ae()],Mi.prototype,"textColor",void 0),Fi([ae({type:Boolean})],Mi.prototype,"isMini",void 0),Fi([ae({attribute:!1})],Mi.prototype,"autoOpenChatWidget",void 0),Fi([ae()],Mi.prototype,"phoneNumber",void 0),Fi([ae({attribute:!0})],Mi.prototype,"chatId",void 0),Fi([ae({attribute:!0})],Mi.prototype,"chatCallUsHeader",void 0),Fi([ae({attribute:!1})],Mi.prototype,"buildingId",void 0),Fi([ae({attribute:!0})],Mi.prototype,"buildingSlug",void 0),Fi([ae({attribute:!0})],Mi.prototype,"orgSlug",void 0),Fi([ae({attribute:!0})],Mi.prototype,"sgtUrl",void 0),Fi([ae({attribute:!0})],Mi.prototype,"buildingABTestType",void 0),Fi([ae({attribute:!1})],Mi.prototype,"leadSources",void 0),Fi([ae({attribute:!0})],Mi.prototype,"currentLeadSource",void 0),Fi([ae({attribute:!0})],Mi.prototype,"escortedToursLink",void 0),Fi([ae({attribute:!0})],Mi.prototype,"virtualToursLink",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasCallUsEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasChatEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasEmailEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasSSTEnabled",void 0),Fi([ae({type:Boolean})],Mi.prototype,"hasTextUsEnabled",void 0),Fi([ae({attribute:!1})],Mi.prototype,"layoutOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"unitOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"tourTypeOptions",void 0),Fi([ae({attribute:!1})],Mi.prototype,"onChatTapped",void 0),Fi([ae({attribute:!1})],Mi.prototype,"launcherStyles",void 0),Fi([se()],Mi.prototype,"isEmailWindowOpen",void 0),Fi([se()],Mi.prototype,"isCallUsWindowOpen",void 0),Fi([se()],Mi.prototype,"isSSTWindowOpen",void 0),Fi([se()],Mi.prototype,"isTextUsWindowOpen",void 0),Mi=Fi([re("meetelise-launcher")],Mi);var Pi=n(3379),Di=n.n(Pi),qi=n(7795),Ui=n.n(qi),Ji=n(569),ki=n.n(Ji),Li=n(3565),Bi=n.n(Li),ji=n(9216),Hi=n.n(ji),Wi=n(4589),Gi=n.n(Wi),$i=n(3631),Vi={};Vi.styleTagTransform=Gi(),Vi.setAttributes=Bi(),Vi.insert=ki().bind(null,"head"),Vi.domAPI=Ui(),Vi.insertStyleElement=Hi(),Di()($i.Z,Vi),$i.Z&&$i.Z.locals&&$i.Z.locals;var zi,Xi=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 Zi=zi=class extends ne{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.useMiniWidget=!0,this.launcherStyles={},this.popup=null,this.theme=ti(),this.chatId="",this.analytics=null,this.isMobile=On(),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=Se(),this.initializeInstanceVariables=async()=>{await this.setBuildingDerivedInfo(),await this.initializeLaunchJS(),this.attachOnClickToLauncher(),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,t;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 n=await async function(e){try{return(await Kt().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 Kt().get(`https://app.meetelise.com/platformApi/webchat/${e}/lead-sources`)).data}catch(e){return[]}}(this.buildingSlug),this.currentLeadSource=await async function(e,t){try{return(await Kt().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:An(),building_slug:e,referrer:t,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==n?void 0:n.abTestType)&&void 0!==e?e:"",wn(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:$n(e,t)}(this.orgSlug,this.buildingSlug),this.avatarSrc=this.avatarSrc||this.building.avatarSrc,this.theme=ti(null!==(t=this.themeId)&&void 0!==t?t: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,zi.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&&!On()&&"close"!==this.buildingABTestType&&(this.popup.show(),this.hideLauncher=!0,this.hasMounted=!0,sessionStorage.setItem("autoOpenedTimestamp",Zt(function(e,t){Fe(2,arguments);var n=Xe(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.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(),this.adjustTopHeaderContactCoords(),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&&zi.session))return;this.chatId=$n(this.orgSlug,this.buildingSlug);const e=await zi.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,b,w,S,T,x,O,I,R,C,N,A,E,_;window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Mi);const F=!this.hideLauncher||this.isLoading||"close"===this.buildingABTestType;return D`
2306
2306
  <div>
2307
2307
  <div
2308
2308
  id="contactTabPopup"
@@ -1,4 +1,5 @@
1
1
  import axios from "axios";
2
+ import { getCampaignSources } from "./analytics";
2
3
  import { getUrlQueryParameters } from "./postLeadSources";
3
4
 
4
5
  export default async function fetchCurrentParsedLeadSource(
@@ -13,6 +14,7 @@ export default async function fetchCurrentParsedLeadSource(
13
14
  query_params: getUrlQueryParameters(),
14
15
  building_slug: buildingSlug,
15
16
  referrer: referrer,
17
+ campaign_sources: getCampaignSources(),
16
18
  }
17
19
  );
18
20
  return currentParsedLeadSourceResponse.data;