@nylas/react 1.1.3 → 1.1.4

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 (168) hide show
  1. package/dist/add-circle-icon_2.entry-6753bd65.js +25 -0
  2. package/dist/add-circle-icon_2.entry-cd9a7f37.cjs +1 -0
  3. package/dist/archive-icon.entry-434d1696.js +15 -0
  4. package/dist/archive-icon.entry-7cb1c265.cjs +1 -0
  5. package/dist/arrow-icon.entry-20b50784.js +15 -0
  6. package/dist/{arrow-icon.entry-2dfd8319.cjs → arrow-icon.entry-83c3105b.cjs} +1 -1
  7. package/dist/bold-icon.entry-0e3d84e1.cjs +1 -0
  8. package/dist/bold-icon.entry-34b18d0d.js +15 -0
  9. package/dist/{button-component_2.entry-27a504d9.cjs → button-component_2.entry-54101987.cjs} +1 -1
  10. package/dist/{button-component_2.entry-697bf5ac.js → button-component_2.entry-8a5e99da.js} +9 -9
  11. package/dist/{calendar-agenda-fill-icon_51.entry-a25262b3.cjs → calendar-agenda-fill-icon_51.entry-1920adc2.cjs} +2 -2
  12. package/dist/{calendar-agenda-fill-icon_51.entry-52b5bf31.js → calendar-agenda-fill-icon_51.entry-a351dca5.js} +87 -87
  13. package/dist/{calendar-cancel-icon.entry-c6e2eed6.cjs → calendar-cancel-icon.entry-00756264.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-e6a433a2.js → calendar-cancel-icon.entry-f83e9b41.js} +2 -2
  15. package/dist/{calendar-check-icon_2.entry-d88307d6.js → calendar-check-icon_2.entry-1817540c.js} +7 -7
  16. package/dist/{calendar-check-icon_2.entry-45cad6f1.cjs → calendar-check-icon_2.entry-6ac948fc.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-2badc962.js → calendar-icon.entry-362428bf.js} +4 -4
  18. package/dist/{calendar-icon.entry-b2fffd21.cjs → calendar-icon.entry-68e53f52.cjs} +1 -1
  19. package/dist/{checkbox-component_2.entry-5ab55050.js → checkbox-component_2.entry-0d7c1916.js} +3 -3
  20. package/dist/{checkbox-component_2.entry-3926b644.cjs → checkbox-component_2.entry-5ce9807d.cjs} +1 -1
  21. package/dist/{chevron-icon_3.entry-664fae5d.js → chevron-icon_3.entry-37c087a7.js} +6 -6
  22. package/dist/{chevron-icon_3.entry-1fe5d097.cjs → chevron-icon_3.entry-89c52603.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-f11f9dad.js → clock-icon_4.entry-2e78febe.js} +15 -15
  24. package/dist/{clock-icon_4.entry-efec2c08.cjs → clock-icon_4.entry-496058ef.cjs} +1 -1
  25. package/dist/{constants-50c3e067-33cf0ffe.js → constants-c31dccfe-04b9cd8a.js} +2 -2
  26. package/dist/{constants-50c3e067-5ec3f879.cjs → constants-c31dccfe-1a739653.cjs} +2 -2
  27. package/dist/{copy-icon.entry-70131e8e.js → copy-icon.entry-6d4e05b0.js} +7 -7
  28. package/dist/{copy-icon.entry-3965f206.cjs → copy-icon.entry-a1baee33.cjs} +1 -1
  29. package/dist/{delete-icon.entry-5d067fef.cjs → delete-icon.entry-e98b336e.cjs} +1 -1
  30. package/dist/{delete-icon.entry-e003695d.js → delete-icon.entry-ea06b42a.js} +5 -5
  31. package/dist/document-refresh-icon.entry-09750b52.cjs +1 -0
  32. package/dist/document-refresh-icon.entry-afae6621.js +15 -0
  33. package/dist/elements/index.d.ts +0 -11
  34. package/dist/feedbackSync-ab657d65-e650e46d.cjs +448 -0
  35. package/dist/feedbackSync-ab657d65-e8b7c001.js +6035 -0
  36. package/dist/folder-icon.entry-5c3f4e8f.cjs +1 -0
  37. package/dist/folder-icon.entry-6096fbf4.js +15 -0
  38. package/dist/forward-icon.entry-4089e3bb.cjs +1 -0
  39. package/dist/forward-icon.entry-da319c05.js +15 -0
  40. package/dist/{globe-icon.entry-6fc456c7.js → globe-icon.entry-59f4c2f9.js} +7 -7
  41. package/dist/{globe-icon.entry-8c3c9e48.cjs → globe-icon.entry-e8ca972e.cjs} +1 -1
  42. package/dist/{google-logo-icon_4.entry-d6e0c4c0.js → google-logo-icon_4.entry-d4b8926f.js} +39 -39
  43. package/dist/google-logo-icon_4.entry-e2001f83.cjs +1 -0
  44. package/dist/inbox-icon.entry-70dae5ec.js +15 -0
  45. package/dist/inbox-icon.entry-80ee9082.cjs +1 -0
  46. package/dist/{index-11f33e47.cjs → index-6b9d4b01.cjs} +30 -31
  47. package/dist/{index-a282e817.js → index-e475e0c0.js} +2547 -2622
  48. package/dist/index.d.ts +1 -1
  49. package/dist/{index.es-ab9affcc-18263b66.cjs → index.es-b475d61f-68a74a28.cjs} +5 -5
  50. package/dist/{index.es-ab9affcc-30461b18.js → index.es-b475d61f-bfa2cba2.js} +125 -131
  51. package/dist/{info-icon_2.entry-d20b975c.js → info-icon_2.entry-2bb60213.js} +5 -5
  52. package/dist/{info-icon_2.entry-e582ac10.cjs → info-icon_2.entry-f1b1dfba.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-27f4288f.js → input-color-picker.entry-5ae45a9e.js} +3 -3
  54. package/dist/{input-color-picker.entry-c6a28671.cjs → input-color-picker.entry-b669f7fb.cjs} +1 -1
  55. package/dist/{input-component.entry-b6f1c417.js → input-component.entry-cb958501.js} +2 -2
  56. package/dist/{input-component.entry-744fcec1.cjs → input-component.entry-eeb95361.cjs} +1 -1
  57. package/dist/{input-dropdown.entry-f13234d7.cjs → input-dropdown.entry-0b458f68.cjs} +1 -1
  58. package/dist/{input-dropdown.entry-18744def.js → input-dropdown.entry-962605f8.js} +4 -4
  59. package/dist/italic-icon.entry-4a89e289.cjs +1 -0
  60. package/dist/italic-icon.entry-5be07509.js +15 -0
  61. package/dist/{multi-select-dropdown.entry-924809e1.js → multi-select-dropdown.entry-3084e1fc.js} +2 -2
  62. package/dist/{multi-select-dropdown.entry-dde671d7.cjs → multi-select-dropdown.entry-a66408a2.cjs} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-227ccf31.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-52c3111d.js → nylas-booked-event-card_12.entry-29e2a4b1.js} +64 -63
  65. package/dist/{nylas-form-card.entry-b0a2403f.js → nylas-form-card.entry-33b4c295.js} +11 -11
  66. package/dist/{nylas-form-card.entry-ab61fdc5.cjs → nylas-form-card.entry-8465eccf.cjs} +1 -1
  67. package/dist/{nylas-if-state.entry-523fdc6b.js → nylas-if-state.entry-9d96fc87.js} +2 -2
  68. package/dist/{nylas-if-state.entry-53883c36.cjs → nylas-if-state.entry-adb6103a.cjs} +1 -1
  69. package/dist/{nylas-login.entry-d9bf3974.js → nylas-login.entry-3f7c195e.js} +7 -7
  70. package/dist/{nylas-login.entry-05e1df3e.cjs → nylas-login.entry-78b968d1.cjs} +1 -1
  71. package/dist/nylas-provider.entry-19635620.js +264 -0
  72. package/dist/nylas-provider.entry-b918d0f6.cjs +1 -0
  73. package/dist/nylas-reminder-emails.entry-ec79b757.js +168 -0
  74. package/dist/nylas-reminder-emails.entry-ee76db24.cjs +4 -0
  75. package/dist/{nylas-reminder-time_2.entry-9589d5f2.js → nylas-reminder-time_2.entry-105de2d0.js} +42 -39
  76. package/dist/nylas-reminder-time_2.entry-83ecc1d4.cjs +1 -0
  77. package/dist/{nylas-scheduler-editor.entry-1a2f3ee0.cjs → nylas-scheduler-editor.entry-cfed7ae2.cjs} +2 -2
  78. package/dist/{nylas-scheduler-editor.entry-b434b526.js → nylas-scheduler-editor.entry-e848771f.js} +3 -3
  79. package/dist/{nylas-scheduling.entry-b71080c8.js → nylas-scheduling.entry-da987c02.js} +19 -19
  80. package/dist/nylas-scheduling.entry-e989cf9e.cjs +1 -0
  81. package/dist/{nylas-time-window-picker.entry-a6d1c648.cjs → nylas-time-window-picker.entry-1f76b577.cjs} +1 -1
  82. package/dist/{nylas-time-window-picker.entry-c1ee860a.js → nylas-time-window-picker.entry-3c6b29d9.js} +20 -20
  83. package/dist/{person-icon.entry-8833e3cc.js → person-icon.entry-79fcd9fb.js} +2 -2
  84. package/dist/{person-icon.entry-80c9022e.cjs → person-icon.entry-82bbb87c.cjs} +1 -1
  85. package/dist/play-icon.entry-3f357ea4.cjs +1 -0
  86. package/dist/play-icon.entry-97b40470.js +15 -0
  87. package/dist/react.cjs +1 -1
  88. package/dist/react.js +93 -104
  89. package/dist/{refresh-icon.entry-4d6791bd.js → refresh-icon.entry-1427a5e6.js} +4 -4
  90. package/dist/{refresh-icon.entry-d4cc16b7.cjs → refresh-icon.entry-7ce5ec90.cjs} +1 -1
  91. package/dist/{register-component-a7ea27ad-2343f3df.cjs → register-component-679c1308-b5a96acf.cjs} +1 -1
  92. package/dist/{register-component-a7ea27ad-fa2c4b17.js → register-component-679c1308-de697ecb.js} +1 -1
  93. package/dist/reply-all-icon.entry-cf8114db.cjs +1 -0
  94. package/dist/reply-all-icon.entry-f1165660.js +15 -0
  95. package/dist/reply-icon.entry-3a601cff.js +15 -0
  96. package/dist/reply-icon.entry-3db337c9.cjs +1 -0
  97. package/dist/{scheduler-config-store-2a3b403d-5176cd45.js → scheduler-config-store-2a3b403d-e5210f72.js} +1 -1
  98. package/dist/{scheduler-config-store-2a3b403d-2263f999.cjs → scheduler-config-store-2a3b403d-e6f5bcab.cjs} +1 -1
  99. package/dist/{scheduler-store-33ab8dea-a0b39d36.cjs → scheduler-store-908886c8-62d14677.cjs} +1 -1
  100. package/dist/{scheduler-store-33ab8dea-9801357a.js → scheduler-store-908886c8-b0f43cb9.js} +1 -1
  101. package/dist/sent-icon.entry-2c7bd48e.js +15 -0
  102. package/dist/sent-icon.entry-708b9a2b.cjs +1 -0
  103. package/dist/spam-icon.entry-3106ed3d.js +15 -0
  104. package/dist/spam-icon.entry-fa8b80c6.cjs +1 -0
  105. package/dist/star-icon.entry-88501c8b.cjs +1 -0
  106. package/dist/star-icon.entry-b15601ca.js +15 -0
  107. package/dist/stop-icon.entry-3475e257.cjs +1 -0
  108. package/dist/stop-icon.entry-f926a8db.js +15 -0
  109. package/dist/{textarea-component.entry-019e75d0.cjs → textarea-component.entry-683c2959.cjs} +1 -1
  110. package/dist/{textarea-component.entry-174089bc.js → textarea-component.entry-d1f4dd9a.js} +2 -2
  111. package/dist/{time-period-selector.entry-8466d0f2.cjs → time-period-selector.entry-8cfdf750.cjs} +1 -1
  112. package/dist/{time-period-selector.entry-62c854d1.js → time-period-selector.entry-e97f86fd.js} +4 -4
  113. package/dist/{translate-icon.entry-73f7127b.js → translate-icon.entry-09c5574f.js} +4 -4
  114. package/dist/{translate-icon.entry-7d5cf4b8.cjs → translate-icon.entry-5757c37c.cjs} +1 -1
  115. package/dist/trash-fill-icon.entry-470ec1ff.js +15 -0
  116. package/dist/trash-fill-icon.entry-4bbfabcc.cjs +1 -0
  117. package/dist/underline-icon.entry-6d729068.cjs +1 -0
  118. package/dist/underline-icon.entry-9fe74ba7.js +15 -0
  119. package/dist/{warning-icon.entry-92638eeb.cjs → warning-icon.entry-c1d48318.cjs} +1 -1
  120. package/dist/{warning-icon.entry-abf896c3.js → warning-icon.entry-d924f8f9.js} +5 -5
  121. package/package.json +2 -2
  122. package/dist/add-circle-icon_2.entry-b77120e5.cjs +0 -1
  123. package/dist/add-circle-icon_2.entry-fbc1e82b.js +0 -25
  124. package/dist/archive-icon_7.entry-30962e70.js +0 -75
  125. package/dist/archive-icon_7.entry-dd8c7642.cjs +0 -1
  126. package/dist/arrow-icon.entry-5b436054.js +0 -15
  127. package/dist/bold-icon_3.entry-5120a9c8.js +0 -35
  128. package/dist/bold-icon_3.entry-da2d1270.cjs +0 -1
  129. package/dist/document-refresh-icon.entry-30c974df.cjs +0 -1
  130. package/dist/document-refresh-icon.entry-b4e01cd4.js +0 -15
  131. package/dist/elements-dc5b338e-55823d00.js +0 -28031
  132. package/dist/elements-dc5b338e-6883a39e.cjs +0 -16516
  133. package/dist/feedbackSync-81d4c4d8-dd4d2e32.js +0 -11735
  134. package/dist/feedbackSync-81d4c4d8-f4e78902.cjs +0 -455
  135. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  136. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  137. package/dist/focus-visible-e8093c16-431bbe59.cjs +0 -1
  138. package/dist/focus-visible-e8093c16-f403fee8.js +0 -84
  139. package/dist/forward-icon_6.entry-3bb91d58.js +0 -953
  140. package/dist/forward-icon_6.entry-ceec2371.cjs +0 -3
  141. package/dist/google-logo-icon_4.entry-4eb16cd2.cjs +0 -1
  142. package/dist/mailbox-store-affca6de-9451094e.cjs +0 -1
  143. package/dist/mailbox-store-affca6de-d601dc6b.js +0 -380
  144. package/dist/nylas-booked-event-card_12.entry-d89c1f9d.cjs +0 -1
  145. package/dist/nylas-list-folders.entry-4ef6cb3d.cjs +0 -1
  146. package/dist/nylas-list-folders.entry-e37d069f.js +0 -120
  147. package/dist/nylas-list-threads.entry-3be623e9.cjs +0 -1
  148. package/dist/nylas-list-threads.entry-8ba62db8.js +0 -70
  149. package/dist/nylas-mailbox-pagination.entry-3dd05cf4.cjs +0 -1
  150. package/dist/nylas-mailbox-pagination.entry-50d9d9e3.js +0 -101
  151. package/dist/nylas-mailbox-toolbar-button.entry-9a77d137.js +0 -82
  152. package/dist/nylas-mailbox-toolbar-button.entry-d87b55de.cjs +0 -1
  153. package/dist/nylas-mailbox.entry-cb7d1031.js +0 -134
  154. package/dist/nylas-mailbox.entry-f7db9aa8.cjs +0 -1
  155. package/dist/nylas-provider.entry-1716bf48.cjs +0 -1
  156. package/dist/nylas-provider.entry-7aa46ea2.js +0 -145
  157. package/dist/nylas-reminder-emails.entry-88a862cd.cjs +0 -4
  158. package/dist/nylas-reminder-emails.entry-a86231b7.js +0 -129
  159. package/dist/nylas-reminder-time_2.entry-bc76d4ab.cjs +0 -1
  160. package/dist/nylas-scheduling.entry-59e5e8c1.cjs +0 -1
  161. package/dist/nylas-threads-refresh.entry-544ca90a.js +0 -74
  162. package/dist/nylas-threads-refresh.entry-7ada7b2d.cjs +0 -1
  163. package/dist/nylas-threads-search.entry-181ba46a.js +0 -69
  164. package/dist/nylas-threads-search.entry-f1cb19e4.cjs +0 -1
  165. package/dist/nylas-view-thread.entry-6ae8dd64.cjs +0 -1
  166. package/dist/nylas-view-thread.entry-c066f522.js +0 -203
  167. package/dist/play-icon_2.entry-801c85bc.cjs +0 -1
  168. package/dist/play-icon_2.entry-efca8f00.js +0 -25
