@nylas/react 1.3.3 → 1.3.5

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 (149) hide show
  1. package/dist/add-circle-icon.entry-00c87903.js +15 -0
  2. package/dist/{add-circle-icon.entry-89060fe6.cjs → add-circle-icon.entry-640d2b46.cjs} +1 -1
  3. package/dist/archive-icon.entry-5b209336.cjs +1 -0
  4. package/dist/archive-icon.entry-e8a39eda.js +15 -0
  5. package/dist/{arrow-icon.entry-e8dbe365.cjs → arrow-icon.entry-a25b7b7e.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-7c38f4ad.js → arrow-icon.entry-fa9584cf.js} +2 -2
  7. package/dist/{bold-icon.entry-4ce7cfee.js → bold-icon.entry-ac6a4956.js} +4 -4
  8. package/dist/{bold-icon.entry-665901ce.cjs → bold-icon.entry-d837c73d.cjs} +1 -1
  9. package/dist/{button-component_2.entry-ca263036.cjs → button-component_2.entry-1471422a.cjs} +1 -1
  10. package/dist/{button-component_2.entry-89ea010b.js → button-component_2.entry-caf33abf.js} +9 -9
  11. package/dist/calendar-agenda-fill-icon_53.entry-094bd4b9.cjs +6 -0
  12. package/dist/{calendar-agenda-fill-icon_53.entry-347662f3.js → calendar-agenda-fill-icon_53.entry-6d7f9c79.js} +1820 -1401
  13. package/dist/{calendar-cancel-icon.entry-c1d33f90.js → calendar-cancel-icon.entry-02015d74.js} +4 -4
  14. package/dist/{calendar-cancel-icon.entry-6b7836c9.cjs → calendar-cancel-icon.entry-42d3d226.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-222e3c0b.js → calendar-check-icon_2.entry-2f7dc236.js} +7 -7
  16. package/dist/{calendar-check-icon_2.entry-67024cd6.cjs → calendar-check-icon_2.entry-45aacd91.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-c08a8f21.js → calendar-icon.entry-70ac9bd6.js} +5 -5
  18. package/dist/{calendar-icon.entry-380048b0.cjs → calendar-icon.entry-90d67b03.cjs} +1 -1
  19. package/dist/{checkbox-component_3.entry-52b27cb9.cjs → checkbox-component_3.entry-231b2254.cjs} +1 -1
  20. package/dist/{checkbox-component_3.entry-dab3c3c8.js → checkbox-component_3.entry-7270533c.js} +5 -5
  21. package/dist/{chevron-icon_3.entry-7be40d99.js → chevron-icon_3.entry-3c95cc88.js} +13 -13
  22. package/dist/{chevron-icon_3.entry-17bb7d23.cjs → chevron-icon_3.entry-ead3d4c8.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-89e0dd55.js → clock-icon_4.entry-af5301d7.js} +18 -18
  24. package/dist/{clock-icon_4.entry-875db481.cjs → clock-icon_4.entry-b50cce70.cjs} +1 -1
  25. package/dist/close-icon.entry-04008446.cjs +1 -0
  26. package/dist/close-icon.entry-0a4105c9.js +15 -0
  27. package/dist/constants-f6e79ab7-23d7236b.cjs +1 -0
  28. package/dist/{constants-54af2051-767e8462.js → constants-f6e79ab7-24392f9e.js} +28 -14
  29. package/dist/{copy-icon.entry-eecc7301.js → copy-icon.entry-312ff230.js} +6 -6
  30. package/dist/copy-icon.entry-74f8ebcd.cjs +1 -0
  31. package/dist/{delete-icon.entry-4b341b41.js → delete-icon.entry-00cb3ee8.js} +2 -2
  32. package/dist/{delete-icon.entry-1e6c99ee.cjs → delete-icon.entry-b61a6706.cjs} +1 -1
  33. package/dist/document-refresh-icon.entry-1c985b1e.js +15 -0
  34. package/dist/{document-refresh-icon.entry-612c5d4f.cjs → document-refresh-icon.entry-27ff5cb2.cjs} +1 -1
  35. package/dist/{feedbackSync-e5cb0245-013ce5ec.cjs → feedbackSync-547e51ee-9b572309.cjs} +1 -1
  36. package/dist/{feedbackSync-e5cb0245-f8e4575c.js → feedbackSync-547e51ee-bcaf691c.js} +1 -1
  37. package/dist/{folder-icon.entry-8d91bc75.js → folder-icon.entry-60b3eda5.js} +2 -2
  38. package/dist/{folder-icon.entry-5bc752d4.cjs → folder-icon.entry-c32a6e15.cjs} +1 -1
  39. package/dist/forward-icon.entry-5f9a7639.js +15 -0
  40. package/dist/forward-icon.entry-8cd805dc.cjs +1 -0
  41. package/dist/{globe-icon.entry-13f5dd98.cjs → globe-icon.entry-21a80591.cjs} +1 -1
  42. package/dist/{globe-icon.entry-c2ddabb6.js → globe-icon.entry-397727e1.js} +4 -4
  43. package/dist/google-logo-icon_4.entry-42e87368.cjs +1 -0
  44. package/dist/{google-logo-icon_4.entry-b58af39b.js → google-logo-icon_4.entry-6ccf8379.js} +168 -148
  45. package/dist/inbox-icon.entry-1e448b4b.js +15 -0
  46. package/dist/inbox-icon.entry-50605b1d.cjs +1 -0
  47. package/dist/index-594c8e7b.js +16763 -0
  48. package/dist/index-cfb93df6.cjs +81 -0
  49. package/dist/{index.es-e9d66a9b-fa36c085.cjs → index.es-2d849a15-2d84f7a5.cjs} +1 -1
  50. package/dist/{index.es-e9d66a9b-a07a895d.js → index.es-2d849a15-4eb8e180.js} +1 -1
  51. package/dist/{info-icon_2.entry-14cad09c.js → info-icon_2.entry-65e0023f.js} +5 -5
  52. package/dist/{info-icon_2.entry-fce3a1ce.cjs → info-icon_2.entry-e7b86847.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-2079f40e.js → input-color-picker.entry-37d2fb66.js} +4 -4
  54. package/dist/{input-color-picker.entry-785e80b1.cjs → input-color-picker.entry-aabfe638.cjs} +1 -1
  55. package/dist/{input-component.entry-0edf62cf.cjs → input-component.entry-51f6da14.cjs} +1 -1
  56. package/dist/{input-component.entry-cee3fa04.js → input-component.entry-c07d92b1.js} +3 -3
  57. package/dist/input-dropdown_2.entry-20fb0552.cjs +1 -0
  58. package/dist/input-dropdown_2.entry-90c08f10.js +228 -0
  59. package/dist/italic-icon.entry-8e5599ff.js +15 -0
  60. package/dist/italic-icon.entry-ee10a040.cjs +1 -0
  61. package/dist/multi-select-dropdown.entry-656d2791.cjs +1 -0
  62. package/dist/multi-select-dropdown.entry-c143becc.js +116 -0
  63. package/dist/{nylas-booked-event-card_12.entry-56068565.js → nylas-booked-event-card_12.entry-4974ffe6.js} +211 -190
  64. package/dist/nylas-booked-event-card_12.entry-669bb872.cjs +1 -0
  65. package/dist/{nylas-form-card.entry-df1c70ff.js → nylas-form-card.entry-42e718e2.js} +8 -8
  66. package/dist/{nylas-form-card.entry-77485e1d.cjs → nylas-form-card.entry-55d3909c.cjs} +1 -1
  67. package/dist/{nylas-if-state.entry-0271bf92.cjs → nylas-if-state.entry-4de782b7.cjs} +1 -1
  68. package/dist/{nylas-if-state.entry-74c342ef.js → nylas-if-state.entry-beef8af6.js} +3 -3
  69. package/dist/{nylas-login.entry-6a308ac9.js → nylas-login.entry-1661cbd4.js} +3 -3
  70. package/dist/{nylas-login.entry-2483aa51.cjs → nylas-login.entry-d6b80abe.cjs} +1 -1
  71. package/dist/{nylas-provider.entry-5cbbd312.js → nylas-provider.entry-1f140378.js} +5 -5
  72. package/dist/{nylas-provider.entry-df790de3.cjs → nylas-provider.entry-d5495e1a.cjs} +1 -1
  73. package/dist/nylas-scheduler-editor.entry-bebe4e7d.cjs +2 -0
  74. package/dist/{nylas-scheduler-editor.entry-b6793c45.js → nylas-scheduler-editor.entry-f184f72e.js} +54 -30
  75. package/dist/{nylas-scheduling.entry-2a9aed18.cjs → nylas-scheduling.entry-21c04831.cjs} +1 -1
  76. package/dist/{nylas-scheduling.entry-fea8dca0.js → nylas-scheduling.entry-c335ad21.js} +7 -7
  77. package/dist/{nylas-time-window-picker_2.entry-fc5aa4be.js → nylas-time-window-picker_2.entry-9e0dd470.js} +30 -30
  78. package/dist/{nylas-time-window-picker_2.entry-32f657a2.cjs → nylas-time-window-picker_2.entry-a2651ee7.cjs} +1 -1
  79. package/dist/{person-icon.entry-c853f6b5.cjs → person-icon.entry-21946944.cjs} +1 -1
  80. package/dist/{person-icon.entry-fae1d972.js → person-icon.entry-f9ca9147.js} +4 -4
  81. package/dist/{play-icon.entry-b07a4311.cjs → play-icon.entry-b27fcb18.cjs} +1 -1
  82. package/dist/{play-icon.entry-6ccd7cb6.js → play-icon.entry-dbfed5e8.js} +4 -4
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +1 -1
  85. package/dist/{refresh-icon.entry-b717e4fe.js → refresh-icon.entry-7886041f.js} +4 -4
  86. package/dist/{refresh-icon.entry-a218275f.cjs → refresh-icon.entry-9d94a60b.cjs} +1 -1
  87. package/dist/{register-component-5d7bcc15-43981253.js → register-component-677d8d2b-0113766e.js} +1 -1
  88. package/dist/{register-component-5d7bcc15-bb9405d1.cjs → register-component-677d8d2b-4738af1d.cjs} +1 -1
  89. package/dist/{reply-all-icon.entry-cd2bafd1.cjs → reply-all-icon.entry-f0e0a5c4.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-f20c4a10.js → reply-all-icon.entry-fdd0058e.js} +5 -5
  91. package/dist/reply-icon.entry-0a42fb2c.cjs +1 -0
  92. package/dist/reply-icon.entry-a8d2b0f8.js +15 -0
  93. package/dist/{scheduler-config-store-ed4a8dfd-2619e757.js → scheduler-config-store-ed4a8dfd-012dcf85.js} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-96520080.cjs → scheduler-config-store-ed4a8dfd-a16d5c62.cjs} +1 -1
  95. package/dist/{scheduler-store-3acf4d70-68aacbea.js → scheduler-store-92eb8804-bc68a43a.js} +2 -2
  96. package/dist/{scheduler-store-3acf4d70-53282ac4.cjs → scheduler-store-92eb8804-c3deee73.cjs} +1 -1
  97. package/dist/sent-icon.entry-c3f84a59.cjs +1 -0
  98. package/dist/sent-icon.entry-e047f087.js +15 -0
  99. package/dist/spam-icon.entry-55d01416.js +15 -0
  100. package/dist/spam-icon.entry-671eb165.cjs +1 -0
  101. package/dist/{star-icon.entry-a6e85c82.cjs → star-icon.entry-4dcae472.cjs} +1 -1
  102. package/dist/{star-icon.entry-6fc95071.js → star-icon.entry-501083c1.js} +5 -5
  103. package/dist/{stop-icon.entry-8b041eda.js → stop-icon.entry-130a28b2.js} +2 -2
  104. package/dist/{stop-icon.entry-eee61c96.cjs → stop-icon.entry-ed949255.cjs} +1 -1
  105. package/dist/{textarea-component.entry-cbe424d4.cjs → textarea-component.entry-65dd740a.cjs} +1 -1
  106. package/dist/{textarea-component.entry-dc92a53f.js → textarea-component.entry-efae9031.js} +2 -2
  107. package/dist/{translate-icon.entry-7307d3f1.cjs → translate-icon.entry-2591baf8.cjs} +1 -1
  108. package/dist/{translate-icon.entry-447f1502.js → translate-icon.entry-676a4150.js} +4 -4
  109. package/dist/trash-fill-icon.entry-5b373be7.js +15 -0
  110. package/dist/trash-fill-icon.entry-c411d0e0.cjs +1 -0
  111. package/dist/{underline-icon.entry-6acfca57.js → underline-icon.entry-3513c5ef.js} +2 -2
  112. package/dist/{underline-icon.entry-c636ca0e.cjs → underline-icon.entry-6bf14476.cjs} +1 -1
  113. package/dist/{warning-icon.entry-290eb052.js → warning-icon.entry-6e723597.js} +7 -7
  114. package/dist/{warning-icon.entry-03615141.cjs → warning-icon.entry-719a094d.cjs} +1 -1
  115. package/package.json +3 -3
  116. package/dist/add-circle-icon.entry-8b883ae4.js +0 -15
  117. package/dist/archive-icon.entry-62c7e06e.js +0 -15
  118. package/dist/archive-icon.entry-e9038aeb.cjs +0 -1
  119. package/dist/calendar-agenda-fill-icon_53.entry-da0fac2a.cjs +0 -9
  120. package/dist/close-icon.entry-4b2a2974.js +0 -15
  121. package/dist/close-icon.entry-e52d8440.cjs +0 -1
  122. package/dist/constants-54af2051-a3596673.cjs +0 -1
  123. package/dist/copy-icon.entry-f3370220.cjs +0 -1
  124. package/dist/document-refresh-icon.entry-653dc173.js +0 -15
  125. package/dist/forward-icon.entry-1d14a631.js +0 -15
  126. package/dist/forward-icon.entry-fe0f2a3a.cjs +0 -1
  127. package/dist/google-logo-icon_4.entry-59423b91.cjs +0 -1
  128. package/dist/inbox-icon.entry-2e8c1cf5.cjs +0 -1
  129. package/dist/inbox-icon.entry-5a452db1.js +0 -15
  130. package/dist/index-5611d3d5.cjs +0 -81
  131. package/dist/index-589f8eee.js +0 -13086
  132. package/dist/input-dropdown.entry-63cf88c1.cjs +0 -1
  133. package/dist/input-dropdown.entry-a1bac5bf.js +0 -134
  134. package/dist/italic-icon.entry-85a90ace.js +0 -15
  135. package/dist/italic-icon.entry-9ced8045.cjs +0 -1
  136. package/dist/multi-select-dropdown.entry-dd699cdf.js +0 -112
  137. package/dist/multi-select-dropdown.entry-f6ac5ae9.cjs +0 -1
  138. package/dist/nylas-booked-event-card_12.entry-89bcf205.cjs +0 -1
  139. package/dist/nylas-scheduler-editor.entry-c23fd4d8.cjs +0 -2
  140. package/dist/reply-icon.entry-30b5222b.cjs +0 -1
  141. package/dist/reply-icon.entry-abfbde42.js +0 -15
  142. package/dist/sent-icon.entry-2b183210.cjs +0 -1
  143. package/dist/sent-icon.entry-77bb678e.js +0 -15
  144. package/dist/spam-icon.entry-42f9c9e7.js +0 -15
  145. package/dist/spam-icon.entry-cbeaca0c.cjs +0 -1
  146. package/dist/time-period-selector.entry-45ca7b1a.js +0 -99
  147. package/dist/time-period-selector.entry-60718809.cjs +0 -1
  148. package/dist/trash-fill-icon.entry-1138f73e.cjs +0 -1
  149. package/dist/trash-fill-icon.entry-7d11144b.js +0 -15
