@meetelise/chat 1.77.1 → 1.77.3
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/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +1 -1
- package/dist/src/utils.d.ts +1 -4
- package/package.json +3 -1
- package/public/dist/index.js +373 -364
- package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +26 -10
- package/src/emailValidation.test.ts +16 -0
- package/src/tourSchedulerV2Booking.test.ts +6 -0
- package/src/utils.ts +14 -6
package/public/dist/index.js
CHANGED
|
@@ -926,11 +926,11 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
926
926
|
:host([outlined]) #noAvailabilityText p {
|
|
927
927
|
margin: 0;
|
|
928
928
|
}
|
|
929
|
-
`,gr([pe({attribute:!1})],br.prototype,"options",void 0),gr([pe({type:Boolean})],br.prototype,"selectedDateExists",void 0),gr([pe({attribute:!0})],br.prototype,"timezone",void 0),gr([pe({attribute:!0})],br.prototype,"defaultSelectedTime",void 0),gr([pe({type:Boolean,reflect:!0})],br.prototype,"outlined",void 0),gr([fe()],br.prototype,"selected",void 0),gr([pe({attribute:!1})],br.prototype,"selectedTime",null),br=gr([ce("time-picker")],br);var yr=i(4058),vr=i.n(yr),wr=i(4124),xr=i.n(wr),Cr=i(6449),$r=i.n(Cr),Sr=i(3805),kr=i.n(Sr),Ar=i(9752),Tr=i.n(Ar);function Er(e,t){sn(2,arguments);var i=ln(e),n=ln(t);return i.getTime()<n.getTime()}const _r=(e,t)=>Tr()(e,(e,i,n,r)=>{e[(null==t?void 0:t.includes(n))||$r()(r)?n:vr()(String(n))]=kr()(i)?
|
|
929
|
+
`,gr([pe({attribute:!1})],br.prototype,"options",void 0),gr([pe({type:Boolean})],br.prototype,"selectedDateExists",void 0),gr([pe({attribute:!0})],br.prototype,"timezone",void 0),gr([pe({attribute:!0})],br.prototype,"defaultSelectedTime",void 0),gr([pe({type:Boolean,reflect:!0})],br.prototype,"outlined",void 0),gr([fe()],br.prototype,"selected",void 0),gr([pe({attribute:!1})],br.prototype,"selectedTime",null),br=gr([ce("time-picker")],br);var yr=i(4058),vr=i.n(yr),wr=i(4124),xr=i.n(wr),Cr=i(6449),$r=i.n(Cr),Sr=i(3805),kr=i.n(Sr),Ar=i(9752),Tr=i.n(Ar);function Er(e,t){sn(2,arguments);var i=ln(e),n=ln(t);return i.getTime()<n.getTime()}const _r=2147483647,Or=36,Pr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ir=Math.floor;String.fromCharCode;function Nr(e){throw new RangeError(Pr[e])}const Mr=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Or},Dr=function(e,t,i){let n=0;for(e=i?Ir(e/700):e>>1,e+=Ir(e/t);e>455;n+=Or)e=Ir(e/35);return Ir(n+36*e/(e+38))},Lr=function(e){const t=[],i=e.length;let n=0,r=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let i=0;i<a;++i)e.charCodeAt(i)>=128&&Nr("not-basic"),t.push(e.charCodeAt(i));for(let s=a>0?a+1:0;s<i;){const a=n;for(let t=1,r=Or;;r+=Or){s>=i&&Nr("invalid-input");const a=Mr(e.charCodeAt(s++));a>=Or&&Nr("invalid-input"),a>Ir((_r-n)/t)&&Nr("overflow"),n+=a*t;const l=r<=o?1:r>=o+26?26:r-o;if(a<l)break;const d=Or-l;t>Ir(_r/d)&&Nr("overflow"),t*=d}const l=t.length+1;o=Dr(n-a,l,0==a),Ir(n/l)>_r-r&&Nr("overflow"),r+=Ir(n/l),n%=l,t.splice(n++,0,r)}return String.fromCodePoint(...t)},Rr=(e,t)=>Tr()(e,(e,i,n,r)=>{e[(null==t?void 0:t.includes(n))||$r()(r)?n:vr()(String(n))]=kr()(i)?Rr(i,t):i}),Br=(e,t)=>Tr()(e,(e,i,n,r)=>{e[(null==t?void 0:t.includes(n))||$r()(r)?n:xr()(String(n))]=kr()(i)?Br(i,t):i}),Ur="(max-width: 767px)",jr="(max-height: 400px)",Fr=()=>window.matchMedia(Ur).matches||window.matchMedia(jr).matches,Hr=e=>{const t=window.matchMedia(Ur),i=window.matchMedia(jr),n=()=>e(t.matches||i.matches);return t.addEventListener("change",n),i.addEventListener("change",n),()=>{t.removeEventListener("change",n),i.removeEventListener("change",n)}},zr=(e,t)=>Er(function(e,t){return sn(2,arguments),Sn(e,36e5*$n(t))}(e,t),Date.now()),Gr=e=>{try{const t=document.cookie.split("; ").map(e=>e.split("=")).find(([t])=>t===e);return t?decodeURIComponent(t[1]):null}catch(e){return null}},Wr=e=>{const t=/^[^\s@]+@[^\s@]+\.(?:([\p{L}\p{M}]+)|xn--([a-z\d-]*[a-z\d]))$/iu.exec(e);if(!t)return!1;const[,i,n]=t;try{const e=n?Lr(n):i;return/^(?:\p{L}\p{M}*){2,}$/u.test(e)}catch{return!1}},qr=e=>{if(!e)return"";return(e.includes(" ")?e:e.replace(/([A-Z])/g," $1").trim()).split(" ").map(e=>e.length>1&&e===e.toUpperCase()?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},Vr=(e,t=0)=>Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t}).format(null!=e?e:0);var Qr=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Yr=class extends de{constructor(){super(),this.options=[],this.placeholder="Select",this.outlined=!1,this.activeOption=null,this.isOpen=!1,this.activeOptionIndex=null,this.searchTerm="",this.focus=()=>{this.selectInput.focus()},this.closeSelect=()=>{this.isOpen=!1,this.searchTerm="",this.activeOption=null,this.activeOptionIndex=null},this.openSelect=()=>{this.isOpen=!0},this.toggleSelect=()=>{this.isOpen?this.closeSelect():(this.openSelect(),this.selectInput.focus())},this.setSelectedOption=(e,t=!0)=>{this.value!==e.value?this.value=e.value:this.value=void 0,t&&this.closeSelect(),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)=>i=>{("string"==typeof e&&i.key===e||"object"==typeof e&&e.includes(i.key))&&t()},this.handleSearchInput=e=>{this.searchTerm=e.target.value,this.activeOption=null,this.activeOptionIndex=null},this.firstUpdated=()=>{this.value&&this.meSelect&&(this.meSelect.style.color="rgba(32, 32, 32, 1)")},this.listboxId=`me-select-listbox-${Math.random().toString(36).slice(2,9)}`,this.optionId=e=>`${this.listboxId}-opt-${e}`,document.addEventListener("click",e=>{e.composedPath().includes(this)||this.closeSelect()})}get visibleOptions(){const e=this.searchTerm.trim().toLowerCase();return e?this.options.filter(t=>t.label.toLowerCase().includes(e)):this.options}adjustScrollToActiveOption(){if(null!=this.activeOptionIndex){const e=this.renderRoot.querySelectorAll(".option")[this.activeOptionIndex];e&&e.scrollIntoView({block:"nearest"})}}render(){var e,t;const i=this.activeOptionIndex,n=null!==(e=this.placeholder)&&void 0!==e?e:"Select",r=this.visibleOptions,o=null===(t=this.options.find(e=>e.value===this.value))||void 0===t?void 0:t.label,a=this.isOpen?this.searchTerm:o||this.value||"";return H`
|
|
930
930
|
<div id="outer-select-container">
|
|
931
931
|
<div
|
|
932
932
|
id="select"
|
|
933
|
-
class=${xe({"webchat-input":!0,"webchat-font__desktop":!
|
|
933
|
+
class=${xe({"webchat-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
934
934
|
@mousedown=${e=>{e.target!==this.selectInput&&e.preventDefault()}}
|
|
935
935
|
@click=${this.toggleSelect}
|
|
936
936
|
@keydown="${e=>{switch(e.key){case"Enter":e.preventDefault(),this.isOpen&&this.activeOption?this.setSelectedOption(this.activeOption):this.isOpen||this.openSelect();break;case"Escape":this.isOpen&&(e.preventDefault(),this.closeSelect());break;case"ArrowUp":e.preventDefault(),this.isOpen&&null!=this.activeOptionIndex&&(this.activeOptionIndex=Math.max(0,this.activeOptionIndex-1),this.activeOption=r[this.activeOptionIndex],this.adjustScrollToActiveOption());break;case"ArrowDown":e.preventDefault(),this.isOpen&&r.length>0&&(null==this.activeOptionIndex?this.activeOptionIndex=0:this.activeOptionIndex<r.length-1&&this.activeOptionIndex++,this.activeOption=r[this.activeOptionIndex],this.adjustScrollToActiveOption())}}}"
|
|
@@ -984,7 +984,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
984
984
|
</li>`)}
|
|
985
985
|
</ul>`:""}
|
|
986
986
|
</div>
|
|
987
|
-
`}};function
|
|
987
|
+
`}};function Kr(e,t){sn(1,arguments);var i=ln(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var n=null!=t&&t.format?String(t.format):"extended",r=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==n&&"basic"!==n)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==r&&"time"!==r&&"complete"!==r)throw new RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===n?"-":"",l="extended"===n?":":"";if("time"!==r){var d=Pn(i.getDate(),2),u=Pn(i.getMonth()+1,2),c=Pn(i.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(d)}if("date"!==r){var h=i.getTimezoneOffset();if(0!==h){var p=Math.abs(h),f=Pn(Math.floor(p/60),2),g=Pn(p%60,2);a="".concat(h<0?"+":"-").concat(f,":").concat(g)}else a="Z";var m=""===o?"":"T",b=[Pn(i.getHours(),2),Pn(i.getMinutes(),2),Pn(i.getSeconds(),2)].join(l);o="".concat(o).concat(m).concat(b).concat(a)}return o}function Xr(){return lr(Date.now())}function Zr(e,t){sn(2,arguments);var i=ln(e),n=$n(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}var Jr;Yr.styles=[p`
|
|
988
988
|
:host {
|
|
989
989
|
--light-grey: #e3e3e3;
|
|
990
990
|
--active-option-color: #f5f7f9;
|
|
@@ -1146,10 +1146,10 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1146
1146
|
line-height: 20px;
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
|
-
`],jr([pe({attribute:!1})],Fr.prototype,"options",void 0),jr([pe({type:String})],Fr.prototype,"placeholder",void 0),jr([pe({type:String})],Fr.prototype,"value",void 0),jr([pe({type:Boolean,reflect:!0})],Fr.prototype,"outlined",void 0),jr([fe()],Fr.prototype,"activeOption",void 0),jr([fe()],Fr.prototype,"isOpen",void 0),jr([fe()],Fr.prototype,"activeOptionIndex",void 0),jr([fe()],Fr.prototype,"searchTerm",void 0),jr([ge("#select",!0)],Fr.prototype,"meSelect",void 0),jr([ge("#selectText",!0)],Fr.prototype,"selectInput",void 0),Fr=jr([ce("me-select")],Fr),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Wr||(Wr={}));var qr=i(2013),Vr=i.n(qr);Math.pow(10,8);var Qr=6e4,Yr=36e5;function Kr(e,t){sn(1,arguments);var i=t||{},n=null==i.additionalDigits?2:$n(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=function(e){var t,i={},n=e.split(Xr.dateTimeDelimiter);if(n.length>2)return i;/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Xr.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Xr.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length)));if(t){var r=Xr.timezone.exec(t);r?(i.time=t.replace(r[1],""),i.timezone=r[1]):i.time=t}return i}(e);if(o.date){var a=function(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(o.date,n);r=function(e,t){if(null===t)return new Date(NaN);var i=e.match(Zr);if(!i)return new Date(NaN);var n=!!i[4],r=to(i[1]),o=to(i[2])-1,a=to(i[3]),s=to(i[4]),l=to(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var r=n.getUTCDay()||7,o=7*(t-1)+i+1-r;return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);var d=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(no[t]||(ro(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(ro(e)?366:365)}(t,r)?(d.setUTCFullYear(t,o,Math.max(r,a)),d):new Date(NaN)}(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),d=0;if(o.time&&(d=function(e){var t=e.match(Jr);if(!t)return NaN;var i=io(t[1]),n=io(t[2]),r=io(t[3]);if(!function(e,t,i){if(24===e)return 0===t&&0===i;return i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,r))return NaN;return i*Yr+n*Qr+1e3*r}(o.time),isNaN(d)))return new Date(NaN);if(!o.timezone){var u=new Date(l+d),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return s=function(e){if("Z"===e)return 0;var t=e.match(eo);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return i*(n*Yr+r*Qr)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+d+s)}var Xr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Zr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Jr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,eo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function to(e){return e?parseInt(e):1}function io(e){return e&&parseFloat(e.replace(",","."))||0}var no=[31,null,31,30,31,30,31,31,30,31,30,31];function ro(e){return e%400==0||e%4==0&&e%100!=0}const oo={buildingId:null,availabilities:{}},ao=()=>{oo.buildingId=null,oo.availabilities={}},so=async e=>{e&&(oo.buildingId=e);const t=oo.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const i=oo.availabilities;if(i[t])return i[t];const n=zr(),o=Hr(function(e){sn(1,arguments);var t=ln(e);return t.setHours(23,59,59,999),t}(Gr(n,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(Hr(n))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return oo.availabilities[t]=s.data,s.data},lo=async(e,t)=>{var i,n;const r=await so(t),o=(null===(i=r.availability)||void 0===i?void 0:i[e])?null===(n=r.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},uo=async()=>{var e,t,i,n,r,o;return{[wd.Guided]:!!(null===(t=null===(e=await lo(Wr.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[wd.Self]:!!(null===(n=null===(i=await lo(Wr.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[wd.Virtual]:!!(null===(o=null===(r=await lo(Wr.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},co=async(e,t)=>{var i,n;const r=await lo(e,t);if(!r)return{};const o={availableTourStartTimes:null===(i=r.availableTourStartTimes?r.availableTourStartTimes.filter(e=>un(Kr(e))&&!function(e){return sn(1,arguments),ln(e).getTime()<Date.now()}(Kr(e))):[])||void 0===i?void 0:i.map(e=>ho(e))};return Vr()(null!==(n=o.availableTourStartTimes)&&void 0!==n?n:[],e=>nr(new Date(e.datetime),"yyyy-MM-dd"))},ho=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var po=i(3916),fo=i.n(po),go=i(2485),mo=i.n(go);const bo=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var yo;async function vo(e){if(!e)return!1;try{return(await r().get(bo(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(yo||(yo={}));const wo=e=>`https://app.meetelise.com/platformApi/webchat/${e}/tracked-rollout`;async function xo(e){if(!e)return!1;try{return(await r().get(wo(e),{params:{rollout_name:"webchat_bedroom_preference_required",default_value:!1}})).data}catch(e){return!1}}async function Co(e){if(!e)return!1;try{return!0===(await r().get(wo(e),{params:{rollout_name:"webchat_tour_scheduler_v2",default_value:!1},timeout:3e3})).data}catch(e){return!1}}async function $o(e){if(!e)return!1;try{return!0===(await r().get(wo(e),{params:{rollout_name:"broker_rollout",default_value:!1},timeout:3e3})).data}catch(e){return!1}}class So{constructor(e,t,i,n){this.org=e,this.building=t,this.chatId=i,this.incomingProcessedLeadSource=n,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:ko(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const ko=()=>{var e,t,i,n,r,o;try{const n=new URL(window.location.href).searchParams,r=null!==(i=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==i?i:null,o=n.get("switch_cls[id]"),a=n.get("ilm"),s=n.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Lr("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const i=t.contentWindow.URL;if(!i)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new i(window.location.href).searchParams,s=null!==(o=null===(r=null===(n=window.RCTPCampaign)||void 0===n?void 0:n.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Lr("bozzuto_ad_source")}}};var Ao;!function(e){e.error="error",e.info="info",e.warn="warn"}(Ao||(Ao={}));const To=async({logType:e,buildingSlug:t,orgSlug:i,logTitle:o,logData:a,error:s})=>{var l;if(s instanceof n.AxiosError&&403===(null===(l=s.response)||void 0===l?void 0:l.status))return;await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...a},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=i?i:"","log-type":null!=e?e:Ao.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},Eo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}},_o="https://app.meetelise.com",Oo=async e=>{if(!e)return[];try{const t=await r().get(`${_o}/platformApi/webchat/${e}/floorplan-options`,{timeout:3e3});return Array.isArray(t.data)?t.data.filter(e=>!!(null==e?void 0:e.name)):[]}catch(t){return To({logType:Ao.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FLOORPLAN_OPTIONS]",logData:{error:t},error:t}),[]}};function Po(){return No()?function(){const e=window.location.search,t={},i=e.split("?").slice(1).join("&");return i.split("&").forEach(e=>{const[i,n]=e.split("=");i&&n&&(t[decodeURIComponent(i)]=decodeURIComponent(n))}),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),i=e.has("utm_source");if(t&&!i){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}function Io(e,t){if(!e||!t)return e;try{const i=new URL(e);return Object.entries(t).forEach(([e,t])=>{i.searchParams.set(e,t)}),i.toString()}catch(t){return e}}const No=()=>(window.location.search.match(/\?/g)||[]).length>1,Mo=[57,2575,2332],Do=["email","phone","firstName","lastName","message","tourDetails"];let Lo=!1;const Ro=(e,t={})=>{window.dataLayer=window.dataLayer||[];let i=t;if(Lo){i={...t};for(const e of Do)delete i[e]}window.dataLayer.push({event:e,...i})};class Bo extends we{constructor(e){if(super(e),this.it=W,e.type!==ye)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||null==e)return this.ft=void 0,this.it=e;if(e===G)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Bo.directiveName="unsafeHTML",Bo.resultType=1;const Uo=ve(Bo),jo=z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
1149
|
+
`],Qr([pe({attribute:!1})],Yr.prototype,"options",void 0),Qr([pe({type:String})],Yr.prototype,"placeholder",void 0),Qr([pe({type:String})],Yr.prototype,"value",void 0),Qr([pe({type:Boolean,reflect:!0})],Yr.prototype,"outlined",void 0),Qr([fe()],Yr.prototype,"activeOption",void 0),Qr([fe()],Yr.prototype,"isOpen",void 0),Qr([fe()],Yr.prototype,"activeOptionIndex",void 0),Qr([fe()],Yr.prototype,"searchTerm",void 0),Qr([ge("#select",!0)],Yr.prototype,"meSelect",void 0),Qr([ge("#selectText",!0)],Yr.prototype,"selectInput",void 0),Yr=Qr([ce("me-select")],Yr),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Jr||(Jr={}));var eo=i(2013),to=i.n(eo);Math.pow(10,8);var io=6e4,no=36e5;function ro(e,t){sn(1,arguments);var i=t||{},n=null==i.additionalDigits?2:$n(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=function(e){var t,i={},n=e.split(oo.dateTimeDelimiter);if(n.length>2)return i;/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],oo.timeZoneDelimiter.test(i.date)&&(i.date=e.split(oo.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length)));if(t){var r=oo.timezone.exec(t);r?(i.time=t.replace(r[1],""),i.timezone=r[1]):i.time=t}return i}(e);if(o.date){var a=function(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(o.date,n);r=function(e,t){if(null===t)return new Date(NaN);var i=e.match(ao);if(!i)return new Date(NaN);var n=!!i[4],r=uo(i[1]),o=uo(i[2])-1,a=uo(i[3]),s=uo(i[4]),l=uo(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var r=n.getUTCDay()||7,o=7*(t-1)+i+1-r;return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);var d=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(ho[t]||(po(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(po(e)?366:365)}(t,r)?(d.setUTCFullYear(t,o,Math.max(r,a)),d):new Date(NaN)}(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),d=0;if(o.time&&(d=function(e){var t=e.match(so);if(!t)return NaN;var i=co(t[1]),n=co(t[2]),r=co(t[3]);if(!function(e,t,i){if(24===e)return 0===t&&0===i;return i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,r))return NaN;return i*no+n*io+1e3*r}(o.time),isNaN(d)))return new Date(NaN);if(!o.timezone){var u=new Date(l+d),c=new Date(0);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return s=function(e){if("Z"===e)return 0;var t=e.match(lo);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return i*(n*no+r*io)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+d+s)}var oo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ao=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,so=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lo=/^([+-])(\d{2})(?::?(\d{2}))?$/;function uo(e){return e?parseInt(e):1}function co(e){return e&&parseFloat(e.replace(",","."))||0}var ho=[31,null,31,30,31,30,31,31,30,31,30,31];function po(e){return e%400==0||e%4==0&&e%100!=0}const fo={buildingId:null,availabilities:{}},go=()=>{fo.buildingId=null,fo.availabilities={}},mo=async e=>{e&&(fo.buildingId=e);const t=fo.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const i=fo.availabilities;if(i[t])return i[t];const n=Xr(),o=Kr(function(e){sn(1,arguments);var t=ln(e);return t.setHours(23,59,59,999),t}(Zr(n,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(Kr(n))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return fo.availabilities[t]=s.data,s.data},bo=async(e,t)=>{var i,n;const r=await mo(t),o=(null===(i=r.availability)||void 0===i?void 0:i[e])?null===(n=r.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},yo=async()=>{var e,t,i,n,r,o;return{[Ed.Guided]:!!(null===(t=null===(e=await bo(Jr.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[Ed.Self]:!!(null===(n=null===(i=await bo(Jr.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[Ed.Virtual]:!!(null===(o=null===(r=await bo(Jr.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},vo=async(e,t)=>{var i,n;const r=await bo(e,t);if(!r)return{};const o={availableTourStartTimes:null===(i=r.availableTourStartTimes?r.availableTourStartTimes.filter(e=>un(ro(e))&&!function(e){return sn(1,arguments),ln(e).getTime()<Date.now()}(ro(e))):[])||void 0===i?void 0:i.map(e=>wo(e))};return to()(null!==(n=o.availableTourStartTimes)&&void 0!==n?n:[],e=>nr(new Date(e.datetime),"yyyy-MM-dd"))},wo=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var xo=i(3916),Co=i.n(xo),$o=i(2485),So=i.n($o);const ko=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var Ao;async function To(e){if(!e)return!1;try{return(await r().get(ko(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(Ao||(Ao={}));const Eo=e=>`https://app.meetelise.com/platformApi/webchat/${e}/tracked-rollout`;async function _o(e){if(!e)return!1;try{return(await r().get(Eo(e),{params:{rollout_name:"webchat_bedroom_preference_required",default_value:!1}})).data}catch(e){return!1}}async function Oo(e){if(!e)return!1;try{return!0===(await r().get(Eo(e),{params:{rollout_name:"webchat_tour_scheduler_v2",default_value:!1},timeout:3e3})).data}catch(e){return!1}}async function Po(e){if(!e)return!1;try{return!0===(await r().get(Eo(e),{params:{rollout_name:"broker_rollout",default_value:!1},timeout:3e3})).data}catch(e){return!1}}class Io{constructor(e,t,i,n){this.org=e,this.building=t,this.chatId=i,this.incomingProcessedLeadSource=n,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:No(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const No=()=>{var e,t,i,n,r,o;try{const n=new URL(window.location.href).searchParams,r=null!==(i=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==i?i:null,o=n.get("switch_cls[id]"),a=n.get("ilm"),s=n.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Gr("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const i=t.contentWindow.URL;if(!i)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new i(window.location.href).searchParams,s=null!==(o=null===(r=null===(n=window.RCTPCampaign)||void 0===n?void 0:n.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Gr("bozzuto_ad_source")}}};var Mo;!function(e){e.error="error",e.info="info",e.warn="warn"}(Mo||(Mo={}));const Do=async({logType:e,buildingSlug:t,orgSlug:i,logTitle:o,logData:a,error:s})=>{var l;if(s instanceof n.AxiosError&&403===(null===(l=s.response)||void 0===l?void 0:l.status))return;await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...a},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=i?i:"","log-type":null!=e?e:Mo.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},Lo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}},Ro="https://app.meetelise.com",Bo=async e=>{if(!e)return[];try{const t=await r().get(`${Ro}/platformApi/webchat/${e}/floorplan-options`,{timeout:3e3});return Array.isArray(t.data)?t.data.filter(e=>!!(null==e?void 0:e.name)):[]}catch(t){return Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FLOORPLAN_OPTIONS]",logData:{error:t},error:t}),[]}};function Uo(){return Fo()?function(){const e=window.location.search,t={},i=e.split("?").slice(1).join("&");return i.split("&").forEach(e=>{const[i,n]=e.split("=");i&&n&&(t[decodeURIComponent(i)]=decodeURIComponent(n))}),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),i=e.has("utm_source");if(t&&!i){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}function jo(e,t){if(!e||!t)return e;try{const i=new URL(e);return Object.entries(t).forEach(([e,t])=>{i.searchParams.set(e,t)}),i.toString()}catch(t){return e}}const Fo=()=>(window.location.search.match(/\?/g)||[]).length>1,Ho=[57,2575,2332],zo=["email","phone","firstName","lastName","message","tourDetails"];let Go=!1;const Wo=(e,t={})=>{window.dataLayer=window.dataLayer||[];let i=t;if(Go){i={...t};for(const e of zo)delete i[e]}window.dataLayer.push({event:e,...i})};class qo extends we{constructor(e){if(super(e),this.it=W,e.type!==ye)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||null==e)return this.ft=void 0,this.it=e;if(e===G)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}qo.directiveName="unsafeHTML",qo.resultType=1;const Vo=ve(qo),Qo=z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
1150
1150
|
<rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
|
|
1151
1151
|
</svg>
|
|
1152
|
-
`,
|
|
1152
|
+
`,Yo=(z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
1153
1153
|
<rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
|
|
1154
1154
|
<path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1155
1155
|
</svg>`,()=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
@@ -1160,15 +1160,15 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1160
1160
|
</pattern>
|
|
1161
1161
|
<image id="image0_999_1441" width="256" height="256" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAMa2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJDQAghICb0jUgNICaEFkN5thCSQUGJMCCr2sqjg2kUUK7oqomBZaXbsyqLY+2JBRVkXdbGh8iYkoOu+8r3zfXPvnzNn/lPuTO49AGh+4Eok+agWAAXiQmlCeDAjLT2DQXoGEEABZOAJiFyeTMKKi4sGUAbvf5d3N6A1lKvOCq5/zv9X0eELZDwAkLEQZ/FlvAKIjwOAr+dJpIUAEBV6y8mFEgWeDbGuFAYI8SoFzlHinQqcpcSHB2ySEtgQXwZAjcrlSnMA0LgH9YwiXg7k0fgMsauYLxIDoOkEcQBPyOVDrIjdqaBgogJXQGwH7SUQw3gAM+s7zpy/8WcN8XO5OUNYmdeAqIWIZJJ87tT/szT/Wwry5YM+bOCgCqURCYr8YQ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cwgpNoB8YBBf21+KFAg/2ZEWfTsCLrPmwq9nYH2jaxz8A9nF/79s1LvU3Dz9++1cAMAe+0X26P1TYGA61N3PPcFvd4TP+fBgNdDM/CvCSho7MDHDwoLMNI8XugRdqV3W5fnQGA9PULfbU197OGr7v4Eo/rKs58EX+/UAIBaouFnpQUCENiT/Py4wKDbW7muw3hB7/RTpB2oUikoKB7OWALCrDEFhT33+QthV6QJfa8z+Yl+NnlXldCTzddXt+0H3gDAfvgV9+g7pGCAXY2affyv3nfowPGrngEgtLKVG9r9/vVVoLDl16Z3h6yHN8+hryLwi1d947OX3r3wNan3JKtee3FUn/pvhRoA2EprNXl3rAWqhC4MtNkTBQqm1l88f+zGwwADFQEcfIUACgRbcQg44U578mvwB6/80tevuWj5eFVvXvV87tnv1ADAfv+F9+j7FQJJ/TeZX/dAQXZpEmk8adBWys7v2L/fDQDs3992371ZSXC383abAMl2imzuaVqgaYFz0QJ2vuFmj5UGsFm+Jr1pgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhbY9S3w/30FRG3JAQVvAAAAAElFTkSuQmCC"/>
|
|
1162
1162
|
</defs>
|
|
1163
|
-
</svg>`),
|
|
1164
|
-
style=${Ki(
|
|
1163
|
+
</svg>`),Ko={fontSize:"10px",paddingTop:"4px"},Xo={color:"#4287f5"},Zo={margin:"0 0 4px"},Jo=["UT","ME"],ea="https://eliseai.com/canada-policy",ta=e=>"CA"===e,ia="https://eliseai.com/fr/canada-policy",na="https://eliseai.com/fr/msgterms",ra=e=>"QC"===(null==e?void 0:e.trim().toUpperCase()),oa=(e,t)=>H`<a
|
|
1164
|
+
style=${Ki(Xo)}
|
|
1165
1165
|
href=${e}
|
|
1166
1166
|
target="_blank"
|
|
1167
1167
|
rel="noopener noreferrer"
|
|
1168
1168
|
>${t}</a
|
|
1169
|
-
>`,
|
|
1170
|
-
ainsi qu’à ces ${
|
|
1171
|
-
and these ${
|
|
1169
|
+
>`,aa=(e,t,i=!1)=>{const[n,r]=((e,t)=>{const i=H`${oa(ia,"Politique relative à la protection des renseignements personnels")}
|
|
1170
|
+
ainsi qu’à ces ${oa(na,"Conditions générales")}`,n=H`${oa(ia,"privacy policy")}
|
|
1171
|
+
and these ${oa(na,"terms and conditions")}`;return"textUs"===e?[H`Lorsque vous fournissez votre numéro de téléphone et que vous cliquez
|
|
1172
1172
|
sur Envoyer (send), vous consentez à recevoir des messages électroniques
|
|
1173
1173
|
et des appels récurrents de nature commerciale de la part de
|
|
1174
1174
|
${t} ou en son nom à ce numéro, dans la mesure où cela est
|
|
@@ -1222,13 +1222,13 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1222
1222
|
You consent to this ${n}, including having your email address,
|
|
1223
1223
|
number, and communications recorded and used by our service provider EliseAI
|
|
1224
1224
|
to generate responses and improve their services. You may withdraw your
|
|
1225
|
-
consent at any time by unsubscribing or contacting us.`]})(e,t),o=Ki(
|
|
1225
|
+
consent at any time by unsubscribing or contacting us.`]})(e,t),o=Ki(Zo);return H`<p style=${o}>${n}</p>
|
|
1226
1226
|
<p style=${o}>${r}</p>
|
|
1227
1227
|
${"textUs"===e||i?H`<p style=${o}>
|
|
1228
1228
|
Msg freq varies. Text STOP to opt-out of messages. Text HELP for
|
|
1229
1229
|
assistance.
|
|
1230
|
-
</p>`:""}`},
|
|
1231
|
-
<div>${
|
|
1230
|
+
</p>`:""}`},sa="currentConsentId",la=(e,t,i,n,r)=>{const o=ta(r)?ea:t,a=e=>{var t;const i=null===(t=e.currentTarget)||void 0===t?void 0:t.getRootNode();if(!(i instanceof ShadowRoot))return;const n=i.host,r=()=>{if("function"==typeof n.focusMessageField)return void n.focusMessageField();const e=i.getElementById("message-input");e instanceof HTMLElement&&e.getClientRects().length>0&&e.focus()},o=()=>{r(),setTimeout(r,0)};n.updateComplete?n.updateComplete.then(o):o()};return"avb"!==e||localStorage.getItem(null!=i?i:"")?"mill-creek"===e?H`<div class="legal-confirmation-inner-container">
|
|
1231
|
+
<div>${Yo()}</div>
|
|
1232
1232
|
<div>
|
|
1233
1233
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
1234
1234
|
<p>
|
|
@@ -1243,7 +1243,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1243
1243
|
class="checkbox"
|
|
1244
1244
|
@click=${e=>{n(!0),a(e)}}
|
|
1245
1245
|
>
|
|
1246
|
-
${
|
|
1246
|
+
${Qo}
|
|
1247
1247
|
</div>
|
|
1248
1248
|
<p>
|
|
1249
1249
|
I agree to the
|
|
@@ -1260,7 +1260,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1260
1260
|
</div>
|
|
1261
1261
|
</div>
|
|
1262
1262
|
</div>`:H` <div class="legal-confirmation-inner-container">
|
|
1263
|
-
<div>${
|
|
1263
|
+
<div>${Yo()}</div>
|
|
1264
1264
|
<div>
|
|
1265
1265
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
1266
1266
|
<p>
|
|
@@ -1286,7 +1286,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1286
1286
|
</button>
|
|
1287
1287
|
</div>`:H`
|
|
1288
1288
|
<div class="legal-confirmation-inner-container">
|
|
1289
|
-
<div>${
|
|
1289
|
+
<div>${Yo()}</div>
|
|
1290
1290
|
<div>
|
|
1291
1291
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
1292
1292
|
<p>
|
|
@@ -1318,12 +1318,12 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1318
1318
|
|
|
1319
1319
|
<button
|
|
1320
1320
|
class="agreeButton"
|
|
1321
|
-
@click=${e=>{n(!0),a(e);const t={consentGiven:!0,timestamp:(new Date).getTime(),consentId:
|
|
1321
|
+
@click=${e=>{n(!0),a(e);const t={consentGiven:!0,timestamp:(new Date).getTime(),consentId:sa};localStorage.setItem(null!=i?i:"",JSON.stringify(t))}}
|
|
1322
1322
|
>
|
|
1323
1323
|
I agree
|
|
1324
1324
|
</button>
|
|
1325
1325
|
</div>
|
|
1326
|
-
`},
|
|
1326
|
+
`},da=({orgSlug:e,buildingState:t,buildingCountry:i,type:n,customAdditionalDisclaimer:r})=>{const o=ta(i)?ea:ua(e),a=r?H`<br />${Vo(r)}`:H``;return"utilities"===n?H` <p class="utilities-disclaimer-inner">
|
|
1327
1327
|
By interacting with this system, you consent to
|
|
1328
1328
|
<a href=${o} target="_blank" rel="noopener noreferrer">
|
|
1329
1329
|
this privacy policy</a
|
|
@@ -1345,7 +1345,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1345
1345
|
Chats may be recorded by us and our vendors.
|
|
1346
1346
|
</p>
|
|
1347
1347
|
</li>
|
|
1348
|
-
`:t&&
|
|
1348
|
+
`:t&&Jo.includes(t.toUpperCase())?H`
|
|
1349
1349
|
<li class="disclaimer-container disclaimer-message">
|
|
1350
1350
|
<p class="disclaimer-inner">
|
|
1351
1351
|
By interacting with this system, you consent to
|
|
@@ -1361,7 +1361,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1361
1361
|
${a}
|
|
1362
1362
|
</p>
|
|
1363
1363
|
</li>
|
|
1364
|
-
`:
|
|
1364
|
+
`:ta(i)?H`
|
|
1365
1365
|
<li class="disclaimer-container disclaimer-message">
|
|
1366
1366
|
<p class="disclaimer-inner">
|
|
1367
1367
|
By interacting with this system, you consent to
|
|
@@ -1389,16 +1389,16 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1389
1389
|
${a}
|
|
1390
1390
|
</p>
|
|
1391
1391
|
</li>
|
|
1392
|
-
`:H``},
|
|
1393
|
-
${
|
|
1394
|
-
</div>`;const s=
|
|
1392
|
+
`:H``},ua=e=>"amli"===e?"https://www.amli.com/privacy-policy":"http://bit.ly/me_privacy_policy",ca=({phoneNumberInput:e,emailInput:t,orgLegalName:i,orgSlug:n,country:r,buildingState:o,clickingButtonText:a="send"})=>{if(ra(o))return H`<div style=${Ki(Ko)}>
|
|
1393
|
+
${aa("schedule tour"===a?"scheduleTour":"emailUs",i,!!e)}
|
|
1394
|
+
</div>`;const s=ta(r)?ea:"http://bit.ly/me_privacy_policy";return(t||e)&&ta(r)?"schedule tour"===a?H` <div style=${Ki(Ko)}>
|
|
1395
1395
|
By providing your number and/or email address and clicking schedule
|
|
1396
1396
|
tour, you consent to receive recurring commercial electronic messages
|
|
1397
1397
|
and calls from or on behalf of ${i} at the provided number
|
|
1398
1398
|
and/or email address. Messages may be AI or human generated.
|
|
1399
1399
|
StdMsg&DataRatesMayApply. You consent to this
|
|
1400
1400
|
<a
|
|
1401
|
-
style=${Ki(
|
|
1401
|
+
style=${Ki(Xo)}
|
|
1402
1402
|
href=${s}
|
|
1403
1403
|
target="_blank"
|
|
1404
1404
|
rel="noopener noreferrer"
|
|
@@ -1409,13 +1409,13 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1409
1409
|
unsubscribing or contacting us.
|
|
1410
1410
|
${e?H`Msg freq varies. Text STOP to opt-out of messages. Text HELP
|
|
1411
1411
|
for assistance.`:""}
|
|
1412
|
-
</div>`:H` <div style=${Ki(
|
|
1412
|
+
</div>`:H` <div style=${Ki(Ko)}>
|
|
1413
1413
|
By providing your email address and/or number and clicking send, you
|
|
1414
1414
|
consent to receive recurring commercial electronic messages and calls from
|
|
1415
1415
|
or on behalf of ${i} at that email address and/or number.
|
|
1416
1416
|
Messages may be AI or human generated. You consent to this
|
|
1417
1417
|
<a
|
|
1418
|
-
style=${Ki(
|
|
1418
|
+
style=${Ki(Xo)}
|
|
1419
1419
|
href=${s}
|
|
1420
1420
|
target="_blank"
|
|
1421
1421
|
rel="noopener noreferrer"
|
|
@@ -1426,7 +1426,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1426
1426
|
unsubscribing or contacting us.
|
|
1427
1427
|
${e?H`Msg freq varies. Text STOP to opt-out of messages. Text HELP for
|
|
1428
1428
|
assistance.`:""}
|
|
1429
|
-
</div>`:e&&"greystar"===n?H`<div style=${Ki(
|
|
1429
|
+
</div>`:e&&"greystar"===n?H`<div style=${Ki(Ko)}>
|
|
1430
1430
|
By providing your phone number and clicking ${a}, you
|
|
1431
1431
|
consent to receive recurring marketing text and voice messages and calls
|
|
1432
1432
|
from Greystar or on its behalf at this number using artificial voice
|
|
@@ -1436,7 +1436,7 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1436
1436
|
these terms to lease at this property. Msg freq varies. Msg & Data rates
|
|
1437
1437
|
may apply. You consent to
|
|
1438
1438
|
<a
|
|
1439
|
-
style=${Ki(
|
|
1439
|
+
style=${Ki(Xo)}
|
|
1440
1440
|
href="https://www.greystar.com/privacy"
|
|
1441
1441
|
target="_blank"
|
|
1442
1442
|
rel="noopener noreferrer"
|
|
@@ -1444,13 +1444,13 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1444
1444
|
>
|
|
1445
1445
|
and
|
|
1446
1446
|
<a
|
|
1447
|
-
style=${Ki(
|
|
1447
|
+
style=${Ki(Xo)}
|
|
1448
1448
|
href="http://bit.ly/me_privacy_policy"
|
|
1449
1449
|
target="_blank"
|
|
1450
1450
|
rel="noopener noreferrer"
|
|
1451
1451
|
>EliseAI’s Privacy Policy</a
|
|
1452
1452
|
>. Text STOP to opt-out of messages. Text HELP for assistance.
|
|
1453
|
-
</div>`:e?H` <div style=${Ki(
|
|
1453
|
+
</div>`:e?H` <div style=${Ki(Ko)}>
|
|
1454
1454
|
By providing your number and clicking ${a}, you consent
|
|
1455
1455
|
to receive recurring marketing text and voice messages and calls from or
|
|
1456
1456
|
on behalf of ${i} at this number using artificial voice or an
|
|
@@ -1458,34 +1458,34 @@ var e={2:(e,t,i)=>{var n=i(2199),r=i(4664),o=i(5950);e.exports=function(e){retur
|
|
|
1458
1458
|
not required to lease at this property. Msg freq varies. Msg & Data rates
|
|
1459
1459
|
may apply. You consent to this
|
|
1460
1460
|
<a
|
|
1461
|
-
style=${Ki(
|
|
1461
|
+
style=${Ki(Xo)}
|
|
1462
1462
|
href=${s}
|
|
1463
1463
|
target="_blank"
|
|
1464
1464
|
rel="noopener noreferrer"
|
|
1465
1465
|
>privacy policy</a
|
|
1466
1466
|
>, including having your number and communications recorded and used by a
|
|
1467
1467
|
third party. Text STOP to opt-out of messages. Text HELP for assistance.
|
|
1468
|
-
</div>`:t?H` <div style=${Ki(
|
|
1468
|
+
</div>`:t?H` <div style=${Ki(Ko)}>
|
|
1469
1469
|
By entering your email and clicking ${a}, you consent to
|
|
1470
1470
|
this
|
|
1471
1471
|
<a
|
|
1472
|
-
style=${Ki(
|
|
1472
|
+
style=${Ki(Xo)}
|
|
1473
1473
|
href=${s}
|
|
1474
1474
|
target="_blank"
|
|
1475
1475
|
rel="noopener noreferrer"
|
|
1476
1476
|
>privacy policy</a
|
|
1477
1477
|
>, including having your email address and communications collected and
|
|
1478
1478
|
recorded and used by a third party.
|
|
1479
|
-
</div>`:H` <div style=${Ki(
|
|
1479
|
+
</div>`:H` <div style=${Ki(Ko)}>
|
|
1480
1480
|
By clicking ${a}, you consent to this
|
|
1481
1481
|
<a
|
|
1482
|
-
style=${Ki(
|
|
1482
|
+
style=${Ki(Xo)}
|
|
1483
1483
|
href=${s}
|
|
1484
1484
|
target="_blank"
|
|
1485
1485
|
rel="noopener noreferrer"
|
|
1486
1486
|
>privacy policy</a
|
|
1487
1487
|
>.
|
|
1488
|
-
</div>`},
|
|
1488
|
+
</div>`},ha=p`
|
|
1489
1489
|
* {
|
|
1490
1490
|
box-sizing: border-box;
|
|
1491
1491
|
}
|
|
@@ -2022,7 +2022,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
2022
2022
|
gap: 12px;
|
|
2023
2023
|
align-items: center;
|
|
2024
2024
|
}
|
|
2025
|
-
`,
|
|
2025
|
+
`,pa=(e,t,i,n,r="")=>({firstName:e.trim(),lastName:t.trim(),email:i.trim(),firmName:n.trim(),phone:r}),fa=e=>!e.firstName||!e.lastName,ga=(e,t)=>e.email&&Wr(e.email)?e.email.toLowerCase()===t.trim().toLowerCase()?"Enter your client's details below, not yours":null:"Enter your valid email address",ma=e=>e?{broker_first_name:e.firstName,broker_last_name:e.lastName,broker_email:e.email,broker_firm_name:e.firmName||null,...e.phone?{broker_phone:e.phone}:{}}:{};var ba=i(2193),ya=i.n(ba);function va(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const wa=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.leadSourceParams=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,i,n,r)=>{const o=Uo();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:o,referrer:document.referrer,parsedUtmSource:o?o.utm_source:null,campaignSources:Object.values(No()).filter(e=>e)},n)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!zr(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:ro(t.timestamp)}}}const a={leadSource:t,leadSourceParams:this.leadSourceParams,leadId:i,buildingSlug:e,timestamp:Kr(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:ro(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const i=JSON.parse(t);if(i.buildingSlug===e&&i.leadSource&&i.leadId&&i.timestamp&&!zr(ro(i.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=i.leadSourceInput}catch(e){}return i}}catch(e){return null}return null},this.resetLeadSource=()=>{if(!this.buildingSlug)return!1;const e="com.elise.webchat.leadsource.slug="+this.buildingSlug;return localStorage.removeItem(e),!0}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:i,campaignSources:n}){const o={query_params:t,building_slug:e,referrer:i,campaign_sources:n};try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,o)).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:t}){var i,n,o,a,s,l,d;try{if(!this.chatId)return null;if(!this.orgSlug)return null;let u=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(u=e),c=null===(i=window.dataLayer.find(e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)}))||void 0===i?void 0:i.value}}catch(e){}return await r().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:t,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(n=this.leadSourceInput)||void 0===n?void 0:n.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(d=this.leadSourceInput)||void 0===d?void 0:d.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:ya()(u)?null:u,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim();if(n.startsWith(e+"=")){return n.substring((e+"=").length,-1===n.indexOf(";")?void 0:n.indexOf(";"))}}return null}catch(e){}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:i}){var n,r,o;try{const a={queryParams:Uo(),buildingSlug:i,referrer:document.referrer,campaignSources:No()};let s=!1;const l=i?this.getLeadSourceBodyIfValid(i):null;if(l){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=l.leadSource,this.leadSourceParams=null!==(r=l.leadSourceParams)&&void 0!==r?r:null,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(a);if(!e)return this.leadSource=l.leadSource,this.leadSourceParams=null!==(n=l.leadSourceParams)&&void 0!==n?n:null,this.leadSource;this.leadSource=e,s=!0}}const d=await this.fetchCurrentParsedLeadSource(a);if(this.leadSource=d,this.buildingId=null,this.orgSlug=t,this.buildingSlug=i,i&&!d){const e=this.getLeadSourceBodyIfValid(i);if(e)return this.leadSource=e.leadSource,this.leadSourceParams=null!==(o=e.leadSourceParams)&&void 0!==o?o:null,this.leadSource}if(i){const t=!!d&&d.length>0;this.updateLeadSourceLocalStorage(i,d,e,!t&&!s,s)}return d}catch(e){}return null}},xa=async(e,t=!1)=>{const i=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${t}`;try{return(await r().get(i)).data.is_enabled}catch(e){return!1}},Ca=(e="black")=>z`<svg
|
|
2026
2026
|
aria-hidden="true"
|
|
2027
2027
|
focusable="false"
|
|
2028
2028
|
slot="icon"
|
|
@@ -2036,7 +2036,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2036
2036
|
d="M15.6 19.5V22.1L18.2 23.4V24.7H7.80004L7.79484 23.4052L10.4 22.1V19.5H1.28965C1.11894 19.4989 0.950113 19.4642 0.792841 19.3979C0.635568 19.3315 0.492943 19.2347 0.373141 19.1131C0.253339 18.9915 0.158715 18.8474 0.0946936 18.6892C0.0306718 18.5309 -0.00148955 18.3616 5.29696e-05 18.1909V1.3091C5.29696e-05 0.586299 0.591552 0 1.28965 0H24.7104C25.4228 0 26 0.583699 26 1.3091V18.1909C26 18.9137 25.4085 19.5 24.7104 19.5H15.6ZM2.60005 14.3V16.9H23.4V14.3H2.60005Z"
|
|
2037
2037
|
fill="${e}"
|
|
2038
2038
|
/>
|
|
2039
|
-
</svg
|
|
2039
|
+
</svg>`,$a=(e="black")=>z`<svg
|
|
2040
2040
|
aria-hidden="true"
|
|
2041
2041
|
focusable="false"
|
|
2042
2042
|
slot="icon"
|
|
@@ -2050,7 +2050,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2050
2050
|
d="M14.8334 19.1903V30.1667H0.666687C0.666248 28.4367 1.06183 26.7297 1.82311 25.1763C2.58439 23.6229 3.69118 22.2644 5.05866 21.2049C6.42614 20.1453 8.01802 19.4129 9.71232 19.0637C11.4066 18.7145 13.1584 18.7578 14.8334 19.1903ZM12 17.4167C7.30377 17.4167 3.50002 13.6129 3.50002 8.91666C3.50002 4.22041 7.30377 0.416656 12 0.416656C16.6963 0.416656 20.5 4.22041 20.5 8.91666C20.5 13.6129 16.6963 17.4167 12 17.4167ZM20.5 23.0833V18.125L27.5834 24.5L20.5 30.875V25.9167H16.25V23.0833H20.5Z"
|
|
2051
2051
|
fill="${e}"
|
|
2052
2052
|
/>
|
|
2053
|
-
</svg>`,
|
|
2053
|
+
</svg>`,Sa=(e="black")=>z`<svg
|
|
2054
2054
|
aria-hidden="true"
|
|
2055
2055
|
focusable="false"
|
|
2056
2056
|
slot="icon"
|
|
@@ -2064,7 +2064,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2064
2064
|
d="M0.833252 30.1666C0.833252 27.1608 2.0273 24.2782 4.15271 22.1527C6.27812 20.0273 9.1608 18.8333 12.1666 18.8333C15.1724 18.8333 18.0551 20.0273 20.1805 22.1527C22.3059 24.2782 23.4999 27.1608 23.4999 30.1666H0.833252ZM12.1666 17.4166C7.47034 17.4166 3.66659 13.6129 3.66659 8.91663C3.66659 4.22038 7.47034 0.416626 12.1666 0.416626C16.8628 0.416626 20.6666 4.22038 20.6666 8.91663C20.6666 13.6129 16.8628 17.4166 12.1666 17.4166ZM22.5975 20.58C24.7645 21.137 26.7006 22.3634 28.13 24.0846C29.5595 25.8059 30.4096 27.9342 30.5592 30.1666H26.3333C26.3333 26.4691 24.9166 23.1031 22.5975 20.58ZM19.7316 17.3557C20.9187 16.2939 21.8681 14.9932 22.5175 13.5388C23.167 12.0845 23.5017 10.5094 23.4999 8.91663C23.5029 6.9807 23.0078 5.07657 22.062 3.38738C23.6666 3.70979 25.11 4.5779 26.1469 5.84415C27.1838 7.1104 27.7502 8.69666 27.7499 10.3333C27.7503 11.3426 27.5349 12.3404 27.1182 13.2597C26.7016 14.179 26.0932 14.9986 25.3339 15.6636C24.5746 16.3285 23.6819 16.8236 22.7157 17.1154C21.7495 17.4072 20.7321 17.4892 19.7316 17.3557V17.3557Z"
|
|
2065
2065
|
fill="${e}"
|
|
2066
2066
|
/>
|
|
2067
|
-
</svg>`;var ba,ya,va;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(ba||(ba={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(ya||(ya={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(va||(va={}));const wa=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function xa(e,t){const i=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,n=await r().get(i);return Ca(n.data)}const Ca=e=>{var t;try{e.welcomeMessage=$a(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},$a=(e,t)=>e.replace(/elise/gi,t);var Sa=i(7035),ka=i(6353);function Aa(e,t,i){var n=function(e,t,i){if(i&&!i.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,i.timeZone,i.locale);return n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=i.length-1;n>=0;--n)if("timeZoneName"===i[n].type)return i[n].value}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(i);return n?n[0].substr(1):""}(n,t)}function Ta(e,t){var i=function(e){if(!_a[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;_a[e]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return _a[e]}(t);return i.formatToParts?function(e,t){try{for(var i=e.formatToParts(t),n=[],r=0;r<i.length;r++){var o=Ea[i[r].type];o>=0&&(n[o]=parseInt(i[r].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(i,e):function(e,t){var i=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(i,e)}var Ea={year:0,month:1,day:2,hour:3,minute:4,second:5};var _a={};function Oa(e,t,i,n,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,i),s.setUTCHours(n,r,o,a),s}var Pa=36e5,Ia={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Na(e,t,i){var n,r,o;if(!e)return 0;if(n=Ia.timezoneZ.exec(e))return 0;if(n=Ia.timezoneHH.exec(e))return Da(o=parseInt(n[1],10))?-o*Pa:NaN;if(n=Ia.timezoneHHMM.exec(e)){o=parseInt(n[2],10);var a=parseInt(n[3],10);return Da(o,a)?(r=Math.abs(o)*Pa+6e4*a,"+"===n[1]?-r:r):NaN}if(function(e){if(La[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),La[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=i?t:function(e){return Oa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Ma(s,e),d=i?l:function(e,t,i){var n=e.getTime(),r=n-t,o=Ma(new Date(r),i);if(t===o)return t;r-=o-t;var a=Ma(new Date(r),i);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-d}return NaN}function Ma(e,t){var i=Ta(e,t),n=Oa(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),r=e.getTime(),o=r%1e3;return n-(r-=o>=0?o:1e3+o)}function Da(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var La={};var Ra={X:function(e,t,i,n){var r=Ba(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Fa(r);case"XXXX":case"XX":return ja(r);default:return ja(r,":")}},x:function(e,t,i,n){var r=Ba(n.timeZone,e);switch(t){case"x":return Fa(r);case"xxxx":case"xx":return ja(r);default:return ja(r,":")}},O:function(e,t,i,n){var r=Ba(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var i=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var a=t||"";return i+String(r)+a+Ua(o,2)}(r,":");default:return"GMT"+ja(r,":")}},z:function(e,t,i,n){switch(t){case"z":case"zz":case"zzz":return Aa("short",e,n);default:return Aa("long",e,n)}}};function Ba(e,t){var i=e?Na(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function Ua(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}function ja(e,t){var i=t||"",n=e>0?"-":"+",r=Math.abs(e);return n+Ua(Math.floor(r/60),2)+i+Ua(Math.floor(r%60),2)}function Fa(e,t){return e%60==0?(e>0?"-":"+")+Ua(Math.abs(e)/60,2):ja(e,t)}const Ha=Ra;var za=i(9784),Ga=i(9720);var Wa=36e5,qa=6e4,Va={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Qa(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var i=t||{},n=null==i.additionalDigits?2:za(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,i={},n=Va.dateTimePattern.exec(e);n?(i.date=n[1],t=n[3]):(n=Va.datePattern.exec(e))?(i.date=n[1],t=n[2]):(i.date=null,t=e);if(t){var r=Va.timeZone.exec(t);r?(i.time=t.replace(r[1],""),i.timeZone=r[1].trim()):i.time=t}return i}(e),o=function(e,t){var i,n=Va.YYY[t],r=Va.YYYYY[t];if(i=Va.YYYY.exec(e)||r.exec(e)){var o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=Va.YY.exec(e)||n.exec(e)){var a=i[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,n),a=o.year,s=function(e,t){if(null===t)return null;var i,n,r,o;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(i=Va.MM.exec(e))return n=new Date(0),Ja(t,r=parseInt(i[1],10)-1)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=Va.DDD.exec(e)){n=new Date(0);var a=parseInt(i[1],10);return function(e,t){if(t<1)return!1;var i=Za(e);if(i&&t>366)return!1;if(!i&&t>365)return!1;return!0}(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=Va.MMDD.exec(e)){n=new Date(0),r=parseInt(i[1],10)-1;var s=parseInt(i[2],10);return Ja(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=Va.Www.exec(e))return es(t,o=parseInt(i[1],10)-1)?Ya(t,o):new Date(NaN);if(i=Va.WwwD.exec(e)){o=parseInt(i[1],10)-1;var l=parseInt(i[2],10)-1;return es(t,o,l)?Ya(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,d=s.getTime(),u=0;if(r.time&&(u=function(e){var t,i,n;if(t=Va.HH.exec(e))return ts(i=parseFloat(t[1].replace(",",".")))?i%24*Wa:NaN;if(t=Va.HHMM.exec(e))return ts(i=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?i%24*Wa+n*qa:NaN;if(t=Va.HHMMSS.exec(e)){i=parseInt(t[1],10),n=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return ts(i,n,r)?i%24*Wa+n*qa+1e3*r:NaN}return null}(r.time),isNaN(u)))return new Date(NaN);if(r.timeZone||i.timeZone){if(l=Na(r.timeZone||i.timeZone,new Date(d+u)),isNaN(l))return new Date(NaN)}else l=Ga(new Date(d+u)),l=Ga(new Date(d+u+l));return new Date(d+u+l)}return new Date(NaN)}function Ya(e,t,i){t=t||0,i=i||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var r=7*t+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}var Ka=[31,28,31,30,31,30,31,31,30,31,30,31],Xa=[31,29,31,30,31,30,31,31,30,31,30,31];function Za(e){return e%400==0||e%4==0&&e%100!=0}function Ja(e,t,i){if(t<0||t>11)return!1;if(null!=i){if(i<1)return!1;var n=Za(e);if(n&&i>Xa[t])return!1;if(!n&&i>Ka[t])return!1}return!0}function es(e,t,i){return!(t<0||t>52)&&(null==i||!(i<0||i>6))}function ts(e,t,i){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==i||!(i<0||i>=60)))}var is=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ns(e,t,i,n){var r=Sa(n);return r.timeZone=t,r.originalDate=e,function(e,t,i){var n=String(t),r=i||{},o=n.match(is);if(o){var a=Qa(r.originalDate||e,r);n=o.reduce(function(e,t){if("'"===t[0])return e;var i=e.indexOf(t),n="'"===e[i-1],o=e.replace(t,"'"+Ha[t[0]](a,t,null,r)+"'");return n?o.substring(0,i-1)+o.substring(i+1):o},n)}return ka(e,n,r)}(function(e,t,i){var n=Qa(e,i),r=Na(t,n,!0),o=new Date(n.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),i,r)}const rs="com.eliseai.webchat.googlereserve.referral",os=()=>{var e;try{const t=JSON.parse(null!==(e=localStorage.getItem(rs))&&void 0!==e?e:"null");return(null==t?void 0:t.rwgToken)&&Date.now()<t.expiresAt?t:null}catch{return null}},as=async({buildingSlug:e})=>{try{const t=await r().get(`${_o}/platformApi/webchat/${e}/units/summary`);if(t.data)return _r(t.data)}catch(t){To({logType:Ao.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t},error:t})}return[]};var ss,ls=i(8805),ds=i.n(ls),us=new Uint8Array(16);function cs(){if(!ss&&!(ss="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 ss(us)}const hs=/^(?:[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;const ps=function(e){return"string"==typeof e&&hs.test(e)};for(var fs=[],gs=0;gs<256;++gs)fs.push((gs+256).toString(16).substr(1));const ms=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(fs[e[t+0]]+fs[e[t+1]]+fs[e[t+2]]+fs[e[t+3]]+"-"+fs[e[t+4]]+fs[e[t+5]]+"-"+fs[e[t+6]]+fs[e[t+7]]+"-"+fs[e[t+8]]+fs[e[t+9]]+"-"+fs[e[t+10]]+fs[e[t+11]]+fs[e[t+12]]+fs[e[t+13]]+fs[e[t+14]]+fs[e[t+15]]).toLowerCase();if(!ps(i))throw TypeError("Stringified UUID is invalid");return i};const bs=function(e,t,i){var n=(e=e||{}).random||(e.rng||cs)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return ms(n)},ys=e=>localStorage.removeItem("com.elise.webchat.slug="+e),vs=(e,t,i)=>{const n=Hr(new Date),r=i||`lead_${bs()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:n,initiatedChat:t})),{leadId:r,timestamp:Kr(n),buildingSlug:e,initiatedChat:t}},ws=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(xs(e,n))return n}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},xs=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(Er(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!Dr(t.timestamp,24)},Cs=e=>e.startsWith("https://app.meetelise.com/settings/widgets")||e.startsWith("https://app.meetelise.com/settings/marketing/webchat")||e.includes("demo/utilities"),$s="com.elise.webchat.reopenAfterNavigation",Ss=e=>{try{const t=new URL(e);return`${t.origin}${t.pathname}`}catch{return""}},ks=e=>{const t={pageUrl:Ss(window.location.href),pageTitle:document.title};return"number"==typeof e&&Number.isInteger(e)&&e>0&&(t.declaredBuildingId=e),t},As=(e,t=e=>window.location.assign(e))=>{(()=>{try{sessionStorage.setItem($s,"true")}catch{}})(),t(e.url)};var Ts;!function(e){e.noReply="no-reply",e.text="text",e.media="media",e.navigation="navigation"}(Ts||(Ts={}));const Es=e=>e.type===Ps.text,_s=e=>e.type===Ps.media,Os=e=>e.type===Ps.navigation;var Ps;!function(e){e.text="text",e.media="media",e.navigation="navigation"}(Ps||(Ps={}));const Is=class{constructor(e,t,i,n=null,r,o,a=null,s=Bp.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.firedScheduledTourConfirmationIds=new Set,this.widgetType=Bp.Default,this.centralConvo=!1,this.declaredBuildingId=null,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.sessionToken=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==Ts.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType){const t=e.message.stream_id,n=null!=t?t:String(+e.timetoken);(t?this.reconstructStreamText(t):null!==(i=e.message.text)&&void 0!==i?i:"").includes("confirmed for your")&&this.fireScheduledTourEventOnce(n,e.message)}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=new Map;this.rawPubnubMessages.forEach(e=>{var i;const n=e.message.stream_id;n&&t.set(n,[...null!==(i=t.get(n))&&void 0!==i?i:[],e])});const i=[...t.entries()].filter(([,e])=>!this.isStreamComplete(e)).map(([e])=>e);i.length>0&&(this.streamingMessageTimeout=setTimeout(()=>{To({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:Ao.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory().then(()=>i.forEach(e=>this.checkAndFireTourConfirmationForStream(e)))},e))},this.isStreamComplete=e=>{var t;const i=e.find(e=>e.message.is_done);if(!i)return!1;const n=new Set(e.map(e=>{var t;return null!==(t=e.message.order)&&void 0!==t?t:0}));for(let e=0;e<=(null!==(t=i.message.order)&&void 0!==t?t:0);e++)if(!n.has(e))return!1;return!0},this.getStreamChunks=e=>this.removeDuplicatedRawPubnubMessages(this.rawPubnubMessages).filter(t=>t.message.stream_id===e).sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}),this.reconstructStreamText=e=>this.getStreamChunks(e).map(e=>e.message.text).join(""),this.fireScheduledTourEventOnce=(e,t)=>{var i;this.firedScheduledTourConfirmationIds.has(e)||(this.firedScheduledTourConfirmationIds.add(e),Ro("scheduledTourEvent",{tourDetails:t,buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))},this.checkAndFireTourConfirmationForStream=e=>{var t;if(this.reconstructStreamText(e).includes("confirmed for your")){const i=this.getStreamChunks(e);this.fireScheduledTourEventOnce(e,null===(t=i[i.length-1])||void 0===t?void 0:t.message)}},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;Ro("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,i;for(let n=e.length-1;n>=0;n--){const r=null===(t=e[n])||void 0===t?void 0:t.message,o=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==r?void 0:r.messageType)===Ts.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&To({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=vs(this.chatStorageSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,i,n,r,o,a,s,d,u;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&To({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===Bp.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:Cs(location.href),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.userId,leadSource:this.leadSource,trackingParams:l(this.orgSlug),widgetType:this.widgetType,isDevState:Cs(location.href),...ks(this.declaredBuildingId),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>Or({...e}))}}),null===(a=this.leadSourceClient)||void 0===a||a.resetLeadSource(),null===(s=this.leadSourceMultitouchClient)||void 0===s||s.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(Ro("firstChatMessageSent",{message:e,buildingId:null===(d=this.buildingWebchatView)||void 0===d?void 0:d.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),Ro("chatMessageSent",{message:e,buildingId:null===(u=this.buildingWebchatView)||void 0===u?void 0:u.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(To({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:Ao.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var n;if(e.message.messageType===Ts.navigation){const i=(e=>{if(!e||"object"!=typeof e)return null;const{url:t,label:i}=e;if("string"!=typeof t||"string"!=typeof i)return null;if(!i.trim())return null;try{const e=new URL(t,window.location.href);return"http:"!==e.protocol&&"https:"!==e.protocol?null:{url:e.href,label:i.trim()}}catch{return null}})(e.message.navigation);i&&t.push({timestamp:e.timetoken,navigation:i,isLeadMessage:!1,type:Ps.navigation})}else if("media"===e.message.messageType)t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:Ps.media});else{if("string"!=typeof e.message.text)return;!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Ps.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]}}),Object.keys(i).forEach(e=>{const n=i[e],r=this.getConsecutiveChunks(n.sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}}),type:Ps.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}),r=[];let o=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.chatStorageSlug=e,this.buildingWebchatView=t,this.orgSlug=i,this.leadSource=n,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}getSessionToken(){return this.sessionToken}async initSession(e,t,i){try{const n={building_slug:e,org_slug:t};this.centralConvo&&(n.central_convo=!0),i&&(n.lead_id=i);const o=await r().post(`${this.apiHost}/platformApi/webchat/init`,n);return this.sessionToken=o.data.session_token,this.leadUserId=o.data.lead_id,this.channel=o.data.channel,o.data}catch(e){return this.buildingWebchatView&&To({logTitle:"WEBCHAT_INIT_SESSION_ERROR",logData:{error:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e}),null}}adoptBuilding(e,t){this.buildingSlug=e,this.buildingWebchatView=t}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(ds())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{if(this.sessionToken){const e="healthcare"===this.widgetType?"?industry=health_care":"";return(await r().get(`${this.apiHost}/platformApi/webchat/pn/v2/request-token${e}`,{headers:{"X-Session-Token":this.sessionToken}})).data}if(this.centralConvo)return null;return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&To({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&To({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof n.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&To({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((i,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},(e,t)=>{e.error?o(e):i(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),i=i.concat(t.filter(e=>e.message.messageType!==Ts.noReply))}if(n=a[0].timetoken,i.length>=e||a.length<r)break}this.rawPubnubMessages=i.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&To({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:Ao.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}},Ns=p`
|
|
2067
|
+
</svg>`;var ka,Aa,Ta;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(ka||(ka={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(Aa||(Aa={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(Ta||(Ta={}));const Ea=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function _a(e,t){const i=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,n=await r().get(i);return Oa(n.data)}const Oa=e=>{var t;try{e.welcomeMessage=Pa(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},Pa=(e,t)=>e.replace(/elise/gi,t);var Ia=i(7035),Na=i(6353);function Ma(e,t,i){var n=function(e,t,i){if(i&&!i.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,i.timeZone,i.locale);return n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=i.length-1;n>=0;--n)if("timeZoneName"===i[n].type)return i[n].value}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(i);return n?n[0].substr(1):""}(n,t)}function Da(e,t){var i=function(e){if(!Ra[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;Ra[e]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ra[e]}(t);return i.formatToParts?function(e,t){try{for(var i=e.formatToParts(t),n=[],r=0;r<i.length;r++){var o=La[i[r].type];o>=0&&(n[o]=parseInt(i[r].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(i,e):function(e,t){var i=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(i,e)}var La={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ra={};function Ba(e,t,i,n,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,i),s.setUTCHours(n,r,o,a),s}var Ua=36e5,ja={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Fa(e,t,i){var n,r,o;if(!e)return 0;if(n=ja.timezoneZ.exec(e))return 0;if(n=ja.timezoneHH.exec(e))return za(o=parseInt(n[1],10))?-o*Ua:NaN;if(n=ja.timezoneHHMM.exec(e)){o=parseInt(n[2],10);var a=parseInt(n[3],10);return za(o,a)?(r=Math.abs(o)*Ua+6e4*a,"+"===n[1]?-r:r):NaN}if(function(e){if(Ga[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Ga[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=i?t:function(e){return Ba(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Ha(s,e),d=i?l:function(e,t,i){var n=e.getTime(),r=n-t,o=Ha(new Date(r),i);if(t===o)return t;r-=o-t;var a=Ha(new Date(r),i);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-d}return NaN}function Ha(e,t){var i=Da(e,t),n=Ba(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),r=e.getTime(),o=r%1e3;return n-(r-=o>=0?o:1e3+o)}function za(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Ga={};var Wa={X:function(e,t,i,n){var r=qa(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Ya(r);case"XXXX":case"XX":return Qa(r);default:return Qa(r,":")}},x:function(e,t,i,n){var r=qa(n.timeZone,e);switch(t){case"x":return Ya(r);case"xxxx":case"xx":return Qa(r);default:return Qa(r,":")}},O:function(e,t,i,n){var r=qa(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var i=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var a=t||"";return i+String(r)+a+Va(o,2)}(r,":");default:return"GMT"+Qa(r,":")}},z:function(e,t,i,n){switch(t){case"z":case"zz":case"zzz":return Ma("short",e,n);default:return Ma("long",e,n)}}};function qa(e,t){var i=e?Fa(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function Va(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}function Qa(e,t){var i=t||"",n=e>0?"-":"+",r=Math.abs(e);return n+Va(Math.floor(r/60),2)+i+Va(Math.floor(r%60),2)}function Ya(e,t){return e%60==0?(e>0?"-":"+")+Va(Math.abs(e)/60,2):Qa(e,t)}const Ka=Wa;var Xa=i(9784),Za=i(9720);var Ja=36e5,es=6e4,ts={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function is(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var i=t||{},n=null==i.additionalDigits?2:Xa(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,i={},n=ts.dateTimePattern.exec(e);n?(i.date=n[1],t=n[3]):(n=ts.datePattern.exec(e))?(i.date=n[1],t=n[2]):(i.date=null,t=e);if(t){var r=ts.timeZone.exec(t);r?(i.time=t.replace(r[1],""),i.timeZone=r[1].trim()):i.time=t}return i}(e),o=function(e,t){var i,n=ts.YYY[t],r=ts.YYYYY[t];if(i=ts.YYYY.exec(e)||r.exec(e)){var o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=ts.YY.exec(e)||n.exec(e)){var a=i[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,n),a=o.year,s=function(e,t){if(null===t)return null;var i,n,r,o;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(i=ts.MM.exec(e))return n=new Date(0),ss(t,r=parseInt(i[1],10)-1)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=ts.DDD.exec(e)){n=new Date(0);var a=parseInt(i[1],10);return function(e,t){if(t<1)return!1;var i=as(e);if(i&&t>366)return!1;if(!i&&t>365)return!1;return!0}(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=ts.MMDD.exec(e)){n=new Date(0),r=parseInt(i[1],10)-1;var s=parseInt(i[2],10);return ss(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=ts.Www.exec(e))return ls(t,o=parseInt(i[1],10)-1)?ns(t,o):new Date(NaN);if(i=ts.WwwD.exec(e)){o=parseInt(i[1],10)-1;var l=parseInt(i[2],10)-1;return ls(t,o,l)?ns(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,d=s.getTime(),u=0;if(r.time&&(u=function(e){var t,i,n;if(t=ts.HH.exec(e))return ds(i=parseFloat(t[1].replace(",",".")))?i%24*Ja:NaN;if(t=ts.HHMM.exec(e))return ds(i=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?i%24*Ja+n*es:NaN;if(t=ts.HHMMSS.exec(e)){i=parseInt(t[1],10),n=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return ds(i,n,r)?i%24*Ja+n*es+1e3*r:NaN}return null}(r.time),isNaN(u)))return new Date(NaN);if(r.timeZone||i.timeZone){if(l=Fa(r.timeZone||i.timeZone,new Date(d+u)),isNaN(l))return new Date(NaN)}else l=Za(new Date(d+u)),l=Za(new Date(d+u+l));return new Date(d+u+l)}return new Date(NaN)}function ns(e,t,i){t=t||0,i=i||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var r=7*t+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}var rs=[31,28,31,30,31,30,31,31,30,31,30,31],os=[31,29,31,30,31,30,31,31,30,31,30,31];function as(e){return e%400==0||e%4==0&&e%100!=0}function ss(e,t,i){if(t<0||t>11)return!1;if(null!=i){if(i<1)return!1;var n=as(e);if(n&&i>os[t])return!1;if(!n&&i>rs[t])return!1}return!0}function ls(e,t,i){return!(t<0||t>52)&&(null==i||!(i<0||i>6))}function ds(e,t,i){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==i||!(i<0||i>=60)))}var us=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function cs(e,t,i,n){var r=Ia(n);return r.timeZone=t,r.originalDate=e,function(e,t,i){var n=String(t),r=i||{},o=n.match(us);if(o){var a=is(r.originalDate||e,r);n=o.reduce(function(e,t){if("'"===t[0])return e;var i=e.indexOf(t),n="'"===e[i-1],o=e.replace(t,"'"+Ka[t[0]](a,t,null,r)+"'");return n?o.substring(0,i-1)+o.substring(i+1):o},n)}return Na(e,n,r)}(function(e,t,i){var n=is(e,i),r=Fa(t,n,!0),o=new Date(n.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),i,r)}const hs="com.eliseai.webchat.googlereserve.referral",ps=()=>{var e;try{const t=JSON.parse(null!==(e=localStorage.getItem(hs))&&void 0!==e?e:"null");return(null==t?void 0:t.rwgToken)&&Date.now()<t.expiresAt?t:null}catch{return null}},fs=async({buildingSlug:e})=>{try{const t=await r().get(`${Ro}/platformApi/webchat/${e}/units/summary`);if(t.data)return Rr(t.data)}catch(t){Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t},error:t})}return[]};var gs,ms=i(8805),bs=i.n(ms),ys=new Uint8Array(16);function vs(){if(!gs&&!(gs="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 gs(ys)}const ws=/^(?:[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;const xs=function(e){return"string"==typeof e&&ws.test(e)};for(var Cs=[],$s=0;$s<256;++$s)Cs.push(($s+256).toString(16).substr(1));const Ss=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Cs[e[t+0]]+Cs[e[t+1]]+Cs[e[t+2]]+Cs[e[t+3]]+"-"+Cs[e[t+4]]+Cs[e[t+5]]+"-"+Cs[e[t+6]]+Cs[e[t+7]]+"-"+Cs[e[t+8]]+Cs[e[t+9]]+"-"+Cs[e[t+10]]+Cs[e[t+11]]+Cs[e[t+12]]+Cs[e[t+13]]+Cs[e[t+14]]+Cs[e[t+15]]).toLowerCase();if(!xs(i))throw TypeError("Stringified UUID is invalid");return i};const ks=function(e,t,i){var n=(e=e||{}).random||(e.rng||vs)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return Ss(n)},As=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Ts=(e,t,i)=>{const n=Kr(new Date),r=i||`lead_${ks()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:n,initiatedChat:t})),{leadId:r,timestamp:ro(n),buildingSlug:e,initiatedChat:t}},Es=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(_s(e,n))return n}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},_s=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(Er(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!zr(t.timestamp,24)},Os=e=>e.startsWith("https://app.meetelise.com/settings/widgets")||e.startsWith("https://app.meetelise.com/settings/marketing/webchat")||e.includes("demo/utilities"),Ps="com.elise.webchat.reopenAfterNavigation",Is=e=>{try{const t=new URL(e);return`${t.origin}${t.pathname}`}catch{return""}},Ns=e=>{const t={pageUrl:Is(window.location.href),pageTitle:document.title};return"number"==typeof e&&Number.isInteger(e)&&e>0&&(t.declaredBuildingId=e),t},Ms=(e,t=e=>window.location.assign(e))=>{(()=>{try{sessionStorage.setItem(Ps,"true")}catch{}})(),t(e.url)};var Ds;!function(e){e.noReply="no-reply",e.text="text",e.media="media",e.navigation="navigation"}(Ds||(Ds={}));const Ls=e=>e.type===Us.text,Rs=e=>e.type===Us.media,Bs=e=>e.type===Us.navigation;var Us;!function(e){e.text="text",e.media="media",e.navigation="navigation"}(Us||(Us={}));const js=class{constructor(e,t,i,n=null,r,o,a=null,s=qp.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.firedScheduledTourConfirmationIds=new Set,this.widgetType=qp.Default,this.centralConvo=!1,this.declaredBuildingId=null,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.sessionToken=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==Ds.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType){const t=e.message.stream_id,n=null!=t?t:String(+e.timetoken);(t?this.reconstructStreamText(t):null!==(i=e.message.text)&&void 0!==i?i:"").includes("confirmed for your")&&this.fireScheduledTourEventOnce(n,e.message)}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=new Map;this.rawPubnubMessages.forEach(e=>{var i;const n=e.message.stream_id;n&&t.set(n,[...null!==(i=t.get(n))&&void 0!==i?i:[],e])});const i=[...t.entries()].filter(([,e])=>!this.isStreamComplete(e)).map(([e])=>e);i.length>0&&(this.streamingMessageTimeout=setTimeout(()=>{Do({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:Mo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory().then(()=>i.forEach(e=>this.checkAndFireTourConfirmationForStream(e)))},e))},this.isStreamComplete=e=>{var t;const i=e.find(e=>e.message.is_done);if(!i)return!1;const n=new Set(e.map(e=>{var t;return null!==(t=e.message.order)&&void 0!==t?t:0}));for(let e=0;e<=(null!==(t=i.message.order)&&void 0!==t?t:0);e++)if(!n.has(e))return!1;return!0},this.getStreamChunks=e=>this.removeDuplicatedRawPubnubMessages(this.rawPubnubMessages).filter(t=>t.message.stream_id===e).sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}),this.reconstructStreamText=e=>this.getStreamChunks(e).map(e=>e.message.text).join(""),this.fireScheduledTourEventOnce=(e,t)=>{var i;this.firedScheduledTourConfirmationIds.has(e)||(this.firedScheduledTourConfirmationIds.add(e),Wo("scheduledTourEvent",{tourDetails:t,buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))},this.checkAndFireTourConfirmationForStream=e=>{var t;if(this.reconstructStreamText(e).includes("confirmed for your")){const i=this.getStreamChunks(e);this.fireScheduledTourEventOnce(e,null===(t=i[i.length-1])||void 0===t?void 0:t.message)}},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;Wo("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,i;for(let n=e.length-1;n>=0;n--){const r=null===(t=e[n])||void 0===t?void 0:t.message,o=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==r?void 0:r.messageType)===Ds.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&Do({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Ts(this.chatStorageSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,i,n,r,o,a,s,d,u;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&Do({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===qp.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:Os(location.href),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.userId,leadSource:this.leadSource,trackingParams:l(this.orgSlug),widgetType:this.widgetType,isDevState:Os(location.href),...Ns(this.declaredBuildingId),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>Br({...e}))}}),null===(a=this.leadSourceClient)||void 0===a||a.resetLeadSource(),null===(s=this.leadSourceMultitouchClient)||void 0===s||s.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(Wo("firstChatMessageSent",{message:e,buildingId:null===(d=this.buildingWebchatView)||void 0===d?void 0:d.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),Wo("chatMessageSent",{message:e,buildingId:null===(u=this.buildingWebchatView)||void 0===u?void 0:u.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(Do({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:Mo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var n;if(e.message.messageType===Ds.navigation){const i=(e=>{if(!e||"object"!=typeof e)return null;const{url:t,label:i}=e;if("string"!=typeof t||"string"!=typeof i)return null;if(!i.trim())return null;try{const e=new URL(t,window.location.href);return"http:"!==e.protocol&&"https:"!==e.protocol?null:{url:e.href,label:i.trim()}}catch{return null}})(e.message.navigation);i&&t.push({timestamp:e.timetoken,navigation:i,isLeadMessage:!1,type:Us.navigation})}else if("media"===e.message.messageType)t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:Us.media});else{if("string"!=typeof e.message.text)return;!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Us.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]}}),Object.keys(i).forEach(e=>{const n=i[e],r=this.getConsecutiveChunks(n.sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}}),type:Us.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}),r=[];let o=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.chatStorageSlug=e,this.buildingWebchatView=t,this.orgSlug=i,this.leadSource=n,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}getSessionToken(){return this.sessionToken}async initSession(e,t,i){try{const n={building_slug:e,org_slug:t};this.centralConvo&&(n.central_convo=!0),i&&(n.lead_id=i);const o=await r().post(`${this.apiHost}/platformApi/webchat/init`,n);return this.sessionToken=o.data.session_token,this.leadUserId=o.data.lead_id,this.channel=o.data.channel,o.data}catch(e){return this.buildingWebchatView&&Do({logTitle:"WEBCHAT_INIT_SESSION_ERROR",logData:{error:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e}),null}}adoptBuilding(e,t){this.buildingSlug=e,this.buildingWebchatView=t}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(bs())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{if(this.sessionToken){const e="healthcare"===this.widgetType?"?industry=health_care":"";return(await r().get(`${this.apiHost}/platformApi/webchat/pn/v2/request-token${e}`,{headers:{"X-Session-Token":this.sessionToken}})).data}if(this.centralConvo)return null;return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&Do({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&Do({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof n.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&Do({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((i,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},(e,t)=>{e.error?o(e):i(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),i=i.concat(t.filter(e=>e.message.messageType!==Ds.noReply))}if(n=a[0].timetoken,i.length>=e||a.length<r)break}this.rawPubnubMessages=i.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&Do({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:Mo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}},Fs=p`
|
|
2068
2068
|
#healthchat-container {
|
|
2069
2069
|
position: fixed;
|
|
2070
2070
|
|
|
@@ -2194,7 +2194,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2194
2194
|
.health-bttn-allow-access {
|
|
2195
2195
|
padding-right: 28px;
|
|
2196
2196
|
}
|
|
2197
|
-
`,
|
|
2197
|
+
`,Hs=p`
|
|
2198
2198
|
#pubnub-chat-container {
|
|
2199
2199
|
position: fixed;
|
|
2200
2200
|
|
|
@@ -2331,7 +2331,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2331
2331
|
cursor: default;
|
|
2332
2332
|
opacity: 0.45;
|
|
2333
2333
|
}
|
|
2334
|
-
`,
|
|
2334
|
+
`,zs=p`
|
|
2335
2335
|
#header-text {
|
|
2336
2336
|
font-size: 12px;
|
|
2337
2337
|
font-weight: 700;
|
|
@@ -2552,7 +2552,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2552
2552
|
white-space: nowrap;
|
|
2553
2553
|
border: 0;
|
|
2554
2554
|
}
|
|
2555
|
-
`,{entries:Ls,setPrototypeOf:Rs,isFrozen:Bs,getPrototypeOf:Us,getOwnPropertyDescriptor:js}=Object;let{freeze:Fs,seal:Hs,create:zs}=Object,{apply:Gs,construct:Ws}="undefined"!=typeof Reflect&&Reflect;Fs||(Fs=function(e){return e}),Hs||(Hs=function(e){return e}),Gs||(Gs=function(e,t,i){return e.apply(t,i)}),Ws||(Ws=function(e,t){return new e(...t)});const qs=sl(Array.prototype.forEach),Vs=sl(Array.prototype.lastIndexOf),Qs=sl(Array.prototype.pop),Ys=sl(Array.prototype.push),Ks=sl(Array.prototype.splice),Xs=sl(String.prototype.toLowerCase),Zs=sl(String.prototype.toString),Js=sl(String.prototype.match),el=sl(String.prototype.replace),tl=sl(String.prototype.indexOf),il=sl(String.prototype.trim),nl=sl(Object.prototype.hasOwnProperty),rl=sl(RegExp.prototype.test),ol=(al=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Ws(al,t)});var al;function sl(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return Gs(e,t,n)}}function ll(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xs;Rs&&Rs(e,null);let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){const e=i(r);e!==r&&(Bs(t)||(t[n]=e),r=e)}e[r]=!0}return e}function dl(e){for(let t=0;t<e.length;t++){nl(e,t)||(e[t]=null)}return e}function ul(e){const t=zs(null);for(const[i,n]of Ls(e)){nl(e,i)&&(Array.isArray(n)?t[i]=dl(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=ul(n):t[i]=n)}return t}function cl(e,t){for(;null!==e;){const i=js(e,t);if(i){if(i.get)return sl(i.get);if("function"==typeof i.value)return sl(i.value)}e=Us(e)}return function(){return null}}const hl=Fs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pl=Fs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fl=Fs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gl=Fs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ml=Fs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bl=Fs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yl=Fs(["#text"]),vl=Fs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wl=Fs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xl=Fs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cl=Fs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$l=Hs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sl=Hs(/<%[\w\W]*|[\w\W]*%>/gm),kl=Hs(/\$\{[\w\W]*/gm),Al=Hs(/^data-[\-\w.\u00B7-\uFFFF]+$/),Tl=Hs(/^aria-[\-\w]+$/),El=Hs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_l=Hs(/^(?:\w+script|data):/i),Ol=Hs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pl=Hs(/^html$/i),Il=Hs(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nl=Object.freeze({__proto__:null,ARIA_ATTR:Tl,ATTR_WHITESPACE:Ol,CUSTOM_ELEMENT:Il,DATA_ATTR:Al,DOCTYPE_NAME:Pl,ERB_EXPR:Sl,IS_ALLOWED_URI:El,IS_SCRIPT_OR_DATA:_l,MUSTACHE_EXPR:$l,TMPLIT_EXPR:kl});const Ml=1,Dl=3,Ll=7,Rl=8,Bl=9,Ul=function(){return"undefined"==typeof window?null:window};var jl=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ul();const i=t=>e(t);if(i.version="3.2.6",i.removed=[],!t||!t.document||t.document.nodeType!==Bl||!t.Element)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:d,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=d.prototype,m=cl(g,"cloneNode"),b=cl(g,"remove"),y=cl(g,"nextSibling"),v=cl(g,"childNodes"),w=cl(g,"parentNode");if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,C="";const{implementation:$,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:A}=n,{importNode:T}=r;let E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof Ls&&"function"==typeof w&&$&&void 0!==$.createHTMLDocument;const{MUSTACHE_EXPR:_,ERB_EXPR:O,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:L}=Nl;let{IS_ALLOWED_URI:R}=Nl,B=null;const U=ll({},[...hl,...pl,...fl,...ml,...yl]);let j=null;const F=ll({},[...vl,...wl,...xl,...Cl]);let H=Object.seal(zs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,W=!0,q=!0,V=!1,Q=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ie=!1,ne=!0,re=!1,oe=!0,ae=!1,se={},le=null;const de=ll({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const ce=ll({},["audio","video","img","source","image","track"]);let he=null;const pe=ll({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let be=me,ye=!1,ve=null;const we=ll({},[fe,ge,me],Zs);let xe=ll({},["mi","mo","mn","ms","mtext"]),Ce=ll({},["annotation-xml"]);const $e=ll({},["title","style","font","a","script"]);let Se=null;const ke=["application/xhtml+xml","text/html"];let Ae=null,Te=null;const Ee=n.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=ul(e),Se=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===Se?Zs:Xs,B=nl(e,"ALLOWED_TAGS")?ll({},e.ALLOWED_TAGS,Ae):U,j=nl(e,"ALLOWED_ATTR")?ll({},e.ALLOWED_ATTR,Ae):F,ve=nl(e,"ALLOWED_NAMESPACES")?ll({},e.ALLOWED_NAMESPACES,Zs):we,he=nl(e,"ADD_URI_SAFE_ATTR")?ll(ul(pe),e.ADD_URI_SAFE_ATTR,Ae):pe,ue=nl(e,"ADD_DATA_URI_TAGS")?ll(ul(ce),e.ADD_DATA_URI_TAGS,Ae):ce,le=nl(e,"FORBID_CONTENTS")?ll({},e.FORBID_CONTENTS,Ae):de,z=nl(e,"FORBID_TAGS")?ll({},e.FORBID_TAGS,Ae):ul({}),G=nl(e,"FORBID_ATTR")?ll({},e.FORBID_ATTR,Ae):ul({}),se=!!nl(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||El,be=e.NAMESPACE||me,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,Ce=e.HTML_INTEGRATION_POINTS||Ce,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),te&&(ee=!0),se&&(B=ll({},yl),j=[],!0===se.html&&(ll(B,hl),ll(j,vl)),!0===se.svg&&(ll(B,pl),ll(j,wl),ll(j,Cl)),!0===se.svgFilters&&(ll(B,fl),ll(j,wl),ll(j,Cl)),!0===se.mathMl&&(ll(B,ml),ll(j,xl),ll(j,Cl))),e.ADD_TAGS&&(B===U&&(B=ul(B)),ll(B,e.ADD_TAGS,Ae)),e.ADD_ATTR&&(j===F&&(j=ul(j)),ll(j,e.ADD_ATTR,Ae)),e.ADD_URI_SAFE_ATTR&&ll(he,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(le===de&&(le=ul(le)),ll(le,e.FORBID_CONTENTS,Ae)),oe&&(B["#text"]=!0),X&&ll(B,["html","head","body"]),B.table&&(ll(B,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==x&&"string"==typeof C&&(C=x.createHTML(""));Fs&&Fs(e),Te=e}},Pe=ll({},[...pl,...fl,...gl]),Ie=ll({},[...ml,...bl]),Ne=function(e){Ys(i.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},Me=function(e,t){try{Ys(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ys(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){let t=null,i=null;if(J)e="<remove></remove>"+e;else{const t=Js(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Se&&be===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=x?x.createHTML(e):e;if(be===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(be,"template",null);try{t.documentElement.innerHTML=ye?C:r}catch(e){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(n.createTextNode(i),o.childNodes[0]||null),be===me?A.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function Ue(e,t,n){qs(e,e=>{e.call(i,t,n,Te)})}const je=function(e){let t=null;if(Ue(E.beforeSanitizeElements,e,null),Re(e))return Ne(e),!0;const n=Ae(e.nodeName);if(Ue(E.uponSanitizeElement,e,{tagName:n,allowedTags:B}),K&&e.hasChildNodes()&&!Be(e.firstElementChild)&&rl(/<[/\w!]/g,e.innerHTML)&&rl(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===Ll)return Ne(e),!0;if(K&&e.nodeType===Rl&&rl(/<[/\w]/g,e.data))return Ne(e),!0;if(!B[n]||z[n]){if(!z[n]&&He(n)){if(H.tagNameCheck instanceof RegExp&&rl(H.tagNameCheck,n))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(n))return!1}if(oe&&!le[n]){const t=w(e)||e.parentNode,i=v(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n){const r=m(i[n],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}}return Ne(e),!0}return e instanceof d&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const i=Xs(e.tagName),n=Xs(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===i:t.namespaceURI===fe?"svg"===i&&("annotation-xml"===n||xe[n]):Boolean(Pe[i]):e.namespaceURI===fe?t.namespaceURI===me?"math"===i:t.namespaceURI===ge?"math"===i&&Ce[n]:Boolean(Ie[i]):e.namespaceURI===me?!(t.namespaceURI===ge&&!Ce[n])&&!(t.namespaceURI===fe&&!xe[n])&&!Ie[i]&&($e[i]||!Pe[i]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!rl(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Dl&&(t=e.textContent,qs([_,O,P],e=>{t=el(t,e," ")}),e.textContent!==t&&(Ys(i.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(E.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Fe=function(e,t,i){if(ne&&("id"===t||"name"===t)&&(i in n||i in Ee))return!1;if(q&&!G[t]&&rl(I,t));else if(W&&rl(N,t));else if(!j[t]||G[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&rl(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&rl(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&rl(H.tagNameCheck,i)||H.tagNameCheck instanceof Function&&H.tagNameCheck(i))))return!1}else if(he[t]);else if(rl(R,el(i,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tl(i,"data:")||!ue[e]){if(V&&!rl(M,el(i,D,"")));else if(i)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Js(e,L)},ze=function(e){Ue(E.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,d=Ae(a),u=l;let c="value"===a?u:il(u);if(n.attrName=d,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,Ue(E.uponSanitizeAttribute,e,n),c=n.attrValue,!re||"id"!==d&&"name"!==d||(Me(a,e),c="user-content-"+c),K&&rl(/((--!?|])>)|<\/(style|title)/i,c)){Me(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Me(a,e);continue}if(!Q&&rl(/\/>/i,c)){Me(a,e);continue}Y&&qs([_,O,P],e=>{c=el(c,e," ")});const h=Ae(e.nodeName);if(Fe(h,d,c)){if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,d)){case"TrustedHTML":c=x.createHTML(c);break;case"TrustedScriptURL":c=x.createScriptURL(c)}if(c!==u)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),Re(e)?Ne(e):Qs(i.removed)}catch(t){Me(a,e)}}else Me(a,e)}Ue(E.afterSanitizeAttributes,e,null)},Ge=function e(t){let i=null;const n=Le(t);for(Ue(E.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)Ue(E.uponSanitizeShadowNode,i,null),je(i),ze(i),i.content instanceof a&&e(i.content);Ue(E.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,d=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw ol("toString is not a function");if("string"!=typeof(e=e.toString()))throw ol("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Z||Oe(t),i.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ae(e.nodeName);if(!B[t]||z[t])throw ol("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=De("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Ml&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return x&&ie?x.createHTML(e):e;if(n=De(e),!n)return ee?null:ie?C:""}n&&J&&Ne(n.firstChild);const u=Le(ae?e:n);for(;s=u.nextNode();)je(s),ze(s),s.content instanceof a&&Ge(s.content);if(ae)return e;if(ee){if(te)for(d=k.call(n.ownerDocument);n.firstChild;)d.appendChild(n.firstChild);else d=n;return(j.shadowroot||j.shadowrootmode)&&(d=T.call(r,d,!0)),d}let c=X?n.outerHTML:n.innerHTML;return X&&B["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&rl(Pl,n.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+c),Y&&qs([_,O,P],e=>{c=el(c,e," ")}),x&&ie?x.createHTML(c):c},i.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},i.clearConfig=function(){Te=null,Z=!1},i.isValidAttribute=function(e,t,i){Te||Oe({});const n=Ae(e),r=Ae(t);return Fe(n,r,i)},i.addHook=function(e,t){"function"==typeof t&&Ys(E[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=Vs(E[e],t);return-1===i?void 0:Ks(E[e],i,1)[0]}return Qs(E[e])},i.removeHooks=function(e){E[e]=[]},i.removeAllHooks=function(){E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}(),Fl=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Hl=class extends de{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return H`<div class="spinner"></div>`}};Hl.styles=p`
|
|
2555
|
+
`,{entries:Gs,setPrototypeOf:Ws,isFrozen:qs,getPrototypeOf:Vs,getOwnPropertyDescriptor:Qs}=Object;let{freeze:Ys,seal:Ks,create:Xs}=Object,{apply:Zs,construct:Js}="undefined"!=typeof Reflect&&Reflect;Ys||(Ys=function(e){return e}),Ks||(Ks=function(e){return e}),Zs||(Zs=function(e,t,i){return e.apply(t,i)}),Js||(Js=function(e,t){return new e(...t)});const el=gl(Array.prototype.forEach),tl=gl(Array.prototype.lastIndexOf),il=gl(Array.prototype.pop),nl=gl(Array.prototype.push),rl=gl(Array.prototype.splice),ol=gl(String.prototype.toLowerCase),al=gl(String.prototype.toString),sl=gl(String.prototype.match),ll=gl(String.prototype.replace),dl=gl(String.prototype.indexOf),ul=gl(String.prototype.trim),cl=gl(Object.prototype.hasOwnProperty),hl=gl(RegExp.prototype.test),pl=(fl=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Js(fl,t)});var fl;function gl(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return Zs(e,t,n)}}function ml(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ol;Ws&&Ws(e,null);let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){const e=i(r);e!==r&&(qs(t)||(t[n]=e),r=e)}e[r]=!0}return e}function bl(e){for(let t=0;t<e.length;t++){cl(e,t)||(e[t]=null)}return e}function yl(e){const t=Xs(null);for(const[i,n]of Gs(e)){cl(e,i)&&(Array.isArray(n)?t[i]=bl(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=yl(n):t[i]=n)}return t}function vl(e,t){for(;null!==e;){const i=Qs(e,t);if(i){if(i.get)return gl(i.get);if("function"==typeof i.value)return gl(i.value)}e=Vs(e)}return function(){return null}}const wl=Ys(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xl=Ys(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cl=Ys(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$l=Ys(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sl=Ys(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kl=Ys(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Al=Ys(["#text"]),Tl=Ys(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),El=Ys(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_l=Ys(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ol=Ys(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pl=Ks(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Il=Ks(/<%[\w\W]*|[\w\W]*%>/gm),Nl=Ks(/\$\{[\w\W]*/gm),Ml=Ks(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dl=Ks(/^aria-[\-\w]+$/),Ll=Ks(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rl=Ks(/^(?:\w+script|data):/i),Bl=Ks(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ul=Ks(/^html$/i),jl=Ks(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fl=Object.freeze({__proto__:null,ARIA_ATTR:Dl,ATTR_WHITESPACE:Bl,CUSTOM_ELEMENT:jl,DATA_ATTR:Ml,DOCTYPE_NAME:Ul,ERB_EXPR:Il,IS_ALLOWED_URI:Ll,IS_SCRIPT_OR_DATA:Rl,MUSTACHE_EXPR:Pl,TMPLIT_EXPR:Nl});const Hl=1,zl=3,Gl=7,Wl=8,ql=9,Vl=function(){return"undefined"==typeof window?null:window};var Ql=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vl();const i=t=>e(t);if(i.version="3.2.6",i.removed=[],!t||!t.document||t.document.nodeType!==ql||!t.Element)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:d,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=d.prototype,m=vl(g,"cloneNode"),b=vl(g,"remove"),y=vl(g,"nextSibling"),v=vl(g,"childNodes"),w=vl(g,"parentNode");if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,C="";const{implementation:$,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:A}=n,{importNode:T}=r;let E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof Gs&&"function"==typeof w&&$&&void 0!==$.createHTMLDocument;const{MUSTACHE_EXPR:_,ERB_EXPR:O,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:L}=Fl;let{IS_ALLOWED_URI:R}=Fl,B=null;const U=ml({},[...wl,...xl,...Cl,...Sl,...Al]);let j=null;const F=ml({},[...Tl,...El,..._l,...Ol]);let H=Object.seal(Xs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,W=!0,q=!0,V=!1,Q=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ie=!1,ne=!0,re=!1,oe=!0,ae=!1,se={},le=null;const de=ml({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const ce=ml({},["audio","video","img","source","image","track"]);let he=null;const pe=ml({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let be=me,ye=!1,ve=null;const we=ml({},[fe,ge,me],al);let xe=ml({},["mi","mo","mn","ms","mtext"]),Ce=ml({},["annotation-xml"]);const $e=ml({},["title","style","font","a","script"]);let Se=null;const ke=["application/xhtml+xml","text/html"];let Ae=null,Te=null;const Ee=n.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=yl(e),Se=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===Se?al:ol,B=cl(e,"ALLOWED_TAGS")?ml({},e.ALLOWED_TAGS,Ae):U,j=cl(e,"ALLOWED_ATTR")?ml({},e.ALLOWED_ATTR,Ae):F,ve=cl(e,"ALLOWED_NAMESPACES")?ml({},e.ALLOWED_NAMESPACES,al):we,he=cl(e,"ADD_URI_SAFE_ATTR")?ml(yl(pe),e.ADD_URI_SAFE_ATTR,Ae):pe,ue=cl(e,"ADD_DATA_URI_TAGS")?ml(yl(ce),e.ADD_DATA_URI_TAGS,Ae):ce,le=cl(e,"FORBID_CONTENTS")?ml({},e.FORBID_CONTENTS,Ae):de,z=cl(e,"FORBID_TAGS")?ml({},e.FORBID_TAGS,Ae):yl({}),G=cl(e,"FORBID_ATTR")?ml({},e.FORBID_ATTR,Ae):yl({}),se=!!cl(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||Ll,be=e.NAMESPACE||me,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,Ce=e.HTML_INTEGRATION_POINTS||Ce,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),te&&(ee=!0),se&&(B=ml({},Al),j=[],!0===se.html&&(ml(B,wl),ml(j,Tl)),!0===se.svg&&(ml(B,xl),ml(j,El),ml(j,Ol)),!0===se.svgFilters&&(ml(B,Cl),ml(j,El),ml(j,Ol)),!0===se.mathMl&&(ml(B,Sl),ml(j,_l),ml(j,Ol))),e.ADD_TAGS&&(B===U&&(B=yl(B)),ml(B,e.ADD_TAGS,Ae)),e.ADD_ATTR&&(j===F&&(j=yl(j)),ml(j,e.ADD_ATTR,Ae)),e.ADD_URI_SAFE_ATTR&&ml(he,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(le===de&&(le=yl(le)),ml(le,e.FORBID_CONTENTS,Ae)),oe&&(B["#text"]=!0),X&&ml(B,["html","head","body"]),B.table&&(ml(B,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw pl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw pl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==x&&"string"==typeof C&&(C=x.createHTML(""));Ys&&Ys(e),Te=e}},Pe=ml({},[...xl,...Cl,...$l]),Ie=ml({},[...Sl,...kl]),Ne=function(e){nl(i.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},Me=function(e,t){try{nl(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){nl(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){let t=null,i=null;if(J)e="<remove></remove>"+e;else{const t=sl(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Se&&be===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=x?x.createHTML(e):e;if(be===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(be,"template",null);try{t.documentElement.innerHTML=ye?C:r}catch(e){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(n.createTextNode(i),o.childNodes[0]||null),be===me?A.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function Ue(e,t,n){el(e,e=>{e.call(i,t,n,Te)})}const je=function(e){let t=null;if(Ue(E.beforeSanitizeElements,e,null),Re(e))return Ne(e),!0;const n=Ae(e.nodeName);if(Ue(E.uponSanitizeElement,e,{tagName:n,allowedTags:B}),K&&e.hasChildNodes()&&!Be(e.firstElementChild)&&hl(/<[/\w!]/g,e.innerHTML)&&hl(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===Gl)return Ne(e),!0;if(K&&e.nodeType===Wl&&hl(/<[/\w]/g,e.data))return Ne(e),!0;if(!B[n]||z[n]){if(!z[n]&&He(n)){if(H.tagNameCheck instanceof RegExp&&hl(H.tagNameCheck,n))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(n))return!1}if(oe&&!le[n]){const t=w(e)||e.parentNode,i=v(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n){const r=m(i[n],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}}return Ne(e),!0}return e instanceof d&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const i=ol(e.tagName),n=ol(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===i:t.namespaceURI===fe?"svg"===i&&("annotation-xml"===n||xe[n]):Boolean(Pe[i]):e.namespaceURI===fe?t.namespaceURI===me?"math"===i:t.namespaceURI===ge?"math"===i&&Ce[n]:Boolean(Ie[i]):e.namespaceURI===me?!(t.namespaceURI===ge&&!Ce[n])&&!(t.namespaceURI===fe&&!xe[n])&&!Ie[i]&&($e[i]||!Pe[i]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!hl(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===zl&&(t=e.textContent,el([_,O,P],e=>{t=ll(t,e," ")}),e.textContent!==t&&(nl(i.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(E.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Fe=function(e,t,i){if(ne&&("id"===t||"name"===t)&&(i in n||i in Ee))return!1;if(q&&!G[t]&&hl(I,t));else if(W&&hl(N,t));else if(!j[t]||G[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&hl(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&hl(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&hl(H.tagNameCheck,i)||H.tagNameCheck instanceof Function&&H.tagNameCheck(i))))return!1}else if(he[t]);else if(hl(R,ll(i,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==dl(i,"data:")||!ue[e]){if(V&&!hl(M,ll(i,D,"")));else if(i)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&sl(e,L)},ze=function(e){Ue(E.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,d=Ae(a),u=l;let c="value"===a?u:ul(u);if(n.attrName=d,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,Ue(E.uponSanitizeAttribute,e,n),c=n.attrValue,!re||"id"!==d&&"name"!==d||(Me(a,e),c="user-content-"+c),K&&hl(/((--!?|])>)|<\/(style|title)/i,c)){Me(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Me(a,e);continue}if(!Q&&hl(/\/>/i,c)){Me(a,e);continue}Y&&el([_,O,P],e=>{c=ll(c,e," ")});const h=Ae(e.nodeName);if(Fe(h,d,c)){if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,d)){case"TrustedHTML":c=x.createHTML(c);break;case"TrustedScriptURL":c=x.createScriptURL(c)}if(c!==u)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),Re(e)?Ne(e):il(i.removed)}catch(t){Me(a,e)}}else Me(a,e)}Ue(E.afterSanitizeAttributes,e,null)},Ge=function e(t){let i=null;const n=Le(t);for(Ue(E.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)Ue(E.uponSanitizeShadowNode,i,null),je(i),ze(i),i.content instanceof a&&e(i.content);Ue(E.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,d=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw pl("toString is not a function");if("string"!=typeof(e=e.toString()))throw pl("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Z||Oe(t),i.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ae(e.nodeName);if(!B[t]||z[t])throw pl("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=De("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Hl&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return x&&ie?x.createHTML(e):e;if(n=De(e),!n)return ee?null:ie?C:""}n&&J&&Ne(n.firstChild);const u=Le(ae?e:n);for(;s=u.nextNode();)je(s),ze(s),s.content instanceof a&&Ge(s.content);if(ae)return e;if(ee){if(te)for(d=k.call(n.ownerDocument);n.firstChild;)d.appendChild(n.firstChild);else d=n;return(j.shadowroot||j.shadowrootmode)&&(d=T.call(r,d,!0)),d}let c=X?n.outerHTML:n.innerHTML;return X&&B["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&hl(Ul,n.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+c),Y&&el([_,O,P],e=>{c=ll(c,e," ")}),x&&ie?x.createHTML(c):c},i.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},i.clearConfig=function(){Te=null,Z=!1},i.isValidAttribute=function(e,t,i){Te||Oe({});const n=Ae(e),r=Ae(t);return Fe(n,r,i)},i.addHook=function(e,t){"function"==typeof t&&nl(E[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=tl(E[e],t);return-1===i?void 0:rl(E[e],i,1)[0]}return il(E[e])},i.removeHooks=function(e){E[e]=[]},i.removeAllHooks=function(){E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}(),Yl=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Kl=class extends de{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return H`<div class="spinner"></div>`}};Kl.styles=p`
|
|
2556
2556
|
.spinner {
|
|
2557
2557
|
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
2558
2558
|
border-top: 2px solid #c057ff;
|
|
@@ -2570,16 +2570,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2570
2570
|
transform: rotate(360deg);
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
|
-
`,
|
|
2573
|
+
`,Yl([pe({type:Number})],Kl.prototype,"spinSpeed",void 0),Kl=Yl([ce("mini-loader")],Kl);var Xl=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Zl=class extends de{constructor(){super(...arguments),this.onMount=()=>({}),this.loadingPreviews=!0,this.websitePreviewInfo=[],this.imagesToDisplay=[],this.imageUrlError=[],this.isLeadMessage=!1,this.widgetType=qp.Default}isMessageStillStreamingChunks(){if(!this.message)return!1;const e=this.message.chunks.find(e=>e.isDone);return!e||this.message.chunks.length===e.order}updated(e){if(this.onMount(),!e.has("message"))return;if(!this.message)return;const{hyperlinks:t,markedText:i}=this.mapAndMarkHyperLinks(this.message.message),n=/(https?:\/\/[^\s]+)/g,r=[],o=[];this.parsedMessage=H`${i.trim().split("\n").map(e=>{const i=this.sanitizeMarkdownText(e),a=this.preserveHTMLTags(i);return a?H`${a.map(e=>{const i=t.filter(t=>e.includes(t.id));if(i.length){let t=e;return i.forEach(e=>{o.push({redirectTo:e.link,source:e.link}),t=t.replace(e.id,this.hyperlinkHTML(e.link,e.hyperlink))}),H`${Vo(Ql.sanitize(t,{ADD_ATTR:["target"]}))} `}if(n.test(e)){const t=this.removeTrailingPunctuation(e);return r.push(this.getLinkData(t)),H`<a
|
|
2574
2574
|
class="redirect-link"
|
|
2575
2575
|
href="${t}"
|
|
2576
2576
|
target="_blank"
|
|
2577
2577
|
rel="noopener noreferrer"
|
|
2578
2578
|
>${t}
|
|
2579
|
-
</a>`}return H`${
|
|
2579
|
+
</a>`}return H`${Vo(Ql.sanitize(e))} `})}<br />`:H``})}`,this.imagesToDisplay=o,Promise.all(r).then(e=>{this.websitePreviewInfo=e})}hyperlinkHTML(e,t){const i=document.createElement("a");return i.className="redirect-link",i.href=e,i.target="_blank",i.rel="noopener noreferrer",i.textContent=t,i.outerHTML}preserveHTMLTags(e){var t;const i=e.match(/(<\/?[a-z][^>]*>[^<]*<\/?[a-z]*>|[^\s]+[.,?!]?|\S)/gi);return null!==(t=null==i?void 0:i.filter(e=>""!==e.trim()))&&void 0!==t?t:[]}sanitizeMarkdownText(e){return e.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/gim,"<b>$1</b>").replace(/\*(.*?)\*/gim,"<i>$1</i>").trim()}removeTrailingPunctuation(e){return[".",",","!","?",":",";"].includes(e[e.length-1])?this.removeTrailingPunctuation(e.slice(0,-1)):e}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[^|]+\|[^>]+>|<a href="[^"]+"(?: target="[^"]*")?>[^<]+<\/a>|\[.*?\]\([^)]*\.[^)]*\)/g)),i=[],n=t.map(t=>{const i=t[0];if(void 0===t.index)return;const n=e[t.index-1],r=e[t.index+i.length];if(i.startsWith("<https")||i.startsWith("<http"))return{matchedLink:i,link:i.split("|")[0].replace("<",""),hyperlink:i.split("|")[1].replace(">",""),addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!r||" "===r)};if(i.startsWith("<a href=")){const e=i.match(/href="([^"]+)"/),t=i.match(/>[^<]+</);return{matchedLink:i,link:e?e[1]:"",hyperlink:t?t[0].slice(1,-1):"",addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!r||" "===r)}}{const[e,t]=i.split("](");return{matchedLink:i,link:t?t.slice(0,-1):"",hyperlink:e?e.slice(1):"",addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!r||" "===r)}}});return n.forEach(t=>{if(t&&t.link&&t.hyperlink){const n=ks().replace(/-/g,"");i.push({link:this.removeTrailingPunctuation(t.link),hyperlink:this.removeTrailingPunctuation(t.hyperlink),mark:t.matchedLink,id:n}),e=e.replace(t.matchedLink,`${t.addSpaceBefore?" ":""}${n}${t.addSpaceAfter?" ":""}`)}}),{hyperlinks:i,markedText:e}}async getLinkData(e){var t,i,n,o;try{const a=(await r().get(e)).data,s=(new DOMParser).parseFromString(a,"text/html");return s?{title:null!==(i=null===(t=s.querySelector("title"))||void 0===t?void 0:t.textContent)&&void 0!==i?i:null,description:(null===(n=s.querySelector('meta[name="description"]'))||void 0===n?void 0:n.getAttribute("content"))||null,image:(null===(o=s.querySelector('meta[property="og:image"]'))||void 0===o?void 0:o.getAttribute("content"))||null,favicon:null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return{title:null,description:null,image:null,favicon:null,link:e}}}render(){return this.message?H`<div class="message-inner-body">
|
|
2580
2580
|
${this.isMessageStillStreamingChunks()?H`<div class="message-loader"><mini-loader></mini-loader></div>`:""}
|
|
2581
2581
|
<p
|
|
2582
|
-
class=${xe({"message-text":this.widgetType!==
|
|
2582
|
+
class=${xe({"message-text":this.widgetType!==qp.Utilities,"message-text-large":this.widgetType===qp.Utilities,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
2583
2583
|
>
|
|
2584
2584
|
${this.parsedMessage}
|
|
2585
2585
|
</p>
|
|
@@ -2610,16 +2610,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2610
2610
|
/>`:""}
|
|
2611
2611
|
|
|
2612
2612
|
<div class="website-preview-body">
|
|
2613
|
-
<p class=${xe({"message-text":this.widgetType!==
|
|
2613
|
+
<p class=${xe({"message-text":this.widgetType!==qp.Utilities,"message-text-large":this.widgetType===qp.Utilities,"website-preview-title":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}>${e.title}</p>
|
|
2614
2614
|
${e.description?H`<p
|
|
2615
|
-
class=${xe({"message-text":this.widgetType!==
|
|
2615
|
+
class=${xe({"message-text":this.widgetType!==qp.Utilities,"message-text-large":this.widgetType===qp.Utilities,"website-preview-description":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
2616
2616
|
>
|
|
2617
2617
|
${e.description}
|
|
2618
2618
|
</p>`:""}
|
|
2619
2619
|
</div>
|
|
2620
2620
|
</div>
|
|
2621
2621
|
</a></div> `})}
|
|
2622
|
-
</div>`:H``}};
|
|
2622
|
+
</div>`:H``}};Zl.styles=[Me,zs,p`
|
|
2623
2623
|
.message-inner-body {
|
|
2624
2624
|
position: relative;
|
|
2625
2625
|
}
|
|
@@ -2628,7 +2628,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2628
2628
|
bottom: -2px;
|
|
2629
2629
|
right: -2px;
|
|
2630
2630
|
}
|
|
2631
|
-
`],
|
|
2631
|
+
`],Xl([pe({attribute:!0})],Zl.prototype,"buildingSlug",void 0),Xl([pe({attribute:!0})],Zl.prototype,"message",void 0),Xl([pe({attribute:!0})],Zl.prototype,"myPubnub",void 0),Xl([pe({attribute:!0})],Zl.prototype,"onMount",void 0),Xl([fe()],Zl.prototype,"loadingPreviews",void 0),Xl([fe()],Zl.prototype,"parsedMessage",void 0),Xl([fe()],Zl.prototype,"websitePreviewInfo",void 0),Xl([fe()],Zl.prototype,"imagesToDisplay",void 0),Xl([fe()],Zl.prototype,"imageUrlError",void 0),Xl([pe({type:Boolean})],Zl.prototype,"isLeadMessage",void 0),Xl([pe({attribute:!0})],Zl.prototype,"widgetType",void 0),Zl=Xl([ce("pubnub-message")],Zl);var Jl=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let ed=class extends de{constructor(){super(...arguments),this.onMount=()=>({}),this.showMediaAsCarousel=!0,this.activeIndex=0}updated(e){this.onMount(),e.has("message")}prevImage(){this.message&&(0===this.activeIndex?this.activeIndex=this.message.media.length-1:this.activeIndex-=1)}nextImage(){this.message&&(this.activeIndex===this.message.media.length-1?this.activeIndex=0:this.activeIndex+=1)}render(){return this.message?this.showMediaAsCarousel?H`<div class="message-inner-body">
|
|
2632
2632
|
<div class="carousel">
|
|
2633
2633
|
<div
|
|
2634
2634
|
class="image-container"
|
|
@@ -2665,7 +2665,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2665
2665
|
rel="noopener noreferrer"
|
|
2666
2666
|
><img class=${"displayed-message-image"} src=${e.url} alt=""
|
|
2667
2667
|
/></a>`)}
|
|
2668
|
-
</div>`:H``}};
|
|
2668
|
+
</div>`:H``}};ed.styles=[Me,zs,p`
|
|
2669
2669
|
/* This element is a flex item in a bubble capped below the chat width.
|
|
2670
2670
|
Without min-width: 0 it can grow to all slides side by side, so the
|
|
2671
2671
|
carousel spills out of the bubble and the chat. */
|
|
@@ -2742,13 +2742,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2742
2742
|
.button:hover {
|
|
2743
2743
|
background-color: rgba(0, 0, 0, 0.8);
|
|
2744
2744
|
}
|
|
2745
|
-
`],
|
|
2745
|
+
`],Jl([pe({attribute:!0})],ed.prototype,"message",void 0),Jl([pe({attribute:!0})],ed.prototype,"myPubnub",void 0),Jl([pe({attribute:!0})],ed.prototype,"onMount",void 0),Jl([fe()],ed.prototype,"showMediaAsCarousel",void 0),Jl([fe()],ed.prototype,"activeIndex",void 0),ed=Jl([ce("pubnub-media")],ed);var td=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let id=class extends de{constructor(){super(...arguments),this.onMount=()=>({}),this.navigate=e=>window.location.assign(e)}updated(){this.onMount()}render(){if(!this.message)return H``;const{navigation:e}=this.message;return H`<button
|
|
2746
2746
|
type="button"
|
|
2747
|
-
class=${xe({"navigation-button":!0,"webchat-font__desktop":!
|
|
2748
|
-
@click=${()=>
|
|
2747
|
+
class=${xe({"navigation-button":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
2748
|
+
@click=${()=>Ms(e,this.navigate)}
|
|
2749
2749
|
>
|
|
2750
2750
|
Take me to ${e.label}
|
|
2751
|
-
</button>`}};
|
|
2751
|
+
</button>`}};id.styles=[Me,zs,p`
|
|
2752
2752
|
.navigation-button {
|
|
2753
2753
|
cursor: pointer;
|
|
2754
2754
|
border: none;
|
|
@@ -2767,7 +2767,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2767
2767
|
outline: 2px solid #4d90fe;
|
|
2768
2768
|
outline-offset: 2px;
|
|
2769
2769
|
}
|
|
2770
|
-
`],
|
|
2770
|
+
`],td([pe({attribute:!1})],id.prototype,"message",void 0),td([pe({attribute:!1})],id.prototype,"onMount",void 0),td([pe({attribute:!1})],id.prototype,"navigate",void 0),id=td([ce("pubnub-navigation")],id);function nd(e,t){var i=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return i<0?-1:i>0?1:i}function rd(e,t){sn(2,arguments);var i=ln(e),n=ln(t),r=nd(i,n),o=Math.abs(function(e,t){sn(2,arguments);var i=lr(e),n=lr(t),r=i.getTime()-Qn(i),o=n.getTime()-Qn(n);return Math.round((r-o)/864e5)}(i,n));i.setDate(i.getDate()-r*o);var a=r*(o-Number(nd(i,n)===-r));return 0===a?0:a}const od=p`
|
|
2771
2771
|
#utilities-container {
|
|
2772
2772
|
position: fixed;
|
|
2773
2773
|
|
|
@@ -2888,20 +2888,20 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2888
2888
|
.health-bttn-allow-access {
|
|
2889
2889
|
padding-right: 28px;
|
|
2890
2890
|
}
|
|
2891
|
-
`,
|
|
2891
|
+
`,ad=(e="black")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
2892
2892
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${e}" stroke-width="2.13401"/>
|
|
2893
2893
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${e}" stroke-width="2.13401"/>
|
|
2894
|
-
</svg>`,
|
|
2894
|
+
</svg>`,sd=(e="black")=>z`
|
|
2895
2895
|
<svg aria-hidden="true" focusable="false" width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2896
2896
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
2897
2897
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
2898
2898
|
</svg>
|
|
2899
|
-
`,
|
|
2899
|
+
`,ld=(e="black")=>z`
|
|
2900
2900
|
<svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2901
2901
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
2902
2902
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
2903
2903
|
</svg>
|
|
2904
|
-
`,
|
|
2904
|
+
`,dd=new WeakMap,ud=e=>!!e.hasAttribute("inert")||!0===e.inert,cd=(e,t)=>{const i=e;if(t)return e.setAttribute("inert",""),void(i.inert=!0);e.removeAttribute("inert"),i.inert=!1},hd=e=>{e.setAttribute("aria-hidden","true"),cd(e,!0)},pd=e=>{null===e.ariaHidden?e.element.removeAttribute("aria-hidden"):e.element.setAttribute("aria-hidden",e.ariaHidden),cd(e.element,e.hadInert)},fd=e=>{const t={element:e,ariaHidden:e.getAttribute("aria-hidden"),hadInert:ud(e)};return hd(e),t};var gd,md=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let bd=gd=class extends de{constructor(){super(...arguments),this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.onMount=()=>({}),this.isHealthChat=!1,this.centralConvo=!1,this.widgetType=qp.Default,this.primaryColor=Xi,this.backgroundColor=Zi,this.onClickExit=()=>{localStorage.setItem("isChatOpen","false")},this.requiresConsent=!1,this._isMobile=Fr(),this.shouldAutoScroll=!0,this.messages=[],this.isLoadingMessages=!1,this.hasReceivedConsent=!1,this._replyAnnouncement="",this.announcedReplyKeys=new Set,this.hasReplySnapshot=!1,this.holdMessageFieldFocus=!1,this.sendInFlight=!1,this.releaseFocusHoldQueued=!1,this.hostPageLock=null,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.websitePreviewMapping={},this.sendMessage=async e=>{var t,i;if(0!==e.length)if(this.sendInFlight||(null===(t=this.myPubnub)||void 0===t?void 0:t.isCurrentlyStreamingMessage))this.holdMessageFieldFocus&&this.focusMessageField();else{this.sendInFlight=!0;try{this.shouldAutoScroll=!0,this.holdMessageFieldFocus=!0,this.focusMessageField(),this.messageInput.value="",this.autoResizeMessageInput(),0===this.messages.length&&(this.messages=[{timestamp:0,message:e,isLeadMessage:!0,chunks:[{text:e,order:0,isDone:!0}],type:Us.text}]),await(null===(i=this.myPubnub)||void 0===i?void 0:i.sendMessage(e))}finally{this.sendInFlight=!1,this.focusMessageField(),await this.updateComplete,this.restoreMessageFieldFocus()}}},this.scrollToChatBottom=()=>{this.shouldAutoScroll&&this.messageBody.scrollTo({top:this.messageBody.scrollHeight-this.messageBody.clientHeight,behavior:"auto"})},this.handleConversationScroll=e=>{const t=e.currentTarget,i=t.scrollHeight-t.clientHeight-t.scrollTop;this.shouldAutoScroll=i<=gd.AUTO_SCROLL_THRESHOLD_PX},this.autoResizeMessageInput=()=>{this.messageInput.style.height="auto",this.messageInput.style.height=this.messageInput.scrollHeight+"px"},this.needsConsent=()=>this.requiresConsent&&!this.hasReceivedConsent}get consentKey(){return`${this.orgSlug}Consent`}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=Hr(e=>{this._isMobile=e})}disconnectedCallback(){var e;null===(e=this._cleanupMobileListener)||void 0===e||e.call(this),this.releaseHostPage(),super.disconnectedCallback()}firstUpdated(){var e,t;this.messages=(null===(e=this.myPubnub)||void 0===e?void 0:e.simpleChatMessages)||[],null===(t=this.myPubnub)||void 0===t||t.addChatListener(e=>{this.messages=e.messages,this.isLoadingMessages=e.isLoading}),this.onMount();const i=localStorage.getItem(this.consentKey);if(!i)return void(this.hasReceivedConsent=!1);const n=JSON.parse(i),{timestamp:r,consentId:o}=n;rd(new Date,new Date(r))<7&&o===sa?this.hasReceivedConsent=!0:(this.hasReceivedConsent=!1,localStorage.removeItem(this.consentKey))}willUpdate(){this.syncReplyAnnouncement()}syncReplyAnnouncement(){var e;const t=(null===(e=this.building)||void 0===e?void 0:e.userFirstName)||"Elise",i=this.messages.flatMap(e=>{const i=kd(e,t);return i?[{key:Sd(e),announcement:i}]:[]});if(!this.hasReplySnapshot){if(0===this.messages.length)return;return i.forEach(({key:e})=>this.announcedReplyKeys.add(e)),void(this.hasReplySnapshot=!0)}const n=i.filter(({key:e})=>!this.announcedReplyKeys.has(e));if(0===n.length)return;n.forEach(({key:e})=>this.announcedReplyKeys.add(e));const r=n.map(({announcement:e})=>e).join(" "),o=this._replyAnnouncement.replace(/\u200b/g,"");this._replyAnnouncement=r!==o||this._replyAnnouncement.endsWith("")?r:`${r}`}renderReplyAnnouncer(){return H`<div
|
|
2905
2905
|
id="reply-announcer"
|
|
2906
2906
|
class="sr-only"
|
|
2907
2907
|
role="status"
|
|
@@ -2909,12 +2909,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2909
2909
|
aria-atomic="true"
|
|
2910
2910
|
>
|
|
2911
2911
|
${this._replyAnnouncement}
|
|
2912
|
-
</div>`}async updated(){this.scrollToChatBottom(),this.syncHostPage(),this.restoreMessageFieldFocus(),this.scheduleFocusHoldRelease()}syncHostPage(){if(!this._isMobile)return void this.releaseHostPage();const e=(e=>{let t=e,i=t.getRootNode();for(;i instanceof ShadowRoot;)t=i.host,i=t.getRootNode();return t instanceof Element?t:null})(this);(null==e?void 0:e.parentElement)&&(this.hostPageLock=e,(e=>{var t;const i=e.parentElement;if(!i)return;const n=new Map((null!==(t=
|
|
2912
|
+
</div>`}async updated(){this.scrollToChatBottom(),this.syncHostPage(),this.restoreMessageFieldFocus(),this.scheduleFocusHoldRelease()}syncHostPage(){if(!this._isMobile)return void this.releaseHostPage();const e=(e=>{let t=e,i=t.getRootNode();for(;i instanceof ShadowRoot;)t=i.host,i=t.getRootNode();return t instanceof Element?t:null})(this);(null==e?void 0:e.parentElement)&&(this.hostPageLock=e,(e=>{var t;const i=e.parentElement;if(!i)return;const n=new Map((null!==(t=dd.get(e))&&void 0!==t?t:[]).map(e=>[e.element,e])),r=[];for(const t of Array.from(i.children)){if(t===e)continue;const i=n.get(t);i?(r.push(i),n.delete(t),hd(t)):r.push(fd(t))}n.forEach(e=>pd(e)),dd.set(e,r)})(e))}releaseHostPage(){this.hostPageLock&&((e=>{const t=dd.get(e);t&&(t.forEach(e=>pd(e)),dd.delete(e))})(this.hostPageLock),this.hostPageLock=null)}restoreMessageFieldFocus(){if(!this.holdMessageFieldFocus)return;const e=function(){var e;let t=document.activeElement;for(;null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t}();if(e instanceof HTMLElement&&"message-input"===e.id)return;const t=!e||e===document.body||e===document.documentElement,i=e instanceof HTMLElement&&"send-message-bttn"===e.id;(t||i)&&this.focusMessageField()}scheduleFocusHoldRelease(){var e;this.holdMessageFieldFocus&&!this.releaseFocusHoldQueued&&(this.sendInFlight||this.isLoadingMessages||(null===(e=this.myPubnub)||void 0===e?void 0:e.isCurrentlyStreamingMessage)||(this.releaseFocusHoldQueued=!0,requestAnimationFrame(()=>{var e;this.releaseFocusHoldQueued=!1,this.sendInFlight||this.isLoadingMessages||(null===(e=this.myPubnub)||void 0===e?void 0:e.isCurrentlyStreamingMessage)||(this.restoreMessageFieldFocus(),this.holdMessageFieldFocus=!1)})))}renderMessageFieldLabel(e){return H`<label
|
|
2913
2913
|
class="message-input-label"
|
|
2914
2914
|
for="message-input"
|
|
2915
2915
|
style=${Ki({color:e})}
|
|
2916
2916
|
>${"Message"}</label
|
|
2917
|
-
>`}focusMessageField(){const e=this.shadowRoot,t=null==e?void 0:e.getElementById("message-input");return!!(t instanceof HTMLTextAreaElement&&e)&&(0!==t.getClientRects().length&&(e.activeElement!==t&&t.focus({preventScroll:!0}),e.activeElement===t))}trapTabInMobileDialog(e){var t;if(!this._isMobile)return;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat-container");i&&
|
|
2917
|
+
>`}focusMessageField(){const e=this.shadowRoot,t=null==e?void 0:e.getElementById("message-input");return!!(t instanceof HTMLTextAreaElement&&e)&&(0!==t.getClientRects().length&&(e.activeElement!==t&&t.focus({preventScroll:!0}),e.activeElement===t))}trapTabInMobileDialog(e){var t;if(!this._isMobile)return;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat-container");i&&wd(e,i)}render(){var e,t,i,n,r,o,a,s,l,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$;if(!this.buildingSlug&&!this.centralConvo)return H``;const S=(null===(e=this.building)||void 0===e?void 0:e.userFirstName)||"Elise",k=null===(t=this.building)||void 0===t?void 0:t.id;let A={};if(A=this._isMobile?{top:void 0,bottom:0,left:void 0,right:0}:{top:void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:void 0===this.bottom||isNaN(this.bottom)?"130px":`${this.bottom}px`,left:void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:void 0===this.right||isNaN(this.right)?"18px":`${this.right}px`},22320===k&&(A={...A,fontFamily:'"Helvetica Neue", Arial'}),this.widgetType===qp.Utilities)return H`
|
|
2918
2918
|
<div
|
|
2919
2919
|
id="utilities-container"
|
|
2920
2920
|
class=${xe({"pubnub-container__mobile":this._isMobile,"utilities-container__desktop":!this._isMobile})}
|
|
@@ -2929,13 +2929,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2929
2929
|
@click=${this.onClickExit}
|
|
2930
2930
|
aria-label="Close chat"
|
|
2931
2931
|
>
|
|
2932
|
-
${
|
|
2932
|
+
${ad("black")}
|
|
2933
2933
|
</button>
|
|
2934
2934
|
</div>
|
|
2935
2935
|
<div
|
|
2936
2936
|
class=${xe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
2937
2937
|
>
|
|
2938
|
-
${
|
|
2938
|
+
${la(null!==(i=this.orgSlug)&&void 0!==i?i:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e},null!==(r=null===(n=this.building)||void 0===n?void 0:n.country)&&void 0!==r?r:null)}
|
|
2939
2939
|
</div>
|
|
2940
2940
|
<div
|
|
2941
2941
|
id="conversation-body"
|
|
@@ -2947,7 +2947,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2947
2947
|
class=${xe({hidden:this.needsConsent()})}
|
|
2948
2948
|
>
|
|
2949
2949
|
<li class="utilities-disclaimer-message">
|
|
2950
|
-
${
|
|
2950
|
+
${da({orgSlug:null!==(o=this.orgSlug)&&void 0!==o?o:"",type:"utilities",buildingState:null!==(s=null===(a=this.building)||void 0===a?void 0:a.state)&&void 0!==s?s:null})}
|
|
2951
2951
|
</li>
|
|
2952
2952
|
<li
|
|
2953
2953
|
class="message-container ai-message"
|
|
@@ -2965,19 +2965,19 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2965
2965
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
2966
2966
|
key=${e.timestamp}
|
|
2967
2967
|
role="article"
|
|
2968
|
-
aria-label="${e.isLeadMessage?"You":S}: ${
|
|
2968
|
+
aria-label="${e.isLeadMessage?"You":S}: ${$d(e)}"
|
|
2969
2969
|
>
|
|
2970
|
-
${
|
|
2970
|
+
${Bs(e)?H`<pubnub-navigation
|
|
2971
2971
|
.message=${e}
|
|
2972
2972
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
2973
2973
|
></pubnub-navigation>`:""}
|
|
2974
|
-
${
|
|
2974
|
+
${Rs(e)?H` <pubnub-media
|
|
2975
2975
|
.message=${e}
|
|
2976
2976
|
.myPubnub=${this.myPubnub}
|
|
2977
2977
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
2978
2978
|
>
|
|
2979
2979
|
</pubnub-media>`:""}
|
|
2980
|
-
${
|
|
2980
|
+
${Ls(e)?H` <pubnub-message
|
|
2981
2981
|
.message=${e}
|
|
2982
2982
|
.myPubnub=${this.myPubnub}
|
|
2983
2983
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -3022,12 +3022,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3022
3022
|
class=${xe({"health-bttn-allow-access":this._isMobile})}
|
|
3023
3023
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
3024
3024
|
>
|
|
3025
|
-
${
|
|
3025
|
+
${sd("black")}
|
|
3026
3026
|
</button>
|
|
3027
3027
|
</div>
|
|
3028
3028
|
</div>
|
|
3029
3029
|
</div>
|
|
3030
|
-
`;if(this.widgetType===
|
|
3030
|
+
`;if(this.widgetType===qp.Healthcare)return H`
|
|
3031
3031
|
<div
|
|
3032
3032
|
id="healthchat-container"
|
|
3033
3033
|
class=${xe({"pubnub-container__mobile":this._isMobile,"healthchat-container__desktop":!this._isMobile})}
|
|
@@ -3046,13 +3046,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3046
3046
|
@click=${this.onClickExit}
|
|
3047
3047
|
aria-label="Close chat"
|
|
3048
3048
|
>
|
|
3049
|
-
${
|
|
3049
|
+
${ad("black")}
|
|
3050
3050
|
</button>
|
|
3051
3051
|
</div>
|
|
3052
3052
|
<div
|
|
3053
3053
|
class=${xe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
3054
3054
|
>
|
|
3055
|
-
${
|
|
3055
|
+
${la(null!==(l=this.orgSlug)&&void 0!==l?l:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e},null!==(u=null===(d=this.building)||void 0===d?void 0:d.country)&&void 0!==u?u:null)}
|
|
3056
3056
|
</div>
|
|
3057
3057
|
<div
|
|
3058
3058
|
id="conversation-body"
|
|
@@ -3064,7 +3064,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3064
3064
|
class=${xe({hidden:this.needsConsent()})}
|
|
3065
3065
|
>
|
|
3066
3066
|
<li class="healthcare-disclaimer-message">
|
|
3067
|
-
${
|
|
3067
|
+
${da({orgSlug:null!==(c=this.orgSlug)&&void 0!==c?c:"",type:"healthcare",buildingState:null!==(p=null===(h=this.building)||void 0===h?void 0:h.state)&&void 0!==p?p:null})}
|
|
3068
3068
|
</li>
|
|
3069
3069
|
<li
|
|
3070
3070
|
class="message-container ai-message"
|
|
@@ -3083,19 +3083,19 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3083
3083
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
3084
3084
|
key=${e.timestamp}
|
|
3085
3085
|
role="article"
|
|
3086
|
-
aria-label="${e.isLeadMessage?"You":S}: ${
|
|
3086
|
+
aria-label="${e.isLeadMessage?"You":S}: ${$d(e)}"
|
|
3087
3087
|
>
|
|
3088
|
-
${
|
|
3088
|
+
${Bs(e)?H`<pubnub-navigation
|
|
3089
3089
|
.message=${e}
|
|
3090
3090
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
3091
3091
|
></pubnub-navigation>`:""}
|
|
3092
|
-
${
|
|
3092
|
+
${Rs(e)?H` <pubnub-media
|
|
3093
3093
|
.message=${e}
|
|
3094
3094
|
.myPubnub=${this.myPubnub}
|
|
3095
3095
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
3096
3096
|
>
|
|
3097
3097
|
</pubnub-media>`:""}
|
|
3098
|
-
${
|
|
3098
|
+
${Ls(e)?H` <pubnub-message
|
|
3099
3099
|
.message=${e}
|
|
3100
3100
|
.myPubnub=${this.myPubnub}
|
|
3101
3101
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -3140,7 +3140,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3140
3140
|
class=${xe({"health-bttn-allow-access":this._isMobile})}
|
|
3141
3141
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
3142
3142
|
>
|
|
3143
|
-
${this._isMobile?
|
|
3143
|
+
${this._isMobile?sd("black"):ld("black")}
|
|
3144
3144
|
</button>
|
|
3145
3145
|
</div>
|
|
3146
3146
|
</div>
|
|
@@ -3167,13 +3167,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3167
3167
|
@click=${this.onClickExit}
|
|
3168
3168
|
aria-label="Close chat"
|
|
3169
3169
|
>
|
|
3170
|
-
${
|
|
3170
|
+
${ad("black")}
|
|
3171
3171
|
</button>
|
|
3172
3172
|
</div>
|
|
3173
3173
|
<div
|
|
3174
3174
|
class=${xe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
3175
3175
|
>
|
|
3176
|
-
${
|
|
3176
|
+
${la(null!==(f=this.orgSlug)&&void 0!==f?f:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e},null!==(m=null===(g=this.building)||void 0===g?void 0:g.country)&&void 0!==m?m:null)}
|
|
3177
3177
|
</div>
|
|
3178
3178
|
<div
|
|
3179
3179
|
id="conversation-body"
|
|
@@ -3185,7 +3185,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3185
3185
|
id="message-thread-list"
|
|
3186
3186
|
class=${xe({hidden:this.needsConsent()})}
|
|
3187
3187
|
>
|
|
3188
|
-
${
|
|
3188
|
+
${da({orgSlug:null!==(b=this.orgSlug)&&void 0!==b?b:"",buildingState:null!==(v=null===(y=this.building)||void 0===y?void 0:y.state)&&void 0!==v?v:null,buildingCountry:null!==(x=null===(w=this.building)||void 0===w?void 0:w.country)&&void 0!==x?x:null,type:"leasing",customAdditionalDisclaimer:null===(C=this.building)||void 0===C?void 0:C.customAdditionalDisclaimer})}
|
|
3189
3189
|
${this.building.welcomeMessage?H` <li
|
|
3190
3190
|
class=${xe({"message-container":!0,"ai-message":!0,"with-box-shadow":444===T})}
|
|
3191
3191
|
role="article"
|
|
@@ -3199,22 +3199,22 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3199
3199
|
</li>`:""}
|
|
3200
3200
|
${this.messages.map(e=>H`
|
|
3201
3201
|
<li
|
|
3202
|
-
class=${
|
|
3202
|
+
class=${So()("message-container",{"lead-message":e.isLeadMessage,"ai-message":!e.isLeadMessage,"with-box-shadow":444===T})}
|
|
3203
3203
|
key=${e.timestamp}
|
|
3204
3204
|
role="article"
|
|
3205
|
-
aria-label="${e.isLeadMessage?"You":S}: ${
|
|
3205
|
+
aria-label="${e.isLeadMessage?"You":S}: ${$d(e)}"
|
|
3206
3206
|
>
|
|
3207
|
-
${
|
|
3207
|
+
${Bs(e)?H`<pubnub-navigation
|
|
3208
3208
|
.message=${e}
|
|
3209
3209
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
3210
3210
|
></pubnub-navigation>`:""}
|
|
3211
|
-
${
|
|
3211
|
+
${Rs(e)?H` <pubnub-media
|
|
3212
3212
|
.message=${e}
|
|
3213
3213
|
.myPubnub=${this.myPubnub}
|
|
3214
3214
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
3215
3215
|
>
|
|
3216
3216
|
</pubnub-media>`:""}
|
|
3217
|
-
${
|
|
3217
|
+
${Ls(e)?H` <pubnub-message
|
|
3218
3218
|
.message=${e}
|
|
3219
3219
|
.myPubnub=${this.myPubnub}
|
|
3220
3220
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -3258,11 +3258,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3258
3258
|
aria-disabled=${this.sendInFlight||(null===($=this.myPubnub)||void 0===$?void 0:$.isCurrentlyStreamingMessage)?"true":"false"}
|
|
3259
3259
|
aria-label="Send message"
|
|
3260
3260
|
>
|
|
3261
|
-
${nn(this.building.orgId,this.building.id)&&this.primaryColor!==Xi?
|
|
3261
|
+
${nn(this.building.orgId,this.building.id)&&this.primaryColor!==Xi?ld("black"):ld("white")}
|
|
3262
3262
|
</button>
|
|
3263
3263
|
</div>
|
|
3264
3264
|
</div>
|
|
3265
|
-
`}};function ud(e){const t=fd(e)[0];return!!t&&(t.focus(),!0)}function cd(e,t){const i=pd(e);return!(!i||i===e)||(!(!t||!ud(t))||ud(e))}function hd(e,t){if("Tab"!==e.key)return;const i=pd(t);if(!i)return;const n=fd(t);if(0===n.length)return void e.preventDefault();const r=n.indexOf(i),o=0===r,a=r===n.length-1;if(e.shiftKey&&(i===t||o))return e.preventDefault(),void n[n.length-1].focus();e.shiftKey||i!==t&&!a||(e.preventDefault(),n[0].focus())}function pd(e){var t;let i=document.activeElement;for(;null===(t=null==i?void 0:i.shadowRoot)||void 0===t?void 0:t.activeElement;)i=i.shadowRoot.activeElement;if(!(i instanceof HTMLElement))return null;let n=i;for(;n;){if(n===e)return i;n=n instanceof ShadowRoot?n.host:n.parentNode}return null}function fd(e){const t=[],i=e=>{e instanceof Element&&e.shadowRoot&&i(e.shadowRoot),e.querySelectorAll("*").forEach(e=>{(function(e){if("-1"===e.getAttribute("tabindex"))return!1;if("disabled"in e&&e.disabled)return!1;const t="BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"A"===e.tagName&&e.hasAttribute("href")||e.hasAttribute("tabindex");return t&&e.getClientRects().length>0})(e)&&t.push(e),e.shadowRoot&&i(e.shadowRoot)})};return i(e),t}dd.AUTO_SCROLL_THRESHOLD_PX=32,dd.styles=[Me,Ds,Ms,Ns,Xl],ld([pe({type:Number})],dd.prototype,"right",void 0),ld([pe({type:Number})],dd.prototype,"bottom",void 0),ld([pe({type:Number})],dd.prototype,"top",void 0),ld([pe({type:Number})],dd.prototype,"left",void 0),ld([pe({attribute:!0})],dd.prototype,"onMount",void 0),ld([pe({attribute:!0})],dd.prototype,"channel",void 0),ld([pe({attribute:!0})],dd.prototype,"isHealthChat",void 0),ld([pe({attribute:!0})],dd.prototype,"myPubnub",void 0),ld([pe({attribute:!0})],dd.prototype,"orgSlug",void 0),ld([pe({attribute:!0})],dd.prototype,"buildingSlug",void 0),ld([pe({attribute:!0})],dd.prototype,"centralConvo",void 0),ld([pe({attribute:!0})],dd.prototype,"widgetType",void 0),ld([pe({attribute:!0})],dd.prototype,"building",void 0),ld([pe({attribute:!0})],dd.prototype,"primaryColor",void 0),ld([pe({attribute:!0})],dd.prototype,"backgroundColor",void 0),ld([pe({attribute:!0})],dd.prototype,"onClickExit",void 0),ld([pe({attribute:!0})],dd.prototype,"requiresConsent",void 0),ld([ge("#message-input",!0)],dd.prototype,"messageInput",void 0),ld([ge("#conversation-body",!0)],dd.prototype,"messageBody",void 0),ld([fe()],dd.prototype,"_isMobile",void 0),ld([fe()],dd.prototype,"messages",void 0),ld([fe()],dd.prototype,"isLoadingMessages",void 0),ld([fe()],dd.prototype,"hasReceivedConsent",void 0),ld([fe()],dd.prototype,"_replyAnnouncement",void 0),ld([fe()],dd.prototype,"sendInFlight",void 0),ld([fe()],dd.prototype,"privacyPolicyUrl",void 0),ld([fe()],dd.prototype,"websitePreviewMapping",void 0),dd=sd=ld([ce("pubnub-chat")],dd);const gd=e=>Es(e)?e.message:Os(e)?`Take me to ${e.navigation.label}`:"Media message",md=e=>`${e.type}:${e.timestamp}`,bd=(e,t)=>e.isLeadMessage||Es(e)&&(e=>{const t=e.chunks.find(e=>e.isDone);return!t||e.chunks.length===t.order})(e)?null:`${t}: ${gd(e)}`;var yd=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let vd=class extends de{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.bedroomPreferenceRequired=!1,this.brokerIntakeEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.trapOverlayTab=e=>{hd(e,this)},this.movedFocusInside=!1,this.tourType=null,this.shouldShowTourType={[wd.Guided]:!0,[wd.Self]:!0,[wd.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.isBrokerReferral=!1,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerFirmName="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneCountry=null,this.brokerPhoneIsValid=!1,this.brokerPhoneHasBlurred=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.buildingState=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.floorplanOptions=[],this.selectedFloorplanName="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this.useCoastalCustomTourTypes=!1,this.tourTypeOrder=Sd,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([pa(this.buildingId,this.hasDynamicSchedulingEnabled),uo()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await so(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),To({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:Ao.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const i=Object.values(t).every(e=>!1===e),n=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(i&&n)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void To({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:Ao.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[wd.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[wd.Guided]||!!this.escortedToursLink),[wd.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[wd.Self]||!!this.sgtUrl),[wd.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[wd.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await co(xd[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,To({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var i,n,r;const o=await so(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(n=null===(i=o.availability)||void 0===i?void 0:i[a])||void 0===n?void 0:n.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return dr("string"==typeof e?Kr(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Wr.Unknown&&a!==Wr.MediaTour&&(this.selectedDate=lr("string"==typeof l?Kr(l):l),this.tourType=Cd[a],this.selectedTime="string"==typeof l?ho(l):(e=>({datetime:nr(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:nr(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const i=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var i,n;return{tourType:t,availabilities:null===(n=null===(i=e.availability)||void 0===i?void 0:i[t])||void 0===n?void 0:n.availableTourStartTimes}}).filter(e=>{if(e.tourType===Wr.Unknown||e.tourType===Wr.MediaTour)return!1;const t=Cd[e.tourType],i=this._getTourTypeOffered(t);return!!i&&(!wa(0,i)&&e.availabilities&&e.availabilities.length>0)}),n=i[0];return n?n.tourType:null},this._getTourTypeOffered=e=>e===wd.Guided?this.escortedToursTypeOffered:e===wd.Self?this.selfGuidedToursTypeOffered:e===wd.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Ed(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await as({buildingSlug:this.buildingSlug})}catch(e){this.units=[],To({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{const e=async function(e){if(!e)return!1;try{return!0===(await r().get(wo(e),{params:{rollout_name:"coastal_custom_tour_types",default_value:!1},timeout:3e3})).data}catch(e){return!1}}(this.buildingSlug),t=Oo(this.buildingSlug);this.tourTypeOrder=function(e){const t=e.flatMap(e=>Sd.filter(t=>xd[t]===e));let i=0;return Sd.map(e=>t.includes(e)?t[i++]:e)}(await so(this.buildingId).then(e=>{var t;return null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]},()=>[])),this.useCoastalCustomTourTypes=await e,this.floorplanOptions=await t,await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await so(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var i,n;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(i=null==o?void 0:o.is_general_building)&&void 0!==i&&i,buildings:null!==(n=null==o?void 0:o.buildings)&&void 0!==n?n:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const i=this.centralConvoBuildings.find(e=>e.slug===t);if(i){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.floorplanOptions=[],this.selectedFloorplanName="",this.selectedUnitValue="",this.buildingId=i.building_id,this.buildingSlug=i.slug,this.buildingName=i.name,this.statusMessage=`Loading tours for ${i.name}…`,Ro("tourBuildingSelected",{buildingId:i.building_id});try{const e=await xa(this.orgSlug,i.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${i.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${i.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await co(xd[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangeBrokerPhone=e=>{this.brokerPhone=e.detail.formattedValue,this.brokerPhoneE164=e.detail.e164,this.brokerPhoneCountry=e.detail.country,this.brokerPhoneIsValid=e.detail.isValid},this.onToggleBrokerReferral=e=>{const t=e.target.checked,i=!(this.brokerFirstName||this.brokerLastName||this.brokerEmail||this.brokerPhone),n=!(this.firstNameInputValue||this.lastNameInputValue||this.email||this.phoneNumber);t&&i?(this.brokerFirstName=this.firstNameInputValue,this.brokerLastName=this.lastNameInputValue,this.brokerEmail=this.email,this.brokerPhone=this.phoneNumber,this.brokerPhoneE164=this.phoneNumberE164,this.brokerPhoneCountry=this.phoneCountry,this.brokerPhoneIsValid=this.phoneNumberIsValid,this.brokerPhoneHasBlurred=this.phoneNumberHasBlurred,this.firstNameInputValue="",this.lastNameInputValue="",this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1):!t&&n&&(this.firstNameInputValue=this.brokerFirstName,this.lastNameInputValue=this.brokerLastName,this.email=this.brokerEmail,this.phoneNumber=this.brokerPhone,this.phoneNumberE164=this.brokerPhoneE164,this.phoneCountry=this.brokerPhoneCountry,this.phoneNumberIsValid=this.brokerPhoneIsValid,this.phoneNumberHasBlurred=this.brokerPhoneHasBlurred,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneIsValid=!1,this.brokerPhoneHasBlurred=!1),this.isBrokerReferral=t},this.brokerReferral=()=>{var e;return this.brokerIntakeEnabled&&this.isBrokerReferral?oa(this.brokerFirstName,this.brokerLastName,this.brokerEmail,this.brokerFirmName,null!==(e=this.brokerPhoneE164)&&void 0!==e?e:""):null},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,i,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Rr(null!==(n=null===(i=this.emailInput)||void 0===i?void 0:i.value)&&void 0!==n?n:"")&&!!this.phoneNumber&&!!this.phoneNumberE164},layout:()=>!this.bedroomPreferenceRequired||!!this.selectedLayoutValue||!!this.selectedFloorplanName,broker:()=>{const e=this.brokerReferral();return!e||!aa(e)&&!sa(e,this.email)&&(!this.brokerPhone||this.brokerPhoneIsValid)}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo()&&this.validators.layout()&&this.validators.broker(),this.timeStringToHoursAndMinutes=e=>{const[t,i]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(i)]},this.submit=async()=>{var e,t,i,n,o,a,s,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const k=this.phoneNumberE164;if(!k)return void(this.phoneNumberIsValid=!1);if(!this.validators.broker())return;const A=this.brokerReferral(),T=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const _=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const O=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,P=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;Ro("scheduleTourSubmitted",{email:this.email,phone:k,firstName:null!==(n=null===(i=this.firstNameInput)||void 0===i?void 0:i.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:Ad[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:_.find(e=>"property-website"!==e)||null,layout:O,unit:P,conversationTrackingId:null!==(d=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==d?d:null,...A?{isBrokerReferral:!0}:{}});const I=os(),N={referrer:document.referrer,email_address:this.email,phone_number:k,building_id:this.buildingId,tracking_params:l(this.orgSlug),first_name:null!==(c=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.firstNameInputValue,last_name:null!==(p=null===(h=this.lastNameInput)||void 0===h?void 0:h.value)&&void 0!==p?p:this.lastNameInputValue,tour_type:Ad[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,ca(this.orgSlug)]:[ca(this.orgSlug)])],query_params:Object.fromEntries(T.entries()),conversation_tracking_id:null===(f=this.leadSourceClient)||void 0===f?void 0:f.chatId,layouts:O?[O]:void 0,floorplans:this.selectedFloorplanName?[this.selectedFloorplanName]:void 0,unit_numbers:P?[P]:void 0,lead_sources_with_timestamps:(null!==(b=null===(g=this.leadSourceMultitouchClient)||void 0===g?void 0:g.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(m=this.selectedLeadSource)||void 0===m?void 0:m.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==b?b:[]).map(e=>Or({...e})),google_rwg_token:null==I?void 0:I.rwgToken,google_referral_building_id:null==I?void 0:I.buildingId,google_environment:null==I?void 0:I.environment,...la(A)};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",N,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(v=this.leadSourceClient)||void 0===v||v.resetLeadSource(),null===(w=this.leadSourceMultitouchClient)||void 0===w||w.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,i=(null===(C=null===(x=t.response)||void 0===x?void 0:x.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[nr(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[nr(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===i){const e=t.response.headers;return this.existingTourBuildingName=function(e){if(!e)return;try{return decodeURIComponent(e)||void 0}catch{return}}(e["existing-tour-building-name"]),this.existingTourStartTime=function(e){var t;const i=null===(t=null==e?void 0:e.match(/(Z|[+-]\d{2}:\d{2})$/))||void 0===t?void 0:t[1];return e&&i&&un(Kr(e))?Td(e,i):void 0}(e["existing-tour-start-time"]),this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1)}if(409===(null===(S=t.response)||void 0===S?void 0:S.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,ao(),this.availabilitiesGroupedByDay=await co(xd[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(i),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>H`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>H`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo()&&this.validators.broker(),nextButtonText:null,renderNextButton:()=>H` <action-confirm-button
|
|
3265
|
+
`}};function yd(e){const t=Cd(e)[0];return!!t&&(t.focus(),!0)}function vd(e,t){const i=xd(e);return!(!i||i===e)||(!(!t||!yd(t))||yd(e))}function wd(e,t){if("Tab"!==e.key)return;const i=xd(t);if(!i)return;const n=Cd(t);if(0===n.length)return void e.preventDefault();const r=n.indexOf(i),o=0===r,a=r===n.length-1;if(e.shiftKey&&(i===t||o))return e.preventDefault(),void n[n.length-1].focus();e.shiftKey||i!==t&&!a||(e.preventDefault(),n[0].focus())}function xd(e){var t;let i=document.activeElement;for(;null===(t=null==i?void 0:i.shadowRoot)||void 0===t?void 0:t.activeElement;)i=i.shadowRoot.activeElement;if(!(i instanceof HTMLElement))return null;let n=i;for(;n;){if(n===e)return i;n=n instanceof ShadowRoot?n.host:n.parentNode}return null}function Cd(e){const t=[],i=e=>{e instanceof Element&&e.shadowRoot&&i(e.shadowRoot),e.querySelectorAll("*").forEach(e=>{(function(e){if("-1"===e.getAttribute("tabindex"))return!1;if("disabled"in e&&e.disabled)return!1;const t="BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"A"===e.tagName&&e.hasAttribute("href")||e.hasAttribute("tabindex");return t&&e.getClientRects().length>0})(e)&&t.push(e),e.shadowRoot&&i(e.shadowRoot)})};return i(e),t}bd.AUTO_SCROLL_THRESHOLD_PX=32,bd.styles=[Me,zs,Hs,Fs,od],md([pe({type:Number})],bd.prototype,"right",void 0),md([pe({type:Number})],bd.prototype,"bottom",void 0),md([pe({type:Number})],bd.prototype,"top",void 0),md([pe({type:Number})],bd.prototype,"left",void 0),md([pe({attribute:!0})],bd.prototype,"onMount",void 0),md([pe({attribute:!0})],bd.prototype,"channel",void 0),md([pe({attribute:!0})],bd.prototype,"isHealthChat",void 0),md([pe({attribute:!0})],bd.prototype,"myPubnub",void 0),md([pe({attribute:!0})],bd.prototype,"orgSlug",void 0),md([pe({attribute:!0})],bd.prototype,"buildingSlug",void 0),md([pe({attribute:!0})],bd.prototype,"centralConvo",void 0),md([pe({attribute:!0})],bd.prototype,"widgetType",void 0),md([pe({attribute:!0})],bd.prototype,"building",void 0),md([pe({attribute:!0})],bd.prototype,"primaryColor",void 0),md([pe({attribute:!0})],bd.prototype,"backgroundColor",void 0),md([pe({attribute:!0})],bd.prototype,"onClickExit",void 0),md([pe({attribute:!0})],bd.prototype,"requiresConsent",void 0),md([ge("#message-input",!0)],bd.prototype,"messageInput",void 0),md([ge("#conversation-body",!0)],bd.prototype,"messageBody",void 0),md([fe()],bd.prototype,"_isMobile",void 0),md([fe()],bd.prototype,"messages",void 0),md([fe()],bd.prototype,"isLoadingMessages",void 0),md([fe()],bd.prototype,"hasReceivedConsent",void 0),md([fe()],bd.prototype,"_replyAnnouncement",void 0),md([fe()],bd.prototype,"sendInFlight",void 0),md([fe()],bd.prototype,"privacyPolicyUrl",void 0),md([fe()],bd.prototype,"websitePreviewMapping",void 0),bd=gd=md([ce("pubnub-chat")],bd);const $d=e=>Ls(e)?e.message:Bs(e)?`Take me to ${e.navigation.label}`:"Media message",Sd=e=>`${e.type}:${e.timestamp}`,kd=(e,t)=>e.isLeadMessage||Ls(e)&&(e=>{const t=e.chunks.find(e=>e.isDone);return!t||e.chunks.length===t.order})(e)?null:`${t}: ${$d(e)}`;var Ad=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Td=class extends de{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.bedroomPreferenceRequired=!1,this.brokerIntakeEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.trapOverlayTab=e=>{wd(e,this)},this.movedFocusInside=!1,this.tourType=null,this.shouldShowTourType={[Ed.Guided]:!0,[Ed.Self]:!0,[Ed.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.isBrokerReferral=!1,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerFirmName="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneCountry=null,this.brokerPhoneIsValid=!1,this.brokerPhoneHasBlurred=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.buildingState=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.floorplanOptions=[],this.selectedFloorplanName="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this.useCoastalCustomTourTypes=!1,this.tourTypeOrder=Id,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([xa(this.buildingId,this.hasDynamicSchedulingEnabled),yo()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await mo(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),Do({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:Mo.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const i=Object.values(t).every(e=>!1===e),n=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(i&&n)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void Do({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:Mo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[Ed.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[Ed.Guided]||!!this.escortedToursLink),[Ed.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[Ed.Self]||!!this.sgtUrl),[Ed.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[Ed.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await vo(_d[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,Do({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var i,n,r;const o=await mo(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(n=null===(i=o.availability)||void 0===i?void 0:i[a])||void 0===n?void 0:n.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return dr("string"==typeof e?ro(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Jr.Unknown&&a!==Jr.MediaTour&&(this.selectedDate=lr("string"==typeof l?ro(l):l),this.tourType=Od[a],this.selectedTime="string"==typeof l?wo(l):(e=>({datetime:nr(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:nr(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const i=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var i,n;return{tourType:t,availabilities:null===(n=null===(i=e.availability)||void 0===i?void 0:i[t])||void 0===n?void 0:n.availableTourStartTimes}}).filter(e=>{if(e.tourType===Jr.Unknown||e.tourType===Jr.MediaTour)return!1;const t=Od[e.tourType],i=this._getTourTypeOffered(t);return!!i&&(!Ea(0,i)&&e.availabilities&&e.availabilities.length>0)}),n=i[0];return n?n.tourType:null},this._getTourTypeOffered=e=>e===Ed.Guided?this.escortedToursTypeOffered:e===Ed.Self?this.selfGuidedToursTypeOffered:e===Ed.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Ld(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await fs({buildingSlug:this.buildingSlug})}catch(e){this.units=[],Do({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{const e=async function(e){if(!e)return!1;try{return!0===(await r().get(Eo(e),{params:{rollout_name:"coastal_custom_tour_types",default_value:!1},timeout:3e3})).data}catch(e){return!1}}(this.buildingSlug),t=Bo(this.buildingSlug);this.tourTypeOrder=function(e){const t=e.flatMap(e=>Id.filter(t=>_d[t]===e));let i=0;return Id.map(e=>t.includes(e)?t[i++]:e)}(await mo(this.buildingId).then(e=>{var t;return null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]},()=>[])),this.useCoastalCustomTourTypes=await e,this.floorplanOptions=await t,await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await mo(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var i,n;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(i=null==o?void 0:o.is_general_building)&&void 0!==i&&i,buildings:null!==(n=null==o?void 0:o.buildings)&&void 0!==n?n:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const i=this.centralConvoBuildings.find(e=>e.slug===t);if(i){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.floorplanOptions=[],this.selectedFloorplanName="",this.selectedUnitValue="",this.buildingId=i.building_id,this.buildingSlug=i.slug,this.buildingName=i.name,this.statusMessage=`Loading tours for ${i.name}…`,Wo("tourBuildingSelected",{buildingId:i.building_id});try{const e=await _a(this.orgSlug,i.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${i.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${i.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await vo(_d[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangeBrokerPhone=e=>{this.brokerPhone=e.detail.formattedValue,this.brokerPhoneE164=e.detail.e164,this.brokerPhoneCountry=e.detail.country,this.brokerPhoneIsValid=e.detail.isValid},this.onToggleBrokerReferral=e=>{const t=e.target.checked,i=!(this.brokerFirstName||this.brokerLastName||this.brokerEmail||this.brokerPhone),n=!(this.firstNameInputValue||this.lastNameInputValue||this.email||this.phoneNumber);t&&i?(this.brokerFirstName=this.firstNameInputValue,this.brokerLastName=this.lastNameInputValue,this.brokerEmail=this.email,this.brokerPhone=this.phoneNumber,this.brokerPhoneE164=this.phoneNumberE164,this.brokerPhoneCountry=this.phoneCountry,this.brokerPhoneIsValid=this.phoneNumberIsValid,this.brokerPhoneHasBlurred=this.phoneNumberHasBlurred,this.firstNameInputValue="",this.lastNameInputValue="",this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1):!t&&n&&(this.firstNameInputValue=this.brokerFirstName,this.lastNameInputValue=this.brokerLastName,this.email=this.brokerEmail,this.phoneNumber=this.brokerPhone,this.phoneNumberE164=this.brokerPhoneE164,this.phoneCountry=this.brokerPhoneCountry,this.phoneNumberIsValid=this.brokerPhoneIsValid,this.phoneNumberHasBlurred=this.brokerPhoneHasBlurred,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneIsValid=!1,this.brokerPhoneHasBlurred=!1),this.isBrokerReferral=t},this.brokerReferral=()=>{var e;return this.brokerIntakeEnabled&&this.isBrokerReferral?pa(this.brokerFirstName,this.brokerLastName,this.brokerEmail,this.brokerFirmName,null!==(e=this.brokerPhoneE164)&&void 0!==e?e:""):null},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,i,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Wr(null!==(n=null===(i=this.emailInput)||void 0===i?void 0:i.value)&&void 0!==n?n:"")&&!!this.phoneNumber&&!!this.phoneNumberE164},layout:()=>!this.bedroomPreferenceRequired||!!this.selectedLayoutValue||!!this.selectedFloorplanName,broker:()=>{const e=this.brokerReferral();return!e||!fa(e)&&!ga(e,this.email)&&(!this.brokerPhone||this.brokerPhoneIsValid)}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo()&&this.validators.layout()&&this.validators.broker(),this.timeStringToHoursAndMinutes=e=>{const[t,i]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(i)]},this.submit=async()=>{var e,t,i,n,o,a,s,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const k=this.phoneNumberE164;if(!k)return void(this.phoneNumberIsValid=!1);if(!this.validators.broker())return;const A=this.brokerReferral(),T=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const _=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const O=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,P=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;Wo("scheduleTourSubmitted",{email:this.email,phone:k,firstName:null!==(n=null===(i=this.firstNameInput)||void 0===i?void 0:i.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:Md[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:_.find(e=>"property-website"!==e)||null,layout:O,unit:P,conversationTrackingId:null!==(d=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==d?d:null,...A?{isBrokerReferral:!0}:{}});const I=ps(),N={referrer:document.referrer,email_address:this.email,phone_number:k,building_id:this.buildingId,tracking_params:l(this.orgSlug),first_name:null!==(c=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.firstNameInputValue,last_name:null!==(p=null===(h=this.lastNameInput)||void 0===h?void 0:h.value)&&void 0!==p?p:this.lastNameInputValue,tour_type:Md[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,va(this.orgSlug)]:[va(this.orgSlug)])],query_params:Object.fromEntries(T.entries()),conversation_tracking_id:null===(f=this.leadSourceClient)||void 0===f?void 0:f.chatId,layouts:O?[O]:void 0,floorplans:this.selectedFloorplanName?[this.selectedFloorplanName]:void 0,unit_numbers:P?[P]:void 0,lead_sources_with_timestamps:(null!==(b=null===(g=this.leadSourceMultitouchClient)||void 0===g?void 0:g.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(m=this.selectedLeadSource)||void 0===m?void 0:m.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==b?b:[]).map(e=>Br({...e})),google_rwg_token:null==I?void 0:I.rwgToken,google_referral_building_id:null==I?void 0:I.buildingId,google_environment:null==I?void 0:I.environment,...ma(A)};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",N,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(v=this.leadSourceClient)||void 0===v||v.resetLeadSource(),null===(w=this.leadSourceMultitouchClient)||void 0===w||w.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,i=(null===(C=null===(x=t.response)||void 0===x?void 0:x.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[nr(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[nr(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===i){const e=t.response.headers;return this.existingTourBuildingName=function(e){if(!e)return;try{return decodeURIComponent(e)||void 0}catch{return}}(e["existing-tour-building-name"]),this.existingTourStartTime=function(e){var t;const i=null===(t=null==e?void 0:e.match(/(Z|[+-]\d{2}:\d{2})$/))||void 0===t?void 0:t[1];return e&&i&&un(ro(e))?Dd(e,i):void 0}(e["existing-tour-start-time"]),this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1)}if(409===(null===(S=t.response)||void 0===S?void 0:S.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,go(),this.availabilitiesGroupedByDay=await vo(_d[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(i),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>H`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>H`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo()&&this.validators.broker(),nextButtonText:null,renderNextButton:()=>H` <action-confirm-button
|
|
3266
3266
|
id="schedule-bttn"
|
|
3267
3267
|
.onClick=${this.submit}
|
|
3268
3268
|
.isLoading=${this.isSubmitting}
|
|
@@ -3282,7 +3282,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3282
3282
|
@change=${this.onToggleBrokerReferral}
|
|
3283
3283
|
/>
|
|
3284
3284
|
</label>
|
|
3285
|
-
`,this.selectLayout=e=>{if(this.selectedLayoutValue=e,e&&this.selectedUnitValue){const t=this.units.find(e=>e.unitNumber===this.selectedUnitValue);t&&
|
|
3285
|
+
`,this.selectLayout=e=>{if(this.selectedLayoutValue=e,e&&this.selectedUnitValue){const t=this.units.find(e=>e.unitNumber===this.selectedUnitValue);t&&Ld(10*t.numberOfBedrooms)!==e&&(this.selectedUnitValue="",this.selectedUnitEl&&(this.selectedUnitEl.value=void 0))}e&&Wo("tourLayoutSelected",{layout:e,buildingId:this.buildingId})}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.trapOverlayTab),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Schedule a Tour")}openSelfGuidedTour(){const e=52===this.orgId?jo(this.sgtUrl,Uo()):this.sgtUrl;window.open(e,"_blank")}disconnectedCallback(){this.removeEventListener("keydown",this.trapOverlayTab),super.disconnectedCallback()}updated(){this.movedFocusInside||(vd(this)?this.movedFocusInside=!0:(this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.matches(":focus")||this.focus({preventScroll:!0})))}coastalTourLabel(e){return this.useCoastalCustomTourTypes?Pd[e]:void 0}confirmationTourName(e){var t;return null!==(t=this.coastalTourLabel(e))&&void 0!==t?t:Nd[e]}buildingSelectMenu(){return H`<me-select
|
|
3286
3286
|
id="building"
|
|
3287
3287
|
placeholder="Select a property"
|
|
3288
3288
|
.value=${this.isGeneralBuilding?"":this.buildingSlug}
|
|
@@ -3290,36 +3290,36 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3290
3290
|
@change=${this._onBuildingChange}
|
|
3291
3291
|
>
|
|
3292
3292
|
</me-select>`}buildingSelector(){if(this.isGeneralBuilding){if(0===this.centralConvoBuildings.length)return""}else if(this.centralConvoBuildings.length<=1)return"";return H`<h2 class="journey-header">Building</h2>
|
|
3293
|
-
${this.buildingSelectMenu()}`}tourTypeMenu(){var e,t;const i={[
|
|
3294
|
-
heading=${null!==(e=this.coastalTourLabel(
|
|
3295
|
-
subtitle=${this.coastalTourLabel(
|
|
3293
|
+
${this.buildingSelectMenu()}`}tourTypeMenu(){var e,t;const i={[Ed.Self]:this.shouldShowTourType[Ed.Self]?H` <tour-type-option
|
|
3294
|
+
heading=${null!==(e=this.coastalTourLabel(Ed.Self))&&void 0!==e?e:"Take a tour"}
|
|
3295
|
+
subtitle=${this.coastalTourLabel(Ed.Self)?"":"on your own"}
|
|
3296
3296
|
.primaryColor=${this.primaryColor}
|
|
3297
3297
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
3298
|
-
@click="${async()=>{this.tourType=
|
|
3299
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
3300
|
-
?selected="${this.tourType===
|
|
3298
|
+
@click="${async()=>{this.tourType=Ed.Self,Wo("tourTypeSelected",{tourType:Ed.Self,buildingId:this.buildingId}),this.sgtUrl&&Ea(Ed.Self,this.selfGuidedToursTypeOffered)&&this.openSelfGuidedTour(),this.availabilitiesGroupedByDay=await vo(_d[Ed.Self]),this._setDefaultSelectedDateAndTimes(_d[Ed.Self])}}"
|
|
3299
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=Ed.Self)}}"
|
|
3300
|
+
?selected="${this.tourType===Ed.Self}"
|
|
3301
3301
|
>
|
|
3302
|
-
${
|
|
3303
|
-
</tour-type-option>`:"",[
|
|
3304
|
-
heading=${null!==(t=this.coastalTourLabel(
|
|
3305
|
-
subtitle=${this.coastalTourLabel(
|
|
3302
|
+
${$a(this.tourType===Ed.Self?this.foregroundColorOnPrimaryBackgroundColor:on)}
|
|
3303
|
+
</tour-type-option>`:"",[Ed.Guided]:this.shouldShowTourType[Ed.Guided]?H` <tour-type-option
|
|
3304
|
+
heading=${null!==(t=this.coastalTourLabel(Ed.Guided))&&void 0!==t?t:"Guided tour"}
|
|
3305
|
+
subtitle=${this.coastalTourLabel(Ed.Guided)?"":"with an agent"}
|
|
3306
3306
|
.primaryColor=${this.primaryColor}
|
|
3307
3307
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
3308
|
-
@click="${async()=>{this.tourType=
|
|
3309
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
3310
|
-
?selected="${this.tourType===
|
|
3308
|
+
@click="${async()=>{this.tourType=Ed.Guided,Wo("tourTypeSelected",{tourType:Ed.Guided,buildingId:this.buildingId}),this.escortedToursLink&&Ea(Ed.Guided,this.escortedToursTypeOffered)&&window.open(this.escortedToursLink,"_blank"),this.availabilitiesGroupedByDay=await vo(_d[Ed.Guided]),this._setDefaultSelectedDateAndTimes(_d[Ed.Guided])}}"
|
|
3309
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=Ed.Guided)}}"
|
|
3310
|
+
?selected="${this.tourType===Ed.Guided}"
|
|
3311
3311
|
>
|
|
3312
|
-
${
|
|
3313
|
-
</tour-type-option>`:"",[
|
|
3312
|
+
${Sa(this.tourType===Ed.Guided?this.foregroundColorOnPrimaryBackgroundColor:on)}
|
|
3313
|
+
</tour-type-option>`:"",[Ed.Virtual]:this.shouldShowTourType[Ed.Virtual]?H` <tour-type-option
|
|
3314
3314
|
heading="Virtual tour"
|
|
3315
3315
|
subtitle="over video"
|
|
3316
3316
|
.primaryColor=${this.primaryColor}
|
|
3317
3317
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
3318
|
-
@click="${async()=>{this.tourType=
|
|
3319
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
3320
|
-
?selected="${this.tourType===
|
|
3318
|
+
@click="${async()=>{this.tourType=Ed.Virtual,Wo("tourTypeSelected",{tourType:Ed.Virtual,buildingId:this.buildingId}),this.virtualToursLink&&Ea(Ed.Virtual,this.virtualToursTypeOffered)&&window.open(this.virtualToursLink,"_blank"),this.availabilitiesGroupedByDay=await vo(_d[Ed.Virtual]),this._setDefaultSelectedDateAndTimes(_d[Ed.Virtual])}}"
|
|
3319
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=Ed.Virtual)}}"
|
|
3320
|
+
?selected="${this.tourType===Ed.Virtual}"
|
|
3321
3321
|
>
|
|
3322
|
-
${
|
|
3322
|
+
${Ca(this.tourType===Ed.Virtual?this.foregroundColorOnPrimaryBackgroundColor:on)}
|
|
3323
3323
|
</tour-type-option>`:""};return H`${this.buildingSelector()}
|
|
3324
3324
|
<h2 id="tour-type-heading" class="journey-header">Tour Type</h2>
|
|
3325
3325
|
<div
|
|
@@ -3328,7 +3328,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3328
3328
|
aria-labelledby="tour-type-heading"
|
|
3329
3329
|
>
|
|
3330
3330
|
${this.tourTypeOrder.map(e=>i[e])}
|
|
3331
|
-
</div>`}dateAndTimeMenu(){var e;return this.tourType===
|
|
3331
|
+
</div>`}dateAndTimeMenu(){var e;return this.tourType===Ed.Self&&this.sgtUrl&&Ea(this.tourType,this.selfGuidedToursTypeOffered)?H`<h2 class="journey-header">Date and Time</h2>
|
|
3332
3332
|
<div id="dateAndTimeMenu">
|
|
3333
3333
|
<button
|
|
3334
3334
|
id="self-guided-redirect-bttn"
|
|
@@ -3340,17 +3340,17 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3340
3340
|
<div id="dateAndTimeMenu">
|
|
3341
3341
|
<div id="datePicker">
|
|
3342
3342
|
<date-picker
|
|
3343
|
-
.availabilities=${
|
|
3343
|
+
.availabilities=${Co()(this.availabilitiesGroupedByDay,e=>e.map(e=>new Date(e.offset)))}
|
|
3344
3344
|
.defaultDate=${this.selectedDate}
|
|
3345
|
-
@change=${async e=>{if(this.tourType===
|
|
3345
|
+
@change=${async e=>{if(this.tourType===Ed.Self&&this.sgtUrl&&Ea(this.tourType,this.selfGuidedToursTypeOffered))this.openSelfGuidedTour();else if(this.tourType===Ed.Guided&&this.escortedToursLink&&Ea(this.tourType,this.escortedToursTypeOffered))window.open(this.escortedToursLink,"_blank");else if(this.tourType===Ed.Virtual&&this.virtualToursLink&&Ea(this.tourType,this.virtualToursTypeOffered))window.open(this.virtualToursLink,"_blank");else if(e.target instanceof cr){const t=this.selectedDate;if(this.selectedDate=e.target.selectedDate,!this.tourType)return;if(t&&e.target.selectedDate&&dr(t,e.target.selectedDate))return;e.target.selectedDate&&Wo("tourDateSelected",{selectedDate:nr(e.target.selectedDate,"yyyy-MM-dd"),tourType:this.tourType,buildingId:this.buildingId}),this._setDefaultSelectedDateAndTimes(_d[this.tourType],e.target.selectedDate)}}}
|
|
3346
3346
|
></date-picker>
|
|
3347
3347
|
<div>
|
|
3348
3348
|
<time-picker
|
|
3349
3349
|
?selecteddateexists=${!!this.selectedDate}
|
|
3350
3350
|
.timezone=${this.calendarTimeZone}
|
|
3351
|
-
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:nr(
|
|
3352
|
-
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[nr(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort((e,t)=>function(e,t){sn(2,arguments);var i=ln(e),n=ln(t),r=i.getTime()-n.getTime();return r<0?-1:r>0?1:r}(
|
|
3353
|
-
@change=${e=>{if(e.target instanceof br){if(!this.selectedDate)return;const t=this.availabilitiesGroupedByDay[nr(new Date(this.selectedDate),"y-MM-dd")],i=e.target.selectedTime?t.indexOf(e.target.selectedTime.dateWithTimeZoneOffset):null;this.selectedTime=null!==i?t[i]:null,this.selectedTime&&
|
|
3351
|
+
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:nr(ro(`${this.selectedTime.datetime}${this.selectedTime.offset}`),"h:mmaaa"),displayTimeZoned:cs(ro(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"h:mmaaa")}:null}
|
|
3352
|
+
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[nr(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort((e,t)=>function(e,t){sn(2,arguments);var i=ln(e),n=ln(t),r=i.getTime()-n.getTime();return r<0?-1:r>0?1:r}(ro(e.datetime),ro(t.datetime))).map(e=>({dateWithTimeZoneOffset:e,displayTime:nr(ro(`${e.datetime}${e.offset}`),"h:mmaaa"),displayTimeZoned:cs(ro(`${e.datetime}${e.offset}`),this.calendarTimeZone,"h:mmaaa")})):[]}
|
|
3353
|
+
@change=${e=>{if(e.target instanceof br){if(!this.selectedDate)return;const t=this.availabilitiesGroupedByDay[nr(new Date(this.selectedDate),"y-MM-dd")],i=e.target.selectedTime?t.indexOf(e.target.selectedTime.dateWithTimeZoneOffset):null;this.selectedTime=null!==i?t[i]:null,this.selectedTime&&Wo("tourTimeSelected",{selectedTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,tourType:this.tourType,buildingId:this.buildingId})}}}
|
|
3354
3354
|
></time-picker>
|
|
3355
3355
|
</div>
|
|
3356
3356
|
</div>
|
|
@@ -3382,7 +3382,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3382
3382
|
stroke-width="2"
|
|
3383
3383
|
/>
|
|
3384
3384
|
</svg>
|
|
3385
|
-
</button>`}renderBrokerSection(){var e;const t=e=>xe({"webchat-input":!0,...e?{[e]:!0}:{},"webchat-font__desktop":!
|
|
3385
|
+
</button>`}renderBrokerSection(){var e;const t=e=>xe({"webchat-input":!0,...e?{[e]:!0}:{},"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()}),i=this.brokerReferral(),n=i&&this.brokerEmail?ga(i,this.email):null;return H`
|
|
3386
3386
|
<div class="section-label">Your details</div>
|
|
3387
3387
|
<div id="brokerNamesWrapper" class="namesWrapper">
|
|
3388
3388
|
<div class="nameContainer">
|
|
@@ -3410,7 +3410,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3410
3410
|
</div>
|
|
3411
3411
|
<div class="inputContainer">
|
|
3412
3412
|
<input
|
|
3413
|
-
class=${xe({"webchat-input":!0,"webchat-font__desktop":!
|
|
3413
|
+
class=${xe({"webchat-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr(),"webchat-input__error":!!n})}
|
|
3414
3414
|
type="email"
|
|
3415
3415
|
inputmode="email"
|
|
3416
3416
|
placeholder="Your email"
|
|
@@ -3445,13 +3445,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3445
3445
|
</div>
|
|
3446
3446
|
${this.renderBrokerToggle()}
|
|
3447
3447
|
<div class="section-label">Your client</div>
|
|
3448
|
-
`}showLeadSourceSelect(){return!(this.brokerIntakeEnabled&&this.isBrokerReferral)&&this.leadSources.length>0&&(this.featureFlagShowDropdown===
|
|
3448
|
+
`}showLeadSourceSelect(){return!(this.brokerIntakeEnabled&&this.isBrokerReferral)&&this.leadSources.length>0&&(this.featureFlagShowDropdown===Ao.always||this.featureFlagShowDropdown===Ao.onAttributionFailure&&0===this.currentLeadSource.length)}userInfoAndLayoutMenu(){var e;const t=this.brokerIntakeEnabled&&this.isBrokerReferral;return H`<h2 class="journey-header">Your Information</h2>
|
|
3449
3449
|
<div id="yourInformationMenu">
|
|
3450
3450
|
${t?this.renderBrokerSection():""}
|
|
3451
3451
|
<div id="namesWrapper" class="namesWrapper">
|
|
3452
3452
|
<div class="nameContainer" id="firstName">
|
|
3453
3453
|
<input
|
|
3454
|
-
class=${xe({"webchat-input":!0,nameInput:!0,"webchat-font__desktop":!
|
|
3454
|
+
class=${xe({"webchat-input":!0,nameInput:!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
3455
3455
|
type="text"
|
|
3456
3456
|
placeholder=${t?"Client first name":"First name"}
|
|
3457
3457
|
name="firstName"
|
|
@@ -3462,7 +3462,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3462
3462
|
</div>
|
|
3463
3463
|
<div class="nameContainer" id="lastName">
|
|
3464
3464
|
<input
|
|
3465
|
-
class=${xe({"webchat-input":!0,nameInput:!0,"webchat-font__desktop":!
|
|
3465
|
+
class=${xe({"webchat-input":!0,nameInput:!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
3466
3466
|
type="text"
|
|
3467
3467
|
placeholder=${t?"Client last name":"Last name"}
|
|
3468
3468
|
name="lastName"
|
|
@@ -3475,7 +3475,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3475
3475
|
|
|
3476
3476
|
<div class="inputContainer" id="email">
|
|
3477
3477
|
<input
|
|
3478
|
-
class=${xe({"webchat-input":!0,"webchat-font__desktop":!
|
|
3478
|
+
class=${xe({"webchat-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr(),"webchat-input__error":!!this.email&&!Wr(this.email)})}
|
|
3479
3479
|
type="email"
|
|
3480
3480
|
inputmode="email"
|
|
3481
3481
|
placeholder=${t?"Client email":"Email"}
|
|
@@ -3484,7 +3484,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3484
3484
|
.value=${this.email}
|
|
3485
3485
|
@input=${this.onChangeEmail}
|
|
3486
3486
|
/>
|
|
3487
|
-
${this.email&&!
|
|
3487
|
+
${this.email&&!Wr(this.email)?H`<p class="error-message">Invalid email address</p>`:""}
|
|
3488
3488
|
</div>
|
|
3489
3489
|
<div class="inputContainer" id="phone">
|
|
3490
3490
|
<international-phone-input
|
|
@@ -3502,12 +3502,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3502
3502
|
placeholder=${this.bedroomPreferenceRequired?"Floor plan preference":"Floor plan preference (optional)"}
|
|
3503
3503
|
.value=${this.selectedFloorplanName}
|
|
3504
3504
|
.options="${this.floorplanOptions.map(e=>({label:e.name,value:e.name}))}"
|
|
3505
|
-
@change=${()=>{var e,t;const i=(null===(e=this.selectedFloorplanEl)||void 0===e?void 0:e.value)||"",n=null===(t=this.floorplanOptions.find(e=>e.name===i))||void 0===t?void 0:t.bedrooms;this.selectedFloorplanName=i,this.selectLayout(null==n?"":
|
|
3505
|
+
@change=${()=>{var e,t;const i=(null===(e=this.selectedFloorplanEl)||void 0===e?void 0:e.value)||"",n=null===(t=this.floorplanOptions.find(e=>e.name===i))||void 0===t?void 0:t.bedrooms;this.selectedFloorplanName=i,this.selectLayout(null==n?"":Ld(10*n))}}
|
|
3506
3506
|
>
|
|
3507
3507
|
</me-select>`:this.layoutOptions.length>0?H` <me-select
|
|
3508
3508
|
id="layout"
|
|
3509
3509
|
placeholder=${this.bedroomPreferenceRequired?"Bedroom preference":"Bedroom preference (optional)"}
|
|
3510
|
-
.options="${this.layoutOptions.map(e=>({label:e.label,value:
|
|
3510
|
+
.options="${this.layoutOptions.map(e=>({label:e.label,value:Ld(e.value)}))}"
|
|
3511
3511
|
@change=${()=>{var e;return this.selectLayout((null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||"")}}
|
|
3512
3512
|
>
|
|
3513
3513
|
</me-select>`:""}
|
|
@@ -3516,7 +3516,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3516
3516
|
placeholder="Unit preference (optional)"
|
|
3517
3517
|
.value=${this.selectedUnitValue}
|
|
3518
3518
|
.options="${this._getUnitOptions()}"
|
|
3519
|
-
@change=${()=>{var e;const t=(null===(e=this.selectedUnitEl)||void 0===e?void 0:e.value)||"";this.selectedUnitValue=t,t&&
|
|
3519
|
+
@change=${()=>{var e;const t=(null===(e=this.selectedUnitEl)||void 0===e?void 0:e.value)||"";this.selectedUnitValue=t,t&&Wo("tourUnitSelected",{unit:t,buildingId:this.buildingId})}}
|
|
3520
3520
|
>
|
|
3521
3521
|
</me-select>`:""}
|
|
3522
3522
|
${this.showLeadSourceSelect()?H` <me-select
|
|
@@ -3524,10 +3524,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3524
3524
|
value="${this.currentLeadSource}"
|
|
3525
3525
|
placeholder="How did you hear about us?"
|
|
3526
3526
|
.options="${this.leadSources.map(e=>({label:e,value:e}))}"
|
|
3527
|
-
@change=${()=>{var e;(null===(e=this.selectedLeadSource)||void 0===e?void 0:e.value)&&
|
|
3527
|
+
@change=${()=>{var e;(null===(e=this.selectedLeadSource)||void 0===e?void 0:e.value)&&Wo("tourLeadSourceSelected",{leadSource:this.selectedLeadSource.value,buildingId:this.buildingId}),this.requestUpdate()}}
|
|
3528
3528
|
>
|
|
3529
3529
|
</me-select>`:""}
|
|
3530
|
-
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return H``;const e=
|
|
3530
|
+
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return H``;const e=Dd(`${this.selectedTime.datetime}${this.selectedTime.offset}`,this.calendarTimeZone);return this.canceledReschedule?H`
|
|
3531
3531
|
<div id="confirmationMessage">
|
|
3532
3532
|
<svg
|
|
3533
3533
|
aria-hidden="true"
|
|
@@ -3608,7 +3608,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3608
3608
|
${this.renderBody()}
|
|
3609
3609
|
`}renderCenteredCard(e){return H` <div
|
|
3610
3610
|
id="tour-scheduler-inner-form"
|
|
3611
|
-
class="${
|
|
3611
|
+
class="${So()({"tour-scheduler-full":!this.compactDesign&&!Fr(),"tour-scheduler-compact":this.compactDesign&&!Fr(),"tour-scheduler-mobile":Fr()})}"
|
|
3612
3612
|
>
|
|
3613
3613
|
<div id="top-header">
|
|
3614
3614
|
<div></div>
|
|
@@ -3630,14 +3630,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3630
3630
|
<p>Please check back again later</p>
|
|
3631
3631
|
`);if(n)return H` <div
|
|
3632
3632
|
id="tour-scheduler-inner-form"
|
|
3633
|
-
class="${
|
|
3633
|
+
class="${So()({"tour-scheduler-full":!this.compactDesign&&!Fr(),"tour-scheduler-compact":this.compactDesign&&!Fr(),"tour-scheduler-mobile":Fr()})}"
|
|
3634
3634
|
>
|
|
3635
3635
|
<div class="center-tour-not-avail">
|
|
3636
3636
|
<h1>Searching for availabilities...</h1>
|
|
3637
3637
|
<div class="loading-entire-tour-icon">${this.loadingIcon(48)}</div>
|
|
3638
3638
|
</div>
|
|
3639
3639
|
</div>`;if(this.errorGettingAvailabilities)return 123519===this.buildingId?H` <div
|
|
3640
|
-
class="${
|
|
3640
|
+
class="${So()({"tour-scheduler-full":!this.compactDesign&&!Fr(),"tour-scheduler-compact":this.compactDesign&&!Fr(),"tour-scheduler-mobile":Fr()})}"
|
|
3641
3641
|
>
|
|
3642
3642
|
<div id="top-header">
|
|
3643
3643
|
<div></div>
|
|
@@ -3652,7 +3652,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3652
3652
|
</div>
|
|
3653
3653
|
</div>
|
|
3654
3654
|
</div>`:H` <div
|
|
3655
|
-
class="${
|
|
3655
|
+
class="${So()({"tour-scheduler-full":!this.compactDesign&&!Fr(),"tour-scheduler-compact":this.compactDesign&&!Fr(),"tour-scheduler-mobile":Fr()})}"
|
|
3656
3656
|
>
|
|
3657
3657
|
<div id="top-header">
|
|
3658
3658
|
<div></div>
|
|
@@ -3678,9 +3678,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3678
3678
|
</p>
|
|
3679
3679
|
</div>
|
|
3680
3680
|
</div>
|
|
3681
|
-
</div>`;if(
|
|
3681
|
+
</div>`;if(Fr()){const e=this.mobilePages[this.mobilePageIndex];return H`
|
|
3682
3682
|
<div
|
|
3683
|
-
class="${
|
|
3683
|
+
class="${So()("tour-scheduler-mobile",{loading:n})}"
|
|
3684
3684
|
>
|
|
3685
3685
|
<div id="top-header">
|
|
3686
3686
|
<h1 id="scheduleATour">
|
|
@@ -3744,13 +3744,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3744
3744
|
${e.nextButtonText}
|
|
3745
3745
|
</button>`}`}
|
|
3746
3746
|
${this.mobilePageIndex+1===this.mobilePages.length?H`
|
|
3747
|
-
${
|
|
3747
|
+
${ca({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:null===(i=this.emailInput)||void 0===i?void 0:i.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"schedule tour"})}
|
|
3748
3748
|
`:H``}
|
|
3749
3749
|
</div>
|
|
3750
3750
|
</div>
|
|
3751
3751
|
`}return H`
|
|
3752
3752
|
<div
|
|
3753
|
-
class="${
|
|
3753
|
+
class="${So()({"tour-scheduler-full":!this.compactDesign,"tour-scheduler-compact":this.compactDesign,loading:n})}"
|
|
3754
3754
|
@leadsource="${e=>this.selectedLeadSource=e.detail.selectedLeadSource}"
|
|
3755
3755
|
>
|
|
3756
3756
|
<div id="top-header">
|
|
@@ -3776,7 +3776,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3776
3776
|
We'll send a confirmation and any follow-ups to your email
|
|
3777
3777
|
address, please reply to the email to make any appointment
|
|
3778
3778
|
changes.
|
|
3779
|
-
${
|
|
3779
|
+
${ca({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:null===(e=this.emailInput)||void 0===e?void 0:e.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"schedule tour"})}
|
|
3780
3780
|
</div>
|
|
3781
3781
|
|
|
3782
3782
|
<div class="reschedule-buttons-wrapper">
|
|
@@ -3824,7 +3824,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3824
3824
|
your client's email address.`:H`We'll send a confirmation and any follow-ups to
|
|
3825
3825
|
your email address, please reply to the email to make
|
|
3826
3826
|
any appointment changes.`}
|
|
3827
|
-
${
|
|
3827
|
+
${ca({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:null===(t=this.emailInput)||void 0===t?void 0:t.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"schedule tour"})}
|
|
3828
3828
|
</div>
|
|
3829
3829
|
|
|
3830
3830
|
<action-confirm-button
|
|
@@ -3839,7 +3839,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3839
3839
|
</div>
|
|
3840
3840
|
`}
|
|
3841
3841
|
</div>
|
|
3842
|
-
`}};var
|
|
3842
|
+
`}};var Ed;Td.styles=[ha,Me],Ad([pe({attribute:!1})],Td.prototype,"tourTypeOptions",void 0),Ad([pe({attribute:!1})],Td.prototype,"layoutOptions",void 0),Ad([pe({attribute:!0})],Td.prototype,"chatId",void 0),Ad([pe({type:Number})],Td.prototype,"buildingId",void 0),Ad([pe({type:Number})],Td.prototype,"orgId",void 0),Ad([pe({attribute:!1})],Td.prototype,"leadSourceParams",void 0),Ad([pe({attribute:!0})],Td.prototype,"buildingSlug",void 0),Ad([pe({attribute:!0})],Td.prototype,"sgtUrl",void 0),Ad([pe({attribute:!0})],Td.prototype,"selfGuidedToursTypeOffered",void 0),Ad([pe({attribute:!0})],Td.prototype,"selfGuidedTourEnabled",void 0),Ad([pe({attribute:!0})],Td.prototype,"escortedToursLink",void 0),Ad([pe({attribute:!0})],Td.prototype,"escortedToursTypeOffered",void 0),Ad([pe({attribute:!0})],Td.prototype,"virtualToursLink",void 0),Ad([pe({attribute:!0})],Td.prototype,"virtualToursTypeOffered",void 0),Ad([pe({attribute:!0})],Td.prototype,"orgSlug",void 0),Ad([pe({attribute:!0})],Td.prototype,"hasDynamicSchedulingEnabled",void 0),Ad([pe({attribute:!0})],Td.prototype,"bedroomPreferenceRequired",void 0),Ad([pe({attribute:!1})],Td.prototype,"brokerIntakeEnabled",void 0),Ad([pe({attribute:!0})],Td.prototype,"leadSourceClient",void 0),Ad([pe({attribute:!0})],Td.prototype,"leadSourceMultitouchClient",void 0),Ad([pe({attribute:!0})],Td.prototype,"buildingName",void 0),Ad([fe()],Td.prototype,"tourType",void 0),Ad([fe()],Td.prototype,"shouldShowTourType",void 0),Ad([fe()],Td.prototype,"email",void 0),Ad([fe()],Td.prototype,"phoneNumber",void 0),Ad([fe()],Td.prototype,"phoneNumberE164",void 0),Ad([fe()],Td.prototype,"phoneCountry",void 0),Ad([fe()],Td.prototype,"phoneNumberIsValid",void 0),Ad([fe()],Td.prototype,"phoneNumberHasBlurred",void 0),Ad([fe()],Td.prototype,"availabilitiesGroupedByDay",void 0),Ad([fe()],Td.prototype,"calendarTimeZone",void 0),Ad([fe()],Td.prototype,"waitingForAvailabilities",void 0),Ad([fe()],Td.prototype,"selectedDate",void 0),Ad([fe()],Td.prototype,"selectedTime",void 0),Ad([fe()],Td.prototype,"mobilePageIndex",void 0),Ad([fe()],Td.prototype,"isSubmitting",void 0),Ad([fe()],Td.prototype,"tourIsBooked",void 0),Ad([fe()],Td.prototype,"shouldAllowScheduling",void 0),Ad([fe()],Td.prototype,"shouldAllowScheduleLoading",void 0),Ad([fe()],Td.prototype,"promptForReschedule",void 0),Ad([fe()],Td.prototype,"canceledReschedule",void 0),Ad([fe()],Td.prototype,"existingTourBuildingName",void 0),Ad([fe()],Td.prototype,"existingTourStartTime",void 0),Ad([fe()],Td.prototype,"isBrokerReferral",void 0),Ad([fe()],Td.prototype,"brokerFirstName",void 0),Ad([fe()],Td.prototype,"brokerLastName",void 0),Ad([fe()],Td.prototype,"brokerEmail",void 0),Ad([fe()],Td.prototype,"brokerFirmName",void 0),Ad([fe()],Td.prototype,"brokerPhone",void 0),Ad([fe()],Td.prototype,"brokerPhoneE164",void 0),Ad([fe()],Td.prototype,"brokerPhoneCountry",void 0),Ad([fe()],Td.prototype,"brokerPhoneIsValid",void 0),Ad([fe()],Td.prototype,"brokerPhoneHasBlurred",void 0),Ad([pe({attribute:!1})],Td.prototype,"leadSources",void 0),Ad([pe({attribute:!0})],Td.prototype,"orgLegalName",void 0),Ad([pe({attribute:!1})],Td.prototype,"country",void 0),Ad([pe({attribute:!1})],Td.prototype,"buildingState",void 0),Ad([pe({attribute:!0})],Td.prototype,"currentLeadSource",void 0),Ad([pe({attribute:!0})],Td.prototype,"featureFlagShowDropdown",void 0),Ad([pe({attribute:!0})],Td.prototype,"compactDesign",void 0),Ad([pe({attribute:!0})],Td.prototype,"primaryColor",void 0),Ad([pe({attribute:!0})],Td.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Ad([ge(".nameContainer#firstName input")],Td.prototype,"firstNameInput",void 0),Ad([ge(".nameContainer#lastName input")],Td.prototype,"lastNameInput",void 0),Ad([ge(".inputContainer#email input")],Td.prototype,"emailInput",void 0),Ad([ge("me-select#leadSource")],Td.prototype,"selectedLeadSource",void 0),Ad([ge("me-select#layout")],Td.prototype,"selectedLayoutEl",void 0),Ad([ge("me-select#floorplan")],Td.prototype,"selectedFloorplanEl",void 0),Ad([ge("me-select#unit")],Td.prototype,"selectedUnitEl",void 0),Ad([fe()],Td.prototype,"firstNameInputValue",void 0),Ad([fe()],Td.prototype,"lastNameInputValue",void 0),Ad([fe()],Td.prototype,"leadSourceInputValue",void 0),Ad([fe()],Td.prototype,"selectedLayoutValue",void 0),Ad([fe()],Td.prototype,"floorplanOptions",void 0),Ad([fe()],Td.prototype,"selectedFloorplanName",void 0),Ad([fe()],Td.prototype,"selectedUnitValue",void 0),Ad([fe()],Td.prototype,"units",void 0),Ad([fe()],Td.prototype,"allowOccupiedUnitTours",void 0),Ad([fe()],Td.prototype,"errorGettingAvailabilities",void 0),Ad([fe()],Td.prototype,"centralConvoBuildings",void 0),Ad([fe()],Td.prototype,"isGeneralBuilding",void 0),Ad([ge("me-select#building")],Td.prototype,"selectedBuildingEl",void 0),Ad([fe()],Td.prototype,"statusMessage",void 0),Ad([fe()],Td.prototype,"useCoastalCustomTourTypes",void 0),Ad([fe()],Td.prototype,"tourTypeOrder",void 0),Td=Ad([ce("tour-scheduler")],Td),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(Ed||(Ed={}));const _d={[Ed.Guided]:Jr.WithAgent,[Ed.Self]:Jr.SelfGuided,[Ed.Virtual]:Jr.VirtualShowing},Od={[Jr.WithAgent]:Ed.Guided,[Jr.SelfGuided]:Ed.Self,[Jr.VirtualShowing]:Ed.Virtual},Pd={[Ed.Guided]:"In-Person Tour",[Ed.Self]:"VIP Hard Hat Tour"},Id=[Ed.Guided,Ed.Self,Ed.Virtual];const Nd={[Ed.Guided]:"guided tour",[Ed.Self]:"self-guided tour",[Ed.Virtual]:"virtual tour"},Md={[Ed.Guided]:"escorted-tour",[Ed.Self]:"self-guided-tour",[Ed.Virtual]:"live-virtual-tour"};function Dd(e,t){return cs(ro(e),t,"MMM d 'at' h:mmaaa")}function Ld(e){const t=Math.round(e/10);return 0===t?"studio":`${t}br`}const Rd=(e,t,i=!0,n=!1,r,o=.01)=>Lo({params:{org_slug:e,building_slug:t,is_pixel_on_site:i,is_any_webchat_showing:n,extra_data:{webchat_no_show_reason:r}},sampleRate:o}),Bd=async(e,t,i)=>{const n=.01;if(!e)return Rd(i,t,!0,!1,"building_does_not_exist",n),!1;if(!e.launchedDateTime)return Rd(i,t,!0,!1,"building_not_launched",n),!1;if(!e.active)return Rd(i,t,!0,!1,"building_not_active",n),!1;if(!e.webchatScopeConfigured)return Rd(i,t,!0,!1,"building_not_webchat_scope_configured",n),!1;const o=await async function(e){if(!e)return!1;try{return(await r().get(ko(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-leasing-in-maintenance-mode",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(t);return!o||(Rd(i,t,!0,!1,"building_in_maintenance_mode",n),!1)},Ud=p`
|
|
3843
3843
|
* {
|
|
3844
3844
|
font-family: "Helvetica Neue", Arial;
|
|
3845
3845
|
font-size: 14px;
|
|
@@ -4336,7 +4336,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4336
4336
|
width: 164px;
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
|
-
`,
|
|
4339
|
+
`,jd=p`
|
|
4340
4340
|
.type-hey__list {
|
|
4341
4341
|
width: 280px;
|
|
4342
4342
|
height: 300px;
|
|
@@ -4494,7 +4494,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4494
4494
|
.title-bold {
|
|
4495
4495
|
font-weight: 700;
|
|
4496
4496
|
}
|
|
4497
|
-
`,
|
|
4497
|
+
`,Fd=p`
|
|
4498
4498
|
.vertical-pill-list {
|
|
4499
4499
|
position: relative;
|
|
4500
4500
|
display: flex;
|
|
@@ -4567,8 +4567,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4567
4567
|
justify-content: center;
|
|
4568
4568
|
align-items: center;
|
|
4569
4569
|
}
|
|
4570
|
-
`;var
|
|
4571
|
-
class=${
|
|
4570
|
+
`;var Hd=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let zd=class extends de{constructor(){super(...arguments),this.text="Submit",this.isLoading=!1,this.disabled=!1,this.height="initial",this.width="initial",this.focus=()=>{var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===t||t.focus()},this.render=()=>H`<button
|
|
4571
|
+
class=${So()("action-confirm-button",{loading:this.isLoading})}
|
|
4572
4572
|
@click=${this.isLoading?null:this.onClick}
|
|
4573
4573
|
?disabled=${this.disabled}
|
|
4574
4574
|
style=${`height: ${this.height}; width: ${this.width};`}
|
|
@@ -4579,7 +4579,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4579
4579
|
<div></div>
|
|
4580
4580
|
<div></div>
|
|
4581
4581
|
</div>`:this.text}
|
|
4582
|
-
</button>`}};
|
|
4582
|
+
</button>`}};zd.shadowRootOptions={...de.shadowRootOptions,delegatesFocus:!0},zd.styles=[p`
|
|
4583
4583
|
.action-confirm-button {
|
|
4584
4584
|
display: flex;
|
|
4585
4585
|
justify-content: center;
|
|
@@ -4655,7 +4655,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4655
4655
|
transform: rotate(360deg);
|
|
4656
4656
|
}
|
|
4657
4657
|
}
|
|
4658
|
-
`],
|
|
4658
|
+
`],Hd([pe()],zd.prototype,"onClick",void 0),Hd([pe()],zd.prototype,"text",void 0),Hd([pe({attribute:!1})],zd.prototype,"isLoading",void 0),Hd([pe({type:Boolean})],zd.prototype,"disabled",void 0),Hd([pe({type:String})],zd.prototype,"height",void 0),Hd([pe({type:String})],zd.prototype,"width",void 0),zd=Hd([ce("action-confirm-button")],zd);var Gd=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Wd=class extends de{constructor(){super(...arguments),this.height="425px",this.width="326px",this.useRoundedBorders=!0,this.headerText="",this.isMobileSized=Fr(),this.useGradientDesign=!1,this._onWindowResize=()=>this.fitAboveBottom()}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=Hr(e=>{this.isMobileSized=e}),window.addEventListener("resize",this._onWindowResize)}disconnectedCallback(){var e;null===(e=this._cleanupMobileListener)||void 0===e||e.call(this),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}updated(){this.fitAboveBottom()}fitAboveBottom(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("details-window-inner");if(!t)return;const i=t.getBoundingClientRect().bottom,n=getComputedStyle(t),r=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),o=Math.min(window.innerHeight-40,i-16)-r;t.style.maxHeight=i>0?`${Math.max(200,o)}px`:""}render(){return H`
|
|
4659
4659
|
<div
|
|
4660
4660
|
id="details-window-inner"
|
|
4661
4661
|
class="details-window-wrapper"
|
|
@@ -4695,7 +4695,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4695
4695
|
</div>
|
|
4696
4696
|
<slot class="details-window__slot-content"></slot>
|
|
4697
4697
|
</div>
|
|
4698
|
-
`}};
|
|
4698
|
+
`}};Wd.styles=p`
|
|
4699
4699
|
.details-window-wrapper {
|
|
4700
4700
|
background: rgba(255, 255, 255, 0.9);
|
|
4701
4701
|
box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
|
|
@@ -4763,7 +4763,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4763
4763
|
border-radius: 0px 0px 0px 0px;
|
|
4764
4764
|
}
|
|
4765
4765
|
}
|
|
4766
|
-
`,
|
|
4766
|
+
`,Gd([pe({type:String})],Wd.prototype,"height",void 0),Gd([pe({type:String})],Wd.prototype,"width",void 0),Gd([pe({type:Boolean})],Wd.prototype,"useRoundedBorders",void 0),Gd([pe({type:String})],Wd.prototype,"headerText",void 0),Gd([pe({attribute:!1})],Wd.prototype,"onCloseClick",void 0),Gd([fe()],Wd.prototype,"isMobileSized",void 0),Gd([pe({attribute:!0})],Wd.prototype,"useGradientDesign",void 0),Wd=Gd([ce("details-window")],Wd);var qd=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Vd=class extends de{constructor(){super(...arguments),this.trapOverlayTab=e=>{wd(e,this)},this.leadSources=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.buildingName="",this.orgLegalName="",this.country=null,this.buildingState=null,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.featureFlagShowDropdown="",this.brokerIntakeEnabled=!1,this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.message="",this.isBrokerReferral=!1,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerFirmName="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneCountry=null,this.brokerPhoneIsValid=!1,this.hasBrokerPhoneError=!1,this.currentLeadSource="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasBrokerNameError=!1,this.brokerEmailError=null,this.hasSubmittedForm=!1,this.isKnownBroker=!1,this.windowHeight=525,this.hasSubmissionError=!1,this.isSubmitting=!1,this.onChangeFirstName=e=>{e.target&&(this.firstName=e.target.value)},this.onChangeLastName=e=>{e.target&&(this.lastName=e.target.value)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country},this.onChangeBrokerPhone=e=>{this.brokerPhone=e.detail.formattedValue,this.brokerPhoneE164=e.detail.e164,this.brokerPhoneCountry=e.detail.country,this.brokerPhoneIsValid=e.detail.isValid},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.onToggleBrokerReferral=e=>{const t=e.target.checked,i=!(this.brokerFirstName||this.brokerLastName||this.brokerEmail||this.brokerPhone);t&&i?(this.brokerFirstName=this.firstName,this.brokerLastName=this.lastName,this.brokerEmail=this.email,this.brokerPhone=this.phoneNumber,this.brokerPhoneE164=this.phoneNumberE164,this.brokerPhoneCountry=this.phoneCountry,this.brokerPhoneIsValid=!!this.phoneNumberE164,this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.phoneNumberE164=null):t||this.firstName||this.lastName||this.email||this.phoneNumber||(this.firstName=this.brokerFirstName,this.lastName=this.brokerLastName,this.email=this.brokerEmail,this.phoneNumber=this.brokerPhone,this.phoneNumberE164=this.brokerPhoneE164,this.phoneCountry=this.brokerPhoneCountry,this.brokerFirstName="",this.brokerLastName="",this.brokerEmail="",this.brokerPhone="",this.brokerPhoneE164=null,this.brokerPhoneIsValid=!1),this.isBrokerReferral=t,this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasBrokerNameError=!1,this.brokerEmailError=null,this.hasBrokerPhoneError=!1,this.windowHeight=this.baseHeight()+30*this.getNumErrors()},this.onChangeBrokerField=e=>t=>{t.target&&(this[e]=t.target.value)},this.baseHeight=()=>525+(this.brokerIntakeEnabled&&this.isBrokerReferral?143:0),this.brokerReferral=()=>{var e;return this.brokerIntakeEnabled&&this.isBrokerReferral?pa(this.brokerFirstName,this.brokerLastName,this.brokerEmail,this.brokerFirmName,null!==(e=this.brokerPhoneE164)&&void 0!==e?e:""):null},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.hasBrokerNameError=!1,this.brokerEmailError=null,this.hasBrokerPhoneError=!1;const e=this.brokerReferral();e&&(this.hasBrokerNameError=fa(e),this.brokerEmailError=ga(e,this.email),this.hasBrokerPhoneError=!!this.brokerPhone&&!this.brokerPhoneIsValid),this.firstName&&this.lastName||(this.hasNameError=!0),this.email&&Wr(this.email)||(this.hasEmailError=!0),this.phoneNumberE164||(this.hasPhoneNumberError=!0),this.windowHeight=this.baseHeight()+30*this.getNumErrors()},this.onClick=async()=>{var e,t,i,n,r,o;if(this.isSubmitting)return;if(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError||this.hasBrokerNameError||this.brokerEmailError||this.hasBrokerPhoneError)return;const a=this.phoneNumberE164;if(a)try{this.isSubmitting=!0,this.windowHeight=this.baseHeight()+60;const s=this.selectedLeadSource&&this.selectedLeadSource.value?this.selectedLeadSource.value:this.currentLeadSource,{knownBroker:l}=await Qd(this.firstName,this.lastName,this.email,a,this.message,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(s?[s,va(this.orgSlug)]:[va(this.orgSlug)])],null===(e=this.leadSourceClient)||void 0===e?void 0:e.chatId,null===(t=this.leadSourceMultitouchClient)||void 0===t?void 0:t.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(i=this.selectedLeadSource)||void 0===i?void 0:i.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}),this.brokerReferral());null===(n=this.leadSourceClient)||void 0===n||n.checkAndHandleForLogLeadSource({webchatAction:"email-us",stateId:null}),null===(r=this.leadSourceClient)||void 0===r||r.resetLeadSource(),null===(o=this.leadSourceMultitouchClient)||void 0===o||o.resetLeadSourceTouchpoints(),this.isKnownBroker=l,this.hasSubmittedForm=!0,this.isSubmitting=!1,this.windowHeight=this.baseHeight()}catch(e){this.hasSubmissionError=!0,this.isSubmitting=!1,this.windowHeight=this.baseHeight()}else this.hasPhoneNumberError=!0},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError,this.hasBrokerNameError,!!this.brokerEmailError,this.hasBrokerPhoneError].filter(e=>e).length,this.renderBrokerToggle=()=>H`
|
|
4767
4767
|
<label class="email-us__broker-toggle">
|
|
4768
4768
|
<span>Are you a broker or locator?</span>
|
|
4769
4769
|
<input
|
|
@@ -4775,7 +4775,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4775
4775
|
@change=${this.onToggleBrokerReferral}
|
|
4776
4776
|
/>
|
|
4777
4777
|
</label>
|
|
4778
|
-
`,this.renderBrokerSection=()=>{var e;const t=e=>xe({"webchat-input":!0,[e]:!0,"webchat-font__desktop":!
|
|
4778
|
+
`,this.renderBrokerSection=()=>{var e;const t=e=>xe({"webchat-input":!0,[e]:!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()});return H`
|
|
4779
4779
|
${this.isBrokerReferral?H`
|
|
4780
4780
|
<div class="email-us__section-label">Your details</div>
|
|
4781
4781
|
<div class="email-us__name-wrapper">
|
|
@@ -4836,7 +4836,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4836
4836
|
<div class="email-us__vertical-spacer"></div>
|
|
4837
4837
|
<div class="email-us__section-label">Your client</div>
|
|
4838
4838
|
`:""}
|
|
4839
|
-
`},this.render=()=>{var e;return window.customElements.get("details-window")||window.customElements.define("details-window",
|
|
4839
|
+
`},this.render=()=>{var e;return window.customElements.get("details-window")||window.customElements.define("details-window",Wd),window.customElements.get("action-confirm-button")||window.customElements.define("action-confirm-button",zd),this.hasSubmittedForm?H`
|
|
4840
4840
|
<details-window
|
|
4841
4841
|
id="details-window"
|
|
4842
4842
|
headerText=""
|
|
@@ -4879,7 +4879,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4879
4879
|
<div class="email-us__name-wrapper">
|
|
4880
4880
|
<input
|
|
4881
4881
|
type="text"
|
|
4882
|
-
class=${xe({"webchat-input":!0,"email-us__name-input":!0,"webchat-font__desktop":!
|
|
4882
|
+
class=${xe({"webchat-input":!0,"email-us__name-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
4883
4883
|
placeholder=${this.isBrokerReferral?"Client first name":"First name"}
|
|
4884
4884
|
autocomplete=${this.isBrokerReferral?"off":"given-name"}
|
|
4885
4885
|
.value=${this.firstName}
|
|
@@ -4888,7 +4888,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4888
4888
|
<div class="email-us__horizontal-spacer"></div>
|
|
4889
4889
|
<input
|
|
4890
4890
|
type="text"
|
|
4891
|
-
class=${xe({"webchat-input":!0,"email-us__name-input":!0,"webchat-font__desktop":!
|
|
4891
|
+
class=${xe({"webchat-input":!0,"email-us__name-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
4892
4892
|
placeholder=${this.isBrokerReferral?"Client last name":"Last name"}
|
|
4893
4893
|
autocomplete=${this.isBrokerReferral?"off":"family-name"}
|
|
4894
4894
|
.value=${this.lastName}
|
|
@@ -4905,7 +4905,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4905
4905
|
type="email"
|
|
4906
4906
|
placeholder=${this.isBrokerReferral?"Client email":"Email"}
|
|
4907
4907
|
autocomplete=${this.isBrokerReferral?"off":"email"}
|
|
4908
|
-
class=${xe({"webchat-input":!0,"email-us__contact-input":!0,"webchat-font__desktop":!
|
|
4908
|
+
class=${xe({"webchat-input":!0,"email-us__contact-input":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
4909
4909
|
.value=${this.email}
|
|
4910
4910
|
@input=${this.onChangeEmail}
|
|
4911
4911
|
/>
|
|
@@ -4943,7 +4943,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4943
4943
|
<textarea
|
|
4944
4944
|
placeholder="Your message..."
|
|
4945
4945
|
.value=${this.message}
|
|
4946
|
-
class=${xe({"email-us__message-input":!0,"email-us__message-input--compact":this.isBrokerReferral,"webchat-input":!0,"webchat-textarea":!0,"webchat-font__desktop":!
|
|
4946
|
+
class=${xe({"email-us__message-input":!0,"email-us__message-input--compact":this.isBrokerReferral,"webchat-input":!0,"webchat-textarea":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
4947
4947
|
@keyup=${this.onChangeMessage}
|
|
4948
4948
|
></textarea>
|
|
4949
4949
|
${this.hasMessageError?H` <div class="email-us__error-text">Include a message</div> `:""}
|
|
@@ -4959,9 +4959,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4959
4959
|
`:""}
|
|
4960
4960
|
</div>
|
|
4961
4961
|
|
|
4962
|
-
${
|
|
4962
|
+
${ca({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:this.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"send"})}
|
|
4963
4963
|
</details-window>
|
|
4964
|
-
`}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.trapOverlayTab)}disconnectedCallback(){this.removeEventListener("keydown",this.trapOverlayTab),super.disconnectedCallback()}async firstUpdated(){var e;await(null===(e=this.renderRoot.querySelector("details-window"))||void 0===e?void 0:e.updateComplete),this.isConnected&&
|
|
4964
|
+
`}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.trapOverlayTab)}disconnectedCallback(){this.removeEventListener("keydown",this.trapOverlayTab),super.disconnectedCallback()}async firstUpdated(){var e;await(null===(e=this.renderRoot.querySelector("details-window"))||void 0===e?void 0:e.updateComplete),this.isConnected&&vd(this,this.renderRoot.querySelector("#email-us-form"))}showLeadSourceSelect(){return!(this.brokerIntakeEnabled&&this.isBrokerReferral)&&this.leadSources.length>0&&(this.featureFlagShowDropdown===Ao.always||this.featureFlagShowDropdown===Ao.onAttributionFailure&&0===this.currentLeadSource.length)}};Vd.styles=[p`
|
|
4965
4965
|
.email-us__name-input,
|
|
4966
4966
|
.email-us__contact_input,
|
|
4967
4967
|
.email-us_message-input {
|
|
@@ -5102,11 +5102,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5102
5102
|
width: 50%;
|
|
5103
5103
|
}
|
|
5104
5104
|
}
|
|
5105
|
-
`,Me],
|
|
5105
|
+
`,Me],qd([pe({attribute:!1})],Vd.prototype,"leadSources",void 0),qd([pe({attribute:!1})],Vd.prototype,"onCloseClicked",void 0),qd([pe({attribute:!0})],Vd.prototype,"chatId",void 0),qd([pe({attribute:!1})],Vd.prototype,"buildingId",void 0),qd([pe({attribute:!0})],Vd.prototype,"buildingSlug",void 0),qd([pe({attribute:!0})],Vd.prototype,"orgSlug",void 0),qd([pe({attribute:!0})],Vd.prototype,"buildingName",void 0),qd([pe({attribute:!0})],Vd.prototype,"orgLegalName",void 0),qd([pe({attribute:!1})],Vd.prototype,"country",void 0),qd([pe({attribute:!1})],Vd.prototype,"buildingState",void 0),qd([pe({attribute:!0})],Vd.prototype,"leadSourceClient",void 0),qd([pe({attribute:!0})],Vd.prototype,"leadSourceMultitouchClient",void 0),qd([pe({attribute:!0})],Vd.prototype,"featureFlagShowDropdown",void 0),qd([pe({attribute:!1})],Vd.prototype,"brokerIntakeEnabled",void 0),qd([pe()],Vd.prototype,"privatePolicyUrl",void 0),qd([pe()],Vd.prototype,"termsOfServiceUrl",void 0),qd([fe()],Vd.prototype,"firstName",void 0),qd([fe()],Vd.prototype,"lastName",void 0),qd([fe()],Vd.prototype,"email",void 0),qd([fe()],Vd.prototype,"phoneNumber",void 0),qd([fe()],Vd.prototype,"phoneNumberE164",void 0),qd([fe()],Vd.prototype,"phoneCountry",void 0),qd([fe()],Vd.prototype,"message",void 0),qd([fe()],Vd.prototype,"isBrokerReferral",void 0),qd([fe()],Vd.prototype,"brokerFirstName",void 0),qd([fe()],Vd.prototype,"brokerLastName",void 0),qd([fe()],Vd.prototype,"brokerEmail",void 0),qd([fe()],Vd.prototype,"brokerFirmName",void 0),qd([fe()],Vd.prototype,"brokerPhone",void 0),qd([fe()],Vd.prototype,"brokerPhoneE164",void 0),qd([fe()],Vd.prototype,"brokerPhoneCountry",void 0),qd([fe()],Vd.prototype,"brokerPhoneIsValid",void 0),qd([fe()],Vd.prototype,"hasBrokerPhoneError",void 0),qd([ge("me-select#leadSource")],Vd.prototype,"selectedLeadSource",void 0),qd([pe({attribute:!0})],Vd.prototype,"currentLeadSource",void 0),qd([fe()],Vd.prototype,"hasNameError",void 0),qd([fe()],Vd.prototype,"hasEmailError",void 0),qd([fe()],Vd.prototype,"hasPhoneNumberError",void 0),qd([fe()],Vd.prototype,"hasMessageError",void 0),qd([fe()],Vd.prototype,"hasBrokerNameError",void 0),qd([fe()],Vd.prototype,"brokerEmailError",void 0),qd([fe()],Vd.prototype,"hasSubmittedForm",void 0),qd([fe()],Vd.prototype,"isKnownBroker",void 0),qd([fe()],Vd.prototype,"windowHeight",void 0),qd([fe()],Vd.prototype,"hasSubmissionError",void 0),qd([fe()],Vd.prototype,"isSubmitting",void 0),Vd=qd([ce("email-us-window")],Vd);const Qd=async(e,t,i,n,o,a,s,d,u,c,h,p)=>{var f;const g=new URLSearchParams(window.location.search),m={email_address:i,building_id:a,lead_sources:u,first_message:o,first_name:e,last_name:t,phone_number:n,referrer:document.referrer,query_params:Object.fromEntries(g.entries()),conversation_tracking_id:c,tracking_params:l(s),lead_sources_with_timestamps:(null!=h?h:[]).map(e=>Br({...e})),...ma(p)};Wo("emailUsSubmitted",{firstName:e,lastName:t,email:i,phone:n,message:o,originatingSource:u.find(e=>"property-website"!==e)||null,conversationTrackingId:null!=c?c:null,...p?{isBrokerReferral:!0}:{}});return{knownBroker:!0===(null===(f=(await r().post("https://app.meetelise.com/platformApi/state/create/emailMe",m,{headers:{"building-slug":d,"org-slug":s,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})).data)||void 0===f?void 0:f.known_broker)}},Yd=(e="white")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
5106
5106
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.95487 2.54301e-07H7.04513C8.51534 -1.22821e-05 9.67985 -2.22686e-05 10.5912 0.121084C11.5292 0.24572 12.2883 0.508324 12.887 1.10005C13.4857 1.69178 13.7514 2.44211 13.8775 3.36914C14 4.26992 14 5.42089 14 6.874V10.126C14 11.5791 14 12.7301 13.8775 13.6309C13.7514 14.5579 13.4857 15.3082 12.887 15.8999C12.2883 16.4917 11.5292 16.7543 10.5912 16.8789C9.67985 17 8.51534 17 7.04513 17H6.95487C5.48466 17 4.32015 17 3.40878 16.8789C2.47084 16.7543 1.71169 16.4917 1.11299 15.8999C0.514304 15.3082 0.248611 14.5579 0.122508 13.6309C-2.25306e-05 12.7301 -1.24266e-05 11.5791 2.57292e-07 10.126V6.87399C-1.24266e-05 5.42088 -2.25306e-05 4.26992 0.122508 3.36914C0.248611 2.44211 0.514304 1.69178 1.11299 1.10005C1.71169 0.508324 2.47084 0.24572 3.40878 0.121084C4.32015 -2.22686e-05 5.48466 -1.22821e-05 6.95487 2.54301e-07ZM2.85118 1.44157C2.45996 1.55714 2.18378 1.71904 1.96152 1.93871C1.62295 2.27335 1.42002 2.73167 1.31181 3.52718C1.20127 4.33975 1.2 5.41089 1.2 6.9186V10.0814C1.2 11.5891 1.20127 12.6602 1.31181 13.4728C1.42002 14.2683 1.62295 14.7267 1.96152 15.0613C2.30009 15.3959 2.76381 15.5965 3.56868 15.7034C4.39081 15.8127 5.47454 15.814 7 15.814C8.52546 15.814 9.60919 15.8127 10.4313 15.7034C11.2362 15.5965 11.6999 15.3959 12.0385 15.0613C12.377 14.7267 12.58 14.2683 12.6882 13.4728C12.7987 12.6602 12.8 11.5891 12.8 10.0814V6.9186C12.8 5.41089 12.7987 4.33975 12.6882 3.52718C12.58 2.73167 12.377 2.27335 12.0385 1.93871C11.8162 1.71905 11.54 1.55714 11.1488 1.44157C10.6194 2.22728 10.2493 2.77349 9.69896 3.1115C9.58916 3.17894 9.47507 3.23928 9.3574 3.29217C8.76366 3.55903 8.09363 3.55868 7.12834 3.55818C7.08613 3.55816 7.04336 3.55814 7 3.55814C6.95664 3.55814 6.91387 3.55816 6.87166 3.55818C5.90637 3.55868 5.23634 3.55903 4.6426 3.29217C4.52493 3.23928 4.41084 3.17894 4.30104 3.1115C3.75069 2.77349 3.38057 2.22729 2.85118 1.44157ZM4.16103 1.2383C4.51629 1.74715 4.70232 1.96157 4.9344 2.10411C5.00028 2.14457 5.06873 2.18078 5.13933 2.21251C5.46646 2.35954 5.85406 2.37209 7 2.37209C8.14594 2.37209 8.53354 2.35954 8.86066 2.21251C8.93127 2.18078 8.99972 2.14457 9.0656 2.10411C9.29768 1.96157 9.48371 1.74715 9.83897 1.2383C9.10278 1.18681 8.18457 1.18605 7 1.18605C5.81543 1.18605 4.89722 1.18681 4.16103 1.2383ZM4 14.0349C4 13.7074 4.26863 13.4419 4.6 13.4419H9.4C9.73137 13.4419 10 13.7074 10 14.0349C10 14.3624 9.73137 14.6279 9.4 14.6279H4.6C4.26863 14.6279 4 14.3624 4 14.0349Z" fill="${e}"/>
|
|
5107
|
-
</svg>`,
|
|
5107
|
+
</svg>`,Kd={},Xd=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],Zd=async e=>{const t=await(async e=>{if(Kd[e])return Kd[e];const t=`https://app.meetelise.com/platformApi/connectors/talk_js/leasing_office_hours/${e}`,i=await r().get(t);return Kd[e]=i.data,i.data})(e);return Xd.map(e=>{const i=t[e];return i?{dayOfWeek:e,startTime:i.start,endTime:i.end}:e})};var Jd=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let eu=class extends de{constructor(){super(...arguments),this.trapOverlayTab=e=>{wd(e,this)},this.buildingSlug="",this.orgSlug="",this.phoneNumberToCall="",this.phoneNumberToText="",this.buildingId=0,this.buildingName="",this.chatCallUsHeader="",this.hasCallUsEnabled="",this.hasTextUsEnabled="",this.currentLeadSource="",this.orgLegalName="",this.country=null,this.buildingState=null,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.phoneNumberInputRef=Oe(),this.hasSubmittedForm=!1,this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.submittingTextUsOption=!1,this.officeHoursTextInfo=[],this.firstUpdated=async()=>{var e;await(null===(e=this.renderRoot.querySelector("details-window"))||void 0===e?void 0:e.updateComplete),this.isConnected&&vd(this,this.renderRoot.querySelector("#call-us-window__content-wrapper")),this.buildingId&&this.hasCallUsEnabled&&(this.officeHoursTextInfo=await Zd(this.buildingId))},this.getCallLink=e=>{const t=(e.match(/\d+/g)||[]).join(""),i=t.length<11?`1${t}`:t,n=`+${i[0]}-${i.slice(1,4)}-${i.slice(4,7)}-${i.slice(7)}`;return H`<a href="tel:${n}"
|
|
5108
5108
|
>${e}</a
|
|
5109
|
-
>`},this.enforcePhoneFormat=e=>{(e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105})(e)||Vi(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,i,n,r;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await
|
|
5109
|
+
>`},this.enforcePhoneFormat=e=>{(e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105})(e)||Vi(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,i,n,r;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await tu(this.phoneNumberToText,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(this.currentLeadSource?[this.currentLeadSource,va(this.orgSlug)]:[va(this.orgSlug)])],null===(e=this.leadSourceClient)||void 0===e?void 0:e.chatId,null===(t=this.leadSourceMultitouchClient)||void 0===t?void 0:t.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null})),null===(i=this.leadSourceClient)||void 0===i||i.checkAndHandleForLogLeadSource({webchatAction:"text-us",stateId:null}),null===(n=this.leadSourceClient)||void 0===n||n.resetLeadSource(),null===(r=this.leadSourceMultitouchClient)||void 0===r||r.resetLeadSourceTouchpoints(),this.hasSubmittedForm=!0,this.submittingTextUsOption=!1}catch(e){this.submittingTextUsOption=!1,this.hasSubmissionError=!0}},this.onChangePhoneNumber=e=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Vi(e))return;const t=e.target;this.phoneNumberToText=Wi(t.value),this.phoneNumberInputRef.value.value=this.phoneNumberToText},this.renderFormTextUsOption=()=>H` <div class="text-us-wrapper">
|
|
5110
5110
|
<h1 class="text-us-window__header">Send Us a Text</h1>
|
|
5111
5111
|
<div class="text-us-window__input-container">
|
|
5112
5112
|
<input
|
|
@@ -5115,7 +5115,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5115
5115
|
type="text"
|
|
5116
5116
|
placeholder="Enter phone"
|
|
5117
5117
|
inputmode="tel"
|
|
5118
|
-
class=${xe({"webchat-input":!0,"text-us-window__input-container":!0,"webchat-font__desktop":!
|
|
5118
|
+
class=${xe({"webchat-input":!0,"text-us-window__input-container":!0,"webchat-font__desktop":!Fr(),"webchat-font__mobile":Fr()})}
|
|
5119
5119
|
.value=${this.phoneNumberToText}
|
|
5120
5120
|
@keydown=${this.enforcePhoneFormat}
|
|
5121
5121
|
@keyup=${this.onChangePhoneNumber}
|
|
@@ -5135,7 +5135,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5135
5135
|
</div>
|
|
5136
5136
|
|
|
5137
5137
|
<div class="text-us-window__description">
|
|
5138
|
-
${
|
|
5138
|
+
${ra(this.buildingState)?aa("textUs",this.orgLegalName):ta(this.country)?H`By providing your number and clicking send, you consent to
|
|
5139
5139
|
receive recurring commercial electronic messages from or on behalf
|
|
5140
5140
|
of ${this.orgLegalName} at this number. Messages may be AI or
|
|
5141
5141
|
human generated. Msg freq varies. Msg & Data rates may apply. You
|
|
@@ -5143,7 +5143,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5143
5143
|
<a
|
|
5144
5144
|
target="_blank"
|
|
5145
5145
|
rel="noopener noreferrer"
|
|
5146
|
-
href=${
|
|
5146
|
+
href=${ea}
|
|
5147
5147
|
>privacy policy</a
|
|
5148
5148
|
>, including having your number and communications recorded and
|
|
5149
5149
|
used by our service provider to generate responses and improve
|
|
@@ -5233,7 +5233,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5233
5233
|
Contact Our Leasing Team
|
|
5234
5234
|
</h1>
|
|
5235
5235
|
<div class="call-us-window__phone-redirect">
|
|
5236
|
-
${
|
|
5236
|
+
${Yd("black")}
|
|
5237
5237
|
${this.getCallLink(this.phoneNumberToCall)}
|
|
5238
5238
|
</div>
|
|
5239
5239
|
<div class="call-us-window__office-hours-wrapper">
|
|
@@ -5259,7 +5259,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5259
5259
|
</div>`:""}
|
|
5260
5260
|
${this.hasTextUsEnabled?this.hasSubmittedForm?this.renderSubmittedTextUsOption():this.renderFormTextUsOption():""}
|
|
5261
5261
|
</details-window>
|
|
5262
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.trapOverlayTab)}disconnectedCallback(){this.removeEventListener("keydown",this.trapOverlayTab),super.disconnectedCallback()}};
|
|
5262
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.trapOverlayTab)}disconnectedCallback(){this.removeEventListener("keydown",this.trapOverlayTab),super.disconnectedCallback()}};eu.styles=[Me,p`
|
|
5263
5263
|
#call-us-window__content-wrapper {
|
|
5264
5264
|
font-family: "Helvetica Neue", Arial;
|
|
5265
5265
|
font-style: normal;
|
|
@@ -5364,14 +5364,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5364
5364
|
.text-us-window__error {
|
|
5365
5365
|
color: rgb(255, 49, 3);
|
|
5366
5366
|
}
|
|
5367
|
-
`],
|
|
5367
|
+
`],Jd([pe({attribute:!0})],eu.prototype,"buildingSlug",void 0),Jd([pe({attribute:!0})],eu.prototype,"orgSlug",void 0),Jd([pe({attribute:!1})],eu.prototype,"onCloseClicked",void 0),Jd([pe()],eu.prototype,"phoneNumberToCall",void 0),Jd([pe()],eu.prototype,"phoneNumberToText",void 0),Jd([pe({attribute:!1})],eu.prototype,"buildingId",void 0),Jd([pe({attribute:!1})],eu.prototype,"buildingName",void 0),Jd([pe({attribute:!0})],eu.prototype,"chatCallUsHeader",void 0),Jd([pe({attribute:!0})],eu.prototype,"hasCallUsEnabled",void 0),Jd([pe({attribute:!0})],eu.prototype,"hasTextUsEnabled",void 0),Jd([pe({attribute:!0})],eu.prototype,"currentLeadSource",void 0),Jd([pe({attribute:!0})],eu.prototype,"orgLegalName",void 0),Jd([pe({attribute:!1})],eu.prototype,"country",void 0),Jd([pe({attribute:!1})],eu.prototype,"buildingState",void 0),Jd([pe({attribute:!0})],eu.prototype,"leadSourceClient",void 0),Jd([pe({attribute:!0})],eu.prototype,"leadSourceMultitouchClient",void 0),Jd([fe()],eu.prototype,"hasSubmittedForm",void 0),Jd([fe()],eu.prototype,"hasPhoneNumberError",void 0),Jd([fe()],eu.prototype,"hasSubmissionError",void 0),Jd([fe()],eu.prototype,"submittingTextUsOption",void 0),Jd([pe({attribute:!1})],eu.prototype,"officeHoursTextInfo",void 0),eu=Jd([ce("call-us-window")],eu);const tu=async(e,t,i,n,o,a,s)=>{const d="+1"+e.replace("(","").replace(")","").replace(" ","").replace("-",""),u=new URLSearchParams(window.location.search),c={building_id:t,lead_sources:o,phone_number:d,referrer:document.referrer,query_params:Object.fromEntries(u.entries()),conversation_tracking_id:a,tracking_params:l(i),lead_sources_with_timestamps:(null!=s?s:[]).map(e=>Br({...e}))};Wo("textUsSubmitted",{phone:d,originatingSource:o.find(e=>"property-website"!==e)||null,conversationTrackingId:null!=a?a:null}),await r().post("https://app.meetelise.com/platformApi/state/create/textMe",c,{headers:{"building-slug":n,"org-slug":i,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})};var iu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let nu=class extends de{constructor(){super(...arguments),this.open=!1,this.inline=!1,this.fit=!1,this.placement=null,this.onDocumentClick=e=>{!this.open||this.inline||e.composedPath().includes(this)||this.requestClose()},this.onFocusout=e=>{const t=e.relatedTarget;this.open&&!this.inline&&t instanceof Node&&!this.contains(t)&&this.requestClose()},this.onKeydown=e=>{var t;this.open&&"Escape"===e.key&&!e.isComposing&&(e.preventDefault(),e.stopPropagation(),this.requestClose(),null===(t=this.querySelector('[slot="trigger"]'))||void 0===t||t.focus())}}opening(e){return this.open&&(e.has("open")||e.has("inline"))}willUpdate(e){this.opening(e)&&(this.placement=null)}updated(e){this.opening(e)&&this.fit&&!this.inline&&requestAnimationFrame(()=>this.place())}place(){const e=this.renderRoot.querySelector(".panel");if(!this.open||!e)return;const t=(e=>{const t=e=>{var t,i;return null!==(i=null!==(t=e.assignedSlot)&&void 0!==t?t:e.parentElement)&&void 0!==i?i:e.getRootNode().host||null};for(let i=t(e);i;i=t(i)){const{overflowX:e,overflowY:t}=getComputedStyle(i);if("visible"!==e||"visible"!==t)return i.getBoundingClientRect()}return{top:0,right:innerWidth,bottom:innerHeight,left:0}})(this),i=this.getBoundingClientRect(),n=e.getBoundingClientRect(),r=n.top-i.bottom,o=t.bottom-i.bottom,a=i.top-t.top,s=r+n.height,l=o<s&&a>=s,d=n.right-(t.right-8),u=Math.max(0,Math.min(d,n.left-t.left-8));this.placement={above:l,shift:u}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.onDocumentClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick),this.removeEventListener("keydown",this.onKeydown),this.removeEventListener("focusout",this.onFocusout),super.disconnectedCallback()}requestClose(){this.dispatchEvent(new CustomEvent("popover-close"))}render(){var e,t;const i=this.fit&&!this.inline;return H`<slot name="trigger"></slot>
|
|
5368
5368
|
<div
|
|
5369
5369
|
class=${xe({panel:!0,measuring:i&&!this.placement,above:i&&!!(null===(e=this.placement)||void 0===e?void 0:e.above)})}
|
|
5370
5370
|
style=${Ki({left:i&&(null===(t=this.placement)||void 0===t?void 0:t.shift)?-this.placement.shift+"px":void 0})}
|
|
5371
5371
|
?hidden=${!this.open}
|
|
5372
5372
|
>
|
|
5373
5373
|
<slot></slot>
|
|
5374
|
-
</div>`}};
|
|
5374
|
+
</div>`}};nu.styles=p`
|
|
5375
5375
|
:host {
|
|
5376
5376
|
display: inline-block;
|
|
5377
5377
|
position: relative;
|
|
@@ -5423,7 +5423,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5423
5423
|
[hidden] {
|
|
5424
5424
|
display: none;
|
|
5425
5425
|
}
|
|
5426
|
-
`,
|
|
5426
|
+
`,iu([pe({type:Boolean,reflect:!0})],nu.prototype,"open",void 0),iu([pe({type:Boolean,reflect:!0})],nu.prototype,"inline",void 0),iu([pe({type:Boolean})],nu.prototype,"fit",void 0),iu([fe()],nu.prototype,"placement",void 0),nu=iu([ce("scheduler-popover")],nu);const ru=p`
|
|
5427
5427
|
:host {
|
|
5428
5428
|
--tsv2-font: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
5429
5429
|
"Helvetica Neue", Arial, sans-serif;
|
|
@@ -5443,7 +5443,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5443
5443
|
--tsv2-tint-line: color-mix(in srgb, var(--tsv2-accent) 22%, #ffffff);
|
|
5444
5444
|
--tsv2-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.13);
|
|
5445
5445
|
}
|
|
5446
|
-
`,
|
|
5446
|
+
`,ou=p`
|
|
5447
5447
|
* {
|
|
5448
5448
|
box-sizing: border-box;
|
|
5449
5449
|
}
|
|
@@ -5758,7 +5758,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5758
5758
|
outline: 2px solid var(--tsv2-accent);
|
|
5759
5759
|
outline-offset: 2px;
|
|
5760
5760
|
}
|
|
5761
|
-
`,
|
|
5761
|
+
`,au=(e,t,{stroke:i="currentColor",strokeWidth:n=1}={})=>z`<svg
|
|
5762
5762
|
aria-hidden="true"
|
|
5763
5763
|
focusable="false"
|
|
5764
5764
|
width=${e}
|
|
@@ -5771,16 +5771,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5771
5771
|
stroke-linejoin="round"
|
|
5772
5772
|
>
|
|
5773
5773
|
${t.map(e=>z`<path vector-effect="non-scaling-stroke" d=${e}></path>`)}
|
|
5774
|
-
</svg>`,
|
|
5774
|
+
</svg>`,su=(e,t)=>z`<svg
|
|
5775
5775
|
aria-hidden="true"
|
|
5776
5776
|
focusable="false"
|
|
5777
5777
|
width=${e}
|
|
5778
5778
|
height=${e}
|
|
5779
5779
|
viewBox="0 0 24 24"
|
|
5780
5780
|
fill="currentColor"
|
|
5781
|
-
><path d=${t}></path></svg>`,
|
|
5781
|
+
><path d=${t}></path></svg>`,lu=(e=20,t=1)=>au(e,["M8 9l5 5v7h-5v-4m0 4h-5v-7l5 -5m1 1v-6a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1v17h-8","M13 7l0 .01","M17 7l0 .01","M17 11l0 .01","M17 15l0 .01"],{strokeWidth:t}),du=(e=14)=>au(e,["M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z","M16 3v4M8 3v4M4 11h16"]),uu=(e=16)=>au(e,["M5 5l14 14M19 5L5 19"]),cu=(e=14)=>au(e,["M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4","M13.5 6.5l4 4"]),hu=(e=32,t=1.5)=>au(e,["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0","M9 12l2 2l4 -4"],{stroke:"#10B981",strokeWidth:t}),pu=e=>({building_id:e.building_id,name:e.name,address:e.address,timezone:e.timezone,bedrooms:e.bedrooms}),fu=e=>e?[e.line1,e.city,e.state].filter(Boolean).join(", "):"";class gu extends Error{constructor(e,t,i){super(i),this.status=e,this.code=t,this.name="TourApiError"}}const mu=({orgSlug:e,buildingSlug:t,getSessionToken:i,host:n="https://app.meetelise.com"})=>{const o=`${n}/platformApi/webchat`,a=()=>{var n;return{"X-Session-Token":null!==(n=i())&&void 0!==n?n:"","org-slug":e,"building-slug":t}},s=async e=>{try{return(await e()).data}catch(e){throw(e=>{var t,i,n,r,o;const a=e,s=null===(i=null===(t=a.response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.error;return new gu(null!==(r=null===(n=a.response)||void 0===n?void 0:n.status)&&void 0!==r?r:0,null!==(o=null==s?void 0:s.code)&&void 0!==o?o:null,(null==s?void 0:s.message)||"Something went wrong. Please try again.")})(e)}};return{getCommunities:e=>s(()=>r().get(`${o}/tour-communities?${(e=>{const t=new URLSearchParams;return e.bedrooms.forEach(e=>t.append("bedrooms",String(e))),e.moveIn&&t.set("move_in",e.moveIn),null!==e.maxBudget&&t.set("max_budget",String(e.maxBudget)),e.extend&&(t.set("available_after",e.extend.availableAfter),t.set("tour_type",e.extend.tourType),t.set("near_building_id",String(e.extend.nearBuildingId)),e.extend.excludeBuildingIds.forEach(e=>t.append("exclude_building_ids",String(e)))),t})(e)}`,{headers:a()})),plan:e=>s(()=>r().post(`${o}/tour-itineraries/plan`,e,{headers:a()})),book:(e,t)=>s(()=>r().post(`${o}/tour-itineraries`,e,{headers:{...a(),"Idempotency-Key":t}}))}},bu=e=>e.slice(0,10),yu=e=>e.slice(11,16),vu=e=>{const[t,i]=e.split(":");return{hour:parseInt(t,10),minute:i}},wu=e=>e<12?"am":"pm",xu=(e,t)=>`${e%12==0?12:e%12}:${t}`,Cu=e=>{const{hour:t,minute:i}=vu(e);return`${xu(t,i)}${wu(t)}`},$u=e=>Cu(yu(e)),Su=(e,t)=>{const i=vu(yu(e)),n=vu(yu(t)),r=e=>wu(e).toUpperCase();return`${wu(i.hour)===wu(n.hour)?xu(i.hour,i.minute):`${xu(i.hour,i.minute)} ${r(i.hour)}`}–${xu(n.hour,n.minute)} ${r(n.hour)}`},ku=e=>{const[t,i,n]=e.split("-").map(e=>parseInt(e,10));return new Date(t,i-1,n)},Au=e=>nr(ku(e),"EEE, MMM d"),Tu=e=>nr(ku(e),"MMM d"),Eu=e=>nr(ku(e),"EEE, MMM d, yyyy"),_u=(e,t)=>[null!==e?`${e.toFixed(1)} mi`:null,null!=t?`${t} min drive`:null].filter(Boolean).join(" · "),Ou=e=>nr(e,"yyyy-MM-dd"),Pu={"escorted-tour":{heading:"Escorted Tour",subtitle:"With an agent",icon:Sa},"live-virtual-tour":{heading:"Virtual Tour",subtitle:"Over video",icon:Ca},"self-guided-tour":{heading:"Self-Guided Tour",subtitle:"On your own",icon:$a}},Iu=["escorted-tour","live-virtual-tour","self-guided-tour"];var Nu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Mu={bedrooms:[],moveIn:null,maxBudget:null},Du=[{value:0,label:"Studio"},{value:1,label:"1 bed"},{value:2,label:"2 bed"},{value:3,label:"3+ bed"}],Lu=["bedrooms","moveIn","budget"];let Ru=class extends de{constructor(){super(...arguments),this.variant="select",this.load=null,this.initial=null,this.selected=[],this.filters=Mu,this.openFilter=null,this.communities=[],this.loading=!1,this.error=null,this.mobile=Fr(),this.requestId=0}connectedCallback(){super.connectedCallback(),this.cleanupMobileListener=Hr(e=>this.mobile=e)}disconnectedCallback(){var e;null===(e=this.cleanupMobileListener)||void 0===e||e.call(this),super.disconnectedCallback()}get initialPage(){return Lu.some(e=>this.isFilterActive(e))?null:this.initial}willUpdate(){const e=this.initialPage;!this.hasUpdated&&e&&(this.communities=e.communities)}firstUpdated(){this.initialPage||this.reload()}async reload(){if(!this.load)return;const e=++this.requestId;this.loading=!0,this.error=null;try{const t=await this.load(this.filters);if(e!==this.requestId)return;this.communities=t.communities}catch(t){if(e!==this.requestId)return;this.error=t.message}finally{e===this.requestId&&(this.loading=!1)}}setFilters(e){this.filters={...this.filters,...e},this.dispatchEvent(new CustomEvent("filters-change",{detail:{filters:this.filters},bubbles:!0,composed:!0})),this.reload()}isSelected(e){return this.selected.some(t=>t.building_id===e)}toggle(e){e.tourable&&this.emitSelection([pu(e)])}emitSelection(e){this.dispatchEvent(new CustomEvent("selection-change",{detail:{communities:e},bubbles:!0,composed:!0}))}heading(){return"extend"===this.variant?"Add Nearby Communities to Your Tour Itinerary":"Select a Community to Tour"}isFilterActive(e){const t=this.filters;return"bedrooms"===e?t.bedrooms.length>0:"moveIn"===e?!!t.moveIn:null!==t.maxBudget}filterLabel(e){const t=this.filters;return"bedrooms"===e?t.bedrooms.length?t.bedrooms.map(e=>{var t,i;return null!==(i=null===(t=Du.find(t=>t.value===e))||void 0===t?void 0:t.label)&&void 0!==i?i:`${e} bed`}).join(", "):"Bedrooms":"moveIn"===e?t.moveIn?`Move-in ${Au(t.moveIn)}`:"Move-In Date":null!==t.maxBudget?`Up to ${Vr(t.maxBudget)}`:"Budget"}renderFilterPanel(e){var t;const i=this.filters;return"bedrooms"===e?H`<span class="field-label" id="bedrooms-label">Bedrooms</span>
|
|
5782
5782
|
<div class="chips" role="group" aria-labelledby="bedrooms-label">
|
|
5783
|
-
${
|
|
5783
|
+
${Du.map(e=>H`<button
|
|
5784
5784
|
class=${xe({chip:!0,selected:i.bedrooms.includes(e.value)})}
|
|
5785
5785
|
aria-pressed=${String(i.bedrooms.includes(e.value))}
|
|
5786
5786
|
@click=${()=>this.setFilters({bedrooms:i.bedrooms.includes(e.value)?i.bedrooms.filter(t=>t!==e.value):[...i.bedrooms,e.value].sort()})}
|
|
@@ -5798,7 +5798,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5798
5798
|
@change=${e=>{this.closeCommittedFilter("moveIn"),this.setFilters({moveIn:e.target.value||null})}}
|
|
5799
5799
|
/>
|
|
5800
5800
|
<span class="date-placeholder" aria-hidden="true">Select a date</span>
|
|
5801
|
-
${
|
|
5801
|
+
${du(14)}
|
|
5802
5802
|
</div>
|
|
5803
5803
|
</div>`:H`<div class="field date-field">
|
|
5804
5804
|
<label class="field-label" for="max-budget">Max monthly rent ($)</label>
|
|
@@ -5813,7 +5813,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5813
5813
|
@change=${e=>{const t=parseInt(e.target.value,10);this.closeCommittedFilter("budget"),this.setFilters({maxBudget:Number.isFinite(t)&&t>0?t:null})}}
|
|
5814
5814
|
/>
|
|
5815
5815
|
</div>`}async closeCommittedFilter(e){var t,i;this.openFilter=null,await this.updateComplete,await new Promise(e=>setTimeout(e)),document.activeElement&&document.activeElement!==document.body||null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(`[aria-controls="filter-${e}"]`))||void 0===i||i.focus()}renderFilters(){const e=this.openFilter;return H`<div class="picker-toolbar" role="group" aria-label="Filters">
|
|
5816
|
-
${
|
|
5816
|
+
${Lu.map(t=>H`<scheduler-popover
|
|
5817
5817
|
?open=${e===t}
|
|
5818
5818
|
?inline=${this.mobile}
|
|
5819
5819
|
@popover-close=${()=>{this.openFilter===t&&(this.openFilter=null)}}
|
|
@@ -5831,13 +5831,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5831
5831
|
${e===t?this.renderFilterPanel(t):""}
|
|
5832
5832
|
</div>
|
|
5833
5833
|
</scheduler-popover>`)}
|
|
5834
|
-
${
|
|
5834
|
+
${Lu.some(e=>this.isFilterActive(e))?H`<button
|
|
5835
5835
|
class="clear-filters"
|
|
5836
|
-
@click=${()=>{this.openFilter=null,this.setFilters(
|
|
5836
|
+
@click=${()=>{this.openFilter=null,this.setFilters(Mu)}}
|
|
5837
5837
|
>
|
|
5838
5838
|
Clear all
|
|
5839
5839
|
</button>`:""}
|
|
5840
|
-
</div>`}renderCard(e){var t;const i=this.isSelected(e.building_id),n=e.next_available,r=!!n&&"extend"===this.variant,o="extend"===this.variant?e.distance_mi:null,a=e.price_from?`${0===e.price_from.bedrooms?"Studio":`${e.price_from.bedrooms} BR`} from ${
|
|
5840
|
+
</div>`}renderCard(e){var t;const i=this.isSelected(e.building_id),n=e.next_available,r=!!n&&"extend"===this.variant,o="extend"===this.variant?e.distance_mi:null,a=e.price_from?`${0===e.price_from.bedrooms?"Studio":`${e.price_from.bedrooms} BR`} from ${Vr(e.price_from.amount)}`:"";return H`<li>
|
|
5841
5841
|
<button
|
|
5842
5842
|
class=${xe({"floorplan-image-card":!0,card:!0,selected:i,disabled:!e.tourable})}
|
|
5843
5843
|
aria-pressed=${String(i)}
|
|
@@ -5850,10 +5850,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5850
5850
|
<span class="card-body">
|
|
5851
5851
|
${e.best_match||a||null!==o?H`<span class="card-tags">
|
|
5852
5852
|
${e.best_match?H`<span class="tag"
|
|
5853
|
-
>${((e=12)=>
|
|
5853
|
+
>${((e=12)=>su(e,"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"))(12)} Best Match</span
|
|
5854
5854
|
>`:""}
|
|
5855
5855
|
${a?H`<span class="tag"
|
|
5856
|
-
>${((e=14)=>
|
|
5856
|
+
>${((e=14)=>su(e,"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"))(14)} ${a}</span
|
|
5857
5857
|
>`:""}
|
|
5858
5858
|
${null!==o?H`<span class="distance"
|
|
5859
5859
|
>${o.toFixed(1)} mi</span
|
|
@@ -5861,12 +5861,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5861
5861
|
</span>`:""}
|
|
5862
5862
|
<span class="card-name">
|
|
5863
5863
|
<span class="card-title">${e.name}</span>
|
|
5864
|
-
<span class="subtitle">${
|
|
5864
|
+
<span class="subtitle">${fu(e.address)}</span>
|
|
5865
5865
|
</span>
|
|
5866
5866
|
${e.tourable?n?H`<span class="next-available"
|
|
5867
5867
|
><span
|
|
5868
5868
|
>Next available:
|
|
5869
|
-
${
|
|
5869
|
+
${Au(n.date)}${"extend"===this.variant?` · ${Cu(n.time)}`:""}</span
|
|
5870
5870
|
>${r?H`<span class="same-day">Same Day</span>`:""}</span
|
|
5871
5871
|
>`:"":H`<span class="subtitle">${null!==(t=e.unavailable_reason)&&void 0!==t?t:""}</span>`}
|
|
5872
5872
|
</span>
|
|
@@ -5890,7 +5890,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5890
5890
|
class=${xe({extend:"extend"===this.variant,phone:this.mobile})}
|
|
5891
5891
|
>
|
|
5892
5892
|
<div class="picker-heading">
|
|
5893
|
-
${"extend"===this.variant?"":
|
|
5893
|
+
${"extend"===this.variant?"":lu(32,1.5)}
|
|
5894
5894
|
<div class="heading-row">
|
|
5895
5895
|
<h2>${this.heading()}</h2>
|
|
5896
5896
|
<slot name="heading-action"></slot>
|
|
@@ -5901,7 +5901,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5901
5901
|
${this.loading?"Loading communities":`${this.communities.length} communities`}
|
|
5902
5902
|
</span>
|
|
5903
5903
|
${this.renderList()}
|
|
5904
|
-
</div>`}};
|
|
5904
|
+
</div>`}};Ru.styles=[ou,p`
|
|
5905
5905
|
:host {
|
|
5906
5906
|
display: block;
|
|
5907
5907
|
}
|
|
@@ -6133,7 +6133,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6133
6133
|
.explanation {
|
|
6134
6134
|
text-align: center;
|
|
6135
6135
|
}
|
|
6136
|
-
`],
|
|
6136
|
+
`],Nu([pe({type:String})],Ru.prototype,"variant",void 0),Nu([pe({attribute:!1})],Ru.prototype,"load",void 0),Nu([pe({attribute:!1})],Ru.prototype,"initial",void 0),Nu([pe({attribute:!1})],Ru.prototype,"selected",void 0),Nu([pe({attribute:!1})],Ru.prototype,"filters",void 0),Nu([fe()],Ru.prototype,"openFilter",void 0),Nu([fe()],Ru.prototype,"communities",void 0),Nu([fe()],Ru.prototype,"loading",void 0),Nu([fe()],Ru.prototype,"error",void 0),Nu([fe()],Ru.prototype,"mobile",void 0),Ru=Nu([ce("community-picker")],Ru);const Bu=p`
|
|
6137
6137
|
/* The itinerary: numbered stop cards joined by the leg between them. */
|
|
6138
6138
|
.stops {
|
|
6139
6139
|
list-style: none;
|
|
@@ -6194,19 +6194,19 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6194
6194
|
content: "";
|
|
6195
6195
|
min-height: 20px;
|
|
6196
6196
|
}
|
|
6197
|
-
`;var
|
|
6197
|
+
`;var Uu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const ju={"escorted-tour":(e=20)=>au(e,["M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0","M16 19h6","M19 16v6","M6 21v-2a4 4 0 0 1 4 -4h4"]),"live-virtual-tour":(e=20)=>au(e,["M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z","M3 8a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -8"]),"self-guided-tour":(e=20)=>au(e,["M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0","M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z"])},Fu=e=>({displayTime:$u(e),displayTimeZoned:$u(e),dateWithTimeZoneOffset:{datetime:e.slice(0,19),offset:e.slice(19)}}),Hu=(e,t,i)=>{e.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0,composed:!0}))};let zu=class extends de{constructor(){super(...arguments),this.stops=[],this.communities=new Map,this.problems=[],this.tourTypes=[],this.tourType=null,this.bookableDates=[],this.date=null,this.single=!1,this.canEditCommunities=!1,this.stopsOnly=!1,this.canAddStop=!1,this.loading=!1,this.planned=!1,this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.editingTimeFor=null,this.stopDateOpen=!1,this.dateOpen=!1,this.mobile=Fr(),this.dragIndex=null,this.dropIndex=null,this.refocusGripOf=null}get offersKnown(){return this.planned&&!this.loading}connectedCallback(){super.connectedCallback(),this.cleanupMobileListener=Hr(e=>this.mobile=e)}disconnectedCallback(){var e;null===(e=this.cleanupMobileListener)||void 0===e||e.call(this),super.disconnectedCallback()}get selectedTypeOpensLink(){var e;return!!(null===(e=this.tourTypes.find(e=>e.id===this.tourType))||void 0===e?void 0:e.opensLink)}newStopIds(){return this.stops.filter(e=>!e.fixed).map(e=>e.building_id)}name(e){var t,i;return null!==(i=null===(t=this.communities.get(e))||void 0===t?void 0:t.name)&&void 0!==i?i:""}move(e,t){const i=this.newStopIds();if(t<0||t>=i.length||e===t)return;const[n]=i.splice(e,1);i.splice(t,0,n),Hu(this,"stops-reorder",{buildingIds:i})}newIndexAt(e){var t;const i=[...this.renderRoot.querySelectorAll(".stop-item[data-index]")],n=null!==(t=i.find(t=>e<t.getBoundingClientRect().bottom))&&void 0!==t?t:i[i.length-1];return n?Number(n.dataset.index):null}updated(e){var t;e.has("stops")&&null!==this.refocusGripOf&&(null===(t=this.renderRoot.querySelector(`.grip[data-building-id="${this.refocusGripOf}"]`))||void 0===t||t.focus(),this.refocusGripOf=null)}endDrag(e){e&&null!==this.dragIndex&&null!==this.dropIndex&&this.move(this.dragIndex,this.dropIndex),this.dragIndex=null,this.dropIndex=null}renderCommunity(){var e,t,i;if(!this.single)return"";const n=null===(e=this.stops.find(e=>!e.fixed))||void 0===e?void 0:e.building_id,r=void 0===n?void 0:this.communities.get(n);return H`<h2 class="section-heading">Community</h2>
|
|
6198
6198
|
<div class="card community">
|
|
6199
|
-
<span class="icon-tile">${
|
|
6199
|
+
<span class="icon-tile">${lu(20)}</span>
|
|
6200
6200
|
<div class="card-text">
|
|
6201
6201
|
<p class="title">${null!==(t=null==r?void 0:r.name)&&void 0!==t?t:""}</p>
|
|
6202
|
-
<p class="subtitle">${
|
|
6202
|
+
<p class="subtitle">${fu(null!==(i=null==r?void 0:r.address)&&void 0!==i?i:null)}</p>
|
|
6203
6203
|
</div>
|
|
6204
6204
|
${this.canEditCommunities?H`<button
|
|
6205
6205
|
class="icon-button change-community"
|
|
6206
6206
|
aria-label="Change community"
|
|
6207
|
-
@click=${()=>
|
|
6207
|
+
@click=${()=>Hu(this,"edit-communities",{})}
|
|
6208
6208
|
>
|
|
6209
|
-
${
|
|
6209
|
+
${cu(14)}
|
|
6210
6210
|
</button>`:""}
|
|
6211
6211
|
</div>`}renderTourTypes(){return H`<h2 id="tour-type-heading" class="section-heading">
|
|
6212
6212
|
Tour Type
|
|
@@ -6216,10 +6216,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6216
6216
|
role="radiogroup"
|
|
6217
6217
|
aria-labelledby="tour-type-heading"
|
|
6218
6218
|
>
|
|
6219
|
-
${this.tourTypes.map(({id:e})=>{const t=e===this.tourType,i=()=>
|
|
6219
|
+
${this.tourTypes.map(({id:e})=>{const t=e===this.tourType,i=()=>Hu(this,"tour-type-change",{tourType:e});return H`<tour-type-option
|
|
6220
6220
|
outlined
|
|
6221
|
-
heading=${
|
|
6222
|
-
subtitle=${
|
|
6221
|
+
heading=${Pu[e].heading}
|
|
6222
|
+
subtitle=${Pu[e].subtitle}
|
|
6223
6223
|
.primaryColor=${this.primaryColor}
|
|
6224
6224
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
6225
6225
|
?selected=${t}
|
|
@@ -6227,19 +6227,19 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6227
6227
|
@keydown=${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),i())}}
|
|
6228
6228
|
>
|
|
6229
6229
|
<span slot="icon" class="tour-type-icon"
|
|
6230
|
-
>${
|
|
6230
|
+
>${ju[e](20)}</span
|
|
6231
6231
|
>
|
|
6232
6232
|
</tour-type-option>`})}
|
|
6233
6233
|
</div>
|
|
6234
6234
|
${0===this.tourTypes.length&&this.offersKnown?H`<p class="explanation">
|
|
6235
6235
|
No tour type is offered at every community you picked.
|
|
6236
|
-
</p>`:""}`}renderDatePicker(e=this.bookableDates,t=this.date,i=e=>
|
|
6236
|
+
</p>`:""}`}renderDatePicker(e=this.bookableDates,t=this.date,i=e=>Hu(this,"date-change",{date:e})){const n=null!=t?t:e[0];return H`<date-picker
|
|
6237
6237
|
outlined
|
|
6238
6238
|
.shownMonth=${null==n?void 0:n.slice(0,7)}
|
|
6239
|
-
.availabilities=${Object.fromEntries(e.map(e=>[e,[
|
|
6240
|
-
.defaultDate=${t?
|
|
6241
|
-
@change=${e=>{const n=e.target.selectedDate;n&&
|
|
6242
|
-
></date-picker>`}closeOnDay(e,t){return i=>{var n;const r=i.composedPath().find(e=>e instanceof HTMLButtonElement&&e.matches("button.dayNumber:not(:disabled)"));r&&(e(),null===(n=this.renderRoot.querySelector(t))||void 0===n||n.focus())}}renderStopDateField(e){const t=e.building_id,i=
|
|
6239
|
+
.availabilities=${Object.fromEntries(e.map(e=>[e,[ku(e)]]))}
|
|
6240
|
+
.defaultDate=${t?ku(t):void 0}
|
|
6241
|
+
@change=${e=>{const n=e.target.selectedDate;n&&Ou(n)!==t&&i(Ou(n))}}
|
|
6242
|
+
></date-picker>`}closeOnDay(e,t){return i=>{var n;const r=i.composedPath().find(e=>e instanceof HTMLButtonElement&&e.matches("button.dayNumber:not(:disabled)"));r&&(e(),null===(n=this.renderRoot.querySelector(t))||void 0===n||n.focus())}}renderStopDateField(e){const t=e.building_id,i=bu(e.start),n=Eu(i);return H`<p class="field-label" aria-hidden="true">Date</p>
|
|
6243
6243
|
<scheduler-popover
|
|
6244
6244
|
class="stop-date-popover"
|
|
6245
6245
|
?open=${this.stopDateOpen}
|
|
@@ -6256,14 +6256,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6256
6256
|
@click=${()=>this.stopDateOpen=!this.stopDateOpen}
|
|
6257
6257
|
>
|
|
6258
6258
|
<span class="value">${n}</span>
|
|
6259
|
-
${
|
|
6259
|
+
${du(14)}
|
|
6260
6260
|
</button>
|
|
6261
6261
|
<div
|
|
6262
6262
|
id=${`stop-date-panel-${t}`}
|
|
6263
6263
|
class="stop-calendar-panel"
|
|
6264
6264
|
@click=${this.closeOnDay(()=>this.stopDateOpen=!1,`#stop-date-trigger-${t}`)}
|
|
6265
6265
|
>
|
|
6266
|
-
${this.stopDateOpen?this.renderDatePicker(e.dates,i,e=>
|
|
6266
|
+
${this.stopDateOpen?this.renderDatePicker(e.dates,i,e=>Hu(this,"stop-date-change",{buildingId:t,date:e})):""}
|
|
6267
6267
|
</div>
|
|
6268
6268
|
</scheduler-popover>`}closeStopPanel(){var e;const t=this.editingTimeFor;this.editingTimeFor=null,this.stopDateOpen=!1,null===(e=this.renderRoot.querySelector(`.edit-time[data-building-id="${t}"]`))||void 0===e||e.focus()}renderStopPanel(e,t,i){const n=e.building_id,r=this.editingTimeFor===n,o=this.name(n);return H`<scheduler-popover
|
|
6269
6269
|
class="stop-popover"
|
|
@@ -6282,7 +6282,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6282
6282
|
aria-label=${`Change the ${t?"date or time":"time"} at ${o}`}
|
|
6283
6283
|
@click=${()=>{this.editingTimeFor=r?null:n,this.stopDateOpen=!1}}
|
|
6284
6284
|
>
|
|
6285
|
-
${
|
|
6285
|
+
${cu(12)}
|
|
6286
6286
|
</button>
|
|
6287
6287
|
<div
|
|
6288
6288
|
id=${`stop-panel-${n}`}
|
|
@@ -6309,17 +6309,17 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6309
6309
|
outlined
|
|
6310
6310
|
selecteddateexists
|
|
6311
6311
|
.timezone=${e.timezone}
|
|
6312
|
-
.options=${i.map(
|
|
6313
|
-
.defaultSelectedTime=${
|
|
6314
|
-
@change=${i=>{const n=i.target.selectedTime;if(!n)return i.target.defaultSelectedTime=
|
|
6312
|
+
.options=${i.map(Fu)}
|
|
6313
|
+
.defaultSelectedTime=${Fu(e.start)}
|
|
6314
|
+
@change=${i=>{const n=i.target.selectedTime;if(!n)return i.target.defaultSelectedTime=Fu(e.start),void t();const r=`${n.dateWithTimeZoneOffset.datetime}${n.dateWithTimeZoneOffset.offset}`;t(),r!==e.start&&Hu(this,"stop-time-change",{buildingId:e.building_id,start:r})}}
|
|
6315
6315
|
></time-picker>`}renderLinkPrompt(){return H`<h2 class="section-heading">Date and Time</h2>
|
|
6316
6316
|
<button
|
|
6317
6317
|
id="self-guided-redirect-bttn"
|
|
6318
6318
|
class="primary-button"
|
|
6319
|
-
@click=${()=>
|
|
6319
|
+
@click=${()=>Hu(this,"open-tour-link",{})}
|
|
6320
6320
|
>
|
|
6321
6321
|
View Tour Times
|
|
6322
|
-
</button>`}renderDateField(){const e=this.date?
|
|
6322
|
+
</button>`}renderDateField(){const e=this.date?Eu(this.date):"Select a date";return H`<h2 id="date-heading" class="section-heading">Date</h2>
|
|
6323
6323
|
<scheduler-popover
|
|
6324
6324
|
class="date-popover"
|
|
6325
6325
|
?open=${this.dateOpen}
|
|
@@ -6338,7 +6338,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6338
6338
|
<span class=${xe({value:!0,placeholder:!this.date})}
|
|
6339
6339
|
>${e}</span
|
|
6340
6340
|
>
|
|
6341
|
-
${
|
|
6341
|
+
${du(14)}
|
|
6342
6342
|
</button>
|
|
6343
6343
|
<div
|
|
6344
6344
|
id="date-panel"
|
|
@@ -6352,7 +6352,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6352
6352
|
${t?`Time (${t})`:"Time"}
|
|
6353
6353
|
${this.loading?H`<mini-loader></mini-loader>`:""}
|
|
6354
6354
|
</h2>
|
|
6355
|
-
${e?this.renderTimePicker(e):""}`}renderStop(e,t){var i,n,r,o,a;const s=this.communities.get(e.building_id),l=this.newStopIds(),d=l.indexOf(e.building_id),u=!e.fixed&&l.length>1,c=!e.fixed&&e.alternatives.some(t=>t!==e.start),h=!e.fixed&&(null!==(i=e.dates)&&void 0!==i?i:[]).some(t=>t!==
|
|
6355
|
+
${e?this.renderTimePicker(e):""}`}renderStop(e,t){var i,n,r,o,a;const s=this.communities.get(e.building_id),l=this.newStopIds(),d=l.indexOf(e.building_id),u=!e.fixed&&l.length>1,c=!e.fixed&&e.alternatives.some(t=>t!==e.start),h=!e.fixed&&(null!==(i=e.dates)&&void 0!==i?i:[]).some(t=>t!==bu(e.start)),p=`${Tu(bu(e.start))} · ${Su(e.start,e.end)}`,f=null!==this.dragIndex,g=_u(e.distance_from_prev_mi,e.travel_minutes_from_prev);return H`<li
|
|
6356
6356
|
class=${xe({"stop-item":!0,dragging:f&&this.dragIndex===d,"drop-target":f&&this.dropIndex===d&&this.dragIndex!==d})}
|
|
6357
6357
|
data-index=${e.fixed?W:d}
|
|
6358
6358
|
>
|
|
@@ -6370,7 +6370,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6370
6370
|
@pointercancel=${()=>this.endDrag(!1)}
|
|
6371
6371
|
@keydown=${t=>{const i={ArrowUp:d-1,ArrowDown:d+1}[t.key];void 0!==i&&(t.preventDefault(),i<0||i>=l.length||(this.refocusGripOf=e.building_id,this.move(d,i)))}}
|
|
6372
6372
|
>
|
|
6373
|
-
${((e=14)=>
|
|
6373
|
+
${((e=14)=>au(e,[5,12,19].flatMap(e=>[9,15].map(t=>`M${t} ${e}m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`))))(14)}
|
|
6374
6374
|
</button>`:""}
|
|
6375
6375
|
<span class="stop-number" aria-hidden="true">${t+1}</span>
|
|
6376
6376
|
<div class="card-text">
|
|
@@ -6378,7 +6378,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6378
6378
|
<span class="sr-only">Stop ${t+1}:</span>
|
|
6379
6379
|
${null!==(r=null==s?void 0:s.name)&&void 0!==r?r:""}
|
|
6380
6380
|
</p>
|
|
6381
|
-
<p class="subtitle">${
|
|
6381
|
+
<p class="subtitle">${fu(null!==(o=null==s?void 0:s.address)&&void 0!==o?o:null)}</p>
|
|
6382
6382
|
<div class="stop-time">
|
|
6383
6383
|
<span
|
|
6384
6384
|
>${p}${e.fixed?H`<span class="sr-only">, booked</span>`:""}</span
|
|
@@ -6386,14 +6386,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6386
6386
|
${c||h?this.renderStopPanel(e,h,c):""}
|
|
6387
6387
|
</div>
|
|
6388
6388
|
</div>
|
|
6389
|
-
${e.fixed?H`<span class="booked-mark">${
|
|
6389
|
+
${e.fixed?H`<span class="booked-mark">${hu(18,1)}</span>`:l.length>1||this.problems.length>0||this.stopsOnly?this.renderRemove(e.building_id,null!==(a=null==s?void 0:s.name)&&void 0!==a?a:""):""}
|
|
6390
6390
|
</div>
|
|
6391
6391
|
</li>`}renderRemove(e,t){return H`<button
|
|
6392
6392
|
class="icon-button remove"
|
|
6393
6393
|
aria-label=${`Remove ${t}`}
|
|
6394
|
-
@click=${()=>
|
|
6394
|
+
@click=${()=>Hu(this,"stop-remove",{buildingId:e})}
|
|
6395
6395
|
>
|
|
6396
|
-
${((e=16)=>
|
|
6396
|
+
${((e=16)=>au(e,["M4 7l16 0","M10 11l0 6","M14 11l0 6","M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12","M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"]))(16)}
|
|
6397
6397
|
</button>`}renderProblem(e){var t,i;const n=this.communities.get(e.building_id);return H`<li class="stop-item">
|
|
6398
6398
|
<div class="card stop-card">
|
|
6399
6399
|
<div class="card-text">
|
|
@@ -6416,9 +6416,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6416
6416
|
${this.renderStops()}`}render(){if(this.stopsOnly)return H`${this.renderStops()}
|
|
6417
6417
|
${this.canAddStop?H`<button
|
|
6418
6418
|
class="add-stop"
|
|
6419
|
-
@click=${()=>
|
|
6419
|
+
@click=${()=>Hu(this,"add-stop",{})}
|
|
6420
6420
|
>
|
|
6421
|
-
${((e=18)=>
|
|
6421
|
+
${((e=18)=>au(e,["M12 5v14M5 12h14"]))(18)} Add Another Stop
|
|
6422
6422
|
</button>`:""}`;if(!this.single){const e=!this.selectedTypeOpensLink;return H`<div id="tour-type-menu-outer-container" class="column">
|
|
6423
6423
|
${this.renderTourTypes()}
|
|
6424
6424
|
${e?this.renderItineraryDate():""}
|
|
@@ -6432,7 +6432,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6432
6432
|
</div>
|
|
6433
6433
|
<div id="date-and-time-menu-outer-container" class="column">
|
|
6434
6434
|
${this.selectedTypeOpensLink?this.renderLinkPrompt():this.renderTimes()}
|
|
6435
|
-
</div>`}};
|
|
6435
|
+
</div>`}};zu.styles=[ou,Bu,p`
|
|
6436
6436
|
:host {
|
|
6437
6437
|
display: contents;
|
|
6438
6438
|
}
|
|
@@ -6669,7 +6669,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6669
6669
|
.add-stop:hover {
|
|
6670
6670
|
background: var(--tsv2-tint-line);
|
|
6671
6671
|
}
|
|
6672
|
-
`],
|
|
6672
|
+
`],Uu([pe({attribute:!1})],zu.prototype,"stops",void 0),Uu([pe({attribute:!1})],zu.prototype,"communities",void 0),Uu([pe({attribute:!1})],zu.prototype,"problems",void 0),Uu([pe({attribute:!1})],zu.prototype,"tourTypes",void 0),Uu([pe({attribute:!1})],zu.prototype,"tourType",void 0),Uu([pe({attribute:!1})],zu.prototype,"bookableDates",void 0),Uu([pe({attribute:!1})],zu.prototype,"date",void 0),Uu([pe({type:Boolean})],zu.prototype,"single",void 0),Uu([pe({type:Boolean})],zu.prototype,"canEditCommunities",void 0),Uu([pe({type:Boolean})],zu.prototype,"stopsOnly",void 0),Uu([pe({type:Boolean})],zu.prototype,"canAddStop",void 0),Uu([pe({type:Boolean})],zu.prototype,"loading",void 0),Uu([pe({type:Boolean})],zu.prototype,"planned",void 0),Uu([pe({attribute:!1})],zu.prototype,"primaryColor",void 0),Uu([pe({attribute:!1})],zu.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Uu([fe()],zu.prototype,"editingTimeFor",void 0),Uu([fe()],zu.prototype,"stopDateOpen",void 0),Uu([fe()],zu.prototype,"dateOpen",void 0),Uu([fe()],zu.prototype,"mobile",void 0),Uu([fe()],zu.prototype,"dragIndex",void 0),Uu([fe()],zu.prototype,"dropIndex",void 0),zu=Uu([ce("itinerary-editor")],zu);var Gu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Wu={firstName:"",lastName:"",email:"",phone:"",phoneE164:null,phoneCountry:null,layouts:[],moveIn:"",notes:"",leadSource:null};let qu=class extends de{constructor(){super(...arguments),this.values=Wu,this.layoutOptions=[],this.bedroomsRequired=!1,this.leadSources=[],this.showLeadSourceDropdown=!1,this.currentLeadSource="",this.country=null,this.mobile=!1,this.phoneHasBlurred=!1}setValues(e){this.values={...this.values,...e},this.dispatchEvent(new CustomEvent("contact-change",{detail:{values:this.values},bubbles:!0,composed:!0}))}label(e,t,i=!1){return H`<label class="field-label" for=${t}
|
|
6673
6673
|
>${e}${i?H`<span class="required" aria-hidden="true">*</span>`:""}</label
|
|
6674
6674
|
>`}renderLayouts(){const e=this.values.layouts;return H`<div class="field">
|
|
6675
6675
|
<span class="field-label" id="layout-label"
|
|
@@ -6703,10 +6703,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6703
6703
|
@change=${e=>this.setValues({moveIn:e.target.value})}
|
|
6704
6704
|
/>
|
|
6705
6705
|
<span class="date-placeholder" aria-hidden="true">Select a date</span>
|
|
6706
|
-
${
|
|
6706
|
+
${du(14)}
|
|
6707
6707
|
</div>
|
|
6708
6708
|
<span id="move-in-optional" class="sr-only">Optional</span>
|
|
6709
|
-
</div>`}render(){var e,t;const i=this.values,n=!!i.email&&!
|
|
6709
|
+
</div>`}render(){var e,t;const i=this.values,n=!!i.email&&!Wr(i.email.trim()),r=this.phoneHasBlurred&&!i.phoneE164;return H`<div
|
|
6710
6710
|
id="user-info-and-layout-menu-outer-container"
|
|
6711
6711
|
class=${xe({phone:this.mobile})}
|
|
6712
6712
|
>
|
|
@@ -6794,7 +6794,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6794
6794
|
@change=${e=>{var t;const i=null!==(t=e.target.value)&&void 0!==t?t:"";this.setValues({leadSource:i||null}),i&&this.dispatchEvent(new CustomEvent("lead-source-selected",{detail:{leadSource:i},bubbles:!0,composed:!0}))}}
|
|
6795
6795
|
></me-select>`:""}
|
|
6796
6796
|
</div>
|
|
6797
|
-
</div>`}};
|
|
6797
|
+
</div>`}};qu.styles=[ou,p`
|
|
6798
6798
|
:host {
|
|
6799
6799
|
display: contents;
|
|
6800
6800
|
}
|
|
@@ -6814,7 +6814,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6814
6814
|
gap: 8px;
|
|
6815
6815
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
6816
6816
|
}
|
|
6817
|
-
`],
|
|
6817
|
+
`],Gu([pe({attribute:!1})],qu.prototype,"values",void 0),Gu([pe({attribute:!1})],qu.prototype,"layoutOptions",void 0),Gu([pe({type:Boolean})],qu.prototype,"bedroomsRequired",void 0),Gu([pe({attribute:!1})],qu.prototype,"leadSources",void 0),Gu([pe({type:Boolean})],qu.prototype,"showLeadSourceDropdown",void 0),Gu([pe({type:String})],qu.prototype,"currentLeadSource",void 0),Gu([pe({attribute:!1})],qu.prototype,"country",void 0),Gu([pe({type:Boolean})],qu.prototype,"mobile",void 0),Gu([fe()],qu.prototype,"phoneHasBlurred",void 0),qu=Gu([ce("contact-form")],qu);var Vu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Qu=class extends de{constructor(){super(...arguments),this.stops=[],this.tourType=null,this.rescheduled=!1}heading(){const e=this.stops.filter(e=>"failed"!==e.status).length;return this.rescheduled?1===e?"Your Tour Is Rescheduled":"Your Tours Are Rescheduled":1===e?"Your Tour Is Booked":"Your Tour Itinerary Is Confirmed"}summary(){const e=this.stops.filter(e=>"failed"!==e.status),t=e[0];if(!t)return"";const i=[1===e.length?t.community.name:"",this.tourType?Pu[this.tourType].heading:""],n=new Set(e.map(e=>e.start&&bu(e.start)));if(t.start&&1===n.size){const n=t.community.timezone?` ${fr(t.community.timezone)}`:"";i.push(1===e.length?`${Tu(bu(t.start))} at ${$u(t.start)}${n}`:Tu(bu(t.start)))}return i.filter(Boolean).join(" · ")}renderLeg(e){const t=_u(e.distanceFromPrevMi,e.travelMinutesFromPrev);return t?H`${t}<span class="sr-only"> from the previous stop</span>`:""}renderStops(){return this.stops.length<2?"":H`<ol class="stops">
|
|
6818
6818
|
${this.stops.map((e,t)=>{var i;return H`<li>
|
|
6819
6819
|
${t>0?H`<p class="leg">${this.renderLeg(e)}</p>`:""}
|
|
6820
6820
|
<div class="card stop-card">
|
|
@@ -6824,19 +6824,19 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6824
6824
|
<span class="sr-only">Stop ${t+1}:</span>
|
|
6825
6825
|
${e.community.name}
|
|
6826
6826
|
</p>
|
|
6827
|
-
<p class="subtitle">${
|
|
6827
|
+
<p class="subtitle">${fu(e.community.address)}</p>
|
|
6828
6828
|
${"failed"===e.status?H`<p class="error-message">
|
|
6829
6829
|
<span class="sr-only">Not booked:</span>
|
|
6830
6830
|
${null!==(i=e.error)&&void 0!==i?i:"This tour couldn't be booked."}
|
|
6831
6831
|
</p>`:e.start&&e.end?H`<p class="stop-time">
|
|
6832
|
-
${
|
|
6833
|
-
${
|
|
6832
|
+
${Tu(bu(e.start))} ·
|
|
6833
|
+
${Su(e.start,e.end)}
|
|
6834
6834
|
</p>`:""}
|
|
6835
6835
|
</div>
|
|
6836
6836
|
</div>
|
|
6837
6837
|
</li>`})}
|
|
6838
6838
|
</ol>`}render(){const e=this.stops.filter(e=>"failed"===e.status).length;return H`<div id="confirmationMessage" role="status">
|
|
6839
|
-
<span class="booked-icon">${
|
|
6839
|
+
<span class="booked-icon">${hu(32)}</span>
|
|
6840
6840
|
<h2 class="booked-title">${this.heading()}</h2>
|
|
6841
6841
|
<p class="booked-summary">${this.summary()}</p>
|
|
6842
6842
|
${e>0?H`<p class="error-message">
|
|
@@ -6849,7 +6849,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6849
6849
|
</p>
|
|
6850
6850
|
${this.renderStops()}
|
|
6851
6851
|
</div>
|
|
6852
|
-
<slot></slot>`}};
|
|
6852
|
+
<slot></slot>`}};Qu.styles=[ou,Bu,p`
|
|
6853
6853
|
:host {
|
|
6854
6854
|
display: block;
|
|
6855
6855
|
}
|
|
@@ -6904,7 +6904,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6904
6904
|
flex: 1;
|
|
6905
6905
|
min-width: 0;
|
|
6906
6906
|
}
|
|
6907
|
-
`],
|
|
6907
|
+
`],Vu([pe({attribute:!1})],Qu.prototype,"stops",void 0),Vu([pe({attribute:!1})],Qu.prototype,"tourType",void 0),Vu([pe({type:Boolean})],Qu.prototype,"rescheduled",void 0),Qu=Vu([ce("booking-confirmation")],Qu);var Yu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Ku=class extends de{constructor(){super(...arguments),this.size=64,this.spinSpeed=.8}updated(){this.style.setProperty("--mega-loader-size",`${this.size}px`),this.style.setProperty("--mega-loader-spin-speed",`${this.spinSpeed}s`)}render(){return H`<div class="spinner"></div>`}};Ku.styles=p`
|
|
6908
6908
|
.spinner {
|
|
6909
6909
|
border: 4px solid rgba(0, 0, 0, 0.2);
|
|
6910
6910
|
border-top: 4px solid var(--primary-color, #c057ff);
|
|
@@ -6922,7 +6922,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6922
6922
|
transform: rotate(360deg);
|
|
6923
6923
|
}
|
|
6924
6924
|
}
|
|
6925
|
-
`,Fu([pe({type:Number})],Hu.prototype,"size",void 0),Fu([pe({type:Number})],Hu.prototype,"spinSpeed",void 0),Hu=Fu([ce("mega-loader")],Hu);const zu=e=>{const t=Object.fromEntries(e.buildingIds.slice(1).filter(t=>e.laterStarts[t]).map(t=>[String(t),e.laterStarts[t]])),i=Object.fromEntries(e.buildingIds.filter(t=>e.stopDates[t]&&e.stopDates[t]!==e.date).map(t=>[String(t),e.stopDates[t]])),n=e.existingEventIds[e.existingEventIds.length-1];return{building_ids:e.buildingIds,tour_type:e.tourType,date:e.date,start_time:e.firstStart,stop_starts:t,stop_dates:i,fixed_first:void 0===n?null:{calendar_event_id:n}}},Gu=({orgSlug:e,selectedLeadSource:t,currentLeadSource:i,touchpoints:n,search:r,referrer:o,googleReferral:a})=>{var s,l,d;const u=t||i||null,c=ca(e);return{lead_sources:[...new Set(u?[u,c]:[c])],lead_sources_with_timestamps:n.map(e=>Or({...e})),query_params:Object.fromEntries(new URLSearchParams(r).entries()),referrer:o,google_rwg_token:null!==(s=null==a?void 0:a.rwgToken)&&void 0!==s?s:null,google_referral_building_id:null!==(l=null==a?void 0:a.buildingId)&&void 0!==l?l:null,google_environment:null!==(d=null==a?void 0:a.environment)&&void 0!==d?d:null}},Wu=e=>0===e?0:Math.floor(e/10),qu=["Studio","One bedroom","Two bedroom","Three bedroom","Four bedroom","Five bedroom"],Vu=e=>{var t;return{value:10*e,label:null!==(t=qu[e])&&void 0!==t?t:`${e} bedroom`}};var Qu,Yu=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Ku={bedrooms:[],moveIn:null,maxBudget:null},Xu=e=>[...new Set(e.map(Wu))],Zu={"escorted-tour":"WITH_AGENT","self-guided-tour":"SELF_GUIDED","live-virtual-tour":"VIRTUAL_SHOWING"};let Ju=Qu=class extends de{constructor(){super(...arguments),this.orgSlug="",this.buildingSlug="",this.buildingId=0,this.orgId=0,this.buildingName="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.tourTypeOptions=[],this.layoutOptions=[],this.currentLeadSource="",this.leadSources=[],this.featureFlagShowDropdown="",this.bedroomPreferenceRequired=!1,this.orgLegalName="",this.country=null,this.buildingState=null,this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.compactDesign=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.getSessionToken=()=>null,this.api=null,this.step="loading",this.loadError=null,this.mobile=Nr(),this.group=null,this.communities=new Map,this.selectedIds=[],this.picks=[],this.addingStop=!1,this.existingEventIds=[],this.tourType="escorted-tour",this.linkTourType=null,this.date=null,this.firstStart=null,this.laterStarts={},this.stopDates={},this.plan=null,this.planLoading=!1,this.planError=null,this.notice=null,this.contact=Ru,this.preferences=Ku,this.submitting=!1,this.bookingError=null,this.reschedulePrompt=null,this.confirmed=[],this.bookedTourType=null,this.bookedEventIds=[],this.extendInitial=null,this.extendFrom=null,this.extending=!1,this.rescheduled=!1,this.rescheduleCanceled=!1,this.planRequestId=0,this.idempotency=null,this.narrow=!1,this.modalResize=new ResizeObserver(([e])=>{this.narrow=e.contentRect.width<Qu.THREE_COLUMN_MIN_WIDTH}),this.observeModal=e=>{this.modalResize.disconnect(),e&&this.modalResize.observe(e)},this.onKeydown=e=>{hd(e,this),"Escape"!==e.key||e.defaultPrevented||e.isComposing||(e.stopPropagation(),this.close())},this.loadSelectCommunities=e=>this.client.getCommunities(e).then(this.rememberPage),this.loadExtendCommunities=e=>{const t=this.extendFrom;return t?this.client.getCommunities({...e,extend:t}).then(this.rememberPage):Promise.reject(new Error("No booking to extend"))},this.rememberPage=e=>(this.remember(e.communities),e),this.loadAddStopCommunities=e=>{const t=this.extendQueryFromPlan();return t?this.client.getCommunities({...e,extend:t}).then(this.rememberPage):Promise.reject(new Error("No stop to add after"))},this.onFiltersChange=e=>{this.preferences=e.detail.filters}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Schedule a Tour"),this.cleanupMobileListener=Mr(e=>this.mobile=e),this.addEventListener("keydown",this.onKeydown)}disconnectedCallback(){var e;null===(e=this.cleanupMobileListener)||void 0===e||e.call(this),this.removeEventListener("keydown",this.onKeydown),super.disconnectedCallback()}close(){var e;null===(e=this.onCloseClicked)||void 0===e||e.call(this,new MouseEvent("click"))}get client(){return this.api||(this.api=lu({orgSlug:this.orgSlug,buildingSlug:this.buildingSlug,getSessionToken:()=>this.getSessionToken()})),this.api}willUpdate(e){if(e.has("primaryColor")||e.has("foregroundColorOnPrimaryBackgroundColor")){const e=this.primaryColor||Xi;this.style.setProperty("--primary-color",e),this.style.setProperty("--action-confirm-button-background",e),this.style.setProperty("--action-confirm-button-color",this.foregroundColorOnPrimaryBackgroundColor),this.style.setProperty("--on-primary-color",this.foregroundColorOnPrimaryBackgroundColor)}}firstUpdated(){this.start()}updated(e){var t;e.has("step")&&void 0===e.get("step")?ud(this):((e.has("step")||e.has("reschedulePrompt")||e.has("rescheduleCanceled"))&&(this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.focus({preventScroll:!0})),e.has("notice")&&this.notice&&(null===(t=this.renderRoot.querySelector(".notice"))||void 0===t||t.scrollIntoView({block:"nearest"})))}async start(){this.step="loading",this.loadError=null;try{const e=await this.client.getCommunities(Ku);if(this.group=e,this.remember(e.communities),e.anchor.is_general_building)return void this.goTo("pick");this.rememberOne({building_id:e.anchor.building_id,name:e.anchor.name,address:null,timezone:null}),this.startSchedule([e.anchor.building_id])}catch(e){if(e instanceof su&&"NOT_IN_GROUP"===e.code)return this.group=null,this.rememberOne({building_id:this.buildingId,name:this.buildingName,address:null,timezone:null}),void this.startSchedule([this.buildingId]);this.loadError=e.message,this.step="error",this.log("TOUR_SCHEDULER_V2_LOAD_ERROR",e)}}goTo(e){this.step=e,"pick"===e?this.picks=this.selectedIds.map(e=>this.communities.get(e)).filter(e=>!!e):"booked"===e&&(this.picks=[]),Ro("tourSchedulerStepViewed",{step:"schedule"===e&&this.extending?"extend-schedule":e,buildingId:this.buildingId})}remember(e){const t=new Map(this.communities);e.forEach(e=>t.set(e.building_id,ou(e))),this.communities=t}rememberOne(e){const t=this.communities.get(e.building_id);(null==t?void 0:t.address)||(this.communities=new Map(this.communities).set(e.building_id,e))}startSchedule(e){this.selectedIds=e,this.plan=null,this.firstStart=null,this.laterStarts={},this.stopDates={},this.linkTourType=null,this.notice=null,this.bookingError=null,this.reschedulePrompt=null,this.goTo("schedule"),this.runPlan()}choice(){var e;return{buildingIds:this.selectedIds,tourType:this.tourType,date:null!==(e=this.date)&&void 0!==e?e:Cu(new Date),firstStart:this.firstStart,laterStarts:this.laterStarts,stopDates:this.stopDates,existingEventIds:this.existingEventIds}}async runPlan(e=!1){if(this.addingStop=!1,0===this.selectedIds.length)return;const t=++this.planRequestId;this.planLoading=!0,this.planError=null,e||(this.notice=null);try{let e=this.choice(),i=await this.client.plan(zu(e));for(let n=0;n<2&&t===this.planRequestId;n++){if(i.tour_types.includes(e.tourType)){if(!(0===Object.keys(e.stopDates).length&&i.bookable_dates.length>0)||i.bookable_dates.includes(e.date))break;this.date=i.bookable_dates[0]}else{if(0===i.tour_types.length)break;this.tourType=i.tour_types[0],this.stopDates={}}this.firstStart=null,this.laterStarts={},e=this.choice(),i=await this.client.plan(zu(e))}if(t!==this.planRequestId)return;this.plan=i,i.bookable_dates.includes(e.date)&&(this.date=e.date),i.changed.length>0&&(this.notice=i.changed.map(e=>e.text).join(" "))}catch(e){if(t!==this.planRequestId)return;this.planError=e.message,this.log("TOUR_SCHEDULER_V2_PLAN_ERROR",e)}finally{t===this.planRequestId&&(this.planLoading=!1)}}tourLink(e){if(!this.tourTypeOptions.map(e=>e.value).includes(Zu[e]))return null;const[t,i]={"self-guided-tour":[this.sgtUrl,this.selfGuidedToursTypeOffered],"escorted-tour":[this.escortedToursLink,this.escortedToursTypeOffered],"live-virtual-tour":[this.virtualToursLink,this.virtualToursTypeOffered]}[e];return t&&wa(0,i)?t:null}get bookingOwnBuildingAlone(){return 0===this.existingEventIds.length&&1===this.selectedIds.length&&this.selectedIds[0]===this.buildingId}openTourLink(e){const t=this.tourLink(e);if(!t)return;const i="self-guided-tour"===e&&52===this.orgId?Io(t,Po()):t;window.open(i,"_blank")}tourTypeChoices(){var e,t;const i=null!==(t=null===(e=this.plan)||void 0===e?void 0:e.tour_types)&&void 0!==t?t:[];return Su.filter(e=>i.includes(e)||this.bookingOwnBuildingAlone&&!!this.tourLink(e)).map(e=>({id:e,opensLink:this.bookingOwnBuildingAlone&&!!this.tourLink(e)}))}get shownTourType(){var e;return this.linkTourType?this.linkTourType:(null===(e=this.plan)||void 0===e?void 0:e.tour_types.includes(this.tourType))?this.tourType:null}get activeLinkType(){const e=this.shownTourType;return e&&this.bookingOwnBuildingAlone&&this.tourLink(e)?e:null}onTourType(e){if(Ro("tourTypeSelected",{tourType:e,buildingId:this.buildingId}),this.bookingOwnBuildingAlone&&this.tourLink(e))return this.linkTourType=e,void this.openTourLink(e);this.linkTourType=null,e!==this.tourType&&(this.tourType=e,this.firstStart=null,this.laterStarts={},this.stopDates={},this.runPlan())}onDate(e){e!==this.date&&(Ro("tourDateSelected",{tourType:this.tourType,buildingId:this.buildingId}),this.date=e,this.firstStart=null,this.laterStarts={},this.stopDates={},this.runPlan())}stopDatesWithout(e){return Object.fromEntries(Object.entries(this.stopDates).filter(([t])=>Number(t)!==e))}onStopDate(e,t){const i=this.selectedIds.indexOf(e);if(i<0)return;Ro("tourStopDateSelected",{tourType:this.tourType,buildingId:this.buildingId,stopNumber:i+1});const n=this.stopDatesWithout(e);this.stopDates=t===this.date?n:{...n,[e]:t},0===i&&(this.firstStart=null),this.laterStarts=Object.fromEntries(this.selectedIds.slice(1,i).filter(e=>this.laterStarts[e]).map(e=>[e,this.laterStarts[e]])),this.runPlan()}onStopTime(e,t){const i=this.selectedIds.indexOf(e);if(i<0)return;Ro("tourTimeSelected",{tourType:this.tourType,buildingId:this.buildingId,stopNumber:i+1});const n=this.selectedIds.slice(1,i);0===i?(this.firstStart=uu(t),this.laterStarts={}):this.laterStarts={...Object.fromEntries(n.filter(e=>this.laterStarts[e]).map(e=>[e,this.laterStarts[e]])),[e]:t},this.runPlan()}onReorder(e){Ro("tourStopsReordered",{buildingId:this.buildingId,stopCount:e.length});const t=this.selectedIds.filter(t=>!e.includes(t));this.selectedIds=[...e,...t],this.firstStart=null,this.laterStarts={},this.runPlan()}onRemove(e){const t=this.selectedIds.filter(t=>t!==e);if(Ro("tourStopRemoved",{buildingId:this.buildingId,stopCount:t.length}),0===t.length)return this.selectedIds=[],this.plan=null,void this.goTo(this.extending?"booked":"pick");this.selectedIds[0]===e&&(this.firstStart=null),this.selectedIds=t,this.laterStarts={},this.stopDates=this.stopDatesWithout(e),this.runPlan()}onEditCommunities(){this.goTo("pick")}onCommunitiesSelected(e,t){var i;if(e.forEach(e=>this.rememberOne(e)),Ro("tourCommunitiesSelected",{buildingId:this.buildingId,count:e.length,mode:t}),this.extending="extend"===t,this.extending){this.existingEventIds=this.bookedEventIds,this.tourType=null!==(i=this.bookedTourType)&&void 0!==i?i:this.tourType;const e=this.confirmed.filter(e=>e.start).slice(-1)[0];this.date=(null==e?void 0:e.start)?du(e.start):this.date}else this.existingEventIds=[];this.startSchedule(e.map(e=>e.building_id))}async submit(e=!1){var t,i,n,r,o,a;const s=this.plan;if(!s||this.submitting)return;const l=this.choice(),d=this.formValues,u=this.showLeadSourceDropdown()?d.leadSource:null,c=(({choice:e,plan:t,contact:i,attribution:n,conversationTrackingId:r,cancelExistingTours:o})=>({tour_type:e.tourType,stops:[...e.existingEventIds.map(e=>({existing_calendar_event_id:e})),...t.stops.filter(e=>!e.fixed).map(e=>({building_id:e.building_id,start:e.start}))],...i?{contact:i}:{},lead_sources:n,conversation_tracking_id:r,cancel_existing_tours:o}))({choice:l,plan:s,contact:this.extending?null:{first_name:d.firstName.trim(),last_name:d.lastName.trim(),email:d.email.trim(),phone_e164:null!==(t=d.phoneE164)&&void 0!==t?t:"",bedrooms:Xu(d.layouts),move_in:d.moveIn||null,max_budget:this.preferences.maxBudget,notes:d.notes.trim()},attribution:Gu({orgSlug:this.orgSlug,selectedLeadSource:u,currentLeadSource:this.currentLeadSource,touchpoints:null!==(n=null===(i=this.leadSourceMultitouchClient)||void 0===i?void 0:i.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:u||null}))&&void 0!==n?n:[],search:window.location.search,referrer:document.referrer,googleReferral:os()}),conversationTrackingId:null!==(o=null===(r=this.leadSourceClient)||void 0===r?void 0:r.chatId)&&void 0!==o?o:null,cancelExistingTours:e}),h=JSON.stringify({tour_type:c.tour_type,stops:c.stops,contact:c.contact,cancel_existing_tours:c.cancel_existing_tours});(null===(a=this.idempotency)||void 0===a?void 0:a.booking)!==h&&(this.idempotency={booking:h,key:bs()}),Ro("scheduleTourSubmitted",{tourType:l.tourType,stopCount:c.stops.length,buildingId:this.buildingId}),this.submitting=!0,this.bookingError=null;try{const t=await this.client.book(c,this.idempotency.key);this.idempotency=null,this.rescheduled=e,this.onBooked(t,l.tourType,s)}catch(e){this.onBookingError(e)}finally{this.submitting=!1}}onBooked(e,t,i){var n,r,o,a,s,l;if(this.reschedulePrompt=null,e.stops.every(e=>"failed"===e.status))return this.notice=null!==(o=null===(r=null===(n=e.stops.find(e=>e.error))||void 0===n?void 0:n.error)||void 0===r?void 0:r.message)&&void 0!==o?o:"We couldn't book your tour. Please pick another time.",this.log("TOUR_SCHEDULER_V2_BOOKING_ERROR",e.stops),void this.runPlan(!0);const d=new Map(i.stops.map(e=>[e.building_id,e]));this.confirmed=e.stops.map(e=>{var t,i,n,r,o,a,s,l,u,c;const h=null!==(t=this.communities.get(e.building_id))&&void 0!==t?t:{building_id:e.building_id,name:"",address:null,timezone:null},p=null!==(r=null!==(i=h.timezone)&&void 0!==i?i:null===(n=d.get(e.building_id))||void 0===n?void 0:n.timezone)&&void 0!==r?r:null;return{community:{...h,timezone:p},start:e.start,end:e.end,status:e.status,error:null!==(a=null===(o=e.error)||void 0===o?void 0:o.message)&&void 0!==a?a:null,distanceFromPrevMi:null!==(l=null===(s=d.get(e.building_id))||void 0===s?void 0:s.distance_from_prev_mi)&&void 0!==l?l:null,travelMinutesFromPrev:null!==(c=null===(u=d.get(e.building_id))||void 0===u?void 0:u.travel_minutes_from_prev)&&void 0!==c?c:null}});const u=e.stops.filter(e=>"failed"!==e.status&&null!==e.calendar_event_id);this.bookedEventIds=u.map(e=>e.calendar_event_id),this.bookedTourType=t,this.extending=!1,this.extendInitial=null,Ro("tourItineraryBooked",{buildingId:this.buildingId,stopCount:u.length,failedCount:e.stops.length-u.length}),u.length>0&&(null===(a=this.leadSourceClient)||void 0===a||a.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(s=this.leadSourceClient)||void 0===s||s.resetLeadSource(),null===(l=this.leadSourceMultitouchClient)||void 0===l||l.resetLeadSourceTouchpoints()),this.goTo("booked"),this.loadExtension()}extendQueryFromBooking(){const e=this.confirmed.filter(e=>"failed"!==e.status),t=e[e.length-1];return(null==t?void 0:t.end)&&this.bookedTourType?{availableAfter:t.end,tourType:this.bookedTourType,nearBuildingId:t.community.building_id,excludeBuildingIds:e.map(e=>e.community.building_id)}:null}stopsRemaining(){return 3-this.bookedEventIds.length}get canAddStop(){var e,t;return!this.planLoading&&!this.planError&&this.stopsRemaining()>this.selectedIds.length&&(null!==(t=null===(e=this.plan)||void 0===e?void 0:e.stops.length)&&void 0!==t?t:0)>0}extendQueryFromPlan(){var e,t;const i=null!==(t=null===(e=this.plan)||void 0===e?void 0:e.stops)&&void 0!==t?t:[],n=i[i.length-1];return n&&this.extendFrom?{...this.extendFrom,availableAfter:n.end,nearBuildingId:n.building_id,excludeBuildingIds:[...this.extendFrom.excludeBuildingIds,...this.selectedIds]}:null}onStopAdded(e){const t=e[0];if(!t)return;this.rememberOne(t),Ro("tourCommunitiesSelected",{buildingId:this.buildingId,count:1,mode:"extend"});const i=this.stopDates[this.selectedIds[this.selectedIds.length-1]];i&&(this.stopDates={...this.stopDates,[t.building_id]:i}),this.selectedIds=[...this.selectedIds,t.building_id],this.runPlan()}async loadExtension(){const e=this.extendQueryFromBooking();this.extendFrom=e;const t=this.stopsRemaining();if(this.group&&e&&!(t<=0))try{const i=await this.client.getCommunities({...Ku,extend:e});this.remember(i.communities),i.communities.some(e=>e.tourable)&&(this.extendInitial=i,Ro("tourExtensionOffered",{buildingId:this.buildingId,stopsRemaining:t}))}catch(e){this.log("TOUR_SCHEDULER_V2_EXTEND_LOAD_ERROR",e)}}onBookingError(e){const t=e instanceof su?e:new su(0,null,"Something went wrong. Please try again.");if("EXISTING_TOUR"!==t.code){if(this.reschedulePrompt=null,"SLOT_TAKEN"===t.code)return this.notice=t.message,void this.runPlan(!0);this.bookingError=t.message,this.log("TOUR_SCHEDULER_V2_BOOKING_ERROR",e)}else this.reschedulePrompt=t.message}showLeadSourceDropdown(){return this.featureFlagShowDropdown===yo.always||this.featureFlagShowDropdown===yo.onAttributionFailure&&0===this.currentLeadSource.length}log(e,t){To({logTitle:e,logData:{error:t},logType:Ao.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:t})}backStep(){return this.rescheduleCanceled?null:"schedule"===this.step?this.extending?"booked":this.group?"pick":null:"pick"===this.step&&this.group&&!this.group.anchor.is_general_building&&this.plan&&this.selectedIds.length>0?"schedule":null}problems(){var e,t;return null!==(t=null===(e=this.plan)||void 0===e?void 0:e.unchainable)&&void 0!==t?t:[]}isMultiStop(){return this.selectedIds.length>1||this.existingEventIds.length>0}canSubmit(){const e=this.plan;return!!e&&!this.planLoading&&!this.planError&&e.stops.some(e=>!e.fixed)&&0===e.unchainable.length&&null===this.activeLinkType&&(this.extending||(t=this.formValues,i=this.bedroomsRequired,(!!t.firstName.trim()||!!t.lastName.trim())&&Rr(t.email.trim())&&!!t.phoneE164&&(!i||t.layouts.length>0)));var t,i}get bedroomOptions(){const e=new Set(this.selectedIds.flatMap(e=>{var t,i;return null!==(i=null===(t=this.communities.get(e))||void 0===t?void 0:t.bedrooms)&&void 0!==i?i:[]}));return e.size>0?[...e].sort((e,t)=>e-t).map(Vu):this.layoutOptions}get preferredLayouts(){return this.bedroomOptions.map(e=>e.value).filter(e=>this.preferences.bedrooms.includes(Wu(e)))}get formValues(){var e;return{...this.contact,layouts:this.preferredLayouts,moveIn:null!==(e=this.preferences.moveIn)&&void 0!==e?e:""}}onContactChange(e){this.contact=e;const t=this.formValues,i=Xu(t.layouts.filter(t=>!e.layouts.includes(t))),n=Xu(e.layouts.filter(e=>!t.layouts.includes(e)));(i.length>0||n.length>0)&&(this.preferences={...this.preferences,bedrooms:[...new Set([...this.preferences.bedrooms.filter(e=>!i.includes(e)),...n])].sort((e,t)=>e-t)}),e.moveIn!==t.moveIn&&(this.preferences={...this.preferences,moveIn:e.moveIn||null})}get bedroomsRequired(){return this.bedroomPreferenceRequired&&this.bedroomOptions.length>0}disclaimer(){return na({buildingName:this.buildingName,phoneNumberInput:this.contact.phone,emailInput:this.contact.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"schedule tour"})}container(e){return H`<div
|
|
6925
|
+
`,Yu([pe({type:Number})],Ku.prototype,"size",void 0),Yu([pe({type:Number})],Ku.prototype,"spinSpeed",void 0),Ku=Yu([ce("mega-loader")],Ku);const Xu=e=>{const t=Object.fromEntries(e.buildingIds.slice(1).filter(t=>e.laterStarts[t]).map(t=>[String(t),e.laterStarts[t]])),i=Object.fromEntries(e.buildingIds.filter(t=>e.stopDates[t]&&e.stopDates[t]!==e.date).map(t=>[String(t),e.stopDates[t]])),n=e.existingEventIds[e.existingEventIds.length-1];return{building_ids:e.buildingIds,tour_type:e.tourType,date:e.date,start_time:e.firstStart,stop_starts:t,stop_dates:i,fixed_first:void 0===n?null:{calendar_event_id:n}}},Zu=({orgSlug:e,selectedLeadSource:t,currentLeadSource:i,touchpoints:n,search:r,referrer:o,googleReferral:a})=>{var s,l,d;const u=t||i||null,c=va(e);return{lead_sources:[...new Set(u?[u,c]:[c])],lead_sources_with_timestamps:n.map(e=>Br({...e})),query_params:Object.fromEntries(new URLSearchParams(r).entries()),referrer:o,google_rwg_token:null!==(s=null==a?void 0:a.rwgToken)&&void 0!==s?s:null,google_referral_building_id:null!==(l=null==a?void 0:a.buildingId)&&void 0!==l?l:null,google_environment:null!==(d=null==a?void 0:a.environment)&&void 0!==d?d:null}},Ju=e=>0===e?0:Math.floor(e/10),ec=["Studio","One bedroom","Two bedroom","Three bedroom","Four bedroom","Five bedroom"],tc=e=>{var t;return{value:10*e,label:null!==(t=ec[e])&&void 0!==t?t:`${e} bedroom`}};var ic,nc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const rc={bedrooms:[],moveIn:null,maxBudget:null},oc=e=>[...new Set(e.map(Ju))],ac={"escorted-tour":"WITH_AGENT","self-guided-tour":"SELF_GUIDED","live-virtual-tour":"VIRTUAL_SHOWING"};let sc=ic=class extends de{constructor(){super(...arguments),this.orgSlug="",this.buildingSlug="",this.buildingId=0,this.orgId=0,this.buildingName="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.tourTypeOptions=[],this.layoutOptions=[],this.currentLeadSource="",this.leadSources=[],this.featureFlagShowDropdown="",this.bedroomPreferenceRequired=!1,this.orgLegalName="",this.country=null,this.buildingState=null,this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.compactDesign=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.getSessionToken=()=>null,this.api=null,this.step="loading",this.loadError=null,this.mobile=Fr(),this.group=null,this.communities=new Map,this.selectedIds=[],this.picks=[],this.addingStop=!1,this.existingEventIds=[],this.tourType="escorted-tour",this.linkTourType=null,this.date=null,this.firstStart=null,this.laterStarts={},this.stopDates={},this.plan=null,this.planLoading=!1,this.planError=null,this.notice=null,this.contact=Wu,this.preferences=rc,this.submitting=!1,this.bookingError=null,this.reschedulePrompt=null,this.confirmed=[],this.bookedTourType=null,this.bookedEventIds=[],this.extendInitial=null,this.extendFrom=null,this.extending=!1,this.rescheduled=!1,this.rescheduleCanceled=!1,this.planRequestId=0,this.idempotency=null,this.narrow=!1,this.modalResize=new ResizeObserver(([e])=>{this.narrow=e.contentRect.width<ic.THREE_COLUMN_MIN_WIDTH}),this.observeModal=e=>{this.modalResize.disconnect(),e&&this.modalResize.observe(e)},this.onKeydown=e=>{wd(e,this),"Escape"!==e.key||e.defaultPrevented||e.isComposing||(e.stopPropagation(),this.close())},this.loadSelectCommunities=e=>this.client.getCommunities(e).then(this.rememberPage),this.loadExtendCommunities=e=>{const t=this.extendFrom;return t?this.client.getCommunities({...e,extend:t}).then(this.rememberPage):Promise.reject(new Error("No booking to extend"))},this.rememberPage=e=>(this.remember(e.communities),e),this.loadAddStopCommunities=e=>{const t=this.extendQueryFromPlan();return t?this.client.getCommunities({...e,extend:t}).then(this.rememberPage):Promise.reject(new Error("No stop to add after"))},this.onFiltersChange=e=>{this.preferences=e.detail.filters}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Schedule a Tour"),this.cleanupMobileListener=Hr(e=>this.mobile=e),this.addEventListener("keydown",this.onKeydown)}disconnectedCallback(){var e;null===(e=this.cleanupMobileListener)||void 0===e||e.call(this),this.removeEventListener("keydown",this.onKeydown),super.disconnectedCallback()}close(){var e;null===(e=this.onCloseClicked)||void 0===e||e.call(this,new MouseEvent("click"))}get client(){return this.api||(this.api=mu({orgSlug:this.orgSlug,buildingSlug:this.buildingSlug,getSessionToken:()=>this.getSessionToken()})),this.api}willUpdate(e){if(e.has("primaryColor")||e.has("foregroundColorOnPrimaryBackgroundColor")){const e=this.primaryColor||Xi;this.style.setProperty("--primary-color",e),this.style.setProperty("--action-confirm-button-background",e),this.style.setProperty("--action-confirm-button-color",this.foregroundColorOnPrimaryBackgroundColor),this.style.setProperty("--on-primary-color",this.foregroundColorOnPrimaryBackgroundColor)}}firstUpdated(){this.start()}updated(e){var t;e.has("step")&&void 0===e.get("step")?yd(this):((e.has("step")||e.has("reschedulePrompt")||e.has("rescheduleCanceled"))&&(this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.focus({preventScroll:!0})),e.has("notice")&&this.notice&&(null===(t=this.renderRoot.querySelector(".notice"))||void 0===t||t.scrollIntoView({block:"nearest"})))}async start(){this.step="loading",this.loadError=null;try{const e=await this.client.getCommunities(rc);if(this.group=e,this.remember(e.communities),e.anchor.is_general_building)return void this.goTo("pick");this.rememberOne({building_id:e.anchor.building_id,name:e.anchor.name,address:null,timezone:null}),this.startSchedule([e.anchor.building_id])}catch(e){if(e instanceof gu&&"NOT_IN_GROUP"===e.code)return this.group=null,this.rememberOne({building_id:this.buildingId,name:this.buildingName,address:null,timezone:null}),void this.startSchedule([this.buildingId]);this.loadError=e.message,this.step="error",this.log("TOUR_SCHEDULER_V2_LOAD_ERROR",e)}}goTo(e){this.step=e,"pick"===e?this.picks=this.selectedIds.map(e=>this.communities.get(e)).filter(e=>!!e):"booked"===e&&(this.picks=[]),Wo("tourSchedulerStepViewed",{step:"schedule"===e&&this.extending?"extend-schedule":e,buildingId:this.buildingId})}remember(e){const t=new Map(this.communities);e.forEach(e=>t.set(e.building_id,pu(e))),this.communities=t}rememberOne(e){const t=this.communities.get(e.building_id);(null==t?void 0:t.address)||(this.communities=new Map(this.communities).set(e.building_id,e))}startSchedule(e){this.selectedIds=e,this.plan=null,this.firstStart=null,this.laterStarts={},this.stopDates={},this.linkTourType=null,this.notice=null,this.bookingError=null,this.reschedulePrompt=null,this.goTo("schedule"),this.runPlan()}choice(){var e;return{buildingIds:this.selectedIds,tourType:this.tourType,date:null!==(e=this.date)&&void 0!==e?e:Ou(new Date),firstStart:this.firstStart,laterStarts:this.laterStarts,stopDates:this.stopDates,existingEventIds:this.existingEventIds}}async runPlan(e=!1){if(this.addingStop=!1,0===this.selectedIds.length)return;const t=++this.planRequestId;this.planLoading=!0,this.planError=null,e||(this.notice=null);try{let e=this.choice(),i=await this.client.plan(Xu(e));for(let n=0;n<2&&t===this.planRequestId;n++){if(i.tour_types.includes(e.tourType)){if(!(0===Object.keys(e.stopDates).length&&i.bookable_dates.length>0)||i.bookable_dates.includes(e.date))break;this.date=i.bookable_dates[0]}else{if(0===i.tour_types.length)break;this.tourType=i.tour_types[0],this.stopDates={}}this.firstStart=null,this.laterStarts={},e=this.choice(),i=await this.client.plan(Xu(e))}if(t!==this.planRequestId)return;this.plan=i,i.bookable_dates.includes(e.date)&&(this.date=e.date),i.changed.length>0&&(this.notice=i.changed.map(e=>e.text).join(" "))}catch(e){if(t!==this.planRequestId)return;this.planError=e.message,this.log("TOUR_SCHEDULER_V2_PLAN_ERROR",e)}finally{t===this.planRequestId&&(this.planLoading=!1)}}tourLink(e){if(!this.tourTypeOptions.map(e=>e.value).includes(ac[e]))return null;const[t,i]={"self-guided-tour":[this.sgtUrl,this.selfGuidedToursTypeOffered],"escorted-tour":[this.escortedToursLink,this.escortedToursTypeOffered],"live-virtual-tour":[this.virtualToursLink,this.virtualToursTypeOffered]}[e];return t&&Ea(0,i)?t:null}get bookingOwnBuildingAlone(){return 0===this.existingEventIds.length&&1===this.selectedIds.length&&this.selectedIds[0]===this.buildingId}openTourLink(e){const t=this.tourLink(e);if(!t)return;const i="self-guided-tour"===e&&52===this.orgId?jo(t,Uo()):t;window.open(i,"_blank")}tourTypeChoices(){var e,t;const i=null!==(t=null===(e=this.plan)||void 0===e?void 0:e.tour_types)&&void 0!==t?t:[];return Iu.filter(e=>i.includes(e)||this.bookingOwnBuildingAlone&&!!this.tourLink(e)).map(e=>({id:e,opensLink:this.bookingOwnBuildingAlone&&!!this.tourLink(e)}))}get shownTourType(){var e;return this.linkTourType?this.linkTourType:(null===(e=this.plan)||void 0===e?void 0:e.tour_types.includes(this.tourType))?this.tourType:null}get activeLinkType(){const e=this.shownTourType;return e&&this.bookingOwnBuildingAlone&&this.tourLink(e)?e:null}onTourType(e){if(Wo("tourTypeSelected",{tourType:e,buildingId:this.buildingId}),this.bookingOwnBuildingAlone&&this.tourLink(e))return this.linkTourType=e,void this.openTourLink(e);this.linkTourType=null,e!==this.tourType&&(this.tourType=e,this.firstStart=null,this.laterStarts={},this.stopDates={},this.runPlan())}onDate(e){e!==this.date&&(Wo("tourDateSelected",{tourType:this.tourType,buildingId:this.buildingId}),this.date=e,this.firstStart=null,this.laterStarts={},this.stopDates={},this.runPlan())}stopDatesWithout(e){return Object.fromEntries(Object.entries(this.stopDates).filter(([t])=>Number(t)!==e))}onStopDate(e,t){const i=this.selectedIds.indexOf(e);if(i<0)return;Wo("tourStopDateSelected",{tourType:this.tourType,buildingId:this.buildingId,stopNumber:i+1});const n=this.stopDatesWithout(e);this.stopDates=t===this.date?n:{...n,[e]:t},0===i&&(this.firstStart=null),this.laterStarts=Object.fromEntries(this.selectedIds.slice(1,i).filter(e=>this.laterStarts[e]).map(e=>[e,this.laterStarts[e]])),this.runPlan()}onStopTime(e,t){const i=this.selectedIds.indexOf(e);if(i<0)return;Wo("tourTimeSelected",{tourType:this.tourType,buildingId:this.buildingId,stopNumber:i+1});const n=this.selectedIds.slice(1,i);0===i?(this.firstStart=yu(t),this.laterStarts={}):this.laterStarts={...Object.fromEntries(n.filter(e=>this.laterStarts[e]).map(e=>[e,this.laterStarts[e]])),[e]:t},this.runPlan()}onReorder(e){Wo("tourStopsReordered",{buildingId:this.buildingId,stopCount:e.length});const t=this.selectedIds.filter(t=>!e.includes(t));this.selectedIds=[...e,...t],this.firstStart=null,this.laterStarts={},this.runPlan()}onRemove(e){const t=this.selectedIds.filter(t=>t!==e);if(Wo("tourStopRemoved",{buildingId:this.buildingId,stopCount:t.length}),0===t.length)return this.selectedIds=[],this.plan=null,void this.goTo(this.extending?"booked":"pick");this.selectedIds[0]===e&&(this.firstStart=null),this.selectedIds=t,this.laterStarts={},this.stopDates=this.stopDatesWithout(e),this.runPlan()}onEditCommunities(){this.goTo("pick")}onCommunitiesSelected(e,t){var i;if(e.forEach(e=>this.rememberOne(e)),Wo("tourCommunitiesSelected",{buildingId:this.buildingId,count:e.length,mode:t}),this.extending="extend"===t,this.extending){this.existingEventIds=this.bookedEventIds,this.tourType=null!==(i=this.bookedTourType)&&void 0!==i?i:this.tourType;const e=this.confirmed.filter(e=>e.start).slice(-1)[0];this.date=(null==e?void 0:e.start)?bu(e.start):this.date}else this.existingEventIds=[];this.startSchedule(e.map(e=>e.building_id))}async submit(e=!1){var t,i,n,r,o,a;const s=this.plan;if(!s||this.submitting)return;const l=this.choice(),d=this.formValues,u=this.showLeadSourceDropdown()?d.leadSource:null,c=(({choice:e,plan:t,contact:i,attribution:n,conversationTrackingId:r,cancelExistingTours:o})=>({tour_type:e.tourType,stops:[...e.existingEventIds.map(e=>({existing_calendar_event_id:e})),...t.stops.filter(e=>!e.fixed).map(e=>({building_id:e.building_id,start:e.start}))],...i?{contact:i}:{},lead_sources:n,conversation_tracking_id:r,cancel_existing_tours:o}))({choice:l,plan:s,contact:this.extending?null:{first_name:d.firstName.trim(),last_name:d.lastName.trim(),email:d.email.trim(),phone_e164:null!==(t=d.phoneE164)&&void 0!==t?t:"",bedrooms:oc(d.layouts),move_in:d.moveIn||null,max_budget:this.preferences.maxBudget,notes:d.notes.trim()},attribution:Zu({orgSlug:this.orgSlug,selectedLeadSource:u,currentLeadSource:this.currentLeadSource,touchpoints:null!==(n=null===(i=this.leadSourceMultitouchClient)||void 0===i?void 0:i.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:u||null}))&&void 0!==n?n:[],search:window.location.search,referrer:document.referrer,googleReferral:ps()}),conversationTrackingId:null!==(o=null===(r=this.leadSourceClient)||void 0===r?void 0:r.chatId)&&void 0!==o?o:null,cancelExistingTours:e}),h=JSON.stringify({tour_type:c.tour_type,stops:c.stops,contact:c.contact,cancel_existing_tours:c.cancel_existing_tours});(null===(a=this.idempotency)||void 0===a?void 0:a.booking)!==h&&(this.idempotency={booking:h,key:ks()}),Wo("scheduleTourSubmitted",{tourType:l.tourType,stopCount:c.stops.length,buildingId:this.buildingId}),this.submitting=!0,this.bookingError=null;try{const t=await this.client.book(c,this.idempotency.key);this.idempotency=null,this.rescheduled=e,this.onBooked(t,l.tourType,s)}catch(e){this.onBookingError(e)}finally{this.submitting=!1}}onBooked(e,t,i){var n,r,o,a,s,l;if(this.reschedulePrompt=null,e.stops.every(e=>"failed"===e.status))return this.notice=null!==(o=null===(r=null===(n=e.stops.find(e=>e.error))||void 0===n?void 0:n.error)||void 0===r?void 0:r.message)&&void 0!==o?o:"We couldn't book your tour. Please pick another time.",this.log("TOUR_SCHEDULER_V2_BOOKING_ERROR",e.stops),void this.runPlan(!0);const d=new Map(i.stops.map(e=>[e.building_id,e]));this.confirmed=e.stops.map(e=>{var t,i,n,r,o,a,s,l,u,c;const h=null!==(t=this.communities.get(e.building_id))&&void 0!==t?t:{building_id:e.building_id,name:"",address:null,timezone:null},p=null!==(r=null!==(i=h.timezone)&&void 0!==i?i:null===(n=d.get(e.building_id))||void 0===n?void 0:n.timezone)&&void 0!==r?r:null;return{community:{...h,timezone:p},start:e.start,end:e.end,status:e.status,error:null!==(a=null===(o=e.error)||void 0===o?void 0:o.message)&&void 0!==a?a:null,distanceFromPrevMi:null!==(l=null===(s=d.get(e.building_id))||void 0===s?void 0:s.distance_from_prev_mi)&&void 0!==l?l:null,travelMinutesFromPrev:null!==(c=null===(u=d.get(e.building_id))||void 0===u?void 0:u.travel_minutes_from_prev)&&void 0!==c?c:null}});const u=e.stops.filter(e=>"failed"!==e.status&&null!==e.calendar_event_id);this.bookedEventIds=u.map(e=>e.calendar_event_id),this.bookedTourType=t,this.extending=!1,this.extendInitial=null,Wo("tourItineraryBooked",{buildingId:this.buildingId,stopCount:u.length,failedCount:e.stops.length-u.length}),u.length>0&&(null===(a=this.leadSourceClient)||void 0===a||a.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(s=this.leadSourceClient)||void 0===s||s.resetLeadSource(),null===(l=this.leadSourceMultitouchClient)||void 0===l||l.resetLeadSourceTouchpoints()),this.goTo("booked"),this.loadExtension()}extendQueryFromBooking(){const e=this.confirmed.filter(e=>"failed"!==e.status),t=e[e.length-1];return(null==t?void 0:t.end)&&this.bookedTourType?{availableAfter:t.end,tourType:this.bookedTourType,nearBuildingId:t.community.building_id,excludeBuildingIds:e.map(e=>e.community.building_id)}:null}stopsRemaining(){return 3-this.bookedEventIds.length}get canAddStop(){var e,t;return!this.planLoading&&!this.planError&&this.stopsRemaining()>this.selectedIds.length&&(null!==(t=null===(e=this.plan)||void 0===e?void 0:e.stops.length)&&void 0!==t?t:0)>0}extendQueryFromPlan(){var e,t;const i=null!==(t=null===(e=this.plan)||void 0===e?void 0:e.stops)&&void 0!==t?t:[],n=i[i.length-1];return n&&this.extendFrom?{...this.extendFrom,availableAfter:n.end,nearBuildingId:n.building_id,excludeBuildingIds:[...this.extendFrom.excludeBuildingIds,...this.selectedIds]}:null}onStopAdded(e){const t=e[0];if(!t)return;this.rememberOne(t),Wo("tourCommunitiesSelected",{buildingId:this.buildingId,count:1,mode:"extend"});const i=this.stopDates[this.selectedIds[this.selectedIds.length-1]];i&&(this.stopDates={...this.stopDates,[t.building_id]:i}),this.selectedIds=[...this.selectedIds,t.building_id],this.runPlan()}async loadExtension(){const e=this.extendQueryFromBooking();this.extendFrom=e;const t=this.stopsRemaining();if(this.group&&e&&!(t<=0))try{const i=await this.client.getCommunities({...rc,extend:e});this.remember(i.communities),i.communities.some(e=>e.tourable)&&(this.extendInitial=i,Wo("tourExtensionOffered",{buildingId:this.buildingId,stopsRemaining:t}))}catch(e){this.log("TOUR_SCHEDULER_V2_EXTEND_LOAD_ERROR",e)}}onBookingError(e){const t=e instanceof gu?e:new gu(0,null,"Something went wrong. Please try again.");if("EXISTING_TOUR"!==t.code){if(this.reschedulePrompt=null,"SLOT_TAKEN"===t.code)return this.notice=t.message,void this.runPlan(!0);this.bookingError=t.message,this.log("TOUR_SCHEDULER_V2_BOOKING_ERROR",e)}else this.reschedulePrompt=t.message}showLeadSourceDropdown(){return this.featureFlagShowDropdown===Ao.always||this.featureFlagShowDropdown===Ao.onAttributionFailure&&0===this.currentLeadSource.length}log(e,t){Do({logTitle:e,logData:{error:t},logType:Mo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:t})}backStep(){return this.rescheduleCanceled?null:"schedule"===this.step?this.extending?"booked":this.group?"pick":null:"pick"===this.step&&this.group&&!this.group.anchor.is_general_building&&this.plan&&this.selectedIds.length>0?"schedule":null}problems(){var e,t;return null!==(t=null===(e=this.plan)||void 0===e?void 0:e.unchainable)&&void 0!==t?t:[]}isMultiStop(){return this.selectedIds.length>1||this.existingEventIds.length>0}canSubmit(){const e=this.plan;return!!e&&!this.planLoading&&!this.planError&&e.stops.some(e=>!e.fixed)&&0===e.unchainable.length&&null===this.activeLinkType&&(this.extending||(t=this.formValues,i=this.bedroomsRequired,(!!t.firstName.trim()||!!t.lastName.trim())&&Wr(t.email.trim())&&!!t.phoneE164&&(!i||t.layouts.length>0)));var t,i}get bedroomOptions(){const e=new Set(this.selectedIds.flatMap(e=>{var t,i;return null!==(i=null===(t=this.communities.get(e))||void 0===t?void 0:t.bedrooms)&&void 0!==i?i:[]}));return e.size>0?[...e].sort((e,t)=>e-t).map(tc):this.layoutOptions}get preferredLayouts(){return this.bedroomOptions.map(e=>e.value).filter(e=>this.preferences.bedrooms.includes(Ju(e)))}get formValues(){var e;return{...this.contact,layouts:this.preferredLayouts,moveIn:null!==(e=this.preferences.moveIn)&&void 0!==e?e:""}}onContactChange(e){this.contact=e;const t=this.formValues,i=oc(t.layouts.filter(t=>!e.layouts.includes(t))),n=oc(e.layouts.filter(e=>!t.layouts.includes(e)));(i.length>0||n.length>0)&&(this.preferences={...this.preferences,bedrooms:[...new Set([...this.preferences.bedrooms.filter(e=>!i.includes(e)),...n])].sort((e,t)=>e-t)}),e.moveIn!==t.moveIn&&(this.preferences={...this.preferences,moveIn:e.moveIn||null})}get bedroomsRequired(){return this.bedroomPreferenceRequired&&this.bedroomOptions.length>0}disclaimer(){return ca({buildingName:this.buildingName,phoneNumberInput:this.contact.phone,emailInput:this.contact.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,country:this.country,buildingState:this.buildingState,clickingButtonText:"schedule tour"})}container(e){return H`<div
|
|
6926
6926
|
id=${this.mobile?"mobile-body-container":"scheduler-container"}
|
|
6927
6927
|
>
|
|
6928
6928
|
${e}
|
|
@@ -6935,7 +6935,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6935
6935
|
@filters-change=${this.onFiltersChange}
|
|
6936
6936
|
@selection-change=${e=>this.onCommunitiesSelected(e.detail.communities,"select")}
|
|
6937
6937
|
></community-picker>`)}renderItineraryHeading(){return H`<div class="page-intro itinerary-heading">
|
|
6938
|
-
${((e=32)=>
|
|
6938
|
+
${((e=32)=>au(e,["M3 7l6 -3l6 3l6 -3v13l-6 3l-6 -3l-6 3v-13","M9 4v13","M15 7v13"],{strokeWidth:1.5}))(32)}
|
|
6939
6939
|
<h2 class="page-heading">
|
|
6940
6940
|
Create Your Tour Itinerary
|
|
6941
6941
|
${this.planLoading?H`<mini-loader></mini-loader>`:""}
|
|
@@ -6955,7 +6955,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6955
6955
|
aria-label="Close nearby communities"
|
|
6956
6956
|
@click=${()=>this.addingStop=!1}
|
|
6957
6957
|
>
|
|
6958
|
-
${
|
|
6958
|
+
${uu(16)}
|
|
6959
6959
|
</button>
|
|
6960
6960
|
</community-picker>
|
|
6961
6961
|
</div>`}renderEditor(){var e,t;const i=this.plan;return H` <itinerary-editor
|
|
@@ -6993,17 +6993,17 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6993
6993
|
.country=${this.country}
|
|
6994
6994
|
?mobile=${this.mobile}
|
|
6995
6995
|
@contact-change=${e=>this.onContactChange(e.detail.values)}
|
|
6996
|
-
@lead-source-selected=${e=>
|
|
6996
|
+
@lead-source-selected=${e=>Wo("tourLeadSourceSelected",{leadSource:e.detail.leadSource,buildingId:this.buildingId})}
|
|
6997
6997
|
></contact-form>`}renderFooter(){return H`<div
|
|
6998
6998
|
id="tour-scheduler-footer"
|
|
6999
6999
|
class=${xe({itinerary:this.extending})}
|
|
7000
7000
|
>
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
</
|
|
7001
|
+
${this.extending?"":H`<div class="explanation consent">
|
|
7002
|
+
We'll send a confirmation and any follow-ups to your email address,
|
|
7003
|
+
please reply to the email to make any appointment changes.
|
|
7004
|
+
${this.disclaimer()}
|
|
7005
|
+
</div>`}
|
|
7006
|
+
${this.bookingError?H`<p class="error-message" role="alert">${this.bookingError}</p>`:""}
|
|
7007
7007
|
<action-confirm-button
|
|
7008
7008
|
id="schedule-bttn"
|
|
7009
7009
|
.onClick=${()=>this.submit()}
|
|
@@ -7045,7 +7045,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7045
7045
|
</p>
|
|
7046
7046
|
</div>`)}
|
|
7047
7047
|
<div id="tour-scheduler-footer" class="itinerary">
|
|
7048
|
-
|
|
7048
|
+
${this.extending?"":H`<div class="explanation consent">${this.disclaimer()}</div>`}
|
|
7049
7049
|
<div class="reschedule-buttons-wrapper">
|
|
7050
7050
|
<action-confirm-button
|
|
7051
7051
|
id="cancel-reschedule-bttn"
|
|
@@ -7065,7 +7065,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7065
7065
|
></action-confirm-button>
|
|
7066
7066
|
</div>
|
|
7067
7067
|
</div>`}renderRescheduleCanceled(){return this.container(H`<div id="confirmationMessage" class="page-intro">
|
|
7068
|
-
${
|
|
7068
|
+
${hu(32)}
|
|
7069
7069
|
<h2 class="page-heading">Thank you!</h2>
|
|
7070
7070
|
<p class="explanation">
|
|
7071
7071
|
We'll see you at your originally scheduled tour time.
|
|
@@ -7106,7 +7106,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7106
7106
|
aria-label="Back"
|
|
7107
7107
|
@click=${()=>this.goTo(e)}
|
|
7108
7108
|
>
|
|
7109
|
-
${((e=14)=>
|
|
7109
|
+
${((e=14)=>au(e,["M15 6l-6 6l6 6"]))(18)}
|
|
7110
7110
|
</button>`:""}
|
|
7111
7111
|
<h1 id="tour-header-title">Schedule Tour</h1>
|
|
7112
7112
|
</div>
|
|
@@ -7115,11 +7115,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7115
7115
|
aria-label="Close scheduler"
|
|
7116
7116
|
@click=${e=>{var t;return null===(t=this.onCloseClicked)||void 0===t?void 0:t.call(this,e)}}
|
|
7117
7117
|
>
|
|
7118
|
-
${
|
|
7118
|
+
${uu(16)}
|
|
7119
7119
|
</button>
|
|
7120
7120
|
</div>
|
|
7121
7121
|
${this.renderBody()}
|
|
7122
|
-
</div>`}};
|
|
7122
|
+
</div>`}};sc.THREE_COLUMN_MIN_WIDTH=840,sc.styles=[ru,ou,p`
|
|
7123
7123
|
/* The design's modal: 920px wide, a fixed height, its body scrolling. */
|
|
7124
7124
|
.tour-scheduler-full,
|
|
7125
7125
|
.tour-scheduler-compact,
|
|
@@ -7306,6 +7306,15 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7306
7306
|
text-align: center;
|
|
7307
7307
|
}
|
|
7308
7308
|
|
|
7309
|
+
/* The footer's gap spaces it. */
|
|
7310
|
+
#tour-scheduler-footer > .error-message {
|
|
7311
|
+
margin: 0;
|
|
7312
|
+
}
|
|
7313
|
+
|
|
7314
|
+
#tour-scheduler-footer.itinerary > .error-message {
|
|
7315
|
+
text-align: center;
|
|
7316
|
+
}
|
|
7317
|
+
|
|
7309
7318
|
.consent {
|
|
7310
7319
|
font-size: 10px;
|
|
7311
7320
|
line-height: 14px;
|
|
@@ -7417,7 +7426,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7417
7426
|
max-width: 568px;
|
|
7418
7427
|
padding-top: 24px;
|
|
7419
7428
|
}
|
|
7420
|
-
`],
|
|
7429
|
+
`],nc([pe({attribute:!0})],sc.prototype,"orgSlug",void 0),nc([pe({attribute:!0})],sc.prototype,"buildingSlug",void 0),nc([pe({type:Number})],sc.prototype,"buildingId",void 0),nc([pe({type:Number})],sc.prototype,"orgId",void 0),nc([pe({attribute:!1})],sc.prototype,"buildingName",void 0),nc([pe({attribute:!0})],sc.prototype,"sgtUrl",void 0),nc([pe({attribute:!0})],sc.prototype,"selfGuidedToursTypeOffered",void 0),nc([pe({attribute:!0})],sc.prototype,"escortedToursLink",void 0),nc([pe({attribute:!1})],sc.prototype,"escortedToursTypeOffered",void 0),nc([pe({attribute:!0})],sc.prototype,"virtualToursLink",void 0),nc([pe({attribute:!0})],sc.prototype,"virtualToursTypeOffered",void 0),nc([pe({attribute:!1})],sc.prototype,"tourTypeOptions",void 0),nc([pe({attribute:!1})],sc.prototype,"layoutOptions",void 0),nc([pe({attribute:!0})],sc.prototype,"currentLeadSource",void 0),nc([pe({attribute:!1})],sc.prototype,"leadSources",void 0),nc([pe({attribute:!0})],sc.prototype,"featureFlagShowDropdown",void 0),nc([pe({attribute:!1})],sc.prototype,"bedroomPreferenceRequired",void 0),nc([pe({attribute:!1})],sc.prototype,"orgLegalName",void 0),nc([pe({attribute:!1})],sc.prototype,"country",void 0),nc([pe({attribute:!1})],sc.prototype,"buildingState",void 0),nc([pe({attribute:!1})],sc.prototype,"primaryColor",void 0),nc([pe({attribute:!1})],sc.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),nc([pe({attribute:!1})],sc.prototype,"compactDesign",void 0),nc([pe({attribute:!1})],sc.prototype,"leadSourceClient",void 0),nc([pe({attribute:!1})],sc.prototype,"leadSourceMultitouchClient",void 0),nc([pe({attribute:!1})],sc.prototype,"getSessionToken",void 0),nc([fe()],sc.prototype,"step",void 0),nc([fe()],sc.prototype,"loadError",void 0),nc([fe()],sc.prototype,"mobile",void 0),nc([fe()],sc.prototype,"group",void 0),nc([fe()],sc.prototype,"communities",void 0),nc([fe()],sc.prototype,"selectedIds",void 0),nc([fe()],sc.prototype,"picks",void 0),nc([fe()],sc.prototype,"addingStop",void 0),nc([fe()],sc.prototype,"existingEventIds",void 0),nc([fe()],sc.prototype,"tourType",void 0),nc([fe()],sc.prototype,"linkTourType",void 0),nc([fe()],sc.prototype,"date",void 0),nc([fe()],sc.prototype,"firstStart",void 0),nc([fe()],sc.prototype,"laterStarts",void 0),nc([fe()],sc.prototype,"stopDates",void 0),nc([fe()],sc.prototype,"plan",void 0),nc([fe()],sc.prototype,"planLoading",void 0),nc([fe()],sc.prototype,"planError",void 0),nc([fe()],sc.prototype,"notice",void 0),nc([fe()],sc.prototype,"contact",void 0),nc([fe()],sc.prototype,"preferences",void 0),nc([fe()],sc.prototype,"submitting",void 0),nc([fe()],sc.prototype,"bookingError",void 0),nc([fe()],sc.prototype,"reschedulePrompt",void 0),nc([fe()],sc.prototype,"confirmed",void 0),nc([fe()],sc.prototype,"bookedTourType",void 0),nc([fe()],sc.prototype,"bookedEventIds",void 0),nc([fe()],sc.prototype,"extendInitial",void 0),nc([fe()],sc.prototype,"extendFrom",void 0),nc([fe()],sc.prototype,"extending",void 0),nc([fe()],sc.prototype,"rescheduled",void 0),nc([fe()],sc.prototype,"rescheduleCanceled",void 0),nc([fe()],sc.prototype,"narrow",void 0),sc=ic=nc([ce("tour-scheduler-v2")],sc);const lc=p`
|
|
7421
7430
|
:host {
|
|
7422
7431
|
display: block;
|
|
7423
7432
|
position: relative;
|
|
@@ -7729,7 +7738,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7729
7738
|
margin: 2px 0;
|
|
7730
7739
|
}
|
|
7731
7740
|
}
|
|
7732
|
-
`;class
|
|
7741
|
+
`;class dc{constructor(e={}){var t,i,n,r,o,a;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.description=null!==(i=e.description)&&void 0!==i?i:"",this.type=null!==(n=e.type)&&void 0!==n?n:"",this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.rentFrequency=null!==(o=e.rentFrequency)&&void 0!==o?o:"monthly",this.available=null!==(a=e.available)&&void 0!==a&&a,this.reservedUntil=e.reservedUntil?new Date(e.reservedUntil):void 0}}class uc{constructor(e={}){var t,i,n,r,o;this.description=null!==(t=e.description)&&void 0!==t?t:"",this.type=null!==(i=e.type)&&void 0!==i?i:"",this.minAvailableItem=e.minAvailableItem?new dc(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new dc(e.maxAvailableItem):void 0,this.allItems=(null!==(n=e.allItems)&&void 0!==n?n:[]).map(e=>new dc(e)),this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.priceDescription=null!==(o=e.priceDescription)&&void 0!==o?o:""}get displayName(){return this.description}get itemDescription(){return this.description}}var cc,hc;!function(e){e.NEVER="NEVER",e.AS_NEEDED="AS_NEEDED",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(cc||(cc={})),function(e){e.Rent="Rent",e.Utility="Utility",e.ApplicationFee="ApplicationFee",e.Parking="Parking",e.Insurance="Insurance",e.Storage="Storage",e.PetFee="PetFee",e.PetRent="PetRent",e.PetDeposit="PetDeposit",e.SecurityDeposit="SecurityDeposit",e.MoveInFee="MoveInFee",e.Other="Other"}(hc||(hc={}));class pc{constructor(e={}){var t,i,n,r,o,a,s,l,d,u;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.building_id=e.building_id,this.fee_name=null!==(i=e.fee_name)&&void 0!==i?i:"",this.amount=e.amount,this.amount_display=null!==(n=e.amount_display)&&void 0!==n?n:"",this.limit=null!==(r=e.limit)&&void 0!==r?r:null,this.min_estimate=e.min_estimate,this.max_estimate=e.max_estimate,this.percent_rent=e.percent_rent,this.percent_rent_min=e.percent_rent_min,this.percent_rent_max=e.percent_rent_max,this.frequency=null!==(o=e.frequency)&&void 0!==o?o:cc.ONE_TIME,this.category=null!==(a=e.category)&&void 0!==a?a:hc.Other,this.description=e.description,this.additional_info=e.additional_info,this.refundable=null!==(s=e.refundable)&&void 0!==s&&s,this.hidden_reason=e.hidden_reason,this.unit_ids=e.unit_ids,this.layout_ids=e.layout_ids,this.public_facing=null===(l=e.public_facing)||void 0===l||l,this.per_applicant=null!==(d=e.per_applicant)&&void 0!==d&&d,this.required_for_quotes=null!==(u=e.required_for_quotes)&&void 0!==u&&u,this.charge_code=e.charge_code,this.bundle_key=e.bundle_key,this.external_key=e.external_key}get displayFrequency(){return this.frequency.replace(/_/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}get isOptional(){return!this.required_for_quotes}}const fc=class{constructor(){this.params=new URLSearchParams}addSingle(e,t){return t?(this.params.append(e,t),this):this}addArray(e,t){return t?(t.forEach(t=>{t&&this.params.append(`${e}[]`,t)}),this):this}build(){return this.params.toString()?`?${this.params.toString()}`:""}},gc=Ro,mc=e=>new pc(e),bc=e=>new uc(e),yc=async(e,t)=>{try{const i=(new fc).addArray("layout_ids",null==t?void 0:t.map(e=>e.toString())),n=await r().get(`${gc}/platformApi/webchat/${e}/marketable-fees?${i.build()}`);if(n.data){const e=Rr(n.data);return{fees:e.fees.map(mc),rentableItems:e.rentableItems.map(bc),buildingIncentives:e.buildingIncentives}}}catch(t){Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t},error:t})}return{fees:[],rentableItems:[],buildingIncentives:[]}},vc=-1,wc=Ro,xc=async({buildingSlug:e,unitId:t,chargeInputs:i,rentableItems:n,leaseTerm:o,moveInDate:a},s)=>{try{const l=await r().post(`${wc}/platformApi/webchat/${e}/quote/calculate`,Br({unitId:t,chargeInputs:i,rentableItems:n,...Number.isFinite(o)?{leaseTerm:o}:{},moveInDate:a}),{signal:s});if(l.data){return Rr(l.data)}}catch(t){const i=t;"ERR_CANCELED"!==i.code&&Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t},error:t});const n=(e=>{var t,i,n;const r=null===(i=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.detail;if(422!==(null===(n=e.response)||void 0===n?void 0:n.status)||!Array.isArray(r))return null;const o=r.map(e=>Rr(e));return o.length>0&&o.every(e=>"number"==typeof e.limit)?o:null})(i);return{quote:null,error:n?{type:"feeLimit",violations:n}:{type:"unknown"}}}return{quote:null,error:{type:"unknown"}}};function Cc(e){return nr(e,"yyyy-MM-dd")}function $c(){return Cc(Xr())}const Sc=Ro,kc=async({buildingSlug:e,numBedrooms:t,moveInDateString:i,leaseTerm:n})=>{try{const a=(({numBedrooms:e,moveInDateString:t,leaseTerm:i})=>{const n=new fc;return n.addArray("num_bedrooms",null==e?void 0:e.map(e=>e.toString())).addSingle("move_in_date_earliest",t).addSingle("move_in_date_latest",t).addSingle("lease_term_min",Number.isFinite(i)?null==i?void 0:i.toString():void 0),n.build()})({numBedrooms:t,moveInDateString:i,leaseTerm:n}),s=await r().get(`${Sc}/platformApi/webchat/${e}/units${a}`);if(s.data){const e=Rr(s.data);return o=e.map(e=>({...e,id:parseInt(e.id.toString().substring(1))})),[...o].sort((e,t)=>e.startingPrice-t.startingPrice||e.id-t.id)}}catch(r){Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:r,params:{numBedrooms:t,moveInDateString:i,leaseTerm:n}},error:r})}var o;return[]},Ac=[hc.PetFee,hc.PetRent,hc.PetDeposit];function Tc(e){return`Up to ${e} ${1===e?"pet":"pets"} allowed`}const Ec=({color:e="#347FF7",size:t=24}={})=>z`
|
|
7733
7742
|
<svg aria-hidden="true" focusable="false" width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7734
7743
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
7735
7744
|
<path id="Vector" d="M3 12.5C3 13.6819 3.23279 14.8522 3.68508 15.9442C4.13738 17.0361 4.80031 18.0282 5.63604 18.864C6.47177 19.6997 7.46392 20.3626 8.55585 20.8149C9.64778 21.2672 10.8181 21.5 12 21.5C13.1819 21.5 14.3522 21.2672 15.4442 20.8149C16.5361 20.3626 17.5282 19.6997 18.364 18.864C19.1997 18.0282 19.8626 17.0361 20.3149 15.9442C20.7672 14.8522 21 13.6819 21 12.5C21 11.3181 20.7672 10.1478 20.3149 9.05585C19.8626 7.96392 19.1997 6.97177 18.364 6.13604C17.5282 5.30031 16.5361 4.63738 15.4442 4.18508C14.3522 3.73279 13.1819 3.5 12 3.5C10.8181 3.5 9.64778 3.73279 8.55585 4.18508C7.46392 4.63738 6.47177 5.30031 5.63604 6.13604C4.80031 6.97177 4.13738 7.96392 3.68508 9.05585C3.23279 10.1478 3 11.3181 3 12.5Z" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -7742,7 +7751,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7742
7751
|
</clipPath>
|
|
7743
7752
|
</defs>
|
|
7744
7753
|
</svg>
|
|
7745
|
-
`,
|
|
7754
|
+
`,_c=p`
|
|
7746
7755
|
:host {
|
|
7747
7756
|
display: block;
|
|
7748
7757
|
margin-bottom: 20px;
|
|
@@ -7776,9 +7785,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7776
7785
|
color: #868e96;
|
|
7777
7786
|
font-size: 0.8rem;
|
|
7778
7787
|
}
|
|
7779
|
-
`;var
|
|
7788
|
+
`;var Oc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Pc=class extends de{constructor(){super(...arguments),this.promoAmount="0",this.promoDescription="",this.promoValidity=""}render(){return H`
|
|
7780
7789
|
<div class="promo-card">
|
|
7781
|
-
<div class="icon-container">${
|
|
7790
|
+
<div class="icon-container">${Ec()}</div>
|
|
7782
7791
|
<div class="content-container">
|
|
7783
7792
|
<h2 class="promo-heading">
|
|
7784
7793
|
${this.promoAmount} ${this.promoDescription}
|
|
@@ -7786,7 +7795,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7786
7795
|
<div class="promo-subtitle">${this.promoValidity}</div>
|
|
7787
7796
|
</div>
|
|
7788
7797
|
</div>
|
|
7789
|
-
`}}
|
|
7798
|
+
`}};Pc.styles=_c,Oc([pe({type:String})],Pc.prototype,"promoAmount",void 0),Oc([pe({type:String})],Pc.prototype,"promoDescription",void 0),Oc([pe({type:String})],Pc.prototype,"promoValidity",void 0),Pc=Oc([ce("promo-card")],Pc);const Ic=p`
|
|
7790
7799
|
:host {
|
|
7791
7800
|
display: block;
|
|
7792
7801
|
}
|
|
@@ -7963,7 +7972,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7963
7972
|
overflow-x: auto;
|
|
7964
7973
|
}
|
|
7965
7974
|
}
|
|
7966
|
-
`,
|
|
7975
|
+
`,Nc=p`
|
|
7967
7976
|
:host {
|
|
7968
7977
|
display: block;
|
|
7969
7978
|
}
|
|
@@ -8076,7 +8085,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8076
8085
|
margin-right: 8px;
|
|
8077
8086
|
}
|
|
8078
8087
|
}
|
|
8079
|
-
`;var
|
|
8088
|
+
`;var Mc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Dc=class extends de{constructor(){super(...arguments),this.unit={},this.onUnitSelect=null,this.selected=!1}get bedAndBathText(){return`${0===this.unit.numberOfBedrooms?"studio":`${this.unit.numberOfBedrooms}bd`} | ${this.unit.numberOfBathrooms}ba`}get priceRange(){return this.unit.startingPrice===this.unit.maxPrice?`$${this.unit.startingPrice}`:`$${this.unit.startingPrice} - $${this.unit.maxPrice}`}handleOnUnitSelect(){var e;this.selected||(this.selected=!this.selected,null===(e=this.onUnitSelect)||void 0===e||e.call(this,this.unit))}handleOnImgClick(e){const t=e.target;window.open(t.src,"_blank")}render(){return H`
|
|
8080
8089
|
<div class="floorplan-image-card ${this.selected?"selected":""}">
|
|
8081
8090
|
<div class="section-left">
|
|
8082
8091
|
${this.unit.floorplanUrl?H`
|
|
@@ -8101,7 +8110,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8101
8110
|
</p>
|
|
8102
8111
|
</div>
|
|
8103
8112
|
</div>
|
|
8104
|
-
`}};
|
|
8113
|
+
`}};Dc.styles=Nc,Mc([pe({type:Object})],Dc.prototype,"unit",void 0),Mc([pe()],Dc.prototype,"onUnitSelect",void 0),Mc([pe({type:Boolean})],Dc.prototype,"selected",void 0),Dc=Mc([ce("floorplan-image-card")],Dc);var Lc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Rc=class extends de{constructor(){super(...arguments),this.buildingSlug="",this.layoutOptions=[],this.selectedLayoutIds=[vc],this.units=[],this.isLoading=!1,this.isLoadingLayouts=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.moveInDate=Xr(),this.leaseTerm=12,this.selectedUnit=null,this.handleUnitSelect=e=>{var t;this.selectedUnit=e,null===(t=this.onUnitSelect)||void 0===t||t.call(this,e)},this.handleLayoutChange=e=>{var t;let i;e===vc?i=[vc]:this.selectedLayoutIds.includes(vc)?i=[e]:this.selectedLayoutIds.includes(e)?(i=this.selectedLayoutIds.filter(t=>t!==e),0===i.length&&(i=[vc])):i=[...this.selectedLayoutIds,e],this.selectedLayoutIds=i,null===(t=this.onSelectLayout)||void 0===t||t.call(this,this.selectedLayoutIds)},this.handleMoveInDateChange=e=>{var t;const i=e.target.value,n=Xr();if(i){const[e,t,r]=i.split("-").map(Number),o=new Date(e,t-1,r);if(Er(o,n))return;this.moveInDate=o}else this.moveInDate=n;null===(t=this.onMoveInDateChange)||void 0===t||t.call(this,i||Cc(n))},this.handleLeaseTermChange=e=>{var t;const i=parseInt(e.target.value);!Number.isInteger(i)||i<=0||(this.leaseTerm=i,null===(t=this.onLeaseTermChange)||void 0===t||t.call(this,this.leaseTerm))},this.renderUnitSelection=()=>{var e,t;return this.isLoading?H`
|
|
8105
8114
|
<div class="unit-selection">
|
|
8106
8115
|
<div class="image-carousel">
|
|
8107
8116
|
${Array.from({length:3},()=>H`<div class="unit-card-skeleton shimmer"></div>`)}
|
|
@@ -8139,7 +8148,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8139
8148
|
</div>
|
|
8140
8149
|
`)}
|
|
8141
8150
|
</div>
|
|
8142
|
-
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach(([e,i])=>{const n=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(n,i)}),t};return[{value:
|
|
8151
|
+
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach(([e,i])=>{const n=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(n,i)}),t};return[{value:vc,label:"All"},...this.layoutOptions].map(t=>({...t,label:e(t.label.replace(/bedroom/gi,"bd"))})).sort((e,t)=>e.value-t.value)}render(){return H`
|
|
8143
8152
|
<div class="floor-plan-selector">
|
|
8144
8153
|
<div class="floor-plan-selector-label">Select Floor Plan</div>
|
|
8145
8154
|
${this.renderBadges()}
|
|
@@ -8151,8 +8160,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8151
8160
|
<input
|
|
8152
8161
|
type="date"
|
|
8153
8162
|
placeholder="Select move in date"
|
|
8154
|
-
min=${
|
|
8155
|
-
.value=${this.moveInDate?
|
|
8163
|
+
min=${$c()}
|
|
8164
|
+
.value=${this.moveInDate?Cc(this.moveInDate):""}
|
|
8156
8165
|
@input=${this.handleMoveInDateChange}
|
|
8157
8166
|
/>
|
|
8158
8167
|
</div>
|
|
@@ -8171,7 +8180,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8171
8180
|
${this.renderUnitSelection()}
|
|
8172
8181
|
</div>
|
|
8173
8182
|
</div>
|
|
8174
|
-
`}};
|
|
8183
|
+
`}};Rc.styles=Ic,Lc([pe({type:String})],Rc.prototype,"buildingSlug",void 0),Lc([pe({type:Array})],Rc.prototype,"layoutOptions",void 0),Lc([pe({type:Array})],Rc.prototype,"selectedLayoutIds",void 0),Lc([pe({type:Array})],Rc.prototype,"units",void 0),Lc([pe({type:Boolean})],Rc.prototype,"isLoading",void 0),Lc([pe({type:Boolean})],Rc.prototype,"isLoadingLayouts",void 0),Lc([pe()],Rc.prototype,"onSelectLayout",void 0),Lc([pe()],Rc.prototype,"onUnitSelect",void 0),Lc([pe()],Rc.prototype,"onMoveInDateChange",void 0),Lc([pe()],Rc.prototype,"onLeaseTermChange",void 0),Lc([fe()],Rc.prototype,"moveInDate",void 0),Lc([fe()],Rc.prototype,"leaseTerm",void 0),Lc([fe()],Rc.prototype,"selectedUnit",void 0),Rc=Lc([ce("floor-plan-selector")],Rc);const Bc=p`
|
|
8175
8184
|
:host {
|
|
8176
8185
|
display: block;
|
|
8177
8186
|
width: 100%;
|
|
@@ -8217,7 +8226,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8217
8226
|
font-size: 1rem;
|
|
8218
8227
|
align-self: center;
|
|
8219
8228
|
}
|
|
8220
|
-
`;var
|
|
8229
|
+
`;var Uc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let jc=class extends de{constructor(){super(...arguments),this.feeQuote=null}get name(){var e,t;if(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem)return qr(this.feeQuote.sourceRentableItem.description||"");const i=null===(t=this.feeQuote)||void 0===t?void 0:t.marketableFee;return(null==i?void 0:i.feeName)?qr(i.feeName):""}get description(){var e,t,i,n;if(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem){return`${this.feeQuote.sourceRentableItem.id}`}return null!==(n=null===(i=null===(t=this.feeQuote)||void 0===t?void 0:t.marketableFee)||void 0===i?void 0:i.description)&&void 0!==n?n:""}get additionalInfo(){var e,t,i;return null!==(i=null===(t=null===(e=this.feeQuote)||void 0===e?void 0:e.marketableFee)||void 0===t?void 0:t.additionalInfo)&&void 0!==i?i:""}get triggeredEvent(){var e,t;const i=null===(t=null===(e=this.feeQuote)||void 0===e?void 0:e.marketableFee)||void 0===t?void 0:t.triggeredByEvent;if(!i)return"";return{APPLICATION_SUBMISSION:"Due at Application Submission",APPLICATION_APPROVAL:"Due at Application Approval",LEASE_SIGNING:"Due at Lease Signing",MOVE_IN:"Due at Move-In"}[i]||i}get amount(){var e;if(!this.feeQuote)return null;const t=null!==(e=this.feeQuote.amountRange.fixedValue)&&void 0!==e?e:0;return 0===t?null:Vr(t,2)}render(){return this.feeQuote&&this.amount?H`
|
|
8221
8230
|
<div class="fee-item">
|
|
8222
8231
|
<div class="fee-info">
|
|
8223
8232
|
<div class="fee-name">${this.name}</div>
|
|
@@ -8231,7 +8240,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8231
8240
|
</div>
|
|
8232
8241
|
<div class="fee-amount">${this.amount}</div>
|
|
8233
8242
|
</div>
|
|
8234
|
-
`:H``}};
|
|
8243
|
+
`:H``}};jc.styles=Bc,Uc([pe({type:Object})],jc.prototype,"feeQuote",void 0),jc=Uc([ce("fee-item")],jc);var Fc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Hc=class extends de{constructor(){super(...arguments),this.feeQuotes=[]}get itemType(){const e=this.feeQuotes[0];return(null==e?void 0:e.sourceRentableItem)?qr(e.sourceRentableItem.description||""):""}get priceGroups(){const e=new Map;return this.feeQuotes.forEach(t=>{var i;const n=null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0;e.set(n,(e.get(n)||0)+1)}),Array.from(e.entries()).map(([e,t])=>({price:e,count:t})).sort((e,t)=>e.price-t.price)}get totalAmount(){const e=this.feeQuotes.reduce((e,t)=>{var i;return e+(null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0)},0);return Vr(e,2)}get priceBreakdown(){const e=this.priceGroups;if(0===e.length)return"";const t=this.getUnitName();return e.map(e=>{return`${e.count} ${i=t,n=e.count,1===n?i:`${i}s`} @ ${Vr(e.price,2)}/month`;var i,n}).join(" + ")}getUnitName(){var e;const t=this.feeQuotes[0];return function(e){const t=e.toLowerCase();return t.includes("garage")||t.includes("parking")?"space":t.includes("storage")?"unit":t.includes("locker")?"locker":t.includes("bike")?"spot":"unit"}((null===(e=null==t?void 0:t.sourceRentableItem)||void 0===e?void 0:e.description)||"")}render(){return this.feeQuotes.length&&this.totalAmount!==Vr(0,2)?H`
|
|
8235
8244
|
<div class="fee-item">
|
|
8236
8245
|
<div class="fee-info">
|
|
8237
8246
|
<div class="fee-name">${this.itemType}</div>
|
|
@@ -8239,7 +8248,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8239
8248
|
</div>
|
|
8240
8249
|
<div class="fee-amount">${this.totalAmount}</div>
|
|
8241
8250
|
</div>
|
|
8242
|
-
`:H``}};
|
|
8251
|
+
`:H``}};Hc.styles=Bc,Fc([pe({type:Array})],Hc.prototype,"feeQuotes",void 0),Hc=Fc([ce("grouped-rentable-item")],Hc);const zc=p`
|
|
8243
8252
|
.fee-card-section-container {
|
|
8244
8253
|
margin: 0 12px;
|
|
8245
8254
|
border-radius: 4px;
|
|
@@ -8299,7 +8308,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8299
8308
|
margin: 12px;
|
|
8300
8309
|
justify-content: space-between;
|
|
8301
8310
|
}
|
|
8302
|
-
`;var
|
|
8311
|
+
`;var Gc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Wc=class extends de{constructor(){super(...arguments),this.title="Fees",this.fees=[],this.buildingFeesToQuantity={},this.handleQuantityChange=(e,t)=>{this.buildingFeesToQuantity[e]=t,this.requestUpdate()}}get totalAmount(){const e=this.fees.reduce((e,t)=>{var i;return e+(null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0)},0);return Vr(e,2)}get groupedRentableItems(){const e=this.fees.filter(e=>e.sourceRentableItem);e.sort((e,t)=>{var i,n;const r=(null===(i=e.sourceRentableItem)||void 0===i?void 0:i.description)||"",o=(null===(n=t.sourceRentableItem)||void 0===n?void 0:n.description)||"";return r.localeCompare(o,navigator.language,{numeric:!0})});const t={};return e.forEach(e=>{var i;const n=(null===(i=e.sourceRentableItem)||void 0===i?void 0:i.description)||"unknown";t[n]||(t[n]=[]),t[n].push(e)}),t}get nonRentableItems(){return this.fees.filter(e=>!e.sourceRentableItem)}render(){return H`
|
|
8303
8312
|
<div class="fee-card-section-container">
|
|
8304
8313
|
<div class="fee-card-section-header">
|
|
8305
8314
|
<h1 class="section-title">${this.title}</h1>
|
|
@@ -8323,7 +8332,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8323
8332
|
</div>
|
|
8324
8333
|
</div>
|
|
8325
8334
|
</div>
|
|
8326
|
-
`}};
|
|
8335
|
+
`}};Wc.styles=zc,Gc([pe({type:String})],Wc.prototype,"title",void 0),Gc([pe({type:Array})],Wc.prototype,"fees",void 0),Gc([fe()],Wc.prototype,"buildingFeesToQuantity",void 0),Wc=Gc([ce("fee-card")],Wc);const qc=p`
|
|
8327
8336
|
:host {
|
|
8328
8337
|
--transition-timing: 0.2s ease;
|
|
8329
8338
|
display: flex;
|
|
@@ -8532,7 +8541,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8532
8541
|
font-weight: bold;
|
|
8533
8542
|
color: #0066cc;
|
|
8534
8543
|
}
|
|
8535
|
-
`;var
|
|
8544
|
+
`;var Vc;!function(e){e.NEVER="NEVER",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(Vc||(Vc={}));var Qc=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Yc=["num_cats","num_dogs","num_other_pets"];let Kc=class extends de{constructor(){super(...arguments),this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1,num_cats:0,num_dogs:0,num_other_pets:0},this.onChargeInputsChange=null,this.disabled=!1,this.maxPets=null,this.rentableItems=[],this.selectedRentableItems=[],this.onRentableItemAdd=null,this.onRentableItemRemove=null,this.handleRentableItemToggle=e=>{var t,i;if(this.selectedRentableItems.some(t=>t.type===e.type)){const i=this.selectedRentableItems.find(t=>t.type===e.type);i&&(null===(t=this.onRentableItemRemove)||void 0===t||t.call(this,i))}else{const t=e.minAvailableItem||e.allItems[0];if(t){const n={id:t.id,type:e.type};null===(i=this.onRentableItemAdd)||void 0===i||i.call(this,n)}}}}get totalPets(){var e,t,i;return(null!==(e=this.chargeInputs.num_cats)&&void 0!==e?e:0)+(null!==(t=this.chargeInputs.num_dogs)&&void 0!==t?t:0)+(null!==(i=this.chargeInputs.num_other_pets)&&void 0!==i?i:0)}isAtPetLimit(e){return null!==this.maxPets&&Yc.includes(e)&&this.totalPets>=this.maxPets}handleIncrement(e){var t,i;if(this.isAtPetLimit(e))return;const n=(null!==(t=this.chargeInputs[e])&&void 0!==t?t:0)+1;Yc.includes(e)?this.updatePetCount({[e]:n}):null===(i=this.onChargeInputsChange)||void 0===i||i.call(this,{[e]:n})}handleDecrement(e){var t,i;const n=null!==(t=this.chargeInputs[e])&&void 0!==t?t:0,r="num_applicants"===e?1:0,o=Math.max(r,n-1);Yc.includes(e)?this.updatePetCount({[e]:o}):null===(i=this.onChargeInputsChange)||void 0===i||i.call(this,{[e]:o})}updatePetCount(e){var t,i,n,r;const o={...this.chargeInputs,...e},a=(null!==(t=o.num_cats)&&void 0!==t?t:0)+(null!==(i=o.num_dogs)&&void 0!==i?i:0)+(null!==(n=o.num_other_pets)&&void 0!==n?n:0);null===(r=this.onChargeInputsChange)||void 0===r||r.call(this,{...e,num_pets:a})}getFieldLabel(e){return{base_rent:"Base Rent ($)",num_pets:"Pets",num_vehicles:"Vehicles",num_applicants:"Applicants",num_cats:"Cats",num_dogs:"Dogs",num_other_pets:"All Other Pets"}[e]||e}renderRentableItemRow(e){const t=this.selectedRentableItems.some(t=>t.type===e.type);return H`
|
|
8536
8545
|
<div class="rentable-item-row">
|
|
8537
8546
|
<div class="rentable-item-info">
|
|
8538
8547
|
<div class="rentable-item-label">${e.description}</div>
|
|
@@ -8581,7 +8590,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8581
8590
|
${["num_applicants","num_cats","num_dogs","num_other_pets"].map(e=>this.renderChargeInputRow(e))}
|
|
8582
8591
|
${null!==this.maxPets?H`
|
|
8583
8592
|
<div class="charge-input-note">
|
|
8584
|
-
${
|
|
8593
|
+
${Tc(this.maxPets)}
|
|
8585
8594
|
</div>
|
|
8586
8595
|
`:""}
|
|
8587
8596
|
</div>
|
|
@@ -8593,7 +8602,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8593
8602
|
</div>
|
|
8594
8603
|
`:""}
|
|
8595
8604
|
</div>
|
|
8596
|
-
`}};
|
|
8605
|
+
`}};Kc.styles=p`
|
|
8597
8606
|
.charge-inputs-container {
|
|
8598
8607
|
background: white;
|
|
8599
8608
|
border-radius: 8px;
|
|
@@ -8727,7 +8736,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8727
8736
|
opacity: 0.5;
|
|
8728
8737
|
cursor: not-allowed;
|
|
8729
8738
|
}
|
|
8730
|
-
`,
|
|
8739
|
+
`,Qc([pe({type:Object})],Kc.prototype,"chargeInputs",void 0),Qc([pe()],Kc.prototype,"onChargeInputsChange",void 0),Qc([pe({type:Boolean})],Kc.prototype,"disabled",void 0),Qc([pe({type:Number})],Kc.prototype,"maxPets",void 0),Qc([pe({type:Array})],Kc.prototype,"rentableItems",void 0),Qc([pe({type:Array})],Kc.prototype,"selectedRentableItems",void 0),Qc([pe()],Kc.prototype,"onRentableItemAdd",void 0),Qc([pe()],Kc.prototype,"onRentableItemRemove",void 0),Kc=Qc([ce("charge-inputs")],Kc);const Xc=p`
|
|
8731
8740
|
:host {
|
|
8732
8741
|
--skeleton-bg-color: #eaeaea;
|
|
8733
8742
|
--skeleton-highlight-color: #f5f5f5;
|
|
@@ -8741,8 +8750,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8741
8750
|
background-position: 200px 0;
|
|
8742
8751
|
}
|
|
8743
8752
|
}
|
|
8744
|
-
`,
|
|
8745
|
-
${
|
|
8753
|
+
`,Zc=p`
|
|
8754
|
+
${Xc}
|
|
8746
8755
|
|
|
8747
8756
|
:host {
|
|
8748
8757
|
display: block;
|
|
@@ -8807,8 +8816,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8807
8816
|
margin-bottom: 10px;
|
|
8808
8817
|
}
|
|
8809
8818
|
}
|
|
8810
|
-
`,
|
|
8811
|
-
${
|
|
8819
|
+
`,Jc=p`
|
|
8820
|
+
${Xc}
|
|
8812
8821
|
|
|
8813
8822
|
:host {
|
|
8814
8823
|
display: block;
|
|
@@ -8830,23 +8839,23 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8830
8839
|
box-sizing: border-box;
|
|
8831
8840
|
}
|
|
8832
8841
|
}
|
|
8833
|
-
`;var
|
|
8842
|
+
`;var eh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let th=class extends de{constructor(){super(...arguments),this.rows=2,this.header=!0}render(){return H`
|
|
8834
8843
|
<div class="skeleton-card">
|
|
8835
8844
|
${this.header?H`<div class="skeleton-header"></div>`:""}
|
|
8836
8845
|
${Array(this.rows).fill(0).map(()=>H`<div class="skeleton-row"></div>`)}
|
|
8837
8846
|
</div>
|
|
8838
|
-
`}};
|
|
8847
|
+
`}};th.styles=Zc,eh([pe({type:Number})],th.prototype,"rows",void 0),eh([pe({type:Boolean})],th.prototype,"header",void 0),th=eh([ce("skeleton-card")],th);var ih=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let nh=class extends de{constructor(){super(...arguments),this.cards=3,this.rowsPerCard=[3,2,1]}render(){return H`
|
|
8839
8848
|
<div class="skeleton-loader">
|
|
8840
8849
|
${Array.from({length:this.cards},(e,t)=>{const i=Array.isArray(this.rowsPerCard)?this.rowsPerCard[t]||2:this.rowsPerCard;return H`<skeleton-card .rows=${i}></skeleton-card>`})}
|
|
8841
8850
|
</div>
|
|
8842
|
-
`}};
|
|
8851
|
+
`}};nh.styles=Jc,ih([pe({type:Number})],nh.prototype,"cards",void 0),ih([pe({type:Array})],nh.prototype,"rowsPerCard",void 0),nh=ih([ce("skeleton-loader")],nh);var rh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let oh=class extends de{constructor(){super(...arguments),this.buildingSlug="",this.showSkeletonLoader=!1,this.selectedUnit=null,this.quote=null,this.quoteError=null,this.layoutOptions=[],this.selectedLayoutIds=[vc],this.groupedFees={[cc.ONE_TIME]:[],[cc.MONTHLY]:[],[cc.WEEKLY]:[],[cc.BI_WEEKLY]:[],[cc.ANNUALLY]:[],[cc.DAILY]:[],[cc.AS_NEEDED]:[],[cc.NEVER]:[]},this.rentableItems=[],this.units=[],this.isLoadingUnits=!1,this.isLoadingLayouts=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1},this.onChargeInputsChange=null,this.maxPets=null,this.selectedRentableItems=[],this.onRentableItemAdd=null,this.onRentableItemRemove=null}get rentAsFeeQuote(){var e,t;return(null===(e=this.quote)||void 0===e?void 0:e.rentCost)?{marketableFee:{id:"rent",buildingId:this.quote.buildingId||0,feeName:"Rent",amount:this.quote.rentCost,amountDisplay:Vr(this.quote.rentCost,2),minEstimate:null,maxEstimate:null,percentRentMin:null,percentRentMax:null,percentRent:null,frequency:Vc.MONTHLY,category:"Rent",hiddenReason:null,description:`Unit ${null===(t=this.selectedUnit)||void 0===t?void 0:t.unitNumber}`,additionalInfo:null,refundable:!1,unitIds:null,layoutIds:null,startDate:null,endDate:null,triggeredByEvent:null,externalKey:null,chargeCode:null,bundleKey:null,source:null,publicFacing:!0,perApplicant:!1,prorated:null,syncActive:!0},amountRange:{fixedValue:this.quote.rentCost,minValue:null,maxValue:null},chargeInputs:{baseRent:this.quote.rentCost,numPets:0,numDogs:0,numCats:0,numOtherPets:0,numVehicles:0,numApplicants:1,unitId:this.quote.unitId,layoutId:null},isAddon:!1}:null}renderRecurringFeeSection(e,t){return(null==t?void 0:t.length)?H` <fee-card .fees=${t} title=${e}></fee-card> `:null}renderFeeSections(){var e,t;const i=[],n=[{freq:Vc.ANNUALLY,title:"Yearly Charges"},{freq:Vc.MONTHLY,title:"Monthly Charges"},{freq:Vc.BI_WEEKLY,title:"Bi-Weekly Charges"},{freq:Vc.WEEKLY,title:"Weekly Charges"},{freq:Vc.DAILY,title:"Daily Charges"},{freq:Vc.ONE_TIME,title:"One-Time"},{freq:Vc.NEVER,title:"No Charges"}],r=null===(e=this.quote)||void 0===e?void 0:e.feeQuotes;for(const{freq:e,title:o}of n){if(!(null==r?void 0:r.length)&&e!==Vc.MONTHLY)continue;let n=null!==(t=null==r?void 0:r.filter(t=>{var i,n;if((null===(i=t.marketableFee)||void 0===i?void 0:i.frequency)===e){if(e===Vc.ONE_TIME){return["APPLICATION_SUBMISSION","APPLICATION_APPROVAL","LEASE_SIGNING","MOVE_IN"].includes((null===(n=t.marketableFee)||void 0===n?void 0:n.triggeredByEvent)||"")}return!0}return!!t.sourceRentableItem&&("monthly"===t.sourceRentableItem.rentFrequency&&e===Vc.MONTHLY||"annually"===t.sourceRentableItem.rentFrequency&&e===Vc.ANNUALLY)}))&&void 0!==t?t:[];if(e===Vc.MONTHLY){const e=this.rentAsFeeQuote;e&&(n=[e,...n])}const a=this.renderRecurringFeeSection(o,n);a&&i.push(a)}return i}renderTotalCost(){var e;if(!(null===(e=this.quote)||void 0===e?void 0:e.totalMonthlyCost))return null;const t=this.quote.totalMonthlyCost.fixedValue;return t?H`
|
|
8843
8852
|
<div class="total-cost-section">
|
|
8844
8853
|
<div class="total-cost-row">
|
|
8845
8854
|
<span class="total-cost-label">Total Monthly Cost:</span>
|
|
8846
|
-
<span class="total-cost-amount">${
|
|
8855
|
+
<span class="total-cost-amount">${Vr(t,2)}</span>
|
|
8847
8856
|
</div>
|
|
8848
8857
|
</div>
|
|
8849
|
-
`:null}getQuoteErrorMessage(e){if("feeLimit"===e.type){return`${
|
|
8858
|
+
`:null}getQuoteErrorMessage(e){if("feeLimit"===e.type){return`${Tc(Math.min(...e.violations.map(e=>e.limit)))}. Remove a pet to see your estimate.`}return"We couldn't calculate an estimate. Please adjust your selections or try again later."}renderFeesContent(){return this.selectedUnit?this.quoteError&&!this.showSkeletonLoader?H`
|
|
8850
8859
|
<div class="fees-container empty-state" role="alert">
|
|
8851
8860
|
<p class="quote-error-message">
|
|
8852
8861
|
${this.getQuoteErrorMessage(this.quoteError)}
|
|
@@ -8902,7 +8911,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8902
8911
|
|
|
8903
8912
|
${this.renderFeesContent()}
|
|
8904
8913
|
</div>
|
|
8905
|
-
`}};
|
|
8914
|
+
`}};oh.styles=qc,rh([pe({type:String})],oh.prototype,"buildingSlug",void 0),rh([pe({type:Boolean})],oh.prototype,"showSkeletonLoader",void 0),rh([pe({type:Object})],oh.prototype,"selectedUnit",void 0),rh([pe({type:Object})],oh.prototype,"quote",void 0),rh([pe({type:Object})],oh.prototype,"quoteError",void 0),rh([pe({type:Array})],oh.prototype,"layoutOptions",void 0),rh([pe({type:Array})],oh.prototype,"selectedLayoutIds",void 0),rh([pe({type:Object})],oh.prototype,"groupedFees",void 0),rh([pe({type:Array})],oh.prototype,"rentableItems",void 0),rh([pe({type:Array})],oh.prototype,"units",void 0),rh([pe({type:Boolean})],oh.prototype,"isLoadingUnits",void 0),rh([pe({type:Boolean})],oh.prototype,"isLoadingLayouts",void 0),rh([pe()],oh.prototype,"onSelectLayout",void 0),rh([pe()],oh.prototype,"onUnitSelect",void 0),rh([pe()],oh.prototype,"onMoveInDateChange",void 0),rh([pe()],oh.prototype,"onLeaseTermChange",void 0),rh([pe({type:Object})],oh.prototype,"chargeInputs",void 0),rh([pe()],oh.prototype,"onChargeInputsChange",void 0),rh([pe({type:Number})],oh.prototype,"maxPets",void 0),rh([pe({type:Array})],oh.prototype,"selectedRentableItems",void 0),rh([pe()],oh.prototype,"onRentableItemAdd",void 0),rh([pe()],oh.prototype,"onRentableItemRemove",void 0),oh=rh([ce("fee-calculator-layout")],oh);var ah,sh,lh,dh;!function(e){e.OneTime="OneTime",e.Daily="Daily",e.Weekly="Weekly",e.BiWeekly="BiWeekly",e.Monthly="Monthly",e.Yearly="Yearly",e.Unknown="Unknown"}(ah||(ah={})),function(e){e.Debit="Debit",e.Credit="Credit"}(sh||(sh={})),function(e){e.Fixed="Fixed",e.UsageBased="UsageBased",e.Varies="Varies"}(lh||(lh={})),function(e){e.AdminFee="AdminFee",e.ApplicationFee="ApplicationFee",e.Concession="Concession",e.Insurance="Insurance",e.LateFee="LateFee",e.Legal="Legal",e.NonSufficientFundFee="NSF",e.Other="Other",e.Parking="Parking",e.Penalty="Penalty",e.Pest="Pest",e.PetDeposit="PetDeposit",e.PetRent="PetRent",e.Refund="Refund",e.Relet="Relet",e.Rent="Rent",e.SecurityDeposit="SecurityDeposit",e.Storage="Storage",e.Trash="Trash",e.Utility="Utility",e.WaterSewer="WaterSewer"}(dh||(dh={}));const uh=p`
|
|
8906
8915
|
:host {
|
|
8907
8916
|
display: block;
|
|
8908
8917
|
--table-header-bg: white;
|
|
@@ -8970,14 +8979,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
8970
8979
|
color: #888;
|
|
8971
8980
|
font-style: italic;
|
|
8972
8981
|
}
|
|
8973
|
-
`;var
|
|
8982
|
+
`;var ch=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let hh=class extends de{constructor(){super(...arguments),this.tooltip="",this.disabled=!1}render(){return H`
|
|
8974
8983
|
<div
|
|
8975
8984
|
class="tooltip-container ${this.disabled?"":"show-tooltip"}"
|
|
8976
8985
|
data-tooltip="${this.tooltip}"
|
|
8977
8986
|
>
|
|
8978
8987
|
<slot></slot>
|
|
8979
8988
|
</div>
|
|
8980
|
-
`}};
|
|
8989
|
+
`}};hh.styles=p`
|
|
8981
8990
|
:host {
|
|
8982
8991
|
display: block;
|
|
8983
8992
|
position: relative;
|
|
@@ -9011,7 +9020,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9011
9020
|
opacity: 1;
|
|
9012
9021
|
visibility: visible;
|
|
9013
9022
|
}
|
|
9014
|
-
`,
|
|
9023
|
+
`,ch([pe({type:String})],hh.prototype,"tooltip",void 0),ch([pe({type:Boolean,reflect:!0})],hh.prototype,"disabled",void 0),hh=ch([ce("simple-tooltip")],hh);const ph=p`
|
|
9015
9024
|
:host {
|
|
9016
9025
|
display: inline-flex;
|
|
9017
9026
|
}
|
|
@@ -9070,7 +9079,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9070
9079
|
font-style: italic;
|
|
9071
9080
|
cursor: not-allowed;
|
|
9072
9081
|
}
|
|
9073
|
-
`;var
|
|
9082
|
+
`;var fh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let gh=class extends de{constructor(){super(...arguments),this.feeItem=null,this._previousFeeItemId=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0}get maxQuantity(){var e,t;return null!==(t=null===(e=this.feeItem)||void 0===e?void 0:e.max_estimate)&&void 0!==t?t:10}updated(e){var t,i;if(!e.has("feeItem"))return;const n=null!==(i=null===(t=this.feeItem)||void 0===t?void 0:t.id)&&void 0!==i?i:null;n!==this._previousFeeItemId&&(this.quantity=0,this._previousFeeItemId=n)}handleIncrement(){this.disabled||this.quantity>=this.maxQuantity||(this.quantity+=1,this.notifyQuantityChange())}handleDecrement(){this.disabled||this.quantity<=0||(this.quantity=Math.max(0,this.quantity-1),this.notifyQuantityChange())}notifyQuantityChange(){this.onQuantityChange&&this.feeItem&&this.onQuantityChange({id:this.feeItem.id,quantities:[{itemType:this.feeItem.fee_name,quantity:this.quantity}]})}render(){return this.feeItem?H`
|
|
9074
9083
|
<div class="quantity-control ${this.disabled?"unavailable":""}">
|
|
9075
9084
|
<button
|
|
9076
9085
|
class="quantity-button"
|
|
@@ -9092,7 +9101,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9092
9101
|
<span class="operator-sign">+</span>
|
|
9093
9102
|
</button>
|
|
9094
9103
|
</div>
|
|
9095
|
-
`:H``}};
|
|
9104
|
+
`:H``}};gh.styles=ph,fh([pe({type:Object})],gh.prototype,"feeItem",void 0),fh([pe()],gh.prototype,"onQuantityChange",void 0),fh([pe({type:Boolean,reflect:!0})],gh.prototype,"disabled",void 0),fh([pe({type:Number})],gh.prototype,"quantity",void 0),gh=fh([ce("table-addon-qty-selector")],gh);let mh=class extends de{constructor(){super(...arguments),this.rentableItem=null,this._previousRentableItemType=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0,this.selectedItemIds=new Set}get totalAvailableItems(){var e,t,i;return null!==(i=null===(t=null===(e=this.rentableItem)||void 0===e?void 0:e.allItems)||void 0===t?void 0:t.filter(e=>e.available).length)&&void 0!==i?i:0}get maxSelectableItems(){return Math.min(this.totalAvailableItems,10)}get atMaxUnits(){return this.quantity>=this.maxSelectableItems}get atMinUnits(){return this.quantity<=0}updated(e){var t,i;if(e.has("rentableItem")){const e=null!==(i=null===(t=this.rentableItem)||void 0===t?void 0:t.type)&&void 0!==i?i:null;e!==this._previousRentableItemType&&(this.selectedItemIds=new Set,this._previousRentableItemType=e)}}handleIncrement(){this.disabled||this.atMaxUnits||this.emitChange(this.quantity+1)}handleDecrement(){this.disabled||this.atMinUnits||this.emitChange(Math.max(0,this.quantity-1))}emitChange(e){var t;this.rentableItem&&(null===(t=this.onQuantityChange)||void 0===t||t.call(this,{type:this.rentableItem.type,quantity:e}))}render(){if(!this.rentableItem)return H``;const e=this.totalAvailableItems>0,t=this.disabled||!e||this.atMaxUnits,i=this.disabled||this.quantity<=0;return H`
|
|
9096
9105
|
<div
|
|
9097
9106
|
class="quantity-control ${!e||this.disabled?"unavailable":""}"
|
|
9098
9107
|
>
|
|
@@ -9116,7 +9125,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9116
9125
|
<span class="operator-sign">+</span>
|
|
9117
9126
|
</button>
|
|
9118
9127
|
</div>
|
|
9119
|
-
`}};
|
|
9128
|
+
`}};mh.styles=ph,fh([pe({type:Object})],mh.prototype,"rentableItem",void 0),fh([pe()],mh.prototype,"onQuantityChange",void 0),fh([pe({type:Boolean,reflect:!0})],mh.prototype,"disabled",void 0),fh([pe({type:Number})],mh.prototype,"quantity",void 0),fh([pe({type:Set})],mh.prototype,"selectedItemIds",void 0),mh=fh([ce("table-rentable-item-qty-selector")],mh);var bh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let yh=class extends de{constructor(){super(...arguments),this._addons=[],this.disabled=!1,this.onAddonSelect=null,this.onRentableItemAdd=null,this.onRentableItemRemove=null,this.quantities=new Map,this.selectedRentableItemIds=new Map,this.handleAddonQuantityChange=e=>{var t;const i=e.id;1!==e.quantities.length||Array.isArray(this.quantities.get(i))?this.quantities.set(i,e.quantities):this.quantities.set(i,e.quantities[0].quantity),this.requestUpdate("quantities"),null===(t=this.onAddonSelect)||void 0===t||t.call(this,e)},this.handleRentableItemQuantityChange=e=>{var t,i,n,r,o,a;const s=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;this.quantities.set(e.type,e.quantity),this.requestUpdate("quantities");const l=this.addons.find(t=>t instanceof uc&&t.type===e.type);if(!l)return;const d=null!==(i=this.selectedRentableItemIds.get(e.type))&&void 0!==i?i:new Set,u=(c=null!==(r=null===(n=l.allItems)||void 0===n?void 0:n.filter(e=>e.available))&&void 0!==r?r:[],[...c].sort((e,t)=>e.rent!==t.rent?e.rent-t.rent:e.id.localeCompare(t.id)));var c;if(e.quantity>s){const t=e.quantity-s;let i=0;const n=Math.min(u.length,10);if(d.size+t>n)return;for(const n of u){if(i>=t)break;d.has(n.id)||(d.add(n.id),null===(o=this.onRentableItemAdd)||void 0===o||o.call(this,{id:n.id,type:e.type}),i++)}}else if(e.quantity<s){const t=s-e.quantity;let i=0;const n=function(e){return[...e].sort((e,t)=>e.rent!==t.rent?t.rent-e.rent:t.id.localeCompare(e.id))}(u.filter(e=>d.has(e.id)));for(const r of n){if(i>=t)break;d.delete(r.id),null===(a=this.onRentableItemRemove)||void 0===a||a.call(this,{id:r.id,type:e.type}),i++}}this.selectedRentableItemIds.set(e.type,d),this.requestUpdate("selectedRentableItemIds")}}set addons(e){const t=this._addons;this._addons=e,e!==t&&this.initializeQuantities(),this.requestUpdate("addons",t)}get addons(){return this._addons}preserveExistingQuantity(e,t){const i=this.quantities.get(e);return null!=i?i:t}initializeRentableItemQuantity(e,t){const i=this.preserveExistingQuantity(e.type,0);t.set(e.type,i),this.selectedRentableItemIds.has(e.type)||this.selectedRentableItemIds.set(e.type,new Set)}initializeBuildingFeeQuantity(e,t){const i=e.id,n=this.preserveExistingQuantity(i,0);t.set(i,n)}initializeQuantities(){const e=new Map;this.addons.forEach(t=>{t instanceof uc?this.initializeRentableItemQuantity(t,e):this.initializeBuildingFeeQuantity(t,e)}),this.quantities=e}getName(e){return e instanceof uc?e.displayName:e.fee_name}getSortedAddons(){return[...this.addons].sort((e,t)=>{const i=this.getName(e),n=this.getName(t);return i.localeCompare(n,navigator.language,{numeric:!0})})}isRentableItemAvailable(e){var t,i;return!(e instanceof uc)||(null!==(i=null===(t=e.allItems)||void 0===t?void 0:t.filter(e=>e.available).length)&&void 0!==i?i:0)>0}renderQtySelector(e){var t;if(e instanceof uc){const i=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;return H`
|
|
9120
9129
|
<table-rentable-item-qty-selector
|
|
9121
9130
|
.rentableItem=${e}
|
|
9122
9131
|
.quantity=${i}
|
|
@@ -9157,7 +9166,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9157
9166
|
</tbody>
|
|
9158
9167
|
</table>
|
|
9159
9168
|
</div>
|
|
9160
|
-
`:H`<div class="empty-state">No add-ons available</div> `}};
|
|
9169
|
+
`:H`<div class="empty-state">No add-ons available</div> `}};yh.styles=uh,bh([pe({type:Array})],yh.prototype,"addons",null),bh([pe({type:Boolean})],yh.prototype,"disabled",void 0),bh([pe()],yh.prototype,"onAddonSelect",void 0),bh([pe({attribute:!1})],yh.prototype,"onRentableItemAdd",void 0),bh([pe({attribute:!1})],yh.prototype,"onRentableItemRemove",void 0),bh([fe()],yh.prototype,"quantities",void 0),bh([fe()],yh.prototype,"selectedRentableItemIds",void 0),yh=bh([ce("addon-table")],yh);var vh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let wh=class extends de{constructor(){super(...arguments),this.id="",this.showChatAdditionalActions=!1,this.buildingWebchatView=null,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this.enabledChatWidgets={callDesktop:!1,chatDesktop:!1,emailDesktop:!1,textDesktop:!1,sstDesktop:!1},this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClose=()=>{}}render(){var e,t,i;const n=this.primaryColor||Xi,r=this.backgroundColor||"#ffffff",o=this.buildingWebchatView&&nn(this.buildingWebchatView.orgId,this.buildingWebchatView.id)&&n!==Xi?tn(n,.6):"black";return H`
|
|
9161
9170
|
<style>
|
|
9162
9171
|
#${this.id}::after {
|
|
9163
9172
|
border-right-color: ${o} !important;
|
|
@@ -9189,7 +9198,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9189
9198
|
.onClick=${this.onClose}
|
|
9190
9199
|
></minimize-expand-button>
|
|
9191
9200
|
</div>
|
|
9192
|
-
`}};
|
|
9201
|
+
`}};wh.styles=p`
|
|
9193
9202
|
.hideTab {
|
|
9194
9203
|
display: none;
|
|
9195
9204
|
}
|
|
@@ -9199,7 +9208,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9199
9208
|
justify-content: space-between;
|
|
9200
9209
|
gap: 32px;
|
|
9201
9210
|
}
|
|
9202
|
-
`,
|
|
9211
|
+
`,vh([pe({type:String})],wh.prototype,"id",void 0),vh([pe({type:Boolean})],wh.prototype,"showChatAdditionalActions",void 0),vh([pe({type:Object})],wh.prototype,"buildingWebchatView",void 0),vh([pe({type:String})],wh.prototype,"primaryColor",void 0),vh([pe({type:String})],wh.prototype,"backgroundColor",void 0),vh([pe({type:String})],wh.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),vh([pe({type:String})],wh.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),vh([pe({type:Object})],wh.prototype,"enabledChatWidgets",void 0),vh([pe({attribute:!0})],wh.prototype,"onClickMinimize",void 0),vh([pe({attribute:!0})],wh.prototype,"onClickEmailOption",void 0),vh([pe({attribute:!0})],wh.prototype,"onClickPhoneOption",void 0),vh([pe({attribute:!0})],wh.prototype,"onClickSSTOption",void 0),vh([pe({attribute:!0})],wh.prototype,"onClose",void 0),wh=vh([ce("chat-additional-actions")],wh);const xh=p`
|
|
9203
9212
|
:host {
|
|
9204
9213
|
display: block;
|
|
9205
9214
|
}
|
|
@@ -9236,9 +9245,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9236
9245
|
font-size: 0.9rem;
|
|
9237
9246
|
opacity: 0.9;
|
|
9238
9247
|
}
|
|
9239
|
-
`;var
|
|
9248
|
+
`;var Ch=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let $h=class extends de{getFormattedEndDate(e){return new Date(e.endDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}render(){return this.incentive?H`
|
|
9240
9249
|
<div class="incentive-banner">
|
|
9241
|
-
<div class="incentive-icon">${
|
|
9250
|
+
<div class="incentive-icon">${Ec({size:32})}</div>
|
|
9242
9251
|
<div class="incentive-content">
|
|
9243
9252
|
<h2 class="incentive-title">
|
|
9244
9253
|
${this.incentive.originalIncentiveString}
|
|
@@ -9249,7 +9258,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9249
9258
|
</p>
|
|
9250
9259
|
</div>
|
|
9251
9260
|
</div>
|
|
9252
|
-
`:H``}}
|
|
9261
|
+
`:H``}};$h.styles=xh,Ch([pe({type:Object})],$h.prototype,"incentive",void 0),$h=Ch([ce("incentive-banner")],$h);var Sh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let kh=class extends de{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.primaryColor=Xi,this.backgroundColor=Zi,this.onCloseClicked=null,this.onClickEmailOption=null,this.onClickPhoneOption=null,this.onClickSSTOption=null,this.onClickTextUsOption=null,this.isCalculatingQuote=!1,this.isLoadingLayouts=!0,this.isExporting=!1,this.selectedLayoutIds=[vc],this.selectedUnit=null,this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1,num_cats:0,num_dogs:0,num_other_pets:0},this.desiredRentableItems=[],this.moveInDateString=$c(),this.leaseTerm=12,this.buildingWebchatView=null,this.incentives=[],this.quote=null,this.pdfUrl=null,this.quoteError=null,this.groupedFees={[cc.ONE_TIME]:[],[cc.MONTHLY]:[],[cc.WEEKLY]:[],[cc.BI_WEEKLY]:[],[cc.ANNUALLY]:[],[cc.DAILY]:[],[cc.AS_NEEDED]:[],[cc.NEVER]:[]},this.rentableItems=[],this.maxPets=null,this.units=[],this.isLoadingUnits=!0,this.quoteAbortController=null,this.quoteDebounceTimer=null,this.startQuoteApiCall=async()=>{var e;null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=new AbortController,this.isCalculatingQuote=!0,await this.performQuoteCalculation(this.quoteAbortController.signal)},this.firstUpdated=async()=>{this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor),await Promise.allSettled([this.setupCalculator(),this.fetchUnits()])},this.setupCalculator=async()=>{if(!this.buildingSlug||!this.orgSlug)return void(this.isLoadingLayouts=!1);const e=_a(this.orgSlug,this.buildingSlug).then(e=>{e&&(this.buildingWebchatView=e)}).finally(()=>{this.isLoadingLayouts=!1}),t=yc(this.buildingSlug).then(e=>{e&&(this.groupedFees=this.groupFees(e.fees),this.maxPets=function(e){const t=e.filter(e=>Ac.includes(e.category)).map(e=>e.limit).filter(e=>"number"==typeof e);return t.length?Math.min(...t):null}(e.fees),this.rentableItems=e.rentableItems)});await Promise.allSettled([e,t])},this.requestQuoteCalculation=()=>{if(this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),!this.selectedUnit||!this.moveInDateString)return this.clearQuote(),void(this.isCalculatingQuote=!1);this.quoteDebounceTimer=window.setTimeout(()=>{this.startQuoteApiCall(),this.quoteDebounceTimer=null},1e3)},this.handleUnitSelect=e=>{const t=!this.selectedUnit;if(this.selectedUnit=e,t)return this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),this.isCalculatingQuote=!0,void this.startQuoteApiCall();this.requestQuoteCalculation()},this.handleMoveInDateChange=async e=>{this.moveInDateString=e,this.clearQuote(),await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleLeaseTermChange=async e=>{this.leaseTerm=e,this.clearQuote(),await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleChargeInputsChange=e=>{this.chargeInputs={...this.chargeInputs,...e},this.requestQuoteCalculation()},this.handleRentableItemAdd=e=>{this.desiredRentableItems.some(t=>t.id===e.id)||this.desiredRentableItems.push(e),this.requestQuoteCalculation()},this.handleRentableItemRemove=e=>{this.desiredRentableItems=this.desiredRentableItems.filter(t=>t.id!==e.id),this.requestQuoteCalculation()},this.groupFees=e=>e.reduce((e,t)=>{const i=t.frequency||cc.ONE_TIME;return e[i]=[...e[i]||[],t],e},{}),this.handleClickEmailOption=e=>{this.handleClose(),this.onClickEmailOption&&this.onClickEmailOption(e)},this.handleClickPhoneOption=e=>{this.handleClose(),this.onClickPhoneOption&&this.onClickPhoneOption(e)},this.handleClickSSTOption=e=>{this.handleClose(),this.onClickSSTOption&&this.onClickSSTOption(e)},this.handleClickTextUsOption=e=>{this.handleClose(),this.onClickTextUsOption&&this.onClickTextUsOption(e)},this.handleClose=()=>{var e;null===(e=this.onCloseClicked)||void 0===e||e.call(this)},this.handleSelectLayout=async e=>{this.selectedLayoutIds=e,await this.fetchUnits()},this.handleShare=async()=>{var e,t;this.selectedUnit&&this.moveInDateString&&this.pdfUrl&&(Wo("feeCalculatorPdfDownloaded",{buildingSlug:this.buildingSlug,quoteId:null!==(t=null===(e=this.quote)||void 0===e?void 0:e.id)&&void 0!==t?t:null}),window.open(this.pdfUrl,"_blank"))},this.fetchUnits=async()=>{let e;this.isLoadingUnits=!0,this.selectedLayoutIds.includes(vc)||(e=this.selectedLayoutIds.map(e=>Ju(e)));try{if(this.units=await kc({buildingSlug:this.buildingSlug,moveInDateString:this.moveInDateString,...e?{numBedrooms:e}:{},leaseTerm:this.leaseTerm}),this.selectedUnit){this.units.some(e=>{var t;return e.id===(null===(t=this.selectedUnit)||void 0===t?void 0:t.id)})||(this.selectedUnit=null,this.clearQuote())}}finally{this.isLoadingUnits=!1}}}clearQuote(){this.quote=null,this.pdfUrl=null,this.quoteError=null}async performQuoteCalculation(e){var t;if(!this.selectedUnit||!this.moveInDateString)return this.clearQuote(),void(this.isCalculatingQuote=!1);const i=this.moveInDateString,n=this.selectedUnit.id,r=this.leaseTerm;try{const o=await xc({buildingSlug:this.buildingSlug,unitId:n,chargeInputs:this.chargeInputs,rentableItems:this.desiredRentableItems,leaseTerm:r,moveInDate:i},e);if(e.aborted)return;this.quote=o.quote,this.pdfUrl=o.pdfUrl||null,this.quoteError=null!==(t=o.error)&&void 0!==t?t:null,this.quote&&Wo("feeCalculatorQuoteGenerated",{buildingSlug:this.buildingSlug,unitId:n,leaseTerm:r})}catch(e){"AbortError"!==(null==e?void 0:e.name)&&(this.quote=null,this.pdfUrl=null,this.quoteError={type:"unknown"},this.isCalculatingQuote=!1,Do({logType:Mo.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:e},error:e}))}finally{e.aborted||(this.isCalculatingQuote=!1)}}get layouts(){var e,t;return null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.layoutOptions)&&void 0!==t?t:[]}updated(e){(e.has("primaryColor")||e.has("backgroundColor"))&&(this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor))}disconnectedCallback(){var e;super.disconnectedCallback(),this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=null}render(){var e,t;const i=this.isExporting||this.isCalculatingQuote||!this.selectedUnit||!this.moveInDateString||!this.pdfUrl;return H`
|
|
9253
9262
|
<div
|
|
9254
9263
|
class="fee-calculator-container"
|
|
9255
9264
|
@keydown=${e=>e.stopPropagation()}
|
|
@@ -9281,7 +9290,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9281
9290
|
class="close-button"
|
|
9282
9291
|
@click=${this.handleClose}
|
|
9283
9292
|
>
|
|
9284
|
-
${
|
|
9293
|
+
${ad("gray")}
|
|
9285
9294
|
</button>
|
|
9286
9295
|
</div>
|
|
9287
9296
|
</div>
|
|
@@ -9331,7 +9340,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9331
9340
|
</div>
|
|
9332
9341
|
`:""}
|
|
9333
9342
|
</div>
|
|
9334
|
-
`}};
|
|
9343
|
+
`}};kh.styles=lc,Sh([pe({attribute:!0})],kh.prototype,"buildingSlug",void 0),Sh([pe({attribute:!0})],kh.prototype,"orgSlug",void 0),Sh([pe({type:String})],kh.prototype,"primaryColor",void 0),Sh([pe({type:String})],kh.prototype,"backgroundColor",void 0),Sh([pe()],kh.prototype,"onCloseClicked",void 0),Sh([pe()],kh.prototype,"onClickEmailOption",void 0),Sh([pe()],kh.prototype,"onClickPhoneOption",void 0),Sh([pe()],kh.prototype,"onClickSSTOption",void 0),Sh([pe()],kh.prototype,"onClickTextUsOption",void 0),Sh([fe()],kh.prototype,"isCalculatingQuote",void 0),Sh([fe()],kh.prototype,"isLoadingLayouts",void 0),Sh([fe()],kh.prototype,"isExporting",void 0),Sh([fe()],kh.prototype,"selectedLayoutIds",void 0),Sh([fe()],kh.prototype,"selectedUnit",void 0),Sh([fe()],kh.prototype,"chargeInputs",void 0),Sh([fe()],kh.prototype,"desiredRentableItems",void 0),Sh([fe()],kh.prototype,"moveInDateString",void 0),Sh([fe()],kh.prototype,"leaseTerm",void 0),Sh([fe()],kh.prototype,"buildingWebchatView",void 0),Sh([fe()],kh.prototype,"incentives",void 0),Sh([fe()],kh.prototype,"quote",void 0),Sh([fe()],kh.prototype,"pdfUrl",void 0),Sh([fe()],kh.prototype,"quoteError",void 0),Sh([fe()],kh.prototype,"groupedFees",void 0),Sh([fe()],kh.prototype,"rentableItems",void 0),Sh([fe()],kh.prototype,"maxPets",void 0),Sh([fe()],kh.prototype,"units",void 0),Sh([fe()],kh.prototype,"isLoadingUnits",void 0),kh=Sh([ce("fee-calculator")],kh);const Ah=p`
|
|
9335
9344
|
#minimize-mobile {
|
|
9336
9345
|
position: absolute;
|
|
9337
9346
|
top: -12px;
|
|
@@ -9380,9 +9389,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9380
9389
|
justify-content: center;
|
|
9381
9390
|
align-items: center;
|
|
9382
9391
|
}
|
|
9383
|
-
`,
|
|
9392
|
+
`,Th=(e="white")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
9384
9393
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46964 0.488343H9.53036C10.898 0.488331 11.9813 0.488321 12.829 0.602304C13.7015 0.719609 14.4077 0.966767 14.9647 1.52369C15.5216 2.08061 15.7687 2.78681 15.886 3.65932C16 4.50711 16 5.59038 16 6.95802V7.04198C16 8.40962 16 9.49289 15.886 10.3407C15.7687 11.2132 15.5216 11.9194 14.9647 12.4763C14.4077 13.0332 13.7015 13.2804 12.829 13.3977C11.9813 13.5117 10.898 13.5117 9.53035 13.5117H6.46965C5.10201 13.5117 4.01875 13.5117 3.17096 13.3977C2.29846 13.2804 1.59227 13.0332 1.03534 12.4763C0.478423 11.9194 0.231266 11.2132 0.113961 10.3407C-2.09587e-05 9.49289 -1.15596e-05 8.40962 2.39342e-07 7.04198V6.95801C-1.15596e-05 5.59037 -2.09587e-05 4.50711 0.113961 3.65932C0.231266 2.78681 0.478423 2.08061 1.03534 1.52369C1.59227 0.966767 2.29846 0.719609 3.17096 0.602304C4.01875 0.488321 5.10201 0.488331 6.46964 0.488343ZM3.3197 1.70863C2.57098 1.8093 2.13962 1.99807 1.82467 2.31302C1.50973 2.62797 1.32095 3.05934 1.22029 3.80806C1.11746 4.57283 1.11628 5.58096 1.11628 7C1.11628 8.41903 1.11746 9.42716 1.22029 10.1919C1.32095 10.9407 1.50973 11.372 1.82467 11.687C2.13962 12.0019 2.57098 12.1907 3.3197 12.2914C4.08447 12.3942 5.0926 12.3954 6.51163 12.3954H9.48837C10.9074 12.3954 11.9155 12.3942 12.6803 12.2914C13.429 12.1907 13.8604 12.0019 14.1753 11.687C14.4903 11.372 14.6791 10.9407 14.7797 10.1919C14.8825 9.42716 14.8837 8.41903 14.8837 7C14.8837 5.58096 14.8825 4.57283 14.7797 3.80806C14.6791 3.05934 14.4903 2.62797 14.1753 2.31302C13.8604 1.99807 13.429 1.8093 12.6803 1.70863C11.9155 1.60581 10.9074 1.60463 9.48837 1.60463H6.51163C5.0926 1.60463 4.08448 1.60581 3.3197 1.70863ZM3.10611 3.66593C3.30345 3.42912 3.65539 3.39713 3.8922 3.59446L5.49882 4.93332C6.19311 5.5119 6.67515 5.9123 7.08211 6.17404C7.47605 6.42741 7.7432 6.51246 8 6.51246C8.2568 6.51246 8.52395 6.42741 8.91789 6.17404C9.32485 5.9123 9.80689 5.5119 10.5012 4.93332L12.1078 3.59446C12.3446 3.39713 12.6966 3.42912 12.8939 3.66593C13.0912 3.90273 13.0592 4.25468 12.8224 4.45202L11.1878 5.81419C10.5282 6.36389 9.99359 6.80943 9.52173 7.11291C9.0302 7.42904 8.5515 7.62875 8 7.62875C7.4485 7.62875 6.9698 7.42904 6.47827 7.11291C6.00641 6.80943 5.47179 6.36389 4.81218 5.81419L3.17757 4.45202C2.94077 4.25468 2.90877 3.90273 3.10611 3.66593Z" fill="${e}"/>
|
|
9385
|
-
</svg>`,
|
|
9394
|
+
</svg>`,Eh=(e="black")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
9386
9395
|
<path d="M15.6825 6.11855H0.00653076C0.0588276 4.00052 1.79117 2.30087 3.92226 2.30087H4.41255V3.6083C4.41255 3.88285 4.63481 4.09858 4.90283 4.09858C5.17085 4.09858 5.39311 3.88285 5.39311 3.6083V2.30087H10.2959V3.6083C10.2959 3.88285 10.5182 4.09858 10.7862 4.09858C11.0542 4.09858 11.2765 3.88285 11.2765 3.6083V2.30087H11.7668C13.8979 2.30087 15.6302 4.00052 15.6825 6.11855Z" fill="${e}"/>
|
|
9387
9396
|
<path d="M15.0641 7.39731V14.0677C15.0641 15.8922 13.5861 17.365 11.7668 17.365H3.92227C2.10298 17.365 0.625 15.8922 0.625 14.0677V7.39731H15.0641Z" fill="transparent" stroke="${e}" stroke-width="1.25"/>
|
|
9388
9397
|
<path d="M4.90283 1V2.30742" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -9390,14 +9399,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9390
9399
|
<path d="M0 6.11862H0.00653352C-3.5908e-06 6.15131 0 6.19053 0 6.22322V6.11862Z" fill="white"/>
|
|
9391
9400
|
<path d="M15.689 6.11862V6.22322C15.689 6.19053 15.689 6.15131 15.6825 6.11862H15.689Z" fill="white"/>
|
|
9392
9401
|
<path d="M4.74594 11.9562L6.56326 13.7735C6.8182 14.0285 7.23004 14.0285 7.48499 13.7735L10.9366 10.3219" stroke="${e}" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
9393
|
-
</svg>`,
|
|
9402
|
+
</svg>`,_h=(e="white")=>z`
|
|
9394
9403
|
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
9395
9404
|
<path
|
|
9396
9405
|
fill-rule="evenodd"
|
|
9397
9406
|
clip-rule="evenodd"
|
|
9398
9407
|
d="M6.64026 0.25H8.8598C10.0157 0.249995 10.9219 0.249992 11.6459 0.318826C12.3838 0.388987 12.988 0.534458 13.5206 0.860861C14.0784 1.20267 14.5474 1.67164 14.8892 2.22942C15.2156 2.76206 15.3611 3.36627 15.4312 4.10419C15.5001 4.82813 15.5001 5.73432 15.5001 6.89025V7.65964C15.5001 8.48243 15.5001 9.12755 15.4645 9.64868C15.4283 10.1789 15.3535 10.6202 15.1845 11.0283C14.7638 12.044 13.9568 12.851 12.9411 13.2717C12.3607 13.5121 11.6997 13.5654 10.7947 13.581C10.4782 13.5865 10.2777 13.5905 10.1248 13.6074C9.98202 13.6232 9.92665 13.6464 9.89426 13.6652C9.86008 13.6851 9.81351 13.7213 9.73267 13.8323C9.64518 13.9523 9.54632 14.1182 9.38955 14.3831L8.99874 15.0433C8.44104 15.9856 7.05899 15.9856 6.5013 15.0433L6.11048 14.3831C5.95371 14.1182 5.85485 13.9523 5.76736 13.8323C5.68652 13.7213 5.63995 13.6851 5.60577 13.6652C5.57338 13.6464 5.51801 13.6232 5.37519 13.6074C5.22235 13.5905 5.02184 13.5865 4.70528 13.581C3.80031 13.5654 3.13933 13.5121 2.559 13.2717C1.54327 12.851 0.736277 12.044 0.315547 11.0283C0.146515 10.6202 0.0717299 10.1789 0.0355529 9.64868C-4.05001e-06 9.12754 -2.20251e-06 8.48243 1.60891e-07 7.65963L7.4949e-08 6.89026C-4.52294e-06 5.73432 -8.08928e-06 4.82814 0.0688256 4.10419C0.138987 3.36627 0.284458 2.76206 0.610861 2.22942C0.95267 1.67164 1.42164 1.20267 1.97942 0.860861C2.51206 0.534458 3.11627 0.388987 3.85419 0.318826C4.57814 0.249992 5.48432 0.249995 6.64026 0.25ZM3.95654 1.39537C3.29779 1.458 2.87862 1.57812 2.54445 1.78291C2.13217 2.03555 1.78555 2.38217 1.53291 2.79445C1.32812 3.12862 1.208 3.54779 1.14537 4.20654C1.08197 4.87334 1.0814 5.7282 1.0814 6.91863V7.63956C1.0814 8.48674 1.08169 9.09505 1.11444 9.57507C1.14686 10.0502 1.20927 10.3601 1.31463 10.6144C1.6256 11.3652 2.22208 11.9617 2.97284 12.2726C3.34458 12.4266 3.81883 12.4842 4.72391 12.4998L4.74685 12.5002C5.03378 12.5051 5.28522 12.5094 5.49421 12.5326C5.71878 12.5574 5.9384 12.6077 6.14946 12.7304C6.35874 12.8522 6.50969 13.0148 6.64128 13.1953C6.76287 13.3622 6.88783 13.5733 7.02936 13.8124L7.4319 14.4925C7.57086 14.7273 7.92917 14.7273 8.06813 14.4925L8.47067 13.8124C8.6122 13.5733 8.73716 13.3622 8.85875 13.1953C8.99034 13.0148 9.14129 12.8522 9.35057 12.7304C9.56163 12.6077 9.78126 12.5574 10.0058 12.5326C10.2148 12.5094 10.4662 12.5051 10.7532 12.5002L10.7761 12.4998C11.6812 12.4842 12.1555 12.4266 12.5272 12.2726C13.278 11.9617 13.8745 11.3652 14.1854 10.6144C14.2908 10.3601 14.3532 10.0502 14.3856 9.57507C14.4184 9.09505 14.4187 8.48674 14.4187 7.63956V6.91863C14.4187 5.7282 14.4181 4.87334 14.3547 4.20654C14.2921 3.54779 14.1719 3.12862 13.9672 2.79445C13.7145 2.38217 13.3679 2.03555 12.9556 1.78291C12.6214 1.57812 12.2023 1.458 11.5435 1.39537C10.8767 1.33197 10.0219 1.3314 8.83143 1.3314H6.66863C5.4782 1.3314 4.62334 1.33197 3.95654 1.39537ZM7.75003 3.85467C8.04865 3.85467 8.29073 4.09674 8.29073 4.39536V10.1628C8.29073 10.4614 8.04865 10.7035 7.75003 10.7035C7.45141 10.7035 7.20933 10.4614 7.20933 10.1628V4.39536C7.20933 4.09674 7.45141 3.85467 7.75003 3.85467ZM4.8663 5.29653C5.16492 5.29653 5.407 5.53861 5.407 5.83723V8.72096C5.407 9.01958 5.16492 9.26166 4.8663 9.26166C4.56768 9.26166 4.3256 9.01958 4.3256 8.72096V5.83723C4.3256 5.53861 4.56768 5.29653 4.8663 5.29653ZM10.6338 5.29653C10.9324 5.29653 11.1745 5.53861 11.1745 5.83723V8.72096C11.1745 9.01958 10.9324 9.26166 10.6338 9.26166C10.3351 9.26166 10.0931 9.01958 10.0931 8.72096V5.83723C10.0931 5.53861 10.3351 5.29653 10.6338 5.29653Z"
|
|
9399
9408
|
fill="${e}"/>
|
|
9400
|
-
</svg>`,
|
|
9409
|
+
</svg>`,Oh=(e="white")=>z`<svg aria-hidden="true" focusable="false" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9401
9410
|
<g clip-path="url(#clip0_18382_27345)">
|
|
9402
9411
|
<g clip-path="url(#clip1_18382_27345)">
|
|
9403
9412
|
<path d="M9.91666 0.625V3.45833C9.91666 3.6462 9.99128 3.82636 10.1241 3.9592C10.257 4.09204 10.4371 4.16667 10.625 4.16667H13.4583" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -9414,7 +9423,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9414
9423
|
</clipPath>
|
|
9415
9424
|
</defs>
|
|
9416
9425
|
</svg>
|
|
9417
|
-
|
|
9426
|
+
`,Ph=(e="white",t=20,i=-2)=>z`
|
|
9418
9427
|
<svg
|
|
9419
9428
|
aria-hidden="true"
|
|
9420
9429
|
focusable="false"
|
|
@@ -9489,7 +9498,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9489
9498
|
</clipPath>
|
|
9490
9499
|
</defs>
|
|
9491
9500
|
</svg>
|
|
9492
|
-
`;var
|
|
9501
|
+
`;var Ih=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Nh=class extends de{constructor(){super(...arguments),this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClickApplyNowOption=()=>{},this.onClickPriceCalculatorOption=()=>{},this.onChatTapped=()=>{},this.hideChat=!1,this.isMobileDesign=!1,this.primaryColor=Xi,this.backgroundColor=Zi,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasCallUsEnabled=!1,this.hasTextUsEnabled=!1,this.hasSSTEnabled=!1,this.hasApplyNowEnabled=!1,this.hasPricingCalculatorEnabled=!1,this.applicationLink="",this.overrideRentgrata=!1,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.renderListElement=(e,t,i,n)=>e?H` <li>
|
|
9493
9502
|
<button
|
|
9494
9503
|
@click=${t}
|
|
9495
9504
|
class="typeMobile-bttn"
|
|
@@ -9505,12 +9514,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9505
9514
|
</button>
|
|
9506
9515
|
</li>`:""}render(){return H`<div class="typeMobile-list">
|
|
9507
9516
|
<ul>
|
|
9508
|
-
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,
|
|
9509
|
-
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption
|
|
9510
|
-
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,
|
|
9511
|
-
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,
|
|
9512
|
-
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,
|
|
9513
|
-
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,
|
|
9517
|
+
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,Oh(this.foregroundColorOnSecondaryBackgroundColor),"Apply now")}
|
|
9518
|
+
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,Ph(this.foregroundColorOnSecondaryBackgroundColor),"Price calculator")}
|
|
9519
|
+
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,Th(this.foregroundColorOnSecondaryBackgroundColor),"Email us")}
|
|
9520
|
+
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,Yd(this.foregroundColorOnSecondaryBackgroundColor),"Call or text us")}
|
|
9521
|
+
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,Eh(this.foregroundColorOnSecondaryBackgroundColor),"Book a tour")}
|
|
9522
|
+
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,_h(this.foregroundColorOnSecondaryBackgroundColor),"Chat with us")}
|
|
9514
9523
|
${this.isMobileDesign||this.hideChat?"":H`
|
|
9515
9524
|
<li>
|
|
9516
9525
|
<minimize-expand-button
|
|
@@ -9522,20 +9531,20 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9522
9531
|
</li>
|
|
9523
9532
|
`}
|
|
9524
9533
|
</ul>
|
|
9525
|
-
</div>`}};
|
|
9534
|
+
</div>`}};Nh.styles=[Ah],Ih([pe({attribute:!0})],Nh.prototype,"onClickMinimize",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onClickEmailOption",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onClickPhoneOption",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onClickSSTOption",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onClickApplyNowOption",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onClickPriceCalculatorOption",void 0),Ih([pe({attribute:!0})],Nh.prototype,"onChatTapped",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hideChat",void 0),Ih([pe({attribute:!0})],Nh.prototype,"isMobileDesign",void 0),Ih([pe({attribute:!0})],Nh.prototype,"primaryColor",void 0),Ih([pe({attribute:!0})],Nh.prototype,"backgroundColor",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasChatEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasEmailEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasCallUsEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasTextUsEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasSSTEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasApplyNowEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"hasPricingCalculatorEnabled",void 0),Ih([pe({attribute:!0})],Nh.prototype,"applicationLink",void 0),Ih([pe({attribute:!0})],Nh.prototype,"overrideRentgrata",void 0),Ih([pe({attribute:!0})],Nh.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Ih([pe({attribute:!0})],Nh.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Nh=Ih([ce("mobile-launcher")],Nh);const Mh=(e="white")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
9526
9535
|
<path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9527
|
-
</svg>`;var
|
|
9536
|
+
</svg>`;var Dh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Lh=class extends de{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Xi,this.toExpand=!1}render(){return H`
|
|
9528
9537
|
<div class=${"button-container"} @click=${this.onClick}>
|
|
9529
9538
|
<div
|
|
9530
9539
|
class="inner-container"
|
|
9531
9540
|
style=${Ki({background:this.primaryColor})}
|
|
9532
9541
|
>
|
|
9533
|
-
${this.toExpand?
|
|
9542
|
+
${this.toExpand?Mh("black"):((e="white")=>z`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
9534
9543
|
<path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9535
9544
|
</svg>`)("black")}
|
|
9536
9545
|
</div>
|
|
9537
9546
|
</div>
|
|
9538
|
-
`}};
|
|
9547
|
+
`}};Lh.styles=[p`
|
|
9539
9548
|
.button-container {
|
|
9540
9549
|
width: 36px;
|
|
9541
9550
|
height: 36px;
|
|
@@ -9559,11 +9568,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9559
9568
|
.button-container:hover {
|
|
9560
9569
|
filter: brightness(90%);
|
|
9561
9570
|
}
|
|
9562
|
-
`],
|
|
9571
|
+
`],Dh([pe({attribute:!0})],Lh.prototype,"onClick",void 0),Dh([pe({attribute:!0})],Lh.prototype,"primaryColor",void 0),Dh([pe({attribute:!0})],Lh.prototype,"toExpand",void 0),Lh=Dh([ce("collapse-expand-button")],Lh);const Rh=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.openWidget()},Bh=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.close()},Uh=()=>!!window.rentgrata;var jh=i(3950),Fh=i.n(jh);const Hh=(e="black")=>z`<svg aria-hidden="true" focusable="false" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9563
9572
|
<path d="M6 6C7.65685 6 9 4.65685 9 3C9 1.34315 7.65685 0 6 0C4.34315 0 3 1.34315 3 3C3 4.65685 4.34315 6 6 6ZM8 3C8 4.10457 7.10457 5 6 5C4.89543 5 4 4.10457 4 3C4 1.89543 4.89543 1 6 1C7.10457 1 8 1.89543 8 3Z" fill="${e}"/>
|
|
9564
9573
|
<path d="M12 11C12 12 11 12 11 12H1C1 12 0 12 0 11C0 10 1 7 6 7C11 7 12 10 12 11ZM11 10.9965C10.9986 10.7497 10.8462 10.0104 10.1679 9.33211C9.51563 8.67985 8.2891 8 5.99999 8C3.71088 8 2.48435 8.67985 1.8321 9.33211C1.15375 10.0104 1.00142 10.7497 1 10.9965H11Z" fill="${e}"/>
|
|
9565
9574
|
</svg>
|
|
9566
|
-
`;var
|
|
9575
|
+
`;var zh=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Gh=class extends de{constructor(){super(...arguments),this.isMinimized=!1,this.mobileStyles={},this.isFirstMount=!1,this.openSSTWindowOnLoad=!1,this.autoOpenChatWidget=!1,this.phoneNumber="",this.buildingName="",this.chatId="",this.orgLegalName="",this.country=null,this.buildingState=null,this.chatCallUsHeader="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.selfGuidedTourEnabled=!1,this.selfGuidedToursTypeOffered="",this.designConcept="",this.featureFlagShowDropdown="",this.leadSources=[],this.currentLeadSource="",this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.hasChatEnabledDesktop=!1,this.hasChatEnabledMobile=!1,this.hasEmailEnabledDesktop=!1,this.hasEmailEnabledMobile=!1,this.hasApplyNowEnabledDesktop=!1,this.hasApplyNowEnabledMobile=!1,this.applicationLink="",this.hasCallUsEnabledDesktop=!1,this.hasCallUsEnabledMobile=!1,this.hasTextUsEnabledDesktop=!1,this.hasTextUsEnabledMobile=!1,this.hasSSTEnabledDesktop=!1,this.hasSSTEnabledMobile=!1,this.tourTypeOptions=[],this.layoutOptions=[],this.bedroomPreferenceRequired=!1,this.brokerIntakeEnabled=!1,this.tourSchedulerV2=!1,this.getSessionToken=()=>null,this.hasDynamicSchedulingEnabled=!1,this.hasPricingCalculatorEnabledDesktop=!1,this.hasPricingCalculatorEnabledMobile=!1,this.onExitChat=()=>{},this.hasHideMobileFeatures=!1,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.showTourNextToChat=!1,this.onChatTapped=()=>{},this.handleChatTapped=()=>{Wo("chatOpened",{buildingId:this.buildingId}),this.onChatTapped()},this.onClickMinimize=()=>{},this.onSstClose=Fh(),this.overrideRentgrata=!1,this.launcherStyles={},this.primaryColor=Xi,this.backgroundColor=Zi,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this._isMobile=Fr(),this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.isMobileFeaturesExpanded=!1,this.getNumCallToActions=()=>[this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile,!!this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile),this.hasSSTEnabledDesktop||this.hasSSTEnabledMobile,this.hasTextUsEnabledDesktop||this.hasTextUsEnabledMobile,this.hasApplyNowEnabledDesktop||this.hasApplyNowEnabledMobile,this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile].filter(e=>e).length,this.emailUsWindowRef=Oe(),this.tourSchedulerRef=Oe(),this.tourSchedulerV2Ref=Oe(),this.sstWindowIsV2=!1,this.calculatorWindowRef=Oe(),this.updated=async()=>{this.attachOnClickToEmailUsWindow(),this.attachOnClickToSSTWindow(),this.attachOnClickToCalculatorWindow(),(this.isEmailWindowOpen||this.isCallUsWindowOpen)&&this.isSSTWindowOpen&&this.onCloseSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerV2Ref.value;e&&(e.onCloseClicked=this.onCloseSSTWindow);const t=this.tourSchedulerRef.value;t&&(t.onCloseClicked=this.onCloseSSTWindow)},this.attachOnClickToCalculatorWindow=()=>{const e=this.calculatorWindowRef.value;e&&(e.onCloseClicked=this.onCloseCalculatorWindow,e.onClickEmailOption=this.onClickEmailOption,e.onClickPhoneOption=this.onClickPhoneOption,e.onClickSSTOption=this.onClickSSTOption,e.onClickTextUsOption=this.onClickTextUsOption)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),Bh(),Wo("emailUsClicked",{buildingId:this.buildingId}),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.onClickPhoneOption=e=>{e.preventDefault(),e.stopPropagation(),Bh(),Wo("callTextUsClicked",{buildingId:this.buildingId}),this.isCallUsWindowOpen=!0},this.onClickApplyNowOption=e=>{e.preventDefault(),e.stopPropagation(),Bh(),Wo("applyNowClicked",{buildingId:this.buildingId,applicationLink:this.applicationLink}),window.open(this.applicationLink,"_blank")},this.onClickPriceCalculatorOption=e=>{e.preventDefault(),e.stopPropagation(),Bh(),Wo("feeCalculatorOpened",{buildingId:this.buildingId}),this.isCalculatorWindowOpen=!0},this.onClosePhoneWindow=()=>{this.isCallUsWindowOpen=!1},this.onClickSSTOption=e=>{e.preventDefault(),e.stopPropagation(),Bh(),Wo("bookTourClicked",{buildingId:this.buildingId}),this.tourSchedulerV2||(go(),mo(this.buildingId)),this.isSSTWindowOpen=!0},this.onCloseSSTWindow=()=>{this.onSstClose(),this.isSSTWindowOpen=!1,this.showTourNextToChat&&this.dispatchEvent(new CustomEvent("closeShowTourNextToChat",{bubbles:!0}))},this.onCloseCalculatorWindow=()=>{this.isCalculatorWindowOpen=!1},this.onClickTextUsOption=e=>{e.preventDefault(),e.stopPropagation(),this.isTextUsWindowOpen=!0},this.isCallToActionWindowOpen=()=>1===[this.isEmailWindowOpen,this.isCallUsWindowOpen,this.isSSTWindowOpen,this.isTextUsWindowOpen,this.isCalculatorWindowOpen].filter(e=>e).length,this.toggleMobileFeatures=()=>{this.isMobileFeaturesExpanded=!this.isMobileFeaturesExpanded},this.renderActionPills=()=>this._isMobile||this.isMinimized||this.designConcept===ka.MINIMIZED?H` ${this.hasHideMobileFeatures&&this._isMobile?H`<collapse-expand-button
|
|
9567
9576
|
.toExpand=${this.isMobileFeaturesExpanded}
|
|
9568
9577
|
.primaryColor=${this.primaryColor}
|
|
9569
9578
|
.onClick=${this.toggleMobileFeatures}
|
|
@@ -9577,7 +9586,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9577
9586
|
.onClickApplyNowOption=${this.onClickApplyNowOption}
|
|
9578
9587
|
.onClickPriceCalculatorOption=${this.onClickPriceCalculatorOption}
|
|
9579
9588
|
.overrideRentgrata=${this.overrideRentgrata}
|
|
9580
|
-
.isMobileDesign=${this._isMobile||this.designConcept===
|
|
9589
|
+
.isMobileDesign=${this._isMobile||this.designConcept===ka.MINIMIZED}
|
|
9581
9590
|
.primaryColor=${this.primaryColor}
|
|
9582
9591
|
.backgroundColor=${this.backgroundColor}
|
|
9583
9592
|
.hasChatEnabled=${this._isMobile?this.hasChatEnabledMobile:this.hasChatEnabledDesktop}
|
|
@@ -9590,7 +9599,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9590
9599
|
.hasPricingCalculatorEnabled=${this._isMobile?!(this.hasHideMobileFeatures&&!this.isMobileFeaturesExpanded)&&this.hasPricingCalculatorEnabledMobile:this.hasPricingCalculatorEnabledDesktop}
|
|
9591
9600
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
9592
9601
|
.foregroundColorOnSecondaryBackgroundColor=${this.foregroundColorOnSecondaryBackgroundColor}
|
|
9593
|
-
></mobile-launcher>`:this.designConcept===
|
|
9602
|
+
></mobile-launcher>`:this.designConcept===ka.EMOJI?this.emojiPillList():this.verticalPillList(),this.emojiPillList=()=>{const e=[{pillKey:"Email",pill:this.hasEmailEnabledDesktop?H` <button
|
|
9594
9603
|
class="type-hey__pill"
|
|
9595
9604
|
@click=${this.onClickEmailOption}
|
|
9596
9605
|
style=${Ki({background:this.backgroundColor})}
|
|
@@ -9598,7 +9607,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9598
9607
|
>
|
|
9599
9608
|
<div class="type-hey__pill-left">
|
|
9600
9609
|
<div class="type-hey__icon">
|
|
9601
|
-
${
|
|
9610
|
+
${Th(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9602
9611
|
</div>
|
|
9603
9612
|
<div
|
|
9604
9613
|
style=${Ki({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -9607,7 +9616,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9607
9616
|
</div>
|
|
9608
9617
|
</div>
|
|
9609
9618
|
<div class="type-gradient__icon">
|
|
9610
|
-
${
|
|
9619
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9611
9620
|
</div>
|
|
9612
9621
|
</button>`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?H`
|
|
9613
9622
|
<button
|
|
@@ -9618,7 +9627,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9618
9627
|
>
|
|
9619
9628
|
<div class="type-hey__pill-left">
|
|
9620
9629
|
<div class="type-hey__icon">
|
|
9621
|
-
${
|
|
9630
|
+
${Eh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9622
9631
|
</div>
|
|
9623
9632
|
<div
|
|
9624
9633
|
style=${Ki({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -9627,7 +9636,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9627
9636
|
</div>
|
|
9628
9637
|
</div>
|
|
9629
9638
|
<div class="type-gradient__icon">
|
|
9630
|
-
${
|
|
9639
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9631
9640
|
</div>
|
|
9632
9641
|
</button>
|
|
9633
9642
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?H`
|
|
@@ -9639,7 +9648,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9639
9648
|
>
|
|
9640
9649
|
<div class="type-hey__pill-left">
|
|
9641
9650
|
<div class="type-hey__icon">
|
|
9642
|
-
${
|
|
9651
|
+
${Yd(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9643
9652
|
</div>
|
|
9644
9653
|
<div
|
|
9645
9654
|
style=${Ki({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -9651,7 +9660,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9651
9660
|
</div>
|
|
9652
9661
|
</div>
|
|
9653
9662
|
<div class="type-gradient__icon">
|
|
9654
|
-
${
|
|
9663
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9655
9664
|
</div>
|
|
9656
9665
|
</button>
|
|
9657
9666
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?H`
|
|
@@ -9663,7 +9672,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9663
9672
|
>
|
|
9664
9673
|
<div class="type-hey__pill-left">
|
|
9665
9674
|
<div class="type-hey__icon">
|
|
9666
|
-
${
|
|
9675
|
+
${Oh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9667
9676
|
</div>
|
|
9668
9677
|
<div
|
|
9669
9678
|
class="vertical-pill-title"
|
|
@@ -9674,7 +9683,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9674
9683
|
</div>
|
|
9675
9684
|
</div>
|
|
9676
9685
|
<div class="type-gradient__icon">
|
|
9677
|
-
${
|
|
9686
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9678
9687
|
</div>
|
|
9679
9688
|
</button>
|
|
9680
9689
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?H`
|
|
@@ -9686,7 +9695,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9686
9695
|
>
|
|
9687
9696
|
<div class="type-hey__pill-left">
|
|
9688
9697
|
<div class="type-hey__icon">
|
|
9689
|
-
${
|
|
9698
|
+
${Ph(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9690
9699
|
</div>
|
|
9691
9700
|
<div
|
|
9692
9701
|
style=${Ki({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -9695,7 +9704,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9695
9704
|
</div>
|
|
9696
9705
|
</div>
|
|
9697
9706
|
<div class="type-gradient__icon">
|
|
9698
|
-
${
|
|
9707
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9699
9708
|
</div>
|
|
9700
9709
|
</button>
|
|
9701
9710
|
`:null}].filter(e=>!!e.pill);return H`
|
|
@@ -9725,7 +9734,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9725
9734
|
>
|
|
9726
9735
|
Hey there!
|
|
9727
9736
|
</h1>
|
|
9728
|
-
<div>${
|
|
9737
|
+
<div>${Yo()}</div>
|
|
9729
9738
|
</div>
|
|
9730
9739
|
${this.hasChatEnabledDesktop?H`
|
|
9731
9740
|
<button
|
|
@@ -9737,7 +9746,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9737
9746
|
>
|
|
9738
9747
|
<div class="type-hey__pill-left">
|
|
9739
9748
|
<div class="type-hey__icon">
|
|
9740
|
-
${
|
|
9749
|
+
${_h(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
9741
9750
|
</div>
|
|
9742
9751
|
<div
|
|
9743
9752
|
style=${Ki({color:this.foregroundColorOnPrimaryBackgroundColor})}
|
|
@@ -9746,7 +9755,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9746
9755
|
</div>
|
|
9747
9756
|
</div>
|
|
9748
9757
|
<div class="type-gradient__icon">
|
|
9749
|
-
${
|
|
9758
|
+
${Mh(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
9750
9759
|
</div>
|
|
9751
9760
|
</button>
|
|
9752
9761
|
`:""}
|
|
@@ -9758,15 +9767,15 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9758
9767
|
>
|
|
9759
9768
|
<div class="type-hey__botton-section-pills">
|
|
9760
9769
|
${e.map(e=>e.pill)}
|
|
9761
|
-
${this.overrideRentgrata&&
|
|
9770
|
+
${this.overrideRentgrata&&Uh()?H` <button
|
|
9762
9771
|
class="type-hey__pill"
|
|
9763
|
-
@click=${()=>{
|
|
9772
|
+
@click=${()=>{Rh()}}
|
|
9764
9773
|
style=${Ki({background:this.backgroundColor})}
|
|
9765
9774
|
aria-label="Contact a resident"
|
|
9766
9775
|
>
|
|
9767
9776
|
<div class="type-hey__pill-left">
|
|
9768
9777
|
<div class="type-hey__icon">
|
|
9769
|
-
${
|
|
9778
|
+
${Hh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9770
9779
|
</div>
|
|
9771
9780
|
<div
|
|
9772
9781
|
style=${Ki({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -9775,7 +9784,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9775
9784
|
</div>
|
|
9776
9785
|
</div>
|
|
9777
9786
|
<div class="type-gradient__icon">
|
|
9778
|
-
${
|
|
9787
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9779
9788
|
</div>
|
|
9780
9789
|
</button>`:""}
|
|
9781
9790
|
</div>
|
|
@@ -9797,7 +9806,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9797
9806
|
>
|
|
9798
9807
|
<div class="vertical-pill-left">
|
|
9799
9808
|
<div class="vertical-pill-icon">
|
|
9800
|
-
${
|
|
9809
|
+
${_h(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}
|
|
9801
9810
|
</div>
|
|
9802
9811
|
<div
|
|
9803
9812
|
class="vertical-pill-title"
|
|
@@ -9807,7 +9816,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9807
9816
|
</div>
|
|
9808
9817
|
</div>
|
|
9809
9818
|
<div class="chevron-right">
|
|
9810
|
-
${
|
|
9819
|
+
${Mh(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}
|
|
9811
9820
|
</div>
|
|
9812
9821
|
</button>
|
|
9813
9822
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?H`
|
|
@@ -9819,7 +9828,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9819
9828
|
>
|
|
9820
9829
|
<div class="vertical-pill-left">
|
|
9821
9830
|
<div class="vertical-pill-icon">
|
|
9822
|
-
${
|
|
9831
|
+
${Ph(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9823
9832
|
</div>
|
|
9824
9833
|
<div
|
|
9825
9834
|
class="vertical-pill-title"
|
|
@@ -9829,7 +9838,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9829
9838
|
</div>
|
|
9830
9839
|
</div>
|
|
9831
9840
|
<div class="chevron-right">
|
|
9832
|
-
${
|
|
9841
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9833
9842
|
</div>
|
|
9834
9843
|
</button>
|
|
9835
9844
|
`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?H`
|
|
@@ -9842,7 +9851,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9842
9851
|
>
|
|
9843
9852
|
<div class="vertical-pill-left">
|
|
9844
9853
|
<div class="vertical-pill-icon">
|
|
9845
|
-
${
|
|
9854
|
+
${Eh(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9846
9855
|
</div>
|
|
9847
9856
|
<div
|
|
9848
9857
|
class="vertical-pill-title"
|
|
@@ -9853,7 +9862,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9853
9862
|
</div>
|
|
9854
9863
|
</div>
|
|
9855
9864
|
<div class="chevron-right">
|
|
9856
|
-
${
|
|
9865
|
+
${Mh(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9857
9866
|
</div>
|
|
9858
9867
|
</button>
|
|
9859
9868
|
`:null},{pillKey:"Email",pill:this.hasEmailEnabledDesktop?H`
|
|
@@ -9865,7 +9874,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9865
9874
|
>
|
|
9866
9875
|
<div class="vertical-pill-left">
|
|
9867
9876
|
<div class="vertical-pill-icon">
|
|
9868
|
-
${
|
|
9877
|
+
${Th(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9869
9878
|
</div>
|
|
9870
9879
|
<div
|
|
9871
9880
|
class="vertical-pill-title"
|
|
@@ -9876,7 +9885,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9876
9885
|
</div>
|
|
9877
9886
|
</div>
|
|
9878
9887
|
<div class="chevron-right">
|
|
9879
|
-
${
|
|
9888
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9880
9889
|
</div>
|
|
9881
9890
|
</button>
|
|
9882
9891
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?H`
|
|
@@ -9888,7 +9897,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9888
9897
|
>
|
|
9889
9898
|
<div class="vertical-pill-left">
|
|
9890
9899
|
<div class="vertical-pill-icon">
|
|
9891
|
-
${
|
|
9900
|
+
${Yd(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9892
9901
|
</div>
|
|
9893
9902
|
${this.hasCallUsEnabledDesktop&&this.hasTextUsEnabledDesktop?H`
|
|
9894
9903
|
<div
|
|
@@ -9917,7 +9926,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9917
9926
|
`:""}
|
|
9918
9927
|
</div>
|
|
9919
9928
|
<div class="chevron-right">
|
|
9920
|
-
${
|
|
9929
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9921
9930
|
</div>
|
|
9922
9931
|
</button>
|
|
9923
9932
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?H`
|
|
@@ -9929,7 +9938,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9929
9938
|
>
|
|
9930
9939
|
<div class="vertical-pill-left">
|
|
9931
9940
|
<div class="vertical-pill-icon">
|
|
9932
|
-
${
|
|
9941
|
+
${Oh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9933
9942
|
</div>
|
|
9934
9943
|
<div
|
|
9935
9944
|
class="vertical-pill-title"
|
|
@@ -9940,7 +9949,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9940
9949
|
</div>
|
|
9941
9950
|
</div>
|
|
9942
9951
|
<div class="chevron-right">
|
|
9943
|
-
${
|
|
9952
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9944
9953
|
</div>
|
|
9945
9954
|
</button>
|
|
9946
9955
|
`:null}].filter(e=>!!e.pill);if(e){const e=t.findIndex(e=>"SST"===e.pillKey);if(-1!==e){const[i]=t.splice(e,1);t.unshift(i)}}return H`
|
|
@@ -9948,16 +9957,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9948
9957
|
<nav aria-label="EliseAI options">
|
|
9949
9958
|
<ul class="vertical-pill-list__items" role="list">
|
|
9950
9959
|
${t.map(e=>H`<li>${e.pill}</li>`)}
|
|
9951
|
-
${this.overrideRentgrata&&
|
|
9960
|
+
${this.overrideRentgrata&&Uh()?H`<li>
|
|
9952
9961
|
<button
|
|
9953
|
-
@click=${()=>{
|
|
9962
|
+
@click=${()=>{Rh()}}
|
|
9954
9963
|
class="inner-pill-wrapper"
|
|
9955
9964
|
style=${Ki({background:this.backgroundColor})}
|
|
9956
9965
|
aria-label="Contact a resident"
|
|
9957
9966
|
>
|
|
9958
9967
|
<div class="vertical-pill-left">
|
|
9959
9968
|
<div class="vertical-pill-icon">
|
|
9960
|
-
${
|
|
9969
|
+
${Hh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9961
9970
|
</div>
|
|
9962
9971
|
<div
|
|
9963
9972
|
class="vertical-pill-title"
|
|
@@ -9968,7 +9977,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9968
9977
|
</div>
|
|
9969
9978
|
</div>
|
|
9970
9979
|
<div class="chevron-right">
|
|
9971
|
-
${
|
|
9980
|
+
${Mh(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
9972
9981
|
</div>
|
|
9973
9982
|
</button>
|
|
9974
9983
|
</li>`:""}
|
|
@@ -9979,12 +9988,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
9979
9988
|
class="minimize-button"
|
|
9980
9989
|
aria-label="Minimize EliseAI widget"
|
|
9981
9990
|
>
|
|
9982
|
-
<div class="chevron-down">${
|
|
9991
|
+
<div class="chevron-down">${Mh("black")}</div>
|
|
9983
9992
|
</button>`:""}
|
|
9984
9993
|
</div>
|
|
9985
|
-
`}}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=
|
|
9994
|
+
`}}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=Hr(e=>{this._isMobile=e})}disconnectedCallback(){var e;null===(e=this._cleanupMobileListener)||void 0===e||e.call(this),super.disconnectedCallback()}willUpdate(e){e.has("openSSTWindowOnLoad")&&this.openSSTWindowOnLoad&&(this.isSSTWindowOpen=!0),e.has("isSSTWindowOpen")&&this.isSSTWindowOpen&&(this.sstWindowIsV2=this.tourSchedulerV2)}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Vd),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",eu),window.eliseAi.onOpenSST=e=>{this.isSSTWindowOpen=!0,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()},(this.hasChatEnabledDesktop||this.hasChatEnabledMobile)&&(window.eliseAi.onOpenChat=e=>{this.handleChatTapped(),this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,e&&e()}),(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile)&&(window.eliseAi.onOpenCallUsWindow=e=>{this.isCallUsWindowOpen=!0,this.isSSTWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile)&&(window.eliseAi.onOpenEmailUsWindow=e=>{this.isEmailWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile)&&(window.eliseAi.onOpenPriceCalculatorWindow=e=>{this.isCalculatorWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()});const e={top:this._isMobile||void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:this._isMobile||void 0===this.bottom||isNaN(this.bottom)?void 0:`${this.bottom}px`,left:this._isMobile||void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:this._isMobile||void 0===this.right||isNaN(this.right)?void 0:`${this.right}px`};return H`
|
|
9986
9995
|
<div
|
|
9987
|
-
class=${
|
|
9996
|
+
class=${So()({"launcher__mobile-launcher-wrapper":this._isMobile||this.isMinimized,"launcher__mini-launcher-wrapper":!this._isMobile&&!this.isMinimized,"launcher__mini-elevated":"livcor"===this.orgSlug.toLowerCase()&&(this._isMobile||this.isMinimized)})}
|
|
9988
9997
|
style=${Ki({...this.launcherStyles,...this.mobileStyles,top:this._isMobile||void 0===this.top||isNaN(this.top)?void 0!==this.mobileStyles.top?`${this.mobileStyles.top}px`:void 0:this.top-700+"px",bottom:this._isMobile||void 0===this.bottom||isNaN(this.bottom)?void 0!==this.mobileStyles.bottom?`${this.mobileStyles.bottom}px`:"72px":`${this.bottom}px`,left:this._isMobile||void 0===this.left||isNaN(this.left)?void 0!==this.mobileStyles.left?`${this.mobileStyles.left}px`:void 0:`${this.left}px`,right:this._isMobile||void 0===this.right||isNaN(this.right)?void 0!==this.mobileStyles.right?`${this.mobileStyles.right}px`:"18px":`${this.right}px`})}
|
|
9989
9998
|
>
|
|
9990
9999
|
${this.isEmailWindowOpen?H`<div
|
|
@@ -10131,11 +10140,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10131
10140
|
`:""}
|
|
10132
10141
|
${this.isCallToActionWindowOpen()||this.showTourNextToChat?"":this.renderActionPills()}
|
|
10133
10142
|
</div>
|
|
10134
|
-
`}};
|
|
10135
|
-
${
|
|
10136
|
-
${
|
|
10137
|
-
${
|
|
10138
|
-
`,Dh([pe({attribute:!0})],Lh.prototype,"isMinimized",void 0),Dh([pe()],Lh.prototype,"mobileStyles",void 0),Dh([pe({type:Boolean})],Lh.prototype,"isFirstMount",void 0),Dh([pe({attribute:!1})],Lh.prototype,"openSSTWindowOnLoad",void 0),Dh([pe({attribute:!1})],Lh.prototype,"autoOpenChatWidget",void 0),Dh([pe()],Lh.prototype,"phoneNumber",void 0),Dh([pe({attribute:!0})],Lh.prototype,"buildingName",void 0),Dh([pe({attribute:!0})],Lh.prototype,"chatId",void 0),Dh([pe({attribute:!0})],Lh.prototype,"orgLegalName",void 0),Dh([pe({attribute:!1})],Lh.prototype,"country",void 0),Dh([pe({attribute:!1})],Lh.prototype,"buildingState",void 0),Dh([pe({attribute:!0})],Lh.prototype,"chatCallUsHeader",void 0),Dh([pe({attribute:!1})],Lh.prototype,"buildingId",void 0),Dh([pe({type:Number})],Lh.prototype,"orgId",void 0),Dh([pe({attribute:!1})],Lh.prototype,"leadSourceParams",void 0),Dh([pe({attribute:!0})],Lh.prototype,"buildingSlug",void 0),Dh([pe({attribute:!0})],Lh.prototype,"orgSlug",void 0),Dh([pe({attribute:!0})],Lh.prototype,"sgtUrl",void 0),Dh([pe({attribute:!0})],Lh.prototype,"selfGuidedTourEnabled",void 0),Dh([pe({attribute:!0})],Lh.prototype,"selfGuidedToursTypeOffered",void 0),Dh([pe({attribute:!0})],Lh.prototype,"designConcept",void 0),Dh([pe({attribute:!0})],Lh.prototype,"featureFlagShowDropdown",void 0),Dh([pe({attribute:!1})],Lh.prototype,"leadSources",void 0),Dh([pe({attribute:!0})],Lh.prototype,"currentLeadSource",void 0),Dh([pe({attribute:!0})],Lh.prototype,"escortedToursLink",void 0),Dh([pe({attribute:!0})],Lh.prototype,"escortedToursTypeOffered",void 0),Dh([pe({attribute:!0})],Lh.prototype,"virtualToursLink",void 0),Dh([pe({attribute:!0})],Lh.prototype,"virtualToursTypeOffered",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasChatEnabledDesktop",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasChatEnabledMobile",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasEmailEnabledDesktop",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasEmailEnabledMobile",void 0),Dh([pe({attribute:!0})],Lh.prototype,"hasApplyNowEnabledDesktop",void 0),Dh([pe({attribute:!0})],Lh.prototype,"hasApplyNowEnabledMobile",void 0),Dh([pe({attribute:!0})],Lh.prototype,"applicationLink",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasCallUsEnabledDesktop",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasCallUsEnabledMobile",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasTextUsEnabledDesktop",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasTextUsEnabledMobile",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasSSTEnabledDesktop",void 0),Dh([pe({type:Boolean})],Lh.prototype,"hasSSTEnabledMobile",void 0),Dh([pe({attribute:!1})],Lh.prototype,"tourTypeOptions",void 0),Dh([pe({attribute:!1})],Lh.prototype,"layoutOptions",void 0),Dh([pe({attribute:!0})],Lh.prototype,"bedroomPreferenceRequired",void 0),Dh([pe({attribute:!1})],Lh.prototype,"brokerIntakeEnabled",void 0),Dh([pe({attribute:!1})],Lh.prototype,"tourSchedulerV2",void 0),Dh([pe({attribute:!1})],Lh.prototype,"getSessionToken",void 0),Dh([pe({attribute:!0})],Lh.prototype,"hasDynamicSchedulingEnabled",void 0),Dh([pe({attribute:!0})],Lh.prototype,"hasPricingCalculatorEnabledDesktop",void 0),Dh([pe({attribute:!0})],Lh.prototype,"hasPricingCalculatorEnabledMobile",void 0),Dh([pe({attribute:!1})],Lh.prototype,"hasHideMobileFeatures",void 0),Dh([pe({type:Number})],Lh.prototype,"right",void 0),Dh([pe({type:Number})],Lh.prototype,"bottom",void 0),Dh([pe({type:Number})],Lh.prototype,"top",void 0),Dh([pe({type:Number})],Lh.prototype,"left",void 0),Dh([pe({attribute:!0})],Lh.prototype,"showTourNextToChat",void 0),Dh([pe({attribute:!1})],Lh.prototype,"onChatTapped",void 0),Dh([pe({attribute:!0})],Lh.prototype,"onClickMinimize",void 0),Dh([pe({attribute:!0})],Lh.prototype,"onSstClose",void 0),Dh([pe({attribute:!0})],Lh.prototype,"overrideRentgrata",void 0),Dh([pe({attribute:!1})],Lh.prototype,"launcherStyles",void 0),Dh([pe({attribute:!0})],Lh.prototype,"primaryColor",void 0),Dh([pe({attribute:!0})],Lh.prototype,"backgroundColor",void 0),Dh([pe({attribute:!0})],Lh.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Dh([pe({attribute:!0})],Lh.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Dh([pe({attribute:!0})],Lh.prototype,"leadSourceClient",void 0),Dh([fe()],Lh.prototype,"leadSourceMultitouchClient",void 0),Dh([fe()],Lh.prototype,"_isMobile",void 0),Dh([fe()],Lh.prototype,"isEmailWindowOpen",void 0),Dh([fe()],Lh.prototype,"isCallUsWindowOpen",void 0),Dh([fe()],Lh.prototype,"isSSTWindowOpen",void 0),Dh([fe()],Lh.prototype,"isTextUsWindowOpen",void 0),Dh([fe()],Lh.prototype,"isCalculatorWindowOpen",void 0),Dh([fe()],Lh.prototype,"isMobileFeaturesExpanded",void 0),Lh=Dh([ce("meetelise-launcher")],Lh);const Rh=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Lh)},Bh=["app.meetelise.com","staging.eliseai.com","localhost"],Uh={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},jh=e=>{const t=window.location.hostname;if(!Bh.includes(t))return e;const i=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[i,n]=t.split(":");return i&&n&&i in Uh&&(e[i]="true"===n.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(i).length)return e;const n={...e};return Object.entries(i).forEach(([e,t])=>{const i=Uh[e];i&&(n[i.desktop]=t,n[i.mobile]=t)}),n};var Fh=i(5072),Hh=i.n(Fh),zh=i(7825),Gh=i.n(zh),Wh=i(7659),qh=i.n(Wh),Vh=i(5056),Qh=i.n(Vh),Yh=i(540),Kh=i.n(Yh),Xh=i(1113),Zh=i.n(Xh),Jh=i(5541),ep={};ep.styleTagTransform=Zh(),ep.setAttributes=Qh(),ep.insert=qh().bind(null,"head"),ep.domAPI=Gh(),ep.insertStyleElement=Kh();Hh()(Jh.A,ep);Jh.A&&Jh.A.locals&&Jh.A.locals;async function tp(e,t){try{const i=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(i.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return i.data.filter(t=>e.includes(t))}return ip(i.data,t)}return[]}catch(e){return[]}}const ip=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":i=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:i=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!i.map(e=>e.toLowerCase()).includes(t)})};async function np(e){var t,i;if(!e)return!1;try{return null!==(i=null===(t=(await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/aip`)).data)||void 0===t?void 0:t.is_aip)&&void 0!==i&&i}catch(e){return!1}}const rp=new Set(["8009855990","8338526262","8002221222","8006624357","8002738255","8007997233","8007874889","8006564673","8004224453","8883737888","8006213362","8009506264","8558272736","8008435678","8007862929","8008523836","8007849433","8007729100","8006699777","8006858470","8004322209","8003473735","8008778339","8009552232","8002255342","8009272891","8003049320","8007937724","8002382333","8003353863","8776858878","8003329227","8776554371","8772944357","8772944356","6092925760","6092926735","8007928339","8008329173","8882853036","6092921210","8007929773","8003561561","8003826717","8005727233","8009291040","8888958179","8006879512","8004262537","8773475463","8774149251","8005103102","8889372835","8007010710","8007010720","8774288844","8007929745","8003283838","6092927060","6092928319","8008527899","8662401347","8009923678","8776522873","8776527624","8003313937","8008435437","8776536783","8778392339","8003676274","8006896411"]),op=e=>{const t=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1");return rp.has(t)},ap=(e,t,i)=>{try{const n=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1"),r=`tel:${n}`,o=`sms:${n}`,a=`whatsapp://send?phone=${n}`,s=`facetime:${n}`,l=`facetime-audio:${n}`,d=/(?:\+1[\s.-]?)?(?:\([2-9]\d{2}\)[\s.-]?|[2-9]\d{2}[\s.-])[2-9]\d{2}[\s.-]?\d{4}/g,u=/(tel|sms):(?:\+1\s)?(?:(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}|\d{10,11})/g,c=/whatsapp:\/\/send\?phone=\d+/g,h=/(facetime|facetime-audio):\d+/g,p=/emergency|emergencia/i,f=300,g=e=>!(!e||e.length>f)&&p.test(e),m=e=>{var t,i,n,r;if(g(e.textContent))return!0;if(g(null===(t=e.previousElementSibling)||void 0===t?void 0:t.textContent)||g(null===(i=e.nextElementSibling)||void 0===i?void 0:i.textContent))return!0;const o=e.parentElement;return!(!o||!g(null===(n=o.previousElementSibling)||void 0===n?void 0:n.textContent)&&!g(null===(r=o.nextElementSibling)||void 0===r?void 0:r.textContent))},b=document.body.getElementsByTagName("*");let y=!1;const v=n.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let w=!1,x=!1,C=0;for(let e=0;e<b.length;e++)if(b[e].nodeType===Node.ELEMENT_NODE&&!m(b[e])){if(1===b[e].childNodes.length&&b[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=b[e].textContent;if(!t)continue;const i=t.replace(d,e=>{if(op(e))return e;return e.startsWith("+1 ")?`+1 ${v}`:v});t!==i&&(C++,b[e].textContent=i),y=!0,w||(w=!0)}if(b[e].hasAttribute("href")){const t=b[e].getAttribute("href");if(!t)continue;let i="",n=u;if(t.startsWith("sms:")?i=o:t.startsWith("whatsapp:")?(i=a,n=c):t.startsWith("facetime:")?(i=s,n=h):t.startsWith("facetime-audio:")?(i=l,n=h):i=r,op(t))continue;const d=t.replace(n,i);if(b[e].setAttribute("href",d),(t.startsWith("tel:")||t.startsWith("sms:"))&&d===t&&d!==i){t.replace(/\D/g,"").length>=7&&b[e].setAttribute("href",t.startsWith("tel:")?r:o)}x||(x=!0)}}return w&&To({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:v,website:window.location.href},logType:Ao.info,buildingSlug:i,orgSlug:t}),x&&To({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:v,website:window.location.href},logType:Ao.info,buildingSlug:i,orgSlug:t}),y||To({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:Ao.warn,buildingSlug:i,orgSlug:t}),C}catch(e){return To({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"insertion-error",error:e instanceof Error?e.message:String(e),website:window.location.href},logType:Ao.error,buildingSlug:i,orgSlug:t,error:e}),0}},sp=(e,t,i,n)=>{document.querySelectorAll("a").forEach(function(r){const o=r.getAttribute("href");o&&o.startsWith("https://app.meetelise.com/")&&((e,t,i)=>{const[n,r,o,...a]=new URL(e).pathname.split("/").filter(Boolean).map(e=>e.toLowerCase());return 0===a.length&&"tour"===o&&n===t.toLowerCase()&&r===i.toLowerCase()})(o,t,i)&&r.addEventListener("click",t=>{n()&&(t.preventDefault(),e(t))})})};var lp=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let dp=class extends de{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.toExpand=!1}render(){return H`
|
|
10143
|
+
`}};Gh.styles=p`
|
|
10144
|
+
${Ud}
|
|
10145
|
+
${jd}
|
|
10146
|
+
${Fd}
|
|
10147
|
+
`,zh([pe({attribute:!0})],Gh.prototype,"isMinimized",void 0),zh([pe()],Gh.prototype,"mobileStyles",void 0),zh([pe({type:Boolean})],Gh.prototype,"isFirstMount",void 0),zh([pe({attribute:!1})],Gh.prototype,"openSSTWindowOnLoad",void 0),zh([pe({attribute:!1})],Gh.prototype,"autoOpenChatWidget",void 0),zh([pe()],Gh.prototype,"phoneNumber",void 0),zh([pe({attribute:!0})],Gh.prototype,"buildingName",void 0),zh([pe({attribute:!0})],Gh.prototype,"chatId",void 0),zh([pe({attribute:!0})],Gh.prototype,"orgLegalName",void 0),zh([pe({attribute:!1})],Gh.prototype,"country",void 0),zh([pe({attribute:!1})],Gh.prototype,"buildingState",void 0),zh([pe({attribute:!0})],Gh.prototype,"chatCallUsHeader",void 0),zh([pe({attribute:!1})],Gh.prototype,"buildingId",void 0),zh([pe({type:Number})],Gh.prototype,"orgId",void 0),zh([pe({attribute:!1})],Gh.prototype,"leadSourceParams",void 0),zh([pe({attribute:!0})],Gh.prototype,"buildingSlug",void 0),zh([pe({attribute:!0})],Gh.prototype,"orgSlug",void 0),zh([pe({attribute:!0})],Gh.prototype,"sgtUrl",void 0),zh([pe({attribute:!0})],Gh.prototype,"selfGuidedTourEnabled",void 0),zh([pe({attribute:!0})],Gh.prototype,"selfGuidedToursTypeOffered",void 0),zh([pe({attribute:!0})],Gh.prototype,"designConcept",void 0),zh([pe({attribute:!0})],Gh.prototype,"featureFlagShowDropdown",void 0),zh([pe({attribute:!1})],Gh.prototype,"leadSources",void 0),zh([pe({attribute:!0})],Gh.prototype,"currentLeadSource",void 0),zh([pe({attribute:!0})],Gh.prototype,"escortedToursLink",void 0),zh([pe({attribute:!0})],Gh.prototype,"escortedToursTypeOffered",void 0),zh([pe({attribute:!0})],Gh.prototype,"virtualToursLink",void 0),zh([pe({attribute:!0})],Gh.prototype,"virtualToursTypeOffered",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasChatEnabledDesktop",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasChatEnabledMobile",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasEmailEnabledDesktop",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasEmailEnabledMobile",void 0),zh([pe({attribute:!0})],Gh.prototype,"hasApplyNowEnabledDesktop",void 0),zh([pe({attribute:!0})],Gh.prototype,"hasApplyNowEnabledMobile",void 0),zh([pe({attribute:!0})],Gh.prototype,"applicationLink",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasCallUsEnabledDesktop",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasCallUsEnabledMobile",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasTextUsEnabledDesktop",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasTextUsEnabledMobile",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasSSTEnabledDesktop",void 0),zh([pe({type:Boolean})],Gh.prototype,"hasSSTEnabledMobile",void 0),zh([pe({attribute:!1})],Gh.prototype,"tourTypeOptions",void 0),zh([pe({attribute:!1})],Gh.prototype,"layoutOptions",void 0),zh([pe({attribute:!0})],Gh.prototype,"bedroomPreferenceRequired",void 0),zh([pe({attribute:!1})],Gh.prototype,"brokerIntakeEnabled",void 0),zh([pe({attribute:!1})],Gh.prototype,"tourSchedulerV2",void 0),zh([pe({attribute:!1})],Gh.prototype,"getSessionToken",void 0),zh([pe({attribute:!0})],Gh.prototype,"hasDynamicSchedulingEnabled",void 0),zh([pe({attribute:!0})],Gh.prototype,"hasPricingCalculatorEnabledDesktop",void 0),zh([pe({attribute:!0})],Gh.prototype,"hasPricingCalculatorEnabledMobile",void 0),zh([pe({attribute:!1})],Gh.prototype,"hasHideMobileFeatures",void 0),zh([pe({type:Number})],Gh.prototype,"right",void 0),zh([pe({type:Number})],Gh.prototype,"bottom",void 0),zh([pe({type:Number})],Gh.prototype,"top",void 0),zh([pe({type:Number})],Gh.prototype,"left",void 0),zh([pe({attribute:!0})],Gh.prototype,"showTourNextToChat",void 0),zh([pe({attribute:!1})],Gh.prototype,"onChatTapped",void 0),zh([pe({attribute:!0})],Gh.prototype,"onClickMinimize",void 0),zh([pe({attribute:!0})],Gh.prototype,"onSstClose",void 0),zh([pe({attribute:!0})],Gh.prototype,"overrideRentgrata",void 0),zh([pe({attribute:!1})],Gh.prototype,"launcherStyles",void 0),zh([pe({attribute:!0})],Gh.prototype,"primaryColor",void 0),zh([pe({attribute:!0})],Gh.prototype,"backgroundColor",void 0),zh([pe({attribute:!0})],Gh.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),zh([pe({attribute:!0})],Gh.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),zh([pe({attribute:!0})],Gh.prototype,"leadSourceClient",void 0),zh([fe()],Gh.prototype,"leadSourceMultitouchClient",void 0),zh([fe()],Gh.prototype,"_isMobile",void 0),zh([fe()],Gh.prototype,"isEmailWindowOpen",void 0),zh([fe()],Gh.prototype,"isCallUsWindowOpen",void 0),zh([fe()],Gh.prototype,"isSSTWindowOpen",void 0),zh([fe()],Gh.prototype,"isTextUsWindowOpen",void 0),zh([fe()],Gh.prototype,"isCalculatorWindowOpen",void 0),zh([fe()],Gh.prototype,"isMobileFeaturesExpanded",void 0),Gh=zh([ce("meetelise-launcher")],Gh);const Wh=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Gh)},qh=["app.meetelise.com","staging.eliseai.com","localhost"],Vh={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},Qh=e=>{const t=window.location.hostname;if(!qh.includes(t))return e;const i=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[i,n]=t.split(":");return i&&n&&i in Vh&&(e[i]="true"===n.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(i).length)return e;const n={...e};return Object.entries(i).forEach(([e,t])=>{const i=Vh[e];i&&(n[i.desktop]=t,n[i.mobile]=t)}),n};var Yh=i(5072),Kh=i.n(Yh),Xh=i(7825),Zh=i.n(Xh),Jh=i(7659),ep=i.n(Jh),tp=i(5056),ip=i.n(tp),np=i(540),rp=i.n(np),op=i(1113),ap=i.n(op),sp=i(5541),lp={};lp.styleTagTransform=ap(),lp.setAttributes=ip(),lp.insert=ep().bind(null,"head"),lp.domAPI=Zh(),lp.insertStyleElement=rp();Kh()(sp.A,lp);sp.A&&sp.A.locals&&sp.A.locals;async function dp(e,t){try{const i=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(i.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return i.data.filter(t=>e.includes(t))}return up(i.data,t)}return[]}catch(e){return[]}}const up=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":i=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:i=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!i.map(e=>e.toLowerCase()).includes(t)})};async function cp(e){var t,i;if(!e)return!1;try{return null!==(i=null===(t=(await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/aip`)).data)||void 0===t?void 0:t.is_aip)&&void 0!==i&&i}catch(e){return!1}}const hp=new Set(["8009855990","8338526262","8002221222","8006624357","8002738255","8007997233","8007874889","8006564673","8004224453","8883737888","8006213362","8009506264","8558272736","8008435678","8007862929","8008523836","8007849433","8007729100","8006699777","8006858470","8004322209","8003473735","8008778339","8009552232","8002255342","8009272891","8003049320","8007937724","8002382333","8003353863","8776858878","8003329227","8776554371","8772944357","8772944356","6092925760","6092926735","8007928339","8008329173","8882853036","6092921210","8007929773","8003561561","8003826717","8005727233","8009291040","8888958179","8006879512","8004262537","8773475463","8774149251","8005103102","8889372835","8007010710","8007010720","8774288844","8007929745","8003283838","6092927060","6092928319","8008527899","8662401347","8009923678","8776522873","8776527624","8003313937","8008435437","8776536783","8778392339","8003676274","8006896411"]),pp=e=>{const t=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1");return hp.has(t)},fp=(e,t,i)=>{try{const n=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1"),r=`tel:${n}`,o=`sms:${n}`,a=`whatsapp://send?phone=${n}`,s=`facetime:${n}`,l=`facetime-audio:${n}`,d=/(?:\+1[\s.-]?)?(?:\([2-9]\d{2}\)[\s.-]?|[2-9]\d{2}[\s.-])[2-9]\d{2}[\s.-]?\d{4}/g,u=/(tel|sms):(?:\+1\s)?(?:(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}|\d{10,11})/g,c=/whatsapp:\/\/send\?phone=\d+/g,h=/(facetime|facetime-audio):\d+/g,p=/emergency|emergencia/i,f=300,g=e=>!(!e||e.length>f)&&p.test(e),m=e=>{var t,i,n,r;if(g(e.textContent))return!0;if(g(null===(t=e.previousElementSibling)||void 0===t?void 0:t.textContent)||g(null===(i=e.nextElementSibling)||void 0===i?void 0:i.textContent))return!0;const o=e.parentElement;return!(!o||!g(null===(n=o.previousElementSibling)||void 0===n?void 0:n.textContent)&&!g(null===(r=o.nextElementSibling)||void 0===r?void 0:r.textContent))},b=document.body.getElementsByTagName("*");let y=!1;const v=n.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let w=!1,x=!1,C=0;for(let e=0;e<b.length;e++)if(b[e].nodeType===Node.ELEMENT_NODE&&!m(b[e])){if(1===b[e].childNodes.length&&b[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=b[e].textContent;if(!t)continue;const i=t.replace(d,e=>{if(pp(e))return e;return e.startsWith("+1 ")?`+1 ${v}`:v});t!==i&&(C++,b[e].textContent=i),y=!0,w||(w=!0)}if(b[e].hasAttribute("href")){const t=b[e].getAttribute("href");if(!t)continue;let i="",n=u;if(t.startsWith("sms:")?i=o:t.startsWith("whatsapp:")?(i=a,n=c):t.startsWith("facetime:")?(i=s,n=h):t.startsWith("facetime-audio:")?(i=l,n=h):i=r,pp(t))continue;const d=t.replace(n,i);if(b[e].setAttribute("href",d),(t.startsWith("tel:")||t.startsWith("sms:"))&&d===t&&d!==i){t.replace(/\D/g,"").length>=7&&b[e].setAttribute("href",t.startsWith("tel:")?r:o)}x||(x=!0)}}return w&&Do({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:v,website:window.location.href},logType:Mo.info,buildingSlug:i,orgSlug:t}),x&&Do({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:v,website:window.location.href},logType:Mo.info,buildingSlug:i,orgSlug:t}),y||Do({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:Mo.warn,buildingSlug:i,orgSlug:t}),C}catch(e){return Do({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"insertion-error",error:e instanceof Error?e.message:String(e),website:window.location.href},logType:Mo.error,buildingSlug:i,orgSlug:t,error:e}),0}},gp=(e,t,i,n)=>{document.querySelectorAll("a").forEach(function(r){const o=r.getAttribute("href");o&&o.startsWith("https://app.meetelise.com/")&&((e,t,i)=>{const[n,r,o,...a]=new URL(e).pathname.split("/").filter(Boolean).map(e=>e.toLowerCase());return 0===a.length&&"tour"===o&&n===t.toLowerCase()&&r===i.toLowerCase()})(o,t,i)&&r.addEventListener("click",t=>{n()&&(t.preventDefault(),e(t))})})};var mp=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let bp=class extends de{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Xi,this.foregroundColorOnPrimaryBackgroundColor="white",this.toExpand=!1}render(){return H`
|
|
10139
10148
|
<button
|
|
10140
10149
|
class=${this.toExpand?"button-container mini":"button-container"}
|
|
10141
10150
|
@click=${this.onClick}
|
|
@@ -10146,13 +10155,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10146
10155
|
style=${Ki({background:this.primaryColor})}
|
|
10147
10156
|
>
|
|
10148
10157
|
${this.toExpand?H`<div class="chevron-up">
|
|
10149
|
-
${
|
|
10158
|
+
${Mh(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
10150
10159
|
</div>`:H` <div class="x-icon">
|
|
10151
|
-
${
|
|
10160
|
+
${ad(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
10152
10161
|
</div>`}
|
|
10153
10162
|
</div>
|
|
10154
10163
|
</button>
|
|
10155
|
-
`}};
|
|
10164
|
+
`}};bp.styles=[p`
|
|
10156
10165
|
.button-container {
|
|
10157
10166
|
width: 56px;
|
|
10158
10167
|
height: 56px;
|
|
@@ -10202,7 +10211,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10202
10211
|
cursor: pointer;
|
|
10203
10212
|
filter: brightness(90%);
|
|
10204
10213
|
}
|
|
10205
|
-
`],lp([pe({attribute:!0})],dp.prototype,"onClick",void 0),lp([pe({attribute:!0})],dp.prototype,"primaryColor",void 0),lp([pe({attribute:!0})],dp.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),lp([pe({attribute:!0})],dp.prototype,"toExpand",void 0),dp=lp([ce("minimize-expand-button")],dp);const up="cdn.skypack.dev/@meetelise/chat",cp="cdn.eliseai.com/@meetelise/chat",hp=async(e,t)=>{try{if(Math.random()>=.15)return;const i=(()=>{try{const e=document.getElementsByTagName("script");for(const t of e){const e=t.src||"",i=t.textContent||"";if(e.includes(up)||i.includes(up))return"skypack";if(e.includes(cp)||i.includes(cp))return"eliseai"}return"unknown"}catch(e){return"unknown"}})();await r().post("https://app.meetelise.com/platformApi/webchat/cdn-version",{cdn_version:i},{params:{cdn_version:i},headers:{"Content-Type":"application/json","building-slug":t,"org-slug":e}})}catch(e){}},pp=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?t.endsWith("/units")?t:`${t}/units`:t,fp={"95ae958e-95db-11ed-9862-6f4db5533d3f":"8008db60-45b7-11f1-88ac-635f686365da","95ae96b0-95db-11ed-9863-a7aa664fd985":"72ed27c4-45b7-11f1-82d9-37b7db547687"},gp="https://applications.eliseai.com",mp=["Check Availability","Apply Now"],bp=(e,t,i,n)=>{if(!(e=>{var t;if(!e.classList.contains("floorplan-button"))return!1;const i=e.getElementsByTagName("span");if(1!==i.length)return!1;const n=null===(t=i[0].textContent)||void 0===t?void 0:t.trim();return null!=n&&mp.includes(n)})(e))return!1;if(e.getAttribute("href")===t)return!1;const r=e.getAttribute("href");return e.setAttribute("href",t),e.setAttribute("target","_blank"),To({logTitle:"CHECK_AVAIL_OVERWRITE",logData:{oldHref:r,newHref:t,website:window.location.href},logType:Ao.info,buildingSlug:n,orgSlug:i}),!0},yp=(e,t,i,n)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.nodeType!==Node.ELEMENT_NODE)continue;const a=o;"A"===a.tagName&&bp(a,t,i,n);const s=a.getElementsByTagName("a");for(let e=0;e<s.length;e++)bp(s[e],t,i,n)}},vp=(e,t,i)=>{((e,t,i)=>{const n=document.body.getElementsByTagName("a");for(let r=0;r<n.length;r++)bp(n[r],e,t,i)})(i,e,t);new MutationObserver(n=>{for(const r of n)yp(r.addedNodes,i,e,t)}).observe(document.body,{childList:!0,subtree:!0})};class wp{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>Hr(Gr(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=Po();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(ko()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),i=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Hr(new Date),type:"touchpoint"}]};localStorage.setItem(i,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Hr(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(i,JSON.stringify(t));To({logType:Ao.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),i=ca(this.orgSlug);if(!t){const t=[{leadSourceValue:i,timestampInitiallyLogged:Hr(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:Hr(new Date),type:"user-selected"}),t}const n=t.leadSources.length>0?t.leadSources.sort((e,t)=>Kr(e.timestampInitiallyLogged).getTime()-Kr(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:Hr(new Date),r=[{timestampInitiallyLogged:n,leadSourceValue:i,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:Hr(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>Kr(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var xp=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Cp=class extends de{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.centralConvo=!1,this.declaredBuildingSlug="",this.hostDeclaredBuildingId=void 0,this.orgLevel=!1,this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this._isMobile=Nr(),this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=yo.always,this.bedroomPreferenceRequired=!1,this.tourSchedulerV2=!1,this.brokerIntakeEnabled=!1,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.openTourSchedulerOnLoad=!1,this.displayPubnubChat=!1,this.launcherButton=null,this.focusChatOnMount=!1,this.myPubnub=null,this.getSessionToken=()=>{var e,t;return null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.getSessionToken())&&void 0!==t?t:null},this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=Bp.Default,this.onWidgetLoaded=Nh(),this.onSstClose=Nh(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=Oe(),this.dniNumber=null,this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{var e,t;if(!this.orgSlug)return;if(!this.centralConvo&&!this.buildingSlug)return;this.centralConvo&&!this.buildingSlug&&(this.orgLevel=!0);const i=this.centralConvo?await async function(e){const t=`https://app.meetelise.com/api/pub/v1/organization/${e}/webchat/v2`,i=await r().get(t);return Ca(i.data)}(this.orgSlug):await xa(this.orgSlug,this.buildingSlug);if(!this.isOrgMode()){if(Math.random()<.2)try{(async(e,t)=>{const i=window.rentgrata;if(!i)return;const n=i.Widget;if(!n)return;const o=n.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}try{hp(this.orgSlug,this.buildingSlug)}catch(e){}}if(!await Od(i,this.buildingSlug,this.orgSlug))return;Eo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==i?void 0:i.launchedDateTime)?.01:.05}),this.buildingWebchatView=i;const n=(()=>{try{const e="true"===sessionStorage.getItem($s);return sessionStorage.removeItem($s),e}catch{return!1}})();await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),(e=>{const t=new URLSearchParams(window.location.search),i=t.get("rwg_token"),n=t.get("elise_google_env");if(!i||!n||!e)return;const r={rwgToken:i,environment:n,buildingId:e,expiresAt:Date.now()+2592e6};localStorage.setItem(rs,JSON.stringify(r))})(null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.id)&&void 0!==t?t:0),n?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0):"tour"===new URLSearchParams(window.location.search).get("elise_open")&&(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile)?this.openTourSchedulerOnLoad=!0:this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.rememberChatAutoOpenDismissed()):"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,t,i,n,o,a,s,l,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S,k,A,T,E,_,O,P,I,N,M,D,L,R,B,U,j,F,H,z,G,W,q,V,Q,Y,K,X;const Z=this.buildingWebchatView;if(!Z)return;Z&&this.orgSlug&&!this.orgLevel&&Sp(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null);const J=Z.featureFlagWebchatMarketingSourceDropdownConfiguration,ee=Z.featureFlagWebchatUseDniPhoneNumberBySource,te=Z.featureFlagInsertDniIntoWebsite,ie=Z.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite;var ne;ne=Mo.includes(Z.orgId),Lo=ne;const[re,oe,ae,se,le,de]=await Promise.all([this.isOrgMode()?Promise.resolve([]):tp(this.orgSlug,this.buildingSlug),vo(this.buildingSlug),np(this.buildingSlug),xo(this.buildingSlug),$o(this.buildingSlug),Co(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=qi(Z.phoneNumber),this.buildingWebchatView.isAip=ae),this.leadSources=re,this.featureFlagShowDropdown=J,this.bedroomPreferenceRequired=se,this.brokerIntakeEnabled=le,this.tourSchedulerV2=de;const ue=this.orgLevel?null:Z.textWithUsPhoneNumber?Z.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",i=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(i.data)return i.data}catch(t){return To({logType:Ao.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t},error:t}),null}return null})(this.buildingSlug),ce=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,he=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,pe={callDesktop:null!==(u=null===(d=this.buildingWebchatView)||void 0===d?void 0:d.shouldShowPhoneDesktop)&&void 0!==u&&u,callMobile:null!==(h=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(y=null===(b=this.buildingWebchatView)||void 0===b?void 0:b.shouldShowEmailDesktop)&&void 0!==y&&y,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(C=(null===(x=this.buildingWebchatView)||void 0===x?void 0:x.shouldShowTextDesktop)&&!!ue)&&void 0!==C&&C,textMobile:null!==(S=(null===($=this.buildingWebchatView)||void 0===$?void 0:$.shouldShowTextMobile)&&!!ue)&&void 0!==S&&S,sstDesktop:null!==(A=null===(k=this.buildingWebchatView)||void 0===k?void 0:k.shouldShowSstDesktop)&&void 0!==A&&A,sstMobile:null!==(E=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==E&&E,calcDesktop:ce,calcMobile:he};var fe,ge;this.enabledChatWidgets=this.withOrgLevelContactOptions(jh(pe),null!==(O=null===(_=this.buildingWebchatView)||void 0===_?void 0:_.phoneNumber)&&void 0!==O?O:""),this.orgLevel||(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(sp(this.handleTourClicked,this.orgSlug,this.buildingSlug,()=>this.isConnected),ie&&(ge=this.handleTourClicked,document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(e=>{e&&e.addEventListener("click",e=>{e.preventDefault(),ge(e)})})),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var i;if(!t)return;const n=document.createElement("a");n.textContent=t.textContent,n.style.cursor="pointer",n.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(i=t.parentNode)||void 0===i||i.replaceChild(n,t)})})(this.handleTourClicked)):(null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&(fe=null!==(N=null===(I=this.LeadSourceClient)||void 0===I?void 0:I.leadSource)&&void 0!==N?N:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(fe)}`)}}))),this.buildingWebchatView&&(this.primaryColor=null!==(M=this.buildingWebchatView.primaryColor)&&void 0!==M?M:null,this.backgroundColor=null!==(D=this.buildingWebchatView.secondaryColor)&&void 0!==D?D:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(L=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==L?L:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(R=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==R?R:null,this.webchatConfigHasAutoOpenChat=null!==(B=this.buildingWebchatView.autoOpenChat)&&void 0!==B&&B,this.requiresConsent=null!==(U=this.buildingWebchatView.requiresConsentForChat)&&void 0!==U&&U,this.hideMobileFeatures=null!==(j=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==j&&j,this.privacyPolicyUrl=null!==(F=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==F?F:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===ba.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===ba.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===ba.EMOJI&&(this.designConcept=ba.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Xi),null===this.backgroundColor&&(this.backgroundColor=Zi);const me=null!==(z=null===(H=this.buildingWebchatView)||void 0===H?void 0:H.phoneNumber)&&void 0!==z?z:"";let be=null;if(ee&&!this.orgLevel&&(be=await async function(e,t){try{const i=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return i.data?{number:qi(i.data.number),isMatch:i.data.match,isPropertyWebsiteCatchall:i.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(W=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==W?W:null),be&&!be.isMatch&&(be.number=me)),te&&(null==be?void 0:be.number)){this.dniNumber=be.number;const e=ap(be.number,this.orgSlug,this.buildingSlug);e>0&&Eo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const ye=localStorage.getItem("eliseai_phone_number_devtest");ye&&(this.dniNumber=ye,ap(ye,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=be||{number:me,isMatch:!1,isPropertyWebsiteCatchall:!0};const ve=null!==(V=null===(q=this.LeadSourceClient)||void 0===q?void 0:q.leadSource)&&void 0!==V?V:null;ve&&(this.leadSources.includes(ve)||this.leadSources.push(ve)),this.isOrgMode()||so(Z.id);if((oe||(null===(Q=this.buildingWebchatView)||void 0===Q?void 0:Q.isAip))&&(null===(Y=this.buildingWebchatView)||void 0===Y?void 0:Y.isLiveOnApplications)&&this.buildingSlug&&!this.orgLevel){const e=((e,t,i)=>{var n;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/content\/apply/,/\/apply-now/,/\/apply/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(n=l.textContent)||void 0===n?void 0:n.toLowerCase())||"",s=pp(o,e);l.setAttribute("href",s),a++,To({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:Ao.info,buildingSlug:i,orgSlug:t})}}return 0===a&&To({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:Ao.warn,buildingSlug:i,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}/units`,this.orgSlug,this.buildingSlug);e>0&&Eo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}if(this.buildingSlug&&this.orgSlug&&!this.orgLevel)try{(e=>{const t=fp[e];if(!t)return 0;const i=`${gp}/building/${t}/units`,n=`${gp}/building/${e}/units`,r=new RegExp(`https://applications\\.eliseai\\.com/building/${t}/units`,"g");let o=0;const a=document.body.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a[e],s=t.getAttribute("href");if(!s||!s.includes(i))continue;const l=s.replace(r,n);l!==s&&(t.setAttribute("href",l),o++)}document.body.querySelectorAll("[onclick]").forEach(e=>{const t=e.getAttribute("onclick");if(!t||!t.includes(i))return;const a=t.replace(r,n);a!==t&&(e.setAttribute("onclick",a),o++)})})(this.buildingSlug)}catch{}this.buildingSlug&&!this.orgLevel&&(null===(K=this.buildingWebchatView)||void 0===K?void 0:K.isLiveOnApplications)&&(null===(X=this.buildingWebchatView)||void 0===X?void 0:X.applicationLink)&&"c954426c-12ab-4f8e-8384-8218e79eaf72"===this.orgSlug&&vp(this.orgSlug,this.buildingSlug,this.buildingWebchatView.applicationLink)},this.initializeChatVariables=async()=>{var e,t,i,n,r,o,a,s,l,d;if(!this.buildingWebchatView)return;const u=this.chatStorageSlug(),c=ws(u),h=xs(u,c),p=h?c:vs(u,!1);if(!p.leadId)throw new Error("Lead ID is null");if(this.LeadSourceClient=new ha,this.LeadSourceClient.orgId=null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.orgId)&&void 0!==t?t:0,this.LeadSourceMultitouchClient=new wp(this.orgSlug,this.buildingSlug),this.myPubnub=new Is(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,p.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.myPubnub.chatStorageSlug=u,this.centralConvo){const e=this.myPubnub;e.centralConvo=!0,void 0!==this.hostDeclaredBuildingId?e.declaredBuildingId=this.hostDeclaredBuildingId:this.fetchDeclaredBuildingId().then(t=>{void 0===this.hostDeclaredBuildingId&&(e.declaredBuildingId=t)})}else this.myPubnub.declaredBuildingId=this.buildingWebchatView.id;const f=await this.myPubnub.initSession(this.buildingSlug,this.orgSlug,h&&null!==(i=p.leadId)&&void 0!==i?i:void 0);f&&(vs(u,p.initiatedChat,f.lead_id),this.isOrgMode()&&f.building_slug&&await this.adoptBuilding(f.building_slug)),this.LeadSourceClient.chatId=this.myPubnub.channel;const g=await(null===(n=this.LeadSourceClient)||void 0===n?void 0:n.generateUserLeadSource({leadId:null!==(o=null===(r=this.myPubnub)||void 0===r?void 0:r.leadUserId)&&void 0!==o?o:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));g&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(g),"property-website"!==ca(this.orgSlug)?this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:ca(this.orgSlug):this.myPubnub.leadSource=null!==(d=null===(l=this.LeadSourceClient)||void 0===l?void 0:l.leadSource)&&void 0!==d?d:null;const m=ws(u);m.initiatedChat&&await this.myPubnub.initializePubnub(m)},this.isOrgMode=()=>this.centralConvo&&!this.buildingSlug,this.chatStorageSlug=()=>this.orgLevel?"":this.buildingSlug,this.adoptBuilding=async e=>{var t;try{const i=await xa(this.orgSlug,e);if(!(null==i?void 0:i.id))return;this.buildingSlug=e,this.buildingWebchatView=i,null===(t=this.myPubnub)||void 0===t||t.adoptBuilding(e,i)}catch(e){}},this.withOrgLevelContactOptions=(e,t)=>this.orgLevel?{...e,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,callDesktop:e.callDesktop&&!!t,callMobile:e.callMobile&&!!t}:e,this.fetchDeclaredBuildingId=async()=>{if(!this.declaredBuildingSlug||!this.orgSlug)return null;try{const e=await xa(this.orgSlug,this.declaredBuildingSlug);return"number"==typeof(null==e?void 0:e.id)&&e.id>0?e.id:null}catch{return null}},this.chatAutoOpenDismissedStorageKey=()=>{const{orgSlug:e,buildingSlug:t}=this;return e&&t?`com.elise.webchat.autoOpenDismissed=${e}=${t}`:t?`com.elise.webchat.autoOpenDismissed=${t}`:e?`com.elise.webchat.autoOpenDismissed=${e}`:null},this.shouldAutoOpenChat=e=>{if(!e||Nr())return!1;const t=this.chatAutoOpenDismissedStorageKey();return!t||"true"!==localStorage.getItem(t)},this.rememberChatAutoOpenDismissed=()=>{const e=this.chatAutoOpenDismissedStorageKey();e&&localStorage.setItem(e,"true")},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,i;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(i=this.launcherRef.value)||void 0===i||i.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,i,n;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.focusChatOnMount=!0,this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false"),this.rememberChatAutoOpenDismissed()},this.focusLauncherButton=()=>{var e,t;const i=(null===(e=this.launcherButton)||void 0===e?void 0:e.isConnected)?this.launcherButton:null;null===(t=null!=i?i:this.currentLauncherButton())||void 0===t||t.focus()},this.focusMessageFieldOnOpen=()=>{var e,t;const i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pubnub-chat"),n=null==i?void 0:i.shadowRoot;i&&n&&(i.focusMessageField()||null===(t=n.getElementById("pubnub-chat-container"))||void 0===t||t.focus(),setTimeout(()=>{i.focusMessageField()},0))},this.closeChatAndRestoreFocus=()=>{this.onExitChat(),this.updateComplete.then(()=>{this.focusLauncherButton(),requestAnimationFrame(()=>this.focusLauncherButton())})}}reinsertDNIIntoWebsite(){this.dniNumber&&ap(this.dniNumber,this.orgSlug,this.buildingSlug)}setDeclaredBuildingId(e){this.hostDeclaredBuildingId=e,this.myPubnub&&(this.myPubnub.declaredBuildingId=e)}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new So(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),ys(this.chatStorageSlug()),this.orgLevel&&(this.buildingSlug=""),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),this._cleanupMobileListener=Mr(e=>{this._isMobile=e})}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e,t;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),null===(t=this._cleanupMobileListener)||void 0===t||t.call(this),super.disconnectedCallback()}currentLauncherButton(){var e,t,i,n;const r=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("meetelise-launcher"))||void 0===t?void 0:t.shadowRoot,o=null==r?void 0:r.querySelector("#type-hey__ask-prompt, button[aria-label='Chat with us']"),a=null===(n=null===(i=null==r?void 0:r.querySelector("mobile-launcher"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.querySelector("button[aria-label='Chat with us']");return o instanceof HTMLElement?o:a instanceof HTMLElement?a:null}render(){var e,t,i,n,r,o,a,s,l,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S,k,A,T,E,_,O,P,I,N,M,D,L,R,B,U,j,F,z,G,W,q,V;Rh();const Q=this.hideLauncher&&!this.isLoading&&!this._isMobile;return H`
|
|
10214
|
+
`],mp([pe({attribute:!0})],bp.prototype,"onClick",void 0),mp([pe({attribute:!0})],bp.prototype,"primaryColor",void 0),mp([pe({attribute:!0})],bp.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),mp([pe({attribute:!0})],bp.prototype,"toExpand",void 0),bp=mp([ce("minimize-expand-button")],bp);const yp="cdn.skypack.dev/@meetelise/chat",vp="cdn.eliseai.com/@meetelise/chat",wp=async(e,t)=>{try{if(Math.random()>=.15)return;const i=(()=>{try{const e=document.getElementsByTagName("script");for(const t of e){const e=t.src||"",i=t.textContent||"";if(e.includes(yp)||i.includes(yp))return"skypack";if(e.includes(vp)||i.includes(vp))return"eliseai"}return"unknown"}catch(e){return"unknown"}})();await r().post("https://app.meetelise.com/platformApi/webchat/cdn-version",{cdn_version:i},{params:{cdn_version:i},headers:{"Content-Type":"application/json","building-slug":t,"org-slug":e}})}catch(e){}},xp=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?t.endsWith("/units")?t:`${t}/units`:t,Cp={"95ae958e-95db-11ed-9862-6f4db5533d3f":"8008db60-45b7-11f1-88ac-635f686365da","95ae96b0-95db-11ed-9863-a7aa664fd985":"72ed27c4-45b7-11f1-82d9-37b7db547687"},$p="https://applications.eliseai.com",Sp=["Check Availability","Apply Now"],kp=(e,t,i,n)=>{if(!(e=>{var t;if(!e.classList.contains("floorplan-button"))return!1;const i=e.getElementsByTagName("span");if(1!==i.length)return!1;const n=null===(t=i[0].textContent)||void 0===t?void 0:t.trim();return null!=n&&Sp.includes(n)})(e))return!1;if(e.getAttribute("href")===t)return!1;const r=e.getAttribute("href");return e.setAttribute("href",t),e.setAttribute("target","_blank"),Do({logTitle:"CHECK_AVAIL_OVERWRITE",logData:{oldHref:r,newHref:t,website:window.location.href},logType:Mo.info,buildingSlug:n,orgSlug:i}),!0},Ap=(e,t,i,n)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.nodeType!==Node.ELEMENT_NODE)continue;const a=o;"A"===a.tagName&&kp(a,t,i,n);const s=a.getElementsByTagName("a");for(let e=0;e<s.length;e++)kp(s[e],t,i,n)}},Tp=(e,t,i)=>{((e,t,i)=>{const n=document.body.getElementsByTagName("a");for(let r=0;r<n.length;r++)kp(n[r],e,t,i)})(i,e,t);new MutationObserver(n=>{for(const r of n)Ap(r.addedNodes,i,e,t)}).observe(document.body,{childList:!0,subtree:!0})};class Ep{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>Kr(Zr(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=Uo();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(No()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),i=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Kr(new Date),type:"touchpoint"}]};localStorage.setItem(i,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Kr(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(i,JSON.stringify(t));Do({logType:Mo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),i=va(this.orgSlug);if(!t){const t=[{leadSourceValue:i,timestampInitiallyLogged:Kr(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:Kr(new Date),type:"user-selected"}),t}const n=t.leadSources.length>0?t.leadSources.sort((e,t)=>ro(e.timestampInitiallyLogged).getTime()-ro(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:Kr(new Date),r=[{timestampInitiallyLogged:n,leadSourceValue:i,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:Kr(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>ro(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var _p=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Op=class extends de{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.centralConvo=!1,this.declaredBuildingSlug="",this.hostDeclaredBuildingId=void 0,this.orgLevel=!1,this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this._isMobile=Fr(),this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=Ao.always,this.bedroomPreferenceRequired=!1,this.tourSchedulerV2=!1,this.brokerIntakeEnabled=!1,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.openTourSchedulerOnLoad=!1,this.displayPubnubChat=!1,this.launcherButton=null,this.focusChatOnMount=!1,this.myPubnub=null,this.getSessionToken=()=>{var e,t;return null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.getSessionToken())&&void 0!==t?t:null},this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=qp.Default,this.onWidgetLoaded=Fh(),this.onSstClose=Fh(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=Oe(),this.dniNumber=null,this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{var e,t;if(!this.orgSlug)return;if(!this.centralConvo&&!this.buildingSlug)return;this.centralConvo&&!this.buildingSlug&&(this.orgLevel=!0);const i=this.centralConvo?await async function(e){const t=`https://app.meetelise.com/api/pub/v1/organization/${e}/webchat/v2`,i=await r().get(t);return Oa(i.data)}(this.orgSlug):await _a(this.orgSlug,this.buildingSlug);if(!this.isOrgMode()){if(Math.random()<.2)try{(async(e,t)=>{const i=window.rentgrata;if(!i)return;const n=i.Widget;if(!n)return;const o=n.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}try{wp(this.orgSlug,this.buildingSlug)}catch(e){}}if(!await Bd(i,this.buildingSlug,this.orgSlug))return;Lo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==i?void 0:i.launchedDateTime)?.01:.05}),this.buildingWebchatView=i;const n=(()=>{try{const e="true"===sessionStorage.getItem(Ps);return sessionStorage.removeItem(Ps),e}catch{return!1}})();await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),(e=>{const t=new URLSearchParams(window.location.search),i=t.get("rwg_token"),n=t.get("elise_google_env");if(!i||!n||!e)return;const r={rwgToken:i,environment:n,buildingId:e,expiresAt:Date.now()+2592e6};localStorage.setItem(hs,JSON.stringify(r))})(null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.id)&&void 0!==t?t:0),n?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0):"tour"===new URLSearchParams(window.location.search).get("elise_open")&&(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile)?this.openTourSchedulerOnLoad=!0:this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.rememberChatAutoOpenDismissed()):"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,t,i,n,o,a,s,l,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S,k,A,T,E,_,O,P,I,N,M,D,L,R,B,U,j,F,H,z,G,W,q,V,Q,Y,K,X;const Z=this.buildingWebchatView;if(!Z)return;Z&&this.orgSlug&&!this.orgLevel&&Ip(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null);const J=Z.featureFlagWebchatMarketingSourceDropdownConfiguration,ee=Z.featureFlagWebchatUseDniPhoneNumberBySource,te=Z.featureFlagInsertDniIntoWebsite,ie=Z.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite;var ne;ne=Ho.includes(Z.orgId),Go=ne;const[re,oe,ae,se,le,de]=await Promise.all([this.isOrgMode()?Promise.resolve([]):dp(this.orgSlug,this.buildingSlug),To(this.buildingSlug),cp(this.buildingSlug),_o(this.buildingSlug),Po(this.buildingSlug),Oo(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=qi(Z.phoneNumber),this.buildingWebchatView.isAip=ae),this.leadSources=re,this.featureFlagShowDropdown=J,this.bedroomPreferenceRequired=se,this.brokerIntakeEnabled=le,this.tourSchedulerV2=de;const ue=this.orgLevel?null:Z.textWithUsPhoneNumber?Z.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",i=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(i.data)return i.data}catch(t){return Do({logType:Mo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t},error:t}),null}return null})(this.buildingSlug),ce=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,he=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,pe={callDesktop:null!==(u=null===(d=this.buildingWebchatView)||void 0===d?void 0:d.shouldShowPhoneDesktop)&&void 0!==u&&u,callMobile:null!==(h=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(y=null===(b=this.buildingWebchatView)||void 0===b?void 0:b.shouldShowEmailDesktop)&&void 0!==y&&y,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(C=(null===(x=this.buildingWebchatView)||void 0===x?void 0:x.shouldShowTextDesktop)&&!!ue)&&void 0!==C&&C,textMobile:null!==(S=(null===($=this.buildingWebchatView)||void 0===$?void 0:$.shouldShowTextMobile)&&!!ue)&&void 0!==S&&S,sstDesktop:null!==(A=null===(k=this.buildingWebchatView)||void 0===k?void 0:k.shouldShowSstDesktop)&&void 0!==A&&A,sstMobile:null!==(E=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==E&&E,calcDesktop:ce,calcMobile:he};var fe,ge;this.enabledChatWidgets=this.withOrgLevelContactOptions(Qh(pe),null!==(O=null===(_=this.buildingWebchatView)||void 0===_?void 0:_.phoneNumber)&&void 0!==O?O:""),this.orgLevel||(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(gp(this.handleTourClicked,this.orgSlug,this.buildingSlug,()=>this.isConnected),ie&&(ge=this.handleTourClicked,document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(e=>{e&&e.addEventListener("click",e=>{e.preventDefault(),ge(e)})})),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var i;if(!t)return;const n=document.createElement("a");n.textContent=t.textContent,n.style.cursor="pointer",n.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(i=t.parentNode)||void 0===i||i.replaceChild(n,t)})})(this.handleTourClicked)):(null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&(fe=null!==(N=null===(I=this.LeadSourceClient)||void 0===I?void 0:I.leadSource)&&void 0!==N?N:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(fe)}`)}}))),this.buildingWebchatView&&(this.primaryColor=null!==(M=this.buildingWebchatView.primaryColor)&&void 0!==M?M:null,this.backgroundColor=null!==(D=this.buildingWebchatView.secondaryColor)&&void 0!==D?D:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(L=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==L?L:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(R=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==R?R:null,this.webchatConfigHasAutoOpenChat=null!==(B=this.buildingWebchatView.autoOpenChat)&&void 0!==B&&B,this.requiresConsent=null!==(U=this.buildingWebchatView.requiresConsentForChat)&&void 0!==U&&U,this.hideMobileFeatures=null!==(j=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==j&&j,this.privacyPolicyUrl=null!==(F=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==F?F:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===ka.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===ka.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===ka.EMOJI&&(this.designConcept=ka.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Xi),null===this.backgroundColor&&(this.backgroundColor=Zi);const me=null!==(z=null===(H=this.buildingWebchatView)||void 0===H?void 0:H.phoneNumber)&&void 0!==z?z:"";let be=null;if(ee&&!this.orgLevel&&(be=await async function(e,t){try{const i=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return i.data?{number:qi(i.data.number),isMatch:i.data.match,isPropertyWebsiteCatchall:i.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(W=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==W?W:null),be&&!be.isMatch&&(be.number=me)),te&&(null==be?void 0:be.number)){this.dniNumber=be.number;const e=fp(be.number,this.orgSlug,this.buildingSlug);e>0&&Lo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const ye=localStorage.getItem("eliseai_phone_number_devtest");ye&&(this.dniNumber=ye,fp(ye,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=be||{number:me,isMatch:!1,isPropertyWebsiteCatchall:!0};const ve=null!==(V=null===(q=this.LeadSourceClient)||void 0===q?void 0:q.leadSource)&&void 0!==V?V:null;ve&&(this.leadSources.includes(ve)||this.leadSources.push(ve)),this.isOrgMode()||mo(Z.id);if((oe||(null===(Q=this.buildingWebchatView)||void 0===Q?void 0:Q.isAip))&&(null===(Y=this.buildingWebchatView)||void 0===Y?void 0:Y.isLiveOnApplications)&&this.buildingSlug&&!this.orgLevel){const e=((e,t,i)=>{var n;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/content\/apply/,/\/apply-now/,/\/apply/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(n=l.textContent)||void 0===n?void 0:n.toLowerCase())||"",s=xp(o,e);l.setAttribute("href",s),a++,Do({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:Mo.info,buildingSlug:i,orgSlug:t})}}return 0===a&&Do({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:Mo.warn,buildingSlug:i,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}/units`,this.orgSlug,this.buildingSlug);e>0&&Lo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}if(this.buildingSlug&&this.orgSlug&&!this.orgLevel)try{(e=>{const t=Cp[e];if(!t)return 0;const i=`${$p}/building/${t}/units`,n=`${$p}/building/${e}/units`,r=new RegExp(`https://applications\\.eliseai\\.com/building/${t}/units`,"g");let o=0;const a=document.body.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a[e],s=t.getAttribute("href");if(!s||!s.includes(i))continue;const l=s.replace(r,n);l!==s&&(t.setAttribute("href",l),o++)}document.body.querySelectorAll("[onclick]").forEach(e=>{const t=e.getAttribute("onclick");if(!t||!t.includes(i))return;const a=t.replace(r,n);a!==t&&(e.setAttribute("onclick",a),o++)})})(this.buildingSlug)}catch{}this.buildingSlug&&!this.orgLevel&&(null===(K=this.buildingWebchatView)||void 0===K?void 0:K.isLiveOnApplications)&&(null===(X=this.buildingWebchatView)||void 0===X?void 0:X.applicationLink)&&"c954426c-12ab-4f8e-8384-8218e79eaf72"===this.orgSlug&&Tp(this.orgSlug,this.buildingSlug,this.buildingWebchatView.applicationLink)},this.initializeChatVariables=async()=>{var e,t,i,n,r,o,a,s,l,d;if(!this.buildingWebchatView)return;const u=this.chatStorageSlug(),c=Es(u),h=_s(u,c),p=h?c:Ts(u,!1);if(!p.leadId)throw new Error("Lead ID is null");if(this.LeadSourceClient=new wa,this.LeadSourceClient.orgId=null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.orgId)&&void 0!==t?t:0,this.LeadSourceMultitouchClient=new Ep(this.orgSlug,this.buildingSlug),this.myPubnub=new js(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,p.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.myPubnub.chatStorageSlug=u,this.centralConvo){const e=this.myPubnub;e.centralConvo=!0,void 0!==this.hostDeclaredBuildingId?e.declaredBuildingId=this.hostDeclaredBuildingId:this.fetchDeclaredBuildingId().then(t=>{void 0===this.hostDeclaredBuildingId&&(e.declaredBuildingId=t)})}else this.myPubnub.declaredBuildingId=this.buildingWebchatView.id;const f=await this.myPubnub.initSession(this.buildingSlug,this.orgSlug,h&&null!==(i=p.leadId)&&void 0!==i?i:void 0);f&&(Ts(u,p.initiatedChat,f.lead_id),this.isOrgMode()&&f.building_slug&&await this.adoptBuilding(f.building_slug)),this.LeadSourceClient.chatId=this.myPubnub.channel;const g=await(null===(n=this.LeadSourceClient)||void 0===n?void 0:n.generateUserLeadSource({leadId:null!==(o=null===(r=this.myPubnub)||void 0===r?void 0:r.leadUserId)&&void 0!==o?o:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));g&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(g),"property-website"!==va(this.orgSlug)?this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:va(this.orgSlug):this.myPubnub.leadSource=null!==(d=null===(l=this.LeadSourceClient)||void 0===l?void 0:l.leadSource)&&void 0!==d?d:null;const m=Es(u);m.initiatedChat&&await this.myPubnub.initializePubnub(m)},this.isOrgMode=()=>this.centralConvo&&!this.buildingSlug,this.chatStorageSlug=()=>this.orgLevel?"":this.buildingSlug,this.adoptBuilding=async e=>{var t;try{const i=await _a(this.orgSlug,e);if(!(null==i?void 0:i.id))return;this.buildingSlug=e,this.buildingWebchatView=i,null===(t=this.myPubnub)||void 0===t||t.adoptBuilding(e,i)}catch(e){}},this.withOrgLevelContactOptions=(e,t)=>this.orgLevel?{...e,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,callDesktop:e.callDesktop&&!!t,callMobile:e.callMobile&&!!t}:e,this.fetchDeclaredBuildingId=async()=>{if(!this.declaredBuildingSlug||!this.orgSlug)return null;try{const e=await _a(this.orgSlug,this.declaredBuildingSlug);return"number"==typeof(null==e?void 0:e.id)&&e.id>0?e.id:null}catch{return null}},this.chatAutoOpenDismissedStorageKey=()=>{const{orgSlug:e,buildingSlug:t}=this;return e&&t?`com.elise.webchat.autoOpenDismissed=${e}=${t}`:t?`com.elise.webchat.autoOpenDismissed=${t}`:e?`com.elise.webchat.autoOpenDismissed=${e}`:null},this.shouldAutoOpenChat=e=>{if(!e||Fr())return!1;const t=this.chatAutoOpenDismissedStorageKey();return!t||"true"!==localStorage.getItem(t)},this.rememberChatAutoOpenDismissed=()=>{const e=this.chatAutoOpenDismissedStorageKey();e&&localStorage.setItem(e,"true")},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,i;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(i=this.launcherRef.value)||void 0===i||i.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,i,n;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.focusChatOnMount=!0,this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false"),this.rememberChatAutoOpenDismissed()},this.focusLauncherButton=()=>{var e,t;const i=(null===(e=this.launcherButton)||void 0===e?void 0:e.isConnected)?this.launcherButton:null;null===(t=null!=i?i:this.currentLauncherButton())||void 0===t||t.focus()},this.focusMessageFieldOnOpen=()=>{var e,t;const i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("pubnub-chat"),n=null==i?void 0:i.shadowRoot;i&&n&&(i.focusMessageField()||null===(t=n.getElementById("pubnub-chat-container"))||void 0===t||t.focus(),setTimeout(()=>{i.focusMessageField()},0))},this.closeChatAndRestoreFocus=()=>{this.onExitChat(),this.updateComplete.then(()=>{this.focusLauncherButton(),requestAnimationFrame(()=>this.focusLauncherButton())})}}reinsertDNIIntoWebsite(){this.dniNumber&&fp(this.dniNumber,this.orgSlug,this.buildingSlug)}setDeclaredBuildingId(e){this.hostDeclaredBuildingId=e,this.myPubnub&&(this.myPubnub.declaredBuildingId=e)}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new Io(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),As(this.chatStorageSlug()),this.orgLevel&&(this.buildingSlug=""),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),this._cleanupMobileListener=Hr(e=>{this._isMobile=e})}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e,t;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),null===(t=this._cleanupMobileListener)||void 0===t||t.call(this),super.disconnectedCallback()}currentLauncherButton(){var e,t,i,n;const r=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("meetelise-launcher"))||void 0===t?void 0:t.shadowRoot,o=null==r?void 0:r.querySelector("#type-hey__ask-prompt, button[aria-label='Chat with us']"),a=null===(n=null===(i=null==r?void 0:r.querySelector("mobile-launcher"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.querySelector("button[aria-label='Chat with us']");return o instanceof HTMLElement?o:a instanceof HTMLElement?a:null}render(){var e,t,i,n,r,o,a,s,l,d,u,c,h,p,f,g,m,b,y,v,w,x,C,$,S,k,A,T,E,_,O,P,I,N,M,D,L,R,B,U,j,F,z,G,W,q,V;Wh();const Q=this.hideLauncher&&!this.isLoading&&!this._isMobile;return H`
|
|
10206
10215
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10207
10216
|
${this.displayPubnubChat?H`
|
|
10208
10217
|
<pubnub-chat
|
|
@@ -10212,7 +10221,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10212
10221
|
.orgSlug=${this.orgSlug}
|
|
10213
10222
|
.buildingSlug=${this.buildingSlug}
|
|
10214
10223
|
.centralConvo=${this.centralConvo}
|
|
10215
|
-
.widgetType=${
|
|
10224
|
+
.widgetType=${qp.Default}
|
|
10216
10225
|
.building=${this.buildingWebchatView}
|
|
10217
10226
|
.primaryColor=${this.primaryColor}
|
|
10218
10227
|
.backgroundColor=${this.backgroundColor}
|
|
@@ -10322,7 +10331,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10322
10331
|
</meetelise-launcher>`:""}
|
|
10323
10332
|
</div>
|
|
10324
10333
|
</meta>
|
|
10325
|
-
`}};
|
|
10334
|
+
`}};Op.styles=p`
|
|
10326
10335
|
:host {
|
|
10327
10336
|
all: initial;
|
|
10328
10337
|
}
|
|
@@ -10371,7 +10380,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10371
10380
|
position: fixed;
|
|
10372
10381
|
bottom: 0;
|
|
10373
10382
|
}
|
|
10374
|
-
`,
|
|
10383
|
+
`,_p([pe({type:String})],Op.prototype,"buildingSlug",void 0),_p([pe({type:String})],Op.prototype,"orgSlug",void 0),_p([pe({type:Boolean})],Op.prototype,"centralConvo",void 0),_p([pe({type:String})],Op.prototype,"declaredBuildingSlug",void 0),_p([pe({type:Object})],Op.prototype,"launcherStyles",void 0),_p([pe()],Op.prototype,"mobileStyles",void 0),_p([pe({type:Boolean})],Op.prototype,"isMinimized",void 0),_p([pe({type:String})],Op.prototype,"primaryColor",void 0),_p([pe({type:String})],Op.prototype,"backgroundColor",void 0),_p([pe({type:String})],Op.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),_p([pe({type:String})],Op.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),_p([fe()],Op.prototype,"_isMobile",void 0),_p([fe()],Op.prototype,"chatId",void 0),_p([fe()],Op.prototype,"analytics",void 0),_p([fe()],Op.prototype,"launcher",void 0),_p([fe()],Op.prototype,"buildingWebchatView",void 0),_p([fe()],Op.prototype,"designConcept",void 0),_p([fe()],Op.prototype,"leadSources",void 0),_p([fe()],Op.prototype,"currentLeadSource",void 0),_p([fe()],Op.prototype,"featureFlagShowDropdown",void 0),_p([fe()],Op.prototype,"bedroomPreferenceRequired",void 0),_p([fe()],Op.prototype,"tourSchedulerV2",void 0),_p([fe()],Op.prototype,"brokerIntakeEnabled",void 0),_p([fe()],Op.prototype,"phoneNumberForSource",void 0),_p([fe()],Op.prototype,"hasMounted",void 0),_p([fe()],Op.prototype,"hideLauncher",void 0),_p([fe()],Op.prototype,"isLoading",void 0),_p([fe()],Op.prototype,"showTourNextToChat",void 0),_p([fe()],Op.prototype,"openTourSchedulerOnLoad",void 0),_p([fe()],Op.prototype,"displayPubnubChat",void 0),_p([fe()],Op.prototype,"myPubnub",void 0),_p([fe()],Op.prototype,"LeadSourceClient",void 0),_p([fe()],Op.prototype,"LeadSourceMultitouchClient",void 0),_p([fe()],Op.prototype,"sampleRateToUse",void 0),_p([pe({type:Number})],Op.prototype,"right",void 0),_p([pe({type:Number})],Op.prototype,"bottom",void 0),_p([pe({type:Number})],Op.prototype,"top",void 0),_p([pe({type:Number})],Op.prototype,"left",void 0),_p([pe({attribute:!0})],Op.prototype,"overrideRentgrata",void 0),_p([pe({attribute:!0})],Op.prototype,"widgetType",void 0),_p([pe()],Op.prototype,"onWidgetLoaded",void 0),_p([pe({attribute:!0})],Op.prototype,"onSstClose",void 0),_p([fe()],Op.prototype,"enabledChatWidgets",void 0),_p([fe()],Op.prototype,"webchatConfigHasAutoOpenChat",void 0),_p([fe()],Op.prototype,"requiresConsent",void 0),_p([fe()],Op.prototype,"hideMobileFeatures",void 0),_p([fe()],Op.prototype,"privacyPolicyUrl",void 0),Op=_p([ce("me-chat")],Op);const Pp=e=>{for(const t of e){const e=document.getElementById(t);if(e)return e}return null},Ip=async(e,t,i,n,o)=>{var a;if(!n||!e)return;const s=await async function(e){if(!e)return!1;try{return(await r().get(ko(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-override-contact-us-form",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(n);if(!s)return;const d=Pp(["myContactForm","contactus","fpa-myContactForm"]);let u;if(!(d&&d instanceof HTMLFormElement)){const t=document.querySelector("form");return void(window.location.pathname.toLowerCase().includes("contactus")&&Np(n,e,"Could not find form",t?{id:t.id}:void 0))}try{if(d.parentElement&&"scheduleTourForm"===d.parentElement.id)return Np(n,e,"Form is apart of schedule tour form!")}catch(e){}for(let e=0;e<d.elements.length;e++){const t=d.elements[e];if("button"===t.tagName.toLowerCase()&&"fakebutton"===t.getAttribute("data-selenium-id")){u=t;break}if("fpa-contact-submit"===t.getAttribute("id")){u=t;break}}if(!u)return Np(n,e,"Could not find submit button");const c=()=>({firstName:Pp(["firstname","txtName","fpa-firstname","Form_FirstName"]),lastName:Pp(["lastname","txtName2","fpa-lastname","Form_LastName"]),email:Pp(["email","txtEmail","fpa-email","Form_Email"]),phone:Pp(["phonenumber","txtPhone","fpa-phonenumber","Form_Phone"]),message:Pp(["message","txtComments","fpa-email","Form_Message"])});if(Object.values(c()).some(e=>null===e)){const t=Object.entries(c()).filter(([,e])=>null===e).map(([e])=>e);return Np(n,e,"Missing the following form elements: "+t.join(", "))}const h=u.textContent,p=u.cloneNode(!0);null===(a=u.parentNode)||void 0===a||a.replaceChild(p,u),p&&Lo({params:{chat_id:t,org_slug:e,building_slug:n,is_form_override_success:!0},sampleRate:i}),p.onclick=async function(t){if(Object.values(c()).forEach(e=>{"true"!==(null==e?void 0:e.getAttribute("aria-required"))||e.value||(e.className="form-control required is-invalid")}),!Object.values(c()).every(e=>null!==e&&!("true"===e.getAttribute("aria-required")&&!e.value)&&("email"!==e.id&&"phonenumber"!==e.id||"true"!==e.getAttribute("aria-invalid"))))return;t.preventDefault(),p.textContent="Processing request...",p.disabled=!0;const i={};Object.entries(c()).forEach(([e,t])=>i[e]=null==t?void 0:t.value);const r=await _a(e,n);if(!r)return Np(n,e,"Could not find building"),null;const a={email_address:i.email,first_name:i.firstName,last_name:i.lastName,phone_number:i.phone,first_message:i.message,building_id:r.id,is_external_form:!0,tracking_params:l(e),lead_sources:[...new Set(o?[o,va(e)]:[va(e)])]},s=JSON.stringify(a);fetch("https://app.meetelise.com/platformApi/state/create/contactMe",{method:"POST",headers:{"Content-Type":"application/json","building-slug":n,"org-slug":e},body:s}).then(e=>{if(!e.ok)throw new Error(`HTTP error ${e.status}`);return d&&d.reset(),Object.values(c()).forEach(e=>{e&&(e.disabled=!0)}),p.textContent="Submitted",p.disabled=!0,e.json()}).catch(()=>{p.textContent=h})}},Np=(e,t,i,n)=>{const r=JSON.stringify({orgSlug:t,buildingSlug:e,reason:i,url:window.location.href,formIdInfo:n});fetch("https://app.meetelise.com/platformApi/webchat/form-override-error",{method:"POST",headers:{"Content-Type":"application/json","building-slug":e,"org-slug":t},body:r})},Mp=p`
|
|
10375
10384
|
.chat-launcher {
|
|
10376
10385
|
position: fixed;
|
|
10377
10386
|
}
|
|
@@ -10402,10 +10411,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10402
10411
|
filter: brightness(1.1);
|
|
10403
10412
|
}
|
|
10404
10413
|
}
|
|
10405
|
-
`;var
|
|
10414
|
+
`;var Dp=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Lp=class extends de{constructor(){super(...arguments),this.right=0,this.bottom=0,this.top=0,this.left=0,this.isChatOpen=!1,this.onClickCloseChat=()=>({}),this.onClickOpenChat=()=>({})}render(){return this.isChatOpen?H`
|
|
10406
10415
|
<div
|
|
10407
10416
|
class="chat-launcher"
|
|
10408
|
-
style=${Ki({top:
|
|
10417
|
+
style=${Ki({top:Fr()||isNaN(this.top)?void 0:`${this.top+432}px`,bottom:Fr()||isNaN(this.bottom)?"72px":this.bottom-60+"px",left:Fr()||isNaN(this.left)?void 0:`${this.left}px`,right:Fr()||isNaN(this.right)?"18px":`${this.right}px`})}
|
|
10409
10418
|
>
|
|
10410
10419
|
<button
|
|
10411
10420
|
class="close-chat-bttn"
|
|
@@ -10432,7 +10441,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10432
10441
|
</div>
|
|
10433
10442
|
`:H` <div
|
|
10434
10443
|
class="chat-launcher"
|
|
10435
|
-
style=${Ki({top:
|
|
10444
|
+
style=${Ki({top:Fr()||isNaN(this.top)?void 0:`${this.top+432}px`,bottom:Fr()||isNaN(this.bottom)?"72px":this.bottom-60+"px",left:Fr()||isNaN(this.left)?void 0:`${this.left}px`,right:Fr()||isNaN(this.right)?"18px":`${this.right}px`})}
|
|
10436
10445
|
>
|
|
10437
10446
|
<button
|
|
10438
10447
|
class="open-chat-bttn"
|
|
@@ -10456,12 +10465,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10456
10465
|
/>
|
|
10457
10466
|
</svg>
|
|
10458
10467
|
</button>
|
|
10459
|
-
</div>`}};
|
|
10468
|
+
</div>`}};Lp.styles=[Mp],Dp([pe({type:Number})],Lp.prototype,"right",void 0),Dp([pe({type:Number})],Lp.prototype,"bottom",void 0),Dp([pe({type:Number})],Lp.prototype,"top",void 0),Dp([pe({type:Number})],Lp.prototype,"left",void 0),Dp([pe({attribute:!0})],Lp.prototype,"isChatOpen",void 0),Dp([pe({attribute:!0})],Lp.prototype,"onClickCloseChat",void 0),Dp([pe({attribute:!0})],Lp.prototype,"onClickOpenChat",void 0),Lp=Dp([ce("simple-launcher")],Lp);var Rp=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Bp=class extends de{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=Oe(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Es(this.healthcareId),t=_s(this.healthcareId,e)?e:Ts(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new js(this.healthcareId,null,"",this.currentLeadSource,t.leadId,null,null,qp.Healthcare),t.initiatedChat&&await this.myPubnub.initializePubnub(e),Fr()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),As(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return Wh(),this.isLoading?H``:H`
|
|
10460
10469
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
10461
10470
|
${this.displayPubnubChat?H`
|
|
10462
10471
|
<pubnub-chat
|
|
10463
10472
|
id="pubnub-chat"
|
|
10464
|
-
.widgetType=${
|
|
10473
|
+
.widgetType=${qp.Healthcare}
|
|
10465
10474
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
10466
10475
|
.myPubnub=${this.myPubnub}
|
|
10467
10476
|
.buildingSlug=${this.healthcareId}
|
|
@@ -10487,7 +10496,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10487
10496
|
></simple-launcher>
|
|
10488
10497
|
|
|
10489
10498
|
</meta>
|
|
10490
|
-
`}};
|
|
10499
|
+
`}};Bp.styles=p`
|
|
10491
10500
|
:host {
|
|
10492
10501
|
all: initial;
|
|
10493
10502
|
}
|
|
@@ -10540,13 +10549,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10540
10549
|
line-height: 150%;
|
|
10541
10550
|
font-size: 16px;
|
|
10542
10551
|
}
|
|
10543
|
-
`,
|
|
10552
|
+
`,Rp([pe({type:String})],Bp.prototype,"healthcareId",void 0),Rp([pe({type:Number})],Bp.prototype,"right",void 0),Rp([pe({type:Number})],Bp.prototype,"bottom",void 0),Rp([pe({type:Number})],Bp.prototype,"top",void 0),Rp([pe({type:Number})],Bp.prototype,"left",void 0),Rp([fe()],Bp.prototype,"launcher",void 0),Rp([fe()],Bp.prototype,"currentLeadSource",void 0),Rp([fe()],Bp.prototype,"displayPubnubChat",void 0),Rp([fe()],Bp.prototype,"myPubnub",void 0),Rp([fe()],Bp.prototype,"requiresConsent",void 0),Rp([fe()],Bp.prototype,"privacyPolicyUrl",void 0),Rp([fe()],Bp.prototype,"isLoading",void 0),Bp=Rp([ce("health-chat")],Bp);var Up=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let jp=class extends de{constructor(){super(...arguments),this.orgSlug="",this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=Oe(),this.firstUpdated=async()=>{(await async function(e){if(!e)return!1;const t="e2e-test-yardi-building";try{return(await r().get(ko(t),{params:{building_slug:t,flag_type:"bool",feature_flag:"enable-show-utilities-webchat",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(this.orgSlug)||location.href.includes("demo/utilities"))&&await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Es(this.orgSlug),t=_s(this.orgSlug,e)?e:Ts(this.orgSlug,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new js(this.orgSlug,null,this.orgSlug,this.currentLeadSource,t.leadId,null,null,qp.Utilities),t.initiatedChat&&await this.myPubnub.initializePubnub(e),Fr()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),As(this.orgSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return Wh(),this.isLoading?H``:H`
|
|
10544
10553
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
10545
10554
|
${this.displayPubnubChat?H`
|
|
10546
10555
|
<pubnub-chat
|
|
10547
10556
|
id="pubnub-chat"
|
|
10548
10557
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
10549
|
-
.widgetType=${
|
|
10558
|
+
.widgetType=${qp.Utilities}
|
|
10550
10559
|
.myPubnub=${this.myPubnub}
|
|
10551
10560
|
.buildingSlug=${this.orgSlug}
|
|
10552
10561
|
.onClickExit=${()=>{this.displayPubnubChat=!1}}
|
|
@@ -10570,7 +10579,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10570
10579
|
|
|
10571
10580
|
></simple-launcher>
|
|
10572
10581
|
</meta>
|
|
10573
|
-
`}};
|
|
10582
|
+
`}};jp.styles=p`
|
|
10574
10583
|
:host {
|
|
10575
10584
|
all: initial;
|
|
10576
10585
|
}
|
|
@@ -10623,4 +10632,4 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
10623
10632
|
line-height: 150%;
|
|
10624
10633
|
font-size: 16px;
|
|
10625
10634
|
}
|
|
10626
|
-
`,Pp([pe({type:String})],Ip.prototype,"orgSlug",void 0),Pp([pe({type:Number})],Ip.prototype,"right",void 0),Pp([pe({type:Number})],Ip.prototype,"bottom",void 0),Pp([pe({type:Number})],Ip.prototype,"top",void 0),Pp([pe({type:Number})],Ip.prototype,"left",void 0),Pp([fe()],Ip.prototype,"launcher",void 0),Pp([fe()],Ip.prototype,"currentLeadSource",void 0),Pp([fe()],Ip.prototype,"displayPubnubChat",void 0),Pp([fe()],Ip.prototype,"myPubnub",void 0),Pp([fe()],Ip.prototype,"requiresConsent",void 0),Pp([fe()],Ip.prototype,"privacyPolicyUrl",void 0),Pp([fe()],Ip.prototype,"isLoading",void 0),Ip=Pp([ce("utilities-chat")],Ip);const Np=async e=>{const t=window.location.href,i=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,n=await r().get(i,{headers:{"org-slug":e}});return Math.random()<.2&&To({logType:n&&n.data?Ao.info:Ao.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:t,orgSlug:e,givenBuildingSlug:null,reason:n&&n.data?null:"No match found"}}),n.data},Mp=async(e,t=5e3)=>new Promise((i,n)=>{const r=new MutationObserver((t,n)=>{const r=document.getElementById(e);r&&(n.disconnect(),i(r))});r.observe(document.body,{childList:!0,subtree:!0});const o=setTimeout(()=>{r.disconnect(),n(new Error(`Element ${e} did not appear within ${t}ms`))},t),a=document.querySelector(e);a&&(clearTimeout(o),r.disconnect(),i(a))});class Dp{static healthcareStart(e,t=!0){var i,n,r,o;t&&(this.healthcareId=e.id,this.overridePlacement={right:e.right,bottom:e.bottom,top:e.top,left:e.left}),Up();const a=document.createElement("health-chat");a.setAttribute("class","health-chat"),a.setAttribute("role","region"),a.setAttribute("aria-label","EliseAI Healthcare Widget"),a.setAttribute("healthcareId",e.id),a.setAttribute("right",(null===(i=e.right)||void 0===i?void 0:i.toString())||"unset"),a.setAttribute("bottom",(null===(n=e.bottom)||void 0===n?void 0:n.toString())||"unset"),a.setAttribute("top",(null===(r=e.top)||void 0===r?void 0:r.toString())||"unset"),a.setAttribute("left",(null===(o=e.left)||void 0===o?void 0:o.toString())||"unset"),document.body.appendChild(a),Dp.healthChat=a}static start(e,t=!0){var i,n,r,o,a,s,l,d;if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;if(t&&(this.orgSlug="Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||"",this.hasBuildingSlug=!!e.building,this.overridePlacement={right:null===(i=null==e?void 0:e.position)||void 0===i?void 0:i.right,bottom:null===(n=null==e?void 0:e.position)||void 0===n?void 0:n.bottom,top:null===(r=null==e?void 0:e.position)||void 0===r?void 0:r.top,left:null===(o=null==e?void 0:e.position)||void 0===o?void 0:o.left}),Up(),e.studio&&!e.building)return void this.handleStudioContext(e);let u=null;switch(e.widgetType){case Bp.Healthcare:throw new Error("Healthcare widget is not supported yet, please use the healthcareStart method instead.");case Bp.Default:u=document.createElement("me-chat");break;case Bp.Utilities:u=document.createElement("utilities-chat");break;default:u=document.createElement("me-chat")}if(!u)throw new Error("Invalid widget type");u.setAttribute("orgSlug","Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||""),u.setAttribute("widgetType",e.widgetType||Bp.Default),u.setAttribute("class","meetelise-chat"),u.setAttribute("role","region"),u.setAttribute("aria-label","EliseAI Widget"),e.brandColor&&(this.brandColor=e.brandColor,u.setAttribute("primaryColor",((e,t)=>{const i=Ji(e),n=0,r=0,o=0,a={r:i.r+Math.round((n-i.r)*t),g:i.g+Math.round((r-i.g)*t),b:i.b+Math.round((o-i.b)*t)};return en(a.r,a.g,a.b)})(e.brandColor,.3))),e.backgroundColor&&(this.backgroundColor=e.backgroundColor),u instanceof Cp&&(e.centralConvo?(u.setAttribute("centralConvo","true"),e.building&&u.setAttribute("declaredBuildingSlug",e.building)):this.handleBuildingslug(u,e.organization,e.building,e),e.launcherStyles&&(u.launcherStyles=e.launcherStyles),e.mobileStyles&&(u.mobileStyles=e.mobileStyles),e.onWidgetLoaded&&(u.onWidgetLoaded=e.onWidgetLoaded),e.overrideRentgrata&&((async()=>{const e=await Mp("rg-widget-compact");e&&e.setAttribute("style","display: none")})(),u.overrideRentgrata=!0),e.onSstClose&&(u.onSstClose=e.onSstClose)),e.position&&(u.setAttribute("right",(null===(a=e.position.right)||void 0===a?void 0:a.toString())||"unset"),u.setAttribute("bottom",(null===(s=e.position.bottom)||void 0===s?void 0:s.toString())||"unset"),u.setAttribute("top",(null===(l=e.position.top)||void 0===l?void 0:l.toString())||"unset"),u.setAttribute("left",(null===(d=e.position.left)||void 0===d?void 0:d.toString())||"unset")),window.eliseAi={},document.body.appendChild(u),u instanceof Cp&&(Dp.meChat=u),u instanceof Ip&&(Dp.utilitiesChat=u)}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.studioUpdateToken+=1,await this.removeWidget(),this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.activeStudioOptions=null}static async removeWidget(){var e;if(!this.meChat)return;const t=this.meChat;await t.remove(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),Dp.meChat===t&&(Dp.meChat=null)}static handleStudioContext(e){e.studio&&(this.activeStudioOptions=e)}static updateStudioContext(e){var t;const i=this.activeStudioOptions;if(!(null==i?void 0:i.studio))return;const n=++this.studioUpdateToken;if(e.siteId&&e.siteId!==i.studio.siteId)return void To({logType:Ao.warn,logTitle:"[STUDIO_WEBCHAT_CONTEXT_SITE_MISMATCH]",logData:{activeSiteId:i.studio.siteId,contextSiteId:e.siteId,url:window.location.href}});if("org"===(null===(t=e.sessionScope)||void 0===t?void 0:t.type))return void this.updateStudioOrgContext(e,i,n);const r=Lp(e.organization),o=Lp(e.building);if(!r||!o)return void this.clearStudioContext({source:"elise_studio",reason:"missing_context",preserveCache:!0});const a=function(e,t){if(!(null==e?void 0:e.key))return`building:${t}`;return e.key}(e.sessionScope,o),s=Rp(r);this.activeStudioOrgSlug!==s||this.activeStudioBuildingSlug!==o||this.activeStudioSessionScopeKey!==a?this.removeWidget().then(()=>{n===this.studioUpdateToken&&(this.activeStudioOrgSlug=s,this.activeStudioBuildingSlug=o,this.activeStudioSessionScopeKey=a,this.orgSlug=s,this.start({...i,organization:r,building:o},!1))}):requestAnimationFrame(()=>{var e;return null===(e=this.meChat)||void 0===e?void 0:e.reinsertDNIIntoWebsite()})}static updateStudioOrgContext(e,t,i){var n;const r=Lp(e.organization);if(!r)return void this.clearStudioContext({source:"elise_studio",reason:"missing_context",preserveCache:!0});const o=Rp(r),a=(null===(n=e.sessionScope)||void 0===n?void 0:n.key)||`org:${r}`,s=function(e){const t="string"==typeof e?Number(e):e;return"number"==typeof t&&Number.isInteger(t)&&t>0?t:null}(e.declaredBuildingId);!this.meChat||this.activeStudioOrgSlug!==o||this.activeStudioBuildingSlug||this.activeStudioSessionScopeKey!==a?this.removeWidget().then(()=>{var e;i===this.studioUpdateToken&&(this.activeStudioOrgSlug=o,this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey=a,this.orgSlug=o,this.start({...t,studio:void 0,organization:r,building:void 0,centralConvo:!0},!1),null===(e=this.meChat)||void 0===e||e.setDeclaredBuildingId(s))}):this.meChat.setDeclaredBuildingId(s)}static clearStudioContext(e){this.studioUpdateToken+=1,this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.removeWidget()}static async handleBuildingslug(e,t,i,n){if(i)return void e.setAttribute("buildingSlug",i);if(this.mutationObserver)return;if(!t)return;const r=await Np(t);if(r){const e={...n,organization:t,building:r};this.start(e,!1)}this.previousUrl=window.location.href,document.body.addEventListener("click",()=>{requestAnimationFrame(()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,Np(t).then(e=>{if(!e)return;const i={...n,organization:t,building:e};this.start(i,!1)}))})},!0)}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,t=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,i=await r().get(t,{headers:{"org-slug":this.orgSlug}});if(Math.random()<.2&&To({logType:i&&i.data?Ao.info:Ao.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:e,orgSlug:this.orgSlug,givenBuildingSlug:null,reason:i&&i.data?null:"No match found"}}),!i||!i.data)return;const n={organization:this.orgSlug,building:i.data,brandColor:this.brandColor,backgroundColor:this.backgroundColor};this.start(n,!1)}static async calculateBuildingSlugForLogging(e){const t=window.location.href,i=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,n=await r().get(i,{headers:{"org-slug":this.orgSlug}});Math.random()<.2&&To({logType:n&&n.data===e?Ao.info:Ao.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n&&n.data===e?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:t,orgSlug:this.orgSlug,givenBuildingSlug:e,reason:n&&n.data===e?null:n&&!n.data?"No match found":n&&n.data!==e?"Mismatch":"No match found"}}),n&&n.data}}function Lp(e){return"string"!=typeof e?"":e.trim()}function Rp(e){return"Pacific Urban Residential"===e?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e}var Bp;Dp.meChat=null,Dp.healthChat=null,Dp.utilitiesChat=null,Dp.orgSlug="",Dp.mutationObserver=null,Dp.previousUrl="",Dp.hasBuildingSlug=null,Dp.brandColor="",Dp.backgroundColor="",Dp.healthcareId="",Dp.activeStudioOrgSlug="",Dp.activeStudioBuildingSlug="",Dp.activeStudioSessionScopeKey="",Dp.activeStudioOptions=null,Dp.studioUpdateToken=0,Dp.overridePlacement={},function(e){e.Default="default",e.Healthcare="healthcare",e.Utilities="utilities"}(Bp||(Bp={}));const Up=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)};export{Bp as WidgetType,Dp as default};
|
|
10635
|
+
`,Up([pe({type:String})],jp.prototype,"orgSlug",void 0),Up([pe({type:Number})],jp.prototype,"right",void 0),Up([pe({type:Number})],jp.prototype,"bottom",void 0),Up([pe({type:Number})],jp.prototype,"top",void 0),Up([pe({type:Number})],jp.prototype,"left",void 0),Up([fe()],jp.prototype,"launcher",void 0),Up([fe()],jp.prototype,"currentLeadSource",void 0),Up([fe()],jp.prototype,"displayPubnubChat",void 0),Up([fe()],jp.prototype,"myPubnub",void 0),Up([fe()],jp.prototype,"requiresConsent",void 0),Up([fe()],jp.prototype,"privacyPolicyUrl",void 0),Up([fe()],jp.prototype,"isLoading",void 0),jp=Up([ce("utilities-chat")],jp);const Fp=async e=>{const t=window.location.href,i=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,n=await r().get(i,{headers:{"org-slug":e}});return Math.random()<.2&&Do({logType:n&&n.data?Mo.info:Mo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:t,orgSlug:e,givenBuildingSlug:null,reason:n&&n.data?null:"No match found"}}),n.data},Hp=async(e,t=5e3)=>new Promise((i,n)=>{const r=new MutationObserver((t,n)=>{const r=document.getElementById(e);r&&(n.disconnect(),i(r))});r.observe(document.body,{childList:!0,subtree:!0});const o=setTimeout(()=>{r.disconnect(),n(new Error(`Element ${e} did not appear within ${t}ms`))},t),a=document.querySelector(e);a&&(clearTimeout(o),r.disconnect(),i(a))});class zp{static healthcareStart(e,t=!0){var i,n,r,o;t&&(this.healthcareId=e.id,this.overridePlacement={right:e.right,bottom:e.bottom,top:e.top,left:e.left}),Vp();const a=document.createElement("health-chat");a.setAttribute("class","health-chat"),a.setAttribute("role","region"),a.setAttribute("aria-label","EliseAI Healthcare Widget"),a.setAttribute("healthcareId",e.id),a.setAttribute("right",(null===(i=e.right)||void 0===i?void 0:i.toString())||"unset"),a.setAttribute("bottom",(null===(n=e.bottom)||void 0===n?void 0:n.toString())||"unset"),a.setAttribute("top",(null===(r=e.top)||void 0===r?void 0:r.toString())||"unset"),a.setAttribute("left",(null===(o=e.left)||void 0===o?void 0:o.toString())||"unset"),document.body.appendChild(a),zp.healthChat=a}static start(e,t=!0){var i,n,r,o,a,s,l,d;if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;if(t&&(this.orgSlug="Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||"",this.hasBuildingSlug=!!e.building,this.overridePlacement={right:null===(i=null==e?void 0:e.position)||void 0===i?void 0:i.right,bottom:null===(n=null==e?void 0:e.position)||void 0===n?void 0:n.bottom,top:null===(r=null==e?void 0:e.position)||void 0===r?void 0:r.top,left:null===(o=null==e?void 0:e.position)||void 0===o?void 0:o.left}),Vp(),e.studio&&!e.building)return void this.handleStudioContext(e);let u=null;switch(e.widgetType){case qp.Healthcare:throw new Error("Healthcare widget is not supported yet, please use the healthcareStart method instead.");case qp.Default:u=document.createElement("me-chat");break;case qp.Utilities:u=document.createElement("utilities-chat");break;default:u=document.createElement("me-chat")}if(!u)throw new Error("Invalid widget type");u.setAttribute("orgSlug","Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||""),u.setAttribute("widgetType",e.widgetType||qp.Default),u.setAttribute("class","meetelise-chat"),u.setAttribute("role","region"),u.setAttribute("aria-label","EliseAI Widget"),e.brandColor&&(this.brandColor=e.brandColor,u.setAttribute("primaryColor",((e,t)=>{const i=Ji(e),n=0,r=0,o=0,a={r:i.r+Math.round((n-i.r)*t),g:i.g+Math.round((r-i.g)*t),b:i.b+Math.round((o-i.b)*t)};return en(a.r,a.g,a.b)})(e.brandColor,.3))),e.backgroundColor&&(this.backgroundColor=e.backgroundColor),u instanceof Op&&(e.centralConvo?(u.setAttribute("centralConvo","true"),e.building&&u.setAttribute("declaredBuildingSlug",e.building)):this.handleBuildingslug(u,e.organization,e.building,e),e.launcherStyles&&(u.launcherStyles=e.launcherStyles),e.mobileStyles&&(u.mobileStyles=e.mobileStyles),e.onWidgetLoaded&&(u.onWidgetLoaded=e.onWidgetLoaded),e.overrideRentgrata&&((async()=>{const e=await Hp("rg-widget-compact");e&&e.setAttribute("style","display: none")})(),u.overrideRentgrata=!0),e.onSstClose&&(u.onSstClose=e.onSstClose)),e.position&&(u.setAttribute("right",(null===(a=e.position.right)||void 0===a?void 0:a.toString())||"unset"),u.setAttribute("bottom",(null===(s=e.position.bottom)||void 0===s?void 0:s.toString())||"unset"),u.setAttribute("top",(null===(l=e.position.top)||void 0===l?void 0:l.toString())||"unset"),u.setAttribute("left",(null===(d=e.position.left)||void 0===d?void 0:d.toString())||"unset")),window.eliseAi={},document.body.appendChild(u),u instanceof Op&&(zp.meChat=u),u instanceof jp&&(zp.utilitiesChat=u)}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.studioUpdateToken+=1,await this.removeWidget(),this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.activeStudioOptions=null}static async removeWidget(){var e;if(!this.meChat)return;const t=this.meChat;await t.remove(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),zp.meChat===t&&(zp.meChat=null)}static handleStudioContext(e){e.studio&&(this.activeStudioOptions=e)}static updateStudioContext(e){var t;const i=this.activeStudioOptions;if(!(null==i?void 0:i.studio))return;const n=++this.studioUpdateToken;if(e.siteId&&e.siteId!==i.studio.siteId)return void Do({logType:Mo.warn,logTitle:"[STUDIO_WEBCHAT_CONTEXT_SITE_MISMATCH]",logData:{activeSiteId:i.studio.siteId,contextSiteId:e.siteId,url:window.location.href}});if("org"===(null===(t=e.sessionScope)||void 0===t?void 0:t.type))return void this.updateStudioOrgContext(e,i,n);const r=Gp(e.organization),o=Gp(e.building);if(!r||!o)return void this.clearStudioContext({source:"elise_studio",reason:"missing_context",preserveCache:!0});const a=function(e,t){if(!(null==e?void 0:e.key))return`building:${t}`;return e.key}(e.sessionScope,o),s=Wp(r);this.activeStudioOrgSlug!==s||this.activeStudioBuildingSlug!==o||this.activeStudioSessionScopeKey!==a?this.removeWidget().then(()=>{n===this.studioUpdateToken&&(this.activeStudioOrgSlug=s,this.activeStudioBuildingSlug=o,this.activeStudioSessionScopeKey=a,this.orgSlug=s,this.start({...i,organization:r,building:o},!1))}):requestAnimationFrame(()=>{var e;return null===(e=this.meChat)||void 0===e?void 0:e.reinsertDNIIntoWebsite()})}static updateStudioOrgContext(e,t,i){var n;const r=Gp(e.organization);if(!r)return void this.clearStudioContext({source:"elise_studio",reason:"missing_context",preserveCache:!0});const o=Wp(r),a=(null===(n=e.sessionScope)||void 0===n?void 0:n.key)||`org:${r}`,s=function(e){const t="string"==typeof e?Number(e):e;return"number"==typeof t&&Number.isInteger(t)&&t>0?t:null}(e.declaredBuildingId);!this.meChat||this.activeStudioOrgSlug!==o||this.activeStudioBuildingSlug||this.activeStudioSessionScopeKey!==a?this.removeWidget().then(()=>{var e;i===this.studioUpdateToken&&(this.activeStudioOrgSlug=o,this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey=a,this.orgSlug=o,this.start({...t,studio:void 0,organization:r,building:void 0,centralConvo:!0},!1),null===(e=this.meChat)||void 0===e||e.setDeclaredBuildingId(s))}):this.meChat.setDeclaredBuildingId(s)}static clearStudioContext(e){this.studioUpdateToken+=1,this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.removeWidget()}static async handleBuildingslug(e,t,i,n){if(i)return void e.setAttribute("buildingSlug",i);if(this.mutationObserver)return;if(!t)return;const r=await Fp(t);if(r){const e={...n,organization:t,building:r};this.start(e,!1)}this.previousUrl=window.location.href,document.body.addEventListener("click",()=>{requestAnimationFrame(()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,Fp(t).then(e=>{if(!e)return;const i={...n,organization:t,building:e};this.start(i,!1)}))})},!0)}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,t=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,i=await r().get(t,{headers:{"org-slug":this.orgSlug}});if(Math.random()<.2&&Do({logType:i&&i.data?Mo.info:Mo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:e,orgSlug:this.orgSlug,givenBuildingSlug:null,reason:i&&i.data?null:"No match found"}}),!i||!i.data)return;const n={organization:this.orgSlug,building:i.data,brandColor:this.brandColor,backgroundColor:this.backgroundColor};this.start(n,!1)}static async calculateBuildingSlugForLogging(e){const t=window.location.href,i=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,n=await r().get(i,{headers:{"org-slug":this.orgSlug}});Math.random()<.2&&Do({logType:n&&n.data===e?Mo.info:Mo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n&&n.data===e?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:t,orgSlug:this.orgSlug,givenBuildingSlug:e,reason:n&&n.data===e?null:n&&!n.data?"No match found":n&&n.data!==e?"Mismatch":"No match found"}}),n&&n.data}}function Gp(e){return"string"!=typeof e?"":e.trim()}function Wp(e){return"Pacific Urban Residential"===e?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e}var qp;zp.meChat=null,zp.healthChat=null,zp.utilitiesChat=null,zp.orgSlug="",zp.mutationObserver=null,zp.previousUrl="",zp.hasBuildingSlug=null,zp.brandColor="",zp.backgroundColor="",zp.healthcareId="",zp.activeStudioOrgSlug="",zp.activeStudioBuildingSlug="",zp.activeStudioSessionScopeKey="",zp.activeStudioOptions=null,zp.studioUpdateToken=0,zp.overridePlacement={},function(e){e.Default="default",e.Healthcare="healthcare",e.Utilities="utilities"}(qp||(qp={}));const Vp=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)};export{qp as WidgetType,zp as default};
|