@meetelise/chat 1.35.0 → 1.35.2
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/MyPubnub.d.ts +116 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector.d.ts +28 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-item-qty-selector/addon-item-qty-selector-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-item-qty-selector/addon-item-qty-selector.d.ts +18 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/common-addon-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector.d.ts +22 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.d.ts +46 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-card/fee-card-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-card/fee-card.d.ts +21 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +13 -0
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +34 -0
- package/dist/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card.d.ts +18 -0
- package/dist/src/WebComponent/FeeCalculator/components/incentive-banner/incentive-banner-styles.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/components/incentive-banner/incentive-banner.d.ts +8 -0
- package/dist/src/WebComponent/FeeCalculator/components/incentive-banner/index.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +5 -0
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +13 -0
- package/dist/src/WebComponent/FeeCalculator/constants.d.ts +3 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +55 -0
- package/dist/src/WebComponent/FeeCalculator/index.d.ts +2 -0
- package/dist/src/WebComponent/FeeCalculator/model/building-fee-view.d.ts +41 -0
- package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +82 -0
- package/dist/src/WebComponent/FeeCalculator/model/desired-addon.d.ts +5 -0
- package/dist/src/WebComponent/FeeCalculator/model/desired-rentable-item.d.ts +4 -0
- package/dist/src/WebComponent/FeeCalculator/model/index.d.ts +13 -0
- package/dist/src/WebComponent/FeeCalculator/model/item-combination.d.ts +6 -0
- package/dist/src/WebComponent/FeeCalculator/model/item-quantity.d.ts +4 -0
- package/dist/src/WebComponent/FeeCalculator/model/pricing-matrix.d.ts +18 -0
- package/dist/src/WebComponent/FeeCalculator/model/pricing-rule.d.ts +8 -0
- package/dist/src/WebComponent/FeeCalculator/model/rent-frequency.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/model/rentable-item-summary.d.ts +13 -0
- package/dist/src/WebComponent/FeeCalculator/model/rentable-item.d.ts +10 -0
- package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +23 -0
- package/dist/src/WebComponent/FeeCalculator/model/unit-fee-bundle.d.ts +31 -0
- package/dist/src/WebComponent/LeadSourceClient.d.ts +46 -0
- package/dist/src/WebComponent/OfficeHours.d.ts +21 -0
- package/dist/src/WebComponent/Scheduler/date-picker.d.ts +28 -0
- package/dist/src/WebComponent/Scheduler/time-picker.d.ts +16 -0
- package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +102 -0
- package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +13 -0
- package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +1 -0
- package/dist/src/WebComponent/actions/InputStyles.d.ts +1 -0
- package/dist/src/WebComponent/actions/action-confirm-button.d.ts +13 -0
- package/dist/src/WebComponent/actions/call-us-window.d.ts +37 -0
- package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +8 -0
- package/dist/src/WebComponent/actions/details-window.d.ts +14 -0
- package/dist/src/WebComponent/actions/email-us-window.d.ts +46 -0
- package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +17 -0
- package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +8 -0
- package/dist/src/WebComponent/chat-additional-actions.d.ts +28 -0
- package/dist/src/WebComponent/health-chat.d.ts +47 -0
- package/dist/src/WebComponent/healthchat-styles.d.ts +1 -0
- package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +7 -0
- package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +3 -0
- package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +2 -0
- package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +2 -0
- package/dist/src/WebComponent/index.d.ts +2 -0
- package/dist/src/WebComponent/launcher/Launcher.d.ts +99 -0
- package/dist/src/WebComponent/launcher/launcherStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +27 -0
- package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +1 -0
- package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +1 -0
- package/dist/src/WebComponent/leasing-chat-styles.d.ts +1 -0
- package/dist/src/WebComponent/loaders/index.d.ts +4 -0
- package/dist/src/WebComponent/loaders/mega-loader.d.ts +7 -0
- package/dist/src/WebComponent/loaders/skeleton-card.d.ts +12 -0
- package/dist/src/WebComponent/loaders/skeleton-loader-styles.d.ts +3 -0
- package/dist/src/WebComponent/loaders/skeleton-loader.d.ts +13 -0
- package/dist/src/WebComponent/me-chat.d.ts +91 -0
- package/dist/src/WebComponent/me-select.d.ts +24 -0
- package/dist/src/WebComponent/mini-loader.d.ts +5 -0
- package/dist/src/WebComponent/pubnub-chat-styles.d.ts +1 -0
- package/dist/src/WebComponent/pubnub-chat.d.ts +48 -0
- package/dist/src/WebComponent/pubnub-media.d.ts +14 -0
- package/dist/src/WebComponent/pubnub-message-styles.d.ts +1 -0
- package/dist/src/WebComponent/pubnub-message.d.ts +39 -0
- package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +1 -0
- package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +12 -0
- package/dist/src/WebComponent/utilities-chat.d.ts +47 -0
- package/dist/src/WebComponent/utilities-styles.d.ts +1 -0
- package/dist/src/WebComponent/utils.d.ts +31 -0
- package/dist/src/analytics.d.ts +64 -0
- package/dist/src/disclaimers.d.ts +16 -0
- package/dist/src/fetchBuildingABTestType.d.ts +8 -0
- package/dist/src/fetchBuildingInfo.d.ts +58 -0
- package/dist/src/fetchBuildingWebchatView.d.ts +124 -0
- package/dist/src/fetchFeatureFlag.d.ts +14 -0
- package/dist/src/fetchLeadSources.d.ts +4 -0
- package/dist/src/fetchPhoneNumberFromSource.d.ts +6 -0
- package/dist/src/getAvailabilities.d.ts +46 -0
- package/dist/src/getBuildingPhoneNumber.d.ts +1 -0
- package/dist/src/getShouldAllowScheduling.d.ts +1 -0
- package/dist/src/getShouldShowWebchat.d.ts +3 -0
- package/dist/src/getTimezoneString.d.ts +1 -0
- package/dist/src/globals.d.ts +2 -0
- package/dist/src/gtm.d.ts +6 -0
- package/dist/src/handleChatId.d.ts +11 -0
- package/dist/src/insertDNIIntoWebsite.d.ts +5 -0
- package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +4 -0
- package/dist/src/main/MEChat.d.ts +74 -0
- package/dist/src/main/utils.d.ts +2 -0
- package/dist/src/postLeadSources.d.ts +3 -0
- package/dist/src/rentgrata.d.ts +4 -0
- package/dist/src/replaceSelectButtonsWithNewLink.d.ts +5 -0
- package/dist/src/services/fees/calculateQuote.d.ts +14 -0
- package/dist/src/services/fees/fetchBuildingFeesV2.d.ts +10 -0
- package/dist/src/services/fees/fetchBuildingUnits.d.ts +29 -0
- package/dist/src/services/fees/utils.d.ts +1 -0
- package/dist/src/svgIcons.d.ts +5 -0
- package/dist/src/themes.d.ts +5 -0
- package/dist/src/types/incentive-v2.d.ts +23 -0
- package/dist/src/types/rest-sdk.types.d.ts +11 -0
- package/dist/src/types/webchat-no-show-reason.d.ts +1 -0
- package/dist/src/utils/getWidgetOverrides.d.ts +39 -0
- package/dist/src/utils/queryParamBuilder.d.ts +8 -0
- package/dist/src/utils.d.ts +13 -0
- package/package.json +1 -1
- package/public/dist/index.js +250 -164
- package/src/MyPubnub.ts +792 -0
- package/src/WebComponent/FeeCalculator/components/addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector-styles.ts +39 -0
- package/src/WebComponent/FeeCalculator/components/addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector.ts +206 -0
- package/src/WebComponent/FeeCalculator/components/addons/addon-item-qty-selector/addon-item-qty-selector-styles.ts +6 -0
- package/src/WebComponent/FeeCalculator/components/addons/addon-item-qty-selector/addon-item-qty-selector.ts +101 -0
- package/src/WebComponent/FeeCalculator/components/addons/common-addon-styles.ts +98 -0
- package/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector-styles.ts +9 -0
- package/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector.ts +136 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.ts +151 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts +261 -0
- package/src/WebComponent/FeeCalculator/components/fee-card/fee-card-styles.ts +65 -0
- package/src/WebComponent/FeeCalculator/components/fee-card/fee-card.ts +91 -0
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +44 -0
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +38 -0
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +149 -0
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +247 -0
- package/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card-styles.ts +82 -0
- package/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card.ts +76 -0
- package/src/WebComponent/FeeCalculator/components/incentive-banner/incentive-banner-styles.ts +40 -0
- package/src/WebComponent/FeeCalculator/components/incentive-banner/incentive-banner.ts +43 -0
- package/src/WebComponent/FeeCalculator/components/incentive-banner/index.ts +1 -0
- package/src/WebComponent/FeeCalculator/components/index.ts +5 -0
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +39 -0
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +39 -0
- package/src/WebComponent/FeeCalculator/constants.ts +5 -0
- package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +310 -0
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +341 -0
- package/src/WebComponent/FeeCalculator/index.ts +4 -0
- package/src/WebComponent/FeeCalculator/model/building-fee-view.ts +84 -0
- package/src/WebComponent/FeeCalculator/model/building-fee.ts +126 -0
- package/src/WebComponent/FeeCalculator/model/desired-addon.ts +6 -0
- package/src/WebComponent/FeeCalculator/model/desired-rentable-item.ts +4 -0
- package/src/WebComponent/FeeCalculator/model/index.ts +13 -0
- package/src/WebComponent/FeeCalculator/model/item-combination.ts +16 -0
- package/src/WebComponent/FeeCalculator/model/item-quantity.ts +4 -0
- package/src/WebComponent/FeeCalculator/model/pricing-matrix.ts +45 -0
- package/src/WebComponent/FeeCalculator/model/pricing-rule.ts +9 -0
- package/src/WebComponent/FeeCalculator/model/rent-frequency.ts +1 -0
- package/src/WebComponent/FeeCalculator/model/rentable-item-summary.ts +34 -0
- package/src/WebComponent/FeeCalculator/model/rentable-item.ts +21 -0
- package/src/WebComponent/FeeCalculator/model/transaction-category.ts +23 -0
- package/src/WebComponent/FeeCalculator/model/unit-fee-bundle.ts +54 -0
- package/src/WebComponent/LeadSourceClient.ts +332 -0
- package/src/WebComponent/MEChat.css +5 -0
- package/src/WebComponent/OfficeHours.ts +73 -0
- package/src/WebComponent/Scheduler/date-picker.ts +405 -0
- package/src/WebComponent/Scheduler/time-picker.ts +195 -0
- package/src/WebComponent/Scheduler/tour-scheduler.ts +1430 -0
- package/src/WebComponent/Scheduler/tour-type-option.ts +112 -0
- package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +418 -0
- package/src/WebComponent/actions/InputStyles.ts +57 -0
- package/src/WebComponent/actions/action-confirm-button.ts +125 -0
- package/src/WebComponent/actions/call-us-window.ts +467 -0
- package/src/WebComponent/actions/collapse-expand-button.ts +65 -0
- package/src/WebComponent/actions/details-window.ts +150 -0
- package/src/WebComponent/actions/email-us-window.ts +556 -0
- package/src/WebComponent/actions/formatPhoneNumber.ts +72 -0
- package/src/WebComponent/actions/minimize-expand-button.ts +93 -0
- package/src/WebComponent/chat-additional-actions.ts +135 -0
- package/src/WebComponent/health-chat.ts +270 -0
- package/src/WebComponent/healthchat-styles.ts +119 -0
- package/src/WebComponent/icons/ApplyOutlineIcon.ts +22 -0
- package/src/WebComponent/icons/BookTourOutlineIcon.ts +13 -0
- package/src/WebComponent/icons/CalculatorOutlineIcon.ts +80 -0
- package/src/WebComponent/icons/ChatOutlineIcon.ts +10 -0
- package/src/WebComponent/icons/ChevronLeftIcon.ts +7 -0
- package/src/WebComponent/icons/ChevronRightIcon.ts +7 -0
- package/src/WebComponent/icons/ContactResidentIcon.ts +9 -0
- package/src/WebComponent/icons/DollarOutlineIcon.ts +26 -0
- package/src/WebComponent/icons/EmailOutlineIcon.ts +7 -0
- package/src/WebComponent/icons/HeyThereEmojiIcon.ts +12 -0
- package/src/WebComponent/icons/PhoneOutlineIcon.ts +7 -0
- package/src/WebComponent/icons/SendMessageIcon.ts +17 -0
- package/src/WebComponent/icons/TourSelfGuidedIcon.ts +17 -0
- package/src/WebComponent/icons/TourVirtuallyIcon.ts +17 -0
- package/src/WebComponent/icons/TourWithAgentIcon.ts +17 -0
- package/src/WebComponent/icons/XOutlineIcon.ts +8 -0
- package/src/WebComponent/index.ts +2 -0
- package/src/WebComponent/launcher/Launcher.ts +1284 -0
- package/src/WebComponent/launcher/launcherStyles.ts +500 -0
- package/src/WebComponent/launcher/mobile-launcher.ts +162 -0
- package/src/WebComponent/launcher/typeEmojiStyles.ts +161 -0
- package/src/WebComponent/launcher/typeMiniStyles.ts +60 -0
- package/src/WebComponent/launcher/typeMobileStyles.ts +50 -0
- package/src/WebComponent/leasing-chat-styles.ts +114 -0
- package/src/WebComponent/loaders/index.ts +7 -0
- package/src/WebComponent/loaders/mega-loader.ts +36 -0
- package/src/WebComponent/loaders/skeleton-card.ts +31 -0
- package/src/WebComponent/loaders/skeleton-loader-styles.ts +112 -0
- package/src/WebComponent/loaders/skeleton-loader.ts +34 -0
- package/src/WebComponent/me-chat.ts +1264 -0
- package/src/WebComponent/me-select.ts +322 -0
- package/src/WebComponent/mini-loader.ts +28 -0
- package/src/WebComponent/pubnub-chat-styles.ts +204 -0
- package/src/WebComponent/pubnub-chat.ts +771 -0
- package/src/WebComponent/pubnub-media.ts +208 -0
- package/src/WebComponent/pubnub-message-styles.ts +54 -0
- package/src/WebComponent/pubnub-message.ts +431 -0
- package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +34 -0
- package/src/WebComponent/simple-launcher/simple-launcher.ts +100 -0
- package/src/WebComponent/utilities-chat.ts +270 -0
- package/src/WebComponent/utilities-styles.ts +110 -0
- package/src/WebComponent/utils.ts +82 -0
- package/src/analytics.ts +217 -0
- package/src/assetUrls.ts +6 -0
- package/src/disclaimers.ts +301 -0
- package/src/fetchBuildingABTestType.ts +21 -0
- package/src/fetchBuildingInfo.ts +88 -0
- package/src/fetchBuildingWebchatView.ts +176 -0
- package/src/fetchFeatureFlag.ts +250 -0
- package/src/fetchLeadSources.ts +98 -0
- package/src/fetchPhoneNumberFromSource.ts +31 -0
- package/src/fetchWebchatPreferences.ts +54 -0
- package/src/getAvailabilities.ts +189 -0
- package/src/getBuildingPhoneNumber.ts +26 -0
- package/src/getShouldAllowScheduling.ts +16 -0
- package/src/getShouldShowWebchat.ts +114 -0
- package/src/getTimezoneString.ts +40 -0
- package/src/globals.ts +3 -0
- package/src/gtm.ts +17 -0
- package/src/handleChatId.ts +101 -0
- package/src/insertDNIIntoWebsite.ts +146 -0
- package/src/insertLeadSourceIntoSchedulerLinks.ts +71 -0
- package/src/main/MEChat.test.ts +110 -0
- package/src/main/MEChat.ts +404 -0
- package/src/main/utils.ts +70 -0
- package/src/postLeadSources.ts +44 -0
- package/src/rentgrata.ts +74 -0
- package/src/replaceSelectButtonsWithNewLink.ts +91 -0
- package/src/services/fees/calculateQuote.ts +74 -0
- package/src/services/fees/fetchBuildingFees.ts +50 -0
- package/src/services/fees/fetchBuildingFeesV2.ts +59 -0
- package/src/services/fees/fetchBuildingFloorplans.ts +74 -0
- package/src/services/fees/fetchBuildingUnits.ts +86 -0
- package/src/services/fees/utils.ts +4 -0
- package/src/svgIcons.ts +14 -0
- package/src/themes.ts +65 -0
- package/src/types/incentive-v2.ts +24 -0
- package/src/types/rest-sdk.types.ts +13 -0
- package/src/types/webchat-no-show-reason.ts +6 -0
- package/src/utils/getWidgetOverrides.ts +91 -0
- package/src/utils/queryParamBuilder.ts +28 -0
- package/src/utils.ts +121 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import { Ref } from "lit/directives/ref.js";
|
|
3
|
+
import { EmailUsWindow } from "../actions/email-us-window";
|
|
4
|
+
import { StyleInfo } from "lit/directives/style-map.js";
|
|
5
|
+
import { TourScheduler } from "../Scheduler/tour-scheduler";
|
|
6
|
+
import { FeeCalculator } from "../FeeCalculator/fee-calculator";
|
|
7
|
+
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
8
|
+
import "./mobile-launcher";
|
|
9
|
+
import "../actions/collapse-expand-button";
|
|
10
|
+
export declare class Launcher extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
isMinimized: boolean;
|
|
13
|
+
mobileStyles: StyleInfo;
|
|
14
|
+
isFirstMount: boolean;
|
|
15
|
+
autoOpenChatWidget: boolean;
|
|
16
|
+
phoneNumber: string;
|
|
17
|
+
buildingName: string;
|
|
18
|
+
chatId: string;
|
|
19
|
+
orgLegalName: string;
|
|
20
|
+
chatCallUsHeader: string;
|
|
21
|
+
buildingId: number;
|
|
22
|
+
buildingSlug: string;
|
|
23
|
+
orgSlug: string;
|
|
24
|
+
sgtUrl: string;
|
|
25
|
+
selfGuidedTourEnabled: boolean;
|
|
26
|
+
selfGuidedToursTypeOffered: string;
|
|
27
|
+
designConcept: string;
|
|
28
|
+
featureFlagShowDropdown: string;
|
|
29
|
+
leadSources: string[];
|
|
30
|
+
currentLeadSource: string;
|
|
31
|
+
escortedToursLink: string;
|
|
32
|
+
virtualToursLink: string;
|
|
33
|
+
virtualToursTypeOffered: string;
|
|
34
|
+
hasChatEnabledDesktop: boolean;
|
|
35
|
+
hasChatEnabledMobile: boolean;
|
|
36
|
+
hasEmailEnabledDesktop: boolean;
|
|
37
|
+
hasEmailEnabledMobile: boolean;
|
|
38
|
+
hasApplyNowEnabledDesktop: boolean;
|
|
39
|
+
hasApplyNowEnabledMobile: boolean;
|
|
40
|
+
applicationLink: string;
|
|
41
|
+
hasCallUsEnabledDesktop: boolean;
|
|
42
|
+
hasCallUsEnabledMobile: boolean;
|
|
43
|
+
hasTextUsEnabledDesktop: boolean;
|
|
44
|
+
hasTextUsEnabledMobile: boolean;
|
|
45
|
+
hasSSTEnabledDesktop: boolean;
|
|
46
|
+
hasSSTEnabledMobile: boolean;
|
|
47
|
+
tourTypeOptions: LabeledOption[];
|
|
48
|
+
hasDynamicSchedulingEnabled: boolean;
|
|
49
|
+
hasPricingCalculatorEnabledDesktop: boolean;
|
|
50
|
+
hasPricingCalculatorEnabledMobile: boolean;
|
|
51
|
+
onExitChat: () => void;
|
|
52
|
+
hasHideMobileFeatures: boolean;
|
|
53
|
+
private right;
|
|
54
|
+
private bottom;
|
|
55
|
+
private top;
|
|
56
|
+
private left;
|
|
57
|
+
showTourNextToChat: boolean;
|
|
58
|
+
onChatTapped: () => void;
|
|
59
|
+
onClickMinimize: (e: MouseEvent) => void;
|
|
60
|
+
onSstClose: () => void;
|
|
61
|
+
overrideRentgrata: boolean;
|
|
62
|
+
launcherStyles: StyleInfo;
|
|
63
|
+
primaryColor: string;
|
|
64
|
+
backgroundColor: string;
|
|
65
|
+
foregroundColorOnPrimaryBackgroundColor: string;
|
|
66
|
+
foregroundColorOnSecondaryBackgroundColor: string;
|
|
67
|
+
private leadSourceClient;
|
|
68
|
+
isEmailWindowOpen: boolean;
|
|
69
|
+
isCallUsWindowOpen: boolean;
|
|
70
|
+
isSSTWindowOpen: boolean;
|
|
71
|
+
isTextUsWindowOpen: boolean;
|
|
72
|
+
isCalculatorWindowOpen: boolean;
|
|
73
|
+
private isMobileFeaturesExpanded;
|
|
74
|
+
getNumCallToActions: () => number;
|
|
75
|
+
emailUsWindowRef: Ref<EmailUsWindow>;
|
|
76
|
+
tourSchedulerRef: Ref<TourScheduler>;
|
|
77
|
+
calculatorWindowRef: Ref<FeeCalculator>;
|
|
78
|
+
updated: () => Promise<void>;
|
|
79
|
+
attachOnClickToEmailUsWindow: () => void;
|
|
80
|
+
attachOnClickToSSTWindow: () => void;
|
|
81
|
+
attachOnClickToCalculatorWindow: () => void;
|
|
82
|
+
onClickEmailOption: (e: MouseEvent) => void;
|
|
83
|
+
onCloseEmailWindow: () => void;
|
|
84
|
+
onClickPhoneOption: (e: MouseEvent) => void;
|
|
85
|
+
onClickApplyNowOption: (e: MouseEvent) => void;
|
|
86
|
+
onClickPriceCalculatorOption: (e: MouseEvent) => void;
|
|
87
|
+
onClosePhoneWindow: () => void;
|
|
88
|
+
onClickSSTOption: (e: MouseEvent) => void;
|
|
89
|
+
onCloseSSTWindow: () => void;
|
|
90
|
+
onCloseCalculatorWindow: () => void;
|
|
91
|
+
onClickTextUsOption: (e: MouseEvent) => void;
|
|
92
|
+
isCallToActionWindowOpen: () => boolean;
|
|
93
|
+
toggleMobileFeatures: () => void;
|
|
94
|
+
renderActionPills: () => TemplateResult;
|
|
95
|
+
private emojiPillList;
|
|
96
|
+
private verticalPillList;
|
|
97
|
+
render(): TemplateResult;
|
|
98
|
+
}
|
|
99
|
+
export declare const installLauncher: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const launcherStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
export declare class MobileLauncher extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
onClickMinimize: () => void;
|
|
5
|
+
onClickEmailOption: (e: MouseEvent) => void;
|
|
6
|
+
onClickPhoneOption: (e: MouseEvent) => void;
|
|
7
|
+
onClickSSTOption: (e: MouseEvent) => void;
|
|
8
|
+
onClickApplyNowOption: (e: MouseEvent) => void;
|
|
9
|
+
onClickPriceCalculatorOption: (e: MouseEvent) => void;
|
|
10
|
+
onChatTapped: (e: MouseEvent) => void;
|
|
11
|
+
hideChat: boolean;
|
|
12
|
+
isMobileDesign: boolean;
|
|
13
|
+
primaryColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
hasChatEnabled: boolean;
|
|
16
|
+
hasEmailEnabled: boolean;
|
|
17
|
+
hasCallUsEnabled: boolean;
|
|
18
|
+
hasTextUsEnabled: boolean;
|
|
19
|
+
hasSSTEnabled: boolean;
|
|
20
|
+
hasApplyNowEnabled: boolean;
|
|
21
|
+
hasPricingCalculatorEnabled: boolean;
|
|
22
|
+
applicationLink: string;
|
|
23
|
+
overrideRentgrata: boolean;
|
|
24
|
+
foregroundColorOnSecondaryBackgroundColor: string;
|
|
25
|
+
private renderListElement;
|
|
26
|
+
render(): TemplateResult;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const typeEmojiStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const typeMiniStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const typeMobileStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const leasingChatStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
export declare class SkeletonCard extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
4
|
+
rows: number;
|
|
5
|
+
header: boolean;
|
|
6
|
+
render(): TemplateResult;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
"skeleton-card": SkeletonCard;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import "./skeleton-card";
|
|
3
|
+
export declare class SkeletonLoader extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
cards: number;
|
|
6
|
+
rowsPerCard: number[];
|
|
7
|
+
render(): TemplateResult;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
"skeleton-loader": SkeletonLoader;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import { Ref } from "lit/directives/ref.js";
|
|
3
|
+
import { Launcher } from "./launcher/Launcher";
|
|
4
|
+
import "./Scheduler/tour-scheduler";
|
|
5
|
+
import "./MEChat.css";
|
|
6
|
+
import { StyleInfo } from "lit/directives/style-map";
|
|
7
|
+
import "./actions/minimize-expand-button";
|
|
8
|
+
import "./launcher/mobile-launcher";
|
|
9
|
+
import "./pubnub-chat";
|
|
10
|
+
import { WidgetType } from "../main/MEChat";
|
|
11
|
+
import "./chat-additional-actions";
|
|
12
|
+
export declare class MEChat extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
private buildingSlug;
|
|
15
|
+
private orgSlug;
|
|
16
|
+
launcherStyles: StyleInfo;
|
|
17
|
+
mobileStyles: StyleInfo;
|
|
18
|
+
isMinimized: boolean;
|
|
19
|
+
private primaryColor;
|
|
20
|
+
private backgroundColor;
|
|
21
|
+
private foregroundColorOnPrimaryBackgroundColor;
|
|
22
|
+
private foregroundColorOnSecondaryBackgroundColor;
|
|
23
|
+
private chatId;
|
|
24
|
+
private analytics;
|
|
25
|
+
private launcher;
|
|
26
|
+
private buildingWebchatView;
|
|
27
|
+
private designConcept;
|
|
28
|
+
private leadSources;
|
|
29
|
+
private currentLeadSource;
|
|
30
|
+
private featureFlagShowDropdown;
|
|
31
|
+
private phoneNumberForSource;
|
|
32
|
+
private hasMounted;
|
|
33
|
+
private hideLauncher;
|
|
34
|
+
private isLoading;
|
|
35
|
+
private showTourNextToChat;
|
|
36
|
+
private displayPubnubChat;
|
|
37
|
+
private myPubnub;
|
|
38
|
+
private LeadSourceClient;
|
|
39
|
+
private sampleRateToUse;
|
|
40
|
+
private right;
|
|
41
|
+
private bottom;
|
|
42
|
+
private top;
|
|
43
|
+
private left;
|
|
44
|
+
overrideRentgrata: boolean;
|
|
45
|
+
widgetType: WidgetType;
|
|
46
|
+
onWidgetLoaded: () => void;
|
|
47
|
+
onSstClose: () => void;
|
|
48
|
+
private enabledChatWidgets;
|
|
49
|
+
private webchatConfigHasAutoOpenChat;
|
|
50
|
+
private requiresConsent;
|
|
51
|
+
private hideMobileFeatures;
|
|
52
|
+
private privacyPolicyUrl;
|
|
53
|
+
launcherRef: Ref<Launcher>;
|
|
54
|
+
firstUpdated: () => Promise<void>;
|
|
55
|
+
private setupWebchat;
|
|
56
|
+
setBuildingDerivedInfo: () => Promise<void>;
|
|
57
|
+
private initializeChatVariables;
|
|
58
|
+
private shouldAutoOpenChat;
|
|
59
|
+
private handleChatInitializeAnalytics;
|
|
60
|
+
restartConversation(): Promise<void>;
|
|
61
|
+
private updateAlreadyAutoOpenedTimestamp;
|
|
62
|
+
/** Show the chat button on the screen if it was previously hidden. */
|
|
63
|
+
show(): void;
|
|
64
|
+
/** Hide the chat button from the screen (but don't remove from the DOM). */
|
|
65
|
+
hide(): void;
|
|
66
|
+
handleContactClicked: (e: MouseEvent) => void;
|
|
67
|
+
handleTourClicked: (e: MouseEvent) => void;
|
|
68
|
+
handleContactTabClicked: (e: MouseEvent) => void;
|
|
69
|
+
adjustPositionChatAdditionalActions: () => void;
|
|
70
|
+
connectedCallback(): void;
|
|
71
|
+
handleKeydownTab: (e: KeyboardEvent) => void;
|
|
72
|
+
getDeepActiveElement(): Element | null;
|
|
73
|
+
updated(): void;
|
|
74
|
+
disconnectedCallback(): void;
|
|
75
|
+
onClickMinimize: (e: MouseEvent) => void;
|
|
76
|
+
private attachOnClickToLauncher;
|
|
77
|
+
onExitChat: () => void;
|
|
78
|
+
render(): TemplateResult;
|
|
79
|
+
}
|
|
80
|
+
declare global {
|
|
81
|
+
interface HTMLElementTagNameMap {
|
|
82
|
+
"me-chat": MEChat;
|
|
83
|
+
}
|
|
84
|
+
interface Window {
|
|
85
|
+
RCTPCampaign?: {
|
|
86
|
+
CampaignDetails: {
|
|
87
|
+
Source: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
declare type MeSelectOption = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class MESelect extends LitElement {
|
|
7
|
+
options: MeSelectOption[];
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
private activeOption;
|
|
11
|
+
private isOpen?;
|
|
12
|
+
private activeOptionIndex;
|
|
13
|
+
meSelect: HTMLDivElement;
|
|
14
|
+
focus: () => void;
|
|
15
|
+
toggleSelect: () => void;
|
|
16
|
+
setSelectedOption: (option: MeSelectOption, closeSelect?: boolean) => void;
|
|
17
|
+
handleKeydown: (keyOrKeys: string | string[], callback: () => void) => (event: KeyboardEvent) => void;
|
|
18
|
+
private adjustScrollToActiveOption;
|
|
19
|
+
constructor();
|
|
20
|
+
static styles: import("lit").CSSResult[];
|
|
21
|
+
firstUpdated: () => void;
|
|
22
|
+
render(): TemplateResult;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pubnubChatStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import { Building } from "../fetchBuildingInfo";
|
|
3
|
+
import MyPubnub, { SimpleChatMessage } from "../MyPubnub";
|
|
4
|
+
import "./pubnub-message";
|
|
5
|
+
import "./pubnub-media";
|
|
6
|
+
import { WidgetType } from "../main/MEChat";
|
|
7
|
+
export declare class PubnubChat extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
private right;
|
|
10
|
+
private bottom;
|
|
11
|
+
private top;
|
|
12
|
+
private left;
|
|
13
|
+
onMount: () => void;
|
|
14
|
+
channel: string | undefined;
|
|
15
|
+
isHealthChat: boolean;
|
|
16
|
+
myPubnub: MyPubnub | undefined;
|
|
17
|
+
orgSlug: string | undefined;
|
|
18
|
+
buildingSlug: string | undefined;
|
|
19
|
+
widgetType: WidgetType;
|
|
20
|
+
building: Building | undefined;
|
|
21
|
+
primaryColor: string;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
onClickExit: () => void;
|
|
24
|
+
requiresConsent: boolean;
|
|
25
|
+
messageInput: HTMLTextAreaElement;
|
|
26
|
+
messageBody: HTMLDivElement;
|
|
27
|
+
messages: SimpleChatMessage[];
|
|
28
|
+
isLoadingMessages: boolean;
|
|
29
|
+
hasReceivedConsent: boolean;
|
|
30
|
+
privacyPolicyUrl: string;
|
|
31
|
+
websitePreviewMapping: {
|
|
32
|
+
[messageId: string]: {
|
|
33
|
+
title: string | null;
|
|
34
|
+
description: string | null;
|
|
35
|
+
image: string | null;
|
|
36
|
+
favicon: string | null;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
get consentKey(): string;
|
|
41
|
+
sendMessage: (message: string) => Promise<void>;
|
|
42
|
+
firstUpdated(): void;
|
|
43
|
+
scrollToChatBottom: () => void;
|
|
44
|
+
updated(): Promise<void>;
|
|
45
|
+
autoResizeMessageInput: () => void;
|
|
46
|
+
needsConsent: () => boolean;
|
|
47
|
+
render(): TemplateResult;
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
+
import MyPubnub, { SimpleMediaChatMessage } from "../MyPubnub";
|
|
3
|
+
export declare class PubnubMedia extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
message: SimpleMediaChatMessage | undefined;
|
|
6
|
+
myPubnub: MyPubnub | undefined;
|
|
7
|
+
onMount: () => void;
|
|
8
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
9
|
+
showMediaAsCarousel: boolean;
|
|
10
|
+
activeIndex: number;
|
|
11
|
+
private prevImage;
|
|
12
|
+
private nextImage;
|
|
13
|
+
render(): TemplateResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pubnubMessageStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
+
import MyPubnub, { SimpleTextChatMessage } from "../MyPubnub";
|
|
3
|
+
import "./mini-loader";
|
|
4
|
+
import { WidgetType } from "../main/MEChat";
|
|
5
|
+
interface WebsitePreview {
|
|
6
|
+
title: string | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
image: string | null;
|
|
9
|
+
favicon: string | null;
|
|
10
|
+
link: string;
|
|
11
|
+
}
|
|
12
|
+
interface ImageToDisplay {
|
|
13
|
+
redirectTo: string;
|
|
14
|
+
source: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class PubnubMessage extends LitElement {
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
buildingSlug: string | undefined;
|
|
19
|
+
message: SimpleTextChatMessage | undefined;
|
|
20
|
+
myPubnub: MyPubnub | undefined;
|
|
21
|
+
onMount: () => void;
|
|
22
|
+
loadingPreviews: boolean;
|
|
23
|
+
parsedMessage: TemplateResult | undefined;
|
|
24
|
+
websitePreviewInfo: WebsitePreview[];
|
|
25
|
+
imagesToDisplay: ImageToDisplay[];
|
|
26
|
+
imageUrlError: string[];
|
|
27
|
+
isLeadMessage: boolean;
|
|
28
|
+
widgetType: WidgetType;
|
|
29
|
+
isMessageStillStreamingChunks(): boolean;
|
|
30
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
31
|
+
private invalidMarkdownText;
|
|
32
|
+
private preserveHTMLTags;
|
|
33
|
+
private sanitizeMarkdownText;
|
|
34
|
+
private removeTrailingPunctuation;
|
|
35
|
+
private mapAndMarkHyperLinks;
|
|
36
|
+
private getLinkData;
|
|
37
|
+
render(): TemplateResult;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const simpleLauncherStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
export declare class SimpleLauncher extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
private right;
|
|
5
|
+
private bottom;
|
|
6
|
+
private top;
|
|
7
|
+
private left;
|
|
8
|
+
isChatOpen: boolean;
|
|
9
|
+
onClickCloseChat: () => void;
|
|
10
|
+
onClickOpenChat: () => void;
|
|
11
|
+
render(): TemplateResult;
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import { Ref } from "lit/directives/ref.js";
|
|
3
|
+
import { Launcher } from "./launcher/Launcher";
|
|
4
|
+
import "./Scheduler/tour-scheduler";
|
|
5
|
+
import "./MEChat.css";
|
|
6
|
+
import "./actions/minimize-expand-button";
|
|
7
|
+
import "./launcher/mobile-launcher";
|
|
8
|
+
import "./pubnub-chat";
|
|
9
|
+
import "./simple-launcher/simple-launcher";
|
|
10
|
+
export declare class UtilitiesChat extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
private orgSlug;
|
|
13
|
+
private right;
|
|
14
|
+
private bottom;
|
|
15
|
+
private top;
|
|
16
|
+
private left;
|
|
17
|
+
private launcher;
|
|
18
|
+
private currentLeadSource;
|
|
19
|
+
private displayPubnubChat;
|
|
20
|
+
private myPubnub;
|
|
21
|
+
private requiresConsent;
|
|
22
|
+
private privacyPolicyUrl;
|
|
23
|
+
private isLoading;
|
|
24
|
+
launcherRef: Ref<Launcher>;
|
|
25
|
+
firstUpdated: () => Promise<void>;
|
|
26
|
+
private initializeChatVariables;
|
|
27
|
+
restartConversation(): Promise<void>;
|
|
28
|
+
/** Show the chat button on the screen if it was previously hidden. */
|
|
29
|
+
show(): void;
|
|
30
|
+
/** Hide the chat button from the screen (but don't remove from the DOM). */
|
|
31
|
+
hide(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
private attachOnClickToLauncher;
|
|
34
|
+
render(): TemplateResult;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface HTMLElementTagNameMap {
|
|
38
|
+
"utilities-chat": UtilitiesChat;
|
|
39
|
+
}
|
|
40
|
+
interface Window {
|
|
41
|
+
RCTPCampaign?: {
|
|
42
|
+
CampaignDetails: {
|
|
43
|
+
Source: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const utiltiesChatStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Pass in the year and the 0-indexed number of the month. E.g., for January 2022,
|
|
2
|
+
* `getDaysInMonth(2022, 0)`.
|
|
3
|
+
*/
|
|
4
|
+
export declare const getDaysInMonth: (year: number, month: number) => number;
|
|
5
|
+
/** Pass in the year and the 0-indexed number of the month. E.g., for January 2022,
|
|
6
|
+
* `getDaysInMonth(2022, 0)`. Returns the 0-indexed day of the week of the first
|
|
7
|
+
* day of the month, e.g. `0` for Sunday.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getMonthStartDay: (year: number, month: number) => number;
|
|
10
|
+
/** Pass in the year and the 0-indexed number of the month. E.g., for January 2022,
|
|
11
|
+
* `getDaysInMonth(2022, 0)`. Returns the 0-indexed day of the week of the last day
|
|
12
|
+
* of the month, e.g. `0` for Sunday.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getMonthEndDay: (year: number, month: number) => number;
|
|
15
|
+
/** Takes a 0-indexed month and returns the previous month.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* getPreviousMonth(5) -> 4 // June -> May
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* getPreviousMonth(0) -> 11 // January -> December
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare const getPreviousMonth: (month: number) => number;
|
|
25
|
+
/** Pass in the year and the 0-indexed number of the month. E.g., for January 2022,
|
|
26
|
+
* `getDaysInMonth(2022, 0)`. Returns the 0-indexed day of the week, e.g. `0` for Sunday.
|
|
27
|
+
*/
|
|
28
|
+
export declare const getDaysInPreviousMonth: (year: number, month: number) => number;
|
|
29
|
+
export declare const dayNames: string[];
|
|
30
|
+
export declare const monthNames: string[];
|
|
31
|
+
export declare type Month = "January" | "February" | "March" | "April" | "May" | "June" | "July" | "August" | "September" | "October" | "November" | "December";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
RCTPCampaign?: {
|
|
4
|
+
CampaignDetails: {
|
|
5
|
+
Source: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface CampaignSources {
|
|
11
|
+
entrataCampaignSource: string | null;
|
|
12
|
+
yardiCampaignSource: string | null;
|
|
13
|
+
realpageCampaignSource: string | null;
|
|
14
|
+
utmCampaignSource: string | null;
|
|
15
|
+
bozzutoAdSource: string | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A connection to the MeetElise API to send analytics events
|
|
19
|
+
*/
|
|
20
|
+
export default class Analytics {
|
|
21
|
+
private org;
|
|
22
|
+
private building;
|
|
23
|
+
private featureFlags?;
|
|
24
|
+
chatId: string;
|
|
25
|
+
private incomingProcessedLeadSource;
|
|
26
|
+
constructor(org: string, building: string, chatId: string, incomingProcessedLeadSource: string | null);
|
|
27
|
+
/**
|
|
28
|
+
* Store feature flag value(s) on the Analytics object to be sent with future pings. If `featureFlags` object is already present, the argument is merged into it.
|
|
29
|
+
*/
|
|
30
|
+
setFeatureFlags(featureFlags: Record<string, boolean>): void;
|
|
31
|
+
/**
|
|
32
|
+
* Send an event. Takes one argument, the event type name.
|
|
33
|
+
*/
|
|
34
|
+
ping(eventType: string): void;
|
|
35
|
+
}
|
|
36
|
+
export declare const getCampaignSources: () => CampaignSources;
|
|
37
|
+
export declare enum LogType {
|
|
38
|
+
error = "error",
|
|
39
|
+
info = "info",
|
|
40
|
+
warn = "warn"
|
|
41
|
+
}
|
|
42
|
+
export declare const sendLoggingEvent: ({ logType, buildingSlug, orgSlug, logTitle, logData, }: {
|
|
43
|
+
logType?: LogType | undefined;
|
|
44
|
+
buildingSlug?: string | undefined;
|
|
45
|
+
orgSlug?: string | undefined;
|
|
46
|
+
logTitle: string;
|
|
47
|
+
logData: Record<string, unknown> | null;
|
|
48
|
+
}) => Promise<void>;
|
|
49
|
+
interface SignalLoggerProps {
|
|
50
|
+
org_slug: string;
|
|
51
|
+
building_slug: string;
|
|
52
|
+
chat_id?: string | null;
|
|
53
|
+
is_pixel_on_site?: boolean | null;
|
|
54
|
+
is_any_webchat_showing?: boolean | null;
|
|
55
|
+
is_form_override_success?: boolean | null;
|
|
56
|
+
is_dni_insert_override_success?: boolean | null;
|
|
57
|
+
is_application_link_replacement_success?: boolean | null;
|
|
58
|
+
extra_data?: Record<string, unknown> | null;
|
|
59
|
+
}
|
|
60
|
+
export declare const logSignal: ({ params, sampleRate, }: {
|
|
61
|
+
params: SignalLoggerProps;
|
|
62
|
+
sampleRate: number;
|
|
63
|
+
}) => Promise<void>;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateResult } from "lit";
|
|
2
|
+
export declare const CURRENT_CONSENT_ID = "currentConsentId";
|
|
3
|
+
declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, }: {
|
|
4
|
+
buildingName: string;
|
|
5
|
+
phoneNumberInput?: string | undefined;
|
|
6
|
+
emailInput?: string | undefined;
|
|
7
|
+
orgLegalName: string;
|
|
8
|
+
orgSlug: string;
|
|
9
|
+
}) => TemplateResult;
|
|
10
|
+
export declare const getConsentPreChatDisclaimer: (orgSlug: string | null, privacyPolicyUrl: string, consentKey: string, changeConsent: (hasConsent: boolean) => void) => TemplateResult;
|
|
11
|
+
export declare const inChatThreadDisclaimer: ({ orgSlug, buildingState, type, }: {
|
|
12
|
+
orgSlug: string;
|
|
13
|
+
buildingState: string | null;
|
|
14
|
+
type: "healthcare" | "utilities" | "leasing";
|
|
15
|
+
}) => TemplateResult;
|
|
16
|
+
export default formDisclaimer;
|