@meetelise/chat 1.20.72 → 1.20.73
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 +1 -1
- package/public/dist/index.js +1 -1
- package/src/fetchBuildingInfo.ts +1 -1
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -1148,7 +1148,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1148
1148
|
margin-top: 37px;
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
`,Zt],qn([de({attribute:!1})],Un.prototype,"layoutOptions",void 0),qn([de({attribute:!1})],Un.prototype,"unitOptions",void 0),qn([de({attribute:!1})],Un.prototype,"tourTypeOptions",void 0),qn([de({attribute:!0})],Un.prototype,"chatId",void 0),qn([de({type:Number})],Un.prototype,"buildingId",void 0),qn([de({attribute:!0})],Un.prototype,"buildingSlug",void 0),qn([de({attribute:!0})],Un.prototype,"sgtUrl",void 0),qn([de({attribute:!0})],Un.prototype,"escortedToursLink",void 0),qn([de({attribute:!0})],Un.prototype,"virtualToursLink",void 0),qn([de({attribute:!0})],Un.prototype,"orgSlug",void 0),qn([ce()],Un.prototype,"tourType",void 0),qn([ce()],Un.prototype,"shouldShowTourType",void 0),qn([ce()],Un.prototype,"email",void 0),qn([ce()],Un.prototype,"phoneNumber",void 0),qn([ce()],Un.prototype,"availabilitiesGroupedByDay",void 0),qn([ce()],Un.prototype,"waitingForAvailabilities",void 0),qn([ce()],Un.prototype,"selectedDate",void 0),qn([ce()],Un.prototype,"selectedTime",void 0),qn([ce()],Un.prototype,"mobilePageIndex",void 0),qn([ce()],Un.prototype,"isSubmitting",void 0),qn([ce()],Un.prototype,"tourIsBooked",void 0),qn([de({attribute:!1})],Un.prototype,"leadSources",void 0),qn([de({attribute:!0})],Un.prototype,"currentLeadSource",void 0),qn([de({attribute:!0})],Un.prototype,"featureFlagShowDropdown",void 0),qn([pe(".nameContainer#firstName input")],Un.prototype,"firstNameInput",void 0),qn([pe(".nameContainer#lastName input")],Un.prototype,"lastNameInput",void 0),qn([pe(".inputContainer#email input")],Un.prototype,"emailInput",void 0),qn([pe(".inputContainer#phone input")],Un.prototype,"phoneInput",void 0),qn([pe("me-select#unitType")],Un.prototype,"unitTypeSelect",void 0),qn([pe("me-select#layoutType")],Un.prototype,"layoutTypeSelect",void 0),qn([pe("me-select#leadSource")],Un.prototype,"selectedLeadSource",void 0),Un=qn([ue("tour-scheduler")],Un),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(Bn||(Bn={}));const Jn={[Bn.Guided]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[Bn.Self]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[Bn.Virtual]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},kn={[Bn.Guided]:"escorted-tour",[Bn.Self]:"self-guided-tour",[Bn.Virtual]:"live-virtual-tour"},Ln=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(In.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(In.isString);class jn{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:Hn()})})}}const Hn=()=>{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 Gn,Wn=new Uint8Array(16);function Qn(){if(!Gn&&!(Gn="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 Gn(Wn)}const zn=/^(?:[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,Vn=function(e){return"string"==typeof e&&zn.test(e)};for(var Xn=[],Yn=0;Yn<256;++Yn)Xn.push((Yn+256).toString(16).substr(1));const Kn=function(e,t,n){var i=(e=e||{}).random||(e.rng||Qn)();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=(Xn[e[t+0]]+Xn[e[t+1]]+Xn[e[t+2]]+Xn[e[t+3]]+"-"+Xn[e[t+4]]+Xn[e[t+5]]+"-"+Xn[e[t+6]]+Xn[e[t+7]]+"-"+Xn[e[t+8]]+Xn[e[t+9]]+"-"+Xn[e[t+10]]+Xn[e[t+11]]+Xn[e[t+12]]+Xn[e[t+13]]+Xn[e[t+14]]+Xn[e[t+15]]).toLowerCase();if(!Vn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Zn(e,t){const n=ei(e,t),i=Kn();return localStorage.setItem(n,i),$n(e,t),i}function $n(e,t){const n=ti(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function ei(e,t){return`com.meetelise.chatID-${e}-${t}`}function ti(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const ni="#FFFFFF",ii="#202020",ri="#636889",oi={user:{textColor:ni,backgroundColor:"#1990FF"},agent:{textColor:ni,backgroundColor:"#1E1E1E"}},ai={user:{textColor:ni,backgroundColor:"#83818E"},agent:{textColor:ni,backgroundColor:ii}},si={Light:{chatHeader:{backgroundColor:ni,textColor:ii},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:oi},Dark:{chatHeader:{backgroundColor:ii,textColor:ni},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:oi},Purple:{chatHeader:{backgroundColor:"#550098",textColor:ni},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:oi},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:ni},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:oi},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:ii},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:ai},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:ni},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:oi},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:ii},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:ai},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:ni},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:oi},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:ni},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:oi},Glass:{chatHeader:{backgroundColor:ni,textColor:ii},chatPaneBackgroundColor:"rgba(193, 193, 193, 0.5)",message:{user:{textColor:"#FFFFFF",backgroundColor:"#000000"},agent:{textColor:"#000000",backgroundColor:"#FFFFFF"}}}},ui=({themeId:e,brandColor:t})=>{const n=si[e&&Object.keys(si).includes(e)?e:"Light"];return t&&t!==ri&&(n.message.user.backgroundColor=t,n.chatHeader.backgroundColor=o(t,.6)),n};function li(e,t,n,i,r,o){var a;const s=new Re.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===ai).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}async function di(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}async function ci(e){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/customization`);return n.data?{primaryColor:n.data.primaryColor,designConcept:n.data.designConcept,delayOpen:+n.data.delayOpen}:null}catch(e){return null}}var pi;async function fi(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}async function hi(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Fn(),building_slug:e,referrer:n,campaign_sources:Hn()})).data}catch(e){return null}}!function(e){e.ConceptEmoji="Concept 2 (Blue/White)"}(pi||(pi={}));const mi=d`
|
|
1151
|
+
`,Zt],qn([de({attribute:!1})],Un.prototype,"layoutOptions",void 0),qn([de({attribute:!1})],Un.prototype,"unitOptions",void 0),qn([de({attribute:!1})],Un.prototype,"tourTypeOptions",void 0),qn([de({attribute:!0})],Un.prototype,"chatId",void 0),qn([de({type:Number})],Un.prototype,"buildingId",void 0),qn([de({attribute:!0})],Un.prototype,"buildingSlug",void 0),qn([de({attribute:!0})],Un.prototype,"sgtUrl",void 0),qn([de({attribute:!0})],Un.prototype,"escortedToursLink",void 0),qn([de({attribute:!0})],Un.prototype,"virtualToursLink",void 0),qn([de({attribute:!0})],Un.prototype,"orgSlug",void 0),qn([ce()],Un.prototype,"tourType",void 0),qn([ce()],Un.prototype,"shouldShowTourType",void 0),qn([ce()],Un.prototype,"email",void 0),qn([ce()],Un.prototype,"phoneNumber",void 0),qn([ce()],Un.prototype,"availabilitiesGroupedByDay",void 0),qn([ce()],Un.prototype,"waitingForAvailabilities",void 0),qn([ce()],Un.prototype,"selectedDate",void 0),qn([ce()],Un.prototype,"selectedTime",void 0),qn([ce()],Un.prototype,"mobilePageIndex",void 0),qn([ce()],Un.prototype,"isSubmitting",void 0),qn([ce()],Un.prototype,"tourIsBooked",void 0),qn([de({attribute:!1})],Un.prototype,"leadSources",void 0),qn([de({attribute:!0})],Un.prototype,"currentLeadSource",void 0),qn([de({attribute:!0})],Un.prototype,"featureFlagShowDropdown",void 0),qn([pe(".nameContainer#firstName input")],Un.prototype,"firstNameInput",void 0),qn([pe(".nameContainer#lastName input")],Un.prototype,"lastNameInput",void 0),qn([pe(".inputContainer#email input")],Un.prototype,"emailInput",void 0),qn([pe(".inputContainer#phone input")],Un.prototype,"phoneInput",void 0),qn([pe("me-select#unitType")],Un.prototype,"unitTypeSelect",void 0),qn([pe("me-select#layoutType")],Un.prototype,"layoutTypeSelect",void 0),qn([pe("me-select#leadSource")],Un.prototype,"selectedLeadSource",void 0),Un=qn([ue("tour-scheduler")],Un),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(Bn||(Bn={}));const Jn={[Bn.Guided]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[Bn.Self]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[Bn.Virtual]:nn.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},kn={[Bn.Guided]:"escorted-tour",[Bn.Self]:"self-guided-tour",[Bn.Virtual]:"live-virtual-tour"},Ln=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(In.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(In.isString);class jn{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:Hn()})})}}const Hn=()=>{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 Gn,Wn=new Uint8Array(16);function Qn(){if(!Gn&&!(Gn="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 Gn(Wn)}const zn=/^(?:[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,Vn=function(e){return"string"==typeof e&&zn.test(e)};for(var Xn=[],Yn=0;Yn<256;++Yn)Xn.push((Yn+256).toString(16).substr(1));const Kn=function(e,t,n){var i=(e=e||{}).random||(e.rng||Qn)();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=(Xn[e[t+0]]+Xn[e[t+1]]+Xn[e[t+2]]+Xn[e[t+3]]+"-"+Xn[e[t+4]]+Xn[e[t+5]]+"-"+Xn[e[t+6]]+Xn[e[t+7]]+"-"+Xn[e[t+8]]+Xn[e[t+9]]+"-"+Xn[e[t+10]]+Xn[e[t+11]]+Xn[e[t+12]]+Xn[e[t+13]]+Xn[e[t+14]]+Xn[e[t+15]]).toLowerCase();if(!Vn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Zn(e,t){const n=ei(e,t),i=Kn();return localStorage.setItem(n,i),$n(e,t),i}function $n(e,t){const n=ti(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function ei(e,t){return`com.meetelise.chatID-${e}-${t}`}function ti(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const ni="#FFFFFF",ii="#202020",ri="#636889",oi={user:{textColor:ni,backgroundColor:"#1990FF"},agent:{textColor:ni,backgroundColor:"#1E1E1E"}},ai={user:{textColor:ni,backgroundColor:"#83818E"},agent:{textColor:ni,backgroundColor:ii}},si={Light:{chatHeader:{backgroundColor:ni,textColor:ii},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:oi},Dark:{chatHeader:{backgroundColor:ii,textColor:ni},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:oi},Purple:{chatHeader:{backgroundColor:"#550098",textColor:ni},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:oi},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:ni},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:oi},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:ii},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:ai},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:ni},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:oi},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:ii},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:ai},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:ni},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:oi},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:ni},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:oi},Glass:{chatHeader:{backgroundColor:ni,textColor:ii},chatPaneBackgroundColor:"rgba(193, 193, 193, 0.5)",message:{user:{textColor:"#FFFFFF",backgroundColor:"#000000"},agent:{textColor:"#000000",backgroundColor:"#FFFFFF"}}}},ui=({themeId:e,brandColor:t})=>{const n=si[e&&Object.keys(si).includes(e)?e:"Light"];return t&&t!==ri&&(n.message.user.backgroundColor=t,n.chatHeader.backgroundColor=o(t,.6)),n};function li(e,t,n,i,r,o){var a;const s=new Re.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===ai).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}async function di(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?showAvailableOnly=true`),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}async function ci(e){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/customization`);return n.data?{primaryColor:n.data.primaryColor,designConcept:n.data.designConcept,delayOpen:+n.data.delayOpen}:null}catch(e){return null}}var pi;async function fi(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}async function hi(e,n){try{return(await t().post("https://app.meetelise.com/platformApi/webchat/current-parsed-lead-source",{query_params:Fn(),building_slug:e,referrer:n,campaign_sources:Hn()})).data}catch(e){return null}}!function(e){e.ConceptEmoji="Concept 2 (Blue/White)"}(pi||(pi={}));const mi=d`
|
|
1152
1152
|
* {
|
|
1153
1153
|
font-family: "Helvetica Neue", Arial;
|
|
1154
1154
|
font-size: 14px;
|
package/src/fetchBuildingInfo.ts
CHANGED
|
@@ -56,7 +56,7 @@ export default async function fetchBuildingInfo(
|
|
|
56
56
|
// HACK
|
|
57
57
|
// We will fetch these units/layouts from elise-crm-api and supplement the DTO
|
|
58
58
|
const unitsResponse = await fetch(
|
|
59
|
-
`${host}/eliseCrmApi/pub/building/${buildingSlug}/units`
|
|
59
|
+
`${host}/eliseCrmApi/pub/building/${buildingSlug}/units?showAvailableOnly=true`
|
|
60
60
|
);
|
|
61
61
|
const units: UnitV2[] = await unitsResponse.json();
|
|
62
62
|
const layoutsResponse = await fetch(
|