@meetelise/chat 1.30.3 → 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.3",
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
@@ -1364,7 +1387,7 @@ xmlns="http://www.w3.org/2000/svg"
1364
1387
  ${e.nextButtonText}
1365
1388
  </button>`}`}
1366
1389
  ${this.mobilePageIndex+1===this.mobilePages.length?L`
1367
- ${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})}
1368
1391
  `:L``}
1369
1392
  </div>
1370
1393
  </div>
@@ -1397,7 +1420,7 @@ xmlns="http://www.w3.org/2000/svg"
1397
1420
  We'll send a confirmation and any follow-ups to your email
1398
1421
  address, please reply to the email to make any appointment
1399
1422
  changes.
1400
- ${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})}
1401
1424
  </p>
1402
1425
 
1403
1426
  <div class="reschedule-buttons-wrapper">
@@ -1441,7 +1464,7 @@ xmlns="http://www.w3.org/2000/svg"
1441
1464
  We'll send a confirmation and any follow-ups to your email
1442
1465
  address, please reply to the email to make any appointment
1443
1466
  changes.
1444
- ${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})}
1445
1468
  </p>
1446
1469
 
1447
1470
  <action-confirm-button
@@ -2474,7 +2497,7 @@ xmlns="http://www.w3.org/2000/svg"
2474
2497
  `:""}
2475
2498
  </div>
2476
2499
 
2477
- ${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})}
2478
2501
  </details-window>
2479
2502
  `)}};Wn.styles=[l`
2480
2503
  .email-us__name-input,
@@ -1205,6 +1205,7 @@ export class TourScheduler extends LitElement {
1205
1205
  phoneNumberInput: this.phoneInput?.value,
1206
1206
  emailInput: this.emailInput?.value,
1207
1207
  orgLegalName: this.orgLegalName,
1208
+ orgSlug: this.orgSlug,
1208
1209
  })}
1209
1210
  </p>
1210
1211
 
@@ -1257,6 +1258,7 @@ export class TourScheduler extends LitElement {
1257
1258
  phoneNumberInput: this.phoneInput?.value,
1258
1259
  emailInput: this.emailInput?.value,
1259
1260
  orgLegalName: this.orgLegalName,
1261
+ orgSlug: this.orgSlug,
1260
1262
  })}
1261
1263
  </p>
1262
1264
 
@@ -1364,6 +1366,7 @@ export class TourScheduler extends LitElement {
1364
1366
  phoneNumberInput: this.phoneInput?.value,
1365
1367
  emailInput: this.emailInput?.value,
1366
1368
  orgLegalName: this.orgLegalName,
1369
+ orgSlug: this.orgSlug,
1367
1370
  })}
1368
1371
  `
1369
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