@nylas/react 1.1.4 → 1.1.6

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 (148) hide show
  1. package/dist/add-circle-icon_2.entry-40ff1ddc.js +25 -0
  2. package/dist/add-circle-icon_2.entry-c9aa21bb.cjs +1 -0
  3. package/dist/archive-icon.entry-253f4253.js +15 -0
  4. package/dist/archive-icon.entry-f27eb10c.cjs +1 -0
  5. package/dist/{arrow-icon.entry-20b50784.js → arrow-icon.entry-ac939154.js} +2 -2
  6. package/dist/{arrow-icon.entry-83c3105b.cjs → arrow-icon.entry-b1ca875a.cjs} +1 -1
  7. package/dist/{bold-icon.entry-34b18d0d.js → bold-icon.entry-3594774b.js} +2 -2
  8. package/dist/{bold-icon.entry-0e3d84e1.cjs → bold-icon.entry-e815017f.cjs} +1 -1
  9. package/dist/{button-component_2.entry-54101987.cjs → button-component_2.entry-a2d998c4.cjs} +1 -1
  10. package/dist/{button-component_2.entry-8a5e99da.js → button-component_2.entry-fdca89a8.js} +6 -6
  11. package/dist/{calendar-agenda-fill-icon_51.entry-a351dca5.js → calendar-agenda-fill-icon_54.entry-40b74a1d.js} +1947 -1636
  12. package/dist/calendar-agenda-fill-icon_54.entry-d47f77af.cjs +10 -0
  13. package/dist/{calendar-cancel-icon.entry-f83e9b41.js → calendar-cancel-icon.entry-90a529f9.js} +4 -4
  14. package/dist/{calendar-cancel-icon.entry-00756264.cjs → calendar-cancel-icon.entry-98e56632.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-1817540c.js → calendar-check-icon_2.entry-09e247b0.js} +7 -7
  16. package/dist/{calendar-check-icon_2.entry-6ac948fc.cjs → calendar-check-icon_2.entry-305d0f9f.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-68e53f52.cjs → calendar-icon.entry-7570a82f.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-362428bf.js → calendar-icon.entry-ff7dfc9b.js} +2 -2
  19. package/dist/{checkbox-component_2.entry-5ce9807d.cjs → checkbox-component_2.entry-2b5a2721.cjs} +1 -1
  20. package/dist/{checkbox-component_2.entry-0d7c1916.js → checkbox-component_2.entry-2d8bf66e.js} +3 -3
  21. package/dist/{chevron-icon_3.entry-89c52603.cjs → chevron-icon_3.entry-35130198.cjs} +1 -1
  22. package/dist/{chevron-icon_3.entry-37c087a7.js → chevron-icon_3.entry-e6539933.js} +6 -6
  23. package/dist/{clock-icon_4.entry-496058ef.cjs → clock-icon_4.entry-623c482d.cjs} +1 -1
  24. package/dist/{clock-icon_4.entry-2e78febe.js → clock-icon_4.entry-797aa1f7.js} +8 -8
  25. package/dist/constants-c549b12b-7ea4c7f5.js +763 -0
  26. package/dist/constants-c549b12b-c85413b1.cjs +1 -0
  27. package/dist/copy-icon.entry-7dd1cd70.cjs +1 -0
  28. package/dist/{copy-icon.entry-6d4e05b0.js → copy-icon.entry-9b8eb24d.js} +7 -7
  29. package/dist/{delete-icon.entry-ea06b42a.js → delete-icon.entry-3d05884f.js} +7 -7
  30. package/dist/{delete-icon.entry-e98b336e.cjs → delete-icon.entry-506ee04f.cjs} +1 -1
  31. package/dist/document-refresh-icon.entry-09b959f4.js +15 -0
  32. package/dist/document-refresh-icon.entry-1ff1f7ca.cjs +1 -0
  33. package/dist/{feedbackSync-ab657d65-e8b7c001.js → feedbackSync-b56b29ed-6a2388f3.js} +1 -1
  34. package/dist/{feedbackSync-ab657d65-e650e46d.cjs → feedbackSync-b56b29ed-cf8c7876.cjs} +1 -1
  35. package/dist/{folder-icon.entry-5c3f4e8f.cjs → folder-icon.entry-2788257d.cjs} +1 -1
  36. package/dist/{folder-icon.entry-6096fbf4.js → folder-icon.entry-6f9875f7.js} +2 -2
  37. package/dist/{forward-icon.entry-4089e3bb.cjs → forward-icon.entry-49f6a480.cjs} +1 -1
  38. package/dist/forward-icon.entry-a0de0be0.js +15 -0
  39. package/dist/{globe-icon.entry-e8ca972e.cjs → globe-icon.entry-04c890dd.cjs} +1 -1
  40. package/dist/{globe-icon.entry-59f4c2f9.js → globe-icon.entry-b7f1e5b8.js} +4 -4
  41. package/dist/google-logo-icon_4.entry-66d8a50d.cjs +1 -0
  42. package/dist/{google-logo-icon_4.entry-d4b8926f.js → google-logo-icon_4.entry-b2463218.js} +254 -240
  43. package/dist/inbox-icon.entry-11813535.cjs +1 -0
  44. package/dist/{inbox-icon.entry-70dae5ec.js → inbox-icon.entry-c5cb64d8.js} +2 -2
  45. package/dist/{index-e475e0c0.js → index-600718a1.js} +3236 -3090
  46. package/dist/index-8755dd64.cjs +81 -0
  47. package/dist/{index.es-b475d61f-68a74a28.cjs → index.es-c7ca1bad-1c8a9213.cjs} +1 -1
  48. package/dist/{index.es-b475d61f-bfa2cba2.js → index.es-c7ca1bad-73894e2f.js} +1 -1
  49. package/dist/{info-icon_2.entry-f1b1dfba.cjs → info-icon_2.entry-08125285.cjs} +1 -1
  50. package/dist/{info-icon_2.entry-2bb60213.js → info-icon_2.entry-e48e3cda.js} +5 -5
  51. package/dist/{input-color-picker.entry-5ae45a9e.js → input-color-picker.entry-54e61165.js} +3 -3
  52. package/dist/{input-color-picker.entry-b669f7fb.cjs → input-color-picker.entry-acfa5da8.cjs} +1 -1
  53. package/dist/{input-component.entry-cb958501.js → input-component.entry-54df3f66.js} +3 -3
  54. package/dist/{input-component.entry-eeb95361.cjs → input-component.entry-e2fbcde0.cjs} +1 -1
  55. package/dist/{input-dropdown.entry-0b458f68.cjs → input-dropdown.entry-1509d5c4.cjs} +1 -1
  56. package/dist/{input-dropdown.entry-962605f8.js → input-dropdown.entry-8dec00e3.js} +4 -4
  57. package/dist/italic-icon.entry-79eafb05.cjs +1 -0
  58. package/dist/italic-icon.entry-c9028583.js +15 -0
  59. package/dist/{multi-select-dropdown.entry-a66408a2.cjs → multi-select-dropdown.entry-221212e3.cjs} +1 -1
  60. package/dist/{multi-select-dropdown.entry-3084e1fc.js → multi-select-dropdown.entry-2ed02a88.js} +2 -2
  61. package/dist/nylas-booked-event-card_12.entry-5125b535.cjs +1 -0
  62. package/dist/{nylas-booked-event-card_12.entry-29e2a4b1.js → nylas-booked-event-card_12.entry-fa2b2630.js} +421 -323
  63. package/dist/{nylas-form-card.entry-8465eccf.cjs → nylas-form-card.entry-2019c383.cjs} +1 -1
  64. package/dist/{nylas-form-card.entry-33b4c295.js → nylas-form-card.entry-a114052f.js} +16 -16
  65. package/dist/{nylas-if-state.entry-adb6103a.cjs → nylas-if-state.entry-480c45d1.cjs} +1 -1
  66. package/dist/{nylas-if-state.entry-9d96fc87.js → nylas-if-state.entry-de891ced.js} +3 -3
  67. package/dist/{nylas-login.entry-3f7c195e.js → nylas-login.entry-9ad74f40.js} +7 -7
  68. package/dist/{nylas-login.entry-78b968d1.cjs → nylas-login.entry-c99a7b37.cjs} +1 -1
  69. package/dist/{nylas-provider.entry-b918d0f6.cjs → nylas-provider.entry-d9c4e3d2.cjs} +1 -1
  70. package/dist/{nylas-provider.entry-19635620.js → nylas-provider.entry-faf7ef23.js} +5 -5
  71. package/dist/{nylas-scheduler-editor.entry-cfed7ae2.cjs → nylas-scheduler-editor.entry-8c5543bd.cjs} +2 -2
  72. package/dist/{nylas-scheduler-editor.entry-e848771f.js → nylas-scheduler-editor.entry-9af09bc2.js} +25 -25
  73. package/dist/{nylas-scheduling.entry-da987c02.js → nylas-scheduling.entry-8f5718ac.js} +142 -130
  74. package/dist/nylas-scheduling.entry-e778f5f6.cjs +1 -0
  75. package/dist/{nylas-time-window-picker.entry-1f76b577.cjs → nylas-time-window-picker.entry-0f396304.cjs} +1 -1
  76. package/dist/{nylas-time-window-picker.entry-3c6b29d9.js → nylas-time-window-picker.entry-690e753e.js} +13 -13
  77. package/dist/{person-icon.entry-82bbb87c.cjs → person-icon.entry-049ebaaa.cjs} +1 -1
  78. package/dist/{person-icon.entry-79fcd9fb.js → person-icon.entry-9c82640f.js} +2 -2
  79. package/dist/{play-icon.entry-3f357ea4.cjs → play-icon.entry-4b931766.cjs} +1 -1
  80. package/dist/play-icon.entry-5e77c87c.js +15 -0
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +9 -9
  83. package/dist/{refresh-icon.entry-7ce5ec90.cjs → refresh-icon.entry-1c42e8df.cjs} +1 -1
  84. package/dist/{refresh-icon.entry-1427a5e6.js → refresh-icon.entry-f9d37dda.js} +2 -2
  85. package/dist/{register-component-679c1308-b5a96acf.cjs → register-component-3444af44-38748cf2.cjs} +1 -1
  86. package/dist/{register-component-679c1308-de697ecb.js → register-component-3444af44-a9df7506.js} +1 -1
  87. package/dist/{reply-all-icon.entry-f1165660.js → reply-all-icon.entry-c4c94341.js} +2 -2
  88. package/dist/{reply-all-icon.entry-cf8114db.cjs → reply-all-icon.entry-d090c34a.cjs} +1 -1
  89. package/dist/reply-icon.entry-69438565.js +15 -0
  90. package/dist/reply-icon.entry-6a5377ae.cjs +1 -0
  91. package/dist/scheduler-config-store-ed4a8dfd-82b439de.cjs +1 -0
  92. package/dist/{scheduler-config-store-2a3b403d-e5210f72.js → scheduler-config-store-ed4a8dfd-9126610f.js} +1 -2
  93. package/dist/scheduler-store-d4784b24-32e6da1e.cjs +1 -0
  94. package/dist/{scheduler-store-908886c8-b0f43cb9.js → scheduler-store-d4784b24-4558c7eb.js} +134 -126
  95. package/dist/sent-icon.entry-36964458.cjs +1 -0
  96. package/dist/sent-icon.entry-eae2a5f1.js +15 -0
  97. package/dist/spam-icon.entry-1f47e1cf.js +15 -0
  98. package/dist/spam-icon.entry-ec0b7f17.cjs +1 -0
  99. package/dist/{star-icon.entry-88501c8b.cjs → star-icon.entry-5fb1fdfe.cjs} +1 -1
  100. package/dist/{star-icon.entry-b15601ca.js → star-icon.entry-f2ba5cf7.js} +5 -5
  101. package/dist/{stop-icon.entry-3475e257.cjs → stop-icon.entry-c9b1f0a1.cjs} +1 -1
  102. package/dist/stop-icon.entry-e9c53f8f.js +15 -0
  103. package/dist/{textarea-component.entry-d1f4dd9a.js → textarea-component.entry-43938bc5.js} +2 -2
  104. package/dist/{textarea-component.entry-683c2959.cjs → textarea-component.entry-f7a089d4.cjs} +1 -1
  105. package/dist/{time-period-selector.entry-8cfdf750.cjs → time-period-selector.entry-9151a673.cjs} +1 -1
  106. package/dist/{time-period-selector.entry-e97f86fd.js → time-period-selector.entry-dcef9d6a.js} +2 -2
  107. package/dist/{translate-icon.entry-09c5574f.js → translate-icon.entry-5b47ef85.js} +4 -4
  108. package/dist/{translate-icon.entry-5757c37c.cjs → translate-icon.entry-d563b357.cjs} +1 -1
  109. package/dist/trash-fill-icon.entry-7d201791.cjs +1 -0
  110. package/dist/{trash-fill-icon.entry-470ec1ff.js → trash-fill-icon.entry-e316b456.js} +3 -3
  111. package/dist/{underline-icon.entry-9fe74ba7.js → underline-icon.entry-03cae3b3.js} +2 -2
  112. package/dist/{underline-icon.entry-6d729068.cjs → underline-icon.entry-a6751a31.cjs} +1 -1
  113. package/dist/{warning-icon.entry-d924f8f9.js → warning-icon.entry-b3c9b687.js} +5 -5
  114. package/dist/{warning-icon.entry-c1d48318.cjs → warning-icon.entry-f4936405.cjs} +1 -1
  115. package/package.json +3 -3
  116. package/dist/add-circle-icon_2.entry-6753bd65.js +0 -25
  117. package/dist/add-circle-icon_2.entry-cd9a7f37.cjs +0 -1
  118. package/dist/archive-icon.entry-434d1696.js +0 -15
  119. package/dist/archive-icon.entry-7cb1c265.cjs +0 -1
  120. package/dist/calendar-agenda-fill-icon_51.entry-1920adc2.cjs +0 -7
  121. package/dist/constants-c31dccfe-04b9cd8a.js +0 -3883
  122. package/dist/constants-c31dccfe-1a739653.cjs +0 -15
  123. package/dist/copy-icon.entry-a1baee33.cjs +0 -1
  124. package/dist/document-refresh-icon.entry-09750b52.cjs +0 -1
  125. package/dist/document-refresh-icon.entry-afae6621.js +0 -15
  126. package/dist/forward-icon.entry-da319c05.js +0 -15
  127. package/dist/google-logo-icon_4.entry-e2001f83.cjs +0 -1
  128. package/dist/inbox-icon.entry-80ee9082.cjs +0 -1
  129. package/dist/index-6b9d4b01.cjs +0 -81
  130. package/dist/italic-icon.entry-4a89e289.cjs +0 -1
  131. package/dist/italic-icon.entry-5be07509.js +0 -15
  132. package/dist/nylas-booked-event-card_12.entry-227ccf31.cjs +0 -1
  133. package/dist/nylas-reminder-emails.entry-ec79b757.js +0 -168
  134. package/dist/nylas-reminder-emails.entry-ee76db24.cjs +0 -4
  135. package/dist/nylas-reminder-time_2.entry-105de2d0.js +0 -108
  136. package/dist/nylas-reminder-time_2.entry-83ecc1d4.cjs +0 -1
  137. package/dist/nylas-scheduling.entry-e989cf9e.cjs +0 -1
  138. package/dist/play-icon.entry-97b40470.js +0 -15
  139. package/dist/reply-icon.entry-3a601cff.js +0 -15
  140. package/dist/reply-icon.entry-3db337c9.cjs +0 -1
  141. package/dist/scheduler-config-store-2a3b403d-e6f5bcab.cjs +0 -1
  142. package/dist/scheduler-store-908886c8-62d14677.cjs +0 -1
  143. package/dist/sent-icon.entry-2c7bd48e.js +0 -15
  144. package/dist/sent-icon.entry-708b9a2b.cjs +0 -1
  145. package/dist/spam-icon.entry-3106ed3d.js +0 -15
  146. package/dist/spam-icon.entry-fa8b80c6.cjs +0 -1
  147. package/dist/stop-icon.entry-f926a8db.js +0 -15
  148. package/dist/trash-fill-icon.entry-4bbfabcc.cjs +0 -1
