@meetelise/chat 1.12.5 → 1.12.8
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/package.json +5 -5
- package/public/dist/index.js +84 -78
- package/src/MEChat.ts +1 -1
- package/src/WebComponent/{InHouseLauncher.ts → Launcher.ts} +38 -40
- package/src/WebComponent/MEChat.css +1 -1
- package/src/WebComponent/Scheduler/tour-scheduler.ts +12 -3
- package/src/WebComponent/actions/{ActionConfirmButton.ts → action-confirm-button.ts} +0 -0
- package/src/WebComponent/actions/{CallUsWindow.ts → call-us-window.ts} +0 -0
- package/src/WebComponent/actions/{DetailsWindow.ts → details-window.ts} +0 -0
- package/src/WebComponent/actions/{EmailUsWindow.ts → email-us-window.ts} +2 -2
- package/src/WebComponent/actions/{TextUsWindow.ts → text-us-window.ts} +2 -2
- package/src/WebComponent/index.ts +2 -2
- package/src/WebComponent/{inHouseLauncherStyles.ts → launcherStyles.ts} +41 -35
- package/src/WebComponent/{MEChat.ts → me-chat.ts} +19 -19
package/src/MEChat.ts
CHANGED
|
@@ -3,19 +3,19 @@ import { html, LitElement, TemplateResult } from "lit";
|
|
|
3
3
|
import { customElement, property, state } from "lit/decorators.js";
|
|
4
4
|
import { createRef, ref, Ref } from "lit/directives/ref.js";
|
|
5
5
|
import { glowBarMp4, glowBarWebm } from "../assetUrls";
|
|
6
|
-
import {
|
|
7
|
-
import { EmailUsWindow, installEmailUsWindow } from "./actions/
|
|
8
|
-
import { installTextUsWindow, TextUsWindow } from "./actions/
|
|
6
|
+
import { launcherStyles } from "./launcherStyles";
|
|
7
|
+
import { EmailUsWindow, installEmailUsWindow } from "./actions/email-us-window";
|
|
8
|
+
import { installTextUsWindow, TextUsWindow } from "./actions/text-us-window";
|
|
9
9
|
import { styleMap } from "lit/directives/style-map.js";
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
|
-
import { installCallUsWindow } from "./actions/
|
|
11
|
+
import { installCallUsWindow } from "./actions/call-us-window";
|
|
12
12
|
import { getRegisteredPhoneNumbers } from "../getRegisteredPhoneNumbers";
|
|
13
13
|
import { TourScheduler } from "./Scheduler/tour-scheduler";
|
|
14
14
|
import { LabeledOption } from "../fetchBuildingInfo";
|
|
15
15
|
|
|
16
|
-
@customElement("
|
|
17
|
-
export class
|
|
18
|
-
static styles =
|
|
16
|
+
@customElement("meetelise-launcher")
|
|
17
|
+
export class Launcher extends LitElement {
|
|
18
|
+
static styles = launcherStyles;
|
|
19
19
|
|
|
20
20
|
@property({ type: Boolean })
|
|
21
21
|
isMobile = false;
|
|
@@ -125,7 +125,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
125
125
|
return html`
|
|
126
126
|
<div
|
|
127
127
|
@click=${this.onClickEmailOption}
|
|
128
|
-
class="
|
|
128
|
+
class="launcher__call-to-action-option"
|
|
129
129
|
>
|
|
130
130
|
${text}
|
|
131
131
|
</div>
|
|
@@ -144,9 +144,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
144
144
|
|
|
145
145
|
renderCallUsOption = (): TemplateResult => {
|
|
146
146
|
const text = this.getNumCallToActions() > 2 ? "Phone" : "Hours/Phone";
|
|
147
|
-
return html`
|
|
148
|
-
<div class="in-house-launcher__call-to-action-option">${text}</div>
|
|
149
|
-
`;
|
|
147
|
+
return html` <div class="launcher__call-to-action-option">${text}</div> `;
|
|
150
148
|
};
|
|
151
149
|
|
|
152
150
|
onClickSSTOption = (e: MouseEvent): void => {
|
|
@@ -163,7 +161,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
163
161
|
const text = this.getNumCallToActions() > 2 ? "Book" : "Book a tour";
|
|
164
162
|
return html`
|
|
165
163
|
<div
|
|
166
|
-
class="
|
|
164
|
+
class="launcher__call-to-action-option"
|
|
167
165
|
@click=${this.onClickSSTOption}
|
|
168
166
|
>
|
|
169
167
|
${text}
|
|
@@ -185,7 +183,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
185
183
|
return html`
|
|
186
184
|
<div
|
|
187
185
|
@click=${this.onClickTextUsOption}
|
|
188
|
-
class="
|
|
186
|
+
class="launcher__call-to-action-option"
|
|
189
187
|
>
|
|
190
188
|
Text us
|
|
191
189
|
</div>
|
|
@@ -198,7 +196,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
198
196
|
}
|
|
199
197
|
|
|
200
198
|
return html`
|
|
201
|
-
<div class="
|
|
199
|
+
<div class="launcher__call-to-actions-wrapper">
|
|
202
200
|
${this.hasEmailEnabled ? this.renderEmailOption() : ""}
|
|
203
201
|
${this.phoneNumber ? this.renderCallUsOption() : ""}
|
|
204
202
|
${this.hasTextUsEnabled ? this.renderTextUsOption() : ""}
|
|
@@ -224,12 +222,12 @@ export class InHouseLauncher extends LitElement {
|
|
|
224
222
|
isSecondaryAction?: boolean
|
|
225
223
|
): TemplateResult => {
|
|
226
224
|
return html`
|
|
227
|
-
<div class="
|
|
225
|
+
<div class="launcher__mini-option-wrapper">
|
|
228
226
|
<div
|
|
229
227
|
@click=${onClick}
|
|
230
228
|
class=${classMap({
|
|
231
|
-
["
|
|
232
|
-
["
|
|
229
|
+
["launcher__mini-option"]: true,
|
|
230
|
+
["launcher__secondary-option"]: !!isSecondaryAction,
|
|
233
231
|
})}
|
|
234
232
|
>
|
|
235
233
|
${content}
|
|
@@ -240,9 +238,9 @@ export class InHouseLauncher extends LitElement {
|
|
|
240
238
|
|
|
241
239
|
renderMiniLauncher = (): TemplateResult => {
|
|
242
240
|
return html`
|
|
243
|
-
<div class="
|
|
241
|
+
<div class="launcher__mini-launcher-wrapper">
|
|
244
242
|
${this.isEmailWindowOpen
|
|
245
|
-
? html`<div class="
|
|
243
|
+
? html`<div class="launcher__window-wrapper">
|
|
246
244
|
<email-us-window
|
|
247
245
|
${ref(this.emailUsWindowRef)}
|
|
248
246
|
.buildingId=${this.buildingId}
|
|
@@ -251,7 +249,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
251
249
|
</div>`
|
|
252
250
|
: ""}
|
|
253
251
|
${this.isTextUsWindowOpen
|
|
254
|
-
? html`<div class="
|
|
252
|
+
? html`<div class="launcher__window-wrapper">
|
|
255
253
|
<text-us-window
|
|
256
254
|
${ref(this.textUsWindowRef)}
|
|
257
255
|
.buildingId=${this.buildingId}
|
|
@@ -259,7 +257,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
259
257
|
</div>`
|
|
260
258
|
: ""}
|
|
261
259
|
${this.isSSTWindowOpen
|
|
262
|
-
? html`<div class="
|
|
260
|
+
? html`<div class="launcher__window-wrapper">
|
|
263
261
|
<tour-scheduler
|
|
264
262
|
.layoutOptions=${this.layoutOptions}
|
|
265
263
|
.tourTypeOptions=${this.tourTypeOptions}
|
|
@@ -270,7 +268,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
270
268
|
: ""}
|
|
271
269
|
${this.isCallUsWindowOpen
|
|
272
270
|
? html`
|
|
273
|
-
<div class="
|
|
271
|
+
<div class="launcher__window-wrapper">
|
|
274
272
|
<call-us-window
|
|
275
273
|
.onCloseClicked=${this.onClosePhoneWindow}
|
|
276
274
|
phoneNumber="${this.phoneNumber}"
|
|
@@ -282,14 +280,15 @@ export class InHouseLauncher extends LitElement {
|
|
|
282
280
|
${!this.isCallToActionWindowOpen()
|
|
283
281
|
? this.renderMiniOption(
|
|
284
282
|
html`<svg
|
|
285
|
-
width="
|
|
286
|
-
height="
|
|
287
|
-
viewBox="0 0
|
|
283
|
+
width="29"
|
|
284
|
+
height="28"
|
|
285
|
+
viewBox="0 0 29 28"
|
|
288
286
|
fill="none"
|
|
289
287
|
xmlns="http://www.w3.org/2000/svg"
|
|
288
|
+
style="transform: translate(2px, -1px);"
|
|
290
289
|
>
|
|
291
290
|
<path
|
|
292
|
-
d="
|
|
291
|
+
d="M21.0385 9.79957H7.03915C6.66786 9.79957 6.31178 9.94706 6.04924 10.2096C5.7867 10.4721 5.63921 10.8282 5.63921 11.1995C5.63921 11.5708 5.7867 11.9269 6.04924 12.1894C6.31178 12.4519 6.66786 12.5994 7.03915 12.5994H21.0385C21.4098 12.5994 21.7659 12.4519 22.0284 12.1894C22.291 11.9269 22.4385 11.5708 22.4385 11.1995C22.4385 10.8282 22.291 10.4721 22.0284 10.2096C21.7659 9.94706 21.4098 9.79957 21.0385 9.79957ZM15.4388 15.3993H7.03915C6.66786 15.3993 6.31178 15.5468 6.04924 15.8094C5.7867 16.0719 5.63921 16.428 5.63921 16.7993C5.63921 17.1705 5.7867 17.5266 6.04924 17.7892C6.31178 18.0517 6.66786 18.1992 7.03915 18.1992H15.4388C15.8101 18.1992 16.1661 18.0517 16.4287 17.7892C16.6912 17.5266 16.8387 17.1705 16.8387 16.7993C16.8387 16.428 16.6912 16.0719 16.4287 15.8094C16.1661 15.5468 15.8101 15.3993 15.4388 15.3993ZM14.0388 0C12.2004 0 10.38 0.362105 8.68151 1.06564C6.98302 1.76917 5.43975 2.80036 4.13978 4.10032C1.51439 6.72572 0.0394592 10.2865 0.0394592 13.9994C0.0272207 17.232 1.14652 20.3671 3.20332 22.861L0.403443 25.6609C0.209191 25.8577 0.077602 26.1077 0.0252806 26.3793C-0.0270409 26.6509 0.00224956 26.9319 0.109456 27.1868C0.225732 27.4387 0.414228 27.6503 0.651018 27.7949C0.887807 27.9395 1.16221 28.0104 1.4394 27.9988H14.0388C17.7517 27.9988 21.3125 26.5238 23.9379 23.8984C26.5633 21.273 28.0382 17.7122 28.0382 13.9994C28.0382 10.2865 26.5633 6.72572 23.9379 4.10032C21.3125 1.47493 17.7517 0 14.0388 0V0ZM14.0388 25.1989H4.81325L6.11519 23.8969C6.37593 23.6346 6.52228 23.2798 6.52228 22.91C6.52228 22.5401 6.37593 22.1853 6.11519 21.923C4.28209 20.092 3.14057 17.682 2.8851 15.1036C2.62964 12.5253 3.27604 9.93817 4.71417 7.78299C6.1523 5.6278 8.2932 4.03792 10.7721 3.28422C13.251 2.53051 15.9146 2.65961 18.309 3.64952C20.7033 4.63943 22.6805 6.4289 23.9034 8.71306C25.1264 10.9972 25.5195 13.6348 25.0159 16.1763C24.5123 18.7178 23.1431 21.0061 21.1415 22.6513C19.1399 24.2965 16.6298 25.1968 14.0388 25.1989V25.1989Z"
|
|
293
292
|
fill="#1E1E1E"
|
|
294
293
|
/>
|
|
295
294
|
</svg>`,
|
|
@@ -365,6 +364,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
365
364
|
viewBox="0 0 19 18"
|
|
366
365
|
fill="none"
|
|
367
366
|
xmlns="http://www.w3.org/2000/svg"
|
|
367
|
+
style="transform: translateX(2px);"
|
|
368
368
|
>
|
|
369
369
|
<path
|
|
370
370
|
d="M5.42513 8.09964C5.24713 8.09964 5.07313 8.15242 4.92514 8.25131C4.77714 8.3502 4.66179 8.49076 4.59367 8.6552C4.52556 8.81965 4.50773 9.0006 4.54246 9.17517C4.57719 9.34975 4.6629 9.51011 4.78876 9.63597C4.91462 9.76183 5.07498 9.84754 5.24955 9.88227C5.42413 9.91699 5.60508 9.89917 5.76953 9.83106C5.93397 9.76294 6.07453 9.64759 6.17342 9.49959C6.27231 9.35159 6.32509 9.1776 6.32509 8.9996C6.32509 8.76092 6.23027 8.53201 6.0615 8.36323C5.89272 8.19446 5.66381 8.09964 5.42513 8.09964ZM9.02497 8.09964C8.84697 8.09964 8.67297 8.15242 8.52498 8.25131C8.37698 8.3502 8.26163 8.49076 8.19351 8.6552C8.1254 8.81965 8.10758 9.0006 8.1423 9.17517C8.17703 9.34975 8.26274 9.51011 8.3886 9.63597C8.51446 9.76183 8.67482 9.84754 8.84939 9.88227C9.02397 9.91699 9.20492 9.89917 9.36937 9.83106C9.53382 9.76294 9.67437 9.64759 9.77326 9.49959C9.87215 9.35159 9.92493 9.1776 9.92493 8.9996C9.92493 8.76092 9.83011 8.53201 9.66134 8.36323C9.49256 8.19446 9.26365 8.09964 9.02497 8.09964ZM12.6248 8.09964C12.4468 8.09964 12.2728 8.15242 12.1248 8.25131C11.9768 8.3502 11.8615 8.49076 11.7934 8.6552C11.7252 8.81965 11.7074 9.0006 11.7421 9.17517C11.7769 9.34975 11.8626 9.51011 11.9884 9.63597C12.1143 9.76183 12.2747 9.84754 12.4492 9.88227C12.6238 9.91699 12.8048 9.89917 12.9692 9.83106C13.1337 9.76294 13.2742 9.64759 13.3731 9.49959C13.472 9.35159 13.5248 9.1776 13.5248 8.9996C13.5248 8.76092 13.43 8.53201 13.2612 8.36323C13.0924 8.19446 12.8635 8.09964 12.6248 8.09964ZM9.02497 0C7.84312 0 6.67285 0.232782 5.58097 0.685054C4.48909 1.13733 3.49698 1.80023 2.66129 2.63592C0.973536 4.32368 0.0253666 6.61276 0.0253666 8.9996C0.017499 11.0777 0.737048 13.0931 2.05928 14.6963L0.259356 16.4963C0.13448 16.6228 0.049887 16.7835 0.0162518 16.9581C-0.0173834 17.1327 0.00144614 17.3133 0.0703646 17.4772C0.145113 17.6392 0.26629 17.7752 0.418511 17.8682C0.570733 17.9611 0.747135 18.0067 0.925327 17.9992H9.02497C11.4118 17.9992 13.7009 17.051 15.3886 15.3633C17.0764 13.6755 18.0246 11.3864 18.0246 8.9996C18.0246 6.61276 17.0764 4.32368 15.3886 2.63592C13.7009 0.94817 11.4118 0 9.02497 0ZM9.02497 16.1993H3.09423L3.93119 15.3623C4.01623 15.279 4.08388 15.1796 4.13022 15.0699C4.17657 14.9602 4.20069 14.8424 4.20118 14.7233C4.1978 14.486 4.10076 14.2595 3.93119 14.0934C2.75277 12.9163 2.01894 11.367 1.85471 9.70948C1.69048 8.05199 2.10602 6.38882 3.03054 5.00335C3.95505 3.61787 5.33134 2.59581 6.92492 2.11128C8.51851 1.62676 10.2308 1.70975 11.77 2.34612C13.3093 2.98249 14.5803 4.13286 15.3665 5.60125C16.1527 7.06964 16.4054 8.7652 16.0817 10.399C15.7579 12.0329 14.8777 13.5039 13.591 14.5616C12.3042 15.6192 10.6906 16.198 9.02497 16.1993Z"
|
|
@@ -391,7 +391,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
391
391
|
return html`
|
|
392
392
|
<div>
|
|
393
393
|
${this.isEmailWindowOpen
|
|
394
|
-
? html`<div class="
|
|
394
|
+
? html`<div class="launcher__window-wrapper">
|
|
395
395
|
<email-us-window
|
|
396
396
|
${ref(this.emailUsWindowRef)}
|
|
397
397
|
.buildingId=${this.buildingId}
|
|
@@ -400,7 +400,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
400
400
|
</div>`
|
|
401
401
|
: ""}
|
|
402
402
|
${this.isTextUsWindowOpen
|
|
403
|
-
? html`<div class="
|
|
403
|
+
? html`<div class="launcher__window-wrapper">
|
|
404
404
|
<text-us-window
|
|
405
405
|
${ref(this.textUsWindowRef)}
|
|
406
406
|
.buildingId=${this.buildingId}
|
|
@@ -408,7 +408,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
408
408
|
</div>`
|
|
409
409
|
: ""}
|
|
410
410
|
${this.isSSTWindowOpen
|
|
411
|
-
? html`<div class="
|
|
411
|
+
? html`<div class="launcher__window-wrapper">
|
|
412
412
|
<tour-scheduler
|
|
413
413
|
.layoutOptions=${this.layoutOptions}
|
|
414
414
|
.tourTypeOptions=${this.tourTypeOptions}
|
|
@@ -419,7 +419,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
419
419
|
: ""}
|
|
420
420
|
${this.isCallUsWindowOpen && this.phoneNumber
|
|
421
421
|
? html`
|
|
422
|
-
<div class="
|
|
422
|
+
<div class="launcher__window-wrapper">
|
|
423
423
|
<call-us-window
|
|
424
424
|
.onCloseClicked=${this.onClosePhoneWindow}
|
|
425
425
|
phoneNumber="${this.phoneNumber}"
|
|
@@ -434,9 +434,7 @@ export class InHouseLauncher extends LitElement {
|
|
|
434
434
|
@click=${this.onChatTapped}
|
|
435
435
|
class="${classnames(
|
|
436
436
|
"launcher",
|
|
437
|
-
this.isMobile
|
|
438
|
-
? "in-house-launcher__mobile"
|
|
439
|
-
: "in-house-launcher__desktop",
|
|
437
|
+
this.isMobile ? "launcher__mobile" : "launcher__desktop",
|
|
440
438
|
{
|
|
441
439
|
firstMount: this.isFirstMount,
|
|
442
440
|
}
|
|
@@ -454,8 +452,8 @@ export class InHouseLauncher extends LitElement {
|
|
|
454
452
|
<source src="${glowBarMp4}" type="video/mp4" />
|
|
455
453
|
</video>
|
|
456
454
|
<div class="content">
|
|
457
|
-
<div class="
|
|
458
|
-
<div class="
|
|
455
|
+
<div class="launcher__primary-action">
|
|
456
|
+
<div class="launcher__primary-action-text">
|
|
459
457
|
Ask a question
|
|
460
458
|
<svg
|
|
461
459
|
width="21"
|
|
@@ -470,11 +468,11 @@ export class InHouseLauncher extends LitElement {
|
|
|
470
468
|
/>
|
|
471
469
|
</svg>
|
|
472
470
|
</div>
|
|
473
|
-
<div class="
|
|
471
|
+
<div class="launcher__ask-underline"></div>
|
|
474
472
|
</div>
|
|
475
473
|
${this.getNumCallToActions() === 0
|
|
476
474
|
? html`
|
|
477
|
-
<div class="
|
|
475
|
+
<div class="launcher__filler-text">
|
|
478
476
|
I can also help you schedule a tour
|
|
479
477
|
</div>
|
|
480
478
|
`
|
|
@@ -488,8 +486,8 @@ export class InHouseLauncher extends LitElement {
|
|
|
488
486
|
}
|
|
489
487
|
}
|
|
490
488
|
|
|
491
|
-
export const
|
|
492
|
-
if (!window.customElements.get("
|
|
493
|
-
window.customElements.define("
|
|
489
|
+
export const installLauncher = (): void => {
|
|
490
|
+
if (!window.customElements.get("meetelise-launcher")) {
|
|
491
|
+
window.customElements.define("meetelise-launcher", Launcher);
|
|
494
492
|
}
|
|
495
493
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, html, LitElement, TemplateResult } from "lit";
|
|
1
|
+
import { css, html, LitElement, PropertyValueMap, TemplateResult } from "lit";
|
|
2
2
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
3
3
|
import {
|
|
4
4
|
shortcutKeyIsPressed,
|
|
@@ -37,8 +37,6 @@ export class TourScheduler extends LitElement {
|
|
|
37
37
|
@state()
|
|
38
38
|
private phoneNumber = "";
|
|
39
39
|
@state()
|
|
40
|
-
private hasPhoneNumberError = false;
|
|
41
|
-
@state()
|
|
42
40
|
private availabilitiesGroupedByDay: { [day: string]: Date[] } = {};
|
|
43
41
|
@state()
|
|
44
42
|
private selectedDate?: Date;
|
|
@@ -64,6 +62,17 @@ export class TourScheduler extends LitElement {
|
|
|
64
62
|
);
|
|
65
63
|
};
|
|
66
64
|
|
|
65
|
+
protected willUpdate = async (
|
|
66
|
+
_changedProperties:
|
|
67
|
+
| PropertyValueMap<{ tourType: TourType }>
|
|
68
|
+
| Map<PropertyKey, unknown>
|
|
69
|
+
): Promise<void> => {
|
|
70
|
+
if (_changedProperties.has("tourType")) {
|
|
71
|
+
this.availabilitiesGroupedByDay =
|
|
72
|
+
await getAvailabilitiesGroupedByDayCached(tourTypeMap[this.tourType]);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
67
76
|
handlePhoneKeydown = (e: Event): void => {
|
|
68
77
|
// these should always be true, this is just here to mollify TypeScript
|
|
69
78
|
if (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,8 +2,8 @@ import { css, html, LitElement, TemplateResult } from "lit";
|
|
|
2
2
|
import { customElement, property, state } from "lit/decorators.js";
|
|
3
3
|
import { classMap } from "lit/directives/class-map.js";
|
|
4
4
|
import { createRef, ref, Ref } from "lit/directives/ref.js";
|
|
5
|
-
import { installActionConfirmButton } from "./
|
|
6
|
-
import { installDetailsWindow } from "./
|
|
5
|
+
import { installActionConfirmButton } from "./action-confirm-button";
|
|
6
|
+
import { installDetailsWindow } from "./details-window";
|
|
7
7
|
import {
|
|
8
8
|
formatToPhone,
|
|
9
9
|
isModifierKey,
|
|
@@ -2,8 +2,8 @@ import { css, html, LitElement, TemplateResult } from "lit";
|
|
|
2
2
|
import { customElement, property, state } from "lit/decorators.js";
|
|
3
3
|
import { classMap } from "lit/directives/class-map.js";
|
|
4
4
|
import { createRef, ref, Ref } from "lit/directives/ref.js";
|
|
5
|
-
import { installActionConfirmButton } from "./
|
|
6
|
-
import { installDetailsWindow } from "./
|
|
5
|
+
import { installActionConfirmButton } from "./action-confirm-button";
|
|
6
|
+
import { installDetailsWindow } from "./details-window";
|
|
7
7
|
import {
|
|
8
8
|
formatToPhone,
|
|
9
9
|
isModifierKey,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import "./
|
|
1
|
+
export { Launcher } from "./Launcher";
|
|
2
|
+
import "./me-chat";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const launcherStyles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--glowBarHeight: 11.2px;
|
|
6
6
|
--enterAnimationDuration: 0.5s;
|
|
@@ -29,25 +29,25 @@ export const inHouseLauncherStyles = css`
|
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
30
30
|
box-shadow: 0px 8px 8px 4px rgba(0, 0, 0, 0.25);
|
|
31
31
|
}
|
|
32
|
-
.launcher:not(.miniLauncher).
|
|
32
|
+
.launcher:not(.miniLauncher).launcher__mobile {
|
|
33
33
|
width: 100%;
|
|
34
34
|
bottom: 0px;
|
|
35
35
|
left: 0px;
|
|
36
36
|
padding: 5px;
|
|
37
37
|
}
|
|
38
|
-
.launcher:not(.miniLauncher).
|
|
38
|
+
.launcher:not(.miniLauncher).launcher__desktop {
|
|
39
39
|
width: 245px;
|
|
40
40
|
height: 112px;
|
|
41
41
|
padding-left: 10px;
|
|
42
42
|
}
|
|
43
|
-
.launcher.
|
|
43
|
+
.launcher.launcher__desktop {
|
|
44
44
|
right: 0px;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
border-radius: 10px 0px 0px 10px;
|
|
47
47
|
bottom: 40px;
|
|
48
48
|
z-index: 100000;
|
|
49
49
|
}
|
|
50
|
-
.launcher.
|
|
50
|
+
.launcher.launcher__desktop.firstMount {
|
|
51
51
|
animation: slideInFromRight var(--enterAnimationDuration);
|
|
52
52
|
}
|
|
53
53
|
.launcher .glowBar {
|
|
@@ -100,19 +100,19 @@ export const inHouseLauncherStyles = css`
|
|
|
100
100
|
.miniLauncher.firstMount {
|
|
101
101
|
animation: slideInFromRight 0.5s;
|
|
102
102
|
}
|
|
103
|
-
.miniLauncher.
|
|
103
|
+
.miniLauncher.launcher__desktop {
|
|
104
104
|
padding-right: 20px;
|
|
105
105
|
right: 0px;
|
|
106
106
|
overflow: hidden;
|
|
107
107
|
bottom: 40px;
|
|
108
108
|
z-index: var(--desktopZIndex);
|
|
109
109
|
}
|
|
110
|
-
.miniLauncher.
|
|
110
|
+
.miniLauncher.launcher__mobile {
|
|
111
111
|
right: 10px;
|
|
112
112
|
bottom: 20px;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.
|
|
115
|
+
.launcher__primary-action-text {
|
|
116
116
|
font-family: "Poppins";
|
|
117
117
|
font-weight: 700;
|
|
118
118
|
font-size: 24px;
|
|
@@ -120,38 +120,44 @@ export const inHouseLauncherStyles = css`
|
|
|
120
120
|
cursor: pointer;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
.
|
|
123
|
+
.launcher__primary-action:hover {
|
|
124
124
|
color: #350da6;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.
|
|
127
|
+
.launcher__primary-action {
|
|
128
128
|
transition: color 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98),
|
|
129
129
|
fill 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98);
|
|
130
130
|
cursor: pointer;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.launcher__primary-action:hover path {
|
|
134
134
|
fill: #350da6;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.
|
|
137
|
+
.launcher__primary-action:hover .launcher__ask-underline {
|
|
138
138
|
background: #350da6;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.
|
|
141
|
+
.launcher__primary-action svg {
|
|
142
|
+
height: 28px;
|
|
143
|
+
width: 28px;
|
|
144
|
+
transform: translateX(2px);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.launcher__ask-underline {
|
|
142
148
|
width: 47px;
|
|
143
149
|
height: 3px;
|
|
144
150
|
background: #1e1e1e;
|
|
145
151
|
transition: background 0.5s cubic-bezier(0.2, 0.19, 0.27, 0.98);
|
|
146
152
|
}
|
|
147
153
|
|
|
148
|
-
.
|
|
154
|
+
.launcher__filler-text {
|
|
149
155
|
font-size: 10px;
|
|
150
156
|
line-height: 22px;
|
|
151
157
|
color: #1e1e1e;
|
|
152
158
|
}
|
|
153
159
|
|
|
154
|
-
.
|
|
160
|
+
.launcher__call-to-action-option {
|
|
155
161
|
font-weight: 700;
|
|
156
162
|
font-size: 12px;
|
|
157
163
|
line-height: 22px;
|
|
@@ -164,28 +170,28 @@ export const inHouseLauncherStyles = css`
|
|
|
164
170
|
transition: color 0.2s cubic-bezier(0.2, 0.19, 0.27, 0.98);
|
|
165
171
|
}
|
|
166
172
|
|
|
167
|
-
.
|
|
173
|
+
.launcher__call-to-action-option:hover {
|
|
168
174
|
color: #350da6;
|
|
169
175
|
border-bottom: 2px solid #350da6;
|
|
170
176
|
}
|
|
171
177
|
|
|
172
|
-
.
|
|
178
|
+
.launcher__call-to-actions-wrapper {
|
|
173
179
|
width: 100%;
|
|
174
180
|
display: flex;
|
|
175
181
|
}
|
|
176
182
|
|
|
177
|
-
.
|
|
178
|
-
> .
|
|
183
|
+
.launcher__call-to-actions-wrapper
|
|
184
|
+
> .launcher__call-to-action-option:not(:last-child) {
|
|
179
185
|
margin-right: 15px;
|
|
180
186
|
}
|
|
181
187
|
|
|
182
|
-
.
|
|
188
|
+
.launcher__window-wrapper {
|
|
183
189
|
position: fixed;
|
|
184
190
|
right: 0;
|
|
185
191
|
bottom: 172px;
|
|
186
192
|
}
|
|
187
193
|
|
|
188
|
-
.
|
|
194
|
+
.launcher__mini-launcher-wrapper {
|
|
189
195
|
position: fixed;
|
|
190
196
|
right: 0px;
|
|
191
197
|
bottom: 40px;
|
|
@@ -194,7 +200,7 @@ export const inHouseLauncherStyles = css`
|
|
|
194
200
|
align-items: center;
|
|
195
201
|
}
|
|
196
202
|
|
|
197
|
-
.
|
|
203
|
+
.launcher__mini-option {
|
|
198
204
|
position: relative;
|
|
199
205
|
// This is so that the pseudo elements we created will be visible despite being beneath the element it is a pseudo element for
|
|
200
206
|
border: 4px solid transparent;
|
|
@@ -211,11 +217,11 @@ export const inHouseLauncherStyles = css`
|
|
|
211
217
|
cursor: pointer;
|
|
212
218
|
}
|
|
213
219
|
|
|
214
|
-
.
|
|
220
|
+
.launcher__mini-option-wrapper {
|
|
215
221
|
margin-right: 12px;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
|
-
.
|
|
224
|
+
.launcher__mini-option:not(:hover)::before {
|
|
219
225
|
position: absolute;
|
|
220
226
|
top: -4px;
|
|
221
227
|
bottom: -4px;
|
|
@@ -227,20 +233,20 @@ export const inHouseLauncherStyles = css`
|
|
|
227
233
|
border-radius: 50%;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
|
-
.
|
|
236
|
+
.launcher__secondary-option {
|
|
231
237
|
width: 30px;
|
|
232
238
|
height: 30px;
|
|
233
239
|
}
|
|
234
240
|
|
|
235
|
-
.
|
|
241
|
+
.launcher__mini-option-wrapper {
|
|
236
242
|
background-clip: padding-box;
|
|
237
243
|
}
|
|
238
244
|
|
|
239
|
-
.
|
|
245
|
+
.launcher__mini-option:hover {
|
|
240
246
|
border: none;
|
|
241
247
|
}
|
|
242
248
|
|
|
243
|
-
.
|
|
249
|
+
.launcher__mini-option:hover::before {
|
|
244
250
|
position: absolute;
|
|
245
251
|
top: -4px;
|
|
246
252
|
bottom: -4px;
|
|
@@ -254,15 +260,15 @@ export const inHouseLauncherStyles = css`
|
|
|
254
260
|
}
|
|
255
261
|
|
|
256
262
|
@media screen and (max-width: 767px) {
|
|
257
|
-
.launcher:not(.miniLauncher).
|
|
263
|
+
.launcher:not(.miniLauncher).launcher__desktop {
|
|
258
264
|
width: 100%;
|
|
259
265
|
}
|
|
260
266
|
|
|
261
|
-
.launcher.
|
|
267
|
+
.launcher.launcher__desktop {
|
|
262
268
|
bottom: 0px;
|
|
263
269
|
}
|
|
264
270
|
|
|
265
|
-
.launcher.
|
|
271
|
+
.launcher.launcher__desktop {
|
|
266
272
|
border-radius: 0px;
|
|
267
273
|
}
|
|
268
274
|
|
|
@@ -278,20 +284,20 @@ export const inHouseLauncherStyles = css`
|
|
|
278
284
|
padding-bottom: 15px;
|
|
279
285
|
}
|
|
280
286
|
|
|
281
|
-
.
|
|
287
|
+
.launcher__primary-action-text {
|
|
282
288
|
font-size: 18px;
|
|
283
289
|
flex-grow: 1;
|
|
284
290
|
}
|
|
285
291
|
|
|
286
|
-
.
|
|
292
|
+
.launcher__call-to-actions-wrapper {
|
|
287
293
|
width: fit-content;
|
|
288
294
|
}
|
|
289
295
|
|
|
290
|
-
.
|
|
296
|
+
.launcher__ask-underline {
|
|
291
297
|
width: 35px;
|
|
292
298
|
}
|
|
293
299
|
|
|
294
|
-
.
|
|
300
|
+
.launcher__window-wrapper {
|
|
295
301
|
left: 0;
|
|
296
302
|
bottom: 0;
|
|
297
303
|
}
|