@nylas/react 1.4.0 → 1.4.2

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 (141) hide show
  1. package/dist/{add-circle-icon_2.entry-dbad9a3b.js → add-circle-icon_2.entry-6b57fd96.js} +1 -1
  2. package/dist/{add-circle-icon_2.entry-6e8e4e1e.cjs → add-circle-icon_2.entry-db0c5d68.cjs} +1 -1
  3. package/dist/{archive-icon.entry-21f532af.cjs → archive-icon.entry-bf00cb75.cjs} +1 -1
  4. package/dist/{archive-icon.entry-802f7877.js → archive-icon.entry-cf731ded.js} +1 -1
  5. package/dist/{arrow-icon.entry-e3dec626.js → arrow-icon.entry-2471d146.js} +1 -1
  6. package/dist/{arrow-icon.entry-e9af732a.cjs → arrow-icon.entry-5031b5ac.cjs} +1 -1
  7. package/dist/{bold-icon.entry-1a2be28a.cjs → bold-icon.entry-9cec8c45.cjs} +1 -1
  8. package/dist/{bold-icon.entry-0492ff02.js → bold-icon.entry-da045de2.js} +1 -1
  9. package/dist/{button-component_2.entry-fea9bd3d.js → button-component_2.entry-ad0e9642.js} +8 -8
  10. package/dist/{button-component_2.entry-f0c7f894.cjs → button-component_2.entry-adbcccdf.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_36.entry-c85d6a79.js → calendar-agenda-fill-icon_36.entry-05898830.js} +509 -462
  12. package/dist/calendar-agenda-fill-icon_36.entry-aeb96033.cjs +6 -0
  13. package/dist/{calendar-cancel-icon.entry-237b8c9e.cjs → calendar-cancel-icon.entry-7b62f915.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-e7dd5b8f.js → calendar-cancel-icon.entry-85ebd74c.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-a868e0bc.cjs → calendar-check-icon_2.entry-2e1586eb.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-c7f47fc8.js → calendar-check-icon_2.entry-72ab0311.js} +1 -1
  17. package/dist/{calendar-icon.entry-324de624.js → calendar-icon.entry-230a1263.js} +1 -1
  18. package/dist/{calendar-icon.entry-071eb30d.cjs → calendar-icon.entry-b8c87d5f.cjs} +1 -1
  19. package/dist/{checkbox-component.entry-0f9970cc.js → checkbox-component.entry-51287f4f.js} +1 -1
  20. package/dist/{checkbox-component.entry-5bcf4b08.cjs → checkbox-component.entry-b6f0741a.cjs} +1 -1
  21. package/dist/{checkmark-icon_15.entry-98377585.js → checkmark-icon_15.entry-554964a3.js} +7 -7
  22. package/dist/{checkmark-icon_15.entry-7776e533.cjs → checkmark-icon_15.entry-a61f7d0b.cjs} +2 -2
  23. package/dist/{chevron-icon_3.entry-526b4b85.cjs → chevron-icon_3.entry-3913b854.cjs} +1 -1
  24. package/dist/{chevron-icon_3.entry-ec66260c.js → chevron-icon_3.entry-4595b992.js} +5 -5
  25. package/dist/{clock-icon_4.entry-66d15f7c.cjs → clock-icon_4.entry-282b96df.cjs} +1 -1
  26. package/dist/{clock-icon_4.entry-4fa47996.js → clock-icon_4.entry-e081381a.js} +1 -1
  27. package/dist/{constants-f5ba52b9-40ab2ded.js → constants-3d8016e3-3c080f00.js} +17 -28
  28. package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
  29. package/dist/{customParseFormat-39eacb44-45ade322.cjs → customParseFormat-a4d9ea69-573fe3af.cjs} +1 -1
  30. package/dist/{customParseFormat-39eacb44-eeffe2bb.js → customParseFormat-a4d9ea69-aeaa945c.js} +1 -1
  31. package/dist/{delete-icon.entry-540aa2bb.cjs → delete-icon.entry-6c9be3e2.cjs} +1 -1
  32. package/dist/{delete-icon.entry-95d01eb8.js → delete-icon.entry-e5182b5a.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-c467f082.cjs → document-refresh-icon.entry-018ce16d.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-b82d5da8.js → document-refresh-icon.entry-0b2c1eb1.js} +1 -1
  35. package/dist/{feedbackSync-47d13bb0-9f249f33.cjs → feedbackSync-aa8d23d1-2c779b00.cjs} +1 -1
  36. package/dist/{feedbackSync-47d13bb0-5608d680.js → feedbackSync-aa8d23d1-785b41fd.js} +1 -1
  37. package/dist/{folder-icon.entry-cb0dc63d.js → folder-icon.entry-eb9c7f65.js} +1 -1
  38. package/dist/{folder-icon.entry-4d48c2ee.cjs → folder-icon.entry-fdce88ea.cjs} +1 -1
  39. package/dist/{forward-icon.entry-5aa01f53.js → forward-icon.entry-0b9c7166.js} +1 -1
  40. package/dist/{forward-icon.entry-d04aaf6d.cjs → forward-icon.entry-1ea23df4.cjs} +1 -1
  41. package/dist/{globe-icon_2.entry-87e29cdf.cjs → globe-icon_2.entry-385877d0.cjs} +1 -1
  42. package/dist/{globe-icon_2.entry-c7ae78cc.js → globe-icon_2.entry-3cf1b102.js} +3 -3
  43. package/dist/google-logo-icon_6.entry-9d97b8db.cjs +2 -0
  44. package/dist/{google-logo-icon_6.entry-80a6bfa3.js → google-logo-icon_6.entry-f5adddf0.js} +314 -287
  45. package/dist/{google-meet-icon_5.entry-4e71c83b.js → google-meet-icon_5.entry-20574ba9.js} +1 -1
  46. package/dist/{google-meet-icon_5.entry-26d667b6.cjs → google-meet-icon_5.entry-e5c673bf.cjs} +1 -1
  47. package/dist/{inbox-icon.entry-60a82bfc.cjs → inbox-icon.entry-29169ba7.cjs} +1 -1
  48. package/dist/{inbox-icon.entry-77e4e17b.js → inbox-icon.entry-3ed18276.js} +1 -1
  49. package/dist/index-58c1674c.cjs +57 -0
  50. package/dist/{index-04630615.js → index-b04bb93f.js} +114 -87
  51. package/dist/{index.es-1fdb1e36-fbdb04fa.js → index.es-6d4b50d5-724fa642.js} +1 -1
  52. package/dist/{index.es-1fdb1e36-830a422f.cjs → index.es-6d4b50d5-7383c4f8.cjs} +1 -1
  53. package/dist/{info-icon_2.entry-34800b66.cjs → info-icon_2.entry-4fa9aa36.cjs} +1 -1
  54. package/dist/{info-icon_2.entry-3c483f61.js → info-icon_2.entry-f709a5bf.js} +1 -1
  55. package/dist/{input-component.entry-ea4016fe.js → input-component.entry-1b91f7cf.js} +1 -1
  56. package/dist/{input-component.entry-f7ccf3d6.cjs → input-component.entry-82dc06b1.cjs} +1 -1
  57. package/dist/{input-dropdown_2.entry-d4024d2f.cjs → input-dropdown_2.entry-0601fe2f.cjs} +1 -1
  58. package/dist/{input-dropdown_2.entry-c7730cf8.js → input-dropdown_2.entry-600dfd62.js} +4 -4
  59. package/dist/{italic-icon.entry-6e0805ab.js → italic-icon.entry-7bb5d844.js} +1 -1
  60. package/dist/{italic-icon.entry-8127c2ee.cjs → italic-icon.entry-cfeb3329.cjs} +1 -1
  61. package/dist/{multi-select-dropdown_2.entry-d749999d.js → multi-select-dropdown_2.entry-2e2caeeb.js} +2 -2
  62. package/dist/{multi-select-dropdown_2.entry-49d6f0e7.cjs → multi-select-dropdown_2.entry-ded44143.cjs} +1 -1
  63. package/dist/{notebook-store-b61693cd-7a5576e7.js → notebook-store-b61693cd-a6630a19.js} +1 -1
  64. package/dist/{notebook-store-b61693cd-84de36d2.cjs → notebook-store-b61693cd-fe56f6e3.cjs} +1 -1
  65. package/dist/{nylas-booked-event-card_12.entry-3fcfd6f9.js → nylas-booked-event-card_12.entry-46bf945a.js} +347 -343
  66. package/dist/nylas-booked-event-card_12.entry-c0d66ddf.cjs +1 -0
  67. package/dist/{nylas-call-summary.entry-38aed89a.js → nylas-call-summary.entry-02a9b542.js} +1 -1
  68. package/dist/{nylas-call-summary.entry-e9adcb93.cjs → nylas-call-summary.entry-92089a11.cjs} +1 -1
  69. package/dist/{nylas-event-calendar_3.entry-48f656e5.cjs → nylas-event-calendar_3.entry-c7421045.cjs} +2 -2
  70. package/dist/{nylas-event-calendar_3.entry-62d1f1f5.js → nylas-event-calendar_3.entry-c77a26ca.js} +35 -23
  71. package/dist/{nylas-form-card.entry-b900b46e.cjs → nylas-form-card.entry-48b2d9d4.cjs} +1 -1
  72. package/dist/{nylas-form-card.entry-3828ccb1.js → nylas-form-card.entry-ddaea368.js} +2 -2
  73. package/dist/{nylas-if-state.entry-92af0a51.cjs → nylas-if-state.entry-b7c26f4c.cjs} +1 -1
  74. package/dist/{nylas-if-state.entry-2810dcf5.js → nylas-if-state.entry-bd3cba4e.js} +2 -2
  75. package/dist/{nylas-key-points.entry-977a6fae.js → nylas-key-points.entry-d9a22328.js} +3 -3
  76. package/dist/{nylas-key-points.entry-de658637.cjs → nylas-key-points.entry-da89162b.cjs} +1 -1
  77. package/dist/{nylas-login.entry-4a6c11e6.cjs → nylas-login.entry-a4ee2c70.cjs} +1 -1
  78. package/dist/{nylas-login.entry-8101d3d0.js → nylas-login.entry-cb830f5d.js} +2 -2
  79. package/dist/{nylas-provider.entry-c054d68a.js → nylas-provider.entry-7b416341.js} +5 -5
  80. package/dist/{nylas-provider.entry-b7ac25f5.cjs → nylas-provider.entry-8f71dc58.cjs} +1 -1
  81. package/dist/{nylas-scheduler-editor.entry-e35fad5c.js → nylas-scheduler-editor.entry-04e8f10b.js} +20 -20
  82. package/dist/nylas-scheduler-editor.entry-77f49e22.cjs +2 -0
  83. package/dist/nylas-scheduling.entry-df177e08.cjs +1 -0
  84. package/dist/{nylas-scheduling.entry-360b978c.js → nylas-scheduling.entry-f187da9e.js} +33 -33
  85. package/dist/{nylas-transcript.entry-81e2c821.js → nylas-transcript.entry-130d62d2.js} +24 -24
  86. package/dist/{nylas-transcript.entry-4d973027.cjs → nylas-transcript.entry-f35ee1ec.cjs} +3 -3
  87. package/dist/nylas-video-player.entry-3e1d8faa.js +39 -0
  88. package/dist/nylas-video-player.entry-7ba2cd73.cjs +1 -0
  89. package/dist/{nylas-video-preview.entry-12e05e4d.cjs → nylas-video-preview.entry-84b7d31d.cjs} +1 -1
  90. package/dist/{nylas-video-preview.entry-320421b6.js → nylas-video-preview.entry-85751140.js} +1 -1
  91. package/dist/{person-icon.entry-967ad730.cjs → person-icon.entry-28c58d83.cjs} +1 -1
  92. package/dist/{person-icon.entry-8533209c.js → person-icon.entry-29a5030a.js} +1 -1
  93. package/dist/{play-icon.entry-7b1fd79d.cjs → play-icon.entry-4f53806b.cjs} +1 -1
  94. package/dist/{play-icon.entry-15ee8568.js → play-icon.entry-78eb1cc5.js} +1 -1
  95. package/dist/{radio-button-group.entry-53dcf16c.js → radio-button-group.entry-1739abfc.js} +1 -1
  96. package/dist/{radio-button-group.entry-24cb342f.cjs → radio-button-group.entry-1d2a0c94.cjs} +1 -1
  97. package/dist/react.cjs +1 -1
  98. package/dist/react.js +1 -1
  99. package/dist/{refresh-icon.entry-f3320971.js → refresh-icon.entry-8703a22f.js} +1 -1
  100. package/dist/{refresh-icon.entry-0486ae54.cjs → refresh-icon.entry-e5f2b07f.cjs} +1 -1
  101. package/dist/{register-component-504a1cbb-89124fd8.cjs → register-component-238f28de-4166d4fd.cjs} +1 -1
  102. package/dist/{register-component-504a1cbb-5f986d7f.js → register-component-238f28de-daee0751.js} +1 -1
  103. package/dist/{reply-all-icon.entry-2cea1a40.cjs → reply-all-icon.entry-77711564.cjs} +1 -1
  104. package/dist/{reply-all-icon.entry-006fd1fb.js → reply-all-icon.entry-c1da34a1.js} +1 -1
  105. package/dist/{reply-icon.entry-d27166a1.js → reply-icon.entry-1fe825af.js} +1 -1
  106. package/dist/{reply-icon.entry-bd252aed.cjs → reply-icon.entry-267c524a.cjs} +1 -1
  107. package/dist/{scheduler-config-store-d6729d8d-4a2defea.cjs → scheduler-config-store-d6729d8d-39f2a8c8.cjs} +1 -1
  108. package/dist/{scheduler-config-store-d6729d8d-63e34849.js → scheduler-config-store-d6729d8d-634e14c6.js} +1 -1
  109. package/dist/{scheduler-store-baf100ed-81b183dc.js → scheduler-store-82bb212a-64d99231.js} +60 -60
  110. package/dist/scheduler-store-82bb212a-dd809b50.cjs +1 -0
  111. package/dist/{sent-icon.entry-ee434395.cjs → sent-icon.entry-82b5056c.cjs} +1 -1
  112. package/dist/{sent-icon.entry-bf101068.js → sent-icon.entry-86f841dd.js} +1 -1
  113. package/dist/{spam-icon.entry-11016b63.cjs → spam-icon.entry-ce6d3260.cjs} +1 -1
  114. package/dist/{spam-icon.entry-5193f9c6.js → spam-icon.entry-d8a9b8c3.js} +1 -1
  115. package/dist/{star-icon.entry-0e269252.cjs → star-icon.entry-13fec0d7.cjs} +1 -1
  116. package/dist/{star-icon.entry-9c7449f3.js → star-icon.entry-c9272ed6.js} +1 -1
  117. package/dist/{stop-icon.entry-86412c9f.cjs → stop-icon.entry-95c34b68.cjs} +1 -1
  118. package/dist/{stop-icon.entry-2ac11166.js → stop-icon.entry-ae569b6b.js} +1 -1
  119. package/dist/{textarea-component.entry-27717409.cjs → textarea-component.entry-75f2e50a.cjs} +1 -1
  120. package/dist/{textarea-component.entry-9df3fa96.js → textarea-component.entry-9d484b96.js} +1 -1
  121. package/dist/{toggle-switch.entry-a5ddfad9.js → toggle-switch.entry-3a2069a0.js} +1 -1
  122. package/dist/{toggle-switch.entry-9623e2b2.cjs → toggle-switch.entry-b832b7bf.cjs} +1 -1
  123. package/dist/{translate-icon.entry-e0617680.cjs → translate-icon.entry-a2f84ac4.cjs} +1 -1
  124. package/dist/{translate-icon.entry-f22293e6.js → translate-icon.entry-b9347ebf.js} +1 -1
  125. package/dist/{trash-fill-icon.entry-2616c5df.js → trash-fill-icon.entry-25a48052.js} +1 -1
  126. package/dist/{trash-fill-icon.entry-0275f657.cjs → trash-fill-icon.entry-ae7a4d13.cjs} +1 -1
  127. package/dist/{underline-icon.entry-d54b06ab.cjs → underline-icon.entry-2e75ba4c.cjs} +1 -1
  128. package/dist/{underline-icon.entry-1110dcb1.js → underline-icon.entry-53025db9.js} +1 -1
  129. package/dist/{warning-icon.entry-9a6e7913.js → warning-icon.entry-5c49aabe.js} +1 -1
  130. package/dist/{warning-icon.entry-6d390ab7.cjs → warning-icon.entry-a87938c6.cjs} +1 -1
  131. package/package.json +4 -4
  132. package/dist/calendar-agenda-fill-icon_36.entry-70681da2.cjs +0 -6
  133. package/dist/constants-f5ba52b9-a0866d2f.cjs +0 -1
  134. package/dist/google-logo-icon_6.entry-a8b6efc0.cjs +0 -2
  135. package/dist/index-3d1f13d6.cjs +0 -57
  136. package/dist/nylas-booked-event-card_12.entry-29337b10.cjs +0 -1
  137. package/dist/nylas-scheduler-editor.entry-1538950d.cjs +0 -2
  138. package/dist/nylas-scheduling.entry-92351cd2.cjs +0 -1
  139. package/dist/nylas-video-player.entry-60268c07.js +0 -39
  140. package/dist/nylas-video-player.entry-f3c2b073.cjs +0 -1
  141. package/dist/scheduler-store-baf100ed-5c5d3aa5.cjs +0 -1
