@meetelise/chat 1.29.0 → 1.30.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.
Files changed (228) hide show
  1. package/dist/src/MyPubnub.d.ts +116 -0
  2. package/dist/src/WebComponent/FeeCalculator/components/addon-item/addon-item-styles.d.ts +2 -0
  3. package/dist/src/WebComponent/FeeCalculator/components/addon-item/addon-item.d.ts +22 -0
  4. package/dist/src/WebComponent/FeeCalculator/components/addon-item/index.d.ts +1 -0
  5. package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.d.ts +2 -0
  6. package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.d.ts +34 -0
  7. package/dist/src/WebComponent/FeeCalculator/components/fee-card/fee-card-styles.d.ts +2 -0
  8. package/dist/src/WebComponent/FeeCalculator/components/fee-card/fee-card.d.ts +21 -0
  9. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +2 -0
  10. package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +13 -0
  11. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +2 -0
  12. package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +33 -0
  13. package/dist/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card-styles.d.ts +2 -0
  14. package/dist/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card.d.ts +18 -0
  15. package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +5 -0
  16. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +2 -0
  17. package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +13 -0
  18. package/dist/src/WebComponent/FeeCalculator/constants.d.ts +2 -0
  19. package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +1 -0
  20. package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +59 -0
  21. package/dist/src/WebComponent/FeeCalculator/index.d.ts +2 -0
  22. package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +80 -0
  23. package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +23 -0
  24. package/dist/src/WebComponent/LeadSourceClient.d.ts +46 -0
  25. package/dist/src/WebComponent/OfficeHours.d.ts +21 -0
  26. package/dist/src/WebComponent/Scheduler/date-picker.d.ts +28 -0
  27. package/dist/src/WebComponent/Scheduler/time-picker.d.ts +14 -0
  28. package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +100 -0
  29. package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +13 -0
  30. package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +1 -0
  31. package/dist/src/WebComponent/actions/InputStyles.d.ts +1 -0
  32. package/dist/src/WebComponent/actions/action-confirm-button.d.ts +13 -0
  33. package/dist/src/WebComponent/actions/call-us-window.d.ts +37 -0
  34. package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +8 -0
  35. package/dist/src/WebComponent/actions/details-window.d.ts +14 -0
  36. package/dist/src/WebComponent/actions/email-us-window.d.ts +46 -0
  37. package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +17 -0
  38. package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +8 -0
  39. package/dist/src/WebComponent/chat-additional-actions.d.ts +28 -0
  40. package/dist/src/WebComponent/health-chat.d.ts +47 -0
  41. package/dist/src/WebComponent/healthchat-styles.d.ts +1 -0
  42. package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +2 -0
  43. package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +2 -0
  44. package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +2 -0
  45. package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +2 -0
  46. package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +2 -0
  47. package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +2 -0
  48. package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +2 -0
  49. package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +3 -0
  50. package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +2 -0
  51. package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +2 -0
  52. package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +2 -0
  53. package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +3 -0
  54. package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +2 -0
  55. package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +2 -0
  56. package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +2 -0
  57. package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +2 -0
  58. package/dist/src/WebComponent/index.d.ts +2 -0
  59. package/dist/src/WebComponent/launcher/Launcher.d.ts +98 -0
  60. package/dist/src/WebComponent/launcher/launcherStyles.d.ts +1 -0
  61. package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +27 -0
  62. package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +1 -0
  63. package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +1 -0
  64. package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +1 -0
  65. package/dist/src/WebComponent/leasing-chat-styles.d.ts +1 -0
  66. package/dist/src/WebComponent/me-chat.d.ts +91 -0
  67. package/dist/src/WebComponent/me-select.d.ts +24 -0
  68. package/dist/src/WebComponent/mega-loader.d.ts +7 -0
  69. package/dist/src/WebComponent/mini-loader.d.ts +5 -0
  70. package/dist/src/WebComponent/pubnub-chat-styles.d.ts +1 -0
  71. package/dist/src/WebComponent/pubnub-chat.d.ts +49 -0
  72. package/dist/src/WebComponent/pubnub-media.d.ts +14 -0
  73. package/dist/src/WebComponent/pubnub-message-styles.d.ts +1 -0
  74. package/dist/src/WebComponent/pubnub-message.d.ts +39 -0
  75. package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +1 -0
  76. package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +12 -0
  77. package/dist/src/WebComponent/utilities-chat.d.ts +47 -0
  78. package/dist/src/WebComponent/utilities-styles.d.ts +1 -0
  79. package/dist/src/WebComponent/utils.d.ts +31 -0
  80. package/dist/src/analytics.d.ts +64 -0
  81. package/dist/src/disclaimers.d.ts +8 -0
  82. package/dist/src/fetchBuildingABTestType.d.ts +8 -0
  83. package/dist/src/fetchBuildingInfo.d.ts +57 -0
  84. package/dist/src/fetchBuildingWebchatView.d.ts +123 -0
  85. package/dist/src/fetchFeatureFlag.d.ts +14 -0
  86. package/dist/src/fetchLeadSources.d.ts +4 -0
  87. package/dist/src/fetchPhoneNumberFromSource.d.ts +6 -0
  88. package/dist/src/getAvailabilities.d.ts +45 -0
  89. package/dist/src/getBuildingPhoneNumber.d.ts +1 -0
  90. package/dist/src/getShouldAllowScheduling.d.ts +1 -0
  91. package/dist/src/getShouldShowWebchat.d.ts +3 -0
  92. package/dist/src/getTimezoneString.d.ts +1 -0
  93. package/dist/src/globals.d.ts +1 -0
  94. package/dist/src/gtm.d.ts +6 -0
  95. package/dist/src/handleChatId.d.ts +11 -0
  96. package/dist/src/insertDNIIntoWebsite.d.ts +5 -0
  97. package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +4 -0
  98. package/dist/src/main/MEChat.d.ts +74 -0
  99. package/dist/src/main/utils.d.ts +2 -0
  100. package/dist/src/postLeadSources.d.ts +3 -0
  101. package/dist/src/rentgrata.d.ts +4 -0
  102. package/dist/src/replaceSelectButtonsWithNewLink.d.ts +5 -0
  103. package/dist/src/services/fees/calculateQuote.d.ts +52 -0
  104. package/dist/src/services/fees/fetchBuildingFees.d.ts +24 -0
  105. package/dist/src/services/fees/fetchBuildingFloorplans.d.ts +21 -0
  106. package/dist/src/services/fees/utils.d.ts +1 -0
  107. package/dist/src/svgIcons.d.ts +5 -0
  108. package/dist/src/themes.d.ts +5 -0
  109. package/dist/src/types/rest-sdk.types.d.ts +11 -0
  110. package/dist/src/types/webchat-no-show-reason.d.ts +1 -0
  111. package/dist/src/utils.d.ts +13 -0
  112. package/package.json +1 -1
  113. package/public/dist/index.js +384 -179
  114. package/src/MyPubnub.ts +792 -0
  115. package/src/WebComponent/FeeCalculator/components/addon-item/addon-item-styles.ts +79 -0
  116. package/src/WebComponent/FeeCalculator/components/addon-item/addon-item.ts +121 -0
  117. package/src/WebComponent/FeeCalculator/components/addon-item/index.ts +1 -0
  118. package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout-styles.ts +127 -0
  119. package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts +191 -0
  120. package/src/WebComponent/FeeCalculator/components/fee-card/fee-card-styles.ts +65 -0
  121. package/src/WebComponent/FeeCalculator/components/fee-card/fee-card.ts +91 -0
  122. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +44 -0
  123. package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +38 -0
  124. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +144 -0
  125. package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +241 -0
  126. package/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card-styles.ts +74 -0
  127. package/src/WebComponent/FeeCalculator/components/floorplan-image-card/floorplan-image-card.ts +72 -0
  128. package/src/WebComponent/FeeCalculator/components/index.ts +5 -0
  129. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +39 -0
  130. package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +39 -0
  131. package/src/WebComponent/FeeCalculator/constants.ts +3 -0
  132. package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +334 -0
  133. package/src/WebComponent/FeeCalculator/fee-calculator.ts +369 -0
  134. package/src/WebComponent/FeeCalculator/index.ts +4 -0
  135. package/src/WebComponent/FeeCalculator/model/building-fee.ts +120 -0
  136. package/src/WebComponent/FeeCalculator/model/transaction-category.ts +23 -0
  137. package/src/WebComponent/LeadSourceClient.ts +332 -0
  138. package/src/WebComponent/MEChat.css +5 -0
  139. package/src/WebComponent/OfficeHours.ts +73 -0
  140. package/src/WebComponent/Scheduler/date-picker.ts +405 -0
  141. package/src/WebComponent/Scheduler/time-picker.ts +190 -0
  142. package/src/WebComponent/Scheduler/tour-scheduler.ts +1373 -0
  143. package/src/WebComponent/Scheduler/tour-type-option.ts +112 -0
  144. package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +418 -0
  145. package/src/WebComponent/actions/InputStyles.ts +57 -0
  146. package/src/WebComponent/actions/action-confirm-button.ts +125 -0
  147. package/src/WebComponent/actions/call-us-window.ts +445 -0
  148. package/src/WebComponent/actions/collapse-expand-button.ts +65 -0
  149. package/src/WebComponent/actions/details-window.ts +150 -0
  150. package/src/WebComponent/actions/email-us-window.ts +555 -0
  151. package/src/WebComponent/actions/formatPhoneNumber.ts +72 -0
  152. package/src/WebComponent/actions/minimize-expand-button.ts +93 -0
  153. package/src/WebComponent/chat-additional-actions.ts +135 -0
  154. package/src/WebComponent/health-chat.ts +270 -0
  155. package/src/WebComponent/healthchat-styles.ts +119 -0
  156. package/src/WebComponent/icons/ApplyOutlineIcon.ts +22 -0
  157. package/src/WebComponent/icons/BookTourOutlineIcon.ts +13 -0
  158. package/src/WebComponent/icons/CalculatorOutlineIcon.ts +22 -0
  159. package/src/WebComponent/icons/ChatOutlineIcon.ts +10 -0
  160. package/src/WebComponent/icons/ChevronLeftIcon.ts +7 -0
  161. package/src/WebComponent/icons/ChevronRightIcon.ts +7 -0
  162. package/src/WebComponent/icons/ContactResidentIcon.ts +9 -0
  163. package/src/WebComponent/icons/DollarOutlineIcon.ts +18 -0
  164. package/src/WebComponent/icons/EmailOutlineIcon.ts +7 -0
  165. package/src/WebComponent/icons/HeyThereEmojiIcon.ts +12 -0
  166. package/src/WebComponent/icons/PhoneOutlineIcon.ts +7 -0
  167. package/src/WebComponent/icons/SendMessageIcon.ts +17 -0
  168. package/src/WebComponent/icons/TourSelfGuidedIcon.ts +17 -0
  169. package/src/WebComponent/icons/TourVirtuallyIcon.ts +17 -0
  170. package/src/WebComponent/icons/TourWithAgentIcon.ts +17 -0
  171. package/src/WebComponent/icons/XOutlineIcon.ts +8 -0
  172. package/src/WebComponent/index.ts +2 -0
  173. package/src/WebComponent/launcher/Launcher.ts +1282 -0
  174. package/src/WebComponent/launcher/launcherStyles.ts +500 -0
  175. package/src/WebComponent/launcher/mobile-launcher.ts +162 -0
  176. package/src/WebComponent/launcher/typeEmojiStyles.ts +161 -0
  177. package/src/WebComponent/launcher/typeMiniStyles.ts +60 -0
  178. package/src/WebComponent/launcher/typeMobileStyles.ts +50 -0
  179. package/src/WebComponent/leasing-chat-styles.ts +114 -0
  180. package/src/WebComponent/me-chat.ts +1262 -0
  181. package/src/WebComponent/me-select.ts +322 -0
  182. package/src/WebComponent/mega-loader.ts +36 -0
  183. package/src/WebComponent/mini-loader.ts +28 -0
  184. package/src/WebComponent/pubnub-chat-styles.ts +204 -0
  185. package/src/WebComponent/pubnub-chat.ts +928 -0
  186. package/src/WebComponent/pubnub-media.ts +208 -0
  187. package/src/WebComponent/pubnub-message-styles.ts +54 -0
  188. package/src/WebComponent/pubnub-message.ts +431 -0
  189. package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +34 -0
  190. package/src/WebComponent/simple-launcher/simple-launcher.ts +100 -0
  191. package/src/WebComponent/utilities-chat.ts +270 -0
  192. package/src/WebComponent/utilities-styles.ts +110 -0
  193. package/src/WebComponent/utils.ts +82 -0
  194. package/src/analytics.ts +217 -0
  195. package/src/assetUrls.ts +6 -0
  196. package/src/disclaimers.ts +58 -0
  197. package/src/fetchBuildingABTestType.ts +21 -0
  198. package/src/fetchBuildingInfo.ts +87 -0
  199. package/src/fetchBuildingWebchatView.ts +156 -0
  200. package/src/fetchFeatureFlag.ts +250 -0
  201. package/src/fetchLeadSources.ts +98 -0
  202. package/src/fetchPhoneNumberFromSource.ts +31 -0
  203. package/src/fetchWebchatPreferences.ts +54 -0
  204. package/src/getAvailabilities.ts +179 -0
  205. package/src/getBuildingPhoneNumber.ts +26 -0
  206. package/src/getShouldAllowScheduling.ts +16 -0
  207. package/src/getShouldShowWebchat.ts +114 -0
  208. package/src/getTimezoneString.ts +39 -0
  209. package/src/globals.ts +1 -0
  210. package/src/gtm.ts +17 -0
  211. package/src/handleChatId.ts +101 -0
  212. package/src/insertDNIIntoWebsite.ts +146 -0
  213. package/src/insertLeadSourceIntoSchedulerLinks.ts +71 -0
  214. package/src/main/MEChat.test.ts +110 -0
  215. package/src/main/MEChat.ts +404 -0
  216. package/src/main/utils.ts +70 -0
  217. package/src/postLeadSources.ts +44 -0
  218. package/src/rentgrata.ts +74 -0
  219. package/src/replaceSelectButtonsWithNewLink.ts +69 -0
  220. package/src/services/fees/calculateQuote.ts +135 -0
  221. package/src/services/fees/fetchBuildingFees.ts +63 -0
  222. package/src/services/fees/fetchBuildingFloorplans.ts +74 -0
  223. package/src/services/fees/utils.ts +4 -0
  224. package/src/svgIcons.ts +14 -0
  225. package/src/themes.ts +65 -0
  226. package/src/types/rest-sdk.types.ts +13 -0
  227. package/src/types/webchat-no-show-reason.ts +6 -0
  228. package/src/utils.ts +121 -0
