@meetelise/chat 1.20.32 → 1.20.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/dist/index.js +659 -578
- package/src/WebComponent/Launcher.ts +8 -14
- package/src/WebComponent/Scheduler/tour-scheduler.ts +335 -331
- package/src/WebComponent/actions/InputStyles.ts +14 -8
- package/src/WebComponent/actions/action-confirm-button.ts +6 -7
- package/src/WebComponent/actions/call-us-window.ts +40 -17
- package/src/WebComponent/actions/details-window.ts +36 -3
- package/src/WebComponent/actions/email-us-window.ts +54 -47
- package/src/WebComponent/actions/text-us-window.ts +95 -65
- package/src/WebComponent/launcherStyles.ts +11 -1
- package/src/WebComponent/me-chat.ts +11 -4
- package/src/svgIcons.ts +4 -0
package/public/dist/index.js
CHANGED
|
@@ -443,7 +443,39 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
443
443
|
.option.active {
|
|
444
444
|
background-color: var(--active-option-color);
|
|
445
445
|
}
|
|
446
|
-
`,Vt([ae({attribute:!1})],zt.prototype,"options",void 0),Vt([ae({type:String})],zt.prototype,"placeholder",void 0),Vt([ae({type:String})],zt.prototype,"value",void 0),Vt([se()],zt.prototype,"activeOption",void 0),Vt([se()],zt.prototype,"isOpen",void 0),Vt([ue("#select",!0)],zt.prototype,"meSelect",void 0),zt=Vt([re("me-select")],zt);var Zt=n(9669),Qt=n.n(Zt),Kt=n(9991),Yt=n(7739),en=n.n(Yt);function tn(e){return Fe(1,arguments),Me(e).getTime()<Date.now()}Math.pow(10,8);var nn=36e5;function rn(e,t){Fe(1,arguments);var n=t||{},i=null==n.additionalDigits?2:Xe(n.additionalDigits);if(2!==i&&1!==i&&0!==i)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=ln(e);if(o.date){var a=dn(o.date,i);r=cn(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,u=r.getTime(),l=0;if(o.time&&(l=fn(o.time),isNaN(l)))return new Date(NaN);if(!o.timezone){var d=new Date(u+l),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return s=mn(o.timezone),isNaN(s)?new Date(NaN):new Date(u+l+s)}var on={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},an=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,un=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ln(e){var t,n={},i=e.split(on.dateTimeDelimiter);if(i.length>2)return n;if(/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],on.timeZoneDelimiter.test(n.date)&&(n.date=e.split(on.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=on.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}function dn(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};var r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((i[1]||i[2]).length)}}function cn(e,t){if(null===t)return new Date(NaN);var n=e.match(an);if(!n)return new Date(NaN);var i=!!n[4],r=pn(n[1]),o=pn(n[2])-1,a=pn(n[3]),s=pn(n[4]),u=pn(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*(t-1)+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(vn[t]||(gn(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(gn(e)?366:365)}(t,r)?(l.setUTCFullYear(t,o,Math.max(r,a)),l):new Date(NaN)}function pn(e){return e?parseInt(e):1}function fn(e){var t=e.match(sn);if(!t)return NaN;var n=hn(t[1]),i=hn(t[2]),r=hn(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,r)?n*nn+6e4*i+1e3*r:NaN}function hn(e){return e&&parseFloat(e.replace(",","."))||0}function mn(e){if("Z"===e)return 0;var t=e.match(un);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?n*(i*nn+6e4*r):NaN}var vn=[31,null,31,30,31,30,31,31,30,31,30,31];function gn(e){return e%400==0||e%4==0&&e%100!=0}const yn={buildingId:null,availabilities:{}},bn=async e=>{e&&(yn.buildingId=e);const t=yn.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=yn.availabilities;if(n[t])return n[t];const i=function(e){Fe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}(Date.now()),r=Xt(function(e){Fe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}(function(e,t){Fe(2,arguments);var n=Me(e),i=Xe(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}(i,30))),o=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?startTime=${Xt(i)}&endTime=${r}`,a=await Qt().get(o);return yn.availabilities[t]=a.data,a.data},wn=async(e,t)=>{var n,i;const r=await bn(t),o=(null===(n=r.availability)||void 0===n?void 0:n[e])?null===(i=r.availability)||void 0===i?void 0:i[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},Sn=async(e,t)=>{var n,i;const r=await wn(e,t);if(!r)return{};const o={availableTourStartTimes:null===(n=r.availableTourStartTimes?r.availableTourStartTimes.filter((e=>qe(rn(e))&&!tn(rn(e)))):[])||void 0===n?void 0:n.map((e=>Tn(e)))};return en()(null!==(i=o.availableTourStartTimes)&&void 0!==i?i:[],(e=>Dt(new Date(e.datetime),"yyyy-MM-dd")))},Tn=e=>({datetime:e.slice(0,19),offset:e.slice(19)});n(7294);const xn=()=>window.matchMedia("(max-width: 767px)").matches;var On=n(6486),In=n(4184),Rn=n.n(In),Cn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Nn=class extends ne{constructor(){super(...arguments),this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.buildingId=0,this.buildingSlug="",this.sgtUrl="",this.escortedToursLink="",this.virtualToursLink="",this.orgSlug="",this.tourType=null,this.shouldShowTourType={[An.Guided]:!0,[An.Self]:!0,[An.Virtual]:!0},this.email="",this.phoneNumber="",this.availabilitiesGroupedByDay={},this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.firstUpdated=async()=>{const e=await(async()=>{var e,t,n,i,r,o;return{[An.Guided]:!!(null===(t=null===(e=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[An.Self]:!!(null===(i=null===(n=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided))||void 0===n?void 0:n.availableTourStartTimes)||void 0===i?void 0:i.length),[An.Virtual]:!!(null===(o=null===(r=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}})();this.shouldShowTourType={[An.Guided]:this.tourTypeOptions.map((e=>e.value)).includes("WITH_AGENT")&&e[An.Guided],[An.Self]:this.tourTypeOptions.map((e=>e.value)).includes("SELF_GUIDED")&&e[An.Self],[An.Virtual]:this.tourTypeOptions.map((e=>e.value)).includes("VIRTUAL_SHOWING")&&e[An.Virtual]},null!==this.tourType?(this.availabilitiesGroupedByDay=await Sn(En[this.tourType]),this.waitingForAvailabilities=!1):this.waitingForAvailabilities=!1},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Sn(En[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const n=e.target.selectionStart;if(1!==e.key.length||Ne(e)){if("Backspace"===e.key){if(Ne(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,i=this.phoneNumber.slice(0,n).replace(/\D/g,""),r=this.phoneNumber.slice(n).replace(/\D/g,""),o=`${i.slice(0,-1)}${r}`;this.phoneNumber=Re(o),this.phoneInput.value=this.phoneNumber;const a=n-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Ne(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,n).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,i=n-e>-1?n-e:0;this.phoneInput.setSelectionRange(i,i)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(n).split(/\d+/)[0].length||0)+1,t=n+e<this.phoneNumber.length?n+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,n)+e.key+this.phoneNumber.slice(n);this.phoneNumber=Re(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const n=this.phoneInput.selectionStart,i=n?this.phoneInput.value.slice(n).replace(/\D/g,""):"";this.phoneNumber=Re(this.phoneInput.value);let r=0,o=i.length;for(;o;)(null===(t=this.phoneNumber.at(r))||void 0===t?void 0:t.match(/\d/))&&o--,r++;const a=this.phoneInput.value.length-r+1;this.phoneInput.setSelectionRange(a,a)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(n=this.emailInput)||void 0===n?void 0:n.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo(),this.timeStringToHoursAndMinutes=e=>{const[t,n]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(n)]},this.submit=async()=>{var e;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const t={email_address:this.email,phone_number:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,building_id:this.buildingId,first_name:this.firstNameInput.value,last_name:this.lastNameInput.value,tour_type:_n[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,layouts:this.layoutTypeSelect.value?[this.layoutTypeSelect.value]:null,unit_numbers:this.unitTypeSelect&&this.unitTypeSelect.value?[this.unitTypeSelect.value]:null};this.isSubmitting=!0;try{await Qt().post("https://app.meetelise.com/platformApi/state/create/scheduleMe",t,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG","org-slug":this.orgSlug}}),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e.response.data.detail||"Failed to book tour";alert(t),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>D`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>D`${this.dateAndTimeMenu(!0)}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>D`<action-confirm-button
|
|
446
|
+
`,Vt([ae({attribute:!1})],zt.prototype,"options",void 0),Vt([ae({type:String})],zt.prototype,"placeholder",void 0),Vt([ae({type:String})],zt.prototype,"value",void 0),Vt([se()],zt.prototype,"activeOption",void 0),Vt([se()],zt.prototype,"isOpen",void 0),Vt([ue("#select",!0)],zt.prototype,"meSelect",void 0),zt=Vt([re("me-select")],zt);var Zt=n(9669),Qt=n.n(Zt),Kt=n(9991),Yt=n(7739),en=n.n(Yt);function tn(e){return Fe(1,arguments),Me(e).getTime()<Date.now()}Math.pow(10,8);var nn=36e5;function rn(e,t){Fe(1,arguments);var n=t||{},i=null==n.additionalDigits?2:Xe(n.additionalDigits);if(2!==i&&1!==i&&0!==i)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=ln(e);if(o.date){var a=dn(o.date,i);r=cn(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,u=r.getTime(),l=0;if(o.time&&(l=fn(o.time),isNaN(l)))return new Date(NaN);if(!o.timezone){var d=new Date(u+l),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return s=mn(o.timezone),isNaN(s)?new Date(NaN):new Date(u+l+s)}var on={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},an=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sn=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,un=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ln(e){var t,n={},i=e.split(on.dateTimeDelimiter);if(i.length>2)return n;if(/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],on.timeZoneDelimiter.test(n.date)&&(n.date=e.split(on.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var r=on.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}function dn(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};var r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((i[1]||i[2]).length)}}function cn(e,t){if(null===t)return new Date(NaN);var n=e.match(an);if(!n)return new Date(NaN);var i=!!n[4],r=pn(n[1]),o=pn(n[2])-1,a=pn(n[3]),s=pn(n[4]),u=pn(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*(t-1)+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(vn[t]||(gn(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(gn(e)?366:365)}(t,r)?(l.setUTCFullYear(t,o,Math.max(r,a)),l):new Date(NaN)}function pn(e){return e?parseInt(e):1}function fn(e){var t=e.match(sn);if(!t)return NaN;var n=hn(t[1]),i=hn(t[2]),r=hn(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,r)?n*nn+6e4*i+1e3*r:NaN}function hn(e){return e&&parseFloat(e.replace(",","."))||0}function mn(e){if("Z"===e)return 0;var t=e.match(un);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?n*(i*nn+6e4*r):NaN}var vn=[31,null,31,30,31,30,31,31,30,31,30,31];function gn(e){return e%400==0||e%4==0&&e%100!=0}const yn={buildingId:null,availabilities:{}},bn=async e=>{e&&(yn.buildingId=e);const t=yn.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=yn.availabilities;if(n[t])return n[t];const i=function(e){Fe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}(Date.now()),r=Xt(function(e){Fe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}(function(e,t){Fe(2,arguments);var n=Me(e),i=Xe(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}(i,30))),o=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?startTime=${Xt(i)}&endTime=${r}`,a=await Qt().get(o);return yn.availabilities[t]=a.data,a.data},wn=async(e,t)=>{var n,i;const r=await bn(t),o=(null===(n=r.availability)||void 0===n?void 0:n[e])?null===(i=r.availability)||void 0===i?void 0:i[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},Sn=async(e,t)=>{var n,i;const r=await wn(e,t);if(!r)return{};const o={availableTourStartTimes:null===(n=r.availableTourStartTimes?r.availableTourStartTimes.filter((e=>qe(rn(e))&&!tn(rn(e)))):[])||void 0===n?void 0:n.map((e=>Tn(e)))};return en()(null!==(i=o.availableTourStartTimes)&&void 0!==i?i:[],(e=>Dt(new Date(e.datetime),"yyyy-MM-dd")))},Tn=e=>({datetime:e.slice(0,19),offset:e.slice(19)});n(7294);const xn=()=>window.matchMedia("(max-width: 767px)").matches;var On=n(6486),In=n(4184),Rn=n.n(In);const Cn=a`
|
|
447
|
+
.webchat-input {
|
|
448
|
+
outline: none;
|
|
449
|
+
color: #202020;
|
|
450
|
+
font-weight: 400;
|
|
451
|
+
font-size: 14px;
|
|
452
|
+
line-height: 14px;
|
|
453
|
+
font-family: "Poppins";
|
|
454
|
+
|
|
455
|
+
background: #ffffff;
|
|
456
|
+
border-radius: 20px;
|
|
457
|
+
border: none;
|
|
458
|
+
padding: 0px 20px;
|
|
459
|
+
border: 1px solid #ffffff;
|
|
460
|
+
}
|
|
461
|
+
.webchat-textarea {
|
|
462
|
+
padding: 20px 20px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.webchat-input:active {
|
|
466
|
+
border: 1px solid #000000;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.webchat-input:focus-within {
|
|
470
|
+
border: 1px solid #000000;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.webchat-input::placeholder {
|
|
474
|
+
opacity: 0.5;
|
|
475
|
+
font-family: "Poppins";
|
|
476
|
+
font-size: 16px;
|
|
477
|
+
}
|
|
478
|
+
`;var Nn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let An=class extends ne{constructor(){super(...arguments),this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.buildingId=0,this.buildingSlug="",this.sgtUrl="",this.escortedToursLink="",this.virtualToursLink="",this.orgSlug="",this.tourType=null,this.shouldShowTourType={[En.Guided]:!0,[En.Self]:!0,[En.Virtual]:!0},this.email="",this.phoneNumber="",this.availabilitiesGroupedByDay={},this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.firstUpdated=async()=>{const e=await(async()=>{var e,t,n,i,r,o;return{[En.Guided]:!!(null===(t=null===(e=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[En.Self]:!!(null===(i=null===(n=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided))||void 0===n?void 0:n.availableTourStartTimes)||void 0===i?void 0:i.length),[En.Virtual]:!!(null===(o=null===(r=await wn(Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}})();this.shouldShowTourType={[En.Guided]:this.tourTypeOptions.map((e=>e.value)).includes("WITH_AGENT")&&e[En.Guided],[En.Self]:this.tourTypeOptions.map((e=>e.value)).includes("SELF_GUIDED")&&e[En.Self],[En.Virtual]:this.tourTypeOptions.map((e=>e.value)).includes("VIRTUAL_SHOWING")&&e[En.Virtual]},null!==this.tourType?(this.availabilitiesGroupedByDay=await Sn(_n[this.tourType]),this.waitingForAvailabilities=!1):this.waitingForAvailabilities=!1},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Sn(_n[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const n=e.target.selectionStart;if(1!==e.key.length||Ne(e)){if("Backspace"===e.key){if(Ne(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,i=this.phoneNumber.slice(0,n).replace(/\D/g,""),r=this.phoneNumber.slice(n).replace(/\D/g,""),o=`${i.slice(0,-1)}${r}`;this.phoneNumber=Re(o),this.phoneInput.value=this.phoneNumber;const a=n-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Ne(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,n).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,i=n-e>-1?n-e:0;this.phoneInput.setSelectionRange(i,i)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(n).split(/\d+/)[0].length||0)+1,t=n+e<this.phoneNumber.length?n+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,n)+e.key+this.phoneNumber.slice(n);this.phoneNumber=Re(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const n=this.phoneInput.selectionStart,i=n?this.phoneInput.value.slice(n).replace(/\D/g,""):"";this.phoneNumber=Re(this.phoneInput.value);let r=0,o=i.length;for(;o;)(null===(t=this.phoneNumber.at(r))||void 0===t?void 0:t.match(/\d/))&&o--,r++;const a=this.phoneInput.value.length-r+1;this.phoneInput.setSelectionRange(a,a)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(n=this.emailInput)||void 0===n?void 0:n.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo(),this.timeStringToHoursAndMinutes=e=>{const[t,n]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(n)]},this.submit=async()=>{var e;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const t={email_address:this.email,phone_number:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,building_id:this.buildingId,first_name:this.firstNameInput.value,last_name:this.lastNameInput.value,tour_type:Fn[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,layouts:this.layoutTypeSelect.value?[this.layoutTypeSelect.value]:null,unit_numbers:this.unitTypeSelect&&this.unitTypeSelect.value?[this.unitTypeSelect.value]:null};this.isSubmitting=!0;try{await Qt().post("https://app.meetelise.com/platformApi/state/create/scheduleMe",t,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG","org-slug":this.orgSlug}}),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e.response.data.detail||"Failed to book tour";alert(t),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>D`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>D`${this.dateAndTimeMenu(!0)}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>D`<action-confirm-button
|
|
447
479
|
id="schedule"
|
|
448
480
|
.onClick=${this.submit}
|
|
449
481
|
.isLoading=${this.isSubmitting}
|
|
@@ -453,12 +485,12 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
453
485
|
?disabled=${!this.formIsValidForSubmission()}
|
|
454
486
|
></action-confirm-button>`,nextButtonAction:null,render:()=>D`${this.userInfoAndLayoutMenu()}`}]}tourTypeMenu(){return D`<h2 id="tourType">Tour Type</h2>
|
|
455
487
|
<div id="tourTypeMenu">
|
|
456
|
-
${this.shouldShowTourType[
|
|
488
|
+
${this.shouldShowTourType[En.Guided]?D` <tour-type-option
|
|
457
489
|
heading="Guided tour"
|
|
458
490
|
subtitle="with an agent"
|
|
459
|
-
@click="${async()=>{this.tourType=
|
|
460
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
461
|
-
?selected="${this.tourType===
|
|
491
|
+
@click="${async()=>{this.tourType=En.Guided,this.escortedToursLink&&window.open(this.escortedToursLink,"_blank"),this.availabilitiesGroupedByDay=await Sn(_n[En.Guided])}}"
|
|
492
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=En.Guided)}}"
|
|
493
|
+
?selected="${this.tourType===En.Guided}"
|
|
462
494
|
>
|
|
463
495
|
<svg
|
|
464
496
|
slot="icon"
|
|
@@ -470,16 +502,16 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
470
502
|
>
|
|
471
503
|
<path
|
|
472
504
|
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"
|
|
473
|
-
fill="${this.tourType===
|
|
505
|
+
fill="${this.tourType===En.Guided?"#ffffff":"#202020"}"
|
|
474
506
|
/>
|
|
475
507
|
</svg>
|
|
476
508
|
</tour-type-option>`:""}
|
|
477
|
-
${this.shouldShowTourType[
|
|
509
|
+
${this.shouldShowTourType[En.Self]?D`<tour-type-option
|
|
478
510
|
heading="Take a tour"
|
|
479
511
|
subtitle="on your own"
|
|
480
|
-
@click="${async()=>{this.tourType=
|
|
481
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
482
|
-
?selected="${this.tourType===
|
|
512
|
+
@click="${async()=>{this.tourType=En.Self,this.sgtUrl&&window.open(this.sgtUrl,"_blank"),this.availabilitiesGroupedByDay=await Sn(_n[En.Self])}}"
|
|
513
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=En.Self)}}"
|
|
514
|
+
?selected="${this.tourType===En.Self}"
|
|
483
515
|
>
|
|
484
516
|
<svg
|
|
485
517
|
slot="icon"
|
|
@@ -491,16 +523,16 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
491
523
|
>
|
|
492
524
|
<path
|
|
493
525
|
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"
|
|
494
|
-
fill="${this.tourType===
|
|
526
|
+
fill="${this.tourType===En.Self?"#ffffff":"#202020"}"
|
|
495
527
|
/>
|
|
496
528
|
</svg>
|
|
497
529
|
</tour-type-option>`:""}
|
|
498
|
-
${this.shouldShowTourType[
|
|
530
|
+
${this.shouldShowTourType[En.Virtual]?D`<tour-type-option
|
|
499
531
|
heading="Virtual tour"
|
|
500
532
|
subtitle="over video"
|
|
501
|
-
@click="${async()=>{this.tourType=
|
|
502
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
503
|
-
?selected="${this.tourType===
|
|
533
|
+
@click="${async()=>{this.tourType=En.Virtual,this.virtualToursLink&&window.open(this.virtualToursLink,"_blank"),this.availabilitiesGroupedByDay=await Sn(_n[En.Virtual])}}"
|
|
534
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=En.Virtual)}}"
|
|
535
|
+
?selected="${this.tourType===En.Virtual}"
|
|
504
536
|
>
|
|
505
537
|
<svg
|
|
506
538
|
slot="icon"
|
|
@@ -512,7 +544,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
512
544
|
>
|
|
513
545
|
<path
|
|
514
546
|
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"
|
|
515
|
-
fill="${this.tourType===
|
|
547
|
+
fill="${this.tourType===En.Virtual?"#ffffff":"#202020"}"
|
|
516
548
|
/>
|
|
517
549
|
</svg>
|
|
518
550
|
</tour-type-option>`:""}
|
|
@@ -557,7 +589,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
557
589
|
<div id="namesWrapper">
|
|
558
590
|
<div class="nameContainer" id="firstName">
|
|
559
591
|
<input
|
|
560
|
-
class
|
|
592
|
+
class=${pe({"webchat-input":!0,nameInput:!0})}
|
|
561
593
|
type="text"
|
|
562
594
|
placeholder="First name"
|
|
563
595
|
name="firstName"
|
|
@@ -567,7 +599,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
567
599
|
</div>
|
|
568
600
|
<div class="nameContainer" id="lastName">
|
|
569
601
|
<input
|
|
570
|
-
class
|
|
602
|
+
class=${pe({"webchat-input":!0,nameInput:!0})}
|
|
571
603
|
type="text"
|
|
572
604
|
placeholder="Last name"
|
|
573
605
|
name="lastName"
|
|
@@ -579,6 +611,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
579
611
|
|
|
580
612
|
<div class="inputContainer" id="email">
|
|
581
613
|
<input
|
|
614
|
+
class="webchat-input"
|
|
582
615
|
type="email"
|
|
583
616
|
inputmode="email"
|
|
584
617
|
placeholder="Email"
|
|
@@ -590,6 +623,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
590
623
|
</div>
|
|
591
624
|
<div class="inputContainer" id="phone">
|
|
592
625
|
<input
|
|
626
|
+
class="webchat-input"
|
|
593
627
|
type="tel"
|
|
594
628
|
inputmode="tel"
|
|
595
629
|
placeholder="Phone"
|
|
@@ -610,7 +644,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
610
644
|
<me-select
|
|
611
645
|
id="layoutType"
|
|
612
646
|
placeholder="Select layout"
|
|
613
|
-
.options="${
|
|
647
|
+
.options="${Mn(this.layoutOptions).map((e=>{return{label:(t=e,"studio"==t?"Studio":{"1br":"1 bedroom","2br":"2 bedroom","3br":"3 bedroom","4br":"4 bedroom","5br":"5 bedroom","6br":"6 bedroom","7br":"7 bedroom","8br":"8 bedroom","9br":"9 bedroom","10br":"10 bedroom"}[t]),value:e};var t}))}"
|
|
614
648
|
defaultOption="Studio"
|
|
615
649
|
@change=${()=>{this.requestUpdate()}}
|
|
616
650
|
>Studio
|
|
@@ -647,7 +681,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
647
681
|
Thank you!
|
|
648
682
|
<br />
|
|
649
683
|
Your
|
|
650
|
-
${{[
|
|
684
|
+
${{[En.Guided]:"guided",[En.Self]:"self-guided",[En.Virtual]:"virtual"}[this.tourType]}
|
|
651
685
|
tour is scheduled for ${e}.
|
|
652
686
|
</p>
|
|
653
687
|
<p>
|
|
@@ -713,400 +747,391 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
713
747
|
?disabled=${!this.formIsValidForSubmission()}
|
|
714
748
|
></action-confirm-button>`}
|
|
715
749
|
</div>
|
|
716
|
-
`}};var An
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
750
|
+
`}};var En;An.styles=[a`
|
|
751
|
+
* {
|
|
752
|
+
box-sizing: border-box;
|
|
753
|
+
}
|
|
720
754
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
755
|
+
.tour-scheduler {
|
|
756
|
+
position: fixed;
|
|
757
|
+
left: 50%;
|
|
758
|
+
top: 50%;
|
|
759
|
+
transform: translate(-50%, -50%);
|
|
760
|
+
width: 1018px;
|
|
761
|
+
height: 573px;
|
|
762
|
+
background: #ffffff;
|
|
763
|
+
box-shadow: 0px 16px 18px 10px rgba(21, 21, 21, 0.4);
|
|
764
|
+
border-radius: 10px;
|
|
765
|
+
font-family: "Poppins";
|
|
766
|
+
color: #202020;
|
|
767
|
+
padding: 0 25px 0 27px;
|
|
734
768
|
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
769
|
+
/* grid stuff */
|
|
770
|
+
display: grid;
|
|
771
|
+
grid-template-columns: 229px 432px 305px;
|
|
772
|
+
grid-template-rows: 44px 54px 32px 195px 167px 1px;
|
|
773
|
+
}
|
|
740
774
|
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
775
|
+
@media screen and (max-width: 1000px) {
|
|
776
|
+
.tour-scheduler {
|
|
777
|
+
transform: translate(-50%, -50%) scale(0.8, 0.6);
|
|
778
|
+
}
|
|
744
779
|
}
|
|
745
|
-
}
|
|
746
780
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
781
|
+
h1,
|
|
782
|
+
h2 {
|
|
783
|
+
margin: 0;
|
|
784
|
+
}
|
|
751
785
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
786
|
+
.tour-scheduler > :is(h1, h2) {
|
|
787
|
+
align-self: end;
|
|
788
|
+
}
|
|
755
789
|
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
790
|
+
h1 {
|
|
791
|
+
font-size: 14px;
|
|
792
|
+
font-weight: 700;
|
|
793
|
+
}
|
|
760
794
|
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
795
|
+
h1#scheduleATour {
|
|
796
|
+
grid-row: 1 / 2;
|
|
797
|
+
grid-column: 1;
|
|
798
|
+
align-self: end;
|
|
799
|
+
z-index: 1; // idk why, but it's invisible on the confirmation page otherwise
|
|
800
|
+
}
|
|
767
801
|
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
802
|
+
button#closeButton {
|
|
803
|
+
grid-row: 1 / 2;
|
|
804
|
+
grid-column: 3;
|
|
805
|
+
background: none;
|
|
806
|
+
border: none;
|
|
807
|
+
align-self: end;
|
|
808
|
+
justify-self: end;
|
|
809
|
+
z-index: 1; // idk why, but it's invisible on the confirmation page otherwise
|
|
810
|
+
}
|
|
777
811
|
|
|
778
|
-
|
|
812
|
+
/*
|
|
779
813
|
makes button fit size of SVG:
|
|
780
814
|
https://stackoverflow.com/questions/45423874/button-height-is-greater-than-the-nested-contents-height
|
|
781
815
|
otherwise there's some empty space at the bottom of the button, which interferes with vertical centering
|
|
782
816
|
*/
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
#tourTypeMenu {
|
|
788
|
-
grid-row: 4 / 5;
|
|
789
|
-
grid-column: 1;
|
|
790
|
-
align-self: start;
|
|
791
|
-
display: flex;
|
|
792
|
-
flex-direction: column;
|
|
793
|
-
gap: 15px;
|
|
794
|
-
}
|
|
817
|
+
button#closeButton > svg {
|
|
818
|
+
vertical-align: middle;
|
|
819
|
+
}
|
|
795
820
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
821
|
+
#tourTypeMenu {
|
|
822
|
+
grid-row: 4 / 5;
|
|
823
|
+
grid-column: 1;
|
|
824
|
+
align-self: start;
|
|
825
|
+
display: flex;
|
|
826
|
+
flex-direction: column;
|
|
827
|
+
gap: 15px;
|
|
828
|
+
}
|
|
801
829
|
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
830
|
+
h2 {
|
|
831
|
+
font-weight: 600;
|
|
832
|
+
font-size: 14px;
|
|
833
|
+
grid-row: label-row;
|
|
834
|
+
}
|
|
806
835
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
836
|
+
h2#tourType {
|
|
837
|
+
grid-column: 1;
|
|
838
|
+
grid-row: 2;
|
|
839
|
+
}
|
|
811
840
|
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
841
|
+
h2#dateAndTime {
|
|
842
|
+
grid-column: 2;
|
|
843
|
+
grid-row: 2;
|
|
844
|
+
}
|
|
816
845
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
846
|
+
h2#yourInformation {
|
|
847
|
+
grid-column: 3;
|
|
848
|
+
grid-row: 2;
|
|
849
|
+
}
|
|
820
850
|
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
align-self: start;
|
|
825
|
-
display: flex;
|
|
826
|
-
flex-direction: column;
|
|
827
|
-
}
|
|
851
|
+
#datePicker {
|
|
852
|
+
display: flex;
|
|
853
|
+
}
|
|
828
854
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
855
|
+
#dateAndTimeMenu {
|
|
856
|
+
grid-row: 4 / 5;
|
|
857
|
+
grid-column: 2;
|
|
858
|
+
align-self: start;
|
|
859
|
+
display: flex;
|
|
860
|
+
flex-direction: column;
|
|
861
|
+
}
|
|
836
862
|
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
font-weight: 400;
|
|
845
|
-
font-size: 14px;
|
|
846
|
-
color: #202020;
|
|
847
|
-
}
|
|
863
|
+
#yourInformationMenu {
|
|
864
|
+
grid-row: 4 / 5;
|
|
865
|
+
grid-column: 3;
|
|
866
|
+
display: flex;
|
|
867
|
+
flex-direction: column;
|
|
868
|
+
gap: 12px;
|
|
869
|
+
}
|
|
848
870
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
871
|
+
#yourInformationMenu input {
|
|
872
|
+
width: 100%;
|
|
873
|
+
height: 49px;
|
|
874
|
+
border: 1px solid #83818e;
|
|
875
|
+
padding: 13px 11px 14px 11px;
|
|
876
|
+
}
|
|
852
877
|
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
878
|
+
.unitLayoutChoices {
|
|
879
|
+
grid-row: 5 / 6;
|
|
880
|
+
grid-column: 3;
|
|
881
|
+
align-self: start;
|
|
882
|
+
display: flex;
|
|
883
|
+
flex-direction: column;
|
|
884
|
+
}
|
|
860
885
|
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
886
|
+
.unitLayoutChoice {
|
|
887
|
+
margin-bottom: 12px;
|
|
888
|
+
}
|
|
864
889
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
890
|
+
h2.unitLayoutChoice {
|
|
891
|
+
margin-bottom: 7px;
|
|
892
|
+
}
|
|
868
893
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
894
|
+
.unitLayoutOptions {
|
|
895
|
+
display: flex;
|
|
896
|
+
flex-direction: column;
|
|
897
|
+
gap: 8px;
|
|
898
|
+
}
|
|
874
899
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
900
|
+
hr {
|
|
901
|
+
grid-row: 6;
|
|
902
|
+
grid-column: 1 / 5;
|
|
903
|
+
/* remove side margins because of this
|
|
879
904
|
* (https://stackoverflow.com/questions/34365271/hr-inside-container-with-display-flex-become-corrupted)
|
|
880
905
|
* and top/bottom margins to position the line exactly at the gridline
|
|
881
906
|
*/
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
p {
|
|
886
|
-
font-weight: 400;
|
|
887
|
-
font-size: 12px;
|
|
888
|
-
grid-row: 7;
|
|
889
|
-
grid-column: 1 / 3;
|
|
890
|
-
align-self: start;
|
|
891
|
-
margin: 0;
|
|
892
|
-
padding-top: 32px;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
#schedule {
|
|
896
|
-
width: 145px;
|
|
897
|
-
height: 50px;
|
|
898
|
-
grid-row: 7;
|
|
899
|
-
grid-column: 3;
|
|
900
|
-
justify-self: end;
|
|
901
|
-
align-self: start;
|
|
902
|
-
margin-top: 18px;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
#confirmationMessage {
|
|
906
|
-
grid-row: 3;
|
|
907
|
-
width: 625px;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
#confirmationMessage > p {
|
|
911
|
-
font-size: 18px;
|
|
912
|
-
}
|
|
907
|
+
margin: 0;
|
|
908
|
+
}
|
|
913
909
|
|
|
914
|
-
|
|
910
|
+
p {
|
|
911
|
+
font-weight: 400;
|
|
912
|
+
font-size: 12px;
|
|
913
|
+
grid-row: 7;
|
|
914
|
+
grid-column: 1 / 3;
|
|
915
|
+
align-self: start;
|
|
916
|
+
margin: 0;
|
|
917
|
+
padding-top: 32px;
|
|
918
|
+
}
|
|
915
919
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
920
|
+
#schedule {
|
|
921
|
+
width: 145px;
|
|
922
|
+
height: 50px;
|
|
923
|
+
grid-row: 7;
|
|
924
|
+
grid-column: 3;
|
|
925
|
+
justify-self: end;
|
|
926
|
+
align-self: start;
|
|
927
|
+
margin-top: 18px;
|
|
919
928
|
}
|
|
920
|
-
|
|
921
|
-
|
|
929
|
+
|
|
930
|
+
#confirmationMessage {
|
|
931
|
+
grid-row: 3;
|
|
932
|
+
width: 625px;
|
|
922
933
|
}
|
|
923
|
-
|
|
924
|
-
|
|
934
|
+
|
|
935
|
+
#confirmationMessage > p {
|
|
936
|
+
font-size: 18px;
|
|
925
937
|
}
|
|
926
|
-
}
|
|
927
938
|
|
|
928
|
-
|
|
929
|
-
animation: spin 2s infinite linear;
|
|
930
|
-
}
|
|
939
|
+
/* Loading styles: pulsing gray overlay on all the form elements */
|
|
931
940
|
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
941
|
+
@keyframes spin {
|
|
942
|
+
0% {
|
|
943
|
+
transform: none;
|
|
944
|
+
}
|
|
945
|
+
50% {
|
|
946
|
+
transform: rotateZ(180deg);
|
|
947
|
+
}
|
|
948
|
+
100% {
|
|
949
|
+
transform: rotateZ(360deg);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
936
952
|
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
background-color: #e7e7e7;
|
|
953
|
+
svg#loadingIcon {
|
|
954
|
+
animation: spin 2s infinite linear;
|
|
940
955
|
}
|
|
941
|
-
|
|
942
|
-
|
|
956
|
+
|
|
957
|
+
.tour-scheduler.loading #scheduleATour {
|
|
958
|
+
display: flex;
|
|
959
|
+
gap: 10px;
|
|
943
960
|
}
|
|
944
|
-
|
|
945
|
-
|
|
961
|
+
|
|
962
|
+
@keyframes loadingPulse {
|
|
963
|
+
0% {
|
|
964
|
+
background-color: #e7e7e7;
|
|
965
|
+
}
|
|
966
|
+
50% {
|
|
967
|
+
background-color: white;
|
|
968
|
+
}
|
|
969
|
+
100% {
|
|
970
|
+
background-color: #e7e7e7;
|
|
971
|
+
}
|
|
946
972
|
}
|
|
947
|
-
}
|
|
948
973
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
974
|
+
tour-type-option,
|
|
975
|
+
date-picker,
|
|
976
|
+
#yourInformationMenu .inputContainer {
|
|
977
|
+
position: relative;
|
|
978
|
+
}
|
|
954
979
|
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
980
|
+
.tour-scheduler.loading
|
|
981
|
+
:is(tour-type-option, date-picker, #yourInformationMenu
|
|
982
|
+
.inputContainer)::after {
|
|
983
|
+
content: "";
|
|
984
|
+
position: absolute;
|
|
985
|
+
top: 0;
|
|
986
|
+
left: 0;
|
|
987
|
+
height: 100%;
|
|
988
|
+
z-index: 1;
|
|
989
|
+
animation: loadingPulse 2s infinite;
|
|
990
|
+
}
|
|
966
991
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
992
|
+
.tour-scheduler.loading tour-type-option::after {
|
|
993
|
+
border-radius: 10px;
|
|
994
|
+
width: 200px;
|
|
995
|
+
}
|
|
971
996
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
997
|
+
.tour-scheduler.loading date-picker::after {
|
|
998
|
+
border-radius: 10px;
|
|
999
|
+
width: 205px;
|
|
1000
|
+
}
|
|
976
1001
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1002
|
+
.tour-scheduler.loading #yourInformationMenu .inputContainer input {
|
|
1003
|
+
visibility: hidden;
|
|
1004
|
+
}
|
|
980
1005
|
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1006
|
+
.tour-scheduler.loading time-picker {
|
|
1007
|
+
display: none;
|
|
1008
|
+
}
|
|
984
1009
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1010
|
+
#namesWrapper {
|
|
1011
|
+
display: flex;
|
|
1012
|
+
justify-content: space-between;
|
|
1013
|
+
}
|
|
989
1014
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1015
|
+
.nameContainer {
|
|
1016
|
+
width: 48%;
|
|
1017
|
+
}
|
|
993
1018
|
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1019
|
+
.nameInput {
|
|
1020
|
+
width: 100%;
|
|
1021
|
+
}
|
|
997
1022
|
|
|
998
|
-
|
|
999
|
-
|
|
1023
|
+
@media (max-width: 767px) {
|
|
1024
|
+
/* TODO: separate styles into general, desktop-specific, and mobile-specific.
|
|
1000
1025
|
basically everything I have "unset" or "initial" on should become desktop-specific. the grid layout is only for desktop.
|
|
1001
1026
|
*/
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1027
|
+
.tour-scheduler {
|
|
1028
|
+
position: fixed;
|
|
1029
|
+
left: 0;
|
|
1030
|
+
right: 0;
|
|
1031
|
+
bottom: 0;
|
|
1032
|
+
top: initial;
|
|
1033
|
+
height: 93vh;
|
|
1034
|
+
width: 100vw;
|
|
1035
|
+
background: #ffffff;
|
|
1036
|
+
transform: none;
|
|
1037
|
+
box-shadow: none;
|
|
1038
|
+
border-radius: 0;
|
|
1039
|
+
padding: 25px 20px 0 22px;
|
|
1040
|
+
display: flex;
|
|
1041
|
+
flex-direction: column;
|
|
1042
|
+
}
|
|
1018
1043
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1044
|
+
#topControls {
|
|
1045
|
+
display: flex;
|
|
1046
|
+
justify-content: space-between;
|
|
1047
|
+
align-items: center;
|
|
1048
|
+
}
|
|
1024
1049
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1050
|
+
.tour-scheduler > :is(h1, h2) {
|
|
1051
|
+
align-self: unset;
|
|
1052
|
+
}
|
|
1028
1053
|
|
|
1029
|
-
|
|
1054
|
+
/* TODO: this and :disabled is duplicated from Schedule button. make a class,
|
|
1030
1055
|
or better a component, for the button styles
|
|
1031
1056
|
*/
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1057
|
+
button#next {
|
|
1058
|
+
height: 50px;
|
|
1059
|
+
/* width: 74px; */
|
|
1060
|
+
padding: 13px 22px 14px 22px;
|
|
1061
|
+
align-self: flex-start;
|
|
1062
|
+
background: #202020;
|
|
1063
|
+
border: 1px solid #ffffff;
|
|
1064
|
+
border-radius: 10px;
|
|
1065
|
+
font-family: "Poppins";
|
|
1066
|
+
font-weight: 700;
|
|
1067
|
+
font-size: 14px;
|
|
1068
|
+
color: #ffffff;
|
|
1069
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
|
|
1070
|
+
margin-top: 22px;
|
|
1071
|
+
}
|
|
1047
1072
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1073
|
+
button#next:disabled {
|
|
1074
|
+
background: #e7e7e7;
|
|
1075
|
+
box-shadow: none;
|
|
1076
|
+
}
|
|
1052
1077
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1078
|
+
h1#scheduleATour {
|
|
1079
|
+
grid-row: unset;
|
|
1080
|
+
grid-column: unset;
|
|
1081
|
+
align-self: unset;
|
|
1082
|
+
}
|
|
1058
1083
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1084
|
+
button#closeButton {
|
|
1085
|
+
grid-row: unset;
|
|
1086
|
+
grid-column: unset;
|
|
1087
|
+
align-self: unset;
|
|
1088
|
+
justify-self: unset;
|
|
1089
|
+
}
|
|
1065
1090
|
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1091
|
+
h2 {
|
|
1092
|
+
grid-row: unset;
|
|
1093
|
+
margin-top: 37px;
|
|
1094
|
+
margin-bottom: 25px;
|
|
1095
|
+
}
|
|
1071
1096
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1097
|
+
#tourTypeMenu {
|
|
1098
|
+
display: flex;
|
|
1099
|
+
flex-direction: column;
|
|
1100
|
+
gap: 15px;
|
|
1101
|
+
margin-bottom: 36px;
|
|
1102
|
+
}
|
|
1078
1103
|
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1104
|
+
h2#tourType {
|
|
1105
|
+
grid-column: unset;
|
|
1106
|
+
grid-row: unset;
|
|
1107
|
+
}
|
|
1083
1108
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1109
|
+
#datePicker {
|
|
1110
|
+
display: flex;
|
|
1111
|
+
flex-direction: column;
|
|
1112
|
+
gap: 18px;
|
|
1113
|
+
}
|
|
1089
1114
|
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1115
|
+
time-picker {
|
|
1116
|
+
/* so the Next button doesn't jump when the date is selected and the time slots appear */
|
|
1117
|
+
height: 93px;
|
|
1118
|
+
}
|
|
1094
1119
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1120
|
+
#dateAndTimeMenu {
|
|
1121
|
+
grid-row: unset;
|
|
1122
|
+
grid-column: unset;
|
|
1123
|
+
align-self: unset;
|
|
1124
|
+
display: unset;
|
|
1125
|
+
flex-direction: unset;
|
|
1126
|
+
}
|
|
1102
1127
|
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1128
|
+
#confirmationMessage {
|
|
1129
|
+
grid-row: unset;
|
|
1130
|
+
width: 90%;
|
|
1131
|
+
margin-top: 37px;
|
|
1132
|
+
}
|
|
1107
1133
|
}
|
|
1108
|
-
}
|
|
1109
|
-
`,Cn([ae({attribute:!1})],Nn.prototype,"layoutOptions",void 0),Cn([ae({attribute:!1})],Nn.prototype,"unitOptions",void 0),Cn([ae({attribute:!1})],Nn.prototype,"tourTypeOptions",void 0),Cn([ae({type:Number})],Nn.prototype,"buildingId",void 0),Cn([ae({attribute:!0})],Nn.prototype,"buildingSlug",void 0),Cn([ae({attribute:!0})],Nn.prototype,"sgtUrl",void 0),Cn([ae({attribute:!0})],Nn.prototype,"escortedToursLink",void 0),Cn([ae({attribute:!0})],Nn.prototype,"virtualToursLink",void 0),Cn([ae({attribute:!0})],Nn.prototype,"orgSlug",void 0),Cn([se()],Nn.prototype,"tourType",void 0),Cn([se()],Nn.prototype,"shouldShowTourType",void 0),Cn([se()],Nn.prototype,"email",void 0),Cn([se()],Nn.prototype,"phoneNumber",void 0),Cn([se()],Nn.prototype,"availabilitiesGroupedByDay",void 0),Cn([se()],Nn.prototype,"waitingForAvailabilities",void 0),Cn([se()],Nn.prototype,"selectedDate",void 0),Cn([se()],Nn.prototype,"selectedTime",void 0),Cn([se()],Nn.prototype,"mobilePageIndex",void 0),Cn([se()],Nn.prototype,"isSubmitting",void 0),Cn([se()],Nn.prototype,"tourIsBooked",void 0),Cn([ue(".nameContainer#firstName input")],Nn.prototype,"firstNameInput",void 0),Cn([ue(".nameContainer#lastName input")],Nn.prototype,"lastNameInput",void 0),Cn([ue(".inputContainer#email input")],Nn.prototype,"emailInput",void 0),Cn([ue(".inputContainer#phone input")],Nn.prototype,"phoneInput",void 0),Cn([ue("me-select#unitType")],Nn.prototype,"unitTypeSelect",void 0),Cn([ue("me-select#layoutType")],Nn.prototype,"layoutTypeSelect",void 0),Nn=Cn([re("tour-scheduler")],Nn),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(An||(An={}));const En={[An.Guided]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[An.Self]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[An.Virtual]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},_n={[An.Guided]:"escorted-tour",[An.Self]:"self-guided-tour",[An.Virtual]:"live-virtual-tour"},Fn=e=>e.map((e=>(e=>({studio:0,"1br":1,"2br":2,"3br":3,"4br":4,"5br":5,"6br":6,"7br":7,"8br":8,"9br":9,"10br":10}[e]))(e))).filter(On.isNumber).sort().map((e=>(e=>({0:"studio",1:"1br",2:"2br",3:"3br",4:"4br",5:"5br",6:"6br",7:"7br",8:"8br",9:"9br",10:"10br"}[e]))(e))).filter(On.isString);class Mn{constructor(e,t,n){this.org=e,this.building=t,this.chatId=n,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}campaignSources(){var e,t,n;const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null;return{entrataCampaignSource:i.get("switch_cls[id]"),realpageCampaignSource:i.get("ilm"),utmCampaignSource:i.get("utm_source"),yardiCampaignSource:r}}ping(e){fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:this.campaignSources()})})}}var Pn,Dn=new Uint8Array(16);function qn(){if(!Pn&&!(Pn="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 Pn(Dn)}const Un=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Jn=function(e){return"string"==typeof e&&Un.test(e)};for(var kn=[],Ln=0;Ln<256;++Ln)kn.push((Ln+256).toString(16).substr(1));const Bn=function(e,t,n){var i=(e=e||{}).random||(e.rng||qn)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(kn[e[t+0]]+kn[e[t+1]]+kn[e[t+2]]+kn[e[t+3]]+"-"+kn[e[t+4]]+kn[e[t+5]]+"-"+kn[e[t+6]]+kn[e[t+7]]+"-"+kn[e[t+8]]+kn[e[t+9]]+"-"+kn[e[t+10]]+kn[e[t+11]]+kn[e[t+12]]+kn[e[t+13]]+kn[e[t+14]]+kn[e[t+15]]).toLowerCase();if(!Jn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function jn(e,t){const n=Wn(e,t),i=Bn();return localStorage.setItem(n,i),Hn(e,t),i}function Hn(e,t){const n=Gn(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function Wn(e,t){return`com.meetelise.chatID-${e}-${t}`}function Gn(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const $n="#FFFFFF",Vn="#202020",zn={user:{textColor:$n,backgroundColor:"#1990FF"},agent:{textColor:$n,backgroundColor:"#1E1E1E"}},Xn={user:{textColor:$n,backgroundColor:"#83818E"},agent:{textColor:$n,backgroundColor:Vn}},Zn={Light:{chatHeader:{backgroundColor:$n,textColor:Vn},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:zn},Dark:{chatHeader:{backgroundColor:Vn,textColor:$n},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:zn},Purple:{chatHeader:{backgroundColor:"#550098",textColor:$n},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:zn},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:$n},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:zn},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:Vn},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:Xn},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:$n},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:zn},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:Vn},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:Xn},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:$n},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:zn},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:$n},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:zn}},Qn=e=>Zn[e&&Object.keys(Zn).includes(e)?e:"Light"];function Kn(e,t,n,i,r,o){var a;const s=new Ie.User({id:`building_${t.id}`,name:t.userFirstName,email:null,role:"Default",welcomeMessage:t.welcomeMessage,availabilityText:t.systemWelcomeMessage}),u=e.getOrCreateConversation(r);return u.setParticipant(e.me),u.setParticipant(s),u.subject=16===t.orgId?"Leasing team":null!==(a=t.chatTitle)&&void 0!==a?a:t.userFirstName,u.custom={buildingId:t.id.toString(),userId:t.userId.toString(),orgId:t.orgId.toString(),subtitle:t.chatSubtitle,url:location.href,buildingName:t.name,isMobile:o.toString(),chatHeaderBackgroundColor:n.chatHeader.backgroundColor,chatHeaderTextColor:n.chatHeader.textColor,chatPaneBackgroundColor:n.chatPaneBackgroundColor,userMessageTextColor:n.message.user.textColor,userMessageBackgroundColor:n.message.user.backgroundColor,agentMessageTextColor:n.message.agent.textColor,agentMessageBackgroundColor:n.message.agent.backgroundColor,isLightTheme:(n.message===Xn).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}const Yn=a`
|
|
1134
|
+
`,Cn],Nn([ae({attribute:!1})],An.prototype,"layoutOptions",void 0),Nn([ae({attribute:!1})],An.prototype,"unitOptions",void 0),Nn([ae({attribute:!1})],An.prototype,"tourTypeOptions",void 0),Nn([ae({type:Number})],An.prototype,"buildingId",void 0),Nn([ae({attribute:!0})],An.prototype,"buildingSlug",void 0),Nn([ae({attribute:!0})],An.prototype,"sgtUrl",void 0),Nn([ae({attribute:!0})],An.prototype,"escortedToursLink",void 0),Nn([ae({attribute:!0})],An.prototype,"virtualToursLink",void 0),Nn([ae({attribute:!0})],An.prototype,"orgSlug",void 0),Nn([se()],An.prototype,"tourType",void 0),Nn([se()],An.prototype,"shouldShowTourType",void 0),Nn([se()],An.prototype,"email",void 0),Nn([se()],An.prototype,"phoneNumber",void 0),Nn([se()],An.prototype,"availabilitiesGroupedByDay",void 0),Nn([se()],An.prototype,"waitingForAvailabilities",void 0),Nn([se()],An.prototype,"selectedDate",void 0),Nn([se()],An.prototype,"selectedTime",void 0),Nn([se()],An.prototype,"mobilePageIndex",void 0),Nn([se()],An.prototype,"isSubmitting",void 0),Nn([se()],An.prototype,"tourIsBooked",void 0),Nn([ue(".nameContainer#firstName input")],An.prototype,"firstNameInput",void 0),Nn([ue(".nameContainer#lastName input")],An.prototype,"lastNameInput",void 0),Nn([ue(".inputContainer#email input")],An.prototype,"emailInput",void 0),Nn([ue(".inputContainer#phone input")],An.prototype,"phoneInput",void 0),Nn([ue("me-select#unitType")],An.prototype,"unitTypeSelect",void 0),Nn([ue("me-select#layoutType")],An.prototype,"layoutTypeSelect",void 0),An=Nn([re("tour-scheduler")],An),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(En||(En={}));const _n={[En.Guided]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent,[En.Self]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided,[En.Virtual]:Kt.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing},Fn={[En.Guided]:"escorted-tour",[En.Self]:"self-guided-tour",[En.Virtual]:"live-virtual-tour"},Mn=e=>e.map((e=>(e=>({studio:0,"1br":1,"2br":2,"3br":3,"4br":4,"5br":5,"6br":6,"7br":7,"8br":8,"9br":9,"10br":10}[e]))(e))).filter(On.isNumber).sort().map((e=>(e=>({0:"studio",1:"1br",2:"2br",3:"3br",4:"4br",5:"5br",6:"6br",7:"7br",8:"8br",9:"9br",10:"10br"}[e]))(e))).filter(On.isString);class Pn{constructor(e,t,n){this.org=e,this.building=t,this.chatId=n,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}campaignSources(){var e,t,n;const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null;return{entrataCampaignSource:i.get("switch_cls[id]"),realpageCampaignSource:i.get("ilm"),utmCampaignSource:i.get("utm_source"),yardiCampaignSource:r}}ping(e){fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:this.campaignSources()})})}}var Dn,qn=new Uint8Array(16);function Un(){if(!Dn&&!(Dn="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 Dn(qn)}const Jn=/^(?:[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,kn=function(e){return"string"==typeof e&&Jn.test(e)};for(var Ln=[],Bn=0;Bn<256;++Bn)Ln.push((Bn+256).toString(16).substr(1));const jn=function(e,t,n){var i=(e=e||{}).random||(e.rng||Un)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ln[e[t+0]]+Ln[e[t+1]]+Ln[e[t+2]]+Ln[e[t+3]]+"-"+Ln[e[t+4]]+Ln[e[t+5]]+"-"+Ln[e[t+6]]+Ln[e[t+7]]+"-"+Ln[e[t+8]]+Ln[e[t+9]]+"-"+Ln[e[t+10]]+Ln[e[t+11]]+Ln[e[t+12]]+Ln[e[t+13]]+Ln[e[t+14]]+Ln[e[t+15]]).toLowerCase();if(!kn(n))throw TypeError("Stringified UUID is invalid");return n}(i)};function Hn(e,t){const n=Gn(e,t),i=jn();return localStorage.setItem(n,i),Wn(e,t),i}function Wn(e,t){const n=$n(e,t),i=(new Date).toISOString();return localStorage.setItem(n,i),i}function Gn(e,t){return`com.meetelise.chatID-${e}-${t}`}function $n(e,t){return`com.meetelise.chatIDIssueTime-${e}-${t}`}const Vn="#FFFFFF",zn="#202020",Xn={user:{textColor:Vn,backgroundColor:"#1990FF"},agent:{textColor:Vn,backgroundColor:"#1E1E1E"}},Zn={user:{textColor:Vn,backgroundColor:"#83818E"},agent:{textColor:Vn,backgroundColor:zn}},Qn={Light:{chatHeader:{backgroundColor:Vn,textColor:zn},chatPaneBackgroundColor:"rgba(255, 255, 255, 0.9)",message:Xn},Dark:{chatHeader:{backgroundColor:zn,textColor:Vn},chatPaneBackgroundColor:"rgba(32, 32, 32, 0.9)",message:Xn},Purple:{chatHeader:{backgroundColor:"#550098",textColor:Vn},chatPaneBackgroundColor:"rgba(85, 0, 152, 0.6)",message:Xn},Blue:{chatHeader:{backgroundColor:"#0814E5",textColor:Vn},chatPaneBackgroundColor:"rgba(4, 17, 245, 0.6)",message:Xn},Teal:{chatHeader:{backgroundColor:"#6EE7ED",textColor:zn},chatPaneBackgroundColor:"rgba(115, 247, 253, 0.8)",message:Zn},Green:{chatHeader:{backgroundColor:"#147B0E",textColor:Vn},chatPaneBackgroundColor:"rgba(13, 141, 5, 0.6)",message:Xn},Yellow:{chatHeader:{backgroundColor:"#F1E54F",textColor:zn},chatPaneBackgroundColor:"rgba(251, 239, 80, 0.9)",message:Zn},Orange:{chatHeader:{backgroundColor:"#C06C31",textColor:Vn},chatPaneBackgroundColor:"rgba(238, 126, 49, 0.7)",message:Xn},Pink:{chatHeader:{backgroundColor:"#A24599",textColor:Vn},chatPaneBackgroundColor:"rgba(167, 70, 157, 0.8)",message:Xn}},Kn=e=>Qn[e&&Object.keys(Qn).includes(e)?e:"Light"];function Yn(e,t,n,i,r,o){var a;const s=new Ie.User({id:`building_${t.id}`,name:t.userFirstName,email:null,role:"Default",welcomeMessage:t.welcomeMessage,availabilityText:t.systemWelcomeMessage}),u=e.getOrCreateConversation(r);return u.setParticipant(e.me),u.setParticipant(s),u.subject=16===t.orgId?"Leasing team":null!==(a=t.chatTitle)&&void 0!==a?a:t.userFirstName,u.custom={buildingId:t.id.toString(),userId:t.userId.toString(),orgId:t.orgId.toString(),subtitle:t.chatSubtitle,url:location.href,buildingName:t.name,isMobile:o.toString(),chatHeaderBackgroundColor:n.chatHeader.backgroundColor,chatHeaderTextColor:n.chatHeader.textColor,chatPaneBackgroundColor:n.chatPaneBackgroundColor,userMessageTextColor:n.message.user.textColor,userMessageBackgroundColor:n.message.user.backgroundColor,agentMessageTextColor:n.message.agent.textColor,agentMessageBackgroundColor:n.message.agent.backgroundColor,isLightTheme:(n.message===Zn).toString(),avatarUrl:"image"===t.avatarType&&t.avatarSrc?i:"https://eliseusercontent.meetelise.com/webchat/looping-gradient.gif"},u}const ei=a`
|
|
1110
1135
|
:host {
|
|
1111
1136
|
--glowBarHeight: 11.2px;
|
|
1112
1137
|
--enterAnimationDuration: 0.5s;
|
|
@@ -1416,7 +1441,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1416
1441
|
}
|
|
1417
1442
|
.inner-pill-wrapper {
|
|
1418
1443
|
background: #353535;
|
|
1419
|
-
border-width:
|
|
1444
|
+
border-width: 2px 0px 2px 2px;
|
|
1420
1445
|
border-style: solid;
|
|
1421
1446
|
border-color: #ffffff;
|
|
1422
1447
|
box-shadow: 0px 34px 34px 14px rgba(0, 0, 0, 0.35);
|
|
@@ -1454,7 +1479,17 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1454
1479
|
bottom: 0;
|
|
1455
1480
|
}
|
|
1456
1481
|
}
|
|
1457
|
-
|
|
1482
|
+
@media screen and (min-width: 1000px) {
|
|
1483
|
+
.inner-pill-wrapper {
|
|
1484
|
+
font-size: 18px;
|
|
1485
|
+
line-height: 22px;
|
|
1486
|
+
}
|
|
1487
|
+
.vertical-pill-icon {
|
|
1488
|
+
transform: scale(1.2);
|
|
1489
|
+
width: 32px;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
`;var ti=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ni=class extends ne{constructor(){super(...arguments),this.text="Submit",this.isLoading=!1,this.disabled=!1,this.height="initial",this.width="initial",this.render=()=>D`<button
|
|
1458
1493
|
class=${Rn()("action-confirm-button",{loading:this.isLoading})}
|
|
1459
1494
|
@click=${this.isLoading?null:this.onClick}
|
|
1460
1495
|
?disabled=${this.disabled}
|
|
@@ -1466,7 +1501,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1466
1501
|
<div></div>
|
|
1467
1502
|
<div></div>
|
|
1468
1503
|
</div>`:this.text}
|
|
1469
|
-
</button>`}};
|
|
1504
|
+
</button>`}};ni.styles=[a`
|
|
1470
1505
|
.action-confirm-button {
|
|
1471
1506
|
display: flex;
|
|
1472
1507
|
justify-content: center;
|
|
@@ -1474,17 +1509,16 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1474
1509
|
background: #1e1e1e;
|
|
1475
1510
|
border: 2px solid #ffffff;
|
|
1476
1511
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
|
|
1477
|
-
border-radius:
|
|
1478
|
-
|
|
1512
|
+
border-radius: 20px;
|
|
1513
|
+
|
|
1479
1514
|
font-family: "Poppins";
|
|
1480
1515
|
font-style: normal;
|
|
1481
|
-
font-weight:
|
|
1516
|
+
font-weight: 400;
|
|
1482
1517
|
font-size: 14px;
|
|
1483
1518
|
line-height: 22px;
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
padding
|
|
1487
|
-
padding-bottom: 12px;
|
|
1519
|
+
|
|
1520
|
+
color: #ffffff;
|
|
1521
|
+
padding: 5px 15px;
|
|
1488
1522
|
cursor: pointer;
|
|
1489
1523
|
}
|
|
1490
1524
|
|
|
@@ -1541,13 +1575,13 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1541
1575
|
transform: rotate(360deg);
|
|
1542
1576
|
}
|
|
1543
1577
|
}
|
|
1544
|
-
`],
|
|
1578
|
+
`],ti([ae()],ni.prototype,"onClick",void 0),ti([ae()],ni.prototype,"text",void 0),ti([ae({attribute:!1})],ni.prototype,"isLoading",void 0),ti([ae({type:Boolean})],ni.prototype,"disabled",void 0),ti([ae({type:String})],ni.prototype,"height",void 0),ti([ae({type:String})],ni.prototype,"width",void 0),ni=ti([re("action-confirm-button")],ni);const ii=()=>{window.customElements.get("action-confirm-button")||window.customElements.define("action-confirm-button",ni)},ri=de(class extends ce{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,n)=>{const i=e[n];return null==i?t:t+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(e,[t]){const{style:n}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach((e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?n.removeProperty(e):n[e]="")}));for(const e in t){const i=t[e];null!=i&&(this.ct.add(e),e.includes("-")?n.setProperty(e,i):n[e]=i)}return U}});var oi=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ai=class extends ne{constructor(){super(...arguments),this.height="425px",this.width="326px",this.useRoundedBorders=!0,this.headerText="",this.isMobileSized=!1,this.useGradientDesign=!1}async firstUpdated(){await new Promise((e=>setTimeout(e,0))),this.isMobileSized=xn(),window.addEventListener("resize",(()=>{this.isMobileSized=xn()}))}render(){return D`
|
|
1545
1579
|
<div
|
|
1546
|
-
class
|
|
1547
|
-
style=${
|
|
1580
|
+
class=${pe({"gradient-window-wrapper":this.useGradientDesign,"details-window-wrapper":!this.useGradientDesign})}
|
|
1581
|
+
style=${ri({height:this.height,width:this.isMobileSized?"-webkit-fill-available":this.width})}
|
|
1548
1582
|
>
|
|
1549
1583
|
<div class="details-window-header">
|
|
1550
|
-
<div>${this.headerText}</div>
|
|
1584
|
+
<div class="header-text">${this.headerText}</div>
|
|
1551
1585
|
${this.onCloseClick?D`<div @click=${this.onCloseClick}>
|
|
1552
1586
|
<svg
|
|
1553
1587
|
width="19"
|
|
@@ -1574,7 +1608,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1574
1608
|
</div>
|
|
1575
1609
|
<slot class="details-window__slot-content"></slot>
|
|
1576
1610
|
</div>
|
|
1577
|
-
`}};
|
|
1611
|
+
`}};ai.styles=a`
|
|
1578
1612
|
.details-window-wrapper {
|
|
1579
1613
|
background: rgba(255, 255, 255, 0.75);
|
|
1580
1614
|
box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
|
|
@@ -1585,13 +1619,39 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1585
1619
|
border-radius: 10px 0px 0px 10px;
|
|
1586
1620
|
}
|
|
1587
1621
|
|
|
1622
|
+
.gradient-window-wrapper {
|
|
1623
|
+
background: rgba(0, 0, 0 0.75);
|
|
1624
|
+
border-width: 3px 0px 3px 3px;
|
|
1625
|
+
border-style: solid;
|
|
1626
|
+
border-color: #ffffff;
|
|
1627
|
+
box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
|
|
1628
|
+
border-radius: 10px 0px 0px 10px;
|
|
1629
|
+
padding: 16px;
|
|
1630
|
+
display: block;
|
|
1631
|
+
background: linear-gradient(
|
|
1632
|
+
154.34deg,
|
|
1633
|
+
rgba(255, 255, 255, 1) 0.55%,
|
|
1634
|
+
rgba(0, 0, 0, 1) 160.1%
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1588
1637
|
.details-window-header {
|
|
1589
1638
|
display: flex;
|
|
1590
1639
|
justify-content: space-between;
|
|
1640
|
+
}
|
|
1641
|
+
.header-text {
|
|
1591
1642
|
font-weight: 700;
|
|
1592
1643
|
font-size: 14px;
|
|
1593
1644
|
line-height: 22px;
|
|
1594
|
-
|
|
1645
|
+
|
|
1646
|
+
font-family: "Helvetica";
|
|
1647
|
+
font-style: normal;
|
|
1648
|
+
font-weight: 700;
|
|
1649
|
+
font-size: 16px;
|
|
1650
|
+
line-height: 24px;
|
|
1651
|
+
|
|
1652
|
+
color: #202020;
|
|
1653
|
+
margin-top: 20px;
|
|
1654
|
+
margin-bottom: 14px;
|
|
1595
1655
|
}
|
|
1596
1656
|
|
|
1597
1657
|
@media screen and (max-width: 767px) {
|
|
@@ -1599,51 +1659,28 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1599
1659
|
border-radius: 0px 0px 0px 0px;
|
|
1600
1660
|
}
|
|
1601
1661
|
}
|
|
1602
|
-
`,
|
|
1603
|
-
.webchat-input {
|
|
1604
|
-
border: 1px solid #83818e;
|
|
1605
|
-
outline: none;
|
|
1606
|
-
color: #202020;
|
|
1607
|
-
font-weight: 400;
|
|
1608
|
-
font-size: 16px;
|
|
1609
|
-
line-height: 22px;
|
|
1610
|
-
font-family: "Poppins";
|
|
1611
|
-
padding-left: 12px;
|
|
1612
|
-
padding-right: 12px;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
.webchat-input:active {
|
|
1616
|
-
border: 1px solid #202020;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
.webchat-input:focus-within {
|
|
1620
|
-
border: 1px solid #202020;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
.webchat-input::placeholder {
|
|
1624
|
-
color: #202020;
|
|
1625
|
-
font-family: "Poppins";
|
|
1626
|
-
font-size: 16px;
|
|
1627
|
-
}
|
|
1628
|
-
`;var ui=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let li=class extends ne{constructor(){super(...arguments),this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.phoneNumberInputRef=Se(),this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.message="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmittedForm=!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=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Ae(e))return;const t=e.target;this.phoneNumber=Re(t.value),this.phoneNumberInputRef.value.value=this.phoneNumber},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.enforceFormat=e=>{Ce(e)||Ae(e)||e.preventDefault()},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.firstName&&this.lastName||(this.hasNameError=!0),this.email&&this.email.includes("@")||(this.hasEmailError=!0),this.phoneNumber&&14===this.phoneNumber.length||(this.hasPhoneNumberError=!0),this.message||(this.hasMessageError=!0),this.windowHeight=525+30*this.getNumErrors()},this.onClick=async()=>{if(!(this.isSubmitting||(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError)))try{this.isSubmitting=!0,this.windowHeight=585,await di(this.firstName,this.lastName,this.email,this.phoneNumber,this.message,this.buildingId,this.orgSlug,this.buildingSlug),this.hasSubmittedForm=!0,this.isSubmitting=!1,this.windowHeight=525}catch(e){this.hasSubmissionError=!0,this.isSubmitting=!1,this.windowHeight=525}},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError].filter((e=>e)).length,this.render=()=>(ai(),ni(),this.hasSubmittedForm?D`
|
|
1662
|
+
`,oi([ae({type:String})],ai.prototype,"height",void 0),oi([ae({type:String})],ai.prototype,"width",void 0),oi([ae({type:Boolean})],ai.prototype,"useRoundedBorders",void 0),oi([ae({type:String})],ai.prototype,"headerText",void 0),oi([ae({attribute:!1})],ai.prototype,"onCloseClick",void 0),oi([se()],ai.prototype,"isMobileSized",void 0),oi([ae({attribute:!0})],ai.prototype,"useGradientDesign",void 0),ai=oi([re("details-window")],ai);const si=()=>{window.customElements.get("details-window")||window.customElements.define("details-window",ai)};var ui=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let li=class extends ne{constructor(){super(...arguments),this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.phoneNumberInputRef=Se(),this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.message="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmittedForm=!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=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Ae(e))return;const t=e.target;this.phoneNumber=Re(t.value),this.phoneNumberInputRef.value.value=this.phoneNumber},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.enforceFormat=e=>{Ce(e)||Ae(e)||e.preventDefault()},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.firstName&&this.lastName||(this.hasNameError=!0),this.email&&this.email.includes("@")||(this.hasEmailError=!0),this.phoneNumber&&14===this.phoneNumber.length||(this.hasPhoneNumberError=!0),this.message||(this.hasMessageError=!0),this.windowHeight=525+30*this.getNumErrors()},this.onClick=async()=>{if(!(this.isSubmitting||(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError)))try{this.isSubmitting=!0,this.windowHeight=585,await di(this.firstName,this.lastName,this.email,this.phoneNumber,this.message,this.buildingId,this.orgSlug,this.buildingSlug),this.hasSubmittedForm=!0,this.isSubmitting=!1,this.windowHeight=525}catch(e){this.hasSubmissionError=!0,this.isSubmitting=!1,this.windowHeight=525}},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError].filter((e=>e)).length,this.render=()=>(si(),ii(),this.hasSubmittedForm?D`
|
|
1629
1663
|
<details-window
|
|
1630
|
-
headerText="
|
|
1664
|
+
headerText=""
|
|
1665
|
+
useGradientDesign="true"
|
|
1631
1666
|
.onCloseClick=${this.onCloseClicked}
|
|
1632
1667
|
>
|
|
1633
1668
|
<div class="email-us-wrapper">
|
|
1634
1669
|
<div class="email-us__vertical-spacer"></div>
|
|
1635
|
-
<
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1670
|
+
<div class="email-us__center_icon">
|
|
1671
|
+
<svg
|
|
1672
|
+
width="22"
|
|
1673
|
+
height="18"
|
|
1674
|
+
viewBox="0 0 22 18"
|
|
1675
|
+
fill="none"
|
|
1676
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1677
|
+
>
|
|
1678
|
+
<path
|
|
1679
|
+
d="M22 17.007C21.9982 17.2696 21.8931 17.521 21.7075 17.7068C21.5219 17.8926 21.2706 17.9979 21.008 18H2.992C2.72881 17.9997 2.4765 17.895 2.29049 17.7088C2.10448 17.5226 2 17.2702 2 17.007V16H20V4.3L12 11.5L2 2.5V1C2 0.734784 2.10536 0.48043 2.29289 0.292893C2.48043 0.105357 2.73478 0 3 0H21C21.2652 0 21.5196 0.105357 21.7071 0.292893C21.8946 0.48043 22 0.734784 22 1V17.007ZM4.434 2L12 8.81L19.566 2H4.434ZM0 12H8V14H0V12ZM0 7H5V9H0V7Z"
|
|
1680
|
+
fill="#202020"
|
|
1681
|
+
/>
|
|
1682
|
+
</svg>
|
|
1683
|
+
</div>
|
|
1647
1684
|
<div class="email-us__vertical-spacer"></div>
|
|
1648
1685
|
<div class="email-us__submitted-info">
|
|
1649
1686
|
Thank you for your message. A member of our leasing team will
|
|
@@ -1653,9 +1690,10 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1653
1690
|
</details-window>
|
|
1654
1691
|
`:D`
|
|
1655
1692
|
<details-window
|
|
1656
|
-
headerText="Email
|
|
1693
|
+
headerText="Email our leasing team"
|
|
1657
1694
|
.onCloseClick=${this.onCloseClicked}
|
|
1658
1695
|
height="${this.windowHeight}px"
|
|
1696
|
+
useGradientDesign="true"
|
|
1659
1697
|
>
|
|
1660
1698
|
<div class="email-us-wrapper">
|
|
1661
1699
|
<div class="email-us__name-wrapper">
|
|
@@ -1712,30 +1750,32 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1712
1750
|
<textarea
|
|
1713
1751
|
placeholder="Message"
|
|
1714
1752
|
.value=${this.message}
|
|
1715
|
-
class=${pe({"email-us__message-input":!0,"webchat-input":!0})}
|
|
1753
|
+
class=${pe({"email-us__message-input":!0,"webchat-input":!0,"webchat-textarea":!0})}
|
|
1716
1754
|
@keyup=${this.onChangeMessage}
|
|
1717
1755
|
></textarea>
|
|
1718
1756
|
${this.hasMessageError?D` <div class="email-us__error-text">Include a message</div> `:""}
|
|
1719
1757
|
<div class="email-us__vertical-spacer"></div>
|
|
1720
|
-
<action-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1758
|
+
<div class="action-bttn-container">
|
|
1759
|
+
<action-confirm-button
|
|
1760
|
+
.onClick=${this.onClick}
|
|
1761
|
+
.isLoading=${this.isSubmitting}
|
|
1762
|
+
text="SEND"
|
|
1763
|
+
></action-confirm-button>
|
|
1764
|
+
</div>
|
|
1725
1765
|
${this.hasSubmissionError?D`
|
|
1726
1766
|
<div class="email-us__error-text">Error submitting message</div>
|
|
1727
1767
|
`:""}
|
|
1728
1768
|
<div class="email-us__vertical-spacer"></div>
|
|
1729
|
-
<div class="email-us__legal-terms">
|
|
1730
|
-
<a
|
|
1731
|
-
class="email-us__legal-term-action"
|
|
1732
|
-
href="${this.privatePolicyUrl}"
|
|
1733
|
-
>Privacy Policy</a
|
|
1734
|
-
>
|
|
1735
|
-
</div>
|
|
1736
1769
|
</div>
|
|
1737
1770
|
</details-window>
|
|
1738
1771
|
`)}};li.styles=[a`
|
|
1772
|
+
.email-us__name-input,
|
|
1773
|
+
.email-us__contact_input,
|
|
1774
|
+
.email-us_message-input {
|
|
1775
|
+
white-space: nowrap;
|
|
1776
|
+
overflow: hidden;
|
|
1777
|
+
text-overflow: ellipsis;
|
|
1778
|
+
}
|
|
1739
1779
|
.email-us__name-input {
|
|
1740
1780
|
width: 134px;
|
|
1741
1781
|
height: 49px;
|
|
@@ -1746,8 +1786,8 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1746
1786
|
}
|
|
1747
1787
|
|
|
1748
1788
|
.email-us__horizontal-spacer {
|
|
1749
|
-
margin-left:
|
|
1750
|
-
margin-right:
|
|
1789
|
+
margin-left: 6px;
|
|
1790
|
+
margin-right: 6px;
|
|
1751
1791
|
}
|
|
1752
1792
|
|
|
1753
1793
|
.email-us__contact-input {
|
|
@@ -1760,6 +1800,11 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1760
1800
|
margin-bottom: 15px;
|
|
1761
1801
|
}
|
|
1762
1802
|
|
|
1803
|
+
.action-bttn-container {
|
|
1804
|
+
display: flex;
|
|
1805
|
+
justify-content: flex-end;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1763
1808
|
.email-us__message-input {
|
|
1764
1809
|
resize: none;
|
|
1765
1810
|
width: -webkit-fill-available;
|
|
@@ -1767,19 +1812,6 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1767
1812
|
padding: 8px;
|
|
1768
1813
|
}
|
|
1769
1814
|
|
|
1770
|
-
.email-us__legal-terms {
|
|
1771
|
-
color: #202020;
|
|
1772
|
-
font-family: "Poppins";
|
|
1773
|
-
font-style: normal;
|
|
1774
|
-
font-weight: 400;
|
|
1775
|
-
font-size: 12px;
|
|
1776
|
-
line-height: 22px;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
.email-us__legal-term-action {
|
|
1780
|
-
color: #202020;
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
1815
|
.email-us__submitted-info {
|
|
1784
1816
|
font-size: 18px;
|
|
1785
1817
|
line-height: 24px;
|
|
@@ -1787,84 +1819,93 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1787
1819
|
}
|
|
1788
1820
|
|
|
1789
1821
|
.email-us__error-text {
|
|
1790
|
-
|
|
1791
|
-
font-family: "
|
|
1792
|
-
font-
|
|
1793
|
-
|
|
1794
|
-
|
|
1822
|
+
margin-top: 4px;
|
|
1823
|
+
font-family: "Helvetica";
|
|
1824
|
+
font-style: normal;
|
|
1825
|
+
font-weight: 400;
|
|
1826
|
+
font-size: 12px;
|
|
1827
|
+
line-height: 14px;
|
|
1828
|
+
|
|
1829
|
+
color: rgb(235, 64, 52);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.email-us__center_icon {
|
|
1833
|
+
display: flex;
|
|
1834
|
+
justify-content: center;
|
|
1795
1835
|
}
|
|
1796
1836
|
|
|
1797
1837
|
@media screen and (max-width: 767px) {
|
|
1798
1838
|
.email-us__name-input {
|
|
1799
|
-
width:
|
|
1839
|
+
width: 50%;
|
|
1800
1840
|
}
|
|
1801
1841
|
}
|
|
1802
|
-
`,
|
|
1842
|
+
`,Cn],ui([ae({attribute:!1})],li.prototype,"onCloseClicked",void 0),ui([ae({attribute:!1})],li.prototype,"buildingId",void 0),ui([ae({attribute:!0})],li.prototype,"buildingSlug",void 0),ui([ae({attribute:!0})],li.prototype,"orgSlug",void 0),ui([ae()],li.prototype,"privatePolicyUrl",void 0),ui([ae()],li.prototype,"termsOfServiceUrl",void 0),ui([se()],li.prototype,"firstName",void 0),ui([se()],li.prototype,"lastName",void 0),ui([se()],li.prototype,"email",void 0),ui([se()],li.prototype,"phoneNumber",void 0),ui([se()],li.prototype,"message",void 0),ui([se()],li.prototype,"hasNameError",void 0),ui([se()],li.prototype,"hasEmailError",void 0),ui([se()],li.prototype,"hasPhoneNumberError",void 0),ui([se()],li.prototype,"hasMessageError",void 0),ui([se()],li.prototype,"hasSubmittedForm",void 0),ui([se()],li.prototype,"windowHeight",void 0),ui([se()],li.prototype,"hasSubmissionError",void 0),ui([se()],li.prototype,"isSubmitting",void 0),li=ui([re("email-us-window")],li);const di=async(e,t,n,i,r,o,a,s)=>{const u={email_address:n,building_id:o,lead_source:"property-website",first_message:r,first_name:e,last_name:t,phone_number:"+1"+i.replace("(","").replace(")","").replace(" ","").replace("-","")};await Qt().post("https://app.meetelise.com/platformApi/state/create/emailMe",u,{headers:{"building-slug":s,"org-slug":a,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG"}})};var ci=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let pi=class extends ne{constructor(){super(...arguments),this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.inPopup=!1,this.phoneNumberInputRef=Se(),this.phoneNumber="",this.hasSubmittedForm=!1,this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.isSubmitting=!1,this.onChangePhoneNumber=e=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Ae(e))return;const t=e.target;this.phoneNumber=Re(t.value),this.phoneNumberInputRef.value.value=this.phoneNumber},this.enforceFormat=e=>{Ce(e)||Ae(e)||e.preventDefault()},this.validateFormFields=()=>{this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumber&&14===this.phoneNumber.length||(this.hasPhoneNumberError=!0)},this.onClick=async()=>{if(this.validateFormFields(),!this.hasPhoneNumberError)try{this.isSubmitting=!0,await fi(this.phoneNumber,this.buildingId,this.orgSlug,this.buildingSlug),this.hasSubmittedForm=!0,this.isSubmitting=!1}catch(e){this.isSubmitting=!1,this.hasSubmissionError=!0}},this.renderTextUs=()=>D` <div class="text-us-wrapper">
|
|
1843
|
+
<div class="text-us-window__description">Send us a text</div>
|
|
1844
|
+
<div class="text-us-window__vertical-spacer"></div>
|
|
1845
|
+
<div class="text-us-window__input-container">
|
|
1846
|
+
<input
|
|
1847
|
+
${Oe(this.phoneNumberInputRef)}
|
|
1848
|
+
maxlength="14"
|
|
1849
|
+
type="text"
|
|
1850
|
+
placeholder="Phone number"
|
|
1851
|
+
inputmode="tel"
|
|
1852
|
+
class=${pe({"webchat-input":!0,"text-us-window__phone-input":!0})}
|
|
1853
|
+
.value=${this.phoneNumber}
|
|
1854
|
+
@keydown=${this.enforceFormat}
|
|
1855
|
+
@keyup=${this.onChangePhoneNumber}
|
|
1856
|
+
/>
|
|
1857
|
+
<div class="text-us-window__submit-text">
|
|
1858
|
+
<action-confirm-button
|
|
1859
|
+
.onClick=${this.onClick}
|
|
1860
|
+
.isLoading=${this.isSubmitting}
|
|
1861
|
+
text="SEND"
|
|
1862
|
+
></action-confirm-button>
|
|
1863
|
+
</div>
|
|
1864
|
+
</div>
|
|
1865
|
+
${this.hasPhoneNumberError?D`
|
|
1866
|
+
<div class="text-us-window__error">Enter a valid phone number</div>
|
|
1867
|
+
`:""}
|
|
1868
|
+
|
|
1869
|
+
<div class="text-us-window__vertical-spacer"></div>
|
|
1870
|
+
<div class="text-us-window__subtext">
|
|
1871
|
+
By entering your number, you consent to be contacted by our AI Leasing
|
|
1872
|
+
Assistant. Your consent to this process is not a requirement for leasing
|
|
1873
|
+
at our property. Message and data rates may apply.
|
|
1874
|
+
</div>
|
|
1875
|
+
</div>`,this.renderSubmitted=()=>D`
|
|
1876
|
+
<div class="text-us-wrapper">
|
|
1877
|
+
<div class="text-us-window__vertical-spacer"></div>
|
|
1878
|
+
<svg
|
|
1879
|
+
width="20"
|
|
1880
|
+
height="20"
|
|
1881
|
+
viewBox="0 0 20 20"
|
|
1882
|
+
fill="none"
|
|
1883
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1884
|
+
>
|
|
1885
|
+
<path
|
|
1886
|
+
d="M4.455 16L0 19.5V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0H19C19.2652 0 19.5196 0.105357 19.7071 0.292893C19.8946 0.48043 20 0.734784 20 1V15C20 15.2652 19.8946 15.5196 19.7071 15.7071C19.5196 15.8946 19.2652 16 19 16H4.455ZM2 15.385L3.763 14H18V2H2V15.385ZM10 7V4L14 8L10 12V9H6V7H10Z"
|
|
1887
|
+
fill="#202020"
|
|
1888
|
+
/>
|
|
1889
|
+
</svg>
|
|
1890
|
+
<div class="text-us-window__description">
|
|
1891
|
+
Thank you!<br />Look for a text message from our team. We can answer
|
|
1892
|
+
questions and help you book a tour through text.
|
|
1893
|
+
</div>
|
|
1894
|
+
<div class="text-us-window__vertical-spacer"></div>
|
|
1895
|
+
<div class="text-us-window__subtext">
|
|
1896
|
+
Opt out at anytime by texting “Stop”
|
|
1897
|
+
</div>
|
|
1898
|
+
</div>
|
|
1899
|
+
`,this.render=()=>(si(),ii(),this.inPopup?this.hasSubmittedForm?this.renderSubmitted():this.renderTextUs():this.hasSubmittedForm?D`
|
|
1803
1900
|
<details-window
|
|
1804
1901
|
headerText="Text us"
|
|
1805
1902
|
.onCloseClick=${this.onCloseClicked}
|
|
1806
1903
|
>
|
|
1807
|
-
|
|
1808
|
-
<div class="text-us-window__vertical-spacer"></div>
|
|
1809
|
-
<svg
|
|
1810
|
-
width="20"
|
|
1811
|
-
height="20"
|
|
1812
|
-
viewBox="0 0 20 20"
|
|
1813
|
-
fill="none"
|
|
1814
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1815
|
-
>
|
|
1816
|
-
<path
|
|
1817
|
-
d="M4.455 16L0 19.5V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0H19C19.2652 0 19.5196 0.105357 19.7071 0.292893C19.8946 0.48043 20 0.734784 20 1V15C20 15.2652 19.8946 15.5196 19.7071 15.7071C19.5196 15.8946 19.2652 16 19 16H4.455ZM2 15.385L3.763 14H18V2H2V15.385ZM10 7V4L14 8L10 12V9H6V7H10Z"
|
|
1818
|
-
fill="#202020"
|
|
1819
|
-
/>
|
|
1820
|
-
</svg>
|
|
1821
|
-
<div class="text-us-window__description">
|
|
1822
|
-
Thank you!<br />Look for a text message from our team. We can
|
|
1823
|
-
answer questions and help you book a tour through text.
|
|
1824
|
-
</div>
|
|
1825
|
-
<div class="text-us-window__vertical-spacer"></div>
|
|
1826
|
-
<div class="text-us-window__subtext">
|
|
1827
|
-
Opt out at anytime by texting “Stop”
|
|
1828
|
-
</div>
|
|
1829
|
-
</div>
|
|
1904
|
+
${this.renderSubmitted}
|
|
1830
1905
|
</details-window>
|
|
1831
1906
|
`:D`
|
|
1832
1907
|
<details-window headerText="Text us" .onCloseClick=${this.onCloseClicked}>
|
|
1833
|
-
|
|
1834
|
-
<div class="text-us-window__description">
|
|
1835
|
-
Have questions? <br />
|
|
1836
|
-
Our team can answer via <br />text message.
|
|
1837
|
-
</div>
|
|
1838
|
-
<div class="text-us-window__vertical-spacer"></div>
|
|
1839
|
-
<input
|
|
1840
|
-
${Oe(this.phoneNumberInputRef)}
|
|
1841
|
-
maxlength="14"
|
|
1842
|
-
type="text"
|
|
1843
|
-
placeholder="Phone number"
|
|
1844
|
-
inputmode="tel"
|
|
1845
|
-
class=${pe({"webchat-input":!0,"text-us-window__phone-input":!0})}
|
|
1846
|
-
.value=${this.phoneNumber}
|
|
1847
|
-
@keydown=${this.enforceFormat}
|
|
1848
|
-
@keyup=${this.onChangePhoneNumber}
|
|
1849
|
-
/>
|
|
1850
|
-
${this.hasPhoneNumberError?D`
|
|
1851
|
-
<div class="text-us-window__error">
|
|
1852
|
-
Enter a valid phone number
|
|
1853
|
-
</div>
|
|
1854
|
-
`:""}
|
|
1855
|
-
<div class="text-us-window__vertical-spacer"></div>
|
|
1856
|
-
<action-confirm-button
|
|
1857
|
-
.onClick=${this.onClick}
|
|
1858
|
-
.isLoading=${this.isSubmitting}
|
|
1859
|
-
text="Send"
|
|
1860
|
-
></action-confirm-button>
|
|
1861
|
-
<div class="text-us-window__vertical-spacer"></div>
|
|
1862
|
-
<div class="text-us-window__subtext">
|
|
1863
|
-
By entering your number, you consent to be contacted by our AI
|
|
1864
|
-
Leasing Assistant. Your consent to this process is not a requirement
|
|
1865
|
-
for leasing at our property. Message and data rates may apply.
|
|
1866
|
-
</div>
|
|
1867
|
-
</div>
|
|
1908
|
+
${this.renderTextUs}
|
|
1868
1909
|
</details-window>
|
|
1869
1910
|
`)}};pi.styles=[a`
|
|
1870
1911
|
.text-us-wrapper {
|
|
@@ -1873,16 +1914,32 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1873
1914
|
}
|
|
1874
1915
|
|
|
1875
1916
|
.text-us-window__description {
|
|
1876
|
-
font-
|
|
1917
|
+
font-family: "Helvetica";
|
|
1918
|
+
font-style: normal;
|
|
1919
|
+
font-weight: 700;
|
|
1920
|
+
font-size: 16px;
|
|
1877
1921
|
line-height: 24px;
|
|
1922
|
+
color: #202020;
|
|
1923
|
+
|
|
1878
1924
|
margin-top: 32px;
|
|
1879
1925
|
}
|
|
1880
1926
|
|
|
1927
|
+
.text-us-window__input-container {
|
|
1928
|
+
width: -webkit-fill-available;
|
|
1929
|
+
height: 49px;
|
|
1930
|
+
position: relative;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1881
1933
|
.text-us-window__phone-input {
|
|
1882
1934
|
width: -webkit-fill-available;
|
|
1883
1935
|
height: 49px;
|
|
1884
1936
|
}
|
|
1885
1937
|
|
|
1938
|
+
.text-us-window__submit-text {
|
|
1939
|
+
position: absolute;
|
|
1940
|
+
top: 6px;
|
|
1941
|
+
right: 6px;
|
|
1942
|
+
}
|
|
1886
1943
|
.text-us-window__vertical-spacer {
|
|
1887
1944
|
height: 20px;
|
|
1888
1945
|
}
|
|
@@ -1897,17 +1954,64 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1897
1954
|
line-height: 22px;
|
|
1898
1955
|
margin-top: 8px;
|
|
1899
1956
|
}
|
|
1900
|
-
`,
|
|
1957
|
+
`,Cn],ci([ae({attribute:!1})],pi.prototype,"onCloseClicked",void 0),ci([ae({attribute:!1})],pi.prototype,"buildingId",void 0),ci([ae({attribute:!0})],pi.prototype,"buildingSlug",void 0),ci([ae({attribute:!0})],pi.prototype,"orgSlug",void 0),ci([ae({attribute:!0})],pi.prototype,"inPopup",void 0),ci([se()],pi.prototype,"phoneNumber",void 0),ci([se()],pi.prototype,"hasSubmittedForm",void 0),ci([se()],pi.prototype,"hasPhoneNumberError",void 0),ci([se()],pi.prototype,"hasSubmissionError",void 0),ci([se()],pi.prototype,"isSubmitting",void 0),pi=ci([re("text-us-window")],pi);const fi=async(e,t,n,i)=>{const r={building_id:t,lead_source:"property-website",phone_number:"+1"+e.replace("(","").replace(")","").replace(" ","").replace("-","")};await Qt().post("https://app.meetelise.com/platformApi/state/create/textMe",r,{headers:{"building-slug":i,"org-slug":n,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG"}})},hi=q`<svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1958
|
+
<path d="M17.5286 6.72109H0.00730896C0.065762 4.35374 2.00202 2.45401 4.38399 2.45401H4.93198V3.91534C4.93198 4.22222 5.18041 4.46333 5.47998 4.46333C5.77955 4.46333 6.02798 4.22222 6.02798 3.91534V2.45401H11.508V3.91534C11.508 4.22222 11.7564 4.46333 12.056 4.46333C12.3555 4.46333 12.604 4.22222 12.604 3.91534V2.45401H13.1519C15.5339 2.45401 17.4702 4.35374 17.5286 6.72109V6.72109Z" fill="#B6C2FE"/>
|
|
1959
|
+
<path d="M17.5359 7.45181V15.606C17.5359 18.0318 15.5704 19.99 13.1519 19.99H4.38398C1.96548 19.99 0 18.0318 0 15.606V7.45181H17.5359Z" fill="white"/>
|
|
1960
|
+
<path d="M5.47998 1V2.46133" stroke="#B6C2FE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1961
|
+
<path d="M12.0559 1V2.46133" stroke="#B6C2FE" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1962
|
+
<path d="M0 6.72115H0.00730262C-4.01349e-06 6.75768 0 6.80152 0 6.83805V6.72115Z" fill="white"/>
|
|
1963
|
+
<path d="M17.5359 6.72115V6.83805C17.5359 6.80152 17.5359 6.75768 17.5286 6.72115H17.5359Z" fill="white"/>
|
|
1964
|
+
<path d="M5.30463 13.2459L7.33587 15.2772C7.62083 15.5621 8.08115 15.5621 8.36611 15.2772L12.224 11.4193" stroke="#404040" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1965
|
+
</svg>
|
|
1966
|
+
`,mi=q`<svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1967
|
+
<path d="M14.4 0H4.8C2.14903 0 0 2.14903 0 4.8V11.2C0 13.851 2.14903 16 4.8 16H14.4C17.051 16 19.2 13.851 19.2 11.2V4.8C19.2 2.14903 17.051 0 14.4 0Z" fill="white"/>
|
|
1968
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.79997 0H14.4C16.006 0 17.4278 0.788745 18.2991 2H0.900805C1.77215 0.788745 3.19395 0 4.79997 0Z" fill="#B6C2FE"/>
|
|
1969
|
+
<path d="M5.33594 5.08789L8.78398 7.9999C9.27198 8.4159 9.91992 8.4159 10.4159 7.9999L13.864 5.08789" stroke="#404040" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1970
|
+
</svg>
|
|
1971
|
+
`,vi=q`<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1972
|
+
<path d="M12.0024 5.43884H2.49877C1.11874 5.43884 0 6.55758 0 7.93761V17.4413C0 18.8213 1.11874 19.94 2.49877 19.94H12.0024C13.3824 19.94 14.5012 18.8213 14.5012 17.4413V7.93761C14.5012 6.55758 13.3824 5.43884 12.0024 5.43884Z" fill="#B6C2FE"/>
|
|
1973
|
+
<path d="M19.2489 0H9.74523C8.3652 0 7.24646 1.11874 7.24646 2.49877V12.0024C7.24646 13.3824 8.3652 14.5011 9.74523 14.5011H19.2489C20.6289 14.5011 21.7477 13.3824 21.7477 12.0024V2.49877C21.7477 1.11874 20.6289 0 19.2489 0Z" fill="#B6C2FE"/>
|
|
1974
|
+
<path d="M15.6255 2.72363H6.12193C4.7419 2.72363 3.62317 3.84237 3.62317 5.2224V14.726C3.62317 16.106 4.7419 17.2248 6.12193 17.2248H15.6255C17.0056 17.2248 18.1243 16.106 18.1243 14.726V5.2224C18.1243 3.84237 17.0056 2.72363 15.6255 2.72363Z" fill="white" stroke="#404040" stroke-miterlimit="10"/>
|
|
1975
|
+
<path d="M9.94854 12.1785V13.6327H11.4027V12.1785H9.94854ZM8.17957 8.4072L9.60608 8.69294C9.64657 8.4904 9.74373 8.30352 9.88627 8.15404C10.0288 8.00457 10.2109 7.89864 10.4113 7.84859C10.6117 7.79854 10.8221 7.80642 11.0182 7.87132C11.2143 7.93622 11.3879 8.05547 11.5189 8.21519C11.6499 8.3749 11.7328 8.56853 11.758 8.77353C11.7832 8.97853 11.7497 9.18648 11.6614 9.37318C11.573 9.55987 11.4335 9.71765 11.259 9.82814C11.0845 9.93863 10.8822 9.99729 10.6756 9.99731H9.94854V11.4515H10.6756C11.1575 11.4513 11.6294 11.3143 12.0365 11.0565C12.4436 10.7986 12.7691 10.4305 12.9752 9.99489C13.1812 9.55929 13.2594 9.07413 13.2005 8.59586C13.1417 8.11758 12.9482 7.66585 12.6427 7.29321C12.3371 6.92057 11.9321 6.64235 11.4746 6.49089C11.0172 6.33944 10.5261 6.32099 10.0586 6.43769C9.59102 6.55438 9.16623 6.80143 8.83359 7.15009C8.50095 7.49875 8.27415 7.93469 8.17957 8.4072Z" fill="#404040"/>
|
|
1976
|
+
</svg>
|
|
1977
|
+
`,gi=q`<svg width="23" height="18" viewBox="0 0 23 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1978
|
+
<path d="M7.32634 4.79272H19.2517C20.5911 4.79272 21.6723 5.87391 21.6723 7.2133V16.71H7.32634C5.98695 16.71 4.90576 15.6288 4.90576 14.2895V7.2133C4.90576 5.87391 5.98695 4.79272 7.32634 4.79272Z" fill="#404040" stroke="#B6C2FE" stroke-miterlimit="10"/>
|
|
1979
|
+
<path d="M0.403442 11.9657V3.22745C0.403442 1.67021 1.67021 0.403442 3.22745 0.403442H14.5235C16.0807 0.403442 17.3475 1.67021 17.3475 3.22745V9.14172C17.3475 10.699 16.0807 11.9657 14.5235 11.9657H0.403442Z" fill="white"/>
|
|
1980
|
+
<path d="M14.5235 0.806859C15.8628 0.806859 16.944 1.88805 16.944 3.22744V9.14171C16.944 10.4811 15.8628 11.5623 14.5235 11.5623H0.806859V3.22744C0.806859 1.88805 1.88805 0.806859 3.22744 0.806859H14.5235ZM14.5235 0H3.22744C1.44428 0 0 1.44428 0 3.22744V12.3691H14.5235C16.3066 12.3691 17.7509 10.9249 17.7509 9.14171V3.22744C17.7509 1.44428 16.3066 0 14.5235 0Z" fill="white"/>
|
|
1981
|
+
<path d="M4.84116 6.98737C5.28678 6.98737 5.64802 6.62613 5.64802 6.18052C5.64802 5.7349 5.28678 5.37366 4.84116 5.37366C4.39554 5.37366 4.0343 5.7349 4.0343 6.18052C4.0343 6.62613 4.39554 6.98737 4.84116 6.98737Z" fill="#404040"/>
|
|
1982
|
+
<path d="M8.87546 6.98737C9.32108 6.98737 9.68232 6.62613 9.68232 6.18052C9.68232 5.7349 9.32108 5.37366 8.87546 5.37366C8.42985 5.37366 8.0686 5.7349 8.0686 6.18052C8.0686 6.62613 8.42985 6.98737 8.87546 6.98737Z" fill="#404040"/>
|
|
1983
|
+
<path d="M12.9098 6.98737C13.3554 6.98737 13.7166 6.62613 13.7166 6.18052C13.7166 5.7349 13.3554 5.37366 12.9098 5.37366C12.4641 5.37366 12.1029 5.7349 12.1029 6.18052C12.1029 6.62613 12.4641 6.98737 12.9098 6.98737Z" fill="#404040"/>
|
|
1984
|
+
</svg>
|
|
1985
|
+
`,yi=q`<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1986
|
+
<path d="M1 7L4 4L1 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1987
|
+
</svg>
|
|
1988
|
+
`,bi=q`<svg width="29" height="28" viewBox="0 0 29 28" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: translate(2px, -1px);">
|
|
1989
|
+
<path d="M21.0385 9.79957H7.03915C6.66786 9.79957 6.31178 9.94706 6.04924 10.2096C5.7867 10.4721 5.63921 10.8282 5.63921 11.1995C5.63921 11.5708 5.7867 11.9269 6.04924 12.1894C6.31178 12.4519 6.66786 12.5994 7.03915 12.5994H21.0385C21.4098 12.5994 21.7659 12.4519 22.0284 12.1894C22.291 11.9269 22.4385 11.5708 22.4385 11.1995C22.4385 10.8282 22.291 10.4721 22.0284 10.2096C21.7659 9.94706 21.4098 9.79957 21.0385 9.79957ZM15.4388 15.3993H7.03915C6.66786 15.3993 6.31178 15.5468 6.04924 15.8094C5.7867 16.0719 5.63921 16.428 5.63921 16.7993C5.63921 17.1705 5.7867 17.5266 6.04924 17.7892C6.31178 18.0517 6.66786 18.1992 7.03915 18.1992H15.4388C15.8101 18.1992 16.1661 18.0517 16.4287 17.7892C16.6912 17.5266 16.8387 17.1705 16.8387 16.7993C16.8387 16.428 16.6912 16.0719 16.4287 15.8094C16.1661 15.5468 15.8101 15.3993 15.4388 15.3993ZM14.0388 0C12.2004 0 10.38 0.362105 8.68151 1.06564C6.98302 1.76917 5.43975 2.80036 4.13978 4.10032C1.51439 6.72572 0.0394592 10.2865 0.0394592 13.9994C0.0272207 17.232 1.14652 20.3671 3.20332 22.861L0.403443 25.6609C0.209191 25.8577 0.077602 26.1077 0.0252806 26.3793C-0.0270409 26.6509 0.00224956 26.9319 0.109456 27.1868C0.225732 27.4387 0.414228 27.6503 0.651018 27.7949C0.887807 27.9395 1.16221 28.0104 1.4394 27.9988H14.0388C17.7517 27.9988 21.3125 26.5238 23.9379 23.8984C26.5633 21.273 28.0382 17.7122 28.0382 13.9994C28.0382 10.2865 26.5633 6.72572 23.9379 4.10032C21.3125 1.47493 17.7517 0 14.0388 0V0ZM14.0388 25.1989H4.81325L6.11519 23.8969C6.37593 23.6346 6.52228 23.2798 6.52228 22.91C6.52228 22.5401 6.37593 22.1853 6.11519 21.923C4.28209 20.092 3.14057 17.682 2.8851 15.1036C2.62964 12.5253 3.27604 9.93817 4.71417 7.78299C6.1523 5.6278 8.2932 4.03792 10.7721 3.28422C13.251 2.53051 15.9146 2.65961 18.309 3.64952C20.7033 4.63943 22.6805 6.4289 23.9034 8.71306C25.1264 10.9972 25.5195 13.6348 25.0159 16.1763C24.5123 18.7178 23.1431 21.0061 21.1415 22.6513C19.1399 24.2965 16.6298 25.1968 14.0388 25.1989V25.1989Z" fill="#1E1E1E" />
|
|
1990
|
+
</svg>`,wi=q`<svg width="19" height="15" viewBox="0 0 19 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1991
|
+
<path d="M15.9375 0H2.8125C2.06658 0 1.35121 0.296316 0.823762 0.823762C0.296316 1.35121 0 2.06658 0 2.8125V12.1875C0 12.9334 0.296316 13.6488 0.823762 14.1762C1.35121 14.7037 2.06658 15 2.8125 15H15.9375C16.6834 15 17.3988 14.7037 17.9262 14.1762C18.4537 13.6488 18.75 12.9334 18.75 12.1875V2.8125C18.75 2.06658 18.4537 1.35121 17.9262 0.823762C17.3988 0.296316 16.6834 0 15.9375 0ZM15.5531 1.875L10.0406 7.3875C9.95347 7.47537 9.84978 7.54511 9.73554 7.59271C9.6213 7.64031 9.49876 7.66481 9.375 7.66481C9.25124 7.66481 9.1287 7.64031 9.01446 7.59271C8.90022 7.54511 8.79653 7.47537 8.70938 7.3875L3.19687 1.875H15.5531ZM16.875 12.1875C16.875 12.4361 16.7762 12.6746 16.6004 12.8504C16.4246 13.0262 16.1861 13.125 15.9375 13.125H2.8125C2.56386 13.125 2.3254 13.0262 2.14959 12.8504C1.97377 12.6746 1.875 12.4361 1.875 12.1875V3.19687L7.3875 8.70938C7.91484 9.23606 8.62969 9.5319 9.375 9.5319C10.1203 9.5319 10.8352 9.23606 11.3625 8.70938L16.875 3.19687V12.1875Z" fill="#1E1E1E" />
|
|
1992
|
+
</svg>`,Si=q`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" >
|
|
1993
|
+
<path d="M15.3 1.8H13.5V0.9C13.5 0.661305 13.4052 0.432387 13.2364 0.263604C13.0676 0.0948211 12.8387 0 12.6 0C12.3613 0 12.1324 0.0948211 11.9636 0.263604C11.7948 0.432387 11.7 0.661305 11.7 0.9V1.8H6.3V0.9C6.3 0.661305 6.20518 0.432387 6.0364 0.263604C5.86761 0.0948211 5.63869 0 5.4 0C5.1613 0 4.93239 0.0948211 4.7636 0.263604C4.59482 0.432387 4.5 0.661305 4.5 0.9V1.8H2.7C1.98392 1.8 1.29716 2.08446 0.790812 2.59081C0.284464 3.09716 0 3.78392 0 4.5V15.3C0 16.0161 0.284464 16.7028 0.790812 17.2092C1.29716 17.7155 1.98392 18 2.7 18H15.3C16.0161 18 16.7028 17.7155 17.2092 17.2092C17.7155 16.7028 18 16.0161 18 15.3V4.5C18 3.78392 17.7155 3.09716 17.2092 2.59081C16.7028 2.08446 16.0161 1.8 15.3 1.8ZM16.2 15.3C16.2 15.5387 16.1052 15.7676 15.9364 15.9364C15.7676 16.1052 15.5387 16.2 15.3 16.2H2.7C2.46131 16.2 2.23239 16.1052 2.0636 15.9364C1.89482 15.7676 1.8 15.5387 1.8 15.3V9H16.2V15.3ZM16.2 7.2H1.8V4.5C1.8 4.2613 1.89482 4.03239 2.0636 3.8636C2.23239 3.69482 2.46131 3.6 2.7 3.6H4.5V4.5C4.5 4.73869 4.59482 4.96761 4.7636 5.1364C4.93239 5.30518 5.1613 5.4 5.4 5.4C5.63869 5.4 5.86761 5.30518 6.0364 5.1364C6.20518 4.96761 6.3 4.73869 6.3 4.5V3.6H11.7V4.5C11.7 4.73869 11.7948 4.96761 11.9636 5.1364C12.1324 5.30518 12.3613 5.4 12.6 5.4C12.8387 5.4 13.0676 5.30518 13.2364 5.1364C13.4052 4.96761 13.5 4.73869 13.5 4.5V3.6H15.3C15.5387 3.6 15.7676 3.69482 15.9364 3.8636C16.1052 4.03239 16.2 4.2613 16.2 4.5V7.2Z" fill="#1E1E1E" />
|
|
1994
|
+
</svg>`,Ti=q` <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" >
|
|
1995
|
+
<path d="M15.7007 9.85696C15.5028 9.85696 15.296 9.794 15.0981 9.74904C14.6975 9.66074 14.3037 9.54352 13.92 9.3983C13.5028 9.24652 13.0442 9.2544 12.6324 9.42043C12.2207 9.58645 11.8849 9.8989 11.6897 10.2976L11.4918 10.7023C10.6159 10.215 9.81094 9.60985 9.09958 8.90366C8.3934 8.19231 7.7882 7.38739 7.30092 6.51144L7.67864 6.25963C8.07737 6.0644 8.38981 5.7286 8.55584 5.31685C8.72187 4.90511 8.72975 4.4465 8.57797 4.02929C8.43518 3.64476 8.31801 3.25119 8.22723 2.85117C8.18227 2.65331 8.14629 2.44647 8.11931 2.23962C8.0101 1.60615 7.6783 1.03249 7.18367 0.621939C6.68903 0.211391 6.06407 -0.00905972 5.42132 0.00028536H2.72333C2.33574 -0.00335382 1.95192 0.0765607 1.598 0.234589C1.24408 0.392616 0.928359 0.625047 0.672338 0.916058C0.416316 1.20707 0.226004 1.54983 0.114355 1.921C0.00270581 2.29217 -0.0276575 2.68304 0.0253316 3.067C0.50444 6.83465 2.22512 10.3353 4.91558 13.016C7.60604 15.6967 11.1129 17.4046 14.8823 17.87H15.224C15.8872 17.871 16.5275 17.6277 17.0227 17.1865C17.3072 16.932 17.5345 16.6201 17.6895 16.2713C17.8445 15.9225 17.9238 15.5447 17.922 15.163V12.465C17.911 11.8403 17.6835 11.2388 17.2784 10.7632C16.8733 10.2875 16.3157 9.96724 15.7007 9.85696ZM16.1503 15.2529C16.1502 15.3806 16.1228 15.5068 16.0701 15.6231C16.0174 15.7394 15.9405 15.8432 15.8446 15.9274C15.7441 16.0142 15.6266 16.079 15.4996 16.1177C15.3726 16.1565 15.2389 16.1682 15.1071 16.1523C11.739 15.7204 8.61056 14.1796 6.21517 11.7728C3.81979 9.36601 2.29381 6.23026 1.87795 2.86016C1.86364 2.72842 1.87618 2.59515 1.91483 2.4684C1.95347 2.34165 2.01741 2.22405 2.10279 2.12271C2.18706 2.02678 2.2908 1.94989 2.4071 1.89717C2.5234 1.84445 2.64959 1.8171 2.77729 1.81693H5.47528C5.68441 1.81228 5.88863 1.88068 6.05278 2.01035C6.21692 2.14003 6.33073 2.32287 6.37461 2.52741C6.41058 2.77322 6.45555 3.01604 6.50951 3.25586C6.6134 3.72994 6.75166 4.19583 6.9232 4.64983L5.66414 5.23439C5.55649 5.28379 5.45965 5.35396 5.37919 5.44088C5.29873 5.5278 5.23624 5.62975 5.19529 5.74089C5.15434 5.85203 5.13576 5.97016 5.14059 6.08851C5.14543 6.20685 5.17359 6.32307 5.22347 6.4305C6.51778 9.20292 8.74637 11.4315 11.5188 12.7258C11.7377 12.8158 11.9833 12.8158 12.2023 12.7258C12.3144 12.6857 12.4175 12.6237 12.5055 12.5434C12.5935 12.4631 12.6647 12.3662 12.7149 12.2582L13.2725 10.9991C13.7374 11.1654 14.2119 11.3035 14.6934 11.4128C14.9332 11.4668 15.1761 11.5117 15.4219 11.5477C15.6264 11.5916 15.8093 11.7054 15.9389 11.8695C16.0686 12.0337 16.137 12.2379 16.1324 12.447L16.1503 15.2529Z" fill="#1E1E1E" />
|
|
1996
|
+
</svg>`,xi=(q`<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: translateX(2px);" >
|
|
1997
|
+
<path d="M5.42513 8.09964C5.24713 8.09964 5.07313 8.15242 4.92514 8.25131C4.77714 8.3502 4.66179 8.49076 4.59367 8.6552C4.52556 8.81965 4.50773 9.0006 4.54246 9.17517C4.57719 9.34975 4.6629 9.51011 4.78876 9.63597C4.91462 9.76183 5.07498 9.84754 5.24955 9.88227C5.42413 9.91699 5.60508 9.89917 5.76953 9.83106C5.93397 9.76294 6.07453 9.64759 6.17342 9.49959C6.27231 9.35159 6.32509 9.1776 6.32509 8.9996C6.32509 8.76092 6.23027 8.53201 6.0615 8.36323C5.89272 8.19446 5.66381 8.09964 5.42513 8.09964ZM9.02497 8.09964C8.84697 8.09964 8.67297 8.15242 8.52498 8.25131C8.37698 8.3502 8.26163 8.49076 8.19351 8.6552C8.1254 8.81965 8.10758 9.0006 8.1423 9.17517C8.17703 9.34975 8.26274 9.51011 8.3886 9.63597C8.51446 9.76183 8.67482 9.84754 8.84939 9.88227C9.02397 9.91699 9.20492 9.89917 9.36937 9.83106C9.53382 9.76294 9.67437 9.64759 9.77326 9.49959C9.87215 9.35159 9.92493 9.1776 9.92493 8.9996C9.92493 8.76092 9.83011 8.53201 9.66134 8.36323C9.49256 8.19446 9.26365 8.09964 9.02497 8.09964ZM12.6248 8.09964C12.4468 8.09964 12.2728 8.15242 12.1248 8.25131C11.9768 8.3502 11.8615 8.49076 11.7934 8.6552C11.7252 8.81965 11.7074 9.0006 11.7421 9.17517C11.7769 9.34975 11.8626 9.51011 11.9884 9.63597C12.1143 9.76183 12.2747 9.84754 12.4492 9.88227C12.6238 9.91699 12.8048 9.89917 12.9692 9.83106C13.1337 9.76294 13.2742 9.64759 13.3731 9.49959C13.472 9.35159 13.5248 9.1776 13.5248 8.9996C13.5248 8.76092 13.43 8.53201 13.2612 8.36323C13.0924 8.19446 12.8635 8.09964 12.6248 8.09964ZM9.02497 0C7.84312 0 6.67285 0.232782 5.58097 0.685054C4.48909 1.13733 3.49698 1.80023 2.66129 2.63592C0.973536 4.32368 0.0253666 6.61276 0.0253666 8.9996C0.017499 11.0777 0.737048 13.0931 2.05928 14.6963L0.259356 16.4963C0.13448 16.6228 0.049887 16.7835 0.0162518 16.9581C-0.0173834 17.1327 0.00144614 17.3133 0.0703646 17.4772C0.145113 17.6392 0.26629 17.7752 0.418511 17.8682C0.570733 17.9611 0.747135 18.0067 0.925327 17.9992H9.02497C11.4118 17.9992 13.7009 17.051 15.3886 15.3633C17.0764 13.6755 18.0246 11.3864 18.0246 8.9996C18.0246 6.61276 17.0764 4.32368 15.3886 2.63592C13.7009 0.94817 11.4118 0 9.02497 0ZM9.02497 16.1993H3.09423L3.93119 15.3623C4.01623 15.279 4.08388 15.1796 4.13022 15.0699C4.17657 14.9602 4.20069 14.8424 4.20118 14.7233C4.1978 14.486 4.10076 14.2595 3.93119 14.0934C2.75277 12.9163 2.01894 11.367 1.85471 9.70948C1.69048 8.05199 2.10602 6.38882 3.03054 5.00335C3.95505 3.61787 5.33134 2.59581 6.92492 2.11128C8.51851 1.62676 10.2308 1.70975 11.77 2.34612C13.3093 2.98249 14.5803 4.13286 15.3665 5.60125C16.1527 7.06964 16.4054 8.7652 16.0817 10.399C15.7579 12.0329 14.8777 13.5039 13.591 14.5616C12.3042 15.6192 10.6906 16.198 9.02497 16.1993Z" fill="#1E1E1E" />
|
|
1998
|
+
</svg>`,q`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-telephone-fill" viewBox="0 0 16 16">
|
|
1999
|
+
<path fill-rule="evenodd" d="M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"/>
|
|
2000
|
+
</svg>`),Oi={},Ii=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];var Ri=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ci=class extends ne{constructor(){super(...arguments),this.phoneNumber="1-855-531-5131",this.buildingId=0,this.chatCallUsHeader="",this.hasTextUsEnabled="",this.firstUpdated=async()=>{this.buildingId&&(this.officeHoursTextInfo=await(async e=>{const t=await(async e=>{if(Oi[e])return Oi[e];const t=`https://app.meetelise.com/platformApi/connectors/talk_js/leasing_office_hours/${e}`,n=await Qt().get(t);return Oi[e]=n.data,n.data})(e);return Ii.map((e=>{const n=t[e];return n?{dayOfWeek:e,startTime:n.start,endTime:n.end}:e}))})(this.buildingId))},this.officeHoursTextInfo=[],this.getCallLink=e=>{const t=(e.match(/\d+/g)||[]).join(""),n=t.length<11?`1${t}`:t,i=`+${n[0]}-${n.slice(1,4)}-${n.slice(4,7)}-${n.slice(7)}`;return D`<a href="tel:${i}"
|
|
1901
2001
|
>${e}</a
|
|
1902
2002
|
>`},this.render=()=>D`
|
|
1903
2003
|
<details-window
|
|
1904
|
-
height
|
|
2004
|
+
height=${this.hasTextUsEnabled?"600px":"443px"}
|
|
1905
2005
|
headerText="${this.chatCallUsHeader}"
|
|
1906
2006
|
.onCloseClick=${this.onCloseClicked}
|
|
2007
|
+
useGradientDesign="true"
|
|
1907
2008
|
>
|
|
1908
2009
|
<div class="call-us-window__content-wrapper">
|
|
1909
2010
|
<div class="call-us-window__call-us-text">
|
|
1910
|
-
Contact our leasing team
|
|
2011
|
+
Contact our leasing team
|
|
2012
|
+
</div>
|
|
2013
|
+
<div class="call-us-window__phone-redirect">
|
|
2014
|
+
${xi} ${this.getCallLink(this.phoneNumber)}
|
|
1911
2015
|
</div>
|
|
1912
2016
|
<div class="call-us-window__office-hours-wrapper">
|
|
1913
2017
|
<div class="call-us-window__office-hours-header">Office hours</div>
|
|
@@ -1926,30 +2030,47 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1926
2030
|
</div>
|
|
1927
2031
|
`))}
|
|
1928
2032
|
</div>
|
|
2033
|
+
${this.hasTextUsEnabled?D` <text-us-window
|
|
2034
|
+
.buildingId=${this.buildingId}
|
|
2035
|
+
inPopup=${!this.hasTextUsEnabled}
|
|
2036
|
+
></text-us-window>`:""}
|
|
1929
2037
|
</details-window>
|
|
1930
|
-
`}};
|
|
2038
|
+
`}};Ci.styles=[a`
|
|
1931
2039
|
.call-us-window__content-wrapper {
|
|
1932
2040
|
font-family: Poppins;
|
|
1933
2041
|
color: 11ee1e;
|
|
1934
2042
|
}
|
|
1935
2043
|
|
|
1936
2044
|
.call-us-window__call-us-text {
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
font-
|
|
1940
|
-
font-size:
|
|
2045
|
+
font-family: "Helvetica";
|
|
2046
|
+
font-style: normal;
|
|
2047
|
+
font-weight: 700;
|
|
2048
|
+
font-size: 16px;
|
|
1941
2049
|
line-height: 24px;
|
|
2050
|
+
color: #202020;
|
|
1942
2051
|
}
|
|
1943
2052
|
|
|
1944
|
-
.call-us-
|
|
2053
|
+
.call-us-window__phone-redirect {
|
|
2054
|
+
display: flex;
|
|
2055
|
+
justify-content: flex-start;
|
|
2056
|
+
align-items: center;
|
|
2057
|
+
margin-bottom: 28px;
|
|
2058
|
+
gap: 5px;
|
|
2059
|
+
}
|
|
2060
|
+
.call-us-window__phone-redirect > a {
|
|
1945
2061
|
color: unset;
|
|
1946
|
-
text-decoration:
|
|
2062
|
+
text-decoration: underline;
|
|
1947
2063
|
}
|
|
1948
2064
|
|
|
1949
|
-
.call-us-window__office-hours-header
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
2065
|
+
.call-us-window__office-hours-header,
|
|
2066
|
+
.call-us-window__day-of-week,
|
|
2067
|
+
.call-us-window__day-of-week-wrapper {
|
|
2068
|
+
font-family: "Helvetica";
|
|
2069
|
+
font-style: normal;
|
|
2070
|
+
font-weight: 400;
|
|
2071
|
+
font-size: 14px;
|
|
2072
|
+
line-height: 22px;
|
|
2073
|
+
color: #202020;
|
|
1953
2074
|
}
|
|
1954
2075
|
|
|
1955
2076
|
.call-us-window__day-of-week {
|
|
@@ -1960,55 +2081,13 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
1960
2081
|
.call-us-window__day-of-week-wrapper {
|
|
1961
2082
|
display: flex;
|
|
1962
2083
|
align-items: center;
|
|
1963
|
-
margin-bottom:
|
|
1964
|
-
font-size: 12px;
|
|
2084
|
+
margin-bottom: 5px;
|
|
1965
2085
|
}
|
|
1966
2086
|
|
|
1967
2087
|
.call-us-window__open-times {
|
|
1968
2088
|
text-transform: lowercase;
|
|
1969
2089
|
}
|
|
1970
|
-
`],
|
|
1971
|
-
<path d="M17.5286 6.72109H0.00730896C0.065762 4.35374 2.00202 2.45401 4.38399 2.45401H4.93198V3.91534C4.93198 4.22222 5.18041 4.46333 5.47998 4.46333C5.77955 4.46333 6.02798 4.22222 6.02798 3.91534V2.45401H11.508V3.91534C11.508 4.22222 11.7564 4.46333 12.056 4.46333C12.3555 4.46333 12.604 4.22222 12.604 3.91534V2.45401H13.1519C15.5339 2.45401 17.4702 4.35374 17.5286 6.72109V6.72109Z" fill="#B6C2FE"/>
|
|
1972
|
-
<path d="M17.5359 7.45181V15.606C17.5359 18.0318 15.5704 19.99 13.1519 19.99H4.38398C1.96548 19.99 0 18.0318 0 15.606V7.45181H17.5359Z" fill="white"/>
|
|
1973
|
-
<path d="M5.47998 1V2.46133" stroke="#B6C2FE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1974
|
-
<path d="M12.0559 1V2.46133" stroke="#B6C2FE" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1975
|
-
<path d="M0 6.72115H0.00730262C-4.01349e-06 6.75768 0 6.80152 0 6.83805V6.72115Z" fill="white"/>
|
|
1976
|
-
<path d="M17.5359 6.72115V6.83805C17.5359 6.80152 17.5359 6.75768 17.5286 6.72115H17.5359Z" fill="white"/>
|
|
1977
|
-
<path d="M5.30463 13.2459L7.33587 15.2772C7.62083 15.5621 8.08115 15.5621 8.36611 15.2772L12.224 11.4193" stroke="#404040" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1978
|
-
</svg>
|
|
1979
|
-
`,wi=q`<svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1980
|
-
<path d="M14.4 0H4.8C2.14903 0 0 2.14903 0 4.8V11.2C0 13.851 2.14903 16 4.8 16H14.4C17.051 16 19.2 13.851 19.2 11.2V4.8C19.2 2.14903 17.051 0 14.4 0Z" fill="white"/>
|
|
1981
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.79997 0H14.4C16.006 0 17.4278 0.788745 18.2991 2H0.900805C1.77215 0.788745 3.19395 0 4.79997 0Z" fill="#B6C2FE"/>
|
|
1982
|
-
<path d="M5.33594 5.08789L8.78398 7.9999C9.27198 8.4159 9.91992 8.4159 10.4159 7.9999L13.864 5.08789" stroke="#404040" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
1983
|
-
</svg>
|
|
1984
|
-
`,Si=q`<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1985
|
-
<path d="M12.0024 5.43884H2.49877C1.11874 5.43884 0 6.55758 0 7.93761V17.4413C0 18.8213 1.11874 19.94 2.49877 19.94H12.0024C13.3824 19.94 14.5012 18.8213 14.5012 17.4413V7.93761C14.5012 6.55758 13.3824 5.43884 12.0024 5.43884Z" fill="#B6C2FE"/>
|
|
1986
|
-
<path d="M19.2489 0H9.74523C8.3652 0 7.24646 1.11874 7.24646 2.49877V12.0024C7.24646 13.3824 8.3652 14.5011 9.74523 14.5011H19.2489C20.6289 14.5011 21.7477 13.3824 21.7477 12.0024V2.49877C21.7477 1.11874 20.6289 0 19.2489 0Z" fill="#B6C2FE"/>
|
|
1987
|
-
<path d="M15.6255 2.72363H6.12193C4.7419 2.72363 3.62317 3.84237 3.62317 5.2224V14.726C3.62317 16.106 4.7419 17.2248 6.12193 17.2248H15.6255C17.0056 17.2248 18.1243 16.106 18.1243 14.726V5.2224C18.1243 3.84237 17.0056 2.72363 15.6255 2.72363Z" fill="white" stroke="#404040" stroke-miterlimit="10"/>
|
|
1988
|
-
<path d="M9.94854 12.1785V13.6327H11.4027V12.1785H9.94854ZM8.17957 8.4072L9.60608 8.69294C9.64657 8.4904 9.74373 8.30352 9.88627 8.15404C10.0288 8.00457 10.2109 7.89864 10.4113 7.84859C10.6117 7.79854 10.8221 7.80642 11.0182 7.87132C11.2143 7.93622 11.3879 8.05547 11.5189 8.21519C11.6499 8.3749 11.7328 8.56853 11.758 8.77353C11.7832 8.97853 11.7497 9.18648 11.6614 9.37318C11.573 9.55987 11.4335 9.71765 11.259 9.82814C11.0845 9.93863 10.8822 9.99729 10.6756 9.99731H9.94854V11.4515H10.6756C11.1575 11.4513 11.6294 11.3143 12.0365 11.0565C12.4436 10.7986 12.7691 10.4305 12.9752 9.99489C13.1812 9.55929 13.2594 9.07413 13.2005 8.59586C13.1417 8.11758 12.9482 7.66585 12.6427 7.29321C12.3371 6.92057 11.9321 6.64235 11.4746 6.49089C11.0172 6.33944 10.5261 6.32099 10.0586 6.43769C9.59102 6.55438 9.16623 6.80143 8.83359 7.15009C8.50095 7.49875 8.27415 7.93469 8.17957 8.4072Z" fill="#404040"/>
|
|
1989
|
-
</svg>
|
|
1990
|
-
`,Ti=q`<svg width="23" height="18" viewBox="0 0 23 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1991
|
-
<path d="M7.32634 4.79272H19.2517C20.5911 4.79272 21.6723 5.87391 21.6723 7.2133V16.71H7.32634C5.98695 16.71 4.90576 15.6288 4.90576 14.2895V7.2133C4.90576 5.87391 5.98695 4.79272 7.32634 4.79272Z" fill="#404040" stroke="#B6C2FE" stroke-miterlimit="10"/>
|
|
1992
|
-
<path d="M0.403442 11.9657V3.22745C0.403442 1.67021 1.67021 0.403442 3.22745 0.403442H14.5235C16.0807 0.403442 17.3475 1.67021 17.3475 3.22745V9.14172C17.3475 10.699 16.0807 11.9657 14.5235 11.9657H0.403442Z" fill="white"/>
|
|
1993
|
-
<path d="M14.5235 0.806859C15.8628 0.806859 16.944 1.88805 16.944 3.22744V9.14171C16.944 10.4811 15.8628 11.5623 14.5235 11.5623H0.806859V3.22744C0.806859 1.88805 1.88805 0.806859 3.22744 0.806859H14.5235ZM14.5235 0H3.22744C1.44428 0 0 1.44428 0 3.22744V12.3691H14.5235C16.3066 12.3691 17.7509 10.9249 17.7509 9.14171V3.22744C17.7509 1.44428 16.3066 0 14.5235 0Z" fill="white"/>
|
|
1994
|
-
<path d="M4.84116 6.98737C5.28678 6.98737 5.64802 6.62613 5.64802 6.18052C5.64802 5.7349 5.28678 5.37366 4.84116 5.37366C4.39554 5.37366 4.0343 5.7349 4.0343 6.18052C4.0343 6.62613 4.39554 6.98737 4.84116 6.98737Z" fill="#404040"/>
|
|
1995
|
-
<path d="M8.87546 6.98737C9.32108 6.98737 9.68232 6.62613 9.68232 6.18052C9.68232 5.7349 9.32108 5.37366 8.87546 5.37366C8.42985 5.37366 8.0686 5.7349 8.0686 6.18052C8.0686 6.62613 8.42985 6.98737 8.87546 6.98737Z" fill="#404040"/>
|
|
1996
|
-
<path d="M12.9098 6.98737C13.3554 6.98737 13.7166 6.62613 13.7166 6.18052C13.7166 5.7349 13.3554 5.37366 12.9098 5.37366C12.4641 5.37366 12.1029 5.7349 12.1029 6.18052C12.1029 6.62613 12.4641 6.98737 12.9098 6.98737Z" fill="#404040"/>
|
|
1997
|
-
</svg>
|
|
1998
|
-
`,xi=q`<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1999
|
-
<path d="M1 7L4 4L1 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2000
|
-
</svg>
|
|
2001
|
-
`,Oi=q`<svg width="29" height="28" viewBox="0 0 29 28" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: translate(2px, -1px);">
|
|
2002
|
-
<path d="M21.0385 9.79957H7.03915C6.66786 9.79957 6.31178 9.94706 6.04924 10.2096C5.7867 10.4721 5.63921 10.8282 5.63921 11.1995C5.63921 11.5708 5.7867 11.9269 6.04924 12.1894C6.31178 12.4519 6.66786 12.5994 7.03915 12.5994H21.0385C21.4098 12.5994 21.7659 12.4519 22.0284 12.1894C22.291 11.9269 22.4385 11.5708 22.4385 11.1995C22.4385 10.8282 22.291 10.4721 22.0284 10.2096C21.7659 9.94706 21.4098 9.79957 21.0385 9.79957ZM15.4388 15.3993H7.03915C6.66786 15.3993 6.31178 15.5468 6.04924 15.8094C5.7867 16.0719 5.63921 16.428 5.63921 16.7993C5.63921 17.1705 5.7867 17.5266 6.04924 17.7892C6.31178 18.0517 6.66786 18.1992 7.03915 18.1992H15.4388C15.8101 18.1992 16.1661 18.0517 16.4287 17.7892C16.6912 17.5266 16.8387 17.1705 16.8387 16.7993C16.8387 16.428 16.6912 16.0719 16.4287 15.8094C16.1661 15.5468 15.8101 15.3993 15.4388 15.3993ZM14.0388 0C12.2004 0 10.38 0.362105 8.68151 1.06564C6.98302 1.76917 5.43975 2.80036 4.13978 4.10032C1.51439 6.72572 0.0394592 10.2865 0.0394592 13.9994C0.0272207 17.232 1.14652 20.3671 3.20332 22.861L0.403443 25.6609C0.209191 25.8577 0.077602 26.1077 0.0252806 26.3793C-0.0270409 26.6509 0.00224956 26.9319 0.109456 27.1868C0.225732 27.4387 0.414228 27.6503 0.651018 27.7949C0.887807 27.9395 1.16221 28.0104 1.4394 27.9988H14.0388C17.7517 27.9988 21.3125 26.5238 23.9379 23.8984C26.5633 21.273 28.0382 17.7122 28.0382 13.9994C28.0382 10.2865 26.5633 6.72572 23.9379 4.10032C21.3125 1.47493 17.7517 0 14.0388 0V0ZM14.0388 25.1989H4.81325L6.11519 23.8969C6.37593 23.6346 6.52228 23.2798 6.52228 22.91C6.52228 22.5401 6.37593 22.1853 6.11519 21.923C4.28209 20.092 3.14057 17.682 2.8851 15.1036C2.62964 12.5253 3.27604 9.93817 4.71417 7.78299C6.1523 5.6278 8.2932 4.03792 10.7721 3.28422C13.251 2.53051 15.9146 2.65961 18.309 3.64952C20.7033 4.63943 22.6805 6.4289 23.9034 8.71306C25.1264 10.9972 25.5195 13.6348 25.0159 16.1763C24.5123 18.7178 23.1431 21.0061 21.1415 22.6513C19.1399 24.2965 16.6298 25.1968 14.0388 25.1989V25.1989Z" fill="#1E1E1E" />
|
|
2003
|
-
</svg>`,Ii=q`<svg width="19" height="15" viewBox="0 0 19 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2004
|
-
<path d="M15.9375 0H2.8125C2.06658 0 1.35121 0.296316 0.823762 0.823762C0.296316 1.35121 0 2.06658 0 2.8125V12.1875C0 12.9334 0.296316 13.6488 0.823762 14.1762C1.35121 14.7037 2.06658 15 2.8125 15H15.9375C16.6834 15 17.3988 14.7037 17.9262 14.1762C18.4537 13.6488 18.75 12.9334 18.75 12.1875V2.8125C18.75 2.06658 18.4537 1.35121 17.9262 0.823762C17.3988 0.296316 16.6834 0 15.9375 0ZM15.5531 1.875L10.0406 7.3875C9.95347 7.47537 9.84978 7.54511 9.73554 7.59271C9.6213 7.64031 9.49876 7.66481 9.375 7.66481C9.25124 7.66481 9.1287 7.64031 9.01446 7.59271C8.90022 7.54511 8.79653 7.47537 8.70938 7.3875L3.19687 1.875H15.5531ZM16.875 12.1875C16.875 12.4361 16.7762 12.6746 16.6004 12.8504C16.4246 13.0262 16.1861 13.125 15.9375 13.125H2.8125C2.56386 13.125 2.3254 13.0262 2.14959 12.8504C1.97377 12.6746 1.875 12.4361 1.875 12.1875V3.19687L7.3875 8.70938C7.91484 9.23606 8.62969 9.5319 9.375 9.5319C10.1203 9.5319 10.8352 9.23606 11.3625 8.70938L16.875 3.19687V12.1875Z" fill="#1E1E1E" />
|
|
2005
|
-
</svg>`,Ri=q`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" >
|
|
2006
|
-
<path d="M15.3 1.8H13.5V0.9C13.5 0.661305 13.4052 0.432387 13.2364 0.263604C13.0676 0.0948211 12.8387 0 12.6 0C12.3613 0 12.1324 0.0948211 11.9636 0.263604C11.7948 0.432387 11.7 0.661305 11.7 0.9V1.8H6.3V0.9C6.3 0.661305 6.20518 0.432387 6.0364 0.263604C5.86761 0.0948211 5.63869 0 5.4 0C5.1613 0 4.93239 0.0948211 4.7636 0.263604C4.59482 0.432387 4.5 0.661305 4.5 0.9V1.8H2.7C1.98392 1.8 1.29716 2.08446 0.790812 2.59081C0.284464 3.09716 0 3.78392 0 4.5V15.3C0 16.0161 0.284464 16.7028 0.790812 17.2092C1.29716 17.7155 1.98392 18 2.7 18H15.3C16.0161 18 16.7028 17.7155 17.2092 17.2092C17.7155 16.7028 18 16.0161 18 15.3V4.5C18 3.78392 17.7155 3.09716 17.2092 2.59081C16.7028 2.08446 16.0161 1.8 15.3 1.8ZM16.2 15.3C16.2 15.5387 16.1052 15.7676 15.9364 15.9364C15.7676 16.1052 15.5387 16.2 15.3 16.2H2.7C2.46131 16.2 2.23239 16.1052 2.0636 15.9364C1.89482 15.7676 1.8 15.5387 1.8 15.3V9H16.2V15.3ZM16.2 7.2H1.8V4.5C1.8 4.2613 1.89482 4.03239 2.0636 3.8636C2.23239 3.69482 2.46131 3.6 2.7 3.6H4.5V4.5C4.5 4.73869 4.59482 4.96761 4.7636 5.1364C4.93239 5.30518 5.1613 5.4 5.4 5.4C5.63869 5.4 5.86761 5.30518 6.0364 5.1364C6.20518 4.96761 6.3 4.73869 6.3 4.5V3.6H11.7V4.5C11.7 4.73869 11.7948 4.96761 11.9636 5.1364C12.1324 5.30518 12.3613 5.4 12.6 5.4C12.8387 5.4 13.0676 5.30518 13.2364 5.1364C13.4052 4.96761 13.5 4.73869 13.5 4.5V3.6H15.3C15.5387 3.6 15.7676 3.69482 15.9364 3.8636C16.1052 4.03239 16.2 4.2613 16.2 4.5V7.2Z" fill="#1E1E1E" />
|
|
2007
|
-
</svg>`,Ci=q` <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" >
|
|
2008
|
-
<path d="M15.7007 9.85696C15.5028 9.85696 15.296 9.794 15.0981 9.74904C14.6975 9.66074 14.3037 9.54352 13.92 9.3983C13.5028 9.24652 13.0442 9.2544 12.6324 9.42043C12.2207 9.58645 11.8849 9.8989 11.6897 10.2976L11.4918 10.7023C10.6159 10.215 9.81094 9.60985 9.09958 8.90366C8.3934 8.19231 7.7882 7.38739 7.30092 6.51144L7.67864 6.25963C8.07737 6.0644 8.38981 5.7286 8.55584 5.31685C8.72187 4.90511 8.72975 4.4465 8.57797 4.02929C8.43518 3.64476 8.31801 3.25119 8.22723 2.85117C8.18227 2.65331 8.14629 2.44647 8.11931 2.23962C8.0101 1.60615 7.6783 1.03249 7.18367 0.621939C6.68903 0.211391 6.06407 -0.00905972 5.42132 0.00028536H2.72333C2.33574 -0.00335382 1.95192 0.0765607 1.598 0.234589C1.24408 0.392616 0.928359 0.625047 0.672338 0.916058C0.416316 1.20707 0.226004 1.54983 0.114355 1.921C0.00270581 2.29217 -0.0276575 2.68304 0.0253316 3.067C0.50444 6.83465 2.22512 10.3353 4.91558 13.016C7.60604 15.6967 11.1129 17.4046 14.8823 17.87H15.224C15.8872 17.871 16.5275 17.6277 17.0227 17.1865C17.3072 16.932 17.5345 16.6201 17.6895 16.2713C17.8445 15.9225 17.9238 15.5447 17.922 15.163V12.465C17.911 11.8403 17.6835 11.2388 17.2784 10.7632C16.8733 10.2875 16.3157 9.96724 15.7007 9.85696ZM16.1503 15.2529C16.1502 15.3806 16.1228 15.5068 16.0701 15.6231C16.0174 15.7394 15.9405 15.8432 15.8446 15.9274C15.7441 16.0142 15.6266 16.079 15.4996 16.1177C15.3726 16.1565 15.2389 16.1682 15.1071 16.1523C11.739 15.7204 8.61056 14.1796 6.21517 11.7728C3.81979 9.36601 2.29381 6.23026 1.87795 2.86016C1.86364 2.72842 1.87618 2.59515 1.91483 2.4684C1.95347 2.34165 2.01741 2.22405 2.10279 2.12271C2.18706 2.02678 2.2908 1.94989 2.4071 1.89717C2.5234 1.84445 2.64959 1.8171 2.77729 1.81693H5.47528C5.68441 1.81228 5.88863 1.88068 6.05278 2.01035C6.21692 2.14003 6.33073 2.32287 6.37461 2.52741C6.41058 2.77322 6.45555 3.01604 6.50951 3.25586C6.6134 3.72994 6.75166 4.19583 6.9232 4.64983L5.66414 5.23439C5.55649 5.28379 5.45965 5.35396 5.37919 5.44088C5.29873 5.5278 5.23624 5.62975 5.19529 5.74089C5.15434 5.85203 5.13576 5.97016 5.14059 6.08851C5.14543 6.20685 5.17359 6.32307 5.22347 6.4305C6.51778 9.20292 8.74637 11.4315 11.5188 12.7258C11.7377 12.8158 11.9833 12.8158 12.2023 12.7258C12.3144 12.6857 12.4175 12.6237 12.5055 12.5434C12.5935 12.4631 12.6647 12.3662 12.7149 12.2582L13.2725 10.9991C13.7374 11.1654 14.2119 11.3035 14.6934 11.4128C14.9332 11.4668 15.1761 11.5117 15.4219 11.5477C15.6264 11.5916 15.8093 11.7054 15.9389 11.8695C16.0686 12.0337 16.137 12.2379 16.1324 12.447L16.1503 15.2529Z" fill="#1E1E1E" />
|
|
2009
|
-
</svg>`,Ni=q`<svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: translateX(2px);" >
|
|
2010
|
-
<path d="M5.42513 8.09964C5.24713 8.09964 5.07313 8.15242 4.92514 8.25131C4.77714 8.3502 4.66179 8.49076 4.59367 8.6552C4.52556 8.81965 4.50773 9.0006 4.54246 9.17517C4.57719 9.34975 4.6629 9.51011 4.78876 9.63597C4.91462 9.76183 5.07498 9.84754 5.24955 9.88227C5.42413 9.91699 5.60508 9.89917 5.76953 9.83106C5.93397 9.76294 6.07453 9.64759 6.17342 9.49959C6.27231 9.35159 6.32509 9.1776 6.32509 8.9996C6.32509 8.76092 6.23027 8.53201 6.0615 8.36323C5.89272 8.19446 5.66381 8.09964 5.42513 8.09964ZM9.02497 8.09964C8.84697 8.09964 8.67297 8.15242 8.52498 8.25131C8.37698 8.3502 8.26163 8.49076 8.19351 8.6552C8.1254 8.81965 8.10758 9.0006 8.1423 9.17517C8.17703 9.34975 8.26274 9.51011 8.3886 9.63597C8.51446 9.76183 8.67482 9.84754 8.84939 9.88227C9.02397 9.91699 9.20492 9.89917 9.36937 9.83106C9.53382 9.76294 9.67437 9.64759 9.77326 9.49959C9.87215 9.35159 9.92493 9.1776 9.92493 8.9996C9.92493 8.76092 9.83011 8.53201 9.66134 8.36323C9.49256 8.19446 9.26365 8.09964 9.02497 8.09964ZM12.6248 8.09964C12.4468 8.09964 12.2728 8.15242 12.1248 8.25131C11.9768 8.3502 11.8615 8.49076 11.7934 8.6552C11.7252 8.81965 11.7074 9.0006 11.7421 9.17517C11.7769 9.34975 11.8626 9.51011 11.9884 9.63597C12.1143 9.76183 12.2747 9.84754 12.4492 9.88227C12.6238 9.91699 12.8048 9.89917 12.9692 9.83106C13.1337 9.76294 13.2742 9.64759 13.3731 9.49959C13.472 9.35159 13.5248 9.1776 13.5248 8.9996C13.5248 8.76092 13.43 8.53201 13.2612 8.36323C13.0924 8.19446 12.8635 8.09964 12.6248 8.09964ZM9.02497 0C7.84312 0 6.67285 0.232782 5.58097 0.685054C4.48909 1.13733 3.49698 1.80023 2.66129 2.63592C0.973536 4.32368 0.0253666 6.61276 0.0253666 8.9996C0.017499 11.0777 0.737048 13.0931 2.05928 14.6963L0.259356 16.4963C0.13448 16.6228 0.049887 16.7835 0.0162518 16.9581C-0.0173834 17.1327 0.00144614 17.3133 0.0703646 17.4772C0.145113 17.6392 0.26629 17.7752 0.418511 17.8682C0.570733 17.9611 0.747135 18.0067 0.925327 17.9992H9.02497C11.4118 17.9992 13.7009 17.051 15.3886 15.3633C17.0764 13.6755 18.0246 11.3864 18.0246 8.9996C18.0246 6.61276 17.0764 4.32368 15.3886 2.63592C13.7009 0.94817 11.4118 0 9.02497 0ZM9.02497 16.1993H3.09423L3.93119 15.3623C4.01623 15.279 4.08388 15.1796 4.13022 15.0699C4.17657 14.9602 4.20069 14.8424 4.20118 14.7233C4.1978 14.486 4.10076 14.2595 3.93119 14.0934C2.75277 12.9163 2.01894 11.367 1.85471 9.70948C1.69048 8.05199 2.10602 6.38882 3.03054 5.00335C3.95505 3.61787 5.33134 2.59581 6.92492 2.11128C8.51851 1.62676 10.2308 1.70975 11.77 2.34612C13.3093 2.98249 14.5803 4.13286 15.3665 5.60125C16.1527 7.06964 16.4054 8.7652 16.0817 10.399C15.7579 12.0329 14.8777 13.5039 13.591 14.5616C12.3042 15.6192 10.6906 16.198 9.02497 16.1993Z" fill="#1E1E1E" />
|
|
2011
|
-
</svg>`;var Ai=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ei=class extends ne{constructor(){super(...arguments),this.isMobile=!1,this.isFirstMount=!1,this.backgroundColor="rgba(255, 255, 255, 0.75)",this.textColor="#202020",this.isMini=!0,this.autoOpenChatWidget=!1,this.phoneNumber="",this.chatCallUsHeader="Call us",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.buildingABTestType="",this.escortedToursLink="",this.virtualToursLink="",this.hasCallUsEnabled=!1,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasSSTEnabled=!1,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.onChatTapped=()=>{},this.launcherStyles={},this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber&&this.hasCallUsEnabled,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Se(),this.textUsWindowRef=Se(),this.tourSchedulerRef=Se(),this.updated=async()=>{if(this.attachOnClickToEmailUsWindow(),this.attachOnClickToTextUsWindow(),this.attachOnClickToSSTWindow(),this.buildingId){const e=await(async e=>{if(yi[e])return yi[e];const t=`https://app.meetelise.com/sms_management_numbers/webchat/building/${e}/numbers`,n=await Qt().get(t);return yi[e]=n.data,n.data})(this.buildingId);this.hasTextUsEnabled=e.length>0&&this.hasTextUsEnabled&&4895!==this.buildingId,await async function(e){return!!e}(this.buildingId)&&this.hasSSTEnabled&&(this.hasSSTEnabled=!0)}},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToTextUsWindow=()=>{const e=this.textUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseTextUsWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return D`
|
|
2090
|
+
`],Ri([ae({attribute:!1})],Ci.prototype,"onCloseClicked",void 0),Ri([ae()],Ci.prototype,"phoneNumber",void 0),Ri([ae({attribute:!1})],Ci.prototype,"buildingId",void 0),Ri([ae({attribute:!0})],Ci.prototype,"chatCallUsHeader",void 0),Ri([ae({attribute:!0})],Ci.prototype,"hasTextUsEnabled",void 0),Ri([ae({attribute:!1})],Ci.prototype,"officeHoursTextInfo",void 0),Ci=Ri([re("call-us-window")],Ci);const Ni={};var Ai=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ei=class extends ne{constructor(){super(...arguments),this.isMobile=!1,this.isFirstMount=!1,this.backgroundColor="rgba(255, 255, 255, 0.75)",this.textColor="#202020",this.isMini=!0,this.autoOpenChatWidget=!1,this.phoneNumber="",this.chatCallUsHeader="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.buildingABTestType="",this.escortedToursLink="",this.virtualToursLink="",this.hasCallUsEnabled=!1,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasSSTEnabled=!1,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.unitOptions=[],this.tourTypeOptions=[],this.onChatTapped=()=>{},this.launcherStyles={},this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber&&this.hasCallUsEnabled,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Se(),this.textUsWindowRef=Se(),this.tourSchedulerRef=Se(),this.updated=async()=>{if(this.attachOnClickToEmailUsWindow(),this.attachOnClickToTextUsWindow(),this.attachOnClickToSSTWindow(),this.buildingId){const e=await(async e=>{if(Ni[e])return Ni[e];const t=`https://app.meetelise.com/sms_management_numbers/webchat/building/${e}/numbers`,n=await Qt().get(t);return Ni[e]=n.data,n.data})(this.buildingId);this.hasTextUsEnabled=e.length>0&&this.hasTextUsEnabled&&4895!==this.buildingId,await async function(e){return!!e}(this.buildingId)&&this.hasSSTEnabled&&(this.hasSSTEnabled=!0)}},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToTextUsWindow=()=>{const e=this.textUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseTextUsWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return D`
|
|
2012
2091
|
<div
|
|
2013
2092
|
@click=${this.onClickEmailOption}
|
|
2014
2093
|
class="launcher__call-to-action-option"
|
|
@@ -2046,45 +2125,42 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2046
2125
|
</div>
|
|
2047
2126
|
</div>
|
|
2048
2127
|
`,this.renderPillVertical=(e,t)=>D`
|
|
2049
|
-
<div class="
|
|
2050
|
-
<div @click=${t} class="inner-pill-wrapper">${e}</div>
|
|
2051
|
-
</div>
|
|
2128
|
+
<div @click=${t} class="inner-pill-wrapper">${e}</div>
|
|
2052
2129
|
`,this.renderActionPills=()=>"close"===this.buildingABTestType?D` <div class="vertical-pill-list">
|
|
2053
2130
|
${this.hasEmailEnabled&&!this.isCallToActionWindowOpen()?this.renderPillVertical(D`
|
|
2054
|
-
<div class="vertical-pill-icon">${
|
|
2131
|
+
<div class="vertical-pill-icon">${mi}</div>
|
|
2055
2132
|
<div class="vertical-pill-title">
|
|
2056
2133
|
<span class="vertical-pill-bold">Email</span> an agent
|
|
2057
2134
|
</div>
|
|
2058
2135
|
`,this.onClickEmailOption):""}
|
|
2059
2136
|
${this.hasChatEnabled&&!this.isCallToActionWindowOpen()?this.renderPillVertical(D`
|
|
2060
|
-
<div class="vertical-pill-icon">${
|
|
2137
|
+
<div class="vertical-pill-icon">${vi}</div>
|
|
2061
2138
|
<div class="vertical-pill-title">
|
|
2062
2139
|
<span class="vertical-pill-bold">Ask</span> a question
|
|
2063
2140
|
</div>
|
|
2064
2141
|
`,this.onChatTapped):""}
|
|
2065
2142
|
${this.hasSSTEnabled&&!this.isCallToActionWindowOpen()?this.renderPillVertical(D`
|
|
2066
|
-
<div class="vertical-pill-icon">${
|
|
2143
|
+
<div class="vertical-pill-icon">${hi}</div>
|
|
2067
2144
|
<div class="vertical-pill-title">
|
|
2068
2145
|
<span class="vertical-pill-bold">Book</span> a tour
|
|
2069
2146
|
</div>
|
|
2070
2147
|
`,this.onClickSSTOption):""}
|
|
2071
2148
|
${this.phoneNumber&&this.hasCallUsEnabled&&!this.isCallToActionWindowOpen()?this.renderPillVertical(D`
|
|
2072
|
-
<div class="vertical-pill-icon">${
|
|
2149
|
+
<div class="vertical-pill-icon">${gi}</div>
|
|
2073
2150
|
<div class="vertical-pill-title">
|
|
2074
|
-
<span class="vertical-pill-bold">Call</span>
|
|
2075
|
-
<span class="vertical-pill-bold">
|
|
2151
|
+
<span class="vertical-pill-bold">Call</span>
|
|
2152
|
+
${this.hasTextUsEnabled?D`or <span class="vertical-pill-bold">text</span> us`:"us"}
|
|
2076
2153
|
</div>
|
|
2077
2154
|
`,this.onClickPhoneOption):""}
|
|
2078
2155
|
</div>`:D`
|
|
2079
|
-
${this.hasChatEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(
|
|
2080
|
-
${this.hasEmailEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(
|
|
2081
|
-
${this.hasSSTEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(
|
|
2082
|
-
${this.phoneNumber&&this.hasCallUsEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(
|
|
2083
|
-
${this.hasTextUsEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(Ni,this.onClickTextUsOption,!0):""}
|
|
2156
|
+
${this.hasChatEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(bi,this.onChatTapped):""}
|
|
2157
|
+
${this.hasEmailEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(wi,this.onClickEmailOption,!0):""}
|
|
2158
|
+
${this.hasSSTEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(Si,this.onClickSSTOption,!0):""}
|
|
2159
|
+
${this.phoneNumber&&this.hasCallUsEnabled&&!this.isCallToActionWindowOpen()?this.renderMiniOption(Ti,this.onClickPhoneOption,!0):""}
|
|
2084
2160
|
`,this.renderMiniLauncher=()=>D`
|
|
2085
2161
|
<div
|
|
2086
2162
|
class="launcher__mini-launcher-wrapper"
|
|
2087
|
-
style=${
|
|
2163
|
+
style=${ri(this.launcherStyles)}
|
|
2088
2164
|
>
|
|
2089
2165
|
${this.isEmailWindowOpen?D`<div class="launcher__window-wrapper">
|
|
2090
2166
|
<email-us-window
|
|
@@ -2124,12 +2200,13 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2124
2200
|
phoneNumber="${this.phoneNumber}"
|
|
2125
2201
|
.buildingId=${this.buildingId}
|
|
2126
2202
|
chatCallUsHeader="${this.chatCallUsHeader}"
|
|
2203
|
+
hasTextUsEnabled=${!!this.hasTextUsEnabled||""}
|
|
2127
2204
|
></call-us-window>
|
|
2128
2205
|
</div>
|
|
2129
2206
|
`:""}
|
|
2130
2207
|
${this.renderActionPills()}
|
|
2131
2208
|
</div>
|
|
2132
|
-
`}render(){return window.customElements.get("email-us-window")||window.customElements.define("email-us-window",li),window.customElements.get("text-us-window")||window.customElements.define("text-us-window",pi),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",
|
|
2209
|
+
`}render(){return window.customElements.get("email-us-window")||window.customElements.define("email-us-window",li),window.customElements.get("text-us-window")||window.customElements.define("text-us-window",pi),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",Ci),this.isMini||"close"===this.buildingABTestType?this.renderMiniLauncher():D`
|
|
2133
2210
|
<div>
|
|
2134
2211
|
${this.isEmailWindowOpen?D`<div class="launcher__window-wrapper">
|
|
2135
2212
|
<email-us-window
|
|
@@ -2158,6 +2235,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2158
2235
|
.onCloseClicked=${this.onClosePhoneWindow}
|
|
2159
2236
|
phoneNumber="${this.phoneNumber}"
|
|
2160
2237
|
.buildingId=${this.buildingId}
|
|
2238
|
+
hasTextUsEnabled=${!!this.hasTextUsEnabled||""}
|
|
2161
2239
|
></call-us-window>
|
|
2162
2240
|
</div>
|
|
2163
2241
|
`:""}
|
|
@@ -2168,7 +2246,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2168
2246
|
style="background-color: ${this.backgroundColor}; color: ${this.textColor};"
|
|
2169
2247
|
>
|
|
2170
2248
|
<div
|
|
2171
|
-
style=${
|
|
2249
|
+
style=${ri({position:"absolute"})}
|
|
2172
2250
|
></div>
|
|
2173
2251
|
<video class="glowBar" autoplay loop muted playsinline>
|
|
2174
2252
|
<source src="${"https://eliseusercontent.meetelise.com/webchat/HorizontalBar-Shadow.webm"}" type="video/webm" />
|
|
@@ -2202,21 +2280,21 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2202
2280
|
</div>
|
|
2203
2281
|
`}
|
|
2204
2282
|
</div>
|
|
2205
|
-
`}};Ei.styles=
|
|
2283
|
+
`}};Ei.styles=ei,Ai([ae({type:Boolean})],Ei.prototype,"isMobile",void 0),Ai([ae({type:Boolean})],Ei.prototype,"isFirstMount",void 0),Ai([ae()],Ei.prototype,"backgroundColor",void 0),Ai([ae()],Ei.prototype,"textColor",void 0),Ai([ae({type:Boolean})],Ei.prototype,"isMini",void 0),Ai([ae({attribute:!1})],Ei.prototype,"autoOpenChatWidget",void 0),Ai([ae()],Ei.prototype,"phoneNumber",void 0),Ai([ae({attribute:!0})],Ei.prototype,"chatCallUsHeader",void 0),Ai([ae({attribute:!1})],Ei.prototype,"buildingId",void 0),Ai([ae({attribute:!0})],Ei.prototype,"buildingSlug",void 0),Ai([ae({attribute:!0})],Ei.prototype,"orgSlug",void 0),Ai([ae({attribute:!0})],Ei.prototype,"sgtUrl",void 0),Ai([ae({attribute:!0})],Ei.prototype,"buildingABTestType",void 0),Ai([ae({attribute:!0})],Ei.prototype,"escortedToursLink",void 0),Ai([ae({attribute:!0})],Ei.prototype,"virtualToursLink",void 0),Ai([ae({type:Boolean})],Ei.prototype,"hasCallUsEnabled",void 0),Ai([ae({type:Boolean})],Ei.prototype,"hasChatEnabled",void 0),Ai([ae({type:Boolean})],Ei.prototype,"hasEmailEnabled",void 0),Ai([ae({type:Boolean})],Ei.prototype,"hasSSTEnabled",void 0),Ai([ae({type:Boolean})],Ei.prototype,"hasTextUsEnabled",void 0),Ai([ae({attribute:!1})],Ei.prototype,"layoutOptions",void 0),Ai([ae({attribute:!1})],Ei.prototype,"unitOptions",void 0),Ai([ae({attribute:!1})],Ei.prototype,"tourTypeOptions",void 0),Ai([ae({attribute:!1})],Ei.prototype,"onChatTapped",void 0),Ai([ae({attribute:!1})],Ei.prototype,"launcherStyles",void 0),Ai([se()],Ei.prototype,"isEmailWindowOpen",void 0),Ai([se()],Ei.prototype,"isCallUsWindowOpen",void 0),Ai([se()],Ei.prototype,"isSSTWindowOpen",void 0),Ai([se()],Ei.prototype,"isTextUsWindowOpen",void 0),Ei=Ai([re("meetelise-launcher")],Ei);var _i=n(3379),Fi=n.n(_i),Mi=n(7795),Pi=n.n(Mi),Di=n(569),qi=n.n(Di),Ui=n(3565),Ji=n.n(Ui),ki=n(9216),Li=n.n(ki),Bi=n(4589),ji=n.n(Bi),Hi=n(3631),Wi={};Wi.styleTagTransform=ji(),Wi.setAttributes=Ji(),Wi.insert=qi().bind(null,"head"),Wi.domAPI=Pi(),Wi.insertStyleElement=Li(),Fi()(Hi.Z,Wi),Hi.Z&&Hi.Z.locals&&Hi.Z.locals;var Gi,$i=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Vi=Gi=class extends ne{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.useMiniWidget=!0,this.launcherStyles={},this.popup=null,this.theme=Kn(),this.chatId="",this.analytics=null,this.isMobile=xn(),this.launcher=null,this.building=null,this.buildingABTestType=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.talkjsPopupElement=null,this.myContactHeader=null,this.yardiDNIScriptInterval=null,this.launcherRef=Se(),this.initializeInstanceVariables=async()=>{await this.setBuildingDerivedInfo(),await this.initializeLaunchJS(),this.attachOnClickToLauncher(),this.isLoading=!1},this.setBuildingDerivedInfo=async()=>{var e,t;if(!this.buildingSlug||!this.orgSlug)return;this.building=await async function(e,t){const n="https://app.meetelise.com",i=`${n}/api/pub/v1/organization/${e}/building/${t}`,r=await fetch(i),o=await r.json(),a=await fetch(`${n}/eliseCrmApi/pub/building/${t}/units`),s=await a.json(),u=await fetch(`${n}/eliseCrmApi/pub/building/${t}/layouts`),l=await u.json();return o.unitOptionsV2=s,o.layoutOptionsV2=l,o}(this.orgSlug,this.buildingSlug);const n=await async function(e){try{return(await Qt().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}(this.buildingSlug);this.buildingABTestType=null!==(e=null==n?void 0:n.abTestType)&&void 0!==e?e:"",bn(this.building.id),this.chatId=function(e,t){const n=Gn(e,t),i=localStorage.getItem(n);return i&&!function(e,t){const n=$n(e,t),i=localStorage.getItem(n)||Wn(e,t),r=new Date(new Date(i).getTime()+216e5);return new Date>r}(e,t)?i:Hn(e,t)}(this.orgSlug,this.buildingSlug),this.avatarSrc=this.avatarSrc||this.building.avatarSrc,this.theme=Kn(null!==(t=this.themeId)&&void 0!==t?t:this.building.themeId),this.analytics=new Pn(this.orgSlug,this.buildingSlug,this.chatId),this.analytics.ping("webchat_heartbeat")},this.initializeLaunchJS=async()=>{var e;if(!this.building||!this.theme)return;if(this.popup&&this.launcher)return;const[t,n,i,r]=await Promise.all([this.building,this.theme,this.avatarSrc,Gi.session]);if(t.conversationMaintenanceMode)return new Promise((()=>{console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear.")}));await this.configureTalkJSPopup(t,n,r,i),this.configureLauncherElement(),null===(e=this.analytics)||void 0===e||e.ping("load"),this.yardiDNIScriptInterval=setInterval((()=>this.pollForYardiCampaignSource()),1e3),setTimeout(clearInterval,15e3,this.yardiDNIScriptInterval)},this.configureLauncherElement=()=>{this.popup&&this.launcherRef.value&&(this.launcher=this.launcherRef.value)},this.configureTalkJSPopup=async(e,t,n,i)=>{var r;const o=n.createPopup(Yn(n,e,t,i||e.avatarSrc,this.chatId,this.isMobile),{launcher:"never",showCloseInHeader:!0,messageField:{placeholder:"Ask a question..."}});await o.mount({show:!1}),o.on("close",(()=>{this.hideLauncher=!1}));const a=document.querySelector(".__talkjs_popup");if(this.talkjsPopupElement=a,!a)throw new Error("Failed to find chat window");a.classList.add("meetelise-chat","pane"),this.isMobile||a.classList.add("launcher__desktop"),a.style.zIndex="99999999999",this.popup=o;const s=sessionStorage.getItem("autoOpenedTimestamp"),u=!s||s&&tn(rn(s));e.autoOpenChatWidget&&u&&!xn()&&"close"!==this.buildingABTestType&&(this.popup.show(),this.hideLauncher=!0,this.hasMounted=!0,sessionStorage.setItem("autoOpenedTimestamp",Xt(function(e,t){Fe(2,arguments);var n=Xe(t);return Ze(e,6e4*n)}(new Date,15))),null===(r=this.analytics)||void 0===r||r.ping("autoOpen"))},this.firstUpdated=()=>{this.initializeInstanceVariables()},this.handleContactClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;null===(t=this.popup)||void 0===t||t.hide(),this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e)},this.adjustTopHeaderContactCoords=()=>{var e;if(this.talkjsPopupElement){const t=function(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}(this.talkjsPopupElement),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("contactTabPopup");if(!n)return;n.style.left=`${t.left+20}px`,n.style.top=t.top-50+"px"}},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{var e;this.popup&&(this.popup.show(),this.adjustTopHeaderContactCoords(),null===(e=this.analytics)||void 0===e||e.ping("open"),this.hideLauncher=!0,this.hasMounted=!0)})}}pollForYardiCampaignSource(){var e,t,n;(null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&(null===(n=this.analytics)||void 0===n||n.ping("yardi-DNI-init"),this.yardiDNIScriptInterval&&clearInterval(this.yardiDNIScriptInterval))}async restartConversation(){if(!(this.analytics&&this.analytics.chatId&&this.building&&this.popup&&Gi.session))return;this.chatId=Hn(this.orgSlug,this.buildingSlug);const e=await Gi.session;this.analytics.chatId=this.chatId,this.popup.select(Yn(e,this.building,this.theme,this.avatarSrc||this.building.avatarSrc,this.chatId,this.isMobile))}remove(){var e;null===(e=this.popup)||void 0===e||e.destroy()}open(){var e;null===(e=this.popup)||void 0===e||e.show()}close(){var e;null===(e=this.popup)||void 0===e||e.hide()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustTopHeaderContactCoords)}disconnectedCallback(){window.removeEventListener("resize",this.adjustTopHeaderContactCoords),super.disconnectedCallback()}updated(){this.adjustTopHeaderContactCoords()}render(){var e,t,n,i,r,o,a,s,u,l,d,c,p,f,h,m,v,g,y,b,w,S,T,x,O,I,R,C,N,A;window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Ei);const E=!this.hideLauncher||this.isLoading||"close"===this.buildingABTestType;return D`
|
|
2206
2284
|
<div>
|
|
2207
2285
|
<div
|
|
2208
2286
|
id="contactTabPopup"
|
|
2209
|
-
class=${pe({showTab
|
|
2287
|
+
class=${pe({showTab:!E,hideTab:E})}
|
|
2210
2288
|
>
|
|
2211
2289
|
<button class="actionTabBttn" @click=${this.handleContactClicked}>
|
|
2212
|
-
${
|
|
2290
|
+
${mi}
|
|
2213
2291
|
<p><span class="heavyLabel">Email</span> an agent</p>
|
|
2214
|
-
${
|
|
2292
|
+
${yi}
|
|
2215
2293
|
</button>
|
|
2216
2294
|
<button class="actionTabBttn" @click=${this.handleTourClicked}>
|
|
2217
|
-
${
|
|
2295
|
+
${hi}
|
|
2218
2296
|
<p><span class="heavyLabel">Book</span> a tour</p>
|
|
2219
|
-
${
|
|
2297
|
+
${yi}
|
|
2220
2298
|
</button>
|
|
2221
2299
|
</div>
|
|
2222
2300
|
<div
|
|
@@ -2233,7 +2311,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2233
2311
|
.tourTypeOptions=${null!==(s=null===(a=this.building)||void 0===a?void 0:a.tourTypeOptions)&&void 0!==s?s:[]}
|
|
2234
2312
|
.launcherStyles=${this.launcherStyles}
|
|
2235
2313
|
.autoOpenChatWidget=${null!==(u=this.building.autoOpenChatWidget)&&void 0!==u&&u}
|
|
2236
|
-
chatCallUsHeader=${null!==(d=null===(l=this.building)||void 0===l?void 0:l.chatCallUsHeader)&&void 0!==d?d:"
|
|
2314
|
+
chatCallUsHeader=${null!==(d=null===(l=this.building)||void 0===l?void 0:l.chatCallUsHeader)&&void 0!==d?d:""}
|
|
2237
2315
|
phoneNumber="${null!==(p=null===(c=this.building)||void 0===c?void 0:c.phoneNumber)&&void 0!==p?p:""}"
|
|
2238
2316
|
textColor="${this.theme.chatHeader.textColor}"
|
|
2239
2317
|
backgroundColor="${this.theme.chatPaneBackgroundColor}"
|
|
@@ -2272,9 +2350,12 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2272
2350
|
padding-left: 20px;
|
|
2273
2351
|
padding-right: 20px;
|
|
2274
2352
|
padding-bottom: 24px;
|
|
2275
|
-
z-index:
|
|
2353
|
+
z-index: 1000000000;
|
|
2276
2354
|
background: #353535;
|
|
2277
2355
|
border-radius: 10px 0px 0px 0px;
|
|
2356
|
+
border-width: 1px 0px 0px 1px;
|
|
2357
|
+
border-style: solid;
|
|
2358
|
+
border-color: #ffffff;
|
|
2278
2359
|
}
|
|
2279
2360
|
.hideTab {
|
|
2280
2361
|
display: none;
|