@meetelise/chat 1.34.7 → 1.35.1
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 +9 -0
- package/dist/src/WebComponent/FeeCalculator/model/rentable-item.d.ts +9 -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 +41 -41
- package/src/MyPubnub.ts +792 -0
- package/src/WebComponent/FeeCalculator/components/addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector-styles.ts +35 -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 +82 -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 +124 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.ts +142 -0
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts +243 -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 +151 -0
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +248 -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 +10 -0
- package/src/WebComponent/FeeCalculator/model/rentable-item.ts +10 -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 +22 -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 +56 -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
package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { LitElement, html, TemplateResult } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
3
|
+
import { ALL_LAYOUTS_OPTION } from "../../constants";
|
|
4
|
+
import feeCalculatorLayoutStyles from "./fee-calculator-layout-styles";
|
|
5
|
+
import { LayoutOption } from "../../../../fetchBuildingWebchatView";
|
|
6
|
+
import { DesiredAddon, DesiredRentableItem, FeeEstimate } from "../../model";
|
|
7
|
+
import { CalculateQuoteResponse } from "../../../../services/fees/calculateQuote";
|
|
8
|
+
import { Unit } from "../../../../services/fees/fetchBuildingUnits";
|
|
9
|
+
import {
|
|
10
|
+
BuildingFeeView,
|
|
11
|
+
BuildingFeeFrequency,
|
|
12
|
+
RentableItemSummary,
|
|
13
|
+
} from "../../model";
|
|
14
|
+
|
|
15
|
+
import "../floor-plan-selector/floor-plan-selector";
|
|
16
|
+
import "../fee-card/fee-card";
|
|
17
|
+
import "../addons/addon-item-qty-selector/addon-item-qty-selector";
|
|
18
|
+
import "../addons/rentable-item-qty-selector/rentable-item-qty-selector";
|
|
19
|
+
import "../addons/addon-item-matrix-qty-selector/addon-item-matrix-qty-selector";
|
|
20
|
+
import "../../../loaders/skeleton-loader";
|
|
21
|
+
import "../../../loaders/mega-loader";
|
|
22
|
+
|
|
23
|
+
@customElement("fee-calculator-layout")
|
|
24
|
+
export class FeeCalculatorLayout extends LitElement {
|
|
25
|
+
static styles = feeCalculatorLayoutStyles;
|
|
26
|
+
|
|
27
|
+
@property({ type: String })
|
|
28
|
+
buildingSlug = "";
|
|
29
|
+
|
|
30
|
+
@property({ type: Boolean })
|
|
31
|
+
isLoading = false;
|
|
32
|
+
|
|
33
|
+
@property({ type: Object })
|
|
34
|
+
selectedUnit: Unit | null = null;
|
|
35
|
+
|
|
36
|
+
@property({ type: Object })
|
|
37
|
+
quote: CalculateQuoteResponse | null = null;
|
|
38
|
+
|
|
39
|
+
@property({ type: Array })
|
|
40
|
+
layoutOptions: LayoutOption[] = [];
|
|
41
|
+
|
|
42
|
+
@property({ type: Array })
|
|
43
|
+
selectedLayoutIds: number[] = [ALL_LAYOUTS_OPTION];
|
|
44
|
+
|
|
45
|
+
@property({ type: Object })
|
|
46
|
+
groupedFees: Record<BuildingFeeFrequency, BuildingFeeView[]> = {
|
|
47
|
+
[BuildingFeeFrequency.OneTime]: [],
|
|
48
|
+
[BuildingFeeFrequency.Monthly]: [],
|
|
49
|
+
[BuildingFeeFrequency.Quarterly]: [],
|
|
50
|
+
[BuildingFeeFrequency.Annually]: [],
|
|
51
|
+
[BuildingFeeFrequency.PerOccurrence]: [],
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
@property({ type: Array })
|
|
55
|
+
rentableItems: RentableItemSummary[] = [];
|
|
56
|
+
|
|
57
|
+
@property()
|
|
58
|
+
onSelectLayout: ((layoutIds: number[]) => void) | null = null;
|
|
59
|
+
|
|
60
|
+
@property()
|
|
61
|
+
onUnitSelect: ((unit: Unit) => void) | null = null;
|
|
62
|
+
|
|
63
|
+
@property()
|
|
64
|
+
onMoveInDateChange: ((moveInDate: Date) => void) | null = null;
|
|
65
|
+
|
|
66
|
+
@property()
|
|
67
|
+
onLeaseTermChange: ((leaseTerm: number) => void) | null = null;
|
|
68
|
+
|
|
69
|
+
@property()
|
|
70
|
+
onAddonSelect: ((addon: DesiredAddon) => void) | null = null;
|
|
71
|
+
|
|
72
|
+
@property()
|
|
73
|
+
onRentableItemSelect: ((rentableItem: DesiredRentableItem) => void) | null =
|
|
74
|
+
null;
|
|
75
|
+
|
|
76
|
+
get standardFees(): Record<BuildingFeeFrequency, BuildingFeeView[]> {
|
|
77
|
+
const result: Record<BuildingFeeFrequency, BuildingFeeView[]> =
|
|
78
|
+
{} as Record<BuildingFeeFrequency, BuildingFeeView[]>;
|
|
79
|
+
|
|
80
|
+
Object.entries(this.groupedFees).forEach(([frequency, fees]) => {
|
|
81
|
+
result[frequency as BuildingFeeFrequency] = fees.filter(
|
|
82
|
+
(fee) => !fee.isOptional
|
|
83
|
+
);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A "rentable item" is simply a fee which has inventory attached to it.
|
|
91
|
+
*/
|
|
92
|
+
get addOns(): (BuildingFeeView | RentableItemSummary)[] {
|
|
93
|
+
const addons = Object.values(this.groupedFees)
|
|
94
|
+
.flat()
|
|
95
|
+
.filter((fee) => fee.isOptional);
|
|
96
|
+
|
|
97
|
+
return [...addons, ...this.rentableItems];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
renderRecurrenceFeeSection(
|
|
101
|
+
title: string,
|
|
102
|
+
fees: FeeEstimate[]
|
|
103
|
+
): TemplateResult | null {
|
|
104
|
+
if (!fees?.length) return null;
|
|
105
|
+
|
|
106
|
+
return html` <fee-card .fees=${fees} title=${title}></fee-card> `;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
renderFeeSections(): TemplateResult[] {
|
|
110
|
+
const sections: TemplateResult[] = [];
|
|
111
|
+
|
|
112
|
+
const frequencyOrder = [
|
|
113
|
+
{ freq: BuildingFeeFrequency.Annually, title: "Yearly Charges" },
|
|
114
|
+
{ freq: BuildingFeeFrequency.Monthly, title: "Monthly Charges" },
|
|
115
|
+
{ freq: BuildingFeeFrequency.Quarterly, title: "Quarterly Charges" },
|
|
116
|
+
{ freq: BuildingFeeFrequency.OneTime, title: "Prior to Move-In" },
|
|
117
|
+
];
|
|
118
|
+
|
|
119
|
+
const unitFees =
|
|
120
|
+
this.quote?.units.find((unit) => unit.unitId === this.selectedUnit?.id)
|
|
121
|
+
?.fees ?? [];
|
|
122
|
+
|
|
123
|
+
const applicableFees = unitFees.filter((fee) => fee.applicable);
|
|
124
|
+
|
|
125
|
+
for (const { freq, title } of frequencyOrder) {
|
|
126
|
+
if (!applicableFees.length) continue;
|
|
127
|
+
|
|
128
|
+
const fees = applicableFees.filter((fee) => fee.frequency === freq);
|
|
129
|
+
const section = this.renderRecurrenceFeeSection(title, fees);
|
|
130
|
+
if (section) sections.push(section);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return sections;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
renderFeesContent(): TemplateResult {
|
|
137
|
+
if (!this.selectedUnit) {
|
|
138
|
+
return html`
|
|
139
|
+
<div class="fees-container empty-state">
|
|
140
|
+
<p>Select a unit to view estimated costs</p>
|
|
141
|
+
</div>
|
|
142
|
+
`;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return html`
|
|
146
|
+
<div class="fees-container">
|
|
147
|
+
${this.isLoading
|
|
148
|
+
? html`
|
|
149
|
+
<div class="loading-container">
|
|
150
|
+
<skeleton-loader
|
|
151
|
+
.cards=${3}
|
|
152
|
+
.rowsPerCard=${[3, 2, 1]}
|
|
153
|
+
></skeleton-loader>
|
|
154
|
+
</div>
|
|
155
|
+
`
|
|
156
|
+
: this.renderFeeSections()}
|
|
157
|
+
</div>
|
|
158
|
+
`;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
renderAddOns(): TemplateResult | null {
|
|
162
|
+
if (!this.isLoading && !this.addOns.length) return null;
|
|
163
|
+
|
|
164
|
+
const initialLoad = this.isLoading && !this.addOns.length;
|
|
165
|
+
|
|
166
|
+
return html`
|
|
167
|
+
<div class="sidepanel-section">
|
|
168
|
+
<h5 class="sidepanel-section-title">Add-Ons</h5>
|
|
169
|
+
${this.renderAddOnsContent(initialLoad)}
|
|
170
|
+
</div>
|
|
171
|
+
`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
private renderAddOnsContent(initialLoad: boolean): TemplateResult {
|
|
175
|
+
if (initialLoad) {
|
|
176
|
+
return html`
|
|
177
|
+
<div class="sidepanel-loading-container">
|
|
178
|
+
<mega-loader size="32"></mega-loader>
|
|
179
|
+
</div>
|
|
180
|
+
`;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return html`
|
|
184
|
+
<div class="sidepanel-addons-container">
|
|
185
|
+
${this.addOns.map((addon) => {
|
|
186
|
+
if (addon instanceof BuildingFeeView) {
|
|
187
|
+
return html`
|
|
188
|
+
${addon.hasMatrix
|
|
189
|
+
? html`
|
|
190
|
+
<addon-item-matrix-qty-selector
|
|
191
|
+
.feeItem=${addon}
|
|
192
|
+
.onQuantityChange=${this.onAddonSelect}
|
|
193
|
+
></addon-item-matrix-qty-selector>
|
|
194
|
+
`
|
|
195
|
+
: html`
|
|
196
|
+
<addon-item-qty-selector
|
|
197
|
+
.feeItem=${addon}
|
|
198
|
+
.onQuantityChange=${this.onAddonSelect}
|
|
199
|
+
></addon-item-qty-selector>
|
|
200
|
+
`}
|
|
201
|
+
`;
|
|
202
|
+
} else {
|
|
203
|
+
return html`
|
|
204
|
+
<rentable-item-qty-selector
|
|
205
|
+
.rentableItem=${addon}
|
|
206
|
+
.onSelect=${this.onRentableItemSelect}
|
|
207
|
+
></rentable-item-qty-selector>
|
|
208
|
+
`;
|
|
209
|
+
}
|
|
210
|
+
})}
|
|
211
|
+
</div>
|
|
212
|
+
`;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
render(): TemplateResult {
|
|
216
|
+
return html`
|
|
217
|
+
<div class="fee-calculator-layout">
|
|
218
|
+
<div class="sidepanel">
|
|
219
|
+
<div class="sidepanel-section">
|
|
220
|
+
<floor-plan-selector
|
|
221
|
+
.layoutOptions=${this.layoutOptions}
|
|
222
|
+
.selectedLayoutIds=${this.selectedLayoutIds}
|
|
223
|
+
.onSelectLayout=${this.onSelectLayout}
|
|
224
|
+
.onUnitSelect=${this.onUnitSelect}
|
|
225
|
+
.onMoveInDateChange=${this.onMoveInDateChange}
|
|
226
|
+
.onLeaseTermChange=${this.onLeaseTermChange}
|
|
227
|
+
.buildingSlug=${this.buildingSlug}
|
|
228
|
+
></floor-plan-selector>
|
|
229
|
+
</div>
|
|
230
|
+
${this.renderAddOns()}
|
|
231
|
+
</div>
|
|
232
|
+
|
|
233
|
+
${this.renderFeesContent()}
|
|
234
|
+
</div>
|
|
235
|
+
`;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare global {
|
|
240
|
+
interface HTMLElementTagNameMap {
|
|
241
|
+
"fee-calculator-layout": FeeCalculatorLayout;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
const collapsibleFeeSectionStyles = css`
|
|
4
|
+
.fee-card-section-container {
|
|
5
|
+
margin: 0 12px;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
8
|
+
background-color: white;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.fee-card-section-header {
|
|
13
|
+
margin: 20px 0;
|
|
14
|
+
padding: 0 12px;
|
|
15
|
+
border-bottom: 1px solid #e0e0e0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fee-item-container {
|
|
19
|
+
border-bottom: 1px solid #e0e0e0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.fee-item-container:last-child {
|
|
23
|
+
border-bottom: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.fee-card-list {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.section-title {
|
|
33
|
+
font-size: 1.2rem;
|
|
34
|
+
font-weight: normal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.section-title-addons {
|
|
38
|
+
margin-top: 8px;
|
|
39
|
+
margin-left: 20px;
|
|
40
|
+
font-size: 0.8rem;
|
|
41
|
+
color: #868e96;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.total-amount,
|
|
45
|
+
.total-label {
|
|
46
|
+
font-size: 1rem;
|
|
47
|
+
font-weight: normal;
|
|
48
|
+
margin: 12px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.footer-container {
|
|
52
|
+
background-color: #f8f9fa;
|
|
53
|
+
margin: 20px;
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.footer {
|
|
58
|
+
font-size: 0.8rem;
|
|
59
|
+
display: flex;
|
|
60
|
+
margin: 12px;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
export default collapsibleFeeSectionStyles;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { LitElement, html, TemplateResult } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
+
import { formatCurrency } from "../../../../utils";
|
|
4
|
+
import collapsibleFeeSectionStyles from "./fee-card-styles";
|
|
5
|
+
import { FeeEstimate } from "../../model";
|
|
6
|
+
|
|
7
|
+
import "../fee-item/fee-item";
|
|
8
|
+
|
|
9
|
+
@customElement("fee-card")
|
|
10
|
+
export class FeeCard extends LitElement {
|
|
11
|
+
static styles = collapsibleFeeSectionStyles;
|
|
12
|
+
|
|
13
|
+
@property({ type: String })
|
|
14
|
+
title = "Fees";
|
|
15
|
+
|
|
16
|
+
@property({ type: Array })
|
|
17
|
+
fees: FeeEstimate[] = [];
|
|
18
|
+
|
|
19
|
+
@property({ type: Number })
|
|
20
|
+
rent = 0;
|
|
21
|
+
|
|
22
|
+
@property({ type: Number })
|
|
23
|
+
quoteTotal = 0;
|
|
24
|
+
|
|
25
|
+
@state()
|
|
26
|
+
private buildingFeesToQuantity: Record<number, number> = {};
|
|
27
|
+
|
|
28
|
+
get totalAmount(): string {
|
|
29
|
+
if (this.quoteTotal) return formatCurrency(this.quoteTotal);
|
|
30
|
+
|
|
31
|
+
const total = this.fees.reduce((acc, fee) => acc + fee.amount, 0);
|
|
32
|
+
return formatCurrency(total);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get standardFees(): FeeEstimate[] {
|
|
36
|
+
return this.fees.filter((fee) => !fee.isAddOn);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get addons(): FeeEstimate[] {
|
|
40
|
+
return this.fees.filter((fee) => fee.isAddOn);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
handleQuantityChange = (feeId: number, quantity: number): void => {
|
|
44
|
+
this.buildingFeesToQuantity[feeId] = quantity;
|
|
45
|
+
this.requestUpdate();
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
render(): TemplateResult {
|
|
49
|
+
return html`
|
|
50
|
+
<div class="fee-card-section-container">
|
|
51
|
+
<div class="fee-card-section-header">
|
|
52
|
+
<h1 class="section-title">${this.title}</h1>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="fee-card-list">
|
|
56
|
+
${this.standardFees.map(
|
|
57
|
+
(item) => html`<div class="fee-item-container">
|
|
58
|
+
<fee-item .feeItem=${item}></fee-item>
|
|
59
|
+
</div>`
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
${this.addons.length > 0
|
|
64
|
+
? html`
|
|
65
|
+
<div class="fee-card-list">
|
|
66
|
+
<div class="section-title-addons">Add-Ons</div>
|
|
67
|
+
${this.addons.map(
|
|
68
|
+
(item) => html`<div class="fee-item-container">
|
|
69
|
+
<fee-item .feeItem=${item}></fee-item>
|
|
70
|
+
</div>`
|
|
71
|
+
)}
|
|
72
|
+
</div>
|
|
73
|
+
`
|
|
74
|
+
: ""}
|
|
75
|
+
|
|
76
|
+
<div class="footer-container">
|
|
77
|
+
<div class="footer">
|
|
78
|
+
<h1 class="total-label">Estimated Total</h1>
|
|
79
|
+
<h1 class="total-amount">${this.totalAmount}</h1>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare global {
|
|
88
|
+
interface HTMLElementTagNameMap {
|
|
89
|
+
"fee-card": FeeCard;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
const feeItemStyles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fee-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
margin: 8px 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fee-info {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
flex: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.required-label {
|
|
23
|
+
color: #868e96;
|
|
24
|
+
font-size: 0.8rem;
|
|
25
|
+
margin-bottom: 8px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fee-name {
|
|
29
|
+
font-size: 1rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fee-description {
|
|
33
|
+
color: #868e96;
|
|
34
|
+
font-size: 0.8rem;
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fee-amount {
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
align-self: center;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
export default feeItemStyles;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement, html, TemplateResult } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
3
|
+
import { FeeEstimate } from "../../model";
|
|
4
|
+
|
|
5
|
+
import "../addons/addon-item-qty-selector/addon-item-qty-selector";
|
|
6
|
+
|
|
7
|
+
import feeItemStyles from "./fee-item-styles";
|
|
8
|
+
|
|
9
|
+
@customElement("fee-item")
|
|
10
|
+
export class FeeItemComponent extends LitElement {
|
|
11
|
+
static styles = feeItemStyles;
|
|
12
|
+
|
|
13
|
+
@property({ type: Object })
|
|
14
|
+
feeItem: FeeEstimate | null = null;
|
|
15
|
+
|
|
16
|
+
render(): TemplateResult {
|
|
17
|
+
if (!this.feeItem) return html``;
|
|
18
|
+
|
|
19
|
+
return html`
|
|
20
|
+
<div class="fee-item">
|
|
21
|
+
<div class="fee-info">
|
|
22
|
+
${this.feeItem.required
|
|
23
|
+
? html`<div class="required-label">Required</div>`
|
|
24
|
+
: ""}
|
|
25
|
+
<div class="fee-name">${this.feeItem.displayName}</div>
|
|
26
|
+
<div class="fee-description">${this.feeItem.description}</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="fee-amount">${this.feeItem.displayAmount}</div>
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
"fee-item": FeeItemComponent;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
|
|
3
|
+
const floorPlanSelectorStyles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
margin-bottom: 16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.floor-plan-selector {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.floor-plan-selector-label {
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.floor-plan-selector-badges {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
overflow-x: scroll;
|
|
24
|
+
max-width: 400px;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
margin-bottom: 12px;
|
|
27
|
+
scrollbar-width: thin;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.floor-plan-badge {
|
|
31
|
+
padding: 6px 12px;
|
|
32
|
+
border-radius: 16px;
|
|
33
|
+
min-width: 40px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
font-size: 0.9rem;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
background-color: #f0f0f0;
|
|
38
|
+
border: 1px solid #ddd;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.floor-plan-badge:hover {
|
|
45
|
+
background-color: #e6e6e6;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.floor-plan-badge.selected {
|
|
49
|
+
background-color: var(--primary-color, #646987);
|
|
50
|
+
border-color: var(--primary-color, #646987);
|
|
51
|
+
color: white;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.advanced-section {
|
|
55
|
+
max-height: 0;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.advanced-section.open {
|
|
60
|
+
max-height: 800px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.date-fields {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
gap: 16px;
|
|
67
|
+
margin-bottom: 16px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.date-field {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
flex: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.date-field label {
|
|
78
|
+
font-size: 0.9rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.date-field input {
|
|
82
|
+
padding: 8px;
|
|
83
|
+
border-radius: 4px;
|
|
84
|
+
border: 1px solid #ddd;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.date-field-label {
|
|
88
|
+
font-size: #3a3a3b;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.image-carousel {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
max-height: 50%;
|
|
95
|
+
gap: 16px;
|
|
96
|
+
padding: 12px 0;
|
|
97
|
+
scroll-behavior: smooth;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.unit-selection {
|
|
101
|
+
margin-top: 16px;
|
|
102
|
+
max-height: 16rem;
|
|
103
|
+
overflow-y: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.unit-label {
|
|
107
|
+
font-size: 1rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.loading-container,
|
|
111
|
+
.no-floorplans-container {
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (max-width: 840px) {
|
|
118
|
+
.date-fields {
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
gap: 12px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (max-width: 768px) {
|
|
125
|
+
.date-fields {
|
|
126
|
+
gap: 10px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.image-carousel {
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
max-height: none;
|
|
132
|
+
overflow-x: auto;
|
|
133
|
+
width: 100%;
|
|
134
|
+
padding: 12px 0;
|
|
135
|
+
-webkit-overflow-scrolling: touch;
|
|
136
|
+
scrollbar-width: none; /* Firefox */
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.image-carousel::-webkit-scrollbar {
|
|
140
|
+
display: none; /* Chrome, Safari, Opera */
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.unit-selection {
|
|
144
|
+
max-height: none;
|
|
145
|
+
overflow-y: visible;
|
|
146
|
+
overflow-x: auto;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
export default floorPlanSelectorStyles;
|