@nylas/react 1.1.6 → 1.2.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 (121) hide show
  1. package/dist/{add-circle-icon_2.entry-c9aa21bb.cjs → add-circle-icon_2.entry-52cc3933.cjs} +1 -1
  2. package/dist/{add-circle-icon_2.entry-40ff1ddc.js → add-circle-icon_2.entry-5ea903bf.js} +1 -1
  3. package/dist/{archive-icon.entry-253f4253.js → archive-icon.entry-50c4b134.js} +1 -1
  4. package/dist/{archive-icon.entry-f27eb10c.cjs → archive-icon.entry-718a1225.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-ac939154.js → arrow-icon.entry-53337688.js} +1 -1
  6. package/dist/{arrow-icon.entry-b1ca875a.cjs → arrow-icon.entry-ca9625d3.cjs} +1 -1
  7. package/dist/{bold-icon.entry-e815017f.cjs → bold-icon.entry-36e679f1.cjs} +1 -1
  8. package/dist/{bold-icon.entry-3594774b.js → bold-icon.entry-c6109b88.js} +1 -1
  9. package/dist/{button-component_2.entry-fdca89a8.js → button-component_2.entry-0a06b0c4.js} +1 -1
  10. package/dist/{button-component_2.entry-a2d998c4.cjs → button-component_2.entry-a1b8cd03.cjs} +1 -1
  11. package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +9 -0
  12. package/dist/{calendar-agenda-fill-icon_54.entry-40b74a1d.js → calendar-agenda-fill-icon_54.entry-e4d8ab10.js} +2130 -2453
  13. package/dist/{calendar-cancel-icon.entry-98e56632.cjs → calendar-cancel-icon.entry-22862d8c.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-90a529f9.js → calendar-cancel-icon.entry-813a8330.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-305d0f9f.cjs → calendar-check-icon_2.entry-2ca25094.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-09e247b0.js → calendar-check-icon_2.entry-79d381ce.js} +1 -1
  17. package/dist/{calendar-icon.entry-7570a82f.cjs → calendar-icon.entry-78bb4f9b.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-ff7dfc9b.js → calendar-icon.entry-d52951b0.js} +1 -1
  19. package/dist/{checkbox-component_2.entry-2d8bf66e.js → checkbox-component_2.entry-1219f0cf.js} +1 -1
  20. package/dist/{checkbox-component_2.entry-2b5a2721.cjs → checkbox-component_2.entry-a6114846.cjs} +1 -1
  21. package/dist/{chevron-icon_3.entry-e6539933.js → chevron-icon_3.entry-82878ccf.js} +26 -22
  22. package/dist/chevron-icon_3.entry-d8f195dc.cjs +1 -0
  23. package/dist/{clock-icon_4.entry-797aa1f7.js → clock-icon_4.entry-9ab4bc41.js} +1 -1
  24. package/dist/{clock-icon_4.entry-623c482d.cjs → clock-icon_4.entry-e081ccca.cjs} +1 -1
  25. package/dist/{constants-c549b12b-7ea4c7f5.js → constants-35df11e7-b37e3406.js} +1 -1
  26. package/dist/{constants-c549b12b-c85413b1.cjs → constants-35df11e7-d87ad6d9.cjs} +1 -1
  27. package/dist/{copy-icon.entry-7dd1cd70.cjs → copy-icon.entry-9c6f38c2.cjs} +1 -1
  28. package/dist/{copy-icon.entry-9b8eb24d.js → copy-icon.entry-9d6e0f48.js} +1 -1
  29. package/dist/{delete-icon.entry-506ee04f.cjs → delete-icon.entry-6ec9c80d.cjs} +1 -1
  30. package/dist/{delete-icon.entry-3d05884f.js → delete-icon.entry-fd8dc119.js} +1 -1
  31. package/dist/{document-refresh-icon.entry-09b959f4.js → document-refresh-icon.entry-2b531e97.js} +1 -1
  32. package/dist/{document-refresh-icon.entry-1ff1f7ca.cjs → document-refresh-icon.entry-bea78baf.cjs} +1 -1
  33. package/dist/{feedbackSync-b56b29ed-6a2388f3.js → feedbackSync-b56b29ed-a7e9f258.js} +1 -1
  34. package/dist/{feedbackSync-b56b29ed-cf8c7876.cjs → feedbackSync-b56b29ed-cdcec5be.cjs} +1 -1
  35. package/dist/{folder-icon.entry-2788257d.cjs → folder-icon.entry-485465be.cjs} +1 -1
  36. package/dist/{folder-icon.entry-6f9875f7.js → folder-icon.entry-6a43630e.js} +1 -1
  37. package/dist/{forward-icon.entry-a0de0be0.js → forward-icon.entry-514ea4a8.js} +1 -1
  38. package/dist/{forward-icon.entry-49f6a480.cjs → forward-icon.entry-a1af9122.cjs} +1 -1
  39. package/dist/{globe-icon.entry-04c890dd.cjs → globe-icon.entry-970082a4.cjs} +1 -1
  40. package/dist/{globe-icon.entry-b7f1e5b8.js → globe-icon.entry-adcff451.js} +1 -1
  41. package/dist/google-logo-icon_4.entry-21cb4b95.cjs +1 -0
  42. package/dist/{google-logo-icon_4.entry-b2463218.js → google-logo-icon_4.entry-2b68fe81.js} +309 -302
  43. package/dist/{inbox-icon.entry-11813535.cjs → inbox-icon.entry-94507d27.cjs} +1 -1
  44. package/dist/{inbox-icon.entry-c5cb64d8.js → inbox-icon.entry-d3e42f82.js} +1 -1
  45. package/dist/{index-600718a1.js → index-9dc1bd32.js} +511 -511
  46. package/dist/{index-8755dd64.cjs → index-bec58f1d.cjs} +16 -16
  47. package/dist/{index.es-c7ca1bad-73894e2f.js → index.es-c7ca1bad-38475209.js} +1 -1
  48. package/dist/{index.es-c7ca1bad-1c8a9213.cjs → index.es-c7ca1bad-5652d50c.cjs} +1 -1
  49. package/dist/{info-icon_2.entry-e48e3cda.js → info-icon_2.entry-3b5a2c7f.js} +1 -1
  50. package/dist/{info-icon_2.entry-08125285.cjs → info-icon_2.entry-e23f3ffd.cjs} +1 -1
  51. package/dist/{input-color-picker.entry-54e61165.js → input-color-picker.entry-9bc48bd3.js} +1 -1
  52. package/dist/{input-color-picker.entry-acfa5da8.cjs → input-color-picker.entry-b4ea90c5.cjs} +1 -1
  53. package/dist/{input-component.entry-e2fbcde0.cjs → input-component.entry-e567ec08.cjs} +1 -1
  54. package/dist/{input-component.entry-54df3f66.js → input-component.entry-ebae3a8a.js} +1 -1
  55. package/dist/{input-dropdown.entry-8dec00e3.js → input-dropdown.entry-1f704009.js} +1 -1
  56. package/dist/{input-dropdown.entry-1509d5c4.cjs → input-dropdown.entry-597cd5a8.cjs} +1 -1
  57. package/dist/{italic-icon.entry-c9028583.js → italic-icon.entry-08593dd0.js} +1 -1
  58. package/dist/{italic-icon.entry-79eafb05.cjs → italic-icon.entry-8f614353.cjs} +1 -1
  59. package/dist/{multi-select-dropdown.entry-2ed02a88.js → multi-select-dropdown.entry-5f1c73f3.js} +1 -1
  60. package/dist/{multi-select-dropdown.entry-221212e3.cjs → multi-select-dropdown.entry-eb978e22.cjs} +1 -1
  61. package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +1 -0
  62. package/dist/{nylas-booked-event-card_12.entry-fa2b2630.js → nylas-booked-event-card_12.entry-c4043d8f.js} +322 -253
  63. package/dist/{nylas-form-card.entry-2019c383.cjs → nylas-form-card.entry-1540207c.cjs} +1 -1
  64. package/dist/{nylas-form-card.entry-a114052f.js → nylas-form-card.entry-80688e35.js} +2 -2
  65. package/dist/{nylas-if-state.entry-de891ced.js → nylas-if-state.entry-037d0454.js} +2 -2
  66. package/dist/{nylas-if-state.entry-480c45d1.cjs → nylas-if-state.entry-e5155b5b.cjs} +1 -1
  67. package/dist/{nylas-login.entry-c99a7b37.cjs → nylas-login.entry-b3d73ab9.cjs} +1 -1
  68. package/dist/{nylas-login.entry-9ad74f40.js → nylas-login.entry-d157a6ed.js} +2 -2
  69. package/dist/{nylas-provider.entry-d9c4e3d2.cjs → nylas-provider.entry-884ba204.cjs} +1 -1
  70. package/dist/{nylas-provider.entry-faf7ef23.js → nylas-provider.entry-cf4b8b57.js} +4 -4
  71. package/dist/{nylas-scheduler-editor.entry-8c5543bd.cjs → nylas-scheduler-editor.entry-6f76d0d5.cjs} +2 -2
  72. package/dist/{nylas-scheduler-editor.entry-9af09bc2.js → nylas-scheduler-editor.entry-e731ca4a.js} +8 -9
  73. package/dist/{nylas-scheduling.entry-8f5718ac.js → nylas-scheduling.entry-86b18d85.js} +18 -16
  74. package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +1 -0
  75. package/dist/{nylas-time-window-picker.entry-690e753e.js → nylas-time-window-picker.entry-393e855b.js} +1 -1
  76. package/dist/{nylas-time-window-picker.entry-0f396304.cjs → nylas-time-window-picker.entry-f9687046.cjs} +1 -1
  77. package/dist/{person-icon.entry-049ebaaa.cjs → person-icon.entry-1b5dcd2e.cjs} +1 -1
  78. package/dist/{person-icon.entry-9c82640f.js → person-icon.entry-b5ccb1f4.js} +1 -1
  79. package/dist/{play-icon.entry-4b931766.cjs → play-icon.entry-3f2e7e31.cjs} +1 -1
  80. package/dist/{play-icon.entry-5e77c87c.js → play-icon.entry-5e51d961.js} +1 -1
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +1 -1
  83. package/dist/{refresh-icon.entry-1c42e8df.cjs → refresh-icon.entry-3d241ffd.cjs} +1 -1
  84. package/dist/{refresh-icon.entry-f9d37dda.js → refresh-icon.entry-9beaa8e1.js} +1 -1
  85. package/dist/{register-component-3444af44-38748cf2.cjs → register-component-3444af44-890ac950.cjs} +1 -1
  86. package/dist/{register-component-3444af44-a9df7506.js → register-component-3444af44-94783766.js} +1 -1
  87. package/dist/{reply-all-icon.entry-c4c94341.js → reply-all-icon.entry-6b55d3b3.js} +1 -1
  88. package/dist/{reply-all-icon.entry-d090c34a.cjs → reply-all-icon.entry-a0fcbf30.cjs} +1 -1
  89. package/dist/{reply-icon.entry-69438565.js → reply-icon.entry-c709b46f.js} +1 -1
  90. package/dist/{reply-icon.entry-6a5377ae.cjs → reply-icon.entry-c7d0d967.cjs} +1 -1
  91. package/dist/{scheduler-config-store-ed4a8dfd-9126610f.js → scheduler-config-store-ed4a8dfd-13c1c187.js} +1 -1
  92. package/dist/{scheduler-config-store-ed4a8dfd-82b439de.cjs → scheduler-config-store-ed4a8dfd-ba68cc09.cjs} +1 -1
  93. package/dist/scheduler-store-ecd15be2-8f7d171f.cjs +1 -0
  94. package/dist/{scheduler-store-d4784b24-4558c7eb.js → scheduler-store-ecd15be2-d2ef4ac2.js} +27 -25
  95. package/dist/{sent-icon.entry-36964458.cjs → sent-icon.entry-9083bca9.cjs} +1 -1
  96. package/dist/{sent-icon.entry-eae2a5f1.js → sent-icon.entry-b65083f4.js} +1 -1
  97. package/dist/{spam-icon.entry-1f47e1cf.js → spam-icon.entry-120eca46.js} +1 -1
  98. package/dist/{spam-icon.entry-ec0b7f17.cjs → spam-icon.entry-e6c1a82a.cjs} +1 -1
  99. package/dist/{star-icon.entry-f2ba5cf7.js → star-icon.entry-e3563c0b.js} +1 -1
  100. package/dist/{star-icon.entry-5fb1fdfe.cjs → star-icon.entry-efbc2679.cjs} +1 -1
  101. package/dist/{stop-icon.entry-c9b1f0a1.cjs → stop-icon.entry-8d07d719.cjs} +1 -1
  102. package/dist/{stop-icon.entry-e9c53f8f.js → stop-icon.entry-ab5cf663.js} +1 -1
  103. package/dist/{textarea-component.entry-f7a089d4.cjs → textarea-component.entry-93be4a65.cjs} +1 -1
  104. package/dist/{textarea-component.entry-43938bc5.js → textarea-component.entry-a0ef9f03.js} +1 -1
  105. package/dist/{time-period-selector.entry-9151a673.cjs → time-period-selector.entry-16f96af9.cjs} +1 -1
  106. package/dist/{time-period-selector.entry-dcef9d6a.js → time-period-selector.entry-2a86f48f.js} +1 -1
  107. package/dist/{translate-icon.entry-d563b357.cjs → translate-icon.entry-868948d3.cjs} +1 -1
  108. package/dist/{translate-icon.entry-5b47ef85.js → translate-icon.entry-d632b37b.js} +1 -1
  109. package/dist/{trash-fill-icon.entry-7d201791.cjs → trash-fill-icon.entry-88dfffbc.cjs} +1 -1
  110. package/dist/{trash-fill-icon.entry-e316b456.js → trash-fill-icon.entry-eeab235e.js} +1 -1
  111. package/dist/{underline-icon.entry-a6751a31.cjs → underline-icon.entry-35430c19.cjs} +1 -1
  112. package/dist/{underline-icon.entry-03cae3b3.js → underline-icon.entry-65e42dcf.js} +1 -1
  113. package/dist/{warning-icon.entry-b3c9b687.js → warning-icon.entry-bab6d190.js} +1 -1
  114. package/dist/{warning-icon.entry-f4936405.cjs → warning-icon.entry-e7714a43.cjs} +1 -1
  115. package/package.json +3 -3
  116. package/dist/calendar-agenda-fill-icon_54.entry-d47f77af.cjs +0 -10
  117. package/dist/chevron-icon_3.entry-35130198.cjs +0 -1
  118. package/dist/google-logo-icon_4.entry-66d8a50d.cjs +0 -1
  119. package/dist/nylas-booked-event-card_12.entry-5125b535.cjs +0 -1
  120. package/dist/nylas-scheduling.entry-e778f5f6.cjs +0 -1
  121. package/dist/scheduler-store-d4784b24-32e6da1e.cjs +0 -1
