@meetelise/chat 1.20.45 → 1.20.46

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.
@@ -319,16 +319,13 @@ export class TourScheduler extends LitElement {
319
319
  this.phoneNumber.length === 14
320
320
  );
321
321
  },
322
- leadSource: (): boolean =>
323
- this.leadSources.length > 0 ? !!this.selectedLeadSource?.value : true,
324
322
  };
325
323
 
326
324
  formIsValidForSubmission = (): boolean => {
327
325
  const isValid =
328
326
  this.validators.tourType() &&
329
327
  this.validators.dateAndTime() &&
330
- this.validators.leadInfo() &&
331
- this.validators.leadSource();
328
+ this.validators.leadInfo();
332
329
  return isValid;
333
330
  };
334
331
 
@@ -141,8 +141,6 @@ export class EmailUsWindow extends LitElement {
141
141
  @state()
142
142
  hasMessageError = false;
143
143
  @state()
144
- hasLeadSourceError = false;
145
- @state()
146
144
  hasSubmittedForm = false;
147
145
  @state()
148
146
  windowHeight = 525;
@@ -208,7 +206,6 @@ export class EmailUsWindow extends LitElement {
208
206
  this.hasEmailError = false;
209
207
  this.hasPhoneNumberError = false;
210
208
  this.hasMessageError = false;
211
- this.hasLeadSourceError = false;
212
209
  this.hasSubmissionError = false;
213
210
  if (!this.firstName || !this.lastName) {
214
211
  this.hasNameError = true;
@@ -222,12 +219,6 @@ export class EmailUsWindow extends LitElement {
222
219
  if (!this.message) {
223
220
  this.hasMessageError = true;
224
221
  }
225
- if (
226
- this.leadSources.length > 0 &&
227
- (!this.selectedLeadSource || !this.selectedLeadSource.value)
228
- ) {
229
- this.hasLeadSourceError = true;
230
- }
231
222
  this.windowHeight = 525 + 30 * this.getNumErrors();
232
223
  };
233
224
 
@@ -240,8 +231,7 @@ export class EmailUsWindow extends LitElement {
240
231
  this.hasNameError ||
241
232
  this.hasEmailError ||
242
233
  this.hasPhoneNumberError ||
243
- this.hasMessageError ||
244
- this.hasLeadSourceError
234
+ this.hasMessageError
245
235
  ) {
246
236
  return;
247
237
  }
@@ -290,7 +280,6 @@ export class EmailUsWindow extends LitElement {
290
280
  this.hasEmailError,
291
281
  this.hasPhoneNumberError,
292
282
  this.hasMessageError,
293
- this.hasLeadSourceError,
294
283
  this.hasSubmissionError,
295
284
  ].filter((v) => v).length;
296
285
  };
@@ -423,11 +412,6 @@ export class EmailUsWindow extends LitElement {
423
412
  }}
424
413
  >
425
414
  </me-select>
426
- ${this.hasLeadSourceError
427
- ? html`
428
- <div class="email-us__error-text">Include a source</div>
429
- `
430
- : ""}
431
415
  `
432
416
  : ""}
433
417
  <div class="email-us__vertical-spacer"></div>
@@ -194,7 +194,7 @@ export const launcherStyles = css`
194
194
  .launcher__mini-launcher-wrapper {
195
195
  position: fixed;
196
196
  right: 0px;
197
- bottom: 40px;
197
+ bottom: 130px;
198
198
  z-index: 100000;
199
199
  display: flex;
200
200
  align-items: center;