@nylas/react 1.2.0 → 1.3.1

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 (124) hide show
  1. package/dist/add-circle-icon.entry-606d3096.cjs +1 -0
  2. package/dist/add-circle-icon.entry-d8358e3f.js +15 -0
  3. package/dist/{archive-icon.entry-50c4b134.js → archive-icon.entry-8c6d31f2.js} +1 -1
  4. package/dist/{archive-icon.entry-718a1225.cjs → archive-icon.entry-e8ce8c7d.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-ca9625d3.cjs → arrow-icon.entry-13d23d01.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-53337688.js → arrow-icon.entry-d950ddce.js} +1 -1
  7. package/dist/{bold-icon.entry-36e679f1.cjs → bold-icon.entry-12072568.cjs} +1 -1
  8. package/dist/{bold-icon.entry-c6109b88.js → bold-icon.entry-5382fea2.js} +1 -1
  9. package/dist/{button-component_2.entry-0a06b0c4.js → button-component_2.entry-4aa63891.js} +1 -1
  10. package/dist/{button-component_2.entry-a1b8cd03.cjs → button-component_2.entry-d34ed360.cjs} +1 -1
  11. package/dist/calendar-agenda-fill-icon_54.entry-33d08f1a.cjs +9 -0
  12. package/dist/{calendar-agenda-fill-icon_54.entry-e4d8ab10.js → calendar-agenda-fill-icon_54.entry-50c9ed7b.js} +115 -106
  13. package/dist/{calendar-cancel-icon.entry-813a8330.js → calendar-cancel-icon.entry-64ea7038.js} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-22862d8c.cjs → calendar-cancel-icon.entry-b13aa245.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-79d381ce.js → calendar-check-icon_2.entry-935310fc.js} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-2ca25094.cjs → calendar-check-icon_2.entry-9cbe60a8.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-78bb4f9b.cjs → calendar-icon.entry-0c560a35.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-d52951b0.js → calendar-icon.entry-2448eea2.js} +1 -1
  19. package/dist/{checkbox-component_2.entry-a6114846.cjs → checkbox-component_2.entry-1e3afb3a.cjs} +1 -1
  20. package/dist/{checkbox-component_2.entry-1219f0cf.js → checkbox-component_2.entry-ec5e75fb.js} +1 -1
  21. package/dist/{chevron-icon_3.entry-82878ccf.js → chevron-icon_3.entry-1f72ef71.js} +1 -1
  22. package/dist/{chevron-icon_3.entry-d8f195dc.cjs → chevron-icon_3.entry-da1751d2.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-9ab4bc41.js → clock-icon_4.entry-4502c9f0.js} +1 -1
  24. package/dist/{clock-icon_4.entry-e081ccca.cjs → clock-icon_4.entry-b87aaaa9.cjs} +1 -1
  25. package/dist/close-icon.entry-92e93293.cjs +1 -0
  26. package/dist/close-icon.entry-e96749ed.js +15 -0
  27. package/dist/{constants-35df11e7-b37e3406.js → constants-24eca8c9-922dc05c.js} +16 -4
  28. package/dist/{constants-35df11e7-d87ad6d9.cjs → constants-24eca8c9-d0d9f3ec.cjs} +1 -1
  29. package/dist/{copy-icon.entry-9c6f38c2.cjs → copy-icon.entry-19bb7d2f.cjs} +1 -1
  30. package/dist/{copy-icon.entry-9d6e0f48.js → copy-icon.entry-7c958d7c.js} +1 -1
  31. package/dist/{delete-icon.entry-6ec9c80d.cjs → delete-icon.entry-41c7d463.cjs} +1 -1
  32. package/dist/{delete-icon.entry-fd8dc119.js → delete-icon.entry-59c9ca04.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-bea78baf.cjs → document-refresh-icon.entry-afc75ddb.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-2b531e97.js → document-refresh-icon.entry-c32cda4f.js} +1 -1
  35. package/dist/{feedbackSync-b56b29ed-a7e9f258.js → feedbackSync-b4015b72-0785986b.js} +1 -1
  36. package/dist/{feedbackSync-b56b29ed-cdcec5be.cjs → feedbackSync-b4015b72-d343d411.cjs} +1 -1
  37. package/dist/{folder-icon.entry-6a43630e.js → folder-icon.entry-5dcf707b.js} +1 -1
  38. package/dist/{folder-icon.entry-485465be.cjs → folder-icon.entry-61ccaddd.cjs} +1 -1
  39. package/dist/{forward-icon.entry-a1af9122.cjs → forward-icon.entry-3d598cb4.cjs} +1 -1
  40. package/dist/{forward-icon.entry-514ea4a8.js → forward-icon.entry-5a156d37.js} +1 -1
  41. package/dist/{globe-icon.entry-adcff451.js → globe-icon.entry-99e8bebf.js} +1 -1
  42. package/dist/{globe-icon.entry-970082a4.cjs → globe-icon.entry-a88502ce.cjs} +1 -1
  43. package/dist/{google-logo-icon_4.entry-2b68fe81.js → google-logo-icon_4.entry-531021bd.js} +142 -128
  44. package/dist/{google-logo-icon_4.entry-21cb4b95.cjs → google-logo-icon_4.entry-9a7790d2.cjs} +1 -1
  45. package/dist/{inbox-icon.entry-94507d27.cjs → inbox-icon.entry-6eadce9b.cjs} +1 -1
  46. package/dist/{inbox-icon.entry-d3e42f82.js → inbox-icon.entry-b2a2f48e.js} +1 -1
  47. package/dist/{index-9dc1bd32.js → index-13a43508.js} +2624 -2554
  48. package/dist/{index-bec58f1d.cjs → index-7dbf0ae7.cjs} +28 -28
  49. package/dist/{index.es-c7ca1bad-38475209.js → index.es-aa323594-17c2a3f6.js} +1 -1
  50. package/dist/{index.es-c7ca1bad-5652d50c.cjs → index.es-aa323594-84331fa3.cjs} +1 -1
  51. package/dist/{info-icon_2.entry-3b5a2c7f.js → info-icon_2.entry-c6e650c4.js} +1 -1
  52. package/dist/{info-icon_2.entry-e23f3ffd.cjs → info-icon_2.entry-f53d81e5.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-b4ea90c5.cjs → input-color-picker.entry-16fa8456.cjs} +1 -1
  54. package/dist/{input-color-picker.entry-9bc48bd3.js → input-color-picker.entry-cd398537.js} +1 -1
  55. package/dist/{input-component.entry-e567ec08.cjs → input-component.entry-74b63249.cjs} +1 -1
  56. package/dist/{input-component.entry-ebae3a8a.js → input-component.entry-b471f023.js} +1 -1
  57. package/dist/{input-dropdown.entry-1f704009.js → input-dropdown.entry-14e1f6cb.js} +1 -1
  58. package/dist/{input-dropdown.entry-597cd5a8.cjs → input-dropdown.entry-32b4b8be.cjs} +1 -1
  59. package/dist/{italic-icon.entry-08593dd0.js → italic-icon.entry-8a1a7568.js} +1 -1
  60. package/dist/{italic-icon.entry-8f614353.cjs → italic-icon.entry-c9ae0186.cjs} +1 -1
  61. package/dist/{multi-select-dropdown.entry-eb978e22.cjs → multi-select-dropdown.entry-58b860a0.cjs} +1 -1
  62. package/dist/{multi-select-dropdown.entry-5f1c73f3.js → multi-select-dropdown.entry-bc4901aa.js} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-f64eecaa.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-c4043d8f.js → nylas-booked-event-card_12.entry-fbdb2f3d.js} +378 -378
  65. package/dist/{nylas-form-card.entry-1540207c.cjs → nylas-form-card.entry-7e9a0cf1.cjs} +1 -1
  66. package/dist/{nylas-form-card.entry-80688e35.js → nylas-form-card.entry-aa1d5aca.js} +2 -2
  67. package/dist/{nylas-if-state.entry-037d0454.js → nylas-if-state.entry-5e30f6b3.js} +2 -2
  68. package/dist/{nylas-if-state.entry-e5155b5b.cjs → nylas-if-state.entry-96914d61.cjs} +1 -1
  69. package/dist/{nylas-login.entry-b3d73ab9.cjs → nylas-login.entry-e26689b0.cjs} +1 -1
  70. package/dist/{nylas-login.entry-d157a6ed.js → nylas-login.entry-e52648da.js} +2 -2
  71. package/dist/{nylas-provider.entry-884ba204.cjs → nylas-provider.entry-9d43f4f0.cjs} +1 -1
  72. package/dist/{nylas-provider.entry-cf4b8b57.js → nylas-provider.entry-ac669351.js} +4 -4
  73. package/dist/nylas-scheduler-editor.entry-0f1370d9.cjs +2 -0
  74. package/dist/{nylas-scheduler-editor.entry-e731ca4a.js → nylas-scheduler-editor.entry-9655ce2e.js} +12 -12
  75. package/dist/{nylas-scheduling.entry-86b18d85.js → nylas-scheduling.entry-14d4cd69.js} +43 -42
  76. package/dist/nylas-scheduling.entry-ab10f8a4.cjs +1 -0
  77. package/dist/{nylas-time-window-picker.entry-393e855b.js → nylas-time-window-picker.entry-a2f71121.js} +1 -1
  78. package/dist/{nylas-time-window-picker.entry-f9687046.cjs → nylas-time-window-picker.entry-dfbd975e.cjs} +1 -1
  79. package/dist/{person-icon.entry-b5ccb1f4.js → person-icon.entry-40b5a8c5.js} +1 -1
  80. package/dist/{person-icon.entry-1b5dcd2e.cjs → person-icon.entry-a45918af.cjs} +1 -1
  81. package/dist/{play-icon.entry-5e51d961.js → play-icon.entry-b2315f8c.js} +1 -1
  82. package/dist/{play-icon.entry-3f2e7e31.cjs → play-icon.entry-c5757946.cjs} +1 -1
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +1 -1
  85. package/dist/{refresh-icon.entry-9beaa8e1.js → refresh-icon.entry-37d038f8.js} +1 -1
  86. package/dist/{refresh-icon.entry-3d241ffd.cjs → refresh-icon.entry-b9afd192.cjs} +1 -1
  87. package/dist/{register-component-3444af44-94783766.js → register-component-555477e7-42247763.js} +1 -1
  88. package/dist/{register-component-3444af44-890ac950.cjs → register-component-555477e7-ecafba1c.cjs} +1 -1
  89. package/dist/{reply-all-icon.entry-a0fcbf30.cjs → reply-all-icon.entry-07a6783a.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-6b55d3b3.js → reply-all-icon.entry-89fd0e10.js} +1 -1
  91. package/dist/{reply-icon.entry-c7d0d967.cjs → reply-icon.entry-8cddb112.cjs} +1 -1
  92. package/dist/{reply-icon.entry-c709b46f.js → reply-icon.entry-a53a6fc4.js} +1 -1
  93. package/dist/{scheduler-config-store-ed4a8dfd-13c1c187.js → scheduler-config-store-ed4a8dfd-656579e3.js} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-ba68cc09.cjs → scheduler-config-store-ed4a8dfd-733c6442.cjs} +1 -1
  95. package/dist/scheduler-store-c37aa5ca-0484b074.cjs +1 -0
  96. package/dist/{scheduler-store-ecd15be2-d2ef4ac2.js → scheduler-store-c37aa5ca-c9752707.js} +127 -124
  97. package/dist/{sent-icon.entry-b65083f4.js → sent-icon.entry-6ac749b3.js} +1 -1
  98. package/dist/{sent-icon.entry-9083bca9.cjs → sent-icon.entry-b740a32d.cjs} +1 -1
  99. package/dist/{spam-icon.entry-e6c1a82a.cjs → spam-icon.entry-78cec025.cjs} +1 -1
  100. package/dist/{spam-icon.entry-120eca46.js → spam-icon.entry-872ff1e4.js} +1 -1
  101. package/dist/{star-icon.entry-e3563c0b.js → star-icon.entry-57246dc1.js} +1 -1
  102. package/dist/{star-icon.entry-efbc2679.cjs → star-icon.entry-ab9ad7df.cjs} +1 -1
  103. package/dist/{stop-icon.entry-ab5cf663.js → stop-icon.entry-5054fa33.js} +1 -1
  104. package/dist/{stop-icon.entry-8d07d719.cjs → stop-icon.entry-f79dce49.cjs} +1 -1
  105. package/dist/{textarea-component.entry-a0ef9f03.js → textarea-component.entry-15c9a676.js} +1 -1
  106. package/dist/{textarea-component.entry-93be4a65.cjs → textarea-component.entry-2967dd82.cjs} +1 -1
  107. package/dist/{time-period-selector.entry-2a86f48f.js → time-period-selector.entry-9226fd08.js} +1 -1
  108. package/dist/{time-period-selector.entry-16f96af9.cjs → time-period-selector.entry-a53c94c2.cjs} +1 -1
  109. package/dist/{translate-icon.entry-d632b37b.js → translate-icon.entry-52939fa4.js} +1 -1
  110. package/dist/{translate-icon.entry-868948d3.cjs → translate-icon.entry-f4dcc479.cjs} +1 -1
  111. package/dist/{trash-fill-icon.entry-88dfffbc.cjs → trash-fill-icon.entry-7f4ddaf5.cjs} +1 -1
  112. package/dist/{trash-fill-icon.entry-eeab235e.js → trash-fill-icon.entry-b9ab3cfc.js} +1 -1
  113. package/dist/{underline-icon.entry-65e42dcf.js → underline-icon.entry-c8142970.js} +1 -1
  114. package/dist/{underline-icon.entry-35430c19.cjs → underline-icon.entry-e9959c5c.cjs} +1 -1
  115. package/dist/{warning-icon.entry-bab6d190.js → warning-icon.entry-00426457.js} +1 -1
  116. package/dist/{warning-icon.entry-e7714a43.cjs → warning-icon.entry-98c0d003.cjs} +1 -1
  117. package/package.json +3 -3
  118. package/dist/add-circle-icon_2.entry-52cc3933.cjs +0 -1
  119. package/dist/add-circle-icon_2.entry-5ea903bf.js +0 -25
  120. package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +0 -9
  121. package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +0 -1
  122. package/dist/nylas-scheduler-editor.entry-6f76d0d5.cjs +0 -2
  123. package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +0 -1
  124. package/dist/scheduler-store-ecd15be2-8f7d171f.cjs +0 -1
