@meetelise/chat 1.30.2 → 1.30.4

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.
@@ -1,8 +1,9 @@
1
1
  import { TemplateResult } from "lit";
2
- declare const disclaimer: ({ phoneNumberInput, emailInput, orgLegalName, }: {
2
+ declare const disclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, }: {
3
3
  buildingName: string;
4
4
  phoneNumberInput?: string | undefined;
5
5
  emailInput?: string | undefined;
6
6
  orgLegalName: string;
7
+ orgSlug: string;
7
8
  }) => TemplateResult;
8
9
  export default disclaimer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.30.2",
3
+ "version": "1.30.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",
@@ -548,7 +548,30 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
548
548
  .option.active {
549
549
  background-color: var(--active-option-color);
550
550
  }
551
- `,xi],Ai([le({attribute:!1})],Si.prototype,"options",void 0),Ai([le({type:String})],Si.prototype,"placeholder",void 0),Ai([le({type:String})],Si.prototype,"value",void 0),Ai([ue()],Si.prototype,"activeOption",void 0),Ai([ue()],Si.prototype,"isOpen",void 0),Ai([ue()],Si.prototype,"activeOptionIndex",void 0),Ai([ce("#select",!0)],Si.prototype,"meSelect",void 0),Si=Ai([ae("me-select")],Si),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Ti||(Ti={}));var _i=i(7739),Oi=i.n(_i);function Pi(e){return je(1,arguments),He(e).getTime()<Date.now()}Math.pow(10,8);var Ni=36e5;function Ii(e,t){je(1,arguments);var i=t||{},n=null==i.additionalDigits?2:it(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,r=Li(e);if(r.date){var a=Ri(r.date,n);o=ji(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),u=0;if(r.time&&(u=Fi(r.time),isNaN(u)))return new Date(NaN);if(!r.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=$i(r.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Mi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Di=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ui=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Li(e){var t,i={},n=e.split(Mi.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Mi.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Mi.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){var o=Mi.timezone.exec(t);o?(i.time=t.replace(o[1],""),i.timezone=o[1]):i.time=t}return i}function Ri(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}function ji(e,t){if(null===t)return new Date(NaN);var i=e.match(Di);if(!i)return new Date(NaN);var n=!!i[4],o=Hi(i[1]),r=Hi(i[2])-1,a=Hi(i[3]),s=Hi(i[4]),l=Hi(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=7*(t-1)+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(Gi[t]||(Qi(e)?29:28))}(t,r,a)&&function(e,t){return t>=1&&t<=(Qi(e)?366:365)}(t,o)?(u.setUTCFullYear(t,r,Math.max(o,a)),u):new Date(NaN)}function Hi(e){return e?parseInt(e):1}function Fi(e){var t=e.match(Ui);if(!t)return NaN;var i=zi(t[1]),n=zi(t[2]),o=zi(t[3]);return function(e,t,i){return 24===e?0===t&&0===i:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,o)?i*Ni+6e4*n+1e3*o:NaN}function zi(e){return e&&parseFloat(e.replace(",","."))||0}function $i(e){if("Z"===e)return 0;var t=e.match(Bi);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?i*(n*Ni+6e4*o):NaN}var Gi=[31,null,31,30,31,30,31,31,30,31,30,31];function Qi(e){return e%400==0||e%4==0&&e%100!=0}const Vi={buildingId:null,availabilities:{}},Wi=async e=>{e&&(Vi.buildingId=e);const i=Vi.buildingId;if(!i)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=Vi.availabilities;if(n[i])return n[i];const o=Ei(Date.now()),r=ki(function(e){je(1,arguments);var t=He(e);return t.setHours(23,59,59,999),t}(function(e,t){je(2,arguments);var i=He(e),n=it(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}(o,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${i}/tour/availabilities?startTime=${encodeURIComponent(ki(o))}&endTime=${encodeURIComponent(r)}`,s=await t().get(a);return Vi.availabilities[i]=s.data,s.data},qi=async(e,t)=>{var i,n;const o=await Wi(t),r=(null===(i=o.availability)||void 0===i?void 0:i[e])?null===(n=o.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return o.availability?{...o.availability[e],availableTourStartTimes:r}:null},Ki=async()=>{var e,t,i,n,o,r;return{[_n.Guided]:!!(null===(t=null===(e=await qi(Ti.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[_n.Self]:!!(null===(n=null===(i=await qi(Ti.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[_n.Virtual]:!!(null===(r=null===(o=await qi(Ti.VirtualShowing))||void 0===o?void 0:o.availableTourStartTimes)||void 0===r?void 0:r.length)}},Yi=async(e,t)=>{var i,n;const o=await qi(e,t);if(!o)return{};const r={availableTourStartTimes:null===(i=o.availableTourStartTimes?o.availableTourStartTimes.filter((e=>$e(Ii(e))&&!Pi(Ii(e)))):[])||void 0===i?void 0:i.map((e=>Xi(e)))};return Oi()(null!==(n=r.availableTourStartTimes)&&void 0!==n?n:[],(e=>zt(new Date(e.datetime),"yyyy-MM-dd")))},Xi=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var Zi=i(6604),Ji=i.n(Zi),en=i(4184),tn=i.n(en);const nn=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var on;async function rn(e){if(!e)return on.always;try{const i=await t().get(nn(e),{params:{building_slug:e,flag_type:"string",feature_flag:"webchat-marketing-source-dropdown-configuration",default_str:"always",default_bool:!0}});return"on-attribution-failure"===i.data?on.onAttributionFailure:"never"===i.data?on.never:on.always}catch(e){return on.always}}async function an(e){if(!e)return!1;try{return(await t().get(nn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-dni-phone-number-by-source",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function sn(e){if(!e)return!1;try{return(await t().get((e=>`https://app.meetelise.com/platformApi/webchat/${e}/v2/chat-ui-feature-flag`)(e),{params:{building_slug:e,feature_flag_name:"insert_dni_into_website",default_value:!1}})).data}catch(e){return!1}}async function ln(e){if(!e)return!1;try{return(await t().get(nn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-replace-any-schedule-tour-cta-website",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function un(e){if(!e)return!1;try{return(await t().get(nn(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"}(on||(on={}));const cn=(e,t={})=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})},dn={fontSize:"10px",paddingTop:"4px"},hn={color:"#4287f5"},pn=({phoneNumberInput:e,emailInput:t,orgLegalName:i})=>e?L` <div style=${Ie(dn)}>
551
+ `,xi],Ai([le({attribute:!1})],Si.prototype,"options",void 0),Ai([le({type:String})],Si.prototype,"placeholder",void 0),Ai([le({type:String})],Si.prototype,"value",void 0),Ai([ue()],Si.prototype,"activeOption",void 0),Ai([ue()],Si.prototype,"isOpen",void 0),Ai([ue()],Si.prototype,"activeOptionIndex",void 0),Ai([ce("#select",!0)],Si.prototype,"meSelect",void 0),Si=Ai([ae("me-select")],Si),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Ti||(Ti={}));var _i=i(7739),Oi=i.n(_i);function Pi(e){return je(1,arguments),He(e).getTime()<Date.now()}Math.pow(10,8);var Ni=36e5;function Ii(e,t){je(1,arguments);var i=t||{},n=null==i.additionalDigits?2:it(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,r=Li(e);if(r.date){var a=Ri(r.date,n);o=ji(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),u=0;if(r.time&&(u=Fi(r.time),isNaN(u)))return new Date(NaN);if(!r.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=$i(r.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Mi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Di=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ui=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Li(e){var t,i={},n=e.split(Mi.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Mi.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Mi.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){var o=Mi.timezone.exec(t);o?(i.time=t.replace(o[1],""),i.timezone=o[1]):i.time=t}return i}function Ri(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}function ji(e,t){if(null===t)return new Date(NaN);var i=e.match(Di);if(!i)return new Date(NaN);var n=!!i[4],o=Hi(i[1]),r=Hi(i[2])-1,a=Hi(i[3]),s=Hi(i[4]),l=Hi(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=7*(t-1)+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(Gi[t]||(Qi(e)?29:28))}(t,r,a)&&function(e,t){return t>=1&&t<=(Qi(e)?366:365)}(t,o)?(u.setUTCFullYear(t,r,Math.max(o,a)),u):new Date(NaN)}function Hi(e){return e?parseInt(e):1}function Fi(e){var t=e.match(Ui);if(!t)return NaN;var i=zi(t[1]),n=zi(t[2]),o=zi(t[3]);return function(e,t,i){return 24===e?0===t&&0===i:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,o)?i*Ni+6e4*n+1e3*o:NaN}function zi(e){return e&&parseFloat(e.replace(",","."))||0}function $i(e){if("Z"===e)return 0;var t=e.match(Bi);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?i*(n*Ni+6e4*o):NaN}var Gi=[31,null,31,30,31,30,31,31,30,31,30,31];function Qi(e){return e%400==0||e%4==0&&e%100!=0}const Vi={buildingId:null,availabilities:{}},Wi=async e=>{e&&(Vi.buildingId=e);const i=Vi.buildingId;if(!i)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=Vi.availabilities;if(n[i])return n[i];const o=Ei(Date.now()),r=ki(function(e){je(1,arguments);var t=He(e);return t.setHours(23,59,59,999),t}(function(e,t){je(2,arguments);var i=He(e),n=it(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}(o,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${i}/tour/availabilities?startTime=${encodeURIComponent(ki(o))}&endTime=${encodeURIComponent(r)}`,s=await t().get(a);return Vi.availabilities[i]=s.data,s.data},qi=async(e,t)=>{var i,n;const o=await Wi(t),r=(null===(i=o.availability)||void 0===i?void 0:i[e])?null===(n=o.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return o.availability?{...o.availability[e],availableTourStartTimes:r}:null},Ki=async()=>{var e,t,i,n,o,r;return{[_n.Guided]:!!(null===(t=null===(e=await qi(Ti.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[_n.Self]:!!(null===(n=null===(i=await qi(Ti.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[_n.Virtual]:!!(null===(r=null===(o=await qi(Ti.VirtualShowing))||void 0===o?void 0:o.availableTourStartTimes)||void 0===r?void 0:r.length)}},Yi=async(e,t)=>{var i,n;const o=await qi(e,t);if(!o)return{};const r={availableTourStartTimes:null===(i=o.availableTourStartTimes?o.availableTourStartTimes.filter((e=>$e(Ii(e))&&!Pi(Ii(e)))):[])||void 0===i?void 0:i.map((e=>Xi(e)))};return Oi()(null!==(n=r.availableTourStartTimes)&&void 0!==n?n:[],(e=>zt(new Date(e.datetime),"yyyy-MM-dd")))},Xi=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var Zi=i(6604),Ji=i.n(Zi),en=i(4184),tn=i.n(en);const nn=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var on;async function rn(e){if(!e)return on.always;try{const i=await t().get(nn(e),{params:{building_slug:e,flag_type:"string",feature_flag:"webchat-marketing-source-dropdown-configuration",default_str:"always",default_bool:!0}});return"on-attribution-failure"===i.data?on.onAttributionFailure:"never"===i.data?on.never:on.always}catch(e){return on.always}}async function an(e){if(!e)return!1;try{return(await t().get(nn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-dni-phone-number-by-source",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function sn(e){if(!e)return!1;try{return(await t().get((e=>`https://app.meetelise.com/platformApi/webchat/${e}/v2/chat-ui-feature-flag`)(e),{params:{building_slug:e,feature_flag_name:"insert_dni_into_website",default_value:!1}})).data}catch(e){return!1}}async function ln(e){if(!e)return!1;try{return(await t().get(nn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-replace-any-schedule-tour-cta-website",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function un(e){if(!e)return!1;try{return(await t().get(nn(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"}(on||(on={}));const cn=(e,t={})=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})},dn={fontSize:"10px",paddingTop:"4px"},hn={color:"#4287f5"},pn=({phoneNumberInput:e,emailInput:t,orgLegalName:i,orgSlug:n})=>e&&"greystar"===n?L`<div style=${Ie(dn)}>
552
+ By providing your phone number and clicking send, you consent to receive
553
+ recurring marketing calls and voice and text messages from Greystar or on
554
+ its behalf at this number using artificial voice and/or an autodialer.
555
+ Messages may be AI or human-generated. Your phone number and
556
+ communications are shared with and recorded and used by EliseAI. You are
557
+ not required to provide your phone number or consent to these terms to
558
+ lease at this property. Msg & Data rates may apply. You consent to
559
+ <a
560
+ style=${Ie(hn)}
561
+ href="https://www.greystar.com/privacy"
562
+ target="_blank"
563
+ rel="noopener noreferrer"
564
+ >Greystar’s Global Privacy Policy</a
565
+ >
566
+ and
567
+ <a
568
+ style=${Ie(hn)}
569
+ href="http://bit.ly/me_privacy_policy"
570
+ target="_blank"
571
+ rel="noopener noreferrer"
572
+ >EliseAI’s Privacy Policy</a
573
+ >.
574
+ </div>`:e?L` <div style=${Ie(dn)}>
552
575
  By providing your number and clicking send, you consent to receive
553
576
  recurring marketing calls and voice and text messages from or on behalf of
554
577
  ${i} at this number using artificial voice or an autodialer
@@ -1255,7 +1278,22 @@ xmlns="http://www.w3.org/2000/svg"
1255
1278
  <h1>Searching for availabilities...</h1>
1256
1279
  <div class="loading-entire-tour-icon">${this.loadingIcon(48)}</div>
1257
1280
  </div>
1258
- </div>`;if(this.errorGettingAvailabilities)return L` <div
1281
+ </div>`;if(this.errorGettingAvailabilities)return 123519===this.buildingId?L` <div
1282
+ class="${tn()({"tour-scheduler-full":!this.compactDesign&&!gi(),"tour-scheduler-compact":this.compactDesign&&!gi(),"tour-scheduler-mobile":gi()})}"
1283
+ >
1284
+ <div id="top-header">
1285
+ <div></div>
1286
+ ${this.closeButton()}
1287
+ </div>
1288
+ <div class="center-tour-not-avail">
1289
+ <div>
1290
+ <p>
1291
+ Tours are by appointment only. Please call our leasing office at
1292
+ (844) 779-7491 to schedule your tour!"
1293
+ </p>
1294
+ </div>
1295
+ </div>
1296
+ </div>`:L` <div
1259
1297
  class="${tn()({"tour-scheduler-full":!this.compactDesign&&!gi(),"tour-scheduler-compact":this.compactDesign&&!gi(),"tour-scheduler-mobile":gi()})}"
1260
1298
  >
1261
1299
  <div id="top-header">
@@ -1349,7 +1387,7 @@ xmlns="http://www.w3.org/2000/svg"
1349
1387
  ${e.nextButtonText}
1350
1388
  </button>`}`}
1351
1389
  ${this.mobilePageIndex+1===this.mobilePages.length?L`
1352
- ${pn({buildingName:this.buildingName,phoneNumberInput:null===(o=this.phoneInput)||void 0===o?void 0:o.value,emailInput:null===(r=this.emailInput)||void 0===r?void 0:r.value,orgLegalName:this.orgLegalName})}
1390
+ ${pn({buildingName:this.buildingName,phoneNumberInput:null===(o=this.phoneInput)||void 0===o?void 0:o.value,emailInput:null===(r=this.emailInput)||void 0===r?void 0:r.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
1353
1391
  `:L``}
1354
1392
  </div>
1355
1393
  </div>
@@ -1382,7 +1420,7 @@ xmlns="http://www.w3.org/2000/svg"
1382
1420
  We'll send a confirmation and any follow-ups to your email
1383
1421
  address, please reply to the email to make any appointment
1384
1422
  changes.
1385
- ${pn({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})}
1423
+ ${pn({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})}
1386
1424
  </p>
1387
1425
 
1388
1426
  <div class="reschedule-buttons-wrapper">
@@ -1426,7 +1464,7 @@ xmlns="http://www.w3.org/2000/svg"
1426
1464
  We'll send a confirmation and any follow-ups to your email
1427
1465
  address, please reply to the email to make any appointment
1428
1466
  changes.
1429
- ${pn({buildingName:this.buildingName,phoneNumberInput:null===(i=this.phoneInput)||void 0===i?void 0:i.value,emailInput:null===(n=this.emailInput)||void 0===n?void 0:n.value,orgLegalName:this.orgLegalName})}
1467
+ ${pn({buildingName:this.buildingName,phoneNumberInput:null===(i=this.phoneInput)||void 0===i?void 0:i.value,emailInput:null===(n=this.emailInput)||void 0===n?void 0:n.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
1430
1468
  </p>
1431
1469
 
1432
1470
  <action-confirm-button
@@ -2459,7 +2497,7 @@ xmlns="http://www.w3.org/2000/svg"
2459
2497
  `:""}
2460
2498
  </div>
2461
2499
 
2462
- ${pn({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:this.email,orgLegalName:this.orgLegalName})}
2500
+ ${pn({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:this.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
2463
2501
  </details-window>
2464
2502
  `)}};Wn.styles=[l`
2465
2503
  .email-us__name-input,
@@ -1104,6 +1104,29 @@ export class TourScheduler extends LitElement {
1104
1104
  </div>`;
1105
1105
  }
1106
1106
  if (this.errorGettingAvailabilities) {
1107
+ if (this.buildingId === 123519) {
1108
+ // https://meetelise.zendesk.com/agent/tickets/94824
1109
+ return html` <div
1110
+ class="${classnames({
1111
+ "tour-scheduler-full": !this.compactDesign && !isMobile(),
1112
+ "tour-scheduler-compact": this.compactDesign && !isMobile(),
1113
+ "tour-scheduler-mobile": isMobile(),
1114
+ })}"
1115
+ >
1116
+ <div id="top-header">
1117
+ <div></div>
1118
+ ${this.closeButton()}
1119
+ </div>
1120
+ <div class="center-tour-not-avail">
1121
+ <div>
1122
+ <p>
1123
+ Tours are by appointment only. Please call our leasing office at
1124
+ (844) 779-7491 to schedule your tour!"
1125
+ </p>
1126
+ </div>
1127
+ </div>
1128
+ </div>`;
1129
+ }
1107
1130
  return html` <div
1108
1131
  class="${classnames({
1109
1132
  "tour-scheduler-full": !this.compactDesign && !isMobile(),
@@ -1182,6 +1205,7 @@ export class TourScheduler extends LitElement {
1182
1205
  phoneNumberInput: this.phoneInput?.value,
1183
1206
  emailInput: this.emailInput?.value,
1184
1207
  orgLegalName: this.orgLegalName,
1208
+ orgSlug: this.orgSlug,
1185
1209
  })}
1186
1210
  </p>
1187
1211
 
@@ -1234,6 +1258,7 @@ export class TourScheduler extends LitElement {
1234
1258
  phoneNumberInput: this.phoneInput?.value,
1235
1259
  emailInput: this.emailInput?.value,
1236
1260
  orgLegalName: this.orgLegalName,
1261
+ orgSlug: this.orgSlug,
1237
1262
  })}
1238
1263
  </p>
1239
1264
 
@@ -1341,6 +1366,7 @@ export class TourScheduler extends LitElement {
1341
1366
  phoneNumberInput: this.phoneInput?.value,
1342
1367
  emailInput: this.emailInput?.value,
1343
1368
  orgLegalName: this.orgLegalName,
1369
+ orgSlug: this.orgSlug,
1344
1370
  })}
1345
1371
  `
1346
1372
  : html``}
@@ -486,6 +486,7 @@ export class EmailUsWindow extends LitElement {
486
486
  phoneNumberInput: this.phoneNumber,
487
487
  emailInput: this.email,
488
488
  orgLegalName: this.orgLegalName,
489
+ orgSlug: this.orgSlug,
489
490
  })}
490
491
  </details-window>
491
492
  `;
@@ -15,12 +15,40 @@ const disclaimer = ({
15
15
  phoneNumberInput,
16
16
  emailInput,
17
17
  orgLegalName,
18
+ orgSlug,
18
19
  }: {
19
20
  buildingName: string;
20
21
  phoneNumberInput?: string;
21
22
  emailInput?: string;
22
23
  orgLegalName: string;
24
+ orgSlug: string;
23
25
  }): TemplateResult => {
26
+ if (phoneNumberInput && orgSlug === "greystar") {
27
+ return html`<div style=${styleMap(disclaimerStyles.container)}>
28
+ By providing your phone number and clicking send, you consent to receive
29
+ recurring marketing calls and voice and text messages from Greystar or on
30
+ its behalf at this number using artificial voice and/or an autodialer.
31
+ Messages may be AI or human-generated. Your phone number and
32
+ communications are shared with and recorded and used by EliseAI. You are
33
+ not required to provide your phone number or consent to these terms to
34
+ lease at this property. Msg & Data rates may apply. You consent to
35
+ <a
36
+ style=${styleMap(disclaimerStyles.link)}
37
+ href="https://www.greystar.com/privacy"
38
+ target="_blank"
39
+ rel="noopener noreferrer"
40
+ >Greystar’s Global Privacy Policy</a
41
+ >
42
+ and
43
+ <a
44
+ style=${styleMap(disclaimerStyles.link)}
45
+ href="http://bit.ly/me_privacy_policy"
46
+ target="_blank"
47
+ rel="noopener noreferrer"
48
+ >EliseAI’s Privacy Policy</a
49
+ >.
50
+ </div>`;
51
+ }
24
52
  if (phoneNumberInput) {
25
53
  return html` <div style=${styleMap(disclaimerStyles.container)}>
26
54
  By providing your number and clicking send, you consent to receive