@meetelise/chat 1.43.7 → 1.43.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/WebComponent/pubnub-chat.d.ts +2 -2
- package/dist/src/disclaimers.d.ts +2 -1
- package/dist/src/fetchBuildingWebchatView.d.ts +1 -0
- package/package.json +1 -1
- package/public/dist/index.js +228 -219
- package/src/WebComponent/leasing-chat-styles.ts +7 -0
- package/src/WebComponent/pubnub-chat.ts +4 -2
- package/src/disclaimers.ts +14 -3
- package/src/fetchBuildingWebchatView.ts +1 -0
package/public/dist/index.js
CHANGED
|
@@ -546,10 +546,10 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
546
546
|
.option.active {
|
|
547
547
|
background-color: var(--active-option-color);
|
|
548
548
|
}
|
|
549
|
-
`,xn],An([ue({attribute:!1})],Sn.prototype,"options",void 0),An([ue({type:String})],Sn.prototype,"placeholder",void 0),An([ue({type:String})],Sn.prototype,"value",void 0),An([ce()],Sn.prototype,"activeOption",void 0),An([ce()],Sn.prototype,"isOpen",void 0),An([ce()],Sn.prototype,"activeOptionIndex",void 0),An([de("#select",!0)],Sn.prototype,"meSelect",void 0),Sn=An([se("me-select")],Sn),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Tn||(Tn={}));var _n=n(2013),On=n.n(_n);function Pn(e){return Ge(1,arguments),Qe(e).getTime()<Date.now()}Math.pow(10,8);var In=6e4,Nn=36e5;function Mn(e,t){Ge(1,arguments);var n=t||{},i=null==n.additionalDigits?2:at(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(Dn.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],Dn.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Dn.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=Dn.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(Un);if(!n)return new Date(NaN);var i=!!n[4],r=Bn(n[1]),o=Bn(n[2])-1,a=Bn(n[3]),s=Bn(n[4]),l=Bn(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<=(Fn[t]||(Hn(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(Hn(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(Ln);if(!t)return NaN;var n=jn(t[1]),i=jn(t[2]),r=jn(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*Nn+i*In+1e3*r}(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var c=new Date(l+u),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(Rn);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*Nn+r*In)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Dn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Un=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ln=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bn(e){return e?parseInt(e):1}function jn(e){return e&&parseFloat(e.replace(",","."))||0}var Fn=[31,null,31,30,31,30,31,31,30,31,30,31];function Hn(e){return e%400==0||e%4==0&&e%100!=0}const $n={buildingId:null,availabilities:{}},zn=()=>{$n.buildingId=null,$n.availabilities={}},Gn=async e=>{e&&($n.buildingId=e);const t=$n.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=$n.availabilities;if(n[t])return n[t];const i=Qt(Date.now()),o=En(function(e){Ge(1,arguments);var t=Qe(e);return t.setHours(23,59,59,999),t}(kn(i,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(En(i))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return $n.availabilities[t]=s.data,s.data},Qn=async(e,t)=>{var n,i;const r=await Gn(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},qn=async()=>{var e,t,n,i,r,o;return{[
|
|
549
|
+
`,xn],An([ue({attribute:!1})],Sn.prototype,"options",void 0),An([ue({type:String})],Sn.prototype,"placeholder",void 0),An([ue({type:String})],Sn.prototype,"value",void 0),An([ce()],Sn.prototype,"activeOption",void 0),An([ce()],Sn.prototype,"isOpen",void 0),An([ce()],Sn.prototype,"activeOptionIndex",void 0),An([de("#select",!0)],Sn.prototype,"meSelect",void 0),Sn=An([se("me-select")],Sn),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Tn||(Tn={}));var _n=n(2013),On=n.n(_n);function Pn(e){return Ge(1,arguments),Qe(e).getTime()<Date.now()}Math.pow(10,8);var In=6e4,Nn=36e5;function Mn(e,t){Ge(1,arguments);var n=t||{},i=null==n.additionalDigits?2:at(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(Dn.dateTimeDelimiter);if(i.length>2)return n;/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],Dn.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Dn.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var r=Dn.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(Un);if(!n)return new Date(NaN);var i=!!n[4],r=Bn(n[1]),o=Bn(n[2])-1,a=Bn(n[3]),s=Bn(n[4]),l=Bn(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<=(Fn[t]||(Hn(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(Hn(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(Ln);if(!t)return NaN;var n=jn(t[1]),i=jn(t[2]),r=jn(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*Nn+i*In+1e3*r}(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var c=new Date(l+u),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=function(e){if("Z"===e)return 0;var t=e.match(Rn);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*Nn+r*In)}(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Dn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Un=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ln=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rn=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bn(e){return e?parseInt(e):1}function jn(e){return e&&parseFloat(e.replace(",","."))||0}var Fn=[31,null,31,30,31,30,31,31,30,31,30,31];function Hn(e){return e%400==0||e%4==0&&e%100!=0}const $n={buildingId:null,availabilities:{}},zn=()=>{$n.buildingId=null,$n.availabilities={}},Gn=async e=>{e&&($n.buildingId=e);const t=$n.buildingId;if(!t)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=$n.availabilities;if(n[t])return n[t];const i=Qt(Date.now()),o=En(function(e){Ge(1,arguments);var t=Qe(e);return t.setHours(23,59,59,999),t}(kn(i,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${t}/tour/availabilities?${`startTime=${encodeURIComponent(En(i))}&endTime=${encodeURIComponent(o)}`}`,s=await r().get(a);return $n.availabilities[t]=s.data,s.data},Qn=async(e,t)=>{var n,i;const r=await Gn(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},qn=async()=>{var e,t,n,i,r,o;return{[gr.Guided]:!!(null===(t=null===(e=await Qn(Tn.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[gr.Self]:!!(null===(i=null===(n=await Qn(Tn.SelfGuided))||void 0===n?void 0:n.availableTourStartTimes)||void 0===i?void 0:i.length),[gr.Virtual]:!!(null===(o=null===(r=await Qn(Tn.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},Wn=async(e,t)=>{var n,i;const r=await Qn(e,t);if(!r)return{};const o={availableTourStartTimes:null===(n=r.availableTourStartTimes?r.availableTourStartTimes.filter(e=>We(Mn(e))&&!Pn(Mn(e))):[])||void 0===n?void 0:n.map(e=>Vn(e))};return On()(null!==(i=o.availableTourStartTimes)&&void 0!==i?i:[],e=>Ft(new Date(e.datetime),"yyyy-MM-dd"))},Vn=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var Yn=n(3916),Kn=n.n(Yn),Xn=n(2485),Zn=n.n(Xn);const Jn=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var ei;async function ti(e){if(!e)return!1;try{return(await r().get(Jn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(ei||(ei={}));const ni=(e,t={})=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})};class ii extends me{constructor(e){if(super(e),this.it=H,e.type!==fe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||null==e)return this.ft=void 0,this.it=e;if(e===F)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:[]}}}ii.directiveName="unsafeHTML",ii.resultType=1;const ri=ge(ii),oi=j`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
550
550
|
<rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
|
|
551
551
|
</svg>
|
|
552
|
-
`,
|
|
552
|
+
`,ai=(j`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
553
553
|
<rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
|
|
554
554
|
<path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
555
555
|
</svg>`,()=>j`<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">
|
|
@@ -560,8 +560,8 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
560
560
|
</pattern>
|
|
561
561
|
<image id="image0_999_1441" width="256" height="256" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAMa2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJDQAghICb0jUgNICaEFkN5thCSQUGJMCCr2sqjg2kUUK7oqomBZaXbsyqLY+2JBRVkXdbGh8iYkoOu+8r3zfXPvnzNn/lPuTO49AGh+4Eok+agWAAXiQmlCeDAjLT2DQXoGEEABZOAJiFyeTMKKi4sGUAbvf5d3N6A1lKvOCq5/zv9X0eELZDwAkLEQZ/FlvAKIjwOAr+dJpIUAEBV6y8mFEgWeDbGuFAYI8SoFzlHinQqcpcSHB2ySEtgQXwZAjcrlSnMA0LgH9YwiXg7k0fgMsauYLxIDoOkEcQBPyOVDrIjdqaBgogJXQGwH7SUQw3gAM+s7zpy/8WcN8XO5OUNYmdeAqIWIZJJ87tT/szT/Wwry5YM+bOCgCqURCYr8YQ1v5U2MUmAqxN3irJhYRa0h/iDiK+sOAEoRyiOSlfaoMU/GhvUD+hC78rkhURAbQxwmzo+JVumzskVhHIjhbkGniAo5SRAbQLxQIAtNVNlslk5MUPlC67OlbJZKf44rHfCr8PVAnpfMUvG/EQo4Kn5Mo1iYlAoxBWKrIlFKDMQaELvI8hKjVDajioXsmEEbqTxBEb8VxAkCcXiwkh8rypaGJajsSwtkg/lim4UiTowK7y8UJkUo64Od4nEH4oe5YJcFYlbyII9AlhY9mAtfEBKqzB17LhAnJ6p4PkgKgxOUa3GKJD9OZY9bCPLDFXoLiD1kRYmqtXhKIdycSn48W1IYl6SMEy/O5UbGKePBl4FowAYhgAHkcGSBiSAXiNq6G7rhL+VMGOACKcgBAuCs0gy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/80tevuWj5eFVvXvV87tnv1ADAfv+F9+j7FQJJ/TeZX/dAQXZpEmk8adBWys7v2L/fDQDs3992371ZSXC383abAMl2imzuaVqgaYFz0QJ2vuFmj5UGsFm+Jr1pgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhbY9S3w/30FRG3JAQVvAAAAAElFTkSuQmCC"/>
|
|
562
562
|
</defs>
|
|
563
|
-
</svg>`),
|
|
564
|
-
<div>${
|
|
563
|
+
</svg>`),si={fontSize:"10px",paddingTop:"4px"},li={color:"#4287f5"},ui=["UT","ME"],ci="currentConsentId",di=(e,t,n,i)=>"avb"!==e||localStorage.getItem(null!=n?n:"")?"mill-creek"===e?B`<div class="legal-confirmation-inner-container">
|
|
564
|
+
<div>${ai()}</div>
|
|
565
565
|
<div>
|
|
566
566
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
567
567
|
<p>
|
|
@@ -576,7 +576,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
576
576
|
class="checkbox"
|
|
577
577
|
@click=${()=>{i(!0)}}
|
|
578
578
|
>
|
|
579
|
-
${
|
|
579
|
+
${oi}
|
|
580
580
|
</div>
|
|
581
581
|
<p>
|
|
582
582
|
I agree to the
|
|
@@ -593,7 +593,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
593
593
|
</div>
|
|
594
594
|
</div>
|
|
595
595
|
</div>`:B` <div class="legal-confirmation-inner-container">
|
|
596
|
-
<div>${
|
|
596
|
+
<div>${ai()}</div>
|
|
597
597
|
<div>
|
|
598
598
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
599
599
|
<p>
|
|
@@ -619,7 +619,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
619
619
|
</button>
|
|
620
620
|
</div>`:B`
|
|
621
621
|
<div class="legal-confirmation-inner-container">
|
|
622
|
-
<div>${
|
|
622
|
+
<div>${ai()}</div>
|
|
623
623
|
<div>
|
|
624
624
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
625
625
|
<p>
|
|
@@ -651,12 +651,12 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
651
651
|
|
|
652
652
|
<button
|
|
653
653
|
class="agreeButton"
|
|
654
|
-
@click=${()=>{i(!0);const e={consentGiven:!0,timestamp:(new Date).getTime(),consentId:
|
|
654
|
+
@click=${()=>{i(!0);const e={consentGiven:!0,timestamp:(new Date).getTime(),consentId:ci};localStorage.setItem(null!=n?n:"",JSON.stringify(e))}}
|
|
655
655
|
>
|
|
656
656
|
I agree
|
|
657
657
|
</button>
|
|
658
658
|
</div>
|
|
659
|
-
`,
|
|
659
|
+
`,hi=({orgSlug:e,buildingState:t,type:n,customAdditionalDisclaimer:i})=>{const r=i?B`<br />${ri(i)}`:B``;return"utilities"===n?B` <p class="utilities-disclaimer-inner">
|
|
660
660
|
By interacting with this system, you consent to
|
|
661
661
|
<a
|
|
662
662
|
href="http://bit.ly/me_privacy_policy"
|
|
@@ -686,8 +686,8 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
686
686
|
Chats may be recorded by us and our vendors.
|
|
687
687
|
</p>
|
|
688
688
|
</li>
|
|
689
|
-
`:t&&
|
|
690
|
-
<li class="
|
|
689
|
+
`:t&&ui.includes(t.toUpperCase())?B`
|
|
690
|
+
<li class="disclaimer-container disclaimer-message">
|
|
691
691
|
<p class="disclaimer-inner">
|
|
692
692
|
By interacting with this system, you consent to
|
|
693
693
|
<a
|
|
@@ -699,10 +699,11 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
699
699
|
</a>
|
|
700
700
|
and to interacting with generative AI or a human & having your
|
|
701
701
|
conversation recorded and used by a third party.
|
|
702
|
+
${r}
|
|
702
703
|
</p>
|
|
703
704
|
</li>
|
|
704
705
|
`:B`
|
|
705
|
-
<li class="
|
|
706
|
+
<li class="disclaimer-container disclaimer-message">
|
|
706
707
|
<p class="disclaimer-inner">
|
|
707
708
|
By interacting with this system, you consent to
|
|
708
709
|
<a
|
|
@@ -714,9 +715,10 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
714
715
|
</a>
|
|
715
716
|
, including being contacted by AI or a human & having your
|
|
716
717
|
conversation recorded and used by a third party.
|
|
718
|
+
${r}
|
|
717
719
|
</p>
|
|
718
720
|
</li>
|
|
719
|
-
`:B
|
|
721
|
+
`:B``},pi=({phoneNumberInput:e,emailInput:t,orgLegalName:n,orgSlug:i,clickingButtonText:r="send"})=>e&&"greystar"===i?B`<div style=${Ue(si)}>
|
|
720
722
|
By providing your phone number and clicking ${r}, you
|
|
721
723
|
consent to receive recurring marketing calls and voice and text messages
|
|
722
724
|
from Greystar or on its behalf at this number using artificial voice
|
|
@@ -726,7 +728,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
726
728
|
these terms to lease at this property. Msg & Data rates may apply. You
|
|
727
729
|
consent to
|
|
728
730
|
<a
|
|
729
|
-
style=${Ue(
|
|
731
|
+
style=${Ue(li)}
|
|
730
732
|
href="https://www.greystar.com/privacy"
|
|
731
733
|
target="_blank"
|
|
732
734
|
rel="noopener noreferrer"
|
|
@@ -734,13 +736,13 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
734
736
|
>
|
|
735
737
|
and
|
|
736
738
|
<a
|
|
737
|
-
style=${Ue(
|
|
739
|
+
style=${Ue(li)}
|
|
738
740
|
href="http://bit.ly/me_privacy_policy"
|
|
739
741
|
target="_blank"
|
|
740
742
|
rel="noopener noreferrer"
|
|
741
743
|
>EliseAI’s Privacy Policy</a
|
|
742
744
|
>.
|
|
743
|
-
</div>`:e?B` <div style=${Ue(
|
|
745
|
+
</div>`:e?B` <div style=${Ue(si)}>
|
|
744
746
|
By providing your number and clicking ${r}, you consent
|
|
745
747
|
to receive recurring marketing calls and voice and text messages from or
|
|
746
748
|
on behalf of ${n} at this number using artificial voice or an
|
|
@@ -748,25 +750,25 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
748
750
|
not required to lease at this property. Msg & Data rates may apply. You
|
|
749
751
|
consent to this
|
|
750
752
|
<a
|
|
751
|
-
style=${Ue(
|
|
753
|
+
style=${Ue(li)}
|
|
752
754
|
href="http://bit.ly/me_privacy_policy"
|
|
753
755
|
target="_blank"
|
|
754
756
|
rel="noopener noreferrer"
|
|
755
757
|
>privacy policy</a
|
|
756
758
|
>, including having your number and communications recorded and used by a
|
|
757
759
|
third party.
|
|
758
|
-
</div>`:t?B` <div style=${Ue(
|
|
760
|
+
</div>`:t?B` <div style=${Ue(si)}>
|
|
759
761
|
By entering your email and clicking ${r}, you consent to
|
|
760
762
|
this
|
|
761
763
|
<a
|
|
762
|
-
style=${Ue(
|
|
764
|
+
style=${Ue(li)}
|
|
763
765
|
href="http://bit.ly/me_privacy_policy"
|
|
764
766
|
target="_blank"
|
|
765
767
|
rel="noopener noreferrer"
|
|
766
768
|
>privacy policy</a
|
|
767
769
|
>, including having your email address and communications collected and
|
|
768
770
|
recorded and used by a third party.
|
|
769
|
-
</div>`:B``,
|
|
771
|
+
</div>`:B``,fi=u`
|
|
770
772
|
* {
|
|
771
773
|
box-sizing: border-box;
|
|
772
774
|
}
|
|
@@ -1180,7 +1182,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1180
1182
|
gap: 12px;
|
|
1181
1183
|
align-items: center;
|
|
1182
1184
|
}
|
|
1183
|
-
`;class hi{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:pi(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const pi=()=>{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:bn("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:bn("bozzuto_ad_source")}}};var fi;!function(e){e.error="error",e.info="info",e.warn="warn"}(fi||(fi={}));const gi=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:fi.error,"log-title":i.toUpperCase().replace(/\s/g,"_")}})},mi=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){}};function yi(){return bi()?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)}()}const bi=()=>(window.location.search.match(/\?/g)||[]).length>1;var vi=n(2193),wi=n.n(vi);function Ci(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const xi=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=yi();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(pi()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!yn(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Mn(t.timestamp)}}}const a={leadSource:t,leadId:n,buildingSlug:e,timestamp:En(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Mn(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&&!yn(Mn(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:t,building_slug:e,referrer:n,campaign_sources:i})).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 c=null,d=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(c=e),d=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:wi()(c)?null:c,extras:null!=d?d: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}){try{const i={queryParams:yi(),buildingSlug:n,referrer:document.referrer,campaignSources:pi()};let r=!1;const o=n?this.getLeadSourceBodyIfValid(n):null;if(o){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=o.leadSource,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(i);if(!e)return this.leadSource=o.leadSource,this.leadSource;this.leadSource=e,r=!0}}const a=await this.fetchCurrentParsedLeadSource(i);if(this.leadSource=a,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!a){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSource}if(n){const t=!!a&&a.length>0;this.updateLeadSourceLocalStorage(n,a,e,!t&&!r,r)}return a}catch(e){}return null}},Ai=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 Si,Ei,ki;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(Si||(Si={})),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"}(Ei||(Ei={})),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"}(ki||(ki={}));const Ti=(e,t)=>{if("self"===e){return!["SCHEDULED_BY_ME_MANAGED_BY_ME","SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE","SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t)}if("virtual"===e){return!["SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t)}return!1};async function _i(e,t){var n;const i=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,o=(await r().get(i)).data;try{o.welcomeMessage=Oi(null!==(n=o.welcomeMessage)&&void 0!==n?n:"",o.userFirstName)}catch(e){}return o}const Oi=(e,t)=>e.replace(/elise/gi,t);var Pi=n(7035),Ii=n(6353);function Ni(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 Mi(e,t){var n=function(e){if(!Ui[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;Ui[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 Ui[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=Di[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 Di={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ui={};function Li(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 Ri=36e5,Bi={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ji(e,t,n){var i,r,o;if(!e)return 0;if(i=Bi.timezoneZ.exec(e))return 0;if(i=Bi.timezoneHH.exec(e))return Hi(o=parseInt(i[1],10))?-o*Ri:NaN;if(i=Bi.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return Hi(o,a)?(r=Math.abs(o)*Ri+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if($i[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),$i[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return Li(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Fi(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=Fi(new Date(r),n);if(t===o)return t;r-=o-t;var a=Fi(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function Fi(e,t){var n=Mi(e,t),i=Li(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 Hi(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var $i={};var zi={X:function(e,t,n,i){var r=Gi(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Wi(r);case"XXXX":case"XX":return qi(r);default:return qi(r,":")}},x:function(e,t,n,i){var r=Gi(i.timeZone,e);switch(t){case"x":return Wi(r);case"xxxx":case"xx":return qi(r);default:return qi(r,":")}},O:function(e,t,n,i){var r=Gi(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+Qi(o,2)}(r,":");default:return"GMT"+qi(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return Ni("short",e,i);default:return Ni("long",e,i)}}};function Gi(e,t){var n=e?ji(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Qi(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function qi(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Qi(Math.floor(r/60),2)+n+Qi(Math.floor(r%60),2)}function Wi(e,t){return e%60==0?(e>0?"-":"+")+Qi(Math.abs(e)/60,2):qi(e,t)}const Vi=zi;var Yi=n(9784),Ki=n(9720);var Xi=36e5,Zi=6e4,Ji={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 er(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:Yi(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=Ji.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=Ji.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=Ji.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=Ji.YYY[t],r=Ji.YYYYY[t];if(n=Ji.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Ji.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=Ji.MM.exec(e))return i=new Date(0),or(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=Ji.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=rr(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=Ji.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return or(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=Ji.Www.exec(e))return ar(t,o=parseInt(n[1],10)-1)?tr(t,o):new Date(NaN);if(n=Ji.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return ar(t,o,l)?tr(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(),c=0;if(r.time&&(c=function(e){var t,n,i;if(t=Ji.HH.exec(e))return sr(n=parseFloat(t[1].replace(",",".")))?n%24*Xi:NaN;if(t=Ji.HHMM.exec(e))return sr(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*Xi+i*Zi:NaN;if(t=Ji.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return sr(n,i,r)?n%24*Xi+i*Zi+1e3*r:NaN}return null}(r.time),isNaN(c)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=ji(r.timeZone||n.timeZone,new Date(u+c)),isNaN(l))return new Date(NaN)}else l=Ki(new Date(u+c)),l=Ki(new Date(u+c+l));return new Date(u+c+l)}return new Date(NaN)}function tr(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 nr=[31,28,31,30,31,30,31,31,30,31,30,31],ir=[31,29,31,30,31,30,31,31,30,31,30,31];function rr(e){return e%400==0||e%4==0&&e%100!=0}function or(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=rr(e);if(i&&n>ir[t])return!1;if(!i&&n>nr[t])return!1}return!0}function ar(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function sr(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var lr=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ur(e,t,n,i){var r=Pi(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(lr);if(o){var a=er(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,"'"+Vi[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return Ii(e,i,r)}(function(e,t,n){var i=er(e,n),r=ji(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)}var cr=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 dr=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.chatId="",this.buildingId=0,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={[hr.Guided]:!0,[hr.Self]:!0,[hr.Virtual]:!0},this.email="",this.phoneNumber="",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.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Le,this.backgroundColor=Re,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.errorGettingAvailabilities=!1,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([Ai(this.buildingId,this.hasDynamicSchedulingEnabled),qn()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await Gn(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),gi({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:fi.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 gi({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:fi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[hr.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[hr.Guided]||!!this.escortedToursLink),[hr.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[hr.Self]||!!this.sgtUrl),[hr.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[hr.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 Wn(pr[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,gi({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await Gn(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 qt("string"==typeof e?Mn(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Tn.Unknown&&a!==Tn.MediaTour&&(this.selectedDate=Qt("string"==typeof l?Mn(l):l),this.tourType=fr[a],this.selectedTime="string"==typeof l?Vn(l):(e=>({datetime:Ft(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Ft(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===Tn.Unknown||e.tourType===Tn.MediaTour)return!1;const t=fr[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!Ti(t,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===hr.Guided?this.escortedToursTypeOffered:e===hr.Self?this.selfGuidedToursTypeOffered:e===hr.Virtual?this.virtualToursTypeOffered:null,this.firstUpdated=async()=>{await this._setAvailabilities()},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Wn(pr[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const n=e.target.selectionStart;if(1!==e.key.length||Me(e)){if("Backspace"===e.key){if(Me(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,i=this.phoneNumber.slice(0,n).replace(/\D/g,""),r=this.phoneNumber.slice(n).replace(/\D/g,""),o=`${i.slice(0,-1)}${r}`;this.phoneNumber=Pe(o),this.phoneInput.value=this.phoneNumber;const a=n-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Me(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,n).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,i=n-e>-1?n-e:0;this.phoneInput.setSelectionRange(i,i)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(n).split(/\d+/)[0].length||0)+1,t=n+e<this.phoneNumber.length?n+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,n)+e.key+this.phoneNumber.slice(n);this.phoneNumber=Pe(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const n=this.phoneInput.selectionStart,i=n?this.phoneInput.value.slice(n).replace(/\D/g,""):"";this.phoneNumber=Pe(this.phoneInput.value);let r=0,o=i.length;for(;o;)(null===(t=this.phoneNumber.at(r))||void 0===t?void 0:t.match(/\d/))&&o--,r++;const a=this.phoneInput.value.length-r+1;this.phoneInput.setSelectionRange(a,a)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(n=this.emailInput)||void 0===n?void 0:n.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length&&vn(this.phoneNumber)}},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,c,d,h,p,f,g,m,y,b,v,w;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const C=new URLSearchParams(window.location.search);let x=null;x=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const A=[...new Set(x?[x,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=x,ni("scheduleTourSubmitted",{email:this.email,phone:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,firstName:null!==(n=null===(t=this.firstNameInput)||void 0===t?void 0:t.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(o=null===(i=this.lastNameInput)||void 0===i?void 0:i.value)&&void 0!==o?o:this.lastNameInputValue,tourType:gr[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:A.find(e=>"property-website"!==e)||null});const S={referrer:document.referrer,email_address:this.email,phone_number:`+1${null===(a=this.phoneNumber.match(/\d/g))||void 0===a?void 0:a.join("")}`,building_id:this.buildingId,first_name:null!==(l=null===(s=this.firstNameInput)||void 0===s?void 0:s.value)&&void 0!==l?l:this.firstNameInputValue,last_name:null!==(c=null===(u=this.lastNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.lastNameInputValue,tour_type:gr[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(x?[x,Ci(this.orgSlug)]:[Ci(this.orgSlug)])],query_params:Object.fromEntries(C.entries()),conversation_tracking_id:null===(d=this.leadSourceClient)||void 0===d?void 0:d.chatId,lead_sources_with_timestamps:(null!==(f=null===(h=this.leadSourceMultitouchClient)||void 0===h?void 0:h.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(p=this.selectedLeadSource)||void 0===p?void 0:p.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==f?f:[]).map(e=>gn({...e}))};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",S,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(g=this.leadSourceClient)||void 0===g||g.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(m=this.leadSourceMultitouchClient)||void 0===m||m.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(b=null===(y=t.response)||void 0===y?void 0:y.data)||void 0===b?void 0:b.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[Ft(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Ft(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(v=t.response)||void 0===v?void 0:v.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===(w=t.response)||void 0===w?void 0:w.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,zn(),this.availabilitiesGroupedByDay=await Wn(pr[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:()=>B`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>B`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>B` <action-confirm-button
|
|
1185
|
+
`;class gi{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:mi(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const mi=()=>{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:bn("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:bn("bozzuto_ad_source")}}};var yi;!function(e){e.error="error",e.info="info",e.warn="warn"}(yi||(yi={}));const bi=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:yi.error,"log-title":i.toUpperCase().replace(/\s/g,"_")}})},vi=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){}};function wi(){return Ci()?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)}()}const Ci=()=>(window.location.search.match(/\?/g)||[]).length>1;var xi=n(2193),Ai=n.n(xi);function Si(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Ei=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=wi();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(mi()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!yn(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Mn(t.timestamp)}}}const a={leadSource:t,leadId:n,buildingSlug:e,timestamp:En(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Mn(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&&!yn(Mn(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:t,building_slug:e,referrer:n,campaign_sources:i})).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 c=null,d=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(c=e),d=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:Ai()(c)?null:c,extras:null!=d?d: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}){try{const i={queryParams:wi(),buildingSlug:n,referrer:document.referrer,campaignSources:mi()};let r=!1;const o=n?this.getLeadSourceBodyIfValid(n):null;if(o){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=o.leadSource,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(i);if(!e)return this.leadSource=o.leadSource,this.leadSource;this.leadSource=e,r=!0}}const a=await this.fetchCurrentParsedLeadSource(i);if(this.leadSource=a,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!a){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSource}if(n){const t=!!a&&a.length>0;this.updateLeadSourceLocalStorage(n,a,e,!t&&!r,r)}return a}catch(e){}return null}},ki=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 Ti,_i,Oi;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(Ti||(Ti={})),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"}(_i||(_i={})),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"}(Oi||(Oi={}));const Pi=(e,t)=>{if("self"===e){return!["SCHEDULED_BY_ME_MANAGED_BY_ME","SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE","SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t)}if("virtual"===e){return!["SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t)}return!1};async function Ii(e,t){var n;const i=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,o=(await r().get(i)).data;try{o.welcomeMessage=Ni(null!==(n=o.welcomeMessage)&&void 0!==n?n:"",o.userFirstName)}catch(e){}return o}const Ni=(e,t)=>e.replace(/elise/gi,t);var Mi=n(7035),Di=n(6353);function Ui(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 Li(e,t){var n=function(e){if(!Bi[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;Bi[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 Bi[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=Ri[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 Ri={year:0,month:1,day:2,hour:3,minute:4,second:5};var Bi={};function ji(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 Fi=36e5,Hi={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function $i(e,t,n){var i,r,o;if(!e)return 0;if(i=Hi.timezoneZ.exec(e))return 0;if(i=Hi.timezoneHH.exec(e))return Gi(o=parseInt(i[1],10))?-o*Fi:NaN;if(i=Hi.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return Gi(o,a)?(r=Math.abs(o)*Fi+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if(Qi[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Qi[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return ji(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=zi(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=zi(new Date(r),n);if(t===o)return t;r-=o-t;var a=zi(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function zi(e,t){var n=Li(e,t),i=ji(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 Gi(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Qi={};var qi={X:function(e,t,n,i){var r=Wi(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Ki(r);case"XXXX":case"XX":return Yi(r);default:return Yi(r,":")}},x:function(e,t,n,i){var r=Wi(i.timeZone,e);switch(t){case"x":return Ki(r);case"xxxx":case"xx":return Yi(r);default:return Yi(r,":")}},O:function(e,t,n,i){var r=Wi(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+Vi(o,2)}(r,":");default:return"GMT"+Yi(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return Ui("short",e,i);default:return Ui("long",e,i)}}};function Wi(e,t){var n=e?$i(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Vi(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function Yi(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Vi(Math.floor(r/60),2)+n+Vi(Math.floor(r%60),2)}function Ki(e,t){return e%60==0?(e>0?"-":"+")+Vi(Math.abs(e)/60,2):Yi(e,t)}const Xi=qi;var Zi=n(9784),Ji=n(9720);var er=36e5,tr=6e4,nr={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 ir(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:Zi(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=nr.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=nr.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=nr.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=nr.YYY[t],r=nr.YYYYY[t];if(n=nr.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=nr.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=nr.MM.exec(e))return i=new Date(0),lr(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=nr.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=sr(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=nr.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return lr(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=nr.Www.exec(e))return ur(t,o=parseInt(n[1],10)-1)?rr(t,o):new Date(NaN);if(n=nr.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return ur(t,o,l)?rr(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(),c=0;if(r.time&&(c=function(e){var t,n,i;if(t=nr.HH.exec(e))return cr(n=parseFloat(t[1].replace(",",".")))?n%24*er:NaN;if(t=nr.HHMM.exec(e))return cr(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*er+i*tr:NaN;if(t=nr.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return cr(n,i,r)?n%24*er+i*tr+1e3*r:NaN}return null}(r.time),isNaN(c)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=$i(r.timeZone||n.timeZone,new Date(u+c)),isNaN(l))return new Date(NaN)}else l=Ji(new Date(u+c)),l=Ji(new Date(u+c+l));return new Date(u+c+l)}return new Date(NaN)}function rr(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 or=[31,28,31,30,31,30,31,31,30,31,30,31],ar=[31,29,31,30,31,30,31,31,30,31,30,31];function sr(e){return e%400==0||e%4==0&&e%100!=0}function lr(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=sr(e);if(i&&n>ar[t])return!1;if(!i&&n>or[t])return!1}return!0}function ur(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function cr(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var dr=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function hr(e,t,n,i){var r=Mi(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(dr);if(o){var a=ir(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,"'"+Xi[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return Di(e,i,r)}(function(e,t,n){var i=ir(e,n),r=$i(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)}var pr=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 fr=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.chatId="",this.buildingId=0,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={[gr.Guided]:!0,[gr.Self]:!0,[gr.Virtual]:!0},this.email="",this.phoneNumber="",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.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Le,this.backgroundColor=Re,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.errorGettingAvailabilities=!1,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([ki(this.buildingId,this.hasDynamicSchedulingEnabled),qn()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await Gn(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),bi({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:yi.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 bi({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:yi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[gr.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[gr.Guided]||!!this.escortedToursLink),[gr.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[gr.Self]||!!this.sgtUrl),[gr.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[gr.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 Wn(mr[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,bi({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await Gn(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 qt("string"==typeof e?Mn(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Tn.Unknown&&a!==Tn.MediaTour&&(this.selectedDate=Qt("string"==typeof l?Mn(l):l),this.tourType=yr[a],this.selectedTime="string"==typeof l?Vn(l):(e=>({datetime:Ft(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Ft(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===Tn.Unknown||e.tourType===Tn.MediaTour)return!1;const t=yr[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!Pi(t,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===gr.Guided?this.escortedToursTypeOffered:e===gr.Self?this.selfGuidedToursTypeOffered:e===gr.Virtual?this.virtualToursTypeOffered:null,this.firstUpdated=async()=>{await this._setAvailabilities()},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Wn(mr[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const n=e.target.selectionStart;if(1!==e.key.length||Me(e)){if("Backspace"===e.key){if(Me(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,i=this.phoneNumber.slice(0,n).replace(/\D/g,""),r=this.phoneNumber.slice(n).replace(/\D/g,""),o=`${i.slice(0,-1)}${r}`;this.phoneNumber=Pe(o),this.phoneInput.value=this.phoneNumber;const a=n-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Me(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,n).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,i=n-e>-1?n-e:0;this.phoneInput.setSelectionRange(i,i)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(n).split(/\d+/)[0].length||0)+1,t=n+e<this.phoneNumber.length?n+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,n)+e.key+this.phoneNumber.slice(n);this.phoneNumber=Pe(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const n=this.phoneInput.selectionStart,i=n?this.phoneInput.value.slice(n).replace(/\D/g,""):"";this.phoneNumber=Pe(this.phoneInput.value);let r=0,o=i.length;for(;o;)(null===(t=this.phoneNumber.at(r))||void 0===t?void 0:t.match(/\d/))&&o--,r++;const a=this.phoneInput.value.length-r+1;this.phoneInput.setSelectionRange(a,a)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(n=this.emailInput)||void 0===n?void 0:n.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length&&vn(this.phoneNumber)}},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,c,d,h,p,f,g,m,y,b,v,w;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const C=new URLSearchParams(window.location.search);let x=null;x=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const A=[...new Set(x?[x,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=x,ni("scheduleTourSubmitted",{email:this.email,phone:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,firstName:null!==(n=null===(t=this.firstNameInput)||void 0===t?void 0:t.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(o=null===(i=this.lastNameInput)||void 0===i?void 0:i.value)&&void 0!==o?o:this.lastNameInputValue,tourType:br[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:A.find(e=>"property-website"!==e)||null});const S={referrer:document.referrer,email_address:this.email,phone_number:`+1${null===(a=this.phoneNumber.match(/\d/g))||void 0===a?void 0:a.join("")}`,building_id:this.buildingId,first_name:null!==(l=null===(s=this.firstNameInput)||void 0===s?void 0:s.value)&&void 0!==l?l:this.firstNameInputValue,last_name:null!==(c=null===(u=this.lastNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.lastNameInputValue,tour_type:br[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(x?[x,Si(this.orgSlug)]:[Si(this.orgSlug)])],query_params:Object.fromEntries(C.entries()),conversation_tracking_id:null===(d=this.leadSourceClient)||void 0===d?void 0:d.chatId,lead_sources_with_timestamps:(null!==(f=null===(h=this.leadSourceMultitouchClient)||void 0===h?void 0:h.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(p=this.selectedLeadSource)||void 0===p?void 0:p.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==f?f:[]).map(e=>gn({...e}))};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",S,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(g=this.leadSourceClient)||void 0===g||g.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(m=this.leadSourceMultitouchClient)||void 0===m||m.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(b=null===(y=t.response)||void 0===y?void 0:y.data)||void 0===b?void 0:b.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[Ft(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Ft(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(v=t.response)||void 0===v?void 0:v.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===(w=t.response)||void 0===w?void 0:w.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,zn(),this.availabilitiesGroupedByDay=await Wn(mr[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:()=>B`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>B`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>B` <action-confirm-button
|
|
1184
1186
|
id="schedule-bttn"
|
|
1185
1187
|
.onClick=${this.submit}
|
|
1186
1188
|
.isLoading=${this.isSubmitting}
|
|
@@ -1190,14 +1192,14 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1190
1192
|
?disabled=${!this.formIsValidForSubmission()}
|
|
1191
1193
|
></action-confirm-button>`,nextButtonAction:null,render:()=>B`${this.userInfoAndLayoutMenu()}`}]}tourTypeMenu(){return B`<h2 class="journey-header">Tour Type</h2>
|
|
1192
1194
|
<div id="tour-type-menu">
|
|
1193
|
-
${this.shouldShowTourType[
|
|
1195
|
+
${this.shouldShowTourType[gr.Self]?B` <tour-type-option
|
|
1194
1196
|
heading="Take a tour"
|
|
1195
1197
|
subtitle="on your own"
|
|
1196
1198
|
.primaryColor=${this.primaryColor}
|
|
1197
1199
|
.backgroundColor=${this.backgroundColor}
|
|
1198
|
-
@click="${async()=>{this.tourType=
|
|
1199
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1200
|
-
?selected="${this.tourType===
|
|
1200
|
+
@click="${async()=>{this.tourType=gr.Self,this.sgtUrl&&Pi(gr.Self,this.selfGuidedToursTypeOffered)&&window.open(this.sgtUrl,"_blank"),this.availabilitiesGroupedByDay=await Wn(mr[gr.Self]),this._setDefaultSelectedDateAndTimes(mr[gr.Self])}}"
|
|
1201
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=gr.Self)}}"
|
|
1202
|
+
?selected="${this.tourType===gr.Self}"
|
|
1201
1203
|
>
|
|
1202
1204
|
${((e="black")=>j`<svg
|
|
1203
1205
|
slot="icon"
|
|
@@ -1211,18 +1213,18 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1211
1213
|
d="M14.8334 19.1903V30.1667H0.666687C0.666248 28.4367 1.06183 26.7297 1.82311 25.1763C2.58439 23.6229 3.69118 22.2644 5.05866 21.2049C6.42614 20.1453 8.01802 19.4129 9.71232 19.0637C11.4066 18.7145 13.1584 18.7578 14.8334 19.1903ZM12 17.4167C7.30377 17.4167 3.50002 13.6129 3.50002 8.91666C3.50002 4.22041 7.30377 0.416656 12 0.416656C16.6963 0.416656 20.5 4.22041 20.5 8.91666C20.5 13.6129 16.6963 17.4167 12 17.4167ZM20.5 23.0833V18.125L27.5834 24.5L20.5 30.875V25.9167H16.25V23.0833H20.5Z"
|
|
1212
1214
|
fill="${e}"
|
|
1213
1215
|
/>
|
|
1214
|
-
</svg>`)(this.tourType===
|
|
1216
|
+
</svg>`)(this.tourType===gr.Self?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1215
1217
|
</tour-type-option>`:""}
|
|
1216
|
-
${this.shouldShowTourType[
|
|
1218
|
+
${this.shouldShowTourType[gr.Guided]?B` <tour-type-option
|
|
1217
1219
|
heading="Guided tour"
|
|
1218
1220
|
subtitle="with an agent"
|
|
1219
1221
|
.primaryColor=${this.primaryColor}
|
|
1220
1222
|
.backgroundColor=${this.backgroundColor}
|
|
1221
1223
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
1222
1224
|
.foregroundColorOnSecondaryBackgroundColor=${this.foregroundColorOnSecondaryBackgroundColor}
|
|
1223
|
-
@click="${async()=>{this.tourType=
|
|
1224
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1225
|
-
?selected="${this.tourType===
|
|
1225
|
+
@click="${async()=>{this.tourType=gr.Guided,this.escortedToursLink&&window.open(this.escortedToursLink,"_blank"),this.availabilitiesGroupedByDay=await Wn(mr[gr.Guided]),this._setDefaultSelectedDateAndTimes(mr[gr.Guided])}}"
|
|
1226
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=gr.Guided)}}"
|
|
1227
|
+
?selected="${this.tourType===gr.Guided}"
|
|
1226
1228
|
>
|
|
1227
1229
|
${((e="black")=>j`<svg
|
|
1228
1230
|
slot="icon"
|
|
@@ -1236,16 +1238,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1236
1238
|
d="M0.833252 30.1666C0.833252 27.1608 2.0273 24.2782 4.15271 22.1527C6.27812 20.0273 9.1608 18.8333 12.1666 18.8333C15.1724 18.8333 18.0551 20.0273 20.1805 22.1527C22.3059 24.2782 23.4999 27.1608 23.4999 30.1666H0.833252ZM12.1666 17.4166C7.47034 17.4166 3.66659 13.6129 3.66659 8.91663C3.66659 4.22038 7.47034 0.416626 12.1666 0.416626C16.8628 0.416626 20.6666 4.22038 20.6666 8.91663C20.6666 13.6129 16.8628 17.4166 12.1666 17.4166ZM22.5975 20.58C24.7645 21.137 26.7006 22.3634 28.13 24.0846C29.5595 25.8059 30.4096 27.9342 30.5592 30.1666H26.3333C26.3333 26.4691 24.9166 23.1031 22.5975 20.58ZM19.7316 17.3557C20.9187 16.2939 21.8681 14.9932 22.5175 13.5388C23.167 12.0845 23.5017 10.5094 23.4999 8.91663C23.5029 6.9807 23.0078 5.07657 22.062 3.38738C23.6666 3.70979 25.11 4.5779 26.1469 5.84415C27.1838 7.1104 27.7502 8.69666 27.7499 10.3333C27.7503 11.3426 27.5349 12.3404 27.1182 13.2597C26.7016 14.179 26.0932 14.9986 25.3339 15.6636C24.5746 16.3285 23.6819 16.8236 22.7157 17.1154C21.7495 17.4072 20.7321 17.4892 19.7316 17.3557V17.3557Z"
|
|
1237
1239
|
fill="${e}"
|
|
1238
1240
|
/>
|
|
1239
|
-
</svg>`)(this.tourType===
|
|
1241
|
+
</svg>`)(this.tourType===gr.Guided?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1240
1242
|
</tour-type-option>`:""}
|
|
1241
|
-
${this.shouldShowTourType[
|
|
1243
|
+
${this.shouldShowTourType[gr.Virtual]?B` <tour-type-option
|
|
1242
1244
|
heading="Virtual tour"
|
|
1243
1245
|
subtitle="over video"
|
|
1244
1246
|
.primaryColor=${this.primaryColor}
|
|
1245
1247
|
.backgroundColor=${this.backgroundColor}
|
|
1246
|
-
@click="${async()=>{this.tourType=
|
|
1247
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1248
|
-
?selected="${this.tourType===
|
|
1248
|
+
@click="${async()=>{this.tourType=gr.Virtual,this.virtualToursLink&&Pi(gr.Virtual,this.virtualToursTypeOffered)&&window.open(this.virtualToursLink,"_blank"),this.availabilitiesGroupedByDay=await Wn(mr[gr.Virtual]),this._setDefaultSelectedDateAndTimes(mr[gr.Virtual])}}"
|
|
1249
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=gr.Virtual)}}"
|
|
1250
|
+
?selected="${this.tourType===gr.Virtual}"
|
|
1249
1251
|
>
|
|
1250
1252
|
${((e="black")=>j`<svg
|
|
1251
1253
|
slot="icon"
|
|
@@ -1259,9 +1261,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1259
1261
|
d="M15.6 19.5V22.1L18.2 23.4V24.7H7.80004L7.79484 23.4052L10.4 22.1V19.5H1.28965C1.11894 19.4989 0.950113 19.4642 0.792841 19.3979C0.635568 19.3315 0.492943 19.2347 0.373141 19.1131C0.253339 18.9915 0.158715 18.8474 0.0946936 18.6892C0.0306718 18.5309 -0.00148955 18.3616 5.29696e-05 18.1909V1.3091C5.29696e-05 0.586299 0.591552 0 1.28965 0H24.7104C25.4228 0 26 0.583699 26 1.3091V18.1909C26 18.9137 25.4085 19.5 24.7104 19.5H15.6ZM2.60005 14.3V16.9H23.4V14.3H2.60005Z"
|
|
1260
1262
|
fill="${e}"
|
|
1261
1263
|
/>
|
|
1262
|
-
</svg>`)(this.tourType===
|
|
1264
|
+
</svg>`)(this.tourType===gr.Virtual?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1263
1265
|
</tour-type-option>`:""}
|
|
1264
|
-
</div>`}dateAndTimeMenu(){var e;return this.tourType===
|
|
1266
|
+
</div>`}dateAndTimeMenu(){var e;return this.tourType===gr.Self&&this.sgtUrl&&Pi(this.tourType,this.selfGuidedToursTypeOffered)?B`<h2 class="journey-header">Date and Time</h2>
|
|
1265
1267
|
<div id="dateAndTimeMenu">
|
|
1266
1268
|
<button
|
|
1267
1269
|
id="self-guided-redirect-bttn"
|
|
@@ -1275,14 +1277,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1275
1277
|
<date-picker
|
|
1276
1278
|
.availabilities=${Kn()(this.availabilitiesGroupedByDay,e=>e.map(e=>new Date(e.offset)))}
|
|
1277
1279
|
.defaultDate=${this.selectedDate}
|
|
1278
|
-
@change=${async e=>{if(this.tourType===
|
|
1280
|
+
@change=${async e=>{if(this.tourType===gr.Self&&this.sgtUrl&&Pi(this.tourType,this.selfGuidedToursTypeOffered))window.open(this.sgtUrl,"_blank");else if(this.tourType===gr.Guided&&this.escortedToursLink)window.open(this.escortedToursLink,"_blank");else if(this.tourType===gr.Virtual&&this.virtualToursLink&&Pi(this.tourType,this.virtualToursTypeOffered))window.open(this.virtualToursLink,"_blank");else if(e.target instanceof Vt){const t=this.selectedDate;if(this.selectedDate=e.target.selectedDate,!this.tourType)return;if(t&&e.target.selectedDate&&qt(t,e.target.selectedDate))return;this._setDefaultSelectedDateAndTimes(mr[this.tourType],e.target.selectedDate)}}}
|
|
1279
1281
|
></date-picker>
|
|
1280
1282
|
<div>
|
|
1281
1283
|
<time-picker
|
|
1282
1284
|
?selecteddateexists=${!!this.selectedDate}
|
|
1283
1285
|
.timezone=${this.calendarTimeZone}
|
|
1284
|
-
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:Ft(Mn(`${this.selectedTime.datetime}${this.selectedTime.offset}`),"h:mmaaa"),displayTimeZoned:
|
|
1285
|
-
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[Ft(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort((e,t)=>function(e,t){Ge(2,arguments);var n=Qe(e),i=Qe(t),r=n.getTime()-i.getTime();return r<0?-1:r>0?1:r}(Mn(e.datetime),Mn(t.datetime))).map(e=>({dateWithTimeZoneOffset:e,displayTime:Ft(Mn(`${e.datetime}${e.offset}`),"h:mmaaa"),displayTimeZoned:
|
|
1286
|
+
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:Ft(Mn(`${this.selectedTime.datetime}${this.selectedTime.offset}`),"h:mmaaa"),displayTimeZoned:hr(Mn(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"h:mmaaa")}:null}
|
|
1287
|
+
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[Ft(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort((e,t)=>function(e,t){Ge(2,arguments);var n=Qe(e),i=Qe(t),r=n.getTime()-i.getTime();return r<0?-1:r>0?1:r}(Mn(e.datetime),Mn(t.datetime))).map(e=>({dateWithTimeZoneOffset:e,displayTime:Ft(Mn(`${e.datetime}${e.offset}`),"h:mmaaa"),displayTimeZoned:hr(Mn(`${e.datetime}${e.offset}`),this.calendarTimeZone,"h:mmaaa")})):[]}
|
|
1286
1288
|
@change=${e=>{if(e.target instanceof Jt){if(!this.selectedDate)return;const t=this.availabilitiesGroupedByDay[Ft(new Date(this.selectedDate),"y-MM-dd")],n=e.target.selectedTime?t.indexOf(e.target.selectedTime.dateWithTimeZoneOffset):null;this.selectedTime=null!==n?t[n]:null}}}
|
|
1287
1289
|
></time-picker>
|
|
1288
1290
|
</div>
|
|
@@ -1375,7 +1377,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1375
1377
|
@change=${()=>{this.requestUpdate()}}
|
|
1376
1378
|
>
|
|
1377
1379
|
</me-select>`:""}
|
|
1378
|
-
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return B``;const e=
|
|
1380
|
+
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return B``;const e=hr(Mn(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"MMM d 'at' h:mmaaa");return this.canceledReschedule?B`
|
|
1379
1381
|
<div id="confirmationMessage">
|
|
1380
1382
|
<svg
|
|
1381
1383
|
width="20"
|
|
@@ -1409,7 +1411,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1409
1411
|
<p>Thank you!</p>
|
|
1410
1412
|
<p>
|
|
1411
1413
|
Your
|
|
1412
|
-
${{[
|
|
1414
|
+
${{[gr.Guided]:"guided",[gr.Self]:"self-guided",[gr.Virtual]:"virtual"}[this.tourType]}
|
|
1413
1415
|
tour is
|
|
1414
1416
|
${this.promptForReschedule?B`rescheduled`:B`scheduled`} for
|
|
1415
1417
|
${e}
|
|
@@ -1561,7 +1563,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1561
1563
|
${e.nextButtonText}
|
|
1562
1564
|
</button>`}`}
|
|
1563
1565
|
${this.mobilePageIndex+1===this.mobilePages.length?B`
|
|
1564
|
-
${
|
|
1566
|
+
${pi({buildingName:this.buildingName,phoneNumberInput:null===(r=this.phoneInput)||void 0===r?void 0:r.value,emailInput:null===(o=this.emailInput)||void 0===o?void 0:o.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,clickingButtonText:"schedule tour"})}
|
|
1565
1567
|
`:B``}
|
|
1566
1568
|
</div>
|
|
1567
1569
|
</div>
|
|
@@ -1594,7 +1596,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1594
1596
|
We'll send a confirmation and any follow-ups to your email
|
|
1595
1597
|
address, please reply to the email to make any appointment
|
|
1596
1598
|
changes.
|
|
1597
|
-
${
|
|
1599
|
+
${pi({buildingName:this.buildingName,phoneNumberInput:null===(e=this.phoneInput)||void 0===e?void 0:e.value,emailInput:null===(t=this.emailInput)||void 0===t?void 0:t.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,clickingButtonText:"schedule tour"})}
|
|
1598
1600
|
</p>
|
|
1599
1601
|
|
|
1600
1602
|
<div class="reschedule-buttons-wrapper">
|
|
@@ -1638,7 +1640,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1638
1640
|
We'll send a confirmation and any follow-ups to your email
|
|
1639
1641
|
address, please reply to the email to make any appointment
|
|
1640
1642
|
changes.
|
|
1641
|
-
${
|
|
1643
|
+
${pi({buildingName:this.buildingName,phoneNumberInput:null===(n=this.phoneInput)||void 0===n?void 0:n.value,emailInput:null===(i=this.emailInput)||void 0===i?void 0:i.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,clickingButtonText:"schedule tour"})}
|
|
1642
1644
|
</p>
|
|
1643
1645
|
|
|
1644
1646
|
<action-confirm-button
|
|
@@ -1653,7 +1655,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1653
1655
|
</div>
|
|
1654
1656
|
`}
|
|
1655
1657
|
</div>
|
|
1656
|
-
`}};var
|
|
1658
|
+
`}};var gr;fr.styles=[fi,xn],pr([ue({attribute:!1})],fr.prototype,"tourTypeOptions",void 0),pr([ue({attribute:!0})],fr.prototype,"chatId",void 0),pr([ue({type:Number})],fr.prototype,"buildingId",void 0),pr([ue({attribute:!0})],fr.prototype,"buildingSlug",void 0),pr([ue({attribute:!0})],fr.prototype,"sgtUrl",void 0),pr([ue({attribute:!0})],fr.prototype,"selfGuidedToursTypeOffered",void 0),pr([ue({attribute:!0})],fr.prototype,"selfGuidedTourEnabled",void 0),pr([ue({attribute:!0})],fr.prototype,"escortedToursLink",void 0),pr([ue({attribute:!0})],fr.prototype,"escortedToursTypeOffered",void 0),pr([ue({attribute:!0})],fr.prototype,"virtualToursLink",void 0),pr([ue({attribute:!0})],fr.prototype,"virtualToursTypeOffered",void 0),pr([ue({attribute:!0})],fr.prototype,"orgSlug",void 0),pr([ue({attribute:!0})],fr.prototype,"hasDynamicSchedulingEnabled",void 0),pr([ue({attribute:!0})],fr.prototype,"leadSourceClient",void 0),pr([ue({attribute:!0})],fr.prototype,"leadSourceMultitouchClient",void 0),pr([ue({attribute:!0})],fr.prototype,"buildingName",void 0),pr([ce()],fr.prototype,"tourType",void 0),pr([ce()],fr.prototype,"shouldShowTourType",void 0),pr([ce()],fr.prototype,"email",void 0),pr([ce()],fr.prototype,"phoneNumber",void 0),pr([ce()],fr.prototype,"availabilitiesGroupedByDay",void 0),pr([ce()],fr.prototype,"calendarTimeZone",void 0),pr([ce()],fr.prototype,"waitingForAvailabilities",void 0),pr([ce()],fr.prototype,"selectedDate",void 0),pr([ce()],fr.prototype,"selectedTime",void 0),pr([ce()],fr.prototype,"mobilePageIndex",void 0),pr([ce()],fr.prototype,"isSubmitting",void 0),pr([ce()],fr.prototype,"tourIsBooked",void 0),pr([ce()],fr.prototype,"shouldAllowScheduling",void 0),pr([ce()],fr.prototype,"shouldAllowScheduleLoading",void 0),pr([ce()],fr.prototype,"promptForReschedule",void 0),pr([ce()],fr.prototype,"canceledReschedule",void 0),pr([ue({attribute:!1})],fr.prototype,"leadSources",void 0),pr([ue({attribute:!0})],fr.prototype,"orgLegalName",void 0),pr([ue({attribute:!0})],fr.prototype,"currentLeadSource",void 0),pr([ue({attribute:!0})],fr.prototype,"featureFlagShowDropdown",void 0),pr([ue({attribute:!0})],fr.prototype,"compactDesign",void 0),pr([ue({attribute:!0})],fr.prototype,"primaryColor",void 0),pr([ue({attribute:!0})],fr.prototype,"backgroundColor",void 0),pr([ue({attribute:!0})],fr.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),pr([ue({attribute:!0})],fr.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),pr([de(".nameContainer#firstName input")],fr.prototype,"firstNameInput",void 0),pr([de(".nameContainer#lastName input")],fr.prototype,"lastNameInput",void 0),pr([de(".inputContainer#email input")],fr.prototype,"emailInput",void 0),pr([de(".inputContainer#phone input")],fr.prototype,"phoneInput",void 0),pr([de("me-select#leadSource")],fr.prototype,"selectedLeadSource",void 0),pr([ce()],fr.prototype,"firstNameInputValue",void 0),pr([ce()],fr.prototype,"lastNameInputValue",void 0),pr([ce()],fr.prototype,"leadSourceInputValue",void 0),pr([ce()],fr.prototype,"errorGettingAvailabilities",void 0),fr=pr([se("tour-scheduler")],fr),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(gr||(gr={}));const mr={[gr.Guided]:Tn.WithAgent,[gr.Self]:Tn.SelfGuided,[gr.Virtual]:Tn.VirtualShowing},yr={[Tn.WithAgent]:gr.Guided,[Tn.SelfGuided]:gr.Self,[Tn.VirtualShowing]:gr.Virtual},br={[gr.Guided]:"escorted-tour",[gr.Self]:"self-guided-tour",[gr.Virtual]:"live-virtual-tour"};const vr=(e,t,n=!0,i=!1,r,o=.01)=>vi({params:{org_slug:e,building_slug:t,is_pixel_on_site:n,is_any_webchat_showing:i,extra_data:{webchat_no_show_reason:r}},sampleRate:o}),wr=async(e,t,n)=>{const i=.01;if(!e)return vr(n,t,!0,!1,"building_does_not_exist",i),!1;if(!e.launchedDateTime)return vr(n,t,!0,!1,"building_not_launched",i),!1;if(!e.active)return vr(n,t,!0,!1,"building_not_active",i),!1;if(!e.webchatScopeConfigured)return vr(n,t,!0,!1,"building_not_webchat_scope_configured",i),!1;const o=await async function(e){if(!e)return!1;try{return(await r().get(Jn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-leasing-in-maintenance-mode",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(t);return!o||(vr(n,t,!0,!1,"building_in_maintenance_mode",i),!1)},Cr=u`
|
|
1657
1659
|
* {
|
|
1658
1660
|
font-family: "Helvetica Neue", Arial;
|
|
1659
1661
|
font-size: 14px;
|
|
@@ -2150,7 +2152,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2150
2152
|
width: 164px;
|
|
2151
2153
|
}
|
|
2152
2154
|
}
|
|
2153
|
-
`,
|
|
2155
|
+
`,xr=u`
|
|
2154
2156
|
.type-hey__list {
|
|
2155
2157
|
width: 280px;
|
|
2156
2158
|
height: 300px;
|
|
@@ -2308,7 +2310,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2308
2310
|
.title-bold {
|
|
2309
2311
|
font-weight: 700;
|
|
2310
2312
|
}
|
|
2311
|
-
`,
|
|
2313
|
+
`,Ar=u`
|
|
2312
2314
|
.vertical-pill-list {
|
|
2313
2315
|
position: relative;
|
|
2314
2316
|
display: flex;
|
|
@@ -2365,7 +2367,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2365
2367
|
justify-content: center;
|
|
2366
2368
|
align-items: center;
|
|
2367
2369
|
}
|
|
2368
|
-
`;var
|
|
2370
|
+
`;var Sr=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 Er=class extends oe{constructor(){super(...arguments),this.text="Submit",this.isLoading=!1,this.disabled=!1,this.height="initial",this.width="initial",this.focus=()=>{var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===t||t.focus()},this.render=()=>B`<button
|
|
2369
2371
|
class=${Zn()("action-confirm-button",{loading:this.isLoading})}
|
|
2370
2372
|
@click=${this.isLoading?null:this.onClick}
|
|
2371
2373
|
?disabled=${this.disabled}
|
|
@@ -2378,7 +2380,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2378
2380
|
<div></div>
|
|
2379
2381
|
<div></div>
|
|
2380
2382
|
</div>`:this.text}
|
|
2381
|
-
</button>`}};
|
|
2383
|
+
</button>`}};Er.styles=[u`
|
|
2382
2384
|
.action-confirm-button {
|
|
2383
2385
|
display: flex;
|
|
2384
2386
|
justify-content: center;
|
|
@@ -2452,7 +2454,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2452
2454
|
transform: rotate(360deg);
|
|
2453
2455
|
}
|
|
2454
2456
|
}
|
|
2455
|
-
`],
|
|
2457
|
+
`],Sr([ue()],Er.prototype,"onClick",void 0),Sr([ue()],Er.prototype,"text",void 0),Sr([ue({attribute:!1})],Er.prototype,"isLoading",void 0),Sr([ue({type:Boolean})],Er.prototype,"disabled",void 0),Sr([ue({type:String})],Er.prototype,"height",void 0),Sr([ue({type:String})],Er.prototype,"width",void 0),Er=Sr([se("action-confirm-button")],Er);var kr=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 Tr=class extends oe{constructor(){super(...arguments),this.height="425px",this.width="326px",this.useRoundedBorders=!0,this.headerText="",this.isMobileSized=!1,this.useGradientDesign=!1}async firstUpdated(){await new Promise(e=>setTimeout(e,0)),this.isMobileSized=mn(),window.addEventListener("resize",()=>{this.isMobileSized=mn()})}render(){return B`
|
|
2456
2458
|
<div
|
|
2457
2459
|
id="details-window-inner"
|
|
2458
2460
|
class="details-window-wrapper"
|
|
@@ -2486,7 +2488,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2486
2488
|
</div>
|
|
2487
2489
|
<slot class="details-window__slot-content"></slot>
|
|
2488
2490
|
</div>
|
|
2489
|
-
`}};
|
|
2491
|
+
`}};Tr.styles=u`
|
|
2490
2492
|
.details-window-wrapper {
|
|
2491
2493
|
background: rgba(255, 255, 255, 0.9);
|
|
2492
2494
|
box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
|
|
@@ -2548,7 +2550,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2548
2550
|
border-radius: 0px 0px 0px 0px;
|
|
2549
2551
|
}
|
|
2550
2552
|
}
|
|
2551
|
-
`,
|
|
2553
|
+
`,kr([ue({type:String})],Tr.prototype,"height",void 0),kr([ue({type:String})],Tr.prototype,"width",void 0),kr([ue({type:Boolean})],Tr.prototype,"useRoundedBorders",void 0),kr([ue({type:String})],Tr.prototype,"headerText",void 0),kr([ue({attribute:!1})],Tr.prototype,"onCloseClick",void 0),kr([ce()],Tr.prototype,"isMobileSized",void 0),kr([ue({attribute:!0})],Tr.prototype,"useGradientDesign",void 0),Tr=kr([se("details-window")],Tr);var _r=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 Or=class extends oe{constructor(){super(...arguments),this.leadSources=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.buildingName="",this.orgLegalName="",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.featureFlagShowDropdown="",this.phoneNumberInputRef=ke(),this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.message="",this.currentLeadSource="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmittedForm=!1,this.windowHeight=525,this.hasSubmissionError=!1,this.isSubmitting=!1,this.onChangeFirstName=e=>{e.target&&(this.firstName=e.target.value)},this.onChangeLastName=e=>{e.target&&(this.lastName=e.target.value)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangePhoneNumber=e=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(De(e))return;const t=e.target;this.phoneNumber=Pe(t.value),this.phoneNumberInputRef.value.value=this.phoneNumber},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.enforceFormat=e=>{Ne(e)||De(e)||e.preventDefault()},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.firstName&&this.lastName||(this.hasNameError=!0);this.email&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.email)||(this.hasEmailError=!0),this.phoneNumber&&14===this.phoneNumber.length||(this.hasPhoneNumberError=!0),this.windowHeight=525+30*this.getNumErrors()},this.onClick=async()=>{var e,t,n,i,r;if(!(this.isSubmitting||(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError)))try{this.isSubmitting=!0,this.windowHeight=585;const o=this.selectedLeadSource&&this.selectedLeadSource.value?this.selectedLeadSource.value:this.currentLeadSource;await Pr(this.firstName,this.lastName,this.email,this.phoneNumber,this.message,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(o?[o,Si(this.orgSlug)]:[Si(this.orgSlug)])],null===(e=this.leadSourceClient)||void 0===e?void 0:e.chatId,null===(t=this.leadSourceMultitouchClient)||void 0===t?void 0:t.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(n=this.selectedLeadSource)||void 0===n?void 0:n.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null})),null===(i=this.leadSourceClient)||void 0===i||i.checkAndHandleForLogLeadSource({webchatAction:"email-us",stateId:null}),null===(r=this.leadSourceMultitouchClient)||void 0===r||r.resetLeadSourceTouchpoints(),this.hasSubmittedForm=!0,this.isSubmitting=!1,this.windowHeight=525}catch(e){this.hasSubmissionError=!0,this.isSubmitting=!1,this.windowHeight=525}},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError].filter(e=>e).length,this.render=()=>(window.customElements.get("details-window")||window.customElements.define("details-window",Tr),window.customElements.get("action-confirm-button")||window.customElements.define("action-confirm-button",Er),this.hasSubmittedForm?B`
|
|
2552
2554
|
<details-window
|
|
2553
2555
|
id="details-window"
|
|
2554
2556
|
headerText=""
|
|
@@ -2671,9 +2673,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2671
2673
|
`:""}
|
|
2672
2674
|
</div>
|
|
2673
2675
|
|
|
2674
|
-
${
|
|
2676
|
+
${pi({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:this.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug,clickingButtonText:"send"})}
|
|
2675
2677
|
</details-window>
|
|
2676
|
-
`)}};
|
|
2678
|
+
`)}};Or.styles=[u`
|
|
2677
2679
|
.email-us__name-input,
|
|
2678
2680
|
.email-us__contact_input,
|
|
2679
2681
|
.email-us_message-input {
|
|
@@ -2743,11 +2745,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2743
2745
|
width: 50%;
|
|
2744
2746
|
}
|
|
2745
2747
|
}
|
|
2746
|
-
`,xn],
|
|
2748
|
+
`,xn],_r([ue({attribute:!1})],Or.prototype,"leadSources",void 0),_r([ue({attribute:!1})],Or.prototype,"onCloseClicked",void 0),_r([ue({attribute:!0})],Or.prototype,"chatId",void 0),_r([ue({attribute:!1})],Or.prototype,"buildingId",void 0),_r([ue({attribute:!0})],Or.prototype,"buildingSlug",void 0),_r([ue({attribute:!0})],Or.prototype,"orgSlug",void 0),_r([ue({attribute:!0})],Or.prototype,"buildingName",void 0),_r([ue({attribute:!0})],Or.prototype,"orgLegalName",void 0),_r([ue({attribute:!0})],Or.prototype,"leadSourceClient",void 0),_r([ue({attribute:!0})],Or.prototype,"leadSourceMultitouchClient",void 0),_r([ue({attribute:!0})],Or.prototype,"featureFlagShowDropdown",void 0),_r([ue()],Or.prototype,"privatePolicyUrl",void 0),_r([ue()],Or.prototype,"termsOfServiceUrl",void 0),_r([ce()],Or.prototype,"firstName",void 0),_r([ce()],Or.prototype,"lastName",void 0),_r([ce()],Or.prototype,"email",void 0),_r([ce()],Or.prototype,"phoneNumber",void 0),_r([ce()],Or.prototype,"message",void 0),_r([de("me-select#leadSource")],Or.prototype,"selectedLeadSource",void 0),_r([ue({attribute:!0})],Or.prototype,"currentLeadSource",void 0),_r([ce()],Or.prototype,"hasNameError",void 0),_r([ce()],Or.prototype,"hasEmailError",void 0),_r([ce()],Or.prototype,"hasPhoneNumberError",void 0),_r([ce()],Or.prototype,"hasMessageError",void 0),_r([ce()],Or.prototype,"hasSubmittedForm",void 0),_r([ce()],Or.prototype,"windowHeight",void 0),_r([ce()],Or.prototype,"hasSubmissionError",void 0),_r([ce()],Or.prototype,"isSubmitting",void 0),Or=_r([se("email-us-window")],Or);const Pr=async(e,t,n,i,o,a,s,l,u,c,d)=>{const h="+1"+i.replace("(","").replace(")","").replace(" ","").replace("-",""),p=new URLSearchParams(window.location.search),f={email_address:n,building_id:a,lead_sources:u,first_message:o,first_name:e,last_name:t,phone_number:h,referrer:document.referrer,query_params:Object.fromEntries(p.entries()),conversation_tracking_id:c,lead_sources_with_timestamps:(null!=d?d:[]).map(e=>gn({...e}))};ni("emailUsSubmitted",{firstName:e,lastName:t,email:n,phone:h,message:o,originatingSource:u.find(e=>"property-website"!==e)||null}),await r().post("https://app.meetelise.com/platformApi/state/create/emailMe",f,{headers:{"building-slug":l,"org-slug":s,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})},Ir=(e="white")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
2747
2749
|
<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}"/>
|
|
2748
|
-
</svg>`,
|
|
2750
|
+
</svg>`,Nr={},Mr=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],Dr=async e=>{const t=await(async e=>{if(Nr[e])return Nr[e];const t=`https://app.meetelise.com/platformApi/connectors/talk_js/leasing_office_hours/${e}`,n=await r().get(t);return Nr[e]=n.data,n.data})(e);return Mr.map(e=>{const n=t[e];return n?{dayOfWeek:e,startTime:n.start,endTime:n.end}:e})};var Ur=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 Lr=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.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.phoneNumberInputRef=ke(),this.hasSubmittedForm=!1,this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.submittingTextUsOption=!1,this.officeHoursTextInfo=[],this.firstUpdated=async()=>{this.buildingId&&this.hasCallUsEnabled&&(this.officeHoursTextInfo=await Dr(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 B`<a href="tel:${i}"
|
|
2749
2751
|
>${e}</a
|
|
2750
|
-
>`},this.enforcePhoneFormat=e=>{Ne(e)||De(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,n,i;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await
|
|
2752
|
+
>`},this.enforcePhoneFormat=e=>{Ne(e)||De(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,n,i;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await Rr(this.phoneNumberToText,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(this.currentLeadSource?[this.currentLeadSource,Si(this.orgSlug)]:[Si(this.orgSlug)])],null===(e=this.leadSourceClient)||void 0===e?void 0:e.chatId,null===(t=this.leadSourceMultitouchClient)||void 0===t?void 0:t.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null})),null===(n=this.leadSourceClient)||void 0===n||n.checkAndHandleForLogLeadSource({webchatAction:"text-us",stateId:null}),null===(i=this.leadSourceMultitouchClient)||void 0===i||i.resetLeadSourceTouchpoints(),this.hasSubmittedForm=!0,this.submittingTextUsOption=!1}catch(e){this.submittingTextUsOption=!1,this.hasSubmissionError=!0}},this.onChangePhoneNumber=e=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(De(e))return;const t=e.target;this.phoneNumberToText=Pe(t.value),this.phoneNumberInputRef.value.value=this.phoneNumberToText},this.renderFormTextUsOption=()=>B` <div class="text-us-wrapper">
|
|
2751
2753
|
<h1 class="text-us-window__header">Send Us a Text</h1>
|
|
2752
2754
|
<div class="text-us-window__input-container">
|
|
2753
2755
|
<input
|
|
@@ -2841,7 +2843,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2841
2843
|
Contact Our Leasing Team
|
|
2842
2844
|
</h1>
|
|
2843
2845
|
<div class="call-us-window__phone-redirect">
|
|
2844
|
-
${
|
|
2846
|
+
${Ir("black")}
|
|
2845
2847
|
${this.getCallLink(this.phoneNumberToCall)}
|
|
2846
2848
|
</div>
|
|
2847
2849
|
<div class="call-us-window__office-hours-wrapper">
|
|
@@ -2867,7 +2869,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2867
2869
|
</div>`:""}
|
|
2868
2870
|
${this.hasTextUsEnabled?this.hasSubmittedForm?this.renderSubmittedTextUsOption():this.renderFormTextUsOption():""}
|
|
2869
2871
|
</details-window>
|
|
2870
|
-
`}};
|
|
2872
|
+
`}};Lr.styles=[xn,u`
|
|
2871
2873
|
#call-us-window__content-wrapper {
|
|
2872
2874
|
font-family: "Helvetica Neue", Arial;
|
|
2873
2875
|
font-style: normal;
|
|
@@ -2972,7 +2974,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2972
2974
|
.text-us-window__error {
|
|
2973
2975
|
color: rgb(255, 49, 3);
|
|
2974
2976
|
}
|
|
2975
|
-
`],
|
|
2977
|
+
`],Ur([ue({attribute:!0})],Lr.prototype,"buildingSlug",void 0),Ur([ue({attribute:!0})],Lr.prototype,"orgSlug",void 0),Ur([ue({attribute:!1})],Lr.prototype,"onCloseClicked",void 0),Ur([ue()],Lr.prototype,"phoneNumberToCall",void 0),Ur([ue()],Lr.prototype,"phoneNumberToText",void 0),Ur([ue({attribute:!1})],Lr.prototype,"buildingId",void 0),Ur([ue({attribute:!1})],Lr.prototype,"buildingName",void 0),Ur([ue({attribute:!0})],Lr.prototype,"chatCallUsHeader",void 0),Ur([ue({attribute:!0})],Lr.prototype,"hasCallUsEnabled",void 0),Ur([ue({attribute:!0})],Lr.prototype,"hasTextUsEnabled",void 0),Ur([ue({attribute:!0})],Lr.prototype,"currentLeadSource",void 0),Ur([ue({attribute:!0})],Lr.prototype,"orgLegalName",void 0),Ur([ue({attribute:!0})],Lr.prototype,"leadSourceClient",void 0),Ur([ue({attribute:!0})],Lr.prototype,"leadSourceMultitouchClient",void 0),Ur([ce()],Lr.prototype,"hasSubmittedForm",void 0),Ur([ce()],Lr.prototype,"hasPhoneNumberError",void 0),Ur([ce()],Lr.prototype,"hasSubmissionError",void 0),Ur([ce()],Lr.prototype,"submittingTextUsOption",void 0),Ur([ue({attribute:!1})],Lr.prototype,"officeHoursTextInfo",void 0),Lr=Ur([se("call-us-window")],Lr);const Rr=async(e,t,n,i,o,a,s)=>{const l="+1"+e.replace("(","").replace(")","").replace(" ","").replace("-",""),u=new URLSearchParams(window.location.search),c={building_id:t,lead_sources:o,phone_number:l,referrer:document.referrer,query_params:Object.fromEntries(u.entries()),conversation_tracking_id:a,lead_sources_with_timestamps:(null!=s?s:[]).map(e=>gn({...e}))};ni("textUsSubmitted",{phone:l,originatingSource:o.find(e=>"property-website"!==e)||null}),await r().post("https://app.meetelise.com/platformApi/state/create/textMe",c,{headers:{"building-slug":i,"org-slug":n,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE"}})},Br=u`
|
|
2976
2978
|
:host {
|
|
2977
2979
|
display: block;
|
|
2978
2980
|
position: relative;
|
|
@@ -3289,10 +3291,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3289
3291
|
margin: 2px 0;
|
|
3290
3292
|
}
|
|
3291
3293
|
}
|
|
3292
|
-
`;class
|
|
3294
|
+
`;class jr{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 Fr{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 jr(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new jr(e.maxAvailableItem):void 0,this.allItems=(null!==(i=e.allItems)&&void 0!==i?i:[]).map(e=>new jr(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 Hr,$r;!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"}(Hr||(Hr={})),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"}($r||($r={}));class zr{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:Hr.ONE_TIME,this.category=null!==(o=e.category)&&void 0!==o?o:$r.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 Gr=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()}`:""}},Qr=hn,qr=e=>new zr(e),Wr=e=>new Fr(e),Vr=async(e,t)=>{try{const n=(new Gr).addArray("layout_ids",null==t?void 0:t.map(e=>e.toString())),i=await r().get(`${Qr}/platformApi/webchat/${e}/marketable-fees?${n.build()}`);if(i.data){const e=fn(i.data);return{fees:e.fees.map(qr),rentableItems:e.rentableItems.map(Wr),buildingIncentives:e.buildingIncentives}}}catch(t){bi({logType:yi.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t}})}return{fees:[],rentableItems:[],buildingIncentives:[]}},Yr=-1,Kr=hn,Xr=async({buildingSlug:e,unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a},s)=>{try{const l=await r().post(`${Kr}/platformApi/webchat/${e}/quote/calculate`,gn({unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a}),{signal:s});if(l.data){return fn(l.data)}}catch(t){"ERR_CANCELED"!==t.code&&bi({logType:yi.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t}})}return{quote:{}}},Zr=(e="black")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
3293
3295
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${e}" stroke-width="2.13401"/>
|
|
3294
3296
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${e}" stroke-width="2.13401"/>
|
|
3295
|
-
</svg>`,
|
|
3297
|
+
</svg>`,Jr=hn,eo=async({buildingSlug:e,numBedrooms:t,moveInDateEarliestString:n,moveInDateLatest:i,leaseTermMin:o})=>{try{const a=i?i.toISOString().split("T")[0]:void 0,s=new Gr;s.addArray("num_bedrooms",null==t?void 0:t.map(e=>e.toString())).addSingle("move_in_date_earliest",n).addSingle("move_in_date_latest",a).addSingle("lease_term_min",null==o?void 0:o.toString());const l=s.build(),u=await r().get(`${Jr}/platformApi/webchat/${e}/units${l}`);if(u.data){return fn(u.data).map(e=>({...e,id:parseInt(e.id.toString().substring(1))}))}}catch(r){bi({logType:yi.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:r,params:{numBedrooms:t,moveInDateEarliestString:n,moveInDateLatest:i}}})}return[]},to=({color:e="#347FF7",size:t=24}={})=>j`
|
|
3296
3298
|
<svg width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3297
3299
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
3298
3300
|
<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"/>
|
|
@@ -3305,7 +3307,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3305
3307
|
</clipPath>
|
|
3306
3308
|
</defs>
|
|
3307
3309
|
</svg>
|
|
3308
|
-
`,
|
|
3310
|
+
`,no=u`
|
|
3309
3311
|
:host {
|
|
3310
3312
|
display: block;
|
|
3311
3313
|
margin-bottom: 20px;
|
|
@@ -3339,9 +3341,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3339
3341
|
color: #868e96;
|
|
3340
3342
|
font-size: 0.8rem;
|
|
3341
3343
|
}
|
|
3342
|
-
`;var
|
|
3344
|
+
`;var io=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 ro=class extends oe{constructor(){super(...arguments),this.promoAmount="0",this.promoDescription="",this.promoValidity=""}render(){return B`
|
|
3343
3345
|
<div class="promo-card">
|
|
3344
|
-
<div class="icon-container">${
|
|
3346
|
+
<div class="icon-container">${to()}</div>
|
|
3345
3347
|
<div class="content-container">
|
|
3346
3348
|
<h2 class="promo-heading">
|
|
3347
3349
|
${this.promoAmount} ${this.promoDescription}
|
|
@@ -3349,7 +3351,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3349
3351
|
<div class="promo-subtitle">${this.promoValidity}</div>
|
|
3350
3352
|
</div>
|
|
3351
3353
|
</div>
|
|
3352
|
-
`}};
|
|
3354
|
+
`}};ro.styles=no,io([ue({type:String})],ro.prototype,"promoAmount",void 0),io([ue({type:String})],ro.prototype,"promoDescription",void 0),io([ue({type:String})],ro.prototype,"promoValidity",void 0),ro=io([se("promo-card")],ro);const oo=u`
|
|
3353
3355
|
:host {
|
|
3354
3356
|
display: block;
|
|
3355
3357
|
}
|
|
@@ -3492,7 +3494,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3492
3494
|
overflow-x: auto;
|
|
3493
3495
|
}
|
|
3494
3496
|
}
|
|
3495
|
-
`,
|
|
3497
|
+
`,ao=u`
|
|
3496
3498
|
:host {
|
|
3497
3499
|
display: block;
|
|
3498
3500
|
}
|
|
@@ -3596,7 +3598,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3596
3598
|
margin-right: 8px;
|
|
3597
3599
|
}
|
|
3598
3600
|
}
|
|
3599
|
-
`;var
|
|
3601
|
+
`;var so=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 lo=class extends oe{constructor(){super(...arguments),this.unit={},this.onUnitSelect=null,this.selected=!1}get bedAndBathText(){return`${0===this.unit.numberOfBedrooms?"studio":`${this.unit.numberOfBedrooms}bd`} | ${this.unit.numberOfBathrooms}ba`}get priceRange(){return this.unit.startingPrice===this.unit.maxPrice?`$${this.unit.startingPrice}`:`$${this.unit.startingPrice} - $${this.unit.maxPrice}`}handleOnUnitSelect(){var e;this.selected||(this.selected=!this.selected,null===(e=this.onUnitSelect)||void 0===e||e.call(this,this.unit))}handleOnImgClick(e){const t=e.target;window.open(t.src,"_blank")}render(){return B`
|
|
3600
3602
|
<div class="floorplan-image-card ${this.selected?"selected":""}">
|
|
3601
3603
|
<div class="section-left">
|
|
3602
3604
|
${this.unit.floorplanUrl?B`
|
|
@@ -3621,7 +3623,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3621
3623
|
</p>
|
|
3622
3624
|
</div>
|
|
3623
3625
|
</div>
|
|
3624
|
-
`}};
|
|
3626
|
+
`}};lo.styles=ao,so([ue({type:Object})],lo.prototype,"unit",void 0),so([ue()],lo.prototype,"onUnitSelect",void 0),so([ue({type:Boolean})],lo.prototype,"selected",void 0),lo=so([se("floorplan-image-card")],lo);var uo=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 co=class extends oe{constructor(){super(...arguments),this.size=64,this.spinSpeed=.8}updated(){this.style.setProperty("--mega-loader-size",`${this.size}px`),this.style.setProperty("--mega-loader-spin-speed",`${this.spinSpeed}s`)}render(){return B`<div class="spinner"></div>`}};co.styles=u`
|
|
3625
3627
|
.spinner {
|
|
3626
3628
|
border: 4px solid rgba(0, 0, 0, 0.2);
|
|
3627
3629
|
border-top: 4px solid var(--primary-color, #c057ff);
|
|
@@ -3639,7 +3641,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3639
3641
|
transform: rotate(360deg);
|
|
3640
3642
|
}
|
|
3641
3643
|
}
|
|
3642
|
-
`,
|
|
3644
|
+
`,uo([ue({type:Number})],co.prototype,"size",void 0),uo([ue({type:Number})],co.prototype,"spinSpeed",void 0),co=uo([se("mega-loader")],co);var ho=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 po=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.layoutOptions=[],this.selectedLayoutIds=[Yr],this.units=[],this.isLoading=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.moveInDate=pn,this.leaseTerm=12,this.selectedUnit=null,this.handleUnitSelect=e=>{var t;this.selectedUnit=e,null===(t=this.onUnitSelect)||void 0===t||t.call(this,e)},this.handleLayoutChange=e=>{var t;let n;e===Yr?n=[Yr]:this.selectedLayoutIds.includes(Yr)?n=[e]:this.selectedLayoutIds.includes(e)?(n=this.selectedLayoutIds.filter(t=>t!==e),0===n.length&&(n=[Yr])):n=[...this.selectedLayoutIds,e],this.selectedLayoutIds=n,null===(t=this.onSelectLayout)||void 0===t||t.call(this,this.selectedLayoutIds)},this.handleMoveInDateChange=e=>{var t;const n=e.target.value;if(n){const[e,t,i]=n.split("-").map(Number);this.moveInDate=new Date(e,t-1,i)}else this.moveInDate=pn;null===(t=this.onMoveInDateChange)||void 0===t||t.call(this,n||pn.toISOString().split("T")[0])},this.handleLeaseTermChange=e=>{var t;this.leaseTerm=parseInt(e.target.value),null===(t=this.onLeaseTermChange)||void 0===t||t.call(this,this.leaseTerm)},this.renderUnitSelection=()=>{var e,t;return this.isLoading?B`
|
|
3643
3645
|
<div class="unit-selection">
|
|
3644
3646
|
<div class="loading-container">
|
|
3645
3647
|
<mega-loader size="32"></mega-loader>
|
|
@@ -3673,7 +3675,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3673
3675
|
</div>
|
|
3674
3676
|
`)}
|
|
3675
3677
|
</div>
|
|
3676
|
-
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach(([e,n])=>{const i=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(i,n)}),t};return[{value:
|
|
3678
|
+
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach(([e,n])=>{const i=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(i,n)}),t};return[{value:Yr,label:"All"},...this.layoutOptions].map(t=>({...t,label:e(t.label.replace(/bedroom/gi,"bd"))})).sort((e,t)=>e.value-t.value)}render(){var e,t;return B`
|
|
3677
3679
|
<div class="floor-plan-selector">
|
|
3678
3680
|
<div class="floor-plan-selector-label">Select Floor Plan</div>
|
|
3679
3681
|
${this.renderBadges()}
|
|
@@ -3704,7 +3706,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3704
3706
|
${this.renderUnitSelection()}
|
|
3705
3707
|
</div>
|
|
3706
3708
|
</div>
|
|
3707
|
-
`}};
|
|
3709
|
+
`}};po.styles=oo,ho([ue({type:String})],po.prototype,"buildingSlug",void 0),ho([ue({type:Array})],po.prototype,"layoutOptions",void 0),ho([ue({type:Array})],po.prototype,"selectedLayoutIds",void 0),ho([ue({type:Array})],po.prototype,"units",void 0),ho([ue({type:Boolean})],po.prototype,"isLoading",void 0),ho([ue()],po.prototype,"onSelectLayout",void 0),ho([ue()],po.prototype,"onUnitSelect",void 0),ho([ue()],po.prototype,"onMoveInDateChange",void 0),ho([ue()],po.prototype,"onLeaseTermChange",void 0),ho([ce()],po.prototype,"moveInDate",void 0),ho([ce()],po.prototype,"leaseTerm",void 0),ho([ce()],po.prototype,"selectedUnit",void 0),po=ho([se("floor-plan-selector")],po);const fo=u`
|
|
3708
3710
|
:host {
|
|
3709
3711
|
display: block;
|
|
3710
3712
|
width: 100%;
|
|
@@ -3743,7 +3745,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3743
3745
|
font-size: 1rem;
|
|
3744
3746
|
align-self: center;
|
|
3745
3747
|
}
|
|
3746
|
-
`;var
|
|
3748
|
+
`;var go=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 mo=class extends oe{constructor(){super(...arguments),this.feeQuote=null}get name(){var e,t;if(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem)return wn(this.feeQuote.sourceRentableItem.description||"");const n=null===(t=this.feeQuote)||void 0===t?void 0:t.marketableFee;return(null==n?void 0:n.feeName)?wn(n.feeName):""}get description(){var e,t,n,i;if(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem){return`${this.feeQuote.sourceRentableItem.id}`}return null!==(i=null===(n=null===(t=this.feeQuote)||void 0===t?void 0:t.marketableFee)||void 0===n?void 0:n.description)&&void 0!==i?i:""}get triggeredEvent(){var e,t;const n=null===(t=null===(e=this.feeQuote)||void 0===e?void 0:e.marketableFee)||void 0===t?void 0:t.triggeredByEvent;if(!n)return"";return{APPLICATION_SUBMISSION:"Due at Application Submission",APPLICATION_APPROVAL:"Due at Application Approval",LEASE_SIGNING:"Due at Lease Signing",MOVE_IN:"Due at Move-In"}[n]||n}get amount(){var e;if(!this.feeQuote)return null;const t=null!==(e=this.feeQuote.amountRange.fixedValue)&&void 0!==e?e:0;return 0===t?null:Cn(t,2)}render(){return this.feeQuote&&this.amount?B`
|
|
3747
3749
|
<div class="fee-item">
|
|
3748
3750
|
<div class="fee-info">
|
|
3749
3751
|
<div class="fee-name">${this.name}</div>
|
|
@@ -3754,7 +3756,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3754
3756
|
</div>
|
|
3755
3757
|
<div class="fee-amount">${this.amount}</div>
|
|
3756
3758
|
</div>
|
|
3757
|
-
`:B``}};
|
|
3759
|
+
`:B``}};mo.styles=fo,go([ue({type:Object})],mo.prototype,"feeQuote",void 0),mo=go([se("fee-item")],mo);var yo=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 bo=class extends oe{constructor(){super(...arguments),this.feeQuotes=[]}get itemType(){const e=this.feeQuotes[0];return(null==e?void 0:e.sourceRentableItem)?wn(e.sourceRentableItem.description||""):""}get priceGroups(){const e=new Map;return this.feeQuotes.forEach(t=>{var n;const i=null!==(n=t.amountRange.fixedValue)&&void 0!==n?n:0;e.set(i,(e.get(i)||0)+1)}),Array.from(e.entries()).map(([e,t])=>({price:e,count:t})).sort((e,t)=>e.price-t.price)}get totalAmount(){const e=this.feeQuotes.reduce((e,t)=>{var n;return e+(null!==(n=t.amountRange.fixedValue)&&void 0!==n?n:0)},0);return Cn(e,2)}get priceBreakdown(){const e=this.priceGroups;if(0===e.length)return"";const t=this.getUnitName();return e.map(e=>{return`${e.count} ${n=t,i=e.count,1===i?n:`${n}s`} @ ${Cn(e.price,2)}/month`;var n,i}).join(" + ")}getUnitName(){var e;const t=this.feeQuotes[0];return function(e){const t=e.toLowerCase();return t.includes("garage")||t.includes("parking")?"space":t.includes("storage")?"unit":t.includes("locker")?"locker":t.includes("bike")?"spot":"unit"}((null===(e=null==t?void 0:t.sourceRentableItem)||void 0===e?void 0:e.description)||"")}render(){return this.feeQuotes.length&&this.totalAmount!==Cn(0,2)?B`
|
|
3758
3760
|
<div class="fee-item">
|
|
3759
3761
|
<div class="fee-info">
|
|
3760
3762
|
<div class="fee-name">${this.itemType}</div>
|
|
@@ -3762,7 +3764,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3762
3764
|
</div>
|
|
3763
3765
|
<div class="fee-amount">${this.totalAmount}</div>
|
|
3764
3766
|
</div>
|
|
3765
|
-
`:B``}};
|
|
3767
|
+
`:B``}};bo.styles=fo,yo([ue({type:Array})],bo.prototype,"feeQuotes",void 0),bo=yo([se("grouped-rentable-item")],bo);const vo=u`
|
|
3766
3768
|
.fee-card-section-container {
|
|
3767
3769
|
margin: 0 12px;
|
|
3768
3770
|
border-radius: 4px;
|
|
@@ -3822,7 +3824,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3822
3824
|
margin: 12px;
|
|
3823
3825
|
justify-content: space-between;
|
|
3824
3826
|
}
|
|
3825
|
-
`;var
|
|
3827
|
+
`;var wo=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 Co=class extends oe{constructor(){super(...arguments),this.title="Fees",this.fees=[],this.buildingFeesToQuantity={},this.handleQuantityChange=(e,t)=>{this.buildingFeesToQuantity[e]=t,this.requestUpdate()}}get totalAmount(){const e=this.fees.reduce((e,t)=>{var n;return e+(null!==(n=t.amountRange.fixedValue)&&void 0!==n?n:0)},0);return Cn(e,2)}get groupedRentableItems(){const e=this.fees.filter(e=>e.sourceRentableItem);e.sort((e,t)=>{var n,i;const r=(null===(n=e.sourceRentableItem)||void 0===n?void 0:n.description)||"",o=(null===(i=t.sourceRentableItem)||void 0===i?void 0:i.description)||"";return r.localeCompare(o,navigator.language,{numeric:!0})});const t={};return e.forEach(e=>{var n;const i=(null===(n=e.sourceRentableItem)||void 0===n?void 0:n.description)||"unknown";t[i]||(t[i]=[]),t[i].push(e)}),t}get nonRentableItems(){return this.fees.filter(e=>!e.sourceRentableItem)}render(){return B`
|
|
3826
3828
|
<div class="fee-card-section-container">
|
|
3827
3829
|
<div class="fee-card-section-header">
|
|
3828
3830
|
<h1 class="section-title">${this.title}</h1>
|
|
@@ -3846,7 +3848,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3846
3848
|
</div>
|
|
3847
3849
|
</div>
|
|
3848
3850
|
</div>
|
|
3849
|
-
`}};
|
|
3851
|
+
`}};Co.styles=vo,wo([ue({type:String})],Co.prototype,"title",void 0),wo([ue({type:Array})],Co.prototype,"fees",void 0),wo([ce()],Co.prototype,"buildingFeesToQuantity",void 0),Co=wo([se("fee-card")],Co);const xo=u`
|
|
3850
3852
|
:host {
|
|
3851
3853
|
--transition-timing: 0.2s ease;
|
|
3852
3854
|
display: flex;
|
|
@@ -4048,7 +4050,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4048
4050
|
font-weight: bold;
|
|
4049
4051
|
color: #0066cc;
|
|
4050
4052
|
}
|
|
4051
|
-
`;var
|
|
4053
|
+
`;var Ao;!function(e){e.NEVER="NEVER",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(Ao||(Ao={}));var So=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 Eo=class extends oe{constructor(){super(...arguments),this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1,num_cats:0,num_dogs:0,num_other_pets:0},this.onChargeInputsChange=null,this.disabled=!1,this.rentableItems=[],this.selectedRentableItems=[],this.onRentableItemAdd=null,this.onRentableItemRemove=null,this.handleRentableItemToggle=e=>{var t,n;if(this.selectedRentableItems.some(t=>t.type===e.type)){const n=this.selectedRentableItems.find(t=>t.type===e.type);n&&(null===(t=this.onRentableItemRemove)||void 0===t||t.call(this,n))}else{const t=e.minAvailableItem||e.allItems[0];if(t){const i={id:t.id,type:e.type};null===(n=this.onRentableItemAdd)||void 0===n||n.call(this,i)}}}}handleIncrement(e){var t,n;const i=(null!==(t=this.chargeInputs[e])&&void 0!==t?t:0)+1;"num_cats"===e||"num_dogs"===e||"num_other_pets"===e?this.updatePetCount({[e]:i}):null===(n=this.onChargeInputsChange)||void 0===n||n.call(this,{[e]:i})}handleDecrement(e){var t,n;const i=null!==(t=this.chargeInputs[e])&&void 0!==t?t:0,r="num_applicants"===e?1:0,o=Math.max(r,i-1);"num_cats"===e||"num_dogs"===e||"num_other_pets"===e?this.updatePetCount({[e]:o}):null===(n=this.onChargeInputsChange)||void 0===n||n.call(this,{[e]:o})}updatePetCount(e){var t,n,i,r;const o={...this.chargeInputs,...e},a=(null!==(t=o.num_cats)&&void 0!==t?t:0)+(null!==(n=o.num_dogs)&&void 0!==n?n:0)+(null!==(i=o.num_other_pets)&&void 0!==i?i:0);null===(r=this.onChargeInputsChange)||void 0===r||r.call(this,{...e,num_pets:a})}getFieldLabel(e){return{base_rent:"Base Rent ($)",num_pets:"Pets",num_vehicles:"Vehicles",num_applicants:"Applicants",num_cats:"Cats",num_dogs:"Dogs",num_other_pets:"All Other Pets"}[e]||e}renderRentableItemRow(e){const t=this.selectedRentableItems.some(t=>t.type===e.type);return B`
|
|
4052
4054
|
<div class="rentable-item-row">
|
|
4053
4055
|
<div class="rentable-item-info">
|
|
4054
4056
|
<div class="rentable-item-label">${e.description}</div>
|
|
@@ -4104,7 +4106,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4104
4106
|
</div>
|
|
4105
4107
|
`:""}
|
|
4106
4108
|
</div>
|
|
4107
|
-
`}};
|
|
4109
|
+
`}};Eo.styles=u`
|
|
4108
4110
|
.charge-inputs-container {
|
|
4109
4111
|
background: white;
|
|
4110
4112
|
border-radius: 8px;
|
|
@@ -4241,7 +4243,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4241
4243
|
opacity: 0.5;
|
|
4242
4244
|
cursor: not-allowed;
|
|
4243
4245
|
}
|
|
4244
|
-
`,
|
|
4246
|
+
`,So([ue({type:Object})],Eo.prototype,"chargeInputs",void 0),So([ue()],Eo.prototype,"onChargeInputsChange",void 0),So([ue({type:Boolean})],Eo.prototype,"disabled",void 0),So([ue({type:Array})],Eo.prototype,"rentableItems",void 0),So([ue({type:Array})],Eo.prototype,"selectedRentableItems",void 0),So([ue()],Eo.prototype,"onRentableItemAdd",void 0),So([ue()],Eo.prototype,"onRentableItemRemove",void 0),Eo=So([se("charge-inputs")],Eo);const ko=u`
|
|
4245
4247
|
:host {
|
|
4246
4248
|
--skeleton-bg-color: #eaeaea;
|
|
4247
4249
|
--skeleton-highlight-color: #f5f5f5;
|
|
@@ -4255,8 +4257,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4255
4257
|
background-position: 200px 0;
|
|
4256
4258
|
}
|
|
4257
4259
|
}
|
|
4258
|
-
`,
|
|
4259
|
-
${
|
|
4260
|
+
`,To=u`
|
|
4261
|
+
${ko}
|
|
4260
4262
|
|
|
4261
4263
|
:host {
|
|
4262
4264
|
display: block;
|
|
@@ -4321,8 +4323,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4321
4323
|
margin-bottom: 10px;
|
|
4322
4324
|
}
|
|
4323
4325
|
}
|
|
4324
|
-
`,
|
|
4325
|
-
${
|
|
4326
|
+
`,_o=u`
|
|
4327
|
+
${ko}
|
|
4326
4328
|
|
|
4327
4329
|
:host {
|
|
4328
4330
|
display: block;
|
|
@@ -4344,16 +4346,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4344
4346
|
box-sizing: border-box;
|
|
4345
4347
|
}
|
|
4346
4348
|
}
|
|
4347
|
-
`;var
|
|
4349
|
+
`;var Oo=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 Po=class extends oe{constructor(){super(...arguments),this.rows=2,this.header=!0}render(){return B`
|
|
4348
4350
|
<div class="skeleton-card">
|
|
4349
4351
|
${this.header?B`<div class="skeleton-header"></div>`:""}
|
|
4350
4352
|
${Array(this.rows).fill(0).map(()=>B`<div class="skeleton-row"></div>`)}
|
|
4351
4353
|
</div>
|
|
4352
|
-
`}};
|
|
4354
|
+
`}};Po.styles=To,Oo([ue({type:Number})],Po.prototype,"rows",void 0),Oo([ue({type:Boolean})],Po.prototype,"header",void 0),Po=Oo([se("skeleton-card")],Po);var Io=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 No=class extends oe{constructor(){super(...arguments),this.cards=3,this.rowsPerCard=[3,2,1]}render(){return B`
|
|
4353
4355
|
<div class="skeleton-loader">
|
|
4354
4356
|
${Array.from({length:this.cards},(e,t)=>{const n=Array.isArray(this.rowsPerCard)?this.rowsPerCard[t]||2:this.rowsPerCard;return B`<skeleton-card .rows=${n}></skeleton-card>`})}
|
|
4355
4357
|
</div>
|
|
4356
|
-
`}};
|
|
4358
|
+
`}};No.styles=_o,Io([ue({type:Number})],No.prototype,"cards",void 0),Io([ue({type:Array})],No.prototype,"rowsPerCard",void 0),No=Io([se("skeleton-loader")],No);var Mo=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 Do=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.showSkeletonLoader=!1,this.selectedUnit=null,this.quote=null,this.layoutOptions=[],this.selectedLayoutIds=[Yr],this.groupedFees={[Hr.ONE_TIME]:[],[Hr.MONTHLY]:[],[Hr.WEEKLY]:[],[Hr.BI_WEEKLY]:[],[Hr.ANNUALLY]:[],[Hr.DAILY]:[],[Hr.AS_NEEDED]:[],[Hr.NEVER]:[]},this.rentableItems=[],this.units=[],this.isLoadingUnits=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1},this.onChargeInputsChange=null,this.selectedRentableItems=[],this.onRentableItemAdd=null,this.onRentableItemRemove=null}get rentAsFeeQuote(){var e,t;return(null===(e=this.quote)||void 0===e?void 0:e.rentCost)?{marketableFee:{id:"rent",buildingId:this.quote.buildingId||0,feeName:"Rent",amount:this.quote.rentCost,amountDisplay:Cn(this.quote.rentCost,2),minEstimate:null,maxEstimate:null,percentRentMin:null,percentRentMax:null,percentRent:null,frequency:Ao.MONTHLY,category:"Rent",hiddenReason:null,description:`Unit ${null===(t=this.selectedUnit)||void 0===t?void 0:t.unitNumber}`,additionalInfo:null,refundable:!1,unitIds:null,layoutIds:null,startDate:null,endDate:null,triggeredByEvent:null,externalKey:null,chargeCode:null,bundleKey:null,source:null,publicFacing:!0,perApplicant:!1,prorated:null,syncActive:!0},amountRange:{fixedValue:this.quote.rentCost,minValue:null,maxValue:null},chargeInputs:{baseRent:this.quote.rentCost,numPets:0,numDogs:0,numCats:0,numOtherPets:0,numVehicles:0,numApplicants:1,unitId:this.quote.unitId,layoutId:null},isAddon:!1}:null}renderRecurringFeeSection(e,t){return(null==t?void 0:t.length)?B` <fee-card .fees=${t} title=${e}></fee-card> `:null}renderFeeSections(){var e,t;const n=[],i=[{freq:Ao.ANNUALLY,title:"Yearly Charges"},{freq:Ao.MONTHLY,title:"Monthly Charges"},{freq:Ao.BI_WEEKLY,title:"Bi-Weekly Charges"},{freq:Ao.WEEKLY,title:"Weekly Charges"},{freq:Ao.DAILY,title:"Daily Charges"},{freq:Ao.ONE_TIME,title:"One-Time"},{freq:Ao.NEVER,title:"No Charges"}],r=null===(e=this.quote)||void 0===e?void 0:e.feeQuotes;for(const{freq:e,title:o}of i){if(!(null==r?void 0:r.length)&&e!==Ao.MONTHLY)continue;let i=null!==(t=null==r?void 0:r.filter(t=>{var n,i;if((null===(n=t.marketableFee)||void 0===n?void 0:n.frequency)===e){if(e===Ao.ONE_TIME){return["APPLICATION_SUBMISSION","APPLICATION_APPROVAL","LEASE_SIGNING","MOVE_IN"].includes((null===(i=t.marketableFee)||void 0===i?void 0:i.triggeredByEvent)||"")}return!0}return!!t.sourceRentableItem&&("monthly"===t.sourceRentableItem.rentFrequency&&e===Ao.MONTHLY||"annually"===t.sourceRentableItem.rentFrequency&&e===Ao.ANNUALLY)}))&&void 0!==t?t:[];if(e===Ao.MONTHLY){const e=this.rentAsFeeQuote;e&&(i=[e,...i])}const a=this.renderRecurringFeeSection(o,i);a&&n.push(a)}return n}renderTotalCost(){var e;if(!(null===(e=this.quote)||void 0===e?void 0:e.totalMonthlyCost))return null;const t=this.quote.totalMonthlyCost.fixedValue;return t?B`
|
|
4357
4359
|
<div class="total-cost-section">
|
|
4358
4360
|
<div class="total-cost-row">
|
|
4359
4361
|
<span class="total-cost-label">Total Monthly Cost:</span>
|
|
@@ -4408,7 +4410,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4408
4410
|
|
|
4409
4411
|
${this.renderFeesContent()}
|
|
4410
4412
|
</div>
|
|
4411
|
-
`}};
|
|
4413
|
+
`}};Do.styles=xo,Mo([ue({type:String})],Do.prototype,"buildingSlug",void 0),Mo([ue({type:Boolean})],Do.prototype,"showSkeletonLoader",void 0),Mo([ue({type:Object})],Do.prototype,"selectedUnit",void 0),Mo([ue({type:Object})],Do.prototype,"quote",void 0),Mo([ue({type:Array})],Do.prototype,"layoutOptions",void 0),Mo([ue({type:Array})],Do.prototype,"selectedLayoutIds",void 0),Mo([ue({type:Object})],Do.prototype,"groupedFees",void 0),Mo([ue({type:Array})],Do.prototype,"rentableItems",void 0),Mo([ue({type:Array})],Do.prototype,"units",void 0),Mo([ue({type:Boolean})],Do.prototype,"isLoadingUnits",void 0),Mo([ue()],Do.prototype,"onSelectLayout",void 0),Mo([ue()],Do.prototype,"onUnitSelect",void 0),Mo([ue()],Do.prototype,"onMoveInDateChange",void 0),Mo([ue()],Do.prototype,"onLeaseTermChange",void 0),Mo([ue({type:Object})],Do.prototype,"chargeInputs",void 0),Mo([ue()],Do.prototype,"onChargeInputsChange",void 0),Mo([ue({type:Array})],Do.prototype,"selectedRentableItems",void 0),Mo([ue()],Do.prototype,"onRentableItemAdd",void 0),Mo([ue()],Do.prototype,"onRentableItemRemove",void 0),Do=Mo([se("fee-calculator-layout")],Do);var Uo,Lo,Ro,Bo;!function(e){e.OneTime="OneTime",e.Daily="Daily",e.Weekly="Weekly",e.BiWeekly="BiWeekly",e.Monthly="Monthly",e.Yearly="Yearly",e.Unknown="Unknown"}(Uo||(Uo={})),function(e){e.Debit="Debit",e.Credit="Credit"}(Lo||(Lo={})),function(e){e.Fixed="Fixed",e.UsageBased="UsageBased",e.Varies="Varies"}(Ro||(Ro={})),function(e){e.AdminFee="AdminFee",e.ApplicationFee="ApplicationFee",e.Concession="Concession",e.Insurance="Insurance",e.LateFee="LateFee",e.Legal="Legal",e.NonSufficientFundFee="NSF",e.Other="Other",e.Parking="Parking",e.Penalty="Penalty",e.Pest="Pest",e.PetDeposit="PetDeposit",e.PetRent="PetRent",e.Refund="Refund",e.Relet="Relet",e.Rent="Rent",e.SecurityDeposit="SecurityDeposit",e.Storage="Storage",e.Trash="Trash",e.Utility="Utility",e.WaterSewer="WaterSewer"}(Bo||(Bo={}));const jo=u`
|
|
4412
4414
|
:host {
|
|
4413
4415
|
display: block;
|
|
4414
4416
|
--table-header-bg: white;
|
|
@@ -4476,14 +4478,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4476
4478
|
color: #888;
|
|
4477
4479
|
font-style: italic;
|
|
4478
4480
|
}
|
|
4479
|
-
`;var
|
|
4481
|
+
`;var Fo=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 Ho=class extends oe{constructor(){super(...arguments),this.tooltip="",this.disabled=!1}render(){return B`
|
|
4480
4482
|
<div
|
|
4481
4483
|
class="tooltip-container ${this.disabled?"":"show-tooltip"}"
|
|
4482
4484
|
data-tooltip="${this.tooltip}"
|
|
4483
4485
|
>
|
|
4484
4486
|
<slot></slot>
|
|
4485
4487
|
</div>
|
|
4486
|
-
`}};
|
|
4488
|
+
`}};Ho.styles=u`
|
|
4487
4489
|
:host {
|
|
4488
4490
|
display: block;
|
|
4489
4491
|
position: relative;
|
|
@@ -4517,7 +4519,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4517
4519
|
opacity: 1;
|
|
4518
4520
|
visibility: visible;
|
|
4519
4521
|
}
|
|
4520
|
-
`,
|
|
4522
|
+
`,Fo([ue({type:String})],Ho.prototype,"tooltip",void 0),Fo([ue({type:Boolean,reflect:!0})],Ho.prototype,"disabled",void 0),Ho=Fo([se("simple-tooltip")],Ho);const $o=u`
|
|
4521
4523
|
:host {
|
|
4522
4524
|
display: inline-flex;
|
|
4523
4525
|
}
|
|
@@ -4576,7 +4578,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4576
4578
|
font-style: italic;
|
|
4577
4579
|
cursor: not-allowed;
|
|
4578
4580
|
}
|
|
4579
|
-
`;var
|
|
4581
|
+
`;var zo=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 Go=class extends oe{constructor(){super(...arguments),this.feeItem=null,this._previousFeeItemId=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0}get maxQuantity(){var e,t;return null!==(t=null===(e=this.feeItem)||void 0===e?void 0:e.max_estimate)&&void 0!==t?t:10}updated(e){var t,n;if(!e.has("feeItem"))return;const i=null!==(n=null===(t=this.feeItem)||void 0===t?void 0:t.id)&&void 0!==n?n:null;i!==this._previousFeeItemId&&(this.quantity=0,this._previousFeeItemId=i)}handleIncrement(){this.disabled||this.quantity>=this.maxQuantity||(this.quantity+=1,this.notifyQuantityChange())}handleDecrement(){this.disabled||this.quantity<=0||(this.quantity=Math.max(0,this.quantity-1),this.notifyQuantityChange())}notifyQuantityChange(){this.onQuantityChange&&this.feeItem&&this.onQuantityChange({id:this.feeItem.id,quantities:[{itemType:this.feeItem.fee_name,quantity:this.quantity}]})}render(){return this.feeItem?B`
|
|
4580
4582
|
<div class="quantity-control ${this.disabled?"unavailable":""}">
|
|
4581
4583
|
<button
|
|
4582
4584
|
class="quantity-button"
|
|
@@ -4598,7 +4600,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4598
4600
|
<span class="operator-sign">+</span>
|
|
4599
4601
|
</button>
|
|
4600
4602
|
</div>
|
|
4601
|
-
`:B``}};
|
|
4603
|
+
`:B``}};Go.styles=$o,zo([ue({type:Object})],Go.prototype,"feeItem",void 0),zo([ue()],Go.prototype,"onQuantityChange",void 0),zo([ue({type:Boolean,reflect:!0})],Go.prototype,"disabled",void 0),zo([ue({type:Number})],Go.prototype,"quantity",void 0),Go=zo([se("table-addon-qty-selector")],Go);let Qo=class extends oe{constructor(){super(...arguments),this.rentableItem=null,this._previousRentableItemType=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0,this.selectedItemIds=new Set}get totalAvailableItems(){var e,t,n;return null!==(n=null===(t=null===(e=this.rentableItem)||void 0===e?void 0:e.allItems)||void 0===t?void 0:t.filter(e=>e.available).length)&&void 0!==n?n:0}get maxSelectableItems(){return Math.min(this.totalAvailableItems,10)}get atMaxUnits(){return this.quantity>=this.maxSelectableItems}get atMinUnits(){return this.quantity<=0}updated(e){var t,n;if(e.has("rentableItem")){const e=null!==(n=null===(t=this.rentableItem)||void 0===t?void 0:t.type)&&void 0!==n?n:null;e!==this._previousRentableItemType&&(this.selectedItemIds=new Set,this._previousRentableItemType=e)}}handleIncrement(){this.disabled||this.atMaxUnits||this.emitChange(this.quantity+1)}handleDecrement(){this.disabled||this.atMinUnits||this.emitChange(Math.max(0,this.quantity-1))}emitChange(e){var t;this.rentableItem&&(null===(t=this.onQuantityChange)||void 0===t||t.call(this,{type:this.rentableItem.type,quantity:e}))}render(){if(!this.rentableItem)return B``;const e=this.totalAvailableItems>0,t=this.disabled||!e||this.atMaxUnits,n=this.disabled||this.quantity<=0;return B`
|
|
4602
4604
|
<div
|
|
4603
4605
|
class="quantity-control ${!e||this.disabled?"unavailable":""}"
|
|
4604
4606
|
>
|
|
@@ -4622,7 +4624,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4622
4624
|
<span class="operator-sign">+</span>
|
|
4623
4625
|
</button>
|
|
4624
4626
|
</div>
|
|
4625
|
-
`}}
|
|
4627
|
+
`}};Qo.styles=$o,zo([ue({type:Object})],Qo.prototype,"rentableItem",void 0),zo([ue()],Qo.prototype,"onQuantityChange",void 0),zo([ue({type:Boolean,reflect:!0})],Qo.prototype,"disabled",void 0),zo([ue({type:Number})],Qo.prototype,"quantity",void 0),zo([ue({type:Set})],Qo.prototype,"selectedItemIds",void 0),Qo=zo([se("table-rentable-item-qty-selector")],Qo);var qo=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 Wo=class extends oe{constructor(){super(...arguments),this._addons=[],this.disabled=!1,this.onAddonSelect=null,this.onRentableItemAdd=null,this.onRentableItemRemove=null,this.quantities=new Map,this.selectedRentableItemIds=new Map,this.handleAddonQuantityChange=e=>{var t;const n=e.id;1!==e.quantities.length||Array.isArray(this.quantities.get(n))?this.quantities.set(n,e.quantities):this.quantities.set(n,e.quantities[0].quantity),this.requestUpdate("quantities"),null===(t=this.onAddonSelect)||void 0===t||t.call(this,e)},this.handleRentableItemQuantityChange=e=>{var t,n,i,r,o,a;const s=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;this.quantities.set(e.type,e.quantity),this.requestUpdate("quantities");const l=this.addons.find(t=>t instanceof Fr&&t.type===e.type);if(!l)return;const u=null!==(n=this.selectedRentableItemIds.get(e.type))&&void 0!==n?n:new Set,c=(d=null!==(r=null===(i=l.allItems)||void 0===i?void 0:i.filter(e=>e.available))&&void 0!==r?r:[],[...d].sort((e,t)=>e.rent!==t.rent?e.rent-t.rent:e.id.localeCompare(t.id)));var d;if(e.quantity>s){const t=e.quantity-s;let n=0;const i=Math.min(c.length,10);if(u.size+t>i)return;for(const i of c){if(n>=t)break;u.has(i.id)||(u.add(i.id),null===(o=this.onRentableItemAdd)||void 0===o||o.call(this,{id:i.id,type:e.type}),n++)}}else if(e.quantity<s){const t=s-e.quantity;let n=0;const i=function(e){return[...e].sort((e,t)=>e.rent!==t.rent?t.rent-e.rent:t.id.localeCompare(e.id))}(c.filter(e=>u.has(e.id)));for(const r of i){if(n>=t)break;u.delete(r.id),null===(a=this.onRentableItemRemove)||void 0===a||a.call(this,{id:r.id,type:e.type}),n++}}this.selectedRentableItemIds.set(e.type,u),this.requestUpdate("selectedRentableItemIds")}}set addons(e){const t=this._addons;this._addons=e,e!==t&&this.initializeQuantities(),this.requestUpdate("addons",t)}get addons(){return this._addons}preserveExistingQuantity(e,t){const n=this.quantities.get(e);return null!=n?n:t}initializeRentableItemQuantity(e,t){const n=this.preserveExistingQuantity(e.type,0);t.set(e.type,n),this.selectedRentableItemIds.has(e.type)||this.selectedRentableItemIds.set(e.type,new Set)}initializeBuildingFeeQuantity(e,t){const n=e.id,i=this.preserveExistingQuantity(n,0);t.set(n,i)}initializeQuantities(){const e=new Map;this.addons.forEach(t=>{t instanceof Fr?this.initializeRentableItemQuantity(t,e):this.initializeBuildingFeeQuantity(t,e)}),this.quantities=e}getName(e){return e instanceof Fr?e.displayName:e.fee_name}getSortedAddons(){return[...this.addons].sort((e,t)=>{const n=this.getName(e),i=this.getName(t);return n.localeCompare(i,navigator.language,{numeric:!0})})}isRentableItemAvailable(e){var t,n;return!(e instanceof Fr)||(null!==(n=null===(t=e.allItems)||void 0===t?void 0:t.filter(e=>e.available).length)&&void 0!==n?n:0)>0}renderQtySelector(e){var t;if(e instanceof Fr){const n=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;return B`
|
|
4626
4628
|
<table-rentable-item-qty-selector
|
|
4627
4629
|
.rentableItem=${e}
|
|
4628
4630
|
.quantity=${n}
|
|
@@ -4663,7 +4665,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4663
4665
|
</tbody>
|
|
4664
4666
|
</table>
|
|
4665
4667
|
</div>
|
|
4666
|
-
`:B`<div class="empty-state">No add-ons available</div> `}};
|
|
4668
|
+
`:B`<div class="empty-state">No add-ons available</div> `}};Wo.styles=jo,qo([ue({type:Array})],Wo.prototype,"addons",null),qo([ue({type:Boolean})],Wo.prototype,"disabled",void 0),qo([ue()],Wo.prototype,"onAddonSelect",void 0),qo([ue({attribute:!1})],Wo.prototype,"onRentableItemAdd",void 0),qo([ue({attribute:!1})],Wo.prototype,"onRentableItemRemove",void 0),qo([ce()],Wo.prototype,"quantities",void 0),qo([ce()],Wo.prototype,"selectedRentableItemIds",void 0),Wo=qo([se("addon-table")],Wo);var Vo=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 Yo=class extends oe{constructor(){super(...arguments),this.id="",this.showChatAdditionalActions=!1,this.buildingWebchatView=null,this.primaryColor=null,this.backgroundColor=null,this.enabledChatWidgets={callDesktop:!1,chatDesktop:!1,emailDesktop:!1,textDesktop:!1,sstDesktop:!1},this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClose=()=>{}}render(){const e=this.primaryColor||Le,t=this.backgroundColor||"#ffffff",n=this.buildingWebchatView&&He(this.buildingWebchatView.orgId,this.buildingWebchatView.id)&&e!==Le?Fe(e,.6):"black";return B`
|
|
4667
4669
|
<style>
|
|
4668
4670
|
#${this.id}::after {
|
|
4669
4671
|
border-right-color: ${n} !important;
|
|
@@ -4693,7 +4695,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4693
4695
|
.onClick=${this.onClose}
|
|
4694
4696
|
></minimize-expand-button>
|
|
4695
4697
|
</div>
|
|
4696
|
-
`}};
|
|
4698
|
+
`}};Yo.styles=u`
|
|
4697
4699
|
.hideTab {
|
|
4698
4700
|
display: none;
|
|
4699
4701
|
}
|
|
@@ -4703,7 +4705,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4703
4705
|
justify-content: space-between;
|
|
4704
4706
|
gap: 32px;
|
|
4705
4707
|
}
|
|
4706
|
-
`,
|
|
4708
|
+
`,Vo([ue({type:String})],Yo.prototype,"id",void 0),Vo([ue({type:Boolean})],Yo.prototype,"showChatAdditionalActions",void 0),Vo([ue({type:Object})],Yo.prototype,"buildingWebchatView",void 0),Vo([ue({type:String})],Yo.prototype,"primaryColor",void 0),Vo([ue({type:String})],Yo.prototype,"backgroundColor",void 0),Vo([ue({type:Object})],Yo.prototype,"enabledChatWidgets",void 0),Vo([ue({attribute:!0})],Yo.prototype,"onClickMinimize",void 0),Vo([ue({attribute:!0})],Yo.prototype,"onClickEmailOption",void 0),Vo([ue({attribute:!0})],Yo.prototype,"onClickPhoneOption",void 0),Vo([ue({attribute:!0})],Yo.prototype,"onClickSSTOption",void 0),Vo([ue({attribute:!0})],Yo.prototype,"onClose",void 0),Yo=Vo([se("chat-additional-actions")],Yo);const Ko=u`
|
|
4707
4709
|
:host {
|
|
4708
4710
|
display: block;
|
|
4709
4711
|
}
|
|
@@ -4740,9 +4742,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4740
4742
|
font-size: 0.9rem;
|
|
4741
4743
|
opacity: 0.9;
|
|
4742
4744
|
}
|
|
4743
|
-
`;var
|
|
4745
|
+
`;var Xo=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 Zo=class extends oe{getFormattedEndDate(e){return new Date(e.endDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}render(){return this.incentive?B`
|
|
4744
4746
|
<div class="incentive-banner">
|
|
4745
|
-
<div class="incentive-icon">${
|
|
4747
|
+
<div class="incentive-icon">${to({size:32})}</div>
|
|
4746
4748
|
<div class="incentive-content">
|
|
4747
4749
|
<h2 class="incentive-title">
|
|
4748
4750
|
${this.incentive.originalIncentiveString}
|
|
@@ -4753,7 +4755,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4753
4755
|
</p>
|
|
4754
4756
|
</div>
|
|
4755
4757
|
</div>
|
|
4756
|
-
`:B``}};
|
|
4758
|
+
`:B``}};Zo.styles=Ko,Xo([ue({type:Object})],Zo.prototype,"incentive",void 0),Zo=Xo([se("incentive-banner")],Zo);var Jo=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 ea=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.primaryColor=Le,this.backgroundColor=Re,this.onCloseClicked=null,this.onClickEmailOption=null,this.onClickPhoneOption=null,this.onClickSSTOption=null,this.onClickTextUsOption=null,this.isFirstCalculation=!0,this.isCalculatingQuote=!1,this.isExporting=!1,this.selectedLayoutIds=[Yr],this.selectedUnit=null,this.chargeInputs={base_rent:0,num_pets:0,num_vehicles:0,num_applicants:1,num_cats:0,num_dogs:0,num_other_pets:0},this.desiredRentableItems=[],this.moveInDateString=pn.toISOString().split("T")[0],this.leaseTerm=12,this.buildingWebchatView=null,this.incentives=[],this.quote=null,this.pdfUrl=null,this.groupedFees={[Hr.ONE_TIME]:[],[Hr.MONTHLY]:[],[Hr.WEEKLY]:[],[Hr.BI_WEEKLY]:[],[Hr.ANNUALLY]:[],[Hr.DAILY]:[],[Hr.AS_NEEDED]:[],[Hr.NEVER]:[]},this.rentableItems=[],this.units=[],this.isLoadingUnits=!0,this.quoteAbortController=null,this.quoteDebounceTimer=null,this.startQuoteApiCall=async()=>{var e;null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=new AbortController,this.isCalculatingQuote=!0,await this.performQuoteCalculation(this.quoteAbortController.signal)},this.firstUpdated=async()=>{this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor),await this.setupCalculator(),await this.fetchUnits()},this.setupCalculator=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const[e,t]=await Promise.all([Ii(this.orgSlug,this.buildingSlug),Vr(this.buildingSlug)]);e&&t&&(this.buildingWebchatView=e,this.groupedFees=this.groupFees(t.fees),this.rentableItems=t.rentableItems)},this.requestQuoteCalculation=()=>{if(this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),!this.selectedUnit||!this.moveInDateString)return this.quote=null,this.pdfUrl=null,void(this.isCalculatingQuote=!1);this.quoteDebounceTimer=window.setTimeout(()=>{this.startQuoteApiCall(),this.quoteDebounceTimer=null},1e3)},this.handleUnitSelect=e=>{const t=!this.selectedUnit;if(this.isFirstCalculation=!0,this.selectedUnit=e,t)return this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),this.isCalculatingQuote=!0,void this.startQuoteApiCall();this.requestQuoteCalculation()},this.handleMoveInDateChange=async e=>{this.moveInDateString=e,this.quote=null,this.pdfUrl=null,await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleLeaseTermChange=async e=>{this.leaseTerm=e,this.quote=null,this.pdfUrl=null,await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleChargeInputsChange=e=>{this.chargeInputs={...this.chargeInputs,...e},this.requestQuoteCalculation()},this.handleRentableItemAdd=e=>{this.desiredRentableItems.some(t=>t.id===e.id)||this.desiredRentableItems.push(e),this.requestQuoteCalculation()},this.handleRentableItemRemove=e=>{this.desiredRentableItems=this.desiredRentableItems.filter(t=>t.id!==e.id),this.requestQuoteCalculation()},this.groupFees=e=>e.reduce((e,t)=>{const n=t.frequency||Hr.ONE_TIME;return e[n]=[...e[n]||[],t],e},{}),this.handleClickEmailOption=e=>{this.handleClose(),this.onClickEmailOption&&this.onClickEmailOption(e)},this.handleClickPhoneOption=e=>{this.handleClose(),this.onClickPhoneOption&&this.onClickPhoneOption(e)},this.handleClickSSTOption=e=>{this.handleClose(),this.onClickSSTOption&&this.onClickSSTOption(e)},this.handleClickTextUsOption=e=>{this.handleClose(),this.onClickTextUsOption&&this.onClickTextUsOption(e)},this.handleClose=()=>{var e;null===(e=this.onCloseClicked)||void 0===e||e.call(this)},this.handleSelectLayout=async e=>{this.selectedLayoutIds=e,await this.fetchUnits()},this.handleShare=async()=>{this.selectedUnit&&this.moveInDateString&&this.pdfUrl&&window.open(this.pdfUrl,"_blank")},this.fetchUnits=async()=>{let e;this.isLoadingUnits=!0,this.selectedLayoutIds.includes(Yr)||(e=this.selectedLayoutIds.map(e=>{return 0===(t=e)?0:Math.floor(t/10);var t}));try{if(this.units=await eo({buildingSlug:this.buildingSlug,moveInDateEarliestString:this.moveInDateString,...e?{numBedrooms:e}:{},leaseTermMin:this.leaseTerm}),this.selectedUnit){this.units.some(e=>{var t;return e.id===(null===(t=this.selectedUnit)||void 0===t?void 0:t.id)})||(this.selectedUnit=null,this.quote=null,this.pdfUrl=null)}}finally{this.isLoadingUnits=!1}}}async performQuoteCalculation(e){if(!this.selectedUnit||!this.moveInDateString)return this.quote=null,this.pdfUrl=null,void(this.isCalculatingQuote=!1);const t=dn(Mn(this.moveInDateString),Mn(this.selectedUnit.earliestAvailable))?this.selectedUnit.earliestAvailable:this.moveInDateString;try{const n=await Xr({buildingSlug:this.buildingSlug,unitId:this.selectedUnit.id,chargeInputs:this.chargeInputs,rentableItems:this.desiredRentableItems,leaseTerm:this.leaseTerm,moveInDate:t},e);this.quote=n.quote,this.pdfUrl=n.pdfUrl||null}catch(e){"AbortError"!==(null==e?void 0:e.name)&&(this.quote=null,this.pdfUrl=null,this.isCalculatingQuote=!1,bi({logType:yi.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:e}}))}finally{e.aborted||(this.isCalculatingQuote=!1,this.isFirstCalculation=!1)}}get layouts(){var e,t;return null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.layoutOptions)&&void 0!==t?t:[]}updated(e){(e.has("primaryColor")||e.has("backgroundColor"))&&(this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor))}disconnectedCallback(){var e;super.disconnectedCallback(),this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=null}render(){var e,t;const n=this.isCalculatingQuote&&!this.isExporting&&!this.isFirstCalculation,i=this.isExporting||this.isCalculatingQuote||!this.selectedUnit||!this.moveInDateString||!this.pdfUrl;return B`
|
|
4757
4759
|
<div
|
|
4758
4760
|
class="fee-calculator-container"
|
|
4759
4761
|
@keydown=${e=>e.stopPropagation()}
|
|
@@ -4789,7 +4791,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4789
4791
|
class="close-button"
|
|
4790
4792
|
@click=${this.handleClose}
|
|
4791
4793
|
>
|
|
4792
|
-
${
|
|
4794
|
+
${Zr("gray")}
|
|
4793
4795
|
</button>
|
|
4794
4796
|
</div>
|
|
4795
4797
|
</div>
|
|
@@ -4836,7 +4838,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4836
4838
|
</div>
|
|
4837
4839
|
`:""}
|
|
4838
4840
|
</div>
|
|
4839
|
-
`}};
|
|
4841
|
+
`}};ea.styles=Br,Jo([ue({attribute:!0})],ea.prototype,"buildingSlug",void 0),Jo([ue({attribute:!0})],ea.prototype,"orgSlug",void 0),Jo([ue({type:String})],ea.prototype,"primaryColor",void 0),Jo([ue({type:String})],ea.prototype,"backgroundColor",void 0),Jo([ue()],ea.prototype,"onCloseClicked",void 0),Jo([ue()],ea.prototype,"onClickEmailOption",void 0),Jo([ue()],ea.prototype,"onClickPhoneOption",void 0),Jo([ue()],ea.prototype,"onClickSSTOption",void 0),Jo([ue()],ea.prototype,"onClickTextUsOption",void 0),Jo([ce()],ea.prototype,"isFirstCalculation",void 0),Jo([ce()],ea.prototype,"isCalculatingQuote",void 0),Jo([ce()],ea.prototype,"isExporting",void 0),Jo([ce()],ea.prototype,"selectedLayoutIds",void 0),Jo([ce()],ea.prototype,"selectedUnit",void 0),Jo([ce()],ea.prototype,"chargeInputs",void 0),Jo([ce()],ea.prototype,"desiredRentableItems",void 0),Jo([ce()],ea.prototype,"moveInDateString",void 0),Jo([ce()],ea.prototype,"leaseTerm",void 0),Jo([ce()],ea.prototype,"buildingWebchatView",void 0),Jo([ce()],ea.prototype,"incentives",void 0),Jo([ce()],ea.prototype,"quote",void 0),Jo([ce()],ea.prototype,"pdfUrl",void 0),Jo([ce()],ea.prototype,"groupedFees",void 0),Jo([ce()],ea.prototype,"rentableItems",void 0),Jo([ce()],ea.prototype,"units",void 0),Jo([ce()],ea.prototype,"isLoadingUnits",void 0),ea=Jo([se("fee-calculator")],ea);const ta=u`
|
|
4840
4842
|
#minimize-mobile {
|
|
4841
4843
|
position: absolute;
|
|
4842
4844
|
top: -12px;
|
|
@@ -4883,9 +4885,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4883
4885
|
justify-content: center;
|
|
4884
4886
|
align-items: center;
|
|
4885
4887
|
}
|
|
4886
|
-
`,
|
|
4888
|
+
`,na=(e="white")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
4887
4889
|
<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}"/>
|
|
4888
|
-
</svg>`,
|
|
4890
|
+
</svg>`,ia=(e="black")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
4889
4891
|
<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}"/>
|
|
4890
4892
|
<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"/>
|
|
4891
4893
|
<path d="M4.90283 1V2.30742" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -4893,14 +4895,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4893
4895
|
<path d="M0 6.11862H0.00653352C-3.5908e-06 6.15131 0 6.19053 0 6.22322V6.11862Z" fill="white"/>
|
|
4894
4896
|
<path d="M15.689 6.11862V6.22322C15.689 6.19053 15.689 6.15131 15.6825 6.11862H15.689Z" fill="white"/>
|
|
4895
4897
|
<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"/>
|
|
4896
|
-
</svg>`,
|
|
4898
|
+
</svg>`,ra=(e="white")=>j`
|
|
4897
4899
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
4898
4900
|
<path
|
|
4899
4901
|
fill-rule="evenodd"
|
|
4900
4902
|
clip-rule="evenodd"
|
|
4901
4903
|
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"
|
|
4902
4904
|
fill="${e}"/>
|
|
4903
|
-
</svg>`,
|
|
4905
|
+
</svg>`,oa=(e="white")=>j`<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4904
4906
|
<g clip-path="url(#clip0_18382_27345)">
|
|
4905
4907
|
<g clip-path="url(#clip1_18382_27345)">
|
|
4906
4908
|
<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"/>
|
|
@@ -4917,7 +4919,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4917
4919
|
</clipPath>
|
|
4918
4920
|
</defs>
|
|
4919
4921
|
</svg>
|
|
4920
|
-
`,
|
|
4922
|
+
`,aa=(e="white",t=20,n=-2)=>j`
|
|
4921
4923
|
<svg
|
|
4922
4924
|
width="${t}"
|
|
4923
4925
|
height="${t}"
|
|
@@ -4990,7 +4992,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4990
4992
|
</clipPath>
|
|
4991
4993
|
</defs>
|
|
4992
4994
|
</svg>
|
|
4993
|
-
`;var
|
|
4995
|
+
`;var sa=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.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClickApplyNowOption=()=>{},this.onClickPriceCalculatorOption=()=>{},this.onChatTapped=()=>{},this.hideChat=!1,this.isMobileDesign=!1,this.primaryColor=Le,this.backgroundColor=Re,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasCallUsEnabled=!1,this.hasTextUsEnabled=!1,this.hasSSTEnabled=!1,this.hasApplyNowEnabled=!1,this.hasPricingCalculatorEnabled=!1,this.applicationLink="",this.overrideRentgrata=!1,this.foregroundColorOnSecondaryBackgroundColor="black",this.renderListElement=(e,t,n)=>e?B` <li
|
|
4994
4996
|
@click=${t}
|
|
4995
4997
|
class="typeMobile-bttn"
|
|
4996
4998
|
style=${Ue({background:`${this.primaryColor}`})}
|
|
@@ -5003,12 +5005,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5003
5005
|
</div>
|
|
5004
5006
|
</li>`:""}render(){return B`<div class="typeMobile-list">
|
|
5005
5007
|
<ul>
|
|
5006
|
-
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,
|
|
5007
|
-
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,
|
|
5008
|
-
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,
|
|
5009
|
-
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,
|
|
5010
|
-
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,
|
|
5011
|
-
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,
|
|
5008
|
+
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,oa(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
5009
|
+
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,aa("black"))}
|
|
5010
|
+
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,na(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
5011
|
+
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,Ir(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
5012
|
+
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,ia(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
5013
|
+
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,ra(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
5012
5014
|
${this.isMobileDesign||this.hideChat?"":B`
|
|
5013
5015
|
<li>
|
|
5014
5016
|
<minimize-expand-button
|
|
@@ -5019,20 +5021,20 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5019
5021
|
</li>
|
|
5020
5022
|
`}
|
|
5021
5023
|
</ul>
|
|
5022
|
-
</div>`}};
|
|
5024
|
+
</div>`}};la.styles=[ta],sa([ue({attribute:!0})],la.prototype,"onClickMinimize",void 0),sa([ue({attribute:!0})],la.prototype,"onClickEmailOption",void 0),sa([ue({attribute:!0})],la.prototype,"onClickPhoneOption",void 0),sa([ue({attribute:!0})],la.prototype,"onClickSSTOption",void 0),sa([ue({attribute:!0})],la.prototype,"onClickApplyNowOption",void 0),sa([ue({attribute:!0})],la.prototype,"onClickPriceCalculatorOption",void 0),sa([ue({attribute:!0})],la.prototype,"onChatTapped",void 0),sa([ue({attribute:!0})],la.prototype,"hideChat",void 0),sa([ue({attribute:!0})],la.prototype,"isMobileDesign",void 0),sa([ue({attribute:!0})],la.prototype,"primaryColor",void 0),sa([ue({attribute:!0})],la.prototype,"backgroundColor",void 0),sa([ue({attribute:!0})],la.prototype,"hasChatEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasEmailEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasCallUsEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasTextUsEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasSSTEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasApplyNowEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"hasPricingCalculatorEnabled",void 0),sa([ue({attribute:!0})],la.prototype,"applicationLink",void 0),sa([ue({attribute:!0})],la.prototype,"overrideRentgrata",void 0),sa([ue({attribute:!0})],la.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),la=sa([se("mobile-launcher")],la);const ua=(e="white")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5023
5025
|
<path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5024
|
-
</svg>`;var
|
|
5026
|
+
</svg>`;var ca=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 da=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Le,this.toExpand=!1}render(){return B`
|
|
5025
5027
|
<div class=${"button-container"} @click=${this.onClick}>
|
|
5026
5028
|
<div
|
|
5027
5029
|
class="inner-container"
|
|
5028
5030
|
style=${Ue({background:this.primaryColor})}
|
|
5029
5031
|
>
|
|
5030
|
-
${this.toExpand?
|
|
5032
|
+
${this.toExpand?ua("black"):((e="white")=>j`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
5031
5033
|
<path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5032
5034
|
</svg>`)("black")}
|
|
5033
5035
|
</div>
|
|
5034
5036
|
</div>
|
|
5035
|
-
`}};
|
|
5037
|
+
`}};da.styles=[u`
|
|
5036
5038
|
.button-container {
|
|
5037
5039
|
width: 36px;
|
|
5038
5040
|
height: 36px;
|
|
@@ -5056,11 +5058,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5056
5058
|
.button-container:hover {
|
|
5057
5059
|
filter: brightness(90%);
|
|
5058
5060
|
}
|
|
5059
|
-
`],
|
|
5061
|
+
`],ca([ue({attribute:!0})],da.prototype,"onClick",void 0),ca([ue({attribute:!0})],da.prototype,"primaryColor",void 0),ca([ue({attribute:!0})],da.prototype,"toExpand",void 0),da=ca([se("collapse-expand-button")],da);const ha=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.openWidget()},pa=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.close()},fa=()=>!!window.rentgrata;var ga=n(3950),ma=n.n(ga);const ya=(e="black")=>j`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5060
5062
|
<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}"/>
|
|
5061
5063
|
<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}"/>
|
|
5062
5064
|
</svg>
|
|
5063
|
-
`;var
|
|
5065
|
+
`;var ba=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 va=class extends oe{constructor(){super(...arguments),this.isMinimized=!1,this.mobileStyles={},this.isFirstMount=!1,this.autoOpenChatWidget=!1,this.phoneNumber="",this.buildingName="",this.chatId="",this.orgLegalName="",this.chatCallUsHeader="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.selfGuidedTourEnabled=!1,this.selfGuidedToursTypeOffered="",this.designConcept="",this.featureFlagShowDropdown="",this.leadSources=[],this.currentLeadSource="",this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.hasChatEnabledDesktop=!1,this.hasChatEnabledMobile=!1,this.hasEmailEnabledDesktop=!1,this.hasEmailEnabledMobile=!1,this.hasApplyNowEnabledDesktop=!1,this.hasApplyNowEnabledMobile=!1,this.applicationLink="",this.hasCallUsEnabledDesktop=!1,this.hasCallUsEnabledMobile=!1,this.hasTextUsEnabledDesktop=!1,this.hasTextUsEnabledMobile=!1,this.hasSSTEnabledDesktop=!1,this.hasSSTEnabledMobile=!1,this.tourTypeOptions=[],this.hasDynamicSchedulingEnabled=!1,this.hasPricingCalculatorEnabledDesktop=!1,this.hasPricingCalculatorEnabledMobile=!1,this.onExitChat=()=>{},this.hasHideMobileFeatures=!1,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.showTourNextToChat=!1,this.onChatTapped=()=>{},this.onClickMinimize=()=>{},this.onSstClose=ma(),this.overrideRentgrata=!1,this.launcherStyles={},this.primaryColor=Le,this.backgroundColor=Re,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.isMobileFeaturesExpanded=!1,this.getNumCallToActions=()=>[this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile,!!this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile),this.hasSSTEnabledDesktop||this.hasSSTEnabledMobile,this.hasTextUsEnabledDesktop||this.hasTextUsEnabledMobile,this.hasApplyNowEnabledDesktop||this.hasApplyNowEnabledMobile,this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile].filter(e=>e).length,this.emailUsWindowRef=ke(),this.tourSchedulerRef=ke(),this.calculatorWindowRef=ke(),this.updated=async()=>{this.attachOnClickToEmailUsWindow(),this.attachOnClickToSSTWindow(),this.attachOnClickToCalculatorWindow(),(this.isEmailWindowOpen||this.isCallUsWindowOpen)&&this.isSSTWindowOpen&&this.onCloseSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.attachOnClickToCalculatorWindow=()=>{const e=this.calculatorWindowRef.value;e&&(e.onCloseClicked=this.onCloseCalculatorWindow,e.onClickEmailOption=this.onClickEmailOption,e.onClickPhoneOption=this.onClickPhoneOption,e.onClickSSTOption=this.onClickSSTOption,e.onClickTextUsOption=this.onClickTextUsOption)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),pa(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.onClickPhoneOption=e=>{e.preventDefault(),e.stopPropagation(),pa(),this.isCallUsWindowOpen=!0},this.onClickApplyNowOption=e=>{e.preventDefault(),e.stopPropagation(),pa(),window.open(this.applicationLink,"_blank")},this.onClickPriceCalculatorOption=e=>{e.preventDefault(),e.stopPropagation(),pa(),this.isCalculatorWindowOpen=!0},this.onClosePhoneWindow=()=>{this.isCallUsWindowOpen=!1},this.onClickSSTOption=e=>{e.preventDefault(),e.stopPropagation(),pa(),zn(),Gn(this.buildingId),this.isSSTWindowOpen=!0},this.onCloseSSTWindow=()=>{this.onSstClose(),this.isSSTWindowOpen=!1,this.showTourNextToChat&&this.dispatchEvent(new CustomEvent("closeShowTourNextToChat",{bubbles:!0}))},this.onCloseCalculatorWindow=()=>{this.isCalculatorWindowOpen=!1},this.onClickTextUsOption=e=>{e.preventDefault(),e.stopPropagation(),this.isTextUsWindowOpen=!0},this.isCallToActionWindowOpen=()=>1===[this.isEmailWindowOpen,this.isCallUsWindowOpen,this.isSSTWindowOpen,this.isTextUsWindowOpen,this.isCalculatorWindowOpen].filter(e=>e).length,this.toggleMobileFeatures=()=>{this.isMobileFeaturesExpanded=!this.isMobileFeaturesExpanded},this.renderActionPills=()=>mn()||this.isMinimized||this.designConcept===Ti.MINIMIZED?B` ${this.hasHideMobileFeatures&&mn()?B`<collapse-expand-button
|
|
5064
5066
|
.toExpand=${this.isMobileFeaturesExpanded}
|
|
5065
5067
|
.primaryColor=${this.primaryColor}
|
|
5066
5068
|
.onClick=${this.toggleMobileFeatures}
|
|
@@ -5074,7 +5076,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5074
5076
|
.onClickApplyNowOption=${this.onClickApplyNowOption}
|
|
5075
5077
|
.onClickPriceCalculatorOption=${this.onClickPriceCalculatorOption}
|
|
5076
5078
|
.overrideRentgrata=${this.overrideRentgrata}
|
|
5077
|
-
.isMobileDesign=${mn()||this.designConcept===
|
|
5079
|
+
.isMobileDesign=${mn()||this.designConcept===Ti.MINIMIZED}
|
|
5078
5080
|
.primaryColor=${this.primaryColor}
|
|
5079
5081
|
.backgroundColor=${this.backgroundColor}
|
|
5080
5082
|
.hasChatEnabled=${mn()?this.hasChatEnabledMobile:this.hasChatEnabledDesktop}
|
|
@@ -5086,16 +5088,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5086
5088
|
.applicationLink=${this.applicationLink}
|
|
5087
5089
|
.hasPricingCalculatorEnabled=${mn()?!(this.hasHideMobileFeatures&&!this.isMobileFeaturesExpanded)&&this.hasPricingCalculatorEnabledMobile:this.hasPricingCalculatorEnabledDesktop}
|
|
5088
5090
|
.foregroundColorOnSecondaryBackgroundColor=${this.foregroundColorOnSecondaryBackgroundColor}
|
|
5089
|
-
></mobile-launcher>`:this.designConcept===
|
|
5091
|
+
></mobile-launcher>`:this.designConcept===Ti.EMOJI?this.emojiPillList():this.verticalPillList(),this.emojiPillList=()=>{const e=[{pillKey:"Email",pill:this.hasEmailEnabledDesktop?B` <div
|
|
5090
5092
|
class="type-hey__pill"
|
|
5091
5093
|
@click=${this.onClickEmailOption}
|
|
5092
5094
|
style=${Ue({background:this.backgroundColor})}
|
|
5093
5095
|
>
|
|
5094
5096
|
<div class="type-hey__pill-left">
|
|
5095
|
-
<div class="type-hey__icon">${
|
|
5097
|
+
<div class="type-hey__icon">${na(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5096
5098
|
<div style=${Ue({color:this.foregroundColorOnSecondaryBackgroundColor})}><span class="title-bold">Email</span> an agent</div>
|
|
5097
5099
|
</div>
|
|
5098
|
-
<div class="type-gradient__icon">${
|
|
5100
|
+
<div class="type-gradient__icon">${ua(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5099
5101
|
</div>
|
|
5100
5102
|
</div>`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?B`
|
|
5101
5103
|
<div
|
|
@@ -5103,12 +5105,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5103
5105
|
@click=${this.onClickSSTOption}
|
|
5104
5106
|
style=${Ue({background:this.backgroundColor})}>
|
|
5105
5107
|
<div class="type-hey__pill-left">
|
|
5106
|
-
<div class="type-hey__icon">${
|
|
5108
|
+
<div class="type-hey__icon">${ia(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5107
5109
|
<div style=${Ue({color:this.foregroundColorOnSecondaryBackgroundColor})}>
|
|
5108
5110
|
<span class="title-bold">Book</span> a tour
|
|
5109
5111
|
</div>
|
|
5110
5112
|
</div>
|
|
5111
|
-
<div class="type-gradient__icon">${
|
|
5113
|
+
<div class="type-gradient__icon">${ua(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5112
5114
|
</div>
|
|
5113
5115
|
</div>
|
|
5114
5116
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?B`
|
|
@@ -5118,7 +5120,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5118
5120
|
style=${Ue({background:this.backgroundColor})}
|
|
5119
5121
|
>
|
|
5120
5122
|
<div class="type-hey__pill-left">
|
|
5121
|
-
<div class="type-hey__icon">${
|
|
5123
|
+
<div class="type-hey__icon">${Ir(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5122
5124
|
<div style=${Ue({color:this.foregroundColorOnSecondaryBackgroundColor})}>
|
|
5123
5125
|
${this.hasCallUsEnabledDesktop&&this.hasTextUsEnabledDesktop?B` <span class="title-bold">Call</span> or
|
|
5124
5126
|
<span class="title-bold">text</span> us`:""}
|
|
@@ -5127,7 +5129,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5127
5129
|
|
|
5128
5130
|
</div>
|
|
5129
5131
|
</div>
|
|
5130
|
-
<div class="type-gradient__icon">${
|
|
5132
|
+
<div class="type-gradient__icon">${ua(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5131
5133
|
</div>
|
|
5132
5134
|
</div>
|
|
5133
5135
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?B`
|
|
@@ -5138,7 +5140,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5138
5140
|
>
|
|
5139
5141
|
<div class="type-hey__pill-left">
|
|
5140
5142
|
<div class="type-hey__icon">
|
|
5141
|
-
${
|
|
5143
|
+
${oa(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5142
5144
|
</div>
|
|
5143
5145
|
<div
|
|
5144
5146
|
class="vertical-pill-title"
|
|
@@ -5149,7 +5151,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5149
5151
|
</div>
|
|
5150
5152
|
</div>
|
|
5151
5153
|
<div class="type-gradient__icon">
|
|
5152
|
-
${
|
|
5154
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5153
5155
|
</div>
|
|
5154
5156
|
</div>
|
|
5155
5157
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?B`
|
|
@@ -5160,7 +5162,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5160
5162
|
>
|
|
5161
5163
|
<div class="type-hey__pill-left">
|
|
5162
5164
|
<div class="type-hey__icon">
|
|
5163
|
-
${
|
|
5165
|
+
${aa(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5164
5166
|
</div>
|
|
5165
5167
|
<div
|
|
5166
5168
|
style=${Ue({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -5169,7 +5171,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5169
5171
|
</div>
|
|
5170
5172
|
</div>
|
|
5171
5173
|
<div class="type-gradient__icon">
|
|
5172
|
-
${
|
|
5174
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5173
5175
|
</div>
|
|
5174
5176
|
</div>
|
|
5175
5177
|
`:null}].filter(e=>!!e.pill);return B`
|
|
@@ -5191,7 +5193,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5191
5193
|
</div>
|
|
5192
5194
|
<div class="type-hey__greeting">
|
|
5193
5195
|
<h1>Hey there!</h1>
|
|
5194
|
-
<div>${
|
|
5196
|
+
<div>${ai()}</div>
|
|
5195
5197
|
</div>
|
|
5196
5198
|
${this.hasChatEnabledDesktop?B`
|
|
5197
5199
|
<div
|
|
@@ -5202,7 +5204,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5202
5204
|
>
|
|
5203
5205
|
<div class="type-hey__pill-left">
|
|
5204
5206
|
<div class="type-hey__icon">
|
|
5205
|
-
${
|
|
5207
|
+
${ra(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
5206
5208
|
</div>
|
|
5207
5209
|
<div
|
|
5208
5210
|
style=${Ue({color:this.foregroundColorOnPrimaryBackgroundColor})}
|
|
@@ -5211,7 +5213,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5211
5213
|
</div>
|
|
5212
5214
|
</div>
|
|
5213
5215
|
<div class="type-gradient__icon">
|
|
5214
|
-
${
|
|
5216
|
+
${ua(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
5215
5217
|
</div>
|
|
5216
5218
|
</div>
|
|
5217
5219
|
`:""}
|
|
@@ -5223,18 +5225,18 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5223
5225
|
>
|
|
5224
5226
|
<div class="type-hey__botton-section-pills">
|
|
5225
5227
|
${e.map(e=>e.pill)}
|
|
5226
|
-
${this.overrideRentgrata&&
|
|
5228
|
+
${this.overrideRentgrata&&fa()?B`
|
|
5227
5229
|
<div
|
|
5228
5230
|
class="type-hey__pill"
|
|
5229
|
-
@click=${()=>{
|
|
5231
|
+
@click=${()=>{ha()}}
|
|
5230
5232
|
style=${Ue({background:this.backgroundColor})}>
|
|
5231
5233
|
<div class="type-hey__pill-left">
|
|
5232
|
-
<div class="type-hey__icon">${
|
|
5234
|
+
<div class="type-hey__icon">${ya("black")}</div>
|
|
5233
5235
|
<div>
|
|
5234
5236
|
<span class="title-bold">Contact</span> a resident
|
|
5235
5237
|
</div>
|
|
5236
5238
|
</div>
|
|
5237
|
-
<div class="type-gradient__icon">${
|
|
5239
|
+
<div class="type-gradient__icon">${ua(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5238
5240
|
</div>
|
|
5239
5241
|
</div>`:""}
|
|
5240
5242
|
</div>
|
|
@@ -5252,12 +5254,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5252
5254
|
style=${Ue({background:e?this.backgroundColor:this.primaryColor})}
|
|
5253
5255
|
@click=${this.onChatTapped}>
|
|
5254
5256
|
<div class="vertical-pill-left">
|
|
5255
|
-
<div class="vertical-pill-icon">${
|
|
5257
|
+
<div class="vertical-pill-icon">${ra(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}</div>
|
|
5256
5258
|
<div class="vertical-pill-title" style=${Ue({color:e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor})}>
|
|
5257
5259
|
<span class="vertical-pill-bold">Chat</span> with us
|
|
5258
5260
|
</div>
|
|
5259
5261
|
</div>
|
|
5260
|
-
<div class="chevron-right">${
|
|
5262
|
+
<div class="chevron-right">${ua(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}</div>
|
|
5261
5263
|
</div>
|
|
5262
5264
|
</div>
|
|
5263
5265
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?B`
|
|
@@ -5268,14 +5270,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5268
5270
|
>
|
|
5269
5271
|
<div class="vertical-pill-left">
|
|
5270
5272
|
<div class="vertical-pill-icon">
|
|
5271
|
-
${
|
|
5273
|
+
${aa(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5272
5274
|
</div>
|
|
5273
5275
|
<div class="vertical-pill-title" style="margin-left: -2px;">
|
|
5274
5276
|
<span class="vertical-pill-bold">Calculate</span> Cost
|
|
5275
5277
|
</div>
|
|
5276
5278
|
</div>
|
|
5277
5279
|
<div class="chevron-right">
|
|
5278
|
-
${
|
|
5280
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5279
5281
|
</div>
|
|
5280
5282
|
</div>
|
|
5281
5283
|
`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?B`
|
|
@@ -5287,7 +5289,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5287
5289
|
>
|
|
5288
5290
|
<div class="vertical-pill-left">
|
|
5289
5291
|
<div class="vertical-pill-icon">
|
|
5290
|
-
${
|
|
5292
|
+
${ia(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5291
5293
|
</div>
|
|
5292
5294
|
<div
|
|
5293
5295
|
class="vertical-pill-title"
|
|
@@ -5298,7 +5300,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5298
5300
|
</div>
|
|
5299
5301
|
</div>
|
|
5300
5302
|
<div class="chevron-right">
|
|
5301
|
-
${
|
|
5303
|
+
${ua(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5302
5304
|
</div>
|
|
5303
5305
|
</div>
|
|
5304
5306
|
`:null},{pillKey:"Email",pill:this.hasEmailEnabledDesktop?B`
|
|
@@ -5309,7 +5311,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5309
5311
|
>
|
|
5310
5312
|
<div class="vertical-pill-left">
|
|
5311
5313
|
<div class="vertical-pill-icon">
|
|
5312
|
-
${
|
|
5314
|
+
${na(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5313
5315
|
</div>
|
|
5314
5316
|
<div
|
|
5315
5317
|
class="vertical-pill-title"
|
|
@@ -5320,7 +5322,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5320
5322
|
</div>
|
|
5321
5323
|
</div>
|
|
5322
5324
|
<div class="chevron-right">
|
|
5323
|
-
${
|
|
5325
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5324
5326
|
</div>
|
|
5325
5327
|
</div>
|
|
5326
5328
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?B`
|
|
@@ -5331,7 +5333,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5331
5333
|
>
|
|
5332
5334
|
<div class="vertical-pill-left">
|
|
5333
5335
|
<div class="vertical-pill-icon">
|
|
5334
|
-
${
|
|
5336
|
+
${Ir(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5335
5337
|
</div>
|
|
5336
5338
|
${this.hasCallUsEnabledDesktop&&this.hasTextUsEnabledDesktop?B`
|
|
5337
5339
|
<div
|
|
@@ -5360,7 +5362,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5360
5362
|
`:""}
|
|
5361
5363
|
</div>
|
|
5362
5364
|
<div class="chevron-right">
|
|
5363
|
-
${
|
|
5365
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5364
5366
|
</div>
|
|
5365
5367
|
</div>
|
|
5366
5368
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?B`
|
|
@@ -5371,7 +5373,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5371
5373
|
>
|
|
5372
5374
|
<div class="vertical-pill-left">
|
|
5373
5375
|
<div class="vertical-pill-icon">
|
|
5374
|
-
${
|
|
5376
|
+
${oa(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5375
5377
|
</div>
|
|
5376
5378
|
<div
|
|
5377
5379
|
class="vertical-pill-title"
|
|
@@ -5382,7 +5384,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5382
5384
|
</div>
|
|
5383
5385
|
</div>
|
|
5384
5386
|
<div class="chevron-right">
|
|
5385
|
-
${
|
|
5387
|
+
${ua(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5386
5388
|
</div>
|
|
5387
5389
|
</div>
|
|
5388
5390
|
`:null}].filter(e=>!!e.pill);if(e){const e=t.findIndex(e=>"SST"===e.pillKey);if(-1!==e){const[n]=t.splice(e,1);t.unshift(n)}}return B`
|
|
@@ -5393,27 +5395,27 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5393
5395
|
class="minimize-button"
|
|
5394
5396
|
aria-label="Minimize"
|
|
5395
5397
|
>
|
|
5396
|
-
<div class="chevron-down">${
|
|
5398
|
+
<div class="chevron-down">${ua("black")}</div>
|
|
5397
5399
|
</button>`:""}
|
|
5398
5400
|
${t.map(e=>e.pill)}
|
|
5399
|
-
${this.overrideRentgrata&&
|
|
5400
|
-
@click=${()=>{
|
|
5401
|
+
${this.overrideRentgrata&&fa()?B`<div
|
|
5402
|
+
@click=${()=>{ha()}}
|
|
5401
5403
|
class="inner-pill-wrapper"
|
|
5402
5404
|
style=${Ue({background:this.backgroundColor})}
|
|
5403
5405
|
>
|
|
5404
5406
|
<div class="vertical-pill-left">
|
|
5405
5407
|
<div class="vertical-pill-icon">
|
|
5406
|
-
${
|
|
5408
|
+
${ya(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5407
5409
|
</div>
|
|
5408
5410
|
<div class="vertical-pill-title">
|
|
5409
5411
|
<span class="vertical-pill-bold">Contact</span> a resident
|
|
5410
5412
|
</div>
|
|
5411
5413
|
</div>
|
|
5412
|
-
<div class="chevron-right">${
|
|
5414
|
+
<div class="chevron-right">${ua("black")}</div>
|
|
5413
5415
|
</div>`:""}
|
|
5414
5416
|
</div>
|
|
5415
5417
|
</div>
|
|
5416
|
-
`}}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",
|
|
5418
|
+
`}}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Or),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",Lr),window.eliseAi.onOpenSST=e=>{this.isSSTWindowOpen=!0,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()},(this.hasChatEnabledDesktop||this.hasChatEnabledMobile)&&(window.eliseAi.onOpenChat=e=>{this.onChatTapped(),this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,e&&e()}),(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile)&&(window.eliseAi.onOpenCallUsWindow=e=>{this.isCallUsWindowOpen=!0,this.isSSTWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile)&&(window.eliseAi.onOpenEmailUsWindow=e=>{this.isEmailWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile)&&(window.eliseAi.onOpenPriceCalculatorWindow=e=>{this.isCalculatorWindowOpen=!0,e&&e()});const e={top:mn()||void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:mn()||void 0===this.bottom||isNaN(this.bottom)?void 0:`${this.bottom}px`,left:mn()||void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:mn()||void 0===this.right||isNaN(this.right)?void 0:`${this.right}px`};return B`
|
|
5417
5419
|
<div
|
|
5418
5420
|
class=${Zn()({"launcher__mobile-launcher-wrapper":mn()||this.isMinimized,"launcher__mini-launcher-wrapper":!mn()&&!this.isMinimized,"launcher__mini-elevated":"livcor"===this.orgSlug.toLowerCase()&&(mn()||this.isMinimized)})}
|
|
5419
5421
|
style=${Ue({...this.launcherStyles,...this.mobileStyles,top:mn()||void 0===this.top||isNaN(this.top)?void 0!==this.mobileStyles.top?`${this.mobileStyles.top}px`:void 0:this.top-700+"px",bottom:mn()||void 0===this.bottom||isNaN(this.bottom)?void 0!==this.mobileStyles.bottom?`${this.mobileStyles.bottom}px`:"72px":`${this.bottom}px`,left:mn()||void 0===this.left||isNaN(this.left)?void 0!==this.mobileStyles.left?`${this.mobileStyles.left}px`:void 0:`${this.left}px`,right:mn()||void 0===this.right||isNaN(this.right)?void 0!==this.mobileStyles.right?`${this.mobileStyles.right}px`:"18px":`${this.right}px`})}
|
|
@@ -5517,11 +5519,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5517
5519
|
`:""}
|
|
5518
5520
|
${this.isCallToActionWindowOpen()||this.showTourNextToChat?"":this.renderActionPills()}
|
|
5519
5521
|
</div>
|
|
5520
|
-
`}};
|
|
5521
|
-
${
|
|
5522
|
-
${
|
|
5523
|
-
${
|
|
5524
|
-
`,ga([ue({attribute:!0})],ma.prototype,"isMinimized",void 0),ga([ue()],ma.prototype,"mobileStyles",void 0),ga([ue({type:Boolean})],ma.prototype,"isFirstMount",void 0),ga([ue({attribute:!1})],ma.prototype,"autoOpenChatWidget",void 0),ga([ue()],ma.prototype,"phoneNumber",void 0),ga([ue({attribute:!0})],ma.prototype,"buildingName",void 0),ga([ue({attribute:!0})],ma.prototype,"chatId",void 0),ga([ue({attribute:!0})],ma.prototype,"orgLegalName",void 0),ga([ue({attribute:!0})],ma.prototype,"chatCallUsHeader",void 0),ga([ue({attribute:!1})],ma.prototype,"buildingId",void 0),ga([ue({attribute:!0})],ma.prototype,"buildingSlug",void 0),ga([ue({attribute:!0})],ma.prototype,"orgSlug",void 0),ga([ue({attribute:!0})],ma.prototype,"sgtUrl",void 0),ga([ue({attribute:!0})],ma.prototype,"selfGuidedTourEnabled",void 0),ga([ue({attribute:!0})],ma.prototype,"selfGuidedToursTypeOffered",void 0),ga([ue({attribute:!0})],ma.prototype,"designConcept",void 0),ga([ue({attribute:!0})],ma.prototype,"featureFlagShowDropdown",void 0),ga([ue({attribute:!1})],ma.prototype,"leadSources",void 0),ga([ue({attribute:!0})],ma.prototype,"currentLeadSource",void 0),ga([ue({attribute:!0})],ma.prototype,"escortedToursLink",void 0),ga([ue({attribute:!0})],ma.prototype,"escortedToursTypeOffered",void 0),ga([ue({attribute:!0})],ma.prototype,"virtualToursLink",void 0),ga([ue({attribute:!0})],ma.prototype,"virtualToursTypeOffered",void 0),ga([ue({type:Boolean})],ma.prototype,"hasChatEnabledDesktop",void 0),ga([ue({type:Boolean})],ma.prototype,"hasChatEnabledMobile",void 0),ga([ue({type:Boolean})],ma.prototype,"hasEmailEnabledDesktop",void 0),ga([ue({type:Boolean})],ma.prototype,"hasEmailEnabledMobile",void 0),ga([ue({attribute:!0})],ma.prototype,"hasApplyNowEnabledDesktop",void 0),ga([ue({attribute:!0})],ma.prototype,"hasApplyNowEnabledMobile",void 0),ga([ue({attribute:!0})],ma.prototype,"applicationLink",void 0),ga([ue({type:Boolean})],ma.prototype,"hasCallUsEnabledDesktop",void 0),ga([ue({type:Boolean})],ma.prototype,"hasCallUsEnabledMobile",void 0),ga([ue({type:Boolean})],ma.prototype,"hasTextUsEnabledDesktop",void 0),ga([ue({type:Boolean})],ma.prototype,"hasTextUsEnabledMobile",void 0),ga([ue({type:Boolean})],ma.prototype,"hasSSTEnabledDesktop",void 0),ga([ue({type:Boolean})],ma.prototype,"hasSSTEnabledMobile",void 0),ga([ue({attribute:!1})],ma.prototype,"tourTypeOptions",void 0),ga([ue({attribute:!0})],ma.prototype,"hasDynamicSchedulingEnabled",void 0),ga([ue({attribute:!0})],ma.prototype,"hasPricingCalculatorEnabledDesktop",void 0),ga([ue({attribute:!0})],ma.prototype,"hasPricingCalculatorEnabledMobile",void 0),ga([ue({attribute:!1})],ma.prototype,"hasHideMobileFeatures",void 0),ga([ue({type:Number})],ma.prototype,"right",void 0),ga([ue({type:Number})],ma.prototype,"bottom",void 0),ga([ue({type:Number})],ma.prototype,"top",void 0),ga([ue({type:Number})],ma.prototype,"left",void 0),ga([ue({attribute:!0})],ma.prototype,"showTourNextToChat",void 0),ga([ue({attribute:!1})],ma.prototype,"onChatTapped",void 0),ga([ue({attribute:!0})],ma.prototype,"onClickMinimize",void 0),ga([ue({attribute:!0})],ma.prototype,"onSstClose",void 0),ga([ue({attribute:!0})],ma.prototype,"overrideRentgrata",void 0),ga([ue({attribute:!1})],ma.prototype,"launcherStyles",void 0),ga([ue({attribute:!0})],ma.prototype,"primaryColor",void 0),ga([ue({attribute:!0})],ma.prototype,"backgroundColor",void 0),ga([ue({attribute:!0})],ma.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ga([ue({attribute:!0})],ma.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),ga([ue({attribute:!0})],ma.prototype,"leadSourceClient",void 0),ga([ce()],ma.prototype,"leadSourceMultitouchClient",void 0),ga([ce()],ma.prototype,"isEmailWindowOpen",void 0),ga([ce()],ma.prototype,"isCallUsWindowOpen",void 0),ga([ce()],ma.prototype,"isSSTWindowOpen",void 0),ga([ce()],ma.prototype,"isTextUsWindowOpen",void 0),ga([ce()],ma.prototype,"isCalculatorWindowOpen",void 0),ga([ce()],ma.prototype,"isMobileFeaturesExpanded",void 0),ma=ga([se("meetelise-launcher")],ma);const ya=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",ma)},ba=["app.meetelise.com","staging.eliseai.com","localhost"],va={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},wa=e=>{const t=window.location.hostname;if(!ba.includes(t))return e;const n=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[n,i]=t.split(":");return n&&i&&n in va&&(e[n]="true"===i.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(n).length)return e;const i={...e};return Object.entries(n).forEach(([e,t])=>{const n=va[e];n&&(i[n.desktop]=t,i[n.mobile]=t)}),i};var Ca=n(5072),xa=n.n(Ca),Aa=n(7825),Sa=n.n(Aa),Ea=n(7659),ka=n.n(Ea),Ta=n(5056),_a=n.n(Ta),Oa=n(540),Pa=n.n(Oa),Ia=n(1113),Na=n.n(Ia),Ma=n(5541),Da={};Da.styleTagTransform=Na(),Da.setAttributes=_a(),Da.insert=ka().bind(null,"head"),Da.domAPI=Sa(),Da.insertStyleElement=Pa();xa()(Ma.A,Da);Ma.A&&Ma.A.locals&&Ma.A.locals;async function Ua(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter(t=>e.includes(t))}return La(n.data,t)}return[]}catch(e){return[]}}const La=(e,t)=>{let n=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":n=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":n=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:n=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!n.map(e=>e.toLowerCase()).includes(t)})};var Ra,Ba=n(8805),ja=n.n(Ba),Fa=new Uint8Array(16);function Ha(){if(!Ra&&!(Ra="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ra(Fa)}const $a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const za=function(e){return"string"==typeof e&&$a.test(e)};for(var Ga=[],Qa=0;Qa<256;++Qa)Ga.push((Qa+256).toString(16).substr(1));const qa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ga[e[t+0]]+Ga[e[t+1]]+Ga[e[t+2]]+Ga[e[t+3]]+"-"+Ga[e[t+4]]+Ga[e[t+5]]+"-"+Ga[e[t+6]]+Ga[e[t+7]]+"-"+Ga[e[t+8]]+Ga[e[t+9]]+"-"+Ga[e[t+10]]+Ga[e[t+11]]+Ga[e[t+12]]+Ga[e[t+13]]+Ga[e[t+14]]+Ga[e[t+15]]).toLowerCase();if(!za(n))throw TypeError("Stringified UUID is invalid");return n};const Wa=function(e,t,n){var i=(e=e||{}).random||(e.rng||Ha)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return qa(i)},Va=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Ya=(e,t,n)=>{const i=En(new Date),r=n||`lead_${Wa()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:i,initiatedChat:t})),{leadId:r,timestamp:Mn(i),buildingSlug:e,initiatedChat:t}},Ka=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const n=JSON.parse(t),i={leadId:n.leadId,timestamp:new Date(n.timestamp),buildingSlug:n.buildingSlug,initiatedChat:n.initiatedChat};if(Xa(e,i))return i}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},Xa=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(dn(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!yn(t.timestamp,24)};var Za;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(Za||(Za={}));const Ja=e=>e.type===ts.text,es=e=>e.type===ts.media;var ts;!function(e){e.text="text",e.media="media"}(ts||(ts={}));const ns=class{constructor(e,t,n,i=null,r,o,a=null,s=ql.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.widgetType=ql.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,n;const i={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,i],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==Za.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType){this.simpleChatMessages.some(e=>e.type===ts.text&&e.message.includes("confirmed for your tour"))&&ni("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=this.simpleChatMessages.some(e=>{if(!Ja(e))return!1;const t=e.chunks.find(e=>e.isDone);return!t||e.chunks.length===t.order});t&&(this.streamingMessageTimeout=setTimeout(()=>{gi({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:fi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory()},e))},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;ni("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,n;for(let i=e.length-1;i>=0;i--){const r=null===(t=e[i])||void 0===t?void 0:t.message,o=i>0&&(null===(n=e[i-1])||void 0===n?void 0:n.message);(null==r?void 0:r.messageType)===Za.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&gi({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Ya(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,n,i,r,o,a,s,l;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&gi({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===ql.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,userId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>gn({...e}))}}),null===(a=this.leadSourceMultitouchClient)||void 0===a||a.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(ni("firstChatMessageSent",{message:e,buildingId:null===(s=this.buildingWebchatView)||void 0===s?void 0:s.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),ni("chatMessageSent",{message:e,buildingId:null===(l=this.buildingWebchatView)||void 0===l?void 0:l.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const n=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(n)?(gi({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:fi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(n),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],n={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var i;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(i=e.message.media)&&void 0!==i?i:[],isLeadMessage:this.isLeadMessage(e),type:ts.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:ts.text}):n[e.message.stream_id]?n[e.message.stream_id].push(e):n[e.message.stream_id]=[e]}),Object.keys(n).forEach(e=>{const i=n[e],r=this.getConsecutiveChunks(i.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,n;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(n=e.message.is_done)&&void 0!==n&&n}}),type:ts.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,n;const i=e.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),r=[];let o=null!==(t=i[0].message.order)&&void 0!==t?t:0;for(const e of i){if((null!==(n=e.message.order)&&void 0!==n?n:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.buildingWebchatView=t,this.orgSlug=n,this.leadSource=i,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(ja())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&gi({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&gi({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof i.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&gi({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:fi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let n=[],i=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((n,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=i?i:void 0},(e,t)=>{e.error?o(e):n(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),n=n.concat(t.filter(e=>e.message.messageType!==Za.noReply))}if(i=a[0].timetoken,n.length>=e||a.length<r)break}this.rawPubnubMessages=n.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&gi({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:fi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},is=(e,t,n)=>{const i=`tel:${e}`,r=`sms:${e}`,o=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,u=/(tel|sms):(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,c=/whatsapp:\/\/send\?phone=\d+/g,d=/(facetime|facetime-audio):\d+/g,h=document.body.getElementsByTagName("*");let p=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let g=!1,m=!1,y=0;for(let e=0;e<h.length;e++)if(h[e].nodeType===Node.ELEMENT_NODE){if(1===h[e].childNodes.length&&h[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=h[e].textContent;if(!t)continue;const n=t.replace(l,f);t!==n&&(y++,h[e].textContent=n),p=!0,g||(g=!0)}if(h[e].hasAttribute("href")){const t=h[e].getAttribute("href");if(!t)continue;let n="",l=u;t.startsWith("sms:")?n=r:t.startsWith("whatsapp:")?(n=o,l=c):t.startsWith("facetime:")?(n=a,l=d):t.startsWith("facetime-audio:")?(n=s,l=d):n=i;const p=t.replace(l,n);h[e].setAttribute("href",p),m||(m=!0)}}return g&&gi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:fi.info,buildingSlug:n,orgSlug:t}),m&&gi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:fi.info,buildingSlug:n,orgSlug:t}),p||gi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:fi.warn,buildingSlug:n,orgSlug:t}),y};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.onClick=()=>{},this.primaryColor=Le,this.toExpand=!1}render(){return B`
|
|
5522
|
+
`}};va.styles=u`
|
|
5523
|
+
${Cr}
|
|
5524
|
+
${xr}
|
|
5525
|
+
${Ar}
|
|
5526
|
+
`,ba([ue({attribute:!0})],va.prototype,"isMinimized",void 0),ba([ue()],va.prototype,"mobileStyles",void 0),ba([ue({type:Boolean})],va.prototype,"isFirstMount",void 0),ba([ue({attribute:!1})],va.prototype,"autoOpenChatWidget",void 0),ba([ue()],va.prototype,"phoneNumber",void 0),ba([ue({attribute:!0})],va.prototype,"buildingName",void 0),ba([ue({attribute:!0})],va.prototype,"chatId",void 0),ba([ue({attribute:!0})],va.prototype,"orgLegalName",void 0),ba([ue({attribute:!0})],va.prototype,"chatCallUsHeader",void 0),ba([ue({attribute:!1})],va.prototype,"buildingId",void 0),ba([ue({attribute:!0})],va.prototype,"buildingSlug",void 0),ba([ue({attribute:!0})],va.prototype,"orgSlug",void 0),ba([ue({attribute:!0})],va.prototype,"sgtUrl",void 0),ba([ue({attribute:!0})],va.prototype,"selfGuidedTourEnabled",void 0),ba([ue({attribute:!0})],va.prototype,"selfGuidedToursTypeOffered",void 0),ba([ue({attribute:!0})],va.prototype,"designConcept",void 0),ba([ue({attribute:!0})],va.prototype,"featureFlagShowDropdown",void 0),ba([ue({attribute:!1})],va.prototype,"leadSources",void 0),ba([ue({attribute:!0})],va.prototype,"currentLeadSource",void 0),ba([ue({attribute:!0})],va.prototype,"escortedToursLink",void 0),ba([ue({attribute:!0})],va.prototype,"escortedToursTypeOffered",void 0),ba([ue({attribute:!0})],va.prototype,"virtualToursLink",void 0),ba([ue({attribute:!0})],va.prototype,"virtualToursTypeOffered",void 0),ba([ue({type:Boolean})],va.prototype,"hasChatEnabledDesktop",void 0),ba([ue({type:Boolean})],va.prototype,"hasChatEnabledMobile",void 0),ba([ue({type:Boolean})],va.prototype,"hasEmailEnabledDesktop",void 0),ba([ue({type:Boolean})],va.prototype,"hasEmailEnabledMobile",void 0),ba([ue({attribute:!0})],va.prototype,"hasApplyNowEnabledDesktop",void 0),ba([ue({attribute:!0})],va.prototype,"hasApplyNowEnabledMobile",void 0),ba([ue({attribute:!0})],va.prototype,"applicationLink",void 0),ba([ue({type:Boolean})],va.prototype,"hasCallUsEnabledDesktop",void 0),ba([ue({type:Boolean})],va.prototype,"hasCallUsEnabledMobile",void 0),ba([ue({type:Boolean})],va.prototype,"hasTextUsEnabledDesktop",void 0),ba([ue({type:Boolean})],va.prototype,"hasTextUsEnabledMobile",void 0),ba([ue({type:Boolean})],va.prototype,"hasSSTEnabledDesktop",void 0),ba([ue({type:Boolean})],va.prototype,"hasSSTEnabledMobile",void 0),ba([ue({attribute:!1})],va.prototype,"tourTypeOptions",void 0),ba([ue({attribute:!0})],va.prototype,"hasDynamicSchedulingEnabled",void 0),ba([ue({attribute:!0})],va.prototype,"hasPricingCalculatorEnabledDesktop",void 0),ba([ue({attribute:!0})],va.prototype,"hasPricingCalculatorEnabledMobile",void 0),ba([ue({attribute:!1})],va.prototype,"hasHideMobileFeatures",void 0),ba([ue({type:Number})],va.prototype,"right",void 0),ba([ue({type:Number})],va.prototype,"bottom",void 0),ba([ue({type:Number})],va.prototype,"top",void 0),ba([ue({type:Number})],va.prototype,"left",void 0),ba([ue({attribute:!0})],va.prototype,"showTourNextToChat",void 0),ba([ue({attribute:!1})],va.prototype,"onChatTapped",void 0),ba([ue({attribute:!0})],va.prototype,"onClickMinimize",void 0),ba([ue({attribute:!0})],va.prototype,"onSstClose",void 0),ba([ue({attribute:!0})],va.prototype,"overrideRentgrata",void 0),ba([ue({attribute:!1})],va.prototype,"launcherStyles",void 0),ba([ue({attribute:!0})],va.prototype,"primaryColor",void 0),ba([ue({attribute:!0})],va.prototype,"backgroundColor",void 0),ba([ue({attribute:!0})],va.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ba([ue({attribute:!0})],va.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),ba([ue({attribute:!0})],va.prototype,"leadSourceClient",void 0),ba([ce()],va.prototype,"leadSourceMultitouchClient",void 0),ba([ce()],va.prototype,"isEmailWindowOpen",void 0),ba([ce()],va.prototype,"isCallUsWindowOpen",void 0),ba([ce()],va.prototype,"isSSTWindowOpen",void 0),ba([ce()],va.prototype,"isTextUsWindowOpen",void 0),ba([ce()],va.prototype,"isCalculatorWindowOpen",void 0),ba([ce()],va.prototype,"isMobileFeaturesExpanded",void 0),va=ba([se("meetelise-launcher")],va);const wa=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",va)},Ca=["app.meetelise.com","staging.eliseai.com","localhost"],xa={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},Aa=e=>{const t=window.location.hostname;if(!Ca.includes(t))return e;const n=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[n,i]=t.split(":");return n&&i&&n in xa&&(e[n]="true"===i.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(n).length)return e;const i={...e};return Object.entries(n).forEach(([e,t])=>{const n=xa[e];n&&(i[n.desktop]=t,i[n.mobile]=t)}),i};var Sa=n(5072),Ea=n.n(Sa),ka=n(7825),Ta=n.n(ka),_a=n(7659),Oa=n.n(_a),Pa=n(5056),Ia=n.n(Pa),Na=n(540),Ma=n.n(Na),Da=n(1113),Ua=n.n(Da),La=n(5541),Ra={};Ra.styleTagTransform=Ua(),Ra.setAttributes=Ia(),Ra.insert=Oa().bind(null,"head"),Ra.domAPI=Ta(),Ra.insertStyleElement=Ma();Ea()(La.A,Ra);La.A&&La.A.locals&&La.A.locals;async function Ba(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter(t=>e.includes(t))}return ja(n.data,t)}return[]}catch(e){return[]}}const ja=(e,t)=>{let n=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":n=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":n=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:n=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!n.map(e=>e.toLowerCase()).includes(t)})};var Fa,Ha=n(8805),$a=n.n(Ha),za=new Uint8Array(16);function Ga(){if(!Fa&&!(Fa="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fa(za)}const Qa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const qa=function(e){return"string"==typeof e&&Qa.test(e)};for(var Wa=[],Va=0;Va<256;++Va)Wa.push((Va+256).toString(16).substr(1));const Ya=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Wa[e[t+0]]+Wa[e[t+1]]+Wa[e[t+2]]+Wa[e[t+3]]+"-"+Wa[e[t+4]]+Wa[e[t+5]]+"-"+Wa[e[t+6]]+Wa[e[t+7]]+"-"+Wa[e[t+8]]+Wa[e[t+9]]+"-"+Wa[e[t+10]]+Wa[e[t+11]]+Wa[e[t+12]]+Wa[e[t+13]]+Wa[e[t+14]]+Wa[e[t+15]]).toLowerCase();if(!qa(n))throw TypeError("Stringified UUID is invalid");return n};const Ka=function(e,t,n){var i=(e=e||{}).random||(e.rng||Ga)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Ya(i)},Xa=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Za=(e,t,n)=>{const i=En(new Date),r=n||`lead_${Ka()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:i,initiatedChat:t})),{leadId:r,timestamp:Mn(i),buildingSlug:e,initiatedChat:t}},Ja=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const n=JSON.parse(t),i={leadId:n.leadId,timestamp:new Date(n.timestamp),buildingSlug:n.buildingSlug,initiatedChat:n.initiatedChat};if(es(e,i))return i}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},es=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(dn(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!yn(t.timestamp,24)};var ts;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(ts||(ts={}));const ns=e=>e.type===rs.text,is=e=>e.type===rs.media;var rs;!function(e){e.text="text",e.media="media"}(rs||(rs={}));const os=class{constructor(e,t,n,i=null,r,o,a=null,s=Wl.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.widgetType=Wl.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,n;const i={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,i],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==ts.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType){this.simpleChatMessages.some(e=>e.type===rs.text&&e.message.includes("confirmed for your tour"))&&ni("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=this.simpleChatMessages.some(e=>{if(!ns(e))return!1;const t=e.chunks.find(e=>e.isDone);return!t||e.chunks.length===t.order});t&&(this.streamingMessageTimeout=setTimeout(()=>{bi({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:yi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory()},e))},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;ni("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,n;for(let i=e.length-1;i>=0;i--){const r=null===(t=e[i])||void 0===t?void 0:t.message,o=i>0&&(null===(n=e[i-1])||void 0===n?void 0:n.message);(null==r?void 0:r.messageType)===ts.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&bi({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Za(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,n,i,r,o,a,s,l;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&bi({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===Wl.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,userId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>gn({...e}))}}),null===(a=this.leadSourceMultitouchClient)||void 0===a||a.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(ni("firstChatMessageSent",{message:e,buildingId:null===(s=this.buildingWebchatView)||void 0===s?void 0:s.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),ni("chatMessageSent",{message:e,buildingId:null===(l=this.buildingWebchatView)||void 0===l?void 0:l.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const n=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(n)?(bi({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:yi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(n),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],n={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var i;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(i=e.message.media)&&void 0!==i?i:[],isLeadMessage:this.isLeadMessage(e),type:rs.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:rs.text}):n[e.message.stream_id]?n[e.message.stream_id].push(e):n[e.message.stream_id]=[e]}),Object.keys(n).forEach(e=>{const i=n[e],r=this.getConsecutiveChunks(i.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,n;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(n=e.message.is_done)&&void 0!==n&&n}}),type:rs.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,n;const i=e.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),r=[];let o=null!==(t=i[0].message.order)&&void 0!==t?t:0;for(const e of i){if((null!==(n=e.message.order)&&void 0!==n?n:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.buildingWebchatView=t,this.orgSlug=n,this.leadSource=i,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new($a())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&bi({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&bi({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof i.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&bi({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:yi.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let n=[],i=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((n,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=i?i:void 0},(e,t)=>{e.error?o(e):n(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),n=n.concat(t.filter(e=>e.message.messageType!==ts.noReply))}if(i=a[0].timetoken,n.length>=e||a.length<r)break}this.rawPubnubMessages=n.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&bi({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:yi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},as=(e,t,n)=>{const i=`tel:${e}`,r=`sms:${e}`,o=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,u=/(tel|sms):(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,c=/whatsapp:\/\/send\?phone=\d+/g,d=/(facetime|facetime-audio):\d+/g,h=document.body.getElementsByTagName("*");let p=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let g=!1,m=!1,y=0;for(let e=0;e<h.length;e++)if(h[e].nodeType===Node.ELEMENT_NODE){if(1===h[e].childNodes.length&&h[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=h[e].textContent;if(!t)continue;const n=t.replace(l,f);t!==n&&(y++,h[e].textContent=n),p=!0,g||(g=!0)}if(h[e].hasAttribute("href")){const t=h[e].getAttribute("href");if(!t)continue;let n="",l=u;t.startsWith("sms:")?n=r:t.startsWith("whatsapp:")?(n=o,l=c):t.startsWith("facetime:")?(n=a,l=d):t.startsWith("facetime-audio:")?(n=s,l=d):n=i;const p=t.replace(l,n);h[e].setAttribute("href",p),m||(m=!0)}}return g&&bi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:yi.info,buildingSlug:n,orgSlug:t}),m&&bi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:yi.info,buildingSlug:n,orgSlug:t}),p||bi({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:yi.warn,buildingSlug:n,orgSlug:t}),y};var ss=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 ls=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Le,this.toExpand=!1}render(){return B`
|
|
5525
5527
|
<div
|
|
5526
5528
|
class=${this.toExpand?"button-container mini":"button-container"}
|
|
5527
5529
|
@click=${this.onClick}
|
|
@@ -5530,10 +5532,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5530
5532
|
class="inner-container"
|
|
5531
5533
|
style=${Ue({background:this.primaryColor})}
|
|
5532
5534
|
>
|
|
5533
|
-
${this.toExpand?B`<div class="chevron-up">${
|
|
5535
|
+
${this.toExpand?B`<div class="chevron-up">${ua("white")}</div>`:B` <div class="x-icon">${Zr("white")}</div>`}
|
|
5534
5536
|
</div>
|
|
5535
5537
|
</div>
|
|
5536
|
-
`}};
|
|
5538
|
+
`}};ls.styles=[u`
|
|
5537
5539
|
.button-container {
|
|
5538
5540
|
width: 56px;
|
|
5539
5541
|
height: 56px;
|
|
@@ -5582,7 +5584,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5582
5584
|
cursor: pointer;
|
|
5583
5585
|
filter: brightness(90%);
|
|
5584
5586
|
}
|
|
5585
|
-
`],
|
|
5587
|
+
`],ss([ue({attribute:!0})],ls.prototype,"onClick",void 0),ss([ue({attribute:!0})],ls.prototype,"primaryColor",void 0),ss([ue({attribute:!0})],ls.prototype,"toExpand",void 0),ls=ss([se("minimize-expand-button")],ls);const us=u`
|
|
5586
5588
|
#healthchat-container {
|
|
5587
5589
|
position: fixed;
|
|
5588
5590
|
|
|
@@ -5698,7 +5700,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5698
5700
|
.health-bttn-allow-access {
|
|
5699
5701
|
padding-right: 28px;
|
|
5700
5702
|
}
|
|
5701
|
-
`,
|
|
5703
|
+
`,cs=u`
|
|
5702
5704
|
#pubnub-chat-container {
|
|
5703
5705
|
position: fixed;
|
|
5704
5706
|
|
|
@@ -5757,6 +5759,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5757
5759
|
}
|
|
5758
5760
|
}
|
|
5759
5761
|
|
|
5762
|
+
.disclaimer-container {
|
|
5763
|
+
display: flex;
|
|
5764
|
+
padding: 6px;
|
|
5765
|
+
width: fit-content;
|
|
5766
|
+
box-sizing: border-box;
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5760
5769
|
.disclaimer-message {
|
|
5761
5770
|
font-size: 12px;
|
|
5762
5771
|
}
|
|
@@ -5809,7 +5818,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5809
5818
|
border: none;
|
|
5810
5819
|
cursor: pointer;
|
|
5811
5820
|
}
|
|
5812
|
-
`,
|
|
5821
|
+
`,ds=u`
|
|
5813
5822
|
#header-text {
|
|
5814
5823
|
font-size: 12px;
|
|
5815
5824
|
font-weight: 700;
|
|
@@ -6010,7 +6019,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6010
6019
|
.checkbox:hover {
|
|
6011
6020
|
opacity: 0.5;
|
|
6012
6021
|
}
|
|
6013
|
-
`,{entries:us,setPrototypeOf:cs,isFrozen:ds,getPrototypeOf:hs,getOwnPropertyDescriptor:ps}=Object;let{freeze:fs,seal:gs,create:ms}=Object,{apply:ys,construct:bs}="undefined"!=typeof Reflect&&Reflect;fs||(fs=function(e){return e}),gs||(gs=function(e){return e}),ys||(ys=function(e,t,n){return e.apply(t,n)}),bs||(bs=function(e,t){return new e(...t)});const vs=Ds(Array.prototype.forEach),ws=Ds(Array.prototype.lastIndexOf),Cs=Ds(Array.prototype.pop),xs=Ds(Array.prototype.push),As=Ds(Array.prototype.splice),Ss=Ds(String.prototype.toLowerCase),Es=Ds(String.prototype.toString),ks=Ds(String.prototype.match),Ts=Ds(String.prototype.replace),_s=Ds(String.prototype.indexOf),Os=Ds(String.prototype.trim),Ps=Ds(Object.prototype.hasOwnProperty),Is=Ds(RegExp.prototype.test),Ns=(Ms=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bs(Ms,t)});var Ms;function Ds(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ys(e,t,i)}}function Us(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ss;cs&&cs(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(ds(t)||(t[i]=e),r=e)}e[r]=!0}return e}function Ls(e){for(let t=0;t<e.length;t++){Ps(e,t)||(e[t]=null)}return e}function Rs(e){const t=ms(null);for(const[n,i]of us(e)){Ps(e,n)&&(Array.isArray(i)?t[n]=Ls(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Rs(i):t[n]=i)}return t}function Bs(e,t){for(;null!==e;){const n=ps(e,t);if(n){if(n.get)return Ds(n.get);if("function"==typeof n.value)return Ds(n.value)}e=hs(e)}return function(){return null}}const js=fs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fs=fs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hs=fs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$s=fs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zs=fs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Gs=fs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qs=fs(["#text"]),qs=fs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ws=fs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vs=fs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ys=fs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ks=gs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xs=gs(/<%[\w\W]*|[\w\W]*%>/gm),Zs=gs(/\$\{[\w\W]*/gm),Js=gs(/^data-[\-\w.\u00B7-\uFFFF]+$/),el=gs(/^aria-[\-\w]+$/),tl=gs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nl=gs(/^(?:\w+script|data):/i),il=gs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rl=gs(/^html$/i),ol=gs(/^[a-z][.\w]*(-[.\w]+)+$/i);var al=Object.freeze({__proto__:null,ARIA_ATTR:el,ATTR_WHITESPACE:il,CUSTOM_ELEMENT:ol,DATA_ATTR:Js,DOCTYPE_NAME:rl,ERB_EXPR:Xs,IS_ALLOWED_URI:tl,IS_SCRIPT_OR_DATA:nl,MUSTACHE_EXPR:Ks,TMPLIT_EXPR:Zs});const sl=1,ll=3,ul=7,cl=8,dl=9,hl=function(){return"undefined"==typeof window?null:window};var pl=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hl();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==dl||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=u.prototype,m=Bs(g,"cloneNode"),y=Bs(g,"remove"),b=Bs(g,"nextSibling"),v=Bs(g,"childNodes"),w=Bs(g,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,x="";const{implementation:A,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:k}=i,{importNode:T}=r;let _={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof us&&"function"==typeof w&&A&&void 0!==A.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:N,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:L}=al;let{IS_ALLOWED_URI:R}=al,B=null;const j=Us({},[...js,...Fs,...Hs,...zs,...Qs]);let F=null;const H=Us({},[...qs,...Ws,...Vs,...Ys]);let $=Object.seal(ms(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,Q=!0,q=!0,W=!1,V=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,ae=!1,se={},le=null;const ue=Us({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=Us({},["audio","video","img","source","image","track"]);let he=null;const pe=Us({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ye=me,be=!1,ve=null;const we=Us({},[fe,ge,me],Es);let Ce=Us({},["mi","mo","mn","ms","mtext"]),xe=Us({},["annotation-xml"]);const Ae=Us({},["title","style","font","a","script"]);let Se=null;const Ee=["application/xhtml+xml","text/html"];let ke=null,Te=null;const _e=i.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Rs(e),Se=-1===Ee.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===Se?Es:Ss,B=Ps(e,"ALLOWED_TAGS")?Us({},e.ALLOWED_TAGS,ke):j,F=Ps(e,"ALLOWED_ATTR")?Us({},e.ALLOWED_ATTR,ke):H,ve=Ps(e,"ALLOWED_NAMESPACES")?Us({},e.ALLOWED_NAMESPACES,Es):we,he=Ps(e,"ADD_URI_SAFE_ATTR")?Us(Rs(pe),e.ADD_URI_SAFE_ATTR,ke):pe,ce=Ps(e,"ADD_DATA_URI_TAGS")?Us(Rs(de),e.ADD_DATA_URI_TAGS,ke):de,le=Ps(e,"FORBID_CONTENTS")?Us({},e.FORBID_CONTENTS,ke):ue,z=Ps(e,"FORBID_TAGS")?Us({},e.FORBID_TAGS,ke):Rs({}),G=Ps(e,"FORBID_ATTR")?Us({},e.FORBID_ATTR,ke):Rs({}),se=!!Ps(e,"USE_PROFILES")&&e.USE_PROFILES,Q=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||tl,ye=e.NAMESPACE||me,Ce=e.MATHML_TEXT_INTEGRATION_POINTS||Ce,xe=e.HTML_INTEGRATION_POINTS||xe,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),te&&(ee=!0),se&&(B=Us({},Qs),F=[],!0===se.html&&(Us(B,js),Us(F,qs)),!0===se.svg&&(Us(B,Fs),Us(F,Ws),Us(F,Ys)),!0===se.svgFilters&&(Us(B,Hs),Us(F,Ws),Us(F,Ys)),!0===se.mathMl&&(Us(B,zs),Us(F,Vs),Us(F,Ys))),e.ADD_TAGS&&(B===j&&(B=Rs(B)),Us(B,e.ADD_TAGS,ke)),e.ADD_ATTR&&(F===H&&(F=Rs(F)),Us(F,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Us(he,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ue&&(le=Rs(le)),Us(le,e.FORBID_CONTENTS,ke)),oe&&(B["#text"]=!0),X&&Us(B,["html","head","body"]),B.table&&(Us(B,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ns('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ns('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=e.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else void 0===C&&(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==C&&"string"==typeof x&&(x=C.createHTML(""));fs&&fs(e),Te=e}},Ie=Us({},[...Fs,...Hs,...$s]),Ne=Us({},[...zs,...Gs]),Me=function(e){xs(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},De=function(e,t){try{xs(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){xs(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ue=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=ks(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ye===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=C?C.createHTML(e):e;if(ye===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?x:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ye===me?k.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function je(e,t,i){vs(e,e=>{e.call(n,t,i,Te)})}const Fe=function(e){let t=null;if(je(_.beforeSanitizeElements,e,null),Re(e))return Me(e),!0;const i=ke(e.nodeName);if(je(_.uponSanitizeElement,e,{tagName:i,allowedTags:B}),K&&e.hasChildNodes()&&!Be(e.firstElementChild)&&Is(/<[/\w!]/g,e.innerHTML)&&Is(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===ul)return Me(e),!0;if(K&&e.nodeType===cl&&Is(/<[/\w]/g,e.data))return Me(e),!0;if(!B[i]||z[i]){if(!z[i]&&$e(i)){if($.tagNameCheck instanceof RegExp&&Is($.tagNameCheck,i))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=w(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=m(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Me(e),!0}return e instanceof u&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ss(e.tagName),i=Ss(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Ie[n]):e.namespaceURI===fe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&xe[i]:Boolean(Ne[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[i])&&!(t.namespaceURI===fe&&!Ce[i])&&!Ne[n]&&(Ae[n]||!Ie[n]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Is(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===ll&&(t=e.textContent,vs([O,P,I],e=>{t=Ts(t,e," ")}),e.textContent!==t&&(xs(n.removed,{element:e.cloneNode()}),e.textContent=t)),je(_.afterSanitizeElements,e,null),!1):(Me(e),!0)},He=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in _e))return!1;if(q&&!G[t]&&Is(N,t));else if(Q&&Is(M,t));else if(!F[t]||G[t]){if(!($e(e)&&($.tagNameCheck instanceof RegExp&&Is($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&Is($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t))||"is"===t&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Is($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(he[t]);else if(Is(R,Ts(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_s(n,"data:")||!ce[e]){if(W&&!Is(D,Ts(n,U,"")));else if(n)return!1}else;return!0},$e=function(e){return"annotation-xml"!==e&&ks(e,L)},ze=function(e){je(_.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=ke(a),c=l;let d="value"===a?c:Os(c);if(i.attrName=u,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,je(_.uponSanitizeAttribute,e,i),d=i.attrValue,!re||"id"!==u&&"name"!==u||(De(a,e),d="user-content-"+d),K&&Is(/((--!?|])>)|<\/(style|title)/i,d)){De(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){De(a,e);continue}if(!V&&Is(/\/>/i,d)){De(a,e);continue}Y&&vs([O,P,I],e=>{d=Ts(d,e," ")});const h=ke(e.nodeName);if(He(h,u,d)){if(C&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,u)){case"TrustedHTML":d=C.createHTML(d);break;case"TrustedScriptURL":d=C.createScriptURL(d)}if(d!==c)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Re(e)?Me(e):Cs(n.removed)}catch(t){De(a,e)}}else De(a,e)}je(_.afterSanitizeAttributes,e,null)},Ge=function e(t){let n=null;const i=Le(t);for(je(_.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)je(_.uponSanitizeShadowNode,n,null),Fe(n),ze(n),n.content instanceof a&&e(n.content);je(_.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw Ns("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ns("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Pe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!B[t]||z[t])throw Ns("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Ue("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===sl&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return C&&ne?C.createHTML(e):e;if(i=Ue(e),!i)return ee?null:ne?x:""}i&&J&&Me(i.firstChild);const c=Le(ae?e:i);for(;s=c.nextNode();)Fe(s),ze(s),s.content instanceof a&&Ge(s.content);if(ae)return e;if(ee){if(te)for(u=E.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(F.shadowroot||F.shadowrootmode)&&(u=T.call(r,u,!0)),u}let d=X?i.outerHTML:i.innerHTML;return X&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Is(rl,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Y&&vs([O,P,I],e=>{d=Ts(d,e," ")}),C&&ne?C.createHTML(d):d},n.setConfig=function(){Pe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Pe({});const i=ke(e),r=ke(t);return He(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&xs(_[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=ws(_[e],t);return-1===n?void 0:As(_[e],n,1)[0]}return Cs(_[e])},n.removeHooks=function(e){_[e]=[]},n.removeAllHooks=function(){_={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();class fl extends me{constructor(e){if(super(e),this.it=H,e.type!==fe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||null==e)return this.ft=void 0,this.it=e;if(e===F)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:[]}}}fl.directiveName="unsafeHTML",fl.resultType=1;const gl=ge(fl);var ml=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 yl=class extends oe{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return B`<div class="spinner"></div>`}};yl.styles=u`
|
|
6022
|
+
`,{entries:hs,setPrototypeOf:ps,isFrozen:fs,getPrototypeOf:gs,getOwnPropertyDescriptor:ms}=Object;let{freeze:ys,seal:bs,create:vs}=Object,{apply:ws,construct:Cs}="undefined"!=typeof Reflect&&Reflect;ys||(ys=function(e){return e}),bs||(bs=function(e){return e}),ws||(ws=function(e,t,n){return e.apply(t,n)}),Cs||(Cs=function(e,t){return new e(...t)});const xs=Rs(Array.prototype.forEach),As=Rs(Array.prototype.lastIndexOf),Ss=Rs(Array.prototype.pop),Es=Rs(Array.prototype.push),ks=Rs(Array.prototype.splice),Ts=Rs(String.prototype.toLowerCase),_s=Rs(String.prototype.toString),Os=Rs(String.prototype.match),Ps=Rs(String.prototype.replace),Is=Rs(String.prototype.indexOf),Ns=Rs(String.prototype.trim),Ms=Rs(Object.prototype.hasOwnProperty),Ds=Rs(RegExp.prototype.test),Us=(Ls=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cs(Ls,t)});var Ls;function Rs(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ws(e,t,i)}}function Bs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ts;ps&&ps(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(fs(t)||(t[i]=e),r=e)}e[r]=!0}return e}function js(e){for(let t=0;t<e.length;t++){Ms(e,t)||(e[t]=null)}return e}function Fs(e){const t=vs(null);for(const[n,i]of hs(e)){Ms(e,n)&&(Array.isArray(i)?t[n]=js(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Fs(i):t[n]=i)}return t}function Hs(e,t){for(;null!==e;){const n=ms(e,t);if(n){if(n.get)return Rs(n.get);if("function"==typeof n.value)return Rs(n.value)}e=gs(e)}return function(){return null}}const $s=ys(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zs=ys(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gs=ys(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qs=ys(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qs=ys(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ws=ys(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vs=ys(["#text"]),Ys=ys(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ks=ys(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xs=ys(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zs=ys(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Js=bs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),el=bs(/<%[\w\W]*|[\w\W]*%>/gm),tl=bs(/\$\{[\w\W]*/gm),nl=bs(/^data-[\-\w.\u00B7-\uFFFF]+$/),il=bs(/^aria-[\-\w]+$/),rl=bs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ol=bs(/^(?:\w+script|data):/i),al=bs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sl=bs(/^html$/i),ll=bs(/^[a-z][.\w]*(-[.\w]+)+$/i);var ul=Object.freeze({__proto__:null,ARIA_ATTR:il,ATTR_WHITESPACE:al,CUSTOM_ELEMENT:ll,DATA_ATTR:nl,DOCTYPE_NAME:sl,ERB_EXPR:el,IS_ALLOWED_URI:rl,IS_SCRIPT_OR_DATA:ol,MUSTACHE_EXPR:Js,TMPLIT_EXPR:tl});const cl=1,dl=3,hl=7,pl=8,fl=9,gl=function(){return"undefined"==typeof window?null:window};var ml=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gl();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==fl||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=u.prototype,m=Hs(g,"cloneNode"),y=Hs(g,"remove"),b=Hs(g,"nextSibling"),v=Hs(g,"childNodes"),w=Hs(g,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,x="";const{implementation:A,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:k}=i,{importNode:T}=r;let _={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof hs&&"function"==typeof w&&A&&void 0!==A.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:P,TMPLIT_EXPR:I,DATA_ATTR:N,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:L}=ul;let{IS_ALLOWED_URI:R}=ul,B=null;const j=Bs({},[...$s,...zs,...Gs,...qs,...Vs]);let F=null;const H=Bs({},[...Ys,...Ks,...Xs,...Zs]);let $=Object.seal(vs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,G=null,Q=!0,q=!0,W=!1,V=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,ae=!1,se={},le=null;const ue=Bs({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=Bs({},["audio","video","img","source","image","track"]);let he=null;const pe=Bs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ye=me,be=!1,ve=null;const we=Bs({},[fe,ge,me],_s);let Ce=Bs({},["mi","mo","mn","ms","mtext"]),xe=Bs({},["annotation-xml"]);const Ae=Bs({},["title","style","font","a","script"]);let Se=null;const Ee=["application/xhtml+xml","text/html"];let ke=null,Te=null;const _e=i.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Fs(e),Se=-1===Ee.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===Se?_s:Ts,B=Ms(e,"ALLOWED_TAGS")?Bs({},e.ALLOWED_TAGS,ke):j,F=Ms(e,"ALLOWED_ATTR")?Bs({},e.ALLOWED_ATTR,ke):H,ve=Ms(e,"ALLOWED_NAMESPACES")?Bs({},e.ALLOWED_NAMESPACES,_s):we,he=Ms(e,"ADD_URI_SAFE_ATTR")?Bs(Fs(pe),e.ADD_URI_SAFE_ATTR,ke):pe,ce=Ms(e,"ADD_DATA_URI_TAGS")?Bs(Fs(de),e.ADD_DATA_URI_TAGS,ke):de,le=Ms(e,"FORBID_CONTENTS")?Bs({},e.FORBID_CONTENTS,ke):ue,z=Ms(e,"FORBID_TAGS")?Bs({},e.FORBID_TAGS,ke):Fs({}),G=Ms(e,"FORBID_ATTR")?Bs({},e.FORBID_ATTR,ke):Fs({}),se=!!Ms(e,"USE_PROFILES")&&e.USE_PROFILES,Q=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||rl,ye=e.NAMESPACE||me,Ce=e.MATHML_TEXT_INTEGRATION_POINTS||Ce,xe=e.HTML_INTEGRATION_POINTS||xe,$=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),te&&(ee=!0),se&&(B=Bs({},Vs),F=[],!0===se.html&&(Bs(B,$s),Bs(F,Ys)),!0===se.svg&&(Bs(B,zs),Bs(F,Ks),Bs(F,Zs)),!0===se.svgFilters&&(Bs(B,Gs),Bs(F,Ks),Bs(F,Zs)),!0===se.mathMl&&(Bs(B,qs),Bs(F,Xs),Bs(F,Zs))),e.ADD_TAGS&&(B===j&&(B=Fs(B)),Bs(B,e.ADD_TAGS,ke)),e.ADD_ATTR&&(F===H&&(F=Fs(F)),Bs(F,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Bs(he,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ue&&(le=Fs(le)),Bs(le,e.FORBID_CONTENTS,ke)),oe&&(B["#text"]=!0),X&&Bs(B,["html","head","body"]),B.table&&(Bs(B,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Us('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Us('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=e.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else void 0===C&&(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==C&&"string"==typeof x&&(x=C.createHTML(""));ys&&ys(e),Te=e}},Ie=Bs({},[...zs,...Gs,...Qs]),Ne=Bs({},[...qs,...Ws]),Me=function(e){Es(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},De=function(e,t){try{Es(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Es(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ue=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=Os(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ye===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=C?C.createHTML(e):e;if(ye===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?x:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ye===me?k.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function je(e,t,i){xs(e,e=>{e.call(n,t,i,Te)})}const Fe=function(e){let t=null;if(je(_.beforeSanitizeElements,e,null),Re(e))return Me(e),!0;const i=ke(e.nodeName);if(je(_.uponSanitizeElement,e,{tagName:i,allowedTags:B}),K&&e.hasChildNodes()&&!Be(e.firstElementChild)&&Ds(/<[/\w!]/g,e.innerHTML)&&Ds(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===hl)return Me(e),!0;if(K&&e.nodeType===pl&&Ds(/<[/\w]/g,e.data))return Me(e),!0;if(!B[i]||z[i]){if(!z[i]&&$e(i)){if($.tagNameCheck instanceof RegExp&&Ds($.tagNameCheck,i))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=w(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=m(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Me(e),!0}return e instanceof u&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ts(e.tagName),i=Ts(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Ie[n]):e.namespaceURI===fe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&xe[i]:Boolean(Ne[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[i])&&!(t.namespaceURI===fe&&!Ce[i])&&!Ne[n]&&(Ae[n]||!Ie[n]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Ds(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===dl&&(t=e.textContent,xs([O,P,I],e=>{t=Ps(t,e," ")}),e.textContent!==t&&(Es(n.removed,{element:e.cloneNode()}),e.textContent=t)),je(_.afterSanitizeElements,e,null),!1):(Me(e),!0)},He=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in _e))return!1;if(q&&!G[t]&&Ds(N,t));else if(Q&&Ds(M,t));else if(!F[t]||G[t]){if(!($e(e)&&($.tagNameCheck instanceof RegExp&&Ds($.tagNameCheck,e)||$.tagNameCheck instanceof Function&&$.tagNameCheck(e))&&($.attributeNameCheck instanceof RegExp&&Ds($.attributeNameCheck,t)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(t))||"is"===t&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Ds($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(he[t]);else if(Ds(R,Ps(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Is(n,"data:")||!ce[e]){if(W&&!Ds(D,Ps(n,U,"")));else if(n)return!1}else;return!0},$e=function(e){return"annotation-xml"!==e&&Os(e,L)},ze=function(e){je(_.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Re(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=ke(a),c=l;let d="value"===a?c:Ns(c);if(i.attrName=u,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,je(_.uponSanitizeAttribute,e,i),d=i.attrValue,!re||"id"!==u&&"name"!==u||(De(a,e),d="user-content-"+d),K&&Ds(/((--!?|])>)|<\/(style|title)/i,d)){De(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){De(a,e);continue}if(!V&&Ds(/\/>/i,d)){De(a,e);continue}Y&&xs([O,P,I],e=>{d=Ps(d,e," ")});const h=ke(e.nodeName);if(He(h,u,d)){if(C&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,u)){case"TrustedHTML":d=C.createHTML(d);break;case"TrustedScriptURL":d=C.createScriptURL(d)}if(d!==c)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Re(e)?Me(e):Ss(n.removed)}catch(t){De(a,e)}}else De(a,e)}je(_.afterSanitizeAttributes,e,null)},Ge=function e(t){let n=null;const i=Le(t);for(je(_.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)je(_.uponSanitizeShadowNode,n,null),Fe(n),ze(n),n.content instanceof a&&e(n.content);je(_.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw Us("toString is not a function");if("string"!=typeof(e=e.toString()))throw Us("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Pe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!B[t]||z[t])throw Us("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Ue("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===cl&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return C&&ne?C.createHTML(e):e;if(i=Ue(e),!i)return ee?null:ne?x:""}i&&J&&Me(i.firstChild);const c=Le(ae?e:i);for(;s=c.nextNode();)Fe(s),ze(s),s.content instanceof a&&Ge(s.content);if(ae)return e;if(ee){if(te)for(u=E.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(F.shadowroot||F.shadowrootmode)&&(u=T.call(r,u,!0)),u}let d=X?i.outerHTML:i.innerHTML;return X&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ds(sl,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Y&&xs([O,P,I],e=>{d=Ps(d,e," ")}),C&&ne?C.createHTML(d):d},n.setConfig=function(){Pe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Pe({});const i=ke(e),r=ke(t);return He(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&Es(_[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=As(_[e],t);return-1===n?void 0:ks(_[e],n,1)[0]}return Ss(_[e])},n.removeHooks=function(e){_[e]=[]},n.removeAllHooks=function(){_={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),yl=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 bl=class extends oe{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return B`<div class="spinner"></div>`}};bl.styles=u`
|
|
6014
6023
|
.spinner {
|
|
6015
6024
|
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
6016
6025
|
border-top: 2px solid #c057ff;
|
|
@@ -6028,7 +6037,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6028
6037
|
transform: rotate(360deg);
|
|
6029
6038
|
}
|
|
6030
6039
|
}
|
|
6031
|
-
`,
|
|
6040
|
+
`,yl([ue({type:Number})],bl.prototype,"spinSpeed",void 0),bl=yl([se("mini-loader")],bl);var vl=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 wl=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.loadingPreviews=!0,this.websitePreviewInfo=[],this.imagesToDisplay=[],this.imageUrlError=[],this.isLeadMessage=!1,this.widgetType=Wl.Default}isMessageStillStreamingChunks(){if(!this.message)return!1;const e=this.message.chunks.find(e=>e.isDone);return!e||this.message.chunks.length===e.order}updated(e){var t;if(this.onMount(),!e.has("message"))return;if(!this.message)return;try{this.isMessageStillStreamingChunks()||this.isLeadMessage||!this.invalidMarkdownText(this.message.message)||bi({logType:yi.error,logTitle:"INVALID_MARKDOWN",logData:{message:this.message.message,chatId:null===(t=this.myPubnub)||void 0===t?void 0:t.channel},buildingSlug:this.buildingSlug})}catch(e){}const{hyperlinks:n,markedText:i}=this.mapAndMarkHyperLinks(this.message.message),r=/(https?:\/\/[^\s]+)/g,o=[],a=[];this.parsedMessage=B`${i.trim().split("\n").map(e=>{const t=this.sanitizeMarkdownText(e),i=this.preserveHTMLTags(t);return i?B`${i.map(e=>{if(n.find(t=>t.id===e)){const t=n.find(t=>t.id===e);if(!t)return;return a.push({redirectTo:null==t?void 0:t.link,source:null==t?void 0:t.link}),B`<a
|
|
6032
6041
|
class="redirect-link"
|
|
6033
6042
|
href="${null==t?void 0:t.link}"
|
|
6034
6043
|
target="_blank"
|
|
@@ -6040,10 +6049,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6040
6049
|
target="_blank"
|
|
6041
6050
|
rel="noopener noreferrer"
|
|
6042
6051
|
>${t}
|
|
6043
|
-
</a>`}return B`${
|
|
6052
|
+
</a>`}return B`${ri(ml.sanitize(e))} `})}<br />`:B``})}`,this.imagesToDisplay=a,Promise.all(o).then(e=>{this.websitePreviewInfo=e})}invalidMarkdownText(e){try{return[/\*\*[^*\n]*\*$/,/__[^_\n]*_$/,/`[^`\n]*`$/,/\[[^\]\n]*\]$/,/\[[^\]]*\]\([^)\n]*\)$/,/^(#+)\s*$/,/(^|[^!])\[[^\]]*\]\(([^)]+)\s*\)$/,/(?:^|\s)[*_]{1,2}(?:\s|$)/].some(t=>t.test(e))}catch(e){return!1}}preserveHTMLTags(e){var t;const n=e.match(/(<\/?[a-z][^>]*>[^<]*<\/?[a-z]*>|[^\s]+[.,?!]?|\S)/gi);return null!==(t=null==n?void 0:n.filter(e=>""!==e.trim()))&&void 0!==t?t:[]}sanitizeMarkdownText(e){return e.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/gim,"<b>$1</b>").replace(/\*(.*?)\*/gim,"<i>$1</i>").trim()}removeTrailingPunctuation(e){return[".",",","!","?",":",";"].includes(e[e.length-1])?this.removeTrailingPunctuation(e.slice(0,-1)):e}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[^|]+\|[^>]+>|<a href="[^"]+"(?: target="[^"]*")?>[^<]+<\/a>|\[.*?\]\([^)]*\.[^)]*\)/g)),n=[],i=t.map(t=>{const n=t[0];if(void 0===t.index)return;const i=e[t.index-1],r=e[t.index+n.length];if(n.startsWith("<https")||n.startsWith("<http"))return{matchedLink:n,link:n.split("|")[0].replace("<",""),hyperlink:n.split("|")[1].replace(">",""),addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)};if(n.startsWith("<a href=")){const e=n.match(/href="([^"]+)"/),t=n.match(/>[^<]+</);return{matchedLink:n,link:e?e[1]:"",hyperlink:t?t[0].slice(1,-1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}{const[e,t]=n.split("](");return{matchedLink:n,link:t?t.slice(0,-1):"",hyperlink:e?e.slice(1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}});return i.forEach(t=>{if(t&&t.link&&t.hyperlink){const i=Ka().replace(/-/g,"");n.push({link:this.removeTrailingPunctuation(t.link),hyperlink:this.removeTrailingPunctuation(t.hyperlink),mark:t.matchedLink,id:i}),e=e.replace(t.matchedLink,`${t.addSpaceBefore?" ":""}${i}${t.addSpaceAfter?" ":""}`)}}),{hyperlinks:n,markedText:e}}async getLinkData(e){var t,n,i,o;try{const a=(await r().get(e)).data,s=(new DOMParser).parseFromString(a,"text/html");return s?{title:null!==(n=null===(t=s.querySelector("title"))||void 0===t?void 0:t.textContent)&&void 0!==n?n:null,description:(null===(i=s.querySelector('meta[name="description"]'))||void 0===i?void 0:i.getAttribute("content"))||null,image:(null===(o=s.querySelector('meta[property="og:image"]'))||void 0===o?void 0:o.getAttribute("content"))||null,favicon:null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return{title:null,description:null,image:null,favicon:null,link:e}}}render(){return this.message?B`<div class="message-inner-body">
|
|
6044
6053
|
${this.isMessageStillStreamingChunks()?B`<div class="message-loader"><mini-loader></mini-loader></div>`:""}
|
|
6045
6054
|
<p
|
|
6046
|
-
class=${ye({"message-text":this.widgetType!==
|
|
6055
|
+
class=${ye({"message-text":this.widgetType!==Wl.Utilities,"message-text-large":this.widgetType===Wl.Utilities,"webchat-font__desktop":!mn(),"webchat-font__mobile":mn()})}
|
|
6047
6056
|
>
|
|
6048
6057
|
${this.parsedMessage}
|
|
6049
6058
|
</p>
|
|
@@ -6074,16 +6083,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6074
6083
|
/>`:""}
|
|
6075
6084
|
|
|
6076
6085
|
<div class="website-preview-body">
|
|
6077
|
-
<p class=${ye({"message-text":this.widgetType!==
|
|
6086
|
+
<p class=${ye({"message-text":this.widgetType!==Wl.Utilities,"message-text-large":this.widgetType===Wl.Utilities,"website-preview-title":!0,"webchat-font__desktop":!mn(),"webchat-font__mobile":mn()})}>${e.title}</p>
|
|
6078
6087
|
${e.description?B`<p
|
|
6079
|
-
class=${ye({"message-text":this.widgetType!==
|
|
6088
|
+
class=${ye({"message-text":this.widgetType!==Wl.Utilities,"message-text-large":this.widgetType===Wl.Utilities,"website-preview-description":!0,"webchat-font__desktop":!mn(),"webchat-font__mobile":mn()})}
|
|
6080
6089
|
>
|
|
6081
6090
|
${e.description}
|
|
6082
6091
|
</p>`:""}
|
|
6083
6092
|
</div>
|
|
6084
6093
|
</div>
|
|
6085
6094
|
</a></div> `})}
|
|
6086
|
-
</div>`:B``}};
|
|
6095
|
+
</div>`:B``}};wl.styles=[xn,ds,u`
|
|
6087
6096
|
.message-inner-body {
|
|
6088
6097
|
position: relative;
|
|
6089
6098
|
}
|
|
@@ -6092,7 +6101,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6092
6101
|
bottom: -2px;
|
|
6093
6102
|
right: -2px;
|
|
6094
6103
|
}
|
|
6095
|
-
`],
|
|
6104
|
+
`],vl([ue({attribute:!0})],wl.prototype,"buildingSlug",void 0),vl([ue({attribute:!0})],wl.prototype,"message",void 0),vl([ue({attribute:!0})],wl.prototype,"myPubnub",void 0),vl([ue({attribute:!0})],wl.prototype,"onMount",void 0),vl([ce()],wl.prototype,"loadingPreviews",void 0),vl([ce()],wl.prototype,"parsedMessage",void 0),vl([ce()],wl.prototype,"websitePreviewInfo",void 0),vl([ce()],wl.prototype,"imagesToDisplay",void 0),vl([ce()],wl.prototype,"imageUrlError",void 0),vl([ue({type:Boolean})],wl.prototype,"isLeadMessage",void 0),vl([ue({attribute:!0})],wl.prototype,"widgetType",void 0),wl=vl([se("pubnub-message")],wl);var Cl=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 xl=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.showMediaAsCarousel=!0,this.activeIndex=0}updated(e){this.onMount(),e.has("message")}prevImage(){this.message&&(0===this.activeIndex?this.activeIndex=this.message.media.length-1:this.activeIndex-=1)}nextImage(){this.message&&(this.activeIndex===this.message.media.length-1?this.activeIndex=0:this.activeIndex+=1)}render(){return this.message?this.showMediaAsCarousel?B`<div class="message-inner-body">
|
|
6096
6105
|
<div class="carousel">
|
|
6097
6106
|
<div
|
|
6098
6107
|
class="image-container"
|
|
@@ -6133,7 +6142,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6133
6142
|
rel="noopener noreferrer"
|
|
6134
6143
|
><img class=${"displayed-message-image"} src=${e.url} alt=""
|
|
6135
6144
|
/></a>`)}
|
|
6136
|
-
</div>`:B``}};
|
|
6145
|
+
</div>`:B``}};xl.styles=[xn,ds,u`
|
|
6137
6146
|
.carousel {
|
|
6138
6147
|
position: relative;
|
|
6139
6148
|
max-width: 400px;
|
|
@@ -6225,7 +6234,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6225
6234
|
max-height: 200px;
|
|
6226
6235
|
overflow-y: auto;
|
|
6227
6236
|
}
|
|
6228
|
-
`],
|
|
6237
|
+
`],Cl([ue({attribute:!0})],xl.prototype,"message",void 0),Cl([ue({attribute:!0})],xl.prototype,"myPubnub",void 0),Cl([ue({attribute:!0})],xl.prototype,"onMount",void 0),Cl([ce()],xl.prototype,"showMediaAsCarousel",void 0),Cl([ce()],xl.prototype,"activeIndex",void 0),xl=Cl([se("pubnub-media")],xl);function Al(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Sl(e,t){Ge(2,arguments);var n=Qe(e),i=Qe(t),r=Al(n,i),o=Math.abs(function(e,t){Ge(2,arguments);var n=Qt(e),i=Qt(t),r=n.getTime()-It(n),o=i.getTime()-It(i);return Math.round((r-o)/864e5)}(n,i));n.setDate(n.getDate()-r*o);var a=r*(o-Number(Al(n,i)===-r));return 0===a?0:a}const El=u`
|
|
6229
6238
|
#utilities-container {
|
|
6230
6239
|
position: fixed;
|
|
6231
6240
|
|
|
@@ -6332,21 +6341,21 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6332
6341
|
.health-bttn-allow-access {
|
|
6333
6342
|
padding-right: 28px;
|
|
6334
6343
|
}
|
|
6335
|
-
`,
|
|
6344
|
+
`,kl=(e="black")=>j`
|
|
6336
6345
|
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6337
6346
|
<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}"/>
|
|
6338
6347
|
<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}"/>
|
|
6339
6348
|
</svg>
|
|
6340
|
-
`,
|
|
6349
|
+
`,Tl=(e="black")=>j`
|
|
6341
6350
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6342
6351
|
<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}"/>
|
|
6343
6352
|
<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}"/>
|
|
6344
6353
|
</svg>
|
|
6345
|
-
`;var
|
|
6354
|
+
`;var _l=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 Ol=class extends oe{constructor(){super(...arguments),this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.onMount=()=>({}),this.isHealthChat=!1,this.widgetType=Wl.Default,this.primaryColor=Le,this.backgroundColor=Re,this.onClickExit=()=>{localStorage.setItem("isChatOpen","false")},this.requiresConsent=!1,this.messages=[],this.isLoadingMessages=!1,this.hasReceivedConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.websitePreviewMapping={},this.sendMessage=async e=>{var t;0!==e.length&&(this.messageInput.value="",this.autoResizeMessageInput(),0===this.messages.length&&(this.messages=[{timestamp:0,message:e,isLeadMessage:!0,chunks:[{text:e,order:0,isDone:!0}],type:rs.text}]),await(null===(t=this.myPubnub)||void 0===t?void 0:t.sendMessage(e)))},this.scrollToChatBottom=()=>{this.messageBody.scrollTo({top:this.messageBody.scrollHeight-this.messageBody.clientHeight,behavior:"smooth"})},this.autoResizeMessageInput=()=>{this.messageInput.style.height="auto",this.messageInput.style.height=this.messageInput.scrollHeight+"px"},this.needsConsent=()=>this.requiresConsent&&!this.hasReceivedConsent}get consentKey(){return`${this.orgSlug}Consent`}firstUpdated(){var e,t;this.messages=(null===(e=this.myPubnub)||void 0===e?void 0:e.simpleChatMessages)||[],null===(t=this.myPubnub)||void 0===t||t.addChatListener(e=>{this.messages=e.messages,this.isLoadingMessages=e.isLoading}),this.onMount();const n=localStorage.getItem(this.consentKey);if(!n)return void(this.hasReceivedConsent=!1);const i=JSON.parse(n),{timestamp:r,consentId:o}=i;Sl(new Date,new Date(r))<7&&o===ci?this.hasReceivedConsent=!0:(this.hasReceivedConsent=!1,localStorage.removeItem(this.consentKey))}async updated(){this.scrollToChatBottom();try{const e=document.getElementById("#healthchat-container");if(!e)return;e.focus()}catch(e){}}render(){var e,t,n,i,r,o,a,s,l,u,c,d,h,p,f;if(!this.buildingSlug)return B``;const g=null===(e=this.building)||void 0===e?void 0:e.id;let m={};if(m=mn()?{top:void 0,bottom:0,left:void 0,right:0}:{top:void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:void 0===this.bottom||isNaN(this.bottom)?"130px":`${this.bottom}px`,left:void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:void 0===this.right||isNaN(this.right)?"18px":`${this.right}px`},22320===g&&(m={...m,fontFamily:'"Helvetica Neue", Arial'}),this.widgetType===Wl.Utilities)return B`
|
|
6346
6355
|
<div
|
|
6347
6356
|
id="utilities-container"
|
|
6348
6357
|
class=${ye({"pubnub-container__mobile":mn(),"utilities-container__desktop":!mn()})}
|
|
6349
|
-
style=${Ue(
|
|
6358
|
+
style=${Ue(m)}
|
|
6350
6359
|
>
|
|
6351
6360
|
<div id="utilities-header">
|
|
6352
6361
|
<div>
|
|
@@ -6357,13 +6366,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6357
6366
|
@click=${this.onClickExit}
|
|
6358
6367
|
aria-label="Close chat"
|
|
6359
6368
|
>
|
|
6360
|
-
${
|
|
6369
|
+
${Zr("black")}
|
|
6361
6370
|
</button>
|
|
6362
6371
|
</div>
|
|
6363
6372
|
<div
|
|
6364
6373
|
class=${ye({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6365
6374
|
>
|
|
6366
|
-
${
|
|
6375
|
+
${di(null!==(t=this.orgSlug)&&void 0!==t?t:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e})}
|
|
6367
6376
|
</div>
|
|
6368
6377
|
<div
|
|
6369
6378
|
id="conversation-body"
|
|
@@ -6374,7 +6383,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6374
6383
|
class=${ye({hidden:this.needsConsent()})}
|
|
6375
6384
|
>
|
|
6376
6385
|
<li class="utilities-disclaimer-message">
|
|
6377
|
-
${
|
|
6386
|
+
${hi({orgSlug:null!==(n=this.orgSlug)&&void 0!==n?n:"",type:"utilities",buildingState:null!==(r=null===(i=this.building)||void 0===i?void 0:i.state)&&void 0!==r?r:null})}
|
|
6378
6387
|
</li>
|
|
6379
6388
|
<li class="message-container ai-message">
|
|
6380
6389
|
<p
|
|
@@ -6388,13 +6397,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6388
6397
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
6389
6398
|
key=${e.timestamp}
|
|
6390
6399
|
>
|
|
6391
|
-
${
|
|
6400
|
+
${is(e)?B` <pubnub-media
|
|
6392
6401
|
.message=${e}
|
|
6393
6402
|
.myPubnub=${this.myPubnub}
|
|
6394
6403
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6395
6404
|
>
|
|
6396
6405
|
</pubnub-media>`:""}
|
|
6397
|
-
${
|
|
6406
|
+
${ns(e)?B` <pubnub-message
|
|
6398
6407
|
.message=${e}
|
|
6399
6408
|
.myPubnub=${this.myPubnub}
|
|
6400
6409
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6437,16 +6446,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6437
6446
|
class=${ye({"health-bttn-allow-access":mn()})}
|
|
6438
6447
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
6439
6448
|
>
|
|
6440
|
-
${
|
|
6449
|
+
${kl("black")}
|
|
6441
6450
|
</button>
|
|
6442
6451
|
</div>
|
|
6443
6452
|
</div>
|
|
6444
6453
|
</div>
|
|
6445
|
-
`;if(this.widgetType===
|
|
6454
|
+
`;if(this.widgetType===Wl.Healthcare)return B`
|
|
6446
6455
|
<div
|
|
6447
6456
|
id="healthchat-container"
|
|
6448
6457
|
class=${ye({"pubnub-container__mobile":mn(),"healthchat-container__desktop":!mn()})}
|
|
6449
|
-
style=${Ue(
|
|
6458
|
+
style=${Ue(m)}
|
|
6450
6459
|
>
|
|
6451
6460
|
<div id="healthchat-header">
|
|
6452
6461
|
${"6a9e65e5-9699-4c96-af75-1741d0df79aa"===this.buildingSlug?B` <div>
|
|
@@ -6461,13 +6470,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6461
6470
|
@click=${this.onClickExit}
|
|
6462
6471
|
aria-label="Close chat"
|
|
6463
6472
|
>
|
|
6464
|
-
${
|
|
6473
|
+
${Zr("black")}
|
|
6465
6474
|
</button>
|
|
6466
6475
|
</div>
|
|
6467
6476
|
<div
|
|
6468
6477
|
class=${ye({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6469
6478
|
>
|
|
6470
|
-
${
|
|
6479
|
+
${di(null!==(o=this.orgSlug)&&void 0!==o?o:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e})}
|
|
6471
6480
|
</div>
|
|
6472
6481
|
<div
|
|
6473
6482
|
id="conversation-body"
|
|
@@ -6478,7 +6487,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6478
6487
|
class=${ye({hidden:this.needsConsent()})}
|
|
6479
6488
|
>
|
|
6480
6489
|
<li class="healthcare-disclaimer-message">
|
|
6481
|
-
${
|
|
6490
|
+
${hi({orgSlug:null!==(a=this.orgSlug)&&void 0!==a?a:"",type:"healthcare",buildingState:null!==(l=null===(s=this.building)||void 0===s?void 0:s.state)&&void 0!==l?l:null})}
|
|
6482
6491
|
</li>
|
|
6483
6492
|
<li class="message-container ai-message">
|
|
6484
6493
|
<p
|
|
@@ -6493,13 +6502,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6493
6502
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
6494
6503
|
key=${e.timestamp}
|
|
6495
6504
|
>
|
|
6496
|
-
${
|
|
6505
|
+
${is(e)?B` <pubnub-media
|
|
6497
6506
|
.message=${e}
|
|
6498
6507
|
.myPubnub=${this.myPubnub}
|
|
6499
6508
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6500
6509
|
>
|
|
6501
6510
|
</pubnub-media>`:""}
|
|
6502
|
-
${
|
|
6511
|
+
${ns(e)?B` <pubnub-message
|
|
6503
6512
|
.message=${e}
|
|
6504
6513
|
.myPubnub=${this.myPubnub}
|
|
6505
6514
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6542,16 +6551,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6542
6551
|
class=${ye({"health-bttn-allow-access":mn()})}
|
|
6543
6552
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
6544
6553
|
>
|
|
6545
|
-
${mn()?
|
|
6554
|
+
${mn()?kl("black"):Tl("black")}
|
|
6546
6555
|
</button>
|
|
6547
6556
|
</div>
|
|
6548
6557
|
</div>
|
|
6549
6558
|
</div>
|
|
6550
|
-
`;if(!this.building)return B``;const
|
|
6559
|
+
`;if(!this.building)return B``;const y=this.building.orgId;return B`
|
|
6551
6560
|
<div
|
|
6552
6561
|
id="pubnub-chat-container"
|
|
6553
6562
|
class=${ye({"pubnub-container__mobile":mn(),"pubnub-container__desktop":!mn()})}
|
|
6554
|
-
style=${Ue(
|
|
6563
|
+
style=${Ue(m)}
|
|
6555
6564
|
@keydown=${e=>e.stopPropagation()}
|
|
6556
6565
|
@keyup=${e=>e.stopPropagation()}
|
|
6557
6566
|
>
|
|
@@ -6565,13 +6574,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6565
6574
|
@click=${this.onClickExit}
|
|
6566
6575
|
aria-label="Close chat"
|
|
6567
6576
|
>
|
|
6568
|
-
${
|
|
6577
|
+
${Zr("black")}
|
|
6569
6578
|
</button>
|
|
6570
6579
|
</div>
|
|
6571
6580
|
<div
|
|
6572
6581
|
class=${ye({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6573
6582
|
>
|
|
6574
|
-
${
|
|
6583
|
+
${di(null!==(u=this.orgSlug)&&void 0!==u?u:null,this.privacyPolicyUrl,this.consentKey,e=>{this.hasReceivedConsent=e})}
|
|
6575
6584
|
</div>
|
|
6576
6585
|
<div
|
|
6577
6586
|
id="conversation-body"
|
|
@@ -6582,9 +6591,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6582
6591
|
id="message-thread-list"
|
|
6583
6592
|
class=${ye({hidden:this.needsConsent()})}
|
|
6584
6593
|
>
|
|
6585
|
-
${
|
|
6594
|
+
${hi({orgSlug:null!==(c=this.orgSlug)&&void 0!==c?c:"",buildingState:null!==(h=null===(d=this.building)||void 0===d?void 0:d.state)&&void 0!==h?h:null,type:"leasing",customAdditionalDisclaimer:null===(p=this.building)||void 0===p?void 0:p.customAdditionalDisclaimer})}
|
|
6586
6595
|
${this.building.welcomeMessage?B` <li
|
|
6587
|
-
class=${ye({"message-container":!0,"ai-message":!0,"with-box-shadow":444===
|
|
6596
|
+
class=${ye({"message-container":!0,"ai-message":!0,"with-box-shadow":444===y})}
|
|
6588
6597
|
>
|
|
6589
6598
|
<p
|
|
6590
6599
|
class=${ye({"message-text":!0,"webchat-font__desktop":!mn(),"webchat-font__mobile":mn()})}
|
|
@@ -6594,16 +6603,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6594
6603
|
</li>`:""}
|
|
6595
6604
|
${this.messages.map(e=>B`
|
|
6596
6605
|
<li
|
|
6597
|
-
class=${Zn()("message-container",{"lead-message":e.isLeadMessage,"ai-message":!e.isLeadMessage,"with-box-shadow":444===
|
|
6606
|
+
class=${Zn()("message-container",{"lead-message":e.isLeadMessage,"ai-message":!e.isLeadMessage,"with-box-shadow":444===y})}
|
|
6598
6607
|
key=${e.timestamp}
|
|
6599
6608
|
>
|
|
6600
|
-
${
|
|
6609
|
+
${is(e)?B` <pubnub-media
|
|
6601
6610
|
.message=${e}
|
|
6602
6611
|
.myPubnub=${this.myPubnub}
|
|
6603
6612
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6604
6613
|
>
|
|
6605
6614
|
</pubnub-media>`:""}
|
|
6606
|
-
${
|
|
6615
|
+
${ns(e)?B` <pubnub-message
|
|
6607
6616
|
.message=${e}
|
|
6608
6617
|
.myPubnub=${this.myPubnub}
|
|
6609
6618
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6642,15 +6651,15 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6642
6651
|
tabindex="0"
|
|
6643
6652
|
id="send-message-bttn"
|
|
6644
6653
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
6645
|
-
?disabled=${null===(
|
|
6654
|
+
?disabled=${null===(f=this.myPubnub)||void 0===f?void 0:f.isCurrentlyStreamingMessage}
|
|
6646
6655
|
aria-label="Send message"
|
|
6647
6656
|
aria-describedby="Send message"
|
|
6648
6657
|
>
|
|
6649
|
-
${He(this.building.orgId,this.building.id)&&this.primaryColor!==Le?
|
|
6658
|
+
${He(this.building.orgId,this.building.id)&&this.primaryColor!==Le?Tl("black"):Tl("white")}
|
|
6650
6659
|
</button>
|
|
6651
6660
|
</div>
|
|
6652
6661
|
</div>
|
|
6653
|
-
`}};_l.styles=[xn,ls,ss,as,Sl],Tl([ue({type:Number})],_l.prototype,"right",void 0),Tl([ue({type:Number})],_l.prototype,"bottom",void 0),Tl([ue({type:Number})],_l.prototype,"top",void 0),Tl([ue({type:Number})],_l.prototype,"left",void 0),Tl([ue({attribute:!0})],_l.prototype,"onMount",void 0),Tl([ue({attribute:!0})],_l.prototype,"channel",void 0),Tl([ue({attribute:!0})],_l.prototype,"isHealthChat",void 0),Tl([ue({attribute:!0})],_l.prototype,"myPubnub",void 0),Tl([ue({attribute:!0})],_l.prototype,"orgSlug",void 0),Tl([ue({attribute:!0})],_l.prototype,"buildingSlug",void 0),Tl([ue({attribute:!0})],_l.prototype,"widgetType",void 0),Tl([ue({attribute:!0})],_l.prototype,"building",void 0),Tl([ue({attribute:!0})],_l.prototype,"primaryColor",void 0),Tl([ue({attribute:!0})],_l.prototype,"backgroundColor",void 0),Tl([ue({attribute:!0})],_l.prototype,"onClickExit",void 0),Tl([ue({attribute:!0})],_l.prototype,"requiresConsent",void 0),Tl([de("#message-input",!0)],_l.prototype,"messageInput",void 0),Tl([de("#conversation-body",!0)],_l.prototype,"messageBody",void 0),Tl([ce()],_l.prototype,"messages",void 0),Tl([ce()],_l.prototype,"isLoadingMessages",void 0),Tl([ce()],_l.prototype,"hasReceivedConsent",void 0),Tl([ce()],_l.prototype,"privacyPolicyUrl",void 0),Tl([ce()],_l.prototype,"websitePreviewMapping",void 0),_l=Tl([se("pubnub-chat")],_l);const Ol=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?`${t}/units`:t;class Pl{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>En(kn(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=yi();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(pi()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),n=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"touchpoint"}]};localStorage.setItem(n,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(n,JSON.stringify(t));gi({logType:fi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),n=Ci(this.orgSlug);if(!t){const t=[{leadSourceValue:n,timestampInitiallyLogged:En(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"user-selected"}),t}const i=t.leadSources.length>0?t.leadSources.sort((e,t)=>Mn(e.timestampInitiallyLogged).getTime()-Mn(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:En(new Date),r=[{timestampInitiallyLogged:i,leadSourceValue:n,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>Mn(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}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.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=ei.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=ql.Default,this.onWidgetLoaded=pa(),this.onSstClose=pa(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=ke(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await _i(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,t)=>{const n=window.rentgrata;if(!n)return;const i=n.Widget;if(!i)return;const o=i.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}await yr(e,this.buildingSlug,this.orgSlug)&&(mi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==e?void 0:e.launchedDateTime)?.01:.05}),this.buildingWebchatView=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0))},this.setBuildingDerivedInfo=async()=>{var e,t,n,i,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w,C,x,A,S,E,k,T,_,O,P,I,N,M,D,U,L,R,B,j,F,H,$,z,G,Q,q;const W=this.buildingWebchatView;if(!W)return;W&&this.orgSlug&&Dl(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null);const V=W.featureFlagWebchatMarketingSourceDropdownConfiguration,Y=W.featureFlagWebchatUseDniPhoneNumberBySource,K=W.featureFlagInsertDniIntoWebsite,X=W.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite,[Z,J]=await Promise.all([Ua(this.orgSlug,this.buildingSlug),ti(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Ie(W.phoneNumber)),this.leadSources=Z,this.featureFlagShowDropdown=V;const ee=W.textWithUsPhoneNumber?W.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",n=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return gi({logType:fi.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug),te=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,ne=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,ie={callDesktop:null!==(c=null===(u=this.buildingWebchatView)||void 0===u?void 0:u.shouldShowPhoneDesktop)&&void 0!==c&&c,callMobile:null!==(h=null===(d=this.buildingWebchatView)||void 0===d?void 0:d.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(b=null===(y=this.buildingWebchatView)||void 0===y?void 0:y.shouldShowEmailDesktop)&&void 0!==b&&b,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(x=(null===(C=this.buildingWebchatView)||void 0===C?void 0:C.shouldShowTextDesktop)&&!!ee)&&void 0!==x&&x,textMobile:null!==(S=(null===(A=this.buildingWebchatView)||void 0===A?void 0:A.shouldShowTextMobile)&&!!ee)&&void 0!==S&&S,sstDesktop:null!==(k=null===(E=this.buildingWebchatView)||void 0===E?void 0:E.shouldShowSstDesktop)&&void 0!==k&&k,sstMobile:null!==(_=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==_&&_,calcDesktop:te,calcMobile:ne};var re,oe;this.enabledChatWidgets=wa(ie),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(oe=this.handleTourClicked,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",e=>{e.preventDefault(),oe(e)})}),X&&(e=>{document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(t=>{t&&t.addEventListener("click",t=>{t.preventDefault(),e(t)})})})(this.handleTourClicked),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var n;if(!t)return;const i=document.createElement("a");i.textContent=t.textContent,i.style.cursor="pointer",i.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(n=t.parentNode)||void 0===n||n.replaceChild(i,t)})})(this.handleTourClicked)):(null===(O=this.LeadSourceClient)||void 0===O?void 0:O.leadSource)&&(re=null!==(I=null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&void 0!==I?I:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const n=t.includes("?")?"&":"?";e.setAttribute("href",t+n+`eliseParsedLeadSource=${encodeURIComponent(re)}`)}})),this.buildingWebchatView&&(this.primaryColor=null!==(N=this.buildingWebchatView.primaryColor)&&void 0!==N?N:null,this.backgroundColor=null!==(M=this.buildingWebchatView.secondaryColor)&&void 0!==M?M:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(D=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==D?D:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(U=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==U?U:null,this.webchatConfigHasAutoOpenChat=null!==(L=this.buildingWebchatView.autoOpenChat)&&void 0!==L&&L,this.requiresConsent=null!==(R=this.buildingWebchatView.requiresConsentForChat)&&void 0!==R&&R,this.hideMobileFeatures=null!==(B=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==B&&B,this.privacyPolicyUrl=null!==(j=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==j?j:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===Si.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===Si.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===Si.EMOJI&&(this.designConcept=Si.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Le),null===this.backgroundColor&&(this.backgroundColor=Re);const ae=null!==(H=null===(F=this.buildingWebchatView)||void 0===F?void 0:F.phoneNumber)&&void 0!==H?H:"";let se=null;if(Y&&(se=await async function(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return n.data?{number:Ie(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(z=null===($=this.LeadSourceClient)||void 0===$?void 0:$.leadSource)&&void 0!==z?z:null),se&&!se.isMatch&&(se.number=ae)),K&&(null==se?void 0:se.number)){const e=is(se.number,this.orgSlug,this.buildingSlug);e>0&&mi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const le=localStorage.getItem("eliseai_phone_number_devtest");le&&is(le,this.orgSlug,this.buildingSlug),this.phoneNumberForSource=se||{number:ae,isMatch:!1,isPropertyWebsiteCatchall:!0};const ue=null!==(Q=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==Q?Q:null;if(ue&&(this.leadSources.includes(ue)||this.leadSources.push(ue)),Gn(W.id),J&&this.buildingSlug&&(null===(q=this.buildingWebchatView)||void 0===q?void 0:q.isLiveOnApplications)){const e=((e,t,n)=>{var i;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(i=l.textContent)||void 0===i?void 0:i.toLowerCase())||"",s=Ol(o,e);l.setAttribute("href",s),a++,gi({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:fi.info,buildingSlug:n,orgSlug:t})}}return 0===a&&gi({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:fi.warn,buildingSlug:n,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}`,this.orgSlug,this.buildingSlug);e>0&&mi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}},this.initializeChatVariables=async()=>{var e,t,n,i,r,o,a;if(!this.buildingWebchatView)return;const s=Ka(this.buildingSlug),l=Xa(this.buildingSlug,s)?s:Ya(this.buildingSlug,!1);if(!l.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new xi,this.LeadSourceMultitouchClient=new Pl(this.orgSlug,this.buildingSlug),this.myPubnub=new ns(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,l.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel;const u=await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(t=this.myPubnub)||void 0===t?void 0:t.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));u&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(u),"property-website"!==Ci(this.orgSlug)?this.myPubnub.leadSource=null!==(r=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==r?r:Ci(this.orgSlug):this.myPubnub.leadSource=null!==(a=null===(o=this.LeadSourceClient)||void 0===o?void 0:o.leadSource)&&void 0!==a?a:null,l.initiatedChat&&await this.myPubnub.initializePubnub(s)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),n=!t||!(t&&!Pn(Mn(t)));return!!e&&!!n&&!mn()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",En(function(e,t){return Ge(2,arguments),st(e,6e4*at(t))}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,n,i;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,n,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w;if("Tab"===e.key){const C=this.displayPubnubChat?null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"):null!==(g=null!==(u=null===(l=null===(s=null===(a=null===(o=null===(r=this.shadowRoot)||void 0===r?void 0:r.getElementById("meetelise-launcher"))||void 0===o?void 0:o.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(p=null===(h=null===(d=null===(c=this.shadowRoot)||void 0===c?void 0:c.getElementById("meetelise-launcher"))||void 0===d?void 0:d.shadowRoot)||void 0===h?void 0:h.getElementById("tour-scheduler-window"))||void 0===p?void 0:p.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==g?g:null===(w=null===(v=null===(b=null===(y=null===(m=this.shadowRoot)||void 0===m?void 0:m.getElementById("meetelise-launcher"))||void 0===y?void 0:y.shadowRoot)||void 0===b?void 0:b.getElementById("call-us-window"))||void 0===v?void 0:v.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!C)return;e.preventDefault();const x=C.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),A=Array.from(x),S=A.findIndex(e=>e.matches(":focus"));A[(S+1)%A.length].focus()}},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")}}async handleChatInitializeAnalytics(){var e,t,n,i;this.analytics=new hi(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Va(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){gi({logType:fi.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,n,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w,C,x,A,S,E,k,T,_,O,P,I,N,M,D,U;ya();const L=this.hideLauncher&&!this.isLoading&&!mn();return B`
|
|
6662
|
+
`}};Ol.styles=[xn,ds,cs,us,El],_l([ue({type:Number})],Ol.prototype,"right",void 0),_l([ue({type:Number})],Ol.prototype,"bottom",void 0),_l([ue({type:Number})],Ol.prototype,"top",void 0),_l([ue({type:Number})],Ol.prototype,"left",void 0),_l([ue({attribute:!0})],Ol.prototype,"onMount",void 0),_l([ue({attribute:!0})],Ol.prototype,"channel",void 0),_l([ue({attribute:!0})],Ol.prototype,"isHealthChat",void 0),_l([ue({attribute:!0})],Ol.prototype,"myPubnub",void 0),_l([ue({attribute:!0})],Ol.prototype,"orgSlug",void 0),_l([ue({attribute:!0})],Ol.prototype,"buildingSlug",void 0),_l([ue({attribute:!0})],Ol.prototype,"widgetType",void 0),_l([ue({attribute:!0})],Ol.prototype,"building",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,"onClickExit",void 0),_l([ue({attribute:!0})],Ol.prototype,"requiresConsent",void 0),_l([de("#message-input",!0)],Ol.prototype,"messageInput",void 0),_l([de("#conversation-body",!0)],Ol.prototype,"messageBody",void 0),_l([ce()],Ol.prototype,"messages",void 0),_l([ce()],Ol.prototype,"isLoadingMessages",void 0),_l([ce()],Ol.prototype,"hasReceivedConsent",void 0),_l([ce()],Ol.prototype,"privacyPolicyUrl",void 0),_l([ce()],Ol.prototype,"websitePreviewMapping",void 0),Ol=_l([se("pubnub-chat")],Ol);const Pl=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?`${t}/units`:t;class Il{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>En(kn(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=wi();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(mi()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),n=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"touchpoint"}]};localStorage.setItem(n,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(n,JSON.stringify(t));bi({logType:yi.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),n=Si(this.orgSlug);if(!t){const t=[{leadSourceValue:n,timestampInitiallyLogged:En(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"user-selected"}),t}const i=t.leadSources.length>0?t.leadSources.sort((e,t)=>Mn(e.timestampInitiallyLogged).getTime()-Mn(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:En(new Date),r=[{timestampInitiallyLogged:i,leadSourceValue:n,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:En(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>Mn(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var Nl=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 Ml=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=ei.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=Wl.Default,this.onWidgetLoaded=ma(),this.onSstClose=ma(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=ke(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await Ii(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,t)=>{const n=window.rentgrata;if(!n)return;const i=n.Widget;if(!i)return;const o=i.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}await wr(e,this.buildingSlug,this.orgSlug)&&(vi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==e?void 0:e.launchedDateTime)?.01:.05}),this.buildingWebchatView=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0))},this.setBuildingDerivedInfo=async()=>{var e,t,n,i,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w,C,x,A,S,E,k,T,_,O,P,I,N,M,D,U,L,R,B,j,F,H,$,z,G,Q,q;const W=this.buildingWebchatView;if(!W)return;W&&this.orgSlug&&Ul(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null);const V=W.featureFlagWebchatMarketingSourceDropdownConfiguration,Y=W.featureFlagWebchatUseDniPhoneNumberBySource,K=W.featureFlagInsertDniIntoWebsite,X=W.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite,[Z,J]=await Promise.all([Ba(this.orgSlug,this.buildingSlug),ti(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Ie(W.phoneNumber)),this.leadSources=Z,this.featureFlagShowDropdown=V;const ee=W.textWithUsPhoneNumber?W.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",n=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return bi({logType:yi.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug),te=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,ne=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,ie={callDesktop:null!==(c=null===(u=this.buildingWebchatView)||void 0===u?void 0:u.shouldShowPhoneDesktop)&&void 0!==c&&c,callMobile:null!==(h=null===(d=this.buildingWebchatView)||void 0===d?void 0:d.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(b=null===(y=this.buildingWebchatView)||void 0===y?void 0:y.shouldShowEmailDesktop)&&void 0!==b&&b,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(x=(null===(C=this.buildingWebchatView)||void 0===C?void 0:C.shouldShowTextDesktop)&&!!ee)&&void 0!==x&&x,textMobile:null!==(S=(null===(A=this.buildingWebchatView)||void 0===A?void 0:A.shouldShowTextMobile)&&!!ee)&&void 0!==S&&S,sstDesktop:null!==(k=null===(E=this.buildingWebchatView)||void 0===E?void 0:E.shouldShowSstDesktop)&&void 0!==k&&k,sstMobile:null!==(_=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==_&&_,calcDesktop:te,calcMobile:ne};var re,oe;this.enabledChatWidgets=Aa(ie),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(oe=this.handleTourClicked,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",e=>{e.preventDefault(),oe(e)})}),X&&(e=>{document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(t=>{t&&t.addEventListener("click",t=>{t.preventDefault(),e(t)})})})(this.handleTourClicked),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var n;if(!t)return;const i=document.createElement("a");i.textContent=t.textContent,i.style.cursor="pointer",i.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(n=t.parentNode)||void 0===n||n.replaceChild(i,t)})})(this.handleTourClicked)):(null===(O=this.LeadSourceClient)||void 0===O?void 0:O.leadSource)&&(re=null!==(I=null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&void 0!==I?I:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const n=t.includes("?")?"&":"?";e.setAttribute("href",t+n+`eliseParsedLeadSource=${encodeURIComponent(re)}`)}})),this.buildingWebchatView&&(this.primaryColor=null!==(N=this.buildingWebchatView.primaryColor)&&void 0!==N?N:null,this.backgroundColor=null!==(M=this.buildingWebchatView.secondaryColor)&&void 0!==M?M:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(D=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==D?D:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(U=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==U?U:null,this.webchatConfigHasAutoOpenChat=null!==(L=this.buildingWebchatView.autoOpenChat)&&void 0!==L&&L,this.requiresConsent=null!==(R=this.buildingWebchatView.requiresConsentForChat)&&void 0!==R&&R,this.hideMobileFeatures=null!==(B=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==B&&B,this.privacyPolicyUrl=null!==(j=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==j?j:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===Ti.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===Ti.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===Ti.EMOJI&&(this.designConcept=Ti.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Le),null===this.backgroundColor&&(this.backgroundColor=Re);const ae=null!==(H=null===(F=this.buildingWebchatView)||void 0===F?void 0:F.phoneNumber)&&void 0!==H?H:"";let se=null;if(Y&&(se=await async function(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return n.data?{number:Ie(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(z=null===($=this.LeadSourceClient)||void 0===$?void 0:$.leadSource)&&void 0!==z?z:null),se&&!se.isMatch&&(se.number=ae)),K&&(null==se?void 0:se.number)){const e=as(se.number,this.orgSlug,this.buildingSlug);e>0&&vi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const le=localStorage.getItem("eliseai_phone_number_devtest");le&&as(le,this.orgSlug,this.buildingSlug),this.phoneNumberForSource=se||{number:ae,isMatch:!1,isPropertyWebsiteCatchall:!0};const ue=null!==(Q=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==Q?Q:null;if(ue&&(this.leadSources.includes(ue)||this.leadSources.push(ue)),Gn(W.id),J&&this.buildingSlug&&(null===(q=this.buildingWebchatView)||void 0===q?void 0:q.isLiveOnApplications)){const e=((e,t,n)=>{var i;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(i=l.textContent)||void 0===i?void 0:i.toLowerCase())||"",s=Pl(o,e);l.setAttribute("href",s),a++,bi({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:yi.info,buildingSlug:n,orgSlug:t})}}return 0===a&&bi({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:yi.warn,buildingSlug:n,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}`,this.orgSlug,this.buildingSlug);e>0&&vi({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}},this.initializeChatVariables=async()=>{var e,t,n,i,r,o,a;if(!this.buildingWebchatView)return;const s=Ja(this.buildingSlug),l=es(this.buildingSlug,s)?s:Za(this.buildingSlug,!1);if(!l.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new Ei,this.LeadSourceMultitouchClient=new Il(this.orgSlug,this.buildingSlug),this.myPubnub=new os(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,l.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel;const u=await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(t=this.myPubnub)||void 0===t?void 0:t.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));u&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(u),"property-website"!==Si(this.orgSlug)?this.myPubnub.leadSource=null!==(r=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==r?r:Si(this.orgSlug):this.myPubnub.leadSource=null!==(a=null===(o=this.LeadSourceClient)||void 0===o?void 0:o.leadSource)&&void 0!==a?a:null,l.initiatedChat&&await this.myPubnub.initializePubnub(s)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),n=!t||!(t&&!Pn(Mn(t)));return!!e&&!!n&&!mn()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",En(function(e,t){return Ge(2,arguments),st(e,6e4*at(t))}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,n,i;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,n,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w;if("Tab"===e.key){const C=this.displayPubnubChat?null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"):null!==(g=null!==(u=null===(l=null===(s=null===(a=null===(o=null===(r=this.shadowRoot)||void 0===r?void 0:r.getElementById("meetelise-launcher"))||void 0===o?void 0:o.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(p=null===(h=null===(d=null===(c=this.shadowRoot)||void 0===c?void 0:c.getElementById("meetelise-launcher"))||void 0===d?void 0:d.shadowRoot)||void 0===h?void 0:h.getElementById("tour-scheduler-window"))||void 0===p?void 0:p.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==g?g:null===(w=null===(v=null===(b=null===(y=null===(m=this.shadowRoot)||void 0===m?void 0:m.getElementById("meetelise-launcher"))||void 0===y?void 0:y.shadowRoot)||void 0===b?void 0:b.getElementById("call-us-window"))||void 0===v?void 0:v.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!C)return;e.preventDefault();const x=C.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),A=Array.from(x),S=A.findIndex(e=>e.matches(":focus"));A[(S+1)%A.length].focus()}},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")}}async handleChatInitializeAnalytics(){var e,t,n,i;this.analytics=new gi(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Xa(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){bi({logType:yi.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,n,i,r,o,a,s,l,u,c,d,h,p,f,g,m,y,b,v,w,C,x,A,S,E,k,T,_,O,P,I,N,M,D,U;wa();const L=this.hideLauncher&&!this.isLoading&&!mn();return B`
|
|
6654
6663
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6655
6664
|
<div id="aria-describe-info" style="display: none;">
|
|
6656
6665
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6665,7 +6674,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6665
6674
|
.myPubnub=${this.myPubnub}
|
|
6666
6675
|
.orgSlug=${this.orgSlug}
|
|
6667
6676
|
.buildingSlug=${this.buildingSlug}
|
|
6668
|
-
.widgetType=${
|
|
6677
|
+
.widgetType=${Wl.Default}
|
|
6669
6678
|
.building=${this.buildingWebchatView}
|
|
6670
6679
|
.primaryColor=${this.primaryColor}
|
|
6671
6680
|
.backgroundColor=${this.backgroundColor}
|
|
@@ -6763,7 +6772,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6763
6772
|
</meetelise-launcher>`:""}
|
|
6764
6773
|
</div>
|
|
6765
6774
|
</meta>
|
|
6766
|
-
`}};
|
|
6775
|
+
`}};Ml.styles=u`
|
|
6767
6776
|
:host {
|
|
6768
6777
|
all: initial;
|
|
6769
6778
|
}
|
|
@@ -6812,7 +6821,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6812
6821
|
position: fixed;
|
|
6813
6822
|
bottom: 0;
|
|
6814
6823
|
}
|
|
6815
|
-
`,
|
|
6824
|
+
`,Nl([ue({type:String})],Ml.prototype,"buildingSlug",void 0),Nl([ue({type:String})],Ml.prototype,"orgSlug",void 0),Nl([ue({type:Object})],Ml.prototype,"launcherStyles",void 0),Nl([ue()],Ml.prototype,"mobileStyles",void 0),Nl([ue({type:Boolean})],Ml.prototype,"isMinimized",void 0),Nl([ue({type:String})],Ml.prototype,"primaryColor",void 0),Nl([ue({type:String})],Ml.prototype,"backgroundColor",void 0),Nl([ue({type:String})],Ml.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Nl([ue({type:String})],Ml.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Nl([ce()],Ml.prototype,"chatId",void 0),Nl([ce()],Ml.prototype,"analytics",void 0),Nl([ce()],Ml.prototype,"launcher",void 0),Nl([ce()],Ml.prototype,"buildingWebchatView",void 0),Nl([ce()],Ml.prototype,"designConcept",void 0),Nl([ce()],Ml.prototype,"leadSources",void 0),Nl([ce()],Ml.prototype,"currentLeadSource",void 0),Nl([ce()],Ml.prototype,"featureFlagShowDropdown",void 0),Nl([ce()],Ml.prototype,"phoneNumberForSource",void 0),Nl([ce()],Ml.prototype,"hasMounted",void 0),Nl([ce()],Ml.prototype,"hideLauncher",void 0),Nl([ce()],Ml.prototype,"isLoading",void 0),Nl([ce()],Ml.prototype,"showTourNextToChat",void 0),Nl([ce()],Ml.prototype,"displayPubnubChat",void 0),Nl([ce()],Ml.prototype,"myPubnub",void 0),Nl([ce()],Ml.prototype,"LeadSourceClient",void 0),Nl([ce()],Ml.prototype,"LeadSourceMultitouchClient",void 0),Nl([ce()],Ml.prototype,"sampleRateToUse",void 0),Nl([ue({type:Number})],Ml.prototype,"right",void 0),Nl([ue({type:Number})],Ml.prototype,"bottom",void 0),Nl([ue({type:Number})],Ml.prototype,"top",void 0),Nl([ue({type:Number})],Ml.prototype,"left",void 0),Nl([ue({attribute:!0})],Ml.prototype,"overrideRentgrata",void 0),Nl([ue({attribute:!0})],Ml.prototype,"widgetType",void 0),Nl([ue()],Ml.prototype,"onWidgetLoaded",void 0),Nl([ue({attribute:!0})],Ml.prototype,"onSstClose",void 0),Nl([ce()],Ml.prototype,"enabledChatWidgets",void 0),Nl([ce()],Ml.prototype,"webchatConfigHasAutoOpenChat",void 0),Nl([ce()],Ml.prototype,"requiresConsent",void 0),Nl([ce()],Ml.prototype,"hideMobileFeatures",void 0),Nl([ce()],Ml.prototype,"privacyPolicyUrl",void 0),Ml=Nl([se("me-chat")],Ml);const Dl=e=>{for(const t of e){const e=document.getElementById(t);if(e)return e}return null},Ul=async(e,t,n,i,o)=>{var a;if(!i||!e)return;const s=await async function(e){if(!e)return!1;try{return(await r().get(Jn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-override-contact-us-form",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(i);if(!s)return;const l=Dl(["myContactForm","contactus","fpa-myContactForm"]);let u;if(!(l&&l instanceof HTMLFormElement)){const t=document.querySelector("form");return void(window.location.pathname.toLowerCase().includes("contactus")&&Ll(i,e,"Could not find form",t?{id:t.id}:void 0))}try{if(l.parentElement&&"scheduleTourForm"===l.parentElement.id)return Ll(i,e,"Form is apart of schedule tour form!")}catch(e){}for(let e=0;e<l.elements.length;e++){const t=l.elements[e];if("button"===t.tagName.toLowerCase()&&"fakebutton"===t.getAttribute("data-selenium-id")){u=t;break}if("fpa-contact-submit"===t.getAttribute("id")){u=t;break}}if(!u)return Ll(i,e,"Could not find submit button");const c=()=>({firstName:Dl(["firstname","txtName","fpa-firstname","Form_FirstName"]),lastName:Dl(["lastname","txtName2","fpa-lastname","Form_LastName"]),email:Dl(["email","txtEmail","fpa-email","Form_Email"]),phone:Dl(["phonenumber","txtPhone","fpa-phonenumber","Form_Phone"]),message:Dl(["message","txtComments","fpa-email","Form_Message"])});if(Object.values(c()).some(e=>null===e)){const t=Object.entries(c()).filter(([,e])=>null===e).map(([e])=>e);return Ll(i,e,"Missing the following form elements: "+t.join(", "))}const d=u.textContent,h=u.cloneNode(!0);null===(a=u.parentNode)||void 0===a||a.replaceChild(h,u),h&&vi({params:{chat_id:t,org_slug:e,building_slug:i,is_form_override_success:!0},sampleRate:n}),h.onclick=async function(t){if(Object.values(c()).forEach(e=>{"true"!==(null==e?void 0:e.getAttribute("aria-required"))||e.value||(e.className="form-control required is-invalid")}),!Object.values(c()).every(e=>null!==e&&!("true"===e.getAttribute("aria-required")&&!e.value)&&("email"!==e.id&&"phonenumber"!==e.id||"true"!==e.getAttribute("aria-invalid"))))return;t.preventDefault(),h.textContent="Processing request...",h.disabled=!0;const n={};Object.entries(c()).forEach(([e,t])=>n[e]=null==t?void 0:t.value);const r=await Ii(e,i);if(!r)return Ll(i,e,"Could not find building"),null;const a={email_address:n.email,first_name:n.firstName,last_name:n.lastName,phone_number:n.phone,first_message:n.message,building_id:r.id,is_external_form:!0,lead_sources:[...new Set(o?[o,Si(e)]:[Si(e)])]},s=JSON.stringify(a);fetch("https://app.meetelise.com/platformApi/state/create/contactMe",{method:"POST",headers:{"Content-Type":"application/json","building-slug":i,"org-slug":e},body:s}).then(e=>{if(!e.ok)throw new Error(`HTTP error ${e.status}`);return l&&l.reset(),Object.values(c()).forEach(e=>{e&&(e.disabled=!0)}),h.textContent="Submitted",h.disabled=!0,e.json()}).catch(()=>{h.textContent=d})}},Ll=(e,t,n,i)=>{const r=JSON.stringify({orgSlug:t,buildingSlug:e,reason:n,url:window.location.href,formIdInfo:i});fetch("https://app.meetelise.com/platformApi/webchat/form-override-error",{method:"POST",headers:{"Content-Type":"application/json","building-slug":e,"org-slug":t},body:r})},Rl=u`
|
|
6816
6825
|
.chat-launcher {
|
|
6817
6826
|
position: fixed;
|
|
6818
6827
|
}
|
|
@@ -6843,7 +6852,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6843
6852
|
filter: brightness(1.1);
|
|
6844
6853
|
}
|
|
6845
6854
|
}
|
|
6846
|
-
`;var
|
|
6855
|
+
`;var Bl=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 jl=class extends oe{constructor(){super(...arguments),this.right=0,this.bottom=0,this.top=0,this.left=0,this.isChatOpen=!1,this.onClickCloseChat=()=>({}),this.onClickOpenChat=()=>({})}render(){return this.isChatOpen?B`
|
|
6847
6856
|
<div
|
|
6848
6857
|
class="chat-launcher"
|
|
6849
6858
|
style=${Ue({top:mn()||isNaN(this.top)?void 0:`${this.top+432}px`,bottom:mn()||isNaN(this.bottom)?"72px":this.bottom-60+"px",left:mn()||isNaN(this.left)?void 0:`${this.left}px`,right:mn()||isNaN(this.right)?"18px":`${this.right}px`})}
|
|
@@ -6885,7 +6894,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6885
6894
|
/>
|
|
6886
6895
|
</svg>
|
|
6887
6896
|
</button>
|
|
6888
|
-
</div>`}};
|
|
6897
|
+
</div>`}};jl.styles=[Rl],Bl([ue({type:Number})],jl.prototype,"right",void 0),Bl([ue({type:Number})],jl.prototype,"bottom",void 0),Bl([ue({type:Number})],jl.prototype,"top",void 0),Bl([ue({type:Number})],jl.prototype,"left",void 0),Bl([ue({attribute:!0})],jl.prototype,"isChatOpen",void 0),Bl([ue({attribute:!0})],jl.prototype,"onClickCloseChat",void 0),Bl([ue({attribute:!0})],jl.prototype,"onClickOpenChat",void 0),jl=Bl([se("simple-launcher")],jl);var Fl=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 Hl=class extends oe{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=ke(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Ja(this.healthcareId),t=es(this.healthcareId,e)?e:Za(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new os(this.healthcareId,null,"",this.currentLeadSource,t.leadId,null,null,Wl.Healthcare),t.initiatedChat&&await this.myPubnub.initializePubnub(e),mn()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Xa(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return wa(),this.isLoading?B``:B`
|
|
6889
6898
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6890
6899
|
<div id="aria-describe-info" style="display: none;">
|
|
6891
6900
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6894,7 +6903,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6894
6903
|
${this.displayPubnubChat?B`
|
|
6895
6904
|
<pubnub-chat
|
|
6896
6905
|
id="pubnub-chat"
|
|
6897
|
-
.widgetType=${
|
|
6906
|
+
.widgetType=${Wl.Healthcare}
|
|
6898
6907
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
6899
6908
|
.myPubnub=${this.myPubnub}
|
|
6900
6909
|
.buildingSlug=${this.healthcareId}
|
|
@@ -6920,7 +6929,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6920
6929
|
></simple-launcher>
|
|
6921
6930
|
|
|
6922
6931
|
</meta>
|
|
6923
|
-
`}};
|
|
6932
|
+
`}};Hl.styles=u`
|
|
6924
6933
|
:host {
|
|
6925
6934
|
all: initial;
|
|
6926
6935
|
}
|
|
@@ -6973,7 +6982,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6973
6982
|
line-height: 150%;
|
|
6974
6983
|
font-size: 16px;
|
|
6975
6984
|
}
|
|
6976
|
-
`,
|
|
6985
|
+
`,Fl([ue({type:String})],Hl.prototype,"healthcareId",void 0),Fl([ue({type:Number})],Hl.prototype,"right",void 0),Fl([ue({type:Number})],Hl.prototype,"bottom",void 0),Fl([ue({type:Number})],Hl.prototype,"top",void 0),Fl([ue({type:Number})],Hl.prototype,"left",void 0),Fl([ce()],Hl.prototype,"launcher",void 0),Fl([ce()],Hl.prototype,"currentLeadSource",void 0),Fl([ce()],Hl.prototype,"displayPubnubChat",void 0),Fl([ce()],Hl.prototype,"myPubnub",void 0),Fl([ce()],Hl.prototype,"requiresConsent",void 0),Fl([ce()],Hl.prototype,"privacyPolicyUrl",void 0),Fl([ce()],Hl.prototype,"isLoading",void 0),Hl=Fl([se("health-chat")],Hl);var $l=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 zl=class extends oe{constructor(){super(...arguments),this.orgSlug="",this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=ke(),this.firstUpdated=async()=>{(await async function(e){if(!e)return!1;const t="e2e-test-yardi-building";try{return(await r().get(Jn(t),{params:{building_slug:t,flag_type:"bool",feature_flag:"enable-show-utilities-webchat",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(this.orgSlug)||location.href.includes("demo/utilities"))&&await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Ja(this.orgSlug),t=es(this.orgSlug,e)?e:Za(this.orgSlug,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new os(this.orgSlug,null,this.orgSlug,this.currentLeadSource,t.leadId,null,null,Wl.Utilities),t.initiatedChat&&await this.myPubnub.initializePubnub(e),mn()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Xa(this.orgSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return wa(),this.isLoading?B``:B`
|
|
6977
6986
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6978
6987
|
<div id="aria-describe-info" style="display: none;">
|
|
6979
6988
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6985,7 +6994,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6985
6994
|
<pubnub-chat
|
|
6986
6995
|
id="pubnub-chat"
|
|
6987
6996
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
6988
|
-
.widgetType=${
|
|
6997
|
+
.widgetType=${Wl.Utilities}
|
|
6989
6998
|
.myPubnub=${this.myPubnub}
|
|
6990
6999
|
.buildingSlug=${this.orgSlug}
|
|
6991
7000
|
.onClickExit=${()=>{this.displayPubnubChat=!1}}
|
|
@@ -7009,7 +7018,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7009
7018
|
|
|
7010
7019
|
></simple-launcher>
|
|
7011
7020
|
</meta>
|
|
7012
|
-
`}}
|
|
7021
|
+
`}};zl.styles=u`
|
|
7013
7022
|
:host {
|
|
7014
7023
|
all: initial;
|
|
7015
7024
|
}
|
|
@@ -7062,4 +7071,4 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7062
7071
|
line-height: 150%;
|
|
7063
7072
|
font-size: 16px;
|
|
7064
7073
|
}
|
|
7065
|
-
|
|
7074
|
+
`,$l([ue({type:String})],zl.prototype,"orgSlug",void 0),$l([ue({type:Number})],zl.prototype,"right",void 0),$l([ue({type:Number})],zl.prototype,"bottom",void 0),$l([ue({type:Number})],zl.prototype,"top",void 0),$l([ue({type:Number})],zl.prototype,"left",void 0),$l([ce()],zl.prototype,"launcher",void 0),$l([ce()],zl.prototype,"currentLeadSource",void 0),$l([ce()],zl.prototype,"displayPubnubChat",void 0),$l([ce()],zl.prototype,"myPubnub",void 0),$l([ce()],zl.prototype,"requiresConsent",void 0),$l([ce()],zl.prototype,"privacyPolicyUrl",void 0),$l([ce()],zl.prototype,"isLoading",void 0),zl=$l([se("utilities-chat")],zl);const Gl=async e=>{const t=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,i=await r().get(n,{headers:{"org-slug":e}});return Math.random()<.2&&bi({logType:i&&i.data?yi.info:yi.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:t,orgSlug:e,givenBuildingSlug:null,reason:i&&i.data?null:"No match found"}}),i.data},Ql=async(e,t=5e3)=>new Promise((n,i)=>{const r=new MutationObserver((t,i)=>{const r=document.getElementById(e);r&&(i.disconnect(),n(r))});r.observe(document.body,{childList:!0,subtree:!0});const o=setTimeout(()=>{r.disconnect(),i(new Error(`Element ${e} did not appear within ${t}ms`))},t),a=document.querySelector(e);a&&(clearTimeout(o),r.disconnect(),n(a))});class ql{static healthcareStart(e,t=!0){var n,i,r,o;t&&(this.healthcareId=e.id,this.overridePlacement={right:e.right,bottom:e.bottom,top:e.top,left:e.left}),Vl();const a=document.createElement("health-chat");a.setAttribute("class","health-chat"),a.setAttribute("role","dialog"),a.setAttribute("aria-label","EliseAI Healthcare Widget"),a.setAttribute("aria-describedby","aria-describe-info"),a.setAttribute("aria-modal","true"),a.setAttribute("healthcareId",e.id),a.setAttribute("right",(null===(n=e.right)||void 0===n?void 0:n.toString())||"unset"),a.setAttribute("bottom",(null===(i=e.bottom)||void 0===i?void 0:i.toString())||"unset"),a.setAttribute("top",(null===(r=e.top)||void 0===r?void 0:r.toString())||"unset"),a.setAttribute("left",(null===(o=e.left)||void 0===o?void 0:o.toString())||"unset"),document.body.appendChild(a),ql.healthChat=a}static start(e,t=!0){var n,i,r,o,a,s,l,u;if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;t&&(this.orgSlug="Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization,this.hasBuildingSlug=!!e.building,this.overridePlacement={right:null===(n=null==e?void 0:e.position)||void 0===n?void 0:n.right,bottom:null===(i=null==e?void 0:e.position)||void 0===i?void 0:i.bottom,top:null===(r=null==e?void 0:e.position)||void 0===r?void 0:r.top,left:null===(o=null==e?void 0:e.position)||void 0===o?void 0:o.left}),Vl();let c=null;switch(e.widgetType){case Wl.Healthcare:throw new Error("Healthcare widget is not supported yet, please use the healthcareStart method instead.");case Wl.Default:c=document.createElement("me-chat");break;case Wl.Utilities:c=document.createElement("utilities-chat");break;default:c=document.createElement("me-chat")}if(!c)throw new Error("Invalid widget type");c.setAttribute("orgSlug","Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization),c.setAttribute("widgetType",e.widgetType||Wl.Default),c.setAttribute("class","meetelise-chat"),c.setAttribute("role","dialog"),c.setAttribute("aria-label","EliseAI Widget"),c.setAttribute("aria-describedby","aria-describe-info"),c.setAttribute("aria-modal","true"),e.brandColor&&(this.brandColor=e.brandColor,c.setAttribute("primaryColor",((e,t)=>{const n=Be(e),i=0,r=0,o=0,a={r:n.r+Math.round((i-n.r)*t),g:n.g+Math.round((r-n.g)*t),b:n.b+Math.round((o-n.b)*t)};return je(a.r,a.g,a.b)})(e.brandColor,.3))),e.backgroundColor&&(this.backgroundColor=e.backgroundColor),c instanceof Ml&&(this.handleBuildingslug(c,e.organization,e.building,e),e.launcherStyles&&(c.launcherStyles=e.launcherStyles),e.mobileStyles&&(c.mobileStyles=e.mobileStyles),e.onWidgetLoaded&&(c.onWidgetLoaded=e.onWidgetLoaded),e.overrideRentgrata&&((async()=>{const e=await Ql("rg-widget-compact");e&&e.setAttribute("style","display: none")})(),c.overrideRentgrata=!0),e.onSstClose&&(c.onSstClose=e.onSstClose)),e.position&&(c.setAttribute("right",(null===(a=e.position.right)||void 0===a?void 0:a.toString())||"unset"),c.setAttribute("bottom",(null===(s=e.position.bottom)||void 0===s?void 0:s.toString())||"unset"),c.setAttribute("top",(null===(l=e.position.top)||void 0===l?void 0:l.toString())||"unset"),c.setAttribute("left",(null===(u=e.position.left)||void 0===u?void 0:u.toString())||"unset")),window.eliseAi={},document.body.appendChild(c),c instanceof Ml&&(ql.meChat=c),c instanceof zl&&(ql.utilitiesChat=c)}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),ql.meChat=null)}static async handleBuildingslug(e,t,n,i){if(n)return void e.setAttribute("buildingSlug",n);if(this.mutationObserver)return;if(!t)return;const r=await Gl(t);if(r){const e={...i,organization:t,building:r};this.start(e,!1)}this.previousUrl=window.location.href,document.body.addEventListener("click",()=>{requestAnimationFrame(()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,Gl(t).then(e=>{if(!e)return;const n={...i,organization:t,building:e};this.start(n,!1)}))})},!0)}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,t=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,n=await r().get(t,{headers:{"org-slug":this.orgSlug}});if(Math.random()<.2&&bi({logType:n&&n.data?yi.info:yi.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:e,orgSlug:this.orgSlug,givenBuildingSlug:null,reason:n&&n.data?null:"No match found"}}),!n||!n.data)return;const i={organization:this.orgSlug,building:n.data,brandColor:this.brandColor,backgroundColor:this.backgroundColor};this.start(i,!1)}static async calculateBuildingSlugForLogging(e){const t=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,i=await r().get(n,{headers:{"org-slug":this.orgSlug}});Math.random()<.2&&bi({logType:i&&i.data===e?yi.info:yi.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i&&i.data===e?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:t,orgSlug:this.orgSlug,givenBuildingSlug:e,reason:i&&i.data===e?null:i&&!i.data?"No match found":i&&i.data!==e?"Mismatch":"No match found"}}),i&&i.data}}var Wl;ql.meChat=null,ql.healthChat=null,ql.utilitiesChat=null,ql.orgSlug="",ql.mutationObserver=null,ql.previousUrl="",ql.hasBuildingSlug=null,ql.brandColor="",ql.backgroundColor="",ql.healthcareId="",ql.overridePlacement={},function(e){e.Default="default",e.Healthcare="healthcare",e.Utilities="utilities"}(Wl||(Wl={}));const Vl=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)};export{Wl as WidgetType,ql as default};
|