@@ -1,6 +1,6 @@
1
- import { r as k, c as h, d, h as n, k as c, n as J, H as g, D as U, E as de, g as W, m as X, G as fe, I as he, J as w, K as me, L as pe, M as R, F as be } from "./index-a282e817.js";
2
- import { R as _ } from "./register-component-a7ea27ad-fa2c4b17.js";
3
- import { T as L, a as K, g as ue, b as Y } from "./constants-50c3e067-33cf0ffe.js";
1
+ import { r as C, c as h, d, h as n, i as c, k as J, H as g, s as U, q as de, g as W, j as X, t as fe, v as he, w as E, x as me, y as pe, z as R, F as be } from "./index-e475e0c0.js";
2
+ import { R as x } from "./register-component-679c1308-de697ecb.js";
3
+ import { T as L, a as K, g as ue, b as Y } from "./constants-c31dccfe-04b9cd8a.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  const ge = ":host{display:block}.nylas-booked-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family)}.event-card-wrapper{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;margin-bottom:2rem;width:424px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card-wrapper{width:100%;border-radius:0px}}.calendar-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);color:var(--nylas-base-700)}.booked-event-header{margin:1.5rem 0;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:1rem;font-weight:400;border-bottom:1px solid var(--nylas-base-200);width:inherit;padding:0 0 1.5rem}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.booked-event-header .card-description{text-align:center}.booking-date-time,.booking-participants{padding:0 1rem;margin-top:1.5rem;margin-left:3rem;display:flex;flex-direction:column;justify-content:space-between;align-self:flex-start;position:relative}.booking-date-time svg,.booking-participants svg{color:var(--nylas-base-700);position:absolute;left:-10px}.booking-date-time .block,.booking-participants .block{display:block}.booking-date-time h3,.booking-participants h3{color:var(--nylas-base-600);margin:0;font-size:16px;font-weight:600;line-height:1.25rem;text-align:justify;margin-bottom:4px}.booking-date-time p,.booking-participants p{font-size:16px;margin:0;font-weight:400;text-align:justify;color:var(--nylas-base-800)}.booking-participants{margin-bottom:1.5rem}.booked-event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:1.5rem;gap:4px;margin:2rem;align-items:center;align-self:flex-end}.button-container{width:inherit}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);border-top:1px solid var(--nylas-base-200);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.footer.no-template-cols{grid-template-columns:1fr}.footer.no-footer{display:none}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}", ye = ge;
@@ -18,7 +18,7 @@ var ve = function(e, t, a, r) {
18
18
  };