@@ -0,0 +1,500 @@
1
+ import { css } from "lit";
2
+
3
+ export const launcherStyles = css`
4
+ * {
5
+ font-family: "Helvetica Neue", Arial;
6
+ font-size: 14px;
7
+
8
+ transition: all 0.2s ease-in-out; /* apply a smooth transition effect to all properties */
9
+ }
10
+ :host {
11
+ --glowBarHeight: 11.2px;
12
+ --enterAnimationDuration: 0.5s;
13
+ --desktopZIndex: 100000;
14
+ }
15
+
16
+ @keyframes slideInFromRight {
17
+ from {
18
+ transform: translateX(100%);
19
+ }
20
+ to {
21
+ transform: translateX(0);
22
+ }
23
+ }
24
+ .launcher {
25
+ font-family: "Helvetica Neue", Arial;
26
+ user-select: none;
27
+ position: fixed;
28
+ }
29
+ .launcher:not(.miniLauncher) {
30
+ display: flex;
31
+ justify-content: space-evenly;
32
+ align-items: center;
33
+ background-color: rgba(255, 255, 255, 0.8);
34
+ color: #202020;
35
+ backdrop-filter: blur(50px);
36
+ box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.25);
37
+ }
38
+ .launcher:not(.miniLauncher).launcher__mobile {
39
+ width: 100%;
40
+ bottom: 0px;
41
+ left: 0px;
42
+ padding: 5px;
43
+ }
44
+ .launcher:not(.miniLauncher).launcher__desktop {
45
+ width: 245px;
46
+ height: 112px;
47
+ padding-left: 10px;
48
+ }
49
+ .launcher.launcher__desktop {
50
+ right: 0px;
51
+ overflow: hidden;
52
+ border-radius: 10px 0px 0px 10px;
53
+ bottom: 40px;
54
+ z-index: 100000;
55
+ }
56
+ .launcher.launcher__desktop.firstMount {
57
+ animation: slideInFromRight var(--enterAnimationDuration);
58
+ }
59
+ .launcher .glowBar {
60
+ overflow: hidden;
61
+ background-position: center;
62
+ position: absolute;
63
+ top: 3px;
64
+ left: 3px;
65
+ height: 11.2px;
66
+ width: 100%;
67
+ object-fit: fill;
68
+ border-top-left-radius: 10px;
69
+ }
70
+
71
+ .launcher .glowBar + * {
72
+ margin-top: calc(var(--glowBarHeight) + 8px);
73
+ }
74
+ .launcher .content {
75
+ display: flex;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ gap: 10px;
79
+ margin-bottom: 6px;
80
+ }
81
+ .launcher .content .header {
82
+ display: flex;
83
+ align-items: center;
84
+ }
85
+ .launcher .content .header .headerText {
86
+ font-weight: 600;
87
+ font-size: 20px;
88
+ }
89
+ .launcher .content .subtitle {
90
+ font-size: 12px;
91
+ font-weight: 600;
92
+ }
93
+ .miniLauncher {
94
+ display: flex;
95
+ align-items: center;
96
+ background-color: #202020;
97
+ position: fixed;
98
+ }
99
+ .miniLauncher:hover {
100
+ background: radial-gradient(
101
+ 36.85% 65.32% at 50% 106.31%,
102
+ #03ecc4 0%,
103
+ rgba(131, 129, 142, 1) 100%
104
+ );
105
+ }
106
+ .miniLauncher.firstMount {
107
+ animation: slideInFromRight 0.5s;
108
+ }
109
+ .miniLauncher.launcher__desktop {
110
+ padding-right: 20px;
111
+ right: 0px;
112
+ overflow: hidden;
113
+ bottom: 40px;
114
+ z-index: var(--desktopZIndex);
115
+ }
116
+ .miniLauncher.launcher__mobile {
117
+ right: 10px;
118
+ bottom: 20px;
119
+ }
120
+
121
+ .launcher__primary-action-text {
122
+ font-family: "Helvetica Neue", Arial;
123
+ font-weight: 700;
124
+ font-size: 24px;
125
+ line-height: 22px;
126
+ cursor: pointer;
127
+ }
128
+
129
+ .launcher__primary-action:hover {
130
+ color: #350da6;
131
+ }
132
+
133
+ .launcher__primary-action {
134
+ transition: color 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98),
135
+ fill 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98);
136
+ cursor: pointer;
137
+ }
138
+
139
+ .launcher__primary-action:hover path {
140
+ fill: #350da6;
141
+ }
142
+
143
+ .launcher__primary-action:hover .launcher__ask-underline {
144
+ background: #350da6;
145
+ }
146
+
147
+ .launcher__primary-action svg {
148
+ height: 28px;
149
+ width: 28px;
150
+ transform: translateX(2px);
151
+ }
152
+
153
+ .launcher__ask-underline {
154
+ width: 47px;
155
+ height: 3px;
156
+ background: #1e1e1e;
157
+ transition: background 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98);
158
+ }
159
+
160
+ .launcher__filler-text {
161
+ font-size: 10px;
162
+ line-height: 22px;
163
+ color: #1e1e1e;
164
+ }
165
+
166
+ .launcher__call-to-action-option {
167
+ font-weight: 700;
168
+ font-size: 12px;
169
+ line-height: 22px;
170
+
171
+ color: #1e1e1e;
172
+ border-bottom: 2px solid #1e1e1e;
173
+ width: fit-content;
174
+ height: fit-content;
175
+ cursor: pointer;
176
+ transition: color 0.2s cubic-bezier(0.2, 0.19, 0.27, 0.98);
177
+ }
178
+
179
+ .launcher__call-to-action-option:hover {
180
+ color: #350da6;
181
+ border-bottom: 2px solid #350da6;
182
+ }
183
+
184
+ .launcher__call-to-actions-wrapper {
185
+ width: 100%;
186
+ display: flex;
187
+ }
188
+
189
+ .launcher__call-to-actions-wrapper
190
+ > .launcher__call-to-action-option:not(:last-child) {
191
+ margin-right: 15px;
192
+ }
193
+
194
+ .launcher__window-wrapper {
195
+ position: fixed;
196
+ right: 0;
197
+ bottom: 172px;
198
+ }
199
+
200
+ .launcher__mini-launcher-wrapper {
201
+ position: fixed;
202
+ right: 0px;
203
+ bottom: 110px;
204
+ z-index: 100000;
205
+ display: flex;
206
+ align-items: center;
207
+ width: fit-content;
208
+ }
209
+ .launcher__mobile-launcher-wrapper {
210
+ position: fixed;
211
+ right: 12px;
212
+ bottom: 0px;
213
+ z-index: 100000;
214
+ display: flex;
215
+ align-items: center;
216
+ }
217
+
218
+ .launcher__mini-option {
219
+ position: relative;
220
+ // This is so that the pseudo elements we created will be visible despite being beneath the element it is a pseudo element for
221
+ border: 4px solid transparent;
222
+ height: 48px;
223
+ width: 48px;
224
+ display: flex;
225
+ align-items: center;
226
+ justify-content: center;
227
+ border-radius: 50%;
228
+ background: rgba(240, 240, 240, 0.9);
229
+ background-clip: padding-box;
230
+ padding: 4px;
231
+ box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.25);
232
+ cursor: pointer;
233
+ }
234
+
235
+ .launcher__mini-option-wrapper {
236
+ margin-right: 12px;
237
+ }
238
+
239
+ .launcher__mini-option:not(:hover)::before {
240
+ position: absolute;
241
+ top: -4px;
242
+ bottom: -4px;
243
+ left: -4px;
244
+ right: -4px;
245
+ background: #ffffff;
246
+ content: "";
247
+ z-index: -1;
248
+ border-radius: 50%;
249
+ }
250
+
251
+ .launcher__secondary-option {
252
+ width: 30px;
253
+ height: 30px;
254
+ }
255
+
256
+ .launcher__mini-option-wrapper {
257
+ background-clip: padding-box;
258
+ }
259
+
260
+ .launcher__mini-option:hover {
261
+ border: none;
262
+ }
263
+
264
+ .launcher__mini-option:hover::before {
265
+ position: absolute;
266
+ top: -4px;
267
+ bottom: -4px;
268
+ left: -4px;
269
+ right: -4px;
270
+ background: linear-gradient(to right, #350da6, #8c58e5, #e66933);
271
+ background-size: cover;
272
+ content: "";
273
+ z-index: -1;
274
+ border-radius: 50%;
275
+ }
276
+
277
+ @media screen and (max-width: 768px) {
278
+ .launcher__mini-elevated {
279
+ bottom: 75px;
280
+ }
281
+ }
282
+
283
+ @media screen and (max-width: 767px) {
284
+ .launcher:not(.miniLauncher).launcher__desktop {
285
+ width: 100%;
286
+ }
287
+
288
+ .launcher.launcher__desktop {
289
+ bottom: 0px;
290
+ }
291
+
292
+ .launcher.launcher__desktop {
293
+ border-radius: 0px;
294
+ }
295
+
296
+ .launcher .glowBar {
297
+ top: 3px;
298
+ left: 0;
299
+ border-top-left-radius: 0px;
300
+ }
301
+
302
+ .launcher .content {
303
+ flex-direction: row;
304
+ padding-top: 15px;
305
+ padding-bottom: 15px;
306
+ }
307
+
308
+ .launcher__primary-action-text {
309
+ font-size: 18px;
310
+ flex-grow: 1;
311
+ }
312
+
313
+ .launcher__call-to-actions-wrapper {
314
+ width: fit-content;
315
+ }
316
+
317
+ .launcher__ask-underline {
318
+ width: 35px;
319
+ }
320
+
321
+ .launcher__window-wrapper {
322
+ left: 0;
323
+ bottom: 0;
324
+ }
325
+ }
326
+
327
+ .minimize-button {
328
+ position: absolute;
329
+ top: -24px;
330
+ right: 4px;
331
+
332
+ background: #ffffff;
333
+ border-radius: 4px;
334
+ border: none;
335
+
336
+ width: 18px;
337
+ height: 18px;
338
+
339
+ padding: 0;
340
+ cursor: pointer;
341
+ z-index: 1;
342
+ box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
343
+ }
344
+ .minimize-button:hover {
345
+ filter: brightness(0.9);
346
+ }
347
+
348
+ .chevron-down,
349
+ .chevron-up {
350
+ padding: 0;
351
+ display: flex;
352
+ align-items: center;
353
+ justify-content: center;
354
+ }
355
+
356
+ .chevron-down {
357
+ transform: rotate(90deg);
358
+ }
359
+ .chevron-up {
360
+ transform: rotate(-90deg);
361
+ }
362
+
363
+ .type-gradient__list {
364
+ width: 199px;
365
+ height: 262px;
366
+ left: 1218px;
367
+ top: 604px;
368
+
369
+ border: 1px solid #ffffff;
370
+ border-radius: 20px 0px 20px 20px;
371
+ background: #262626;
372
+ color: #fff;
373
+ display: flex;
374
+ flex-direction: column;
375
+ justify-content: flex-end;
376
+ overflow: hidden;
377
+ cursor: pointer;
378
+
379
+ box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.5);
380
+ }
381
+ .type-gradient__top-container {
382
+ position: relative;
383
+ width: 100%;
384
+ height: 100%;
385
+ background: #ffffff;
386
+ overflow: hidden;
387
+ }
388
+ .video-container {
389
+ position: relative;
390
+ margin-left: -48px;
391
+ }
392
+ .glowBackground {
393
+ position: absolute;
394
+ width: 100%;
395
+ height: 100%;
396
+ top: 0px;
397
+ left: 0px;
398
+ object-fit: cover;
399
+ transform: scale(1.3);
400
+ filter: brightness(80%);
401
+ }
402
+ .type-gradient__scroll-info {
403
+ padding: 18px;
404
+ display: flex;
405
+ flex-direction: column;
406
+ z-index: 99999;
407
+
408
+ margin-top: 0em;
409
+
410
+ opacity: 0.95;
411
+ }
412
+ .type-gradient__scroll-info:hover {
413
+ text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.85);
414
+ }
415
+ .type-gradient__scroll-info:hover > .type-gradient__description > li {
416
+ opacity: 0.99;
417
+ }
418
+
419
+ .type-gradient__chat-container {
420
+ display: flex;
421
+ align-items: center;
422
+ gap: 8px;
423
+ margin-top: 4px;
424
+ }
425
+ .type-gradient__chat-header > .title-bold {
426
+ font-family: "Helvetica Neue", Arial;
427
+ font-style: normal;
428
+ font-size: 22px;
429
+ line-height: 28px;
430
+ color: #ffffff;
431
+ opacity: 0.95;
432
+ }
433
+ .type-gradient__chat-header {
434
+ font-family: "Helvetica Neue", Arial;
435
+ font-style: normal;
436
+ font-size: 22px;
437
+ line-height: 28px;
438
+ color: #ffffff;
439
+ font-weight: 300;
440
+ }
441
+ .type-gradient__description {
442
+ padding: 0;
443
+ margin: 0;
444
+ list-style: none;
445
+ }
446
+ .type-gradient__description > li {
447
+ font-family: "Helvetica Neue", Arial;
448
+ font-style: normal;
449
+ font-weight: 300;
450
+ font-size: 18px;
451
+ line-height: 24px;
452
+
453
+ color: #ffffff;
454
+ opacity: 0.5;
455
+ }
456
+
457
+ .type-gradient__email {
458
+ background: #000000;
459
+ border-top: 1px solid #4d4d4d;
460
+ border-bottom: 1px solid #4d4d4d;
461
+ }
462
+
463
+ .type-gradient__bottom-tab {
464
+ font-family: "Helvetica Neue", Arial;
465
+ font-style: normal;
466
+ font-weight: 400;
467
+ font-size: 16px;
468
+ line-height: 18px;
469
+ padding: 16px 20px;
470
+
471
+ color: #ffffff;
472
+ display: flex;
473
+ align-items: center;
474
+ gap: 10px;
475
+ }
476
+ .type-gradient__bottom-tab:hover {
477
+ text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.85);
478
+ background: linear-gradient(265.11deg, #000000 16.43%, #3c3c3c 87.21%);
479
+ }
480
+ .type-gradient__icon {
481
+ display: flex;
482
+ justify-content: center;
483
+ align-items: center;
484
+ }
485
+ .type-gradient__icon svg {
486
+ color: #ffffff;
487
+ }
488
+
489
+ @media screen and (max-height: 750px) {
490
+ .launcher__window-wrapper {
491
+ bottom: 0;
492
+ }
493
+ }
494
+ @media screen and (min-width: 1000px) {
495
+ .inner-pill-wrapper {
496
+ height: 50px;
497
+ width: 164px;
498
+ }
499
+ }
500
+ `;
@@ -0,0 +1,162 @@
1
+ import { html, LitElement, TemplateResult } from "lit";
2
+ import { customElement, property } from "lit/decorators.js";
3
+ import { typeMobileStyles } from "./typeMobileStyles";
4
+ import { styleMap } from "lit/directives/style-map.js";
5
+ import { defaultBackgroundColor, defaultPrimaryColor } from "../../themes";
6
+ import { EmailOutlineIcon } from "../icons/EmailOutlineIcon";
7
+ import { PhoneOutlineIcon } from "../icons/PhoneOutlineIcon";
8
+ import { BookTourOutlineIcon } from "../icons/BookTourOutlineIcon";
9
+ import { ChatOutlineIcon } from "../icons/ChatOutlineIcon";
10
+ import { ApplyOutlineIcon } from "../icons/ApplyOutlineIcon";
11
+ import { CalculatorOutlineIcon } from "../icons/CalculatorOutlineIcon";
12
+
13
+ @customElement("mobile-launcher")
14
+ export class MobileLauncher extends LitElement {
15
+ static styles = [typeMobileStyles];
16
+
17
+ @property({ attribute: true })
18
+ onClickMinimize: () => void = () => {
19
+ return;
20
+ };
21
+
22
+ @property({ attribute: true })
23
+ onClickEmailOption: (e: MouseEvent) => void = () => {
24
+ return;
25
+ };
26
+ @property({ attribute: true })
27
+ onClickPhoneOption: (e: MouseEvent) => void = () => {
28
+ return;
29
+ };
30
+ @property({ attribute: true })
31
+ onClickSSTOption: (e: MouseEvent) => void = () => {
32
+ return;
33
+ };
34
+ @property({ attribute: true })
35
+ onClickApplyNowOption: (e: MouseEvent) => void = () => {
36
+ return;
37
+ };
38
+ @property({ attribute: true })
39
+ onClickPriceCalculatorOption: (e: MouseEvent) => void = () => {
40
+ return;
41
+ };
42
+ @property({ attribute: true })
43
+ onChatTapped: (e: MouseEvent) => void = () => {
44
+ return;
45
+ };
46
+
47
+ @property({ attribute: true })
48
+ hideChat = false;
49
+
50
+ @property({ attribute: true })
51
+ isMobileDesign = false;
52
+
53
+ @property({ attribute: true })
54
+ primaryColor: string = defaultPrimaryColor;
55
+
56
+ @property({ attribute: true })
57
+ backgroundColor: string = defaultBackgroundColor;
58
+
59
+ @property({ attribute: true })
60
+ hasChatEnabled = false;
61
+
62
+ @property({ attribute: true })
63
+ hasEmailEnabled = false;
64
+
65
+ @property({ attribute: true })
66
+ hasCallUsEnabled = false;
67
+
68
+ @property({ attribute: true })
69
+ hasTextUsEnabled = false;
70
+
71
+ @property({ attribute: true })
72
+ hasSSTEnabled = false;
73
+
74
+ @property({ attribute: true })
75
+ hasApplyNowEnabled = false;
76
+
77
+ @property({ attribute: true })
78
+ hasPricingCalculatorEnabled = false;
79
+
80
+ @property({ attribute: true })
81
+ applicationLink = "";
82
+
83
+ @property({ attribute: true })
84
+ overrideRentgrata = false;
85
+
86
+ @property({ attribute: true })
87
+ foregroundColorOnSecondaryBackgroundColor = "black";
88
+
89
+ private renderListElement = (
90
+ isEnabled: boolean,
91
+ onClick: (e: MouseEvent) => void,
92
+ icon: TemplateResult<2> // is an svg icon in lit
93
+ ) => {
94
+ if (!isEnabled) {
95
+ return "";
96
+ }
97
+ return html` <li
98
+ @click=${onClick}
99
+ class="typeMobile-bttn"
100
+ style=${styleMap({
101
+ background: `${this.primaryColor}`,
102
+ })}
103
+ >
104
+ <div
105
+ class="typeMobile-inner"
106
+ style=${styleMap({
107
+ background: `${this.backgroundColor}`,
108
+ })}
109
+ >
110
+ <div class="typeMobile-icon">${icon}</div>
111
+ </div>
112
+ </li>`;
113
+ };
114
+
115
+ render(): TemplateResult {
116
+ return html`<div class="typeMobile-list">
117
+ <ul>
118
+ ${this.renderListElement(
119
+ !!(this.hasApplyNowEnabled && this.applicationLink),
120
+ this.onClickApplyNowOption,
121
+ ApplyOutlineIcon(this.foregroundColorOnSecondaryBackgroundColor)
122
+ )}
123
+ ${this.renderListElement(
124
+ this.hasPricingCalculatorEnabled,
125
+ this.onClickPriceCalculatorOption,
126
+ CalculatorOutlineIcon("black")
127
+ )}
128
+ ${this.renderListElement(
129
+ this.hasEmailEnabled,
130
+ this.onClickEmailOption,
131
+ EmailOutlineIcon(this.foregroundColorOnSecondaryBackgroundColor)
132
+ )}
133
+ ${this.renderListElement(
134
+ this.hasCallUsEnabled || this.hasTextUsEnabled,
135
+ this.onClickPhoneOption,
136
+ PhoneOutlineIcon(this.foregroundColorOnSecondaryBackgroundColor)
137
+ )}
138
+ ${this.renderListElement(
139
+ this.hasSSTEnabled,
140
+ this.onClickSSTOption,
141
+ BookTourOutlineIcon(this.foregroundColorOnSecondaryBackgroundColor)
142
+ )}
143
+ ${this.renderListElement(
144
+ this.hasChatEnabled && !this.hideChat, // hide chat if under talkjs popup
145
+ this.onChatTapped,
146
+ ChatOutlineIcon(this.foregroundColorOnSecondaryBackgroundColor)
147
+ )}
148
+ ${!this.isMobileDesign && !this.hideChat
149
+ ? html`
150
+ <li>
151
+ <minimize-expand-button
152
+ .onClick=${this.onClickMinimize}
153
+ .primaryColor=${this.primaryColor}
154
+ .toExpand=${true}
155
+ ></minimize-expand-button>
156
+ </li>
157
+ `
158
+ : ""}
159
+ </ul>
160
+ </div>`;
161
+ }
162
+ }