@nylas/react 1.4.4 → 2.0.0

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 (161) hide show
  1. package/README.md +7 -0
  2. package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +1 -0
  3. package/dist/{add-circle-icon_2.entry-615fc101.js → add-circle-icon_2.entry-b4bbcfee.js} +3 -3
  4. package/dist/archive-icon.entry-a2492cf3.js +16 -0
  5. package/dist/archive-icon.entry-e48d2356.cjs +1 -0
  6. package/dist/{arrow-icon.entry-da152ec2.js → arrow-icon.entry-9414299f.js} +5 -5
  7. package/dist/arrow-icon.entry-b1ecb2aa.cjs +1 -0
  8. package/dist/{bold-icon.entry-61046c15.js → bold-icon.entry-b72aed9f.js} +4 -4
  9. package/dist/{bold-icon.entry-58679992.cjs → bold-icon.entry-c781e9c1.cjs} +1 -1
  10. package/dist/{button-component_2.entry-db53e00a.js → button-component_2.entry-36e49459.js} +9 -9
  11. package/dist/{button-component_2.entry-53bfdc19.cjs → button-component_2.entry-73f76545.cjs} +1 -1
  12. package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +6 -0
  13. package/dist/{calendar-agenda-fill-icon_36.entry-76796ea7.js → calendar-agenda-fill-icon_36.entry-efa7ad26.js} +100 -100
  14. package/dist/{calendar-cancel-icon.entry-e5032d71.cjs → calendar-cancel-icon.entry-01c388eb.cjs} +1 -1
  15. package/dist/{calendar-cancel-icon.entry-f3b8ae99.js → calendar-cancel-icon.entry-0f739a8a.js} +4 -4
  16. package/dist/{calendar-check-icon_2.entry-7303362a.cjs → calendar-check-icon_2.entry-5febbadf.cjs} +1 -1
  17. package/dist/{calendar-check-icon_2.entry-27dc91f7.js → calendar-check-icon_2.entry-dfb0036d.js} +3 -3
  18. package/dist/{calendar-icon.entry-4f432baf.cjs → calendar-icon.entry-9743e0b7.cjs} +1 -1
  19. package/dist/{calendar-icon.entry-48fc45d6.js → calendar-icon.entry-f197396d.js} +2 -2
  20. package/dist/{checkbox-component.entry-8fad4faf.cjs → checkbox-component.entry-1aa5782f.cjs} +1 -1
  21. package/dist/{checkbox-component.entry-a15ffc4c.js → checkbox-component.entry-72a6aa72.js} +4 -4
  22. package/dist/checkmark-icon_15.entry-35dd97b7.cjs +5 -0
  23. package/dist/{checkmark-icon_15.entry-9f926a70.js → checkmark-icon_15.entry-5c09cff5.js} +225 -223
  24. package/dist/{chevron-icon_3.entry-5130fbba.js → chevron-icon_3.entry-4a72f211.js} +6 -6
  25. package/dist/chevron-icon_3.entry-e0608b7c.cjs +1 -0
  26. package/dist/{clock-icon_4.entry-40a393c9.js → clock-icon_4.entry-0afe79c2.js} +8 -8
  27. package/dist/{clock-icon_4.entry-ac65deae.cjs → clock-icon_4.entry-202ce025.cjs} +1 -1
  28. package/dist/constants-f51538ef-cd2a67c4.cjs +1 -0
  29. package/dist/{constants-3d8016e3-3c080f00.js → constants-f51538ef-e0a5f026.js} +27 -32
  30. package/dist/{customParseFormat-a4d9ea69-763f219e.cjs → customParseFormat-d1de5ed0-65a0bba3.cjs} +1 -1
  31. package/dist/{customParseFormat-a4d9ea69-7caebeb2.js → customParseFormat-d1de5ed0-c0ef002d.js} +1 -1
  32. package/dist/{delete-icon.entry-78e44eba.js → delete-icon.entry-580bfcc9.js} +4 -4
  33. package/dist/{delete-icon.entry-770dac8c.cjs → delete-icon.entry-762ac892.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-d331f844.cjs → document-refresh-icon.entry-4e0f0c61.cjs} +1 -1
  35. package/dist/document-refresh-icon.entry-e500b4e3.js +16 -0
  36. package/dist/elements/index.d.ts +0 -8
  37. package/dist/{feedbackSync-57bb471a-ee800a95.js → feedbackSync-172f942c-42124493.js} +1 -1
  38. package/dist/{feedbackSync-57bb471a-5afb7715.cjs → feedbackSync-172f942c-62f72bd2.cjs} +1 -1
  39. package/dist/{folder-icon.entry-163e0aee.cjs → folder-icon.entry-2694e253.cjs} +1 -1
  40. package/dist/{folder-icon.entry-42650400.js → folder-icon.entry-54c3cc66.js} +2 -2
  41. package/dist/{forward-icon.entry-d60b6e31.js → forward-icon.entry-5e540f05.js} +5 -5
  42. package/dist/{forward-icon.entry-0a499b38.cjs → forward-icon.entry-f07102d8.cjs} +1 -1
  43. package/dist/{globe-icon_2.entry-19359092.cjs → globe-icon_2.entry-14a4c168.cjs} +1 -1
  44. package/dist/{globe-icon_2.entry-5afa8049.js → globe-icon_2.entry-aaceb196.js} +90 -80
  45. package/dist/{google-logo-icon_6.entry-d2febb78.js → google-logo-icon_6.entry-00d40db2.js} +473 -439
  46. package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +2 -0
  47. package/dist/{google-meet-icon_5.entry-4a94137f.cjs → google-meet-icon_5.entry-6c20e149.cjs} +1 -1
  48. package/dist/{google-meet-icon_5.entry-7b1b36f2.js → google-meet-icon_5.entry-f1f05903.js} +12 -12
  49. package/dist/inbox-icon.entry-9a4628f2.cjs +1 -0
  50. package/dist/inbox-icon.entry-aa78ba8c.js +16 -0
  51. package/dist/index-1e75512f.cjs +57 -0
  52. package/dist/{index-9243e481.js → index-e8380973.js} +5687 -4802
  53. package/dist/{index.es-13ff6710-0f748bd2.cjs → index.es-fc8588de-034ead51.cjs} +6 -6
  54. package/dist/{index.es-13ff6710-73fa05e6.js → index.es-fc8588de-c943eef6.js} +827 -1065
  55. package/dist/{info-icon_2.entry-ba869bab.js → info-icon_2.entry-b3b313ab.js} +3 -3
  56. package/dist/{info-icon_2.entry-6667923a.cjs → info-icon_2.entry-bbcefb9a.cjs} +1 -1
  57. package/dist/{input-component.entry-7396acf1.js → input-component.entry-401b9ba5.js} +9 -9
  58. package/dist/{input-component.entry-db84f917.cjs → input-component.entry-ec8e8e7c.cjs} +1 -1
  59. package/dist/input-dropdown_2.entry-8cb11601.cjs +1 -0
  60. package/dist/{input-dropdown_2.entry-20f2031b.js → input-dropdown_2.entry-c37f392c.js} +6 -6
  61. package/dist/italic-icon.entry-0e85d0d9.js +16 -0
  62. package/dist/italic-icon.entry-6675558a.cjs +1 -0
  63. package/dist/{multi-select-dropdown_2.entry-81740b34.js → multi-select-dropdown_2.entry-3eecf18a.js} +22 -16
  64. package/dist/{multi-select-dropdown_2.entry-8e07b42b.cjs → multi-select-dropdown_2.entry-e37c501d.cjs} +1 -1
  65. package/dist/{nylas-booked-event-card_12.entry-e56c8e92.js → nylas-booked-event-card_12.entry-e7464ae7.js} +226 -224
  66. package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +1 -0
  67. package/dist/{nylas-event-calendar_3.entry-2504c7c0.js → nylas-event-calendar_3.entry-9abd46c2.js} +2360 -2238
  68. package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +11 -0
  69. package/dist/{nylas-form-card.entry-98903549.js → nylas-form-card.entry-a3186807.js} +3 -3
  70. package/dist/{nylas-form-card.entry-c406e3d3.cjs → nylas-form-card.entry-cbb00fba.cjs} +1 -1
  71. package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +2 -0
  72. package/dist/{nylas-scheduler-editor.entry-670cc0b8.js → nylas-scheduler-editor.entry-7b188a38.js} +83 -50
  73. package/dist/nylas-scheduling.entry-970240f6.cjs +1 -0
  74. package/dist/nylas-scheduling.entry-e9929b03.js +968 -0
  75. package/dist/{person-icon.entry-bdaa899b.cjs → person-icon.entry-8998fdb8.cjs} +1 -1
  76. package/dist/{person-icon.entry-3bca6e51.js → person-icon.entry-d2856f08.js} +4 -4
  77. package/dist/{play-icon.entry-ecc86e85.cjs → play-icon.entry-99eb969b.cjs} +1 -1
  78. package/dist/play-icon.entry-f949a80f.js +16 -0
  79. package/dist/{radio-button-group.entry-9851076c.js → radio-button-group.entry-bc3b12fd.js} +2 -2
  80. package/dist/{radio-button-group.entry-6965ad34.cjs → radio-button-group.entry-d66edd04.cjs} +1 -1
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +96 -104
  83. package/dist/{refresh-icon.entry-90d52ab3.cjs → refresh-icon.entry-99d1982d.cjs} +1 -1
  84. package/dist/{refresh-icon.entry-d776c4a7.js → refresh-icon.entry-d6df8b1c.js} +2 -2
  85. package/dist/{register-component-02a05665-2e992621.js → register-component-62d792d4-448b6a43.js} +1 -1
  86. package/dist/{register-component-02a05665-75652287.cjs → register-component-62d792d4-c6e7d129.cjs} +1 -1
  87. package/dist/{reply-all-icon.entry-24f7c0fe.js → reply-all-icon.entry-7ebf01a0.js} +2 -2
  88. package/dist/{reply-all-icon.entry-6e49eb03.cjs → reply-all-icon.entry-d7c44139.cjs} +1 -1
  89. package/dist/{reply-icon.entry-7fff25c9.cjs → reply-icon.entry-058c00e8.cjs} +1 -1
  90. package/dist/{reply-icon.entry-d5d26d65.js → reply-icon.entry-d1622d85.js} +5 -5
  91. package/dist/sent-icon.entry-6c604512.cjs +1 -0
  92. package/dist/sent-icon.entry-fe12bc2f.js +16 -0
  93. package/dist/spam-icon.entry-45e5292e.cjs +1 -0
  94. package/dist/spam-icon.entry-b97c7709.js +16 -0
  95. package/dist/{star-icon.entry-3c57a35c.cjs → star-icon.entry-4db13fdb.cjs} +1 -1
  96. package/dist/{star-icon.entry-c2e743a9.js → star-icon.entry-98b80645.js} +6 -6
  97. package/dist/{stop-icon.entry-0b9563d5.js → stop-icon.entry-0290fd30.js} +2 -2
  98. package/dist/{stop-icon.entry-cf4c4e63.cjs → stop-icon.entry-9d7b53fd.cjs} +1 -1
  99. package/dist/{textarea-component.entry-2eccc173.cjs → textarea-component.entry-9b474ab5.cjs} +1 -1
  100. package/dist/{textarea-component.entry-60e7a4d0.js → textarea-component.entry-a62c257b.js} +2 -2
  101. package/dist/{toggle-switch.entry-612744fd.cjs → toggle-switch.entry-5dbfcd48.cjs} +1 -1
  102. package/dist/{toggle-switch.entry-0a6b01e6.js → toggle-switch.entry-e423b793.js} +2 -2
  103. package/dist/{translate-icon.entry-ede5f77d.js → translate-icon.entry-60c55a2e.js} +4 -4
  104. package/dist/{translate-icon.entry-8adc4146.cjs → translate-icon.entry-f82fa6fc.cjs} +1 -1
  105. package/dist/trash-fill-icon.entry-095caae3.cjs +1 -0
  106. package/dist/trash-fill-icon.entry-825055fd.js +16 -0
  107. package/dist/{underline-icon.entry-d2fe2da6.cjs → underline-icon.entry-0807a43d.cjs} +1 -1
  108. package/dist/{underline-icon.entry-b2b43ba2.js → underline-icon.entry-40028bc6.js} +2 -2
  109. package/dist/{warning-icon.entry-0a5c7337.js → warning-icon.entry-24e37759.js} +2 -2
  110. package/dist/{warning-icon.entry-85822f4d.cjs → warning-icon.entry-fce7c14f.cjs} +1 -1
  111. package/package.json +2 -2
  112. package/dist/add-circle-icon_2.entry-e616ece6.cjs +0 -1
  113. package/dist/archive-icon.entry-41938a61.cjs +0 -1
  114. package/dist/archive-icon.entry-bd81d2d9.js +0 -16
  115. package/dist/arrow-icon.entry-4103be57.cjs +0 -1
  116. package/dist/calendar-agenda-fill-icon_36.entry-917e4a9d.cjs +0 -6
  117. package/dist/checkmark-icon_15.entry-08c8b107.cjs +0 -5
  118. package/dist/chevron-icon_3.entry-2f75c3c4.cjs +0 -1
  119. package/dist/constants-3d8016e3-fd6c3848.cjs +0 -1
  120. package/dist/document-refresh-icon.entry-f6dfe744.js +0 -16
  121. package/dist/google-logo-icon_6.entry-896a10a5.cjs +0 -2
  122. package/dist/inbox-icon.entry-24ec450f.cjs +0 -1
  123. package/dist/inbox-icon.entry-b71acde0.js +0 -16
  124. package/dist/index-efb6db79.cjs +0 -57
  125. package/dist/input-dropdown_2.entry-0c219620.cjs +0 -1
  126. package/dist/italic-icon.entry-a9324a8a.cjs +0 -1
  127. package/dist/italic-icon.entry-c42f8112.js +0 -16
  128. package/dist/notebook-store-b61693cd-5657061b.js +0 -14
  129. package/dist/notebook-store-b61693cd-6515d345.cjs +0 -5
  130. package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +0 -1
  131. package/dist/nylas-call-summary.entry-4bf7284f.cjs +0 -1
  132. package/dist/nylas-call-summary.entry-ad6fb46a.js +0 -16
  133. package/dist/nylas-event-calendar_3.entry-f747f6a8.cjs +0 -6
  134. package/dist/nylas-if-state.entry-6b071705.cjs +0 -1
  135. package/dist/nylas-if-state.entry-7468854a.js +0 -95
  136. package/dist/nylas-key-points.entry-7af8da1a.cjs +0 -1
  137. package/dist/nylas-key-points.entry-c186445e.js +0 -29
  138. package/dist/nylas-login.entry-171bd025.cjs +0 -1
  139. package/dist/nylas-login.entry-d85c1473.js +0 -74
  140. package/dist/nylas-provider.entry-ab1f6886.js +0 -265
  141. package/dist/nylas-provider.entry-e4231b93.cjs +0 -1
  142. package/dist/nylas-scheduler-editor.entry-d522ca98.cjs +0 -2
  143. package/dist/nylas-scheduling.entry-9e81c6fc.js +0 -439
  144. package/dist/nylas-scheduling.entry-c52edb14.cjs +0 -1
  145. package/dist/nylas-transcript.entry-a1fa7e17.cjs +0 -6
  146. package/dist/nylas-transcript.entry-fb39b5af.js +0 -128
  147. package/dist/nylas-video-player.entry-25e8cd9a.js +0 -39
  148. package/dist/nylas-video-player.entry-89842545.cjs +0 -1
  149. package/dist/nylas-video-preview.entry-28a0bd60.cjs +0 -1
  150. package/dist/nylas-video-preview.entry-80171531.js +0 -16
  151. package/dist/play-icon.entry-d548464e.js +0 -16
  152. package/dist/scheduler-config-store-d6729d8d-50920e8c.js +0 -29
  153. package/dist/scheduler-config-store-d6729d8d-a0bdda83.cjs +0 -1
  154. package/dist/scheduler-store-fe9e85a4-1dcfddfa.js +0 -533
  155. package/dist/scheduler-store-fe9e85a4-baabf78a.cjs +0 -1
  156. package/dist/sent-icon.entry-42ce5bcb.cjs +0 -1
  157. package/dist/sent-icon.entry-858fe83e.js +0 -16
  158. package/dist/spam-icon.entry-0827144e.js +0 -16
  159. package/dist/spam-icon.entry-bf1a48b6.cjs +0 -1
  160. package/dist/trash-fill-icon.entry-b6456ec8.cjs +0 -1
  161. package/dist/trash-fill-icon.entry-d48f72c5.js +0 -16