@@ -1,10 +1,10 @@
1
- import { r as x, c as h, d as c, q as ae, h as a, i as l, k as re, H as v, g as D, s as ie, t as ke, j as oe, v as Ce, w as _e, x as L, y as xe, z as we, A as O, C as Ee, F as Te } from "./index-589f8eee.js";
2
- import { R as S } from "./register-component-5d7bcc15-43981253.js";
3
- import { T as j, a as le, b as se } from "./constants-54af2051-767e8462.js";
1
+ import { r as w, c as h, d as c, q as ie, h as a, i as l, k as le, H as k, g as S, s as oe, t as _e, j as se, v as xe, w as we, x as I, y as Ee, z as Te, A as O, C as Be, F as De } from "./index-594c8e7b.js";
2
+ import { R as L } from "./register-component-677d8d2b-0113766e.js";
3
+ import { T as j, b as de, a as re } from "./constants-f6e79ab7-24392f9e.js";
4
4
  import "react";
5
5
  import "react-dom";
6
- const Be = ':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-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%}', De = Be;
7
- var Se = function(e, t, n, r) {
6
+ const Se = ':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-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:16px;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%}', Le = Se;
7
+ var Ie = function(e, t, n, r) {
8
8
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
9
9
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
10
10
  i = Reflect.decorate(e, t, n, r);
@@ -16,9 +16,9 @@ var Se = function(e, t, n, r) {
16
16
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
17
17
  return Reflect.metadata(e, t);
18
18
  };
19
- const de = class {
19
+ const ce = class {
20
20
  constructor(e) {
21
- x(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
+ w(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 s, i;
23
23
  const t = new Date(this.selectedTimeslot.start_time), n = (i = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : i.min_cancellation_notice;
24
24
  t.getTime() - n * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime() ? this.cancelBookedEventValidationError.emit({
@@ -55,7 +55,7 @@ const de = class {
55
55
  }
56
56
  async componentDidLoad() {
57
57
  var e, t;
58
- c("[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.'), this.applyThemeConfig(this.themeConfig), this.startTime = ae((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone), this.endTime = ae((t = this.selectedTimeslot) == null ? void 0 : t.end_time, this.selectedTimezone);
58
+ c("[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.'), this.applyThemeConfig(this.themeConfig), this.startTime = ie((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone), this.endTime = ie((t = this.selectedTimeslot) == null ? void 0 : t.end_time, this.selectedTimezone);
59
59
  }
60
60
  applyThemeConfig(e) {
61
61
  if (e)
@@ -63,16 +63,16 @@ const de = class {
63
63
  this.host.style.setProperty(`${t}`, n);
64
64
  }
65
65
  render() {
66
- var n, r, s, i, o, d, p, m, y, k, w, E, T, u, f, g;
66
+ var n, r, s, i, o, d, p, m, y, v, E, T, B, u, f, g;
67
67
  const e = (n = this.configSettings) == null ? void 0 : n.booking_type, t = e && e !== "booking";
68
- return a(v, { key: "5c0d6ded922007d327b55a3536338a82302ca0be", part: "nbec" }, a("div", { key: "a0d3c60605fbf54303527bc6001477db946eb560", class: "nylas-booked-event-card" }, a("div", { key: "043a3aead5724fd56c3075d60ff0cfe470e2d551", class: "booked-event-timezone" }, a("globe-icon", { key: "f21ee01ed85b02982e013d6731bffd8a20ef0ad9" }), j[this.selectedTimezone]), a("div", { key: "5408744046d0b755044db2c88f15dfeed1ac0cd1", class: "event-card-wrapper", part: "nbec__card" }, a("div", { key: "c1e352e8395aa35c9faadadf10a82f04b10cf88e", class: "calendar-icon" }, a("calendar-check-icon", { key: "9e4464eb5a88dafa35340d8441bfc6570c880151" })), a("div", { key: "2265e9737ed82f085e348a6bde53dc68d7d7fc94", class: "booked-event-header" }, a("h2", { key: "30ba50948f9de4ef3f47c72547478c81870d85b2", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${l.t("bookingRescheduled")}` : t && !this.isLoading ? `${l.t("bookingSent")}` : `${l.t("bookingConfirmed")}`, "!"), a("div", { key: "8ae1ffd38656334a233bca8eb7b25b6e7c03c937", class: "card-description", part: "nbec__description" }, t ? l.t("bookingSentDescription") : a("span", null, l.t("bookingConfirmedDescription")))), a("div", { key: "cf6a84c9dc87e923c21468561a7601f476fd85a1", class: "booking-date-time" }, a("checkmark-circle-icon", { key: "7e42ae42fbe6c87a21f2a6031796132a5562d882" }), a("h3", { key: "d92ede4d9f33a3dd461a0e14c4965e614c23f075" }, l.t("bookingDateAndTimeHeader")), a("p", { key: "1da0c2ff11644c6718e8ca512baffbc0affb3fd5" }, (r = this.selectedTimeslot) != null && r.start_time ? re(new Date((s = this.selectedTimeslot) == null ? void 0 : s.start_time).toLocaleDateString(le[this.selectedLanguage], { dateStyle: "full" })) : "-", " ", a("br", { key: "167cd8c78e97697766713811549588e9d6fd3fcb" }), this.startTime, " - ", this.endTime)), a("div", { key: "61d35600d07d7ffccbce3f3aa93a3bfed385637e", class: "booking-participants" }), !t && a("div", { class: "button-container" }, a("div", { class: {
68
+ return a(k, { key: "5c0d6ded922007d327b55a3536338a82302ca0be", part: "nbec" }, a("div", { key: "a0d3c60605fbf54303527bc6001477db946eb560", class: "nylas-booked-event-card" }, a("div", { key: "043a3aead5724fd56c3075d60ff0cfe470e2d551", class: "booked-event-timezone" }, a("globe-icon", { key: "f21ee01ed85b02982e013d6731bffd8a20ef0ad9" }), j[this.selectedTimezone]), a("div", { key: "5408744046d0b755044db2c88f15dfeed1ac0cd1", class: "event-card-wrapper", part: "nbec__card" }, a("div", { key: "c1e352e8395aa35c9faadadf10a82f04b10cf88e", class: "calendar-icon" }, a("calendar-check-icon", { key: "9e4464eb5a88dafa35340d8441bfc6570c880151" })), a("div", { key: "2265e9737ed82f085e348a6bde53dc68d7d7fc94", class: "booked-event-header" }, a("h2", { key: "30ba50948f9de4ef3f47c72547478c81870d85b2", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${l.t("bookingRescheduled")}` : t && !this.isLoading ? `${l.t("bookingSent")}` : `${l.t("bookingConfirmed")}`, "!"), a("div", { key: "8ae1ffd38656334a233bca8eb7b25b6e7c03c937", class: "card-description", part: "nbec__description" }, t ? l.t("bookingSentDescription") : a("span", null, l.t("bookingConfirmedDescription")))), a("div", { key: "cf6a84c9dc87e923c21468561a7601f476fd85a1", class: "booking-date-time" }, a("checkmark-circle-icon", { key: "7e42ae42fbe6c87a21f2a6031796132a5562d882" }), a("h3", { key: "d92ede4d9f33a3dd461a0e14c4965e614c23f075" }, l.t("bookingDateAndTimeHeader")), a("p", { key: "1da0c2ff11644c6718e8ca512baffbc0affb3fd5" }, (r = this.selectedTimeslot) != null && r.start_time ? le(new Date((s = this.selectedTimeslot) == null ? void 0 : s.start_time).toLocaleDateString(de[this.selectedLanguage], { dateStyle: "full" })) : "-", " ", a("br", { key: "167cd8c78e97697766713811549588e9d6fd3fcb" }), this.startTime, " - ", this.endTime)), a("div", { key: "61d35600d07d7ffccbce3f3aa93a3bfed385637e", class: "booking-participants" }), !t && a("div", { class: "button-container" }, a("div", { class: {
69
69
  footer: !0,
70
70
  "no-footer": ((o = (i = this.configSettings) == null ? void 0 : i.scheduler) == null ? void 0 : o.hide_cancellation_options) && ((p = (d = this.configSettings) == null ? void 0 : d.scheduler) == null ? void 0 : p.hide_rescheduling_options) || ((m = this.configSettings) == null ? void 0 : m.booking_type) === "organizer-confirmation",
71
- "no-template-cols": ((k = (y = this.configSettings) == null ? void 0 : y.scheduler) == null ? void 0 : k.hide_cancellation_options) || ((E = (w = this.configSettings) == null ? void 0 : w.scheduler) == null ? void 0 : E.hide_rescheduling_options)
72
- } }, !((u = (T = this.configSettings) == null ? void 0 : T.scheduler) != null && u.hide_cancellation_options) && a("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${l.t("cancelBookingButton")}`), !((g = (f = this.configSettings) == null ? void 0 : f.scheduler) != null && g.hide_rescheduling_options) && a("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${l.t("rescheduleBookingButton")}`))))));
71
+ "no-template-cols": ((v = (y = this.configSettings) == null ? void 0 : y.scheduler) == null ? void 0 : v.hide_cancellation_options) || ((T = (E = this.configSettings) == null ? void 0 : E.scheduler) == null ? void 0 : T.hide_rescheduling_options)
72
+ } }, !((u = (B = this.configSettings) == null ? void 0 : B.scheduler) != null && u.hide_cancellation_options) && a("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${l.t("cancelBookingButton")}`), !((g = (f = this.configSettings) == null ? void 0 : f.scheduler) != null && g.hide_rescheduling_options) && a("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${l.t("rescheduleBookingButton")}`))))));
73
73
  }
74
74
  get host() {
75
- return D(this);
75
+ return S(this);
76
76
  }
77
77
  static get watchers() {
78
78
  return {
@@ -80,8 +80,8 @@ const de = class {
80
80
  };
81
81
  }
82
82
  };
83
- Se([
84
- S({
83
+ Ie([
84
+ L({
85
85
  name: "nylas-booked-event-card",
86
86
  stateToProps: /* @__PURE__ */ new Map([
87
87
  ["scheduler.bookingInfo", "bookingInfo"],
@@ -113,10 +113,10 @@ Se([
113
113
  $("design:type", Function),
114
114
  $("design:paramtypes", []),
115
115
  $("design:returntype", void 0)
116
- ], de.prototype, "render", null);
117
- de.style = De;
118
- const Le = ':host{display:block;height:100%;--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-booking-form{width:100%;padding:1.5rem;box-sizing:border-box;height:450px;overflow-y:auto;height:100%}form{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}sp-textfield{--spectrum-corner-radius-100:var(--nylas-border-radius-2x);--spectrum-textfield-border-color:var(--nylas-base-300);position:relative;width:100%;height:48px;margin-bottom:16px;color:var(--nylas-base-500)}.cta{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;align-items:flex-start;justify-content:space-between;gap:0.5rem;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.cta{grid-template-columns:1fr}}.input-wrapper{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:1rem}.input-wrapper input::placeholder{color:var(--nylas-base-300)}.input-wrapper label,.input-wrapper input{font-family:var(--nylas-font-family);font-size:16px}.input-wrapper .help-text{margin:0;color:var(--nylas-error)}.button-wrapper{width:100%;align-items:flex-start;height:max-content;position:relative}.button-content{display:flex;gap:4px;align-items:center}sp-infield-button{--spectrum-infield-button-background-color:transparent;--spectrum-infield-button-background-color-hover:transparent;--spectrum-infield-button-background-color-active:transparent;--spectrum-infield-button-border-color:transparent;--spectrum-infield-button-border-width:1px;--spectrum-infield-button-border-radius:0;color:var(--nylas-base-600);background:transparent;border:none;outline:1px solid var(--nylas-base-300);border-radius:0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x) 0;height:52px;width:52px;display:flex;position:absolute;right:0;align-items:center;justify-content:center;cursor:pointer}sp-infield-button sp-icon-cross300{color:var(--nylas-base-600)}sp-infield-button.error{border-width:2px;border-color:var(--nylas-error)}input[type=text],input[type=email]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}input[type=text].guest-email,input[type=email].guest-email{color:var(--nylas-base-900);padding-right:52px}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}button-component.remove-guest{position:absolute;height:51px;right:0}button-component.remove-guest.error button{border-color:var(--nylas-error)}button-component.remove-guest button{height:inherit;border-top-left-radius:initial;border-bottom-left-radius:initial;border:none !important;border-left:1px solid var(--nylas-base-300) !important}button-component.remove-guest button:hover,button-component.remove-guest button:focus{outline:1px solid var(--nylas-primary) !important;color:var(--nylas-primary)}button-component.back button{--dot-color:var(--nylas-base-800)}.guest-email-input{position:relative;display:flex;width:100%}', Ie = Le;
119
- var ze = function(e, t, n, r) {
116
+ ], ce.prototype, "render", null);
117
+ ce.style = Le;
118
+ const ze = ':host{display:block;height:100%;--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-booking-form{width:100%;padding:1.5rem;box-sizing:border-box;height:450px;overflow-y:auto;height:100%}form{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}sp-textfield{--spectrum-corner-radius-100:var(--nylas-border-radius-2x);--spectrum-textfield-border-color:var(--nylas-base-300);position:relative;width:100%;height:48px;margin-bottom:16px;color:var(--nylas-base-500)}.cta{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;align-items:flex-start;justify-content:space-between;gap:0.5rem;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.cta{grid-template-columns:1fr}}.input-wrapper{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:1rem}.input-wrapper input::placeholder{color:var(--nylas-base-300)}.input-wrapper label,.input-wrapper input{font-family:var(--nylas-font-family);font-size:16px}.input-wrapper .help-text{margin:0;color:var(--nylas-error)}.button-wrapper{width:100%;align-items:flex-start;height:max-content;position:relative}.button-content{display:flex;gap:4px;align-items:center}sp-infield-button{--spectrum-infield-button-background-color:transparent;--spectrum-infield-button-background-color-hover:transparent;--spectrum-infield-button-background-color-active:transparent;--spectrum-infield-button-border-color:transparent;--spectrum-infield-button-border-width:1px;--spectrum-infield-button-border-radius:0;color:var(--nylas-base-600);background:transparent;border:none;outline:1px solid var(--nylas-base-300);border-radius:0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x) 0;height:52px;width:52px;display:flex;position:absolute;right:0;align-items:center;justify-content:center;cursor:pointer}sp-infield-button sp-icon-cross300{color:var(--nylas-base-600)}sp-infield-button.error{border-width:2px;border-color:var(--nylas-error)}input[type=text],input[type=email]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}input[type=text].guest-email,input[type=email].guest-email{color:var(--nylas-base-900);padding-right:52px}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}button-component.remove-guest{position:absolute;height:51px;right:0}button-component.remove-guest.error button{border-color:var(--nylas-error)}button-component.remove-guest button{height:inherit;border-top-left-radius:initial;border-bottom-left-radius:initial;border:none !important;border-left:1px solid var(--nylas-base-300) !important}button-component.remove-guest button:hover,button-component.remove-guest button:focus{outline:1px solid var(--nylas-primary) !important;color:var(--nylas-primary)}button-component.back button{--dot-color:var(--nylas-base-800)}.guest-email-input{position:relative;display:flex;width:100%}multi-select-dropdown::part(msd_dropdown-label){margin-bottom:4px}multi-select-dropdown::part(msd_dropdown_error){font-size:16px}multi-select-dropdown::part(msd_dropdown-button){height:52px;border-color:var(--nylas-base-300)}multi-select-dropdown::part(msd_dropdown-button--error){border-width:2px;border-color:var(--nylas-error)}', je = ze;
119
+ var Re = function(e, t, n, r) {
120
120
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
122
  i = Reflect.decorate(e, t, n, r);
@@ -128,12 +128,12 @@ var ze = function(e, t, n, r) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(e, t);
130
130
  };
131
- const R = /^[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])?)*$/, ce = class {
131
+ const R = /^[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])?)*$/, fe = class {
132
132
  constructor(e) {
133
- x(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, n) => {
133
+ w(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, n) => {
134
134
  this.resetGuestEmailError(t);
135
135
  const r = [...this.guestEmails];
136
- r[t] = ie(n), this.guestEmails = [...r];
136
+ r[t] = oe(n), this.guestEmails = [...r];
137
137
  }, this.handleGuestBlur = (t, n) => {
138
138
  if (this.resetGuestEmailError(t), n === "") {
139
139
  this.guestEmailErrors[t] = l.t("fieldRequired", { field: l.t("email") });
@@ -153,11 +153,11 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
153
153
  }, this.handleBackButtonClicked = (t) => {
154
154
  t.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
155
155
  }, this.bookButtonClickedHandler = async (t) => {
156
- var m, y, k, w, E, T, u, f, g, b, B;
156
+ var m, y, v, E, T, B, u, f, g, b, C;
157
157
  if (t.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
158
158
  return;
159
159
  c("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
160
- const r = this.name || ((y = (m = this.bookingInfo) == null ? void 0 : m.primaryParticipant) == null ? void 0 : y.name), s = this.email || ((w = (k = this.bookingInfo) == null ? void 0 : k.primaryParticipant) == null ? void 0 : w.email);
160
+ const r = this.name || ((y = (m = this.bookingInfo) == null ? void 0 : m.primaryParticipant) == null ? void 0 : y.name), s = this.email || ((E = (v = this.bookingInfo) == null ? void 0 : v.primaryParticipant) == null ? void 0 : E.email);
161
161
  if (!r || r === "") {
162
162
  this.isNameValid = !1, this.validationError.name = l.t("fieldRequired", { field: l.t("name") }) || "Name is required", this.bookingFormError.emit({
163
163
  title: "Booking form error",
@@ -181,26 +181,26 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
181
181
  }
182
182
  let i = [];
183
183
  if (this.guestEmails.length > 0) {
184
- let C = !1;
185
- if (this.guestEmails.forEach((_, I) => {
186
- _ === "" ? (C = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [I]: l.t("fieldRequired", { field: l.t("email") }) }) : R.test(_) || (C = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [I]: l.t("invalidInputFormat", { field: l.t("email") }) });
187
- }), C) {
184
+ let _ = !1;
185
+ if (this.guestEmails.forEach((x, z) => {
186
+ x === "" ? (_ = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [z]: l.t("fieldRequired", { field: l.t("email") }) }) : R.test(x) || (_ = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [z]: l.t("invalidInputFormat", { field: l.t("email") }) });
187
+ }), _) {
188
188
  this.bookingFormError.emit({
189
189
  title: "Booking form error",
190
190
  description: l.t("invalidInputFormat", { field: l.t("guestEmail") }) || "Invalid guest email"
191
191
  });
192
192
  return;
193
193
  }
194
- i = this.guestEmails.map((_) => ({ name: _.trim(), email: _.trim() }));
194
+ i = this.guestEmails.map((x) => ({ name: x.trim(), email: x.trim() }));
195
195
  } else
196
- (E = this.bookingInfo) != null && E.guests && (i = (T = this.bookingInfo) == null ? void 0 : T.guests);
196
+ (T = this.bookingInfo) != null && T.guests && (i = (B = this.bookingInfo) == null ? void 0 : B.guests);
197
197
  const o = {}, d = ((f = (u = this.configSettings) == null ? void 0 : u.scheduler) == null ? void 0 : f.additional_fields) || {}, p = ((b = (g = this.configSettings) == null ? void 0 : g.booking) == null ? void 0 : b.additional_fields) || {};
198
- (B = this.bookingInfo) != null && B.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([C, _]) => {
199
- C in d && (o[C] = _.value);
200
- }), Object.entries(d).forEach(([C, _]) => {
201
- if (!(C in o)) {
202
- const I = p[C] || _.default || "";
203
- o[C] = I;
198
+ (C = this.bookingInfo) != null && C.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([_, x]) => {
199
+ _ in d && (o[_] = x.value);
200
+ }), Object.entries(d).forEach(([_, x]) => {
201
+ if (!(_ in o)) {
202
+ const z = p[_] || x.default || "";
203
+ o[_] = z;
204
204
  }
205
205
  }), this.detailsConfirmed.emit({
206
206
  primaryParticipant: {
@@ -222,8 +222,8 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
222
222
  c("nylas-booking-form", "componentWillLoad", this.bookingInfo);
223
223
  }
224
224
  componentDidLoad() {
225
- var e, t, n, r, s, i, o, d, p, m, y, k, w, E, T, u, f;
226
- c("nylas-booking-form", "componentDidLoad", this.bookingInfo), this.bookingInfo && ((e = this.bookingInfo) != null && e.primaryParticipant) ? (this.name = (t = this.bookingInfo.primaryParticipant) == null ? void 0 : t.name, this.email = (n = this.bookingInfo.primaryParticipant) == null ? void 0 : n.email) : (s = (r = this.configSettings) == null ? void 0 : r.booking) != null && s.guest && (this.name = (d = (o = (i = this.configSettings) == null ? void 0 : i.booking) == null ? void 0 : o.guest) == null ? void 0 : d.name, this.email = (y = (m = (p = this.configSettings) == null ? void 0 : p.booking) == null ? void 0 : m.guest) == null ? void 0 : y.email), (w = (k = this.configSettings) == null ? void 0 : k.booking) != null && w.additional_guests && ((T = (E = this.configSettings) == null ? void 0 : E.booking) == null ? void 0 : T.additional_guests.length) > 0 && (this.guestEmails = (f = (u = this.configSettings) == null ? void 0 : u.booking) == null ? void 0 : f.additional_guests.map((g) => g.email)), this.applyThemeConfig(this.themeConfig);
225
+ var e, t, n, r, s, i, o, d, p, m, y, v, E, T, B, u, f;
226
+ c("nylas-booking-form", "componentDidLoad", this.bookingInfo), this.bookingInfo && ((e = this.bookingInfo) != null && e.primaryParticipant) ? (this.name = (t = this.bookingInfo.primaryParticipant) == null ? void 0 : t.name, this.email = (n = this.bookingInfo.primaryParticipant) == null ? void 0 : n.email) : (s = (r = this.configSettings) == null ? void 0 : r.booking) != null && s.guest && (this.name = (d = (o = (i = this.configSettings) == null ? void 0 : i.booking) == null ? void 0 : o.guest) == null ? void 0 : d.name, this.email = (y = (m = (p = this.configSettings) == null ? void 0 : p.booking) == null ? void 0 : m.guest) == null ? void 0 : y.email), (E = (v = this.configSettings) == null ? void 0 : v.booking) != null && E.additional_guests && ((B = (T = this.configSettings) == null ? void 0 : T.booking) == null ? void 0 : B.additional_guests.length) > 0 && (this.guestEmails = (f = (u = this.configSettings) == null ? void 0 : u.booking) == null ? void 0 : f.additional_guests.map((g) => g.email)), this.applyThemeConfig(this.themeConfig);
227
227
  }
228
228
  bookingInfoChangedHandler(e) {
229
229
  e && e.primaryParticipant && (this.name = e.primaryParticipant.name, this.email = e.primaryParticipant.email);
@@ -237,10 +237,10 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
237
237
  this.host.style.setProperty(`${t}`, n);
238
238
  }
239
239
  changeName(e) {
240
- this.isNameValid = !0, this.validationError.name = "", this.name = ke(e), this.nameChanged.emit(e);
240
+ this.isNameValid = !0, this.validationError.name = "", this.name = _e(e), this.nameChanged.emit(e);
241
241
  }
242
242
  changeEmail(e) {
243
- this.isEmailValid = !0, this.validationError.email = "", this.email = ie(e), this.emailChanged.emit(e);
243
+ this.isEmailValid = !0, this.validationError.email = "", this.email = oe(e), this.emailChanged.emit(e);
244
244
  }
245
245
  resetGuestEmailError(e) {
246
246
  const t = { ...this.guestEmailErrors };
@@ -276,6 +276,17 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
276
276
  }
277
277
  this.updateAdditionalFields(e.detail.name, e.detail.value);
278
278
  }
279
+ selecedOptionsChangedHandler(e) {
280
+ if (e.detail.error) {
281
+ this.bookingFormError.emit({
282
+ title: "Booking form error",
283
+ description: e.detail.error
284
+ });
285
+ return;
286
+ }
287
+ const t = e.detail.value.toString();
288
+ this.updateAdditionalFields(e.detail.name, t);
289
+ }
279
290
  switchToggledHandler(e) {
280
291
  this.updateAdditionalFields(e.detail.name, e.detail.checked ? "true" : "false");
281
292
  }
@@ -289,8 +300,8 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
289
300
  this.updateAdditionalFields(e.detail.name, e.detail.value);
290
301
  }
291
302
  render() {
292
- var e, t, n, r, s, i, o, d, p, m, y, k, w, E, T;
293
- return a(v, { key: "0ccfb665ffb616ce318d15aa0ce10706d31ca949" }, a("form", { key: "54cdd9984eacedeecf4bef5b2e4720e45f0662d5", onSubmit: (u) => this.bookButtonClickedHandler(u), noValidate: !0 }, a("div", { key: "45495cfaaafafac5e89c27a8b6dcf51afa0cce78", class: "nylas-booking-form", part: "nbf" }, a("div", { key: "9b6bd2cf0f607049445079054852e6200f1acdca", class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { key: "2805ccbb0ba6746a9d04ad17afa342692a14564f", label: l.t("name"), name: "name", id: "name", defaultValue: ((t = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : t.name) || ((s = (r = (n = this.configSettings) == null ? void 0 : n.booking) == null ? void 0 : r.guest) == null ? void 0 : s.name) || this.name, placeholder: l.t("namePlaceholder"), type: "text", required: !0, requiredError: l.t("fieldRequired", { field: l.t("name") }), patternError: l.t("invalidInputFormat", { field: l.t("name") }), part: "nbf__input-textfield" })), a("div", { key: "10fd8ac7f0f2e0b29bd602820bd94a817d2d2f8f", class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { key: "5700f114ac983a50e8b7b0df7044aa5da183a22a", label: l.t("email"), name: "email", id: "email", pattern: R, defaultValue: ((o = (i = this.bookingInfo) == null ? void 0 : i.primaryParticipant) == null ? void 0 : o.email) || ((m = (p = (d = this.configSettings) == null ? void 0 : d.booking) == null ? void 0 : p.guest) == null ? void 0 : m.email) || this.email, placeholder: l.t("emailPlaceholder"), type: "email", required: !0, requiredError: l.t("fieldRequired", { field: l.t("email") }), patternError: l.t("invalidInputFormat", { field: l.t("email") }), part: "nbf__input-textfield" })), ((k = (y = this.configSettings) == null ? void 0 : y.scheduler) == null ? void 0 : k.hide_additional_guests) !== !0 && a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((u, f) => a("div", { class: "input-wrapper button-wrapper" }, a("label", { class: {
303
+ var e, t, n, r, s, i, o, d, p, m, y, v, E, T, B;
304
+ return a(k, { key: "5c6062534cb10178622df56b87e9d27093302f67" }, a("form", { key: "d8fba8dc8b940082f774b1345641bbe6e756c295", onSubmit: (u) => this.bookButtonClickedHandler(u), noValidate: !0 }, a("div", { key: "b3ce646d930f267196eea3dddd45036d6ead5b83", class: "nylas-booking-form", part: "nbf" }, a("div", { key: "8303180ac1fa78c4652e1a5f9b15950840ecfc11", class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { key: "861d9988deae50c98a013e573b04a73283d7ddd3", label: l.t("name"), name: "name", id: "name", defaultValue: ((t = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : t.name) || ((s = (r = (n = this.configSettings) == null ? void 0 : n.booking) == null ? void 0 : r.guest) == null ? void 0 : s.name) || this.name, placeholder: l.t("namePlaceholder"), type: "text", required: !0, requiredError: l.t("fieldRequired", { field: l.t("name") }), patternError: l.t("invalidInputFormat", { field: l.t("name") }), part: "nbf__input-textfield" })), a("div", { key: "4badb20b9713d9eb7c40687a830a516eaa057b18", class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { key: "92e5688fef7bf79e73e42c33c89173b0ef027101", label: l.t("email"), name: "email", id: "email", pattern: R, defaultValue: ((o = (i = this.bookingInfo) == null ? void 0 : i.primaryParticipant) == null ? void 0 : o.email) || ((m = (p = (d = this.configSettings) == null ? void 0 : d.booking) == null ? void 0 : p.guest) == null ? void 0 : m.email) || this.email, placeholder: l.t("emailPlaceholder"), type: "email", required: !0, requiredError: l.t("fieldRequired", { field: l.t("email") }), patternError: l.t("invalidInputFormat", { field: l.t("email") }), part: "nbf__input-textfield" })), ((v = (y = this.configSettings) == null ? void 0 : y.scheduler) == null ? void 0 : v.hide_additional_guests) !== !0 && a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((u, f) => a("div", { class: "input-wrapper button-wrapper" }, a("label", { class: {
294
305
  error: !!this.guestEmailErrors[f]
295
306
  } }, l.t("guestEmail")), a("div", { class: "guest-email-input" }, a("input", { type: "email", id: `guest-email-${f}`, maxLength: 100, class: {
296
307
  "guest-email": !0,
@@ -304,29 +315,32 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
304
315
  } }), a("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (g) => this.removeGuestButtonClickHandler(g, f), class: {
305
316
  "remove-guest": !0,
306
317
  error: !!this.guestEmailErrors[f]
307
- } }, a("close-icon", null))), a("p", { class: "help-text" }, this.guestEmailErrors[f]))), a("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (u) => this.addGuestButtonClickedHandler(u) }, a("div", { class: "button-content" }, a("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${l.t("addAnotherGuest")}` : `${l.t("addGuest")}`))), (T = Object.entries(((E = (w = this.configSettings) == null ? void 0 : w.scheduler) == null ? void 0 : E.additional_fields) || {})) == null ? void 0 : T.sort((u, f) => u[1].order - f[1].order).map((u) => {
308
- var C, _, I, J, K, Q, ee, te, ne;
309
- const f = u[1], g = f.label, b = u[0], B = ((I = (_ = (C = this.bookingInfo) == null ? void 0 : C.additionalFields) == null ? void 0 : _[b]) == null ? void 0 : I.value) || ((Q = (K = (J = this.configSettings) == null ? void 0 : J.booking) == null ? void 0 : K.additional_fields) == null ? void 0 : Q[b]) || f.default || "";
318
+ } }, a("close-icon", null))), a("p", { class: "help-text" }, this.guestEmailErrors[f]))), a("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (u) => this.addGuestButtonClickedHandler(u) }, a("div", { class: "button-content" }, a("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${l.t("addAnotherGuest")}` : `${l.t("addGuest")}`))), (B = Object.entries(((T = (E = this.configSettings) == null ? void 0 : E.scheduler) == null ? void 0 : T.additional_fields) || {})) == null ? void 0 : B.sort((u, f) => u[1].order - f[1].order).map((u) => {
319
+ var _, x, z, J, K, Q, ee, te, ne, ae;
320
+ const f = u[1], g = f.label, b = u[0], C = ((z = (x = (_ = this.bookingInfo) == null ? void 0 : _.additionalFields) == null ? void 0 : x[b]) == null ? void 0 : z.value) || ((Q = (K = (J = this.configSettings) == null ? void 0 : J.booking) == null ? void 0 : K.additional_fields) == null ? void 0 : Q[b]) || f.default || "";
310
321
  switch (f.type) {
311
322
  case "dropdown":
312
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("select-dropdown", { label: g, name: b, id: b, withSearch: !1, defaultSelectedOption: B ? { value: B, label: B } : void 0, options: (ee = f.options) == null ? void 0 : ee.map((z) => ({ value: z, label: z })), required: f.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
323
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("select-dropdown", { label: g, name: b, id: b, withSearch: !1, defaultSelectedOption: C ? { value: C, label: C } : void 0, options: (ee = f.options) == null ? void 0 : ee.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" }));
313
324
  case "checkbox":
314
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("checkbox-component", { label: g, name: b, id: b, checked: B === "true", required: f.required, part: "nbf__checkbox-component" }));
325
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("checkbox-component", { label: g, name: b, id: b, checked: C === "true", required: f.required, part: "nbf__checkbox-component" }));
315
326
  case "radio_button":
316
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("radio-button-group", { label: g, name: b, id: b, defaultSelectedValue: B || ((te = f.options) == null ? void 0 : te[0]) || "", options: (ne = f.options) == null ? void 0 : ne.map((z) => ({ value: z, label: z })), required: f.required, part: "nbf__radio-button-group" }));
327
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("radio-button-group", { label: g, name: b, id: b, defaultSelectedValue: C || ((te = f.options) == null ? void 0 : te[0]) || "", options: (ne = f.options) == null ? void 0 : ne.map((D) => ({ value: D, label: D })), required: f.required, part: "nbf__radio-button-group" }));
317
328
  case "multi_line_text":
318
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("textarea-component", { label: g, defaultValue: B, name: b, id: b, required: f.required, part: "nbf__textarea-component" }));
329
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("textarea-component", { label: g, defaultValue: C, name: b, id: b, required: f.required, part: "nbf__textarea-component" }));
319
330
  case "date":
320
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("nylas-date-component", { label: g, defaultValue: B, name: b, id: b, required: f.required, part: "nbf__date-component" }));
331
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("nylas-date-component", { label: g, defaultValue: C, name: b, id: b, required: f.required, part: "nbf__date-component" }));
332
+ case "multi_select":
333
+ const Ce = (C == null ? void 0 : C.split(",").map((D) => D.trim())) || [];
334
+ return a("div", null, a("multi-select-dropdown", { label: g, name: b, id: b, options: (ae = f.options) == null ? void 0 : ae.map((D) => ({ value: D, label: D, selected: Ce.includes(D) })), required: f.required, exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" }));
321
335
  case "metadata":
322
336
  return null;
323
337
  default:
324
- return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { label: g, name: b, id: b, type: f.type, defaultValue: B || "", requiredError: l.t("fieldRequired", { field: g }), required: f.required, part: "nbf__input-textfield" }));
338
+ return a("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, a("input-component", { label: g, name: b, id: b, type: f.type, defaultValue: C || "", requiredError: l.t("fieldRequired", { field: g }), required: f.required, part: "nbf__input-textfield" }));
325
339
  }
326
- })), a("div", { key: "7e53011eb10ca0dea67989b1e2b0e84f2ff0e9e8", class: "cta" }, a("button-component", { key: "cb7e0b4ccf44766fc71de041db09070c6509603b", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, a("slot", { key: "dbc2161ee78958dc007053f4d7bddf98f01185ad", name: "booking-form-back-label" }, `${l.t("backButton")}`)), a("button-component", { key: "e265695860c4a20ad0305cde02129bd3d2237208", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, a("slot", { key: "0db692e5e96df1c8403ac6a22a068ca51066e530", name: "booking-form-book-label" }, `${l.t("bookNowButton")}`)))));
340
+ })), a("div", { key: "6f7a32f05fdf35515851598001ebb18b4a2b52ee", class: "cta" }, a("button-component", { key: "de9548b9fab9475596750725fb9498940cde29b1", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, a("slot", { key: "e5fdb427c7b6e25b20c439b5edaa8e545d49cb44", name: "booking-form-back-label" }, `${l.t("backButton")}`)), a("button-component", { key: "688a5974bc75ce734a4409e33d379384a1840ff8", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, a("slot", { key: "a588fa553809bb9042db4b06bb0072fbb1cafc15", name: "booking-form-book-label" }, `${l.t("bookNowButton")}`)))));
327
341
  }
328
342
  get host() {
329
- return D(this);
343
+ return S(this);
330
344
  }
331
345
  static get watchers() {
332
346
  return {
@@ -335,8 +349,8 @@ const R = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
335
349
  };
336
350
  }
337
351
  };
338
- ze([
339
- S({
352
+ Re([
353
+ L({
340
354
  name: "nylas-booking-form",
341
355
  stateToProps: /* @__PURE__ */ new Map([
342
356
  ["scheduler.isLoading", "isLoading"],
@@ -370,10 +384,10 @@ ze([
370
384
  M("design:type", Function),
371
385
  M("design:paramtypes", []),
372
386
  M("design:returntype", void 0)
373
- ], ce.prototype, "render", null);
374
- ce.style = Ie;
375
- const je = ':host{--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;display:block;width:400px;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form form{width:100%}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0;color:var(--nylas-base-900)}.nylas-cancel-booking-form__description{font-size:1rem;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600);padding-bottom:1.25rem}.nylas-cancel-booking-form__calendar-icon{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)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}.footer{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:1.25rem;gap:1rem;border-top:1px solid var(--nylas-base-200);margin-top:1.25rem}', Re = je;
376
- var Fe = function(e, t, n, r) {
387
+ ], fe.prototype, "render", null);
388
+ fe.style = je;
389
+ const Fe = ':host{--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;display:block;width:400px;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form form{width:100%}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0;color:var(--nylas-base-900)}.nylas-cancel-booking-form__description{font-size:16px;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600);padding-bottom:1.25rem}.nylas-cancel-booking-form__calendar-icon{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)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}.footer{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:1.25rem;gap:1rem;border-top:1px solid var(--nylas-base-200);margin-top:1.25rem}', Pe = Fe;
390
+ var Oe = function(e, t, n, r) {
377
391
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
378
392
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
379
393
  i = Reflect.decorate(e, t, n, r);
@@ -385,10 +399,10 @@ var Fe = function(e, t, n, r) {
385
399
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
386
400
  return Reflect.metadata(e, t);
387
401
  };
388
- const fe = class {
402
+ const he = class {
389
403
  constructor(e) {
390
404
  var t, n;
391
- x(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 = () => {
405
+ w(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 = () => {
392
406
  this.goBackButtonClicked.emit();
393
407
  }, this.handleSubmitCancelBooking = (r) => {
394
408
  var o, d, p;
@@ -442,10 +456,10 @@ const fe = class {
442
456
  }
443
457
  render() {
444
458
  var e, t;
445
- return a(v, { key: "a28fc058c46d2d16bc902bc3660f50316c57dece", part: "ncbf" }, a("div", { key: "84f2ba1baba4acba17364298b40dd6758f992476", class: "nylas-cancel-booking-form", part: "ncbf__card" }, a("div", { key: "3d3a21bbfafb1f6e5729dba6d2cce61c09d55d7f", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, a("calendar-cancel-icon", { key: "4da0905147c24eca01cf4d6e008b20db62fe1172" })), a("h3", { key: "dea90396dfe208b42228f5627421f909c94a6d3d", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, l.t("cancelBookingTitle")), a("div", { key: "4e7223a576a56dbd704b0f85b05928c4075eaa10", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (t = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && t.cancellation_policy ? this.cancellationPolicy : `${l.t("cancelBookingMessage")}`), a("form", { key: "d779a47d129a3e49d6f021c4fa148c4354e0b8e2", onSubmit: this.handleSubmitCancelBooking }, a("textarea-component", { key: "06c3d25a5fe75a4ea450703568648ca3741549c7", id: "cancel-reason", name: "cancel-reason", required: !0, label: l.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), a("div", { key: "19447dd729cc312c9a95c8977b50f335a3941d75", class: "footer" }, a("button-component", { key: "3c2fe7523fcd7127af466921e84722b368cb54bd", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, l.t("cancelBookingButton")), !!this.eventInfo && a("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, l.t("goBackButton"))))));
459
+ return a(k, { key: "a883955600837a2006648886cc55ac8bd0ea0076", part: "ncbf" }, a("div", { key: "868e3b711cd18b2fabc29d5d179255ed1d9ba0dc", class: "nylas-cancel-booking-form", part: "ncbf__card" }, a("div", { key: "20dabbd57825f213f7a7f1700de22cd8228409b8", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, a("calendar-cancel-icon", { key: "d6bab72a846359fdec0e0ee30c23c4ab41f33a8e" })), a("h3", { key: "ac741c5913c7977bb411f6dec7ca25ce498a875a", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, l.t("cancelBookingTitle")), a("div", { key: "4938ceba259171a7b73465ee1979f7f42d99110f", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (t = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && t.cancellation_policy ? this.cancellationPolicy : `${l.t("cancelBookingMessage")}`), a("form", { key: "7b33c284b2c9ee3aa92b5faf1f9b25acb5cacd2e", onSubmit: this.handleSubmitCancelBooking }, a("textarea-component", { key: "c2cdfac338d6af301c84ce5120d79e0eba92f56a", id: "cancel-reason", name: "cancel-reason", required: !0, label: l.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), a("div", { key: "675ccb5dc874a97d05cacde94fec4b17c95c2e07", class: "footer" }, a("button-component", { key: "2dcba1cec03a6f21766dc1bc3f10aa8790dcc022", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, l.t("cancelBookingButton")), !!this.eventInfo && a("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, l.t("goBackButton"))))));
446
460
  }
447
461
  get host() {
448
- return D(this);
462
+ return S(this);
449
463
  }
450
464
  static get watchers() {
451
465
  return {
@@ -454,8 +468,8 @@ const fe = class {
454
468
  };
455
469
  }
456
470
  };
457
- Fe([
458
- S({
471
+ Oe([
472
+ L({
459
473
  name: "nylas-cancel-booking-form",
460
474
  stateToProps: /* @__PURE__ */ new Map([
461
475
  ["scheduler.configSettings", "configSettings"],
@@ -496,10 +510,10 @@ Fe([
496
510
  N("design:type", Function),
497
511
  N("design:paramtypes", []),
498
512
  N("design:returntype", void 0)
499
- ], fe.prototype, "render", null);
500
- fe.style = Re;
501
- const Pe = ':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-cancelled-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-cancelled-event-card{width:inherit}}.nylas-cancelled-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-cancelled-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-cancelled-event-card__calendar-icon{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)}.nylas-cancelled-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', Oe = Pe;
502
- var $e = function(e, t, n, r) {
513
+ ], he.prototype, "render", null);
514
+ he.style = Pe;
515
+ const $e = ':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-cancelled-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-cancelled-event-card{width:inherit}}.nylas-cancelled-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-cancelled-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-cancelled-event-card__calendar-icon{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)}.nylas-cancelled-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', Me = $e;
516
+ var Ne = function(e, t, n, r) {
503
517
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
504
518
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
505
519
  i = Reflect.decorate(e, t, n, r);
@@ -511,9 +525,9 @@ var $e = function(e, t, n, r) {
511
525
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
512
526
  return Reflect.metadata(e, t);
513
527
  };
514
- const he = class {
528
+ const be = class {
515
529
  constructor(e) {
516
- x(this, e), this.closeCancelEventCardClicked = h(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = h(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
530
+ w(this, e), this.closeCancelEventCardClicked = h(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = h(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
517
531
  this.isClosing = !0;
518
532
  const t = (n) => {
519
533
  this.cancelledEventCardError.emit(n), this.isClosing = !1;
@@ -543,10 +557,10 @@ const he = class {
543
557
  }
544
558
  render() {
545
559
  var e, t;
546
- return a(v, { key: "4bc5935f964686d8713ad7e7d1e40c67cdd4e12c", part: "ncec" }, a("div", { key: "56f468bfcd9045f260edbf5ff4d0b15b36d0b71b", class: "nylas-cancelled-event-card", part: "ncec__card" }, a("div", { key: "1ab411b7fe3a3be0acf4b1d959fd28ec008a209a", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, a("calendar-cancel-icon", { key: "2385650a6494031b7f323c7983fc9ea889014cba" })), a("h3", { key: "0b2abe6bf9853fcda33d79b9862a4bed4a002f9e", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, l.t("bookingCancelledTitle"), "!"), a("div", { key: "bffb4124594dd368cbd3889b57919738e46c9dba", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, l.t("bookingCancelledMessage"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), a("div", { key: "cec5f1eadfc6fb46ab380ec62e32a7150846ae60", class: "nylas-cancelled-event-card__cta" }, a("button-component", { key: "98d546eb6b74011e65cf7853481741da1b546427", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${l.t("closingButton")}...` : `${l.t("closeButton")}`))));
560
+ return a(k, { key: "da9997f15e2a3b54e88cecda75b989ff1a929a17", part: "ncec" }, a("div", { key: "8e516fdf70349c1c677f9f43373b513a2777b281", class: "nylas-cancelled-event-card", part: "ncec__card" }, a("div", { key: "2bd793e49e60204dc0b5ec6e2ed60aa8f57e50b5", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, a("calendar-cancel-icon", { key: "36b868641475fa3b2ac6be2d98c2f8b2c51c5538" })), a("h3", { key: "3c2416240fc848487681adbb90eab89877178071", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, l.t("bookingCancelledTitle"), "!"), a("div", { key: "b725c7e2599a5924426a9b37e896cc64095d994a", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, l.t("bookingCancelledMessage"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), a("div", { key: "e23d97e0f59dac5373c652bcfc29b414bafcf099", class: "nylas-cancelled-event-card__cta" }, a("button-component", { key: "7cac75bbdc25ae48051d00fccfc5e322b86c2832", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${l.t("closingButton")}...` : `${l.t("closeButton")}`))));
547
561
  }
548
562
  get host() {
549
- return D(this);
563
+ return S(this);
550
564
  }
551
565
  static get watchers() {
552
566
  return {
@@ -554,8 +568,8 @@ const he = class {
554
568
  };
555
569
  }
556
570
  };
557
- $e([
558
- S({
571
+ Ne([
572
+ L({
559
573
  name: "nylas-cancelled-event-card",
560
574
  stateToProps: /* @__PURE__ */ new Map([
561
575
  ["scheduler.configSettings", "configSettings"],
@@ -576,10 +590,10 @@ $e([
576
590
  H("design:type", Function),
577
591
  H("design:paramtypes", []),
578
592
  H("design:returntype", void 0)
579
- ], he.prototype, "render", null);
580
- he.style = Oe;
581
- const Me = ':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-confirmed-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-confirmed-event-card{width:inherit}}.nylas-confirmed-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-confirmed-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-confirmed-event-card__calendar-icon{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)}.nylas-confirmed-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', Ne = Me;
582
- var He = function(e, t, n, r) {
593
+ ], be.prototype, "render", null);
594
+ be.style = Me;
595
+ const He = ':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-confirmed-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;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){.nylas-confirmed-event-card{width:inherit}}.nylas-confirmed-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-confirmed-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-confirmed-event-card__calendar-icon{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)}.nylas-confirmed-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', qe = He;
596
+ var Ae = function(e, t, n, r) {
583
597
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
584
598
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
585
599
  i = Reflect.decorate(e, t, n, r);
@@ -587,13 +601,13 @@ var He = function(e, t, n, r) {
587
601
  for (var d = e.length - 1; d >= 0; d--)
588
602
  (o = e[d]) && (i = (s < 3 ? o(i) : s > 3 ? o(t, n, i) : o(t, n)) || i);
589
603
  return s > 3 && i && Object.defineProperty(t, n, i), i;
590
- }, A = function(e, t) {
604
+ }, q = function(e, t) {
591
605
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
592
606
  return Reflect.metadata(e, t);
593
607
  };
594
608
  const me = class {
595
609
  constructor(e) {
596
- x(this, e), this.closeConfirmEventCardClicked = h(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = h(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
610
+ w(this, e), this.closeConfirmEventCardClicked = h(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = h(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
597
611
  this.isClosing = !0;
598
612
  const t = (n) => {
599
613
  this.confirmedEventCardError.emit(n), this.isClosing = !1;
@@ -623,10 +637,10 @@ const me = class {
623
637
  }
624
638
  render() {
625
639
  var e, t;
626
- return a(v, { key: "d04d199ead958731939a895c53e72d59b64b9f73", part: "ncec" }, a("div", { key: "889b273f1423d1966f0b258d6358a47832c3ec81", class: "nylas-confirmed-event-card", part: "ncec__card" }, a("div", { key: "75d3ff739f4d4d8fbc64946daea394c90d48b19d", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, a("calendar-cancel-icon", { key: "3263cdac19491c97770937e385432e5dd02281ba" })), a("h3", { key: "5598851974e0ad1f3c408fe5829bef5babc2d7bd", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, l.t("confirmedEventCardTitle"), "!"), a("div", { key: "322c7bc4d0aa39b7a8ccd03583e398c01216b6a0", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, l.t("confirmedEventCardDescription"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), a("div", { key: "fa773e0283bbaec2bade66ee5338150085fd8ea9", class: "nylas-confirmed-event-card__cta" }, a("button-component", { key: "e98a33dac95ef68eb46ceaed793911dc39709980", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${l.t("closingButton")}...` : `${l.t("closeButton")}`))));
640
+ return a(k, { key: "32150831bc61cda8bee5b633cf9f25d13adb50be", part: "ncec" }, a("div", { key: "ced74e070e338973dcf89c61c010357940448dc3", class: "nylas-confirmed-event-card", part: "ncec__card" }, a("div", { key: "3aa9395069cab31c0a586405b1cbff880e175f83", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, a("calendar-cancel-icon", { key: "97fd8d2aacca8fb53c0dccb3b043d2b2e1208b09" })), a("h3", { key: "6e4c56557ca295159a6f3a4c56e181f0da17bf07", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, l.t("confirmedEventCardTitle"), "!"), a("div", { key: "631dd06c937cc87e54efc9a02aed1ca37b457593", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, l.t("confirmedEventCardDescription"), " ", ((t = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : t.name) || "the participants", "."), a("div", { key: "e348ce191e32a00c54e0952ec512776cb1f3c02c", class: "nylas-confirmed-event-card__cta" }, a("button-component", { key: "fc97c826564685ee51facea882aa4cf0a7b01608", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${l.t("closingButton")}...` : `${l.t("closeButton")}`))));
627
641
  }
628
642
  get host() {
629
- return D(this);
643
+ return S(this);
630
644
  }
631
645
  static get watchers() {
632
646
  return {
@@ -634,8 +648,8 @@ const me = class {
634
648
  };
635
649
  }
636
650
  };
637
- He([
638
- S({
651
+ Ae([
652
+ L({
639
653
  name: "nylas-confirmed-event-card",
640
654
  stateToProps: /* @__PURE__ */ new Map([
641
655
  ["scheduler.configSettings", "configSettings"],
@@ -649,12 +663,12 @@ He([
649
663
  },
650
664
  fireRegisterEvent: !0
651
665
  }),
652
- A("design:type", Function),
653
- A("design:paramtypes", []),
654
- A("design:returntype", void 0)
666
+ q("design:type", Function),
667
+ q("design:paramtypes", []),
668
+ q("design:returntype", void 0)
655
669
  ], me.prototype, "render", null);
656
- me.style = Ne;
657
- const q = /* @__PURE__ */ new Date(), V = /* @__PURE__ */ new Date();
670
+ me.style = qe;
671
+ const A = /* @__PURE__ */ new Date(), Z = /* @__PURE__ */ new Date();
658
672
  function P(e, t, n, r) {
659
673
  function s(i) {
660
674
  return e(i = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+i)), i;
@@ -685,12 +699,12 @@ function P(e, t, n, r) {
685
699
  for (; --d >= 0; )
686
700
  for (; t(o, 1), !i(o); )
687
701
  ;
688
- }), n && (s.count = (i, o) => (q.setTime(+i), V.setTime(+o), e(q), e(V), Math.floor(n(q, V))), s.every = (i) => (i = Math.floor(i), !isFinite(i) || !(i > 0) ? null : i > 1 ? s.filter(r ? (o) => r(o) % i === 0 : (o) => s.count(0, o) % i === 0) : s)), s;
702
+ }), n && (s.count = (i, o) => (A.setTime(+i), Z.setTime(+o), e(A), e(Z), Math.floor(n(A, Z))), s.every = (i) => (i = Math.floor(i), !isFinite(i) || !(i > 0) ? null : i > 1 ? s.filter(r ? (o) => r(o) % i === 0 : (o) => s.count(0, o) % i === 0) : s)), s;
689
703
  }
690
- const Ae = 1e3, be = Ae * 60, qe = be * 60, F = qe * 24, Z = P(
704
+ const Ze = 1e3, pe = Ze * 60, Ge = pe * 60, F = Ge * 24, G = P(
691
705
  (e) => e.setHours(0, 0, 0, 0),
692
706
  (e, t) => e.setDate(e.getDate() + t),
693
- (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * be) / F,
707
+ (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pe) / F,
694
708
  (e) => e.getDate() - 1
695
709
  );
696
710
  P((e) => {
@@ -703,8 +717,8 @@ P((e) => {
703
717
  }, (e, t) => {
704
718
  e.setUTCDate(e.getUTCDate() + t);
705
719
  }, (e, t) => (t - e) / F, (e) => Math.floor(e / F));
706
- const Ve = ':host{display:block;min-height:444px;--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}@media screen and (max-width: 768px){:host{min-height:auto}}.nylas-date-picker{display:flex;gap:1rem;flex-direction:column}.header{margin:0 0.5rem;height:48px}.header h2{font-size:1.3125rem;font-weight:400;line-height:1rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}.title{margin:0 -1.25rem;display:flex;flex-direction:column;padding:0 1.5rem;gap:0.5rem;border-bottom:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family)}.title h1{margin-bottom:0;font-size:18px;line-height:20px;font-weight:600;display:flex;gap:0.5rem;align-items:center}.title p{margin-top:0;font-size:16px;display:flex;gap:0.5rem;align-items:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.dates{display:grid;justify-items:center;grid-template-columns:repeat(7, 1fr);gap:0.5rem;margin-bottom:24px}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px;width:48px;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size:16px;font-weight:600;font-family:inherit;color:var(--nylas-base-text);background-color:var(--nylas-base-100);cursor:pointer;border:none}@media screen and (max-width: 412px){.dates .date{width:38px;height:38px;min-width:none}}.dates .date:hover:not(:disabled){box-shadow:0 0 0 2px var(--nylas-base-500) inset}.dates .date.date.current-month{color:var(--nylas-base-800)}.dates .date.date.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0);font-weight:700}.dates .date.date.day-skeleton{color:var(--nylas-base-300)}.dates .date:disabled{color:var(--nylas-base-300);background-color:transparent;font-weight:400;cursor:not-allowed}.dates .day{font-size:12px;color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px;height:32px;display:flex;align-items:center}@media screen and (max-width: 768px){.dates .day{font-size:14px}}.dates .date.day-skeleton{height:48px;width:48px;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out;background-color:var(--nylas-base-50)}@media screen and (max-width: 412px){.dates .date.day-skeleton{width:38px;height:38px;min-width:none}}.dates .date.current-day::after{content:"";position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background-color:var(--nylas-base-500)}.dates .date.current-day.selected::after{background-color:var(--nylas-base-100)}.pagination{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:92px}.pagination .chevron-right{transform:rotate(180deg)}.pagination .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.pagination .button:hover{background-color:var(--nylas-base-50)}.pagination .button:active{background-color:var(--nylas-base-100)}.pagination .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.flex-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--nylas-base-500)}', Ze = Ve;
707
- var Ge = function(e, t, n, r) {
720
+ const We = ':host{display:block;min-height:444px;--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}@media screen and (max-width: 768px){:host{min-height:auto}}.nylas-date-picker{display:flex;gap:1rem;flex-direction:column}.header{margin:0 0.5rem;height:48px}.header h2{font-size:1.3125rem;font-weight:400;line-height:1rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}.title{margin:0 -1.25rem;display:flex;flex-direction:column;padding:0 1.5rem;gap:0.5rem;border-bottom:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family)}.title h1{max-width:376px;margin-bottom:0;font-size:18px;line-height:20px;font-weight:600;display:flex;gap:0.5rem;align-items:center}.title p{margin-top:0;font-size:16px;display:flex;gap:0.5rem;align-items:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.dates{display:grid;justify-items:center;grid-template-columns:repeat(7, 1fr);gap:0.5rem;margin-bottom:24px}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px;width:48px;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size:16px;font-weight:600;font-family:inherit;color:var(--nylas-base-text);background-color:var(--nylas-base-100);cursor:pointer;border:none}@media screen and (max-width: 412px){.dates .date{width:38px;height:38px;min-width:none}}.dates .date:hover:not(:disabled){box-shadow:0 0 0 2px var(--nylas-base-500) inset}.dates .date.date.current-month{color:var(--nylas-base-800)}.dates .date.date.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0);font-weight:700}.dates .date.date.day-skeleton{color:var(--nylas-base-300)}.dates .date:disabled{color:var(--nylas-base-300);background-color:transparent;font-weight:400;cursor:not-allowed}.dates .day{font-size:12px;color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px;height:32px;display:flex;align-items:center}@media screen and (max-width: 768px){.dates .day{font-size:14px}}.dates .date.day-skeleton{height:48px;width:48px;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out;background-color:var(--nylas-base-50)}@media screen and (max-width: 412px){.dates .date.day-skeleton{width:38px;height:38px;min-width:none}}.dates .date.current-day::after{content:"";position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background-color:var(--nylas-base-500)}.dates .date.current-day.selected::after{background-color:var(--nylas-base-100)}.pagination{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:92px}.pagination .chevron-right{transform:rotate(180deg)}.pagination .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.pagination .button:hover{background-color:var(--nylas-base-50)}.pagination .button:active{background-color:var(--nylas-base-100)}.pagination .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.flex-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--nylas-base-500)}', Ve = We;
721
+ var Ue = function(e, t, n, r) {
708
722
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
709
723
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
710
724
  i = Reflect.decorate(e, t, n, r);
@@ -712,20 +726,20 @@ var Ge = function(e, t, n, r) {
712
726
  for (var d = e.length - 1; d >= 0; d--)
713
727
  (o = e[d]) && (i = (s < 3 ? o(i) : s > 3 ? o(t, n, i) : o(t, n)) || i);
714
728
  return s > 3 && i && Object.defineProperty(t, n, i), i;
715
- }, G = function(e, t) {
729
+ }, W = function(e, t) {
716
730
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
717
731
  return Reflect.metadata(e, t);
718
732
  };
719
- const pe = class {
733
+ const ge = class {
720
734
  constructor(e) {
721
- x(this, e), this.dateSelected = h(this, "dateSelected", 7), this.monthChanged = h(this, "monthChanged", 7), this.selectableDates = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedDate = 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;
735
+ w(this, e), this.dateSelected = h(this, "dateSelected", 7), this.monthChanged = h(this, "monthChanged", 7), this.selectableDates = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedDate = 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;
722
736
  }
723
737
  configSettingsChanged(e) {
724
738
  var s;
725
739
  const t = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), n = (s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.available_days_in_future;
726
740
  if (n === void 0)
727
741
  return;
728
- oe(/* @__PURE__ */ new Date(), n).getTime() < t.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
742
+ se(/* @__PURE__ */ new Date(), n).getTime() < t.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
729
743
  }
730
744
  selectedLanguageChanged(e) {
731
745
  l.changeLanguage(e);
@@ -748,8 +762,8 @@ const pe = class {
748
762
  this.host.style.setProperty(`${t}`, n);
749
763
  }
750
764
  getDates() {
751
- const e = Ce(this.month), t = _e(this.month);
752
- return Z.range(Z.offset(t, -t.getDay()), Z.offset(e, 7 - e.getDay()));
765
+ const e = xe(this.month), t = we(this.month);
766
+ return G.range(G.offset(t, -t.getDay()), G.offset(e, 7 - e.getDay()));
753
767
  }
754
768
  selectDate(e) {
755
769
  this.dateSelected.emit(e);
@@ -758,17 +772,17 @@ const pe = class {
758
772
  var s, i;
759
773
  this.month = new Date(this.month.getFullYear(), this.month.getMonth() + e, 1);
760
774
  const t = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), n = (i = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : i.available_days_in_future;
761
- oe(/* @__PURE__ */ new Date(), n).getTime() < t.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
775
+ se(/* @__PURE__ */ new Date(), n).getTime() < t.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
762
776
  }
763
777
  isSelected(e, t, n) {
764
- return e && t && L(e, t) && n && (n == null ? void 0 : n.length) > 0;
778
+ return e && t && I(e, t) && n && (n == null ? void 0 : n.length) > 0;
765
779
  }
766
780
  isDisabled(e, t) {
767
- return e && (t == null ? void 0 : t.find((n) => L(n, e))) === void 0;
781
+ return e && (t == null ? void 0 : t.find((n) => I(n, e))) === void 0;
768
782
  }
769
783
  render() {
770
784
  var e, t, n, r, s, i;
771
- return a(v, { key: "4c20e8d37a61de3397cac0625884fdd9c11cc8af", part: "ndp" }, a("div", { key: "44174b6408db8263ab96c9acb57985af0d0780d2", class: "nylas-date-picker" }, a("div", { key: "962fc8b1ab8d8794df5838e16a477b8f705e4e6f", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? a("h1", null, (t = this.configSettings) == null ? void 0 : t.name) : ((r = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : r.name) && a("h1", null, a("person-icon", null), ((i = (s = this.configSettings) == null ? void 0 : s.organizer) == null ? void 0 : i.name) || "Organizer"), a("p", { key: "422505548dffc0ee5a70811415ff030641faeeff" }, a("clock-icon", { key: "ef51faa1c20ef5caf3f3a8f7ff619c619ba72401" }), this.eventDuration ? xe(this.eventDuration) : `- ${l.t("time.minutes")}`)), a("div", { key: "f593d3bbcb954bd863381e445cff053ce0085714", class: "header flex-row" }, a("h2", { key: "bc844a479c3d7e7b4a2065e91aa79baace20b302", part: "ndp__month-header" }, a("strong", { key: "da5035f141b874d58f626426b71ee7e9dd0b6424" }, we(this.month.toLocaleDateString(void 0, { month: "long" }).toLocaleLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), a("div", { key: "a2721542d5155de0072aa8a191b111b7d8cd7eea", class: "pagination" }, a("button", { key: "ad051ec43c6eb386ddefcab4db66932b079d75e0", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, a("chevron-icon", { key: "29cc3852bddacb1d4dd014aceb061d6baa27bfb4" })), a("button", { key: "92de9256c6c89f2dde6c59717bc9866a122e455c", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, a("chevron-icon", { key: "98e5e9d80629c9e86767ba151e88b20fb1a188b7" })))), a("div", { key: "a63a1331d33c6f1b79d0e2f99e06c8ad0e4a2e50", class: "dates" }, [
785
+ return a(k, { key: "4c20e8d37a61de3397cac0625884fdd9c11cc8af", part: "ndp" }, a("div", { key: "44174b6408db8263ab96c9acb57985af0d0780d2", class: "nylas-date-picker" }, a("div", { key: "962fc8b1ab8d8794df5838e16a477b8f705e4e6f", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? a("h1", null, (t = this.configSettings) == null ? void 0 : t.name) : ((r = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : r.name) && a("h1", null, a("person-icon", null), ((i = (s = this.configSettings) == null ? void 0 : s.organizer) == null ? void 0 : i.name) || "Organizer"), a("p", { key: "422505548dffc0ee5a70811415ff030641faeeff" }, a("clock-icon", { key: "ef51faa1c20ef5caf3f3a8f7ff619c619ba72401" }), this.eventDuration ? Ee(this.eventDuration) : `- ${l.t("time.minutes")}`)), a("div", { key: "f593d3bbcb954bd863381e445cff053ce0085714", class: "header flex-row" }, a("h2", { key: "bc844a479c3d7e7b4a2065e91aa79baace20b302", part: "ndp__month-header" }, a("strong", { key: "da5035f141b874d58f626426b71ee7e9dd0b6424" }, Te(this.month.toLocaleDateString(void 0, { month: "long" }).toLocaleLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), a("div", { key: "a2721542d5155de0072aa8a191b111b7d8cd7eea", class: "pagination" }, a("button", { key: "ad051ec43c6eb386ddefcab4db66932b079d75e0", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, a("chevron-icon", { key: "29cc3852bddacb1d4dd014aceb061d6baa27bfb4" })), a("button", { key: "92de9256c6c89f2dde6c59717bc9866a122e455c", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, a("chevron-icon", { key: "98e5e9d80629c9e86767ba151e88b20fb1a188b7" })))), a("div", { key: "a63a1331d33c6f1b79d0e2f99e06c8ad0e4a2e50", class: "dates" }, [
772
786
  l.t("days.sunday"),
773
787
  l.t("days.monday"),
774
788
  l.t("days.tuesday"),
@@ -784,14 +798,14 @@ const pe = class {
784
798
  "current-month": O(o, this.month)
785
799
  }, style: { animationDelay: `${d * 20}ms` }, part: "ndp__date ndp__date--disabled" }, o.getDate()) : a("button", { class: {
786
800
  date: !0,
787
- selected: !!(this.selectedDate && L(o, this.selectedDate) && this.selectableDates && ((m = this.selectableDates) == null ? void 0 : m.length) > 0),
788
- "current-day": L(o, /* @__PURE__ */ new Date()),
801
+ selected: !!(this.selectedDate && I(o, this.selectedDate) && this.selectableDates && ((m = this.selectableDates) == null ? void 0 : m.length) > 0),
802
+ "current-day": I(o, /* @__PURE__ */ new Date()),
789
803
  "current-month": O(o, this.month)
790
- }, "aria-label": o.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: p, onClick: () => this.selectDate(o), part: `ndp__date ${this.isSelected(o, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${L(o, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${O(o, this.month) ? "ndp__date--current-month" : ""}` }, o.getDate());
804
+ }, "aria-label": o.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: p, onClick: () => this.selectDate(o), part: `ndp__date ${this.isSelected(o, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${I(o, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${O(o, this.month) ? "ndp__date--current-month" : ""}` }, o.getDate());
791
805
  }))));
792
806
  }
793
807
  get host() {
794
- return D(this);
808
+ return S(this);
795
809
  }
796
810
  static get watchers() {
797
811
  return {
@@ -801,8 +815,8 @@ const pe = class {
801
815
  };
802
816
  }
803
817
  };
804
- Ge([
805
- S({
818
+ Ue([
819
+ L({
806
820
  name: "nylas-date-picker",
807
821
  stateToProps: /* @__PURE__ */ new Map([
808
822
  ["scheduler.selectableDates", "selectableDates"],
@@ -823,13 +837,13 @@ Ge([
823
837
  },
824
838
  fireRegisterEvent: !0
825
839
  }),
826
- G("design:type", Function),
827
- G("design:paramtypes", []),
828
- G("design:returntype", void 0)
829
- ], pe.prototype, "render", null);
830
- pe.style = Ze;
831
- const We = ':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-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}', Ue = We;
832
- var Xe = function(e, t, n, r) {
840
+ W("design:type", Function),
841
+ W("design:paramtypes", []),
842
+ W("design:returntype", void 0)
843
+ ], ge.prototype, "render", null);
844
+ ge.style = Ve;
845
+ const Xe = ':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-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}', Ye = Xe;
846
+ var Je = function(e, t, n, r) {
833
847
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
834
848
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
835
849
  i = Reflect.decorate(e, t, n, r);
@@ -837,17 +851,21 @@ var Xe = function(e, t, n, r) {
837
851
  for (var d = e.length - 1; d >= 0; d--)
838
852
  (o = e[d]) && (i = (s < 3 ? o(i) : s > 3 ? o(t, n, i) : o(t, n)) || i);
839
853
  return s > 3 && i && Object.defineProperty(t, n, i), i;
840
- }, W = function(e, t) {
854
+ }, V = function(e, t) {
841
855
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
842
856
  return Reflect.metadata(e, t);
843
857
  };
844
- const ge = class {
858
+ const ue = class {
845
859
  constructor(e) {
846
- x(this, e), this.timezoneChanged = h(this, "timezoneChanged", 7), this.languageChanged = h(this, "languageChanged", 7), this.themeConfig = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = navigator.language;
860
+ var t, n;
861
+ w(this, e), this.timezoneChanged = h(this, "timezoneChanged", 7), this.languageChanged = h(this, "languageChanged", 7), this.themeConfig = void 0, this.bookingInfo = void 0, this.selectedTimezone = ((t = this.bookingInfo) == null ? void 0 : t.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = ((n = this.bookingInfo) == null ? void 0 : n.language) || navigator.language;
847
862
  }
848
863
  themeConfigChanged(e) {
849
864
  this.applyThemeConfig(e);
850
865
  }
866
+ bookingInfoChangedHandler(e) {
867
+ e && (e != null && e.timezone) && this.changeTimezone(e.timezone), e && (e != null && e.language) && this.changeLanguage(e.language);
868
+ }
851
869
  connectedCallback() {
852
870
  }
853
871
  disconnectedCallback() {
@@ -855,7 +873,8 @@ const ge = class {
855
873
  componentWillLoad() {
856
874
  }
857
875
  componentDidLoad() {
858
- c("[nylas-locale-switch] Component did load"), this.applyThemeConfig(this.themeConfig);
876
+ var e, t;
877
+ c("[nylas-locale-switch] Component did load"), this.applyThemeConfig(this.themeConfig), this.bookingInfo && ((e = this.bookingInfo) != null && e.timezone) && this.changeTimezone(this.bookingInfo.timezone), this.bookingInfo && ((t = this.bookingInfo) != null && t.language) && this.changeLanguage(this.bookingInfo.language);
859
878
  }
860
879
  applyThemeConfig(e) {
861
880
  if (e)
@@ -873,7 +892,7 @@ const ge = class {
873
892
  t === "timezone" ? this.changeTimezone(n) : t === "language" && this.changeLanguage(n);
874
893
  }
875
894
  getTimezoneLabelHTML(e) {
876
- const t = Ee(e);
895
+ const t = Be(e);
877
896
  return a("span", { class: "timezone-label", style: {
878
897
  display: "flex",
879
898
  alignItems: "center",
@@ -890,33 +909,35 @@ const ge = class {
890
909
  labelHTML: this.getTimezoneLabelHTML(n),
891
910
  label: j[n],
892
911
  value: n
893
- })), t = Object.keys(se).map((n) => ({
894
- label: se[n],
912
+ })), t = Object.keys(re).map((n) => ({
913
+ label: re[n],
895
914
  value: n
896
915
  }));
897
- return a(v, { key: "879a445840da85f74f8b844caede154613ec328e" }, a("div", { key: "e7c11dc083f190e0c4b541babce3129c458e4f70", class: "nylas-locale-switch", part: "nls" }, a("div", { key: "a764dca464a4dbadf24b1af73cc003558156f009", class: {
916
+ return a(k, { key: "00af320c95ef648f69c9ebde6d741df848190059" }, a("div", { key: "56998ac07ecebb57f763852ea1c46b11328d4d15", class: "nylas-locale-switch", part: "nls" }, a("div", { key: "ba294660f0716060787c9034010ad26b133338f5", class: {
898
917
  "select-wrapper": !0,
899
918
  timezone: !0
900
- }, part: "nls__timezone" }, a("select-dropdown", { key: "94ebb791726435cc32e78c127a43fbb92692882d", name: "timezone", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedTimezone), exportparts: "sd_dropdown: nls__timezone-dropdown, sd_dropdown-button: nls__timezone-drop-button, sd_dropdown-button-selected-label: nls__timezone-drop-button-selected-label, sd_dropdown-content: nls__timezone-drop-content, sd_dropdown_label: nls__timezone-drop-label" }, a("span", { key: "3d3923b8ba91ec563a930945bb7b07072e2fd43a", slot: "select-icon" }, a("globe-icon", { key: "70650f2e15d51241af9973eba1d73fed6c669cc0", width: "20", height: "20" })))), a("div", { key: "9a6fb1221184046119f5025c30366012642dabac", class: {
919
+ }, part: "nls__timezone" }, a("select-dropdown", { key: "e3d1a121cb6230c32ad2e4cf9aeffa4395bd635c", name: "timezone", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedTimezone), exportparts: "sd_dropdown: nls__timezone-dropdown, sd_dropdown-button: nls__timezone-drop-button, sd_dropdown-button-selected-label: nls__timezone-drop-button-selected-label, sd_dropdown-content: nls__timezone-drop-content, sd_dropdown_label: nls__timezone-drop-label" }, a("span", { key: "cc7bb4f138747aab7c5cf673c1b7b3ed09fb9de5", slot: "select-icon" }, a("globe-icon", { key: "717894778dc82c415eab8f764c2c18afc3636ee3", width: "20", height: "20" })))), a("div", { key: "d0a64b3910138c1764e17e2be841dbd3fb746f3d", class: {
901
920
  "select-wrapper": !0,
902
921
  language: !0
903
- }, part: "nls__language" }, a("select-dropdown", { key: "11d162780880afa654e46d32640e79461dabddad", name: "language", options: t, defaultSelectedOption: t.find((n) => n.value == this.selectedLanguage), exportparts: "sd_dropdown: nls__language-dropdown, sd_dropdown-button: nls__language-drop-button, sd_dropdown-content: nls__language-drop-content, sd_dropdown_label: nls__language-drop-label" }, a("span", { key: "b534eee8b7687c103c5d54b620c7d4c1b2199633", slot: "select-icon" }, a("translate-icon", { key: "774adc9377369bcff49f7e9e1acef51f12f89a8d", width: "20", height: "20" }))))));
922
+ }, part: "nls__language" }, a("select-dropdown", { key: "86b417f7b62a0e6c74383e3315e1c6dfdfa09868", name: "language", options: t, defaultSelectedOption: t.find((n) => n.value == this.selectedLanguage), exportparts: "sd_dropdown: nls__language-dropdown, sd_dropdown-button: nls__language-drop-button, sd_dropdown-content: nls__language-drop-content, sd_dropdown_label: nls__language-drop-label" }, a("span", { key: "0f1c14fae74a2543fcc57358c507d1288b02ba9c", slot: "select-icon" }, a("translate-icon", { key: "f5a373fff866cf48f39e5bb3b2aa0f6567044433", width: "20", height: "20" }))))));
904
923
  }
905
924
  get host() {
906
- return D(this);
925
+ return S(this);
907
926
  }
908
927
  static get watchers() {
909
928
  return {
910
- themeConfig: ["themeConfigChanged"]
929
+ themeConfig: ["themeConfigChanged"],
930
+ bookingInfo: ["bookingInfoChangedHandler"]
911
931
  };
912
932
  }
913
933
  };
914
- Xe([
915
- S({
934
+ Je([
935
+ L({
916
936
  name: "nylas-locale-switch",
917
937
  stateToProps: /* @__PURE__ */ new Map([
918
938
  ["scheduler.selectedLanguage", "selectedLanguage"],
919
939
  ["scheduler.selectedTimezone", "selectedTimezone"],
940
+ ["scheduler.bookingInfo", "bookingInfo"],
920
941
  ["scheduler.themeConfig", "themeConfig"]
921
942
  ]),
922
943
  eventToProps: {
@@ -929,23 +950,23 @@ Xe([
929
950
  },
930
951
  fireRegisterEvent: !0
931
952
  }),
932
- W("design:type", Function),
933
- W("design:paramtypes", []),
934
- W("design:returntype", void 0)
935
- ], ge.prototype, "render", null);
936
- ge.style = Ue;
937
- const Ye = ".sc-nylas-logo-h{display:flex}", Je = Ye, Ke = class {
953
+ V("design:type", Function),
954
+ V("design:paramtypes", []),
955
+ V("design:returntype", void 0)
956
+ ], ue.prototype, "render", null);
957
+ ue.style = Ye;
958
+ const Ke = ".sc-nylas-logo-h{display:flex}", Qe = Ke, et = class {
938
959
  constructor(e) {
939
- x(this, e), this.width = "69", this.height = "24";
960
+ w(this, e), this.width = "69", this.height = "24";
940
961
  }
941
962
  render() {
942
- return a("svg", { key: "12dffc0c444183dfd3bb8593076a6b022de4654b", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("g", { key: "89545db6a2731faffdf62b9f0826211c9827af35", "clip-path": "url(#clip0_455_3543)" }, a("path", { key: "bc169c74819239b2c40b3730a445f45d1a16f445", 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" }), a("path", { key: "456cd298652217764f8486bca01860c4f1132e58", 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" }), a("path", { key: "99e86fdeed7fd4e6440e749884432df26dfe1d37", 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" }), a("path", { key: "68231e9e8a5f86804d3590ca240bcaf362df1fa6", 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" }), a("path", { key: "80b2550211f60e218c5f52f975a060e3ac4ea84a", 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" }), a("path", { key: "b5db41daab85f0ffd7738f492ede6189237b7d5f", 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" }), a("path", { key: "9fc6c3fe5eb5f86e4e53126c98958f36a128030f", 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" }), a("path", { key: "dcbcc1f9ad3d20c137644553a90ec0afc7f6bdf9", 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" })), a("defs", { key: "569df0349b4a24ea2d0a0bee9788b0b8911dcf39" }, a("clipPath", { key: "7a24bd2f656eba24c53b46b1b65b6ae5ea11c378", id: "clip0_455_3543" }, a("rect", { key: "60a57936d17acf21b9c58a177f17f3ce3fede7f1", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
963
+ return a("svg", { key: "99d3ef972eb18b7beebcd264c3863762f20db756", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("g", { key: "855b23e638e91b1142b7fb47c17a4763d1e0302f", "clip-path": "url(#clip0_455_3543)" }, a("path", { key: "da34ed8ca958f7424e91b1414c4d4e339b7a703c", 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" }), a("path", { key: "bd3f95628660594d607d45a000a9c745db80fa74", 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" }), a("path", { key: "6dcc6994d434f6d92f6f8977a262072c5442425b", 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" }), a("path", { key: "16c56405f07d879815be6befad1770575c800d7b", 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" }), a("path", { key: "3de8d99ca731b16e8828eca2959e9673830f8e33", 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" }), a("path", { key: "d03b5475a651095cc139a63bc5edeb510ffa803d", 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" }), a("path", { key: "97c2129d3c1de6065d31419fdbf9003a898c2ce8", 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" }), a("path", { key: "4d3686bc5f9c1ce78816523cd32a13c9d7220468", 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" })), a("defs", { key: "9900a72ad101d4d2cb635fad18af7e491487f290" }, a("clipPath", { key: "9afa44c94e88b8929ac91ebe6d6258d9dc92342f", id: "clip0_455_3543" }, a("rect", { key: "bd688e672d4113e964c6fe2e79d50757b5415353", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
943
964
  }
944
965
  };
945
- Ke.style = Je;
946
- 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}', et = Qe, tt = class {
966
+ et.style = Qe;
967
+ const tt = ':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}', nt = tt, at = class {
947
968
  constructor(e) {
948
- x(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
969
+ w(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
949
970
  }
950
971
  onError(e) {
951
972
  c(`[nylas-notification] Error: ${e.detail.notification.title}`), this.handleNotification(e);
@@ -997,15 +1018,15 @@ const Qe = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
997
1018
  this.notifications = this.notifications.filter((t) => t.id !== e);
998
1019
  }
999
1020
  render() {
1000
- return a(v, { key: "82c432ab736b1e268b4ad7716892ded7f44fb020" }, a(Te, { key: "934128c336bb0a350e7f4387da83ed336614dcdb" }, this.notifications.map((e) => a("div", { class: `notif ${e.type}`, key: e.id }, a("div", { class: "content" }, a("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && a("warning-icon", null)), a("span", { class: "message" }, a("span", { class: "title" }, e.title), e.description && a("span", { class: "description" }, e.description))), a("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, a("close-icon", null)))), a("slot", { key: "fabdf8c7c6f66de45dd4dac06d49685450e7edc1" })));
1021
+ return a(k, { key: "37c8f79eb1bb1e30512bda57012ac12edf925955" }, a(De, { key: "6d991acafb35a569a091409cb73de7e0ce048024" }, this.notifications.map((e) => a("div", { class: `notif ${e.type}`, key: e.id }, a("div", { class: "content" }, a("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && a("warning-icon", null)), a("span", { class: "message" }, a("span", { class: "title" }, e.title), e.description && a("span", { class: "description" }, e.description))), a("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, a("close-icon", null)))), a("slot", { key: "37e8972883dac4e8fe1b9d58e53ee8792e4ae94b" })));
1001
1022
  }
1002
1023
  get host() {
1003
- return D(this);
1024
+ return S(this);
1004
1025
  }
1005
1026
  };
1006
- tt.style = et;
1007
- const nt = ':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}.event-card-wrapper{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;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 4rem;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:1rem;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.manage-booking-description{border-top:1px solid var(--nylas-base-200)}.manage-booking-description p{font-size:16px;margin:1rem;padding:0.5rem 1rem;font-weight:400;color:var(--nylas-base-800)}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);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%}button-component{--dot-color:var(--nylas-base-700)}', at = nt;
1008
- var it = function(e, t, n, r) {
1027
+ at.style = nt;
1028
+ const it = ':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}.event-card-wrapper{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;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 4rem;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:16px;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.manage-booking-description{border-top:1px solid var(--nylas-base-200)}.manage-booking-description p{font-size:16px;margin:1rem;padding:0.5rem 1rem;font-weight:400;color:var(--nylas-base-800)}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);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%}button-component{--dot-color:var(--nylas-base-700)}', ot = it;
1029
+ var st = function(e, t, n, r) {
1009
1030
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
1010
1031
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1011
1032
  i = Reflect.decorate(e, t, n, r);
@@ -1017,9 +1038,9 @@ var it = function(e, t, n, r) {
1017
1038
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1018
1039
  return Reflect.metadata(e, t);
1019
1040
  };
1020
- const ue = class {
1041
+ const ye = class {
1021
1042
  constructor(e) {
1022
- x(this, e), this.rejectBookingButtonClicked = h(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = h(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = h(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
1043
+ w(this, e), this.rejectBookingButtonClicked = h(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = h(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = h(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
1023
1044
  this.action = "confirm";
1024
1045
  const t = (n) => {
1025
1046
  this.confirmBookingError.emit(n);
@@ -1051,15 +1072,15 @@ const ue = class {
1051
1072
  this.action = null;
1052
1073
  }
1053
1074
  render() {
1054
- var e, t, n, r, s, i, o, d, p, m, y, k;
1055
- return a(v, { key: "d63c1735d549e11d475d766532c88f09266c2ce9", part: "nmcc" }, a("div", { key: "4483001de670f5de865494dcd058b7db04d90990", class: "event-card-wrapper", part: "nmccc__card" }, a("div", { key: "b89e97cc68f233c1fde366f1d6fdd1a810fb639a", class: "calendar-icon" }, a("calendar-check-icon", { key: "7f3bfa63b5cb20e82a8709c172a9dd1a97538f88" })), a("div", { key: "39cf40798b1458b7aea740acf8406bc7d4297d11", class: "booked-event-header" }, a("h2", { key: "75c57ce1695e04264a23e9e80c11f1f7be80bccd", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${l.t("bookingPendingTitle")}!`)), a("div", { key: "5a60299f2041b7dde33f177fd5b954518146d068", class: "manage-booking-description" }, a("p", { key: "c3f93b40c8cddd87be6e6100080f7da04e253138" }, l.t("bookingPendingnDescription"))), a("div", { key: "9c3784baea0372c1bcbd2b316ba4e9c0fce5f45e", class: {
1075
+ var e, t, n, r, s, i, o, d, p, m, y, v;
1076
+ return a(k, { key: "b4c323bc2244bedc43ffea38922a0ba97424b5bf", part: "nmcc" }, a("div", { key: "d7b9bea1042b6c23497c4a34a730884d1581f7a1", class: "event-card-wrapper", part: "nmccc__card" }, a("div", { key: "c62045056e85744d1b94ae14b926aed48b821fdd", class: "calendar-icon" }, a("calendar-check-icon", { key: "38e95954bf2695949935b6998f5b5422ac2120ef" })), a("div", { key: "9bf921461d40ffe93856da6aa3dd6b29bcdf366e", class: "booked-event-header" }, a("h2", { key: "27beea17ad61d225cd1448b1a1e22c3089bfea6c", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${l.t("bookingPendingTitle")}!`)), a("div", { key: "49a8c37598e7cc0b9148441db85a5f3b9c59cfcb", class: "manage-booking-description" }, a("p", { key: "bba62e3fb07460d9ea1dd0bfa507a2aa29cd3ad8" }, l.t("bookingPendingnDescription"))), a("div", { key: "1d9b9e5965133b7863cc3aca80c73b88e2455dab", class: {
1056
1077
  footer: !0,
1057
1078
  "no-footer": ((t = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : t.hide_cancellation_options) && ((r = (n = this.configSettings) == null ? void 0 : n.scheduler) == null ? void 0 : r.hide_rescheduling_options),
1058
1079
  "no-template-cols": ((i = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : i.hide_cancellation_options) || ((d = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : d.hide_rescheduling_options)
1059
- } }, !((m = (p = this.configSettings) == null ? void 0 : p.scheduler) != null && m.hide_cancellation_options) && a("button-component", { variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${l.t("rejectBookingButton")}`), !((k = (y = this.configSettings) == null ? void 0 : y.scheduler) != null && k.hide_rescheduling_options) && a("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${l.t("confirmBookingButton")}`))));
1080
+ } }, !((m = (p = this.configSettings) == null ? void 0 : p.scheduler) != null && m.hide_cancellation_options) && a("button-component", { variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${l.t("rejectBookingButton")}`), !((v = (y = this.configSettings) == null ? void 0 : y.scheduler) != null && v.hide_rescheduling_options) && a("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${l.t("confirmBookingButton")}`))));
1060
1081
  }
1061
1082
  get host() {
1062
- return D(this);
1083
+ return S(this);
1063
1084
  }
1064
1085
  static get watchers() {
1065
1086
  return {
@@ -1067,8 +1088,8 @@ const ue = class {
1067
1088
  };
1068
1089
  }
1069
1090
  };
1070
- it([
1071
- S({
1091
+ st([
1092
+ L({
1072
1093
  name: "nylas-organizer-confirmation-card",
1073
1094
  stateToProps: /* @__PURE__ */ new Map([
1074
1095
  ["scheduler.organizerConfirmationBookingId", "organizerConfirmationBookingId"],
@@ -1094,10 +1115,10 @@ it([
1094
1115
  U("design:type", Function),
1095
1116
  U("design:paramtypes", []),
1096
1117
  U("design:returntype", void 0)
1097
- ], ue.prototype, "render", null);
1098
- ue.style = at;
1099
- const ot = ':host{--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;display:block;position:relative;height:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:var(--nylas-font-family)}.event-card{display:flex;align-items:center;flex-direction:column;width:calc(100% - 3rem);background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:3rem 1.5rem 1.5rem 1.5rem;position:relative;box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card{margin-bottom:2rem}}.nylas-selected-event-card__date{font-size:min(max(16px, 3vw), 18px);font-weight:600}.nylas-selected-event-card__time{font-size:16px;font-weight:500}.calendar-icon{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)}calendar-icon{display:flex;align-items:center;justify-content:center;height:100%}.event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:8px;gap:4px;align-items:center}@media screen and (max-width: 768px){.event-timezone{margin-bottom:16px}}', st = ot;
1100
- var rt = function(e, t, n, r) {
1118
+ ], ye.prototype, "render", null);
1119
+ ye.style = ot;
1120
+ const rt = ':host{--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;display:block;position:relative;height:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:var(--nylas-font-family)}.event-card{display:flex;align-items:center;flex-direction:column;width:calc(100% - 3rem);background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:3rem 1.5rem 1.5rem 1.5rem;position:relative;box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card{margin-bottom:2rem}}.nylas-selected-event-card__date{font-size:min(max(16px, 3vw), 18px);font-weight:600}.nylas-selected-event-card__time{font-size:16px;font-weight:500}.calendar-icon{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)}calendar-icon{display:flex;align-items:center;justify-content:center;height:100%}.event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:8px;gap:4px;align-items:center}@media screen and (max-width: 768px){.event-timezone{margin-bottom:16px}}', lt = rt;
1121
+ var dt = function(e, t, n, r) {
1101
1122
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
1102
1123
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1103
1124
  i = Reflect.decorate(e, t, n, r);
@@ -1109,9 +1130,9 @@ var rt = function(e, t, n, r) {
1109
1130
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1110
1131
  return Reflect.metadata(e, t);
1111
1132
  };
1112
- const ye = class {
1133
+ const ke = class {
1113
1134
  constructor(e) {
1114
- x(this, e), this.themeConfig = void 0, this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = void 0, this.startTime = "", this.endTime = "";
1135
+ w(this, e), this.themeConfig = void 0, this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = void 0, this.startTime = "", this.endTime = "";
1115
1136
  }
1116
1137
  themeConfigChanged(e) {
1117
1138
  this.applyThemeConfig(e);
@@ -1140,10 +1161,10 @@ const ye = class {
1140
1161
  }
1141
1162
  render() {
1142
1163
  var e;
1143
- return a(v, { key: "e03c7985396173ef1d2bb0ba02ea88e958811a35", part: "nsec" }, a("div", { key: "017d6ce8fc92ef11070d94038e80095acbd90f29", class: "event-card", part: "nsec__card" }, a("div", { key: "b475d6d8481d4e85a383822ed34139a2838a686c", class: "calendar-icon", part: "nsec__icon" }, a("calendar-icon", { key: "83df23c0d499b2932c84175c45c05bb589294f74" })), a("div", { key: "e11fe3c83e6cf3fa926ec3b7e0e381625cb98b0f", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? re((e = this.selectedDate) == null ? void 0 : e.toLocaleDateString(le[this.selectedLanguage || navigator.language], { dateStyle: "full", timeZone: this.selectedTimezone })) : "-"), a("div", { key: "ed9773f2567782ab354ffe28fbbc365d3d2effa5", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), a("div", { key: "16389c36fe0ab7c55e5f71ab22ad8576dc509cae", class: "event-timezone", part: "nsec__timezone" }, a("globe-icon", { key: "2c6d9e03e0687a5912e1f674c08c19b6e612e90a" }), j[this.selectedTimezone]));
1164
+ return a(k, { key: "e03c7985396173ef1d2bb0ba02ea88e958811a35", part: "nsec" }, a("div", { key: "017d6ce8fc92ef11070d94038e80095acbd90f29", class: "event-card", part: "nsec__card" }, a("div", { key: "b475d6d8481d4e85a383822ed34139a2838a686c", class: "calendar-icon", part: "nsec__icon" }, a("calendar-icon", { key: "83df23c0d499b2932c84175c45c05bb589294f74" })), a("div", { key: "e11fe3c83e6cf3fa926ec3b7e0e381625cb98b0f", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? le((e = this.selectedDate) == null ? void 0 : e.toLocaleDateString(de[this.selectedLanguage || navigator.language], { dateStyle: "full", timeZone: this.selectedTimezone })) : "-"), a("div", { key: "ed9773f2567782ab354ffe28fbbc365d3d2effa5", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), a("div", { key: "16389c36fe0ab7c55e5f71ab22ad8576dc509cae", class: "event-timezone", part: "nsec__timezone" }, a("globe-icon", { key: "2c6d9e03e0687a5912e1f674c08c19b6e612e90a" }), j[this.selectedTimezone]));
1144
1165
  }
1145
1166
  get host() {
1146
- return D(this);
1167
+ return S(this);
1147
1168
  }
1148
1169
  static get watchers() {
1149
1170
  return {
@@ -1151,8 +1172,8 @@ const ye = class {
1151
1172
  };
1152
1173
  }
1153
1174
  };
1154
- rt([
1155
- S({
1175
+ dt([
1176
+ L({
1156
1177
  name: "nylas-selected-event-card",
1157
1178
  stateToProps: /* @__PURE__ */ new Map([
1158
1179
  ["scheduler.selectedDate", "selectedDate"],
@@ -1167,10 +1188,10 @@ rt([
1167
1188
  X("design:type", Function),
1168
1189
  X("design:paramtypes", []),
1169
1190
  X("design:returntype", void 0)
1170
- ], ye.prototype, "render", null);
1171
- ye.style = st;
1172
- const lt = ':host{display:block;height:calc(100% - 48px);--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}.time-picker-wrapper{display:flex;flex-direction:column;height:100%}.timeslots{position:relative;display:flex;flex-direction:column;gap:0.75rem;align-items:center;overflow-y:scroll;padding:0.5rem 1.5rem 1.5rem;flex:1}.time{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 12px;gap:0.5rem;font-size:16px;font-weight:500;font-family:inherit;width:100%;height:48px;color:var(--nylas-base-800);background:var(--nylas-base-0);border:none;outline:1.5px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);flex:none;order:4;align-self:stretch;flex-grow:0;cursor:pointer}.time:hover,.time:focus{color:var(--nylas-primary);outline-color:var(--nylas-primary)}.time.selected{font-weight:600;color:var(--nylas-primary);outline:2px solid var(--nylas-primary);border-color:transparent;box-shadow:0 0 0 2px var(--nylas-primary)}.empty{text-align:center;padding:0 1.5rem;color:var(--nylas-base-600);font-size:min(max(12px, 2vw), 14px);height:450px;display:flex;align-items:center;justify-content:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.loading{padding:0 1.5rem}.loading .timeslot-skeleton{width:100%;height:4rem;background-color:var(--nylas-base-50);margin-bottom:0.5rem;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out}.footer{width:100%;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}', dt = lt;
1173
- var ct = function(e, t, n, r) {
1191
+ ], ke.prototype, "render", null);
1192
+ ke.style = lt;
1193
+ const ct = ':host{display:block;height:calc(100% - 48px);--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}.time-picker-wrapper{display:flex;flex-direction:column;height:100%}.timeslots{position:relative;display:flex;flex-direction:column;gap:0.75rem;align-items:center;overflow-y:scroll;padding:0.5rem 1.5rem 1.5rem;flex:1}.time{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 12px;gap:0.5rem;font-size:16px;font-weight:500;font-family:inherit;width:100%;height:48px;color:var(--nylas-base-800);background:var(--nylas-base-0);border:none;outline:1.5px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);flex:none;order:4;align-self:stretch;flex-grow:0;cursor:pointer}.time:hover,.time:focus{color:var(--nylas-primary);outline-color:var(--nylas-primary)}.time.selected{font-weight:600;color:var(--nylas-primary);outline:2px solid var(--nylas-primary);border-color:transparent;box-shadow:0 0 0 2px var(--nylas-primary)}.empty{text-align:center;padding:0 1.5rem;color:var(--nylas-base-600);font-size:min(max(12px, 2vw), 14px);height:450px;display:flex;align-items:center;justify-content:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.loading{padding:0 1.5rem}.loading .timeslot-skeleton{width:100%;height:4rem;background-color:var(--nylas-base-50);margin-bottom:0.5rem;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out}.footer{width:100%;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}', ft = ct;
1194
+ var ht = function(e, t, n, r) {
1174
1195
  var s = arguments.length, i = s < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
1175
1196
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1176
1197
  i = Reflect.decorate(e, t, n, r);
@@ -1184,7 +1205,7 @@ var ct = function(e, t, n, r) {
1184
1205
  };
1185
1206
  const ve = class {
1186
1207
  constructor(e) {
1187
- x(this, e), this.timeslotSelected = h(this, "timeslotSelected", 7), this.timeslotConfirmed = h(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (t, n) => {
1208
+ w(this, e), this.timeslotSelected = h(this, "timeslotSelected", 7), this.timeslotConfirmed = h(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (t, n) => {
1188
1209
  t.preventDefault(), c("[nylas-timeslot-picker] Confirm timeslot", n), this.timeslotConfirmed.emit(n);
1189
1210
  }, this.handleMouseEnter = (t) => {
1190
1211
  this.hoveredTimeslotIndex = t;
@@ -1198,13 +1219,13 @@ const ve = class {
1198
1219
  selectedDateChanged(e) {
1199
1220
  var t;
1200
1221
  if (c("[nylas-timeslot-picker] Selected date changed", { newVal: e }), e && (this.selectedTimeslotIndex = "", typeof e < "u")) {
1201
- const n = (t = this.availability) == null ? void 0 : t.filter((r) => L(r.start_time, e)).map((r) => r);
1222
+ const n = (t = this.availability) == null ? void 0 : t.filter((r) => I(r.start_time, e)).map((r) => r);
1202
1223
  this.times = n || [];
1203
1224
  }
1204
1225
  }
1205
1226
  availabilityChanged(e) {
1206
1227
  if (c("[nylas-timeslot-picker] Available times changed", { newVal: e, selectedDate: this.selectedDate }), typeof e < "u") {
1207
- const t = e == null ? void 0 : e.filter((n) => this.selectedDate && L(n.start_time, this.selectedDate)).map((n) => n);
1228
+ const t = e == null ? void 0 : e.filter((n) => this.selectedDate && I(n.start_time, this.selectedDate)).map((n) => n);
1208
1229
  this.times = t || [];
1209
1230
  }
1210
1231
  }
@@ -1221,7 +1242,7 @@ const ve = class {
1221
1242
  async componentDidLoad() {
1222
1243
  var t;
1223
1244
  c("[nylas-timeslot-picker] Component did load");
1224
- const e = (t = this.availability) == null ? void 0 : t.filter((n) => this.selectedDate && L(n.start_time, this.selectedDate)).map((n) => n);
1245
+ const e = (t = this.availability) == null ? void 0 : t.filter((n) => this.selectedDate && I(n.start_time, this.selectedDate)).map((n) => n);
1225
1246
  this.times = e || [], this.applyThemeConfig(this.themeConfig);
1226
1247
  }
1227
1248
  applyThemeConfig(e) {
@@ -1248,16 +1269,16 @@ const ve = class {
1248
1269
  return `${t.format(e.start_time)} - ${t.format(e.end_time)}`;
1249
1270
  }
1250
1271
  render() {
1251
- return this.isLoading ? a(v, null, a("div", { class: "loading" }, new Array(6).fill(0).map((e, t) => a("div", { class: "timeslot-skeleton", style: { animationDelay: `${t * 20}ms` } })))) : this.availability && this.availability.length === 0 ? a(v, null, a("div", { class: "empty" }, a("span", null, "No dates available"))) : (!this.times || this.times.length === 0) && this.selectedDate ? a(v, null, a("div", { class: "empty" }, a("span", null, "No time slots available for selected date"))) : this.selectedDate ? a(v, { part: "ntp" }, a("div", { class: "time-picker-wrapper", part: "ntp__time-picker-wrapper" }, a("div", { class: "timeslots", part: "ntp__timeslots" }, this.times.map((e, t) => {
1272
+ return this.isLoading ? a(k, null, a("div", { class: "loading" }, new Array(6).fill(0).map((e, t) => a("div", { class: "timeslot-skeleton", style: { animationDelay: `${t * 20}ms` } })))) : this.availability && this.availability.length === 0 ? a(k, null, a("div", { class: "empty" }, a("span", null, "No dates available"))) : (!this.times || this.times.length === 0) && this.selectedDate ? a(k, null, a("div", { class: "empty" }, a("span", null, "No time slots available for selected date"))) : this.selectedDate ? a(k, { part: "ntp" }, a("div", { class: "time-picker-wrapper", part: "ntp__time-picker-wrapper" }, a("div", { class: "timeslots", part: "ntp__timeslots" }, this.times.map((e, t) => {
1252
1273
  var n, r, s, i;
1253
1274
  return a("button", { part: `ntp__timeslot ${((r = (n = this.selectedTimeslot) == null ? void 0 : n.start_time) == null ? void 0 : r.getTime()) === e.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, class: {
1254
1275
  time: !0,
1255
1276
  selected: typeof this.selectedTimeslot < "u" && ((i = (s = this.selectedTimeslot) == null ? void 0 : s.start_time) == null ? void 0 : i.getTime()) === e.start_time.getTime()
1256
1277
  }, onClick: () => this.onClickSelectTime(e, t), onMouseEnter: () => this.handleMouseEnter(t), onMouseLeave: () => this.handleMouseLeave() }, this.hoveredTimeslotIndex == t || this.selectedTimeslotIndex == this.getTimeslotId(e.start_time, t) ? this.getTimeSlotLabel(e) : e.start_time.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone }));
1257
- })), this.selectedTimeslot && a("div", { class: "footer" }, a("button-component", { variant: "primary", onClick: (e) => this.handleConfirmedTimeslot(e, this.selectedTimeslot), part: "ntp__button-primary" }, a("slot", { name: "timeslot-picker-cta-label" }, l.t("nextButton")))))) : a(v, null);
1278
+ })), this.selectedTimeslot && a("div", { class: "footer" }, a("button-component", { variant: "primary", onClick: (e) => this.handleConfirmedTimeslot(e, this.selectedTimeslot), part: "ntp__button-primary" }, a("slot", { name: "timeslot-picker-cta-label" }, l.t("nextButton")))))) : a(k, null);
1258
1279
  }
1259
1280
  get host() {
1260
- return D(this);
1281
+ return S(this);
1261
1282
  }
1262
1283
  static get watchers() {
1263
1284
  return {
@@ -1268,8 +1289,8 @@ const ve = class {
1268
1289
  };
1269
1290
  }
1270
1291
  };
1271
- ct([
1272
- S({
1292
+ ht([
1293
+ L({
1273
1294
  name: "nylas-timeslot-picker",
1274
1295
  stateToProps: /* @__PURE__ */ new Map([
1275
1296
  ["scheduler.selectedDate", "selectedDate"],
@@ -1294,18 +1315,18 @@ ct([
1294
1315
  Y("design:paramtypes", []),
1295
1316
  Y("design:returntype", void 0)
1296
1317
  ], ve.prototype, "render", null);
1297
- ve.style = dt;
1318
+ ve.style = ft;
1298
1319
  export {
1299
- de as nylas_booked_event_card,
1300
- ce as nylas_booking_form,
1301
- fe as nylas_cancel_booking_form,
1302
- he as nylas_cancelled_event_card,
1320
+ ce as nylas_booked_event_card,
1321
+ fe as nylas_booking_form,
1322
+ he as nylas_cancel_booking_form,
1323
+ be as nylas_cancelled_event_card,
1303
1324
  me as nylas_confirmed_event_card,
1304
- pe as nylas_date_picker,
1305
- ge as nylas_locale_switch,
1306
- Ke as nylas_logo,
1307
- tt as nylas_notification,
1308
- ue as nylas_organizer_confirmation_card,
1309
- ye as nylas_selected_event_card,
1325
+ ge as nylas_date_picker,
1326
+ ue as nylas_locale_switch,
1327
+ et as nylas_logo,
1328
+ at as nylas_notification,
1329
+ ye as nylas_organizer_confirmation_card,
1330
+ ke as nylas_selected_event_card,
1310
1331
  ve as nylas_timeslot_picker
1311
1332
  };