19
19
  const Q = class {
20
20
  constructor(e) {
21
- k(this, e), this.cancelBookingButtonClicked = h(this, "cancelBookingButtonClicked", 7), this.rescheduleButtonClicked = h(this, "rescheduleButtonClicked", 7), this.rescheduleBookedEventError = h(this, "rescheduleBookedEventError", 7), this.cancelBookedEventValidationError = h(this, "cancelBookedEventValidationError", 7), this.handleCancelBookingButtonClicked = () => {
21
+ C(this, e), this.cancelBookingButtonClicked = h(this, "cancelBookingButtonClicked", 7), this.rescheduleButtonClicked = h(this, "rescheduleButtonClicked", 7), this.rescheduleBookedEventError = h(this, "rescheduleBookedEventError", 7), this.cancelBookedEventValidationError = h(this, "cancelBookedEventValidationError", 7), this.handleCancelBookingButtonClicked = () => {
22
22
  var o, i;
23
23
  const t = new Date(this.selectedTimeslot.start_time), a = (i = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : i.min_cancellation_notice;
24
24
  t.getTime() - a * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime() ? this.cancelBookedEventValidationError.emit({
@@ -54,17 +54,17 @@ const Q = class {
54
54
  d("[nylas-booked-event-card] Component did load"), this.eventInfo || console.warn('[nylas-booked-event-card] "eventInfo" prop missing. Please provide the event info to display the event details in the booked event card component.'), this.bookingInfo || console.warn('[nylas-booked-event-card] "bookingInfo" prop missing. Please provide the booking info to display the guest details in the booked event card component.');
55
55
  }
56
56
  render() {
57
- var a, r, o, i, s, l, u, m, f, b, p, y, C, v, x, E, B, T;
57
+ var a, r, o, i, s, l, u, m, f, b, p, y, k, v, _, w, B, T;
58
58
  const e = (a = this.configSettings) == null ? void 0 : a.booking_type, t = e && e !== "booking";
59
59
  return n(g, { key: "6780a2a0b1c59efc4311278e85e6800f72ab6a98", part: "nbec" }, n("div", { key: "eed7c01aaaca8c92a65beccac1242efe1194f4a3", class: "nylas-booked-event-card" }, n("div", { key: "f20609db6794c30012f299017b01bf63752b6b7f", class: "booked-event-timezone" }, n("globe-icon", { key: "e2f277abf894b2c34e32f4cec4309e81a1b6e19b" }), L[this.selectedTimezone]), n("div", { key: "84c8bcdc7f247eade07d502cd480430cfb2894fd", class: "event-card-wrapper", part: "nbec__card" }, n("div", { key: "58835f4e2b261dff59e212573a2391cac9217cb6", class: "calendar-icon" }, n("calendar-check-icon", { key: "53e406d85941c03c7d0c7c5e86e071f948fe85bd" })), n("div", { key: "0e16b5cabfe5afcea5fd15fefbf88ed2558c5492", class: "booked-event-header" }, n("h2", { key: "8ad08c13c5860cf47b217cc9c6d82dddb0940894", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${c.t("bookingRescheduled")}` : t && !this.isLoading ? `${c.t("bookingSent")}` : `${c.t("bookingConfirmed")}`, "!"), n("div", { key: "07a056ef47e7d3c173c7ad67acedc5b94748d28f", class: "card-description", part: "nbec__description" }, t ? c.t("bookingSentDescription") : n("span", null, c.t("bookingConfirmedDescription")))), n("div", { key: "4d4f43295cef324b63b3d5fa6f3476dcf3163d25", class: "booking-date-time" }, n("checkmark-circle-icon", { key: "2c717204ed669e40898c8b23dd408e3c62608e8f" }), n("h3", { key: "1a2ec41f82e740d9bdbac8fe1a818454e402db2f" }, c.t("bookingDateAndTimeHeader")), n("p", { key: "1451ecae33ccfbe9f0bc4b682d90a64313f1120c" }, (r = this.selectedTimeslot) != null && r.start_time ? J(new Date((o = this.selectedTimeslot) == null ? void 0 : o.start_time).toLocaleDateString(K[this.selectedLanguage], { dateStyle: "full" })) : "-", " ", n("br", { key: "df6922d0097f6d3aa7b17dee26a7903e89c9258c" }), new Date((i = this.selectedTimeslot) == null ? void 0 : i.start_time).toLocaleTimeString(void 0, { timeStyle: "short" }), " -", " ", new Date((s = this.selectedTimeslot) == null ? void 0 : s.end_time).toLocaleTimeString(void 0, { timeStyle: "short" }))), n("div", { key: "6e4264737dc50225feeec5374a6bec91de77a0ea", class: "booking-participants" }), !t && n("div", { class: "button-container" }, n("div", { class: {
60
60
  footer: !0,
61
61
  "no-footer": ((u = (l = this.configSettings) == null ? void 0 : l.scheduler) == null ? void 0 : u.hide_cancellation_options) && ((f = (m = this.configSettings) == null ? void 0 : m.scheduler) == null ? void 0 : f.hide_rescheduling_options) || ((b = this.configSettings) == null ? void 0 : b.booking_type) === "organizer-confirmation",
62
- "no-template-cols": ((y = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : y.hide_cancellation_options) || ((v = (C = this.configSettings) == null ? void 0 : C.scheduler) == null ? void 0 : v.hide_rescheduling_options)
63
- } }, !((E = (x = this.configSettings) == null ? void 0 : x.scheduler) != null && E.hide_cancellation_options) && n("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${c.t("cancelBookingButton")}`), !((T = (B = this.configSettings) == null ? void 0 : B.scheduler) != null && T.hide_rescheduling_options) && n("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, part: "nbec__button-outline nbec__reschedule-cta" }, `${c.t("rescheduleBookingButton")}`))))));
62
+ "no-template-cols": ((y = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : y.hide_cancellation_options) || ((v = (k = this.configSettings) == null ? void 0 : k.scheduler) == null ? void 0 : v.hide_rescheduling_options)
63
+ } }, !((w = (_ = this.configSettings) == null ? void 0 : _.scheduler) != null && w.hide_cancellation_options) && n("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${c.t("cancelBookingButton")}`), !((T = (B = this.configSettings) == null ? void 0 : B.scheduler) != null && T.hide_rescheduling_options) && n("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, part: "nbec__button-outline nbec__reschedule-cta" }, `${c.t("rescheduleBookingButton")}`))))));
64
64
  }
65
65
  };
66
66
  ve([
67
- _({
67
+ x({
68
68
  name: "nylas-booked-event-card",
69
69
  stateToProps: /* @__PURE__ */ new Map([
70
70
  ["scheduler.bookingInfo", "bookingInfo"],
@@ -112,7 +112,7 @@ var _e = function(e, t, a, r) {
112
112
  };
113
113
  const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, ee = class {
114
114
  constructor(e) {
115
- k(this, e), this.nameChanged = h(this, "nameChanged", 7), this.emailChanged = h(this, "emailChanged", 7), this.backButtonClicked = h(this, "backButtonClicked", 7), this.detailsConfirmed = h(this, "detailsConfirmed", 7), this.bookingFormError = h(this, "bookingFormError", 7), this.bookingFormSubmitted = h(this, "bookingFormSubmitted", 7), this.handleGuestChange = (t, a) => {
115
+ C(this, e), this.nameChanged = h(this, "nameChanged", 7), this.emailChanged = h(this, "emailChanged", 7), this.backButtonClicked = h(this, "backButtonClicked", 7), this.detailsConfirmed = h(this, "detailsConfirmed", 7), this.bookingFormError = h(this, "bookingFormError", 7), this.bookingFormSubmitted = h(this, "bookingFormSubmitted", 7), this.handleGuestChange = (t, a) => {
116
116
  this.resetGuestEmailError(t);
117
117
  const r = [...this.guestEmails];
118
118
  r[t] = U(a), this.guestEmails = [...r];
@@ -163,10 +163,10 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
163
163
  }
164
164
  let i = [];
165
165
  if (this.guestEmails.length > 0) {
166
- let C = !1;
167
- if (this.guestEmails.forEach((v, x) => {
168
- v === "" ? (C = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [x]: c.t("fieldRequired", { field: c.t("email") }) }) : S.test(v) || (C = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [x]: c.t("invalidInputFormat", { field: c.t("email") }) });
169
- }), C) {
166
+ let k = !1;
167
+ if (this.guestEmails.forEach((v, _) => {
168
+ v === "" ? (k = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [_]: c.t("fieldRequired", { field: c.t("email") }) }) : S.test(v) || (k = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [_]: c.t("invalidInputFormat", { field: c.t("email") }) });
169
+ }), k) {
170
170
  this.bookingFormError.emit({
171
171
  title: "Booking form error",
172
172
  description: c.t("invalidInputFormat", { field: c.t("guestEmail") }) || "Invalid guest email"
@@ -177,8 +177,9 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
177
177
  } else
178
178
  (b = this.bookingInfo) != null && b.guests && (i = (p = this.bookingInfo) == null ? void 0 : p.guests);
179
179
  const s = {};
180
- (y = this.bookingInfo) != null && y.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([C, v]) => {
181
- s[C] = v.value;
180
+ (y = this.bookingInfo) != null && y.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([k, v]) => {
181
+ var _, w;
182
+ k in ((w = (_ = this.configSettings) == null ? void 0 : _.scheduler) == null ? void 0 : w.additional_fields) && (s[k] = v.value);
182
183
  }), this.detailsConfirmed.emit({
183
184
  primaryParticipant: {
184
185
  name: r,
@@ -256,7 +257,7 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
256
257
  }
257
258
  render() {
258
259
  var e, t, a, r, o, i, s, l, u;
259
- return n(g, { key: "9ff58acb9ecfdc16e2a36f26e27efb17abf7028e" }, n("form", { key: "7e8c9b4f5194df0b0f8e1d27868dac9a4bbf3cb2", onSubmit: (m) => this.bookButtonClickedHandler(m), noValidate: !0 }, n("div", { key: "82f596b15322f85e275b5eb4c7a32da56f395a26", class: "nylas-booking-form", part: "nbf" }, n("div", { key: "0dd56de600781b108905994b8176ccf21ed2ae63", class: "input-wrapper", part: "nbf__input-wrapper" }, n("input-component", { key: "3969e863620f53dfafac28066e1b1dd9f094259e", label: c.t("name"), name: "name", id: "name", defaultValue: ((t = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : t.name) || this.name, placeholder: c.t("namePlaceholder"), type: "text", required: !0, requiredError: c.t("fieldRequired", { field: c.t("name") }), patternError: c.t("invalidInputFormat", { field: c.t("name") }), part: "nbf__input-textfield" })), n("div", { key: "8e62d83a228c728e07d39fb92ffbc66981cc2b88", class: "input-wrapper", part: "nbf__input-wrapper" }, n("input-component", { key: "3af7fadf45c7388175a3d982ebc70f08bf0f12f8", label: c.t("email"), name: "email", id: "email", pattern: S, defaultValue: ((r = (a = this.bookingInfo) == null ? void 0 : a.primaryParticipant) == null ? void 0 : r.email) || this.email, placeholder: c.t("emailPlaceholder"), type: "email", required: !0, requiredError: c.t("fieldRequired", { field: c.t("email") }), patternError: c.t("invalidInputFormat", { field: c.t("email") }), part: "nbf__input-textfield" })), ((i = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : i.hide_additional_guests) !== !0 && n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((m, f) => n("div", { class: "input-wrapper button-wrapper" }, n("label", { class: {
260
+ return n(g, { key: "c5759aaa6dd8fe46bbca8d6948cb2f8b62b2f596" }, n("form", { key: "8b1def5e7238fe8c31fe190f772d5b852ea7297b", onSubmit: (m) => this.bookButtonClickedHandler(m), noValidate: !0 }, n("div", { key: "0ac8350dd52ee87af62aff182bbb2a302b4b9488", class: "nylas-booking-form", part: "nbf" }, n("div", { key: "3eed8eda2bc3e0e34d9ef72178d308276036abc3", class: "input-wrapper", part: "nbf__input-wrapper" }, n("input-component", { key: "2e6a8c3e0c578e98cb16133d5c2d2c3638b12a8e", label: c.t("name"), name: "name", id: "name", defaultValue: ((t = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : t.name) || this.name, placeholder: c.t("namePlaceholder"), type: "text", required: !0, requiredError: c.t("fieldRequired", { field: c.t("name") }), patternError: c.t("invalidInputFormat", { field: c.t("name") }), part: "nbf__input-textfield" })), n("div", { key: "f750e23602d5cd20020ad18293a6122c46e858a8", class: "input-wrapper", part: "nbf__input-wrapper" }, n("input-component", { key: "d3e76502be140769b1bcfdca4e5fc119aa080b20", label: c.t("email"), name: "email", id: "email", pattern: S, defaultValue: ((r = (a = this.bookingInfo) == null ? void 0 : a.primaryParticipant) == null ? void 0 : r.email) || this.email, placeholder: c.t("emailPlaceholder"), type: "email", required: !0, requiredError: c.t("fieldRequired", { field: c.t("email") }), patternError: c.t("invalidInputFormat", { field: c.t("email") }), part: "nbf__input-textfield" })), ((i = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : i.hide_additional_guests) !== !0 && n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((m, f) => n("div", { class: "input-wrapper button-wrapper" }, n("label", { class: {
260
261
  error: !!this.guestEmailErrors[f]
261
262
  } }, c.t("guestEmail")), n("div", { class: "guest-email-input" }, n("input", { type: "email", id: `guest-email-${f}`, maxLength: 100, class: {
262
263
  "guest-email": !0,
@@ -271,11 +272,11 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
271
272
  "remove-guest": !0,
272
273
  error: !!this.guestEmailErrors[f]
273
274
  } }, n("close-icon", null))), n("p", { class: "help-text" }, this.guestEmailErrors[f]))), n("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (m) => this.addGuestButtonClickedHandler(m) }, n("div", { class: "button-content" }, n("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${c.t("addAnotherGuest")}` : `${c.t("addGuest")}`))), (u = Object.entries(((l = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : l.additional_fields) || {})) == null ? void 0 : u.sort((m, f) => m[1].order - f[1].order).map((m) => {
274
- var C, v, x, E, B, T;
275
- const f = m[1], b = f.label, p = m[0], y = ((x = (v = (C = this.bookingInfo) == null ? void 0 : C.additionalFields) == null ? void 0 : v[p]) == null ? void 0 : x.value) || "";
275
+ var k, v, _, w, B, T;
276
+ const f = m[1], b = f.label, p = m[0], y = ((_ = (v = (k = this.bookingInfo) == null ? void 0 : k.additionalFields) == null ? void 0 : v[p]) == null ? void 0 : _.value) || "";
276
277
  switch (f.type) {
277
278
  case "dropdown":
278
- return n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, n("select-dropdown", { label: b, name: p, id: p, withSearch: !1, defaultSelectedOption: y ? { value: y, label: y } : void 0, options: (E = f.options) == null ? void 0 : E.map((D) => ({ value: D, label: D })), required: f.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
279
+ return n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, n("select-dropdown", { label: b, name: p, id: p, withSearch: !1, defaultSelectedOption: y ? { value: y, label: y } : void 0, options: (w = f.options) == null ? void 0 : w.map((D) => ({ value: D, label: D })), required: f.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
279
280
  case "checkbox":
280
281
  return n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, n("checkbox-component", { label: b, name: p, id: p, checked: y === "true", required: f.required, part: "nbf__checkbox-component" }));
281
282
  case "radio_button":
@@ -285,7 +286,7 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
285
286
  default:
286
287
  return n("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, n("input-component", { label: b, name: p, id: p, type: f.type, defaultValue: y || "", requiredError: c.t("fieldRequired", { field: b }), required: f.required, part: "nbf__input-textfield" }));
287
288
  }
288
- })), n("div", { key: "b1718541b62dc495d8a204b6402c1724b3a4e84c", class: "cta" }, n("button-component", { key: "c1d5b129696b00371ad786d2df6d43d163492849", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, n("slot", { key: "4a9698c3d6b9a90a6e2620855d0f18b8796c660d", name: "booking-form-back-label" }, `${c.t("backButton")}`)), n("button-component", { key: "3659d2e6a883f0b63a8ebfb22825d5d43585e6f9", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, n("slot", { key: "2a0321bae80f9fdb50cb6e09672ae526dfa1ea57", name: "booking-form-book-label" }, `${c.t("bookNowButton")}`)))));
289
+ })), n("div", { key: "49ce45d55dd541515a7015e352f864e8287cdfa4", class: "cta" }, n("button-component", { key: "0afa9b48216531170197a6bece9520d111789f5d", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, n("slot", { key: "5396a9449f932af8c7ad4a1b93f0a11ef1c7b9e4", name: "booking-form-back-label" }, `${c.t("backButton")}`)), n("button-component", { key: "26090462808119a30db0506ddc1eed26ceaab8b7", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, n("slot", { key: "18c5675de4b737b486a122f31ba1049f6271e645", name: "booking-form-book-label" }, `${c.t("bookNowButton")}`)))));
289
290
  }
290
291
  get host() {
291
292
  return W(this);
@@ -297,7 +298,7 @@ const S = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
297
298
  }
298
299
  };
299
300
  _e([
300
- _({
301
+ x({
301
302
  name: "nylas-booking-form",
302
303
  stateToProps: /* @__PURE__ */ new Map([
303
304
  ["scheduler.isLoading", "isLoading"],
@@ -348,7 +349,7 @@ var Ee = function(e, t, a, r) {
348
349
  const te = class {
349
350
  constructor(e) {
350
351
  var t, a;
351
- k(this, e), this.goBackButtonClicked = h(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = h(this, "cancelBookingFormSubmitted", 7), this.triggerValidation = h(this, "triggerValidation", 7), this.cancelBookedEventError = h(this, "cancelBookedEventError", 7), this.cancelBookingFormError = h(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
352
+ C(this, e), this.goBackButtonClicked = h(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = h(this, "cancelBookingFormSubmitted", 7), this.triggerValidation = h(this, "triggerValidation", 7), this.cancelBookedEventError = h(this, "cancelBookedEventError", 7), this.cancelBookingFormError = h(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
352
353
  this.goBackButtonClicked.emit();
353
354
  }, this.handleSubmitCancelBooking = (r) => {
354
355
  var s, l, u;
@@ -403,7 +404,7 @@ const te = class {
403
404
  }
404
405
  };
405
406
  Ee([
406
- _({
407
+ x({
407
408
  name: "nylas-cancel-booking-form",
408
409
  stateToProps: /* @__PURE__ */ new Map([
409
410
  ["scheduler.configSettings", "configSettings"],
@@ -460,7 +461,7 @@ var De = function(e, t, a, r) {
460
461
  };
461
462
  const ne = class {
462
463
  constructor(e) {
463
- k(this, e), this.closeCancelEventCardClicked = h(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = h(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
464
+ C(this, e), this.closeCancelEventCardClicked = h(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = h(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
464
465
  this.isClosing = !0;
465
466
  const t = (a) => {
466
467
  this.cancelledEventCardError.emit(a), this.isClosing = !1;
@@ -486,7 +487,7 @@ const ne = class {
486
487
  }
487
488
  };
488
489
  De([
489
- _({
490
+ x({
490
491
  name: "nylas-cancelled-event-card",
491
492
  stateToProps: /* @__PURE__ */ new Map([["scheduler.configSettings", "configSettings"]]),
492
493
  eventToProps: {
@@ -520,7 +521,7 @@ var ze = function(e, t, a, r) {
520
521
  };
521
522
  const ae = class {
522
523
  constructor(e) {
523
- k(this, e), this.closeConfirmEventCardClicked = h(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = h(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
524
+ C(this, e), this.closeConfirmEventCardClicked = h(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = h(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
524
525
  this.isClosing = !0;
525
526
  const t = (a) => {
526
527
  this.confirmedEventCardError.emit(a), this.isClosing = !1;
@@ -542,11 +543,11 @@ const ae = class {
542
543
  }
543
544
  render() {
544
545
  var e, t;
545
- return n(g, { key: "ce9d8a7f7a8d6d9f868582fae49c17196eb493d1", part: "ncec" }, n("div", { key: "41a7651ade85a1308a5c475f653e8e7513f3e885", class: "nylas-confirmed-event-card", part: "ncec__card" }, n("div", { key: "c104ceef1d7ce862196997a22130c3bc346a5121", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, n("calendar-cancel-icon", { key: "7587526d3afe5abae4a48e7e8002d66b6e137105" })), n("h3", { key: "da14111567a96982bed3d2f0be6a562fcce8ce04", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, c.t("confirmedEventCardTitle"), "!"), n("div", { key: "3fdd238463c395831b0b55b6e22290a701a48c8f", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, c.t("confirmedEventCardDescription"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), n("div", { key: "29e04d9b157a11b84b6c1d78f513ad3a3e4cac70", class: "nylas-confirmed-event-card__cta" }, n("button-component", { key: "4895bbebf9ea20a5eb958476bade09c21a322d3e", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${c.t("closingButton")}...` : `${c.t("closeButton")}`))));
546
+ return n(g, { key: "b9b4c10f89c27f54070faa3f2ad53b9fbd9f38d8", part: "ncec" }, n("div", { key: "6009b8d7f5b8f8b9d87fc5621250f07c2e5af38d", class: "nylas-confirmed-event-card", part: "ncec__card" }, n("div", { key: "427eb1b59885d8d273842c45a15576a418e5c6ea", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, n("calendar-cancel-icon", { key: "f08b3c34d88bcc72b7fc48807ceb10b5d040a7b6" })), n("h3", { key: "56bc3626c7f84bf4aa6c536e0d978eaab6aabec1", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, c.t("confirmedEventCardTitle"), "!"), n("div", { key: "8f84edf7d10c1a70437e0487ade88d13d9fe8c59", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, c.t("confirmedEventCardDescription"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), n("div", { key: "90d3967b143032d09c8d99d65d711cb4619c1314", class: "nylas-confirmed-event-card__cta" }, n("button-component", { key: "ae8791ba490a8565045287720ceebc0978a85ed9", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${c.t("closingButton")}...` : `${c.t("closeButton")}`))));
546
547
  }
547
548
  };
548
549
  ze([
549
- _({
550
+ x({
550
551
  name: "nylas-confirmed-event-card",
551
552
  stateToProps: /* @__PURE__ */ new Map([["scheduler.configSettings", "configSettings"]]),
552
553
  eventToProps: {
@@ -620,13 +621,13 @@ var Pe = function(e, t, a, r) {
620
621
  for (var l = e.length - 1; l >= 0; l--)
621
622
  (s = e[l]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, a, i) : s(t, a)) || i);
622
623
  return o > 3 && i && Object.defineProperty(t, a, i), i;
623
- }, A = function(e, t) {
624
+ }, q = function(e, t) {
624
625
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
625
626
  return Reflect.metadata(e, t);
626
627
  };
627
628
  const oe = class {
628
629
  constructor(e) {
629
- k(this, e), this.dateSelected = h(this, "dateSelected", 7), this.monthChanged = h(this, "monthChanged", 7), this.selectableDates = void 0, this.selectedDate = void 0, this.configSettings = void 0, this.selectedLanguage = void 0, this.isLoading = void 0, this.eventDuration = void 0, this.month = this.selectedDate || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1;
630
+ C(this, e), this.dateSelected = h(this, "dateSelected", 7), this.monthChanged = h(this, "monthChanged", 7), this.selectableDates = void 0, this.selectedDate = void 0, this.configSettings = void 0, this.selectedLanguage = void 0, this.isLoading = void 0, this.eventDuration = void 0, this.month = this.selectedDate || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1;
630
631
  }
631
632
  configSettingsChanged(e) {
632
633
  var o;
@@ -658,10 +659,10 @@ const oe = class {
658
659
  X(/* @__PURE__ */ new Date(), a).getTime() < t.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
659
660
  }
660
661
  isSelected(e, t, a) {
661
- return e && t && w(e, t) && a && (a == null ? void 0 : a.length) > 0;
662
+ return e && t && E(e, t) && a && (a == null ? void 0 : a.length) > 0;
662
663
  }
663
664
  isDisabled(e, t) {
664
- return e && (t == null ? void 0 : t.find((a) => w(a, e))) === void 0;
665
+ return e && (t == null ? void 0 : t.find((a) => E(a, e))) === void 0;
665
666
  }
666
667
  render() {
667
668
  var e, t, a, r, o, i, s;
@@ -681,10 +682,10 @@ const oe = class {
681
682
  "current-month": R(l, this.month)
682
683
  }, style: { animationDelay: `${u * 20}ms` }, part: "ndp__date ndp__date--disabled" }, l.getDate()) : n("button", { class: {
683
684
  date: !0,
684
- selected: !!(this.selectedDate && w(l, this.selectedDate) && this.selectableDates && ((f = this.selectableDates) == null ? void 0 : f.length) > 0),
685
- "current-day": w(l, /* @__PURE__ */ new Date()),
685
+ selected: !!(this.selectedDate && E(l, this.selectedDate) && this.selectableDates && ((f = this.selectableDates) == null ? void 0 : f.length) > 0),
686
+ "current-day": E(l, /* @__PURE__ */ new Date()),
686
687
  "current-month": R(l, this.month)
687
- }, "aria-lang": l.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: m, onClick: () => this.selectDate(l), part: `ndp__date ${this.isSelected(l, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${w(l, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${R(l, this.month) ? "ndp__date--current-month" : ""}` }, l.getDate());
688
+ }, "aria-lang": l.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: m, onClick: () => this.selectDate(l), part: `ndp__date ${this.isSelected(l, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${E(l, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${R(l, this.month) ? "ndp__date--current-month" : ""}` }, l.getDate());
688
689
  }))));
689
690
  }
690
691
  static get watchers() {
@@ -695,7 +696,7 @@ const oe = class {
695
696
  }
696
697
  };
697
698
  Pe([
698
- _({
699
+ x({
699
700
  name: "nylas-date-picker",
700
701
  stateToProps: /* @__PURE__ */ new Map([
701
702
  ["scheduler.selectableDates", "selectableDates"],
@@ -715,9 +716,9 @@ Pe([
715
716
  },
716
717
  fireRegisterEvent: !0
717
718
  }),
718
- A("design:type", Function),
719
- A("design:paramtypes", []),
720
- A("design:returntype", void 0)
719
+ q("design:type", Function),
720
+ q("design:paramtypes", []),
721
+ q("design:returntype", void 0)
721
722
  ], oe.prototype, "render", null);
722
723
  oe.style = Fe;
723
724
  const Me = ":host{display:block}.nylas-locale-switch{display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-left:none;border-right:none;color:var(--nylas-base-50);font-size:14px;font-weight:600;cursor:pointer;transition:all 0.2s ease-in-out;font-family:inherit}@media screen and (max-width: 768px){.nylas-locale-switch{font-size:16px}}.select-wrapper{display:flex;align-items:center;gap:0.5rem}select{border:none;background:transparent;cursor:pointer;outline:none;background-color:transparent;margin:0 0 1px;padding:4px;vertical-align:middle}select#timezone{width:140px}select#language{width:80px}span.timezone-label{display:flex;width:-webkit-fill-available;justify-content:space-between}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){border:none;padding:10px}select-dropdown::part(sd_dropdown-content){max-width:306px}", Ne = Me;
@@ -729,13 +730,13 @@ var Oe = function(e, t, a, r) {
729
730
  for (var l = e.length - 1; l >= 0; l--)
730
731
  (s = e[l]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, a, i) : s(t, a)) || i);
731
732
  return o > 3 && i && Object.defineProperty(t, a, i), i;
732
- }, q = function(e, t) {
733
+ }, A = function(e, t) {
733
734
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
734
735
  return Reflect.metadata(e, t);
735
736
  };
736
737
  const re = class {
737
738
  constructor(e) {
738
- k(this, e), this.timezoneChanged = h(this, "timezoneChanged", 7), this.languageChanged = h(this, "languageChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = navigator.language;
739
+ C(this, e), this.timezoneChanged = h(this, "timezoneChanged", 7), this.languageChanged = h(this, "languageChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = navigator.language;
739
740
  }
740
741
  connectedCallback() {
741
742
  }
@@ -785,7 +786,7 @@ const re = class {
785
786
  }
786
787
  };
787
788
  Oe([
788
- _({
789
+ x({
789
790
  name: "nylas-locale-switch",
790
791
  stateToProps: /* @__PURE__ */ new Map([
791
792
  ["scheduler.selectedLanguage", "selectedLanguage"],
@@ -801,23 +802,23 @@ Oe([
801
802
  },
802
803
  fireRegisterEvent: !0
803
804
  }),
804
- q("design:type", Function),
805
- q("design:paramtypes", []),
806
- q("design:returntype", void 0)
805
+ A("design:type", Function),
806
+ A("design:paramtypes", []),
807
+ A("design:returntype", void 0)
807
808
  ], re.prototype, "render", null);
808
809
  re.style = Ne;
809
- const $e = ".sc-nylas-logo-h{display:flex}", He = $e, Ae = class {
810
+ const $e = ".sc-nylas-logo-h{display:flex}", He = $e, qe = class {
810
811
  constructor(e) {
811
- k(this, e), this.width = "69", this.height = "24";
812
+ C(this, e), this.width = "69", this.height = "24";
812
813
  }
813
814
  render() {
814
- return n("svg", { key: "1acdf9968dcfe5ee4c9126fb33a8feaa247a245d", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "e5506e8a950a5b2d9b0ebcf5637d4492035988a0", "clip-path": "url(#clip0_455_3543)" }, n("path", { key: "d508417e011859f6b778099856510ceacc6a7c82", d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), n("path", { key: "03df111b29c4e2b458a1963b5e78aa338a4cedf3", d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), n("path", { key: "965f2f310890bd37296d59da605a4dffbcefdf63", d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), n("path", { key: "3ff5f0e73ca7521d09429b3acea1897149406c88", d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), n("path", { key: "ba14696e20aff3551bca194a6a408326bbc5672e", d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), n("path", { key: "bc2bb2bd506552181ff16608cb4d7c4c977d7c25", d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), n("path", { key: "66e387e7350a092088d138ef03fa675a8df94736", d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), n("path", { key: "c5c1de3d0106eeecfbc27bce114a3e5bba5de373", d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), n("defs", { key: "a86e259f935b0a2f0bdb9328ce600daf6f40abd4" }, n("clipPath", { key: "95f7170598bd0ee5f0fa49219c68ca0277551150", id: "clip0_455_3543" }, n("rect", { key: "e0703d2f89eb2124358938b3c59afe362fb49dcd", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
815
+ return n("svg", { key: "aeb5a7e31cfa6b2846b43e3d1ea193a0d153dac4", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "425c49e05a92478dba4bc83fadecdd8ecd547847", "clip-path": "url(#clip0_455_3543)" }, n("path", { key: "32bb9a4fbd72da875039ed9986b04f7a5dd322ad", d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), n("path", { key: "e2ab1ab8a9eb353201c2510647cca662e1078b52", d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), n("path", { key: "bf60edb0f9ef7af659f002e137f22d437bb5156e", d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), n("path", { key: "91492a460d37310bd3d7296ed085052c5f5d5ff7", d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), n("path", { key: "9fc1463f04937f556f2a92080601c06823b65fff", d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), n("path", { key: "1d7377b0a33ddd2289ea3248c5f3f8ca5843797d", d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), n("path", { key: "363876835f54604ef28b9991316d8456435b490f", d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), n("path", { key: "72a40845c1767db7f047c30d97327c42989e0cec", d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), n("defs", { key: "fd197f32005cc211e8c265d9909df3a33911fd08" }, n("clipPath", { key: "fc1ae55255e6bd8e6b2e97348a9a76c92c433876", id: "clip0_455_3543" }, n("rect", { key: "c67f2f37b5f3a524e3c89aa3eba842cfc3c86c0c", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
815
816
  }
816
817
  };
817
- Ae.style = He;
818
- const qe = ':host{display:block;margin-bottom:-12px;width:100%;z-index: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}.notif{display:flex;padding:17px;align-items:flex-start;justify-content:space-between;gap:16px;border-radius:var(--nylas-border-radius-2x);border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error);background:rgb(255, 248, 248)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer}', Ve = qe, Ze = class {
818
+ qe.style = He;
819
+ const Ae = ':host{display:block;margin-bottom:-12px;width:100%;z-index: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}.notif{display:flex;padding:17px;align-items:flex-start;justify-content:space-between;gap:16px;border-radius:var(--nylas-border-radius-2x);border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error);background:rgb(255, 248, 248)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer}', Ve = Ae, Ze = class {
819
820
  constructor(e) {
820
- k(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
821
+ C(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
821
822
  }
822
823
  onError(e) {
823
824
  d(`[nylas-notification] Error: ${e.detail.notification.title}`), this.handleNotification(e);
@@ -869,7 +870,7 @@ const qe = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
869
870
  this.notifications = this.notifications.filter((t) => t.id !== e);
870
871
  }
871
872
  render() {
872
- return n(g, { key: "f9e713db0310e2eacaa742c40b92f413339d6984" }, n(be, { key: "7d89ddf2f3cd90c09ad09d56b743a74e624b6fb8" }, this.notifications.map((e) => n("div", { class: `notif ${e.type}`, key: e.id }, n("div", { class: "content" }, n("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && n("warning-icon", null)), n("span", { class: "message" }, n("span", { class: "title" }, e.title), e.description && n("span", { class: "description" }, e.description))), n("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, n("close-icon", null)))), n("slot", { key: "5f2e1ef8aa408241df09da0251e6d9e8963d303a" })));
873
+ return n(g, { key: "83454a1a73a488653b469774ee8915e21d892d65" }, n(be, { key: "34b9bdef55e83f345074ad482a256f7eb3ed719e" }, this.notifications.map((e) => n("div", { class: `notif ${e.type}`, key: e.id }, n("div", { class: "content" }, n("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && n("warning-icon", null)), n("span", { class: "message" }, n("span", { class: "title" }, e.title), e.description && n("span", { class: "description" }, e.description))), n("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, n("close-icon", null)))), n("slot", { key: "bff0a753c23041a123bea8391363b0caad111342" })));
873
874
  }
874
875
  get host() {
875
876
  return W(this);
@@ -891,7 +892,7 @@ var Ue = function(e, t, a, r) {
891
892
  };
892
893
  const se = class {
893
894
  constructor(e) {
894
- k(this, e), this.rejectBookingButtonClicked = h(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = h(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = h(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
895
+ C(this, e), this.rejectBookingButtonClicked = h(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = h(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = h(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
895
896
  this.action = "confirm";
896
897
  const t = (a) => {
897
898
  this.confirmBookingError.emit(a);
@@ -916,7 +917,7 @@ const se = class {
916
917
  }
917
918
  render() {
918
919
  var e, t, a, r, o, i, s, l, u, m, f, b;
919
- return n(g, { key: "70af53afee910522a08bb0482ba209e77b1f8e84", part: "nmcc" }, n("div", { key: "e8a15487944794822698e828899c994bca48784a", class: "event-card-wrapper", part: "nmccc__card" }, n("div", { key: "046612b74dc54cfdadfa9d36b344dd3f7c7f2bef", class: "calendar-icon" }, n("calendar-check-icon", { key: "397e9cc08d449788afe58cf7f54e9b7a7f1cccb1" })), n("div", { key: "ba88495fa51609181bb5b94f94056058ad3cfcf0", class: "booked-event-header" }, n("h2", { key: "18394d7bf528aeb2e1a56621f776dd1523877e7c", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${c.t("bookingPendingTitle")}!`)), n("div", { key: "bd416041324e6f5ebce0604aa8bc141115948a2e", class: "manage-booking-description" }, n("p", { key: "cab6f6d3a1139ad8eda843fe65c05ee5a446b07c" }, c.t("bookingPendingnDescription"))), n("div", { key: "5ed2bdf5741d79e2b8926067563f70679215c030", class: {
920
+ return n(g, { key: "123955b645210a040f6916e9a85847c934222b79", part: "nmcc" }, n("div", { key: "cc41530612eaf960219e9a9eeab0b77f76d35c5e", class: "event-card-wrapper", part: "nmccc__card" }, n("div", { key: "c24348bc400422f9aa2136b0a895fc4b8b5d5591", class: "calendar-icon" }, n("calendar-check-icon", { key: "fb172e317fabeea80d213a1c2b98aa67ed63f641" })), n("div", { key: "4d75233d1b6601beca52683ad9313e3cc2c12404", class: "booked-event-header" }, n("h2", { key: "7f27dbb922928b25f1fe97929356d9f4f6060759", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${c.t("bookingPendingTitle")}!`)), n("div", { key: "faf8aec0e5815abc2dac1e0dc3a8527b8394ea3c", class: "manage-booking-description" }, n("p", { key: "b6eb26a6f6f6af476dbceffee3ccadf10c0f97a9" }, c.t("bookingPendingnDescription"))), n("div", { key: "73009ddd0596cd27c1da6c0c5252ee2766475297", class: {
920
921
  footer: !0,
921
922
  "no-footer": ((t = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : t.hide_cancellation_options) && ((r = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : r.hide_rescheduling_options),
922
923
  "no-template-cols": ((i = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : i.hide_cancellation_options) || ((l = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : l.hide_rescheduling_options)
@@ -927,7 +928,7 @@ const se = class {
927
928
  }
928
929
  };
929
930
  Ue([
930
- _({
931
+ x({
931
932
  name: "nylas-organizer-confirmation-card",
932
933
  stateToProps: /* @__PURE__ */ new Map([
933
934
  ["scheduler.organizerConfirmationBookingId", "organizerConfirmationBookingId"],
@@ -969,7 +970,7 @@ var Je = function(e, t, a, r) {
969
970
  };
970
971
  const le = class {
971
972
  constructor(e) {
972
- k(this, e), this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = void 0, this.startTime = "", this.endTime = "";
973
+ C(this, e), this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = void 0, this.startTime = "", this.endTime = "";
973
974
  }
974
975
  connectedCallback() {
975
976
  }
@@ -994,7 +995,7 @@ const le = class {
994
995
  }
995
996
  };
996
997
  Je([
997
- _({
998
+ x({
998
999
  name: "nylas-selected-event-card",
999
1000
  stateToProps: /* @__PURE__ */ new Map([
1000
1001
  ["scheduler.selectedDate", "selectedDate"],
@@ -1025,7 +1026,7 @@ var et = function(e, t, a, r) {
1025
1026
  };
1026
1027
  const ce = class {
1027
1028
  constructor(e) {
1028
- k(this, e), this.timeslotSelected = h(this, "timeslotSelected", 7), this.timeslotConfirmed = h(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (t, a) => {
1029
+ C(this, e), this.timeslotSelected = h(this, "timeslotSelected", 7), this.timeslotConfirmed = h(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (t, a) => {
1029
1030
  t.preventDefault(), d("[nylas-timeslot-picker] Confirm timeslot", a), this.timeslotConfirmed.emit(a);
1030
1031
  }, this.handleMouseEnter = (t) => {
1031
1032
  this.hoveredTimeslotIndex = t;
@@ -1039,13 +1040,13 @@ const ce = class {
1039
1040
  selectedDateChanged(e) {
1040
1041
  var t;
1041
1042
  if (d("[nylas-timeslot-picker] Selected date changed", { newVal: e }), e && (this.selectedTimeslotIndex = "", typeof e < "u")) {
1042
- const a = (t = this.availability) == null ? void 0 : t.filter((r) => w(r.start_time, e)).map((r) => r);
1043
+ const a = (t = this.availability) == null ? void 0 : t.filter((r) => E(r.start_time, e)).map((r) => r);
1043
1044
  this.times = a || [];
1044
1045
  }
1045
1046
  }
1046
1047
  availabilityChanged(e) {
1047
1048
  if (d("[nylas-timeslot-picker] Available times changed", { newVal: e, selectedDate: this.selectedDate }), typeof e < "u") {
1048
- const t = e == null ? void 0 : e.filter((a) => this.selectedDate && w(a.start_time, this.selectedDate)).map((a) => a);
1049
+ const t = e == null ? void 0 : e.filter((a) => this.selectedDate && E(a.start_time, this.selectedDate)).map((a) => a);
1049
1050
  this.times = t || [];
1050
1051
  }
1051
1052
  }
@@ -1055,7 +1056,7 @@ const ce = class {
1055
1056
  }
1056
1057
  async componentWillLoad() {
1057
1058
  var t;
1058
- const e = (t = this.availability) == null ? void 0 : t.filter((a) => this.selectedDate && w(a.start_time, this.selectedDate)).map((a) => a);
1059
+ const e = (t = this.availability) == null ? void 0 : t.filter((a) => this.selectedDate && E(a.start_time, this.selectedDate)).map((a) => a);
1059
1060
  this.times = e || [], d("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
1060
1061
  }
1061
1062
  async componentDidLoad() {
@@ -1097,7 +1098,7 @@ const ce = class {
1097
1098
  }
1098
1099
  };
1099
1100
  et([
1100
- _({
1101
+ x({
1101
1102
  name: "nylas-timeslot-picker",
1102
1103
  stateToProps: /* @__PURE__ */ new Map([
1103
1104
  ["scheduler.selectedDate", "selectedDate"],
@@ -1130,7 +1131,7 @@ export {
1130
1131
  ae as nylas_confirmed_event_card,
1131
1132
  oe as nylas_date_picker,
1132
1133
  re as nylas_locale_switch,
1133
- Ae as nylas_logo,
1134
+ qe as nylas_logo,
1134
1135
  Ze as nylas_notification,
1135
1136
  se as nylas_organizer_confirmation_card,
1136
1137
  le as nylas_selected_event_card,
@@ -1,23 +1,23 @@
1
- import { r as f, d as o, T as y, h as n, H as m, g as p } from "./index-a282e817.js";
2
- import { R as u } from "./register-component-a7ea27ad-fa2c4b17.js";
1
+ import { r as i, d as o, I as y, h as n, H as m, g as p } from "./index-e475e0c0.js";
2
+ import { R as u } from "./register-component-679c1308-de697ecb.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  const h = ':host{display:block;--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}.nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}', v = h;
6
6
  var _ = function(e, a, t, r) {
7
- var c = arguments.length, s = c < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, t) : r, l;
7
+ var l = arguments.length, s = l < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, t) : r, c;
8
8
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
9
9
  s = Reflect.decorate(e, a, t, r);
10
10
  else
11
11
  for (var d = e.length - 1; d >= 0; d--)
12
- (l = e[d]) && (s = (c < 3 ? l(s) : c > 3 ? l(a, t, s) : l(a, t)) || s);
13
- return c > 3 && s && Object.defineProperty(a, t, s), s;
14
- }, i = function(e, a) {
12
+ (c = e[d]) && (s = (l < 3 ? c(s) : l > 3 ? c(a, t, s) : c(a, t)) || s);
13
+ return l > 3 && s && Object.defineProperty(a, t, s), s;
14
+ }, f = function(e, a) {
15
15
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
16
16
  return Reflect.metadata(e, a);
17
17
  };
18
18
  const b = class {
19
19
  constructor(e) {
20
- f(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
20
+ i(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
21
21
  }
22
22
  connectedCallback() {
23
23
  o("nylas-event-card", "connectedCallback");
@@ -32,7 +32,7 @@ const b = class {
32
32
  o("nylas-event-card", "disconnectedCallback"), y(["header-title", "header-subtitle", "content"], this.host);
33
33
  }
34
34
  render() {
35
- return n(m, { key: "edd213ab1404821cd67e4ebf86ce0ce31a318297" }, n("div", { key: "ab47490c5fceaec1146f85321eabcef49a9c3bfd", class: "nylas-form-card", part: "nfc" }, n("div", { key: "495c25505690cb1a68883e7a56cb35a8f4d65711", class: "nylas-form-card__header", part: "nfc__header" }, n("slot", { key: "b8c45b0b092e2e63f317737b13edd38404d6722b", name: "header-title" }), n("slot", { key: "99973ac46a519e51c33a5f3a8d947a3aea5ef7f5", name: "header-subtitle" })), n("div", { key: "0c34a7b8147e93806d5539d3a7ecb9672de3e8db", class: "nylas-form-card__content" }, n("slot", { key: "c56721052406c7478464e17e05d023255cb24a8c", name: "content" }))));
35
+ return n(m, { key: "9c490244ceaa1c08fae75cad5f796e2b45ea2538" }, n("div", { key: "696b86c8697f4062afcd8a5862c97bf3bf5492e0", class: "nylas-form-card", part: "nfc" }, n("div", { key: "af1f2eb827a74586fe44b476f1d59f9f8785e980", class: "nylas-form-card__header", part: "nfc__header" }, n("slot", { key: "968b720f04d9e64df5708fd1c4d94a9998aa72fc", name: "header-title" }), n("slot", { key: "4df6bddacc17d303f3be42584be48e50bf7fb0f0", name: "header-subtitle" })), n("div", { key: "890fbc0f1628e40a2b92201bb3e4ebc116ed2f9e", class: "nylas-form-card__content" }, n("slot", { key: "861b981bb7a420151fc375cc68dcdcd58ffbb8c2", name: "content" }))));
36
36
  }
37
37
  static get formAssociated() {
38
38
  return !0;
@@ -47,9 +47,9 @@ _([
47
47
  eventToProps: {},
48
48
  fireRegisterEvent: !0
49
49
  }),
50
- i("design:type", Function),
51
- i("design:paramtypes", []),
52
- i("design:returntype", void 0)
50
+ f("design:type", Function),
51
+ f("design:paramtypes", []),
52
+ f("design:returntype", void 0)
53
53
  ], b.prototype, "render", null);
54
54
  b.style = v;
55
55
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-11f33e47.cjs"),b=require("./register-component-a7ea27ad-2343f3df.cjs");require("react");require("react-dom");const y=':host{display:block;--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}.nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}',f=y;var m=function(a,n,t,r){var c=arguments.length,s=c<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,n,t,r);else for(var o=a.length-1;o>=0;o--)(l=a[o])&&(s=(c<3?l(s):c>3?l(n,t,s):l(n,t))||s);return c>3&&s&&Object.defineProperty(n,t,s),s},d=function(a,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,n)};const i=class{constructor(a){e.registerInstance(this,a),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals)}connectedCallback(){e.debug("nylas-event-card","connectedCallback")}componentWillLoad(){e.debug("nylas-event-card","componentWillLoad")}componentDidLoad(){e.debug("nylas-event-card","componentDidLoad")}disconnectedCallback(){e.debug("nylas-event-card","disconnectedCallback");const a=["header-title","header-subtitle","content"];e.checkForMissingSlots(a,this.host)}render(){return e.h(e.Host,{key:"edd213ab1404821cd67e4ebf86ce0ce31a318297"},e.h("div",{key:"ab47490c5fceaec1146f85321eabcef49a9c3bfd",class:"nylas-form-card",part:"nfc"},e.h("div",{key:"495c25505690cb1a68883e7a56cb35a8f4d65711",class:"nylas-form-card__header",part:"nfc__header"},e.h("slot",{key:"b8c45b0b092e2e63f317737b13edd38404d6722b",name:"header-title"}),e.h("slot",{key:"99973ac46a519e51c33a5f3a8d947a3aea5ef7f5",name:"header-subtitle"})),e.h("div",{key:"0c34a7b8147e93806d5539d3a7ecb9672de3e8db",class:"nylas-form-card__content"},e.h("slot",{key:"c56721052406c7478464e17e05d023255cb24a8c",name:"content"}))))}static get formAssociated(){return!0}get host(){return e.getElement(this)}};m([b.RegisterComponent({name:"nylas-form-card",eventToProps:{},fireRegisterEvent:!0}),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"render",null);i.style=f;exports.nylas_form_card=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-6b9d4b01.cjs"),b=require("./register-component-679c1308-b5a96acf.cjs");require("react");require("react-dom");const i=':host{display:block;--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}.nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}',y=i;var m=function(a,n,t,r){var c=arguments.length,s=c<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,t):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,n,t,r);else for(var o=a.length-1;o>=0;o--)(l=a[o])&&(s=(c<3?l(s):c>3?l(n,t,s):l(n,t))||s);return c>3&&s&&Object.defineProperty(n,t,s),s},d=function(a,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,n)};const f=class{constructor(a){e.registerInstance(this,a),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals)}connectedCallback(){e.debug("nylas-event-card","connectedCallback")}componentWillLoad(){e.debug("nylas-event-card","componentWillLoad")}componentDidLoad(){e.debug("nylas-event-card","componentDidLoad")}disconnectedCallback(){e.debug("nylas-event-card","disconnectedCallback");const a=["header-title","header-subtitle","content"];e.checkForMissingSlots(a,this.host)}render(){return e.h(e.Host,{key:"9c490244ceaa1c08fae75cad5f796e2b45ea2538"},e.h("div",{key:"696b86c8697f4062afcd8a5862c97bf3bf5492e0",class:"nylas-form-card",part:"nfc"},e.h("div",{key:"af1f2eb827a74586fe44b476f1d59f9f8785e980",class:"nylas-form-card__header",part:"nfc__header"},e.h("slot",{key:"968b720f04d9e64df5708fd1c4d94a9998aa72fc",name:"header-title"}),e.h("slot",{key:"4df6bddacc17d303f3be42584be48e50bf7fb0f0",name:"header-subtitle"})),e.h("div",{key:"890fbc0f1628e40a2b92201bb3e4ebc116ed2f9e",class:"nylas-form-card__content"},e.h("slot",{key:"861b981bb7a420151fc375cc68dcdcd58ffbb8c2",name:"content"}))))}static get formAssociated(){return!0}get host(){return e.getElement(this)}};m([b.RegisterComponent({name:"nylas-form-card",eventToProps:{},fireRegisterEvent:!0}),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],f.prototype,"render",null);f.style=y;exports.nylas_form_card=f;
@@ -1,5 +1,5 @@
1
- import { r as h, d as o, h as l, H as u } from "./index-a282e817.js";
2
- import { R as m } from "./register-component-a7ea27ad-fa2c4b17.js";
1
+ import { r as h, d as o, h as l, H as u } from "./index-e475e0c0.js";
2
+ import { R as m } from "./register-component-679c1308-de697ecb.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  const p = ":host{display:block}div{height:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fade-in{animation:fadeIn 1.5s}.fade-out{animation:fadeOut 1.5s}@keyframes slideIn{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes slideOut{0%{transform:translateY(0)}100%{transform:translateY(100%)}}.slide-in{animation:slideIn 1.5s}.slide-out{animation:slideOut 1.5s}@keyframes swipeIn{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes swipeOut{0%{transform:translateX(0)}100%{transform:translateX(100%)}}.swipe-in{animation:swipeIn 1.5s}.swipe-out{animation:swipeOut 1.5s}", y = p;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-11f33e47.cjs"),u=require("./register-component-a7ea27ad-2343f3df.cjs");require("react");require("react-dom");const c=":host{display:block}div{height:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fade-in{animation:fadeIn 1.5s}.fade-out{animation:fadeOut 1.5s}@keyframes slideIn{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes slideOut{0%{transform:translateY(0)}100%{transform:translateY(100%)}}.slide-in{animation:slideIn 1.5s}.slide-out{animation:slideOut 1.5s}@keyframes swipeIn{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes swipeOut{0%{transform:translateX(0)}100%{transform:translateX(100%)}}.swipe-in{animation:swipeIn 1.5s}.swipe-out{animation:swipeOut 1.5s}",h=c;var m=function(e,n,s,a){var t=arguments.length,o=t<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,s):a,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,n,s,a);else for(var f=e.length-1;f>=0;f--)(r=e[f])&&(o=(t<3?r(o):t>3?r(n,s,o):r(n,s))||o);return t>3&&o&&Object.defineProperty(n,s,o),o},l=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const d=class{constructor(e){i.registerInstance(this,e),this.state=void 0,this.isStateSet=void 0,this.isBoolean=void 0,this.getStore=void 0,this.transition="none",this.show=!1,this.classes={},this.initTransition=this.initTransition.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){i.debug("[nylas-if-state] Component will load"),this.watchStore(!0)}async componentDidLoad(){i.debug("[nylas-if-state] Component did load")}shouldRender(){const[e,n]=this.state?this.state.split("."):["",""],s=this.getStore;if(typeof s>"u")return i.debug(`[nylas-if-state] Store name: ${e} | State name: ${n}`,{getStore:s}),!1;const a=s(e);if(typeof a>"u")return i.debug(`[nylas-if-state] Store name: ${e} | State name: ${n}`,{store:a}),!1;const t=a.state[n];return typeof this.isStateSet=="boolean"?this.isStateSet===!1&&(typeof t>"u"||t===null||t.length===0)||this.isStateSet===!0&&typeof t<"u"&&t!==null:typeof this.isBoolean=="boolean"?this.isBoolean===!0&&typeof t<"u"&&t===!0||this.isBoolean===!1&&typeof t<"u"&&t===!1:!1}onGetStoreChange(){this.watchStore(!0)}watchStore(e=!1){const[n,s]=this.state?this.state.split("."):["",""],a=this.getStore;if(typeof a>"u")return i.debug(`[nylas-if-state] Store name: ${n} | State name: ${s}`,{getStore:a}),null;const t=a(n);if(typeof t>"u")return i.debug(`[nylas-if-state] Store name: ${n} | State name: ${s}`,{store:t}),null;e===!0&&this.initTransition(),t.onChange(s,this.initTransition)}initTransition(){const e=this.shouldRender();switch(this.transition){case"fade":case"slide":case"swipe":this.classes={[`${this.transition}-in`]:e,[`${this.transition}-out`]:!e},setTimeout(()=>{this.show=e},150);break;default:this.show=this.shouldRender();break}}render(){return i.h(i.Host,{key:"8c7133e9d01ecb6d14db3a6f30321ecbb7047dcb"},i.h("div",{key:"81ba387d18d24761a8f89da678161aaf5755c3f2",class:this.classes},this.show&&i.h("slot",null)))}static get watchers(){return{getStore:["onGetStoreChange"]}}};m([u.RegisterComponent({name:"nylas-if-state",getStoresToProp:"getStore",fireRegisterEvent:!0}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],d.prototype,"render",null);d.style=h;exports.nylas_if_state=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-6b9d4b01.cjs"),u=require("./register-component-679c1308-b5a96acf.cjs");require("react");require("react-dom");const c=":host{display:block}div{height:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fade-in{animation:fadeIn 1.5s}.fade-out{animation:fadeOut 1.5s}@keyframes slideIn{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes slideOut{0%{transform:translateY(0)}100%{transform:translateY(100%)}}.slide-in{animation:slideIn 1.5s}.slide-out{animation:slideOut 1.5s}@keyframes swipeIn{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes swipeOut{0%{transform:translateX(0)}100%{transform:translateX(100%)}}.swipe-in{animation:swipeIn 1.5s}.swipe-out{animation:swipeOut 1.5s}",h=c;var m=function(e,n,s,a){var t=arguments.length,o=t<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,s):a,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,n,s,a);else for(var f=e.length-1;f>=0;f--)(r=e[f])&&(o=(t<3?r(o):t>3?r(n,s,o):r(n,s))||o);return t>3&&o&&Object.defineProperty(n,s,o),o},l=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const d=class{constructor(e){i.registerInstance(this,e),this.state=void 0,this.isStateSet=void 0,this.isBoolean=void 0,this.getStore=void 0,this.transition="none",this.show=!1,this.classes={},this.initTransition=this.initTransition.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){i.debug("[nylas-if-state] Component will load"),this.watchStore(!0)}async componentDidLoad(){i.debug("[nylas-if-state] Component did load")}shouldRender(){const[e,n]=this.state?this.state.split("."):["",""],s=this.getStore;if(typeof s>"u")return i.debug(`[nylas-if-state] Store name: ${e} | State name: ${n}`,{getStore:s}),!1;const a=s(e);if(typeof a>"u")return i.debug(`[nylas-if-state] Store name: ${e} | State name: ${n}`,{store:a}),!1;const t=a.state[n];return typeof this.isStateSet=="boolean"?this.isStateSet===!1&&(typeof t>"u"||t===null||t.length===0)||this.isStateSet===!0&&typeof t<"u"&&t!==null:typeof this.isBoolean=="boolean"?this.isBoolean===!0&&typeof t<"u"&&t===!0||this.isBoolean===!1&&typeof t<"u"&&t===!1:!1}onGetStoreChange(){this.watchStore(!0)}watchStore(e=!1){const[n,s]=this.state?this.state.split("."):["",""],a=this.getStore;if(typeof a>"u")return i.debug(`[nylas-if-state] Store name: ${n} | State name: ${s}`,{getStore:a}),null;const t=a(n);if(typeof t>"u")return i.debug(`[nylas-if-state] Store name: ${n} | State name: ${s}`,{store:t}),null;e===!0&&this.initTransition(),t.onChange(s,this.initTransition)}initTransition(){const e=this.shouldRender();switch(this.transition){case"fade":case"slide":case"swipe":this.classes={[`${this.transition}-in`]:e,[`${this.transition}-out`]:!e},setTimeout(()=>{this.show=e},150);break;default:this.show=this.shouldRender();break}}render(){return i.h(i.Host,{key:"8c7133e9d01ecb6d14db3a6f30321ecbb7047dcb"},i.h("div",{key:"81ba387d18d24761a8f89da678161aaf5755c3f2",class:this.classes},this.show&&i.h("slot",null)))}static get watchers(){return{getStore:["onGetStoreChange"]}}};m([u.RegisterComponent({name:"nylas-if-state",getStoresToProp:"getStore",fireRegisterEvent:!0}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],d.prototype,"render",null);d.style=h;exports.nylas_if_state=d;