@@ -1,27 +1,27 @@
1
- import { r as w, c as f, d, h as t, i, m as ke, w as ve, H as k, g as T, x as pe, y as Se, b as ne, u as Re, t as je, l as me, z as P, A as Fe, C as Pe, D as O, E as Oe, G as $e, I as Me, F as Ne, J as H } from "./index-9243e481.js";
2
- import { R as B } from "./register-component-02a05665-2e992621.js";
3
- import { c as S, T as F, a as ue } from "./constants-3d8016e3-3c080f00.js";
1
+ import { r as w, a as f, b as d, h as t, i, m as _e, w as we, H as k, g as T, x as ke, y as Pe, d as ne, u as Fe, t as Oe, l as ve, z as F, A as $e, C as Me, D as O, E as Ne, G as He, I as Ae, F as qe, J as H } from "./index-e8380973.js";
2
+ import { R as B } from "./register-component-62d792d4-448b6a43.js";
3
+ import { c as S, T as P, a as Ce } from "./constants-f51538ef-e0a5f026.js";
4
4
  import "react";
5
5
  import "react/jsx-runtime";
6
6
  import "react-dom";
7
- 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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', Ae = He;
8
- var qe = function(e, n, a, l) {
9
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
7
+ const Ze = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', Ge = Ze;
8
+ var We = function(e, n, a, l) {
9
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
10
10
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
11
11
  o = Reflect.decorate(e, n, a, l);
12
12
  else
13
13
  for (var c = e.length - 1; c >= 0; c--)
14
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
15
- return r > 3 && o && Object.defineProperty(n, a, o), o;
14
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
15
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
16
16
  }, A = function(e, n) {
17
17
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
18
18
  return Reflect.metadata(e, n);
19
19
  };
20
- const Ce = class {
20
+ const xe = class {
21
21
  constructor(e) {
22
22
  w(this, e), this.cancelBookingButtonClicked = f(this, "cancelBookingButtonClicked", 7), this.rescheduleButtonClicked = f(this, "rescheduleButtonClicked", 7), this.rescheduleBookedEventError = f(this, "rescheduleBookedEventError", 7), this.cancelBookedEventValidationError = f(this, "cancelBookedEventValidationError", 7), this.handleCancelBookingButtonClicked = () => {
23
- var r, o;
24
- const n = new Date(this.selectedTimeslot.start_time), a = (o = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : o.min_cancellation_notice;
23
+ var s, o;
24
+ const n = new Date(this.selectedTimeslot.start_time), a = (o = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : o.min_cancellation_notice;
25
25
  if (!a) {
26
26
  this.cancelBookingButtonClicked.emit({ bookingId: this.eventInfo.booking_id });
27
27
  return;
@@ -75,11 +75,11 @@ const Ce = class {
75
75
  this.host.style.setProperty(`${n}`, a);
76
76
  }
77
77
  render() {
78
- var a, l, r, o, s, c, g, b, u, C, D, z, p, m, E, R;
78
+ var a, l, s, o, r, c, g, b, u, C, D, z, p, m, E, R;
79
79
  const e = (a = this.configSettings) == null ? void 0 : a.booking_type, n = e && e !== "booking";
80
- return t(k, { key: "746e23e82adf30da44ac6a160400705251a5cf98", part: "nbec" }, t("div", { key: "aa3e79d294ff41b4a43775763f9e5f1922f955c7", class: "nylas-booked-event-card" }, t("div", { key: "cbb343663633b5ba80875f42af0bb0d091ee1ac8", class: "booked-event-timezone" }, t("globe-icon", { key: "8c94142bd486144efaa251770c87f4ec15481b41" }), F[this.selectedTimezone]), t("div", { key: "e06ef2c5b7a1977ff1953027d6109cb8a1acf493", class: "event-card-wrapper", part: "nbec__card" }, t("div", { key: "5a99626d44f6ef819af2606bf24208e1833e3a54", class: "calendar-icon" }, t("calendar-check-icon", { key: "06c5ec0241535ee0ea82c743653f93442bc9a5fa" })), t("div", { key: "b38fa39209c64394902a0e7607248d0d0c73adf2", class: "booked-event-header" }, t("h2", { key: "1706d065e1f427efcccef18f382702e95da33080", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${i.t("bookingRescheduled")}` : n && !this.isLoading ? `${i.t("bookingSent")}` : `${i.t("bookingConfirmed")}`, "!"), t("div", { key: "c7bfce355ce08d858862bc7672f20e8a2bb3dce9", class: "card-description", part: "nbec__description" }, n ? i.t("bookingSentDescription") : t("span", null, i.t("bookingConfirmedDescription")))), t("div", { key: "2074c51dfdfd0753fcd3d598b7633520bf70ab63", class: "booking-date-time" }, t("checkmark-circle-icon", { key: "dbfe39fadeeb08186a5214cfb9ca5d3c8da55cb1" }), t("h3", { key: "edb9ed53cb25e9e06ec7b27f8141fa6f422c1511" }, i.t("bookingDateAndTimeHeader")), t("p", { key: "24d8d606ab3e217256152e249ee435d070df0c5b" }, (l = this.selectedTimeslot) != null && l.start_time ? ke(ve((r = this.selectedTimeslot) == null ? void 0 : r.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", t("br", { key: "5949a97ff7e7b256e410f591b810332a72e0696c" }), this.startTime, " - ", this.endTime)), t("div", { key: "3450618726c762232151511fd28570834cf07cc4", class: "booking-participants" }), !n && t("div", { class: "button-container" }, t("div", { class: {
80
+ return t(k, { key: "746e23e82adf30da44ac6a160400705251a5cf98", part: "nbec" }, t("div", { key: "aa3e79d294ff41b4a43775763f9e5f1922f955c7", class: "nylas-booked-event-card" }, t("div", { key: "cbb343663633b5ba80875f42af0bb0d091ee1ac8", class: "booked-event-timezone" }, t("globe-icon", { key: "8c94142bd486144efaa251770c87f4ec15481b41" }), P[this.selectedTimezone]), t("div", { key: "e06ef2c5b7a1977ff1953027d6109cb8a1acf493", class: "event-card-wrapper", part: "nbec__card" }, t("div", { key: "5a99626d44f6ef819af2606bf24208e1833e3a54", class: "calendar-icon" }, t("calendar-check-icon", { key: "06c5ec0241535ee0ea82c743653f93442bc9a5fa" })), t("div", { key: "b38fa39209c64394902a0e7607248d0d0c73adf2", class: "booked-event-header" }, t("h2", { key: "1706d065e1f427efcccef18f382702e95da33080", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${i.t("bookingRescheduled")}` : n && !this.isLoading ? `${i.t("bookingSent")}` : `${i.t("bookingConfirmed")}`, "!"), t("div", { key: "c7bfce355ce08d858862bc7672f20e8a2bb3dce9", class: "card-description", part: "nbec__description" }, n ? i.t("bookingSentDescription") : t("span", null, i.t("bookingConfirmedDescription")))), t("div", { key: "2074c51dfdfd0753fcd3d598b7633520bf70ab63", class: "booking-date-time" }, t("checkmark-circle-icon", { key: "dbfe39fadeeb08186a5214cfb9ca5d3c8da55cb1" }), t("h3", { key: "edb9ed53cb25e9e06ec7b27f8141fa6f422c1511" }, i.t("bookingDateAndTimeHeader")), t("p", { key: "24d8d606ab3e217256152e249ee435d070df0c5b" }, (l = this.selectedTimeslot) != null && l.start_time ? _e(we((s = this.selectedTimeslot) == null ? void 0 : s.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", t("br", { key: "5949a97ff7e7b256e410f591b810332a72e0696c" }), this.startTime, " - ", this.endTime)), t("div", { key: "3450618726c762232151511fd28570834cf07cc4", class: "booking-participants" }), !n && t("div", { class: "button-container" }, t("div", { class: {
81
81
  footer: !0,
82
- "no-footer": ((s = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : s.hide_cancellation_options) && ((g = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : g.hide_rescheduling_options) || ((b = this.configSettings) == null ? void 0 : b.booking_type) === "organizer-confirmation",
82
+ "no-footer": ((r = (o = this.configSettings) == null ? void 0 : o.scheduler) == null ? void 0 : r.hide_cancellation_options) && ((g = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : g.hide_rescheduling_options) || ((b = this.configSettings) == null ? void 0 : b.booking_type) === "organizer-confirmation",
83
83
  "no-template-cols": !!((C = (u = this.configSettings) == null ? void 0 : u.scheduler) != null && C.hide_cancellation_options) || !!((z = (D = this.configSettings) == null ? void 0 : D.scheduler) != null && z.hide_rescheduling_options)
84
84
  } }, !((m = (p = this.configSettings) == null ? void 0 : p.scheduler) != null && m.hide_cancellation_options) && t("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${i.t("cancelBookingButton")}`), !((R = (E = this.configSettings) == null ? void 0 : E.scheduler) != null && R.hide_rescheduling_options) && t("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${i.t("rescheduleBookingButton")}`))))));
85
85
  }
@@ -92,7 +92,7 @@ const Ce = class {
92
92
  };
93
93
  }
94
94
  };
95
- qe([
95
+ We([
96
96
  B({
97
97
  name: "nylas-booked-event-card",
98
98
  stateToProps: /* @__PURE__ */ new Map([
@@ -126,27 +126,27 @@ qe([
126
126
  A("design:type", Function),
127
127
  A("design:paramtypes", []),
128
128
  A("design:returntype", void 0)
129
- ], Ce.prototype, "render", null);
130
- Ce.style = Ae;
131
- 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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}.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}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)}', Ge = Ze;
132
- var We = function(e, n, a, l) {
133
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
129
+ ], xe.prototype, "render", null);
130
+ xe.style = Ge;
131
+ const Ue = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}.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}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)}', Ye = Ue;
132
+ var Xe = function(e, n, a, l) {
133
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
134
134
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
135
135
  o = Reflect.decorate(e, n, a, l);
136
136
  else
137
137
  for (var c = e.length - 1; c >= 0; c--)
138
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
139
- return r > 3 && o && Object.defineProperty(n, a, o), o;
138
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
139
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
140
140
  }, q = function(e, n) {
141
141
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
142
142
  return Reflect.metadata(e, n);
143
143
  };
144
- const $ = /^[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])?)*$/, _e = class {
144
+ const $ = /^[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])?)*$/, Te = class {
145
145
  constructor(e) {
146
146
  w(this, e), this.nameChanged = f(this, "nameChanged", 7), this.emailChanged = f(this, "emailChanged", 7), this.backButtonClicked = f(this, "backButtonClicked", 7), this.detailsConfirmed = f(this, "detailsConfirmed", 7), this.bookingFormError = f(this, "bookingFormError", 7), this.bookingFormSubmitted = f(this, "bookingFormSubmitted", 7), this.handleGuestChange = (n, a) => {
147
147
  this.resetGuestEmailError(n);
148
148
  const l = [...this.guestEmails];
149
- l[n] = pe(a), this.guestEmails = [...l];
149
+ l[n] = ke(a), this.guestEmails = [...l];
150
150
  }, this.handleGuestBlur = (n, a) => {
151
151
  if (this.resetGuestEmailError(n), a === "") {
152
152
  this.guestEmailErrors[n] = i.t("fieldRequired", { field: i.t("email") });
@@ -170,7 +170,7 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
170
170
  if (n.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
171
171
  return;
172
172
  d("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
173
- const l = this.name, r = this.email;
173
+ const l = this.name, s = this.email;
174
174
  if (!l || l === "") {
175
175
  this.isNameValid = !1, this.validationError.name = i.t("fieldRequired", { field: i.t("name") }) || "Name is required", this.bookingFormError.emit({
176
176
  title: "Booking form error",
@@ -178,14 +178,14 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
178
178
  });
179
179
  return;
180
180
  }
181
- if (!r || r === "") {
181
+ if (!s || s === "") {
182
182
  this.isEmailValid = !1, this.validationError.email = i.t("fieldRequired", { field: i.t("email") }) || "Email is required", this.bookingFormError.emit({
183
183
  title: "Booking form error",
184
184
  description: "Email is required"
185
185
  });
186
186
  return;
187
187
  }
188
- if (!$.test(r)) {
188
+ if (!$.test(s)) {
189
189
  this.isEmailValid = !1, this.validationError.email = i.t("invalidInputFormat", { field: i.t("email") }), this.bookingFormError.emit({
190
190
  title: "Booking form error",
191
191
  description: i.t("invalidInputFormat", { field: i.t("email") }) || "Invalid email"
@@ -206,25 +206,25 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
206
206
  }
207
207
  o = this.guestEmails.map((m) => ({ name: m.trim(), email: m.trim() }));
208
208
  }
209
- const s = {}, c = ((u = (b = this.configSettings) == null ? void 0 : b.scheduler) == null ? void 0 : u.additional_fields) || {}, g = ((D = (C = this.configSettings) == null ? void 0 : C.booking) == null ? void 0 : D.additional_fields) || {};
209
+ const r = {}, c = ((u = (b = this.configSettings) == null ? void 0 : b.scheduler) == null ? void 0 : u.additional_fields) || {}, g = ((D = (C = this.configSettings) == null ? void 0 : C.booking) == null ? void 0 : D.additional_fields) || {};
210
210
  (z = this.bookingInfo) != null && z.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([p, m]) => {
211
- p in c && typeof m.value < "u" && (s[p] = m.value);
211
+ p in c && typeof m.value < "u" && (r[p] = m.value);
212
212
  }), Object.entries(c).forEach(([p, m]) => {
213
- if (!(p in s)) {
213
+ if (!(p in r)) {
214
214
  const E = g[p] || m.default || "";
215
- s[p] = E;
215
+ r[p] = E;
216
216
  }
217
217
  }), this.detailsConfirmed.emit({
218
218
  primaryParticipant: {
219
219
  name: l,
220
- email: r
220
+ email: s
221
221
  },
222
222
  guests: o,
223
- additionalFields: { ...s, ...this.additionalFields }
223
+ additionalFields: { ...r, ...this.additionalFields }
224
224
  });
225
225
  }, this.updateAdditionalFields = (n, a) => {
226
226
  this.additionalFields && (this.additionalFields[n] = a);
227
- }, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0;
227
+ }, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedTimeslot = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0;
228
228
  }
229
229
  connectedCallback() {
230
230
  }
@@ -244,8 +244,8 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
244
244
  e && e.primaryParticipant && (this.name = e.primaryParticipant.name || this.name, this.email = e.primaryParticipant.email || this.email), e != null && e.guests && Array.isArray(e.guests) && (this.guestEmails = e.guests.map((n) => n.email));
245
245
  }
246
246
  configSettingsChangedHandler(e) {
247
- var n, a, l, r, o, s, c, g, b, u;
248
- !((a = (n = this.bookingInfo) == null ? void 0 : n.primaryParticipant) != null && a.name) && e && ((r = (l = e.booking) == null ? void 0 : l.guest) != null && r.name) && (this.name = e.booking.guest.name || this.name), !((s = (o = this.bookingInfo) == null ? void 0 : o.primaryParticipant) != null && s.email) && e && ((g = (c = e.booking) == null ? void 0 : c.guest) != null && g.email) && (this.email = e.booking.guest.email || this.email), !((b = this.bookingInfo) != null && b.guests) && ((u = e == null ? void 0 : e.booking) != null && u.additional_guests) && Array.isArray(e.booking.additional_guests) && (this.guestEmails = e.booking.additional_guests.map((C) => C.email));
247
+ var n, a, l, s, o, r, c, g, b, u;
248
+ !((a = (n = this.bookingInfo) == null ? void 0 : n.primaryParticipant) != null && a.name) && e && ((s = (l = e.booking) == null ? void 0 : l.guest) != null && s.name) && (this.name = e.booking.guest.name || this.name), !((r = (o = this.bookingInfo) == null ? void 0 : o.primaryParticipant) != null && r.email) && e && ((g = (c = e.booking) == null ? void 0 : c.guest) != null && g.email) && (this.email = e.booking.guest.email || this.email), !((b = this.bookingInfo) != null && b.guests) && ((u = e == null ? void 0 : e.booking) != null && u.additional_guests) && Array.isArray(e.booking.additional_guests) && (this.guestEmails = e.booking.additional_guests.map((C) => C.email));
249
249
  }
250
250
  themeConfigChanged(e) {
251
251
  this.applyThemeConfig(e);
@@ -262,10 +262,10 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
262
262
  "multi-select-dropdown"
263
263
  ], a = [];
264
264
  if (e) {
265
- const l = (r) => {
266
- Array.from(r.children).forEach((o) => {
267
- const s = o.tagName.toLowerCase();
268
- n.includes(s) && a.push(o), l(o);
265
+ const l = (s) => {
266
+ Array.from(s.children).forEach((o) => {
267
+ const r = o.tagName.toLowerCase();
268
+ n.includes(r) && a.push(o), l(o);
269
269
  });
270
270
  };
271
271
  l(e);
@@ -275,16 +275,16 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
275
275
  applyThemeConfig(e) {
276
276
  if (e)
277
277
  for (const [n, a] of Object.entries(e))
278
- this.host.style.setProperty(`${n}`, a), this.iterateFormComponents().forEach((r) => {
278
+ this.host.style.setProperty(`${n}`, a), this.iterateFormComponents().forEach((s) => {
279
279
  var o;
280
- r.style.setProperty(`${n}`, a), (o = r.shadowRoot) == null || o.host.style.setProperty(`${n}`, a);
280
+ s.style.setProperty(`${n}`, a), (o = s.shadowRoot) == null || o.host.style.setProperty(`${n}`, a);
281
281
  });
282
282
  }
283
283
  changeName(e) {
284
- this.isNameValid = !0, this.validationError.name = "", this.name = Se(e), this.nameChanged.emit(e);
284
+ this.isNameValid = !0, this.validationError.name = "", this.name = Pe(e), this.nameChanged.emit(e);
285
285
  }
286
286
  changeEmail(e) {
287
- this.isEmailValid = !0, this.validationError.email = "", this.email = pe(e), this.emailChanged.emit(e);
287
+ this.isEmailValid = !0, this.validationError.email = "", this.email = ke(e), this.emailChanged.emit(e);
288
288
  }
289
289
  resetGuestEmailError(e) {
290
290
  const n = { ...this.guestEmailErrors };
@@ -344,8 +344,9 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
344
344
  this.updateAdditionalFields(e.detail.name, e.detail.value);
345
345
  }
346
346
  render() {
347
- var e, n, a, l, r, o, s, c, g, b, u, C, D, z, p, m, E, R, ae;
348
- return t(k, { key: "7cc64499522157e62c5703990effe640e032794f" }, t("form", { key: "14b8c18e942c2b30027dd4ab7e9f50be749b6d8a", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, t("div", { key: "df00121eb4e6491ce7a758690c0bb2fdb3afd2c0", class: "nylas-booking-form", part: "nbf" }, t("div", { key: "f54bdfab54066557fa20defcc90bba5b33211616", class: "input-wrapper", part: "nbf__input-wrapper" }, t("input-component", { key: "b4fb9a672fb708ebc47084c9978fc6c526dda804", label: i.t("name"), name: "name", id: "name", defaultValue: ((n = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : n.name) || ((r = (l = (a = this.configSettings) == null ? void 0 : a.booking) == null ? void 0 : l.guest) == null ? void 0 : r.name) || this.name, placeholder: i.t("namePlaceholder"), type: "text", readOnly: ((s = (o = this.bookingInfo) == null ? void 0 : o.primaryParticipant) == null ? void 0 : s.nameReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("name") }), patternError: i.t("invalidInputFormat", { field: i.t("name") }), part: "nbf__input-textfield" })), t("div", { key: "44f5979a3aacfaedf6baa124ddf3cae468f71e19", class: "input-wrapper", part: "nbf__input-wrapper" }, t("input-component", { key: "5e72e7aa54a18a6a3b441a6d3d03c8b08246bc07", label: i.t("email"), name: "email", id: "email", pattern: $, defaultValue: ((g = (c = this.bookingInfo) == null ? void 0 : c.primaryParticipant) == null ? void 0 : g.email) || ((C = (u = (b = this.configSettings) == null ? void 0 : b.booking) == null ? void 0 : u.guest) == null ? void 0 : C.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((z = (D = this.bookingInfo) == null ? void 0 : D.primaryParticipant) == null ? void 0 : z.emailReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("email") }), patternError: i.t("invalidInputFormat", { field: i.t("email") }), part: "nbf__input-textfield" })), ((m = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : m.hide_additional_guests) !== !0 && t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => t("div", { class: "input-wrapper button-wrapper" }, t("label", { class: {
347
+ var n, a, l, s, o, r, c, g, b, u, C, D, z, p, m, E, R, ae, te, oe, le;
348
+ const e = !!((n = this.selectedTimeslot) != null && n.event_id) && !!((a = this.selectedTimeslot) != null && a.capacity);
349
+ return t(k, { key: "a61445ec4453e619fb5525d2089675923b7b6c95" }, t("form", { key: "c227ed38d49928a5707b85992d37473afe424a51", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, t("div", { key: "425cbdafd7573f7c010df1a892db9d38ee54bc8a", class: "nylas-booking-form", part: "nbf" }, t("div", { key: "93506a3e9155ae24e4908265b35653701f3faf6f", class: "input-wrapper", part: "nbf__input-wrapper" }, t("input-component", { key: "7b54bbb3b3065785058dbdebc1f271b6b712e718", label: i.t("name"), name: "name", id: "name", defaultValue: ((s = (l = this.bookingInfo) == null ? void 0 : l.primaryParticipant) == null ? void 0 : s.name) || ((c = (r = (o = this.configSettings) == null ? void 0 : o.booking) == null ? void 0 : r.guest) == null ? void 0 : c.name) || this.name, placeholder: i.t("namePlaceholder"), type: "text", readOnly: ((b = (g = this.bookingInfo) == null ? void 0 : g.primaryParticipant) == null ? void 0 : b.nameReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("name") }), patternError: i.t("invalidInputFormat", { field: i.t("name") }), part: "nbf__input-textfield" })), t("div", { key: "2d0b8ccc0390faae5a7e29c1c2c568418bb9bad5", class: "input-wrapper", part: "nbf__input-wrapper" }, t("input-component", { key: "61c6bed06d612ce4f0bb366cbe675048ad6fa49e", label: i.t("email"), name: "email", id: "email", pattern: $, defaultValue: ((C = (u = this.bookingInfo) == null ? void 0 : u.primaryParticipant) == null ? void 0 : C.email) || ((p = (z = (D = this.configSettings) == null ? void 0 : D.booking) == null ? void 0 : z.guest) == null ? void 0 : p.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((E = (m = this.bookingInfo) == null ? void 0 : m.primaryParticipant) == null ? void 0 : E.emailReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("email") }), patternError: i.t("invalidInputFormat", { field: i.t("email") }), part: "nbf__input-textfield" })), ((ae = (R = this.configSettings) == null ? void 0 : R.scheduler) == null ? void 0 : ae.hide_additional_guests) !== !0 && t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => t("div", { class: "input-wrapper button-wrapper" }, t("label", { class: {
349
350
  error: !!this.guestEmailErrors[y]
350
351
  } }, i.t("guestEmail")), t("div", { class: "guest-email-input" }, t("input", { type: "email", id: `guest-email-${y}`, maxLength: 100, class: {
351
352
  "guest-email": !0,
@@ -359,33 +360,33 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
359
360
  } }), t("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (v) => this.removeGuestButtonClickHandler(v, y), class: {
360
361
  "remove-guest": !0,
361
362
  error: !!this.guestEmailErrors[y]
362
- } }, t("close-icon", null))), t("p", { class: "help-text" }, this.guestEmailErrors[y]))), t("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (_) => this.addGuestButtonClickedHandler(_) }, t("div", { class: "button-content" }, t("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${i.t("addAnotherGuest")}` : `${i.t("addGuest")}`))), (ae = Object.entries(((R = (E = this.configSettings) == null ? void 0 : E.scheduler) == null ? void 0 : R.additional_fields) || {})) == null ? void 0 : ae.sort((_, y) => _[1].order - y[1].order).map((_) => {
363
- var te, oe, le, re, se, ie, ce, de, fe, ye, be, he, ge;
364
- const y = _[1], v = y.label, h = _[0], x = ((le = (oe = (te = this.bookingInfo) == null ? void 0 : te.additionalFields) == null ? void 0 : oe[h]) == null ? void 0 : le.value) || ((ie = (se = (re = this.configSettings) == null ? void 0 : re.booking) == null ? void 0 : se.additional_fields) == null ? void 0 : ie[h]) || y.default || "", L = ((fe = (de = (ce = this.bookingInfo) == null ? void 0 : ce.additionalFields) == null ? void 0 : de[h]) == null ? void 0 : fe.readOnly) || !1;
363
+ } }, t("close-icon", null))), t("p", { class: "help-text" }, this.guestEmailErrors[y]))), !e && t("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (_) => this.addGuestButtonClickedHandler(_) }, t("div", { class: "button-content" }, t("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${i.t("addAnotherGuest")}` : `${i.t("addGuest")}`))), (le = Object.entries(((oe = (te = this.configSettings) == null ? void 0 : te.scheduler) == null ? void 0 : oe.additional_fields) || {})) == null ? void 0 : le.sort((_, y) => _[1].order - y[1].order).map((_) => {
364
+ var se, re, ie, ce, de, fe, ye, be, he, ge, pe, me, ue;
365
+ const y = _[1], v = y.label, h = _[0], x = ((ie = (re = (se = this.bookingInfo) == null ? void 0 : se.additionalFields) == null ? void 0 : re[h]) == null ? void 0 : ie.value) || ((fe = (de = (ce = this.configSettings) == null ? void 0 : ce.booking) == null ? void 0 : de.additional_fields) == null ? void 0 : fe[h]) || y.default || "", L = ((he = (be = (ye = this.bookingInfo) == null ? void 0 : ye.additionalFields) == null ? void 0 : be[h]) == null ? void 0 : he.readOnly) || !1;
365
366
  switch (y.type) {
366
367
  case "dropdown":
367
368
  return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("select-dropdown", { label: v, name: h, id: h, readOnly: L, withSearch: !1, emptyValue: i.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: x ? { value: x, label: x } : void 0, options: [
368
369
  { value: "", label: i.t("nylasBookingCalendarPicker.selectOptionLabel") },
369
- ...((ye = y.options) == null ? void 0 : ye.map((I) => ({ value: I, label: I }))) || []
370
+ ...((ge = y.options) == null ? void 0 : ge.map((I) => ({ value: I, label: I }))) || []
370
371
  ], required: y.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
371
372
  case "checkbox":
372
373
  return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("checkbox-component", { readOnly: L, label: v, name: h, id: h, checked: x === "true", required: y.required, part: "nbf__checkbox-component" }));
373
374
  case "radio_button":
374
- return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("radio-button-group", { label: v, name: h, id: h, readOnly: L, defaultSelectedValue: x || ((be = y.options) == null ? void 0 : be[0]) || "", options: (he = y.options) == null ? void 0 : he.map((I) => ({ value: I, label: I })), required: y.required, part: "nbf__radio-button-group" }));
375
+ return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("radio-button-group", { label: v, name: h, id: h, readOnly: L, defaultSelectedValue: x || ((pe = y.options) == null ? void 0 : pe[0]) || "", options: (me = y.options) == null ? void 0 : me.map((I) => ({ value: I, label: I })), required: y.required, part: "nbf__radio-button-group" }));
375
376
  case "multi_line_text":
376
377
  return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("textarea-component", { readOnly: L, label: v, defaultValue: x, name: h, id: h, required: y.required, part: "nbf__textarea-component" }));
377
378
  case "date":
378
379
  return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("nylas-date-component", { readOnly: L, label: v, defaultValue: x, name: h, id: h, required: y.required, part: "nbf__date-component" }));
379
380
  case "multi_select": {
380
381
  const I = (x == null ? void 0 : x.split(",").map((j) => j.trim())) || [];
381
- return t("div", null, t("multi-select-dropdown", { label: v, name: h, id: h, readOnly: L, multipleOptionsSelectedLabel: i.t("multipleOptionsSelected"), options: (ge = y.options) == null ? void 0 : ge.map((j) => ({ value: j, label: j, selected: I.includes(j) })), required: y.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" }));
382
+ return t("div", null, t("multi-select-dropdown", { label: v, name: h, id: h, readOnly: L, multipleOptionsSelectedLabel: i.t("multipleOptionsSelected"), options: (ue = y.options) == null ? void 0 : ue.map((j) => ({ value: j, label: j, selected: I.includes(j) })), required: y.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" }));
382
383
  }
383
384
  case "metadata":
384
385
  return null;
385
386
  default:
386
387
  return t("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, t("input-component", { label: v, name: h, id: h, type: y.type, readOnly: L, defaultValue: x || "", requiredError: i.t("fieldRequired", { field: v }), required: y.required, part: "nbf__input-textfield" }));
387
388
  }
388
- })), t("div", { key: "ceca163a222c8be615a63d36f15e1dcdad40c08c", class: "cta" }, t("button-component", { key: "300ecbc4bffd1abe7d89684000ea958457392650", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, t("slot", { key: "3f3ab4bd1654a53941685961252c57138dbd9cc5", name: "booking-form-back-label" }, `${i.t("backButton")}`)), t("button-component", { key: "f1e3ecf792c87519589b83678d607bf12756f209", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, t("slot", { key: "75e9978b761610c37daf981520dc6e372e02fb38", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
389
+ })), t("div", { key: "5ab83b8ecf4b09d9169308906f946aecab4baf1f", class: "cta" }, t("button-component", { key: "d2c19b009947720bcfc7ef179b2e0676c553c57a", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, t("slot", { key: "f1dc306efbc505b1a0f13864c9c46282859c6890", name: "booking-form-back-label" }, `${i.t("backButton")}`)), t("button-component", { key: "44b97991dd46f9cedecceeced7812ac76c5559ad", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, t("slot", { key: "2e2c4904d08a0fe0bb6d988299e6eed3b8d177d2", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
389
390
  }
390
391
  get host() {
391
392
  return T(this);
@@ -398,7 +399,7 @@ const $ = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
398
399
  };
399
400
  }
400
401
  };
401
- We([
402
+ Xe([
402
403
  B({
403
404
  name: "nylas-booking-form",
404
405
  stateToProps: /* @__PURE__ */ new Map([
@@ -406,7 +407,8 @@ We([
406
407
  ["scheduler.bookingInfo", "bookingInfo"],
407
408
  ["scheduler.eventInfo", "eventInfo"],
408
409
  ["scheduler.configSettings", "configSettings"],
409
- ["scheduler.themeConfig", "themeConfig"]
410
+ ["scheduler.themeConfig", "themeConfig"],
411
+ ["scheduler.selectedTimeslot", "selectedTimeslot"]
410
412
  ]),
411
413
  eventToProps: {
412
414
  backButtonClicked: async (e, n) => {
@@ -433,38 +435,38 @@ We([
433
435
  q("design:type", Function),
434
436
  q("design:paramtypes", []),
435
437
  q("design:returntype", void 0)
436
- ], _e.prototype, "render", null);
437
- _e.style = Ge;
438
- const Ue = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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}', Ye = Ue;
439
- var Xe = function(e, n, a, l) {
440
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
438
+ ], Te.prototype, "render", null);
439
+ Te.style = Ye;
440
+ 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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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}', Ke = Je;
441
+ var Qe = function(e, n, a, l) {
442
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
441
443
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
442
444
  o = Reflect.decorate(e, n, a, l);
443
445
  else
444
446
  for (var c = e.length - 1; c >= 0; c--)
445
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
446
- return r > 3 && o && Object.defineProperty(n, a, o), o;
447
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
448
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
447
449
  }, Z = function(e, n) {
448
450
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
449
451
  return Reflect.metadata(e, n);
450
452
  };
451
- const we = class {
453
+ const Ee = class {
452
454
  constructor(e) {
453
455
  var n, a;
454
456
  w(this, e), this.goBackButtonClicked = f(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = f(this, "cancelBookingFormSubmitted", 7), this.triggerValidation = f(this, "triggerValidation", 7), this.cancelBookedEventError = f(this, "cancelBookedEventError", 7), this.cancelBookingFormError = f(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
455
457
  this.goBackButtonClicked.emit();
456
458
  }, this.handleSubmitCancelBooking = (l) => {
457
- var s, c, g;
459
+ var r, c, g;
458
460
  if (this.triggerValidation.emit({}), l.preventDefault(), !this.cancellationReason) {
459
461
  this.cancellationError = i.t("cancellationErrorMessage"), this.cancelBookingFormError.emit({ title: i.t("cancelBokingFormError"), description: i.t("cancellationErrorMessage") });
460
462
  return;
461
463
  }
462
- const r = (c = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : c.min_cancellation_notice;
463
- if (this.selectedTimeslot && r && new Date((g = this.selectedTimeslot) == null ? void 0 : g.start_time).getTime() - r * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime()) {
464
+ const s = (c = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : c.min_cancellation_notice;
465
+ if (this.selectedTimeslot && s && new Date((g = this.selectedTimeslot) == null ? void 0 : g.start_time).getTime() - s * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime()) {
464
466
  this.cancelBookedEventError.emit({
465
467
  error: {
466
468
  title: i.t("cancellationErrorTitle"),
467
- message: i.t("minimumCancellationNoticeErrorMessage", { minCancellationNotice: r })
469
+ message: i.t("minimumCancellationNoticeErrorMessage", { minCancellationNotice: s })
468
470
  }
469
471
  });
470
472
  return;
@@ -506,7 +508,7 @@ const we = class {
506
508
  }
507
509
  render() {
508
510
  var e, n;
509
- return t(k, { key: "733c136e4a80782ac18c8d52e053d26cdcceaa67", part: "ncbf" }, t("div", { key: "108279e83820f644da85d6c89edf09b9bcea3700", class: "nylas-cancel-booking-form", part: "ncbf__card" }, t("div", { key: "ffc95389f08a71b9892eaf27505700ff03331bc9", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, t("calendar-cancel-icon", { key: "5993111a1f702bc24d15d10e3b1fb40017820e4a" })), t("h3", { key: "24ce0017beeb98abebef2276d2d1b8642cc31a7a", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), t("div", { key: "8708735caa18b7f16da87d8403dba66f9cccf80f", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (n = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && n.cancellation_policy ? this.cancellationPolicy : `${i.t("cancelBookingMessage")}`), t("form", { key: "917b25ea4259080e48d1bca6f889d9749cab8684", onSubmit: this.handleSubmitCancelBooking }, t("textarea-component", { key: "b0242c5184c55413249cc9b3fc834c145725aa58", id: "cancel-reason", name: "cancel-reason", ref: (a) => this.textareaRef = a, required: !0, label: i.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), t("div", { key: "dbfd4caad12ab130460efaf266a5c8ae52da0f83", class: "footer" }, t("button-component", { key: "6ddab785c067eaa9eed443a14aaf42240a01f4c3", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && t("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
511
+ return t(k, { key: "4577319f0ccf1846e56b285db89546582002f1a1", part: "ncbf" }, t("div", { key: "181d186e20e9579798697d3420a956f56c961297", class: "nylas-cancel-booking-form", part: "ncbf__card" }, t("div", { key: "c2be52cf0d604ee957302433374d7169bbf433c7", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, t("calendar-cancel-icon", { key: "d0a48b300d64a5ceacf73fc88da26da30471b1f7" })), t("h3", { key: "c41eb527c32ce6481a9a55caec5b373bcd62f9b9", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), t("div", { key: "24c024b030580ce8b39425992be7d970fd9759ac", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (n = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && n.cancellation_policy ? this.cancellationPolicy : `${i.t("cancelBookingMessage")}`), t("form", { key: "5b85aece902c3efe9d2b25d24dd33db504129385", onSubmit: this.handleSubmitCancelBooking }, t("textarea-component", { key: "a501ada75216524a781819dc46022856aeb7833c", id: "cancel-reason", name: "cancel-reason", ref: (a) => this.textareaRef = a, required: !0, label: i.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), t("div", { key: "51baa8ac7f30f28ef763b5c02002d8c9d3b94c89", class: "footer" }, t("button-component", { key: "25cc9d6fb66e7c052926320b314deaabea70e6e3", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && t("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
510
512
  }
511
513
  get host() {
512
514
  return T(this);
@@ -518,7 +520,7 @@ const we = class {
518
520
  };
519
521
  }
520
522
  };
521
- Xe([
523
+ Qe([
522
524
  B({
523
525
  name: "nylas-cancel-booking-form",
524
526
  stateToProps: /* @__PURE__ */ new Map([
@@ -534,15 +536,15 @@ Xe([
534
536
  cancelBookingFormSubmitted: async (e, n) => {
535
537
  const { action: a, errorHandler: l } = e.detail;
536
538
  if (a === "cancel") {
537
- const r = await n.scheduler.cancelBooking(e.detail.bookingId, e.detail.reason);
538
- l && (!r || "error" in r) && l(r);
539
+ const s = await n.scheduler.cancelBooking(e.detail.bookingId, e.detail.reason);
540
+ l && (!s || "error" in s) && l(s);
539
541
  } else if (a === "reject") {
540
- const r = await n.scheduler.updateBooking({
542
+ const s = await n.scheduler.updateBooking({
541
543
  bookingId: e.detail.bookingId,
542
544
  status: "cancelled",
543
545
  reason: e.detail.reason
544
546
  });
545
- l && (!r || "error" in r) && l(r);
547
+ l && (!s || "error" in s) && l(s);
546
548
  }
547
549
  },
548
550
  goBackButtonClicked: async (e, n) => {
@@ -560,22 +562,22 @@ Xe([
560
562
  Z("design:type", Function),
561
563
  Z("design:paramtypes", []),
562
564
  Z("design:returntype", void 0)
563
- ], we.prototype, "render", null);
564
- we.style = Ye;
565
- const Je = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', Ke = Je;
566
- var Qe = function(e, n, a, l) {
567
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
565
+ ], Ee.prototype, "render", null);
566
+ Ee.style = Ke;
567
+ const Ve = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', en = Ve;
568
+ var nn = function(e, n, a, l) {
569
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
568
570
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
569
571
  o = Reflect.decorate(e, n, a, l);
570
572
  else
571
573
  for (var c = e.length - 1; c >= 0; c--)
572
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
573
- return r > 3 && o && Object.defineProperty(n, a, o), o;
574
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
575
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
574
576
  }, G = function(e, n) {
575
577
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
576
578
  return Reflect.metadata(e, n);
577
579
  };
578
- const xe = class {
580
+ const Be = class {
579
581
  constructor(e) {
580
582
  w(this, e), this.closeCancelEventCardClicked = f(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = f(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
581
583
  this.isClosing = !0;
@@ -607,7 +609,7 @@ const xe = class {
607
609
  }
608
610
  render() {
609
611
  var e, n;
610
- return t(k, { key: "d835492ddff51ad8cad3fa73b5dc88a82f6cfdd9", part: "ncec" }, t("div", { key: "b1cd60f3aad0acaa5c75e1e3fd83dd227fe20dfc", class: "nylas-cancelled-event-card", part: "ncec__card" }, t("div", { key: "3b9bc0d52e4b34421f76f8daec0ba64704d0c783", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "abffc9703f1b417f7da3ed106cf88e917988ff89" })), t("h3", { key: "21d104aa9c67cd040b86fa01d5666e69f9335178", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), t("div", { key: "532eb9d62db4ae34c64b3d64c7a003b6842865be", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, i.t("bookingCancelledMessage"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || "the participants", "."), t("div", { key: "b34aa321c0b1e485153a2dfa2ae38cca504be0b7", class: "nylas-cancelled-event-card__cta" }, t("button-component", { key: "519aa668e2397f1a32637590797aa9052e24a5ff", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
612
+ return t(k, { key: "9e6545462d4e32c64949688d7ed2894f2bced5ba", part: "ncec" }, t("div", { key: "a87a98f3475728d0675fcb9d0c43284fd720f4da", class: "nylas-cancelled-event-card", part: "ncec__card" }, t("div", { key: "9e81e2a9d78d7c7012f95960089ba2b905a5cc24", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "b98f5cd127e616c349b070fc45c062ca9fcdc59b" })), t("h3", { key: "765705214fd7747931c5b0d838a7a056f21e6e57", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), t("div", { key: "86de52bfdc93fa41708b88df51c8887e03ad864f", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, i.t("bookingCancelledMessage"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || i.t("bookingCancelledMessage_theParticipants"), "."), t("div", { key: "78047e3cc631d8786f7d1056543047f935c4b265", class: "nylas-cancelled-event-card__cta" }, t("button-component", { key: "ae328907d91108642c37f7f517eecbc1debf57b1", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
611
613
  }
612
614
  get host() {
613
615
  return T(this);
@@ -618,7 +620,7 @@ const xe = class {
618
620
  };
619
621
  }
620
622
  };
621
- Qe([
623
+ nn([
622
624
  B({
623
625
  name: "nylas-cancelled-event-card",
624
626
  stateToProps: /* @__PURE__ */ new Map([
@@ -640,22 +642,22 @@ Qe([
640
642
  G("design:type", Function),
641
643
  G("design:paramtypes", []),
642
644
  G("design:returntype", void 0)
643
- ], xe.prototype, "render", null);
644
- xe.style = Ke;
645
- const Ve = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', en = Ve;
646
- var nn = function(e, n, a, l) {
647
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
645
+ ], Be.prototype, "render", null);
646
+ Be.style = en;
647
+ const an = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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%}', tn = an;
648
+ var on = function(e, n, a, l) {
649
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
648
650
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
649
651
  o = Reflect.decorate(e, n, a, l);
650
652
  else
651
653
  for (var c = e.length - 1; c >= 0; c--)
652
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
653
- return r > 3 && o && Object.defineProperty(n, a, o), o;
654
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
655
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
654
656
  }, W = function(e, n) {
655
657
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
656
658
  return Reflect.metadata(e, n);
657
659
  };
658
- const Te = class {
660
+ const De = class {
659
661
  constructor(e) {
660
662
  w(this, e), this.closeConfirmEventCardClicked = f(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = f(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
661
663
  this.isClosing = !0;
@@ -687,7 +689,7 @@ const Te = class {
687
689
  }
688
690
  render() {
689
691
  var e, n;
690
- return t(k, { key: "7d9b6138eeb5bf8f3e2d9552a609e0e92f4218c9", part: "ncec" }, t("div", { key: "3f310f8e06ce5b069ef9021890e4588adcd856e6", class: "nylas-confirmed-event-card", part: "ncec__card" }, t("div", { key: "0ab27b860a9160d6d6cf8b0e1ff0ba7a866c8102", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "f0b93912e1787c2f2d882590e8cae9a05a4ee577" })), t("h3", { key: "33f170e8c6a9db989b7f0b05702743c024bec621", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), t("div", { key: "7c4d191a266c9a2f748707ae1bd176c217a676e9", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, i.t("confirmedEventCardDescription"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || "the participants", "."), t("div", { key: "fb313a8a7cc9b7eb901e10f3cbc12e5b2faba00d", class: "nylas-confirmed-event-card__cta" }, t("button-component", { key: "c31d8980fdc428bc0c2950397eda010572c0e72f", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
692
+ return t(k, { key: "173c8986b2146640e4af28d4edb54e75e55f1cd9", part: "ncec" }, t("div", { key: "a76d396f05330ea02fd2932c9ca8bafe306cac5f", class: "nylas-confirmed-event-card", part: "ncec__card" }, t("div", { key: "12f89b85eab9ae8275baa185a25c2a8c6ae5bd3a", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "839aeac2c355b976539ddc28b48cb37b0d0993b0" })), t("h3", { key: "e9b753b00b5d39adc5fc77d4de3d4a39c58f4a7e", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), t("div", { key: "e748c5ba71eadeac3f8329db697af4eb33ae8f8c", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, i.t("confirmedEventCardDescription"), " ", ((n = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : n.name) || "the participants", "."), t("div", { key: "19ee46dc2f9e87a71a49bdfd04ced8636a66a72d", class: "nylas-confirmed-event-card__cta" }, t("button-component", { key: "44996633ea84bda5ecb814ad21da1942cf04f4fd", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
691
693
  }
692
694
  get host() {
693
695
  return T(this);
@@ -698,7 +700,7 @@ const Te = class {
698
700
  };
699
701
  }
700
702
  };
701
- nn([
703
+ on([
702
704
  B({
703
705
  name: "nylas-confirmed-event-card",
704
706
  stateToProps: /* @__PURE__ */ new Map([
@@ -716,45 +718,45 @@ nn([
716
718
  W("design:type", Function),
717
719
  W("design:paramtypes", []),
718
720
  W("design:returntype", void 0)
719
- ], Te.prototype, "render", null);
720
- Te.style = en;
721
+ ], De.prototype, "render", null);
722
+ De.style = tn;
721
723
  const U = /* @__PURE__ */ new Date(), Y = /* @__PURE__ */ new Date();
722
724
  function N(e, n, a, l) {
723
- function r(o) {
725
+ function s(o) {
724
726
  return e(o = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+o)), o;
725
727
  }
726
- return r.floor = (o) => (e(o = /* @__PURE__ */ new Date(+o)), o), r.ceil = (o) => (e(o = new Date(o - 1)), n(o, 1), e(o), o), r.round = (o) => {
727
- const s = r(o), c = r.ceil(o);
728
- return o - s < c - o ? s : c;
729
- }, r.offset = (o, s) => (n(o = /* @__PURE__ */ new Date(+o), s == null ? 1 : Math.floor(s)), o), r.range = (o, s, c) => {
728
+ return s.floor = (o) => (e(o = /* @__PURE__ */ new Date(+o)), o), s.ceil = (o) => (e(o = new Date(o - 1)), n(o, 1), e(o), o), s.round = (o) => {
729
+ const r = s(o), c = s.ceil(o);
730
+ return o - r < c - o ? r : c;
731
+ }, s.offset = (o, r) => (n(o = /* @__PURE__ */ new Date(+o), r == null ? 1 : Math.floor(r)), o), s.range = (o, r, c) => {
730
732
  const g = [];
731
- if (o = r.ceil(o), c = c == null ? 1 : Math.floor(c), !(o < s) || !(c > 0))
733
+ if (o = s.ceil(o), c = c == null ? 1 : Math.floor(c), !(o < r) || !(c > 0))
732
734
  return g;
733
735
  let b;
734
736
  do
735
737
  g.push(b = /* @__PURE__ */ new Date(+o)), n(o, c), e(o);
736
- while (b < o && o < s);
738
+ while (b < o && o < r);
737
739
  return g;
738
- }, r.filter = (o) => N((s) => {
739
- if (s >= s)
740
- for (; e(s), !o(s); )
741
- s.setTime(s - 1);
742
- }, (s, c) => {
743
- if (s >= s)
740
+ }, s.filter = (o) => N((r) => {
741
+ if (r >= r)
742
+ for (; e(r), !o(r); )
743
+ r.setTime(r - 1);
744
+ }, (r, c) => {
745
+ if (r >= r)
744
746
  if (c < 0)
745
747
  for (; ++c <= 0; )
746
- for (; n(s, -1), !o(s); )
748
+ for (; n(r, -1), !o(r); )
747
749
  ;
748
750
  else
749
751
  for (; --c >= 0; )
750
- for (; n(s, 1), !o(s); )
752
+ for (; n(r, 1), !o(r); )
751
753
  ;
752
- }), a && (r.count = (o, s) => (U.setTime(+o), Y.setTime(+s), e(U), e(Y), Math.floor(a(U, Y))), r.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? r.filter(l ? (s) => l(s) % o === 0 : (s) => r.count(0, s) % o === 0) : r)), r;
754
+ }), a && (s.count = (o, r) => (U.setTime(+o), Y.setTime(+r), e(U), e(Y), Math.floor(a(U, Y))), s.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? s.filter(l ? (r) => l(r) % o === 0 : (r) => s.count(0, r) % o === 0) : s)), s;
753
755
  }
754
- const an = 1e3, Ee = an * 60, tn = Ee * 60, M = tn * 24, X = N(
756
+ const ln = 1e3, ze = ln * 60, sn = ze * 60, M = sn * 24, X = N(
755
757
  (e) => e.setHours(0, 0, 0, 0),
756
758
  (e, n) => e.setDate(e.getDate() + n),
757
- (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * Ee) / M,
759
+ (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ze) / M,
758
760
  (e) => e.getDate() - 1
759
761
  );
760
762
  N((e) => {
@@ -767,31 +769,31 @@ N((e) => {
767
769
  }, (e, n) => {
768
770
  e.setUTCDate(e.getUTCDate() + n);
769
771
  }, (e, n) => (n - e) / M, (e) => Math.floor(e / M));
770
- const on = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@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);color:var(--nylas-base-800)}.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: 768px){.dates .date{width:-webkit-fill-available;width:-moz-available;width:fill-available}}@media screen and (max-width: 412px){.dates .date{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)}', ln = on;
771
- var rn = function(e, n, a, l) {
772
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
772
+ const rn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@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);color:var(--nylas-base-800)}.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: 768px){.dates .date{width:-webkit-fill-available;width:-moz-available;width:fill-available}}@media screen and (max-width: 412px){.dates .date{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)}', cn = rn;
773
+ var dn = function(e, n, a, l) {
774
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
773
775
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
774
776
  o = Reflect.decorate(e, n, a, l);
775
777
  else
776
778
  for (var c = e.length - 1; c >= 0; c--)
777
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
778
- return r > 3 && o && Object.defineProperty(n, a, o), o;
779
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
780
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
779
781
  }, J = function(e, n) {
780
782
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
781
783
  return Reflect.metadata(e, n);
782
784
  };
783
- ne.extend(Re);
784
- ne.extend(je);
785
- const Be = class {
785
+ ne.extend(Fe);
786
+ ne.extend(Oe);
787
+ const Le = class {
786
788
  constructor(e) {
787
789
  w(this, e), this.dateSelected = f(this, "dateSelected", 7), this.monthChanged = f(this, "monthChanged", 7), this.selectableDates = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, 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, this.selectableDatesTimezone = [];
788
790
  }
789
791
  configSettingsChanged(e) {
790
- var r;
791
- const n = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), a = (r = e == null ? void 0 : e.scheduler) == null ? void 0 : r.available_days_in_future;
792
+ var s;
793
+ const n = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), a = (s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.available_days_in_future;
792
794
  if (a === void 0)
793
795
  return;
794
- me(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
796
+ ve(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
795
797
  }
796
798
  selectedLanguageChanged(e) {
797
799
  i.changeLanguage(e);
@@ -800,7 +802,7 @@ const Be = class {
800
802
  this.applyThemeConfig(e);
801
803
  }
802
804
  selectedDateChanged(e) {
803
- (!e || !P(e, this.month)) && (this.month = e || /* @__PURE__ */ new Date()), this.dates = this.getDates();
805
+ (!e || !F(e, this.month)) && (this.month = e || /* @__PURE__ */ new Date()), this.dates = this.getDates();
804
806
  }
805
807
  convertDatesToTimezone(e, n) {
806
808
  return !e || e.length === 0 ? [] : e.map((a) => {
@@ -829,17 +831,17 @@ const Be = class {
829
831
  this.host.style.setProperty(`${n}`, a);
830
832
  }
831
833
  getDates() {
832
- const e = Fe(this.month), n = Pe(this.month);
834
+ const e = $e(this.month), n = Me(this.month);
833
835
  return X.range(X.offset(n, -n.getDay()), X.offset(e, 7 - e.getDay()));
834
836
  }
835
837
  selectDate(e) {
836
838
  this.dateSelected.emit(e);
837
839
  }
838
840
  changeMonth(e) {
839
- var r, o;
841
+ var s, o;
840
842
  this.month = new Date(this.month.getFullYear(), this.month.getMonth() + e, 1);
841
- const n = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), a = (o = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : o.available_days_in_future;
842
- me(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
843
+ const n = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), a = (o = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : o.available_days_in_future;
844
+ ve(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
843
845
  }
844
846
  isSelected(e, n, a) {
845
847
  return e && n && O(e, n) && a && (a == null ? void 0 : a.length) > 0;
@@ -848,8 +850,8 @@ const Be = class {
848
850
  return !e || !this.selectableDatesTimezone || this.selectableDatesTimezone.length === 0 ? !0 : !this.selectableDatesTimezone.some((n) => e.getFullYear() === n.getFullYear() && e.getMonth() === n.getMonth() && e.getDate() === n.getDate());
849
851
  }
850
852
  render() {
851
- var e, n, a, l, r, o;
852
- return t(k, { key: "36322bd1badb927a3d8505334c339b220a81c946", part: "ndp" }, t("div", { key: "666e06338a8be95fdf5a18d0d5e1db006ce0623e", class: "nylas-date-picker" }, t("div", { key: "7429e08d3dc984205a07efb8a7a0dc21d8b3b6b2", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? t("h1", null, (n = this.configSettings) == null ? void 0 : n.name) : ((l = (a = this.configSettings) == null ? void 0 : a.organizer) == null ? void 0 : l.name) && t("h1", null, t("person-icon", null), ((o = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : o.name) || "Organizer"), t("p", { key: "a5b1770d7f39d173a37f4ee627645f43230b83eb" }, t("clock-icon", { key: "383105a9bfdb7e45e414941c06278de8b73e705f" }), this.eventDuration ? Oe(this.eventDuration) : `- ${i.t("time.minutes")}`)), t("div", { key: "91cd7691b593bd8af1bd930f0206cc284826ee83", class: "header flex-row" }, t("h2", { key: "c490b7fe8a6a04ba8fda318b41a7ad5db9c13d0c", part: "ndp__month-header" }, t("strong", { key: "bfe557291e300cc8ec876d889909168fa5cd798b" }, $e(this.month.toLocaleDateString("en-US", { month: "long" }).toLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), t("div", { key: "a19535626041e7cb3550aabd677fd788bf003b03", class: "pagination" }, t("button", { key: "6174f0128f51c6ad814473425da3e983e1dd80bc", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, t("chevron-icon", { key: "9c6c965ca7273205229ee6f3918226588b9cceb6" })), t("button", { key: "d83a846832a897e8a35242093ba01fc04497b0ff", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, t("chevron-icon", { key: "b7106b3807f93e73eb86102a7ce4b81997a2c57a" })))), t("div", { key: "3c5809a8f1447005d82a75bc035a52918397a423", class: "dates" }, [
853
+ var e, n, a, l, s, o;
854
+ return t(k, { key: "36322bd1badb927a3d8505334c339b220a81c946", part: "ndp" }, t("div", { key: "666e06338a8be95fdf5a18d0d5e1db006ce0623e", class: "nylas-date-picker" }, t("div", { key: "7429e08d3dc984205a07efb8a7a0dc21d8b3b6b2", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? t("h1", null, (n = this.configSettings) == null ? void 0 : n.name) : ((l = (a = this.configSettings) == null ? void 0 : a.organizer) == null ? void 0 : l.name) && t("h1", null, t("person-icon", null), ((o = (s = this.configSettings) == null ? void 0 : s.organizer) == null ? void 0 : o.name) || "Organizer"), t("p", { key: "a5b1770d7f39d173a37f4ee627645f43230b83eb" }, t("clock-icon", { key: "383105a9bfdb7e45e414941c06278de8b73e705f" }), this.eventDuration ? Ne(this.eventDuration) : `- ${i.t("time.minutes")}`)), t("div", { key: "91cd7691b593bd8af1bd930f0206cc284826ee83", class: "header flex-row" }, t("h2", { key: "c490b7fe8a6a04ba8fda318b41a7ad5db9c13d0c", part: "ndp__month-header" }, t("strong", { key: "bfe557291e300cc8ec876d889909168fa5cd798b" }, He(this.month.toLocaleDateString("en-US", { month: "long" }).toLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), t("div", { key: "a19535626041e7cb3550aabd677fd788bf003b03", class: "pagination" }, t("button", { key: "6174f0128f51c6ad814473425da3e983e1dd80bc", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, t("chevron-icon", { key: "9c6c965ca7273205229ee6f3918226588b9cceb6" })), t("button", { key: "d83a846832a897e8a35242093ba01fc04497b0ff", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, t("chevron-icon", { key: "b7106b3807f93e73eb86102a7ce4b81997a2c57a" })))), t("div", { key: "3c5809a8f1447005d82a75bc035a52918397a423", class: "dates" }, [
853
855
  i.t("days.sunday"),
854
856
  i.t("days.monday"),
855
857
  i.t("days.tuesday"),
@@ -857,18 +859,18 @@ const Be = class {
857
859
  i.t("days.thursday"),
858
860
  i.t("days.friday"),
859
861
  i.t("days.saturday")
860
- ].map((s) => t("div", { class: "day", part: "ndp__day" }, s)), this.dates.map((s, c) => {
862
+ ].map((r) => t("div", { class: "day", part: "ndp__day" }, r)), this.dates.map((r, c) => {
861
863
  var b;
862
- const g = this.isDisabled(s);
864
+ const g = this.isDisabled(r);
863
865
  return this.isLoading ? t("button", { disabled: !0, class: {
864
866
  "date day-skeleton": !0,
865
- "current-month": P(s, this.month)
866
- }, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, s.getDate()) : t("button", { class: {
867
+ "current-month": F(r, this.month)
868
+ }, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, r.getDate()) : t("button", { class: {
867
869
  date: !0,
868
- selected: !!(this.selectedDate && O(s, this.selectedDate) && this.selectableDates && ((b = this.selectableDates) == null ? void 0 : b.length) > 0),
869
- "current-day": O(s, /* @__PURE__ */ new Date()),
870
- "current-month": P(s, this.month)
871
- }, "aria-label": s.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: g, onClick: () => this.selectDate(s), part: `ndp__date ${this.isSelected(s, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${O(s, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${P(s, this.month) ? "ndp__date--current-month" : ""}` }, s.getDate());
870
+ selected: !!(this.selectedDate && O(r, this.selectedDate) && this.selectableDates && ((b = this.selectableDates) == null ? void 0 : b.length) > 0),
871
+ "current-day": O(r, /* @__PURE__ */ new Date()),
872
+ "current-month": F(r, this.month)
873
+ }, "aria-label": r.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: g, onClick: () => this.selectDate(r), part: `ndp__date ${this.isSelected(r, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${O(r, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${F(r, this.month) ? "ndp__date--current-month" : ""}` }, r.getDate());
872
874
  }))));
873
875
  }
874
876
  get host() {
@@ -885,7 +887,7 @@ const Be = class {
885
887
  };
886
888
  }
887
889
  };
888
- rn([
890
+ dn([
889
891
  B({
890
892
  name: "nylas-date-picker",
891
893
  stateToProps: /* @__PURE__ */ new Map([
@@ -911,25 +913,25 @@ rn([
911
913
  J("design:type", Function),
912
914
  J("design:paramtypes", []),
913
915
  J("design:returntype", void 0)
914
- ], Be.prototype, "render", null);
915
- Be.style = ln;
916
- const sn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button-selected-label){max-width:80px}select-dropdown::part(sd_dropdown-content){width:100%;max-width:none}}', cn = sn;
917
- var dn = function(e, n, a, l) {
918
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
916
+ ], Le.prototype, "render", null);
917
+ Le.style = cn;
918
+ const fn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button-selected-label){max-width:80px}select-dropdown::part(sd_dropdown-content){width:100%;max-width:none}}', yn = fn;
919
+ var bn = function(e, n, a, l) {
920
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
919
921
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
920
922
  o = Reflect.decorate(e, n, a, l);
921
923
  else
922
924
  for (var c = e.length - 1; c >= 0; c--)
923
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
924
- return r > 3 && o && Object.defineProperty(n, a, o), o;
925
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
926
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
925
927
  }, K = function(e, n) {
926
928
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
927
929
  return Reflect.metadata(e, n);
928
930
  };
929
- const De = class {
931
+ const Ie = class {
930
932
  constructor(e) {
931
933
  var n, a;
932
- w(this, e), this.timezoneChanged = f(this, "timezoneChanged", 7), this.languageChanged = f(this, "languageChanged", 7), this.themeConfig = void 0, this.bookingInfo = void 0, this.selectedTimezone = ((n = this.bookingInfo) == null ? void 0 : n.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = ((a = this.bookingInfo) == null ? void 0 : a.language) || navigator.language;
934
+ w(this, e), this.timezoneChanged = f(this, "timezoneChanged", 7), this.languageChanged = f(this, "languageChanged", 7), this.themeConfig = void 0, this.bookingInfo = void 0, this.selectedTimezone = ((n = this.bookingInfo) == null ? void 0 : n.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = ((a = this.bookingInfo) == null ? void 0 : a.language) || navigator.language, this.searchPlaceholder = i.t("search");
933
935
  }
934
936
  themeConfigChanged(e) {
935
937
  this.applyThemeConfig(e);
@@ -950,48 +952,48 @@ const De = class {
950
952
  applyThemeConfig(e) {
951
953
  var n, a;
952
954
  if (e)
953
- for (const [l, r] of Object.entries(e))
954
- this.host.style.setProperty(`${l}`, r), (n = this.timezoneRef) == null || n.style.setProperty(`${l}`, r), (a = this.languageRef) == null || a.style.setProperty(`${l}`, r);
955
+ for (const [l, s] of Object.entries(e))
956
+ this.host.style.setProperty(`${l}`, s), (n = this.timezoneRef) == null || n.style.setProperty(`${l}`, s), (a = this.languageRef) == null || a.style.setProperty(`${l}`, s);
955
957
  }
956
958
  changeTimezone(e) {
957
959
  this.selectedTimezone = e, this.timezoneChanged.emit(e);
958
960
  }
959
961
  changeLanguage(e) {
960
- this.selectedLanguage = e, this.languageChanged.emit(e);
962
+ this.selectedLanguage = e, i.changeLanguage(e), this.searchPlaceholder = i.t("search"), this.languageChanged.emit(e);
961
963
  }
962
964
  nylasFormDropdownChangedHandler(e) {
963
965
  const { name: n, value: a } = e.detail;
964
966
  n === "timezone" ? this.changeTimezone(a) : n === "language" && this.changeLanguage(a);
965
967
  }
966
968
  getTimezoneLabelHTML(e) {
967
- const n = Me(e);
969
+ const n = Ae(e);
968
970
  return t("span", { class: "timezone-label", style: {
969
971
  display: "flex",
970
972
  alignItems: "center",
971
973
  justifyContent: "space-between",
972
974
  width: "-webkit-fill-available"
973
- } }, F[e], " ", t("span", { class: "timezone-offset", style: {
975
+ } }, P[e], " ", t("span", { class: "timezone-offset", style: {
974
976
  fontSize: "14px",
975
977
  fontWeight: "400",
976
978
  color: "var(--nylas-base-500)"
977
979
  } }, n));
978
980
  }
979
981
  render() {
980
- const e = Object.keys(F).map((a) => ({
982
+ const e = Object.keys(P).map((a) => ({
981
983
  labelHTML: this.getTimezoneLabelHTML(a),
982
- label: F[a],
984
+ label: P[a],
983
985
  value: a
984
- })), n = Object.keys(ue).map((a) => ({
985
- label: ue[a],
986
+ })), n = Object.keys(Ce).map((a) => ({
987
+ label: Ce[a],
986
988
  value: a
987
989
  }));
988
- return t(k, { key: "1a324cb66322d9dd8cb552a36bd3990a592ee7e9" }, t("div", { key: "18e91795ed822ed59f22c72207ea53ea9766d887", class: "nylas-locale-switch", part: "nls" }, t("div", { key: "7eb5e5ed990f5816e9dd17b1c4d06db3f36191da", class: {
990
+ return t(k, { key: "db7685f65c4d6311437f51b90c8ff2d6f2bfdefb" }, t("div", { key: "41fe4d870125fec3f1b92de2f3b37a0c53e79541", class: "nylas-locale-switch", part: "nls" }, t("div", { key: "f3613e5625ce5755ed4c9a52ff74430c5065277a", class: {
989
991
  "select-wrapper": !0,
990
992
  timezone: !0
991
- }, part: "nls__timezone" }, t("select-dropdown", { key: "32323279c21ad428b38d80ad0e4a484f845f135e", name: "timezone", options: e, ref: (a) => this.timezoneRef = a, defaultSelectedOption: e.find((a) => a.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" }, t("span", { key: "8c8364acc7d8e52ba170fd1de2a85cae15461e03", slot: "select-icon" }, t("globe-icon", { key: "cd491eef36d00660976120510449e2d2f3e46781", width: "20", height: "20" })))), t("div", { key: "80fcd6d80efd4f69cd8b0cec376ac105f45cb5a1", class: {
993
+ }, part: "nls__timezone" }, t("select-dropdown", { key: "65a17c585133197a0832f2f67165439aefaf0b78", name: "timezone", searchPlaceholder: this.searchPlaceholder, options: e, ref: (a) => this.timezoneRef = a, defaultSelectedOption: e.find((a) => a.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" }, t("span", { key: "4dcc3bb5f4e2f67d3ded45fc0501dc4cf14b32b4", slot: "select-icon" }, t("globe-icon", { key: "3e1d39db5640d61cb60259228dad1790fc4dc06a", width: "20", height: "20" })))), t("div", { key: "56808c49426922453fbae3393fdf2a1866c6e517", class: {
992
994
  "select-wrapper": !0,
993
995
  language: !0
994
- }, part: "nls__language" }, t("select-dropdown", { key: "578f4a7ddf488cac7eea767c4346167d7bb912ac", name: "language", options: n, ref: (a) => this.languageRef = a, defaultSelectedOption: n.find((a) => a.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" }, t("span", { key: "e35c2a746e10701f434aaaa3194b4656fc525404", slot: "select-icon" }, t("translate-icon", { key: "7981ceb4834167c19ba6655d558a9a3ae28e5829", width: "20", height: "20" }))))));
996
+ }, part: "nls__language" }, t("select-dropdown", { key: "fde4a71e21e8f252c764dc3b7feee0092ba0d47e", name: "language", searchPlaceholder: this.searchPlaceholder, options: n, ref: (a) => this.languageRef = a, defaultSelectedOption: n.find((a) => a.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" }, t("span", { key: "b3b824079c7a7c9d82b8e6f12b7f8c765a502e85", slot: "select-icon" }, t("translate-icon", { key: "eda7d67fb6e01b93d000f2c4fe44ec86c5afb113", width: "20", height: "20" }))))));
995
997
  }
996
998
  get host() {
997
999
  return T(this);
@@ -1003,7 +1005,7 @@ const De = class {
1003
1005
  };
1004
1006
  }
1005
1007
  };
1006
- dn([
1008
+ bn([
1007
1009
  B({
1008
1010
  name: "nylas-locale-switch",
1009
1011
  stateToProps: /* @__PURE__ */ new Map([
@@ -1025,18 +1027,18 @@ dn([
1025
1027
  K("design:type", Function),
1026
1028
  K("design:paramtypes", []),
1027
1029
  K("design:returntype", void 0)
1028
- ], De.prototype, "render", null);
1029
- De.style = cn;
1030
- const fn = ".sc-nylas-logo-h{display:flex}", yn = fn, bn = class {
1030
+ ], Ie.prototype, "render", null);
1031
+ Ie.style = yn;
1032
+ const hn = ".sc-nylas-logo-h{display:flex}", gn = hn, pn = class {
1031
1033
  constructor(e) {
1032
1034
  w(this, e), this.width = "69", this.height = "24";
1033
1035
  }
1034
1036
  render() {
1035
- return t("svg", { key: "2754c1399a5b051918a35626bcc7ef8c4469bdf6", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("g", { key: "305275b038021ca3f3e6dcc0fe2ae5b52386799b", "clip-path": "url(#clip0_455_3543)" }, t("path", { key: "522a651226ea7a0d10bb4cdb3cb81b4a73181313", 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" }), t("path", { key: "ddbac2352d168bd3f351a2cef55c63afe7cfa5c8", 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" }), t("path", { key: "3c6a6c66f1c3aace9405ebd584ca2ed5a0ded524", 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" }), t("path", { key: "a7d53e8a5700b0fbdb0852e1986196e1201d6e29", 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" }), t("path", { key: "39f69581e0ce463af015016ea0616cfb0d22cd5a", 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" }), t("path", { key: "a915b2d3150d9d27eb2d94afdc9c525145efa54b", 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" }), t("path", { key: "8f55641ad378bc25cdfa0de84eead63106874fee", 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" }), t("path", { key: "aaaf906bb3dd324c7819b7551943abc5070bdf6b", 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" })), t("defs", { key: "19edd2e50594677dee4a329eaa785a97c069a328" }, t("clipPath", { key: "8150c454a41dae533856dbf1458e1758f3816c71", id: "clip0_455_3543" }, t("rect", { key: "6f59a86c801dfcd1a4e7db6f151f479ad76a2a7b", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
1037
+ return t("svg", { key: "bf1f1771705b11c05505efd9752d54823cddcd92", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("g", { key: "217f356be04946dcb803f5a57fdd1253949802f3", "clip-path": "url(#clip0_455_3543)" }, t("path", { key: "634687466b49100774b0e87bcc5b7fdbe2064585", 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" }), t("path", { key: "ecd0250b21971f69d5f05293010e2ba2d79ff145", 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" }), t("path", { key: "0a58cf42af49db0d74d03d2d63fa8e4909d84cb5", 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" }), t("path", { key: "730b36a3316be58991ff8e2597c971d64ddfcbdf", 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" }), t("path", { key: "cd4e42ff8c28d3007249195ee36cf3b4bb4cfc69", 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" }), t("path", { key: "df80ca8dcc12d3b69ce1542641cbdfae6ca3de39", 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" }), t("path", { key: "706235c61454ff31c5f900f043b8064bf353cfb9", 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" }), t("path", { key: "a955ff4402567bf7f8d00e4c294462cdd2e6f2cf", 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" })), t("defs", { key: "46bd08fdc2d42df3396e2ffcdd7b4e2b118cd03d" }, t("clipPath", { key: "4c3ea239b61b77a894dde702c51adcab2811732c", id: "clip0_455_3543" }, t("rect", { key: "1281b74c91e82b1a77c6cc038bde95b709efd525", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
1036
1038
  }
1037
1039
  };
1038
- bn.style = yn;
1039
- const hn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}', gn = hn, pn = class {
1040
+ pn.style = gn;
1041
+ const mn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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}', un = mn, kn = class {
1040
1042
  constructor(e) {
1041
1043
  w(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
1042
1044
  }
@@ -1090,27 +1092,27 @@ const hn = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
1090
1092
  this.notifications = this.notifications.filter((n) => n.id !== e);
1091
1093
  }
1092
1094
  render() {
1093
- return t(k, { key: "14bd95afa19f56ee11c7fd0da40569ce7db03b8b" }, t(Ne, { key: "7d235408e948e21554c9438b578c9f8dc6cbc00e" }, this.notifications.map((e) => t("div", { class: `notif ${e.type}`, key: e.id }, t("div", { class: "content" }, t("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && t("warning-icon", null)), t("span", { class: "message" }, t("span", { class: "title" }, e.title), e.description && t("span", { class: "description" }, e.description))), t("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, t("close-icon", null)))), t("slot", { key: "fda76c22b0e752e2c6bcd84bc8d92d8f8e94ce88" })));
1095
+ return t(k, { key: "3bcf8226966db8fc4f5d6f6c88f47637126ec2d1" }, t(qe, { key: "5f7b27276edb525702fe9d87385149b5840964fe" }, this.notifications.map((e) => t("div", { class: `notif ${e.type}`, key: e.id }, t("div", { class: "content" }, t("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && t("warning-icon", null)), t("span", { class: "message" }, t("span", { class: "title" }, e.title), e.description && t("span", { class: "description" }, e.description))), t("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, t("close-icon", null)))), t("slot", { key: "32efc485b78942fd295304d5a3456e2e7a399aa4" })));
1094
1096
  }
1095
1097
  get host() {
1096
1098
  return T(this);
1097
1099
  }
1098
1100
  };
1099
- pn.style = gn;
1100
- const mn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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)}', un = mn;
1101
- var kn = function(e, n, a, l) {
1102
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1101
+ kn.style = un;
1102
+ const vn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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)}', Cn = vn;
1103
+ var _n = function(e, n, a, l) {
1104
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
1103
1105
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1104
1106
  o = Reflect.decorate(e, n, a, l);
1105
1107
  else
1106
1108
  for (var c = e.length - 1; c >= 0; c--)
1107
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
1108
- return r > 3 && o && Object.defineProperty(n, a, o), o;
1109
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
1110
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
1109
1111
  }, Q = function(e, n) {
1110
1112
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1111
1113
  return Reflect.metadata(e, n);
1112
1114
  };
1113
- const ze = class {
1115
+ const Se = class {
1114
1116
  constructor(e) {
1115
1117
  w(this, e), this.rejectBookingButtonClicked = f(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = f(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = f(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
1116
1118
  this.action = "confirm";
@@ -1144,11 +1146,11 @@ const ze = class {
1144
1146
  this.action = null;
1145
1147
  }
1146
1148
  render() {
1147
- var e, n, a, l, r, o, s, c, g, b, u, C;
1148
- return t(k, { key: "222871895768a9e8125bf2c7332200e65872b475", part: "nmcc" }, t("div", { key: "4838e6be84dab176c13230870f3d0094f1054da9", class: "event-card-wrapper", part: "nmccc__card" }, t("div", { key: "004ce2abb9cc4654dd4278e6c7002b34b7346968", class: "calendar-icon" }, t("calendar-check-icon", { key: "6202df706f78fcd592738a33b1e052e94f88d6ff" })), t("div", { key: "5a1f583617511c35a29fa65f026820996941b707", class: "booked-event-header" }, t("h2", { key: "62b88591f4432538d3c57fa6af4142f0cd2c997f", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), t("div", { key: "838b6df023be444c1b1ce1dfc7df21cab18756e1", class: "manage-booking-description" }, t("p", { key: "dc119292e92c4565fb84939284fb57f1fb2ec1f6" }, i.t("bookingPendingnDescription"))), t("div", { key: "31cadc6bfc0ae9f0adf93d159cff2261631e2281", class: {
1149
+ var e, n, a, l, s, o, r, c, g, b, u, C;
1150
+ return t(k, { key: "c0293860e7210fc4ad7104ec546103c611732e7d", part: "nmcc" }, t("div", { key: "84dc0e38d626f721642b3ea226713b8576e10b38", class: "event-card-wrapper", part: "nmccc__card" }, t("div", { key: "f8b5428387eadd000f6688911b95da68a74af37a", class: "calendar-icon" }, t("calendar-check-icon", { key: "170855c87ae4a1565c277602cb17b8090f9098d0" })), t("div", { key: "7d1f42bb78b9e7dd41c8e9d40c248ea378a29659", class: "booked-event-header" }, t("h2", { key: "eb7fac42441a95ff7b41e7ad383a2f03963eeefe", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), t("div", { key: "8174aa7ca94d7d81b523b702f3ea9fc4e3ccc5a0", class: "manage-booking-description" }, t("p", { key: "8396ed1cc89ad61f9c75d72a42923d43fdd4be93" }, i.t("bookingPendingnDescription"))), t("div", { key: "c363a47f335e8a00b63dd5235b0edf969fef7f5b", class: {
1149
1151
  footer: !0,
1150
1152
  "no-footer": !!((n = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && n.hide_cancellation_options) && !!((l = (a = this.configSettings) == null ? void 0 : a.scheduler) != null && l.hide_rescheduling_options),
1151
- "no-template-cols": !!((o = (r = this.configSettings) == null ? void 0 : r.scheduler) != null && o.hide_cancellation_options) || !!((c = (s = this.configSettings) == null ? void 0 : s.scheduler) != null && c.hide_rescheduling_options)
1153
+ "no-template-cols": !!((o = (s = this.configSettings) == null ? void 0 : s.scheduler) != null && o.hide_cancellation_options) || !!((c = (r = this.configSettings) == null ? void 0 : r.scheduler) != null && c.hide_rescheduling_options)
1152
1154
  } }, !((b = (g = this.configSettings) == null ? void 0 : g.scheduler) != null && b.hide_cancellation_options) && t("button-component", { variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${i.t("rejectBookingButton")}`), !((C = (u = this.configSettings) == null ? void 0 : u.scheduler) != null && C.hide_rescheduling_options) && t("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${i.t("confirmBookingButton")}`))));
1153
1155
  }
1154
1156
  get host() {
@@ -1160,7 +1162,7 @@ const ze = class {
1160
1162
  };
1161
1163
  }
1162
1164
  };
1163
- kn([
1165
+ _n([
1164
1166
  B({
1165
1167
  name: "nylas-organizer-confirmation-card",
1166
1168
  stateToProps: /* @__PURE__ */ new Map([
@@ -1178,8 +1180,8 @@ kn([
1178
1180
  const { host: a } = e.detail, l = await n.scheduler.updateBooking({
1179
1181
  bookingId: e.detail.bookingId,
1180
1182
  status: "confirmed"
1181
- }), { errorHandler: r } = e.detail;
1182
- r && (!l || "error" in l) && r(l), await a.resetAction();
1183
+ }), { errorHandler: s } = e.detail;
1184
+ s && (!l || "error" in l) && s(l), await a.resetAction();
1183
1185
  }
1184
1186
  },
1185
1187
  fireRegisterEvent: !0
@@ -1187,22 +1189,22 @@ kn([
1187
1189
  Q("design:type", Function),
1188
1190
  Q("design:paramtypes", []),
1189
1191
  Q("design:returntype", void 0)
1190
- ], ze.prototype, "render", null);
1191
- ze.style = un;
1192
- const vn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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;gap:4px;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}}', Cn = vn;
1193
- var _n = function(e, n, a, l) {
1194
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1192
+ ], Se.prototype, "render", null);
1193
+ Se.style = Cn;
1194
+ const wn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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;gap:4px;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}}', xn = wn;
1195
+ var Tn = function(e, n, a, l) {
1196
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
1195
1197
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1196
1198
  o = Reflect.decorate(e, n, a, l);
1197
1199
  else
1198
1200
  for (var c = e.length - 1; c >= 0; c--)
1199
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
1200
- return r > 3 && o && Object.defineProperty(n, a, o), o;
1201
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
1202
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
1201
1203
  }, V = function(e, n) {
1202
1204
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1203
1205
  return Reflect.metadata(e, n);
1204
1206
  };
1205
- const Le = class {
1207
+ const Re = class {
1206
1208
  constructor(e) {
1207
1209
  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.hour12 = void 0, this.startTime = "", this.endTime = "";
1208
1210
  }
@@ -1234,7 +1236,7 @@ const Le = class {
1234
1236
  }
1235
1237
  render() {
1236
1238
  var e;
1237
- return t(k, { key: "22b7e4f0f55d7a75188ebd3e8cc009497ad5a598", part: "nsec" }, t("div", { key: "0082bd129fe4704e4bf9bcc82ab401f7c50237fe", class: "event-card", part: "nsec__card" }, t("div", { key: "37093be5b192f8a8a533cb677b432df2cec80d14", class: "calendar-icon", part: "nsec__icon" }, t("calendar-icon", { key: "253a63fa567065c7a12f6fc8b82333568b52b777" })), t("div", { key: "a2d5218bd85c6f94652b0f24a11e68f53a8920d3", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? ke(ve((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone, S[this.selectedLanguage || "en"])) : "-"), t("div", { key: "2f11d6deedb50cb0d7b3e9791088266e06cdca1e", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), t("div", { key: "634bd96488b5b1a51064c9bf015b054648f43011", class: "event-timezone", part: "nsec__timezone" }, t("globe-icon", { key: "b327dfa7747116da0ab29ddebcb6d20c82a0a80b" }), F[this.selectedTimezone]));
1239
+ return t(k, { key: "22b7e4f0f55d7a75188ebd3e8cc009497ad5a598", part: "nsec" }, t("div", { key: "0082bd129fe4704e4bf9bcc82ab401f7c50237fe", class: "event-card", part: "nsec__card" }, t("div", { key: "37093be5b192f8a8a533cb677b432df2cec80d14", class: "calendar-icon", part: "nsec__icon" }, t("calendar-icon", { key: "253a63fa567065c7a12f6fc8b82333568b52b777" })), t("div", { key: "a2d5218bd85c6f94652b0f24a11e68f53a8920d3", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? _e(we((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone, S[this.selectedLanguage || "en"])) : "-"), t("div", { key: "2f11d6deedb50cb0d7b3e9791088266e06cdca1e", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), t("div", { key: "634bd96488b5b1a51064c9bf015b054648f43011", class: "event-timezone", part: "nsec__timezone" }, t("globe-icon", { key: "b327dfa7747116da0ab29ddebcb6d20c82a0a80b" }), P[this.selectedTimezone]));
1238
1240
  }
1239
1241
  get host() {
1240
1242
  return T(this);
@@ -1245,7 +1247,7 @@ const Le = class {
1245
1247
  };
1246
1248
  }
1247
1249
  };
1248
- _n([
1250
+ Tn([
1249
1251
  B({
1250
1252
  name: "nylas-selected-event-card",
1251
1253
  stateToProps: /* @__PURE__ */ new Map([
@@ -1262,22 +1264,22 @@ _n([
1262
1264
  V("design:type", Function),
1263
1265
  V("design:paramtypes", []),
1264
1266
  V("design:returntype", void 0)
1265
- ], Le.prototype, "render", null);
1266
- Le.style = Cn;
1267
- const wn = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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)}.time .time-label{display:flex;flex-direction:column;align-items:center;gap:4px}.time .time-label span.spots{font-size:14px;font-family:var(--nylas-font-family);font-weight:400;color:var(--nylas-base-600)}.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)}', xn = wn;
1268
- var Tn = function(e, n, a, l) {
1269
- var r = arguments.length, o = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1267
+ ], Re.prototype, "render", null);
1268
+ Re.style = xn;
1269
+ const En = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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)}.time .time-label{display:flex;flex-direction:column;align-items:center;gap:4px}.time .time-label span.spots{font-size:14px;font-family:var(--nylas-font-family);font-weight:400;color:var(--nylas-base-600)}.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)}', Bn = En;
1270
+ var Dn = function(e, n, a, l) {
1271
+ var s = arguments.length, o = s < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, r;
1270
1272
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1271
1273
  o = Reflect.decorate(e, n, a, l);
1272
1274
  else
1273
1275
  for (var c = e.length - 1; c >= 0; c--)
1274
- (s = e[c]) && (o = (r < 3 ? s(o) : r > 3 ? s(n, a, o) : s(n, a)) || o);
1275
- return r > 3 && o && Object.defineProperty(n, a, o), o;
1276
+ (r = e[c]) && (o = (s < 3 ? r(o) : s > 3 ? r(n, a, o) : r(n, a)) || o);
1277
+ return s > 3 && o && Object.defineProperty(n, a, o), o;
1276
1278
  }, ee = function(e, n) {
1277
1279
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1278
1280
  return Reflect.metadata(e, n);
1279
1281
  };
1280
- const Ie = class {
1282
+ const je = class {
1281
1283
  constructor(e) {
1282
1284
  w(this, e), this.timeslotSelected = f(this, "timeslotSelected", 7), this.timeslotConfirmed = f(this, "timeslotConfirmed", 7), this.validateTimeslotError = f(this, "validateTimeslotError", 7), this.handleConfirmedTimeslot = async (n, a) => {
1283
1285
  n.preventDefault(), d("[nylas-timeslot-picker] Confirm timeslot", a), a && this.timeslotConfirmed.emit({ timeslot: a, host: this.host });
@@ -1358,16 +1360,16 @@ const Ie = class {
1358
1360
  if (this.availability && this.availability.length === 0)
1359
1361
  return t(k, null, t("div", { class: "empty" }, t("span", null, "No dates available")));
1360
1362
  const n = this.times.filter((a) => {
1361
- const l = (a == null ? void 0 : a.event_id) || (a == null ? void 0 : a.master_id), r = typeof (a == null ? void 0 : a.capacity) == "number" && (a == null ? void 0 : a.capacity) > 0;
1362
- return !(l && !r);
1363
+ const l = (a == null ? void 0 : a.event_id) || (a == null ? void 0 : a.master_id), s = typeof (a == null ? void 0 : a.capacity) == "number" && (a == null ? void 0 : a.capacity) > 0;
1364
+ return !(l && !s);
1363
1365
  });
1364
1366
  return (!this.times || this.times.length === 0 || n.length === 0) && this.selectedDate ? t(k, null, t("div", { class: "empty" }, t("span", null, "No time slots available for selected date"))) : this.selectedDate ? t(k, { part: "ntp" }, t("div", { class: "time-picker-wrapper", part: "ntp__time-picker-wrapper" }, t("div", { class: "timeslots", part: "ntp__timeslots" }, n.map((a, l) => {
1365
- var s, c;
1366
- const r = typeof (a == null ? void 0 : a.capacity) == "number" && (a == null ? void 0 : a.capacity) > 0, o = this.selectedTimeslotIndex == this.getTimeslotId(a, l);
1367
- return t("button", { part: `ntp__timeslot ${((c = (s = this.selectedTimeslot) == null ? void 0 : s.start_time) == null ? void 0 : c.getTime()) === a.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, class: {
1367
+ var r, c;
1368
+ const s = typeof (a == null ? void 0 : a.capacity) == "number" && (a == null ? void 0 : a.capacity) > 0, o = this.selectedTimeslotIndex == this.getTimeslotId(a, l);
1369
+ return t("button", { part: `ntp__timeslot ${((c = (r = this.selectedTimeslot) == null ? void 0 : r.start_time) == null ? void 0 : c.getTime()) === a.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, class: {
1368
1370
  time: !0,
1369
1371
  selected: typeof this.selectedTimeslot < "u" && o
1370
- }, onClick: () => this.onClickSelectTime(a, l), onMouseEnter: () => this.handleMouseEnter(l), onMouseLeave: () => this.handleMouseLeave() }, t("div", { class: "time-label", part: "ntp__time-label" }, this.hoveredTimeslotIndex == l || o ? this.getTimeSlotLabel(a) : a.start_time.toLocaleTimeString(e, { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone, hour12: this.hour12 }), t("span", { class: "spots" }, r ? `${a == null ? void 0 : a.capacity} spots left` : null)));
1372
+ }, onClick: () => this.onClickSelectTime(a, l), onMouseEnter: () => this.handleMouseEnter(l), onMouseLeave: () => this.handleMouseLeave() }, t("div", { class: "time-label", part: "ntp__time-label" }, this.hoveredTimeslotIndex == l || o ? this.getTimeSlotLabel(a) : a.start_time.toLocaleTimeString(e, { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone, hour12: this.hour12 }), t("span", { class: "spots" }, s ? i.t("spotsLeft", { count: a == null ? void 0 : a.capacity }) : null)));
1371
1373
  })), this.selectedTimeslot && t("div", { class: "footer" }, t("button-component", { variant: "primary", onClick: (a) => this.handleConfirmedTimeslot(a, this.selectedTimeslot), part: "ntp__button-primary" }, t("slot", { name: "timeslot-picker-cta-label" }, i.t("nextButton")))))) : t(k, null);
1372
1374
  }
1373
1375
  get host() {
@@ -1382,7 +1384,7 @@ const Ie = class {
1382
1384
  };
1383
1385
  }
1384
1386
  };
1385
- Tn([
1387
+ Dn([
1386
1388
  B({
1387
1389
  name: "nylas-timeslot-picker",
1388
1390
  stateToProps: /* @__PURE__ */ new Map([
@@ -1400,14 +1402,14 @@ Tn([
1400
1402
  d("nylas-timeslot-picker", "timeslotSelected", e.detail), n.scheduler.selectTime(e.detail);
1401
1403
  },
1402
1404
  timeslotConfirmed: async (e, n) => {
1403
- var r;
1405
+ var s;
1404
1406
  d("nylas-timeslot-picker", "timeslotConfirmed", e.detail);
1405
1407
  const { timeslot: a, host: l } = e.detail;
1406
1408
  if (a && (a != null && a.event_id) && (a != null && a.capacity)) {
1407
1409
  const o = await n.scheduler.validateGroupEventTimeslot(a);
1408
1410
  if (o && "error" in o) {
1409
- const s = ((r = o.error) == null ? void 0 : r.message) || "An error occurred while validating the timeslot";
1410
- s === "Event is full" ? l.emitValidateTimeslotError(s, "info") : l.emitValidateTimeslotError(s, "error");
1411
+ const r = ((s = o.error) == null ? void 0 : s.message) || "An error occurred while validating the timeslot";
1412
+ r === "Event is full" ? l.emitValidateTimeslotError(r, "info") : l.emitValidateTimeslotError(r, "error");
1411
1413
  }
1412
1414
  } else
1413
1415
  n.scheduler.toggleAdditionalData(!0);
@@ -1421,19 +1423,19 @@ Tn([
1421
1423
  ee("design:type", Function),
1422
1424
  ee("design:paramtypes", []),
1423
1425
  ee("design:returntype", void 0)
1424
- ], Ie.prototype, "render", null);
1425
- Ie.style = xn;
1426
+ ], je.prototype, "render", null);
1427
+ je.style = Bn;
1426
1428
  export {
1427
- Ce as nylas_booked_event_card,
1428
- _e as nylas_booking_form,
1429
- we as nylas_cancel_booking_form,
1430
- xe as nylas_cancelled_event_card,
1431
- Te as nylas_confirmed_event_card,
1432
- Be as nylas_date_picker,
1433
- De as nylas_locale_switch,
1434
- bn as nylas_logo,
1435
- pn as nylas_notification,
1436
- ze as nylas_organizer_confirmation_card,
1437
- Le as nylas_selected_event_card,
1438
- Ie as nylas_timeslot_picker
1429
+ xe as nylas_booked_event_card,
1430
+ Te as nylas_booking_form,
1431
+ Ee as nylas_cancel_booking_form,
1432
+ Be as nylas_cancelled_event_card,
1433
+ De as nylas_confirmed_event_card,
1434
+ Le as nylas_date_picker,
1435
+ Ie as nylas_locale_switch,
1436
+ pn as nylas_logo,
1437
+ kn as nylas_notification,
1438
+ Se as nylas_organizer_confirmation_card,
1439
+ Re as nylas_selected_event_card,
1440
+ je as nylas_timeslot_picker
1439
1441
  };