@@ -1,40 +1,44 @@
1
- import { r as w, c as f, d, h as o, i, m as ue, w as ke, H as k, g as T, x as ge, y as ze, l as pe, z as Se, A as Re, C as P, D as $, E as je, G as Fe, I as H, J as Pe, F as Oe } from "./index-04630615.js";
2
- import { R as B } from "./register-component-504a1cbb-5f986d7f.js";
3
- import { d as S, T as F, a as me } from "./constants-f5ba52b9-40ab2ded.js";
1
+ import { r as w, c as f, d, h as o, i, m as ue, w as ke, H as k, g as T, x as ge, y as ze, l as pe, z as P, A as Se, C as Re, D as O, E as M, G as je, I as Fe, J as Pe, F as Oe } from "./index-b04bb93f.js";
2
+ import { R as B } from "./register-component-238f28de-daee0751.js";
3
+ import { c as S, T as F, a as me } from "./constants-3d8016e3-3c080f00.js";
4
4
  import "react";
5
5
  import "react/jsx-runtime";
6
6
  import "react-dom";
7
7
  const $e = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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%}', Me = $e;
8
- var Ne = function(e, a, n, l) {
9
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
8
+ var Ne = function(e, n, a, l) {
9
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
10
10
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
11
- t = Reflect.decorate(e, a, n, l);
11
+ t = Reflect.decorate(e, n, a, l);
12
12
  else
13
13
  for (var c = e.length - 1; c >= 0; c--)
14
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
15
- return r > 3 && t && Object.defineProperty(a, n, t), t;
16
- }, A = function(e, a) {
14
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
15
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
16
+ }, A = function(e, n) {
17
17
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
18
- return Reflect.metadata(e, a);
18
+ return Reflect.metadata(e, n);
19
19
  };
20
20
  const ve = 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
23
  var r, t;
24
- const a = new Date(this.selectedTimeslot.start_time), n = (t = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : t.min_cancellation_notice;
25
- a.getTime() - n * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime() ? this.cancelBookedEventValidationError.emit({
24
+ const n = new Date(this.selectedTimeslot.start_time), a = (t = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : t.min_cancellation_notice;
25
+ if (!a) {
26
+ this.cancelBookingButtonClicked.emit({ bookingId: this.eventInfo.booking_id });
27
+ return;
28
+ }
29
+ n.getTime() - a * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime() ? this.cancelBookedEventValidationError.emit({
26
30
  error: {
27
31
  title: "Cancellation Error",
28
- message: `You cannot cancel the booking within ${n} minutes of the event.`
32
+ message: `You cannot cancel the booking within ${a} minutes of the event.`
29
33
  }
30
34
  }) : this.cancelBookingButtonClicked.emit({ bookingId: this.eventInfo.booking_id });
31
35
  }, this.handleRescheduleButtonClicked = () => {
32
- const a = (n) => {
33
- this.rescheduleBookedEventError.emit(n);
36
+ const n = (a) => {
37
+ this.rescheduleBookedEventError.emit(a);
34
38
  };
35
- this.rescheduleButtonClicked.emit({ bookingId: this.eventInfo.booking_id, errorHandler: a });
36
- }, this.getPaticipantType = (a) => {
37
- switch (a) {
39
+ this.rescheduleButtonClicked.emit({ bookingId: this.eventInfo.booking_id, errorHandler: n });
40
+ }, this.getPaticipantType = (n) => {
41
+ switch (n) {
38
42
  case "host":
39
43
  return "Host";
40
44
  case "you":
@@ -55,28 +59,28 @@ const ve = class {
55
59
  d("[nylas-booked-event-card] Component will load");
56
60
  }
57
61
  async componentDidLoad() {
58
- var n, l;
62
+ var a, l;
59
63
  d("[nylas-booked-event-card] Component did load"), this.eventInfo || console.warn('[nylas-booked-event-card] "eventInfo" prop missing. Please provide the event info to display the event details in the booked event card component.'), this.bookingInfo || console.warn('[nylas-booked-event-card] "bookingInfo" prop missing. Please provide the booking info to display the guest details in the booked event card component.'), this.applyThemeConfig(this.themeConfig);
60
- const e = S[this.selectedLanguage || "en"], a = new Intl.DateTimeFormat(e, {
64
+ const e = S[this.selectedLanguage || "en"], n = new Intl.DateTimeFormat(e, {
61
65
  hour: "2-digit",
62
66
  minute: "2-digit",
63
67
  timeZone: this.selectedTimezone,
64
68
  hour12: this.hour12
65
69
  });
66
- this.startTime = a.format((n = this.selectedTimeslot) == null ? void 0 : n.start_time), this.endTime = a.format((l = this.selectedTimeslot) == null ? void 0 : l.end_time);
70
+ this.startTime = n.format((a = this.selectedTimeslot) == null ? void 0 : a.start_time), this.endTime = n.format((l = this.selectedTimeslot) == null ? void 0 : l.end_time);
67
71
  }
68
72
  applyThemeConfig(e) {
69
73
  if (e)
70
- for (const [a, n] of Object.entries(e))
71
- this.host.style.setProperty(`${a}`, n);
74
+ for (const [n, a] of Object.entries(e))
75
+ this.host.style.setProperty(`${n}`, a);
72
76
  }
73
77
  render() {
74
- var n, l, r, t, s, c, b, h, u, C, D, L, p, m, E, R;
75
- const e = (n = this.configSettings) == null ? void 0 : n.booking_type, a = e && e !== "booking";
76
- return o(k, { key: "7db019b852ab70270adb7dc9e958e6e7381a26b3", part: "nbec" }, o("div", { key: "f309b22194e70799fd0333c899e3ef6dc2cadda2", class: "nylas-booked-event-card" }, o("div", { key: "fda9f6f52eb02449553e3a77f02a9bd9ccc1ffb1", class: "booked-event-timezone" }, o("globe-icon", { key: "86e8540c01d68d6b661f1146bbe24849023ce1bd" }), F[this.selectedTimezone]), o("div", { key: "1038dc03151ab6a2b961d5f4ded96ba7445d1a54", class: "event-card-wrapper", part: "nbec__card" }, o("div", { key: "62143a2984318fb91ac9e8211901dddc99481ca2", class: "calendar-icon" }, o("calendar-check-icon", { key: "8c2b99dcc14a65e556648d11fd36fbabda5c6e60" })), o("div", { key: "ceea5100d690b09d4819486a305d639f483522f6", class: "booked-event-header" }, o("h2", { key: "af360b0c2fd115edd22e6fd4977819c77c83aa64", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${i.t("bookingRescheduled")}` : a && !this.isLoading ? `${i.t("bookingSent")}` : `${i.t("bookingConfirmed")}`, "!"), o("div", { key: "afad927b2a1e56191d73705c93c6b285305810f8", class: "card-description", part: "nbec__description" }, a ? i.t("bookingSentDescription") : o("span", null, i.t("bookingConfirmedDescription")))), o("div", { key: "3a2fcc44ec16291970f5a043fea3c4e0e76cd961", class: "booking-date-time" }, o("checkmark-circle-icon", { key: "9e09cc4a564378d2a57eb26a20d051ff5783959f" }), o("h3", { key: "43751ff57685368a9ff566e042c8ac874a2b972d" }, i.t("bookingDateAndTimeHeader")), o("p", { key: "aa873b56137af390655ff8c2eed3baaab44b287a" }, (l = this.selectedTimeslot) != null && l.start_time ? ue(ke((r = this.selectedTimeslot) == null ? void 0 : r.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", o("br", { key: "b11b0651c07fa3a160511489e623054a0fc6b95a" }), this.startTime, " - ", this.endTime)), o("div", { key: "b1945df2b3816cf9e012903910f913fab002f911", class: "booking-participants" }), !a && o("div", { class: "button-container" }, o("div", { class: {
78
+ var a, l, r, t, s, c, b, h, u, C, D, L, p, m, E, R;
79
+ const e = (a = this.configSettings) == null ? void 0 : a.booking_type, n = e && e !== "booking";
80
+ return o(k, { key: "746e23e82adf30da44ac6a160400705251a5cf98", part: "nbec" }, o("div", { key: "aa3e79d294ff41b4a43775763f9e5f1922f955c7", class: "nylas-booked-event-card" }, o("div", { key: "cbb343663633b5ba80875f42af0bb0d091ee1ac8", class: "booked-event-timezone" }, o("globe-icon", { key: "8c94142bd486144efaa251770c87f4ec15481b41" }), F[this.selectedTimezone]), o("div", { key: "e06ef2c5b7a1977ff1953027d6109cb8a1acf493", class: "event-card-wrapper", part: "nbec__card" }, o("div", { key: "5a99626d44f6ef819af2606bf24208e1833e3a54", class: "calendar-icon" }, o("calendar-check-icon", { key: "06c5ec0241535ee0ea82c743653f93442bc9a5fa" })), o("div", { key: "b38fa39209c64394902a0e7607248d0d0c73adf2", class: "booked-event-header" }, o("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")}`, "!"), o("div", { key: "c7bfce355ce08d858862bc7672f20e8a2bb3dce9", class: "card-description", part: "nbec__description" }, n ? i.t("bookingSentDescription") : o("span", null, i.t("bookingConfirmedDescription")))), o("div", { key: "2074c51dfdfd0753fcd3d598b7633520bf70ab63", class: "booking-date-time" }, o("checkmark-circle-icon", { key: "dbfe39fadeeb08186a5214cfb9ca5d3c8da55cb1" }), o("h3", { key: "edb9ed53cb25e9e06ec7b27f8141fa6f422c1511" }, i.t("bookingDateAndTimeHeader")), o("p", { key: "24d8d606ab3e217256152e249ee435d070df0c5b" }, (l = this.selectedTimeslot) != null && l.start_time ? ue(ke((r = this.selectedTimeslot) == null ? void 0 : r.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", o("br", { key: "5949a97ff7e7b256e410f591b810332a72e0696c" }), this.startTime, " - ", this.endTime)), o("div", { key: "3450618726c762232151511fd28570834cf07cc4", class: "booking-participants" }), !n && o("div", { class: "button-container" }, o("div", { class: {
77
81
  footer: !0,
78
82
  "no-footer": ((s = (t = this.configSettings) == null ? void 0 : t.scheduler) == null ? void 0 : s.hide_cancellation_options) && ((b = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : b.hide_rescheduling_options) || ((h = this.configSettings) == null ? void 0 : h.booking_type) === "organizer-confirmation",
79
- "no-template-cols": ((C = (u = this.configSettings) == null ? void 0 : u.scheduler) == null ? void 0 : C.hide_cancellation_options) || ((L = (D = this.configSettings) == null ? void 0 : D.scheduler) == null ? void 0 : L.hide_rescheduling_options)
83
+ "no-template-cols": !!((C = (u = this.configSettings) == null ? void 0 : u.scheduler) != null && C.hide_cancellation_options) || !!((L = (D = this.configSettings) == null ? void 0 : D.scheduler) != null && L.hide_rescheduling_options)
80
84
  } }, !((m = (p = this.configSettings) == null ? void 0 : p.scheduler) != null && m.hide_cancellation_options) && o("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) && o("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${i.t("rescheduleBookingButton")}`))))));
81
85
  }
82
86
  get host() {
@@ -103,17 +107,17 @@ Ne([
103
107
  ["scheduler.hour12", "hour12"]
104
108
  ]),
105
109
  eventToProps: {
106
- cancelBookingButtonClicked: async (e, a) => {
107
- a.scheduler.setCancel(e.detail.bookingId);
110
+ cancelBookingButtonClicked: async (e, n) => {
111
+ n.scheduler.setCancel(e.detail.bookingId);
108
112
  },
109
- rescheduleButtonClicked: async (e, a) => {
110
- const n = await a.scheduler.setReschedule(e.detail.bookingId), { errorHandler: l } = e.detail;
111
- l && (!n || "error" in n) && l(n);
113
+ rescheduleButtonClicked: async (e, n) => {
114
+ const a = await n.scheduler.setReschedule(e.detail.bookingId), { errorHandler: l } = e.detail;
115
+ l && (!a || "error" in a) && l(a);
112
116
  },
113
- rescheduleBookedEventError: async (e, a) => {
117
+ rescheduleBookedEventError: async (e, n) => {
114
118
  d("nylas-booked-event-card", "rescheduleBookedEventError", e.detail);
115
119
  },
116
- cancelBookedEventValidationError: async (e, a) => {
120
+ cancelBookedEventValidationError: async (e, n) => {
117
121
  d("nylas-booked-event-card", "cancelBookedEventValidationError", e.detail);
118
122
  }
119
123
  },
@@ -125,45 +129,45 @@ Ne([
125
129
  ], ve.prototype, "render", null);
126
130
  ve.style = Me;
127
131
  const He = ':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)}', Ae = He;
128
- var qe = function(e, a, n, l) {
129
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
132
+ var qe = function(e, n, a, l) {
133
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
130
134
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
131
- t = Reflect.decorate(e, a, n, l);
135
+ t = Reflect.decorate(e, n, a, l);
132
136
  else
133
137
  for (var c = e.length - 1; c >= 0; c--)
134
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
135
- return r > 3 && t && Object.defineProperty(a, n, t), t;
136
- }, q = function(e, a) {
138
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
139
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
140
+ }, q = function(e, n) {
137
141
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
138
- return Reflect.metadata(e, a);
142
+ return Reflect.metadata(e, n);
139
143
  };
140
- const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Ce = class {
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])?)*$/, Ce = class {
141
145
  constructor(e) {
142
- 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 = (a, n) => {
143
- this.resetGuestEmailError(a);
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
+ this.resetGuestEmailError(n);
144
148
  const l = [...this.guestEmails];
145
- l[a] = ge(n), this.guestEmails = [...l];
146
- }, this.handleGuestBlur = (a, n) => {
147
- if (this.resetGuestEmailError(a), n === "") {
148
- this.guestEmailErrors[a] = i.t("fieldRequired", { field: i.t("email") });
149
+ l[n] = ge(a), this.guestEmails = [...l];
150
+ }, this.handleGuestBlur = (n, a) => {
151
+ if (this.resetGuestEmailError(n), a === "") {
152
+ this.guestEmailErrors[n] = i.t("fieldRequired", { field: i.t("email") });
149
153
  return;
150
154
  }
151
- if (!O.test(n)) {
152
- this.guestEmailErrors[a] = i.t("invalidInputFormat", { field: i.t("email") });
155
+ if (!$.test(a)) {
156
+ this.guestEmailErrors[n] = i.t("invalidInputFormat", { field: i.t("email") });
153
157
  return;
154
158
  }
155
- this.handleGuestChange(a, n);
156
- }, this.addGuestButtonClickedHandler = (a) => {
157
- a.preventDefault(), this.guestEmails = [...this.guestEmails, ""];
158
- }, this.removeGuestButtonClickHandler = (a, n) => {
159
- a.preventDefault(), this.resetGuestEmailError(n);
159
+ this.handleGuestChange(n, a);
160
+ }, this.addGuestButtonClickedHandler = (n) => {
161
+ n.preventDefault(), this.guestEmails = [...this.guestEmails, ""];
162
+ }, this.removeGuestButtonClickHandler = (n, a) => {
163
+ n.preventDefault(), this.resetGuestEmailError(a);
160
164
  const l = [...this.guestEmails];
161
- l.splice(n, 1), this.guestEmails = [...l];
162
- }, this.handleBackButtonClicked = (a) => {
163
- a.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
164
- }, this.bookButtonClickedHandler = async (a) => {
165
+ l.splice(a, 1), this.guestEmails = [...l];
166
+ }, this.handleBackButtonClicked = (n) => {
167
+ n.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
168
+ }, this.bookButtonClickedHandler = async (n) => {
165
169
  var h, u, C, D, L;
166
- if (a.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
170
+ if (n.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
167
171
  return;
168
172
  d("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
169
173
  const l = this.name, r = this.email;
@@ -181,7 +185,7 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
181
185
  });
182
186
  return;
183
187
  }
184
- if (!O.test(r)) {
188
+ if (!$.test(r)) {
185
189
  this.isEmailValid = !1, this.validationError.email = i.t("invalidInputFormat", { field: i.t("email") }), this.bookingFormError.emit({
186
190
  title: "Booking form error",
187
191
  description: i.t("invalidInputFormat", { field: i.t("email") }) || "Invalid email"
@@ -192,7 +196,7 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
192
196
  if (this.guestEmails.length > 0) {
193
197
  let p = !1;
194
198
  if (this.guestEmails.forEach((m, E) => {
195
- m === "" ? (p = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [E]: i.t("fieldRequired", { field: i.t("email") }) }) : O.test(m) || (p = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [E]: i.t("invalidInputFormat", { field: i.t("email") }) });
199
+ m === "" ? (p = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [E]: i.t("fieldRequired", { field: i.t("email") }) }) : $.test(m) || (p = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [E]: i.t("invalidInputFormat", { field: i.t("email") }) });
196
200
  }), p) {
197
201
  this.bookingFormError.emit({
198
202
  title: "Booking form error",
@@ -218,8 +222,8 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
218
222
  guests: t,
219
223
  additionalFields: { ...s, ...this.additionalFields }
220
224
  });
221
- }, this.updateAdditionalFields = (a, n) => {
222
- this.additionalFields && (this.additionalFields[a] = n);
225
+ }, this.updateAdditionalFields = (n, a) => {
226
+ this.additionalFields && (this.additionalFields[n] = a);
223
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;
224
228
  }
225
229
  connectedCallback() {
@@ -237,17 +241,17 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
237
241
  this.firstRender && this.applyThemeConfig(this.themeConfig);
238
242
  }
239
243
  bookingInfoChangedHandler(e) {
240
- 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((a) => a.email));
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));
241
245
  }
242
246
  configSettingsChangedHandler(e) {
243
- var a, n, l, r, t, s, c, b, h, u;
244
- !((n = (a = this.bookingInfo) == null ? void 0 : a.primaryParticipant) != null && n.name) && e && ((r = (l = e.booking) == null ? void 0 : l.guest) != null && r.name) && (this.name = e.booking.guest.name || this.name), !((s = (t = this.bookingInfo) == null ? void 0 : t.primaryParticipant) != null && s.email) && e && ((b = (c = e.booking) == null ? void 0 : c.guest) != null && b.email) && (this.email = e.booking.guest.email || this.email), !((h = this.bookingInfo) != null && h.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, r, t, s, c, b, h, 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 = (t = this.bookingInfo) == null ? void 0 : t.primaryParticipant) != null && s.email) && e && ((b = (c = e.booking) == null ? void 0 : c.guest) != null && b.email) && (this.email = e.booking.guest.email || this.email), !((h = this.bookingInfo) != null && h.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));
245
249
  }
246
250
  themeConfigChanged(e) {
247
251
  this.applyThemeConfig(e);
248
252
  }
249
253
  iterateFormComponents() {
250
- const e = this.formRef, a = [
254
+ const e = this.formRef, n = [
251
255
  "input-component",
252
256
  "button-component",
253
257
  "select-dropdown",
@@ -256,24 +260,24 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
256
260
  "textarea-component",
257
261
  "nylas-date-component",
258
262
  "multi-select-dropdown"
259
- ], n = [];
263
+ ], a = [];
260
264
  if (e) {
261
265
  const l = (r) => {
262
266
  Array.from(r.children).forEach((t) => {
263
267
  const s = t.tagName.toLowerCase();
264
- a.includes(s) && n.push(t), l(t);
268
+ n.includes(s) && a.push(t), l(t);
265
269
  });
266
270
  };
267
271
  l(e);
268
272
  }
269
- return n;
273
+ return a;
270
274
  }
271
275
  applyThemeConfig(e) {
272
276
  if (e)
273
- for (const [a, n] of Object.entries(e))
274
- this.host.style.setProperty(`${a}`, n), this.iterateFormComponents().forEach((r) => {
277
+ for (const [n, a] of Object.entries(e))
278
+ this.host.style.setProperty(`${n}`, a), this.iterateFormComponents().forEach((r) => {
275
279
  var t;
276
- r.style.setProperty(`${a}`, n), (t = r.shadowRoot) == null || t.host.style.setProperty(`${a}`, n);
280
+ r.style.setProperty(`${n}`, a), (t = r.shadowRoot) == null || t.host.style.setProperty(`${n}`, a);
277
281
  });
278
282
  }
279
283
  changeName(e) {
@@ -283,8 +287,8 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
283
287
  this.isEmailValid = !0, this.validationError.email = "", this.email = ge(e), this.emailChanged.emit(e);
284
288
  }
285
289
  resetGuestEmailError(e) {
286
- const a = { ...this.guestEmailErrors };
287
- delete a[e], this.guestEmailErrors = { ...a };
290
+ const n = { ...this.guestEmailErrors };
291
+ delete n[e], this.guestEmailErrors = { ...n };
288
292
  }
289
293
  nylasFormInputChangedHandler(e) {
290
294
  switch (e.detail.name) {
@@ -324,8 +328,8 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
324
328
  });
325
329
  return;
326
330
  }
327
- const a = e.detail.value.toString();
328
- this.updateAdditionalFields(e.detail.name, a);
331
+ const n = e.detail.value.toString();
332
+ this.updateAdditionalFields(e.detail.name, n);
329
333
  }
330
334
  switchToggledHandler(e) {
331
335
  this.updateAdditionalFields(e.detail.name, e.detail.checked ? "true" : "false");
@@ -340,8 +344,8 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
340
344
  this.updateAdditionalFields(e.detail.name, e.detail.value);
341
345
  }
342
346
  render() {
343
- var e, a, n, l, r, t, s, c, b, h, u, C, D, L, p, m, E, R, ae;
344
- return o(k, { key: "d1a22c96134f6b621cd51de89a334cbfd333e60d" }, o("form", { key: "d69adbd943fc3b7a5c7f0cf53dbb9217f7334c32", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, o("div", { key: "21afe8342d7d3656a425d57b0b63ddc336961ab2", class: "nylas-booking-form", part: "nbf" }, o("div", { key: "c8fb40d0bdfe56db0e88bba9e50ccf1b94ab446a", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "0d3560610674cff9b3aa8c6bd91ed2ebcaf6036e", label: i.t("name"), name: "name", id: "name", defaultValue: ((a = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : a.name) || ((r = (l = (n = this.configSettings) == null ? void 0 : n.booking) == null ? void 0 : l.guest) == null ? void 0 : r.name) || this.name, placeholder: i.t("namePlaceholder"), type: "text", readOnly: ((s = (t = this.bookingInfo) == null ? void 0 : t.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" })), o("div", { key: "2abb2740328b4b999ba4d2b1e7345c592d50d27e", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "cb5ab32f071f33f7374f9d4488fd4663963040bb", label: i.t("email"), name: "email", id: "email", pattern: O, defaultValue: ((b = (c = this.bookingInfo) == null ? void 0 : c.primaryParticipant) == null ? void 0 : b.email) || ((C = (u = (h = this.configSettings) == null ? void 0 : h.booking) == null ? void 0 : u.guest) == null ? void 0 : C.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((L = (D = this.bookingInfo) == null ? void 0 : D.primaryParticipant) == null ? void 0 : L.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 && o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => o("div", { class: "input-wrapper button-wrapper" }, o("label", { class: {
347
+ var e, n, a, l, r, t, s, c, b, h, u, C, D, L, p, m, E, R, ne;
348
+ return o(k, { key: "7cc64499522157e62c5703990effe640e032794f" }, o("form", { key: "14b8c18e942c2b30027dd4ab7e9f50be749b6d8a", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, o("div", { key: "df00121eb4e6491ce7a758690c0bb2fdb3afd2c0", class: "nylas-booking-form", part: "nbf" }, o("div", { key: "f54bdfab54066557fa20defcc90bba5b33211616", class: "input-wrapper", part: "nbf__input-wrapper" }, o("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 = (t = this.bookingInfo) == null ? void 0 : t.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" })), o("div", { key: "44f5979a3aacfaedf6baa124ddf3cae468f71e19", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "5e72e7aa54a18a6a3b441a6d3d03c8b08246bc07", label: i.t("email"), name: "email", id: "email", pattern: $, defaultValue: ((b = (c = this.bookingInfo) == null ? void 0 : c.primaryParticipant) == null ? void 0 : b.email) || ((C = (u = (h = this.configSettings) == null ? void 0 : h.booking) == null ? void 0 : u.guest) == null ? void 0 : C.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((L = (D = this.bookingInfo) == null ? void 0 : D.primaryParticipant) == null ? void 0 : L.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 && o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => o("div", { class: "input-wrapper button-wrapper" }, o("label", { class: {
345
349
  error: !!this.guestEmailErrors[y]
346
350
  } }, i.t("guestEmail")), o("div", { class: "guest-email-input" }, o("input", { type: "email", id: `guest-email-${y}`, maxLength: 100, class: {
347
351
  "guest-email": !0,
@@ -355,9 +359,9 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
355
359
  } }), o("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (v) => this.removeGuestButtonClickHandler(v, y), class: {
356
360
  "remove-guest": !0,
357
361
  error: !!this.guestEmailErrors[y]
358
- } }, o("close-icon", null))), o("p", { class: "help-text" }, this.guestEmailErrors[y]))), o("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (_) => this.addGuestButtonClickedHandler(_) }, o("div", { class: "button-content" }, o("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((_) => {
359
- var ne, oe, te, le, re, se, ie, ce, de, fe, ye, be, he;
360
- const y = _[1], v = y.label, g = _[0], x = ((te = (oe = (ne = this.bookingInfo) == null ? void 0 : ne.additionalFields) == null ? void 0 : oe[g]) == null ? void 0 : te.value) || ((se = (re = (le = this.configSettings) == null ? void 0 : le.booking) == null ? void 0 : re.additional_fields) == null ? void 0 : se[g]) || y.default || "", I = ((de = (ce = (ie = this.bookingInfo) == null ? void 0 : ie.additionalFields) == null ? void 0 : ce[g]) == null ? void 0 : de.readOnly) || !1;
362
+ } }, o("close-icon", null))), o("p", { class: "help-text" }, this.guestEmailErrors[y]))), o("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (_) => this.addGuestButtonClickedHandler(_) }, o("div", { class: "button-content" }, o("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${i.t("addAnotherGuest")}` : `${i.t("addGuest")}`))), (ne = Object.entries(((R = (E = this.configSettings) == null ? void 0 : E.scheduler) == null ? void 0 : R.additional_fields) || {})) == null ? void 0 : ne.sort((_, y) => _[1].order - y[1].order).map((_) => {
363
+ var ae, oe, te, le, re, se, ie, ce, de, fe, ye, be, he;
364
+ const y = _[1], v = y.label, g = _[0], x = ((te = (oe = (ae = this.bookingInfo) == null ? void 0 : ae.additionalFields) == null ? void 0 : oe[g]) == null ? void 0 : te.value) || ((se = (re = (le = this.configSettings) == null ? void 0 : le.booking) == null ? void 0 : re.additional_fields) == null ? void 0 : se[g]) || y.default || "", I = ((de = (ce = (ie = this.bookingInfo) == null ? void 0 : ie.additionalFields) == null ? void 0 : ce[g]) == null ? void 0 : de.readOnly) || !1;
361
365
  switch (y.type) {
362
366
  case "dropdown":
363
367
  return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("select-dropdown", { label: v, name: g, id: g, readOnly: I, withSearch: !1, emptyValue: i.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: x ? { value: x, label: x } : void 0, options: [
@@ -374,14 +378,14 @@ const O = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
374
378
  return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("nylas-date-component", { readOnly: I, label: v, defaultValue: x, name: g, id: g, required: y.required, part: "nbf__date-component" }));
375
379
  case "multi_select": {
376
380
  const z = (x == null ? void 0 : x.split(",").map((j) => j.trim())) || [];
377
- return o("div", null, o("multi-select-dropdown", { label: v, name: g, id: g, readOnly: I, options: (he = y.options) == null ? void 0 : he.map((j) => ({ value: j, label: j, selected: z.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" }));
381
+ return o("div", null, o("multi-select-dropdown", { label: v, name: g, id: g, readOnly: I, multipleOptionsSelectedLabel: i.t("multipleOptionsSelected"), options: (he = y.options) == null ? void 0 : he.map((j) => ({ value: j, label: j, selected: z.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" }));
378
382
  }
379
383
  case "metadata":
380
384
  return null;
381
385
  default:
382
386
  return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { label: v, name: g, id: g, type: y.type, readOnly: I, defaultValue: x || "", requiredError: i.t("fieldRequired", { field: v }), required: y.required, part: "nbf__input-textfield" }));
383
387
  }
384
- })), o("div", { key: "1bc3a6c8cf879b03e39e58e9db2371d675a4e27a", class: "cta" }, o("button-component", { key: "5b38a653d10dc75faea9eaa2384985acd50f420a", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, o("slot", { key: "b69945ab562eca8770f3bbc39558a1b9bffdd168", name: "booking-form-back-label" }, `${i.t("backButton")}`)), o("button-component", { key: "97761d73e97c6d39fe7671f649c7f114c912efd3", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, o("slot", { key: "5c0f6a7eb055463f288d8644073a00ddfbbbbc26", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
388
+ })), o("div", { key: "ceca163a222c8be615a63d36f15e1dcdad40c08c", class: "cta" }, o("button-component", { key: "300ecbc4bffd1abe7d89684000ea958457392650", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, o("slot", { key: "3f3ab4bd1654a53941685961252c57138dbd9cc5", name: "booking-form-back-label" }, `${i.t("backButton")}`)), o("button-component", { key: "f1e3ecf792c87519589b83678d607bf12756f209", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, o("slot", { key: "75e9978b761610c37daf981520dc6e372e02fb38", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
385
389
  }
386
390
  get host() {
387
391
  return T(this);
@@ -405,22 +409,22 @@ qe([
405
409
  ["scheduler.themeConfig", "themeConfig"]
406
410
  ]),
407
411
  eventToProps: {
408
- backButtonClicked: async (e, a) => {
409
- a.scheduler.toggleAdditionalData(!1);
412
+ backButtonClicked: async (e, n) => {
413
+ n.scheduler.toggleAdditionalData(!1);
410
414
  },
411
- nameChanged: async (e, a) => {
412
- a.scheduler.setParticipantName(e.detail);
415
+ nameChanged: async (e, n) => {
416
+ n.scheduler.setParticipantName(e.detail);
413
417
  },
414
- emailChanged: async (e, a) => {
415
- a.scheduler.setParticipantEmail(e.detail);
418
+ emailChanged: async (e, n) => {
419
+ n.scheduler.setParticipantEmail(e.detail);
416
420
  },
417
- detailsConfirmed: async (e, a) => {
421
+ detailsConfirmed: async (e, n) => {
418
422
  d("nylas-booking-form", "detailsConfirmed", e.detail);
419
423
  },
420
- bookingFormSubmitted: async (e, a) => {
424
+ bookingFormSubmitted: async (e, n) => {
421
425
  d("nylas-booking-form", "bookingFormSubmitted", e.detail);
422
426
  },
423
- bookingFormError: async (e, a) => {
427
+ bookingFormError: async (e, n) => {
424
428
  d("nylas-booking-form", "bookingFormError", e.detail);
425
429
  }
426
430
  },
@@ -432,21 +436,21 @@ qe([
432
436
  ], Ce.prototype, "render", null);
433
437
  Ce.style = Ae;
434
438
  const Ze = ':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}', Ge = Ze;
435
- var We = function(e, a, n, l) {
436
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
439
+ var We = function(e, n, a, l) {
440
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
437
441
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
438
- t = Reflect.decorate(e, a, n, l);
442
+ t = Reflect.decorate(e, n, a, l);
439
443
  else
440
444
  for (var c = e.length - 1; c >= 0; c--)
441
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
442
- return r > 3 && t && Object.defineProperty(a, n, t), t;
443
- }, Z = function(e, a) {
445
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
446
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
447
+ }, Z = function(e, n) {
444
448
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
445
- return Reflect.metadata(e, a);
449
+ return Reflect.metadata(e, n);
446
450
  };
447
451
  const _e = class {
448
452
  constructor(e) {
449
- var a, n;
453
+ var n, a;
450
454
  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 = () => {
451
455
  this.goBackButtonClicked.emit();
452
456
  }, this.handleSubmitCancelBooking = (l) => {
@@ -470,11 +474,11 @@ const _e = class {
470
474
  this.cancelBookedEventError.emit(h);
471
475
  };
472
476
  this.cancelBookingId ? this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: "cancel", reason: this.cancellationReason, errorHandler: t }) : this.rejectBookingId && this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: "reject", reason: this.cancellationReason, errorHandler: t });
473
- }, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((n = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : n.cancellation_policy) || "Your current timeslot will become available to others.";
477
+ }, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((a = (n = this.configSettings) == null ? void 0 : n.scheduler) == null ? void 0 : a.cancellation_policy) || "Your current timeslot will become available to others.";
474
478
  }
475
479
  configSettingsChangedHandler(e) {
476
- var a;
477
- this.cancellationPolicy = ((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.cancellation_policy) || "Your current timeslot will become available to others.";
480
+ var n;
481
+ this.cancellationPolicy = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.cancellation_policy) || "Your current timeslot will become available to others.";
478
482
  }
479
483
  themeConfigChanged(e) {
480
484
  this.applyThemeConfig(e);
@@ -492,17 +496,17 @@ const _e = class {
492
496
  d("[nylas-cancel-booking-form] Component disconnected");
493
497
  }
494
498
  applyThemeConfig(e) {
495
- var a;
499
+ var n;
496
500
  if (e)
497
- for (const [n, l] of Object.entries(e))
498
- this.host.style.setProperty(`${n}`, l), (a = this.textareaRef) == null || a.style.setProperty(`${n}`, l);
501
+ for (const [a, l] of Object.entries(e))
502
+ this.host.style.setProperty(`${a}`, l), (n = this.textareaRef) == null || n.style.setProperty(`${a}`, l);
499
503
  }
500
504
  handleNylasFormInputChanged(e) {
501
505
  this.triggerValidation.emit({}), e.detail.name === "cancel-reason" && (this.cancellationReason = e.detail.value, this.cancellationError = e.detail.error);
502
506
  }
503
507
  render() {
504
- var e, a;
505
- return o(k, { key: "733c136e4a80782ac18c8d52e053d26cdcceaa67", part: "ncbf" }, o("div", { key: "108279e83820f644da85d6c89edf09b9bcea3700", class: "nylas-cancel-booking-form", part: "ncbf__card" }, o("div", { key: "ffc95389f08a71b9892eaf27505700ff03331bc9", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, o("calendar-cancel-icon", { key: "5993111a1f702bc24d15d10e3b1fb40017820e4a" })), o("h3", { key: "24ce0017beeb98abebef2276d2d1b8642cc31a7a", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), o("div", { key: "8708735caa18b7f16da87d8403dba66f9cccf80f", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (a = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && a.cancellation_policy ? this.cancellationPolicy : `${i.t("cancelBookingMessage")}`), o("form", { key: "917b25ea4259080e48d1bca6f889d9749cab8684", onSubmit: this.handleSubmitCancelBooking }, o("textarea-component", { key: "b0242c5184c55413249cc9b3fc834c145725aa58", id: "cancel-reason", name: "cancel-reason", ref: (n) => this.textareaRef = n, required: !0, label: i.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), o("div", { key: "dbfd4caad12ab130460efaf266a5c8ae52da0f83", class: "footer" }, o("button-component", { key: "6ddab785c067eaa9eed443a14aaf42240a01f4c3", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && o("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
508
+ var e, n;
509
+ return o(k, { key: "733c136e4a80782ac18c8d52e053d26cdcceaa67", part: "ncbf" }, o("div", { key: "108279e83820f644da85d6c89edf09b9bcea3700", class: "nylas-cancel-booking-form", part: "ncbf__card" }, o("div", { key: "ffc95389f08a71b9892eaf27505700ff03331bc9", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, o("calendar-cancel-icon", { key: "5993111a1f702bc24d15d10e3b1fb40017820e4a" })), o("h3", { key: "24ce0017beeb98abebef2276d2d1b8642cc31a7a", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), o("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")}`), o("form", { key: "917b25ea4259080e48d1bca6f889d9749cab8684", onSubmit: this.handleSubmitCancelBooking }, o("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 }), o("div", { key: "dbfd4caad12ab130460efaf266a5c8ae52da0f83", class: "footer" }, o("button-component", { key: "6ddab785c067eaa9eed443a14aaf42240a01f4c3", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && o("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
506
510
  }
507
511
  get host() {
508
512
  return T(this);
@@ -527,13 +531,13 @@ We([
527
531
  ["scheduler.themeConfig", "themeConfig"]
528
532
  ]),
529
533
  eventToProps: {
530
- cancelBookingFormSubmitted: async (e, a) => {
531
- const { action: n, errorHandler: l } = e.detail;
532
- if (n === "cancel") {
533
- const r = await a.scheduler.cancelBooking(e.detail.bookingId, e.detail.reason);
534
+ cancelBookingFormSubmitted: async (e, n) => {
535
+ const { action: a, errorHandler: l } = e.detail;
536
+ if (a === "cancel") {
537
+ const r = await n.scheduler.cancelBooking(e.detail.bookingId, e.detail.reason);
534
538
  l && (!r || "error" in r) && l(r);
535
- } else if (n === "reject") {
536
- const r = await a.scheduler.updateBooking({
539
+ } else if (a === "reject") {
540
+ const r = await n.scheduler.updateBooking({
537
541
  bookingId: e.detail.bookingId,
538
542
  status: "cancelled",
539
543
  reason: e.detail.reason
@@ -541,13 +545,13 @@ We([
541
545
  l && (!r || "error" in r) && l(r);
542
546
  }
543
547
  },
544
- goBackButtonClicked: async (e, a) => {
545
- d("nylas-cancel-booking-form", "goBackButtonClicked", e.detail), a.scheduler.goBack();
548
+ goBackButtonClicked: async (e, n) => {
549
+ d("nylas-cancel-booking-form", "goBackButtonClicked", e.detail), n.scheduler.goBack();
546
550
  },
547
- cancelBookedEventError: async (e, a) => {
551
+ cancelBookedEventError: async (e, n) => {
548
552
  d("nylas-cancel-booking-form", "cancelBookedEventError", e.detail);
549
553
  },
550
- cancelBookingFormError: async (e, a) => {
554
+ cancelBookingFormError: async (e, n) => {
551
555
  d("nylas-cancel-booking-form", "cancelBookingFormError", e.detail);
552
556
  }
553
557
  },
@@ -559,26 +563,26 @@ We([
559
563
  ], _e.prototype, "render", null);
560
564
  _e.style = Ge;
561
565
  const Ue = ':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%}', Xe = Ue;
562
- var Ye = function(e, a, n, l) {
563
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
566
+ var Ye = function(e, n, a, l) {
567
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
564
568
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
565
- t = Reflect.decorate(e, a, n, l);
569
+ t = Reflect.decorate(e, n, a, l);
566
570
  else
567
571
  for (var c = e.length - 1; c >= 0; c--)
568
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
569
- return r > 3 && t && Object.defineProperty(a, n, t), t;
570
- }, G = function(e, a) {
572
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
573
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
574
+ }, G = function(e, n) {
571
575
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
572
- return Reflect.metadata(e, a);
576
+ return Reflect.metadata(e, n);
573
577
  };
574
578
  const we = class {
575
579
  constructor(e) {
576
580
  w(this, e), this.closeCancelEventCardClicked = f(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = f(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
577
581
  this.isClosing = !0;
578
- const a = (n) => {
579
- this.cancelledEventCardError.emit(n), this.isClosing = !1;
582
+ const n = (a) => {
583
+ this.cancelledEventCardError.emit(a), this.isClosing = !1;
580
584
  };
581
- this.closeCancelEventCardClicked.emit({ errorHandler: a });
585
+ this.closeCancelEventCardClicked.emit({ errorHandler: n });
582
586
  }, this.configSettings = void 0, this.themeConfig = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
583
587
  }
584
588
  themeConfigChanged(e) {
@@ -598,12 +602,12 @@ const we = class {
598
602
  }
599
603
  applyThemeConfig(e) {
600
604
  if (e)
601
- for (const [a, n] of Object.entries(e))
602
- this.host.style.setProperty(`${a}`, n);
605
+ for (const [n, a] of Object.entries(e))
606
+ this.host.style.setProperty(`${n}`, a);
603
607
  }
604
608
  render() {
605
- var e, a;
606
- return o(k, { key: "d835492ddff51ad8cad3fa73b5dc88a82f6cfdd9", part: "ncec" }, o("div", { key: "b1cd60f3aad0acaa5c75e1e3fd83dd227fe20dfc", class: "nylas-cancelled-event-card", part: "ncec__card" }, o("div", { key: "3b9bc0d52e4b34421f76f8daec0ba64704d0c783", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "abffc9703f1b417f7da3ed106cf88e917988ff89" })), o("h3", { key: "21d104aa9c67cd040b86fa01d5666e69f9335178", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), o("div", { key: "532eb9d62db4ae34c64b3d64c7a003b6842865be", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, i.t("bookingCancelledMessage"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || "the participants", "."), o("div", { key: "b34aa321c0b1e485153a2dfa2ae38cca504be0b7", class: "nylas-cancelled-event-card__cta" }, o("button-component", { key: "519aa668e2397f1a32637590797aa9052e24a5ff", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
609
+ var e, n;
610
+ return o(k, { key: "d835492ddff51ad8cad3fa73b5dc88a82f6cfdd9", part: "ncec" }, o("div", { key: "b1cd60f3aad0acaa5c75e1e3fd83dd227fe20dfc", class: "nylas-cancelled-event-card", part: "ncec__card" }, o("div", { key: "3b9bc0d52e4b34421f76f8daec0ba64704d0c783", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "abffc9703f1b417f7da3ed106cf88e917988ff89" })), o("h3", { key: "21d104aa9c67cd040b86fa01d5666e69f9335178", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), o("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", "."), o("div", { key: "b34aa321c0b1e485153a2dfa2ae38cca504be0b7", class: "nylas-cancelled-event-card__cta" }, o("button-component", { key: "519aa668e2397f1a32637590797aa9052e24a5ff", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
607
611
  }
608
612
  get host() {
609
613
  return T(this);
@@ -623,11 +627,11 @@ Ye([
623
627
  ["scheduler.themeConfig", "themeConfig"]
624
628
  ]),
625
629
  eventToProps: {
626
- closeCancelEventCardClicked: async (e, a) => {
627
- const n = await a.scheduler.resetCancel(), { errorHandler: l } = e.detail;
628
- l && (!n || "error" in n) && l(n);
630
+ closeCancelEventCardClicked: async (e, n) => {
631
+ const a = await n.scheduler.resetCancel(), { errorHandler: l } = e.detail;
632
+ l && (!a || "error" in a) && l(a);
629
633
  },
630
- cancelledEventCardError: async (e, a) => {
634
+ cancelledEventCardError: async (e, n) => {
631
635
  d("nylas-cancelled-event-card", "cancelledEventCardError", e.detail);
632
636
  }
633
637
  },
@@ -639,26 +643,26 @@ Ye([
639
643
  ], we.prototype, "render", null);
640
644
  we.style = Xe;
641
645
  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-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%}', Ke = Je;
642
- var Qe = function(e, a, n, l) {
643
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
646
+ var Qe = function(e, n, a, l) {
647
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
644
648
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
645
- t = Reflect.decorate(e, a, n, l);
649
+ t = Reflect.decorate(e, n, a, l);
646
650
  else
647
651
  for (var c = e.length - 1; c >= 0; c--)
648
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
649
- return r > 3 && t && Object.defineProperty(a, n, t), t;
650
- }, W = function(e, a) {
652
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
653
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
654
+ }, W = function(e, n) {
651
655
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
652
- return Reflect.metadata(e, a);
656
+ return Reflect.metadata(e, n);
653
657
  };
654
658
  const xe = class {
655
659
  constructor(e) {
656
660
  w(this, e), this.closeConfirmEventCardClicked = f(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = f(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
657
661
  this.isClosing = !0;
658
- const a = (n) => {
659
- this.confirmedEventCardError.emit(n), this.isClosing = !1;
662
+ const n = (a) => {
663
+ this.confirmedEventCardError.emit(a), this.isClosing = !1;
660
664
  };
661
- this.closeConfirmEventCardClicked.emit({ errorHandler: a });
665
+ this.closeConfirmEventCardClicked.emit({ errorHandler: n });
662
666
  }, this.configSettings = void 0, this.themeConfig = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
663
667
  }
664
668
  themeConfigChanged(e) {
@@ -678,12 +682,12 @@ const xe = class {
678
682
  }
679
683
  applyThemeConfig(e) {
680
684
  if (e)
681
- for (const [a, n] of Object.entries(e))
682
- this.host.style.setProperty(`${a}`, n);
685
+ for (const [n, a] of Object.entries(e))
686
+ this.host.style.setProperty(`${n}`, a);
683
687
  }
684
688
  render() {
685
- var e, a;
686
- return o(k, { key: "7d9b6138eeb5bf8f3e2d9552a609e0e92f4218c9", part: "ncec" }, o("div", { key: "3f310f8e06ce5b069ef9021890e4588adcd856e6", class: "nylas-confirmed-event-card", part: "ncec__card" }, o("div", { key: "0ab27b860a9160d6d6cf8b0e1ff0ba7a866c8102", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "f0b93912e1787c2f2d882590e8cae9a05a4ee577" })), o("h3", { key: "33f170e8c6a9db989b7f0b05702743c024bec621", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), o("div", { key: "7c4d191a266c9a2f748707ae1bd176c217a676e9", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, i.t("confirmedEventCardDescription"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || "the participants", "."), o("div", { key: "fb313a8a7cc9b7eb901e10f3cbc12e5b2faba00d", class: "nylas-confirmed-event-card__cta" }, o("button-component", { key: "c31d8980fdc428bc0c2950397eda010572c0e72f", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
689
+ var e, n;
690
+ return o(k, { key: "7d9b6138eeb5bf8f3e2d9552a609e0e92f4218c9", part: "ncec" }, o("div", { key: "3f310f8e06ce5b069ef9021890e4588adcd856e6", class: "nylas-confirmed-event-card", part: "ncec__card" }, o("div", { key: "0ab27b860a9160d6d6cf8b0e1ff0ba7a866c8102", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "f0b93912e1787c2f2d882590e8cae9a05a4ee577" })), o("h3", { key: "33f170e8c6a9db989b7f0b05702743c024bec621", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), o("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", "."), o("div", { key: "fb313a8a7cc9b7eb901e10f3cbc12e5b2faba00d", class: "nylas-confirmed-event-card__cta" }, o("button-component", { key: "c31d8980fdc428bc0c2950397eda010572c0e72f", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
687
691
  }
688
692
  get host() {
689
693
  return T(this);
@@ -702,9 +706,9 @@ Qe([
702
706
  ["scheduler.themeConfig", "themeConfig"]
703
707
  ]),
704
708
  eventToProps: {
705
- closeConfirmEventCardClicked: async (e, a) => {
706
- const n = await a.scheduler.resetConfirm(), { errorHandler: l } = e.detail;
707
- l && (!n || "error" in n) && l(n);
709
+ closeConfirmEventCardClicked: async (e, n) => {
710
+ const a = await n.scheduler.resetConfirm(), { errorHandler: l } = e.detail;
711
+ l && (!a || "error" in a) && l(a);
708
712
  }
709
713
  },
710
714
  fireRegisterEvent: !0
@@ -715,23 +719,23 @@ Qe([
715
719
  ], xe.prototype, "render", null);
716
720
  xe.style = Ke;
717
721
  const U = /* @__PURE__ */ new Date(), X = /* @__PURE__ */ new Date();
718
- function N(e, a, n, l) {
722
+ function H(e, n, a, l) {
719
723
  function r(t) {
720
724
  return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
721
725
  }
722
- return r.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), r.ceil = (t) => (e(t = new Date(t - 1)), a(t, 1), e(t), t), r.round = (t) => {
726
+ return r.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), r.ceil = (t) => (e(t = new Date(t - 1)), n(t, 1), e(t), t), r.round = (t) => {
723
727
  const s = r(t), c = r.ceil(t);
724
728
  return t - s < c - t ? s : c;
725
- }, r.offset = (t, s) => (a(t = /* @__PURE__ */ new Date(+t), s == null ? 1 : Math.floor(s)), t), r.range = (t, s, c) => {
729
+ }, r.offset = (t, s) => (n(t = /* @__PURE__ */ new Date(+t), s == null ? 1 : Math.floor(s)), t), r.range = (t, s, c) => {
726
730
  const b = [];
727
731
  if (t = r.ceil(t), c = c == null ? 1 : Math.floor(c), !(t < s) || !(c > 0))
728
732
  return b;
729
733
  let h;
730
734
  do
731
- b.push(h = /* @__PURE__ */ new Date(+t)), a(t, c), e(t);
735
+ b.push(h = /* @__PURE__ */ new Date(+t)), n(t, c), e(t);
732
736
  while (h < t && t < s);
733
737
  return b;
734
- }, r.filter = (t) => N((s) => {
738
+ }, r.filter = (t) => H((s) => {
735
739
  if (s >= s)
736
740
  for (; e(s), !t(s); )
737
741
  s.setTime(s - 1);
@@ -739,42 +743,42 @@ function N(e, a, n, l) {
739
743
  if (s >= s)
740
744
  if (c < 0)
741
745
  for (; ++c <= 0; )
742
- for (; a(s, -1), !t(s); )
746
+ for (; n(s, -1), !t(s); )
743
747
  ;
744
748
  else
745
749
  for (; --c >= 0; )
746
- for (; a(s, 1), !t(s); )
750
+ for (; n(s, 1), !t(s); )
747
751
  ;
748
- }), n && (r.count = (t, s) => (U.setTime(+t), X.setTime(+s), e(U), e(X), Math.floor(n(U, X))), r.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? r.filter(l ? (s) => l(s) % t === 0 : (s) => r.count(0, s) % t === 0) : r)), r;
752
+ }), a && (r.count = (t, s) => (U.setTime(+t), X.setTime(+s), e(U), e(X), Math.floor(a(U, X))), r.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? r.filter(l ? (s) => l(s) % t === 0 : (s) => r.count(0, s) % t === 0) : r)), r;
749
753
  }
750
- const Ve = 1e3, Te = Ve * 60, ea = Te * 60, M = ea * 24, Y = N(
754
+ const Ve = 1e3, Te = Ve * 60, en = Te * 60, N = en * 24, Y = H(
751
755
  (e) => e.setHours(0, 0, 0, 0),
752
- (e, a) => e.setDate(e.getDate() + a),
753
- (e, a) => (a - e - (a.getTimezoneOffset() - e.getTimezoneOffset()) * Te) / M,
756
+ (e, n) => e.setDate(e.getDate() + n),
757
+ (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * Te) / N,
754
758
  (e) => e.getDate() - 1
755
759
  );
756
- N((e) => {
760
+ H((e) => {
757
761
  e.setUTCHours(0, 0, 0, 0);
758
- }, (e, a) => {
759
- e.setUTCDate(e.getUTCDate() + a);
760
- }, (e, a) => (a - e) / M, (e) => e.getUTCDate() - 1);
761
- N((e) => {
762
+ }, (e, n) => {
763
+ e.setUTCDate(e.getUTCDate() + n);
764
+ }, (e, n) => (n - e) / N, (e) => e.getUTCDate() - 1);
765
+ H((e) => {
762
766
  e.setUTCHours(0, 0, 0, 0);
763
- }, (e, a) => {
764
- e.setUTCDate(e.getUTCDate() + a);
765
- }, (e, a) => (a - e) / M, (e) => Math.floor(e / M));
766
- const aa = ':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)}', na = aa;
767
- var oa = function(e, a, n, l) {
768
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
767
+ }, (e, n) => {
768
+ e.setUTCDate(e.getUTCDate() + n);
769
+ }, (e, n) => (n - e) / N, (e) => Math.floor(e / N));
770
+ const nn = ':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)}', an = nn;
771
+ var on = function(e, n, a, l) {
772
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
769
773
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
770
- t = Reflect.decorate(e, a, n, l);
774
+ t = Reflect.decorate(e, n, a, l);
771
775
  else
772
776
  for (var c = e.length - 1; c >= 0; c--)
773
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
774
- return r > 3 && t && Object.defineProperty(a, n, t), t;
775
- }, J = function(e, a) {
777
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
778
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
779
+ }, J = function(e, n) {
776
780
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
777
- return Reflect.metadata(e, a);
781
+ return Reflect.metadata(e, n);
778
782
  };
779
783
  const Ee = class {
780
784
  constructor(e) {
@@ -782,10 +786,10 @@ const Ee = class {
782
786
  }
783
787
  configSettingsChanged(e) {
784
788
  var r;
785
- const a = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), n = (r = e == null ? void 0 : e.scheduler) == null ? void 0 : r.available_days_in_future;
786
- if (n === void 0)
789
+ 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;
790
+ if (a === void 0)
787
791
  return;
788
- pe(/* @__PURE__ */ new Date(), n).getTime() < a.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
792
+ pe(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1;
789
793
  }
790
794
  selectedLanguageChanged(e) {
791
795
  i.changeLanguage(e);
@@ -794,7 +798,7 @@ const Ee = class {
794
798
  this.applyThemeConfig(e);
795
799
  }
796
800
  selectedDateChanged(e) {
797
- this.month = e || /* @__PURE__ */ new Date(), this.dates = this.getDates();
801
+ (!e || !P(e, this.month)) && (this.month = e || /* @__PURE__ */ new Date()), this.dates = this.getDates();
798
802
  }
799
803
  connectedCallback() {
800
804
  }
@@ -807,12 +811,12 @@ const Ee = class {
807
811
  }
808
812
  applyThemeConfig(e) {
809
813
  if (e)
810
- for (const [a, n] of Object.entries(e))
811
- this.host.style.setProperty(`${a}`, n);
814
+ for (const [n, a] of Object.entries(e))
815
+ this.host.style.setProperty(`${n}`, a);
812
816
  }
813
817
  getDates() {
814
- const e = Se(this.month), a = Re(this.month);
815
- return Y.range(Y.offset(a, -a.getDay()), Y.offset(e, 7 - e.getDay()));
818
+ const e = Se(this.month), n = Re(this.month);
819
+ return Y.range(Y.offset(n, -n.getDay()), Y.offset(e, 7 - e.getDay()));
816
820
  }
817
821
  selectDate(e) {
818
822
  this.dateSelected.emit(e);
@@ -820,18 +824,18 @@ const Ee = class {
820
824
  changeMonth(e) {
821
825
  var r, t;
822
826
  this.month = new Date(this.month.getFullYear(), this.month.getMonth() + e, 1);
823
- const a = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), n = (t = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : t.available_days_in_future;
824
- pe(/* @__PURE__ */ new Date(), n).getTime() < a.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
827
+ const n = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1), a = (t = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : t.available_days_in_future;
828
+ pe(/* @__PURE__ */ new Date(), a).getTime() < n.getTime() ? this.disableNextMonthButton = !0 : this.disableNextMonthButton = !1, this.dates = this.getDates(), this.monthChanged.emit(this.month);
825
829
  }
826
- isSelected(e, a, n) {
827
- return e && a && P(e, a) && n && (n == null ? void 0 : n.length) > 0;
830
+ isSelected(e, n, a) {
831
+ return e && n && O(e, n) && a && (a == null ? void 0 : a.length) > 0;
828
832
  }
829
- isDisabled(e, a) {
830
- return e && (a == null ? void 0 : a.find((n) => $(n, e, this.selectedTimezone))) === void 0;
833
+ isDisabled(e, n) {
834
+ return e && (n == null ? void 0 : n.find((a) => M(a, e, this.selectedTimezone))) === void 0;
831
835
  }
832
836
  render() {
833
- var e, a, n, l, r, t;
834
- return o(k, { key: "37e0b4d3910695936d1cb3e80757bc0757c2b101", part: "ndp" }, o("div", { key: "3e16a5cf66119fb5ffbf9f2b488d5181437a04cb", class: "nylas-date-picker" }, o("div", { key: "5a92a40f21e68774cdea39d328ae9fb0aa8538f5", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? o("h1", null, (a = this.configSettings) == null ? void 0 : a.name) : ((l = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : l.name) && o("h1", null, o("person-icon", null), ((t = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : t.name) || "Organizer"), o("p", { key: "8f3f84fc2cd17811c19e4c2d8b96cf639667bc77" }, o("clock-icon", { key: "9d57753e040d73a89ee1555924d047f052cb4ade" }), this.eventDuration ? je(this.eventDuration) : `- ${i.t("time.minutes")}`)), o("div", { key: "3559ca6682bf25eef73347ef9189a6a0d0932625", class: "header flex-row" }, o("h2", { key: "687ac4f43dc845db21b5c2a320d186dc83d85a4c", part: "ndp__month-header" }, o("strong", { key: "26305cb6e556b732e132d8f89a76d8b76aa6a2d1" }, Fe(this.month.toLocaleDateString(void 0, { month: "long" }).toLocaleLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), o("div", { key: "9447c15ecf0d41fd7d481cb73513a99aca7262a9", class: "pagination" }, o("button", { key: "1c9c7aece6dc5dbd595b542a5fffed7a503d3ab4", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, o("chevron-icon", { key: "904a32272ea470318ea6540484a5bbf98269e288" })), o("button", { key: "f7a18e2daf96c2585a8aea924a855459b68981cc", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, o("chevron-icon", { key: "b96d72fad19df4fc35d22419232273e4e9be2cf4" })))), o("div", { key: "e072b3f48c5ba7477d96172d2f91f4db5a0cb2e5", class: "dates" }, [
837
+ var e, n, a, l, r, t;
838
+ return o(k, { key: "de367c35af66e9f312be6682884062da9e747c9a", part: "ndp" }, o("div", { key: "80c028e4e630fa2a58359a2b8ad8425e24b21cc2", class: "nylas-date-picker" }, o("div", { key: "282dc9ba42e5fb652858d4ff0b49ea069db96175", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? o("h1", null, (n = this.configSettings) == null ? void 0 : n.name) : ((l = (a = this.configSettings) == null ? void 0 : a.organizer) == null ? void 0 : l.name) && o("h1", null, o("person-icon", null), ((t = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : t.name) || "Organizer"), o("p", { key: "d7f9d6deb57eafcd9b37f6a98e3e9afda74e143e" }, o("clock-icon", { key: "a54f0131170d81b2d8644b2d9d349d30654be393" }), this.eventDuration ? je(this.eventDuration) : `- ${i.t("time.minutes")}`)), o("div", { key: "e8924e6272011e68f6fc605b83f9816b4844e3b1", class: "header flex-row" }, o("h2", { key: "ce9bf342cfd4737f4693956ce62d6a8a2ade388d", part: "ndp__month-header" }, o("strong", { key: "02b93cc055a1445b32008e346ee9dd250f0b2b21" }, Fe(this.month.toLocaleDateString("en-US", { month: "long" }).toLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), o("div", { key: "b9cf990f4d25209e3058769a7903f731bc80fd2c", class: "pagination" }, o("button", { key: "2879994e18001a6fbb96cfd5f2ae4d22b17c4da4", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, o("chevron-icon", { key: "313a9663314b2e875ac4146a7d23838ac71a4336" })), o("button", { key: "5f87ad4833c10fa362e93cbbee20861cc6363466", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, o("chevron-icon", { key: "408cd5ef79316815f929aec270309b3e5d8659b6" })))), o("div", { key: "ee100542f37d246a2cd7a2c27adf4ff0efcade18", class: "dates" }, [
835
839
  i.t("days.sunday"),
836
840
  i.t("days.monday"),
837
841
  i.t("days.tuesday"),
@@ -844,13 +848,13 @@ const Ee = class {
844
848
  const b = this.isDisabled(s, this.selectableDates);
845
849
  return this.isLoading ? o("button", { disabled: !0, class: {
846
850
  "date day-skeleton": !0,
847
- "current-month": H(s, this.month)
851
+ "current-month": P(s, this.month)
848
852
  }, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, s.getDate()) : o("button", { class: {
849
853
  date: !0,
850
- selected: !!(this.selectedDate && P(s, this.selectedDate) && this.selectableDates && ((h = this.selectableDates) == null ? void 0 : h.length) > 0),
851
- "current-day": P(s, /* @__PURE__ */ new Date()),
852
- "current-month": H(s, this.month)
853
- }, "aria-label": s.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: b, onClick: () => this.selectDate(s), part: `ndp__date ${this.isSelected(s, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${P(s, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${H(s, this.month) ? "ndp__date--current-month" : ""}` }, s.getDate());
854
+ selected: !!(this.selectedDate && O(s, this.selectedDate) && this.selectableDates && ((h = this.selectableDates) == null ? void 0 : h.length) > 0),
855
+ "current-day": O(s, /* @__PURE__ */ new Date()),
856
+ "current-month": P(s, this.month)
857
+ }, "aria-label": s.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: b, 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());
854
858
  }))));
855
859
  }
856
860
  get host() {
@@ -865,7 +869,7 @@ const Ee = class {
865
869
  };
866
870
  }
867
871
  };
868
- oa([
872
+ on([
869
873
  B({
870
874
  name: "nylas-date-picker",
871
875
  stateToProps: /* @__PURE__ */ new Map([
@@ -879,10 +883,10 @@ oa([
879
883
  ["scheduler.selectedTimezone", "selectedTimezone"]
880
884
  ]),
881
885
  eventToProps: {
882
- dateSelected: async (e, a) => {
883
- d("nylas-date-picker", "dateSelected", e.detail), a.scheduler.selectDate(e.detail);
886
+ dateSelected: async (e, n) => {
887
+ d("nylas-date-picker", "dateSelected", e.detail), n.scheduler.selectDate(e.detail);
884
888
  },
885
- monthChanged: async (e, a) => {
889
+ monthChanged: async (e, n) => {
886
890
  d("nylas-date-picker", "monthChanged", e.detail);
887
891
  }
888
892
  },
@@ -892,24 +896,24 @@ oa([
892
896
  J("design:paramtypes", []),
893
897
  J("design:returntype", void 0)
894
898
  ], Ee.prototype, "render", null);
895
- Ee.style = na;
896
- const ta = ':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}}', la = ta;
897
- var ra = function(e, a, n, l) {
898
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
899
+ Ee.style = an;
900
+ const tn = ':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}}', ln = tn;
901
+ var rn = function(e, n, a, l) {
902
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
899
903
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
900
- t = Reflect.decorate(e, a, n, l);
904
+ t = Reflect.decorate(e, n, a, l);
901
905
  else
902
906
  for (var c = e.length - 1; c >= 0; c--)
903
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
904
- return r > 3 && t && Object.defineProperty(a, n, t), t;
905
- }, K = function(e, a) {
907
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
908
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
909
+ }, K = function(e, n) {
906
910
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
907
- return Reflect.metadata(e, a);
911
+ return Reflect.metadata(e, n);
908
912
  };
909
913
  const Be = class {
910
914
  constructor(e) {
911
- var a, n;
912
- 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 = ((a = this.bookingInfo) == null ? void 0 : a.timezone) || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = ((n = this.bookingInfo) == null ? void 0 : n.language) || navigator.language;
915
+ var n, a;
916
+ 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;
913
917
  }
914
918
  themeConfigChanged(e) {
915
919
  this.applyThemeConfig(e);
@@ -924,14 +928,14 @@ const Be = class {
924
928
  componentWillLoad() {
925
929
  }
926
930
  componentDidLoad() {
927
- var e, a;
928
- d("[nylas-locale-switch] Component did load"), this.applyThemeConfig(this.themeConfig), this.bookingInfo && ((e = this.bookingInfo) != null && e.timezone) && this.changeTimezone(this.bookingInfo.timezone), this.bookingInfo && ((a = this.bookingInfo) != null && a.language) && this.changeLanguage(this.bookingInfo.language);
931
+ var e, n;
932
+ d("[nylas-locale-switch] Component did load"), this.applyThemeConfig(this.themeConfig), this.bookingInfo && ((e = this.bookingInfo) != null && e.timezone) && this.changeTimezone(this.bookingInfo.timezone), this.bookingInfo && ((n = this.bookingInfo) != null && n.language) && this.changeLanguage(this.bookingInfo.language);
929
933
  }
930
934
  applyThemeConfig(e) {
931
- var a, n;
935
+ var n, a;
932
936
  if (e)
933
937
  for (const [l, r] of Object.entries(e))
934
- this.host.style.setProperty(`${l}`, r), (a = this.timezoneRef) == null || a.style.setProperty(`${l}`, r), (n = this.languageRef) == null || n.style.setProperty(`${l}`, r);
938
+ this.host.style.setProperty(`${l}`, r), (n = this.timezoneRef) == null || n.style.setProperty(`${l}`, r), (a = this.languageRef) == null || a.style.setProperty(`${l}`, r);
935
939
  }
936
940
  changeTimezone(e) {
937
941
  this.selectedTimezone = e, this.timezoneChanged.emit(e);
@@ -940,11 +944,11 @@ const Be = class {
940
944
  this.selectedLanguage = e, this.languageChanged.emit(e);
941
945
  }
942
946
  nylasFormDropdownChangedHandler(e) {
943
- const { name: a, value: n } = e.detail;
944
- a === "timezone" ? this.changeTimezone(n) : a === "language" && this.changeLanguage(n);
947
+ const { name: n, value: a } = e.detail;
948
+ n === "timezone" ? this.changeTimezone(a) : n === "language" && this.changeLanguage(a);
945
949
  }
946
950
  getTimezoneLabelHTML(e) {
947
- const a = Pe(e);
951
+ const n = Pe(e);
948
952
  return o("span", { class: "timezone-label", style: {
949
953
  display: "flex",
950
954
  alignItems: "center",
@@ -954,24 +958,24 @@ const Be = class {
954
958
  fontSize: "14px",
955
959
  fontWeight: "400",
956
960
  color: "var(--nylas-base-500)"
957
- } }, a));
961
+ } }, n));
958
962
  }
959
963
  render() {
960
- const e = Object.keys(F).map((n) => ({
961
- labelHTML: this.getTimezoneLabelHTML(n),
962
- label: F[n],
963
- value: n
964
- })), a = Object.keys(me).map((n) => ({
965
- label: me[n],
966
- value: n
964
+ const e = Object.keys(F).map((a) => ({
965
+ labelHTML: this.getTimezoneLabelHTML(a),
966
+ label: F[a],
967
+ value: a
968
+ })), n = Object.keys(me).map((a) => ({
969
+ label: me[a],
970
+ value: a
967
971
  }));
968
972
  return o(k, { key: "1a324cb66322d9dd8cb552a36bd3990a592ee7e9" }, o("div", { key: "18e91795ed822ed59f22c72207ea53ea9766d887", class: "nylas-locale-switch", part: "nls" }, o("div", { key: "7eb5e5ed990f5816e9dd17b1c4d06db3f36191da", class: {
969
973
  "select-wrapper": !0,
970
974
  timezone: !0
971
- }, part: "nls__timezone" }, o("select-dropdown", { key: "32323279c21ad428b38d80ad0e4a484f845f135e", name: "timezone", options: e, ref: (n) => this.timezoneRef = n, defaultSelectedOption: e.find((n) => n.value == this.selectedTimezone), exportparts: "sd_dropdown: nls__timezone-dropdown, sd_dropdown-button: nls__timezone-drop-button, sd_dropdown-button-selected-label: nls__timezone-drop-button-selected-label, sd_dropdown-content: nls__timezone-drop-content, sd_dropdown_label: nls__timezone-drop-label" }, o("span", { key: "8c8364acc7d8e52ba170fd1de2a85cae15461e03", slot: "select-icon" }, o("globe-icon", { key: "cd491eef36d00660976120510449e2d2f3e46781", width: "20", height: "20" })))), o("div", { key: "80fcd6d80efd4f69cd8b0cec376ac105f45cb5a1", class: {
975
+ }, part: "nls__timezone" }, o("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" }, o("span", { key: "8c8364acc7d8e52ba170fd1de2a85cae15461e03", slot: "select-icon" }, o("globe-icon", { key: "cd491eef36d00660976120510449e2d2f3e46781", width: "20", height: "20" })))), o("div", { key: "80fcd6d80efd4f69cd8b0cec376ac105f45cb5a1", class: {
972
976
  "select-wrapper": !0,
973
977
  language: !0
974
- }, part: "nls__language" }, o("select-dropdown", { key: "578f4a7ddf488cac7eea767c4346167d7bb912ac", name: "language", options: a, ref: (n) => this.languageRef = n, defaultSelectedOption: a.find((n) => n.value == this.selectedLanguage), exportparts: "sd_dropdown: nls__language-dropdown, sd_dropdown-button: nls__language-drop-button, sd_dropdown-content: nls__language-drop-content, sd_dropdown_label: nls__language-drop-label" }, o("span", { key: "e35c2a746e10701f434aaaa3194b4656fc525404", slot: "select-icon" }, o("translate-icon", { key: "7981ceb4834167c19ba6655d558a9a3ae28e5829", width: "20", height: "20" }))))));
978
+ }, part: "nls__language" }, o("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" }, o("span", { key: "e35c2a746e10701f434aaaa3194b4656fc525404", slot: "select-icon" }, o("translate-icon", { key: "7981ceb4834167c19ba6655d558a9a3ae28e5829", width: "20", height: "20" }))))));
975
979
  }
976
980
  get host() {
977
981
  return T(this);
@@ -983,7 +987,7 @@ const Be = class {
983
987
  };
984
988
  }
985
989
  };
986
- ra([
990
+ rn([
987
991
  B({
988
992
  name: "nylas-locale-switch",
989
993
  stateToProps: /* @__PURE__ */ new Map([
@@ -993,11 +997,11 @@ ra([
993
997
  ["scheduler.themeConfig", "themeConfig"]
994
998
  ]),
995
999
  eventToProps: {
996
- timezoneChanged: async (e, a) => {
997
- d("nylas-locale-switch", "timezoneChanged", e.detail), a.scheduler.selectTimezone(e.detail);
1000
+ timezoneChanged: async (e, n) => {
1001
+ d("nylas-locale-switch", "timezoneChanged", e.detail), n.scheduler.selectTimezone(e.detail);
998
1002
  },
999
- languageChanged: async (e, a) => {
1000
- d("nylas-locale-switch", "languageChanged", e.detail), a.scheduler.selectLanguage(e.detail);
1003
+ languageChanged: async (e, n) => {
1004
+ d("nylas-locale-switch", "languageChanged", e.detail), n.scheduler.selectLanguage(e.detail);
1001
1005
  }
1002
1006
  },
1003
1007
  fireRegisterEvent: !0
@@ -1006,8 +1010,8 @@ ra([
1006
1010
  K("design:paramtypes", []),
1007
1011
  K("design:returntype", void 0)
1008
1012
  ], Be.prototype, "render", null);
1009
- Be.style = la;
1010
- const sa = ".sc-nylas-logo-h{display:flex}", ia = sa, ca = class {
1013
+ Be.style = ln;
1014
+ const sn = ".sc-nylas-logo-h{display:flex}", cn = sn, dn = class {
1011
1015
  constructor(e) {
1012
1016
  w(this, e), this.width = "69", this.height = "24";
1013
1017
  }
@@ -1015,8 +1019,8 @@ const sa = ".sc-nylas-logo-h{display:flex}", ia = sa, ca = class {
1015
1019
  return o("svg", { key: "2754c1399a5b051918a35626bcc7ef8c4469bdf6", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("g", { key: "305275b038021ca3f3e6dcc0fe2ae5b52386799b", "clip-path": "url(#clip0_455_3543)" }, o("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" }), o("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" }), o("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" }), o("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" }), o("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" }), o("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" }), o("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" }), o("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" })), o("defs", { key: "19edd2e50594677dee4a329eaa785a97c069a328" }, o("clipPath", { key: "8150c454a41dae533856dbf1458e1758f3816c71", id: "clip0_455_3543" }, o("rect", { key: "6f59a86c801dfcd1a4e7db6f151f479ad76a2a7b", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
1016
1020
  }
1017
1021
  };
1018
- ca.style = ia;
1019
- const da = ':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}', fa = da, ya = class {
1022
+ dn.style = cn;
1023
+ const fn = ':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}', yn = fn, bn = class {
1020
1024
  constructor(e) {
1021
1025
  w(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
1022
1026
  }
@@ -1033,21 +1037,21 @@ const da = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
1033
1037
  d(`[nylas-notification] Success: ${e.detail.notification.title}`), this.handleNotification(e);
1034
1038
  }
1035
1039
  isChildOf(e) {
1036
- let a = this.host.parentNode;
1037
- for (; a; ) {
1038
- if (a === e)
1040
+ let n = this.host.parentNode;
1041
+ for (; n; ) {
1042
+ if (n === e)
1039
1043
  return !0;
1040
- a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
1044
+ n instanceof ShadowRoot ? n = n.host : n = n.parentNode;
1041
1045
  }
1042
1046
  return !1;
1043
1047
  }
1044
1048
  handleNotification(e) {
1045
- const a = e.detail.host;
1049
+ const n = e.detail.host;
1046
1050
  if (e.defaultPrevented) {
1047
1051
  d("[nylas-notification] Event default prevented");
1048
1052
  return;
1049
1053
  }
1050
- if (a && !this.isChildOf(a)) {
1054
+ if (n && !this.isChildOf(n)) {
1051
1055
  d("[nylas-notification] Host not a parent");
1052
1056
  return;
1053
1057
  }
@@ -1060,14 +1064,14 @@ const da = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
1060
1064
  return;
1061
1065
  }
1062
1066
  if (this.notifications = [...this.notifications, { ...e.detail.notification }], e.detail.notification.ttl !== "none") {
1063
- const n = e.detail.notification.ttl ? e.detail.notification.ttl : this.ttl;
1067
+ const a = e.detail.notification.ttl ? e.detail.notification.ttl : this.ttl;
1064
1068
  window.setTimeout(() => {
1065
1069
  this.notifications = this.notifications.filter((l) => l.id !== e.detail.notification.id);
1066
- }, n);
1070
+ }, a);
1067
1071
  }
1068
1072
  }
1069
1073
  dismissNotification(e) {
1070
- this.notifications = this.notifications.filter((a) => a.id !== e);
1074
+ this.notifications = this.notifications.filter((n) => n.id !== e);
1071
1075
  }
1072
1076
  render() {
1073
1077
  return o(k, { key: "14bd95afa19f56ee11c7fd0da40569ce7db03b8b" }, o(Oe, { key: "7d235408e948e21554c9438b578c9f8dc6cbc00e" }, this.notifications.map((e) => o("div", { class: `notif ${e.type}`, key: e.id }, o("div", { class: "content" }, o("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && o("warning-icon", null)), o("span", { class: "message" }, o("span", { class: "title" }, e.title), e.description && o("span", { class: "description" }, e.description))), o("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, o("close-icon", null)))), o("slot", { key: "fda76c22b0e752e2c6bcd84bc8d92d8f8e94ce88" })));
@@ -1076,28 +1080,28 @@ const da = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
1076
1080
  return T(this);
1077
1081
  }
1078
1082
  };
1079
- ya.style = fa;
1080
- const ba = ':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)}', ha = ba;
1081
- var ga = function(e, a, n, l) {
1082
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
1083
+ bn.style = yn;
1084
+ const hn = ':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)}', gn = hn;
1085
+ var pn = function(e, n, a, l) {
1086
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1083
1087
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1084
- t = Reflect.decorate(e, a, n, l);
1088
+ t = Reflect.decorate(e, n, a, l);
1085
1089
  else
1086
1090
  for (var c = e.length - 1; c >= 0; c--)
1087
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
1088
- return r > 3 && t && Object.defineProperty(a, n, t), t;
1089
- }, Q = function(e, a) {
1091
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
1092
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
1093
+ }, Q = function(e, n) {
1090
1094
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1091
- return Reflect.metadata(e, a);
1095
+ return Reflect.metadata(e, n);
1092
1096
  };
1093
1097
  const De = class {
1094
1098
  constructor(e) {
1095
1099
  w(this, e), this.rejectBookingButtonClicked = f(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = f(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = f(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
1096
1100
  this.action = "confirm";
1097
- const a = (n) => {
1098
- this.confirmBookingError.emit(n);
1101
+ const n = (a) => {
1102
+ this.confirmBookingError.emit(a);
1099
1103
  };
1100
- this.organizerConfirmationBookingId && !this.isLoading && this.confirmBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host, errorHandler: a });
1104
+ this.organizerConfirmationBookingId && !this.isLoading && this.confirmBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host, errorHandler: n });
1101
1105
  }, this.handleRejectBookingButtonClicked = () => {
1102
1106
  this.action = "reject", this.organizerConfirmationBookingId && !this.isLoading && this.rejectBookingButtonClicked.emit({ bookingId: this.organizerConfirmationBookingId, host: this.host });
1103
1107
  }, this.configSettings = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.organizerConfirmationBookingId = void 0, this.selectedLanguage = navigator.language, this.action = null;
@@ -1117,18 +1121,18 @@ const De = class {
1117
1121
  }
1118
1122
  applyThemeConfig(e) {
1119
1123
  if (e)
1120
- for (const [a, n] of Object.entries(e))
1121
- this.host.style.setProperty(`${a}`, n);
1124
+ for (const [n, a] of Object.entries(e))
1125
+ this.host.style.setProperty(`${n}`, a);
1122
1126
  }
1123
1127
  async resetAction() {
1124
1128
  this.action = null;
1125
1129
  }
1126
1130
  render() {
1127
- var e, a, n, l, r, t, s, c, b, h, u, C;
1128
- return o(k, { key: "b72cdf56a652927b8bdc97bd1aca688190fae0c8", part: "nmcc" }, o("div", { key: "af1403167427309c434934b2fd62d01121575fc3", class: "event-card-wrapper", part: "nmccc__card" }, o("div", { key: "421f5f62e390dd3631ee053ff55fbd9c45b3ca94", class: "calendar-icon" }, o("calendar-check-icon", { key: "b1494af046b7c5e06f050ba267ff54ee21e70e5d" })), o("div", { key: "d6ae4056fe5e195c9ac81107afbfcaeaeca32e18", class: "booked-event-header" }, o("h2", { key: "f4d2b1c4b6c0304c7e25bd850d1c437bca9f4fd3", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), o("div", { key: "e5ce4a9667fb170d72332481f623e2283b71d5d9", class: "manage-booking-description" }, o("p", { key: "86a9992bd9e3c652736b8b89d5535db140ee1910" }, i.t("bookingPendingnDescription"))), o("div", { key: "736f19da65dd1e8e782b6b12f534eaaf85d0acbb", class: {
1131
+ var e, n, a, l, r, t, s, c, b, h, u, C;
1132
+ return o(k, { key: "222871895768a9e8125bf2c7332200e65872b475", part: "nmcc" }, o("div", { key: "4838e6be84dab176c13230870f3d0094f1054da9", class: "event-card-wrapper", part: "nmccc__card" }, o("div", { key: "004ce2abb9cc4654dd4278e6c7002b34b7346968", class: "calendar-icon" }, o("calendar-check-icon", { key: "6202df706f78fcd592738a33b1e052e94f88d6ff" })), o("div", { key: "5a1f583617511c35a29fa65f026820996941b707", class: "booked-event-header" }, o("h2", { key: "62b88591f4432538d3c57fa6af4142f0cd2c997f", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), o("div", { key: "838b6df023be444c1b1ce1dfc7df21cab18756e1", class: "manage-booking-description" }, o("p", { key: "dc119292e92c4565fb84939284fb57f1fb2ec1f6" }, i.t("bookingPendingnDescription"))), o("div", { key: "31cadc6bfc0ae9f0adf93d159cff2261631e2281", class: {
1129
1133
  footer: !0,
1130
- "no-footer": ((a = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : a.hide_cancellation_options) && ((l = (n = this.configSettings) == null ? void 0 : n.scheduler) == null ? void 0 : l.hide_rescheduling_options),
1131
- "no-template-cols": ((t = (r = this.configSettings) == null ? void 0 : r.scheduler) == null ? void 0 : t.hide_cancellation_options) || ((c = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : c.hide_rescheduling_options)
1134
+ "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),
1135
+ "no-template-cols": !!((t = (r = this.configSettings) == null ? void 0 : r.scheduler) != null && t.hide_cancellation_options) || !!((c = (s = this.configSettings) == null ? void 0 : s.scheduler) != null && c.hide_rescheduling_options)
1132
1136
  } }, !((h = (b = this.configSettings) == null ? void 0 : b.scheduler) != null && h.hide_cancellation_options) && o("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) && o("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${i.t("confirmBookingButton")}`))));
1133
1137
  }
1134
1138
  get host() {
@@ -1140,7 +1144,7 @@ const De = class {
1140
1144
  };
1141
1145
  }
1142
1146
  };
1143
- ga([
1147
+ pn([
1144
1148
  B({
1145
1149
  name: "nylas-organizer-confirmation-card",
1146
1150
  stateToProps: /* @__PURE__ */ new Map([
@@ -1151,15 +1155,15 @@ ga([
1151
1155
  ["scheduler.themeConfig", "themeConfig"]
1152
1156
  ]),
1153
1157
  eventToProps: {
1154
- rejectBookingButtonClicked: async (e, a) => {
1155
- a.scheduler.setReject(e.detail.bookingId);
1158
+ rejectBookingButtonClicked: async (e, n) => {
1159
+ n.scheduler.setReject(e.detail.bookingId);
1156
1160
  },
1157
- confirmBookingButtonClicked: async (e, a) => {
1158
- const { host: n } = e.detail, l = await a.scheduler.updateBooking({
1161
+ confirmBookingButtonClicked: async (e, n) => {
1162
+ const { host: a } = e.detail, l = await n.scheduler.updateBooking({
1159
1163
  bookingId: e.detail.bookingId,
1160
1164
  status: "confirmed"
1161
1165
  }), { errorHandler: r } = e.detail;
1162
- r && (!l || "error" in l) && r(l), await n.resetAction();
1166
+ r && (!l || "error" in l) && r(l), await a.resetAction();
1163
1167
  }
1164
1168
  },
1165
1169
  fireRegisterEvent: !0
@@ -1168,19 +1172,19 @@ ga([
1168
1172
  Q("design:paramtypes", []),
1169
1173
  Q("design:returntype", void 0)
1170
1174
  ], De.prototype, "render", null);
1171
- De.style = ha;
1172
- const pa = ':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;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}}', ma = pa;
1173
- var ua = function(e, a, n, l) {
1174
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
1175
+ De.style = gn;
1176
+ const mn = ':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}}', un = mn;
1177
+ var kn = function(e, n, a, l) {
1178
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1175
1179
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1176
- t = Reflect.decorate(e, a, n, l);
1180
+ t = Reflect.decorate(e, n, a, l);
1177
1181
  else
1178
1182
  for (var c = e.length - 1; c >= 0; c--)
1179
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
1180
- return r > 3 && t && Object.defineProperty(a, n, t), t;
1181
- }, V = function(e, a) {
1183
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
1184
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
1185
+ }, V = function(e, n) {
1182
1186
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1183
- return Reflect.metadata(e, a);
1187
+ return Reflect.metadata(e, n);
1184
1188
  };
1185
1189
  const Le = class {
1186
1190
  constructor(e) {
@@ -1197,20 +1201,20 @@ const Le = class {
1197
1201
  d("[nylas-selected-event-card] Component will load");
1198
1202
  }
1199
1203
  async componentDidLoad() {
1200
- var n, l;
1204
+ var a, l;
1201
1205
  d("[nylas-selected-event-card] Component did load"), this.selectedDate || console.warn('[nylas-selected-event-card] "selectedDate" prop is not provided.'), this.selectedTimeslot || console.warn('[nylas-selected-event-card] "selectedTimeslot" prop is not provided.'), this.applyThemeConfig(this.themeConfig);
1202
- const e = S[this.selectedLanguage || "en"], a = new Intl.DateTimeFormat(e, {
1206
+ const e = S[this.selectedLanguage || "en"], n = new Intl.DateTimeFormat(e, {
1203
1207
  hour: "2-digit",
1204
1208
  minute: "2-digit",
1205
1209
  timeZone: this.selectedTimezone,
1206
1210
  hour12: this.hour12
1207
1211
  });
1208
- this.startTime = a.format(new Date((n = this.selectedTimeslot) == null ? void 0 : n.start_time)), this.endTime = a.format(new Date((l = this.selectedTimeslot) == null ? void 0 : l.end_time));
1212
+ this.startTime = n.format(new Date((a = this.selectedTimeslot) == null ? void 0 : a.start_time)), this.endTime = n.format(new Date((l = this.selectedTimeslot) == null ? void 0 : l.end_time));
1209
1213
  }
1210
1214
  applyThemeConfig(e) {
1211
1215
  if (e)
1212
- for (const [a, n] of Object.entries(e))
1213
- this.host.style.setProperty(`${a}`, n);
1216
+ for (const [n, a] of Object.entries(e))
1217
+ this.host.style.setProperty(`${n}`, a);
1214
1218
  }
1215
1219
  render() {
1216
1220
  var e;
@@ -1225,7 +1229,7 @@ const Le = class {
1225
1229
  };
1226
1230
  }
1227
1231
  };
1228
- ua([
1232
+ kn([
1229
1233
  B({
1230
1234
  name: "nylas-selected-event-card",
1231
1235
  stateToProps: /* @__PURE__ */ new Map([
@@ -1243,26 +1247,26 @@ ua([
1243
1247
  V("design:paramtypes", []),
1244
1248
  V("design:returntype", void 0)
1245
1249
  ], Le.prototype, "render", null);
1246
- Le.style = ma;
1247
- const ka = ':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)}', va = ka;
1248
- var Ca = function(e, a, n, l) {
1249
- var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
1250
+ Le.style = un;
1251
+ const vn = ':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)}', Cn = vn;
1252
+ var _n = function(e, n, a, l) {
1253
+ var r = arguments.length, t = r < 3 ? n : l === null ? l = Object.getOwnPropertyDescriptor(n, a) : l, s;
1250
1254
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1251
- t = Reflect.decorate(e, a, n, l);
1255
+ t = Reflect.decorate(e, n, a, l);
1252
1256
  else
1253
1257
  for (var c = e.length - 1; c >= 0; c--)
1254
- (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(a, n, t) : s(a, n)) || t);
1255
- return r > 3 && t && Object.defineProperty(a, n, t), t;
1256
- }, ee = function(e, a) {
1258
+ (s = e[c]) && (t = (r < 3 ? s(t) : r > 3 ? s(n, a, t) : s(n, a)) || t);
1259
+ return r > 3 && t && Object.defineProperty(n, a, t), t;
1260
+ }, ee = function(e, n) {
1257
1261
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1258
- return Reflect.metadata(e, a);
1262
+ return Reflect.metadata(e, n);
1259
1263
  };
1260
1264
  const Ie = class {
1261
1265
  constructor(e) {
1262
- w(this, e), this.timeslotSelected = f(this, "timeslotSelected", 7), this.timeslotConfirmed = f(this, "timeslotConfirmed", 7), this.validateTimeslotError = f(this, "validateTimeslotError", 7), this.handleConfirmedTimeslot = async (a, n) => {
1263
- a.preventDefault(), d("[nylas-timeslot-picker] Confirm timeslot", n), n && this.timeslotConfirmed.emit({ timeslot: n, host: this.host });
1264
- }, this.handleMouseEnter = (a) => {
1265
- this.hoveredTimeslotIndex = a;
1266
+ 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) => {
1267
+ n.preventDefault(), d("[nylas-timeslot-picker] Confirm timeslot", a), a && this.timeslotConfirmed.emit({ timeslot: a, host: this.host });
1268
+ }, this.handleMouseEnter = (n) => {
1269
+ this.hoveredTimeslotIndex = n;
1266
1270
  }, this.handleMouseLeave = () => {
1267
1271
  this.hoveredTimeslotIndex = -1;
1268
1272
  }, this.availability = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedDate = /* @__PURE__ */ new Date(), this.selectedLanguage = void 0, this.hour12 = void 0, this.times = [], this.hoveredTimeslotIndex = void 0, this.selectedTimeslotIndex = void 0;
@@ -1271,16 +1275,16 @@ const Ie = class {
1271
1275
  i.changeLanguage(e);
1272
1276
  }
1273
1277
  selectedDateChanged(e) {
1274
- var a;
1278
+ var n;
1275
1279
  if (d("[nylas-timeslot-picker] Selected date changed", { newVal: e }), e && (this.selectedTimeslotIndex = "", typeof e < "u")) {
1276
- const n = (a = this.availability) == null ? void 0 : a.filter((l) => $(l.start_time, e, this.selectedTimezone)).map((l) => l);
1277
- this.times = n || [];
1280
+ const a = (n = this.availability) == null ? void 0 : n.filter((l) => M(l.start_time, e, this.selectedTimezone)).map((l) => l);
1281
+ this.times = a || [];
1278
1282
  }
1279
1283
  }
1280
1284
  availabilityChanged(e) {
1281
1285
  if (d("[nylas-timeslot-picker] Available times changed", { newVal: e, selectedDate: this.selectedDate }), typeof e < "u") {
1282
- const a = e == null ? void 0 : e.filter((n) => this.selectedDate && $(n.start_time, this.selectedDate, this.selectedTimezone)).map((n) => n);
1283
- this.times = a || [];
1286
+ const n = e == null ? void 0 : e.filter((a) => this.selectedDate && M(a.start_time, this.selectedDate, this.selectedTimezone)).map((a) => a);
1287
+ this.times = n || [];
1284
1288
  }
1285
1289
  }
1286
1290
  themeConfigChanged(e) {
@@ -1294,21 +1298,21 @@ const Ie = class {
1294
1298
  d("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
1295
1299
  }
1296
1300
  async componentDidLoad() {
1297
- var a;
1301
+ var n;
1298
1302
  d("[nylas-timeslot-picker] Component did load");
1299
- const e = (a = this.availability) == null ? void 0 : a.filter((n) => this.selectedDate && $(n.start_time, this.selectedDate, this.selectedTimezone)).map((n) => n);
1303
+ const e = (n = this.availability) == null ? void 0 : n.filter((a) => this.selectedDate && M(a.start_time, this.selectedDate, this.selectedTimezone)).map((a) => a);
1300
1304
  this.times = e || [], this.applyThemeConfig(this.themeConfig);
1301
1305
  }
1302
1306
  applyThemeConfig(e) {
1303
1307
  if (e)
1304
- for (const [a, n] of Object.entries(e))
1305
- this.host.style.setProperty(`${a}`, n);
1308
+ for (const [n, a] of Object.entries(e))
1309
+ this.host.style.setProperty(`${n}`, a);
1306
1310
  }
1307
- getTimeslotId(e, a) {
1308
- return `${e.toLocaleDateString()}-${a}`;
1311
+ getTimeslotId(e, n) {
1312
+ return `${e.toLocaleDateString()}-${n}`;
1309
1313
  }
1310
- onClickSelectTime(e, a) {
1311
- d("[nylas-timeslot-picker] Time selected", e, a), this.selectedTimeslotIndex = this.getTimeslotId(e.start_time, a), this.timeslotSelected.emit({
1314
+ onClickSelectTime(e, n) {
1315
+ d("[nylas-timeslot-picker] Time selected", e, n), this.selectedTimeslotIndex = this.getTimeslotId(e.start_time, n), this.timeslotSelected.emit({
1312
1316
  start_time: e.start_time,
1313
1317
  end_time: e.end_time,
1314
1318
  emails: e.emails,
@@ -1318,36 +1322,36 @@ const Ie = class {
1318
1322
  calendar_id: e == null ? void 0 : e.calendar_id
1319
1323
  });
1320
1324
  }
1321
- async emitValidateTimeslotError(e, a) {
1322
- this.validateTimeslotError.emit({ error: e, type: a });
1325
+ async emitValidateTimeslotError(e, n) {
1326
+ this.validateTimeslotError.emit({ error: e, type: n });
1323
1327
  }
1324
1328
  getTimeSlotLabel(e) {
1325
- const a = S[this.selectedLanguage || "en"], n = new Intl.DateTimeFormat(a, {
1329
+ const n = S[this.selectedLanguage || "en"], a = new Intl.DateTimeFormat(n, {
1326
1330
  hour: "2-digit",
1327
1331
  minute: "2-digit",
1328
1332
  timeZone: this.selectedTimezone,
1329
1333
  hour12: this.hour12
1330
1334
  });
1331
- return `${n.format(e.start_time)} - ${n.format(e.end_time)}`;
1335
+ return `${a.format(e.start_time)} - ${a.format(e.end_time)}`;
1332
1336
  }
1333
1337
  render() {
1334
1338
  const e = S[this.selectedLanguage || "en"];
1335
1339
  if (this.isLoading)
1336
- return o(k, null, o("div", { class: "loading" }, new Array(6).fill(0).map((n, l) => o("div", { class: "timeslot-skeleton", style: { animationDelay: `${l * 20}ms` } }))));
1340
+ return o(k, null, o("div", { class: "loading" }, new Array(6).fill(0).map((a, l) => o("div", { class: "timeslot-skeleton", style: { animationDelay: `${l * 20}ms` } }))));
1337
1341
  if (this.availability && this.availability.length === 0)
1338
1342
  return o(k, null, o("div", { class: "empty" }, o("span", null, "No dates available")));
1339
- const a = this.times.filter((n) => {
1340
- const l = (n == null ? void 0 : n.event_id) || (n == null ? void 0 : n.master_id), r = typeof (n == null ? void 0 : n.capacity) == "number" && (n == null ? void 0 : n.capacity) > 0;
1343
+ const n = this.times.filter((a) => {
1344
+ 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;
1341
1345
  return !(l && !r);
1342
1346
  });
1343
- return (!this.times || this.times.length === 0 || a.length === 0) && this.selectedDate ? o(k, null, o("div", { class: "empty" }, o("span", null, "No time slots available for selected date"))) : this.selectedDate ? o(k, { part: "ntp" }, o("div", { class: "time-picker-wrapper", part: "ntp__time-picker-wrapper" }, o("div", { class: "timeslots", part: "ntp__timeslots" }, a.map((n, l) => {
1347
+ return (!this.times || this.times.length === 0 || n.length === 0) && this.selectedDate ? o(k, null, o("div", { class: "empty" }, o("span", null, "No time slots available for selected date"))) : this.selectedDate ? o(k, { part: "ntp" }, o("div", { class: "time-picker-wrapper", part: "ntp__time-picker-wrapper" }, o("div", { class: "timeslots", part: "ntp__timeslots" }, n.map((a, l) => {
1344
1348
  var t, s, c, b;
1345
- const r = typeof (n == null ? void 0 : n.capacity) == "number" && (n == null ? void 0 : n.capacity) > 0;
1346
- return o("button", { part: `ntp__timeslot ${((s = (t = this.selectedTimeslot) == null ? void 0 : t.start_time) == null ? void 0 : s.getTime()) === n.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, class: {
1349
+ const r = typeof (a == null ? void 0 : a.capacity) == "number" && (a == null ? void 0 : a.capacity) > 0;
1350
+ return o("button", { part: `ntp__timeslot ${((s = (t = this.selectedTimeslot) == null ? void 0 : t.start_time) == null ? void 0 : s.getTime()) === a.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, class: {
1347
1351
  time: !0,
1348
- selected: typeof this.selectedTimeslot < "u" && ((b = (c = this.selectedTimeslot) == null ? void 0 : c.start_time) == null ? void 0 : b.getTime()) === n.start_time.getTime()
1349
- }, onClick: () => this.onClickSelectTime(n, l), onMouseEnter: () => this.handleMouseEnter(l), onMouseLeave: () => this.handleMouseLeave() }, o("div", { class: "time-label", part: "ntp__time-label" }, this.hoveredTimeslotIndex == l || this.selectedTimeslotIndex == this.getTimeslotId(n.start_time, l) ? this.getTimeSlotLabel(n) : n.start_time.toLocaleTimeString(e, { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone, hour12: this.hour12 }), o("span", { class: "spots" }, r ? `${n == null ? void 0 : n.capacity} spots left` : null)));
1350
- })), this.selectedTimeslot && o("div", { class: "footer" }, o("button-component", { variant: "primary", onClick: (n) => this.handleConfirmedTimeslot(n, this.selectedTimeslot), part: "ntp__button-primary" }, o("slot", { name: "timeslot-picker-cta-label" }, i.t("nextButton")))))) : o(k, null);
1352
+ selected: typeof this.selectedTimeslot < "u" && ((b = (c = this.selectedTimeslot) == null ? void 0 : c.start_time) == null ? void 0 : b.getTime()) === a.start_time.getTime()
1353
+ }, onClick: () => this.onClickSelectTime(a, l), onMouseEnter: () => this.handleMouseEnter(l), onMouseLeave: () => this.handleMouseLeave() }, o("div", { class: "time-label", part: "ntp__time-label" }, this.hoveredTimeslotIndex == l || this.selectedTimeslotIndex == this.getTimeslotId(a.start_time, l) ? this.getTimeSlotLabel(a) : a.start_time.toLocaleTimeString(e, { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone, hour12: this.hour12 }), o("span", { class: "spots" }, r ? `${a == null ? void 0 : a.capacity} spots left` : null)));
1354
+ })), this.selectedTimeslot && o("div", { class: "footer" }, o("button-component", { variant: "primary", onClick: (a) => this.handleConfirmedTimeslot(a, this.selectedTimeslot), part: "ntp__button-primary" }, o("slot", { name: "timeslot-picker-cta-label" }, i.t("nextButton")))))) : o(k, null);
1351
1355
  }
1352
1356
  get host() {
1353
1357
  return T(this);
@@ -1361,7 +1365,7 @@ const Ie = class {
1361
1365
  };
1362
1366
  }
1363
1367
  };
1364
- Ca([
1368
+ _n([
1365
1369
  B({
1366
1370
  name: "nylas-timeslot-picker",
1367
1371
  stateToProps: /* @__PURE__ */ new Map([
@@ -1375,23 +1379,23 @@ Ca([
1375
1379
  ["scheduler.hour12", "hour12"]
1376
1380
  ]),
1377
1381
  eventToProps: {
1378
- timeslotSelected: async (e, a) => {
1379
- d("nylas-timeslot-picker", "timeslotSelected", e.detail), a.scheduler.selectTime(e.detail);
1382
+ timeslotSelected: async (e, n) => {
1383
+ d("nylas-timeslot-picker", "timeslotSelected", e.detail), n.scheduler.selectTime(e.detail);
1380
1384
  },
1381
- timeslotConfirmed: async (e, a) => {
1385
+ timeslotConfirmed: async (e, n) => {
1382
1386
  var r;
1383
1387
  d("nylas-timeslot-picker", "timeslotConfirmed", e.detail);
1384
- const { timeslot: n, host: l } = e.detail;
1385
- if (n && (n != null && n.event_id) && (n != null && n.capacity)) {
1386
- const t = await a.scheduler.validateGroupEventTimeslot(n);
1388
+ const { timeslot: a, host: l } = e.detail;
1389
+ if (a && (a != null && a.event_id) && (a != null && a.capacity)) {
1390
+ const t = await n.scheduler.validateGroupEventTimeslot(a);
1387
1391
  if (t && "error" in t) {
1388
1392
  const s = ((r = t.error) == null ? void 0 : r.message) || "An error occurred while validating the timeslot";
1389
1393
  s === "Event is full" ? l.emitValidateTimeslotError(s, "info") : l.emitValidateTimeslotError(s, "error");
1390
1394
  }
1391
1395
  } else
1392
- a.scheduler.toggleAdditionalData(!0);
1396
+ n.scheduler.toggleAdditionalData(!0);
1393
1397
  },
1394
- validateTimeslotError: async (e, a) => {
1398
+ validateTimeslotError: async (e, n) => {
1395
1399
  d("nylas-timeslot-picker", "validateTimeslotError", e.detail);
1396
1400
  }
1397
1401
  },
@@ -1401,7 +1405,7 @@ Ca([
1401
1405
  ee("design:paramtypes", []),
1402
1406
  ee("design:returntype", void 0)
1403
1407
  ], Ie.prototype, "render", null);
1404
- Ie.style = va;
1408
+ Ie.style = Cn;
1405
1409
  export {
1406
1410
  ve as nylas_booked_event_card,
1407
1411
  Ce as nylas_booking_form,
@@ -1410,8 +1414,8 @@ export {
1410
1414
  xe as nylas_confirmed_event_card,
1411
1415
  Ee as nylas_date_picker,
1412
1416
  Be as nylas_locale_switch,
1413
- ca as nylas_logo,
1414
- ya as nylas_notification,
1417
+ dn as nylas_logo,
1418
+ bn as nylas_notification,
1415
1419
  De as nylas_organizer_confirmation_card,
1416
1420
  Le as nylas_selected_event_card,
1417
1421
  Ie as nylas_timeslot_picker