@nylas/react 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/{add-circle-icon.entry-d8358e3f.js → add-circle-icon.entry-0ea05c5b.js} +1 -1
  2. package/dist/{add-circle-icon.entry-606d3096.cjs → add-circle-icon.entry-10f2c319.cjs} +1 -1
  3. package/dist/{archive-icon.entry-e8ce8c7d.cjs → archive-icon.entry-7eeea6f4.cjs} +1 -1
  4. package/dist/{archive-icon.entry-8c6d31f2.js → archive-icon.entry-a0af58f2.js} +1 -1
  5. package/dist/{arrow-icon.entry-d950ddce.js → arrow-icon.entry-7fd7c18e.js} +1 -1
  6. package/dist/{arrow-icon.entry-13d23d01.cjs → arrow-icon.entry-954f2ba8.cjs} +1 -1
  7. package/dist/{bold-icon.entry-5382fea2.js → bold-icon.entry-690ecac8.js} +1 -1
  8. package/dist/{bold-icon.entry-12072568.cjs → bold-icon.entry-e970c498.cjs} +1 -1
  9. package/dist/{button-component_2.entry-4aa63891.js → button-component_2.entry-b57d03fc.js} +1 -1
  10. package/dist/{button-component_2.entry-d34ed360.cjs → button-component_2.entry-b7d39903.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_54.entry-50c9ed7b.js → calendar-agenda-fill-icon_53.entry-7792b45c.js} +432 -442
  12. package/dist/calendar-agenda-fill-icon_53.entry-89e5ac45.cjs +9 -0
  13. package/dist/{calendar-cancel-icon.entry-64ea7038.js → calendar-cancel-icon.entry-5757c056.js} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-b13aa245.cjs → calendar-cancel-icon.entry-8cd02237.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-9cbe60a8.cjs → calendar-check-icon_2.entry-4f59d206.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-935310fc.js → calendar-check-icon_2.entry-6864b9d5.js} +1 -1
  17. package/dist/{calendar-icon.entry-0c560a35.cjs → calendar-icon.entry-0b1edb49.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-2448eea2.js → calendar-icon.entry-3798880d.js} +1 -1
  19. package/dist/checkbox-component_3.entry-10293364.cjs +1 -0
  20. package/dist/checkbox-component_3.entry-3d9fa7b5.js +140 -0
  21. package/dist/{chevron-icon_3.entry-1f72ef71.js → chevron-icon_3.entry-43e83594.js} +11 -11
  22. package/dist/{chevron-icon_3.entry-da1751d2.cjs → chevron-icon_3.entry-a5175d87.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-4502c9f0.js → clock-icon_4.entry-219733d8.js} +1 -1
  24. package/dist/{clock-icon_4.entry-b87aaaa9.cjs → clock-icon_4.entry-76751b46.cjs} +1 -1
  25. package/dist/{close-icon.entry-e96749ed.js → close-icon.entry-286fc5ca.js} +1 -1
  26. package/dist/{close-icon.entry-92e93293.cjs → close-icon.entry-cecd3cdd.cjs} +1 -1
  27. package/dist/{constants-24eca8c9-922dc05c.js → constants-54af2051-767e8462.js} +12 -0
  28. package/dist/{constants-24eca8c9-d0d9f3ec.cjs → constants-54af2051-a3596673.cjs} +1 -1
  29. package/dist/{copy-icon.entry-7c958d7c.js → copy-icon.entry-121dd297.js} +1 -1
  30. package/dist/{copy-icon.entry-19bb7d2f.cjs → copy-icon.entry-d4835d9a.cjs} +1 -1
  31. package/dist/{delete-icon.entry-41c7d463.cjs → delete-icon.entry-14249f70.cjs} +1 -1
  32. package/dist/{delete-icon.entry-59c9ca04.js → delete-icon.entry-497ac8a2.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-afc75ddb.cjs → document-refresh-icon.entry-c0eacb66.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-c32cda4f.js → document-refresh-icon.entry-f265bb1b.js} +1 -1
  35. package/dist/elements/index.d.ts +1 -0
  36. package/dist/{feedbackSync-b4015b72-0785986b.js → feedbackSync-e5cb0245-d84015c5.js} +1 -1
  37. package/dist/{feedbackSync-b4015b72-d343d411.cjs → feedbackSync-e5cb0245-ea7ddac9.cjs} +1 -1
  38. package/dist/{folder-icon.entry-5dcf707b.js → folder-icon.entry-d22b3e80.js} +1 -1
  39. package/dist/{folder-icon.entry-61ccaddd.cjs → folder-icon.entry-e4806f0a.cjs} +1 -1
  40. package/dist/{forward-icon.entry-3d598cb4.cjs → forward-icon.entry-42b98c73.cjs} +1 -1
  41. package/dist/{forward-icon.entry-5a156d37.js → forward-icon.entry-b6711af7.js} +1 -1
  42. package/dist/{globe-icon.entry-a88502ce.cjs → globe-icon.entry-18605371.cjs} +1 -1
  43. package/dist/{globe-icon.entry-99e8bebf.js → globe-icon.entry-4c5d6be0.js} +1 -1
  44. package/dist/google-logo-icon_4.entry-007f2813.cjs +1 -0
  45. package/dist/{google-logo-icon_4.entry-531021bd.js → google-logo-icon_4.entry-c3bae7b7.js} +176 -168
  46. package/dist/{inbox-icon.entry-6eadce9b.cjs → inbox-icon.entry-02c59267.cjs} +1 -1
  47. package/dist/{inbox-icon.entry-b2a2f48e.js → inbox-icon.entry-ae4383af.js} +1 -1
  48. package/dist/{index-13a43508.js → index-ad112f6a.js} +166 -161
  49. package/dist/{index-7dbf0ae7.cjs → index-bbbc79ad.cjs} +17 -17
  50. package/dist/{index.es-aa323594-17c2a3f6.js → index.es-e9d66a9b-62be34ce.js} +214 -211
  51. package/dist/{index.es-aa323594-84331fa3.cjs → index.es-e9d66a9b-a29322e0.cjs} +5 -5
  52. package/dist/{info-icon_2.entry-c6e650c4.js → info-icon_2.entry-3f143408.js} +5 -5
  53. package/dist/{info-icon_2.entry-f53d81e5.cjs → info-icon_2.entry-d10f1df5.cjs} +1 -1
  54. package/dist/{input-color-picker.entry-16fa8456.cjs → input-color-picker.entry-45caaa1d.cjs} +1 -1
  55. package/dist/{input-color-picker.entry-cd398537.js → input-color-picker.entry-8ce41f49.js} +1 -1
  56. package/dist/{input-component.entry-74b63249.cjs → input-component.entry-37b106dc.cjs} +1 -1
  57. package/dist/{input-component.entry-b471f023.js → input-component.entry-6db98fb0.js} +1 -1
  58. package/dist/{input-dropdown.entry-32b4b8be.cjs → input-dropdown.entry-1a2cdf40.cjs} +1 -1
  59. package/dist/{input-dropdown.entry-14e1f6cb.js → input-dropdown.entry-ec3d04ad.js} +1 -1
  60. package/dist/{italic-icon.entry-8a1a7568.js → italic-icon.entry-36d1e644.js} +1 -1
  61. package/dist/{italic-icon.entry-c9ae0186.cjs → italic-icon.entry-b5e4eec9.cjs} +1 -1
  62. package/dist/{multi-select-dropdown.entry-58b860a0.cjs → multi-select-dropdown.entry-00e43a89.cjs} +1 -1
  63. package/dist/{multi-select-dropdown.entry-bc4901aa.js → multi-select-dropdown.entry-6f22740f.js} +1 -1
  64. package/dist/nylas-booked-event-card_12.entry-4f115674.cjs +1 -0
  65. package/dist/{nylas-booked-event-card_12.entry-fbdb2f3d.js → nylas-booked-event-card_12.entry-cb6b2ce6.js} +270 -265
  66. package/dist/{nylas-form-card.entry-aa1d5aca.js → nylas-form-card.entry-07e46491.js} +11 -11
  67. package/dist/{nylas-form-card.entry-7e9a0cf1.cjs → nylas-form-card.entry-e2749723.cjs} +1 -1
  68. package/dist/{nylas-if-state.entry-96914d61.cjs → nylas-if-state.entry-88e01248.cjs} +1 -1
  69. package/dist/{nylas-if-state.entry-5e30f6b3.js → nylas-if-state.entry-e34c5cbb.js} +2 -2
  70. package/dist/{nylas-login.entry-e52648da.js → nylas-login.entry-a30bbd87.js} +3 -3
  71. package/dist/{nylas-login.entry-e26689b0.cjs → nylas-login.entry-ab50ca6a.cjs} +1 -1
  72. package/dist/{nylas-provider.entry-ac669351.js → nylas-provider.entry-070f8090.js} +5 -5
  73. package/dist/{nylas-provider.entry-9d43f4f0.cjs → nylas-provider.entry-7f4a1520.cjs} +1 -1
  74. package/dist/{nylas-scheduler-editor.entry-9655ce2e.js → nylas-scheduler-editor.entry-23e68865.js} +3 -3
  75. package/dist/{nylas-scheduler-editor.entry-0f1370d9.cjs → nylas-scheduler-editor.entry-287ca230.cjs} +2 -2
  76. package/dist/{nylas-scheduling.entry-14d4cd69.js → nylas-scheduling.entry-19fca55a.js} +8 -8
  77. package/dist/{nylas-scheduling.entry-ab10f8a4.cjs → nylas-scheduling.entry-c882ee9a.cjs} +1 -1
  78. package/dist/nylas-time-window-picker_2.entry-3d24eec4.js +336 -0
  79. package/dist/nylas-time-window-picker_2.entry-9a216230.cjs +1 -0
  80. package/dist/{person-icon.entry-40b5a8c5.js → person-icon.entry-a6d86572.js} +1 -1
  81. package/dist/{person-icon.entry-a45918af.cjs → person-icon.entry-b26a199b.cjs} +1 -1
  82. package/dist/{play-icon.entry-c5757946.cjs → play-icon.entry-5fc66fe6.cjs} +1 -1
  83. package/dist/{play-icon.entry-b2315f8c.js → play-icon.entry-87939760.js} +1 -1
  84. package/dist/react.cjs +1 -1
  85. package/dist/react.js +73 -72
  86. package/dist/{refresh-icon.entry-b9afd192.cjs → refresh-icon.entry-3a8ae0f6.cjs} +1 -1
  87. package/dist/{refresh-icon.entry-37d038f8.js → refresh-icon.entry-820111be.js} +1 -1
  88. package/dist/{register-component-555477e7-42247763.js → register-component-5d7bcc15-35e4a5a0.js} +12 -12
  89. package/dist/{register-component-555477e7-ecafba1c.cjs → register-component-5d7bcc15-d9900fbc.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-89fd0e10.js → reply-all-icon.entry-5fbf1103.js} +1 -1
  91. package/dist/{reply-all-icon.entry-07a6783a.cjs → reply-all-icon.entry-864494e2.cjs} +1 -1
  92. package/dist/{reply-icon.entry-a53a6fc4.js → reply-icon.entry-7c136d06.js} +1 -1
  93. package/dist/{reply-icon.entry-8cddb112.cjs → reply-icon.entry-93084ffd.cjs} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-733c6442.cjs → scheduler-config-store-ed4a8dfd-b2986359.cjs} +1 -1
  95. package/dist/{scheduler-config-store-ed4a8dfd-656579e3.js → scheduler-config-store-ed4a8dfd-f7f53255.js} +1 -1
  96. package/dist/{scheduler-store-c37aa5ca-0484b074.cjs → scheduler-store-20151a77-2dfd28c2.cjs} +1 -1
  97. package/dist/{scheduler-store-c37aa5ca-c9752707.js → scheduler-store-20151a77-4f7ffb6f.js} +2 -2
  98. package/dist/{sent-icon.entry-b740a32d.cjs → sent-icon.entry-18afc1f9.cjs} +1 -1
  99. package/dist/{sent-icon.entry-6ac749b3.js → sent-icon.entry-60f1b814.js} +1 -1
  100. package/dist/{spam-icon.entry-78cec025.cjs → spam-icon.entry-9d41427e.cjs} +1 -1
  101. package/dist/{spam-icon.entry-872ff1e4.js → spam-icon.entry-b580b108.js} +1 -1
  102. package/dist/{star-icon.entry-57246dc1.js → star-icon.entry-7cbe5a81.js} +1 -1
  103. package/dist/{star-icon.entry-ab9ad7df.cjs → star-icon.entry-8792026f.cjs} +1 -1
  104. package/dist/{stop-icon.entry-f79dce49.cjs → stop-icon.entry-5b605364.cjs} +1 -1
  105. package/dist/{stop-icon.entry-5054fa33.js → stop-icon.entry-ae629874.js} +1 -1
  106. package/dist/{textarea-component.entry-2967dd82.cjs → textarea-component.entry-2dae13db.cjs} +1 -1
  107. package/dist/{textarea-component.entry-15c9a676.js → textarea-component.entry-fa87a032.js} +2 -2
  108. package/dist/{time-period-selector.entry-9226fd08.js → time-period-selector.entry-0de79682.js} +2 -2
  109. package/dist/{time-period-selector.entry-a53c94c2.cjs → time-period-selector.entry-b1f5523b.cjs} +1 -1
  110. package/dist/{translate-icon.entry-52939fa4.js → translate-icon.entry-07e9c2cf.js} +1 -1
  111. package/dist/{translate-icon.entry-f4dcc479.cjs → translate-icon.entry-22ef3602.cjs} +1 -1
  112. package/dist/{trash-fill-icon.entry-b9ab3cfc.js → trash-fill-icon.entry-81ee0fdf.js} +1 -1
  113. package/dist/{trash-fill-icon.entry-7f4ddaf5.cjs → trash-fill-icon.entry-d332cf5d.cjs} +1 -1
  114. package/dist/{underline-icon.entry-c8142970.js → underline-icon.entry-dce1c48b.js} +1 -1
  115. package/dist/{underline-icon.entry-e9959c5c.cjs → underline-icon.entry-e381e3d2.cjs} +1 -1
  116. package/dist/{warning-icon.entry-00426457.js → warning-icon.entry-76d03910.js} +1 -1
  117. package/dist/{warning-icon.entry-98c0d003.cjs → warning-icon.entry-b55e52d0.cjs} +1 -1
  118. package/package.json +3 -3
  119. package/dist/calendar-agenda-fill-icon_54.entry-33d08f1a.cjs +0 -9
  120. package/dist/checkbox-component_2.entry-1e3afb3a.cjs +0 -1
  121. package/dist/checkbox-component_2.entry-ec5e75fb.js +0 -79
  122. package/dist/google-logo-icon_4.entry-9a7790d2.cjs +0 -1
  123. package/dist/nylas-booked-event-card_12.entry-f64eecaa.cjs +0 -1
  124. package/dist/nylas-time-window-picker.entry-a2f71121.js +0 -316
  125. package/dist/nylas-time-window-picker.entry-dfbd975e.cjs +0 -1