@@ -1,38 +1,38 @@
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";
1
+ import { r as W, h as e, c as k, d as h, n as Et, o as Y, H as Dt, g as Ht, i as G, F as Vt } from "./index-13a43508.js";
2
+ import { R as It } from "./register-component-555477e7-42247763.js";
3
+ import { D as Ot } from "./constants-24eca8c9-922dc05c.js";
4
+ import { i as Zt, a as Gt, c as Wt, b as qt, f as Kt } from "./feedbackSync-b4015b72-0785986b.js";
5
5
  import "react";
6
6
  import "react-dom";
7
- const Kt = ".sc-google-logo-icon-h{display:flex}", Qt = Kt, Xt = class {
7
+ const Qt = ".sc-google-logo-icon-h{display:flex}", Xt = Qt, Yt = class {
8
8
  constructor(t) {
9
- G(this, t), this.width = "24", this.height = "24";
9
+ W(this, t), this.width = "24", this.height = "24";
10
10
  }
11
11
  render() {
12
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
- Xt.style = Qt;
16
- const Yt = ".sc-microsoft-logo-icon-h{display:flex}", te = Yt, ee = class {
15
+ Yt.style = Xt;
16
+ const te = ".sc-microsoft-logo-icon-h{display:flex}", ee = te, ae = class {
17
17
  constructor(t) {
18
- G(this, t), this.width = "22", this.height = "22";
18
+ W(this, t), this.width = "22", this.height = "22";
19
19
  }
20
20
  render() {
21
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
- ee.style = te;
25
- var o;
24
+ ae.style = ee;
25
+ var r;
26
26
  (function(t) {
27
27
  t.EventInfo = "eventInfo", t.Availability = "availability", t.BookingOptions = "bookingOptions", t.Communications = "communications", t.Participants = "participants", t.BookingForm = "bookingForm", t.PageStyles = "pageStyles";
28
- })(o || (o = {}));
29
- function ae({ id: t, formState: a, activeTab: n }, i) {
28
+ })(r || (r = {}));
29
+ function ne({ id: t, formState: a, activeTab: n }, i) {
30
30
  return e(
31
- Jt,
31
+ Vt,
32
32
  null,
33
33
  e(
34
34
  "div",
35
- { key: `event-info-${t}`, class: { hide: n !== o.EventInfo } },
35
+ { key: `event-info-${t}`, class: { hide: n !== r.EventInfo } },
36
36
  e(
37
37
  "nylas-event-info",
38
38
  null,
@@ -48,14 +48,14 @@ function ae({ id: t, formState: a, activeTab: n }, i) {
48
48
  ),
49
49
  e(
50
50
  "div",
51
- { key: `availability-${t}`, class: { hide: n !== o.Availability } },
51
+ { key: `availability-${t}`, class: { hide: n !== r.Availability } },
52
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
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
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
56
  e(
57
57
  "div",
58
- { key: `booking-options-${t}`, class: { hide: n !== o.BookingOptions } },
58
+ { key: `booking-options-${t}`, class: { hide: n !== r.BookingOptions } },
59
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
60
  e(
61
61
  "nylas-custom-booking-flow",
@@ -85,7 +85,7 @@ function ae({ id: t, formState: a, activeTab: n }, i) {
85
85
  ),
86
86
  e(
87
87
  "div",
88
- { key: `communications-${t}`, class: { hide: n !== o.Communications } },
88
+ { key: `communications-${t}`, class: { hide: n !== r.Communications } },
89
89
  e(
90
90
  "div",
91
91
  { class: "tab-header" },
@@ -97,43 +97,43 @@ function ae({ id: t, formState: a, activeTab: n }, i) {
97
97
  ),
98
98
  e(
99
99
  "div",
100
- { key: `participants-${t}`, class: { hide: n !== o.Participants } },
100
+ { key: `participants-${t}`, class: { hide: n !== r.Participants } },
101
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
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
104
  e(
105
105
  "div",
106
- { key: `page-styles-${t}`, class: { hide: n !== o.PageStyles } },
106
+ { key: `page-styles-${t}`, class: { hide: n !== r.PageStyles } },
107
107
  e("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
108
  e("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
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
111
  e(
112
112
  "div",
113
- { key: `booking-form-${t}`, class: { hide: n !== o.BookingForm } },
113
+ { key: `booking-form-${t}`, class: { hide: n !== r.BookingForm } },
114
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 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
- var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
118
+ const ie = '.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}', se = ie;
119
+ var oe = function(t, a, n, i) {
120
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
122
  s = Reflect.decorate(t, a, n, i);
123
123
  else
124
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
- return r > 3 && s && Object.defineProperty(a, n, s), s;
127
- }, K = function(t, a) {
125
+ (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
126
+ return o > 3 && s && Object.defineProperty(a, n, s), s;
127
+ }, Q = function(t, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(t, a);
130
130
  };
131
- const Dt = class {
131
+ const Mt = class {
132
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) => {
133
+ W(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 Y, tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt;
136
+ var tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt, ft;
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,10 +141,10 @@ const Dt = 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: 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 : [
144
+ const o = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: y, location: F, bookingType: L, buffer: E, availableDaysInFuture: O, minCancellationNotice: D, minBookingNotice: H, cancellationPolicy: I, timeslotInterval: w, additionalGuestsHidden: M, hideCancellationOptions: N, hideReschedulingOptions: z, participants: v, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: B, slug: J, appearance: V, name: Z } = o, b = ((et = (tt = this.selectedConfiguration) == null ? void 0 : tt.participants) == null ? void 0 : et.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] : [], _ = ((at = b == null ? void 0 : b.booking) == null ? void 0 : at.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) ?? ((at = this.currentUser) == null ? void 0 : at.name) ?? "",
147
- email: (b == null ? void 0 : b.email) ?? ((nt = this.currentUser) == null ? void 0 : nt.email) ?? "",
146
+ name: (b == null ? void 0 : b.name) ?? ((nt = this.currentUser) == null ? void 0 : nt.name) ?? "",
147
+ email: (b == null ? void 0 : b.email) ?? ((it = this.currentUser) == null ? void 0 : it.email) ?? "",
148
148
  is_organizer: !0,
149
149
  timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
150
150
  availability: {
@@ -155,9 +155,9 @@ const Dt = class {
155
155
  calendar_id: y && y !== "" ? y : "primary"
156
156
  }
157
157
  }
158
- ], E = {
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",
158
+ ], T = {
159
+ ...((st = this.selectedConfiguration) == null ? void 0 : st.id) && { id: this.selectedConfiguration.id },
160
+ version: ((ot = this.selectedConfiguration) == null ? void 0 : ot.version) ?? "1.0.0",
161
161
  slug: J,
162
162
  name: Z,
163
163
  availability: {
@@ -165,38 +165,38 @@ const Dt = class {
165
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 || (((lt = (rt = (ot = this.selectedConfiguration) == null ? void 0 : ot.availability) == null ? void 0 : rt.availability_rules) == null ? void 0 : lt.availability_method) ?? "collective"),
169
- buffer: B || { before: 0, after: 0 },
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) ?? ""
168
+ availability_method: B || (((dt = (lt = (rt = this.selectedConfiguration) == null ? void 0 : rt.availability) == null ? void 0 : lt.availability_rules) == null ? void 0 : dt.availability_method) ?? "collective"),
169
+ buffer: E || { before: 0, after: 0 },
170
+ default_open_hours: (u == null ? void 0 : u.openHours) ?? ((ht = (bt = (ct = this.selectedConfiguration) == null ? void 0 : ct.availability) == null ? void 0 : bt.availability_rules) == null ? void 0 : ht.default_open_hours) ?? Ot,
171
+ round_robin_group_id: ((mt = (pt = (ut = this.selectedConfiguration) == null ? void 0 : ut.availability) == null ? void 0 : pt.availability_rules) == null ? void 0 : mt.round_robin_group_id) ?? ""
172
172
  }
173
173
  },
174
174
  participants: [
175
175
  ...C ? C.map((l) => {
176
- var ft, yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt;
176
+ var yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt, Bt;
177
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";
178
+ const Tt = m != null && m[l.email] ? m == null ? void 0 : m[l.email] : _ || "primary", K = f != null && f[l.email] ? f == null ? void 0 : f[l.email] : S != null && S.length ? S : ["primary"], Jt = K.length === 1 && K[0] === "primary";
179
179
  return {
180
180
  name: l.name ?? "",
181
181
  email: l.email,
182
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,
183
+ timezone: ((_t = (yt = p == null ? void 0 : p[l.email]) == null ? void 0 : yt[0]) == null ? void 0 : _t.timezone) ?? ((wt = (vt = (gt = l.availability) == null ? void 0 : gt.open_hours) == null ? void 0 : vt[0]) == null ? void 0 : wt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
184
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) ?? []
185
+ calendar_ids: Jt ? [Tt] : K,
186
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((kt = l.availability) == null ? void 0 : kt.open_hours) ?? []
187
187
  },
188
188
  booking: {
189
189
  calendar_id: Tt
190
190
  }
191
191
  };
192
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";
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, q = (f == null ? void 0 : f[l.email]) ?? ((Ct = l.availability) == null ? void 0 : Ct.calendar_ids) ?? ["primary"], $t = q.length === 1 && q[0] === "primary";
194
194
  return {
195
195
  ...l,
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,
196
+ timezone: ((St = (xt = p == null ? void 0 : p[l.email]) == null ? void 0 : xt[0]) == null ? void 0 : St.timezone) ?? ((Pt = (Lt = (Ft = l.availability) == null ? void 0 : Ft.open_hours) == null ? void 0 : Lt[0]) == null ? void 0 : Pt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
197
197
  availability: l.availability ? {
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) ?? []
198
+ calendar_ids: $t && typeof x < "u" ? [x == null ? void 0 : x.calendar_id] : q,
199
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((Bt = l.availability) == null ? void 0 : Bt.open_hours) ?? []
200
200
  } : void 0,
201
201
  booking: x
202
202
  };
@@ -212,42 +212,42 @@ const Dt = class {
212
212
  reminders: A
213
213
  },
214
214
  scheduler: {
215
- cancellation_policy: D ?? "",
215
+ cancellation_policy: I ?? "",
216
216
  available_days_in_future: O ?? 30,
217
- min_cancellation_notice: H ?? 0,
218
- min_booking_notice: N ?? 60,
219
- hide_additional_guests: I ?? !1,
220
- hide_cancellation_options: M ?? !1,
217
+ min_cancellation_notice: D ?? 0,
218
+ min_booking_notice: H ?? 60,
219
+ hide_additional_guests: M ?? !1,
220
+ hide_cancellation_options: N ?? !1,
221
221
  hide_rescheduling_options: z ?? !1,
222
222
  additional_fields: U,
223
223
  email_template: j,
224
224
  confirmation_redirect_url: $
225
225
  },
226
226
  appearance: V
227
- }, Mt = Et(E, this.selectedConfiguration || {}), P = this.action === "create" ? Mt : E;
227
+ }, zt = Et(T, this.selectedConfiguration || {}), P = this.action === "create" ? zt : T;
228
228
  this.isConfigRoundRobin(P) && (P.participants = P.participants.map((l) => ({ ...l, is_organizer: void 0 })));
229
- const zt = (l) => {
229
+ const Ut = (l) => {
230
230
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
231
231
  this.changesSaved = !1;
232
232
  }, 5e3);
233
- }, Ut = this.checkForBookingFormErrors(P), Rt = ((mt = this.configurations) == null ? void 0 : mt.find((l) => {
233
+ }, Rt = this.checkForBookingFormErrors(P), At = ((ft = this.configurations) == null ? void 0 : ft.find((l) => {
234
234
  var x;
235
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 });
236
+ })) || {}, jt = this.checkForOrganizerConfirmationError(Et(P, At));
237
+ Rt || jt || this.schedulerConfigChanged.emit({ config: P, resetLoadingState: Ut, setError: this.setError, action: this.action });
238
238
  }, this.isConfigRoundRobin = (a) => {
239
- var n, i, r, s;
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";
239
+ var n, i, o, s;
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 = (o = a.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
241
241
  }, this.checkForOrganizerConfirmationError = (a) => {
242
242
  var c, d;
243
243
  let n = !1, i = "";
244
- const r = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (d = a.scheduler) == null ? void 0 : d.organizer_confirmation_url;
245
- return r && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.setError(new Error(i))), n;
244
+ const o = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (d = a.scheduler) == null ? void 0 : d.organizer_confirmation_url;
245
+ return o && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.setError(new Error(i))), n;
246
246
  }, this.checkForBookingFormErrors = (a) => {
247
247
  var s;
248
248
  let n = !1, i = "";
249
- const r = (s = a.scheduler) == null ? void 0 : s.additional_fields;
250
- return r && (i = "Booking form error: ", Object.entries(r).forEach((c) => {
249
+ const o = (s = a.scheduler) == null ? void 0 : s.additional_fields;
250
+ return o && (i = "Booking form error: ", Object.entries(o).forEach((c) => {
251
251
  const d = c[1];
252
252
  if (d.label === "") {
253
253
  i += `Label is required for field of type ${d.type}.`, n = !0;
@@ -261,7 +261,7 @@ const Dt = class {
261
261
  }
262
262
  }
263
263
  })), n && (this.isLoading = !1, this.setError(new Error(i))), n;
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 = "";
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 = r.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
265
265
  }
266
266
  configChangedHandler(t) {
267
267
  h("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
@@ -281,12 +281,12 @@ const Dt = class {
281
281
  }
282
282
  componentDidLoad() {
283
283
  var a, n;
284
- h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Vt() && Zt({
284
+ h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Zt() && Gt({
285
285
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
286
- release: "1.2.0",
286
+ release: "1.3.1",
287
287
  integrations: (i) => [
288
- ...i.filter((r) => !1),
289
- qt({
288
+ ...i.filter((o) => !1),
289
+ Kt({
290
290
  colorScheme: "system",
291
291
  autoInject: !1
292
292
  })
@@ -312,29 +312,29 @@ const Dt = class {
312
312
  this.showFeedbackModal = !1;
313
313
  }
314
314
  feedbackSubmittedHandler(t) {
315
- var i, r;
315
+ var i, o;
316
316
  const n = {
317
- eventId: Gt("Scheduler Editor User Feedback"),
317
+ eventId: Wt("Scheduler Editor User Feedback"),
318
318
  message: t.detail.feedback
319
319
  };
320
- Wt(n, {
320
+ qt(n, {
321
321
  includeReplay: !0,
322
322
  captureContext: {
323
323
  tags: {
324
324
  "nylas-web-element": "nylas-scheduler-editor",
325
- "nylas-web-element-version": "1.2.0"
325
+ "nylas-web-element-version": "1.3.1"
326
326
  },
327
327
  extra: {
328
328
  configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
329
- slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
329
+ slug: (o = this.selectedConfiguration) == null ? void 0 : o.slug
330
330
  }
331
331
  }
332
332
  }), this.showFeedbackModal = !1;
333
333
  }
334
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;
335
+ var n, i, o, s, c, d, u, y, F, L, E, O, D, H, I, w, M, N, z, v, p, U, f, R, m, A, j, $, B, J, V, Z, b, S;
336
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((_) => {
337
+ return !a && ((o = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : o.availability_method) !== "collective" && (a = (s = t == null ? void 0 : t.participants) == null ? void 0 : s.find((_) => {
338
338
  var g;
339
339
  return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
340
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."), {
@@ -343,16 +343,16 @@ const Dt = class {
343
343
  duration: ((y = (u = t == null ? void 0 : t.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
344
344
  availability: {
345
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
346
+ openHours: ((E = (L = t == null ? void 0 : t.availability) == null ? void 0 : L.availability_rules) == null ? void 0 : E.default_open_hours) ?? Ot
347
347
  },
348
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) ?? {},
350
- calendarIds: ((N = a == null ? void 0 : a.availability) == null ? void 0 : N.calendar_ids) ?? [],
349
+ conferencing: ((D = t == null ? void 0 : t.event_booking) == null ? void 0 : D.conferencing) ?? {},
350
+ calendarIds: ((H = a == null ? void 0 : a.availability) == null ? void 0 : H.calendar_ids) ?? [],
351
351
  participants: (t == null ? void 0 : t.participants) ?? [],
352
- bookingCalendar: ((D = a == null ? void 0 : a.booking) == null ? void 0 : D.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
352
+ bookingCalendar: ((I = a == null ? void 0 : a.booking) == null ? void 0 : I.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
353
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 },
354
+ bookingType: ((M = t == null ? void 0 : t.event_booking) == null ? void 0 : M.booking_type) ?? "booking",
355
+ buffer: ((z = (N = t == null ? void 0 : t.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
356
356
  cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
357
357
  availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
358
358
  minCancellationNotice: ((U = t == null ? void 0 : t.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
@@ -363,10 +363,10 @@ const Dt = class {
363
363
  },
364
364
  additionalGuestsHidden: ((j = t == null ? void 0 : t.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
365
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,
366
+ hideReschedulingOptions: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
367
367
  participantBookingCalendars: ((J = t == null ? void 0 : t.participants) == null ? void 0 : J.reduce((_, g) => {
368
- var C, E;
369
- return (C = g.booking) != null && C.calendar_id && (_[g.email] = (E = g.booking) == null ? void 0 : E.calendar_id), _;
368
+ var C, T;
369
+ return (C = g.booking) != null && C.calendar_id && (_[g.email] = (T = g.booking) == null ? void 0 : T.calendar_id), _;
370
370
  })) ?? {},
371
371
  participantCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
372
372
  var C;
@@ -490,13 +490,13 @@ const Dt = class {
490
490
  }
491
491
  render() {
492
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: {
493
+ return h("[nylas-editor-tabs]", "render", this.formState), e(Dt, { 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: r.EventInfo, class: { tab: !0, active: this.activeTab == r.EventInfo, hide: this.hideTab(r.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, r.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: r.Availability, class: { tab: !0, active: this.activeTab == r.Availability, hide: this.hideTab(r.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, r.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: r.Participants, class: { tab: !0, active: this.activeTab == r.Participants, hide: this.hideTab(r.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, r.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: r.BookingOptions, class: { tab: !0, active: this.activeTab == r.BookingOptions, hide: this.hideTab(r.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, r.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: r.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(r.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, r.BookingForm) }, this.activeTab == r.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: r.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(r.Communications) }, onClick: (n) => this.setActiveTab(n, r.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == r.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: r.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(r.PageStyles) }, onClick: (n) => this.setActiveTab(n, r.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == r.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(ne, { 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: {
494
494
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
495
495
  "saved-changes": this.changesSaved,
496
496
  error: this.error !== "",
497
497
  "error-full-width": this.error !== "" && this.action === "create"
498
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");
499
+ n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(Y(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
500
500
  }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "cf9be4337b438cbb3b4e02c9afab2068278d81a7", type: "button", disabled: this.isLoading, clickHandler: (n) => {
501
501
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
502
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));
@@ -511,8 +511,8 @@ const Dt = class {
511
511
  };
512
512
  }
513
513
  };
514
- se([
515
- Nt({
514
+ oe([
515
+ It({
516
516
  name: "nylas-editor-tabs",
517
517
  stateToProps: /* @__PURE__ */ new Map([
518
518
  ["schedulerConfig.calendars", "calendars"],
@@ -522,11 +522,11 @@ se([
522
522
  ]),
523
523
  eventToProps: {
524
524
  schedulerConfigChanged: async (t, a) => {
525
- const { resetLoadingState: n, setError: i, action: r, config: s } = t.detail, c = (d) => {
525
+ const { resetLoadingState: n, setError: i, action: o, config: s } = t.detail, c = (d) => {
526
526
  const [u, y] = d;
527
527
  !u && y && i && i(y), n && n(t);
528
528
  };
529
- if (r === "edit") {
529
+ if (o === "edit") {
530
530
  const d = await a.schedulerConfig.updateConfiguration(s);
531
531
  c(d);
532
532
  } else {
@@ -554,27 +554,27 @@ se([
554
554
  ]),
555
555
  fireRegisterEvent: !0
556
556
  }),
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) {
564
- var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
557
+ Q("design:type", Function),
558
+ Q("design:paramtypes", []),
559
+ Q("design:returntype", void 0)
560
+ ], Mt.prototype, "render", null);
561
+ Mt.style = se;
562
+ const re = ':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)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', le = re;
563
+ var de = function(t, a, n, i) {
564
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
565
565
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
566
566
  s = Reflect.decorate(t, a, n, i);
567
567
  else
568
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);
570
- return r > 3 && s && Object.defineProperty(a, n, s), s;
571
- }, Q = function(t, a) {
569
+ (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
570
+ return o > 3 && s && Object.defineProperty(a, n, s), s;
571
+ }, X = function(t, a) {
572
572
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
573
573
  return Reflect.metadata(t, a);
574
574
  };
575
- const It = class {
575
+ const Nt = class {
576
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;
577
+ W(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, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
578
578
  }
579
579
  listConfigurationsNextCursorChangedHandler(t, a) {
580
580
  if (!t || t === a) {
@@ -598,17 +598,18 @@ const It = class {
598
598
  h("[nylas-list-configurations]", "disconnectedCallback");
599
599
  }
600
600
  async handleNylasFormDropdownChanged(t) {
601
+ var o;
601
602
  h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
602
603
  const { value: a } = t.detail, [n, i] = a.split("-");
603
604
  switch (t.preventDefault(), n) {
604
605
  case "delete":
605
- this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[i] });
606
+ this.deleteConfigurationId = (o = this.configurations[i]) == null ? void 0 : o.id;
606
607
  break;
607
608
  case "preview":
608
- window.open(X(this.schedulerPreviewLink, this.configurations[i]), "_blank");
609
+ window.open(Y(this.schedulerPreviewLink, this.configurations[i]), "_blank");
609
610
  break;
610
611
  case "copy":
611
- await navigator.clipboard.writeText(X(this.schedulerPreviewLink, this.configurations[i]));
612
+ await navigator.clipboard.writeText(Y(this.schedulerPreviewLink, this.configurations[i]));
612
613
  break;
613
614
  }
614
615
  }
@@ -621,6 +622,17 @@ const It = class {
621
622
  async setError(t) {
622
623
  this.error = t;
623
624
  }
625
+ async hideDeleteConfirmation() {
626
+ this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
627
+ }
628
+ closeModal(t) {
629
+ t.preventDefault(), this.deleteConfigurationId = "";
630
+ }
631
+ handleConfirmDeleteButtonClicked(t) {
632
+ t.preventDefault(), this.showDeleteButtonLoading = !0;
633
+ const a = this.configurations.find((n) => n.id === this.deleteConfigurationId);
634
+ a && (a != null && a.id) && this.deleteButtonClick.emit({ host: this.host, configuration: a });
635
+ }
624
636
  getDurationString(t) {
625
637
  const a = Math.floor(t / 60), n = t % 60;
626
638
  return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
@@ -637,7 +649,7 @@ const It = class {
637
649
  case "preview":
638
650
  return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), "Preview");
639
651
  case "copy":
640
- return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy");
652
+ return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy link");
641
653
  case "delete":
642
654
  return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), "Delete");
643
655
  default:
@@ -662,7 +674,7 @@ const It = class {
662
674
  }
663
675
  render() {
664
676
  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: () => {
677
+ return e(Dt, 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: () => {
666
678
  this.createButtonClick.emit(this.host);
667
679
  } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
668
680
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
@@ -671,15 +683,17 @@ const It = class {
671
683
  } }, 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: () => {
672
684
  this.createButtonClick.emit(this.host);
673
685
  } }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
674
- var i, r, s, c;
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) => {
686
+ var i, o, s, c;
687
+ 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 }, (o = a == null ? void 0 : a.event_booking) == null ? void 0 : o.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) => {
676
688
  d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
677
689
  } }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
678
690
  { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
679
691
  { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
680
692
  { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
681
693
  ], 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" }))));
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)));
694
+ })))), 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)), !!this.deleteConfigurationId && e("div", { class: "card-wrapper" }, e("div", { class: "card-modal" }, e("div", { class: "close-button" }, e("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (a) => this.closeModal(a), part: "nfbf__close-button" }, e("close-icon", null))), e("div", { class: "header" }, e("h2", { slot: "card-title", part: "nfbf__title" }, G.t("deleteSchedulingPageTitle"))), e("div", { class: "description title-desc" }, e("p", null, G.t("deleteSchedulingPageDescription"))), e("div", { class: {
695
+ footer: !0
696
+ } }, e("button-component", { variant: "basic", onClick: (a) => this.closeModal(a), part: "nfbf__button-outline nfbf__cancel-cta" }, `${G.t("deleteSchedulingPageCancelButton")}`), e("button-component", { variant: "destructive", onClick: (a) => this.handleConfirmDeleteButtonClicked(a), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${G.t("deleteSchedulingPageConfirmButton")}`)))));
683
697
  }
684
698
  get host() {
685
699
  return Ht(this);
@@ -690,8 +704,8 @@ const It = class {
690
704
  };
691
705
  }
692
706
  };
693
- le([
694
- Nt({
707
+ de([
708
+ It({
695
709
  name: "nylas-list-configurations",
696
710
  stateToProps: /* @__PURE__ */ new Map([
697
711
  ["schedulerConfig.configurations", "configurations"],
@@ -702,8 +716,8 @@ le([
702
716
  initListConfigurations: async (t, a) => {
703
717
  const { host: n, cursor: i } = t.detail;
704
718
  await n.setState("loading");
705
- const [r, s] = await a.schedulerConfig.getConfigurations(i);
706
- if (!r && s && s.message) {
719
+ const [o, s] = await a.schedulerConfig.getConfigurations(i);
720
+ if (!o && s && s.message) {
707
721
  await n.setState("error"), await n.setError(s.message);
708
722
  return;
709
723
  }
@@ -713,8 +727,8 @@ le([
713
727
  a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
714
728
  },
715
729
  deleteButtonClick: async (t, a) => {
716
- const { host: n, configuration: i } = t.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(i.id);
717
- !r && s && s.message && (await n.setState("error"), await n.setError(s.message));
730
+ const { host: n, configuration: i } = t.detail, [o, s] = await a.schedulerConfig.deleteConfiguration(i.id);
731
+ !o && s && s.message && (await n.setState("error"), await n.setError(s.message)), await n.hideDeleteConfirmation();
718
732
  },
719
733
  editButtonClick: async (t, a) => {
720
734
  const { configuration: n } = t.detail;
@@ -723,14 +737,14 @@ le([
723
737
  },
724
738
  fireRegisterEvent: !0
725
739
  }),
726
- Q("design:type", Function),
727
- Q("design:paramtypes", []),
728
- Q("design:returntype", void 0)
729
- ], It.prototype, "render", null);
730
- It.style = re;
740
+ X("design:type", Function),
741
+ X("design:paramtypes", []),
742
+ X("design:returntype", void 0)
743
+ ], Nt.prototype, "render", null);
744
+ Nt.style = le;
731
745
  export {
732
- Xt as google_logo_icon,
733
- ee as microsoft_logo_icon,
734
- Dt as nylas_editor_tabs,
735
- It as nylas_list_configurations
746
+ Yt as google_logo_icon,
747
+ ae as microsoft_logo_icon,
748
+ Mt as nylas_editor_tabs,
749
+ Nt as nylas_list_configurations
736
750
  };