@@ -1,28 +1,28 @@
1
- import { i as u, r as G, c as x, d as F, f as D, j as Y, k as J, h as n, H as C, g as K, F as H } from "./index-e475e0c0.js";
2
- import { n as L, N as Q } from "./index.es-b475d61f-bfa2cba2.js";
3
- import { E as z, C as X, N as Z } from "./scheduler-store-908886c8-b0f43cb9.js";
4
- import { L as V, a as ee } from "./constants-c31dccfe-04b9cd8a.js";
5
- import { i as te, a as ne, c as ie, b as oe, f as se } from "./feedbackSync-ab657d65-e8b7c001.js";
1
+ import { i as f, r as Y, c as C, d as O, f as D, j as J, k as K, h as n, H as w, g as Q, F as W } from "./index-600718a1.js";
2
+ import { n as z, N as X } from "./index.es-c7ca1bad-73894e2f.js";
3
+ import { E as S, C as Z, N as V } from "./scheduler-store-d4784b24-4558c7eb.js";
4
+ import { L as ee, a as te } from "./constants-c549b12b-7ea4c7f5.js";
5
+ import { i as ne, a as ie, c as oe, b as se, f as ae } from "./feedbackSync-b56b29ed-6a2388f3.js";
6
6
  import "react";
7
7
  import "react-dom";
