diff --git a/blocks/contact-form/contact-form.css b/blocks/contact-form/contact-form.css
index 11d8e01c..7bbae3e7 100644
--- a/blocks/contact-form/contact-form.css
+++ b/blocks/contact-form/contact-form.css
@@ -115,7 +115,13 @@
display: flex;
justify-content: flex-start;
margin-bottom: 10px;
- cursor: pointer;
+}
+
+
+.contact-form.block form.contact-form .agent div.disclaimer {
+ font-size: var(--body-font-size-xxs);
+ line-height: var(--line-height-s);
+ color: var(--dark-grey);
}
.contact-form.block form.contact-form .agent > div:first-child {
diff --git a/blocks/contact-form/contact-form.js b/blocks/contact-form/contact-form.js
index 3f872301..33c855aa 100644
--- a/blocks/contact-form/contact-form.js
+++ b/blocks/contact-form/contact-form.js
@@ -323,6 +323,9 @@ const addForm = async (block) => {
if (window.selectedListingId) {
const prop = findListing();
taEl.value = `Hi, I would like more information about ${prop.StreetName}, ${prop.City}, ${prop.StateOrProvince} ${prop.PostalCode}.`;
+ if (window.location.pathname.length === 1) {
+ block.querySelector('.disclaimer').remove();
+ }
}
block.style.display = displayValue;
diff --git a/blocks/contact-form/forms/contact-property.html b/blocks/contact-form/forms/contact-property.html
index 63039424..02fbfe94 100644
--- a/blocks/contact-form/forms/contact-property.html
+++ b/blocks/contact-form/forms/contact-property.html
@@ -53,14 +53,14 @@
no
-
+ By providing this information, you are giving permission to Berkshire Hathaway HomeServices, Constellation1, a division of Constellation Web Solutions, Inc., and the members of the Berkshire Hathaway HomeServices real estate network (1) to contact you in response to your specific question or message, and (2) to register you in our system in order to communicate with you about properties for sale or rent in locations of interest to you. For more about how we will use your contact information, review our Privacy Policy.
diff --git a/blocks/property-listing/property-listing.js b/blocks/property-listing/property-listing.js
index 1b0ba734..014f6bcc 100644
--- a/blocks/property-listing/property-listing.js
+++ b/blocks/property-listing/property-listing.js
@@ -2,7 +2,9 @@ import { getMetadata, readBlockConfig } from '../../scripts/aem.js';
import { render as renderCards } from '../shared/property/cards.js';
import Search from '../../scripts/apis/creg/search/Search.js';
import { propertySearch } from '../../scripts/apis/creg/creg.js';
-import { a, div, p, span } from '../../scripts/dom-helpers.js';
+import {
+ a, div, p, span,
+} from '../../scripts/dom-helpers.js';
export default async function decorate(block) {
// Find and process list type configurations.
diff --git a/blocks/property-search-results/property-search-results.js b/blocks/property-search-results/property-search-results.js
index 7a12daad..69f5d520 100644
--- a/blocks/property-search-results/property-search-results.js
+++ b/blocks/property-search-results/property-search-results.js
@@ -103,6 +103,7 @@ async function doSearch(search, redraw = true) {
const controller = searchController;
propertySearch(search).then((results) => {
if (!controller.signal.aborted) {
+ window.propertyListings = results;
displayList(parent, results);
contentWrapper.querySelector('.search-results-disclaimer-wrapper').replaceChildren(
domEl('hr', { role: 'presentation', 'aria-hidden': true, tabindex: -1 }),