@@ -1,34 +1,34 @@
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";
1
+ import { r as q, h as e, c as k, d as u, n as St, o as tt, H as Lt, g as Pt, i as W, F as Ut } from "./index-ad112f6a.js";
2
+ import { R as Bt } from "./register-component-5d7bcc15-35e4a5a0.js";
3
+ import { D as Ft } from "./constants-54af2051-767e8462.js";
4
+ import { i as Rt, a as At, c as jt, b as $t, f as Jt } from "./feedbackSync-e5cb0245-d84015c5.js";
5
5
  import "react";
6
6
  import "react-dom";
7
- const Qt = ".sc-google-logo-icon-h{display:flex}", Xt = Qt, Yt = class {
7
+ const Vt = ".sc-google-logo-icon-h{display:flex}", Zt = Vt, Gt = class {
8
8
  constructor(t) {
9
- W(this, t), this.width = "24", this.height = "24";
9
+ q(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
- Yt.style = Xt;
16
- const te = ".sc-microsoft-logo-icon-h{display:flex}", ee = te, ae = class {
15
+ Gt.style = Zt;
16
+ const Wt = ".sc-microsoft-logo-icon-h{display:flex}", qt = Wt, Kt = class {
17
17
  constructor(t) {
18
- W(this, t), this.width = "22", this.height = "22";
18
+ q(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
- ae.style = ee;
24
+ Kt.style = qt;
25
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
28
  })(r || (r = {}));
29
- function ne({ id: t, formState: a, activeTab: n }, i) {
29
+ function Qt({ id: t, formState: a, activeTab: n }, i) {
30
30
  return e(
31
- Vt,
31
+ Ut,
32
32
  null,
33
33
  e(
34
34
  "div",
@@ -115,38 +115,40 @@ function ne({ id: t, formState: a, activeTab: n }, i) {
115
115
  )
116
116
  );
117
117
  }
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) {
118
+ const Xt = '.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}', Yt = Xt;
119
+ var te = function(t, a, n, i) {
120
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
- for (var d = t.length - 1; d >= 0; d--)
125
- (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
124
+ for (var l = t.length - 1; l >= 0; l--)
125
+ (c = t[l]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
126
126
  return o > 3 && s && Object.defineProperty(a, n, s), s;
127
- }, Q = function(t, a) {
127
+ }, X = function(t, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(t, a);
130
130
  };
131
- const Mt = class {
131
+ const Tt = class {
132
132
  constructor(t) {
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) => {
133
+ q(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 tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt, ft;
136
+ var et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt, ft, yt;
137
137
  a.preventDefault();
138
138
  const n = await this.formSubmitted.emit();
139
- if (h("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
139
+ if (u("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
140
140
  this.error = this.formRef.validationMessage || "Please fix the form errors.";
141
141
  return;
142
142
  }
143
143
  this.isLoading = !0, this.hasUnsavedChanges = !1;
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 : [
144
+ const o = this.updateFormState();
145
+ u("[nylas-editor-tabs]", "formState", o);
146
+ const { title: s, description: c, duration: l, availability: b, bookingCalendar: y, location: S, bookingType: F, buffer: O, availableDaysInFuture: H, minCancellationNotice: D, minBookingNotice: I, cancellationPolicy: M, timeslotInterval: w, additionalGuestsHidden: N, hideCancellationOptions: z, hideReschedulingOptions: U, participants: v, participantOpenHours: p, additionalFields: R, participantCalendars: f, conferencing: A, participantBookingCalendars: m, reminders: j, emailTemplate: $, redirectUrl: J, availabilityMethod: B, slug: V, appearance: Z, name: G } = o, h = ((at = (et = this.selectedConfiguration) == null ? void 0 : et.participants) == null ? void 0 : at.find((d) => d.is_organizer)) || (v == null ? void 0 : v.find((d) => d.is_organizer)), x = f && (h != null && h.email) ? f[h == null ? void 0 : h.email] : [], _ = ((nt = h == null ? void 0 : h.booking) == null ? void 0 : nt.calendar_id) || y, g = l ? parseInt(l) : 30, C = v && (v == null ? void 0 : v.length) > 0 ? v : [
145
147
  {
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
+ name: (h == null ? void 0 : h.name) ?? ((it = this.currentUser) == null ? void 0 : it.name) ?? "",
149
+ email: (h == null ? void 0 : h.email) ?? ((st = this.currentUser) == null ? void 0 : st.email) ?? "",
148
150
  is_organizer: !0,
149
- timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
151
+ timezone: (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
150
152
  availability: {
151
153
  calendar_ids: y && y !== "" ? [y] : ["primary"],
152
154
  open_hours: []
@@ -156,107 +158,108 @@ const Mt = class {
156
158
  }
157
159
  }
158
160
  ], 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
- slug: J,
162
- name: Z,
161
+ ...((ot = this.selectedConfiguration) == null ? void 0 : ot.id) && { id: this.selectedConfiguration.id },
162
+ version: ((rt = this.selectedConfiguration) == null ? void 0 : rt.version) ?? "1.0.0",
163
+ slug: V,
164
+ name: G,
163
165
  availability: {
164
166
  duration_minutes: g,
165
167
  interval_minutes: (w == null ? void 0 : w.interval) ?? g,
166
168
  round_to: w == null ? void 0 : w.roundTo,
167
169
  availability_rules: {
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) ?? ""
170
+ availability_method: B || (((ct = (dt = (lt = this.selectedConfiguration) == null ? void 0 : lt.availability) == null ? void 0 : dt.availability_rules) == null ? void 0 : ct.availability_method) ?? "collective"),
171
+ buffer: O || { before: 0, after: 0 },
172
+ default_open_hours: (b == null ? void 0 : b.openHours) ?? ((ut = (ht = (bt = this.selectedConfiguration) == null ? void 0 : bt.availability) == null ? void 0 : ht.availability_rules) == null ? void 0 : ut.default_open_hours) ?? Ft,
173
+ round_robin_group_id: ((ft = (mt = (pt = this.selectedConfiguration) == null ? void 0 : pt.availability) == null ? void 0 : mt.availability_rules) == null ? void 0 : ft.round_robin_group_id) ?? ""
172
174
  }
173
175
  },
174
176
  participants: [
175
- ...C ? C.map((l) => {
176
- var yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt, Bt;
177
- if (l.is_organizer) {
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";
177
+ ...C ? C.map((d) => {
178
+ var _t, gt, vt, wt, kt, Ct;
179
+ let P = (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
180
+ if ((_t = p == null ? void 0 : p[d.email]) != null && _t.length && (P = (vt = (gt = p == null ? void 0 : p[d.email]) == null ? void 0 : gt[0]) == null ? void 0 : vt.timezone), d.is_organizer) {
181
+ const xt = m != null && m[d.email] ? m == null ? void 0 : m[d.email] : _ || "primary", Q = f != null && f[d.email] ? f == null ? void 0 : f[d.email] : x != null && x.length ? x : ["primary"], zt = Q.length === 1 && Q[0] === "primary";
179
182
  return {
180
- name: l.name ?? "",
181
- email: l.email,
183
+ name: d.name ?? "",
184
+ email: d.email,
182
185
  is_organizer: !0,
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,
186
+ timezone: P,
184
187
  availability: {
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) ?? []
188
+ calendar_ids: zt ? [xt] : Q,
189
+ open_hours: (p == null ? void 0 : p[d.email]) ?? ((wt = d.availability) == null ? void 0 : wt.open_hours) ?? []
187
190
  },
188
191
  booking: {
189
- calendar_id: Tt
192
+ calendar_id: xt
190
193
  }
191
194
  };
192
195
  }
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";
196
+ const E = m != null && m[d.email] ? { calendar_id: m == null ? void 0 : m[d.email] } : (d == null ? void 0 : d.booking) ?? void 0, K = (f == null ? void 0 : f[d.email]) ?? ((kt = d.availability) == null ? void 0 : kt.calendar_ids) ?? ["primary"], Nt = K.length === 1 && K[0] === "primary";
194
197
  return {
195
- ...l,
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
- availability: l.availability ? {
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) ?? []
198
+ ...d,
199
+ timezone: P,
200
+ availability: d.availability ? {
201
+ calendar_ids: Nt && typeof E < "u" ? [E == null ? void 0 : E.calendar_id] : K,
202
+ open_hours: (p == null ? void 0 : p[d.email]) ?? ((Ct = d.availability) == null ? void 0 : Ct.open_hours) ?? []
200
203
  } : void 0,
201
- booking: x
204
+ booking: E
202
205
  };
203
206
  }) : []
204
207
  ],
205
208
  event_booking: {
206
209
  title: (s == null ? void 0 : s.toString()) ?? "",
207
210
  description: (c == null ? void 0 : c.toString()) ?? "",
208
- location: (F == null ? void 0 : F.toString()) ?? "",
209
- booking_type: (L == null ? void 0 : L.toString()) ?? "booking",
210
- timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
211
- conferencing: R,
212
- reminders: A
211
+ location: (S == null ? void 0 : S.toString()) ?? "",
212
+ booking_type: (F == null ? void 0 : F.toString()) ?? "booking",
213
+ timezone: (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
214
+ conferencing: A,
215
+ reminders: j
213
216
  },
214
217
  scheduler: {
215
- cancellation_policy: I ?? "",
216
- available_days_in_future: O ?? 30,
218
+ cancellation_policy: M ?? "",
219
+ available_days_in_future: H ?? 30,
217
220
  min_cancellation_notice: D ?? 0,
218
- min_booking_notice: H ?? 60,
219
- hide_additional_guests: M ?? !1,
220
- hide_cancellation_options: N ?? !1,
221
- hide_rescheduling_options: z ?? !1,
222
- additional_fields: U,
223
- email_template: j,
224
- confirmation_redirect_url: $
221
+ min_booking_notice: I ?? 60,
222
+ hide_additional_guests: N ?? !1,
223
+ hide_cancellation_options: z ?? !1,
224
+ hide_rescheduling_options: U ?? !1,
225
+ additional_fields: R,
226
+ email_template: $,
227
+ confirmation_redirect_url: J
225
228
  },
226
- appearance: V
227
- }, zt = Et(T, this.selectedConfiguration || {}), P = this.action === "create" ? zt : T;
228
- this.isConfigRoundRobin(P) && (P.participants = P.participants.map((l) => ({ ...l, is_organizer: void 0 })));
229
- const Ut = (l) => {
229
+ appearance: Z
230
+ }, Ot = St(this.selectedConfiguration, T || {}), L = this.action === "create" ? Ot : T;
231
+ this.isConfigRoundRobin(L) && (L.participants = L.participants.map((d) => ({ ...d, is_organizer: void 0 })));
232
+ const Ht = (d) => {
230
233
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
231
234
  this.changesSaved = !1;
232
235
  }, 5e3);
233
- }, Rt = this.checkForBookingFormErrors(P), At = ((ft = this.configurations) == null ? void 0 : ft.find((l) => {
234
- var x;
235
- return l.id === ((x = this.selectedConfiguration) == null ? void 0 : x.id);
236
- })) || {}, jt = this.checkForOrganizerConfirmationError(Et(P, At));
237
- Rt || jt || this.schedulerConfigChanged.emit({ config: P, resetLoadingState: Ut, setError: this.setError, action: this.action });
236
+ }, Dt = this.checkForBookingFormErrors(L), It = ((yt = this.configurations) == null ? void 0 : yt.find((d) => {
237
+ var P;
238
+ return d.id === ((P = this.selectedConfiguration) == null ? void 0 : P.id);
239
+ })) || {}, Mt = this.checkForOrganizerConfirmationError(St(L, It));
240
+ Dt || Mt || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ht, setError: this.setError, action: this.action });
238
241
  }, this.isConfigRoundRobin = (a) => {
239
242
  var n, i, o, s;
240
243
  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
244
  }, this.checkForOrganizerConfirmationError = (a) => {
242
- var c, d;
245
+ var c, l;
243
246
  let n = !1, i = "";
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;
247
+ const o = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (l = a.scheduler) == null ? void 0 : l.organizer_confirmation_url;
245
248
  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
249
  }, this.checkForBookingFormErrors = (a) => {
247
250
  var s;
248
251
  let n = !1, i = "";
249
252
  const o = (s = a.scheduler) == null ? void 0 : s.additional_fields;
250
253
  return o && (i = "Booking form error: ", Object.entries(o).forEach((c) => {
251
- const d = c[1];
252
- if (d.label === "") {
253
- i += `Label is required for field of type ${d.type}.`, n = !0;
254
+ const l = c[1];
255
+ if (l.label === "") {
256
+ i += `Label is required for field of type ${l.type}.`, n = !0;
254
257
  return;
255
258
  }
256
- if (d.options) {
257
- for (const u of d.options)
258
- if (u === "") {
259
- i += `Empty option detected inside ${d.label} of type ${d.type}.`, n = !0;
259
+ if (l.options) {
260
+ for (const b of l.options)
261
+ if (b === "") {
262
+ i += `Empty option detected inside ${l.label} of type ${l.type}.`, n = !0;
260
263
  break;
261
264
  }
262
265
  }
@@ -264,29 +267,29 @@ const Mt = class {
264
267
  }, 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
268
  }
266
269
  configChangedHandler(t) {
267
- h("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
270
+ u("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
268
271
  ...this.getFormStateFromConfig(t)
269
272
  }, t != null && t.id ? this.action = "edit" : this.action = "create";
270
273
  }
271
274
  userChangedHandler(t) {
272
- h("[nylas-editor-tabs]", "userChangedHandler", t), t && (this.formState = {
275
+ u("[nylas-editor-tabs]", "userChangedHandler", t), t && (this.formState = {
273
276
  ...this.getFormStateFromConfig(this.selectedConfiguration)
274
277
  });
275
278
  }
276
279
  connectedCallback() {
277
- h("[nylas-editor-tabs]", "connectedCallback");
280
+ u("[nylas-editor-tabs]", "connectedCallback");
278
281
  }
279
282
  componentWillLoad() {
280
- h("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
283
+ u("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
281
284
  }
282
285
  componentDidLoad() {
283
286
  var a, n;
284
- h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Zt() && Gt({
287
+ u("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Rt() && At({
285
288
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
286
- release: "1.3.1",
289
+ release: "1.3.2",
287
290
  integrations: (i) => [
288
291
  ...i.filter((o) => !1),
289
- Kt({
292
+ Jt({
290
293
  colorScheme: "system",
291
294
  autoInject: !1
292
295
  })
@@ -298,10 +301,10 @@ const Mt = class {
298
301
  t && (this.activeTab = t);
299
302
  }
300
303
  disconnectedCallback() {
301
- h("[nylas-editor-tabs]", "disconnectedCallback");
304
+ u("[nylas-editor-tabs]", "disconnectedCallback");
302
305
  }
303
306
  handleValueChanged(t) {
304
- h("[nylas-editor-tabs]", "handleValueChanged", t);
307
+ u("[nylas-editor-tabs]", "handleValueChanged", t);
305
308
  const { name: a, value: n } = t.detail;
306
309
  this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
307
310
  value: t.detail.value,
@@ -314,15 +317,15 @@ const Mt = class {
314
317
  feedbackSubmittedHandler(t) {
315
318
  var i, o;
316
319
  const n = {
317
- eventId: Wt("Scheduler Editor User Feedback"),
320
+ eventId: jt("Scheduler Editor User Feedback"),
318
321
  message: t.detail.feedback
319
322
  };
320
- qt(n, {
323
+ $t(n, {
321
324
  includeReplay: !0,
322
325
  captureContext: {
323
326
  tags: {
324
327
  "nylas-web-element": "nylas-scheduler-editor",
325
- "nylas-web-element-version": "1.3.1"
328
+ "nylas-web-element-version": "1.3.2"
326
329
  },
327
330
  extra: {
328
331
  configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
@@ -332,49 +335,49 @@ const Mt = class {
332
335
  }), this.showFeedbackModal = !1;
333
336
  }
334
337
  getFormStateFromConfig(t) {
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;
338
+ var n, i, o, s, c, l, b, y, S, F, O, H, D, I, M, w, N, z, U, v, p, R, f, A, m, j, $, J, B, V, Z, G, h, x;
336
339
  let a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((_) => _.is_organizer);
337
340
  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
341
  var g;
339
342
  return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
340
343
  }), a && (a.is_organizer = !0)), t != null && t.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
341
344
  title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
342
- description: ((d = t == null ? void 0 : t.event_booking) == null ? void 0 : d.description) ?? "",
343
- duration: ((y = (u = t == null ? void 0 : t.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
345
+ description: ((l = t == null ? void 0 : t.event_booking) == null ? void 0 : l.description) ?? "",
346
+ duration: ((y = (b = t == null ? void 0 : t.availability) == null ? void 0 : b.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
344
347
  availability: {
345
- timezone: ((F = t == null ? void 0 : t.event_booking) == null ? void 0 : F.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
346
- openHours: ((E = (L = t == null ? void 0 : t.availability) == null ? void 0 : L.availability_rules) == null ? void 0 : E.default_open_hours) ?? Ot
348
+ timezone: ((S = t == null ? void 0 : t.event_booking) == null ? void 0 : S.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
349
+ openHours: ((O = (F = t == null ? void 0 : t.availability) == null ? void 0 : F.availability_rules) == null ? void 0 : O.default_open_hours) ?? Ft
347
350
  },
348
- additionalFields: ((O = t == null ? void 0 : t.scheduler) == null ? void 0 : O.additional_fields) ?? {},
351
+ additionalFields: ((H = t == null ? void 0 : t.scheduler) == null ? void 0 : H.additional_fields) ?? {},
349
352
  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) ?? [],
353
+ calendarIds: ((I = a == null ? void 0 : a.availability) == null ? void 0 : I.calendar_ids) ?? [],
351
354
  participants: (t == null ? void 0 : t.participants) ?? [],
352
- bookingCalendar: ((I = a == null ? void 0 : a.booking) == null ? void 0 : I.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
355
+ bookingCalendar: ((M = a == null ? void 0 : a.booking) == null ? void 0 : M.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
353
356
  location: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.location) ?? "",
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 },
357
+ bookingType: ((N = t == null ? void 0 : t.event_booking) == null ? void 0 : N.booking_type) ?? "booking",
358
+ buffer: ((U = (z = t == null ? void 0 : t.availability) == null ? void 0 : z.availability_rules) == null ? void 0 : U.buffer) ?? { before: 0, after: 0 },
356
359
  cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
357
360
  availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
358
- minCancellationNotice: ((U = t == null ? void 0 : t.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
361
+ minCancellationNotice: ((R = t == null ? void 0 : t.scheduler) == null ? void 0 : R.min_cancellation_notice) ?? 0,
359
362
  minBookingNotice: ((f = t == null ? void 0 : t.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
360
363
  timeslotInterval: {
361
- interval: ((R = t == null ? void 0 : t.availability) == null ? void 0 : R.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
362
- roundTo: (A = t == null ? void 0 : t.availability) == null ? void 0 : A.round_to
364
+ interval: ((A = t == null ? void 0 : t.availability) == null ? void 0 : A.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
365
+ roundTo: (j = t == null ? void 0 : t.availability) == null ? void 0 : j.round_to
363
366
  },
364
- additionalGuestsHidden: ((j = t == null ? void 0 : t.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
365
- hideCancellationOptions: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
367
+ additionalGuestsHidden: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_additional_guests) ?? !1,
368
+ hideCancellationOptions: ((J = t == null ? void 0 : t.scheduler) == null ? void 0 : J.hide_cancellation_options) ?? !1,
366
369
  hideReschedulingOptions: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
367
- participantBookingCalendars: ((J = t == null ? void 0 : t.participants) == null ? void 0 : J.reduce((_, g) => {
370
+ participantBookingCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
368
371
  var C, T;
369
372
  return (C = g.booking) != null && C.calendar_id && (_[g.email] = (T = g.booking) == null ? void 0 : T.calendar_id), _;
370
373
  })) ?? {},
371
- participantCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
374
+ participantCalendars: ((Z = t == null ? void 0 : t.participants) == null ? void 0 : Z.reduce((_, g) => {
372
375
  var C;
373
376
  return _[g.email] = (C = g.availability) == null ? void 0 : C.calendar_ids, _;
374
377
  }, {})) ?? {},
375
- reminders: (Z = t == null ? void 0 : t.event_booking) == null ? void 0 : Z.reminders,
376
- emailTemplate: (b = t == null ? void 0 : t.scheduler) == null ? void 0 : b.email_template,
377
- redirectUrl: (S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.confirmation_redirect_url,
378
+ reminders: (G = t == null ? void 0 : t.event_booking) == null ? void 0 : G.reminders,
379
+ emailTemplate: (h = t == null ? void 0 : t.scheduler) == null ? void 0 : h.email_template,
380
+ redirectUrl: (x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.confirmation_redirect_url,
378
381
  slug: t == null ? void 0 : t.slug,
379
382
  appearance: t == null ? void 0 : t.appearance,
380
383
  name: t == null ? void 0 : t.name
@@ -459,7 +462,7 @@ const Mt = class {
459
462
  this.formState.availabilityMethod = t.toString();
460
463
  break;
461
464
  case "custom-event-slug":
462
- this.formState.slug = JSON.parse(t.toString());
465
+ console.debug("custom-event-slug", t), this.formState.slug = JSON.parse(t.toString());
463
466
  break;
464
467
  case "page-styling":
465
468
  this.formState.appearance = JSON.parse(t.toString());
@@ -490,19 +493,19 @@ const Mt = class {
490
493
  }
491
494
  render() {
492
495
  var t, a;
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: {
496
+ return u("[nylas-editor-tabs]", "render", this.formState), e(Lt, { key: "877744ce17be949dd3a0677154d39f23d3a0e4c6" }, e("form", { key: "b8c8ea5167dd9463a41167541ed70fbf746ce0dc", 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(Qt, { 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: "d0f4111a5e94a3e8ce82024b6bab5ff3a1fa486b", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "c0fdc3ba4470c56ffd339d826e4d871c1ccf9d80", 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: "8215bc5a0ed81aca0a472c390b3ac8165380fe79", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "80b5f296a70adbaae379f428118c730dd174d23b", class: {
494
497
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
495
498
  "saved-changes": this.changesSaved,
496
499
  error: this.error !== "",
497
500
  "error-full-width": this.error !== "" && this.action === "create"
498
501
  } }, 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(Y(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
500
- }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "cf9be4337b438cbb3b4e02c9afab2068278d81a7", type: "button", disabled: this.isLoading, clickHandler: (n) => {
502
+ n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(tt(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
503
+ }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "d2983166679d914328f8fff635cff2cf2f18b776", type: "button", disabled: this.isLoading, clickHandler: (n) => {
501
504
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
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));
505
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, "Back"), e("button-component", { key: "6c9276bdd579c468544d8b9a1d558e216605f3c4", 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));
503
506
  }
504
507
  get host() {
505
- return Ht(this);
508
+ return Pt(this);
506
509
  }
507
510
  static get watchers() {
508
511
  return {
@@ -511,8 +514,8 @@ const Mt = class {
511
514
  };
512
515
  }
513
516
  };
514
- oe([
515
- It({
517
+ te([
518
+ Bt({
516
519
  name: "nylas-editor-tabs",
517
520
  stateToProps: /* @__PURE__ */ new Map([
518
521
  ["schedulerConfig.calendars", "calendars"],
@@ -522,29 +525,29 @@ oe([
522
525
  ]),
523
526
  eventToProps: {
524
527
  schedulerConfigChanged: async (t, a) => {
525
- const { resetLoadingState: n, setError: i, action: o, config: s } = t.detail, c = (d) => {
526
- const [u, y] = d;
527
- !u && y && i && i(y), n && n(t);
528
+ const { resetLoadingState: n, setError: i, action: o, config: s } = t.detail, c = (l) => {
529
+ const [b, y] = l;
530
+ !b && y && i && i(y), n && n(t);
528
531
  };
529
532
  if (o === "edit") {
530
- const d = await a.schedulerConfig.updateConfiguration(s);
531
- c(d);
533
+ const l = await a.schedulerConfig.updateConfiguration(s);
534
+ c(l);
532
535
  } else {
533
- const d = await a.schedulerConfig.createConfiguration(s);
534
- c(d);
536
+ const l = await a.schedulerConfig.createConfiguration(s);
537
+ c(l);
535
538
  }
536
539
  },
537
540
  cancelButtonClick: async (t, a) => {
538
541
  a.schedulerConfigStore.state.action = null;
539
542
  },
540
543
  previewButtonClicked: async (t, a) => {
541
- h("[nylas-editor-tabs]", "previewButtonClicked", a);
544
+ u("[nylas-editor-tabs]", "previewButtonClicked", a);
542
545
  },
543
546
  formSubmitted: async (t, a) => {
544
- h("[nylas-editor-tabs]", "formSubmitted", a);
547
+ u("[nylas-editor-tabs]", "formSubmitted", a);
545
548
  },
546
549
  schedulerEditorFormUpdated: async (t, a) => {
547
- h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
550
+ u("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
548
551
  }
549
552
  },
550
553
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -554,27 +557,27 @@ oe([
554
557
  ]),
555
558
  fireRegisterEvent: !0
556
559
  }),
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) {
560
+ X("design:type", Function),
561
+ X("design:paramtypes", []),
562
+ X("design:returntype", void 0)
563
+ ], Tt.prototype, "render", null);
564
+ Tt.style = Yt;
565
+ const ee = ':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)}', ae = ee;
566
+ var ne = function(t, a, n, i) {
564
567
  var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
565
568
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
566
569
  s = Reflect.decorate(t, a, n, i);
567
570
  else
568
- for (var d = t.length - 1; d >= 0; d--)
569
- (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
571
+ for (var l = t.length - 1; l >= 0; l--)
572
+ (c = t[l]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
570
573
  return o > 3 && s && Object.defineProperty(a, n, s), s;
571
- }, X = function(t, a) {
574
+ }, Y = function(t, a) {
572
575
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
573
576
  return Reflect.metadata(t, a);
574
577
  };
575
- const Nt = class {
578
+ const Et = class {
576
579
  constructor(t) {
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;
580
+ q(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
581
  }
579
582
  listConfigurationsNextCursorChangedHandler(t, a) {
580
583
  if (!t || t === a) {
@@ -584,35 +587,40 @@ const Nt = class {
584
587
  this.disableNextPageButton = !1, this.currentCursor = t;
585
588
  }
586
589
  connectedCallback() {
587
- h("[nylas-list-configurations]", "connectedCallback");
590
+ u("[nylas-list-configurations]", "connectedCallback");
588
591
  }
589
592
  componentWillLoad() {
590
- h("[nylas-list-configurations]", "componentWillLoad"), this.configurations && this.configurations.length > 0 && (this.state = "loaded");
593
+ u("[nylas-list-configurations]", "componentWillLoad"), this.configurations && this.configurations.length > 0 && (this.state = "loaded");
591
594
  }
592
595
  componentDidLoad() {
593
- h("[nylas-list-configurations]", "componentDidLoad"), this.initListConfigurations.emit({
596
+ u("[nylas-list-configurations]", "componentDidLoad"), this.initListConfigurations.emit({
594
597
  host: this.host
595
598
  });
596
599
  }
597
600
  disconnectedCallback() {
598
- h("[nylas-list-configurations]", "disconnectedCallback");
601
+ u("[nylas-list-configurations]", "disconnectedCallback");
599
602
  }
600
603
  async handleNylasFormDropdownChanged(t) {
601
604
  var o;
602
- h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
605
+ u("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
603
606
  const { value: a } = t.detail, [n, i] = a.split("-");
604
607
  switch (t.preventDefault(), n) {
605
608
  case "delete":
606
609
  this.deleteConfigurationId = (o = this.configurations[i]) == null ? void 0 : o.id;
607
610
  break;
608
611
  case "preview":
609
- window.open(Y(this.schedulerPreviewLink, this.configurations[i]), "_blank");
612
+ window.open(tt(this.schedulerPreviewLink, this.configurations[i]), "_blank");
610
613
  break;
611
614
  case "copy":
612
- await navigator.clipboard.writeText(Y(this.schedulerPreviewLink, this.configurations[i]));
615
+ await navigator.clipboard.writeText(tt(this.schedulerPreviewLink, this.configurations[i]));
613
616
  break;
614
617
  }
615
618
  }
619
+ async registerCallback() {
620
+ this.initListConfigurations.emit({
621
+ host: this.host
622
+ });
623
+ }
616
624
  async getState() {
617
625
  return this.state;
618
626
  }
@@ -674,7 +682,7 @@ const Nt = class {
674
682
  }
675
683
  render() {
676
684
  var t;
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: () => {
685
+ return e(Lt, 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: () => {
678
686
  this.createButtonClick.emit(this.host);
679
687
  } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
680
688
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
@@ -684,19 +692,19 @@ const Nt = class {
684
692
  this.createButtonClick.emit(this.host);
685
693
  } }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
686
694
  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) => {
688
- d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
695
+ 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: (l) => {
696
+ l.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
689
697
  } }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
690
698
  { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
691
699
  { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
692
700
  { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
693
701
  ], 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" }))));
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: {
702
+ })))), 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" }, W.t("deleteSchedulingPageTitle"))), e("div", { class: "description title-desc" }, e("p", null, W.t("deleteSchedulingPageDescription"))), e("div", { class: {
695
703
  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")}`)))));
704
+ } }, e("button-component", { variant: "basic", onClick: (a) => this.closeModal(a), part: "nfbf__button-outline nfbf__cancel-cta" }, `${W.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" }, `${W.t("deleteSchedulingPageConfirmButton")}`)))));
697
705
  }
698
706
  get host() {
699
- return Ht(this);
707
+ return Pt(this);
700
708
  }
701
709
  static get watchers() {
702
710
  return {
@@ -704,8 +712,8 @@ const Nt = class {
704
712
  };
705
713
  }
706
714
  };
707
- de([
708
- It({
715
+ ne([
716
+ Bt({
709
717
  name: "nylas-list-configurations",
710
718
  stateToProps: /* @__PURE__ */ new Map([
711
719
  ["schedulerConfig.configurations", "configurations"],
@@ -737,14 +745,14 @@ de([
737
745
  },
738
746
  fireRegisterEvent: !0
739
747
  }),
740
- X("design:type", Function),
741
- X("design:paramtypes", []),
742
- X("design:returntype", void 0)
743
- ], Nt.prototype, "render", null);
744
- Nt.style = le;
748
+ Y("design:type", Function),
749
+ Y("design:paramtypes", []),
750
+ Y("design:returntype", void 0)
751
+ ], Et.prototype, "render", null);
752
+ Et.style = ae;
745
753
  export {
746
- Yt as google_logo_icon,
747
- ae as microsoft_logo_icon,
748
- Mt as nylas_editor_tabs,
749
- Nt as nylas_list_configurations
754
+ Gt as google_logo_icon,
755
+ Kt as microsoft_logo_icon,
756
+ Tt as nylas_editor_tabs,
757
+ Et as nylas_list_configurations
750
758
  };