@nylas/react 1.4.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +7 -0
  2. package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +1 -0
  3. package/dist/{add-circle-icon_2.entry-615fc101.js → add-circle-icon_2.entry-b4bbcfee.js} +3 -3
  4. package/dist/archive-icon.entry-a2492cf3.js +16 -0
  5. package/dist/archive-icon.entry-e48d2356.cjs +1 -0
  6. package/dist/{arrow-icon.entry-da152ec2.js → arrow-icon.entry-9414299f.js} +5 -5
  7. package/dist/arrow-icon.entry-b1ecb2aa.cjs +1 -0
  8. package/dist/{bold-icon.entry-61046c15.js → bold-icon.entry-b72aed9f.js} +4 -4
  9. package/dist/{bold-icon.entry-58679992.cjs → bold-icon.entry-c781e9c1.cjs} +1 -1
  10. package/dist/{button-component_2.entry-db53e00a.js → button-component_2.entry-36e49459.js} +9 -9
  11. package/dist/{button-component_2.entry-53bfdc19.cjs → button-component_2.entry-73f76545.cjs} +1 -1
  12. package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +6 -0
  13. package/dist/{calendar-agenda-fill-icon_36.entry-76796ea7.js → calendar-agenda-fill-icon_36.entry-efa7ad26.js} +100 -100
  14. package/dist/{calendar-cancel-icon.entry-e5032d71.cjs → calendar-cancel-icon.entry-01c388eb.cjs} +1 -1
  15. package/dist/{calendar-cancel-icon.entry-f3b8ae99.js → calendar-cancel-icon.entry-0f739a8a.js} +4 -4
  16. package/dist/{calendar-check-icon_2.entry-7303362a.cjs → calendar-check-icon_2.entry-5febbadf.cjs} +1 -1
  17. package/dist/{calendar-check-icon_2.entry-27dc91f7.js → calendar-check-icon_2.entry-dfb0036d.js} +3 -3
  18. package/dist/{calendar-icon.entry-4f432baf.cjs → calendar-icon.entry-9743e0b7.cjs} +1 -1
  19. package/dist/{calendar-icon.entry-48fc45d6.js → calendar-icon.entry-f197396d.js} +2 -2
  20. package/dist/{checkbox-component.entry-8fad4faf.cjs → checkbox-component.entry-1aa5782f.cjs} +1 -1
  21. package/dist/{checkbox-component.entry-a15ffc4c.js → checkbox-component.entry-72a6aa72.js} +4 -4
  22. package/dist/checkmark-icon_15.entry-35dd97b7.cjs +5 -0
  23. package/dist/{checkmark-icon_15.entry-9f926a70.js → checkmark-icon_15.entry-5c09cff5.js} +225 -223
  24. package/dist/{chevron-icon_3.entry-5130fbba.js → chevron-icon_3.entry-4a72f211.js} +6 -6
  25. package/dist/chevron-icon_3.entry-e0608b7c.cjs +1 -0
  26. package/dist/{clock-icon_4.entry-40a393c9.js → clock-icon_4.entry-0afe79c2.js} +8 -8
  27. package/dist/{clock-icon_4.entry-ac65deae.cjs → clock-icon_4.entry-202ce025.cjs} +1 -1
  28. package/dist/constants-f51538ef-cd2a67c4.cjs +1 -0
  29. package/dist/{constants-3d8016e3-3c080f00.js → constants-f51538ef-e0a5f026.js} +27 -32
  30. package/dist/{customParseFormat-a4d9ea69-763f219e.cjs → customParseFormat-d1de5ed0-65a0bba3.cjs} +1 -1
  31. package/dist/{customParseFormat-a4d9ea69-7caebeb2.js → customParseFormat-d1de5ed0-c0ef002d.js} +1 -1
  32. package/dist/{delete-icon.entry-78e44eba.js → delete-icon.entry-580bfcc9.js} +4 -4
  33. package/dist/{delete-icon.entry-770dac8c.cjs → delete-icon.entry-762ac892.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-d331f844.cjs → document-refresh-icon.entry-4e0f0c61.cjs} +1 -1
  35. package/dist/document-refresh-icon.entry-e500b4e3.js +16 -0
  36. package/dist/elements/index.d.ts +0 -8
  37. package/dist/{feedbackSync-57bb471a-ee800a95.js → feedbackSync-172f942c-42124493.js} +1 -1
  38. package/dist/{feedbackSync-57bb471a-5afb7715.cjs → feedbackSync-172f942c-62f72bd2.cjs} +1 -1
  39. package/dist/{folder-icon.entry-163e0aee.cjs → folder-icon.entry-2694e253.cjs} +1 -1
  40. package/dist/{folder-icon.entry-42650400.js → folder-icon.entry-54c3cc66.js} +2 -2
  41. package/dist/{forward-icon.entry-d60b6e31.js → forward-icon.entry-5e540f05.js} +5 -5
  42. package/dist/{forward-icon.entry-0a499b38.cjs → forward-icon.entry-f07102d8.cjs} +1 -1
  43. package/dist/{globe-icon_2.entry-19359092.cjs → globe-icon_2.entry-14a4c168.cjs} +1 -1
  44. package/dist/{globe-icon_2.entry-5afa8049.js → globe-icon_2.entry-aaceb196.js} +90 -80
  45. package/dist/{google-logo-icon_6.entry-d2febb78.js → google-logo-icon_6.entry-00d40db2.js} +473 -439
  46. package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +2 -0
  47. package/dist/{google-meet-icon_5.entry-4a94137f.cjs → google-meet-icon_5.entry-6c20e149.cjs} +1 -1
  48. package/dist/{google-meet-icon_5.entry-7b1b36f2.js → google-meet-icon_5.entry-f1f05903.js} +12 -12
  49. package/dist/inbox-icon.entry-9a4628f2.cjs +1 -0
  50. package/dist/inbox-icon.entry-aa78ba8c.js +16 -0
  51. package/dist/index-1e75512f.cjs +57 -0
  52. package/dist/{index-9243e481.js → index-e8380973.js} +5687 -4802
  53. package/dist/{index.es-13ff6710-0f748bd2.cjs → index.es-fc8588de-034ead51.cjs} +6 -6
  54. package/dist/{index.es-13ff6710-73fa05e6.js → index.es-fc8588de-c943eef6.js} +827 -1065
  55. package/dist/{info-icon_2.entry-ba869bab.js → info-icon_2.entry-b3b313ab.js} +3 -3
  56. package/dist/{info-icon_2.entry-6667923a.cjs → info-icon_2.entry-bbcefb9a.cjs} +1 -1
  57. package/dist/{input-component.entry-7396acf1.js → input-component.entry-401b9ba5.js} +9 -9
  58. package/dist/{input-component.entry-db84f917.cjs → input-component.entry-ec8e8e7c.cjs} +1 -1
  59. package/dist/input-dropdown_2.entry-8cb11601.cjs +1 -0
  60. package/dist/{input-dropdown_2.entry-20f2031b.js → input-dropdown_2.entry-c37f392c.js} +6 -6
  61. package/dist/italic-icon.entry-0e85d0d9.js +16 -0
  62. package/dist/italic-icon.entry-6675558a.cjs +1 -0
  63. package/dist/{multi-select-dropdown_2.entry-81740b34.js → multi-select-dropdown_2.entry-3eecf18a.js} +22 -16
  64. package/dist/{multi-select-dropdown_2.entry-8e07b42b.cjs → multi-select-dropdown_2.entry-e37c501d.cjs} +1 -1
  65. package/dist/{nylas-booked-event-card_12.entry-e56c8e92.js → nylas-booked-event-card_12.entry-e7464ae7.js} +226 -224
  66. package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +1 -0
  67. package/dist/{nylas-event-calendar_3.entry-2504c7c0.js → nylas-event-calendar_3.entry-9abd46c2.js} +2360 -2238
  68. package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +11 -0
  69. package/dist/{nylas-form-card.entry-98903549.js → nylas-form-card.entry-a3186807.js} +3 -3
  70. package/dist/{nylas-form-card.entry-c406e3d3.cjs → nylas-form-card.entry-cbb00fba.cjs} +1 -1
  71. package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +2 -0
  72. package/dist/{nylas-scheduler-editor.entry-670cc0b8.js → nylas-scheduler-editor.entry-7b188a38.js} +83 -50
  73. package/dist/nylas-scheduling.entry-970240f6.cjs +1 -0
  74. package/dist/nylas-scheduling.entry-e9929b03.js +968 -0
  75. package/dist/{person-icon.entry-bdaa899b.cjs → person-icon.entry-8998fdb8.cjs} +1 -1
  76. package/dist/{person-icon.entry-3bca6e51.js → person-icon.entry-d2856f08.js} +4 -4
  77. package/dist/{play-icon.entry-ecc86e85.cjs → play-icon.entry-99eb969b.cjs} +1 -1
  78. package/dist/play-icon.entry-f949a80f.js +16 -0
  79. package/dist/{radio-button-group.entry-9851076c.js → radio-button-group.entry-bc3b12fd.js} +2 -2
  80. package/dist/{radio-button-group.entry-6965ad34.cjs → radio-button-group.entry-d66edd04.cjs} +1 -1
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +96 -104
  83. package/dist/{refresh-icon.entry-90d52ab3.cjs → refresh-icon.entry-99d1982d.cjs} +1 -1
  84. package/dist/{refresh-icon.entry-d776c4a7.js → refresh-icon.entry-d6df8b1c.js} +2 -2
  85. package/dist/{register-component-02a05665-2e992621.js → register-component-62d792d4-448b6a43.js} +1 -1
  86. package/dist/{register-component-02a05665-75652287.cjs → register-component-62d792d4-c6e7d129.cjs} +1 -1
  87. package/dist/{reply-all-icon.entry-24f7c0fe.js → reply-all-icon.entry-7ebf01a0.js} +2 -2
  88. package/dist/{reply-all-icon.entry-6e49eb03.cjs → reply-all-icon.entry-d7c44139.cjs} +1 -1
  89. package/dist/{reply-icon.entry-7fff25c9.cjs → reply-icon.entry-058c00e8.cjs} +1 -1
  90. package/dist/{reply-icon.entry-d5d26d65.js → reply-icon.entry-d1622d85.js} +5 -5
  91. package/dist/sent-icon.entry-6c604512.cjs +1 -0
  92. package/dist/sent-icon.entry-fe12bc2f.js +16 -0
  93. package/dist/spam-icon.entry-45e5292e.cjs +1 -0
  94. package/dist/spam-icon.entry-b97c7709.js +16 -0
  95. package/dist/{star-icon.entry-3c57a35c.cjs → star-icon.entry-4db13fdb.cjs} +1 -1
  96. package/dist/{star-icon.entry-c2e743a9.js → star-icon.entry-98b80645.js} +6 -6
  97. package/dist/{stop-icon.entry-0b9563d5.js → stop-icon.entry-0290fd30.js} +2 -2
  98. package/dist/{stop-icon.entry-cf4c4e63.cjs → stop-icon.entry-9d7b53fd.cjs} +1 -1
  99. package/dist/{textarea-component.entry-2eccc173.cjs → textarea-component.entry-9b474ab5.cjs} +1 -1
  100. package/dist/{textarea-component.entry-60e7a4d0.js → textarea-component.entry-a62c257b.js} +2 -2
  101. package/dist/{toggle-switch.entry-612744fd.cjs → toggle-switch.entry-5dbfcd48.cjs} +1 -1
  102. package/dist/{toggle-switch.entry-0a6b01e6.js → toggle-switch.entry-e423b793.js} +2 -2
  103. package/dist/{translate-icon.entry-ede5f77d.js → translate-icon.entry-60c55a2e.js} +4 -4
  104. package/dist/{translate-icon.entry-8adc4146.cjs → translate-icon.entry-f82fa6fc.cjs} +1 -1
  105. package/dist/trash-fill-icon.entry-095caae3.cjs +1 -0
  106. package/dist/trash-fill-icon.entry-825055fd.js +16 -0
  107. package/dist/{underline-icon.entry-d2fe2da6.cjs → underline-icon.entry-0807a43d.cjs} +1 -1
  108. package/dist/{underline-icon.entry-b2b43ba2.js → underline-icon.entry-40028bc6.js} +2 -2
  109. package/dist/{warning-icon.entry-0a5c7337.js → warning-icon.entry-24e37759.js} +2 -2
  110. package/dist/{warning-icon.entry-85822f4d.cjs → warning-icon.entry-fce7c14f.cjs} +1 -1
  111. package/package.json +2 -2
  112. package/dist/add-circle-icon_2.entry-e616ece6.cjs +0 -1
  113. package/dist/archive-icon.entry-41938a61.cjs +0 -1
  114. package/dist/archive-icon.entry-bd81d2d9.js +0 -16
  115. package/dist/arrow-icon.entry-4103be57.cjs +0 -1
  116. package/dist/calendar-agenda-fill-icon_36.entry-917e4a9d.cjs +0 -6
  117. package/dist/checkmark-icon_15.entry-08c8b107.cjs +0 -5
  118. package/dist/chevron-icon_3.entry-2f75c3c4.cjs +0 -1
  119. package/dist/constants-3d8016e3-fd6c3848.cjs +0 -1
  120. package/dist/document-refresh-icon.entry-f6dfe744.js +0 -16
  121. package/dist/google-logo-icon_6.entry-896a10a5.cjs +0 -2
  122. package/dist/inbox-icon.entry-24ec450f.cjs +0 -1
  123. package/dist/inbox-icon.entry-b71acde0.js +0 -16
  124. package/dist/index-efb6db79.cjs +0 -57
  125. package/dist/input-dropdown_2.entry-0c219620.cjs +0 -1
  126. package/dist/italic-icon.entry-a9324a8a.cjs +0 -1
  127. package/dist/italic-icon.entry-c42f8112.js +0 -16
  128. package/dist/notebook-store-b61693cd-5657061b.js +0 -14
  129. package/dist/notebook-store-b61693cd-6515d345.cjs +0 -5
  130. package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +0 -1
  131. package/dist/nylas-call-summary.entry-4bf7284f.cjs +0 -1
  132. package/dist/nylas-call-summary.entry-ad6fb46a.js +0 -16
  133. package/dist/nylas-event-calendar_3.entry-f747f6a8.cjs +0 -6
  134. package/dist/nylas-if-state.entry-6b071705.cjs +0 -1
  135. package/dist/nylas-if-state.entry-7468854a.js +0 -95
  136. package/dist/nylas-key-points.entry-7af8da1a.cjs +0 -1
  137. package/dist/nylas-key-points.entry-c186445e.js +0 -29
  138. package/dist/nylas-login.entry-171bd025.cjs +0 -1
  139. package/dist/nylas-login.entry-d85c1473.js +0 -74
  140. package/dist/nylas-provider.entry-ab1f6886.js +0 -265
  141. package/dist/nylas-provider.entry-e4231b93.cjs +0 -1
  142. package/dist/nylas-scheduler-editor.entry-d522ca98.cjs +0 -2
  143. package/dist/nylas-scheduling.entry-9e81c6fc.js +0 -439
  144. package/dist/nylas-scheduling.entry-c52edb14.cjs +0 -1
  145. package/dist/nylas-transcript.entry-a1fa7e17.cjs +0 -6
  146. package/dist/nylas-transcript.entry-fb39b5af.js +0 -128
  147. package/dist/nylas-video-player.entry-25e8cd9a.js +0 -39
  148. package/dist/nylas-video-player.entry-89842545.cjs +0 -1
  149. package/dist/nylas-video-preview.entry-28a0bd60.cjs +0 -1
  150. package/dist/nylas-video-preview.entry-80171531.js +0 -16
  151. package/dist/play-icon.entry-d548464e.js +0 -16
  152. package/dist/scheduler-config-store-d6729d8d-50920e8c.js +0 -29
  153. package/dist/scheduler-config-store-d6729d8d-a0bdda83.cjs +0 -1
  154. package/dist/scheduler-store-fe9e85a4-1dcfddfa.js +0 -533
  155. package/dist/scheduler-store-fe9e85a4-baabf78a.cjs +0 -1
  156. package/dist/sent-icon.entry-42ce5bcb.cjs +0 -1
  157. package/dist/sent-icon.entry-858fe83e.js +0 -16
  158. package/dist/spam-icon.entry-0827144e.js +0 -16
  159. package/dist/spam-icon.entry-bf1a48b6.cjs +0 -1
  160. package/dist/trash-fill-icon.entry-b6456ec8.cjs +0 -1
  161. package/dist/trash-fill-icon.entry-d48f72c5.js +0 -16
