@meetelise/chat 1.20.18 → 1.20.20

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.20.18",
3
+ "version": "1.20.20",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -456,7 +456,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
456
456
  ${this.shouldShowTourType[An.Guided]?D` <tour-type-option
457
457
  heading="Guided tour"
458
458
  subtitle="with an agent"
459
- @click="${()=>{this.escortedToursLink?window.open(this.escortedToursLink,"_blank"):this.tourType=An.Guided}}"
459
+ @click="${async()=>{this.tourType=An.Guided,this.escortedToursLink&&window.open(this.escortedToursLink,"_blank"),this.availabilitiesGroupedByDay=await wn(Cn[An.Guided])}}"
460
460
  @keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=An.Guided)}}"
461
461
  ?selected="${this.tourType===An.Guided}"
462
462
  >
@@ -477,7 +477,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
477
477
  ${this.shouldShowTourType[An.Self]?D`<tour-type-option
478
478
  heading="Take a tour"
479
479
  subtitle="on your own"
480
- @click="${()=>{this.sgtUrl?window.open(this.sgtUrl,"_blank"):this.tourType=An.Self}}"
480
+ @click="${async()=>{this.tourType=An.Self,this.sgtUrl&&window.open(this.sgtUrl,"_blank"),this.availabilitiesGroupedByDay=await wn(Cn[An.Self])}}"
481
481
  @keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=An.Self)}}"
482
482
  ?selected="${this.tourType===An.Self}"
483
483
  >
@@ -498,7 +498,7 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
498
498
  ${this.shouldShowTourType[An.Virtual]?D`<tour-type-option
499
499
  heading="Virtual tour"
500
500
  subtitle="over video"
501
- @click="${()=>{this.virtualToursLink?window.open(this.virtualToursLink,"_blank"):this.tourType=An.Virtual}}"
501
+ @click="${async()=>{this.tourType=An.Virtual,this.virtualToursLink&&window.open(this.virtualToursLink,"_blank"),this.availabilitiesGroupedByDay=await wn(Cn[An.Virtual])}}"
502
502
  @keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=An.Virtual)}}"
503
503
  ?selected="${this.tourType===An.Virtual}"
504
504
  >
@@ -1408,6 +1408,12 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
1408
1408
  bottom: 0;
1409
1409
  }
1410
1410
  }
1411
+
1412
+ @media screen and (max-height: 750px) {
1413
+ .launcher__window-wrapper {
1414
+ bottom: 0;
1415
+ }
1416
+ }
1411
1417
  `;var Yn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ei=class extends te{constructor(){super(...arguments),this.text="Submit",this.isLoading=!1,this.disabled=!1,this.height="initial",this.width="initial",this.render=()=>D`<button
1412
1418
  class=${In()("action-confirm-button",{loading:this.isLoading})}
1413
1419
  @click=${this.isLoading?null:this.onClick}
@@ -774,12 +774,16 @@ export class TourScheduler extends LitElement {
774
774
  ? html` <tour-type-option
775
775
  heading="Guided tour"
776
776
  subtitle="with an agent"
777
- @click="${() => {
777
+ @click="${async () => {
778
+ this.tourType = TourType.Guided;
779
+
778
780
  if (this.escortedToursLink) {
779
781
  window.open(this.escortedToursLink, "_blank");
780
- return;
781
782
  }
782
- this.tourType = TourType.Guided;
783
+ this.availabilitiesGroupedByDay =
784
+ await getAvailabilitiesGroupedByDay(
785
+ tourTypeMap[TourType.Guided]
786
+ );
783
787
  }}"
784
788
  @keydown="${(e: KeyboardEvent) => {
785
789
  if ([" ", "Enter"].includes(e.key)) {
@@ -810,12 +814,15 @@ export class TourScheduler extends LitElement {
810
814
  ? html`<tour-type-option
811
815
  heading="Take a tour"
812
816
  subtitle="on your own"
813
- @click="${() => {
817
+ @click="${async () => {
818
+ this.tourType = TourType.Self;
814
819
  if (this.sgtUrl) {
815
820
  window.open(this.sgtUrl, "_blank");
816
- return;
817
821
  }
818
- this.tourType = TourType.Self;
822
+ this.availabilitiesGroupedByDay =
823
+ await getAvailabilitiesGroupedByDay(
824
+ tourTypeMap[TourType.Self]
825
+ );
819
826
  }}"
820
827
  @keydown="${(e: KeyboardEvent) => {
821
828
  if ([" ", "Enter"].includes(e.key)) {
@@ -846,12 +853,15 @@ export class TourScheduler extends LitElement {
846
853
  ? html`<tour-type-option
847
854
  heading="Virtual tour"
848
855
  subtitle="over video"
849
- @click="${() => {
856
+ @click="${async () => {
857
+ this.tourType = TourType.Virtual;
850
858
  if (this.virtualToursLink) {
851
859
  window.open(this.virtualToursLink, "_blank");
852
- return;
853
860
  }
854
- this.tourType = TourType.Virtual;
861
+ this.availabilitiesGroupedByDay =
862
+ await getAvailabilitiesGroupedByDay(
863
+ tourTypeMap[TourType.Virtual]
864
+ );
855
865
  }}"
856
866
  @keydown="${(e: KeyboardEvent) => {
857
867
  if ([" ", "Enter"].includes(e.key)) {
@@ -302,4 +302,10 @@ export const launcherStyles = css`
302
302
  bottom: 0;
303
303
  }
304
304
  }
305
+
306
+ @media screen and (max-height: 750px) {
307
+ .launcher__window-wrapper {
308
+ bottom: 0;
309
+ }
310
+ }
305
311
  `;