8
- class ae {
9
- constructor({ schedulerAPIURL: e, nylasSchedulerStore: i, sessionId: a, configId: s, slug: d, clientId: r }) {
8
+ class re {
9
+ constructor({ schedulerAPIURL: e, nylasSchedulerStore: i, sessionId: a, configId: o, slug: r, clientId: d }) {
10
10
  if (!e)
11
11
  throw new Error("schedulerAPIURL is required");
12
12
  if (!i)
13
13
  throw new Error("nylasSchedulerStore is required");
14
- if (!a && !s && !(d || r))
14
+ if (!a && !o && !(r || d))
15
15
  throw new Error("sessionId is required for private configs. If using public config either pass a configurationId or a combination of slug and clientId.");
16
- e === "/" && (e = new URL(window.location.href).origin), this.configId = s, this.sessionId = a, this.schedulerAPIURL = e, this.nylasSchedulerStore = i, this.slug = d, this.clientId = r;
16
+ e === "/" && (e = new URL(window.location.href).origin), this.configId = o, this.sessionId = a, this.schedulerAPIURL = e, this.nylasSchedulerStore = i, this.slug = r, this.clientId = d;
17
17
  }
18
18
  init() {
19
- F("NylasConnector init");
19
+ O("NylasConnector init");
20
20
  }
21
21
  get schedulerStore() {
22
22
  return this.nylasSchedulerStore;
23
23
  }
24
24
  get scheduler() {
25
- return this._schedulerAPIConnector ? this._schedulerAPIConnector : (this._schedulerAPIConnector = new Z({
25
+ return this._schedulerAPIConnector ? this._schedulerAPIConnector : (this._schedulerAPIConnector = new V({
26
26
  schedulerAPIURL: this.schedulerAPIURL,
27
27
  schedulerStore: this.schedulerStore,
28
28
  sessionId: this.sessionId,
@@ -35,10 +35,10 @@ class ae {
35
35
  this.nylasSchedulerStore.reset();
36
36
  }
37
37
  }
38
- const E = (t, e) => {
39
- const i = t.isLoading, a = t.showNotification, s = t.nylasBranding;
38
+ const x = (t, e) => {
39
+ const i = t.isLoading, a = t.showNotification, o = t.nylasBranding;
40
40
  return n(
41
- H,
41
+ W,
42
42
  null,
43
43
  a && n("nylas-notification", null),
44
44
  i && n(
@@ -60,28 +60,28 @@ const E = (t, e) => {
60
60
  )
61
61
  ),
62
62
  !i && e,
63
- n("div", { class: "footer" }, s && n(
64
- H,
63
+ n("div", { class: "footer" }, o && n(
64
+ W,
65
65
  null,
66
66
  "Powered by ",
67
67
  n("nylas-logo", null)
68
68
  ))
69
69
  );
70
- }, W = (t, e) => n("div", { class: "message-banner" }, e), re = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{padding:0.5rem 4px 0;height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', de = re, $ = { title: u.t("genericErrorTitle"), type: L.Error, category: z.Component }, le = class {
70
+ }, $ = (t, e) => n("div", { class: "message-banner" }, e), de = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{padding:0.5rem 4px 0;height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', le = de, q = { title: f.t("genericErrorTitle"), type: z.Error, category: S.Component }, ce = class {
71
71
  constructor(t) {
72
- G(this, t), this.init = x(this, "init", 7), this.schedulerWillLoad = x(this, "schedulerWillLoad", 7), this.schedulerDidLoad = x(this, "schedulerDidLoad", 7), this.nylasSchedulerError = x(this, "nylasSchedulerError", 7), this.configSettingsLoaded = x(this, "configSettingsLoaded", 7), this.bookingRefExtracted = x(this, "bookingRefExtracted", 7), this.bookedEventInfo = x(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || `${u.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1;
72
+ Y(this, t), this.init = C(this, "init", 7), this.schedulerWillLoad = C(this, "schedulerWillLoad", 7), this.schedulerDidLoad = C(this, "schedulerDidLoad", 7), this.nylasSchedulerError = C(this, "nylasSchedulerError", 7), this.configSettingsLoaded = C(this, "configSettingsLoaded", 7), this.bookingRefExtracted = C(this, "bookingRefExtracted", 7), this.bookedEventInfo = C(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || `${f.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null;
73
73
  }
74
74
  connectedCallback() {
75
- F("[nylas-scheduler] connectedCallback");
75
+ O("[nylas-scheduler] connectedCallback");
76
76
  }
77
77
  async componentWillLoad() {
78
- var s, d;
79
- F("[nylas-scheduler] Component will load"), this.enableUserFeedback && !te() && ne({
78
+ var o, r;
79
+ O("[nylas-scheduler] Component will load"), this.enableUserFeedback && !ne() && ie({
80
80
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
81
- release: "1.1.4",
82
- integrations: (r) => [
83
- ...r.filter((o) => !1),
84
- se({
81
+ release: "1.1.6",
82
+ integrations: (d) => [
83
+ ...d.filter((s) => !1),
84
+ ae({
85
85
  colorScheme: "system",
86
86
  autoInject: !1
87
87
  })
@@ -93,27 +93,27 @@ const E = (t, e) => {
93
93
  if ("schedulerWillLoad" in this.eventOverrides && (await this.eventOverrides.schedulerWillLoad(t, this.nylasSchedulerConnector), t.defaultPrevented))
94
94
  return;
95
95
  this.stores = {
96
- scheduler: X({
96
+ scheduler: Z({
97
97
  bookingInfo: this.bookingInfo,
98
98
  nylasBranding: this.nylasBranding,
99
99
  ...this.defaultSchedulerState
100
100
  })
101
- }, this.baseProvider = new Q(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides), this.refConfigId = this.configurationId;
101
+ }, this.baseProvider = new X(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides), this.refConfigId = this.configurationId;
102
102
  let e;
103
103
  if (this.rescheduleBookingRef) {
104
- const [r, o, c] = D(this.rescheduleBookingRef);
105
- this.refConfigId = r, this.stores.scheduler.set("rescheduleBookingId", o), e = this.bookingRefExtracted.emit({ configurationId: r, bookingId: o });
104
+ const [d, s, c] = D(this.rescheduleBookingRef);
105
+ this.refConfigId = d, this.stores.scheduler.set("rescheduleBookingId", s), e = this.bookingRefExtracted.emit({ configurationId: d, bookingId: s });
106
106
  } else if (this.cancelBookingRef) {
107
- const [r, o, c] = D(this.cancelBookingRef);
108
- this.refConfigId = r, this.stores.scheduler.set("cancelBookingId", o), e = this.bookingRefExtracted.emit({ configurationId: r, bookingId: o });
107
+ const [d, s, c] = D(this.cancelBookingRef);
108
+ this.refConfigId = d, this.stores.scheduler.set("cancelBookingId", s), e = this.bookingRefExtracted.emit({ configurationId: d, bookingId: s });
109
109
  } else if (this.organizerConfirmationBookingRef) {
110
- const [r, o, c] = D(this.organizerConfirmationBookingRef);
111
- this.refConfigId = r, this.stores.scheduler.set("organizerConfirmationBookingId", o), this.stores.scheduler.set("organizerConfirmationSalt", c), e = this.bookingRefExtracted.emit({ configurationId: r, bookingId: o, salt: c });
110
+ const [d, s, c] = D(this.organizerConfirmationBookingRef);
111
+ this.refConfigId = d, this.stores.scheduler.set("organizerConfirmationBookingId", s), this.stores.scheduler.set("organizerConfirmationSalt", c), e = this.bookingRefExtracted.emit({ configurationId: d, bookingId: s, salt: c });
112
112
  }
113
113
  if ("bookingRefExtracted" in this.eventOverrides && (await this.eventOverrides.bookingRefExtracted(e, this.nylasSchedulerConnector), e.defaultPrevented) || !this.checkIfSessionIdOrConfigIdExists())
114
114
  return;
115
- const i = (s = this.baseProvider) == null ? void 0 : s.getStore("scheduler");
116
- this.nylasSchedulerConnector = new ae({
115
+ const i = (o = this.baseProvider) == null ? void 0 : o.getStore("scheduler");
116
+ this.nylasSchedulerConnector = new re({
117
117
  schedulerAPIURL: this.schedulerApiUrl,
118
118
  sessionId: this.sessionId,
119
119
  configId: this.refConfigId,
@@ -122,48 +122,48 @@ const E = (t, e) => {
122
122
  nylasSchedulerStore: i
123
123
  });
124
124
  const a = this.init.emit(this.host);
125
- "init" in this.eventOverrides && (await this.eventOverrides.init(a, this.nylasSchedulerConnector), a.defaultPrevented) || ((d = this.baseProvider) == null || d.componentWillLoad(this.nylasSchedulerConnector), this.applyThemeConfig(this.themeConfig));
125
+ "init" in this.eventOverrides && (await this.eventOverrides.init(a, this.nylasSchedulerConnector), a.defaultPrevented) || ((r = this.baseProvider) == null || r.componentWillLoad(this.nylasSchedulerConnector), this.applyThemeConfig(this.themeConfig));
126
126
  }
127
127
  async componentDidLoad() {
128
- var c, y, m, g, p, f, b, I;
128
+ var c, m, p, g, h, u, k, B;
129
129
  (c = this.baseProvider) == null || c.componentDidLoad();
130
130
  const t = this.schedulerDidLoad.emit(this.host);
131
131
  if ("schedulerDidLoad" in this.eventOverrides && (await this.eventOverrides.schedulerDidLoad(t, this.nylasSchedulerConnector), t.defaultPrevented) || !this.checkIfSessionIdOrConfigIdExists())
132
132
  return;
133
133
  this.localizationChanged(this.localization);
134
- const e = await ((y = this.nylasSchedulerConnector) == null ? void 0 : y.scheduler.getUISettings());
134
+ const e = await ((m = this.nylasSchedulerConnector) == null ? void 0 : m.scheduler.getUISettings());
135
135
  if (!e || "error" in e) {
136
136
  this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(e == null ? void 0 : e.error) }, host: this.host });
137
137
  return;
138
138
  } else {
139
- "data" in e && ((m = e.data) != null && m.appearance) && console.info("Appearance settings have been returned from the configuration used byt his scheduling page; please remember to grab them from the configSettingsLoaded event and apply them as desired.");
140
- const h = this.configSettingsLoaded.emit({ settings: e });
141
- if ("configSettingsLoaded" in this.eventOverrides && (await this.eventOverrides.configSettingsLoaded(h, this.nylasSchedulerConnector), h.defaultPrevented))
139
+ "data" in e && ((p = e.data) != null && p.appearance) && console.info("Appearance settings have been returned from the configuration used byt his scheduling page; please remember to grab them from the configSettingsLoaded event and apply them as desired.");
140
+ const b = this.configSettingsLoaded.emit({ settings: e });
141
+ if ("configSettingsLoaded" in this.eventOverrides && (await this.eventOverrides.configSettingsLoaded(b, this.nylasSchedulerConnector), b.defaultPrevented))
142
142
  return;
143
143
  }
144
- const i = (g = this.baseProvider) == null ? void 0 : g.getStore("scheduler"), a = (f = (p = i == null ? void 0 : i.get("configSettings")) == null ? void 0 : p.scheduler) == null ? void 0 : f.available_days_in_future, s = i == null ? void 0 : i.get("selectedTimeslot");
145
- if (s && (s != null && s.start_time)) {
146
- if (!this.isTimeslotValid(s))
144
+ const i = (g = this.baseProvider) == null ? void 0 : g.getStore("scheduler"), a = (u = (h = i == null ? void 0 : i.get("configSettings")) == null ? void 0 : h.scheduler) == null ? void 0 : u.available_days_in_future, o = i == null ? void 0 : i.get("selectedTimeslot");
145
+ if (o && (o != null && o.start_time)) {
146
+ if (!this.isTimeslotValid(o))
147
147
  return;
148
148
  if (i != null && i.get("showBookingForm")) {
149
- i == null || i.set("selectedDate", s.start_time);
149
+ i == null || i.set("selectedDate", o.start_time);
150
150
  return;
151
151
  }
152
152
  }
153
- const d = i == null ? void 0 : i.get("selectedDate"), r = i == null ? void 0 : i.get("availability");
154
- let o;
155
- if (!(r && r.length > 0)) {
156
- if (d) {
157
- const { startTime: h, endTime: l, endTimeForAvailableDaysInFuture: v } = this.validateAvailableDaysInFuture(d, a || 30);
158
- d.getTime() < v * 1e3 && (o = await ((I = this.nylasSchedulerConnector) == null ? void 0 : I.scheduler.getAvailability(h, l)));
153
+ const r = i == null ? void 0 : i.get("selectedDate"), d = i == null ? void 0 : i.get("availability");
154
+ let s;
155
+ if (!(d && d.length > 0)) {
156
+ if (r) {
157
+ const { startTime: b, endTime: y, endTimeForAvailableDaysInFuture: _ } = this.validateAvailableDaysInFuture(r, a || 30);
158
+ r.getTime() < _ * 1e3 && (s = await ((B = this.nylasSchedulerConnector) == null ? void 0 : B.scheduler.getAvailability(b, y)));
159
159
  } else {
160
- const h = /* @__PURE__ */ new Date(), { startTime: l, endTime: v, endTimeForAvailableDaysInFuture: B } = this.validateAvailableDaysInFuture(h, a || 30);
161
- h.getTime() < B * 1e3 && (o = await ((b = this.nylasSchedulerConnector) == null ? void 0 : b.scheduler.getAvailability(l, v)));
160
+ const b = /* @__PURE__ */ new Date(), { startTime: y, endTime: _, endTimeForAvailableDaysInFuture: L } = this.validateAvailableDaysInFuture(b, a || 30);
161
+ b.getTime() < L * 1e3 && (s = await ((k = this.nylasSchedulerConnector) == null ? void 0 : k.scheduler.getAvailability(y, _)));
162
162
  }
163
- if ((!o || "error" in o) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(o == null ? void 0 : o.error) }, host: this.host }), !d) {
164
- let h = /* @__PURE__ */ new Date();
165
- const l = i == null ? void 0 : i.get("availability").find((v) => new Date(v.start_time) > /* @__PURE__ */ new Date());
166
- l && (h = l.start_time), i == null || i.set("selectedDate", h);
163
+ if ((!s || "error" in s) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(s == null ? void 0 : s.error) }, host: this.host }), !r) {
164
+ let b = /* @__PURE__ */ new Date();
165
+ const y = i == null ? void 0 : i.get("availability").find((_) => new Date(_.start_time) > /* @__PURE__ */ new Date());
166
+ y && (b = y.start_time), i == null || i.set("selectedDate", b);
167
167
  }
168
168
  }
169
169
  }
@@ -178,27 +178,27 @@ const E = (t, e) => {
178
178
  rescheduleBookingRefChanged(t) {
179
179
  var e, i;
180
180
  if (t) {
181
- const [a, s] = D(t);
182
- (e = this.stores) == null || e.scheduler.set("rescheduleBookingId", s), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
181
+ const [a, o] = D(t);
182
+ (e = this.stores) == null || e.scheduler.set("rescheduleBookingId", o), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
183
183
  }
184
184
  }
185
185
  cancelBookingRefChanged(t) {
186
186
  var e, i;
187
187
  if (t) {
188
- const [a, s] = D(t);
189
- (e = this.stores) == null || e.scheduler.set("cancelBookingId", s), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
188
+ const [a, o] = D(t);
189
+ (e = this.stores) == null || e.scheduler.set("cancelBookingId", o), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
190
190
  }
191
191
  }
192
192
  organizerConfirmationBookingRefChanged(t) {
193
193
  var e, i;
194
194
  if (t) {
195
- const [a, s] = D(t);
196
- (e = this.stores) == null || e.scheduler.set("organizerConfirmationBookingId", s), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
195
+ const [a, o] = D(t);
196
+ (e = this.stores) == null || e.scheduler.set("organizerConfirmationBookingId", o), this.refConfigId = a, (i = this.nylasSchedulerConnector) == null || i.scheduler.setConfigId(a);
197
197
  }
198
198
  }
199
199
  localizationChanged(t) {
200
200
  t && Object.keys(t).forEach((e) => {
201
- e in V && (u.addResourceBundle(e, "translation", t[e], !1, !0), this.language = this.language);
201
+ e in ee && (f.addResourceBundle(e, "translation", t[e], !1, !0), this.language = this.language);
202
202
  });
203
203
  }
204
204
  themeConfigChanged(t) {
@@ -206,7 +206,7 @@ const E = (t, e) => {
206
206
  }
207
207
  languageChanged(t) {
208
208
  const e = t.detail;
209
- this.language = e, u.changeLanguage(e);
209
+ this.language = e, f.changeLanguage(e);
210
210
  }
211
211
  async registerComponentHandler(t) {
212
212
  var e;
@@ -217,48 +217,50 @@ const E = (t, e) => {
217
217
  (e = this.baseProvider) == null || e.unregisterComponent(t.detail);
218
218
  }
219
219
  async monthChangedHandler(t) {
220
- var r, o, c, y, m, g, p;
221
- const e = t.detail, i = (y = (c = (o = (r = this.nylasSchedulerConnector) == null ? void 0 : r.schedulerStore) == null ? void 0 : o.get("configSettings")) == null ? void 0 : c.scheduler) == null ? void 0 : y.available_days_in_future, { startTime: a, endTime: s, endTimeForAvailableDaysInFuture: d } = this.validateAvailableDaysInFuture(e, i || 30);
222
- if (a < d && e.getTime() < d * 1e3) {
223
- const f = await ((m = this.nylasSchedulerConnector) == null ? void 0 : m.scheduler.getAvailability(a, s));
224
- (!f || "error" in f) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(f == null ? void 0 : f.error) }, host: this.host });
225
- const b = (g = this.stores) == null ? void 0 : g.scheduler.get("selectableDates");
226
- b && b.length > 0 && ((p = this.stores) == null || p.scheduler.set("selectedDate", b[0]));
220
+ var d, s, c, m, p, g, h;
221
+ const e = t.detail, i = (m = (c = (s = (d = this.nylasSchedulerConnector) == null ? void 0 : d.schedulerStore) == null ? void 0 : s.get("configSettings")) == null ? void 0 : c.scheduler) == null ? void 0 : m.available_days_in_future, { startTime: a, endTime: o, endTimeForAvailableDaysInFuture: r } = this.validateAvailableDaysInFuture(e, i || 30);
222
+ if (a < r && e.getTime() < r * 1e3) {
223
+ const u = await ((p = this.nylasSchedulerConnector) == null ? void 0 : p.scheduler.getAvailability(a, o));
224
+ (!u || "error" in u) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(u == null ? void 0 : u.error) }, host: this.host });
225
+ const k = (g = this.stores) == null ? void 0 : g.scheduler.get("selectableDates");
226
+ k && k.length > 0 && ((h = this.stores) == null || h.scheduler.set("selectedDate", k[0]));
227
227
  }
228
228
  }
229
229
  mapToBookingData(t) {
230
- var r, o, c;
231
- const e = (r = this.stores) == null ? void 0 : r.scheduler.get("selectedTimeslot"), i = (o = this.stores) == null ? void 0 : o.scheduler.get("selectedLanguage"), a = (c = this.stores) == null ? void 0 : c.scheduler.get("selectedTimezone"), s = e != null && e.start_time ? new Date(e == null ? void 0 : e.start_time).getTime() / 1e3 : "", d = e != null && e.end_time ? new Date(e == null ? void 0 : e.end_time).getTime() / 1e3 : "";
230
+ var d, s, c;
231
+ const e = (d = this.stores) == null ? void 0 : d.scheduler.get("selectedTimeslot"), i = (s = this.stores) == null ? void 0 : s.scheduler.get("selectedLanguage"), a = (c = this.stores) == null ? void 0 : c.scheduler.get("selectedTimezone"), o = e != null && e.start_time ? new Date(e == null ? void 0 : e.start_time).getTime() / 1e3 : "", r = e != null && e.end_time ? new Date(e == null ? void 0 : e.end_time).getTime() / 1e3 : "";
232
232
  return {
233
233
  additional_guests: t.guests,
234
- guest: t.primaryParticipant,
235
- additional_fields: t.additionalFields,
236
- start_time: s,
237
- end_time: d,
234
+ guest: { ...t.primaryParticipant },
235
+ additional_fields: { ...t.additionalFields },
236
+ start_time: o,
237
+ end_time: r,
238
238
  email_language: i,
239
239
  timezone: a
240
240
  };
241
241
  }
242
242
  async bookButtonClickedHandler(t) {
243
- var m, g, p, f, b, I, h;
244
- const e = t.detail, i = this.mapToBookingData(e), s = { ...(g = (m = this.nylasSchedulerConnector) == null ? void 0 : m.schedulerStore) == null ? void 0 : g.get("bookingInfo"), ...e };
245
- (p = this.stores) == null || p.scheduler.set("bookingInfo", s);
246
- const r = (b = (f = this.nylasSchedulerConnector) == null ? void 0 : f.schedulerStore) == null ? void 0 : b.get("rescheduleBookingId");
247
- if (r) {
248
- const l = await ((I = this.nylasSchedulerConnector) == null ? void 0 : I.scheduler.rescheduleBooking(r, e));
249
- (!l || "error" in l) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(l == null ? void 0 : l.error) }, host: this.host });
250
- const v = l == null ? void 0 : l.data, B = this.bookedEventInfo.emit({ ...l, data: { ...v, ...i } });
251
- "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(B, this.nylasSchedulerConnector);
243
+ var c, m, p, g;
244
+ if (t.defaultPrevented)
245
+ return;
246
+ const e = t.detail, i = this.mapToBookingData(e);
247
+ this.bookingInfoConfirmed = e;
248
+ const o = (m = (c = this.nylasSchedulerConnector) == null ? void 0 : c.schedulerStore) == null ? void 0 : m.get("rescheduleBookingId");
249
+ if (o) {
250
+ const h = await ((p = this.nylasSchedulerConnector) == null ? void 0 : p.scheduler.rescheduleBooking(o, e));
251
+ (!h || "error" in h) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(h == null ? void 0 : h.error) }, host: this.host });
252
+ const u = h == null ? void 0 : h.data, k = this.bookedEventInfo.emit({ ...h, data: { ...u, ...i } });
253
+ "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(k, this.nylasSchedulerConnector);
252
254
  return;
253
255
  }
254
- const o = await ((h = this.nylasSchedulerConnector) == null ? void 0 : h.scheduler.bookTimeslot(e));
255
- (!o || "error" in o) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(o == null ? void 0 : o.error) }, host: this.host });
256
- const c = o == null ? void 0 : o.data, y = this.bookedEventInfo.emit({ ...o, data: { ...c, ...i } });
257
- "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(y, this.nylasSchedulerConnector);
256
+ const r = await ((g = this.nylasSchedulerConnector) == null ? void 0 : g.scheduler.bookTimeslot(e));
257
+ (!r || "error" in r) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(r == null ? void 0 : r.error) }, host: this.host });
258
+ const d = r == null ? void 0 : r.data, s = this.bookedEventInfo.emit({ ...r, data: { ...d, ...i } });
259
+ "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(s, this.nylasSchedulerConnector);
258
260
  }
259
261
  dateSelectedHandler(t) {
260
262
  const e = t.detail;
261
- this.selectedDateLabel = e ? e.toLocaleDateString(void 0, { dateStyle: "full" }) : `${u.t("noDateSelected")}`;
263
+ this.selectedDateLabel = e ? e.toLocaleDateString(void 0, { dateStyle: "full" }) : `${f.t("noDateSelected")}`;
262
264
  }
263
265
  cancelBookedEventErrorHandler(t) {
264
266
  this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(t.detail.error) }, host: this.host });
@@ -277,15 +279,15 @@ const E = (t, e) => {
277
279
  }
278
280
  feedbackSubmittedHandler(t) {
279
281
  const i = {
280
- eventId: ie("Scheduling Page User Feedback"),
282
+ eventId: oe("Scheduling Page User Feedback"),
281
283
  message: t.detail.feedback
282
284
  };
283
- oe(i, {
285
+ se(i, {
284
286
  includeReplay: !0,
285
287
  captureContext: {
286
288
  tags: {
287
289
  "nylas-web-element": "nylas-schduling",
288
- "nylas-web-element-version": "1.1.4"
290
+ "nylas-web-element-version": "1.1.6"
289
291
  },
290
292
  extra: {
291
293
  configId: this.configurationId,
@@ -306,9 +308,9 @@ const E = (t, e) => {
306
308
  }
307
309
  getErrorObject(t) {
308
310
  return {
309
- title: (t == null ? void 0 : t.title) || $.title,
310
- category: (t == null ? void 0 : t.category) || $.category,
311
- type: L.Error,
311
+ title: (t == null ? void 0 : t.title) || q.title,
312
+ category: (t == null ? void 0 : t.category) || q.category,
313
+ type: z.Error,
312
314
  description: (t == null ? void 0 : t.message) || "",
313
315
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
314
316
  ttl: "none"
@@ -317,11 +319,11 @@ const E = (t, e) => {
317
319
  checkIfSessionIdOrConfigIdExists() {
318
320
  if (!this.sessionId && !this.refConfigId && !(this.slug && this.clientId)) {
319
321
  let t = "";
320
- return this.sessionId || (t += u.t("sessionIdRequiredErrorMessage")), !this.sessionId && !this.refConfigId && !(this.slug && this.clientId) && (t = u.t("sessionIdRequiredErrorMessage") + " " + u.t("publicConfigErrorMessage")), this.nylasSchedulerError.emit({
322
+ return this.sessionId || (t += f.t("sessionIdRequiredErrorMessage")), !this.sessionId && !this.refConfigId && !(this.slug && this.clientId) && (t = f.t("sessionIdRequiredErrorMessage") + " " + f.t("publicConfigErrorMessage")), this.nylasSchedulerError.emit({
321
323
  notification: {
322
- title: u.t("schedulingComponentErrorTitle"),
323
- category: z.Component,
324
- type: L.Error,
324
+ title: f.t("schedulingComponentErrorTitle"),
325
+ category: S.Component,
326
+ type: z.Error,
325
327
  description: t,
326
328
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
327
329
  ttl: "none"
@@ -334,10 +336,10 @@ const E = (t, e) => {
334
336
  isTimeslotValid(t) {
335
337
  return new Date(t.start_time) < /* @__PURE__ */ new Date() ? (this.nylasSchedulerError.emit({
336
338
  notification: {
337
- title: u.t("invalidTimeslotErrorTitle"),
338
- category: z.Component,
339
- type: L.Error,
340
- description: u.t("invalidTimeslotErrorMessage"),
339
+ title: f.t("invalidTimeslotErrorTitle"),
340
+ category: S.Component,
341
+ type: z.Error,
342
+ description: f.t("invalidTimeslotErrorMessage"),
341
343
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
342
344
  ttl: "none"
343
345
  },
@@ -345,43 +347,53 @@ const E = (t, e) => {
345
347
  }), !1) : !0;
346
348
  }
347
349
  validateAvailableDaysInFuture(t, e) {
348
- const i = /* @__PURE__ */ new Date(), a = new Date(t.getFullYear(), t.getMonth(), 1).getTime() / 1e3, s = new Date(t.getFullYear(), t.getMonth() + 1, 1).getTime() / 1e3, d = Math.floor(Y(i, e).getTime() / 1e3), r = Math.min(d, s);
349
- return { startTime: a < i.getTime() / 1e3 ? Math.floor(i.getTime() / 1e3) : a, endTime: r, endTimeForAvailableDaysInFuture: d };
350
+ const i = /* @__PURE__ */ new Date(), a = new Date(t.getFullYear(), t.getMonth(), 1).getTime() / 1e3, o = new Date(t.getFullYear(), t.getMonth() + 1, 1).getTime() / 1e3, r = Math.floor(J(i, e).getTime() / 1e3), d = Math.min(r, o);
351
+ return { startTime: a < i.getTime() / 1e3 ? Math.floor(i.getTime() / 1e3) : a, endTime: d, endTimeForAvailableDaysInFuture: r };
350
352
  }
351
353
  applyThemeConfig(t) {
352
354
  if (t)
353
355
  for (const [e, i] of Object.entries(t))
354
356
  this.host.style.setProperty(`${e}`, i);
355
357
  }
356
- onFeedbackClick() {
357
- this.showFeedbackModal = !0;
358
+ onFeedbackClick(t) {
359
+ t.preventDefault(), this.showFeedbackModal = !0;
360
+ }
361
+ redirectToCustomUrl(t) {
362
+ window.location.assign(t);
358
363
  }
359
364
  render() {
360
- var b, I, h, l, v, B, R, S, O, P, A;
361
- const t = this.mode === "app", e = (b = this.baseProvider) == null ? void 0 : b.getStore("scheduler"), i = e == null ? void 0 : e.get("eventInfo"), a = e == null ? void 0 : e.get("showBookingForm"), s = e == null ? void 0 : e.get("cancelledEventInfo"), d = e == null ? void 0 : e.get("cancelBookingId"), r = e == null ? void 0 : e.get("selectedTimeslot"), o = e == null ? void 0 : e.get("rescheduleBookingId"), c = e == null ? void 0 : e.get("organizerConfirmationBookingId"), y = e == null ? void 0 : e.get("rejectBookingId"), m = e == null ? void 0 : e.get("confirmedEventInfo"), g = (e == null ? void 0 : e.get("nylasBranding")) || this.nylasBranding, p = e == null ? void 0 : e.get("selectedDate"), f = (h = (I = e == null ? void 0 : e.get("configSettings")) == null ? void 0 : I.scheduler) == null ? void 0 : h.confirmation_redirect_url;
362
- if (this.selectedDateLabel = p && this.language ? J(p.toLocaleDateString(ee[this.language], { dateStyle: "full" })) : `${u.t("noDateSelected")}`, t && (d || y) && !s)
363
- return n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancel-flow-page", part: "cancel-flow-page" }, n("nylas-cancel-booking-form", { selectedTimeslot: r, cancelBookingId: d, rejectBookingId: y, exportparts: "ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
365
+ var k, B, b, y, _, L, P, N, A, M;
366
+ const t = this.mode === "app", e = (k = this.baseProvider) == null ? void 0 : k.getStore("scheduler"), i = e == null ? void 0 : e.get("eventInfo"), a = e == null ? void 0 : e.get("showBookingForm"), o = e == null ? void 0 : e.get("cancelledEventInfo"), r = e == null ? void 0 : e.get("cancelBookingId"), d = e == null ? void 0 : e.get("selectedTimeslot"), s = e == null ? void 0 : e.get("rescheduleBookingId"), c = e == null ? void 0 : e.get("organizerConfirmationBookingId"), m = e == null ? void 0 : e.get("rejectBookingId"), p = e == null ? void 0 : e.get("confirmedEventInfo"), g = (e == null ? void 0 : e.get("nylasBranding")) || this.nylasBranding, h = e == null ? void 0 : e.get("selectedDate"), u = (b = (B = e == null ? void 0 : e.get("configSettings")) == null ? void 0 : B.scheduler) == null ? void 0 : b.confirmation_redirect_url;
367
+ if (this.selectedDateLabel = h && this.language ? K(h.toLocaleDateString(te[this.language], { dateStyle: "full" })) : `${f.t("noDateSelected")}`, t && (r || m) && !o)
368
+ return n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancel-flow-page", part: "cancel-flow-page" }, n("nylas-cancel-booking-form", { selectedTimeslot: d, cancelBookingId: r, rejectBookingId: m, exportparts: "ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
364
369
  if (t && c)
365
- return n(C, null, n(E, null, n("div", { class: "manual-confirmation-page", part: "manual-confirmation-page" }, n("nylas-organizer-confirmation-card", { organizerConfirmationBookingId: c, exportparts: "nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
366
- if (t && s)
367
- return n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, n("nylas-cancelled-event-card", { cancelledEventInfo: s, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
368
- if (t && m)
369
- return n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, n("nylas-confirmed-event-card", { confirmedEventInfo: m, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
370
- if (t && i && f) {
371
- const _ = (v = (l = this.stores) == null ? void 0 : l.scheduler.get("bookingInfo")) == null ? void 0 : v.primaryParticipant, N = (R = (B = this.stores) == null ? void 0 : B.scheduler.get("bookingInfo")) == null ? void 0 : R.additionalFields, w = (S = this.stores) == null ? void 0 : S.scheduler.get("selectedTimeslot"), M = (O = this.stores) == null ? void 0 : O.scheduler.get("selectedTimezone"), U = (P = this.stores) == null ? void 0 : P.scheduler.get("selectedLanguage"), T = (A = this.stores) == null ? void 0 : A.scheduler.get("configSettings"), j = this.configurationId ? this.configurationId : T == null ? void 0 : T.configuration_id, q = window.location.search, k = new URLSearchParams(q);
372
- k.set("booking_id", i.booking_id), _ != null && _.name && k.set("name", _.name), _ != null && _.email && k.set("email", _.email), w != null && w.start_time && k.set("start_time", (new Date(w.start_time).getTime() / 1e3).toString()), w != null && w.end_time && k.set("end_time", (new Date(w.end_time).getTime() / 1e3).toString()), M && k.set("tz", M), U && k.set("language", U), N && k.set("additional_values", JSON.stringify(N)), this.slug && k.set("page_slug", this.slug), j && k.set("config_id", j), window.location.assign(`${f}?${k.toString()}`);
370
+ return n(w, null, n(x, null, n("div", { class: "manual-confirmation-page", part: "manual-confirmation-page" }, n("nylas-organizer-confirmation-card", { organizerConfirmationBookingId: c, exportparts: "nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
371
+ if (t && o)
372
+ return n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, n("nylas-cancelled-event-card", { cancelledEventInfo: o, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
373
+ if (t && p)
374
+ return n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, n("nylas-confirmed-event-card", { confirmedEventInfo: p, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
375
+ if (t && i && u) {
376
+ const l = (y = this.bookingInfoConfirmed) == null ? void 0 : y.primaryParticipant, E = ((_ = this.bookingInfoConfirmed) == null ? void 0 : _.additionalFields) || {};
377
+ if (this.bookingInfo && typeof ((L = this.bookingInfo) == null ? void 0 : L.additionalFields) < "u") {
378
+ const T = this.bookingInfo.additionalFields;
379
+ Object.keys(T).forEach((F) => {
380
+ !E[F] && (T != null && T[F]) && (E[F] = T[F].value);
381
+ });
382
+ }
383
+ const I = (P = this.stores) == null ? void 0 : P.scheduler.get("selectedTimeslot"), U = (N = this.stores) == null ? void 0 : N.scheduler.get("selectedTimezone"), j = (A = this.stores) == null ? void 0 : A.scheduler.get("selectedLanguage"), R = (M = this.stores) == null ? void 0 : M.scheduler.get("configSettings"), H = this.configurationId ? this.configurationId : R == null ? void 0 : R.configuration_id, G = window.location.search, v = new URLSearchParams(G);
384
+ v.set("booking_id", i.booking_id), l != null && l.name && v.set("name", l.name), l != null && l.email && v.set("email", l.email), I != null && I.start_time && v.set("start_time", (new Date(I.start_time).getTime() / 1e3).toString()), I != null && I.end_time && v.set("end_time", (new Date(I.end_time).getTime() / 1e3).toString()), U && v.set("tz", U), j && v.set("language", j), E && v.set("additional_values", JSON.stringify(E)), this.slug && v.set("page_slug", this.slug), H && v.set("config_id", H), this.redirectToCustomUrl(`${u}?${v.toString()}`);
373
385
  return;
374
386
  }
375
387
  if (t && i)
376
- return n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "booked-event-page", part: "booked-event-page" }, n("nylas-booked-event-card", { selectedTimeslot: r, eventInfo: i, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
377
- if (t && (!i || o) && !a) {
378
- const _ = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
379
- return n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, o && n(W, null, `${u.t("rescheduleTitle")}`), n("div", { class: "select-date-page", part: "select-date-page" }, n("div", { class: "left-panel" }, n("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), n("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), n("div", { class: `right-panel ${o ? "reschedule" : ""}` }, n("h2", null, n("calendar-icon", null), n("span", { id: "selectedDate" }, this.selectedDateLabel)), n("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, _ && n("span", { slot: "timeslot-picker-cta-label" }, n("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
388
+ return n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, n("div", { class: "booked-event-page", part: "booked-event-page" }, n("nylas-booked-event-card", { selectedTimeslot: d, eventInfo: i, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
389
+ if (t && (!i || s) && !a) {
390
+ const l = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
391
+ return n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, s && n($, null, `${f.t("rescheduleTitle")}`), n("div", { class: "select-date-page", part: "select-date-page" }, n("div", { class: "left-panel" }, n("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), n("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), n("div", { class: `right-panel ${s ? "reschedule" : ""}` }, n("h2", null, n("calendar-icon", null), n("span", { id: "selectedDate" }, this.selectedDateLabel)), n("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, l && n("span", { slot: "timeslot-picker-cta-label" }, n("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (E) => this.onFeedbackClick(E) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null));
380
392
  }
381
- return t && !i && a ? n(C, null, n(E, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, o && n(W, null, `${u.t("rescheduleTitle")}`), n("div", { class: "additional-data-page", part: "additional-data-page" }, n("div", { class: "left-panel" }, n("div", { class: "wrapper" }, n("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), n("div", { class: `right-panel ${o ? "reschedule" : ""}` }, n("nylas-booking-form", { exportparts: "nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content" })))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null)) : n(C, null, n("slot", null));
393
+ return t && !i && a ? n(w, null, n(x, { nylasBranding: g, isLoading: this.isLoading, showNotification: this.showNotification }, s && n($, null, `${f.t("rescheduleTitle")}`), n("div", { class: "additional-data-page", part: "additional-data-page" }, n("div", { class: "left-panel" }, n("div", { class: "wrapper" }, n("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), n("div", { class: `right-panel ${s ? "reschedule" : ""}` }, n("nylas-booking-form", { exportparts: "nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content" })))), this.enableUserFeedback && n("button-component", { id: "report-issue", variant: "basic", onClick: (l) => this.onFeedbackClick(l) }, n("feedback-icon", null)), this.showFeedbackModal && n("nylas-feedback-form", null)) : n(w, null, n("slot", null));
382
394
  }
383
395
  get host() {
384
- return K(this);
396
+ return Q(this);
385
397
  }
386
398
  static get watchers() {
387
399
  return {
@@ -394,7 +406,7 @@ const E = (t, e) => {
394
406
  };
395
407
  }
396
408
  };
397
- le.style = de;
409
+ ce.style = le;
398
410
  export {
399
- le as nylas_scheduling
411
+ ce as nylas_scheduling
400
412
  };