@@ -1,139 +1,139 @@
1
- import { r as G, h as t, c as x, d as h, n as Fe, o as K, H as Te, g as Ee, F as ze } from "./index-600718a1.js";
2
- import { R as Pe } from "./register-component-3444af44-a9df7506.js";
3
- import { D as Le } from "./constants-c549b12b-7ea4c7f5.js";
4
- import { i as Ue, a as Re, c as Ae, b as je, f as $e } from "./feedbackSync-b56b29ed-6a2388f3.js";
1
+ import { r as G, h as e, c as k, d as h, n as Et, o as X, H as Ot, g as Ht, F as Jt } from "./index-9dc1bd32.js";
2
+ import { R as Nt } from "./register-component-3444af44-94783766.js";
3
+ import { D as Bt } from "./constants-35df11e7-b37e3406.js";
4
+ import { i as Vt, a as Zt, c as Gt, b as Wt, f as qt } from "./feedbackSync-b56b29ed-a7e9f258.js";
5
5
  import "react";
6
6
  import "react-dom";
7
- const Je = ".sc-google-logo-icon-h{display:flex}", Ve = Je, Ze = class {
8
- constructor(e) {
9
- G(this, e), this.width = "24", this.height = "24";
7
+ const Kt = ".sc-google-logo-icon-h{display:flex}", Qt = Kt, Xt = class {
8
+ constructor(t) {
9
+ G(this, t), this.width = "24", this.height = "24";
10
10
  }
11
11
  render() {
12
- return t("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, t("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", 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" }), t("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", 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" }), t("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", 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" }), t("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", 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" })), t("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, t("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, t("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
12
+ return e("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", 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" }), e("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", 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" }), e("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", 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" }), e("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", 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" })), e("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, e("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, e("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
13
13
  }
14
14
  };
15
- Ze.style = Ve;
16
- const Ge = ".sc-microsoft-logo-icon-h{display:flex}", We = Ge, qe = class {
17
- constructor(e) {
18
- G(this, e), this.width = "22", this.height = "22";
15
+ Xt.style = Qt;
16
+ const Yt = ".sc-microsoft-logo-icon-h{display:flex}", te = Yt, ee = class {
17
+ constructor(t) {
18
+ G(this, t), this.width = "22", this.height = "22";
19
19
  }
20
20
  render() {
21
- return t("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), t("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), t("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), t("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
21
+ return e("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
22
22
  }
23
23
  };
24
- qe.style = We;
24
+ ee.style = te;
25
25
  var o;
26
- (function(e) {
27
- e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
26
+ (function(t) {
27
+ t.EventInfo = "eventInfo", t.Availability = "availability", t.BookingOptions = "bookingOptions", t.Communications = "communications", t.Participants = "participants", t.BookingForm = "bookingForm", t.PageStyles = "pageStyles";
28
28
  })(o || (o = {}));
29
- function Ke({ id: e, formState: a, activeTab: n }, i) {
30
- return t(
31
- ze,
29
+ function ae({ id: t, formState: a, activeTab: n }, i) {
30
+ return e(
31
+ Jt,
32
32
  null,
33
- t(
33
+ e(
34
34
  "div",
35
- { key: `event-info-${e}`, class: { hide: n !== o.EventInfo } },
36
- t(
35
+ { key: `event-info-${t}`, class: { hide: n !== o.EventInfo } },
36
+ e(
37
37
  "nylas-event-info",
38
38
  null,
39
- t(
39
+ e(
40
40
  "div",
41
41
  { slot: "inputs" },
42
- t("nylas-event-title", { name: "title", exportparts: "net, net__title, net__dropdown-content" }),
43
- t("nylas-event-duration", { name: "duration", exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
44
- t("nylas-event-location", { name: "location", exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
45
- t("nylas-event-description", { name: "description", exportparts: "nedesc, nedesc__textarea" })
42
+ e("nylas-event-title", { name: "title", exportparts: "net, net__title, net__dropdown-content" }),
43
+ e("nylas-event-duration", { name: "duration", exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
44
+ e("nylas-event-location", { name: "location", exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
45
+ e("nylas-event-description", { name: "description", exportparts: "nedesc, nedesc__textarea" })
46
46
  )
47
47
  )
48
48
  ),
49
- t(
49
+ e(
50
50
  "div",
51
- { key: `availability-${e}`, class: { hide: n !== o.Availability } },
52
- t("nylas-participant-booking-calendars", { participants: a.participants, name: "participant-booking-calendars", exportparts: "npbc, npbc__header, npbc__content, npbc__participant-container, npbc__participant-title" }),
53
- t("nylas-connected-calendars", { participants: a.participants, name: "connected-calendars", exportparts: "nccals, nccals__header, nccals__content, nccals__container, nccals__title, nccals__toggle-container, npbc__participant-toggle-container" }),
54
- t("nylas-availability-picker", { name: "availability", exportparts: "nap, nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
51
+ { key: `availability-${t}`, class: { hide: n !== o.Availability } },
52
+ e("nylas-participant-booking-calendars", { participants: a.participants, name: "participant-booking-calendars", exportparts: "npbc, npbc__header, npbc__content, npbc__participant-container, npbc__participant-title" }),
53
+ e("nylas-connected-calendars", { participants: a.participants, name: "connected-calendars", exportparts: "nccals, nccals__header, nccals__content, nccals__container, nccals__title, nccals__toggle-container, npbc__participant-toggle-container" }),
54
+ e("nylas-availability-picker", { name: "availability", exportparts: "nap, nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
55
55
  ),
56
- t(
56
+ e(
57
57
  "div",
58
- { key: `booking-options-${e}`, class: { hide: n !== o.BookingOptions } },
59
- t("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
60
- t(
58
+ { key: `booking-options-${t}`, class: { hide: n !== o.BookingOptions } },
59
+ e("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
60
+ e(
61
61
  "nylas-custom-booking-flow",
62
62
  { exportparts: "ncbflow, ncbflow__header, ncbflow__title, ncbflow__content" },
63
- t(
63
+ e(
64
64
  "div",
65
65
  { slot: "inputs" },
66
- t("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
67
- t("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
66
+ e("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
67
+ e("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
68
68
  )
69
69
  ),
70
- t("nylas-buffer-time", { name: "buffer-time", exportparts: "nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview" }),
71
- t(
70
+ e("nylas-buffer-time", { name: "buffer-time", exportparts: "nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview" }),
71
+ e(
72
72
  "nylas-event-limits",
73
73
  null,
74
- t(
74
+ e(
75
75
  "div",
76
76
  { slot: "inputs" },
77
- t("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" }),
78
- t("nylas-limit-future-bookings", { name: "limit-future-bookings", exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
79
- t("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" }),
80
- t("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
77
+ e("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" }),
78
+ e("nylas-limit-future-bookings", { name: "limit-future-bookings", exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
79
+ e("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" }),
80
+ e("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
81
81
  )
82
82
  ),
83
- t("nylas-timeslot-interval", { name: "timeslot-interval", exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
84
- t("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
83
+ e("nylas-timeslot-interval", { name: "timeslot-interval", exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
84
+ e("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
85
85
  ),
86
- t(
86
+ e(
87
87
  "div",
88
- { key: `communications-${e}`, class: { hide: n !== o.Communications } },
89
- t(
88
+ { key: `communications-${t}`, class: { hide: n !== o.Communications } },
89
+ e(
90
90
  "div",
91
91
  { class: "tab-header" },
92
- t("h3", null, "Event communications"),
93
- t("p", null, "Set up automatic confirmation emails.")
92
+ e("h3", null, "Event communications"),
93
+ e("p", null, "Set up automatic confirmation emails.")
94
94
  ),
95
- t("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
96
- t("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
95
+ e("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
96
+ e("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
97
97
  ),
98
- t(
98
+ e(
99
99
  "div",
100
- { key: `participants-${e}`, class: { hide: n !== o.Participants } },
101
- t("nylas-additional-participants", { name: "participants", exportparts: "nap, nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
102
- t("nylas-participants-custom-availability", { participants: a.participants, name: "participant-custom-availability", exportparts: "npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider" })
100
+ { key: `participants-${t}`, class: { hide: n !== o.Participants } },
101
+ e("nylas-additional-participants", { name: "participants", exportparts: "nap, nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
102
+ e("nylas-participants-custom-availability", { participants: a.participants, name: "participant-custom-availability", exportparts: "npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider" })
103
103
  ),
104
- t(
104
+ e(
105
105
  "div",
106
- { key: `page-styles-${e}`, class: { hide: n !== o.PageStyles } },
107
- t("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
- t("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
- t("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" }, i)
106
+ { key: `page-styles-${t}`, class: { hide: n !== o.PageStyles } },
107
+ e("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
+ e("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
+ e("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" }, i)
110
110
  ),
111
- t(
111
+ e(
112
112
  "div",
113
- { key: `booking-form-${e}`, class: { hide: n !== o.BookingForm } },
114
- t("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
113
+ { key: `booking-form-${t}`, class: { hide: n !== o.BookingForm } },
114
+ e("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
115
115
  )
116
116
  );
117
117
  }
118
- const Qe = '.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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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;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:1rem;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:1rem;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}', Xe = Qe;
119
- var Ye = function(e, a, n, i) {
118
+ const ne = '.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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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;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:1rem;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:1rem;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}', ie = ne;
119
+ var se = function(t, a, n, i) {
120
120
  var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
- s = Reflect.decorate(e, a, n, i);
122
+ s = Reflect.decorate(t, a, n, i);
123
123
  else
124
- for (var d = e.length - 1; d >= 0; d--)
125
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
124
+ for (var d = t.length - 1; d >= 0; d--)
125
+ (c = t[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
126
126
  return r > 3 && s && Object.defineProperty(a, n, s), s;
127
- }, W = function(e, a) {
127
+ }, K = function(t, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
- return Reflect.metadata(e, a);
129
+ return Reflect.metadata(t, a);
130
130
  };
131
- const Be = class {
132
- constructor(e) {
133
- G(this, e), this.schedulerConfigChanged = x(this, "schedulerConfigChanged", 7), this.cancelButtonClick = x(this, "cancelButtonClick", 7), this.formSubmitted = x(this, "formSubmitted", 7), this.previewButtonClicked = x(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = x(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
131
+ const Dt = class {
132
+ constructor(t) {
133
+ G(this, t), this.schedulerConfigChanged = k(this, "schedulerConfigChanged", 7), this.cancelButtonClick = k(this, "cancelButtonClick", 7), this.formSubmitted = k(this, "formSubmitted", 7), this.previewButtonClicked = k(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = k(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
134
134
  this.error = a.message;
135
135
  }, this.formSubmissionHandler = async (a) => {
136
- var Q, X, Y, ee, te, ae, ne, ie, se, oe, re, le, de, ce, be, he, ue;
136
+ var Y, tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt;
137
137
  a.preventDefault();
138
138
  const n = await this.formSubmitted.emit();
139
139
  if (h("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
@@ -141,75 +141,80 @@ const Be = class {
141
141
  return;
142
142
  }
143
143
  this.isLoading = !0, this.hasUnsavedChanges = !1;
144
- const r = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: v, location: S, bookingType: F, buffer: B, availableDaysInFuture: H, minCancellationNotice: O, minBookingNotice: N, cancellationPolicy: D, timeslotInterval: w, additionalGuestsHidden: I, hideCancellationOptions: M, hideReschedulingOptions: z, participants: g, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: T, slug: J, appearance: V, name: Z } = r, b = ((X = (Q = this.selectedConfiguration) == null ? void 0 : Q.participants) == null ? void 0 : X.find((l) => l.is_organizer)) || (g == null ? void 0 : g.find((l) => l.is_organizer)), k = f && (b != null && b.email) ? f[b == null ? void 0 : b.email] : [], y = ((Y = b == null ? void 0 : b.booking) == null ? void 0 : Y.calendar_id) || v, _ = d ? parseInt(d) : 30, C = g && (g == null ? void 0 : g.length) > 0 ? g : [
144
+ const r = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: y, location: F, bookingType: L, buffer: B, availableDaysInFuture: O, minCancellationNotice: H, minBookingNotice: N, cancellationPolicy: D, timeslotInterval: w, additionalGuestsHidden: I, hideCancellationOptions: M, hideReschedulingOptions: z, participants: v, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: T, slug: J, appearance: V, name: Z } = r, b = ((tt = (Y = this.selectedConfiguration) == null ? void 0 : Y.participants) == null ? void 0 : tt.find((l) => l.is_organizer)) || (v == null ? void 0 : v.find((l) => l.is_organizer)), S = f && (b != null && b.email) ? f[b == null ? void 0 : b.email] : [], _ = ((et = b == null ? void 0 : b.booking) == null ? void 0 : et.calendar_id) || y, g = d ? parseInt(d) : 30, C = v && (v == null ? void 0 : v.length) > 0 ? v : [
145
145
  {
146
- name: (b == null ? void 0 : b.name) ?? ((ee = this.currentUser) == null ? void 0 : ee.name) ?? "",
147
- email: (b == null ? void 0 : b.email) ?? ((te = this.currentUser) == null ? void 0 : te.email) ?? "",
146
+ name: (b == null ? void 0 : b.name) ?? ((at = this.currentUser) == null ? void 0 : at.name) ?? "",
147
+ email: (b == null ? void 0 : b.email) ?? ((nt = this.currentUser) == null ? void 0 : nt.email) ?? "",
148
148
  is_organizer: !0,
149
149
  timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
150
150
  availability: {
151
- calendar_ids: k.length ? k : ["primary"],
151
+ calendar_ids: y && y !== "" ? [y] : ["primary"],
152
152
  open_hours: []
153
153
  },
154
154
  booking: {
155
- calendar_id: v && v !== "" ? v : "primary"
155
+ calendar_id: y && y !== "" ? y : "primary"
156
156
  }
157
157
  }
158
158
  ], E = {
159
- ...((ae = this.selectedConfiguration) == null ? void 0 : ae.id) && { id: this.selectedConfiguration.id },
160
- version: ((ne = this.selectedConfiguration) == null ? void 0 : ne.version) ?? "1.0.0",
159
+ ...((it = this.selectedConfiguration) == null ? void 0 : it.id) && { id: this.selectedConfiguration.id },
160
+ version: ((st = this.selectedConfiguration) == null ? void 0 : st.version) ?? "1.0.0",
161
161
  slug: J,
162
162
  name: Z,
163
163
  availability: {
164
- duration_minutes: _,
165
- interval_minutes: (w == null ? void 0 : w.interval) ?? _,
164
+ duration_minutes: g,
165
+ interval_minutes: (w == null ? void 0 : w.interval) ?? g,
166
166
  round_to: w == null ? void 0 : w.roundTo,
167
167
  availability_rules: {
168
- availability_method: T || (((oe = (se = (ie = this.selectedConfiguration) == null ? void 0 : ie.availability) == null ? void 0 : se.availability_rules) == null ? void 0 : oe.availability_method) ?? "collective"),
168
+ availability_method: T || (((lt = (rt = (ot = this.selectedConfiguration) == null ? void 0 : ot.availability) == null ? void 0 : rt.availability_rules) == null ? void 0 : lt.availability_method) ?? "collective"),
169
169
  buffer: B || { before: 0, after: 0 },
170
- default_open_hours: (u == null ? void 0 : u.openHours) ?? ((de = (le = (re = this.selectedConfiguration) == null ? void 0 : re.availability) == null ? void 0 : le.availability_rules) == null ? void 0 : de.default_open_hours) ?? Le,
171
- round_robin_group_id: ((he = (be = (ce = this.selectedConfiguration) == null ? void 0 : ce.availability) == null ? void 0 : be.availability_rules) == null ? void 0 : he.round_robin_group_id) ?? ""
170
+ default_open_hours: (u == null ? void 0 : u.openHours) ?? ((bt = (ct = (dt = this.selectedConfiguration) == null ? void 0 : dt.availability) == null ? void 0 : ct.availability_rules) == null ? void 0 : bt.default_open_hours) ?? Bt,
171
+ round_robin_group_id: ((pt = (ut = (ht = this.selectedConfiguration) == null ? void 0 : ht.availability) == null ? void 0 : ut.availability_rules) == null ? void 0 : pt.round_robin_group_id) ?? ""
172
172
  }
173
173
  },
174
174
  participants: [
175
- ...C == null ? void 0 : C.map((l) => {
176
- var P, pe, me, fe, ye, _e, ge, ve, we, ke, Ce, xe, Se;
177
- return l.is_organizer ? {
178
- name: l.name ?? "",
179
- email: l.email,
180
- is_organizer: !0,
181
- timezone: ((pe = (P = p == null ? void 0 : p[l.email]) == null ? void 0 : P[0]) == null ? void 0 : pe.timezone) ?? ((ye = (fe = (me = l.availability) == null ? void 0 : me.open_hours) == null ? void 0 : fe[0]) == null ? void 0 : ye.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
182
- availability: {
183
- calendar_ids: f != null && f[l.email] ? f == null ? void 0 : f[l.email] : k != null && k.length ? k : ["primary"],
184
- open_hours: (p == null ? void 0 : p[l.email]) ?? ((_e = l.availability) == null ? void 0 : _e.open_hours) ?? []
185
- },
186
- booking: {
187
- calendar_id: m != null && m[l.email] ? m == null ? void 0 : m[l.email] : y || "primary"
188
- }
189
- } : {
175
+ ...C ? C.map((l) => {
176
+ var ft, yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt;
177
+ if (l.is_organizer) {
178
+ const Tt = m != null && m[l.email] ? m == null ? void 0 : m[l.email] : _ || "primary", q = f != null && f[l.email] ? f == null ? void 0 : f[l.email] : S != null && S.length ? S : ["primary"], $t = q.length === 1 && q[0] === "primary";
179
+ return {
180
+ name: l.name ?? "",
181
+ email: l.email,
182
+ is_organizer: !0,
183
+ timezone: ((yt = (ft = p == null ? void 0 : p[l.email]) == null ? void 0 : ft[0]) == null ? void 0 : yt.timezone) ?? ((vt = (gt = (_t = l.availability) == null ? void 0 : _t.open_hours) == null ? void 0 : gt[0]) == null ? void 0 : vt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
184
+ availability: {
185
+ calendar_ids: $t ? [Tt] : q,
186
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((wt = l.availability) == null ? void 0 : wt.open_hours) ?? []
187
+ },
188
+ booking: {
189
+ calendar_id: Tt
190
+ }
191
+ };
192
+ }
193
+ const x = m != null && m[l.email] ? { calendar_id: m == null ? void 0 : m[l.email] } : (l == null ? void 0 : l.booking) ?? void 0, W = (f == null ? void 0 : f[l.email]) ?? ((kt = l.availability) == null ? void 0 : kt.calendar_ids) ?? ["primary"], jt = W.length === 1 && W[0] === "primary";
194
+ return {
190
195
  ...l,
191
- timezone: ((ve = (ge = p == null ? void 0 : p[l.email]) == null ? void 0 : ge[0]) == null ? void 0 : ve.timezone) ?? ((Ce = (ke = (we = l.availability) == null ? void 0 : we.open_hours) == null ? void 0 : ke[0]) == null ? void 0 : Ce.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
196
+ timezone: ((xt = (Ct = p == null ? void 0 : p[l.email]) == null ? void 0 : Ct[0]) == null ? void 0 : xt.timezone) ?? ((Lt = (Ft = (St = l.availability) == null ? void 0 : St.open_hours) == null ? void 0 : Ft[0]) == null ? void 0 : Lt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
192
197
  availability: l.availability ? {
193
- calendar_ids: (f == null ? void 0 : f[l.email]) ?? ((xe = l.availability) == null ? void 0 : xe.calendar_ids) ?? ["primary"],
194
- open_hours: (p == null ? void 0 : p[l.email]) ?? ((Se = l.availability) == null ? void 0 : Se.open_hours) ?? []
198
+ calendar_ids: jt && typeof x < "u" ? [x == null ? void 0 : x.calendar_id] : W,
199
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((Pt = l.availability) == null ? void 0 : Pt.open_hours) ?? []
195
200
  } : void 0,
196
- booking: m != null && m[l.email] ? { calendar_id: m == null ? void 0 : m[l.email] } : (l == null ? void 0 : l.booking) ?? void 0
201
+ booking: x
197
202
  };
198
- })
203
+ }) : []
199
204
  ],
200
205
  event_booking: {
201
206
  title: (s == null ? void 0 : s.toString()) ?? "",
202
207
  description: (c == null ? void 0 : c.toString()) ?? "",
203
- location: (S == null ? void 0 : S.toString()) ?? "",
204
- booking_type: (F == null ? void 0 : F.toString()) ?? "booking",
208
+ location: (F == null ? void 0 : F.toString()) ?? "",
209
+ booking_type: (L == null ? void 0 : L.toString()) ?? "booking",
205
210
  timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
206
211
  conferencing: R,
207
212
  reminders: A
208
213
  },
209
214
  scheduler: {
210
215
  cancellation_policy: D ?? "",
211
- available_days_in_future: H ?? 30,
212
- min_cancellation_notice: O ?? 0,
216
+ available_days_in_future: O ?? 30,
217
+ min_cancellation_notice: H ?? 0,
213
218
  min_booking_notice: N ?? 60,
214
219
  hide_additional_guests: I ?? !1,
215
220
  hide_cancellation_options: M ?? !1,
@@ -219,17 +224,17 @@ const Be = class {
219
224
  confirmation_redirect_url: $
220
225
  },
221
226
  appearance: V
222
- }, Oe = Fe(E, this.selectedConfiguration || {}), L = this.action === "create" ? Oe : E;
223
- this.isConfigRoundRobin(L) && (L.participants = L.participants.map((l) => ({ ...l, is_organizer: void 0 })));
224
- const Ne = (l) => {
227
+ }, Mt = Et(E, this.selectedConfiguration || {}), P = this.action === "create" ? Mt : E;
228
+ this.isConfigRoundRobin(P) && (P.participants = P.participants.map((l) => ({ ...l, is_organizer: void 0 })));
229
+ const zt = (l) => {
225
230
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
226
231
  this.changesSaved = !1;
227
232
  }, 5e3);
228
- }, De = this.checkForBookingFormErrors(L), Ie = ((ue = this.configurations) == null ? void 0 : ue.find((l) => {
229
- var P;
230
- return l.id === ((P = this.selectedConfiguration) == null ? void 0 : P.id);
231
- })) || {}, Me = this.checkForOrganizerConfirmationError(Fe(L, Ie));
232
- De || Me || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ne, setError: this.setError, action: this.action });
233
+ }, Ut = this.checkForBookingFormErrors(P), Rt = ((mt = this.configurations) == null ? void 0 : mt.find((l) => {
234
+ var x;
235
+ return l.id === ((x = this.selectedConfiguration) == null ? void 0 : x.id);
236
+ })) || {}, At = this.checkForOrganizerConfirmationError(Et(P, Rt));
237
+ Ut || At || this.schedulerConfigChanged.emit({ config: P, resetLoadingState: zt, setError: this.setError, action: this.action });
233
238
  }, this.isConfigRoundRobin = (a) => {
234
239
  var n, i, r, s;
235
240
  return ((i = (n = a == null ? void 0 : a.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : i.availability_method) === "max-availability" || ((s = (r = a.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
@@ -258,13 +263,13 @@ const Be = class {
258
263
  })), n && (this.isLoading = !1, this.setError(new Error(i))), n;
259
264
  }, 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.action = "create", this.showFeedbackModal = !1, this.activeTab = o.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
260
265
  }
261
- configChangedHandler(e) {
262
- h("[nylas-editor-tabs]", "configChangedHandler", e, this.selectedConfiguration), this.formState = {
263
- ...this.getFormStateFromConfig(e)
264
- }, e != null && e.id ? this.action = "edit" : this.action = "create";
266
+ configChangedHandler(t) {
267
+ h("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
268
+ ...this.getFormStateFromConfig(t)
269
+ }, t != null && t.id ? this.action = "edit" : this.action = "create";
265
270
  }
266
- userChangedHandler(e) {
267
- h("[nylas-editor-tabs]", "userChangedHandler", e), e && (this.formState = {
271
+ userChangedHandler(t) {
272
+ h("[nylas-editor-tabs]", "userChangedHandler", t), t && (this.formState = {
268
273
  ...this.getFormStateFromConfig(this.selectedConfiguration)
269
274
  });
270
275
  }
@@ -276,12 +281,12 @@ const Be = class {
276
281
  }
277
282
  componentDidLoad() {
278
283
  var a, n;
279
- h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ue() && Re({
284
+ h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Vt() && Zt({
280
285
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
281
- release: "1.1.6",
286
+ release: "1.2.0",
282
287
  integrations: (i) => [
283
288
  ...i.filter((r) => !1),
284
- $e({
289
+ qt({
285
290
  colorScheme: "system",
286
291
  autoInject: !1
287
292
  })
@@ -289,35 +294,35 @@ const Be = class {
289
294
  autoSessionTracking: !1,
290
295
  beforeSend: () => null
291
296
  }), (a = this.selectedConfiguration) != null && a.id && this.configChangedHandler(this.selectedConfiguration);
292
- const e = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
293
- e && (this.activeTab = e);
297
+ const t = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
298
+ t && (this.activeTab = t);
294
299
  }
295
300
  disconnectedCallback() {
296
301
  h("[nylas-editor-tabs]", "disconnectedCallback");
297
302
  }
298
- handleValueChanged(e) {
299
- h("[nylas-editor-tabs]", "handleValueChanged", e);
300
- const { name: a, value: n } = e.detail;
303
+ handleValueChanged(t) {
304
+ h("[nylas-editor-tabs]", "handleValueChanged", t);
305
+ const { name: a, value: n } = t.detail;
301
306
  this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
302
- value: e.detail.value,
303
- name: e.detail.name
307
+ value: t.detail.value,
308
+ name: t.detail.name
304
309
  });
305
310
  }
306
311
  feedbackModalClosedHandler() {
307
312
  this.showFeedbackModal = !1;
308
313
  }
309
- feedbackSubmittedHandler(e) {
314
+ feedbackSubmittedHandler(t) {
310
315
  var i, r;
311
316
  const n = {
312
- eventId: Ae("Scheduler Editor User Feedback"),
313
- message: e.detail.feedback
317
+ eventId: Gt("Scheduler Editor User Feedback"),
318
+ message: t.detail.feedback
314
319
  };
315
- je(n, {
320
+ Wt(n, {
316
321
  includeReplay: !0,
317
322
  captureContext: {
318
323
  tags: {
319
324
  "nylas-web-element": "nylas-scheduler-editor",
320
- "nylas-web-element-version": "1.1.6"
325
+ "nylas-web-element-version": "1.2.0"
321
326
  },
322
327
  extra: {
323
328
  configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
@@ -326,143 +331,145 @@ const Be = class {
326
331
  }
327
332
  }), this.showFeedbackModal = !1;
328
333
  }
329
- getFormStateFromConfig(e) {
330
- var n, i, r, s, c, d, u, v, S, F, B, H, O, N, D, w, I, M, z, g, p, U, f, R, m, A, j, $, T, J, V, Z, b, k;
331
- let a = (n = e == null ? void 0 : e.participants) == null ? void 0 : n.find((y) => y.is_organizer);
332
- return !a && ((r = (i = e == null ? void 0 : e.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (a = (s = e == null ? void 0 : e.participants) == null ? void 0 : s.find((y) => {
333
- var _;
334
- return y.email === ((_ = this.currentUser) == null ? void 0 : _.email);
335
- }), a && (a.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."), {
336
- title: ((c = e == null ? void 0 : e.event_booking) == null ? void 0 : c.title) ?? "",
337
- description: ((d = e == null ? void 0 : e.event_booking) == null ? void 0 : d.description) ?? "",
338
- duration: ((v = (u = e == null ? void 0 : e.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : v.toString()) ?? "30",
334
+ getFormStateFromConfig(t) {
335
+ var n, i, r, s, c, d, u, y, F, L, B, O, H, N, D, w, I, M, z, v, p, U, f, R, m, A, j, $, T, J, V, Z, b, S;
336
+ let a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((_) => _.is_organizer);
337
+ return !a && ((r = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (a = (s = t == null ? void 0 : t.participants) == null ? void 0 : s.find((_) => {
338
+ var g;
339
+ return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
340
+ }), a && (a.is_organizer = !0)), t != null && t.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."), {
341
+ title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
342
+ description: ((d = t == null ? void 0 : t.event_booking) == null ? void 0 : d.description) ?? "",
343
+ duration: ((y = (u = t == null ? void 0 : t.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
339
344
  availability: {
340
- timezone: ((S = e == null ? void 0 : e.event_booking) == null ? void 0 : S.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
341
- openHours: ((B = (F = e == null ? void 0 : e.availability) == null ? void 0 : F.availability_rules) == null ? void 0 : B.default_open_hours) ?? Le
345
+ timezone: ((F = t == null ? void 0 : t.event_booking) == null ? void 0 : F.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
346
+ openHours: ((B = (L = t == null ? void 0 : t.availability) == null ? void 0 : L.availability_rules) == null ? void 0 : B.default_open_hours) ?? Bt
342
347
  },
343
- additionalFields: ((H = e == null ? void 0 : e.scheduler) == null ? void 0 : H.additional_fields) ?? {},
344
- conferencing: ((O = e == null ? void 0 : e.event_booking) == null ? void 0 : O.conferencing) ?? {},
348
+ additionalFields: ((O = t == null ? void 0 : t.scheduler) == null ? void 0 : O.additional_fields) ?? {},
349
+ conferencing: ((H = t == null ? void 0 : t.event_booking) == null ? void 0 : H.conferencing) ?? {},
345
350
  calendarIds: ((N = a == null ? void 0 : a.availability) == null ? void 0 : N.calendar_ids) ?? [],
346
- participants: (e == null ? void 0 : e.participants) ?? [],
351
+ participants: (t == null ? void 0 : t.participants) ?? [],
347
352
  bookingCalendar: ((D = a == null ? void 0 : a.booking) == null ? void 0 : D.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
348
- location: ((w = e == null ? void 0 : e.event_booking) == null ? void 0 : w.location) ?? "",
349
- bookingType: ((I = e == null ? void 0 : e.event_booking) == null ? void 0 : I.booking_type) ?? "booking",
350
- buffer: ((z = (M = e == null ? void 0 : e.availability) == null ? void 0 : M.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
351
- cancellationPolicy: ((g = e == null ? void 0 : e.scheduler) == null ? void 0 : g.cancellation_policy) ?? "",
352
- availableDaysInFuture: ((p = e == null ? void 0 : e.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
353
- minCancellationNotice: ((U = e == null ? void 0 : e.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
354
- minBookingNotice: ((f = e == null ? void 0 : e.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
353
+ location: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.location) ?? "",
354
+ bookingType: ((I = t == null ? void 0 : t.event_booking) == null ? void 0 : I.booking_type) ?? "booking",
355
+ buffer: ((z = (M = t == null ? void 0 : t.availability) == null ? void 0 : M.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
356
+ cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
357
+ availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
358
+ minCancellationNotice: ((U = t == null ? void 0 : t.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
359
+ minBookingNotice: ((f = t == null ? void 0 : t.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
355
360
  timeslotInterval: {
356
- interval: ((R = e == null ? void 0 : e.availability) == null ? void 0 : R.interval_minutes) ?? ((m = e == null ? void 0 : e.availability) == null ? void 0 : m.duration_minutes),
357
- roundTo: (A = e == null ? void 0 : e.availability) == null ? void 0 : A.round_to
361
+ interval: ((R = t == null ? void 0 : t.availability) == null ? void 0 : R.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
362
+ roundTo: (A = t == null ? void 0 : t.availability) == null ? void 0 : A.round_to
358
363
  },
359
- additionalGuestsHidden: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
360
- hideCancellationOptions: (($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
361
- hideReschedulingOptions: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.hide_rescheduling_options) ?? !1,
362
- participantBookingCalendars: ((J = e == null ? void 0 : e.participants) == null ? void 0 : J.reduce((y, _) => {
364
+ additionalGuestsHidden: ((j = t == null ? void 0 : t.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
365
+ hideCancellationOptions: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
366
+ hideReschedulingOptions: ((T = t == null ? void 0 : t.scheduler) == null ? void 0 : T.hide_rescheduling_options) ?? !1,
367
+ participantBookingCalendars: ((J = t == null ? void 0 : t.participants) == null ? void 0 : J.reduce((_, g) => {
363
368
  var C, E;
364
- return (C = _.booking) != null && C.calendar_id && (y[_.email] = (E = _.booking) == null ? void 0 : E.calendar_id), y;
369
+ return (C = g.booking) != null && C.calendar_id && (_[g.email] = (E = g.booking) == null ? void 0 : E.calendar_id), _;
365
370
  })) ?? {},
366
- participantCalendars: ((V = e == null ? void 0 : e.participants) == null ? void 0 : V.reduce((y, _) => {
371
+ participantCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
367
372
  var C;
368
- return y[_.email] = (C = _.availability) == null ? void 0 : C.calendar_ids, y;
373
+ return _[g.email] = (C = g.availability) == null ? void 0 : C.calendar_ids, _;
369
374
  }, {})) ?? {},
370
- reminders: (Z = e == null ? void 0 : e.event_booking) == null ? void 0 : Z.reminders,
371
- emailTemplate: (b = e == null ? void 0 : e.scheduler) == null ? void 0 : b.email_template,
372
- redirectUrl: (k = e == null ? void 0 : e.scheduler) == null ? void 0 : k.confirmation_redirect_url,
373
- slug: e == null ? void 0 : e.slug,
374
- appearance: e == null ? void 0 : e.appearance,
375
- name: e == null ? void 0 : e.name
375
+ reminders: (Z = t == null ? void 0 : t.event_booking) == null ? void 0 : Z.reminders,
376
+ emailTemplate: (b = t == null ? void 0 : t.scheduler) == null ? void 0 : b.email_template,
377
+ redirectUrl: (S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.confirmation_redirect_url,
378
+ slug: t == null ? void 0 : t.slug,
379
+ appearance: t == null ? void 0 : t.appearance,
380
+ name: t == null ? void 0 : t.name
376
381
  };
377
382
  }
378
- setFormState(e, a) {
383
+ setFormState(t, a) {
379
384
  switch (a) {
380
385
  case "title":
381
- this.formState.title = e.toString();
386
+ this.formState.title = t.toString();
382
387
  break;
383
388
  case "description":
384
- this.formState.description = e.toString();
389
+ this.formState.description = t.toString();
385
390
  break;
386
391
  case "duration":
387
- this.formState.duration = e.toString();
392
+ this.formState.duration = t.toString();
388
393
  break;
389
394
  case "availability":
390
- this.formState.availability = JSON.parse(e.toString());
395
+ this.formState.availability = JSON.parse(t.toString());
391
396
  break;
392
397
  case "participants":
393
- this.formState.participants = JSON.parse(e.toString());
398
+ this.formState.participants = JSON.parse(t.toString());
394
399
  break;
395
400
  case "booking-calendar":
396
- this.formState.bookingCalendar = e.toString();
401
+ this.formState.bookingCalendar = t.toString();
397
402
  break;
398
403
  case "participant-booking-calendars":
399
- this.formState.participantBookingCalendars = JSON.parse(e.toString());
404
+ this.formState.participantBookingCalendars = JSON.parse(t.toString());
400
405
  break;
401
406
  case "location":
402
- this.formState.location = e.toString();
407
+ this.formState.location = t.toString();
403
408
  break;
404
409
  case "conference":
405
- this.formState.conferencing = JSON.parse(e.toString());
410
+ this.formState.conferencing = JSON.parse(t.toString());
406
411
  break;
407
412
  case "confirmation-type":
408
- this.formState.bookingType = e.toString();
413
+ this.formState.bookingType = t.toString();
409
414
  break;
410
415
  case "buffer-time":
411
- this.formState.buffer = JSON.parse(e.toString());
416
+ this.formState.buffer = JSON.parse(t.toString());
412
417
  break;
413
418
  case "limit-future-bookings":
414
- this.formState.availableDaysInFuture = parseInt(e.toString());
419
+ this.formState.availableDaysInFuture = parseInt(t.toString());
415
420
  break;
416
421
  case "min-cancellation-notice":
417
- this.formState.minCancellationNotice = parseInt(e.toString());
422
+ this.formState.minCancellationNotice = parseInt(t.toString());
418
423
  break;
419
424
  case "min-booking-notice":
420
- this.formState.minBookingNotice = parseInt(e.toString());
425
+ this.formState.minBookingNotice = parseInt(t.toString());
421
426
  break;
422
427
  case "cancellation-policy":
423
- this.formState.cancellationPolicy = e.toString();
428
+ this.formState.cancellationPolicy = t.toString();
424
429
  break;
425
430
  case "timeslot-interval":
426
- this.formState.timeslotInterval = JSON.parse(e.toString());
431
+ this.formState.timeslotInterval = JSON.parse(t.toString());
427
432
  break;
428
- case "customize-booking-settings":
429
- const n = JSON.parse(e.toString());
433
+ case "customize-booking-settings": {
434
+ const n = JSON.parse(t.toString());
430
435
  this.formState.additionalGuestsHidden = n.additionalGuestsHidden, this.formState.hideCancellationOptions = n.hideCancellationOptions, this.formState.hideReschedulingOptions = n.hideReschedulingOptions;
431
436
  break;
432
- case "participant-custom-availability":
433
- const i = JSON.parse(e.toString());
434
- this.formState.participantOpenHours = i;
437
+ }
438
+ case "participant-custom-availability": {
439
+ const n = JSON.parse(t.toString());
440
+ this.formState.participantOpenHours = n;
435
441
  break;
442
+ }
436
443
  case "additional-fields":
437
- this.formState.additionalFields = e;
444
+ this.formState.additionalFields = t;
438
445
  break;
439
446
  case "connected-calendars":
440
- this.formState.participantCalendars = JSON.parse(e.toString());
447
+ this.formState.participantCalendars = JSON.parse(t.toString());
441
448
  break;
442
449
  case "confirmation-email-template":
443
- this.formState.emailTemplate = JSON.parse(e.toString());
450
+ this.formState.emailTemplate = JSON.parse(t.toString());
444
451
  break;
445
452
  case "reminder-overrides":
446
- this.formState.reminders = JSON.parse(e.toString());
453
+ this.formState.reminders = JSON.parse(t.toString());
447
454
  break;
448
455
  case "confirmation-redirect":
449
- this.formState.redirectUrl = e.toString();
456
+ this.formState.redirectUrl = t.toString();
450
457
  break;
451
458
  case "availability-method":
452
- this.formState.availabilityMethod = e.toString();
459
+ this.formState.availabilityMethod = t.toString();
453
460
  break;
454
461
  case "custom-event-slug":
455
- this.formState.slug = JSON.parse(e.toString());
462
+ this.formState.slug = JSON.parse(t.toString());
456
463
  break;
457
464
  case "page-styling":
458
- this.formState.appearance = JSON.parse(e.toString());
465
+ this.formState.appearance = JSON.parse(t.toString());
459
466
  break;
460
467
  case "page-name":
461
- this.formState.name = JSON.parse(e.toString());
468
+ this.formState.name = JSON.parse(t.toString());
462
469
  break;
463
470
  }
464
471
  this.schedulerEditorFormUpdated.emit({
465
- value: e,
472
+ value: t,
466
473
  name: a
467
474
  });
468
475
  }
@@ -471,31 +478,31 @@ const Be = class {
471
478
  this.setFormState(a, n);
472
479
  }), this.formState = { ...this.formState }, this.formState;
473
480
  }
474
- setActiveTab(e, a) {
475
- e.preventDefault(), this.updateFormState(), this.activeTab = a;
481
+ setActiveTab(t, a) {
482
+ t.preventDefault(), this.updateFormState(), this.activeTab = a;
476
483
  }
477
- hideTab(e) {
484
+ hideTab(t) {
478
485
  var a;
479
- return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(e)) || !1;
486
+ return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(t)) || !1;
480
487
  }
481
- onFeedbackClick(e) {
482
- e.preventDefault(), this.showFeedbackModal = !0;
488
+ onFeedbackClick(t) {
489
+ t.preventDefault(), this.showFeedbackModal = !0;
483
490
  }
484
491
  render() {
485
- var e, a;
486
- return h("[nylas-editor-tabs]", "render", this.formState), t(Te, { key: "d38db7df3b55dcd9df5d23c06a2257e483e4f881" }, t("form", { key: "f75efd88f7a329288e77933ca218fa88e9dd8a87", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? t("div", { class: "form-contents" }, t("div", { class: "tabs" }, t("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info", onClick: (n) => this.setActiveTab(n, o.EventInfo) }, t("calendar-info-icon", { width: "16", height: "16" }), "Event info"), t("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability", onClick: (n) => this.setActiveTab(n, o.Availability) }, t("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), t("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants", onClick: (n) => this.setActiveTab(n, o.Participants) }, t("people-icon", { width: "16", height: "16" }), "Participants"), t("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options", onClick: (n) => this.setActiveTab(n, o.BookingOptions) }, t("flow-icon", { width: "16", height: "16" }), "Booking options"), t("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form", onClick: (n) => this.setActiveTab(n, o.BookingForm) }, this.activeTab == o.BookingForm ? t("calendar-agenda-fill-icon", { width: "16", height: "16" }) : t("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), t("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(o.Communications) }, onClick: (n) => this.setActiveTab(n, o.Communications) }, this.activeTab == o.Communications ? t("envelope-fill-icon", { width: "16", height: "16" }) : t("envelope-icon", { width: "16", height: "16" }), "Communications"), t("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(o.PageStyles) }, onClick: (n) => this.setActiveTab(n, o.PageStyles) }, this.activeTab == o.PageStyles ? t("paintbrush-fill-icon", { width: "16", height: "16" }) : t("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), t("div", { class: "tab-content" }, t(Ke, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new" }))) : t("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, t("slot", null)), t("div", { key: "33fa467828de45477cb14547e83cd91d3316d1de", class: "footer", part: "editor__footer" }, t("div", { key: "e94586ffcb339ed0134db7dba554add942b9658b", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && t("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, t("feedback-icon", null))), t("div", { key: "ba9415c331d169876f6f64e048d295c494066fb0", class: "buttons", part: "editor__footer-buttons" }, t("p", { key: "b985139923dac06f300329c63100bb322a72e215", class: {
492
+ var t, a;
493
+ return h("[nylas-editor-tabs]", "render", this.formState), e(Ot, { key: "8cbf8365afc709571094e6a51cf527c6abe70936" }, e("form", { key: "58041aa03811eab4edc4b27c758f4118778ecd4c", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, e("div", { class: "tabs", part: "editor__tabs net__tabs" }, e("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, o.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, o.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, o.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, o.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, o.BookingForm) }, this.activeTab == o.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(o.Communications) }, onClick: (n) => this.setActiveTab(n, o.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == o.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(o.PageStyles) }, onClick: (n) => this.setActiveTab(n, o.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == o.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, e(ae, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new" }))) : e("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "7f23084e92f45c6654728665366513eb6c72ea2b", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "cd40dd405909fa29828200cb45a8ab9d4acfb120", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && e("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, e("feedback-icon", null))), e("div", { key: "ff34829d21f8728ef7b5c8f3493591ff0645df9b", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "2e3ab65ac01c28cb54dd9410f6c709d89ee86e42", class: {
487
494
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
488
495
  "saved-changes": this.changesSaved,
489
496
  error: this.error !== "",
490
497
  "error-full-width": this.error !== "" && this.action === "create"
491
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && t("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
492
- n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(K(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
493
- }, variant: "basic" }, t("eye-icon", null)), t("button-component", { key: "e8b658f3fe6dea039818fe7e5803c7876dcf516a", type: "button", disabled: this.isLoading, clickHandler: (n) => {
498
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
499
+ n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(X(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
500
+ }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "cf9be4337b438cbb3b4e02c9afab2068278d81a7", type: "button", disabled: this.isLoading, clickHandler: (n) => {
494
501
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
495
- }, variant: "basic", part: "editor__footer-cancel" }, "Back"), t("button-component", { key: "def3baeb44f02d4a168d4946fe46c158d9872d8a", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? t("span", null, "Saving", t("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && t("nylas-feedback-form", null));
502
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, "Back"), e("button-component", { key: "c573a8aefbe700a9340a3a79bbb9bb2059ba2a8d", type: "submit", disabled: this.isLoading, part: "editor__footer-cta net__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && e("nylas-feedback-form", null));
496
503
  }
497
504
  get host() {
498
- return Ee(this);
505
+ return Ht(this);
499
506
  }
500
507
  static get watchers() {
501
508
  return {
@@ -504,8 +511,8 @@ const Be = class {
504
511
  };
505
512
  }
506
513
  };
507
- Ye([
508
- Pe({
514
+ se([
515
+ Nt({
509
516
  name: "nylas-editor-tabs",
510
517
  stateToProps: /* @__PURE__ */ new Map([
511
518
  ["schedulerConfig.calendars", "calendars"],
@@ -514,10 +521,10 @@ Ye([
514
521
  ["schedulerConfig.configurations", "configurations"]
515
522
  ]),
516
523
  eventToProps: {
517
- schedulerConfigChanged: async (e, a) => {
518
- const { resetLoadingState: n, setError: i, action: r, config: s } = e.detail, c = (d) => {
519
- const [u, v] = d;
520
- !u && v && i && i(v), n && n(e);
524
+ schedulerConfigChanged: async (t, a) => {
525
+ const { resetLoadingState: n, setError: i, action: r, config: s } = t.detail, c = (d) => {
526
+ const [u, y] = d;
527
+ !u && y && i && i(y), n && n(t);
521
528
  };
522
529
  if (r === "edit") {
523
530
  const d = await a.schedulerConfig.updateConfiguration(s);
@@ -527,17 +534,17 @@ Ye([
527
534
  c(d);
528
535
  }
529
536
  },
530
- cancelButtonClick: async (e, a) => {
537
+ cancelButtonClick: async (t, a) => {
531
538
  a.schedulerConfigStore.state.action = null;
532
539
  },
533
- previewButtonClicked: async (e, a) => {
540
+ previewButtonClicked: async (t, a) => {
534
541
  h("[nylas-editor-tabs]", "previewButtonClicked", a);
535
542
  },
536
- formSubmitted: async (e, a) => {
543
+ formSubmitted: async (t, a) => {
537
544
  h("[nylas-editor-tabs]", "formSubmitted", a);
538
545
  },
539
- schedulerEditorFormUpdated: async (e, a) => {
540
- h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", e);
546
+ schedulerEditorFormUpdated: async (t, a) => {
547
+ h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
541
548
  }
542
549
  },
543
550
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -547,34 +554,34 @@ Ye([
547
554
  ]),
548
555
  fireRegisterEvent: !0
549
556
  }),
550
- W("design:type", Function),
551
- W("design:paramtypes", []),
552
- W("design:returntype", void 0)
553
- ], Be.prototype, "render", null);
554
- Be.style = Xe;
555
- const et = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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:1rem;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}.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{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.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)}', tt = et;
556
- var at = function(e, a, n, i) {
557
+ K("design:type", Function),
558
+ K("design:paramtypes", []),
559
+ K("design:returntype", void 0)
560
+ ], Dt.prototype, "render", null);
561
+ Dt.style = ie;
562
+ const oe = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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:1rem;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}.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{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.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)}', re = oe;
563
+ var le = function(t, a, n, i) {
557
564
  var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
558
565
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
559
- s = Reflect.decorate(e, a, n, i);
566
+ s = Reflect.decorate(t, a, n, i);
560
567
  else
561
- for (var d = e.length - 1; d >= 0; d--)
562
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
568
+ for (var d = t.length - 1; d >= 0; d--)
569
+ (c = t[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
563
570
  return r > 3 && s && Object.defineProperty(a, n, s), s;
564
- }, q = function(e, a) {
571
+ }, Q = function(t, a) {
565
572
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
566
- return Reflect.metadata(e, a);
573
+ return Reflect.metadata(t, a);
567
574
  };
568
- const He = class {
569
- constructor(e) {
570
- G(this, e), this.initListConfigurations = x(this, "initListConfigurations", 7), this.createButtonClick = x(this, "createButtonClick", 7), this.editButtonClick = x(this, "editButtonClick", 7), this.deleteButtonClick = x(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1;
575
+ const It = class {
576
+ constructor(t) {
577
+ G(this, t), this.initListConfigurations = k(this, "initListConfigurations", 7), this.createButtonClick = k(this, "createButtonClick", 7), this.editButtonClick = k(this, "editButtonClick", 7), this.deleteButtonClick = k(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1;
571
578
  }
572
- listConfigurationsNextCursorChangedHandler(e, a) {
573
- if (!e || e === a) {
574
- e === null && (this.disableNextPageButton = !0);
579
+ listConfigurationsNextCursorChangedHandler(t, a) {
580
+ if (!t || t === a) {
581
+ t === null && (this.disableNextPageButton = !0);
575
582
  return;
576
583
  }
577
- this.disableNextPageButton = !1, this.currentCursor = e;
584
+ this.disableNextPageButton = !1, this.currentCursor = t;
578
585
  }
579
586
  connectedCallback() {
580
587
  h("[nylas-list-configurations]", "connectedCallback");
@@ -590,35 +597,35 @@ const He = class {
590
597
  disconnectedCallback() {
591
598
  h("[nylas-list-configurations]", "disconnectedCallback");
592
599
  }
593
- async handleNylasFormDropdownChanged(e) {
594
- h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
595
- const { value: a } = e.detail, [n, i] = a.split("-");
596
- switch (e.preventDefault(), n) {
600
+ async handleNylasFormDropdownChanged(t) {
601
+ h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
602
+ const { value: a } = t.detail, [n, i] = a.split("-");
603
+ switch (t.preventDefault(), n) {
597
604
  case "delete":
598
605
  this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[i] });
599
606
  break;
600
607
  case "preview":
601
- window.open(K(this.schedulerPreviewLink, this.configurations[i]), "_blank");
608
+ window.open(X(this.schedulerPreviewLink, this.configurations[i]), "_blank");
602
609
  break;
603
610
  case "copy":
604
- await navigator.clipboard.writeText(K(this.schedulerPreviewLink, this.configurations[i]));
611
+ await navigator.clipboard.writeText(X(this.schedulerPreviewLink, this.configurations[i]));
605
612
  break;
606
613
  }
607
614
  }
608
615
  async getState() {
609
616
  return this.state;
610
617
  }
611
- async setState(e) {
612
- this.state = e;
618
+ async setState(t) {
619
+ this.state = t;
613
620
  }
614
- async setError(e) {
615
- this.error = e;
621
+ async setError(t) {
622
+ this.error = t;
616
623
  }
617
- getDurationString(e) {
618
- const a = Math.floor(e / 60), n = e % 60;
624
+ getDurationString(t) {
625
+ const a = Math.floor(t / 60), n = t % 60;
619
626
  return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
620
627
  }
621
- getActionLabelHTML(e) {
628
+ getActionLabelHTML(t) {
622
629
  const a = {
623
630
  display: "inline-flex",
624
631
  alignItems: "center",
@@ -626,13 +633,13 @@ const He = class {
626
633
  }, n = {
627
634
  color: "var(--nylas-error)"
628
635
  };
629
- switch (e) {
636
+ switch (t) {
630
637
  case "preview":
631
- return t("span", { style: a }, t("eye-icon", { width: "16", height: "16" }), "Preview");
638
+ return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), "Preview");
632
639
  case "copy":
633
- return t("span", { style: a }, t("copy-icon", { width: "16", height: "16" }), "Copy");
640
+ return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy");
634
641
  case "delete":
635
- return t("span", { style: { ...a, ...n } }, t("delete-icon", { width: "15", height: "17" }), "Delete");
642
+ return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), "Delete");
636
643
  default:
637
644
  return "";
638
645
  }
@@ -641,10 +648,10 @@ const He = class {
641
648
  if (this.previousCursors.length === 0)
642
649
  return;
643
650
  this.currentCursor = this.previousCursors.pop() || null;
644
- const e = this.previousCursors[this.previousCursors.length - 1] || void 0;
651
+ const t = this.previousCursors[this.previousCursors.length - 1] || void 0;
645
652
  this.initListConfigurations.emit({
646
653
  host: this.host,
647
- cursor: e
654
+ cursor: t
648
655
  });
649
656
  }
650
657
  nextPageClickedHandler() {
@@ -654,28 +661,28 @@ const He = class {
654
661
  }));
655
662
  }
656
663
  render() {
657
- var e;
658
- return t(Te, null, t("div", { class: "header" }, t("div", { class: "description" }, t("h2", null, "All Scheduling Pages"), t("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && t("div", { class: "actions" }, t("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
664
+ var t;
665
+ return e(Ot, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All Scheduling Pages"), e("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
659
666
  this.createButtonClick.emit(this.host);
660
- } }, "Create new"))), t("div", { class: "configurations" }, t("div", { class: "table-container" }, t("table", { class: {
667
+ } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
661
668
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
662
- } }, t("tr", { class: {
669
+ } }, e("tr", { class: {
663
670
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
664
- } }, t("th", null, "Page title"), t("th", null, "Duration"), t("th", null)), this.state === "loading" && t("tr", { class: "no-configurations" }, t("td", { colSpan: 3 }, t("div", null, t("h3", null, "Loading..."), t("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && t("tr", { class: "no-configurations" }, t("td", { colSpan: 3 }, t("div", null, t("calendar-icon", { width: "48", height: "48" }), t("h3", null, "No scheduling pages found"), t("p", null, "Get started with creating your first scheduling page"), t("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
671
+ } }, e("th", null, "Page title"), e("th", null, "Duration"), e("th", null)), this.state === "loading" && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("h3", null, "Loading..."), e("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("calendar-icon", { width: "48", height: "48" }), e("h3", null, "No scheduling pages found"), e("p", null, "Get started with creating your first scheduling page"), e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
665
672
  this.createButtonClick.emit(this.host);
666
- } }, "Create new")))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((a, n) => {
673
+ } }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
667
674
  var i, r, s, c;
668
- return t("tr", { key: a == null ? void 0 : a.id }, t("td", null, t("div", { class: "title" }, t("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (r = a == null ? void 0 : a.event_booking) == null ? void 0 : r.title), t("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), t("td", null, t("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), t("td", null, t("div", { class: "actions" }, t("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (d) => {
675
+ return e("tr", { key: a == null ? void 0 : a.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (r = a == null ? void 0 : a.event_booking) == null ? void 0 : r.title), e("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (d) => {
669
676
  d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
670
- } }, t("edit-icon", { width: "16", height: "16" }), "Edit"), t("select-dropdown", { name: "actions", options: [
677
+ } }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
671
678
  { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
672
679
  { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
673
680
  { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
674
681
  ], 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" }))));
675
- })))), t("div", { class: "pagination" }, t("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, t("chevron-icon", null)), t("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, t("chevron-icon", null)))), this.state === "error" && t("div", { class: "error-container" }, t("p", { class: "error" }, this.error)));
682
+ })))), e("div", { class: "pagination" }, e("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, e("chevron-icon", null)), e("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, e("chevron-icon", null)))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)));
676
683
  }
677
684
  get host() {
678
- return Ee(this);
685
+ return Ht(this);
679
686
  }
680
687
  static get watchers() {
681
688
  return {
@@ -683,8 +690,8 @@ const He = class {
683
690
  };
684
691
  }
685
692
  };
686
- at([
687
- Pe({
693
+ le([
694
+ Nt({
688
695
  name: "nylas-list-configurations",
689
696
  stateToProps: /* @__PURE__ */ new Map([
690
697
  ["schedulerConfig.configurations", "configurations"],
@@ -692,8 +699,8 @@ at([
692
699
  ]),
693
700
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
694
701
  eventToProps: {
695
- initListConfigurations: async (e, a) => {
696
- const { host: n, cursor: i } = e.detail;
702
+ initListConfigurations: async (t, a) => {
703
+ const { host: n, cursor: i } = t.detail;
697
704
  await n.setState("loading");
698
705
  const [r, s] = await a.schedulerConfig.getConfigurations(i);
699
706
  if (!r && s && s.message) {
@@ -702,28 +709,28 @@ at([
702
709
  }
703
710
  await n.setState("loaded");
704
711
  },
705
- createButtonClick: async (e, a) => {
712
+ createButtonClick: async (t, a) => {
706
713
  a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
707
714
  },
708
- deleteButtonClick: async (e, a) => {
709
- const { host: n, configuration: i } = e.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(i.id);
715
+ deleteButtonClick: async (t, a) => {
716
+ const { host: n, configuration: i } = t.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(i.id);
710
717
  !r && s && s.message && (await n.setState("error"), await n.setError(s.message));
711
718
  },
712
- editButtonClick: async (e, a) => {
713
- const { configuration: n } = e.detail;
719
+ editButtonClick: async (t, a) => {
720
+ const { configuration: n } = t.detail;
714
721
  a.schedulerConfigStore.state.selectedConfiguration = n, a.schedulerConfigStore.state.action = "edit";
715
722
  }
716
723
  },
717
724
  fireRegisterEvent: !0
718
725
  }),
719
- q("design:type", Function),
720
- q("design:paramtypes", []),
721
- q("design:returntype", void 0)
722
- ], He.prototype, "render", null);
723
- He.style = tt;
726
+ Q("design:type", Function),
727
+ Q("design:paramtypes", []),
728
+ Q("design:returntype", void 0)
729
+ ], It.prototype, "render", null);
730
+ It.style = re;
724
731
  export {
725
- Ze as google_logo_icon,
726
- qe as microsoft_logo_icon,
727
- Be as nylas_editor_tabs,
728
- He as nylas_list_configurations
732
+ Xt as google_logo_icon,
733
+ ee as microsoft_logo_icon,
734
+ Dt as nylas_editor_tabs,
735
+ It as nylas_list_configurations
729
736
  };