@@ -1,7 +1,7 @@
1
- import { r as X, h as n, c as _, d as b, i as p, s as fe, v as se, H as re, g as le, F as ie, j as et } from "./index-9243e481.js";
2
- import { R as de } from "./register-component-02a05665-2e992621.js";
3
- import { C as O, D as Ge, e as tt, b as nt } from "./constants-3d8016e3-3c080f00.js";
4
- import { i as Ae, a as je, c as $e, b as Je, f as Ve } from "./feedbackSync-57bb471a-ee800a95.js";
1
+ import { r as X, h as n, a as _, b, i as d, s as ge, v as re, H as le, g as de, F as ie, j as et } from "./index-e8380973.js";
2
+ import { R as ce } from "./register-component-62d792d4-448b6a43.js";
3
+ import { C as H, D as je, e as tt, b as nt } from "./constants-f51538ef-e0a5f026.js";
4
+ import { i as Ae, a as $e, c as Je, b as Ve, f as Ze } from "./feedbackSync-172f942c-42124493.js";
5
5
  import "react";
6
6
  import "react/jsx-runtime";
7
7
  import "react-dom";
@@ -10,24 +10,24 @@ const at = ".sc-google-logo-icon-h{display:flex}", ot = at, st = class {
10
10
  X(this, e), this.width = "24", this.height = "24";
11
11
  }
