@meetelise/chat 1.51.1 → 1.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/dist/index.js +43 -17
- package/src/WebComponent/LeadSourceClient.ts +2 -19
- package/src/WebComponent/Scheduler/tour-scheduler.ts +13 -5
- package/src/WebComponent/actions/call-us-window.ts +2 -0
- package/src/WebComponent/actions/details-window.ts +2 -0
- package/src/WebComponent/actions/email-us-window.ts +2 -0
- package/src/WebComponent/icons/ApplyOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/BookTourOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/CalculatorOutlineIcon.ts +2 -0
- package/src/WebComponent/icons/ChatOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/ChevronLeftIcon.ts +1 -1
- package/src/WebComponent/icons/ChevronRightIcon.ts +1 -1
- package/src/WebComponent/icons/ContactResidentIcon.ts +1 -1
- package/src/WebComponent/icons/DollarOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/EmailOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/HeyThereEmojiIcon.ts +1 -1
- package/src/WebComponent/icons/PhoneOutlineIcon.ts +1 -1
- package/src/WebComponent/icons/SendMessageIcon.ts +2 -2
- package/src/WebComponent/icons/TourSelfGuidedIcon.ts +2 -0
- package/src/WebComponent/icons/TourVirtuallyIcon.ts +2 -0
- package/src/WebComponent/icons/TourWithAgentIcon.ts +2 -0
- package/src/WebComponent/icons/XOutlineIcon.ts +1 -1
- package/src/WebComponent/me-select.ts +2 -0
- package/src/WebComponent/simple-launcher/simple-launcher.ts +4 -0
- package/src/svgIcons.ts +2 -2
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -633,6 +633,8 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
633
633
|
/>
|
|
634
634
|
|
|
635
635
|
<svg
|
|
636
|
+
aria-hidden="true"
|
|
637
|
+
focusable="false"
|
|
636
638
|
width="10"
|
|
637
639
|
height="6"
|
|
638
640
|
viewBox="0 0 10 6"
|
|
@@ -755,13 +757,13 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
755
757
|
.option.active {
|
|
756
758
|
background-color: var(--active-option-color);
|
|
757
759
|
}
|
|
758
|
-
`,Oe],Lr([ue({attribute:!1})],Ur.prototype,"options",void 0),Lr([ue({type:String})],Ur.prototype,"placeholder",void 0),Lr([ue({type:String})],Ur.prototype,"value",void 0),Lr([de()],Ur.prototype,"activeOption",void 0),Lr([de()],Ur.prototype,"isOpen",void 0),Lr([de()],Ur.prototype,"activeOptionIndex",void 0),Lr([de()],Ur.prototype,"searchTerm",void 0),Lr([ce("#select",!0)],Ur.prototype,"meSelect",void 0),Lr([ce("#selectText",!0)],Ur.prototype,"selectInput",void 0),Ur=Lr([se("me-select")],Ur),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(jr||(jr={}));var Fr=n(2013),Hr=n.n(Fr);function Gr(e){return ni(1,arguments),ii(e).getTime()<Date.now()}Math.pow(10,8);var zr=6e4,Qr=36e5;function Wr(e,t){ni(1,arguments);var n=t||{},i=null==n.additionalDigits?2:bi(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=function(e){var t,n={},i=e.split(Vr.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],Vr.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Vr.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=Vr.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(o.date){var a=function(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)}}(o.date,i);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(qr);if(!n)return new Date(NaN);var i=!!n[4],r=Xr(n[1]),o=Xr(n[2])-1,a=Xr(n[3]),s=Xr(n[4]),l=Xr(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var r=i.getUTCDay()||7,o=7*(t-1)+n+1-r;return i.setUTCDate(i.getUTCDate()+o),i}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Jr[t]||(eo(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(eo(e)?366:365)}(t,r)?(u.setUTCFullYear(t,o,Math.max(r,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),u=0;if(o.time&&(u=function(e){var t=e.match(Yr);if(!t)return NaN;var n=Zr(t[1]),i=Zr(t[2]),r=Zr(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,r))return NaN;return n*Qr+i*zr+1e3*r}(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var d=new Date(l+u),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=function(e){if("Z"===e)return 0;var t=e.match(Kr);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(i*Qr+r*zr)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Vr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},qr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Yr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xr(e){return e?parseInt(e):1}function Zr(e){return e&&parseFloat(e.replace(",","."))||0}var Jr=[31,null,31,30,31,30,31,31,30,31,30,31];function eo(e){return e%400==0||e%4==0&&e%100!=0}const to={buildingId:null,availabilities:{}},no=()=>{to.buildingId=null,to.availabilities={}},io=async e=>{e&&(to.buildingId=e);const t=to.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=to.availabilities;if(n[t])return n[t];const i=ir(Date.now()),o=Rr(function(e){ni(1,arguments);var t=ii(e);return t.setHours(23,59,59,999),t}(Br(i,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(Rr(i))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return to.availabilities[t]=s.data,s.data},ro=async(e,t)=>{var n,i;const r=await io(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},oo=async()=>{var e,t,n,i,r,o;return{[Ua.Guided]:!!(null===(t=null===(e=await ro(jr.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[Ua.Self]:!!(null===(i=null===(n=await ro(jr.SelfGuided))||void 0===n?void 0:n.availableTourStartTimes)||void 0===i?void 0:i.length),[Ua.Virtual]:!!(null===(o=null===(r=await ro(jr.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},ao=async(e,t)=>{var n,i;const r=await ro(e,t);if(!r)return{};const o={availableTourStartTimes:null===(n=r.availableTourStartTimes?r.availableTourStartTimes.filter(e=>oi(Wr(e))&&!Gr(Wr(e))):[])||void 0===n?void 0:n.map(e=>so(e))};return Hr()(null!==(i=o.availableTourStartTimes)&&void 0!==i?i:[],e=>Zi(new Date(e.datetime),"yyyy-MM-dd"))},so=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var lo=n(3916),uo=n.n(lo),co=n(2485),ho=n.n(co);const po=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var fo;async function go(e){if(!e)return!1;try{return(await r().get(po(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}function mo(){return yo()?function(){const e=window.location.search,t={},n=e.split("?").slice(1).join("&");return n.split("&").forEach(e=>{const[n,i]=e.split("=");n&&i&&(t[decodeURIComponent(n)]=decodeURIComponent(i))}),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),n=e.has("utm_source");if(t&&!n){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(fo||(fo={}));const yo=()=>(window.location.search.match(/\?/g)||[]).length>1,bo=[57,2575,2332],vo=["email","phone","firstName","lastName","message","tourDetails"];let wo=!1;const Co=(e,t={})=>{window.dataLayer=window.dataLayer||[];let n=t;if(wo){n={...t};for(const e of vo)delete n[e]}window.dataLayer.push({event:e,...n})};class xo extends me{constructor(e){if(super(e),this.it=F,e.type!==fe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||null==e)return this.ft=void 0,this.it=e;if(e===j)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}xo.directiveName="unsafeHTML",xo.resultType=1;const $o=ge(xo),So=B`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
760
|
+
`,Oe],Lr([ue({attribute:!1})],Ur.prototype,"options",void 0),Lr([ue({type:String})],Ur.prototype,"placeholder",void 0),Lr([ue({type:String})],Ur.prototype,"value",void 0),Lr([de()],Ur.prototype,"activeOption",void 0),Lr([de()],Ur.prototype,"isOpen",void 0),Lr([de()],Ur.prototype,"activeOptionIndex",void 0),Lr([de()],Ur.prototype,"searchTerm",void 0),Lr([ce("#select",!0)],Ur.prototype,"meSelect",void 0),Lr([ce("#selectText",!0)],Ur.prototype,"selectInput",void 0),Ur=Lr([se("me-select")],Ur),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(jr||(jr={}));var Fr=n(2013),Hr=n.n(Fr);function Gr(e){return ni(1,arguments),ii(e).getTime()<Date.now()}Math.pow(10,8);var zr=6e4,Qr=36e5;function Wr(e,t){ni(1,arguments);var n=t||{},i=null==n.additionalDigits?2:bi(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=function(e){var t,n={},i=e.split(Vr.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],Vr.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Vr.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=Vr.timezone.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e);if(o.date){var a=function(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)}}(o.date,i);r=function(e,t){if(null===t)return new Date(NaN);var n=e.match(qr);if(!n)return new Date(NaN);var i=!!n[4],r=Xr(n[1]),o=Xr(n[2])-1,a=Xr(n[3]),s=Xr(n[4]),l=Xr(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var r=i.getUTCDay()||7,o=7*(t-1)+n+1-r;return i.setUTCDate(i.getUTCDate()+o),i}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Jr[t]||(eo(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(eo(e)?366:365)}(t,r)?(u.setUTCFullYear(t,o,Math.max(r,a)),u):new Date(NaN)}(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),u=0;if(o.time&&(u=function(e){var t=e.match(Yr);if(!t)return NaN;var n=Zr(t[1]),i=Zr(t[2]),r=Zr(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,r))return NaN;return n*Qr+i*zr+1e3*r}(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var d=new Date(l+u),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=function(e){if("Z"===e)return 0;var t=e.match(Kr);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(i*Qr+r*zr)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Vr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},qr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Yr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xr(e){return e?parseInt(e):1}function Zr(e){return e&&parseFloat(e.replace(",","."))||0}var Jr=[31,null,31,30,31,30,31,31,30,31,30,31];function eo(e){return e%400==0||e%4==0&&e%100!=0}const to={buildingId:null,availabilities:{}},no=()=>{to.buildingId=null,to.availabilities={}},io=async e=>{e&&(to.buildingId=e);const t=to.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=to.availabilities;if(n[t])return n[t];const i=ir(Date.now()),o=Rr(function(e){ni(1,arguments);var t=ii(e);return t.setHours(23,59,59,999),t}(Br(i,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(Rr(i))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return to.availabilities[t]=s.data,s.data},ro=async(e,t)=>{var n,i;const r=await io(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},oo=async()=>{var e,t,n,i,r,o;return{[Ua.Guided]:!!(null===(t=null===(e=await ro(jr.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[Ua.Self]:!!(null===(i=null===(n=await ro(jr.SelfGuided))||void 0===n?void 0:n.availableTourStartTimes)||void 0===i?void 0:i.length),[Ua.Virtual]:!!(null===(o=null===(r=await ro(jr.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},ao=async(e,t)=>{var n,i;const r=await ro(e,t);if(!r)return{};const o={availableTourStartTimes:null===(n=r.availableTourStartTimes?r.availableTourStartTimes.filter(e=>oi(Wr(e))&&!Gr(Wr(e))):[])||void 0===n?void 0:n.map(e=>so(e))};return Hr()(null!==(i=o.availableTourStartTimes)&&void 0!==i?i:[],e=>Zi(new Date(e.datetime),"yyyy-MM-dd"))},so=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var lo=n(3916),uo=n.n(lo),co=n(2485),ho=n.n(co);const po=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var fo;async function go(e){if(!e)return!1;try{return(await r().get(po(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}function mo(){return yo()?function(){const e=window.location.search,t={},n=e.split("?").slice(1).join("&");return n.split("&").forEach(e=>{const[n,i]=e.split("=");n&&i&&(t[decodeURIComponent(n)]=decodeURIComponent(i))}),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),n=e.has("utm_source");if(t&&!n){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(fo||(fo={}));const yo=()=>(window.location.search.match(/\?/g)||[]).length>1,bo=[57,2575,2332],vo=["email","phone","firstName","lastName","message","tourDetails"];let wo=!1;const Co=(e,t={})=>{window.dataLayer=window.dataLayer||[];let n=t;if(wo){n={...t};for(const e of vo)delete n[e]}window.dataLayer.push({event:e,...n})};class xo extends me{constructor(e){if(super(e),this.it=F,e.type!==fe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||null==e)return this.ft=void 0,this.it=e;if(e===j)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}xo.directiveName="unsafeHTML",xo.resultType=1;const $o=ge(xo),So=B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
759
761
|
<rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
|
|
760
762
|
</svg>
|
|
761
|
-
`,Ao=(B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
763
|
+
`,Ao=(B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
762
764
|
<rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
|
|
763
765
|
<path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
764
|
-
</svg>`,()=>B`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
766
|
+
</svg>`,()=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
765
767
|
<rect x="0.5" y="0.5" width="24" height="24" fill="url(#pattern0)"/>
|
|
766
768
|
<defs>
|
|
767
769
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
|
@@ -1478,7 +1480,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1478
1480
|
gap: 12px;
|
|
1479
1481
|
align-items: center;
|
|
1480
1482
|
}
|
|
1481
|
-
`;class Uo{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:Ro(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const Ro=()=>{var e,t,n,i,r,o;try{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,o=i.get("switch_cls[id]"),a=i.get("ilm"),s=i.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Ir("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const n=t.contentWindow.URL;if(!n)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new n(window.location.href).searchParams,s=null!==(o=null===(r=null===(i=window.RCTPCampaign)||void 0===i?void 0:i.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Ir("bozzuto_ad_source")}}};var Bo;!function(e){e.error="error",e.info="info",e.warn="warn"}(Bo||(Bo={}));const jo=async({logType:e,buildingSlug:t,orgSlug:n,logTitle:i,logData:o})=>{await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...o},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=n?n:"","log-type":null!=e?e:Bo.error,"log-title":i.toUpperCase().replace(/\s/g,"_")}})},Fo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}};var Ho=n(2193),Go=n.n(Ho);function zo(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Qo=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.leadSourceParams=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=mo();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:o,referrer:document.referrer,parsedUtmSource:o?o.utm_source:null,campaignSources:Object.values(Ro()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!Pr(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Wr(t.timestamp)}}}const a={leadSource:t,leadSourceParams:this.leadSourceParams,leadId:n,buildingSlug:e,timestamp:Rr(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Wr(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const n=JSON.parse(t);if(n.buildingSlug===e&&n.leadSource&&n.leadId&&n.timestamp&&!Pr(Wr(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null},this.resetLeadSource=()=>{if(!this.buildingSlug)return!1;const e="com.elise.webchat.leadsource.slug="+this.buildingSlug;return localStorage.removeItem(e),!0}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){var o,a;const s={query_params:t,building_slug:e,referrer:n,campaign_sources:i};try{if(52!==this.orgId){return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,s)).data}const e=(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source-with-params`,s)).data;return this.leadSourceParams=null!==(o=null==e?void 0:e.utm_params)&&void 0!==o?o:null,null!==(a=null==e?void 0:e.source)&&void 0!==a?a:null}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:t}){var n,i,o,a,s,l,u;try{if(!this.chatId)return null;if(!this.orgSlug)return null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find(e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)}))||void 0===n?void 0:n.value}}catch(e){}return await r().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:t,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(i=this.leadSourceInput)||void 0===i?void 0:i.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:Go()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.startsWith(e+"=")){return i.substring((e+"=").length,-1===i.indexOf(";")?void 0:i.indexOf(";"))}}return null}catch(e){}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:n}){var i,r,o;try{const a={queryParams:mo(),buildingSlug:n,referrer:document.referrer,campaignSources:Ro()};let s=!1;const l=n?this.getLeadSourceBodyIfValid(n):null;if(l){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=l.leadSource,this.leadSourceParams=null!==(r=l.leadSourceParams)&&void 0!==r?r:null,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(a);if(!e)return this.leadSource=l.leadSource,this.leadSourceParams=null!==(i=l.leadSourceParams)&&void 0!==i?i:null,this.leadSource;this.leadSource=e,s=!0}}const u=await this.fetchCurrentParsedLeadSource(a);if(this.leadSource=u,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!u){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSourceParams=null!==(o=e.leadSourceParams)&&void 0!==o?o:null,this.leadSource}if(n){const t=!!u&&u.length>0;this.updateLeadSourceLocalStorage(n,u,e,!t&&!s,s)}return u}catch(e){}return null}},Wo=async(e,t=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${t}`;try{return(await r().get(n)).data.is_enabled}catch(e){return!1}};var Vo,qo,Yo;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(Vo||(Vo={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(qo||(qo={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(Yo||(Yo={}));const Ko=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function Xo(e,t){const n=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,i=await r().get(n);return Zo(i.data)}const Zo=e=>{var t;try{e.welcomeMessage=Jo(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},Jo=(e,t)=>e.replace(/elise/gi,t);var ea=n(7035),ta=n(6353);function na(e,t,n){var i=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return i.formatToParts?function(e,t){for(var n=e.formatToParts(t),i=n.length-1;i>=0;--i)if("timeZoneName"===n[i].type)return n[i].value}(i,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}(i,t)}function ia(e,t){var n=function(e){if(!oa[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;oa[e]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return oa[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=ra[n[r].type];o>=0&&(i[o]=parseInt(n[r].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var ra={year:0,month:1,day:2,hour:3,minute:4,second:5};var oa={};function aa(e,t,n,i,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(i,r,o,a),s}var sa=36e5,la={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ua(e,t,n){var i,r,o;if(!e)return 0;if(i=la.timezoneZ.exec(e))return 0;if(i=la.timezoneHH.exec(e))return ca(o=parseInt(i[1],10))?-o*sa:NaN;if(i=la.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return ca(o,a)?(r=Math.abs(o)*sa+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if(ha[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),ha[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return aa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=da(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=da(new Date(r),n);if(t===o)return t;r-=o-t;var a=da(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function da(e,t){var n=ia(e,t),i=aa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),o=r%1e3;return i-(r-=o>=0?o:1e3+o)}function ca(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var ha={};var pa={X:function(e,t,n,i){var r=fa(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return ya(r);case"XXXX":case"XX":return ma(r);default:return ma(r,":")}},x:function(e,t,n,i){var r=fa(i.timeZone,e);switch(t){case"x":return ya(r);case"xxxx":case"xx":return ma(r);default:return ma(r,":")}},O:function(e,t,n,i){var r=fa(i.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+ga(o,2)}(r,":");default:return"GMT"+ma(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return na("short",e,i);default:return na("long",e,i)}}};function fa(e,t){var n=e?ua(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function ga(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function ma(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+ga(Math.floor(r/60),2)+n+ga(Math.floor(r%60),2)}function ya(e,t){return e%60==0?(e>0?"-":"+")+ga(Math.abs(e)/60,2):ma(e,t)}const ba=pa;var va=n(9784),wa=n(9720);var Ca=36e5,xa=6e4,$a={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Sa(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?2:va(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=$a.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=$a.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=$a.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,i=$a.YYY[t],r=$a.YYYYY[t];if(n=$a.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=$a.YY.exec(e)||i.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=o.year,s=function(e,t){if(null===t)return null;var n,i,r,o;if(0===e.length)return(i=new Date(0)).setUTCFullYear(t),i;if(n=$a.MM.exec(e))return i=new Date(0),_a(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=$a.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=ka(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=$a.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return _a(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=$a.Www.exec(e))return Oa(t,o=parseInt(n[1],10)-1)?Aa(t,o):new Date(NaN);if(n=$a.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Oa(t,o,l)?Aa(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),d=0;if(r.time&&(d=function(e){var t,n,i;if(t=$a.HH.exec(e))return Pa(n=parseFloat(t[1].replace(",",".")))?n%24*Ca:NaN;if(t=$a.HHMM.exec(e))return Pa(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*Ca+i*xa:NaN;if(t=$a.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return Pa(n,i,r)?n%24*Ca+i*xa+1e3*r:NaN}return null}(r.time),isNaN(d)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=ua(r.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=wa(new Date(u+d)),l=wa(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Aa(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var Ea=[31,28,31,30,31,30,31,31,30,31,30,31],Ta=[31,29,31,30,31,30,31,31,30,31,30,31];function ka(e){return e%400==0||e%4==0&&e%100!=0}function _a(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=ka(e);if(i&&n>Ta[t])return!1;if(!i&&n>Ea[t])return!1}return!0}function Oa(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Pa(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var Ia=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Na(e,t,n,i){var r=ea(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(Ia);if(o){var a=Sa(r.originalDate||e,r);i=o.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),i="'"===e[n-1],o=e.replace(t,"'"+ba[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return ta(e,i,r)}(function(e,t,n){var i=Sa(e,n),r=ua(t,i,!0),o=new Date(i.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),n,r)}const Ma=async({buildingSlug:e})=>{try{const t=await r().get(`${$r}/platformApi/webchat/${e}/units/summary`);if(t.data)return Ar(t.data)}catch(t){jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t}})}return[]};var Da=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 La=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[Ua.Guided]:!0,[Ua.Self]:!0,[Ua.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=qn,this.backgroundColor=Yn,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([Wo(this.buildingId,this.hasDynamicSchedulingEnabled),oo()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await io(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),jo({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:Bo.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const n=Object.values(t).every(e=>!1===e),i=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(n&&i)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void jo({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:Bo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[Ua.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[Ua.Guided]||!!this.escortedToursLink),[Ua.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[Ua.Self]||!!this.sgtUrl),[Ua.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[Ua.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await ao(Ra[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,jo({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:Bo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await io(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(i=null===(n=o.availability)||void 0===n?void 0:n[a])||void 0===i?void 0:i.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return rr("string"==typeof e?Wr(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==jr.Unknown&&a!==jr.MediaTour&&(this.selectedDate=ir("string"==typeof l?Wr(l):l),this.tourType=Ba[a],this.selectedTime="string"==typeof l?so(l):(e=>({datetime:Zi(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Zi(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const n=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var n,i;return{tourType:t,availabilities:null===(i=null===(n=e.availability)||void 0===n?void 0:n[t])||void 0===i?void 0:i.availableTourStartTimes}}).filter(e=>{if(e.tourType===jr.Unknown||e.tourType===jr.MediaTour)return!1;const t=Ba[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!Ko(0,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===Ua.Guided?this.escortedToursTypeOffered:e===Ua.Self?this.selfGuidedToursTypeOffered:e===Ua.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Fa(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await Ma({buildingSlug:this.buildingSlug})}catch(e){this.units=[],jo({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:Bo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{try{await io(this.buildingId)}catch(e){}await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await io(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var n,i;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(n=null==o?void 0:o.is_general_building)&&void 0!==n&&n,buildings:null!==(i=null==o?void 0:o.buildings)&&void 0!==i?i:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const n=this.centralConvoBuildings.find(e=>e.slug===t);if(n){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.selectedUnitValue="",this.buildingId=n.building_id,this.buildingSlug=n.slug,this.buildingName=n.name,this.statusMessage=`Loading tours for ${n.name}…`,Co("tourBuildingSelected",{buildingId:n.building_id});try{const e=await Xo(this.orgSlug,n.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${n.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${n.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await ao(Ra[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Nr(null!==(i=null===(n=this.emailInput)||void 0===n?void 0:n.value)&&void 0!==i?i:"")&&!!this.phoneNumber&&!!this.phoneNumberE164}},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,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const S=this.phoneNumberE164;if(!S)return void(this.phoneNumberIsValid=!1);const A=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const T=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const k=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,_=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;Co("scheduleTourSubmitted",{email:this.email,phone:S,firstName:null!==(i=null===(n=this.firstNameInput)||void 0===n?void 0:n.value)&&void 0!==i?i:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:ja[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:T.find(e=>"property-website"!==e)||null,layout:k,unit:_,conversationTrackingId:null!==(l=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==l?l:null});const O={referrer:document.referrer,email_address:this.email,phone_number:S,building_id:this.buildingId,first_name:null!==(d=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==d?d:this.firstNameInputValue,last_name:null!==(h=null===(c=this.lastNameInput)||void 0===c?void 0:c.value)&&void 0!==h?h:this.lastNameInputValue,tour_type:ja[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,zo(this.orgSlug)]:[zo(this.orgSlug)])],query_params:Object.fromEntries(A.entries()),conversation_tracking_id:null===(p=this.leadSourceClient)||void 0===p?void 0:p.chatId,layouts:k?[k]:void 0,unit_numbers:_?[_]:void 0,lead_sources_with_timestamps:(null!==(m=null===(f=this.leadSourceMultitouchClient)||void 0===f?void 0:f.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(g=this.selectedLeadSource)||void 0===g?void 0:g.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==m?m:[]).map(e=>Er({...e}))};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",O,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(b=this.leadSourceClient)||void 0===b||b.resetLeadSource(),null===(v=this.leadSourceMultitouchClient)||void 0===v||v.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(C=null===(w=t.response)||void 0===w?void 0:w.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[Zi(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Zi(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(x=t.response)||void 0===x?void 0:x.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===n)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,no(),this.availabilitiesGroupedByDay=await ao(Ra[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(n),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>R` <action-confirm-button
|
|
1483
|
+
`;class Uo{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:Ro(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const Ro=()=>{var e,t,n,i,r,o;try{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,o=i.get("switch_cls[id]"),a=i.get("ilm"),s=i.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Ir("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const n=t.contentWindow.URL;if(!n)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new n(window.location.href).searchParams,s=null!==(o=null===(r=null===(i=window.RCTPCampaign)||void 0===i?void 0:i.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Ir("bozzuto_ad_source")}}};var Bo;!function(e){e.error="error",e.info="info",e.warn="warn"}(Bo||(Bo={}));const jo=async({logType:e,buildingSlug:t,orgSlug:n,logTitle:i,logData:o})=>{await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...o},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=n?n:"","log-type":null!=e?e:Bo.error,"log-title":i.toUpperCase().replace(/\s/g,"_")}})},Fo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}};var Ho=n(2193),Go=n.n(Ho);function zo(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Qo=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.leadSourceParams=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=mo();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:o,referrer:document.referrer,parsedUtmSource:o?o.utm_source:null,campaignSources:Object.values(Ro()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!Pr(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Wr(t.timestamp)}}}const a={leadSource:t,leadSourceParams:this.leadSourceParams,leadId:n,buildingSlug:e,timestamp:Rr(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Wr(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const n=JSON.parse(t);if(n.buildingSlug===e&&n.leadSource&&n.leadId&&n.timestamp&&!Pr(Wr(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null},this.resetLeadSource=()=>{if(!this.buildingSlug)return!1;const e="com.elise.webchat.leadsource.slug="+this.buildingSlug;return localStorage.removeItem(e),!0}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){const o={query_params:t,building_slug:e,referrer:n,campaign_sources:i};try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,o)).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:t}){var n,i,o,a,s,l,u;try{if(!this.chatId)return null;if(!this.orgSlug)return null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find(e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)}))||void 0===n?void 0:n.value}}catch(e){}return await r().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:t,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(i=this.leadSourceInput)||void 0===i?void 0:i.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:Go()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.startsWith(e+"=")){return i.substring((e+"=").length,-1===i.indexOf(";")?void 0:i.indexOf(";"))}}return null}catch(e){}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:n}){var i,r,o;try{const a={queryParams:mo(),buildingSlug:n,referrer:document.referrer,campaignSources:Ro()};let s=!1;const l=n?this.getLeadSourceBodyIfValid(n):null;if(l){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=l.leadSource,this.leadSourceParams=null!==(r=l.leadSourceParams)&&void 0!==r?r:null,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(a);if(!e)return this.leadSource=l.leadSource,this.leadSourceParams=null!==(i=l.leadSourceParams)&&void 0!==i?i:null,this.leadSource;this.leadSource=e,s=!0}}const u=await this.fetchCurrentParsedLeadSource(a);if(this.leadSource=u,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!u){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSourceParams=null!==(o=e.leadSourceParams)&&void 0!==o?o:null,this.leadSource}if(n){const t=!!u&&u.length>0;this.updateLeadSourceLocalStorage(n,u,e,!t&&!s,s)}return u}catch(e){}return null}},Wo=async(e,t=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${t}`;try{return(await r().get(n)).data.is_enabled}catch(e){return!1}};var Vo,qo,Yo;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(Vo||(Vo={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(qo||(qo={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(Yo||(Yo={}));const Ko=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function Xo(e,t){const n=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,i=await r().get(n);return Zo(i.data)}const Zo=e=>{var t;try{e.welcomeMessage=Jo(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},Jo=(e,t)=>e.replace(/elise/gi,t);var ea=n(7035),ta=n(6353);function na(e,t,n){var i=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return i.formatToParts?function(e,t){for(var n=e.formatToParts(t),i=n.length-1;i>=0;--i)if("timeZoneName"===n[i].type)return n[i].value}(i,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}(i,t)}function ia(e,t){var n=function(e){if(!oa[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;oa[e]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return oa[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=ra[n[r].type];o>=0&&(i[o]=parseInt(n[r].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var ra={year:0,month:1,day:2,hour:3,minute:4,second:5};var oa={};function aa(e,t,n,i,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(i,r,o,a),s}var sa=36e5,la={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ua(e,t,n){var i,r,o;if(!e)return 0;if(i=la.timezoneZ.exec(e))return 0;if(i=la.timezoneHH.exec(e))return ca(o=parseInt(i[1],10))?-o*sa:NaN;if(i=la.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return ca(o,a)?(r=Math.abs(o)*sa+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if(ha[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),ha[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return aa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=da(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=da(new Date(r),n);if(t===o)return t;r-=o-t;var a=da(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function da(e,t){var n=ia(e,t),i=aa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),o=r%1e3;return i-(r-=o>=0?o:1e3+o)}function ca(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var ha={};var pa={X:function(e,t,n,i){var r=fa(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return ya(r);case"XXXX":case"XX":return ma(r);default:return ma(r,":")}},x:function(e,t,n,i){var r=fa(i.timeZone,e);switch(t){case"x":return ya(r);case"xxxx":case"xx":return ma(r);default:return ma(r,":")}},O:function(e,t,n,i){var r=fa(i.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+ga(o,2)}(r,":");default:return"GMT"+ma(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return na("short",e,i);default:return na("long",e,i)}}};function fa(e,t){var n=e?ua(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function ga(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function ma(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+ga(Math.floor(r/60),2)+n+ga(Math.floor(r%60),2)}function ya(e,t){return e%60==0?(e>0?"-":"+")+ga(Math.abs(e)/60,2):ma(e,t)}const ba=pa;var va=n(9784),wa=n(9720);var Ca=36e5,xa=6e4,$a={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Sa(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?2:va(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=$a.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=$a.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=$a.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,i=$a.YYY[t],r=$a.YYYYY[t];if(n=$a.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=$a.YY.exec(e)||i.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=o.year,s=function(e,t){if(null===t)return null;var n,i,r,o;if(0===e.length)return(i=new Date(0)).setUTCFullYear(t),i;if(n=$a.MM.exec(e))return i=new Date(0),_a(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=$a.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=ka(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=$a.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return _a(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=$a.Www.exec(e))return Oa(t,o=parseInt(n[1],10)-1)?Aa(t,o):new Date(NaN);if(n=$a.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Oa(t,o,l)?Aa(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),d=0;if(r.time&&(d=function(e){var t,n,i;if(t=$a.HH.exec(e))return Pa(n=parseFloat(t[1].replace(",",".")))?n%24*Ca:NaN;if(t=$a.HHMM.exec(e))return Pa(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*Ca+i*xa:NaN;if(t=$a.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return Pa(n,i,r)?n%24*Ca+i*xa+1e3*r:NaN}return null}(r.time),isNaN(d)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=ua(r.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=wa(new Date(u+d)),l=wa(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Aa(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var Ea=[31,28,31,30,31,30,31,31,30,31,30,31],Ta=[31,29,31,30,31,30,31,31,30,31,30,31];function ka(e){return e%400==0||e%4==0&&e%100!=0}function _a(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=ka(e);if(i&&n>Ta[t])return!1;if(!i&&n>Ea[t])return!1}return!0}function Oa(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Pa(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var Ia=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Na(e,t,n,i){var r=ea(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(Ia);if(o){var a=Sa(r.originalDate||e,r);i=o.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),i="'"===e[n-1],o=e.replace(t,"'"+ba[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return ta(e,i,r)}(function(e,t,n){var i=Sa(e,n),r=ua(t,i,!0),o=new Date(i.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),n,r)}const Ma=async({buildingSlug:e})=>{try{const t=await r().get(`${$r}/platformApi/webchat/${e}/units/summary`);if(t.data)return Ar(t.data)}catch(t){jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t}})}return[]};var Da=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 La=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[Ua.Guided]:!0,[Ua.Self]:!0,[Ua.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=qn,this.backgroundColor=Yn,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([Wo(this.buildingId,this.hasDynamicSchedulingEnabled),oo()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await io(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),jo({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:Bo.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const n=Object.values(t).every(e=>!1===e),i=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(n&&i)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void jo({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:Bo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[Ua.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[Ua.Guided]||!!this.escortedToursLink),[Ua.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[Ua.Self]||!!this.sgtUrl),[Ua.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[Ua.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await ao(Ra[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,jo({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:Bo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await io(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(i=null===(n=o.availability)||void 0===n?void 0:n[a])||void 0===i?void 0:i.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return rr("string"==typeof e?Wr(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==jr.Unknown&&a!==jr.MediaTour&&(this.selectedDate=ir("string"==typeof l?Wr(l):l),this.tourType=Ba[a],this.selectedTime="string"==typeof l?so(l):(e=>({datetime:Zi(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Zi(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const n=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var n,i;return{tourType:t,availabilities:null===(i=null===(n=e.availability)||void 0===n?void 0:n[t])||void 0===i?void 0:i.availableTourStartTimes}}).filter(e=>{if(e.tourType===jr.Unknown||e.tourType===jr.MediaTour)return!1;const t=Ba[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!Ko(0,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===Ua.Guided?this.escortedToursTypeOffered:e===Ua.Self?this.selfGuidedToursTypeOffered:e===Ua.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Fa(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await Ma({buildingSlug:this.buildingSlug})}catch(e){this.units=[],jo({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:Bo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{try{await io(this.buildingId)}catch(e){}await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await io(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var n,i;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(n=null==o?void 0:o.is_general_building)&&void 0!==n&&n,buildings:null!==(i=null==o?void 0:o.buildings)&&void 0!==i?i:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const n=this.centralConvoBuildings.find(e=>e.slug===t);if(n){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.selectedUnitValue="",this.buildingId=n.building_id,this.buildingSlug=n.slug,this.buildingName=n.name,this.statusMessage=`Loading tours for ${n.name}…`,Co("tourBuildingSelected",{buildingId:n.building_id});try{const e=await Xo(this.orgSlug,n.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${n.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${n.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await ao(Ra[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Nr(null!==(i=null===(n=this.emailInput)||void 0===n?void 0:n.value)&&void 0!==i?i:"")&&!!this.phoneNumber&&!!this.phoneNumberE164}},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,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const S=this.phoneNumberE164;if(!S)return void(this.phoneNumberIsValid=!1);const A=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const T=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const k=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,_=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;Co("scheduleTourSubmitted",{email:this.email,phone:S,firstName:null!==(i=null===(n=this.firstNameInput)||void 0===n?void 0:n.value)&&void 0!==i?i:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:ja[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:T.find(e=>"property-website"!==e)||null,layout:k,unit:_,conversationTrackingId:null!==(l=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==l?l:null});const O={referrer:document.referrer,email_address:this.email,phone_number:S,building_id:this.buildingId,first_name:null!==(d=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==d?d:this.firstNameInputValue,last_name:null!==(h=null===(c=this.lastNameInput)||void 0===c?void 0:c.value)&&void 0!==h?h:this.lastNameInputValue,tour_type:ja[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,zo(this.orgSlug)]:[zo(this.orgSlug)])],query_params:Object.fromEntries(A.entries()),conversation_tracking_id:null===(p=this.leadSourceClient)||void 0===p?void 0:p.chatId,layouts:k?[k]:void 0,unit_numbers:_?[_]:void 0,lead_sources_with_timestamps:(null!==(m=null===(f=this.leadSourceMultitouchClient)||void 0===f?void 0:f.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(g=this.selectedLeadSource)||void 0===g?void 0:g.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==m?m:[]).map(e=>Er({...e}))};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",O,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(b=this.leadSourceClient)||void 0===b||b.resetLeadSource(),null===(v=this.leadSourceMultitouchClient)||void 0===v||v.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(C=null===(w=t.response)||void 0===w?void 0:w.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[Zi(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Zi(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(x=t.response)||void 0===x?void 0:x.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===n)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,no(),this.availabilitiesGroupedByDay=await ao(Ra[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(n),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>R` <action-confirm-button
|
|
1482
1484
|
id="schedule-bttn"
|
|
1483
1485
|
.onClick=${this.submit}
|
|
1484
1486
|
.isLoading=${this.isSubmitting}
|
|
@@ -1486,7 +1488,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1486
1488
|
width="145px"
|
|
1487
1489
|
text="Schedule tour"
|
|
1488
1490
|
?disabled=${!this.formIsValidForSubmission()}
|
|
1489
|
-
></action-confirm-button>`,nextButtonAction:null,render:()=>R`${this.userInfoAndLayoutMenu()}`}]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Schedule a Tour")}openSelfGuidedTour(){const e=52===this.orgId?function(e,t){if(!e||!t)return e;try{const n=new URL(e);return Object.entries(t).forEach(([e,t])=>{n.searchParams.set(e,t)}),n.toString()}catch(t){return e}}(this.sgtUrl,
|
|
1491
|
+
></action-confirm-button>`,nextButtonAction:null,render:()=>R`${this.userInfoAndLayoutMenu()}`}]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","Schedule a Tour")}openSelfGuidedTour(){const e=52===this.orgId?function(e,t){if(!e||!t)return e;try{const n=new URL(e);return Object.entries(t).forEach(([e,t])=>{n.searchParams.set(e,t)}),n.toString()}catch(t){return e}}(this.sgtUrl,mo()):this.sgtUrl;window.open(e,"_blank")}buildingSelectMenu(){return R`<me-select
|
|
1490
1492
|
id="building"
|
|
1491
1493
|
placeholder="Select a property"
|
|
1492
1494
|
.value=${this.isGeneralBuilding?"":this.buildingSlug}
|
|
@@ -1511,6 +1513,8 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1511
1513
|
?selected="${this.tourType===Ua.Self}"
|
|
1512
1514
|
>
|
|
1513
1515
|
${((e="black")=>B`<svg
|
|
1516
|
+
aria-hidden="true"
|
|
1517
|
+
focusable="false"
|
|
1514
1518
|
slot="icon"
|
|
1515
1519
|
width="28"
|
|
1516
1520
|
height="31"
|
|
@@ -1536,6 +1540,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1536
1540
|
?selected="${this.tourType===Ua.Guided}"
|
|
1537
1541
|
>
|
|
1538
1542
|
${((e="black")=>B`<svg
|
|
1543
|
+
aria-hidden="true"
|
|
1544
|
+
focusable="false"
|
|
1539
1545
|
slot="icon"
|
|
1540
1546
|
width="31"
|
|
1541
1547
|
height="31"
|
|
@@ -1559,6 +1565,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1559
1565
|
?selected="${this.tourType===Ua.Virtual}"
|
|
1560
1566
|
>
|
|
1561
1567
|
${((e="black")=>B`<svg
|
|
1568
|
+
aria-hidden="true"
|
|
1569
|
+
focusable="false"
|
|
1562
1570
|
slot="icon"
|
|
1563
1571
|
width="26"
|
|
1564
1572
|
height="25"
|
|
@@ -1604,6 +1612,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1604
1612
|
aria-label="Close scheduler"
|
|
1605
1613
|
>
|
|
1606
1614
|
<svg
|
|
1615
|
+
aria-hidden="true"
|
|
1616
|
+
focusable="false"
|
|
1607
1617
|
width="19"
|
|
1608
1618
|
height="19"
|
|
1609
1619
|
viewBox="0 0 19 19"
|
|
@@ -1698,6 +1708,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1698
1708
|
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return R``;const e=Na(Wr(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"MMM d 'at' h:mmaaa");return this.canceledReschedule?R`
|
|
1699
1709
|
<div id="confirmationMessage">
|
|
1700
1710
|
<svg
|
|
1711
|
+
aria-hidden="true"
|
|
1712
|
+
focusable="false"
|
|
1701
1713
|
width="20"
|
|
1702
1714
|
height="20"
|
|
1703
1715
|
viewBox="0 0 20 20"
|
|
@@ -1741,6 +1753,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1741
1753
|
<p>You can make changes at any time, just reply to the email.</p>
|
|
1742
1754
|
</div>
|
|
1743
1755
|
`}loadingIcon(e=21){return R` <svg
|
|
1756
|
+
aria-hidden="true"
|
|
1757
|
+
focusable="false"
|
|
1744
1758
|
id="loadingIcon"
|
|
1745
1759
|
width=${e}
|
|
1746
1760
|
height=${e}
|
|
@@ -2819,6 +2833,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2819
2833
|
aria-label="Close"
|
|
2820
2834
|
>
|
|
2821
2835
|
<svg
|
|
2836
|
+
aria-hidden="true"
|
|
2837
|
+
focusable="false"
|
|
2822
2838
|
width="19"
|
|
2823
2839
|
height="19"
|
|
2824
2840
|
viewBox="0 0 19 19"
|
|
@@ -2922,6 +2938,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2922
2938
|
<div class="email-us__vertical-spacer"></div>
|
|
2923
2939
|
<div class="email-us__center_icon">
|
|
2924
2940
|
<svg
|
|
2941
|
+
aria-hidden="true"
|
|
2942
|
+
focusable="false"
|
|
2925
2943
|
width="22"
|
|
2926
2944
|
height="18"
|
|
2927
2945
|
viewBox="0 0 22 18"
|
|
@@ -3102,7 +3120,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3102
3120
|
width: 50%;
|
|
3103
3121
|
}
|
|
3104
3122
|
}
|
|
3105
|
-
`,Oe],Xa([ue({attribute:!1})],Za.prototype,"leadSources",void 0),Xa([ue({attribute:!1})],Za.prototype,"onCloseClicked",void 0),Xa([ue({attribute:!0})],Za.prototype,"chatId",void 0),Xa([ue({attribute:!1})],Za.prototype,"buildingId",void 0),Xa([ue({attribute:!0})],Za.prototype,"buildingSlug",void 0),Xa([ue({attribute:!0})],Za.prototype,"orgSlug",void 0),Xa([ue({attribute:!0})],Za.prototype,"buildingName",void 0),Xa([ue({attribute:!0})],Za.prototype,"orgLegalName",void 0),Xa([ue({attribute:!1})],Za.prototype,"country",void 0),Xa([ue({attribute:!0})],Za.prototype,"leadSourceClient",void 0),Xa([ue({attribute:!0})],Za.prototype,"leadSourceMultitouchClient",void 0),Xa([ue({attribute:!0})],Za.prototype,"featureFlagShowDropdown",void 0),Xa([ue()],Za.prototype,"privatePolicyUrl",void 0),Xa([ue()],Za.prototype,"termsOfServiceUrl",void 0),Xa([de()],Za.prototype,"firstName",void 0),Xa([de()],Za.prototype,"lastName",void 0),Xa([de()],Za.prototype,"email",void 0),Xa([de()],Za.prototype,"phoneNumber",void 0),Xa([de()],Za.prototype,"phoneNumberE164",void 0),Xa([de()],Za.prototype,"phoneCountry",void 0),Xa([de()],Za.prototype,"message",void 0),Xa([ce("me-select#leadSource")],Za.prototype,"selectedLeadSource",void 0),Xa([ue({attribute:!0})],Za.prototype,"currentLeadSource",void 0),Xa([de()],Za.prototype,"hasNameError",void 0),Xa([de()],Za.prototype,"hasEmailError",void 0),Xa([de()],Za.prototype,"hasPhoneNumberError",void 0),Xa([de()],Za.prototype,"hasMessageError",void 0),Xa([de()],Za.prototype,"hasSubmittedForm",void 0),Xa([de()],Za.prototype,"windowHeight",void 0),Xa([de()],Za.prototype,"hasSubmissionError",void 0),Xa([de()],Za.prototype,"isSubmitting",void 0),Za=Xa([se("email-us-window")],Za);const Ja=async(e,t,n,i,o,a,s,l,u,d,c)=>{const h=new URLSearchParams(window.location.search),p={email_address:n,building_id:a,lead_sources:u,first_message:o,first_name:e,last_name:t,phone_number:i,referrer:document.referrer,query_params:Object.fromEntries(h.entries()),conversation_tracking_id:d,lead_sources_with_timestamps:(null!=c?c:[]).map(e=>Er({...e}))};Co("emailUsSubmitted",{firstName:e,lastName:t,email:n,phone:i,message:o,originatingSource:u.find(e=>"property-website"!==e)||null,conversationTrackingId:null!=d?d:null}),await r().post("https://app.meetelise.com/platformApi/state/create/emailMe",p,{headers:{"building-slug":l,"org-slug":s,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})},es=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
3123
|
+
`,Oe],Xa([ue({attribute:!1})],Za.prototype,"leadSources",void 0),Xa([ue({attribute:!1})],Za.prototype,"onCloseClicked",void 0),Xa([ue({attribute:!0})],Za.prototype,"chatId",void 0),Xa([ue({attribute:!1})],Za.prototype,"buildingId",void 0),Xa([ue({attribute:!0})],Za.prototype,"buildingSlug",void 0),Xa([ue({attribute:!0})],Za.prototype,"orgSlug",void 0),Xa([ue({attribute:!0})],Za.prototype,"buildingName",void 0),Xa([ue({attribute:!0})],Za.prototype,"orgLegalName",void 0),Xa([ue({attribute:!1})],Za.prototype,"country",void 0),Xa([ue({attribute:!0})],Za.prototype,"leadSourceClient",void 0),Xa([ue({attribute:!0})],Za.prototype,"leadSourceMultitouchClient",void 0),Xa([ue({attribute:!0})],Za.prototype,"featureFlagShowDropdown",void 0),Xa([ue()],Za.prototype,"privatePolicyUrl",void 0),Xa([ue()],Za.prototype,"termsOfServiceUrl",void 0),Xa([de()],Za.prototype,"firstName",void 0),Xa([de()],Za.prototype,"lastName",void 0),Xa([de()],Za.prototype,"email",void 0),Xa([de()],Za.prototype,"phoneNumber",void 0),Xa([de()],Za.prototype,"phoneNumberE164",void 0),Xa([de()],Za.prototype,"phoneCountry",void 0),Xa([de()],Za.prototype,"message",void 0),Xa([ce("me-select#leadSource")],Za.prototype,"selectedLeadSource",void 0),Xa([ue({attribute:!0})],Za.prototype,"currentLeadSource",void 0),Xa([de()],Za.prototype,"hasNameError",void 0),Xa([de()],Za.prototype,"hasEmailError",void 0),Xa([de()],Za.prototype,"hasPhoneNumberError",void 0),Xa([de()],Za.prototype,"hasMessageError",void 0),Xa([de()],Za.prototype,"hasSubmittedForm",void 0),Xa([de()],Za.prototype,"windowHeight",void 0),Xa([de()],Za.prototype,"hasSubmissionError",void 0),Xa([de()],Za.prototype,"isSubmitting",void 0),Za=Xa([se("email-us-window")],Za);const Ja=async(e,t,n,i,o,a,s,l,u,d,c)=>{const h=new URLSearchParams(window.location.search),p={email_address:n,building_id:a,lead_sources:u,first_message:o,first_name:e,last_name:t,phone_number:i,referrer:document.referrer,query_params:Object.fromEntries(h.entries()),conversation_tracking_id:d,lead_sources_with_timestamps:(null!=c?c:[]).map(e=>Er({...e}))};Co("emailUsSubmitted",{firstName:e,lastName:t,email:n,phone:i,message:o,originatingSource:u.find(e=>"property-website"!==e)||null,conversationTrackingId:null!=d?d:null}),await r().post("https://app.meetelise.com/platformApi/state/create/emailMe",p,{headers:{"building-slug":l,"org-slug":s,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})},es=(e="white")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
3106
3124
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.95487 2.54301e-07H7.04513C8.51534 -1.22821e-05 9.67985 -2.22686e-05 10.5912 0.121084C11.5292 0.24572 12.2883 0.508324 12.887 1.10005C13.4857 1.69178 13.7514 2.44211 13.8775 3.36914C14 4.26992 14 5.42089 14 6.874V10.126C14 11.5791 14 12.7301 13.8775 13.6309C13.7514 14.5579 13.4857 15.3082 12.887 15.8999C12.2883 16.4917 11.5292 16.7543 10.5912 16.8789C9.67985 17 8.51534 17 7.04513 17H6.95487C5.48466 17 4.32015 17 3.40878 16.8789C2.47084 16.7543 1.71169 16.4917 1.11299 15.8999C0.514304 15.3082 0.248611 14.5579 0.122508 13.6309C-2.25306e-05 12.7301 -1.24266e-05 11.5791 2.57292e-07 10.126V6.87399C-1.24266e-05 5.42088 -2.25306e-05 4.26992 0.122508 3.36914C0.248611 2.44211 0.514304 1.69178 1.11299 1.10005C1.71169 0.508324 2.47084 0.24572 3.40878 0.121084C4.32015 -2.22686e-05 5.48466 -1.22821e-05 6.95487 2.54301e-07ZM2.85118 1.44157C2.45996 1.55714 2.18378 1.71904 1.96152 1.93871C1.62295 2.27335 1.42002 2.73167 1.31181 3.52718C1.20127 4.33975 1.2 5.41089 1.2 6.9186V10.0814C1.2 11.5891 1.20127 12.6602 1.31181 13.4728C1.42002 14.2683 1.62295 14.7267 1.96152 15.0613C2.30009 15.3959 2.76381 15.5965 3.56868 15.7034C4.39081 15.8127 5.47454 15.814 7 15.814C8.52546 15.814 9.60919 15.8127 10.4313 15.7034C11.2362 15.5965 11.6999 15.3959 12.0385 15.0613C12.377 14.7267 12.58 14.2683 12.6882 13.4728C12.7987 12.6602 12.8 11.5891 12.8 10.0814V6.9186C12.8 5.41089 12.7987 4.33975 12.6882 3.52718C12.58 2.73167 12.377 2.27335 12.0385 1.93871C11.8162 1.71905 11.54 1.55714 11.1488 1.44157C10.6194 2.22728 10.2493 2.77349 9.69896 3.1115C9.58916 3.17894 9.47507 3.23928 9.3574 3.29217C8.76366 3.55903 8.09363 3.55868 7.12834 3.55818C7.08613 3.55816 7.04336 3.55814 7 3.55814C6.95664 3.55814 6.91387 3.55816 6.87166 3.55818C5.90637 3.55868 5.23634 3.55903 4.6426 3.29217C4.52493 3.23928 4.41084 3.17894 4.30104 3.1115C3.75069 2.77349 3.38057 2.22729 2.85118 1.44157ZM4.16103 1.2383C4.51629 1.74715 4.70232 1.96157 4.9344 2.10411C5.00028 2.14457 5.06873 2.18078 5.13933 2.21251C5.46646 2.35954 5.85406 2.37209 7 2.37209C8.14594 2.37209 8.53354 2.35954 8.86066 2.21251C8.93127 2.18078 8.99972 2.14457 9.0656 2.10411C9.29768 1.96157 9.48371 1.74715 9.83897 1.2383C9.10278 1.18681 8.18457 1.18605 7 1.18605C5.81543 1.18605 4.89722 1.18681 4.16103 1.2383ZM4 14.0349C4 13.7074 4.26863 13.4419 4.6 13.4419H9.4C9.73137 13.4419 10 13.7074 10 14.0349C10 14.3624 9.73137 14.6279 9.4 14.6279H4.6C4.26863 14.6279 4 14.3624 4 14.0349Z" fill="${e}"/>
|
|
3107
3125
|
</svg>`,ts={},ns=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],is=async e=>{const t=await(async e=>{if(ts[e])return ts[e];const t=`https://app.meetelise.com/platformApi/connectors/talk_js/leasing_office_hours/${e}`,n=await r().get(t);return ts[e]=n.data,n.data})(e);return ns.map(e=>{const n=t[e];return n?{dayOfWeek:e,startTime:n.start,endTime:n.end}:e})};var rs=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 os=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.phoneNumberToCall="",this.phoneNumberToText="",this.buildingId=0,this.buildingName="",this.chatCallUsHeader="",this.hasCallUsEnabled="",this.hasTextUsEnabled="",this.currentLeadSource="",this.orgLegalName="",this.country=null,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.phoneNumberInputRef=Ee(),this.hasSubmittedForm=!1,this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.submittingTextUsOption=!1,this.officeHoursTextInfo=[],this.firstUpdated=async()=>{this.buildingId&&this.hasCallUsEnabled&&(this.officeHoursTextInfo=await is(this.buildingId))},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 R`<a href="tel:${i}"
|
|
3108
3126
|
>${e}</a
|
|
@@ -3196,6 +3214,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3196
3214
|
<div id="text-us-container-focus" class="text-us-wrapper">
|
|
3197
3215
|
<div class="text-us-window__vertical-spacer"></div>
|
|
3198
3216
|
<svg
|
|
3217
|
+
aria-hidden="true"
|
|
3218
|
+
focusable="false"
|
|
3199
3219
|
width="20"
|
|
3200
3220
|
height="20"
|
|
3201
3221
|
viewBox="0 0 20 20"
|
|
@@ -3669,11 +3689,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3669
3689
|
margin: 2px 0;
|
|
3670
3690
|
}
|
|
3671
3691
|
}
|
|
3672
|
-
`;class ls{constructor(e={}){var t,n,i,r,o,a;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.description=null!==(n=e.description)&&void 0!==n?n:"",this.type=null!==(i=e.type)&&void 0!==i?i:"",this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.rentFrequency=null!==(o=e.rentFrequency)&&void 0!==o?o:"monthly",this.available=null!==(a=e.available)&&void 0!==a&&a,this.reservedUntil=e.reservedUntil?new Date(e.reservedUntil):void 0}}class us{constructor(e={}){var t,n,i,r,o;this.description=null!==(t=e.description)&&void 0!==t?t:"",this.type=null!==(n=e.type)&&void 0!==n?n:"",this.minAvailableItem=e.minAvailableItem?new ls(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new ls(e.maxAvailableItem):void 0,this.allItems=(null!==(i=e.allItems)&&void 0!==i?i:[]).map(e=>new ls(e)),this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.priceDescription=null!==(o=e.priceDescription)&&void 0!==o?o:""}get displayName(){return this.description}get itemDescription(){return this.description}}var ds,cs;!function(e){e.NEVER="NEVER",e.AS_NEEDED="AS_NEEDED",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(ds||(ds={})),function(e){e.Rent="Rent",e.Utility="Utility",e.ApplicationFee="ApplicationFee",e.Parking="Parking",e.Insurance="Insurance",e.Storage="Storage",e.PetFee="PetFee",e.PetRent="PetRent",e.PetDeposit="PetDeposit",e.SecurityDeposit="SecurityDeposit",e.MoveInFee="MoveInFee",e.Other="Other"}(cs||(cs={}));class hs{constructor(e={}){var t,n,i,r,o,a,s,l,u;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.building_id=e.building_id,this.fee_name=null!==(n=e.fee_name)&&void 0!==n?n:"",this.amount=e.amount,this.amount_display=null!==(i=e.amount_display)&&void 0!==i?i:"",this.min_estimate=e.min_estimate,this.max_estimate=e.max_estimate,this.percent_rent=e.percent_rent,this.percent_rent_min=e.percent_rent_min,this.percent_rent_max=e.percent_rent_max,this.frequency=null!==(r=e.frequency)&&void 0!==r?r:ds.ONE_TIME,this.category=null!==(o=e.category)&&void 0!==o?o:cs.Other,this.description=e.description,this.additional_info=e.additional_info,this.refundable=null!==(a=e.refundable)&&void 0!==a&&a,this.hidden_reason=e.hidden_reason,this.unit_ids=e.unit_ids,this.layout_ids=e.layout_ids,this.public_facing=null===(s=e.public_facing)||void 0===s||s,this.per_applicant=null!==(l=e.per_applicant)&&void 0!==l&&l,this.required_for_quotes=null!==(u=e.required_for_quotes)&&void 0!==u&&u,this.charge_code=e.charge_code,this.bundle_key=e.bundle_key,this.external_key=e.external_key}get displayFrequency(){return this.frequency.replace(/_/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}get isOptional(){return!this.required_for_quotes}}const ps=class{constructor(){this.params=new URLSearchParams}addSingle(e,t){return t?(this.params.append(e,t),this):this}addArray(e,t){return t?(t.forEach(t=>{t&&this.params.append(`${e}[]`,t)}),this):this}build(){return this.params.toString()?`?${this.params.toString()}`:""}},fs=$r,gs=e=>new hs(e),ms=e=>new us(e),ys=async(e,t)=>{try{const n=(new ps).addArray("layout_ids",null==t?void 0:t.map(e=>e.toString())),i=await r().get(`${fs}/platformApi/webchat/${e}/marketable-fees?${n.build()}`);if(i.data){const e=Ar(i.data);return{fees:e.fees.map(gs),rentableItems:e.rentableItems.map(ms),buildingIncentives:e.buildingIncentives}}}catch(t){jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t}})}return{fees:[],rentableItems:[],buildingIncentives:[]}},bs=-1,vs=$r,ws=async({buildingSlug:e,unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a},s)=>{try{const l=await r().post(`${vs}/platformApi/webchat/${e}/quote/calculate`,Er({unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a}),{signal:s});if(l.data){return Ar(l.data)}}catch(t){"ERR_CANCELED"!==t.code&&jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t}})}return{quote:{}}},Cs=(e="black")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
3692
|
+
`;class ls{constructor(e={}){var t,n,i,r,o,a;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.description=null!==(n=e.description)&&void 0!==n?n:"",this.type=null!==(i=e.type)&&void 0!==i?i:"",this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.rentFrequency=null!==(o=e.rentFrequency)&&void 0!==o?o:"monthly",this.available=null!==(a=e.available)&&void 0!==a&&a,this.reservedUntil=e.reservedUntil?new Date(e.reservedUntil):void 0}}class us{constructor(e={}){var t,n,i,r,o;this.description=null!==(t=e.description)&&void 0!==t?t:"",this.type=null!==(n=e.type)&&void 0!==n?n:"",this.minAvailableItem=e.minAvailableItem?new ls(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new ls(e.maxAvailableItem):void 0,this.allItems=(null!==(i=e.allItems)&&void 0!==i?i:[]).map(e=>new ls(e)),this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.priceDescription=null!==(o=e.priceDescription)&&void 0!==o?o:""}get displayName(){return this.description}get itemDescription(){return this.description}}var ds,cs;!function(e){e.NEVER="NEVER",e.AS_NEEDED="AS_NEEDED",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(ds||(ds={})),function(e){e.Rent="Rent",e.Utility="Utility",e.ApplicationFee="ApplicationFee",e.Parking="Parking",e.Insurance="Insurance",e.Storage="Storage",e.PetFee="PetFee",e.PetRent="PetRent",e.PetDeposit="PetDeposit",e.SecurityDeposit="SecurityDeposit",e.MoveInFee="MoveInFee",e.Other="Other"}(cs||(cs={}));class hs{constructor(e={}){var t,n,i,r,o,a,s,l,u;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.building_id=e.building_id,this.fee_name=null!==(n=e.fee_name)&&void 0!==n?n:"",this.amount=e.amount,this.amount_display=null!==(i=e.amount_display)&&void 0!==i?i:"",this.min_estimate=e.min_estimate,this.max_estimate=e.max_estimate,this.percent_rent=e.percent_rent,this.percent_rent_min=e.percent_rent_min,this.percent_rent_max=e.percent_rent_max,this.frequency=null!==(r=e.frequency)&&void 0!==r?r:ds.ONE_TIME,this.category=null!==(o=e.category)&&void 0!==o?o:cs.Other,this.description=e.description,this.additional_info=e.additional_info,this.refundable=null!==(a=e.refundable)&&void 0!==a&&a,this.hidden_reason=e.hidden_reason,this.unit_ids=e.unit_ids,this.layout_ids=e.layout_ids,this.public_facing=null===(s=e.public_facing)||void 0===s||s,this.per_applicant=null!==(l=e.per_applicant)&&void 0!==l&&l,this.required_for_quotes=null!==(u=e.required_for_quotes)&&void 0!==u&&u,this.charge_code=e.charge_code,this.bundle_key=e.bundle_key,this.external_key=e.external_key}get displayFrequency(){return this.frequency.replace(/_/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}get isOptional(){return!this.required_for_quotes}}const ps=class{constructor(){this.params=new URLSearchParams}addSingle(e,t){return t?(this.params.append(e,t),this):this}addArray(e,t){return t?(t.forEach(t=>{t&&this.params.append(`${e}[]`,t)}),this):this}build(){return this.params.toString()?`?${this.params.toString()}`:""}},fs=$r,gs=e=>new hs(e),ms=e=>new us(e),ys=async(e,t)=>{try{const n=(new ps).addArray("layout_ids",null==t?void 0:t.map(e=>e.toString())),i=await r().get(`${fs}/platformApi/webchat/${e}/marketable-fees?${n.build()}`);if(i.data){const e=Ar(i.data);return{fees:e.fees.map(gs),rentableItems:e.rentableItems.map(ms),buildingIncentives:e.buildingIncentives}}}catch(t){jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t}})}return{fees:[],rentableItems:[],buildingIncentives:[]}},bs=-1,vs=$r,ws=async({buildingSlug:e,unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a},s)=>{try{const l=await r().post(`${vs}/platformApi/webchat/${e}/quote/calculate`,Er({unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a}),{signal:s});if(l.data){return Ar(l.data)}}catch(t){"ERR_CANCELED"!==t.code&&jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t}})}return{quote:{}}},Cs=(e="black")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
3673
3693
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${e}" stroke-width="2.13401"/>
|
|
3674
3694
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${e}" stroke-width="2.13401"/>
|
|
3675
3695
|
</svg>`,xs=$r,$s=async({buildingSlug:e,numBedrooms:t,moveInDateString:n,leaseTerm:i})=>{try{const a=(({numBedrooms:e,moveInDateString:t,leaseTerm:n})=>{const i=new ps;return i.addArray("num_bedrooms",null==e?void 0:e.map(e=>e.toString())).addSingle("move_in_date_earliest",t).addSingle("move_in_date_latest",t).addSingle("lease_term_min",null==n?void 0:n.toString()),i.build()})({numBedrooms:t,moveInDateString:n,leaseTerm:i}),s=await r().get(`${xs}/platformApi/webchat/${e}/units${a}`);if(s.data){const e=Ar(s.data);return o=e.map(e=>({...e,id:parseInt(e.id.toString().substring(1))})),[...o].sort((e,t)=>e.startingPrice-t.startingPrice||e.id-t.id)}}catch(r){jo({logType:Bo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:r,params:{numBedrooms:t,moveInDateString:n,leaseTerm:i}}})}var o;return[]},Ss=({color:e="#347FF7",size:t=24}={})=>B`
|
|
3676
|
-
<svg width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3696
|
+
<svg aria-hidden="true" focusable="false" width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3677
3697
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
3678
3698
|
<path id="Vector" d="M3 12.5C3 13.6819 3.23279 14.8522 3.68508 15.9442C4.13738 17.0361 4.80031 18.0282 5.63604 18.864C6.47177 19.6997 7.46392 20.3626 8.55585 20.8149C9.64778 21.2672 10.8181 21.5 12 21.5C13.1819 21.5 14.3522 21.2672 15.4442 20.8149C16.5361 20.3626 17.5282 19.6997 18.364 18.864C19.1997 18.0282 19.8626 17.0361 20.3149 15.9442C20.7672 14.8522 21 13.6819 21 12.5C21 11.3181 20.7672 10.1478 20.3149 9.05585C19.8626 7.96392 19.1997 6.97177 18.364 6.13604C17.5282 5.30031 16.5361 4.63738 15.4442 4.18508C14.3522 3.73279 13.1819 3.5 12 3.5C10.8181 3.5 9.64778 3.73279 8.55585 4.18508C7.46392 4.63738 6.47177 5.30031 5.63604 6.13604C4.80031 6.97177 4.13738 7.96392 3.68508 9.05585C3.23279 10.1478 3 11.3181 3 12.5Z" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3679
3699
|
<path id="Vector_2" d="M14.8 9.50016C14.6188 9.18592 14.3557 8.92686 14.0386 8.75071C13.7215 8.57456 13.3625 8.48795 13 8.50016H11C10.4696 8.50016 9.96086 8.71087 9.58579 9.08594C9.21071 9.46102 9 9.96972 9 10.5002C9 11.0306 9.21071 11.5393 9.58579 11.9144C9.96086 12.2894 10.4696 12.5002 11 12.5002H13C13.5304 12.5002 14.0391 12.7109 14.4142 13.0859C14.7893 13.461 15 13.9697 15 14.5002C15 15.0306 14.7893 15.5393 14.4142 15.9144C14.0391 16.2894 13.5304 16.5002 13 16.5002H11C10.6375 16.5124 10.2785 16.4258 9.96142 16.2496C9.64435 16.0735 9.38115 15.8144 9.2 15.5002" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -5313,9 +5333,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5313
5333
|
justify-content: center;
|
|
5314
5334
|
align-items: center;
|
|
5315
5335
|
}
|
|
5316
|
-
`,Sl=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
5336
|
+
`,Sl=(e="white")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
5317
5337
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46964 0.488343H9.53036C10.898 0.488331 11.9813 0.488321 12.829 0.602304C13.7015 0.719609 14.4077 0.966767 14.9647 1.52369C15.5216 2.08061 15.7687 2.78681 15.886 3.65932C16 4.50711 16 5.59038 16 6.95802V7.04198C16 8.40962 16 9.49289 15.886 10.3407C15.7687 11.2132 15.5216 11.9194 14.9647 12.4763C14.4077 13.0332 13.7015 13.2804 12.829 13.3977C11.9813 13.5117 10.898 13.5117 9.53035 13.5117H6.46965C5.10201 13.5117 4.01875 13.5117 3.17096 13.3977C2.29846 13.2804 1.59227 13.0332 1.03534 12.4763C0.478423 11.9194 0.231266 11.2132 0.113961 10.3407C-2.09587e-05 9.49289 -1.15596e-05 8.40962 2.39342e-07 7.04198V6.95801C-1.15596e-05 5.59037 -2.09587e-05 4.50711 0.113961 3.65932C0.231266 2.78681 0.478423 2.08061 1.03534 1.52369C1.59227 0.966767 2.29846 0.719609 3.17096 0.602304C4.01875 0.488321 5.10201 0.488331 6.46964 0.488343ZM3.3197 1.70863C2.57098 1.8093 2.13962 1.99807 1.82467 2.31302C1.50973 2.62797 1.32095 3.05934 1.22029 3.80806C1.11746 4.57283 1.11628 5.58096 1.11628 7C1.11628 8.41903 1.11746 9.42716 1.22029 10.1919C1.32095 10.9407 1.50973 11.372 1.82467 11.687C2.13962 12.0019 2.57098 12.1907 3.3197 12.2914C4.08447 12.3942 5.0926 12.3954 6.51163 12.3954H9.48837C10.9074 12.3954 11.9155 12.3942 12.6803 12.2914C13.429 12.1907 13.8604 12.0019 14.1753 11.687C14.4903 11.372 14.6791 10.9407 14.7797 10.1919C14.8825 9.42716 14.8837 8.41903 14.8837 7C14.8837 5.58096 14.8825 4.57283 14.7797 3.80806C14.6791 3.05934 14.4903 2.62797 14.1753 2.31302C13.8604 1.99807 13.429 1.8093 12.6803 1.70863C11.9155 1.60581 10.9074 1.60463 9.48837 1.60463H6.51163C5.0926 1.60463 4.08448 1.60581 3.3197 1.70863ZM3.10611 3.66593C3.30345 3.42912 3.65539 3.39713 3.8922 3.59446L5.49882 4.93332C6.19311 5.5119 6.67515 5.9123 7.08211 6.17404C7.47605 6.42741 7.7432 6.51246 8 6.51246C8.2568 6.51246 8.52395 6.42741 8.91789 6.17404C9.32485 5.9123 9.80689 5.5119 10.5012 4.93332L12.1078 3.59446C12.3446 3.39713 12.6966 3.42912 12.8939 3.66593C13.0912 3.90273 13.0592 4.25468 12.8224 4.45202L11.1878 5.81419C10.5282 6.36389 9.99359 6.80943 9.52173 7.11291C9.0302 7.42904 8.5515 7.62875 8 7.62875C7.4485 7.62875 6.9698 7.42904 6.47827 7.11291C6.00641 6.80943 5.47179 6.36389 4.81218 5.81419L3.17757 4.45202C2.94077 4.25468 2.90877 3.90273 3.10611 3.66593Z" fill="${e}"/>
|
|
5318
|
-
</svg>`,Al=(e="black")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
5338
|
+
</svg>`,Al=(e="black")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
5319
5339
|
<path d="M15.6825 6.11855H0.00653076C0.0588276 4.00052 1.79117 2.30087 3.92226 2.30087H4.41255V3.6083C4.41255 3.88285 4.63481 4.09858 4.90283 4.09858C5.17085 4.09858 5.39311 3.88285 5.39311 3.6083V2.30087H10.2959V3.6083C10.2959 3.88285 10.5182 4.09858 10.7862 4.09858C11.0542 4.09858 11.2765 3.88285 11.2765 3.6083V2.30087H11.7668C13.8979 2.30087 15.6302 4.00052 15.6825 6.11855Z" fill="${e}"/>
|
|
5320
5340
|
<path d="M15.0641 7.39731V14.0677C15.0641 15.8922 13.5861 17.365 11.7668 17.365H3.92227C2.10298 17.365 0.625 15.8922 0.625 14.0677V7.39731H15.0641Z" fill="transparent" stroke="${e}" stroke-width="1.25"/>
|
|
5321
5341
|
<path d="M4.90283 1V2.30742" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -5324,13 +5344,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5324
5344
|
<path d="M15.689 6.11862V6.22322C15.689 6.19053 15.689 6.15131 15.6825 6.11862H15.689Z" fill="white"/>
|
|
5325
5345
|
<path d="M4.74594 11.9562L6.56326 13.7735C6.8182 14.0285 7.23004 14.0285 7.48499 13.7735L10.9366 10.3219" stroke="${e}" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
5326
5346
|
</svg>`,El=(e="white")=>B`
|
|
5327
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
5347
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
5328
5348
|
<path
|
|
5329
5349
|
fill-rule="evenodd"
|
|
5330
5350
|
clip-rule="evenodd"
|
|
5331
5351
|
d="M6.64026 0.25H8.8598C10.0157 0.249995 10.9219 0.249992 11.6459 0.318826C12.3838 0.388987 12.988 0.534458 13.5206 0.860861C14.0784 1.20267 14.5474 1.67164 14.8892 2.22942C15.2156 2.76206 15.3611 3.36627 15.4312 4.10419C15.5001 4.82813 15.5001 5.73432 15.5001 6.89025V7.65964C15.5001 8.48243 15.5001 9.12755 15.4645 9.64868C15.4283 10.1789 15.3535 10.6202 15.1845 11.0283C14.7638 12.044 13.9568 12.851 12.9411 13.2717C12.3607 13.5121 11.6997 13.5654 10.7947 13.581C10.4782 13.5865 10.2777 13.5905 10.1248 13.6074C9.98202 13.6232 9.92665 13.6464 9.89426 13.6652C9.86008 13.6851 9.81351 13.7213 9.73267 13.8323C9.64518 13.9523 9.54632 14.1182 9.38955 14.3831L8.99874 15.0433C8.44104 15.9856 7.05899 15.9856 6.5013 15.0433L6.11048 14.3831C5.95371 14.1182 5.85485 13.9523 5.76736 13.8323C5.68652 13.7213 5.63995 13.6851 5.60577 13.6652C5.57338 13.6464 5.51801 13.6232 5.37519 13.6074C5.22235 13.5905 5.02184 13.5865 4.70528 13.581C3.80031 13.5654 3.13933 13.5121 2.559 13.2717C1.54327 12.851 0.736277 12.044 0.315547 11.0283C0.146515 10.6202 0.0717299 10.1789 0.0355529 9.64868C-4.05001e-06 9.12754 -2.20251e-06 8.48243 1.60891e-07 7.65963L7.4949e-08 6.89026C-4.52294e-06 5.73432 -8.08928e-06 4.82814 0.0688256 4.10419C0.138987 3.36627 0.284458 2.76206 0.610861 2.22942C0.95267 1.67164 1.42164 1.20267 1.97942 0.860861C2.51206 0.534458 3.11627 0.388987 3.85419 0.318826C4.57814 0.249992 5.48432 0.249995 6.64026 0.25ZM3.95654 1.39537C3.29779 1.458 2.87862 1.57812 2.54445 1.78291C2.13217 2.03555 1.78555 2.38217 1.53291 2.79445C1.32812 3.12862 1.208 3.54779 1.14537 4.20654C1.08197 4.87334 1.0814 5.7282 1.0814 6.91863V7.63956C1.0814 8.48674 1.08169 9.09505 1.11444 9.57507C1.14686 10.0502 1.20927 10.3601 1.31463 10.6144C1.6256 11.3652 2.22208 11.9617 2.97284 12.2726C3.34458 12.4266 3.81883 12.4842 4.72391 12.4998L4.74685 12.5002C5.03378 12.5051 5.28522 12.5094 5.49421 12.5326C5.71878 12.5574 5.9384 12.6077 6.14946 12.7304C6.35874 12.8522 6.50969 13.0148 6.64128 13.1953C6.76287 13.3622 6.88783 13.5733 7.02936 13.8124L7.4319 14.4925C7.57086 14.7273 7.92917 14.7273 8.06813 14.4925L8.47067 13.8124C8.6122 13.5733 8.73716 13.3622 8.85875 13.1953C8.99034 13.0148 9.14129 12.8522 9.35057 12.7304C9.56163 12.6077 9.78126 12.5574 10.0058 12.5326C10.2148 12.5094 10.4662 12.5051 10.7532 12.5002L10.7761 12.4998C11.6812 12.4842 12.1555 12.4266 12.5272 12.2726C13.278 11.9617 13.8745 11.3652 14.1854 10.6144C14.2908 10.3601 14.3532 10.0502 14.3856 9.57507C14.4184 9.09505 14.4187 8.48674 14.4187 7.63956V6.91863C14.4187 5.7282 14.4181 4.87334 14.3547 4.20654C14.2921 3.54779 14.1719 3.12862 13.9672 2.79445C13.7145 2.38217 13.3679 2.03555 12.9556 1.78291C12.6214 1.57812 12.2023 1.458 11.5435 1.39537C10.8767 1.33197 10.0219 1.3314 8.83143 1.3314H6.66863C5.4782 1.3314 4.62334 1.33197 3.95654 1.39537ZM7.75003 3.85467C8.04865 3.85467 8.29073 4.09674 8.29073 4.39536V10.1628C8.29073 10.4614 8.04865 10.7035 7.75003 10.7035C7.45141 10.7035 7.20933 10.4614 7.20933 10.1628V4.39536C7.20933 4.09674 7.45141 3.85467 7.75003 3.85467ZM4.8663 5.29653C5.16492 5.29653 5.407 5.53861 5.407 5.83723V8.72096C5.407 9.01958 5.16492 9.26166 4.8663 9.26166C4.56768 9.26166 4.3256 9.01958 4.3256 8.72096V5.83723C4.3256 5.53861 4.56768 5.29653 4.8663 5.29653ZM10.6338 5.29653C10.9324 5.29653 11.1745 5.53861 11.1745 5.83723V8.72096C11.1745 9.01958 10.9324 9.26166 10.6338 9.26166C10.3351 9.26166 10.0931 9.01958 10.0931 8.72096V5.83723C10.0931 5.53861 10.3351 5.29653 10.6338 5.29653Z"
|
|
5332
5352
|
fill="${e}"/>
|
|
5333
|
-
</svg>`,Tl=(e="white")=>B`<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5353
|
+
</svg>`,Tl=(e="white")=>B`<svg aria-hidden="true" focusable="false" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5334
5354
|
<g clip-path="url(#clip0_18382_27345)">
|
|
5335
5355
|
<g clip-path="url(#clip1_18382_27345)">
|
|
5336
5356
|
<path d="M9.91666 0.625V3.45833C9.91666 3.6462 9.99128 3.82636 10.1241 3.9592C10.257 4.09204 10.4371 4.16667 10.625 4.16667H13.4583" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -5349,6 +5369,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5349
5369
|
</svg>
|
|
5350
5370
|
`,kl=(e="white",t=20,n=-2)=>B`
|
|
5351
5371
|
<svg
|
|
5372
|
+
aria-hidden="true"
|
|
5373
|
+
focusable="false"
|
|
5352
5374
|
width="${t}"
|
|
5353
5375
|
height="${t}"
|
|
5354
5376
|
viewBox="0 0 20 20"
|
|
@@ -5452,7 +5474,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5452
5474
|
</li>
|
|
5453
5475
|
`}
|
|
5454
5476
|
</ul>
|
|
5455
|
-
</div>`}};Ol.styles=[$l],_l([ue({attribute:!0})],Ol.prototype,"onClickMinimize",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickEmailOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickPhoneOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickSSTOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickApplyNowOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickPriceCalculatorOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onChatTapped",void 0),_l([ue({attribute:!0})],Ol.prototype,"hideChat",void 0),_l([ue({attribute:!0})],Ol.prototype,"isMobileDesign",void 0),_l([ue({attribute:!0})],Ol.prototype,"primaryColor",void 0),_l([ue({attribute:!0})],Ol.prototype,"backgroundColor",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasChatEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasEmailEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasCallUsEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasTextUsEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasSSTEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasApplyNowEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasPricingCalculatorEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"applicationLink",void 0),_l([ue({attribute:!0})],Ol.prototype,"overrideRentgrata",void 0),_l([ue({attribute:!0})],Ol.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Ol=_l([se("mobile-launcher")],Ol);const Pl=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5477
|
+
</div>`}};Ol.styles=[$l],_l([ue({attribute:!0})],Ol.prototype,"onClickMinimize",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickEmailOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickPhoneOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickSSTOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickApplyNowOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onClickPriceCalculatorOption",void 0),_l([ue({attribute:!0})],Ol.prototype,"onChatTapped",void 0),_l([ue({attribute:!0})],Ol.prototype,"hideChat",void 0),_l([ue({attribute:!0})],Ol.prototype,"isMobileDesign",void 0),_l([ue({attribute:!0})],Ol.prototype,"primaryColor",void 0),_l([ue({attribute:!0})],Ol.prototype,"backgroundColor",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasChatEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasEmailEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasCallUsEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasTextUsEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasSSTEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasApplyNowEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"hasPricingCalculatorEnabled",void 0),_l([ue({attribute:!0})],Ol.prototype,"applicationLink",void 0),_l([ue({attribute:!0})],Ol.prototype,"overrideRentgrata",void 0),_l([ue({attribute:!0})],Ol.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Ol=_l([se("mobile-launcher")],Ol);const Pl=(e="white")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5456
5478
|
<path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5457
5479
|
</svg>`;var Il=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 Nl=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=qn,this.toExpand=!1}render(){return R`
|
|
5458
5480
|
<div class=${"button-container"} @click=${this.onClick}>
|
|
@@ -5460,7 +5482,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5460
5482
|
class="inner-container"
|
|
5461
5483
|
style=${Vn({background:this.primaryColor})}
|
|
5462
5484
|
>
|
|
5463
|
-
${this.toExpand?Pl("black"):((e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5485
|
+
${this.toExpand?Pl("black"):((e="white")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5464
5486
|
<path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5465
5487
|
</svg>`)("black")}
|
|
5466
5488
|
</div>
|
|
@@ -5489,7 +5511,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5489
5511
|
.button-container:hover {
|
|
5490
5512
|
filter: brightness(90%);
|
|
5491
5513
|
}
|
|
5492
|
-
`],Il([ue({attribute:!0})],Nl.prototype,"onClick",void 0),Il([ue({attribute:!0})],Nl.prototype,"primaryColor",void 0),Il([ue({attribute:!0})],Nl.prototype,"toExpand",void 0),Nl=Il([se("collapse-expand-button")],Nl);const Ml=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.openWidget()},Dl=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.close()},Ll=()=>!!window.rentgrata;var Ul=n(3950),Rl=n.n(Ul);const Bl=(e="black")=>B`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5514
|
+
`],Il([ue({attribute:!0})],Nl.prototype,"onClick",void 0),Il([ue({attribute:!0})],Nl.prototype,"primaryColor",void 0),Il([ue({attribute:!0})],Nl.prototype,"toExpand",void 0),Nl=Il([se("collapse-expand-button")],Nl);const Ml=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.openWidget()},Dl=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.close()},Ll=()=>!!window.rentgrata;var Ul=n(3950),Rl=n.n(Ul);const Bl=(e="black")=>B`<svg aria-hidden="true" focusable="false" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5493
5515
|
<path d="M6 6C7.65685 6 9 4.65685 9 3C9 1.34315 7.65685 0 6 0C4.34315 0 3 1.34315 3 3C3 4.65685 4.34315 6 6 6ZM8 3C8 4.10457 7.10457 5 6 5C4.89543 5 4 4.10457 4 3C4 1.89543 4.89543 1 6 1C7.10457 1 8 1.89543 8 3Z" fill="${e}"/>
|
|
5494
5516
|
<path d="M12 11C12 12 11 12 11 12H1C1 12 0 12 0 11C0 10 1 7 6 7C11 7 12 10 12 11ZM11 10.9965C10.9986 10.7497 10.8462 10.0104 10.1679 9.33211C9.51563 8.67985 8.2891 8 5.99999 8C3.71088 8 2.48435 8.67985 1.8321 9.33211C1.15375 10.0104 1.00142 10.7497 1 10.9965H11Z" fill="${e}"/>
|
|
5495
5517
|
</svg>
|
|
@@ -6836,12 +6858,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6836
6858
|
padding-right: 28px;
|
|
6837
6859
|
}
|
|
6838
6860
|
`,Xd=(e="black")=>B`
|
|
6839
|
-
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6861
|
+
<svg aria-hidden="true" focusable="false" width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6840
6862
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
6841
6863
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
6842
6864
|
</svg>
|
|
6843
6865
|
`,Zd=(e="black")=>B`
|
|
6844
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6866
|
+
<svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6845
6867
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
6846
6868
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
6847
6869
|
</svg>
|
|
@@ -7385,6 +7407,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7385
7407
|
aria-label="Close chat"
|
|
7386
7408
|
>
|
|
7387
7409
|
<svg
|
|
7410
|
+
aria-hidden="true"
|
|
7411
|
+
focusable="false"
|
|
7388
7412
|
width="16"
|
|
7389
7413
|
height="10"
|
|
7390
7414
|
viewBox="0 0 16 10"
|
|
@@ -7410,6 +7434,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7410
7434
|
aria-label="Open chat"
|
|
7411
7435
|
>
|
|
7412
7436
|
<svg
|
|
7437
|
+
aria-hidden="true"
|
|
7438
|
+
focusable="false"
|
|
7413
7439
|
width="24"
|
|
7414
7440
|
height="24"
|
|
7415
7441
|
viewBox="0 0 24 24"
|
|
@@ -32,8 +32,6 @@ class LeadSourceClient {
|
|
|
32
32
|
|
|
33
33
|
private apiHost = "https://app.meetelise.com";
|
|
34
34
|
public leadSource: string | null = null;
|
|
35
|
-
// UTM params associated with the resolved lead source (e.g. switch_code=<code>
|
|
36
|
-
// for AMLI). Forwarded onto external tour-vendor links (e.g. Tour24).
|
|
37
35
|
public leadSourceParams: { [key: string]: string } | null = null;
|
|
38
36
|
private localStorageTTLDays = 30;
|
|
39
37
|
|
|
@@ -152,26 +150,11 @@ class LeadSourceClient {
|
|
|
152
150
|
campaign_sources: campaignSources,
|
|
153
151
|
};
|
|
154
152
|
try {
|
|
155
|
-
// Only AMLI (org 52) needs the resolved source's params forwarded to its
|
|
156
|
-
// self-guided tour vendor (Tour24); every other org uses the original
|
|
157
|
-
// endpoint that returns just the source string.
|
|
158
|
-
if (this.orgId !== 52) {
|
|
159
|
-
const response = await axios.post(
|
|
160
|
-
`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,
|
|
161
|
-
requestBody
|
|
162
|
-
);
|
|
163
|
-
return response.data;
|
|
164
|
-
}
|
|
165
153
|
const response = await axios.post(
|
|
166
|
-
`${this.apiHost}/platformApi/webchat/current-parsed-lead-source
|
|
154
|
+
`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,
|
|
167
155
|
requestBody
|
|
168
156
|
);
|
|
169
|
-
|
|
170
|
-
source: string | null;
|
|
171
|
-
utm_params: { [key: string]: string } | null;
|
|
172
|
-
};
|
|
173
|
-
this.leadSourceParams = data?.utm_params ?? null;
|
|
174
|
-
return data?.source ?? null;
|
|
157
|
+
return response.data;
|
|
175
158
|
} catch (_) {
|
|
176
159
|
return null;
|
|
177
160
|
}
|
|
@@ -36,7 +36,10 @@ import compareAsc from "date-fns/compareAsc";
|
|
|
36
36
|
import { InputStyles } from "../actions/InputStyles";
|
|
37
37
|
import { classMap } from "lit/directives/class-map.js";
|
|
38
38
|
import { FeatureFlagsShowDropdown } from "../../fetchFeatureFlag";
|
|
39
|
-
import {
|
|
39
|
+
import {
|
|
40
|
+
appendParamsToUrl,
|
|
41
|
+
getUrlQueryParameters,
|
|
42
|
+
} from "../../postLeadSources";
|
|
40
43
|
import { pushGtmEvent } from "../../gtm";
|
|
41
44
|
import formDisclaimer from "../../disclaimers";
|
|
42
45
|
import { tourSchedulerStyles } from "./tourSchedulerStyles";
|
|
@@ -79,13 +82,12 @@ export class TourScheduler extends LitElement {
|
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
// Open the configured self-guided tour (e.g. Tour24) link. For org 52 (AMLI)
|
|
82
|
-
// we
|
|
83
|
-
//
|
|
84
|
-
// link unchanged.
|
|
85
|
+
// we read URL params fresh at open-time so returning visitors (cached lead
|
|
86
|
+
// source) still get the current page's query string forwarded.
|
|
85
87
|
private openSelfGuidedTour(): void {
|
|
86
88
|
const url =
|
|
87
89
|
this.orgId === 52
|
|
88
|
-
? appendParamsToUrl(this.sgtUrl,
|
|
90
|
+
? appendParamsToUrl(this.sgtUrl, getUrlQueryParameters())
|
|
89
91
|
: this.sgtUrl;
|
|
90
92
|
window.open(url, "_blank");
|
|
91
93
|
}
|
|
@@ -1159,6 +1161,8 @@ export class TourScheduler extends LitElement {
|
|
|
1159
1161
|
aria-label="Close scheduler"
|
|
1160
1162
|
>
|
|
1161
1163
|
<svg
|
|
1164
|
+
aria-hidden="true"
|
|
1165
|
+
focusable="false"
|
|
1162
1166
|
width="19"
|
|
1163
1167
|
height="19"
|
|
1164
1168
|
viewBox="0 0 19 19"
|
|
@@ -1391,6 +1395,8 @@ export class TourScheduler extends LitElement {
|
|
|
1391
1395
|
return html`
|
|
1392
1396
|
<div id="confirmationMessage">
|
|
1393
1397
|
<svg
|
|
1398
|
+
aria-hidden="true"
|
|
1399
|
+
focusable="false"
|
|
1394
1400
|
width="20"
|
|
1395
1401
|
height="20"
|
|
1396
1402
|
viewBox="0 0 20 20"
|
|
@@ -1445,6 +1451,8 @@ export class TourScheduler extends LitElement {
|
|
|
1445
1451
|
|
|
1446
1452
|
loadingIcon(size = 21): TemplateResult {
|
|
1447
1453
|
return html` <svg
|
|
1454
|
+
aria-hidden="true"
|
|
1455
|
+
focusable="false"
|
|
1448
1456
|
id="loadingIcon"
|
|
1449
1457
|
width=${size}
|
|
1450
1458
|
height=${size}
|
|
@@ -392,6 +392,8 @@ export class CallUsWindow extends LitElement {
|
|
|
392
392
|
<div id="text-us-container-focus" class="text-us-wrapper">
|
|
393
393
|
<div class="text-us-window__vertical-spacer"></div>
|
|
394
394
|
<svg
|
|
395
|
+
aria-hidden="true"
|
|
396
|
+
focusable="false"
|
|
395
397
|
width="20"
|
|
396
398
|
height="20"
|
|
397
399
|
viewBox="0 0 20 20"
|
|
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const ApplyOutlineIcon = (
|
|
4
4
|
color = "white"
|
|
5
|
-
): SVGTemplateResult => svg`<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
6
|
<g clip-path="url(#clip0_18382_27345)">
|
|
7
7
|
<g clip-path="url(#clip1_18382_27345)">
|
|
8
8
|
<path d="M9.91666 0.625V3.45833C9.91666 3.6462 9.99128 3.82636 10.1241 3.9592C10.257 4.09204 10.4371 4.16667 10.625 4.16667H13.4583" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const BookTourOutlineIcon = (
|
|
4
4
|
color = "black"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
6
6
|
<path d="M15.6825 6.11855H0.00653076C0.0588276 4.00052 1.79117 2.30087 3.92226 2.30087H4.41255V3.6083C4.41255 3.88285 4.63481 4.09858 4.90283 4.09858C5.17085 4.09858 5.39311 3.88285 5.39311 3.6083V2.30087H10.2959V3.6083C10.2959 3.88285 10.5182 4.09858 10.7862 4.09858C11.0542 4.09858 11.2765 3.88285 11.2765 3.6083V2.30087H11.7668C13.8979 2.30087 15.6302 4.00052 15.6825 6.11855Z" fill="${color}"/>
|
|
7
7
|
<path d="M15.0641 7.39731V14.0677C15.0641 15.8922 13.5861 17.365 11.7668 17.365H3.92227C2.10298 17.365 0.625 15.8922 0.625 14.0677V7.39731H15.0641Z" fill="transparent" stroke="${color}" stroke-width="1.25"/>
|
|
8
8
|
<path d="M4.90283 1V2.30742" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svg, SVGTemplateResult } from "lit";
|
|
2
2
|
|
|
3
3
|
export const ChatOutlineIcon = (color = "white"): SVGTemplateResult => svg`
|
|
4
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
4
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
5
5
|
<path
|
|
6
6
|
fill-rule="evenodd"
|
|
7
7
|
clip-rule="evenodd"
|
|
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const ChevronLeftIcon = (
|
|
4
4
|
color = "white"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
6
6
|
<path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
7
|
</svg>`;
|
|
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const ChevronRightIcon = (
|
|
4
4
|
color = "white"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
6
6
|
<path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
7
|
</svg>`;
|
|
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const ContactResidentIcon = (
|
|
4
4
|
color = "black"
|
|
5
|
-
): SVGTemplateResult => svg`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
6
|
<path d="M6 6C7.65685 6 9 4.65685 9 3C9 1.34315 7.65685 0 6 0C4.34315 0 3 1.34315 3 3C3 4.65685 4.34315 6 6 6ZM8 3C8 4.10457 7.10457 5 6 5C4.89543 5 4 4.10457 4 3C4 1.89543 4.89543 1 6 1C7.10457 1 8 1.89543 8 3Z" fill="${color}"/>
|
|
7
7
|
<path d="M12 11C12 12 11 12 11 12H1C1 12 0 12 0 11C0 10 1 7 6 7C11 7 12 10 12 11ZM11 10.9965C10.9986 10.7497 10.8462 10.0104 10.1679 9.33211C9.51563 8.67985 8.2891 8 5.99999 8C3.71088 8 2.48435 8.67985 1.8321 9.33211C1.15375 10.0104 1.00142 10.7497 1 10.9965H11Z" fill="${color}"/>
|
|
8
8
|
</svg>
|
|
@@ -9,7 +9,7 @@ const DollarOutlineIcon = ({
|
|
|
9
9
|
color = "#347FF7",
|
|
10
10
|
size = 24,
|
|
11
11
|
}: DollarOutlineIconProps = {}): SVGTemplateResult => svg`
|
|
12
|
-
<svg width="${size}" height="${size}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<svg aria-hidden="true" focusable="false" width="${size}" height="${size}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
13
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
14
14
|
<path id="Vector" d="M3 12.5C3 13.6819 3.23279 14.8522 3.68508 15.9442C4.13738 17.0361 4.80031 18.0282 5.63604 18.864C6.47177 19.6997 7.46392 20.3626 8.55585 20.8149C9.64778 21.2672 10.8181 21.5 12 21.5C13.1819 21.5 14.3522 21.2672 15.4442 20.8149C16.5361 20.3626 17.5282 19.6997 18.364 18.864C19.1997 18.0282 19.8626 17.0361 20.3149 15.9442C20.7672 14.8522 21 13.6819 21 12.5C21 11.3181 20.7672 10.1478 20.3149 9.05585C19.8626 7.96392 19.1997 6.97177 18.364 6.13604C17.5282 5.30031 16.5361 4.63738 15.4442 4.18508C14.3522 3.73279 13.1819 3.5 12 3.5C10.8181 3.5 9.64778 3.73279 8.55585 4.18508C7.46392 4.63738 6.47177 5.30031 5.63604 6.13604C4.80031 6.97177 4.13738 7.96392 3.68508 9.05585C3.23279 10.1478 3 11.3181 3 12.5Z" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
15
|
<path id="Vector_2" d="M14.8 9.50016C14.6188 9.18592 14.3557 8.92686 14.0386 8.75071C13.7215 8.57456 13.3625 8.48795 13 8.50016H11C10.4696 8.50016 9.96086 8.71087 9.58579 9.08594C9.21071 9.46102 9 9.96972 9 10.5002C9 11.0306 9.21071 11.5393 9.58579 11.9144C9.96086 12.2894 10.4696 12.5002 11 12.5002H13C13.5304 12.5002 14.0391 12.7109 14.4142 13.0859C14.7893 13.461 15 13.9697 15 14.5002C15 15.0306 14.7893 15.5393 14.4142 15.9144C14.0391 16.2894 13.5304 16.5002 13 16.5002H11C10.6375 16.5124 10.2785 16.4258 9.96142 16.2496C9.64435 16.0735 9.38115 15.8144 9.2 15.5002" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const EmailOutlineIcon = (
|
|
4
4
|
color = "white"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
6
6
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46964 0.488343H9.53036C10.898 0.488331 11.9813 0.488321 12.829 0.602304C13.7015 0.719609 14.4077 0.966767 14.9647 1.52369C15.5216 2.08061 15.7687 2.78681 15.886 3.65932C16 4.50711 16 5.59038 16 6.95802V7.04198C16 8.40962 16 9.49289 15.886 10.3407C15.7687 11.2132 15.5216 11.9194 14.9647 12.4763C14.4077 13.0332 13.7015 13.2804 12.829 13.3977C11.9813 13.5117 10.898 13.5117 9.53035 13.5117H6.46965C5.10201 13.5117 4.01875 13.5117 3.17096 13.3977C2.29846 13.2804 1.59227 13.0332 1.03534 12.4763C0.478423 11.9194 0.231266 11.2132 0.113961 10.3407C-2.09587e-05 9.49289 -1.15596e-05 8.40962 2.39342e-07 7.04198V6.95801C-1.15596e-05 5.59037 -2.09587e-05 4.50711 0.113961 3.65932C0.231266 2.78681 0.478423 2.08061 1.03534 1.52369C1.59227 0.966767 2.29846 0.719609 3.17096 0.602304C4.01875 0.488321 5.10201 0.488331 6.46964 0.488343ZM3.3197 1.70863C2.57098 1.8093 2.13962 1.99807 1.82467 2.31302C1.50973 2.62797 1.32095 3.05934 1.22029 3.80806C1.11746 4.57283 1.11628 5.58096 1.11628 7C1.11628 8.41903 1.11746 9.42716 1.22029 10.1919C1.32095 10.9407 1.50973 11.372 1.82467 11.687C2.13962 12.0019 2.57098 12.1907 3.3197 12.2914C4.08447 12.3942 5.0926 12.3954 6.51163 12.3954H9.48837C10.9074 12.3954 11.9155 12.3942 12.6803 12.2914C13.429 12.1907 13.8604 12.0019 14.1753 11.687C14.4903 11.372 14.6791 10.9407 14.7797 10.1919C14.8825 9.42716 14.8837 8.41903 14.8837 7C14.8837 5.58096 14.8825 4.57283 14.7797 3.80806C14.6791 3.05934 14.4903 2.62797 14.1753 2.31302C13.8604 1.99807 13.429 1.8093 12.6803 1.70863C11.9155 1.60581 10.9074 1.60463 9.48837 1.60463H6.51163C5.0926 1.60463 4.08448 1.60581 3.3197 1.70863ZM3.10611 3.66593C3.30345 3.42912 3.65539 3.39713 3.8922 3.59446L5.49882 4.93332C6.19311 5.5119 6.67515 5.9123 7.08211 6.17404C7.47605 6.42741 7.7432 6.51246 8 6.51246C8.2568 6.51246 8.52395 6.42741 8.91789 6.17404C9.32485 5.9123 9.80689 5.5119 10.5012 4.93332L12.1078 3.59446C12.3446 3.39713 12.6966 3.42912 12.8939 3.66593C13.0912 3.90273 13.0592 4.25468 12.8224 4.45202L11.1878 5.81419C10.5282 6.36389 9.99359 6.80943 9.52173 7.11291C9.0302 7.42904 8.5515 7.62875 8 7.62875C7.4485 7.62875 6.9698 7.42904 6.47827 7.11291C6.00641 6.80943 5.47179 6.36389 4.81218 5.81419L3.17757 4.45202C2.94077 4.25468 2.90877 3.90273 3.10611 3.66593Z" fill="${color}"/>
|
|
7
7
|
</svg>`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svg, SVGTemplateResult } from "lit";
|
|
2
2
|
|
|
3
3
|
export const HeyThereEmoji =
|
|
4
|
-
(): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
4
|
+
(): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
5
5
|
<rect x="0.5" y="0.5" width="24" height="24" fill="url(#pattern0)"/>
|
|
6
6
|
<defs>
|
|
7
7
|
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
|
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const PhoneOutlineIcon = (
|
|
4
4
|
color = "white"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
6
6
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.95487 2.54301e-07H7.04513C8.51534 -1.22821e-05 9.67985 -2.22686e-05 10.5912 0.121084C11.5292 0.24572 12.2883 0.508324 12.887 1.10005C13.4857 1.69178 13.7514 2.44211 13.8775 3.36914C14 4.26992 14 5.42089 14 6.874V10.126C14 11.5791 14 12.7301 13.8775 13.6309C13.7514 14.5579 13.4857 15.3082 12.887 15.8999C12.2883 16.4917 11.5292 16.7543 10.5912 16.8789C9.67985 17 8.51534 17 7.04513 17H6.95487C5.48466 17 4.32015 17 3.40878 16.8789C2.47084 16.7543 1.71169 16.4917 1.11299 15.8999C0.514304 15.3082 0.248611 14.5579 0.122508 13.6309C-2.25306e-05 12.7301 -1.24266e-05 11.5791 2.57292e-07 10.126V6.87399C-1.24266e-05 5.42088 -2.25306e-05 4.26992 0.122508 3.36914C0.248611 2.44211 0.514304 1.69178 1.11299 1.10005C1.71169 0.508324 2.47084 0.24572 3.40878 0.121084C4.32015 -2.22686e-05 5.48466 -1.22821e-05 6.95487 2.54301e-07ZM2.85118 1.44157C2.45996 1.55714 2.18378 1.71904 1.96152 1.93871C1.62295 2.27335 1.42002 2.73167 1.31181 3.52718C1.20127 4.33975 1.2 5.41089 1.2 6.9186V10.0814C1.2 11.5891 1.20127 12.6602 1.31181 13.4728C1.42002 14.2683 1.62295 14.7267 1.96152 15.0613C2.30009 15.3959 2.76381 15.5965 3.56868 15.7034C4.39081 15.8127 5.47454 15.814 7 15.814C8.52546 15.814 9.60919 15.8127 10.4313 15.7034C11.2362 15.5965 11.6999 15.3959 12.0385 15.0613C12.377 14.7267 12.58 14.2683 12.6882 13.4728C12.7987 12.6602 12.8 11.5891 12.8 10.0814V6.9186C12.8 5.41089 12.7987 4.33975 12.6882 3.52718C12.58 2.73167 12.377 2.27335 12.0385 1.93871C11.8162 1.71905 11.54 1.55714 11.1488 1.44157C10.6194 2.22728 10.2493 2.77349 9.69896 3.1115C9.58916 3.17894 9.47507 3.23928 9.3574 3.29217C8.76366 3.55903 8.09363 3.55868 7.12834 3.55818C7.08613 3.55816 7.04336 3.55814 7 3.55814C6.95664 3.55814 6.91387 3.55816 6.87166 3.55818C5.90637 3.55868 5.23634 3.55903 4.6426 3.29217C4.52493 3.23928 4.41084 3.17894 4.30104 3.1115C3.75069 2.77349 3.38057 2.22729 2.85118 1.44157ZM4.16103 1.2383C4.51629 1.74715 4.70232 1.96157 4.9344 2.10411C5.00028 2.14457 5.06873 2.18078 5.13933 2.21251C5.46646 2.35954 5.85406 2.37209 7 2.37209C8.14594 2.37209 8.53354 2.35954 8.86066 2.21251C8.93127 2.18078 8.99972 2.14457 9.0656 2.10411C9.29768 1.96157 9.48371 1.74715 9.83897 1.2383C9.10278 1.18681 8.18457 1.18605 7 1.18605C5.81543 1.18605 4.89722 1.18681 4.16103 1.2383ZM4 14.0349C4 13.7074 4.26863 13.4419 4.6 13.4419H9.4C9.73137 13.4419 10 13.7074 10 14.0349C10 14.3624 9.73137 14.6279 9.4 14.6279H4.6C4.26863 14.6279 4 14.3624 4 14.0349Z" fill="${color}"/>
|
|
7
7
|
</svg>`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svg, SVGTemplateResult } from "lit";
|
|
2
2
|
|
|
3
3
|
export const SendMessageLargeIcon = (color = "black"): SVGTemplateResult => svg`
|
|
4
|
-
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<svg aria-hidden="true" focusable="false" width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
5
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${color}"/>
|
|
6
6
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${color}"/>
|
|
7
7
|
</svg>
|
|
@@ -10,7 +10,7 @@ export const SendMessageLargeIcon = (color = "black"): SVGTemplateResult => svg`
|
|
|
10
10
|
export const SendMessageMediumIcon = (
|
|
11
11
|
color = "black"
|
|
12
12
|
): SVGTemplateResult => svg`
|
|
13
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${color}"/>
|
|
15
15
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${color}"/>
|
|
16
16
|
</svg>
|
|
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
|
|
|
2
2
|
|
|
3
3
|
export const XOutlineIcon = (
|
|
4
4
|
color = "black"
|
|
5
|
-
): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
5
|
+
): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
6
6
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${color}" stroke-width="2.13401"/>
|
|
7
7
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${color}" stroke-width="2.13401"/>
|
|
8
8
|
</svg>`;
|
|
@@ -55,6 +55,8 @@ export class SimpleLauncher extends LitElement {
|
|
|
55
55
|
aria-label="Close chat"
|
|
56
56
|
>
|
|
57
57
|
<svg
|
|
58
|
+
aria-hidden="true"
|
|
59
|
+
focusable="false"
|
|
58
60
|
width="16"
|
|
59
61
|
height="10"
|
|
60
62
|
viewBox="0 0 16 10"
|
|
@@ -89,6 +91,8 @@ export class SimpleLauncher extends LitElement {
|
|
|
89
91
|
aria-label="Open chat"
|
|
90
92
|
>
|
|
91
93
|
<svg
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
focusable="false"
|
|
92
96
|
width="24"
|
|
93
97
|
height="24"
|
|
94
98
|
viewBox="0 0 24 24"
|
package/src/svgIcons.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { svg } from "lit";
|
|
|
4
4
|
* TODO(erol): PLEASE MOVE INTO EACH OWN ICON FILE UNDER /ICONS
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export const CheckboxEmpty = svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
7
|
+
export const CheckboxEmpty = svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
8
8
|
<rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
|
|
9
9
|
</svg>
|
|
10
10
|
`;
|
|
11
|
-
export const CheckboxChecked = svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
11
|
+
export const CheckboxChecked = svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
12
12
|
<rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
|
|
13
13
|
<path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
14
|
</svg>`;
|