12
12
  render() {
13
- return n("svg", { key: "6a2c621ba5bde80fe3adc8427ad0d94df265a2fc", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "87acb19eeb19382c6063360f92c7554039ad2c87", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "3d6abcc6b7755164cd3037df0529793becefce72", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), n("path", { key: "b7961a5e8c0e93b3d8996cf40b845d7741335229", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), n("path", { key: "32a135d689dc72b3a0fc597dea20f88290c1f6ae", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), n("path", { key: "74518d77b48b593df3085f600d38b99abfe368bb", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), n("defs", { key: "0c69b9fad17f8891565bdb5162822cd3c44f6ca0" }, n("clipPath", { key: "3c645b8c42436ad0664b38ce08b42404f4fa541b", id: "clip0_959_12452" }, n("rect", { key: "f6f7b93e206bce48be1739a1b8ae8bc2e8242357", width: 24, height: 24, fill: "white" }))));
13
+ return n("svg", { key: "497d96edf36fb0a0da5dcfd9ad2fe71b3b7ea9a8", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "ff34b10d048568e1f4a7534c71c4a184a7a201e3", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "d04cbd5dadb80fb04a3f97f6cff28ee64d474183", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), n("path", { key: "8d9769691ac47af4bf7a0549162136ee23d2ae2f", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), n("path", { key: "8851626c907a3bb240e2acbd897964953da1c3c1", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), n("path", { key: "52f0ae0c024656288107ed29c0e0e0d3bf25c534", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), n("defs", { key: "2a70dda1a292a31a96ca67b97f17eb9492aa27f0" }, n("clipPath", { key: "fd1204014da069fad95527bb6878bb2639321f7f", id: "clip0_959_12452" }, n("rect", { key: "eb697d55080f8fc14d5f388d30c0f8fb562d1cfb", width: 24, height: 24, fill: "white" }))));
14
14
  }
15
15
  };
16
16
  st.style = ot;
17
- const it = ".sc-microsoft-logo-icon-h{display:flex}", rt = it, lt = class {
17
+ const rt = ".sc-microsoft-logo-icon-h{display:flex}", it = rt, lt = class {
18
18
  constructor(e) {
19
19
  X(this, e), this.width = "22", this.height = "22";
20
20
  }
21
21
  render() {
22
- return n("svg", { key: "43e12d49816520a670de91afdb1cfd1136ba6a8e", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "08c5a9b3a6d34bf5900e6149bf0f732e8fb1f51f", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "ae3d52d82f9727d53a675d17c76eaf82c3d545ac", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "b42837c53c4c0bfc7bbf5676bc82c83e1f3af391", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "eec316af4193848e15630e680e357e4c313c6b6c", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
22
+ return n("svg", { key: "fad699e59d1015d5f6458a851ef64c15d50a11da", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "8a2ec941750b125fd8dc9476b65afae9715e4378", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "085645c16519805acf94427915e6651bb041d022", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "a90f655243dc66642ef28597ee770dc5bd3f7d7d", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "5ea3f196243b29bb0f291f08f7253547a8b574c0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
23
23
  }
24
24
  };
25
- lt.style = rt;
25
+ lt.style = it;
26
26
  var u;
27
27
  (function(e) {
28
28
  e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
29
29
  })(u || (u = {}));
30
- function dt({ id: e, formState: t, activeTab: a }, s) {
30
+ function dt({ id: e, formState: t, activeTab: a }, o) {
31
31
  return n(
32
32
  ie,
33
33
  null,
@@ -106,7 +106,7 @@ function dt({ id: e, formState: t, activeTab: a }, s) {
106
106
  { key: `page-styles-${e}`, class: { hide: a !== u.PageStyles } },
107
107
  n("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
108
  n("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
- n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, s)
109
+ n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, o)
110
110
  ),
111
111
  n(
112
112
  "div",
@@ -116,160 +116,160 @@ function dt({ id: e, formState: t, activeTab: a }, s) {
116
116
  );
117
117
  }
118
118
  const ct = '.sc-nylas-editor-tabs-h{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}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', pt = ct;
119
- var bt = function(e, t, a, s) {
120
- var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
119
+ var bt = function(e, t, a, o) {
120
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
- o = Reflect.decorate(e, t, a, s);
122
+ s = Reflect.decorate(e, t, a, o);
123
123
  else
124
- for (var r = e.length - 1; r >= 0; r--)
125
- (l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
126
- return i > 3 && o && Object.defineProperty(t, a, o), o;
127
- }, be = function(e, t) {
124
+ for (var i = e.length - 1; i >= 0; i--)
125
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
126
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
127
+ }, ue = function(e, t) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(e, t);
130
130
  };
131
- const Ze = class {
131
+ const We = class {
132
132
  constructor(e) {
133
133
  X(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.formSubmissionHandler = async (t) => {
134
- var ge, me, _e, ve, we, ke, Ce, xe, Se, Ee, Te, Fe, Le, Oe, Pe, Be, ze;
134
+ var me, _e, ve, we, ke, Ce, xe, Se, Ee, Te, Fe, Le, Oe, Pe, Be, He, ze;
135
135
  t.preventDefault();
136
136
  const a = await this.formSubmitted.emit();
137
137
  if (b("[nylas-editor-tabs]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
138
- this.error = this.formRef.validationMessage || p.t("fixFormErrors");
138
+ this.error = this.formRef.validationMessage || d.t("fixFormErrors");
139
139
  return;
140
140
  }
141
141
  this.isLoading = !0, this.hasUnsavedChanges = !1;
142
- const i = this.updateFormState();
143
- b("[nylas-editor-tabs]", "formState", i);
144
- const { title: o, description: l, duration: r, availability: d, bookingCalendar: c, location: y, bookingType: g, buffer: C, availableDaysInFuture: E, minCancellationNotice: z, minBookingNotice: P, cancellationPolicy: H, timeslotInterval: S, additionalGuestsHidden: U, hideCancellationOptions: I, hideReschedulingOptions: R, participants: T, participantOpenHours: w, additionalFields: m, participantCalendars: v, conferencing: G, participantBookingCalendars: x, reminders: A, emailTemplate: D, redirectUrl: B, availabilityMethod: j, slug: V, appearance: M, name: Z, disableEmails: Y, organizerLocale: K } = i, k = ((me = (ge = this.selectedConfiguration) == null ? void 0 : ge.participants) == null ? void 0 : me.find((f) => f.is_organizer)) || (T == null ? void 0 : T.find((f) => f.is_organizer)), $ = v && (k != null && k.email) ? v[k == null ? void 0 : k.email] : [], W = ((_e = k == null ? void 0 : k.booking) == null ? void 0 : _e.calendar_id) || c, F = r ? parseInt(r) : 30, L = T && (T == null ? void 0 : T.length) > 0 ? T : [
142
+ const r = this.updateFormState();
143
+ b("[nylas-editor-tabs]", "formState", r);
144
+ const { title: s, description: l, duration: i, availability: c, bookingCalendar: p, location: f, bookingType: m, buffer: w, availableDaysInFuture: x, minCancellationNotice: T, minBookingNotice: z, cancellationPolicy: O, timeslotInterval: S, additionalGuestsHidden: P, hideCancellationOptions: N, hideReschedulingOptions: R, participants: E, participantOpenHours: k, additionalFields: M, participantCalendars: h, conferencing: U, participantBookingCalendars: v, reminders: j, emailTemplate: I, redirectUrl: A, availabilityMethod: B, slug: $, appearance: J, name: K, disableEmails: V, organizerLocale: Y } = r, C = ((_e = (me = this.selectedConfiguration) == null ? void 0 : me.participants) == null ? void 0 : _e.find((g) => g.is_organizer)) || (E == null ? void 0 : E.find((g) => g.is_organizer)), G = h && (C != null && C.email) ? h[C == null ? void 0 : C.email] : [], W = ((ve = C == null ? void 0 : C.booking) == null ? void 0 : ve.calendar_id) || p, F = i ? parseInt(i) : 30, L = E && (E == null ? void 0 : E.length) > 0 ? E : [
145
145
  {
146
- name: (k == null ? void 0 : k.name) ?? ((ve = this.currentUser) == null ? void 0 : ve.name) ?? "",
147
- email: (k == null ? void 0 : k.email) ?? ((we = this.currentUser) == null ? void 0 : we.email) ?? "",
146
+ name: (C == null ? void 0 : C.name) ?? ((we = this.currentUser) == null ? void 0 : we.name) ?? "",
147
+ email: (C == null ? void 0 : C.email) ?? ((ke = this.currentUser) == null ? void 0 : ke.email) ?? "",
148
148
  is_organizer: !0,
149
- timezone: (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
149
+ timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
150
150
  availability: {
151
- calendar_ids: c && c !== "" ? [c] : ["primary"],
151
+ calendar_ids: p && p !== "" ? [p] : ["primary"],
152
152
  open_hours: []
153
153
  },
154
154
  booking: {
155
- calendar_id: c && c !== "" ? c : "primary"
155
+ calendar_id: p && p !== "" ? p : "primary"
156
156
  }
157
157
  }
158
158
  ];
159
- let N = j || (((xe = (Ce = (ke = this.selectedConfiguration) == null ? void 0 : ke.availability) == null ? void 0 : Ce.availability_rules) == null ? void 0 : xe.availability_method) ?? "collective");
160
- this.selectedEventType && this.selectedEventType !== O.group && (N = this.selectedEventType === O.one_on_one ? O.collective : this.selectedEventType), console.log("availabilityMethodSelected", N);
159
+ let D = B || (((Se = (xe = (Ce = this.selectedConfiguration) == null ? void 0 : Ce.availability) == null ? void 0 : xe.availability_rules) == null ? void 0 : Se.availability_method) ?? "collective");
160
+ this.selectedEventType && this.selectedEventType !== H.group && (D = this.selectedEventType === H.one_on_one ? H.collective : this.selectedEventType), console.log("availabilityMethodSelected", D);
161
161
  const q = {
162
- ...((Se = this.selectedConfiguration) == null ? void 0 : Se.id) && { id: this.selectedConfiguration.id },
163
- version: ((Ee = this.selectedConfiguration) == null ? void 0 : Ee.version) ?? "1.0.0",
164
- slug: V,
165
- name: Z,
162
+ ...((Ee = this.selectedConfiguration) == null ? void 0 : Ee.id) && { id: this.selectedConfiguration.id },
163
+ version: ((Te = this.selectedConfiguration) == null ? void 0 : Te.version) ?? "1.0.0",
164
+ slug: $,
165
+ name: K,
166
166
  availability: {
167
167
  duration_minutes: F,
168
168
  interval_minutes: (S == null ? void 0 : S.interval) ?? F,
169
169
  round_to: S == null ? void 0 : S.roundTo,
170
170
  availability_rules: {
171
- availability_method: N,
172
- buffer: C || { before: 0, after: 0 },
173
- default_open_hours: (d == null ? void 0 : d.openHours) ?? ((Le = (Fe = (Te = this.selectedConfiguration) == null ? void 0 : Te.availability) == null ? void 0 : Fe.availability_rules) == null ? void 0 : Le.default_open_hours) ?? Ge,
174
- round_robin_group_id: ((Be = (Pe = (Oe = this.selectedConfiguration) == null ? void 0 : Oe.availability) == null ? void 0 : Pe.availability_rules) == null ? void 0 : Be.round_robin_group_id) ?? ""
171
+ availability_method: D,
172
+ buffer: w || { before: 0, after: 0 },
173
+ default_open_hours: (c == null ? void 0 : c.openHours) ?? ((Oe = (Le = (Fe = this.selectedConfiguration) == null ? void 0 : Fe.availability) == null ? void 0 : Le.availability_rules) == null ? void 0 : Oe.default_open_hours) ?? je,
174
+ round_robin_group_id: ((He = (Be = (Pe = this.selectedConfiguration) == null ? void 0 : Pe.availability) == null ? void 0 : Be.availability_rules) == null ? void 0 : He.round_robin_group_id) ?? ""
175
175
  }
176
176
  },
177
177
  participants: [
178
- ...L ? L.map((f) => {
179
- var He, Ue, Ie, Ne, Re, De;
180
- let Q = (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
181
- if ((He = w == null ? void 0 : w[f.email]) != null && He.length && (Q = (Ie = (Ue = w == null ? void 0 : w[f.email]) == null ? void 0 : Ue[0]) == null ? void 0 : Ie.timezone), f.is_organizer) {
182
- const Me = x != null && x[f.email] ? x == null ? void 0 : x[f.email] : W || "primary", pe = v != null && v[f.email] ? v == null ? void 0 : v[f.email] : $ != null && $.length ? $ : ["primary"], Xe = pe.length === 1 && pe[0] === "primary";
178
+ ...L ? L.map((g) => {
179
+ var Ne, Ue, Ie, De, Re, Me;
180
+ let Q = (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
181
+ if ((Ne = k == null ? void 0 : k[g.email]) != null && Ne.length && (Q = (Ie = (Ue = k == null ? void 0 : k[g.email]) == null ? void 0 : Ue[0]) == null ? void 0 : Ie.timezone), g.is_organizer) {
182
+ const Ge = v != null && v[g.email] ? v == null ? void 0 : v[g.email] : W || "primary", be = h != null && h[g.email] ? h == null ? void 0 : h[g.email] : G != null && G.length ? G : ["primary"], Xe = be.length === 1 && be[0] === "primary";
183
183
  return {
184
- name: f.name ?? "",
185
- email: f.email,
184
+ name: g.name ?? "",
185
+ email: g.email,
186
186
  is_organizer: !0,
187
187
  timezone: Q,
188
188
  availability: {
189
- calendar_ids: Xe ? [Me] : pe,
190
- open_hours: (w == null ? void 0 : w[f.email]) ?? ((Ne = f.availability) == null ? void 0 : Ne.open_hours) ?? []
189
+ calendar_ids: Xe ? [Ge] : be,
190
+ open_hours: (k == null ? void 0 : k[g.email]) ?? ((De = g.availability) == null ? void 0 : De.open_hours) ?? []
191
191
  },
192
192
  booking: {
193
- calendar_id: Me
193
+ calendar_id: Ge
194
194
  }
195
195
  };
196
196
  }
197
- const ee = x != null && x[f.email] ? { calendar_id: x == null ? void 0 : x[f.email] } : (f == null ? void 0 : f.booking) ?? void 0, ce = (v == null ? void 0 : v[f.email]) ?? ((Re = f.availability) == null ? void 0 : Re.calendar_ids) ?? ["primary"], Qe = ce.length === 1 && ce[0] === "primary";
197
+ const ee = v != null && v[g.email] ? { calendar_id: v == null ? void 0 : v[g.email] } : (g == null ? void 0 : g.booking) ?? void 0, pe = (h == null ? void 0 : h[g.email]) ?? ((Re = g.availability) == null ? void 0 : Re.calendar_ids) ?? ["primary"], Qe = pe.length === 1 && pe[0] === "primary";
198
198
  return {
199
- ...f,
199
+ ...g,
200
200
  timezone: Q,
201
- availability: f.availability ? {
202
- calendar_ids: Qe && typeof ee < "u" ? [ee == null ? void 0 : ee.calendar_id] : ce,
203
- open_hours: (w == null ? void 0 : w[f.email]) ?? ((De = f.availability) == null ? void 0 : De.open_hours) ?? []
201
+ availability: g.availability ? {
202
+ calendar_ids: Qe && typeof ee < "u" ? [ee == null ? void 0 : ee.calendar_id] : pe,
203
+ open_hours: (k == null ? void 0 : k[g.email]) ?? ((Me = g.availability) == null ? void 0 : Me.open_hours) ?? []
204
204
  } : void 0,
205
205
  booking: ee
206
206
  };
207
207
  }) : []
208
208
  ],
209
209
  event_booking: {
210
- title: (o == null ? void 0 : o.toString()) ?? "",
210
+ title: (s == null ? void 0 : s.toString()) ?? "",
211
211
  description: (l == null ? void 0 : l.toString()) ?? "",
212
- location: (y == null ? void 0 : y.toString()) ?? "",
213
- booking_type: (g == null ? void 0 : g.toString()) ?? "booking",
214
- timezone: (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
215
- conferencing: G,
216
- reminders: A,
217
- disable_emails: typeof Y == "boolean" ? Y : !1
212
+ location: (f == null ? void 0 : f.toString()) ?? "",
213
+ booking_type: (m == null ? void 0 : m.toString()) ?? "booking",
214
+ timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
215
+ conferencing: U,
216
+ reminders: j,
217
+ disable_emails: typeof V == "boolean" ? V : !1
218
218
  },
219
219
  scheduler: {
220
- cancellation_policy: H ?? "",
221
- available_days_in_future: E ?? 30,
222
- min_cancellation_notice: z ?? 0,
223
- min_booking_notice: P ?? 60,
224
- hide_additional_guests: U ?? !1,
225
- hide_cancellation_options: I ?? !1,
220
+ cancellation_policy: O ?? "",
221
+ available_days_in_future: x ?? 30,
222
+ min_cancellation_notice: T ?? 0,
223
+ min_booking_notice: z ?? 60,
224
+ hide_additional_guests: P ?? !1,
225
+ hide_cancellation_options: N ?? !1,
226
226
  hide_rescheduling_options: R ?? !1,
227
- additional_fields: m,
228
- email_template: D ? {
229
- ...D,
230
- organizer_locale: K || "en",
231
- logo: D.logo || ""
227
+ additional_fields: M,
228
+ email_template: I ? {
229
+ ...I,
230
+ organizer_locale: Y || "en",
231
+ logo: I.logo || ""
232
232
  } : void 0,
233
- confirmation_redirect_url: B
233
+ confirmation_redirect_url: A
234
234
  },
235
- appearance: M
236
- }, te = fe(this.selectedConfiguration, q || {}), J = this.action === "create" ? te : q;
237
- this.isConfigRoundRobin(J) && (J.participants = J.participants.map((f) => ({ ...f, is_organizer: void 0 })));
238
- const ne = (f) => {
235
+ appearance: J
236
+ }, te = ge(this.selectedConfiguration, q || {}), Z = this.action === "create" ? te : q;
237
+ this.isConfigRoundRobin(Z) && (Z.participants = Z.participants.map((g) => ({ ...g, is_organizer: void 0 })));
238
+ const ne = (g) => {
239
239
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
240
240
  this.changesSaved = !1;
241
241
  }, 5e3);
242
- }, ae = this.checkForBookingFormErrors(J), oe = ((ze = this.configurations) == null ? void 0 : ze.find((f) => {
242
+ }, ae = this.checkForBookingFormErrors(Z), oe = ((ze = this.configurations) == null ? void 0 : ze.find((g) => {
243
243
  var Q;
244
- return f.id === ((Q = this.selectedConfiguration) == null ? void 0 : Q.id);
245
- })) || {}, Ke = this.checkForOrganizerConfirmationError(fe(J, oe));
246
- ae || Ke || this.schedulerConfigChanged.emit({ config: J, resetLoadingState: ne, action: this.action, host: this.host });
244
+ return g.id === ((Q = this.selectedConfiguration) == null ? void 0 : Q.id);
245
+ })) || {}, se = this.checkForOrganizerConfirmationError(ge(Z, oe));
246
+ ae || se || this.schedulerConfigChanged.emit({ config: Z, resetLoadingState: ne, action: this.action, host: this.host });
247
247
  }, this.isConfigRoundRobin = (t) => {
248
- var a, s, i, o;
249
- return ((s = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.availability_method) === "max-availability" || ((o = (i = t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : o.availability_method) === "max-fairness";
248
+ var a, o, r, s;
249
+ return ((o = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.availability_method) === "max-availability" || ((s = (r = t.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
250
250
  }, this.checkForOrganizerConfirmationError = (t) => {
251
- var l, r;
252
- let a = !1, s = "";
253
- const i = ((l = t.event_booking) == null ? void 0 : l.booking_type) === "organizer-confirmation", o = (r = t.scheduler) == null ? void 0 : r.organizer_confirmation_url;
254
- return i && !o && (s += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
251
+ var l, i;
252
+ let a = !1, o = "";
253
+ const r = ((l = t.event_booking) == null ? void 0 : l.booking_type) === "organizer-confirmation", s = (i = t.scheduler) == null ? void 0 : i.organizer_confirmation_url;
254
+ return r && !s && (o += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
255
255
  }, this.checkForBookingFormErrors = (t) => {
256
- var o;
257
- let a = !1, s = "";
258
- const i = (o = t.scheduler) == null ? void 0 : o.additional_fields;
259
- return i && (s = p.t("nylasEditorTabs.bookingFormError"), Object.entries(i).forEach((l) => {
260
- const r = l[1];
261
- if (r.label === "") {
262
- s += p.t("nylasEditorTabs.bookingFormError_label", { type: r.type }), a = !0;
256
+ var s;
257
+ let a = !1, o = "";
258
+ const r = (s = t.scheduler) == null ? void 0 : s.additional_fields;
259
+ return r && (o = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
260
+ const i = l[1];
261
+ if (i.label === "") {
262
+ o += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
263
263
  return;
264
264
  }
265
- if (r.options) {
266
- for (const d of r.options)
267
- if (d.trim() === "") {
268
- s += p.t("nylasEditorTabs.bookingFormError_option", { label: r.label, type: r.type }), a = !0;
265
+ if (i.options) {
266
+ for (const c of i.options)
267
+ if (c.trim() === "") {
268
+ o += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
269
269
  break;
270
270
  }
271
271
  }
272
- })), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
272
+ })), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
273
273
  }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = u.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
274
274
  }
275
275
  configChangedHandler(e) {
@@ -283,7 +283,7 @@ const Ze = class {
283
283
  });
284
284
  }
285
285
  selectedLanguageChangedHandler(e, t) {
286
- e !== t && (p.changeLanguage(e), this.error && (this.error = p.t("fixFormErrors")));
286
+ e !== t && (d.changeLanguage(e), this.error && (this.error = d.t("fixFormErrors")));
287
287
  }
288
288
  async schedulerConfigCreatedEventHandler(e) {
289
289
  return this.schedulerConfigCreated.emit(e);
@@ -299,12 +299,12 @@ const Ze = class {
299
299
  }
300
300
  componentDidLoad() {
301
301
  var t, a;
302
- b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ae() && je({
302
+ b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ae() && $e({
303
303
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
304
- release: "1.4.3",
305
- integrations: (s) => [
306
- ...s.filter((i) => !1),
307
- Ve({
304
+ release: "2.0.0",
305
+ integrations: (o) => [
306
+ ...o.filter((r) => !1),
307
+ Ze({
308
308
  colorScheme: "system",
309
309
  autoInject: !1
310
310
  })
@@ -330,82 +330,82 @@ const Ze = class {
330
330
  this.showFeedbackModal = !1;
331
331
  }
332
332
  feedbackSubmittedHandler(e) {
333
- var s, i, o, l, r, d;
333
+ var o, r, s, l, i, c;
334
334
  const a = {
335
- eventId: $e("Scheduler Editor User Feedback", {
335
+ eventId: Je("Scheduler Editor User Feedback", {
336
336
  extra: {
337
- configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
338
- slug: (i = this.selectedConfiguration) == null ? void 0 : i.slug
337
+ configId: (o = this.selectedConfiguration) == null ? void 0 : o.id,
338
+ slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
339
339
  }
340
340
  }),
341
341
  message: e.detail.feedback
342
342
  };
343
- Je(a, {
343
+ Ve(a, {
344
344
  includeReplay: !0,
345
345
  captureContext: {
346
346
  tags: {
347
347
  "nylas-web-element": "nylas-scheduler-editor",
348
- "nylas-web-element-version": "1.4.3",
349
- "nylas-config-id": (o = this.selectedConfiguration) == null ? void 0 : o.id,
348
+ "nylas-web-element-version": "2.0.0",
349
+ "nylas-config-id": (s = this.selectedConfiguration) == null ? void 0 : s.id,
350
350
  "nylas-slug": (l = this.selectedConfiguration) == null ? void 0 : l.slug,
351
351
  "host-url": window.location.href
352
352
  },
353
353
  extra: {
354
- configId: (r = this.selectedConfiguration) == null ? void 0 : r.id,
355
- slug: (d = this.selectedConfiguration) == null ? void 0 : d.slug
354
+ configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
355
+ slug: (c = this.selectedConfiguration) == null ? void 0 : c.slug
356
356
  }
357
357
  }
358
358
  }), this.showFeedbackModal = !1;
359
359
  }
360
360
  getFormStateFromConfig(e) {
361
- var a, s, i, o, l, r, d, c, y, g, C, E, z, P, H, S, U, I, R, T, w, m, v, G, x, A, D, B, j, V, M, Z, Y, K, k, $, W;
361
+ var a, o, r, s, l, i, c, p, f, m, w, x, T, z, O, S, P, N, R, E, k, M, h, U, v, j, I, A, B, $, J, K, V, Y, C, G, W;
362
362
  let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((F) => F.is_organizer);
363
- return !t && ((i = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : i.availability_method) !== "collective" && (t = (o = e == null ? void 0 : e.participants) == null ? void 0 : o.find((F) => {
363
+ return !t && ((r = (o = e == null ? void 0 : e.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (t = (s = e == null ? void 0 : e.participants) == null ? void 0 : s.find((F) => {
364
364
  var L;
365
365
  return F.email === ((L = this.currentUser) == null ? void 0 : L.email);
366
366
  }), t && (t.is_organizer = !0)), e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
367
367
  title: ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.title) ?? "",
368
- description: ((r = e == null ? void 0 : e.event_booking) == null ? void 0 : r.description) ?? "",
369
- duration: ((c = (d = e == null ? void 0 : e.availability) == null ? void 0 : d.duration_minutes) == null ? void 0 : c.toString()) ?? "30",
368
+ description: ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.description) ?? "",
369
+ duration: ((p = (c = e == null ? void 0 : e.availability) == null ? void 0 : c.duration_minutes) == null ? void 0 : p.toString()) ?? "30",
370
370
  availability: {
371
- timezone: ((y = e == null ? void 0 : e.event_booking) == null ? void 0 : y.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
372
- openHours: ((C = (g = e == null ? void 0 : e.availability) == null ? void 0 : g.availability_rules) == null ? void 0 : C.default_open_hours) ?? Ge
371
+ timezone: ((f = e == null ? void 0 : e.event_booking) == null ? void 0 : f.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
372
+ openHours: ((w = (m = e == null ? void 0 : e.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : w.default_open_hours) ?? je
373
373
  },
374
- additionalFields: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.additional_fields) ?? {},
375
- conferencing: ((z = e == null ? void 0 : e.event_booking) == null ? void 0 : z.conferencing) ?? {},
376
- calendarIds: ((P = t == null ? void 0 : t.availability) == null ? void 0 : P.calendar_ids) ?? [],
374
+ additionalFields: ((x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.additional_fields) ?? {},
375
+ conferencing: ((T = e == null ? void 0 : e.event_booking) == null ? void 0 : T.conferencing) ?? {},
376
+ calendarIds: ((z = t == null ? void 0 : t.availability) == null ? void 0 : z.calendar_ids) ?? [],
377
377
  participants: (e == null ? void 0 : e.participants) ?? [],
378
- bookingCalendar: ((H = t == null ? void 0 : t.booking) == null ? void 0 : H.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
378
+ bookingCalendar: ((O = t == null ? void 0 : t.booking) == null ? void 0 : O.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
379
379
  location: ((S = e == null ? void 0 : e.event_booking) == null ? void 0 : S.location) ?? "",
380
- bookingType: ((U = e == null ? void 0 : e.event_booking) == null ? void 0 : U.booking_type) ?? "booking",
381
- buffer: ((R = (I = e == null ? void 0 : e.availability) == null ? void 0 : I.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
382
- cancellationPolicy: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.cancellation_policy) ?? "",
383
- availableDaysInFuture: ((w = e == null ? void 0 : e.scheduler) == null ? void 0 : w.available_days_in_future) ?? 30,
384
- minCancellationNotice: ((m = e == null ? void 0 : e.scheduler) == null ? void 0 : m.min_cancellation_notice) ?? 0,
385
- minBookingNotice: ((v = e == null ? void 0 : e.scheduler) == null ? void 0 : v.min_booking_notice) ?? 60,
380
+ bookingType: ((P = e == null ? void 0 : e.event_booking) == null ? void 0 : P.booking_type) ?? "booking",
381
+ buffer: ((R = (N = e == null ? void 0 : e.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
382
+ cancellationPolicy: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.cancellation_policy) ?? "",
383
+ availableDaysInFuture: ((k = e == null ? void 0 : e.scheduler) == null ? void 0 : k.available_days_in_future) ?? 30,
384
+ minCancellationNotice: ((M = e == null ? void 0 : e.scheduler) == null ? void 0 : M.min_cancellation_notice) ?? 0,
385
+ minBookingNotice: ((h = e == null ? void 0 : e.scheduler) == null ? void 0 : h.min_booking_notice) ?? 60,
386
386
  timeslotInterval: {
387
- interval: ((G = e == null ? void 0 : e.availability) == null ? void 0 : G.interval_minutes) ?? ((x = e == null ? void 0 : e.availability) == null ? void 0 : x.duration_minutes),
388
- roundTo: (A = e == null ? void 0 : e.availability) == null ? void 0 : A.round_to
387
+ interval: ((U = e == null ? void 0 : e.availability) == null ? void 0 : U.interval_minutes) ?? ((v = e == null ? void 0 : e.availability) == null ? void 0 : v.duration_minutes),
388
+ roundTo: (j = e == null ? void 0 : e.availability) == null ? void 0 : j.round_to
389
389
  },
390
- additionalGuestsHidden: ((D = e == null ? void 0 : e.scheduler) == null ? void 0 : D.hide_additional_guests) ?? !1,
391
- hideCancellationOptions: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.hide_cancellation_options) ?? !1,
392
- hideReschedulingOptions: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_rescheduling_options) ?? !1,
393
- participantBookingCalendars: ((V = e == null ? void 0 : e.participants) == null ? void 0 : V.reduce((F, L) => {
394
- var N, q;
395
- return (N = L.booking) != null && N.calendar_id && (F[L.email] = (q = L.booking) == null ? void 0 : q.calendar_id), F;
390
+ additionalGuestsHidden: ((I = e == null ? void 0 : e.scheduler) == null ? void 0 : I.hide_additional_guests) ?? !1,
391
+ hideCancellationOptions: ((A = e == null ? void 0 : e.scheduler) == null ? void 0 : A.hide_cancellation_options) ?? !1,
392
+ hideReschedulingOptions: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
393
+ participantBookingCalendars: (($ = e == null ? void 0 : e.participants) == null ? void 0 : $.reduce((F, L) => {
394
+ var D, q;
395
+ return (D = L.booking) != null && D.calendar_id && (F[L.email] = (q = L.booking) == null ? void 0 : q.calendar_id), F;
396
396
  })) ?? {},
397
- participantCalendars: ((M = e == null ? void 0 : e.participants) == null ? void 0 : M.reduce((F, L) => {
398
- var N;
399
- return F[L.email] = (N = L.availability) == null ? void 0 : N.calendar_ids, F;
397
+ participantCalendars: ((J = e == null ? void 0 : e.participants) == null ? void 0 : J.reduce((F, L) => {
398
+ var D;
399
+ return F[L.email] = (D = L.availability) == null ? void 0 : D.calendar_ids, F;
400
400
  }, {})) ?? {},
401
- reminders: (Z = e == null ? void 0 : e.event_booking) == null ? void 0 : Z.reminders,
402
- emailTemplate: (Y = e == null ? void 0 : e.scheduler) == null ? void 0 : Y.email_template,
403
- redirectUrl: (K = e == null ? void 0 : e.scheduler) == null ? void 0 : K.confirmation_redirect_url,
401
+ reminders: (K = e == null ? void 0 : e.event_booking) == null ? void 0 : K.reminders,
402
+ emailTemplate: (V = e == null ? void 0 : e.scheduler) == null ? void 0 : V.email_template,
403
+ redirectUrl: (Y = e == null ? void 0 : e.scheduler) == null ? void 0 : Y.confirmation_redirect_url,
404
404
  slug: e == null ? void 0 : e.slug,
405
405
  appearance: e == null ? void 0 : e.appearance,
406
406
  name: e == null ? void 0 : e.name,
407
- disableEmails: (k = e == null ? void 0 : e.event_booking) == null ? void 0 : k.disable_emails,
408
- organizerLocale: (W = ($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.email_template) == null ? void 0 : W.organizer_locale
407
+ disableEmails: (C = e == null ? void 0 : e.event_booking) == null ? void 0 : C.disable_emails,
408
+ organizerLocale: (W = (G = e == null ? void 0 : e.scheduler) == null ? void 0 : G.email_template) == null ? void 0 : W.organizer_locale
409
409
  };
410
410
  }
411
411
  setFormState(e, t) {
@@ -478,8 +478,8 @@ const Ze = class {
478
478
  this.formState.emailTemplate = JSON.parse(e.toString());
479
479
  break;
480
480
  case "disable-emails": {
481
- const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
482
- this.formState.disableEmails = a, this.formState.organizerLocale = s;
481
+ const { disableEmails: a, organizerLocale: o } = JSON.parse(e.toString());
482
+ this.formState.disableEmails = a, this.formState.organizerLocale = o;
483
483
  break;
484
484
  }
485
485
  case "reminder-overrides":
@@ -523,19 +523,19 @@ const Ze = class {
523
523
  }
524
524
  render() {
525
525
  var e, t;
526
- return b("[nylas-editor-tabs]", "render", this.formState), n(re, { key: "19f6d1ad319b8c695078eac212c0316e8c4f96a6" }, n("form", { key: "c32b5443ea3f4797005b38b69184212994b9991e", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: u.EventInfo, class: { tab: !0, active: this.activeTab == u.EventInfo, hide: this.hideTab(u.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (a) => this.setActiveTab(a, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), p.t("eventInfoTab")), n("button", { name: u.Availability, class: { tab: !0, active: this.activeTab == u.Availability, hide: this.hideTab(u.Availability) }, part: "editortab__availability net__tab-availability", onClick: (a) => this.setActiveTab(a, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), p.t("availabilityTab")), n("button", { name: u.Participants, class: { tab: !0, active: this.activeTab == u.Participants, hide: this.hideTab(u.Participants) }, part: "editortab__participants net__tab-participants", onClick: (a) => this.setActiveTab(a, u.Participants) }, n("people-icon", { width: "16", height: "16" }), p.t("participantsTab")), n("button", { name: u.BookingOptions, class: { tab: !0, active: this.activeTab == u.BookingOptions, hide: this.hideTab(u.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), p.t("bookingOptionsTab")), n("button", { name: u.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(u.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), p.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (a) => this.setActiveTab(a, u.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == u.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), p.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (a) => this.setActiveTab(a, u.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == u.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), p.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(dt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: p }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "6f9c0945829766cbfba0c7425a78a7af49ad6364", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "679739b48dcba5bb65037dc495a7c5bcdf48b3c9", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null))), n("div", { key: "bc6758b9768fe3de1cd0acf5bf5cd1e76c36a4a5", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "513690770ca68d84ac1045a0287eb5278bf4f1e9", class: {
526
+ return b("[nylas-editor-tabs]", "render", this.formState), n(le, { key: "520498cc06164904f9272efc548fbbc3d6fa9436" }, n("form", { key: "345b225d6c2c4b4e9a687e4fcf6b502d4c5270fc", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: u.EventInfo, class: { tab: !0, active: this.activeTab == u.EventInfo, hide: this.hideTab(u.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (a) => this.setActiveTab(a, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), d.t("eventInfoTab")), n("button", { name: u.Availability, class: { tab: !0, active: this.activeTab == u.Availability, hide: this.hideTab(u.Availability) }, part: "editortab__availability net__tab-availability", onClick: (a) => this.setActiveTab(a, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), d.t("availabilityTab")), n("button", { name: u.Participants, class: { tab: !0, active: this.activeTab == u.Participants, hide: this.hideTab(u.Participants) }, part: "editortab__participants net__tab-participants", onClick: (a) => this.setActiveTab(a, u.Participants) }, n("people-icon", { width: "16", height: "16" }), d.t("participantsTab")), n("button", { name: u.BookingOptions, class: { tab: !0, active: this.activeTab == u.BookingOptions, hide: this.hideTab(u.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), d.t("bookingOptionsTab")), n("button", { name: u.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(u.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), d.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (a) => this.setActiveTab(a, u.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == u.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), d.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (a) => this.setActiveTab(a, u.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == u.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), d.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(dt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: d }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "338321713b0f06ea47004f0e1e15a4236819e9db", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "76e1844d8c78a547c69417c13f789f9c25bb7aa1", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null))), n("div", { key: "c0fdc46cafb3e6dabaef1a05757d03b92a120b48", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "09c7bde4256d60ac2e161750aa2d5b0e140508d3", class: {
527
527
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
528
528
  "saved-changes": this.changesSaved,
529
529
  error: this.error !== "",
530
530
  "error-full-width": this.error !== "" && this.action === "create"
531
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? p.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${p.t("changesSavedLabel")}!` : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
532
- a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(se(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
533
- }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "4c142bdcf49ad45d73b4eb69732b87f1c0ee5d53", type: "button", disabled: this.isLoading, clickHandler: (a) => {
531
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? d.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${d.t("changesSavedLabel")}!` : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
532
+ a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(re(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
533
+ }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "227d2a0f91074a802be81f12247bc5bca4245d22", type: "button", disabled: this.isLoading, clickHandler: (a) => {
534
534
  a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
535
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "7609fa4f1c76454e0d65253e76eeadc3169bd93d", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, p.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${p.t("createButtonText")}` : `${p.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
535
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, d.t("backButton")), n("button-component", { key: "65fe1b45c389c6b6d3406ab07521ea1640677778", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, d.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${d.t("createButtonText")}` : `${d.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
536
536
  }
537
537
  get host() {
538
- return le(this);
538
+ return de(this);
539
539
  }
540
540
  static get watchers() {
541
541
  return {
@@ -546,7 +546,7 @@ const Ze = class {
546
546
  }
547
547
  };
548
548
  bt([
549
- de({
549
+ ce({
550
550
  name: "nylas-editor-tabs",
551
551
  stateToProps: /* @__PURE__ */ new Map([
552
552
  ["schedulerConfig.calendars", "calendars"],
@@ -558,16 +558,16 @@ bt([
558
558
  ]),
559
559
  eventToProps: {
560
560
  schedulerConfigChanged: async (e, t) => {
561
- const { resetLoadingState: a, host: s, action: i, config: o } = e.detail, l = (r) => {
562
- const [d, c] = r;
563
- !d && c ? s.setError(c) : d && !c && i === "create" && (s.schedulerConfigCreatedEventHandler({ config: d, action: i, host: s }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
561
+ const { resetLoadingState: a, host: o, action: r, config: s } = e.detail, l = (i) => {
562
+ const [c, p] = i;
563
+ !c && p ? o.setError(p) : c && !p && r === "create" && (o.schedulerConfigCreatedEventHandler({ config: c, action: r, host: o }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
564
564
  };
565
- if (i === "edit") {
566
- const r = await t.schedulerConfig.updateConfiguration(o);
567
- l(r);
565
+ if (r === "edit") {
566
+ const i = await t.schedulerConfig.updateConfiguration(s);
567
+ l(i);
568
568
  } else {
569
- const r = await t.schedulerConfig.createConfiguration(o);
570
- l(r);
569
+ const i = await t.schedulerConfig.createConfiguration(s);
570
+ l(i);
571
571
  }
572
572
  },
573
573
  cancelButtonClick: async (e, t) => {
@@ -593,27 +593,27 @@ bt([
593
593
  ]),
594
594
  fireRegisterEvent: !0
595
595
  }),
596
- be("design:type", Function),
597
- be("design:paramtypes", []),
598
- be("design:returntype", void 0)
599
- ], Ze.prototype, "render", null);
600
- Ze.style = pt;
601
- var h;
596
+ ue("design:type", Function),
597
+ ue("design:paramtypes", []),
598
+ ue("design:returntype", void 0)
599
+ ], We.prototype, "render", null);
600
+ We.style = pt;
601
+ var y;
602
602
  (function(e) {
603
603
  e.BookingOptions = "bookingOptions", e.Communications = "communications", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles", e.CalendarView = "calendarView";
604
- })(h || (h = {}));
605
- function ut({ id: e, formState: t, activeTab: a }, s) {
604
+ })(y || (y = {}));
605
+ function ut({ id: e, formState: t, activeTab: a }, o) {
606
606
  return n(
607
607
  ie,
608
608
  null,
609
- a === h.CalendarView && n(
609
+ a === y.CalendarView && n(
610
610
  "div",
611
- { key: `calendar-view-${e}`, class: { hide: a !== h.CalendarView, "calendar-view": !0 } },
611
+ { key: `calendar-view-${e}`, class: { hide: a !== y.CalendarView, "calendar-view": !0 } },
612
612
  n("nylas-event-calendar", null)
613
613
  ),
614
614
  n(
615
615
  "div",
616
- { key: `booking-options-${e}`, class: { hide: a !== h.BookingOptions } },
616
+ { key: `booking-options-${e}`, class: { hide: a !== y.BookingOptions } },
617
617
  n("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
618
618
  n(
619
619
  "nylas-custom-booking-flow",
@@ -631,6 +631,7 @@ function ut({ id: e, formState: t, activeTab: a }, s) {
631
631
  n(
632
632
  "div",
633
633
  { slot: "inputs" },
634
+ n("nylas-min-booking-notice", { name: "min-booking-notice", exportparts: "nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content" }),
634
635
  n("nylas-min-cancellation-notice", { name: "min-cancellation-notice", exportparts: "nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content" }),
635
636
  n("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
636
637
  )
@@ -639,7 +640,7 @@ function ut({ id: e, formState: t, activeTab: a }, s) {
639
640
  ),
640
641
  n(
641
642
  "div",
642
- { key: `communications-${e}`, class: { hide: a !== h.Communications } },
643
+ { key: `communications-${e}`, class: { hide: a !== y.Communications } },
643
644
  n("nylas-disable-emails", { name: "disable-emails", exportparts: "nde, nde__toggle-label, nde_toggle-input, nde_toggle-slider" }),
644
645
  !(t != null && t.disableEmails) && n(
645
646
  ie,
@@ -650,35 +651,35 @@ function ut({ id: e, formState: t, activeTab: a }, s) {
650
651
  ),
651
652
  n(
652
653
  "div",
653
- { key: `page-styles-${e}`, class: { hide: a !== h.PageStyles } },
654
+ { key: `page-styles-${e}`, class: { hide: a !== y.PageStyles } },
654
655
  n("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
655
656
  n("nylas-page-name", { name: "page-name", requirePageName: !0, exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
656
- n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, s)
657
+ n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, o)
657
658
  ),
658
659
  n(
659
660
  "div",
660
- { key: `booking-form-${e}`, class: { hide: a !== h.BookingForm } },
661
+ { key: `booking-form-${e}`, class: { hide: a !== y.BookingForm } },
661
662
  n("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__static_fields, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
662
663
  )
663
664
  );
664
665
  }
665
666
  const ht = '.sc-nylas-editor-tabs-group-h{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}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs-group{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', yt = ht;
666
- var ft = function(e, t, a, s) {
667
- var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
667
+ var ft = function(e, t, a, o) {
668
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
668
669
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
669
- o = Reflect.decorate(e, t, a, s);
670
+ s = Reflect.decorate(e, t, a, o);
670
671
  else
671
- for (var r = e.length - 1; r >= 0; r--)
672
- (l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
673
- return i > 3 && o && Object.defineProperty(t, a, o), o;
674
- }, ue = function(e, t) {
672
+ for (var i = e.length - 1; i >= 0; i--)
673
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
674
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
675
+ }, he = function(e, t) {
675
676
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
676
677
  return Reflect.metadata(e, t);
677
678
  };
678
- const We = class {
679
+ const qe = class {
679
680
  constructor(e) {
680
681
  X(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = _(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = _(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = _(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = _(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = _(this, "saveGroupEventChangesError", 7), this.formSubmissionHandler = async (t) => {
681
- var k, $, W, F, L, N, q, te, J, ne, ae;
682
+ var G, W, F, L, D, q, te, Z, ne, ae, oe;
682
683
  t.preventDefault();
683
684
  const a = await this.formSubmitted.emit();
684
685
  if (b("[nylas-editor-tabs-group]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
@@ -686,84 +687,85 @@ const We = class {
686
687
  return;
687
688
  }
688
689
  this.isLoading = !0, this.hasUnsavedChanges = !1;
689
- const i = this.updateFormState();
690
- b("[nylas-editor-tabs-group]", "formState", i);
691
- const { title: o, description: l, bookingCalendar: r, location: d, bookingType: c, minCancellationNotice: y, cancellationPolicy: g, hideCancellationOptions: C, hideReschedulingOptions: E, additionalFields: z, conferencing: P, reminders: H, emailTemplate: S, redirectUrl: U, slug: I, appearance: R, name: T, eventCapacity: w, eventTimeslot: m, participants: v, disableEmails: G, organizerLocale: x } = i, A = {
692
- ...((k = this.selectedConfiguration) == null ? void 0 : k.id) && { id: this.selectedConfiguration.id },
693
- slug: I,
694
- name: T,
695
- type: this.selectedEventType === O.group ? O.group : void 0,
690
+ const r = this.updateFormState();
691
+ b("[nylas-editor-tabs-group]", "formState", r);
692
+ const { title: s, description: l, bookingCalendar: i, location: c, bookingType: p, minCancellationNotice: f, minBookingNotice: m, cancellationPolicy: w, hideCancellationOptions: x, hideReschedulingOptions: T, additionalFields: z, conferencing: O, reminders: S, emailTemplate: P, redirectUrl: N, slug: R, appearance: E, name: k, eventCapacity: M, eventTimeslot: h, participants: U, disableEmails: v, organizerLocale: j } = r, I = {
693
+ ...((G = this.selectedConfiguration) == null ? void 0 : G.id) && { id: this.selectedConfiguration.id },
694
+ slug: R,
695
+ name: k,
696
+ type: this.selectedEventType === H.group ? H.group : void 0,
696
697
  scheduler: {
697
- cancellation_policy: g ?? "",
698
- min_cancellation_notice: y ?? 0,
699
- hide_cancellation_options: C ?? !1,
700
- hide_rescheduling_options: E ?? !1,
698
+ cancellation_policy: w ?? "",
699
+ min_cancellation_notice: f ?? 0,
700
+ min_booking_notice: m ?? 60,
701
+ hide_cancellation_options: x ?? !1,
702
+ hide_rescheduling_options: T ?? !1,
701
703
  additional_fields: z,
702
- email_template: S ? {
703
- ...S,
704
- organizer_locale: x || "en",
705
- logo: S.logo || ""
704
+ email_template: P ? {
705
+ ...P,
706
+ organizer_locale: j || "en",
707
+ logo: P.logo || ""
706
708
  } : void 0,
707
- confirmation_redirect_url: U
709
+ confirmation_redirect_url: N
708
710
  },
709
- appearance: R,
711
+ appearance: E,
710
712
  group_booking: {
711
- booking_type: c || "booking",
712
- disable_emails: typeof G == "boolean" ? G : !1,
713
- reminders: H,
714
- conferencing: P,
715
- calendar_id: r || "primary",
716
- default_capacity: w || 10
713
+ booking_type: p || "booking",
714
+ disable_emails: typeof v == "boolean" ? v : !1,
715
+ reminders: S,
716
+ conferencing: O,
717
+ calendar_id: i || "primary",
718
+ default_capacity: M || 10
717
719
  }
718
- }, D = fe(this.selectedConfiguration, A || {}), B = this.action === "create" ? D : A;
720
+ }, A = ge(this.selectedConfiguration, I || {}), B = this.action === "create" ? A : I;
719
721
  delete B.availability, delete B.participants, delete B.event_booking;
720
- const j = (oe) => {
722
+ const $ = (se) => {
721
723
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
722
724
  this.changesSaved = !1;
723
725
  }, 3e3);
724
726
  };
725
727
  if (this.checkForBookingFormErrors(B))
726
728
  return;
727
- const M = {
728
- name: (($ = this.currentUser) == null ? void 0 : $.name) ?? ((W = this.currentUser) == null ? void 0 : W.email) ?? "",
729
- email: ((F = this.currentUser) == null ? void 0 : F.email) ?? ""
730
- }, Z = ((L = this.calendars) == null ? void 0 : L.find((oe) => oe.is_primary)) ?? ((N = this.calendars) == null ? void 0 : N[0]), Y = [{ ...M, is_organizer: !0 }], K = (q = this.selectedConfiguration) != null && q.id ? void 0 : {
731
- title: o,
729
+ const K = {
730
+ name: ((W = this.currentUser) == null ? void 0 : W.name) ?? ((F = this.currentUser) == null ? void 0 : F.email) ?? "",
731
+ email: ((L = this.currentUser) == null ? void 0 : L.email) ?? ""
732
+ }, V = ((D = this.calendars) == null ? void 0 : D.find((se) => se.is_primary)) ?? ((q = this.calendars) == null ? void 0 : q[0]), Y = [{ ...K, is_organizer: !0 }], C = (te = this.selectedConfiguration) != null && te.id ? void 0 : {
733
+ title: s,
732
734
  description: l,
733
- location: P ? void 0 : d,
734
- conferencing: d ? void 0 : P,
735
+ location: O ? void 0 : c,
736
+ conferencing: c ? void 0 : O,
735
737
  when: {
736
- start_time: ((te = m == null ? void 0 : m.when) == null ? void 0 : te.start_time) ?? 0,
737
- end_time: ((J = m == null ? void 0 : m.when) == null ? void 0 : J.end_time) ?? 0,
738
- start_timezone: ((ne = m == null ? void 0 : m.when) == null ? void 0 : ne.start_timezone) ?? "",
739
- end_timezone: ((ae = m == null ? void 0 : m.when) == null ? void 0 : ae.end_timezone) ?? ""
738
+ start_time: ((Z = h == null ? void 0 : h.when) == null ? void 0 : Z.start_time) ?? 0,
739
+ end_time: ((ne = h == null ? void 0 : h.when) == null ? void 0 : ne.end_time) ?? 0,
740
+ start_timezone: ((ae = h == null ? void 0 : h.when) == null ? void 0 : ae.start_timezone) ?? "",
741
+ end_timezone: ((oe = h == null ? void 0 : h.when) == null ? void 0 : oe.end_timezone) ?? ""
740
742
  },
741
- recurrence: (m == null ? void 0 : m.recurrence) ?? [],
742
- calendar_id: r || (Z == null ? void 0 : Z.id) || "primary",
743
- participants: v != null && v.length ? v : Y,
744
- organizer: M,
745
- capacity: w || 10
743
+ recurrence: (h == null ? void 0 : h.recurrence) ?? [],
744
+ calendar_id: i || (V == null ? void 0 : V.id) || "primary",
745
+ participants: U != null && U.length ? U : Y,
746
+ organizer: K,
747
+ capacity: M || 10
746
748
  };
747
- this.schedulerConfigChanged.emit({ groupEvent: K || void 0, config: B, resetLoadingState: j, action: this.action, host: this.host });
749
+ this.schedulerConfigChanged.emit({ groupEvent: C || void 0, config: B, resetLoadingState: $, action: this.action, host: this.host });
748
750
  }, this.checkForBookingFormErrors = (t) => {
749
- var o;
750
- let a = !1, s = "";
751
- const i = (o = t.scheduler) == null ? void 0 : o.additional_fields;
752
- return i && (s = "Booking form error: ", Object.entries(i).forEach((l) => {
753
- const r = l[1];
754
- if (r.label === "") {
755
- s += `Label is required for field of type ${r.type}.`, a = !0;
751
+ var s;
752
+ let a = !1, o = "";
753
+ const r = (s = t.scheduler) == null ? void 0 : s.additional_fields;
754
+ return r && (o = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
755
+ const i = l[1];
756
+ if (i.label === "") {
757
+ o += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
756
758
  return;
757
759
  }
758
- if (r.options) {
759
- for (const d of r.options)
760
- if (d.trim() === "") {
761
- s += `Empty option detected inside ${r.label} of type ${r.type}.`, a = !0;
760
+ if (i.options) {
761
+ for (const c of i.options)
762
+ if (c.trim() === "") {
763
+ o += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
762
764
  break;
763
765
  }
764
766
  }
765
- })), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
766
- }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = h.CalendarView, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
767
+ })), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
768
+ }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = y.CalendarView, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
767
769
  }
768
770
  configChangedHandler(e) {
769
771
  b("[nylas-editor-tabs-group]", "configChangedHandler", e, this.selectedConfiguration), this.formState = {
@@ -771,28 +773,27 @@ const We = class {
771
773
  }, e != null && e.id ? this.action = "edit" : this.action = "create";
772
774
  }
773
775
  selectedGroupEventChangedHandler(e) {
774
- var t, a, s, i, o, l, r, d, c, y, g, C, E, z, P, H, S, U, I, R, T, w, m, v, G, x, A, D, B, j, V;
776
+ var t, a, o, r, s, l, i, c, p, f, m, w, x, T, z, O, S, P, N, R, E, k, M, h, U, v, j, I, A, B, $;
775
777
  b("[nylas-editor-tabs-group]", "selectedGroupEventChangedHandler", e, this.selectedConfiguration), this.formState = {
776
778
  ...this.formState,
777
779
  title: (a = (t = this.selectedGroupEvent) == null ? void 0 : t.event) == null ? void 0 : a.title,
778
- description: (i = (s = this.selectedGroupEvent) == null ? void 0 : s.event) == null ? void 0 : i.description,
779
- location: (l = (o = this.selectedGroupEvent) == null ? void 0 : o.event) == null ? void 0 : l.location,
780
- conferencing: (d = (r = this.selectedGroupEvent) == null ? void 0 : r.event) == null ? void 0 : d.conferencing,
781
- eventCapacity: (y = (c = this.selectedGroupEvent) == null ? void 0 : c.group_event_info) == null ? void 0 : y.capacity,
782
- participants: (E = (C = (g = this.selectedGroupEvent) == null ? void 0 : g.group_event_info) == null ? void 0 : C.participants) == null ? void 0 : E.map((M) => ({
783
- name: M.name,
784
- email: M.email,
785
- is_organizer: !!M.is_organizer,
786
- timezone: ""
780
+ description: (r = (o = this.selectedGroupEvent) == null ? void 0 : o.event) == null ? void 0 : r.description,
781
+ location: (l = (s = this.selectedGroupEvent) == null ? void 0 : s.event) == null ? void 0 : l.location,
782
+ conferencing: (c = (i = this.selectedGroupEvent) == null ? void 0 : i.event) == null ? void 0 : c.conferencing,
783
+ eventCapacity: (f = (p = this.selectedGroupEvent) == null ? void 0 : p.group_event_info) == null ? void 0 : f.capacity,
784
+ participants: (x = (w = (m = this.selectedGroupEvent) == null ? void 0 : m.group_event_info) == null ? void 0 : w.participants) == null ? void 0 : x.map((J) => ({
785
+ name: J.name,
786
+ email: J.email,
787
+ is_organizer: !!J.is_organizer
787
788
  })),
788
- eventTimeslot: (P = (z = this.selectedGroupEvent) == null ? void 0 : z.event) != null && P.when ? {
789
+ eventTimeslot: (z = (T = this.selectedGroupEvent) == null ? void 0 : T.event) != null && z.when ? {
789
790
  when: {
790
- start_time: (U = (S = (H = this.selectedGroupEvent) == null ? void 0 : H.event) == null ? void 0 : S.when) == null ? void 0 : U.start_time,
791
- end_time: (T = (R = (I = this.selectedGroupEvent) == null ? void 0 : I.event) == null ? void 0 : R.when) == null ? void 0 : T.end_time,
792
- start_timezone: (v = (m = (w = this.selectedGroupEvent) == null ? void 0 : w.event) == null ? void 0 : m.when) == null ? void 0 : v.start_timezone,
793
- end_timezone: (A = (x = (G = this.selectedGroupEvent) == null ? void 0 : G.event) == null ? void 0 : x.when) == null ? void 0 : A.end_timezone
791
+ start_time: (P = (S = (O = this.selectedGroupEvent) == null ? void 0 : O.event) == null ? void 0 : S.when) == null ? void 0 : P.start_time,
792
+ end_time: (E = (R = (N = this.selectedGroupEvent) == null ? void 0 : N.event) == null ? void 0 : R.when) == null ? void 0 : E.end_time,
793
+ start_timezone: (h = (M = (k = this.selectedGroupEvent) == null ? void 0 : k.event) == null ? void 0 : M.when) == null ? void 0 : h.start_timezone,
794
+ end_timezone: (j = (v = (U = this.selectedGroupEvent) == null ? void 0 : U.event) == null ? void 0 : v.when) == null ? void 0 : j.end_timezone
794
795
  },
795
- recurrence: (B = (D = this.selectedGroupEvent) == null ? void 0 : D.group_event_info) != null && B.rrule ? (V = (j = this.selectedGroupEvent) == null ? void 0 : j.group_event_info) == null ? void 0 : V.rrule : []
796
+ recurrence: (A = (I = this.selectedGroupEvent) == null ? void 0 : I.group_event_info) != null && A.rrule ? ($ = (B = this.selectedGroupEvent) == null ? void 0 : B.group_event_info) == null ? void 0 : $.rrule : []
796
797
  } : void 0
797
798
  };
798
799
  }
@@ -802,7 +803,7 @@ const We = class {
802
803
  });
803
804
  }
804
805
  selectedLanguageChangedHandler(e, t) {
805
- e !== t && p.changeLanguage(e);
806
+ e !== t && d.changeLanguage(e);
806
807
  }
807
808
  async schedulerConfigCreatedEventHandler(e) {
808
809
  return this.schedulerConfigCreated.emit(e);
@@ -820,13 +821,13 @@ const We = class {
820
821
  b("[nylas-editor-tabs-group]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
821
822
  }
822
823
  componentDidLoad() {
823
- var t, a, s;
824
- b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Ae() && je({
824
+ var t, a, o;
825
+ b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Ae() && $e({
825
826
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
826
- release: "1.4.3",
827
- integrations: (i) => [
828
- ...i.filter((o) => !1),
829
- Ve({
827
+ release: "2.0.0",
828
+ integrations: (r) => [
829
+ ...r.filter((s) => !1),
830
+ Ze({
830
831
  colorScheme: "system",
831
832
  autoInject: !1
832
833
  })
@@ -835,7 +836,7 @@ const We = class {
835
836
  beforeSend: () => null
836
837
  }), (t = this.selectedConfiguration) != null && t.id && this.configChangedHandler(this.selectedConfiguration);
837
838
  const e = (a = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : a.name;
838
- e && ((s = this.hideEditorTabs) != null && s.includes(this.activeTab)) && (this.activeTab = e), this.updateFormState();
839
+ e && ((o = this.hideEditorTabs) != null && o.includes(this.activeTab)) && (this.activeTab = e), this.updateFormState();
839
840
  }
840
841
  disconnectedCallback() {
841
842
  b("[nylas-editor-tabs-group]", "disconnectedCallback");
@@ -852,21 +853,21 @@ const We = class {
852
853
  this.showFeedbackModal = !1;
853
854
  }
854
855
  feedbackSubmittedHandler(e) {
855
- var s, i;
856
+ var o, r;
856
857
  const a = {
857
- eventId: $e("Scheduler Editor User Feedback"),
858
+ eventId: Je("Scheduler Editor User Feedback"),
858
859
  message: e.detail.feedback
859
860
  };
860
- Je(a, {
861
+ Ve(a, {
861
862
  includeReplay: !0,
862
863
  captureContext: {
863
864
  tags: {
864
865
  "nylas-web-element": "nylas-scheduler-editor",
865
- "nylas-web-element-version": "1.4.3"
866
+ "nylas-web-element-version": "2.0.0"
866
867
  },
867
868
  extra: {
868
- configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
869
- slug: (i = this.selectedConfiguration) == null ? void 0 : i.slug
869
+ configId: (o = this.selectedConfiguration) == null ? void 0 : o.id,
870
+ slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
870
871
  }
871
872
  }
872
873
  }), this.showFeedbackModal = !1;
@@ -876,13 +877,13 @@ const We = class {
876
877
  this.groupEventImportTriggered.emit({ groupEvent: e.detail, configId: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "", host: this.host });
877
878
  }
878
879
  saveGroupEventChangesHandler(e) {
879
- var s, i, o, l, r, d, c;
880
+ var o, r, s, l, i, c, p;
880
881
  b("saveGroupEventChangesHandler", e.detail, this.selectedGroupEvent);
881
882
  const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
882
- if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((s = a.when) != null && s.start_time) || !((i = a.when) != null && i.end_time)) && this.setError(new Error("Event time is required.")), (o = a.participants) != null && o.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((r = a.participants) != null && r.some((y) => !y.email)) && this.setError(new Error("Participant email is required.")), this.error !== "" || !t) {
883
+ if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((o = a.when) != null && o.start_time) || !((r = a.when) != null && r.end_time)) && this.setError(new Error("Event time is required.")), (s = a.participants) != null && s.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((i = a.participants) != null && i.some((f) => !f.email)) && this.setError(new Error("Participant email is required.")), this.error !== "" || !t) {
883
884
  this.saveGroupEventChangesError.emit({
884
885
  error: this.error ?? "An error occurred while saving changes.",
885
- configId: ((d = this.selectedConfiguration) == null ? void 0 : d.id) ?? "",
886
+ configId: ((c = this.selectedConfiguration) == null ? void 0 : c.id) ?? "",
886
887
  host: this.host
887
888
  });
888
889
  return;
@@ -890,7 +891,7 @@ const We = class {
890
891
  this.groupEventUpdateTriggered.emit({
891
892
  groupEvent: a,
892
893
  chosenOption: e.detail.action,
893
- configId: ((c = this.selectedConfiguration) == null ? void 0 : c.id) ?? "",
894
+ configId: ((p = this.selectedConfiguration) == null ? void 0 : p.id) ?? "",
894
895
  host: this.host
895
896
  });
896
897
  }
@@ -906,66 +907,67 @@ const We = class {
906
907
  });
907
908
  }
908
909
  createGroupEventHandler(e) {
909
- var l, r, d, c, y, g, C;
910
+ var l, i, c, p, f, m, w;
910
911
  const t = e.detail, a = {
911
- name: ((l = this.currentUser) == null ? void 0 : l.name) ?? ((r = this.currentUser) == null ? void 0 : r.email) ?? "",
912
- email: ((d = this.currentUser) == null ? void 0 : d.email) ?? ""
913
- }, s = ((c = this.calendars) == null ? void 0 : c.find((E) => E.is_primary)) ?? ((y = this.calendars) == null ? void 0 : y[0]), i = ((g = this.formState) == null ? void 0 : g.conferencing) || t.conferencing, o = {
912
+ name: ((l = this.currentUser) == null ? void 0 : l.name) ?? ((i = this.currentUser) == null ? void 0 : i.email) ?? "",
913
+ email: ((c = this.currentUser) == null ? void 0 : c.email) ?? ""
914
+ }, o = ((p = this.calendars) == null ? void 0 : p.find((x) => x.is_primary)) ?? ((f = this.calendars) == null ? void 0 : f[0]), r = ((m = this.formState) == null ? void 0 : m.conferencing) || t.conferencing, s = {
914
915
  title: t.title,
915
916
  description: t.description,
916
- location: i ? void 0 : t.location,
917
+ location: r ? void 0 : t.location,
917
918
  participants: t.participants,
918
919
  organizer: a,
919
- conferencing: t.location ? void 0 : i,
920
+ conferencing: t.location ? {} : r,
920
921
  when: t.eventTimeslot.when,
921
922
  recurrence: t.eventTimeslot.recurrence,
922
- calendar_id: (s == null ? void 0 : s.id) || "primary",
923
+ calendar_id: (o == null ? void 0 : o.id) || "primary",
923
924
  capacity: t.eventCapacity
924
925
  };
925
- this.groupEventCreateTriggered.emit({ groupEvent: o, configId: ((C = this.selectedConfiguration) == null ? void 0 : C.id) ?? "", host: this.host });
926
+ this.groupEventCreateTriggered.emit({ groupEvent: s, configId: ((w = this.selectedConfiguration) == null ? void 0 : w.id) ?? "", host: this.host });
926
927
  }
927
928
  getGroupEventDetailsFromFormState() {
928
- var g, C, E, z, P, H, S, U, I;
929
- const e = ((g = this.calendars) == null ? void 0 : g.find((R) => R.is_primary)) ?? ((C = this.calendars) == null ? void 0 : C[0]), t = {
930
- name: ((E = this.currentUser) == null ? void 0 : E.name) ?? ((z = this.currentUser) == null ? void 0 : z.email) ?? "",
931
- email: ((P = this.currentUser) == null ? void 0 : P.email) ?? ""
932
- }, a = [{ ...t, is_organizer: !0 }], { title: s, description: i, bookingCalendar: o, location: l, conferencing: r, eventCapacity: d, eventTimeslot: c, participants: y } = this.formState;
929
+ var m, w, x, T, z, O, S, P, N;
930
+ const e = ((m = this.calendars) == null ? void 0 : m.find((R) => R.is_primary)) ?? ((w = this.calendars) == null ? void 0 : w[0]), t = {
931
+ name: ((x = this.currentUser) == null ? void 0 : x.name) ?? ((T = this.currentUser) == null ? void 0 : T.email) ?? "",
932
+ email: ((z = this.currentUser) == null ? void 0 : z.email) ?? ""
933
+ }, a = [{ ...t, is_organizer: !0 }], { title: o, description: r, bookingCalendar: s, location: l, conferencing: i, eventCapacity: c, eventTimeslot: p, participants: f } = this.formState;
933
934
  return {
934
- title: s,
935
- description: i,
936
- location: r ? void 0 : l,
937
- conferencing: l ? void 0 : r,
935
+ title: o,
936
+ description: r,
937
+ location: i ? void 0 : l,
938
+ conferencing: l ? void 0 : i,
938
939
  when: {
939
- start_time: ((H = c == null ? void 0 : c.when) == null ? void 0 : H.start_time) ?? 0,
940
- end_time: ((S = c == null ? void 0 : c.when) == null ? void 0 : S.end_time) ?? 0,
941
- start_timezone: ((U = c == null ? void 0 : c.when) == null ? void 0 : U.start_timezone) ?? "",
942
- end_timezone: ((I = c == null ? void 0 : c.when) == null ? void 0 : I.end_timezone) ?? ""
940
+ start_time: ((O = p == null ? void 0 : p.when) == null ? void 0 : O.start_time) ?? 0,
941
+ end_time: ((S = p == null ? void 0 : p.when) == null ? void 0 : S.end_time) ?? 0,
942
+ start_timezone: ((P = p == null ? void 0 : p.when) == null ? void 0 : P.start_timezone) ?? "",
943
+ end_timezone: ((N = p == null ? void 0 : p.when) == null ? void 0 : N.end_timezone) ?? ""
943
944
  },
944
- recurrence: (c == null ? void 0 : c.recurrence) ?? [],
945
- calendar_id: o || (e == null ? void 0 : e.id) || "primary",
946
- participants: y != null && y.length ? y : a,
945
+ recurrence: (p == null ? void 0 : p.recurrence) ?? [],
946
+ calendar_id: s || (e == null ? void 0 : e.id) || "primary",
947
+ participants: f != null && f.length ? f : a,
947
948
  organizer: t,
948
- capacity: d || 10
949
+ capacity: c || 10
949
950
  };
950
951
  }
951
952
  getFormStateFromConfig(e) {
952
- var t, a, s, i, o, l, r, d, c, y, g, C, E;
953
+ var t, a, o, r, s, l, i, c, p, f, m, w, x, T;
953
954
  return e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
954
955
  additionalFields: ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.additional_fields) ?? {},
955
956
  bookingType: ((a = e == null ? void 0 : e.group_booking) == null ? void 0 : a.booking_type) ?? "booking",
956
- cancellationPolicy: ((s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.cancellation_policy) ?? "",
957
- minCancellationNotice: ((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.min_cancellation_notice) ?? 0,
958
- hideCancellationOptions: ((o = e == null ? void 0 : e.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1,
959
- hideReschedulingOptions: ((l = e == null ? void 0 : e.scheduler) == null ? void 0 : l.hide_rescheduling_options) ?? !1,
960
- reminders: (r = e == null ? void 0 : e.group_booking) == null ? void 0 : r.reminders,
961
- emailTemplate: (d = e == null ? void 0 : e.scheduler) == null ? void 0 : d.email_template,
962
- redirectUrl: (c = e == null ? void 0 : e.scheduler) == null ? void 0 : c.confirmation_redirect_url,
957
+ cancellationPolicy: ((o = e == null ? void 0 : e.scheduler) == null ? void 0 : o.cancellation_policy) ?? "",
958
+ minCancellationNotice: ((r = e == null ? void 0 : e.scheduler) == null ? void 0 : r.min_cancellation_notice) ?? 0,
959
+ minBookingNotice: ((s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.min_booking_notice) ?? 60,
960
+ hideCancellationOptions: ((l = e == null ? void 0 : e.scheduler) == null ? void 0 : l.hide_cancellation_options) ?? !1,
961
+ hideReschedulingOptions: ((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.hide_rescheduling_options) ?? !1,
962
+ reminders: (c = e == null ? void 0 : e.group_booking) == null ? void 0 : c.reminders,
963
+ emailTemplate: (p = e == null ? void 0 : e.scheduler) == null ? void 0 : p.email_template,
964
+ redirectUrl: (f = e == null ? void 0 : e.scheduler) == null ? void 0 : f.confirmation_redirect_url,
963
965
  slug: e == null ? void 0 : e.slug,
964
966
  appearance: e == null ? void 0 : e.appearance,
965
967
  name: e == null ? void 0 : e.name,
966
- bookingCalendar: (y = e == null ? void 0 : e.group_booking) == null ? void 0 : y.calendar_id,
967
- disableEmails: (g = e == null ? void 0 : e.group_booking) == null ? void 0 : g.disable_emails,
968
- organizerLocale: (E = (C = e == null ? void 0 : e.scheduler) == null ? void 0 : C.email_template) == null ? void 0 : E.organizer_locale
968
+ bookingCalendar: (m = e == null ? void 0 : e.group_booking) == null ? void 0 : m.calendar_id,
969
+ disableEmails: (w = e == null ? void 0 : e.group_booking) == null ? void 0 : w.disable_emails,
970
+ organizerLocale: (T = (x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.email_template) == null ? void 0 : T.organizer_locale
969
971
  };
970
972
  }
971
973
  setFormState(e, t) {
@@ -988,6 +990,9 @@ const We = class {
988
990
  case "min-cancellation-notice":
989
991
  this.formState.minCancellationNotice = parseInt(e.toString());
990
992
  break;
993
+ case "min-booking-notice":
994
+ this.formState.minBookingNotice = parseInt(e.toString());
995
+ break;
991
996
  case "cancellation-policy":
992
997
  this.formState.cancellationPolicy = e.toString();
993
998
  break;
@@ -1025,10 +1030,10 @@ const We = class {
1025
1030
  break;
1026
1031
  case "participants": {
1027
1032
  const a = JSON.parse(e.toString());
1028
- this.formState.participants = a.map((s) => ({
1029
- name: s.name,
1030
- email: s.email,
1031
- is_organizer: s.is_organizer
1033
+ this.formState.participants = a.map((o) => ({
1034
+ name: o.name,
1035
+ email: o.email,
1036
+ is_organizer: o.is_organizer
1032
1037
  }));
1033
1038
  break;
1034
1039
  }
@@ -1036,8 +1041,8 @@ const We = class {
1036
1041
  this.formState.eventTimeslot = JSON.parse(e.toString());
1037
1042
  break;
1038
1043
  case "disable-emails": {
1039
- const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
1040
- this.formState.disableEmails = a, this.formState.organizerLocale = s;
1044
+ const { disableEmails: a, organizerLocale: o } = JSON.parse(e.toString());
1045
+ this.formState.disableEmails = a, this.formState.organizerLocale = o;
1041
1046
  break;
1042
1047
  }
1043
1048
  }
@@ -1063,21 +1068,21 @@ const We = class {
1063
1068
  }
1064
1069
  render() {
1065
1070
  var e, t;
1066
- return b("[nylas-editor-tabs-group]", "render", this.formState), n(re, { key: "295df515ac9d639344495598d31fe333db0486f8" }, n("form", { key: "77d72751aa0e09fb012af283b19c34c193250810", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (a) => {
1067
- this.setActiveTab(a, h.CalendarView);
1068
- } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, "Return to Calendar view"))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: h.BookingOptions, class: { tab: !0, active: this.activeTab == h.BookingOptions, hide: this.hideTab(h.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, h.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), p.t("bookingOptionsTab")), n("button", { name: h.BookingForm, class: { tab: !0, active: this.activeTab == h.BookingForm, hide: this.hideTab(h.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, h.BookingForm) }, this.activeTab == h.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), p.t("bookingFormTab")), n("button", { name: h.Communications, class: { tab: !0, active: this.activeTab == h.Communications, hide: this.hideTab(h.Communications) }, onClick: (a) => this.setActiveTab(a, h.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == h.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), p.t("communicationsTab")), n("button", { name: h.PageStyles, class: { tab: !0, active: this.activeTab == h.PageStyles, hide: this.hideTab(h.PageStyles) }, onClick: (a) => this.setActiveTab(a, h.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == h.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), p.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: p }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "187e6f1c8b1e6ebd75e811c7c9245f8e6be5faee", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "e777b3e032cb0fbf0517817f99c5d53879339e6d", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null)), this.activeTab === h.CalendarView && n("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (a) => this.setActiveTab(a, h.BookingOptions) }, "Page settings")), n("div", { key: "cfc06ab3f0cd113f59219feb50a0ae173ac816b7", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "5e85280a2bb1233afe6073b646a8d2dc4064b9b1", class: {
1071
+ return b("[nylas-editor-tabs-group]", "render", this.formState), n(le, { key: "2f1b119172917fda91ffa866f37a14355f2828c0" }, n("form", { key: "103788b60f9351f7b20bcb06e1e93f89a29a9332", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (a) => {
1072
+ this.setActiveTab(a, y.CalendarView);
1073
+ } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, d.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: y.BookingOptions, class: { tab: !0, active: this.activeTab == y.BookingOptions, hide: this.hideTab(y.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), d.t("bookingOptionsTab")), n("button", { name: y.BookingForm, class: { tab: !0, active: this.activeTab == y.BookingForm, hide: this.hideTab(y.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, y.BookingForm) }, this.activeTab == y.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), d.t("bookingFormTab")), n("button", { name: y.Communications, class: { tab: !0, active: this.activeTab == y.Communications, hide: this.hideTab(y.Communications) }, onClick: (a) => this.setActiveTab(a, y.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == y.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), d.t("communicationsTab")), n("button", { name: y.PageStyles, class: { tab: !0, active: this.activeTab == y.PageStyles, hide: this.hideTab(y.PageStyles) }, onClick: (a) => this.setActiveTab(a, y.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == y.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), d.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: d }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "5c98656ec4f4b3bb61f675dbfe43121b1cf230cf", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "cca7ec210ba25fd6e8d6f090871bd03acd86f3b2", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null)), this.activeTab === y.CalendarView && n("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, d.t("pageSettingsButton"))), n("div", { key: "53bf5ccc9597574dade9a81c08a4b316ebbb8f1e", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "a3acb4bbfb391483d9d8914ff5f07922c05e7dbd", class: {
1069
1074
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
1070
1075
  "saved-changes": this.changesSaved,
1071
1076
  error: this.error !== "",
1072
1077
  "error-full-width": this.error !== "" && this.action === "create"
1073
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== h.CalendarView ? p.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${p.t("changesSavedLabel")}!` : ""), n("div", { key: "3b667f376c83d75a4c1e16f1a962168e49ca7864", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1074
- a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(se(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
1075
- }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "df258b8799fdf69739be838ae633aa278e54580a", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1078
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== y.CalendarView ? d.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${d.t("changesSavedLabel")}!` : ""), n("div", { key: "81e083f0560967f3d8b68f1e0cafef645c7ae288", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1079
+ a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(re(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
1080
+ }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "59a4f7e7238f88a4a07e0bc1ab79bed788da74c9", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1076
1081
  a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
1077
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "5bdea575e4aa962ac968a02d80b47086e62a5873", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, p.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${p.t("createButtonText")}` : `${p.t("saveChangesButtonText")}`))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1082
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, d.t("backButton")), n("button-component", { key: "3ed3bc81b39988173e13f2c3346defed31b96148", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, d.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${d.t("createButtonText")}` : `${d.t("saveChangesButtonText")}`))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1078
1083
  }
1079
1084
  get host() {
1080
- return le(this);
1085
+ return de(this);
1081
1086
  }
1082
1087
  static get watchers() {
1083
1088
  return {
@@ -1089,7 +1094,7 @@ const We = class {
1089
1094
  }
1090
1095
  };
1091
1096
  ft([
1092
- de({
1097
+ ce({
1093
1098
  name: "nylas-editor-tabs-group",
1094
1099
  stateToProps: /* @__PURE__ */ new Map([
1095
1100
  ["schedulerConfig.calendars", "calendars"],
@@ -1102,20 +1107,20 @@ ft([
1102
1107
  ]),
1103
1108
  eventToProps: {
1104
1109
  schedulerConfigChanged: async (e, t) => {
1105
- const { resetLoadingState: a, host: s, action: i, config: o, groupEvent: l } = e.detail, r = (d) => {
1106
- const [c, y] = d;
1107
- !c && y ? s.setError(y) : c && !y && i === "create" && s.schedulerConfigCreatedEventHandler({ config: c, action: i, host: s });
1110
+ const { resetLoadingState: a, host: o, action: r, config: s, groupEvent: l } = e.detail, i = (c) => {
1111
+ const [p, f] = c;
1112
+ !p && f ? o.setError(f) : p && !f && r === "create" && o.schedulerConfigCreatedEventHandler({ config: p, action: r, host: o });
1108
1113
  };
1109
- if (i === "edit") {
1110
- const d = await t.schedulerConfig.updateConfiguration(o);
1111
- r(d), a && a(e);
1114
+ if (r === "edit") {
1115
+ const c = await t.schedulerConfig.updateConfiguration(s);
1116
+ i(c), a && a(e);
1112
1117
  } else {
1113
- const d = await t.schedulerConfig.createConfiguration(o);
1114
- r(d);
1115
- const [c, y] = d, g = c == null ? void 0 : c.id;
1116
- if (g && l) {
1117
- const C = await t.schedulerConfig.createGroupEvent(l, g);
1118
- r(C);
1118
+ const c = await t.schedulerConfig.createConfiguration(s);
1119
+ i(c);
1120
+ const [p, f] = c, m = p == null ? void 0 : p.id;
1121
+ if (m && l) {
1122
+ const w = await t.schedulerConfig.createGroupEvent(l, m);
1123
+ i(w);
1119
1124
  }
1120
1125
  a && a(e);
1121
1126
  }
@@ -1136,30 +1141,30 @@ ft([
1136
1141
  b("[nylas-editor-tabs-group]", "schedulerConfigCreated", e);
1137
1142
  },
1138
1143
  groupEventUpdateTriggered: async (e, t) => {
1139
- const { groupEvent: a, host: s, chosenOption: i, configId: o } = e.detail, l = await t.schedulerConfig.updateGroupEvent(a, i, o), [r, d] = l;
1140
- !r && d && s.setError(d);
1144
+ const { groupEvent: a, host: o, chosenOption: r, configId: s } = e.detail, l = await t.schedulerConfig.updateGroupEvent(a, r, s), [i, c] = l;
1145
+ !i && c && o.setError(c);
1141
1146
  },
1142
1147
  groupEventDeleteTriggered: async (e, t) => {
1143
- const { groupEvent: a, chosenOption: s, configId: i, host: o } = e.detail, l = await t.schedulerConfig.deleteGroupEvent(a, s, i), [r, d] = l;
1144
- !r && d && o.setError(d);
1148
+ const { groupEvent: a, chosenOption: o, configId: r, host: s } = e.detail, l = await t.schedulerConfig.deleteGroupEvent(a, o, r), [i, c] = l;
1149
+ !i && c && s.setError(c);
1145
1150
  },
1146
1151
  groupEventCreateTriggered: async (e, t) => {
1147
- const { groupEvent: a, configId: s, host: i } = e.detail, o = await t.schedulerConfig.createGroupEvent(a, s), [l, r] = o;
1148
- !l && r && i.setError(r);
1152
+ const { groupEvent: a, configId: o, host: r } = e.detail, s = await t.schedulerConfig.createGroupEvent(a, o), [l, i] = s;
1153
+ !l && i && r.setError(i);
1149
1154
  },
1150
1155
  groupEventImportTriggered: async (e, t) => {
1151
- const { groupEvent: a, configId: s, host: i } = e.detail, o = await t.schedulerConfig.importGroupEvent([a], s), [l, r] = o;
1152
- if (!l && r && i.setError(r), l && l.import_failed && l.import_failed.length > 0) {
1153
- const d = l.import_failed.map((c) => c.reason).join(`
1156
+ const { groupEvent: a, configId: o, host: r } = e.detail, s = await t.schedulerConfig.importGroupEvent([a], o), [l, i] = s;
1157
+ if (!l && i && r.setError(i), l && l.import_failed && l.import_failed.length > 0) {
1158
+ const c = l.import_failed.map((p) => p.reason).join(`
1154
1159
  `);
1155
- i.setError(new Error(d)), setTimeout(() => {
1156
- i.resetError();
1160
+ r.setError(new Error(c)), setTimeout(() => {
1161
+ r.resetError();
1157
1162
  }, 5e3);
1158
1163
  }
1159
1164
  },
1160
1165
  saveGroupEventChangesError: async (e, t) => {
1161
- const { error: a, host: s } = e.detail;
1162
- b("[nylas-editor-tabs-group]", "saveGroupEventChangesError", a, s);
1166
+ const { error: a, host: o } = e.detail;
1167
+ b("[nylas-editor-tabs-group]", "saveGroupEventChangesError", a, o);
1163
1168
  }
1164
1169
  },
1165
1170
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -1169,25 +1174,25 @@ ft([
1169
1174
  ]),
1170
1175
  fireRegisterEvent: !0
1171
1176
  }),
1172
- ue("design:type", Function),
1173
- ue("design:paramtypes", []),
1174
- ue("design:returntype", void 0)
1175
- ], We.prototype, "render", null);
1176
- We.style = yt;
1177
+ he("design:type", Function),
1178
+ he("design:paramtypes", []),
1179
+ he("design:returntype", void 0)
1180
+ ], qe.prototype, "render", null);
1181
+ qe.style = yt;
1177
1182
  const gt = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--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}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .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);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;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){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;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)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', mt = gt;
1178
- var _t = function(e, t, a, s) {
1179
- var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
1183
+ var _t = function(e, t, a, o) {
1184
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
1180
1185
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1181
- o = Reflect.decorate(e, t, a, s);
1186
+ s = Reflect.decorate(e, t, a, o);
1182
1187
  else
1183
- for (var r = e.length - 1; r >= 0; r--)
1184
- (l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
1185
- return i > 3 && o && Object.defineProperty(t, a, o), o;
1186
- }, he = function(e, t) {
1188
+ for (var i = e.length - 1; i >= 0; i--)
1189
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
1190
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
1191
+ }, ye = function(e, t) {
1187
1192
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1188
1193
  return Reflect.metadata(e, t);
1189
1194
  };
1190
- const qe = class {
1195
+ const Ke = class {
1191
1196
  constructor(e) {
1192
1197
  X(this, e), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
1193
1198
  }
@@ -1199,7 +1204,7 @@ const qe = class {
1199
1204
  this.disableNextPageButton = !1, this.currentCursor = e;
1200
1205
  }
1201
1206
  selectedLanguageChangedHandler(e, t) {
1202
- e !== t && p.changeLanguage(e);
1207
+ e !== t && d.changeLanguage(e);
1203
1208
  }
1204
1209
  connectedCallback() {
1205
1210
  b("[nylas-list-configurations]", "connectedCallback");
@@ -1216,18 +1221,18 @@ const qe = class {
1216
1221
  b("[nylas-list-configurations]", "disconnectedCallback");
1217
1222
  }
1218
1223
  async handleNylasFormDropdownChanged(e) {
1219
- var i;
1224
+ var r;
1220
1225
  b("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
1221
- const { value: t } = e.detail, [a, s] = t.split("-");
1226
+ const { value: t } = e.detail, [a, o] = t.split("-");
1222
1227
  switch (e.preventDefault(), a) {
1223
1228
  case "delete":
1224
- this.deleteConfigurationId = (i = this.configurations[s]) == null ? void 0 : i.id;
1229
+ this.deleteConfigurationId = (r = this.configurations[o]) == null ? void 0 : r.id;
1225
1230
  break;
1226
1231
  case "preview":
1227
- window.open(se(this.schedulerPreviewLink, this.configurations[s]), "_blank");
1232
+ window.open(re(this.schedulerPreviewLink, this.configurations[o]), "_blank");
1228
1233
  break;
1229
1234
  case "copy":
1230
- await navigator.clipboard.writeText(se(this.schedulerPreviewLink, this.configurations[s]));
1235
+ await navigator.clipboard.writeText(re(this.schedulerPreviewLink, this.configurations[o]));
1231
1236
  break;
1232
1237
  }
1233
1238
  }
@@ -1272,11 +1277,11 @@ const qe = class {
1272
1277
  };
1273
1278
  switch (e) {
1274
1279
  case "preview":
1275
- return n("span", { style: t }, n("eye-icon", { width: "16", height: "16" }), p.t("nylasListConfigurations.previewButtonText"));
1280
+ return n("span", { style: t }, n("eye-icon", { width: "16", height: "16" }), d.t("nylasListConfigurations.previewButtonText"));
1276
1281
  case "copy":
1277
- return n("span", { style: t }, n("copy-icon", { width: "16", height: "16" }), p.t("nylasListConfigurations.copyLinkButtonText"));
1282
+ return n("span", { style: t }, n("copy-icon", { width: "16", height: "16" }), d.t("nylasListConfigurations.copyLinkButtonText"));
1278
1283
  case "delete":
1279
- return n("span", { style: { ...t, ...a } }, n("delete-icon", { width: "15", height: "17" }), p.t("nylasListConfigurations.deleteButtonText"));
1284
+ return n("span", { style: { ...t, ...a } }, n("delete-icon", { width: "15", height: "17" }), d.t("nylasListConfigurations.deleteButtonText"));
1280
1285
  default:
1281
1286
  return "";
1282
1287
  }
@@ -1299,32 +1304,32 @@ const qe = class {
1299
1304
  }
1300
1305
  render() {
1301
1306
  var e;
1302
- return n(re, null, n("div", { class: "header" }, n("div", { class: "description" }, n("h2", null, p.t("allSchedulingPages")), n("p", null, p.t("createAndManageSchedulingPages"))), this.configurations && this.configurations.length > 0 && n("div", { class: "actions" }, n("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
1307
+ return n(le, null, n("div", { class: "header" }, n("div", { class: "description" }, n("h2", null, d.t("allSchedulingPages")), n("p", null, d.t("createAndManageSchedulingPages"))), this.configurations && this.configurations.length > 0 && n("div", { class: "actions" }, n("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
1303
1308
  this.createButtonClick.emit(this.host);
1304
- } }, p.t("createNewSchedulingPageButtonText")))), n("div", { class: "configurations" }, n("div", { class: "table-container" }, n("table", { class: {
1309
+ } }, d.t("createNewSchedulingPageButtonText")))), n("div", { class: "configurations" }, n("div", { class: "table-container" }, n("table", { class: {
1305
1310
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
1306
1311
  } }, n("tr", { class: {
1307
1312
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
1308
- } }, n("th", null, p.t("pageTitle")), n("th", null, p.t("durationTitle")), n("th", null)), this.state === "loading" && n("tr", { class: "no-configurations" }, n("td", { colSpan: 3 }, n("div", null, n("h3", null, p.t("loading"), "..."), n("p", null, p.t("loadingPagesDescription"))))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && n("tr", { class: "no-configurations" }, n("td", { colSpan: 3 }, n("div", null, n("calendar-icon", { width: "48", height: "48" }), n("h3", null, p.t("noSchedulingPages")), n("p", null, p.t("createFirstSchedulingPage")), n("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
1313
+ } }, n("th", null, d.t("pageTitle")), n("th", null, d.t("durationTitle")), n("th", null)), this.state === "loading" && n("tr", { class: "no-configurations" }, n("td", { colSpan: 3 }, n("div", null, n("h3", null, d.t("loading"), "..."), n("p", null, d.t("loadingPagesDescription"))))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && n("tr", { class: "no-configurations" }, n("td", { colSpan: 3 }, n("div", null, n("calendar-icon", { width: "48", height: "48" }), n("h3", null, d.t("noSchedulingPages")), n("p", null, d.t("createFirstSchedulingPage")), n("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
1309
1314
  this.createButtonClick.emit(this.host);
1310
- } }, p.t("createNewSchedulingPageButtonText"))))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((t, a) => {
1311
- var l, r, d, c;
1312
- const s = (a === this.configurations.length - 1 || a === this.configurations.length - 2) && this.configurations.length > 3, i = t, o = t;
1313
- return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = o == null ? void 0 : o.event_booking) == null ? void 0 : l.title }, ((r = o == null ? void 0 : o.event_booking) == null ? void 0 : r.title) || (i == null ? void 0 : i.name)), n("div", { class: "config-event-description" }, (d = o == null ? void 0 : o.event_booking) == null ? void 0 : d.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((c = o == null ? void 0 : o.availability) == null ? void 0 : c.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (y) => {
1314
- y.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
1315
- } }, n("edit-icon", { width: "16", height: "16" }), p.t("editSchedulingPageButtonText")), n("select-dropdown", { class: {
1316
- last: s
1315
+ } }, d.t("createNewSchedulingPageButtonText"))))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((t, a) => {
1316
+ var l, i, c, p;
1317
+ const o = (a === this.configurations.length - 1 || a === this.configurations.length - 2) && this.configurations.length > 3, r = t, s = t;
1318
+ return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = s == null ? void 0 : s.event_booking) == null ? void 0 : l.title }, ((i = s == null ? void 0 : s.event_booking) == null ? void 0 : i.title) || (r == null ? void 0 : r.name)), n("div", { class: "config-event-description" }, (c = s == null ? void 0 : s.event_booking) == null ? void 0 : c.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((p = s == null ? void 0 : s.availability) == null ? void 0 : p.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (f) => {
1319
+ f.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
1320
+ } }, n("edit-icon", { width: "16", height: "16" }), d.t("editSchedulingPageButtonText")), n("select-dropdown", { class: {
1321
+ last: o
1317
1322
  }, name: "actions", options: [
1318
1323
  { value: `preview-${a}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
1319
1324
  { value: `copy-${a}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
1320
1325
  { value: `delete-${a}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
1321
1326
  ], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" }))));
1322
- })))), n("div", { class: "pagination" }, n("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, n("chevron-icon", null)), n("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, n("chevron-icon", null)))), this.state === "error" && n("div", { class: "error-container" }, n("p", { class: "error" }, this.error)), !!this.deleteConfigurationId && n("div", { class: "card-wrapper" }, n("div", { class: "card-modal" }, n("div", { class: "close-button" }, n("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (t) => this.closeModal(t), part: "nfbf__close-button" }, n("close-icon", null))), n("div", { class: "header" }, n("h2", { slot: "card-title", part: "nfbf__title" }, p.t("deleteSchedulingPageTitle"))), n("div", { class: "description title-desc" }, n("p", null, p.t("deleteSchedulingPageDescription"))), n("div", { class: {
1327
+ })))), n("div", { class: "pagination" }, n("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, n("chevron-icon", null)), n("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, n("chevron-icon", null)))), this.state === "error" && n("div", { class: "error-container" }, n("p", { class: "error" }, this.error)), !!this.deleteConfigurationId && n("div", { class: "card-wrapper" }, n("div", { class: "card-modal" }, n("div", { class: "close-button" }, n("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (t) => this.closeModal(t), part: "nfbf__close-button" }, n("close-icon", null))), n("div", { class: "header" }, n("h2", { slot: "card-title", part: "nfbf__title" }, d.t("deleteSchedulingPageTitle"))), n("div", { class: "description title-desc" }, n("p", null, d.t("deleteSchedulingPageDescription"))), n("div", { class: {
1323
1328
  footer: !0
1324
- } }, n("button-component", { variant: "basic", onClick: (t) => this.closeModal(t), part: "nfbf__button-outline nfbf__cancel-cta" }, `${p.t("deleteSchedulingPageCancelButton")}`), n("button-component", { variant: "destructive", onClick: (t) => this.handleConfirmDeleteButtonClicked(t), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${p.t("deleteSchedulingPageConfirmButton")}`)))));
1329
+ } }, n("button-component", { variant: "basic", onClick: (t) => this.closeModal(t), part: "nfbf__button-outline nfbf__cancel-cta" }, `${d.t("deleteSchedulingPageCancelButton")}`), n("button-component", { variant: "destructive", onClick: (t) => this.handleConfirmDeleteButtonClicked(t), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${d.t("deleteSchedulingPageConfirmButton")}`)))));
1325
1330
  }
1326
1331
  get host() {
1327
- return le(this);
1332
+ return de(this);
1328
1333
  }
1329
1334
  static get watchers() {
1330
1335
  return {
@@ -1334,7 +1339,7 @@ const qe = class {
1334
1339
  }
1335
1340
  };
1336
1341
  _t([
1337
- de({
1342
+ ce({
1338
1343
  name: "nylas-list-configurations",
1339
1344
  stateToProps: /* @__PURE__ */ new Map([
1340
1345
  ["schedulerConfig.configurations", "configurations"],
@@ -1344,33 +1349,34 @@ _t([
1344
1349
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
1345
1350
  eventToProps: {
1346
1351
  initListConfigurations: async (e, t) => {
1347
- const { host: a, cursor: s } = e.detail;
1352
+ const { host: a, cursor: o } = e.detail;
1348
1353
  await a.setState("loading");
1349
- const [i, o] = await t.schedulerConfig.getConfigurations(s);
1350
- if (!i && o && o.message) {
1351
- await a.setState("error"), await a.setError(o.message);
1354
+ const [r, s] = await t.schedulerConfig.getConfigurations(o);
1355
+ if (!r && s && s.message) {
1356
+ await a.setState("error"), await a.setError(s.message);
1352
1357
  return;
1353
1358
  }
1354
1359
  await a.setState("loaded");
1355
1360
  },
1356
1361
  createButtonClick: async (e, t) => {
1357
- var a;
1358
- t.schedulerConfigStore.resetSelectedConfiguration(), (a = t.schedulerConfigStore.state.experimentalFeatures) != null && a.group_events ? t.schedulerConfigStore.state.action = "create-select" : t.schedulerConfigStore.state.action = "create";
1362
+ t.schedulerConfigStore.resetSelectedConfiguration();
1363
+ const a = Object.entries(t.schedulerConfigStore.state.enableEventTypes || {}).filter(([o, r]) => r);
1364
+ a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType = H[a[0][0]]) : t.schedulerConfigStore.state.action = "create-select";
1359
1365
  },
1360
1366
  deleteButtonClick: async (e, t) => {
1361
- const { host: a, configuration: s } = e.detail, [i, o] = await t.schedulerConfig.deleteConfiguration(s.id);
1362
- !i && o && o.message && (await a.setState("error"), await a.setError(o.message)), await a.hideDeleteConfirmation();
1367
+ const { host: a, configuration: o } = e.detail, [r, s] = await t.schedulerConfig.deleteConfiguration(o.id);
1368
+ !r && s && s.message && (await a.setState("error"), await a.setError(s.message)), await a.hideDeleteConfirmation();
1363
1369
  },
1364
1370
  editButtonClick: async (e, t) => {
1365
1371
  const { configuration: a } = e.detail;
1366
1372
  if (t.schedulerConfigStore.state.selectedConfiguration = a, a.type === "group") {
1367
- const { startTime: s, endTime: i } = et((/* @__PURE__ */ new Date()).toISOString(), "week");
1373
+ const { startTime: o, endTime: r } = et((/* @__PURE__ */ new Date()).toISOString(), "week");
1368
1374
  t.schedulerConfigStore.state.calendarViewDateRange = {
1369
- start_time: s.toString(),
1370
- end_time: i.toString()
1375
+ start_time: o.toString(),
1376
+ end_time: r.toString()
1371
1377
  };
1372
- const [o, l] = await t.schedulerConfig.getGroupEvents(a.id);
1373
- if (!o && l && l.message)
1378
+ const [s, l] = await t.schedulerConfig.getGroupEvents(a.id);
1379
+ if (!s && l && l.message)
1374
1380
  return;
1375
1381
  }
1376
1382
  t.schedulerConfigStore.state.action = "edit";
@@ -1378,27 +1384,33 @@ _t([
1378
1384
  },
1379
1385
  fireRegisterEvent: !0
1380
1386
  }),
1381
- he("design:type", Function),
1382
- he("design:paramtypes", []),
1383
- he("design:returntype", void 0)
1384
- ], qe.prototype, "render", null);
1385
- qe.style = mt;
1387
+ ye("design:type", Function),
1388
+ ye("design:paramtypes", []),
1389
+ ye("design:returntype", void 0)
1390
+ ], Ke.prototype, "render", null);
1391
+ Ke.style = mt;
1386
1392
  const vt = ':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;width:inherit}.nylas-select-event-type{height:inherit;overflow-y:auto}.nylas-select-event-type div.header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.nylas-select-event-type div.header h2{font-size:18px;padding:0 24px;line-height:24px;margin:0;font-weight:600;color:var(--nylas-base-800)}.nylas-select-event-type div.header button-component button{background:transparent;border:none;cursor:pointer}.nylas-select-event-type div.header button-component button:hover,.nylas-select-event-type div.header button-component button:active{color:var(--nylas-primary);background-color:transparent}.nylas-select-event-type div.header button-component button:disabled{cursor:not-allowed}.nylas-select-event-type div.content{padding:40px}.nylas-select-event-type div.content h3{margin:0 0 32px 0;font-size:18px;line-height:24px;font-weight:600}.nylas-select-event-type div.content div.event-type{display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option{padding:16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-3x);width:inherit;cursor:pointer;display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option h4{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--nylas-base-900)}.nylas-select-event-type div.content div.event-type div.event-type-option p{margin:0;font-size:14px;line-height:21px;font-weight:400;color:var(--nylas-base-800)}', wt = vt;
1387
- var kt = function(e, t, a, s) {
1388
- var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
1393
+ var kt = function(e, t, a, o) {
1394
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
1389
1395
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1390
- o = Reflect.decorate(e, t, a, s);
1396
+ s = Reflect.decorate(e, t, a, o);
1391
1397
  else
1392
- for (var r = e.length - 1; r >= 0; r--)
1393
- (l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
1394
- return i > 3 && o && Object.defineProperty(t, a, o), o;
1395
- }, ye = function(e, t) {
1398
+ for (var i = e.length - 1; i >= 0; i--)
1399
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
1400
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
1401
+ }, fe = function(e, t) {
1396
1402
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1397
1403
  return Reflect.metadata(e, t);
1398
1404
  };
1399
1405
  const Ye = class {
1400
1406
  constructor(e) {
1401
- X(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0;
1407
+ X(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
1408
+ one_on_one: !0,
1409
+ collective: !0,
1410
+ max_fairness: !0,
1411
+ max_availability: !0,
1412
+ group: !0
1413
+ };
1402
1414
  }
1403
1415
  connectedCallback() {
1404
1416
  b("nylas-select-event-type", "connectedCallback");
@@ -1416,33 +1428,54 @@ const Ye = class {
1416
1428
  b("nylas-select-event-type", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
1417
1429
  }
1418
1430
  selectedLanguageChangedHandler(e, t) {
1419
- e !== t && p.changeLanguage(e);
1431
+ e !== t && d.changeLanguage(e);
1420
1432
  }
1421
1433
  render() {
1422
- var i;
1423
- const e = [
1424
- { label: "1:1", value: O.one_on_one, description: "Allows 1:1 bookings" },
1425
- { label: "Collective", value: O.collective, description: "Allows n:1 bookings with additional participants" },
1434
+ var s;
1435
+ const e = {
1436
+ "one-on-one": "one_on_one",
1437
+ collective: "collective",
1438
+ "max-fairness": "max_fairness",
1439
+ "max-availability": "max_availability",
1440
+ group: "group"
1441
+ }, t = [
1442
+ {
1443
+ label: d.t("nylasSelectEventType.eventTypeOptions.oneOnOne.label"),
1444
+ value: H.one_on_one,
1445
+ description: d.t("nylasSelectEventType.eventTypeOptions.oneOnOne.desc")
1446
+ },
1447
+ {
1448
+ label: d.t("nylasSelectEventType.eventTypeOptions.collective.label"),
1449
+ value: H.collective,
1450
+ description: d.t("nylasSelectEventType.eventTypeOptions.collective.desc")
1451
+ },
1426
1452
  {
1427
- label: "Round-Robin Maximize Fairness",
1428
- value: O.max_fairness,
1429
- description: "Rotates through the list of participants you select, displaying the participant with the fewest recent bookings."
1453
+ label: d.t("nylasSelectEventType.eventTypeOptions.maxFairness.label"),
1454
+ value: H.max_fairness,
1455
+ description: d.t("nylasSelectEventType.eventTypeOptions.maxFairness.desc")
1430
1456
  },
1431
1457
  {
1432
- label: "Round-Robin Maximize Availability",
1433
- value: O.max_availability,
1434
- description: "Rotates through the list of participants you select, prioritizing participants with the fewest recent bookings, but making as many time-slots available as possible."
1458
+ label: d.t("nylasSelectEventType.eventTypeOptions.maxAvailability.label"),
1459
+ value: H.max_availability,
1460
+ description: d.t("nylasSelectEventType.eventTypeOptions.maxAvailability.desc")
1435
1461
  },
1436
- { label: "Group / Class", value: O.group, description: "These are events which generally have one organizer and multiple participants" }
1437
- ], t = this.participantOptions && ((i = this.participantOptions) == null ? void 0 : i.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, a = [O.collective, O.max_availability, O.max_fairness], s = [O.one_on_one, O.group];
1438
- return n(re, { key: "d5aed715d0b33063596b250da816b617301f16f0" }, n("div", { key: "679668eaf49d2f68f4338fd1c83f9a27875dec79", class: "nylas-select-event-type", part: "nset" }, n("div", { key: "0fa60b4547433bd2e4395c2d05942693eae00ce8", class: "header", part: "nset__header" }, n("h2", { key: "348d27d9e2398ef6cda24e53cc9127c7f7b627fe" }, "Create an event"), n("button-component", { key: "c4420cd4d2be87567c82178620fe14dbbe3babeb", variant: "invisible", part: "nset__header__back-button", onClick: (o) => {
1462
+ {
1463
+ label: d.t("nylasSelectEventType.eventTypeOptions.group.label"),
1464
+ value: H.group,
1465
+ description: d.t("nylasSelectEventType.eventTypeOptions.group.desc")
1466
+ }
1467
+ ], a = [H.collective, H.max_availability, H.max_fairness], o = this.participantOptions && ((s = this.participantOptions) == null ? void 0 : s.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, r = this.enableEventTypes ? t.filter((l) => {
1468
+ const i = l.value, c = e[i];
1469
+ return console.log("key", i, this.enableEventTypes ? this.enableEventTypes[c] : "no enableEventTypes"), a.includes(i) && !o ? !1 : this.enableEventTypes && this.enableEventTypes[c];
1470
+ }) : t;
1471
+ return n(le, null, n("div", { class: "nylas-select-event-type", part: "nset" }, n("div", { class: "header", part: "nset__header" }, n("h2", null, d.t("nylasSelectEventType.createEventHeaderTitle")), n("button-component", { variant: "invisible", part: "nset__header__back-button", onClick: (l) => {
1439
1472
  this.returnToAllSchedulingPagesEvent.emit();
1440
- } }, n("chevron-icon", { key: "4d7c919f04de328e5ad064eb802f6faa86c67c97", width: "16", height: "16" }), n("span", { key: "40204db0d92e8d1a6458ac8ce23c25222345e8de" }, "Return to all scheduling pages"))), n("div", { key: "1bf550eefbb9819f85da9884365c29120d4fa5ab", class: "content", part: "nset__content" }, n("h3", { key: "5391f331fe9ffc538ffee32af02e8be056b9eb3b" }, "Event type"), n("div", { key: "fe6612a8ee555df7bdaabb0d500a4d6671b03192", class: "event-type", part: "nset__content__event-type" }, e.filter((o) => s.includes(o.value) || t && a.includes(o.value)).map((o) => n("div", { class: "event-type-option", onClick: (l) => {
1441
- this.createEventTypeSelected.emit({ eventType: o.value });
1442
- }, part: `nset__content__event-type-option-${o.value}` }, n("h4", null, o.label), n("p", null, o.description)))))));
1473
+ } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, d.t("nylasSelectEventType.returnToAllSchedulingPages")))), n("div", { class: "content", part: "nset__content" }, n("h3", null, d.t("nylasSelectEventType.eventTypeHeaderTitle")), n("div", { class: "event-type", part: "nset__content__event-type" }, r.length === 0 && n("p", null, d.t("nylasSelectEventType.noEventTypesEnabled")), r.map((l) => n("div", { class: "event-type-option", onClick: (i) => {
1474
+ this.createEventTypeSelected.emit({ eventType: l.value });
1475
+ }, part: `nset__content__event-type-option-${l.value}` }, n("h4", null, l.label), n("p", null, l.description)))))));
1443
1476
  }
1444
1477
  get host() {
1445
- return le(this);
1478
+ return de(this);
1446
1479
  }
1447
1480
  static get watchers() {
1448
1481
  return {
@@ -1452,11 +1485,12 @@ const Ye = class {
1452
1485
  }
1453
1486
  };
1454
1487
  kt([
1455
- de({
1488
+ ce({
1456
1489
  name: "nylas-select-event-type",
1457
1490
  stateToProps: /* @__PURE__ */ new Map([
1458
1491
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1459
- ["schedulerConfig.additionalParticipants", "participantOptions"]
1492
+ ["schedulerConfig.additionalParticipants", "participantOptions"],
1493
+ ["schedulerConfig.enableEventTypes", "enableEventTypes"]
1460
1494
  ]),
1461
1495
  eventToProps: {
1462
1496
  returnToAllSchedulingPagesEvent: async (e, t) => {
@@ -1469,16 +1503,16 @@ kt([
1469
1503
  },
1470
1504
  fireRegisterEvent: !0
1471
1505
  }),
1472
- ye("design:type", Function),
1473
- ye("design:paramtypes", []),
1474
- ye("design:returntype", void 0)
1506
+ fe("design:type", Function),
1507
+ fe("design:paramtypes", []),
1508
+ fe("design:returntype", void 0)
1475
1509
  ], Ye.prototype, "render", null);
1476
1510
  Ye.style = wt;
1477
1511
  export {
1478
1512
  st as google_logo_icon,
1479
1513
  lt as microsoft_logo_icon,
1480
- Ze as nylas_editor_tabs,
1481
- We as nylas_editor_tabs_group,
1482
- qe as nylas_list_configurations,
1514
+ We as nylas_editor_tabs,
1515
+ qe as nylas_editor_tabs_group,
1516
+ Ke as nylas_list_configurations,
1483
1517
  Ye as nylas_select_event_type
1484
1518
  };