@nylas/react 1.3.1 → 1.3.3

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 (127) hide show
  1. package/dist/{add-circle-icon.entry-606d3096.cjs → add-circle-icon.entry-89060fe6.cjs} +1 -1
  2. package/dist/{add-circle-icon.entry-d8358e3f.js → add-circle-icon.entry-8b883ae4.js} +1 -1
  3. package/dist/{archive-icon.entry-8c6d31f2.js → archive-icon.entry-62c7e06e.js} +1 -1
  4. package/dist/{archive-icon.entry-e8ce8c7d.cjs → archive-icon.entry-e9038aeb.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-d950ddce.js → arrow-icon.entry-7c38f4ad.js} +1 -1
  6. package/dist/{arrow-icon.entry-13d23d01.cjs → arrow-icon.entry-e8dbe365.cjs} +1 -1
  7. package/dist/{bold-icon.entry-5382fea2.js → bold-icon.entry-4ce7cfee.js} +1 -1
  8. package/dist/{bold-icon.entry-12072568.cjs → bold-icon.entry-665901ce.cjs} +1 -1
  9. package/dist/{button-component_2.entry-4aa63891.js → button-component_2.entry-89ea010b.js} +1 -1
  10. package/dist/{button-component_2.entry-d34ed360.cjs → button-component_2.entry-ca263036.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_54.entry-50c9ed7b.js → calendar-agenda-fill-icon_53.entry-347662f3.js} +745 -740
  12. package/dist/calendar-agenda-fill-icon_53.entry-da0fac2a.cjs +9 -0
  13. package/dist/{calendar-cancel-icon.entry-b13aa245.cjs → calendar-cancel-icon.entry-6b7836c9.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-64ea7038.js → calendar-cancel-icon.entry-c1d33f90.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-935310fc.js → calendar-check-icon_2.entry-222e3c0b.js} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-9cbe60a8.cjs → calendar-check-icon_2.entry-67024cd6.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-0c560a35.cjs → calendar-icon.entry-380048b0.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-2448eea2.js → calendar-icon.entry-c08a8f21.js} +1 -1
  19. package/dist/checkbox-component_3.entry-52b27cb9.cjs +1 -0
  20. package/dist/checkbox-component_3.entry-dab3c3c8.js +153 -0
  21. package/dist/{chevron-icon_3.entry-da1751d2.cjs → chevron-icon_3.entry-17bb7d23.cjs} +1 -1
  22. package/dist/{chevron-icon_3.entry-1f72ef71.js → chevron-icon_3.entry-7be40d99.js} +11 -11
  23. package/dist/{clock-icon_4.entry-b87aaaa9.cjs → clock-icon_4.entry-875db481.cjs} +1 -1
  24. package/dist/{clock-icon_4.entry-4502c9f0.js → clock-icon_4.entry-89e0dd55.js} +1 -1
  25. package/dist/{close-icon.entry-e96749ed.js → close-icon.entry-4b2a2974.js} +1 -1
  26. package/dist/{close-icon.entry-92e93293.cjs → close-icon.entry-e52d8440.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-eecc7301.js} +1 -1
  30. package/dist/{copy-icon.entry-19bb7d2f.cjs → copy-icon.entry-f3370220.cjs} +1 -1
  31. package/dist/{delete-icon.entry-41c7d463.cjs → delete-icon.entry-1e6c99ee.cjs} +1 -1
  32. package/dist/{delete-icon.entry-59c9ca04.js → delete-icon.entry-4b341b41.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-afc75ddb.cjs → document-refresh-icon.entry-612c5d4f.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-c32cda4f.js → document-refresh-icon.entry-653dc173.js} +1 -1
  35. package/dist/elements/index.d.ts +1 -0
  36. package/dist/{feedbackSync-b4015b72-d343d411.cjs → feedbackSync-e5cb0245-013ce5ec.cjs} +1 -1
  37. package/dist/{feedbackSync-b4015b72-0785986b.js → feedbackSync-e5cb0245-f8e4575c.js} +1 -1
  38. package/dist/{folder-icon.entry-61ccaddd.cjs → folder-icon.entry-5bc752d4.cjs} +1 -1
  39. package/dist/{folder-icon.entry-5dcf707b.js → folder-icon.entry-8d91bc75.js} +1 -1
  40. package/dist/{forward-icon.entry-5a156d37.js → forward-icon.entry-1d14a631.js} +1 -1
  41. package/dist/{forward-icon.entry-3d598cb4.cjs → forward-icon.entry-fe0f2a3a.cjs} +1 -1
  42. package/dist/{globe-icon.entry-a88502ce.cjs → globe-icon.entry-13f5dd98.cjs} +1 -1
  43. package/dist/{globe-icon.entry-99e8bebf.js → globe-icon.entry-c2ddabb6.js} +1 -1
  44. package/dist/google-logo-icon_4.entry-59423b91.cjs +1 -0
  45. package/dist/{google-logo-icon_4.entry-531021bd.js → google-logo-icon_4.entry-b58af39b.js} +176 -168
  46. package/dist/{inbox-icon.entry-6eadce9b.cjs → inbox-icon.entry-2e8c1cf5.cjs} +1 -1
  47. package/dist/{inbox-icon.entry-b2a2f48e.js → inbox-icon.entry-5a452db1.js} +1 -1
  48. package/dist/{index-7dbf0ae7.cjs → index-5611d3d5.cjs} +23 -23
  49. package/dist/{index-13a43508.js → index-589f8eee.js} +650 -645
  50. package/dist/{index.es-aa323594-17c2a3f6.js → index.es-e9d66a9b-a07a895d.js} +214 -211
  51. package/dist/{index.es-aa323594-84331fa3.cjs → index.es-e9d66a9b-fa36c085.cjs} +5 -5
  52. package/dist/{info-icon_2.entry-c6e650c4.js → info-icon_2.entry-14cad09c.js} +5 -5
  53. package/dist/{info-icon_2.entry-f53d81e5.cjs → info-icon_2.entry-fce3a1ce.cjs} +1 -1
  54. package/dist/{input-color-picker.entry-cd398537.js → input-color-picker.entry-2079f40e.js} +1 -1
  55. package/dist/{input-color-picker.entry-16fa8456.cjs → input-color-picker.entry-785e80b1.cjs} +1 -1
  56. package/dist/{input-component.entry-74b63249.cjs → input-component.entry-0edf62cf.cjs} +1 -1
  57. package/dist/{input-component.entry-b471f023.js → input-component.entry-cee3fa04.js} +1 -1
  58. package/dist/{input-dropdown.entry-32b4b8be.cjs → input-dropdown.entry-63cf88c1.cjs} +1 -1
  59. package/dist/{input-dropdown.entry-14e1f6cb.js → input-dropdown.entry-a1bac5bf.js} +1 -1
  60. package/dist/{italic-icon.entry-8a1a7568.js → italic-icon.entry-85a90ace.js} +1 -1
  61. package/dist/{italic-icon.entry-c9ae0186.cjs → italic-icon.entry-9ced8045.cjs} +1 -1
  62. package/dist/{multi-select-dropdown.entry-bc4901aa.js → multi-select-dropdown.entry-dd699cdf.js} +36 -19
  63. package/dist/multi-select-dropdown.entry-f6ac5ae9.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-fbdb2f3d.js → nylas-booked-event-card_12.entry-56068565.js} +270 -265
  65. package/dist/nylas-booked-event-card_12.entry-89bcf205.cjs +1 -0
  66. package/dist/{nylas-form-card.entry-7e9a0cf1.cjs → nylas-form-card.entry-77485e1d.cjs} +1 -1
  67. package/dist/{nylas-form-card.entry-aa1d5aca.js → nylas-form-card.entry-df1c70ff.js} +11 -11
  68. package/dist/{nylas-if-state.entry-96914d61.cjs → nylas-if-state.entry-0271bf92.cjs} +1 -1
  69. package/dist/{nylas-if-state.entry-5e30f6b3.js → nylas-if-state.entry-74c342ef.js} +2 -2
  70. package/dist/{nylas-login.entry-e26689b0.cjs → nylas-login.entry-2483aa51.cjs} +1 -1
  71. package/dist/{nylas-login.entry-e52648da.js → nylas-login.entry-6a308ac9.js} +3 -3
  72. package/dist/{nylas-provider.entry-ac669351.js → nylas-provider.entry-5cbbd312.js} +5 -5
  73. package/dist/{nylas-provider.entry-9d43f4f0.cjs → nylas-provider.entry-df790de3.cjs} +1 -1
  74. package/dist/{nylas-scheduler-editor.entry-9655ce2e.js → nylas-scheduler-editor.entry-b6793c45.js} +3 -3
  75. package/dist/{nylas-scheduler-editor.entry-0f1370d9.cjs → nylas-scheduler-editor.entry-c23fd4d8.cjs} +2 -2
  76. package/dist/{nylas-scheduling.entry-ab10f8a4.cjs → nylas-scheduling.entry-2a9aed18.cjs} +1 -1
  77. package/dist/{nylas-scheduling.entry-14d4cd69.js → nylas-scheduling.entry-fea8dca0.js} +8 -8
  78. package/dist/nylas-time-window-picker_2.entry-32f657a2.cjs +1 -0
  79. package/dist/nylas-time-window-picker_2.entry-fc5aa4be.js +336 -0
  80. package/dist/{person-icon.entry-a45918af.cjs → person-icon.entry-c853f6b5.cjs} +1 -1
  81. package/dist/{person-icon.entry-40b5a8c5.js → person-icon.entry-fae1d972.js} +1 -1
  82. package/dist/{play-icon.entry-b2315f8c.js → play-icon.entry-6ccd7cb6.js} +1 -1
  83. package/dist/{play-icon.entry-c5757946.cjs → play-icon.entry-b07a4311.cjs} +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-a218275f.cjs} +1 -1
  87. package/dist/{refresh-icon.entry-37d038f8.js → refresh-icon.entry-b717e4fe.js} +1 -1
  88. package/dist/{register-component-555477e7-42247763.js → register-component-5d7bcc15-43981253.js} +12 -12
  89. package/dist/{register-component-555477e7-ecafba1c.cjs → register-component-5d7bcc15-bb9405d1.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-07a6783a.cjs → reply-all-icon.entry-cd2bafd1.cjs} +1 -1
  91. package/dist/{reply-all-icon.entry-89fd0e10.js → reply-all-icon.entry-f20c4a10.js} +1 -1
  92. package/dist/{reply-icon.entry-8cddb112.cjs → reply-icon.entry-30b5222b.cjs} +1 -1
  93. package/dist/{reply-icon.entry-a53a6fc4.js → reply-icon.entry-abfbde42.js} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-656579e3.js → scheduler-config-store-ed4a8dfd-2619e757.js} +1 -1
  95. package/dist/{scheduler-config-store-ed4a8dfd-733c6442.cjs → scheduler-config-store-ed4a8dfd-96520080.cjs} +1 -1
  96. package/dist/{scheduler-store-c37aa5ca-0484b074.cjs → scheduler-store-3acf4d70-53282ac4.cjs} +1 -1
  97. package/dist/{scheduler-store-c37aa5ca-c9752707.js → scheduler-store-3acf4d70-68aacbea.js} +2 -2
  98. package/dist/{sent-icon.entry-b740a32d.cjs → sent-icon.entry-2b183210.cjs} +1 -1
  99. package/dist/{sent-icon.entry-6ac749b3.js → sent-icon.entry-77bb678e.js} +1 -1
  100. package/dist/{spam-icon.entry-872ff1e4.js → spam-icon.entry-42f9c9e7.js} +1 -1
  101. package/dist/{spam-icon.entry-78cec025.cjs → spam-icon.entry-cbeaca0c.cjs} +1 -1
  102. package/dist/{star-icon.entry-57246dc1.js → star-icon.entry-6fc95071.js} +1 -1
  103. package/dist/{star-icon.entry-ab9ad7df.cjs → star-icon.entry-a6e85c82.cjs} +1 -1
  104. package/dist/{stop-icon.entry-5054fa33.js → stop-icon.entry-8b041eda.js} +1 -1
  105. package/dist/{stop-icon.entry-f79dce49.cjs → stop-icon.entry-eee61c96.cjs} +1 -1
  106. package/dist/{textarea-component.entry-2967dd82.cjs → textarea-component.entry-cbe424d4.cjs} +1 -1
  107. package/dist/{textarea-component.entry-15c9a676.js → textarea-component.entry-dc92a53f.js} +2 -2
  108. package/dist/{time-period-selector.entry-9226fd08.js → time-period-selector.entry-45ca7b1a.js} +56 -37
  109. package/dist/time-period-selector.entry-60718809.cjs +1 -0
  110. package/dist/{translate-icon.entry-52939fa4.js → translate-icon.entry-447f1502.js} +1 -1
  111. package/dist/{translate-icon.entry-f4dcc479.cjs → translate-icon.entry-7307d3f1.cjs} +1 -1
  112. package/dist/{trash-fill-icon.entry-7f4ddaf5.cjs → trash-fill-icon.entry-1138f73e.cjs} +1 -1
  113. package/dist/{trash-fill-icon.entry-b9ab3cfc.js → trash-fill-icon.entry-7d11144b.js} +1 -1
  114. package/dist/{underline-icon.entry-c8142970.js → underline-icon.entry-6acfca57.js} +1 -1
  115. package/dist/{underline-icon.entry-e9959c5c.cjs → underline-icon.entry-c636ca0e.cjs} +1 -1
  116. package/dist/{warning-icon.entry-98c0d003.cjs → warning-icon.entry-03615141.cjs} +1 -1
  117. package/dist/{warning-icon.entry-00426457.js → warning-icon.entry-290eb052.js} +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/multi-select-dropdown.entry-58b860a0.cjs +0 -1
  124. package/dist/nylas-booked-event-card_12.entry-f64eecaa.cjs +0 -1
  125. package/dist/nylas-time-window-picker.entry-a2f71121.js +0 -316
  126. package/dist/nylas-time-window-picker.entry-dfbd975e.cjs +0 -1
  127. package/dist/time-period-selector.entry-a53c94c2.cjs +0 -1
@@ -1,118 +1,118 @@
1
- import { r as b, h as s, c as x, d, D as ua, H as E, g as O, E as ue, G as se, I as it, J as st, t as Oe, K as Qn, L as ya, i as ye, M as be, O as ba } from "./index-13a43508.js";
2
- import { R as S } from "./register-component-555477e7-42247763.js";
3
- import { D as vt, T as ot, F as rt, c as ga, P as on, C as va, E as lt, R as dt, d as _a, e as Ca } from "./constants-24eca8c9-922dc05c.js";
1
+ import { r as g, h as s, c as x, d, D as ya, H as E, g as O, E as ye, G as se, I as it, J as st, t as Oe, K as Qn, L as ba, i as be, M as ge, O as ga } from "./index-589f8eee.js";
2
+ import { R as S } from "./register-component-5d7bcc15-43981253.js";
3
+ import { D as _t, T as ot, F as rt, c as va, P as on, C as _a, E as lt, R as dt, d as Ca, e as wa } from "./constants-54af2051-767e8462.js";
4
4
  import "react";
5
5
  import "react-dom";
6
- const wa = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = wa, ka = class {
6
+ const xa = ".sc-calendar-agenda-fill-icon-h{display:flex}", ka = xa, Ea = class {
7
7
  constructor(e) {
8
- b(this, e), this.width = "20", this.height = "20";
8
+ g(this, e), this.width = "20", this.height = "20";
9
9
  }
10
10
  render() {
11
11
  return s("svg", { key: "a275ba280fae8412c15b1fd1034e488be4cb2d27", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "a3092e55e03efede059223a3a7278761a00c07a5", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM11 3.5C11 3.25454 10.8231 3.05039 10.5899 3.00806L10.5 3H3.5L3.41012 3.00806C3.17688 3.05039 3 3.25454 3 3.5C3 3.74546 3.17688 3.94961 3.41012 3.99194L3.5 4H10.5L10.5899 3.99194C10.8231 3.94961 11 3.74546 11 3.5ZM11 7C11 6.75454 10.8231 6.55039 10.5899 6.50806L10.5 6.5H3.5L3.41012 6.50806C3.17688 6.55039 3 6.75454 3 7C3 7.24546 3.17688 7.44961 3.41012 7.49194L3.5 7.5H10.5L10.5899 7.49194C10.8231 7.44961 11 7.24546 11 7ZM11 10.5C11 10.2545 10.8231 10.0504 10.5899 10.0081L10.5 10H3.5L3.41012 10.0081C3.17688 10.0504 3 10.2545 3 10.5C3 10.7455 3.17688 10.9496 3.41012 10.9919L3.5 11H10.5L10.5899 10.9919C10.8231 10.9496 11 10.7455 11 10.5Z", fill: "currentColor" }));
12
12
  }
13
13
  };
14
- ka.style = xa;
15
- const Ea = ".sc-calendar-agenda-icon-h{display:flex}", Oa = Ea, Sa = class {
14
+ Ea.style = ka;
15
+ const Oa = ".sc-calendar-agenda-icon-h{display:flex}", Sa = Oa, Ha = class {
16
16
  constructor(e) {
17
- b(this, e), this.width = "20", this.height = "20";
17
+ g(this, e), this.width = "20", this.height = "20";
18
18
  }
19
19
  render() {
20
20
  return s("svg", { key: "9e7bcafa585dc17975a1793711df835ca7d8d9c1", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "184e8215d1dc6a66b9041cacd4687a446b72a6ec", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM13 11.5V2.5C13 1.67157 12.3284 1 11.5 1H2.5C1.67157 1 1 1.67157 1 2.5V11.5C1 12.3284 1.67157 13 2.5 13H11.5C12.3284 13 13 12.3284 13 11.5ZM11 3.5C11 3.74546 10.8231 3.94961 10.5899 3.99194L10.5 4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.25454 3.17688 3.05039 3.41012 3.00806L3.5 3H10.5C10.7761 3 11 3.22386 11 3.5ZM11 7C11 7.24546 10.8231 7.44961 10.5899 7.49194L10.5 7.5H3.5C3.22386 7.5 3 7.27614 3 7C3 6.75454 3.17688 6.55039 3.41012 6.50806L3.5 6.5H10.5C10.7761 6.5 11 6.72386 11 7ZM11 10.5C11 10.7455 10.8231 10.9496 10.5899 10.9919L10.5 11H3.5C3.22386 11 3 10.7761 3 10.5C3 10.2545 3.17688 10.0504 3.41012 10.0081L3.5 10H10.5C10.7761 10 11 10.2239 11 10.5Z", fill: "currentColor" }));
21
21
  }
22
22
  };
23
- Sa.style = Oa;
24
- const Da = ".sc-calendar-info-icon-h{display:flex}", Ha = Da, Ta = class {
23
+ Ha.style = Sa;
24
+ const Da = ".sc-calendar-info-icon-h{display:flex}", Ta = Da, Ia = class {
25
25
  constructor(e) {
26
- b(this, e), this.width = "20", this.height = "20";
26
+ g(this, e), this.width = "20", this.height = "20";
27
27
  }
28
28
  render() {
29
29
  return s("svg", { key: "7ff2928e9a5dd1d9f96b869c4f8f45810117d55f", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "2c83ca56082a787a853d65c02ed6adf6c6d7a44c", d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" }));
30
30
  }
31
31
  };
32
- Ta.style = Ha;
33
- const Ia = ".sc-calendar-patterns-icon-h{display:flex}", $a = Ia, Pa = class {
32
+ Ia.style = Ta;
33
+ const $a = ".sc-calendar-patterns-icon-h{display:flex}", Fa = $a, Pa = class {
34
34
  constructor(e) {
35
- b(this, e), this.width = "20", this.height = "20";
35
+ g(this, e), this.width = "20", this.height = "20";
36
36
  }
37
37
  render() {
38
38
  return s("svg", { key: "8d830ffc53fbe073dddec56cf7819f1738539f22", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "3752fd1b7b498f1e2aee01aa5b3621a577f7a3b8", d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" }));
39
39
  }
40
40
  };
41
- Pa.style = $a;
42
- const Fa = ".sc-checkmark-icon-h{display:flex}", Na = Fa, Ra = class {
41
+ Pa.style = Fa;
42
+ const La = ".sc-checkmark-icon-h{display:flex}", Na = La, Ra = class {
43
43
  constructor(e) {
44
- b(this, e), this.width = "18", this.height = "14";
44
+ g(this, e), this.width = "18", this.height = "14";
45
45
  }
46
46
  render() {
47
47
  return s("svg", { key: "49ad9466fa210919af89c80d546cf2a846b84d49", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "08d62d352782e9847494ebc8daad7e1300ebaad9", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
48
48
  }
49
49
  };
50
50
  Ra.style = Na;
51
- const La = ".sc-dragable-icon-h{display:flex}", Aa = La, Ma = class {
51
+ const Aa = ".sc-dragable-icon-h{display:flex}", Ma = Aa, za = class {
52
52
  constructor(e) {
53
- b(this, e), this.width = "20", this.height = "20";
53
+ g(this, e), this.width = "20", this.height = "20";
54
54
  }
55
55
  render() {
56
56
  return s("svg", { key: "eafe936e1e9cc4c5b877fdf8329f0092055d3b12", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "23d5d793affa4fe72001dcbacf9adb624c8ebe87", d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" }));
57
57
  }
58
58
  };
59
- Ma.style = Aa;
60
- const za = ".sc-envelope-fill-icon-h{display:flex}", ja = za, Ua = class {
59
+ za.style = Ma;
60
+ const ja = ".sc-envelope-fill-icon-h{display:flex}", Ua = ja, Wa = class {
61
61
  constructor(e) {
62
- b(this, e), this.width = "16", this.height = "13";
62
+ g(this, e), this.width = "16", this.height = "13";
63
63
  }
64
64
  render() {
65
65
  return s("svg", { key: "deb9b906ee52d7698b1b2acd3edec06c8cb4a2e1", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "3bd3caa47b4ecb0c5347dc8c71ee33ff57653913", d: "M16.0001 3.373V10.5C16.0001 11.8807 14.8808 13 13.5001 13H2.50008C1.11937 13 0 11.8807 0 10.5V3.373L7.74657 7.93097C7.90304 8.02301 8.09711 8.02301 8.25359 7.93097L16.0001 3.373ZM13.5001 0C14.7871 0 15.847 0.972604 15.9849 2.22293L8.00008 6.91991L0.0152595 2.22293C0.153116 0.972604 1.21302 0 2.50008 0H13.5001Z", fill: "currentColor" }));
66
66
  }
67
67
  };
68
- Ua.style = ja;
69
- const Wa = ".sc-envelope-icon-h{display:flex}", Ba = Wa, Za = class {
68
+ Wa.style = Ua;
69
+ const Ba = ".sc-envelope-icon-h{display:flex}", Za = Ba, qa = class {
70
70
  constructor(e) {
71
- b(this, e), this.width = "16", this.height = "13";
71
+ g(this, e), this.width = "16", this.height = "13";
72
72
  }
73
73
  render() {
74
74
  return s("svg", { key: "73122f7a719952a557845096eaf5d47960f1f684", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "02a7f44ed198e422ccf2aff73400f8b6327f5cf7", d: "M13.5 0C14.8807 0 16 1.11929 16 2.5V10.5C16 11.8807 14.8807 13 13.5 13H2.5C1.11929 13 0 11.8807 0 10.5V2.5C0 1.11929 1.11929 0 2.5 0H13.5ZM15 3.961L8.25351 7.93097C8.12311 8.00767 7.96661 8.02045 7.82751 7.96932L7.74649 7.93097L1 3.963V10.5C1 11.3284 1.67157 12 2.5 12H13.5C14.3284 12 15 11.3284 15 10.5V3.961ZM13.5 1H2.5C1.67157 1 1 1.67157 1 2.5V2.802L8 6.91991L15 2.801V2.5C15 1.67157 14.3284 1 13.5 1Z", fill: "currentColor" }));
75
75
  }
76
76
  };
77
- Za.style = Ba;
78
- const qa = ".sc-eye-icon-h{display:flex}", Va = qa, Ja = class {
77
+ qa.style = Za;
78
+ const Va = ".sc-eye-icon-h{display:flex}", Ja = Va, Ga = class {
79
79
  constructor(e) {
80
- b(this, e), this.width = "17", this.height = "10";
80
+ g(this, e), this.width = "17", this.height = "10";
81
81
  }
82
82
  render() {
83
83
  return s("svg", { key: "b6e4ef2a9e507d094def976df8d6f61e419881d8", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "2c0fd33d221150b5da2405e40574abb4208999d1", d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" }));
84
84
  }
85
85
  };
86
- Ja.style = Va;
87
- const Ga = ".sc-feedback-icon-h{display:flex}", Ya = Ga, Xa = class {
86
+ Ga.style = Ja;
87
+ const Ya = ".sc-feedback-icon-h{display:flex}", Xa = Ya, Ka = class {
88
88
  constructor(e) {
89
- b(this, e), this.width = "11", this.height = "14";
89
+ g(this, e), this.width = "11", this.height = "14";
90
90
  }
91
91
  render() {
92
92
  return s("svg", { key: "fc5d4aa6d299768c11f13c54218eaf28a45c97df", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "457d0f4155d6da655950e8fb1d3c74374b053782", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
93
93
  }
94
94
  };
95
- Xa.style = Ya;
96
- const Ka = ".sc-flow-icon-h{display:flex}", Qa = Ka, ei = class {
95
+ Ka.style = Xa;
96
+ const Qa = ".sc-flow-icon-h{display:flex}", ei = Qa, ni = class {
97
97
  constructor(e) {
98
- b(this, e), this.width = "16", this.height = "12";
98
+ g(this, e), this.width = "16", this.height = "12";
99
99
  }
100
100
  render() {
101
101
  return s("svg", { key: "c6782480f25c3598e585303021c510ec90f8de26", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "76a3d0ff8fccddb49969623ab60b1ae2c9d2d0e2", d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" }));
102
102
  }
103
103
  };
104
- ei.style = Qa;
105
- const ni = ".sc-google-meet-icon-h{display:flex}", ti = ni, ai = class {
104
+ ni.style = ei;
105
+ const ti = ".sc-google-meet-icon-h{display:flex}", ai = ti, ii = class {
106
106
  constructor(e) {
107
- b(this, e), this.width = "20", this.height = "20";
107
+ g(this, e), this.width = "20", this.height = "20";
108
108
  }
109
109
  render() {
110
110
  return s("svg", { key: "b68e005c64b1deb85367e52afa53a3583420d6fc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "c107fef0d62794b094d8096789b20ef66ad2f66d", "clip-path": "url(#clip0_22_6251)" }, s("path", { key: "f7ddbd7ef73ae7addaaa81a42d419c8e04e31341", d: "M11.3145 10.1036L13.2642 12.3321L15.8859 14.0076L16.343 10.1173L15.8859 6.31384L13.2139 7.78584L11.3145 10.1036Z", fill: "#00832D" }), s("path", { key: "678ee765afd11161ed9f7fe60015536077e708dc", d: "M0 13.6464V16.9607C0 17.7184 0.613714 18.3321 1.37143 18.3321H4.68571L5.37143 15.827L4.68571 13.6464L2.41143 12.9607L0 13.6464Z", fill: "#0066DA" }), s("path", { key: "5329acfae94e546cc21a4bc4803a584d41f4f644", d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), s("path", { key: "4441dc496cbe7317883740d0aa3469261bd7330f", d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), s("path", { key: "6cd237dedd6d0e9e98905a56d7cc437ec5994cae", d: "M18.8798 3.85895L15.8855 6.31381V14.0075L18.8935 16.4738C19.3438 16.8258 20.0021 16.5047 20.0021 15.9321V4.38923C20.0021 3.80981 19.329 3.49209 18.8798 3.85895ZM11.3141 10.1035V13.6464H4.68555V18.3321H14.5141C15.2718 18.3321 15.8855 17.7184 15.8855 16.9607V14.0075L11.3141 10.1035Z", fill: "#00AC47" }), s("path", { key: "7d00a0a63e9825231cececa544a516eb0a567609", d: "M14.5141 1.875H4.68555V6.56071H11.3141V10.1036L15.8855 6.31614V3.24643C15.8855 2.48871 15.2718 1.875 14.5141 1.875Z", fill: "#FFBA00" })), s("defs", { key: "6efd6aace86d9b576642ef44fbb27c73f7b14057" }, s("clipPath", { key: "79f87c29c41836a9ee2319f66c86ec19e6d1d329", id: "clip0_22_6251" }, s("rect", { key: "6d872b34ea312c8378c0762f342ea55d7d1b87ae", width: "20", height: "20", fill: "white" }))));
111
111
  }
112
112
  };
113
- ai.style = ti;
114
- const ii = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}', si = ii;
115
- var oi = function(e, n, t, a) {
113
+ ii.style = ai;
114
+ const si = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}', oi = si;
115
+ var ri = function(e, n, t, a) {
116
116
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
117
117
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
118
118
  i = Reflect.decorate(e, n, t, a);
@@ -124,9 +124,9 @@ var oi = function(e, n, t, a) {
124
124
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
125
125
  return Reflect.metadata(e, n);
126
126
  };
127
- const _t = class {
127
+ const Ct = class {
128
128
  constructor(e) {
129
- b(this, e), this.nylasFormInputImageUrlInvalid = x(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
129
+ g(this, e), this.nylasFormInputImageUrlInvalid = x(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
130
130
  }
131
131
  connectedCallback() {
132
132
  d("nylas-image-input", "connectedCallback");
@@ -164,7 +164,7 @@ const _t = class {
164
164
  n === this.name && this.setImage(t);
165
165
  }
166
166
  setImage(e) {
167
- this.errorMessage = "", ua(e).then(() => {
167
+ this.errorMessage = "", ya(e).then(() => {
168
168
  this.currentImageUrl = e, this.internals.setValidity({}), this.internals.setFormValue(this.currentImageUrl, this.name), this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
169
169
  }).catch(() => {
170
170
  this.errorMessage = "Invalid image URL.", this.nylasFormInputImageUrlInvalid.emit({ value: "Invalid image URL.", name: this.name }), typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, "Invalid image URL.");
@@ -185,7 +185,7 @@ const _t = class {
185
185
  };
186
186
  }
187
187
  };
188
- oi([
188
+ ri([
189
189
  S({
190
190
  name: "nylas-image-input",
191
191
  eventToProps: {
@@ -198,37 +198,37 @@ oi([
198
198
  rn("design:type", Function),
199
199
  rn("design:paramtypes", []),
200
200
  rn("design:returntype", void 0)
201
- ], _t.prototype, "render", null);
202
- _t.style = si;
203
- const ri = ".sc-location-icon-h{display:flex}", li = ri, di = class {
201
+ ], Ct.prototype, "render", null);
202
+ Ct.style = oi;
203
+ const li = ".sc-location-icon-h{display:flex}", di = li, ci = class {
204
204
  constructor(e) {
205
- b(this, e), this.width = "16", this.height = "18";
205
+ g(this, e), this.width = "16", this.height = "18";
206
206
  }
207
207
  render() {
208
208
  return s("svg", { key: "41c6752fb26ae7aa42d7bdfbadc16c2869e37d03", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "04912d24e06cbad0c6ece45f19827bbb62cfbcd0", d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" }));
209
209
  }
210
210
  };
211
- di.style = li;
212
- const ci = ".sc-location-off-icon-h{display:flex}", pi = ci, fi = class {
211
+ ci.style = di;
212
+ const pi = ".sc-location-off-icon-h{display:flex}", fi = pi, mi = class {
213
213
  constructor(e) {
214
- b(this, e), this.width = "16", this.height = "18";
214
+ g(this, e), this.width = "16", this.height = "18";
215
215
  }
216
216
  render() {
217
217
  return s("svg", { key: "63a6c285582208662ae8307e37621e96a22ce5f3", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "cf2dfb48d9a1e3b2d03aa86e37a79c702547bf8e", d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" }));
218
218
  }
219
219
  };
220
- fi.style = pi;
221
- const mi = ".sc-microsoft-teams-icon-h{display:flex}", hi = mi, ui = class {
220
+ mi.style = fi;
221
+ const hi = ".sc-microsoft-teams-icon-h{display:flex}", ui = hi, yi = class {
222
222
  constructor(e) {
223
- b(this, e), this.width = "20", this.height = "20";
223
+ g(this, e), this.width = "20", this.height = "20";
224
224
  }
225
225
  render() {
226
226
  return s("svg", { key: "43015b1429d29b0ce4d72d6efa983cf972200345", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "181d622e54dd6034328a3e2969d2c7435e0fe47c", "clip-path": "url(#clip0_22_6280)" }, s("path", { key: "a8371f19ba59bcb5299c27aee9bd9031100f113a", d: "M13.7109 7.60168H18.8769C19.365 7.60168 19.7607 7.99734 19.7607 8.4854V13.191C19.7607 14.9848 18.3065 16.4389 16.5127 16.4389H16.4974C14.7036 16.4391 13.2493 14.9852 13.249 13.1914C13.249 13.1913 13.249 13.1911 13.249 13.191V8.06355C13.249 7.80847 13.4558 7.60168 13.7109 7.60168Z", fill: "#5059C9" }), s("path", { key: "6938ccf952810d13a1f56a2cef920dc580204df1", d: "M17.2024 6.67152C18.3583 6.67152 19.2954 5.73444 19.2954 4.5785C19.2954 3.42255 18.3583 2.48547 17.2024 2.48547C16.0465 2.48547 15.1094 3.42255 15.1094 4.5785C15.1094 5.73444 16.0465 6.67152 17.2024 6.67152Z", fill: "#5059C9" }), s("path", { key: "6183cc2e18656369c6b6b13eba20256a91ca13be", d: "M10.6912 6.67152C12.3609 6.67152 13.7145 5.31796 13.7145 3.64826C13.7145 1.97856 12.3609 0.625 10.6912 0.625C9.02153 0.625 7.66797 1.97856 7.66797 3.64826C7.66797 5.31796 9.02153 6.67152 10.6912 6.67152Z", fill: "#7B83EB" }), s("path", { key: "0f555b8edfa78d27a064e2b8c355e652105dcef8", d: "M14.7223 7.60168H6.19482C5.71257 7.61362 5.33108 8.01384 5.34227 8.49611V13.8631C5.27492 16.7571 7.56457 19.1588 10.4586 19.2296C13.3525 19.1588 15.6422 16.7571 15.5748 13.8631V8.49611C15.586 8.01384 15.2045 7.61362 14.7223 7.60168Z", fill: "#7B83EB" }), s("path", { key: "f70b7f02b9afc002c0f54c5109aa37f9443b530b", opacity: "0.1", d: "M10.9234 7.60168V15.1226C10.9211 15.4675 10.7121 15.7773 10.3932 15.9087C10.2917 15.9516 10.1825 15.9738 10.0723 15.9738H5.75134C5.69088 15.8203 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.9234Z", fill: "black" }), s("path", { key: "099a90b1bcf8844977911db140a55b77e3d40dcb", opacity: "0.2", d: "M10.4583 7.60168V15.5877C10.4583 15.698 10.4362 15.8071 10.3932 15.9087C10.2619 16.2276 9.95205 16.4366 9.60717 16.4389H5.96995C5.89088 16.2854 5.81646 16.1319 5.75134 15.9738C5.68623 15.8156 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "df916fd9bb304a77cc01949e5322d635aef30dd4", opacity: "0.2", d: "M10.4583 7.60168V14.6575C10.4548 15.1261 10.0758 15.5051 9.60716 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "48cfb8d7f434c8899770155eef6a72184f698942", opacity: "0.2", d: "M9.9932 7.60168V14.6575C9.98965 15.1261 9.61065 15.5051 9.14203 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H9.9932Z", fill: "black" }), s("path", { key: "7418c396c4b00ef2c7de4d5035c46be0cf51224f", opacity: "0.1", d: "M10.9241 5.1971V6.66222C10.845 6.66687 10.7706 6.67152 10.6915 6.67152C10.6124 6.67152 10.538 6.66687 10.4589 6.66222C10.3019 6.6518 10.1462 6.62689 9.99382 6.5878C9.05195 6.36475 8.27382 5.70421 7.90079 4.81106C7.83661 4.66107 7.78678 4.50533 7.75195 4.34595H10.0729C10.5422 4.34772 10.9223 4.72775 10.9241 5.1971Z", fill: "black" }), s("path", { key: "4611d18789afc14764c6355c36ff4639c07ef3ea", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "6a0b1761698c016c3ed6f15020e17c592ae8fd85", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "9ac985a013b79dcc739fd48069d7a54956b48a07", opacity: "0.2", d: "M9.99341 5.6622V6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.14225C9.6116 4.81282 9.99163 5.19286 9.99341 5.6622Z", fill: "black" }), s("path", { key: "22aa61c2fbca8ea8599efa657405e3258f9a3e25", d: "M0.613296 4.81104H9.14074C9.61159 4.81104 9.99329 5.19274 9.99329 5.66359V14.191C9.99329 14.6619 9.61158 15.0436 9.14074 15.0436H0.613296C0.14244 15.0436 -0.239258 14.6619 -0.239258 14.191V5.66359C-0.239258 5.19274 0.142449 4.81104 0.613296 4.81104Z", fill: "url(#paint0_linear_22_6280)" }), s("path", { key: "cd2d8e75fa6bbb92b70006a507bd8447c5cbf7a7", d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), s("defs", { key: "1b9552dc22885c57462fd2ae8b4c26dc2c79d92d" }, s("linearGradient", { key: "ea753705cbbdb91c51fc04a167b6afd3f41d41d9", id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "8390ae19866ffe03bd03d5b9b0a3a33fb2277e62", "stop-color": "#5A62C3" }), s("stop", { key: "80dd7a6a24bf2e42aac98ce40442501ab4e2395c", offset: "0.5", "stop-color": "#4D55BD" }), s("stop", { key: "59b6e034bc93cabef37a02ae9f4f16dfa957f8a7", offset: "1", "stop-color": "#3940AB" })), s("clipPath", { key: "124d7ccc8361f874fa3042ad4657900b9a3b3a4c", id: "clip0_22_6280" }, s("rect", { key: "2d92a7a7313625c8a8684630a25bb506bfb17a54", width: "20", height: "20", fill: "white" }))));
227
227
  }
228
228
  };
229
- ui.style = hi;
230
- const yi = ':host{display:block;margin:1rem;--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}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', bi = yi;
231
- var gi = function(e, n, t, a) {
229
+ yi.style = ui;
230
+ const bi = ':host{display:block;margin:1rem;--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}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', gi = bi;
231
+ var vi = function(e, n, t, a) {
232
232
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
233
233
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
234
234
  i = Reflect.decorate(e, n, t, a);
@@ -240,17 +240,15 @@ var gi = function(e, n, t, a) {
240
240
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
241
241
  return Reflect.metadata(e, n);
242
242
  };
243
- const Ct = class {
243
+ const wt = class {
244
244
  constructor(e) {
245
- var n, t, a;
246
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = ((a = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.availability_method) !== "collective", this.error = "";
245
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = !1, this.error = "";
247
246
  }
248
247
  elementNameChangedHandler(e) {
249
248
  d("nylas-additional-participants", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
250
249
  }
251
- selectedConfigurationChangedHandler(e) {
252
- var n, t;
253
- d("nylas-additional-participants", "selectedConfigurationChangedHandler", e), this.isRoundRobinConfig = ((t = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : t.availability_method) !== "collective", this.participants = (e == null ? void 0 : e.participants) || [], this.updateOrganizerAsParticipant();
250
+ selectedConfigurationAndCurrentUserChangedHandler(e, n, t) {
251
+ d("nylas-additional-participants", "selectedConfigurationAndCurrentUserChangedHandler", e, this.currentUser), t === "selectedConfiguration" ? this.updateState(e, this.currentUser) : t === "currentUser" && this.updateState(this.selectedConfiguration, e);
254
252
  }
255
253
  connectedCallback() {
256
254
  d("nylas-additional-participants", "connectedCallback");
@@ -259,15 +257,15 @@ const Ct = class {
259
257
  d("nylas-additional-participants", "componentWillLoad"), this.host.setAttribute("name", this.name);
260
258
  }
261
259
  componentDidLoad() {
262
- var e, n, t;
263
- d("nylas-additional-participants", "componentDidLoad"), this.isRoundRobinConfig = ((t = (n = (e = this.selectedConfiguration) == null ? void 0 : e.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : t.availability_method) !== "collective", this.includeOrganizerAsParticipant = !!(this.isRoundRobinConfig && this.participants.find((a) => {
264
- var o;
265
- return a.email === ((o = this.currentUser) == null ? void 0 : o.email);
266
- })), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.updateOrganizerAsParticipant();
260
+ d("nylas-additional-participants", "componentDidLoad"), this.updateState(this.selectedConfiguration, this.currentUser);
267
261
  }
268
262
  disconnectedCallback() {
269
263
  d("nylas-additional-participants", "disconnectedCallback");
270
264
  }
265
+ updateState(e, n) {
266
+ var t, a, o, i;
267
+ this.isRoundRobinConfig = (a = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) != null && a.availability_method ? ((i = (o = e == null ? void 0 : e.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : i.availability_method) !== "collective" : !1, this.participants = (e == null ? void 0 : e.participants) || [], this.includeOrganizerAsParticipant = !!(this.isRoundRobinConfig && this.participants.find((r) => r.email === (n == null ? void 0 : n.email))), this.updateOrganizerAsParticipant();
268
+ }
271
269
  get isInternalsAvailable() {
272
270
  return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
273
271
  }
@@ -325,14 +323,14 @@ const Ct = class {
325
323
  return e.filter((a) => !n.some((o) => a.email === o.email)).map((a) => ({ value: a.email, label: a.email }));
326
324
  }
327
325
  render() {
328
- return s(E, { key: "d05a5e9f8eb7a85dc4c80ba003d95f05b455e6b6", part: "nap" }, s("nylas-form-card", { key: "84118936b5695f624940edfb9ec06388bd23d927" }, s("h3", { key: "87b8de2368e4c3d8a872fb25750af8b468fe3a70", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), s("p", { key: "42e8210f534b21509e26a97043a44cc04f166d5e", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), s("div", { key: "4295253095c499f00553afa0a9e86fabc1d456b6", slot: "content", class: "nylas-additional-participants__content" }, s("div", { key: "9e171986169008b21c6148516b4099de5cc1fa92" }, this.participants.map((e, n) => s("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !e.is_organizer && s("label", null, `Participant ${n}`), s("div", { part: "nap__input_wrapper", class: {
326
+ return s(E, { key: "521129d7a5ce85ca83edfefbb2bb7c3f32980ad1", part: "nap" }, s("nylas-form-card", { key: "58a24bd832400d34528a4e1b5de81f75fd174438" }, s("h3", { key: "366f396c3d67e05a05fbaea2953276464ab7b35a", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), s("p", { key: "c5bfeda652335338cb4a77f94ebfc4511f2d00b7", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), s("div", { key: "f0178ca69d8a844c5997fab4892289b58d7aac41", slot: "content", class: "nylas-additional-participants__content" }, s("div", { key: "64fe39f5ab59f2061bdcf504664f6216dfad186b" }, this.participants.map((e, n) => s("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !e.is_organizer && s("label", null, `Participant ${n}`), s("div", { part: "nap__input_wrapper", class: {
329
327
  "nylas-additional-participants__input_wrapper": !0,
330
328
  "nylas-additional-participants__input_wrapper_organizer": (e == null ? void 0 : e.is_organizer) === !0,
331
329
  "nylas-additional-participants__input_wrapper_invalid": e.is_valid === !1,
332
330
  error: e.is_valid === !1
333
331
  } }, s("div", { class: { "nylas-additional-participants__input": !0, organizer: (e == null ? void 0 : e.is_organizer) === !0 }, part: "nap__input" }, e.is_organizer ? s("input-component", { class: "label-input", name: `${n}`, key: n, label: "Organizer", required: !1, readOnly: e.is_organizer, defaultValue: e.email }, this.isRoundRobinConfig && s("div", { class: "required-input", slot: "additional-input" }, s("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
334
332
  this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant, this.updateFormValue();
335
- }, checked: this.includeOrganizerAsParticipant }), s("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", s("tooltip-component", { id: "organizer_participant_tooltip" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", s("br", null), s("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : s("input-dropdown", { id: `${n}`, name: `${n}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && s("button", { onClick: () => this.removeParticipant(n), part: "nap__remove-participant" }, s("close-icon", null)))), !e.is_valid && s("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[n]))), s("p", { key: "2577ee63678d02419bf97028bf469eb13e6a6440", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), s("button", { key: "0a31b1151fcbce60a71fa686585f5b41036526b6", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, s("add-circle-icon", { key: "da2cc04ea7861e7618174afbc4cc31df894b62aa" }), " ", s("span", { key: "325054ea5f7e61ea6694e6aad887b9240e6976c0" }, "Add ", this.participants.length > 1 ? "another" : "a", " participant")))));
333
+ }, checked: this.includeOrganizerAsParticipant }), s("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", s("tooltip-component", { id: "organizer_participant_tooltip" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", s("br", null), s("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : s("input-dropdown", { id: `${n}`, name: `${n}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && s("button", { onClick: () => this.removeParticipant(n), part: "nap__remove-participant" }, s("close-icon", null)))), !e.is_valid && s("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[n]))), s("p", { key: "18e429becec7ebe59db08e078249aaf2c8b0db30", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), s("button", { key: "1ee77fef22d67517e0ab39eeac0e7de7d9fa3c1e", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, s("add-circle-icon", { key: "f224802fc24cc9284210f526d3576d8638c4c977" }), " ", s("span", { key: "dab608525f4aed99d8d815764e17981de7d9fdd9" }, "Add ", this.participants.length > 1 ? "another" : "a", " participant")))));
336
334
  }
337
335
  static get formAssociated() {
338
336
  return !0;
@@ -343,11 +341,12 @@ const Ct = class {
343
341
  static get watchers() {
344
342
  return {
345
343
  name: ["elementNameChangedHandler"],
346
- selectedConfiguration: ["selectedConfigurationChangedHandler"]
344
+ currentUser: ["selectedConfigurationAndCurrentUserChangedHandler"],
345
+ selectedConfiguration: ["selectedConfigurationAndCurrentUserChangedHandler"]
347
346
  };
348
347
  }
349
348
  };
350
- gi([
349
+ vi([
351
350
  S({
352
351
  name: "nylas-additional-participants",
353
352
  stateToProps: /* @__PURE__ */ new Map([
@@ -362,10 +361,10 @@ gi([
362
361
  ln("design:type", Function),
363
362
  ln("design:paramtypes", []),
364
363
  ln("design:returntype", void 0)
365
- ], Ct.prototype, "render", null);
366
- Ct.style = bi;
367
- const vi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', _i = vi;
368
- var Ci = function(e, n, t, a) {
364
+ ], wt.prototype, "render", null);
365
+ wt.style = gi;
366
+ const _i = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', Ci = _i;
367
+ var wi = function(e, n, t, a) {
369
368
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
370
369
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
371
370
  i = Reflect.decorate(e, n, t, a);
@@ -377,9 +376,9 @@ var Ci = function(e, n, t, a) {
377
376
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
378
377
  return Reflect.metadata(e, n);
379
378
  };
380
- const wt = class {
379
+ const xt = class {
381
380
  constructor(e) {
382
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability", this.selectedConfiguration = void 0, this.openHours = void 0, this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.schedule = {
381
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability", this.selectedConfiguration = void 0, this.openHours = void 0, this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.schedule = {
383
382
  SUN: [],
384
383
  MON: [{ start: "09:00am", end: "05:00pm" }],
385
384
  TUE: [{ start: "09:00am", end: "05:00pm" }],
@@ -394,7 +393,7 @@ const wt = class {
394
393
  }
395
394
  configChangedHandler(e) {
396
395
  var a, o, i;
397
- const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ?? vt, t = ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.timezone) ?? this.defaultTimezone;
396
+ const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ?? _t, t = ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.timezone) ?? this.defaultTimezone;
398
397
  this.timezone = this.name === "availability" ? t : this.defaultTimezone, this.openHours ? this.openHoursToSchedule(this.openHours) : n && this.openHoursToSchedule(n);
399
398
  }
400
399
  scheduleChanged(e, n) {
@@ -464,8 +463,8 @@ const wt = class {
464
463
  }
465
464
  getOverlaps(e) {
466
465
  let n = e.map((a, o) => ({
467
- start: ue(a.start),
468
- end: ue(a.end),
466
+ start: ye(a.start),
467
+ end: ye(a.end),
469
468
  originalIndex: o
470
469
  }));
471
470
  n.sort((a, o) => a.start - o.start);
@@ -480,33 +479,33 @@ const wt = class {
480
479
  this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
481
480
  else {
482
481
  const o = n.map((r) => ({
483
- start: ue(r.start),
484
- end: ue(r.end)
482
+ start: ye(r.start),
483
+ end: ye(r.end)
485
484
  })).sort((r, l) => r.start - l.start), i = o[o.length - 1].end;
486
485
  if (i + 60 <= a)
487
486
  this.schedule[e].push({
488
- start: se(be(i)),
489
- end: se(be(i + 60))
487
+ start: se(ge(i)),
488
+ end: se(ge(i + 60))
490
489
  });
491
490
  else {
492
491
  let r = !1;
493
492
  if (o[0].start > t + 60 && (this.schedule[e].push({
494
- start: se(be(t)),
495
- end: se(be(t + 60))
493
+ start: se(ge(t)),
494
+ end: se(ge(t + 60))
496
495
  }), r = !0), !r)
497
496
  for (let l = 0; l < o.length - 1; l++) {
498
497
  const c = o[l].end;
499
498
  if (o[l + 1].start - c >= 60) {
500
499
  this.schedule[e].push({
501
- start: se(be(c)),
502
- end: se(be(c + 60))
500
+ start: se(ge(c)),
501
+ end: se(ge(c + 60))
503
502
  });
504
503
  break;
505
504
  }
506
505
  }
507
506
  }
508
507
  }
509
- this.schedule[e].sort((o, i) => ue(o.start) - ue(i.start)), this.schedule = { ...this.schedule };
508
+ this.schedule[e].sort((o, i) => ye(o.start) - ye(i.start)), this.schedule = { ...this.schedule };
510
509
  }
511
510
  removeTimeRange(e, n) {
512
511
  this.schedule[e].splice(n, 1), this.schedule = { ...this.schedule };
@@ -595,7 +594,7 @@ const wt = class {
595
594
  };
596
595
  }
597
596
  };
598
- Ci([
597
+ wi([
599
598
  S({
600
599
  name: "nylas-availability-picker",
601
600
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -604,10 +603,10 @@ Ci([
604
603
  dn("design:type", Function),
605
604
  dn("design:paramtypes", []),
606
605
  dn("design:returntype", void 0)
607
- ], wt.prototype, "render", null);
608
- wt.style = _i;
609
- const wi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', xi = wi;
610
- var ki = function(e, n, t, a) {
606
+ ], xt.prototype, "render", null);
607
+ xt.style = Ci;
608
+ const xi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', ki = xi;
609
+ var Ei = function(e, n, t, a) {
611
610
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
612
611
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
613
612
  i = Reflect.decorate(e, n, t, a);
@@ -619,9 +618,9 @@ var ki = function(e, n, t, a) {
619
618
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
620
619
  return Reflect.metadata(e, n);
621
620
  };
622
- const xt = class {
621
+ const kt = class {
623
622
  constructor(e) {
624
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.expressFlow = !1, this.selectedCalendar = "";
623
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.expressFlow = !1, this.selectedCalendar = "";
625
624
  }
626
625
  connectedCallback() {
627
626
  d("nylas-booking-calendar-picker", "connectedCallback");
@@ -691,7 +690,7 @@ const xt = class {
691
690
  };
692
691
  }
693
692
  };
694
- ki([
693
+ Ei([
695
694
  S({
696
695
  name: "nylas-booking-calendar-picker",
697
696
  stateToProps: /* @__PURE__ */ new Map([
@@ -709,10 +708,10 @@ ki([
709
708
  cn("design:type", Function),
710
709
  cn("design:paramtypes", []),
711
710
  cn("design:returntype", void 0)
712
- ], xt.prototype, "render", null);
713
- xt.style = xi;
714
- const Ei = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}', Oi = Ei;
715
- var Si = function(e, n, t, a) {
711
+ ], kt.prototype, "render", null);
712
+ kt.style = ki;
713
+ const Oi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}', Si = Oi;
714
+ var Hi = function(e, n, t, a) {
716
715
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
717
716
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
718
717
  i = Reflect.decorate(e, n, t, a);
@@ -724,9 +723,9 @@ var Si = function(e, n, t, a) {
724
723
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
725
724
  return Reflect.metadata(e, n);
726
725
  };
727
- const kt = class {
726
+ const Et = class {
728
727
  constructor(e) {
729
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
728
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
730
729
  }
731
730
  elementNameChangedHandler(e) {
732
731
  d("nylas-booking-confirmation-redirect", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -808,7 +807,7 @@ const kt = class {
808
807
  };
809
808
  }
810
809
  };
811
- Si([
810
+ Hi([
812
811
  S({
813
812
  name: "nylas-booking-confirmation-redirect",
814
813
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -823,10 +822,10 @@ Si([
823
822
  pn("design:type", Function),
824
823
  pn("design:paramtypes", []),
825
824
  pn("design:returntype", void 0)
826
- ], kt.prototype, "render", null);
827
- kt.style = Oi;
828
- const Di = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Hi = Di;
829
- var Ti = function(e, n, t, a) {
825
+ ], Et.prototype, "render", null);
826
+ Et.style = Si;
827
+ const Di = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ti = Di;
828
+ var Ii = function(e, n, t, a) {
830
829
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
831
830
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
832
831
  i = Reflect.decorate(e, n, t, a);
@@ -838,10 +837,10 @@ var Ti = function(e, n, t, a) {
838
837
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
839
838
  return Reflect.metadata(e, n);
840
839
  };
841
- const Et = class {
840
+ const Ot = class {
842
841
  constructor(e) {
843
842
  var n, t;
844
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation", this.selectedBookingType = void 0, this.showDropdown = void 0;
843
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation", this.selectedBookingType = void 0, this.showDropdown = void 0;
845
844
  }
846
845
  elementNameChangedHandler(e) {
847
846
  d("nylas-booking-confirmation-type", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -908,7 +907,7 @@ const Et = class {
908
907
  };
909
908
  }
910
909
  };
911
- Ti([
910
+ Ii([
912
911
  S({
913
912
  name: "nylas-booking-confirmation-type",
914
913
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -923,8 +922,8 @@ Ti([
923
922
  fn("design:type", Function),
924
923
  fn("design:paramtypes", []),
925
924
  fn("design:returntype", void 0)
926
- ], Et.prototype, "render", null);
927
- Et.style = Hi;
925
+ ], Ot.prototype, "render", null);
926
+ Ot.style = Ti;
928
927
  /**!
929
928
  * Sortable 1.15.2
930
929
  * @author RubaXa <trash@rubaxa.org>
@@ -945,7 +944,7 @@ function K(e) {
945
944
  for (var n = 1; n < arguments.length; n++) {
946
945
  var t = arguments[n] != null ? arguments[n] : {};
947
946
  n % 2 ? ct(Object(t), !0).forEach(function(a) {
948
- Ii(e, a, t[a]);
947
+ $i(e, a, t[a]);
949
948
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ct(Object(t)).forEach(function(a) {
950
949
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
951
950
  });
@@ -960,7 +959,7 @@ function Je(e) {
960
959
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
961
960
  }, Je(e);
962
961
  }
963
- function Ii(e, n, t) {
962
+ function $i(e, n, t) {
964
963
  return n in e ? Object.defineProperty(e, n, {
965
964
  value: t,
966
965
  enumerable: !0,
@@ -978,7 +977,7 @@ function ne() {
978
977
  return e;
979
978
  }, ne.apply(this, arguments);
980
979
  }
981
- function $i(e, n) {
980
+ function Fi(e, n) {
982
981
  if (e == null)
983
982
  return {};
984
983
  var t = {}, a = Object.keys(e), o, i;
@@ -989,7 +988,7 @@ function $i(e, n) {
989
988
  function Pi(e, n) {
990
989
  if (e == null)
991
990
  return {};
992
- var t = $i(e, n), a, o;
991
+ var t = Fi(e, n), a, o;
993
992
  if (Object.getOwnPropertySymbols) {
994
993
  var i = Object.getOwnPropertySymbols(e);
995
994
  for (o = 0; o < i.length; o++)
@@ -997,16 +996,16 @@ function Pi(e, n) {
997
996
  }
998
997
  return t;
999
998
  }
1000
- var Fi = "1.15.2";
999
+ var Li = "1.15.2";
1001
1000
  function ee(e) {
1002
1001
  if (typeof window < "u" && window.navigator)
1003
1002
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
1004
1003
  }
1005
- var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i), Ne = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), Ot = ee(/iP(ad|od|hone)/i), St = ee(/chrome/i) && ee(/android/i), Dt = {
1004
+ var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i), Le = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), St = ee(/iP(ad|od|hone)/i), Ht = ee(/chrome/i) && ee(/android/i), Dt = {
1006
1005
  capture: !1,
1007
1006
  passive: !1
1008
1007
  };
1009
- function D(e, n, t) {
1008
+ function H(e, n, t) {
1010
1009
  e.addEventListener(n, t, !te && Dt);
1011
1010
  }
1012
1011
  function k(e, n, t) {
@@ -1073,7 +1072,7 @@ function ke(e, n) {
1073
1072
  var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1074
1073
  return o && new o(t);
1075
1074
  }
1076
- function Ht(e, n, t) {
1075
+ function Tt(e, n, t) {
1077
1076
  if (e) {
1078
1077
  var a = e.getElementsByTagName(n), o = 0, i = a.length;
1079
1078
  if (t)
@@ -1087,7 +1086,7 @@ function X() {
1087
1086
  var e = document.scrollingElement;
1088
1087
  return e || document.documentElement;
1089
1088
  }
1090
- function F(e, n, t, a, o) {
1089
+ function L(e, n, t, a, o) {
1091
1090
  if (!(!e.getBoundingClientRect && e !== window)) {
1092
1091
  var i, r, l, c, p, m, f;
1093
1092
  if (e !== window && e.parentNode && e !== X() ? (i = e.getBoundingClientRect(), r = i.top, l = i.left, c = i.bottom, p = i.right, m = i.height, f = i.width) : (r = 0, l = 0, c = window.innerHeight, p = window.innerWidth, m = window.innerHeight, f = window.innerWidth), (n || t) && e !== window && (o = o || e.parentNode, !te))
@@ -1099,8 +1098,8 @@ function F(e, n, t, a, o) {
1099
1098
  }
1100
1099
  while (o = o.parentNode);
1101
1100
  if (a && e !== window) {
1102
- var g = ke(o || e), y = g && g.a, w = g && g.d;
1103
- g && (r /= w, l /= y, f /= y, m /= w, c = r + m, p = l + f);
1101
+ var b = ke(o || e), y = b && b.a, C = b && b.d;
1102
+ b && (r /= C, l /= y, f /= y, m /= C, c = r + m, p = l + f);
1104
1103
  }
1105
1104
  return {
1106
1105
  top: r,
@@ -1113,8 +1112,8 @@ function F(e, n, t, a, o) {
1113
1112
  }
1114
1113
  }
1115
1114
  function mt(e, n, t) {
1116
- for (var a = le(e, !0), o = F(e)[n]; a; ) {
1117
- var i = F(a)[t], r = void 0;
1115
+ for (var a = le(e, !0), o = L(e)[n]; a; ) {
1116
+ var i = L(a)[t], r = void 0;
1118
1117
  if (t === "top" || t === "left" ? r = o >= i : r = o <= i, !r)
1119
1118
  return a;
1120
1119
  if (a === X())
@@ -1183,7 +1182,7 @@ function le(e, n) {
1183
1182
  while (t = t.parentNode);
1184
1183
  return X();
1185
1184
  }
1186
- function Li(e, n) {
1185
+ function Ai(e, n) {
1187
1186
  if (e && n)
1188
1187
  for (var t in n)
1189
1188
  n.hasOwnProperty(t) && (e[t] = n[t]);
@@ -1192,24 +1191,24 @@ function Li(e, n) {
1192
1191
  function mn(e, n) {
1193
1192
  return Math.round(e.top) === Math.round(n.top) && Math.round(e.left) === Math.round(n.left) && Math.round(e.height) === Math.round(n.height) && Math.round(e.width) === Math.round(n.width);
1194
1193
  }
1195
- var Re;
1196
- function Tt(e, n) {
1194
+ var Ne;
1195
+ function It(e, n) {
1197
1196
  return function() {
1198
- if (!Re) {
1197
+ if (!Ne) {
1199
1198
  var t = arguments, a = this;
1200
- t.length === 1 ? e.call(a, t[0]) : e.apply(a, t), Re = setTimeout(function() {
1201
- Re = void 0;
1199
+ t.length === 1 ? e.call(a, t[0]) : e.apply(a, t), Ne = setTimeout(function() {
1200
+ Ne = void 0;
1202
1201
  }, n);
1203
1202
  }
1204
1203
  };
1205
1204
  }
1206
- function Ai() {
1207
- clearTimeout(Re), Re = void 0;
1205
+ function Mi() {
1206
+ clearTimeout(Ne), Ne = void 0;
1208
1207
  }
1209
- function It(e, n, t) {
1208
+ function $t(e, n, t) {
1210
1209
  e.scrollLeft += n, e.scrollTop += t;
1211
1210
  }
1212
- function $t(e) {
1211
+ function Ft(e) {
1213
1212
  var n = window.Polymer, t = window.jQuery || window.Zepto;
1214
1213
  return n && n.dom ? n.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
1215
1214
  }
@@ -1218,13 +1217,13 @@ function Pt(e, n, t) {
1218
1217
  return Array.from(e.children).forEach(function(o) {
1219
1218
  var i, r, l, c;
1220
1219
  if (!(!G(o, n.draggable, e, !1) || o.animated || o === t)) {
1221
- var p = F(o);
1220
+ var p = L(o);
1222
1221
  a.left = Math.min((i = a.left) !== null && i !== void 0 ? i : 1 / 0, p.left), a.top = Math.min((r = a.top) !== null && r !== void 0 ? r : 1 / 0, p.top), a.right = Math.max((l = a.right) !== null && l !== void 0 ? l : -1 / 0, p.right), a.bottom = Math.max((c = a.bottom) !== null && c !== void 0 ? c : -1 / 0, p.bottom);
1223
1222
  }
1224
1223
  }), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
1225
1224
  }
1226
1225
  var Z = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1227
- function Mi() {
1226
+ function zi() {
1228
1227
  var e = [], n;
1229
1228
  return {
1230
1229
  captureAnimationState: function() {
@@ -1234,7 +1233,7 @@ function Mi() {
1234
1233
  if (!(v(o, "display") === "none" || o === _.ghost)) {
1235
1234
  e.push({
1236
1235
  target: o,
1237
- rect: F(o)
1236
+ rect: L(o)
1238
1237
  });
1239
1238
  var i = K({}, e[e.length - 1].rect);
1240
1239
  if (o.thisAnimationDuration) {
@@ -1262,9 +1261,9 @@ function Mi() {
1262
1261
  }
1263
1262
  var i = !1, r = 0;
1264
1263
  e.forEach(function(l) {
1265
- var c = 0, p = l.target, m = p.fromRect, f = F(p), u = p.prevFromRect, g = p.prevToRect, y = l.rect, w = ke(p, !0);
1266
- w && (f.top -= w.f, f.left -= w.e), p.toRect = f, p.thisAnimationDuration && mn(u, f) && !mn(m, f) && // Make sure animatingRect is on line between toRect & fromRect
1267
- (y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = ji(y, u, g, o.options)), mn(f, m) || (p.prevFromRect = m, p.prevToRect = f, c || (c = o.options.animation), o.animate(p, y, f, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
1264
+ var c = 0, p = l.target, m = p.fromRect, f = L(p), u = p.prevFromRect, b = p.prevToRect, y = l.rect, C = ke(p, !0);
1265
+ C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && mn(u, f) && !mn(m, f) && // Make sure animatingRect is on line between toRect & fromRect
1266
+ (y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = Ui(y, u, b, o.options)), mn(f, m) || (p.prevFromRect = m, p.prevToRect = f, c || (c = o.options.animation), o.animate(p, y, f, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
1268
1267
  p.animationTime = 0, p.prevFromRect = null, p.fromRect = null, p.prevToRect = null, p.thisAnimationDuration = null;
1269
1268
  }, c), p.thisAnimationDuration = c);
1270
1269
  }), clearTimeout(n), i ? n = setTimeout(function() {
@@ -1275,29 +1274,29 @@ function Mi() {
1275
1274
  if (r) {
1276
1275
  v(a, "transition", ""), v(a, "transform", "");
1277
1276
  var l = ke(this.el), c = l && l.a, p = l && l.d, m = (o.left - i.left) / (c || 1), f = (o.top - i.top) / (p || 1);
1278
- a.animatingX = !!m, a.animatingY = !!f, v(a, "transform", "translate3d(" + m + "px," + f + "px,0)"), this.forRepaintDummy = zi(a), v(a, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
1277
+ a.animatingX = !!m, a.animatingY = !!f, v(a, "transform", "translate3d(" + m + "px," + f + "px,0)"), this.forRepaintDummy = ji(a), v(a, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
1279
1278
  v(a, "transition", ""), v(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
1280
1279
  }, r);
1281
1280
  }
1282
1281
  }
1283
1282
  };
1284
1283
  }
1285
- function zi(e) {
1284
+ function ji(e) {
1286
1285
  return e.offsetWidth;
1287
1286
  }
1288
- function ji(e, n, t, a) {
1287
+ function Ui(e, n, t, a) {
1289
1288
  return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) * a.animation;
1290
1289
  }
1291
- var ge = [], hn = {
1290
+ var ve = [], hn = {
1292
1291
  initializeByDefault: !0
1293
1292
  }, je = {
1294
1293
  mount: function(n) {
1295
1294
  for (var t in hn)
1296
1295
  hn.hasOwnProperty(t) && !(t in n) && (n[t] = hn[t]);
1297
- ge.forEach(function(a) {
1296
+ ve.forEach(function(a) {
1298
1297
  if (a.pluginName === n.pluginName)
1299
1298
  throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
1300
- }), ge.push(n);
1299
+ }), ve.push(n);
1301
1300
  },
1302
1301
  pluginEvent: function(n, t, a) {
1303
1302
  var o = this;
@@ -1305,7 +1304,7 @@ var ge = [], hn = {
1305
1304
  o.eventCanceled = !0;
1306
1305
  };
1307
1306
  var i = n + "Global";
1308
- ge.forEach(function(r) {
1307
+ ve.forEach(function(r) {
1309
1308
  t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](K({
1310
1309
  sortable: t
1311
1310
  }, a)), t.options[r.pluginName] && t[r.pluginName][n] && t[r.pluginName][n](K({
@@ -1314,7 +1313,7 @@ var ge = [], hn = {
1314
1313
  });
1315
1314
  },
1316
1315
  initializePlugins: function(n, t, a, o) {
1317
- ge.forEach(function(l) {
1316
+ ve.forEach(function(l) {
1318
1317
  var c = l.pluginName;
1319
1318
  if (!(!n.options[c] && !l.initializeByDefault)) {
1320
1319
  var p = new l(n, t, n.options);
@@ -1329,52 +1328,52 @@ var ge = [], hn = {
1329
1328
  },
1330
1329
  getEventProperties: function(n, t) {
1331
1330
  var a = {};
1332
- return ge.forEach(function(o) {
1331
+ return ve.forEach(function(o) {
1333
1332
  typeof o.eventProperties == "function" && ne(a, o.eventProperties.call(t[o.pluginName], n));
1334
1333
  }), a;
1335
1334
  },
1336
1335
  modifyOption: function(n, t, a) {
1337
1336
  var o;
1338
- return ge.forEach(function(i) {
1337
+ return ve.forEach(function(i) {
1339
1338
  n[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (o = i.optionListeners[t].call(n[i.pluginName], a));
1340
1339
  }), o;
1341
1340
  }
1342
1341
  };
1343
- function Ui(e) {
1344
- var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex, u = e.originalEvent, g = e.putSortable, y = e.extraEventProperties;
1342
+ function Wi(e) {
1343
+ var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex, u = e.originalEvent, b = e.putSortable, y = e.extraEventProperties;
1345
1344
  if (n = n || t && t[Z], !!n) {
1346
- var w, $ = n.options, N = "on" + a.charAt(0).toUpperCase() + a.substr(1);
1347
- window.CustomEvent && !te && !ze ? w = new CustomEvent(a, {
1345
+ var C, D = n.options, F = "on" + a.charAt(0).toUpperCase() + a.substr(1);
1346
+ window.CustomEvent && !te && !ze ? C = new CustomEvent(a, {
1348
1347
  bubbles: !0,
1349
1348
  cancelable: !0
1350
- }) : (w = document.createEvent("Event"), w.initEvent(a, !0, !0)), w.to = r || t, w.from = l || t, w.item = o || t, w.clone = i, w.oldIndex = c, w.newIndex = p, w.oldDraggableIndex = m, w.newDraggableIndex = f, w.originalEvent = u, w.pullMode = g ? g.lastPutMode : void 0;
1351
- var R = K(K({}, y), je.getEventProperties(a, n));
1352
- for (var V in R)
1353
- w[V] = R[V];
1354
- t && t.dispatchEvent(w), $[N] && $[N].call(n, w);
1349
+ }) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = r || t, C.from = l || t, C.item = o || t, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = m, C.newDraggableIndex = f, C.originalEvent = u, C.pullMode = b ? b.lastPutMode : void 0;
1350
+ var N = K(K({}, y), je.getEventProperties(a, n));
1351
+ for (var V in N)
1352
+ C[V] = N[V];
1353
+ t && t.dispatchEvent(C), D[F] && D[F].call(n, C);
1355
1354
  }
1356
1355
  }
1357
- var Wi = ["evt"], z = function(n, t) {
1358
- var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i = Pi(a, Wi);
1356
+ var Bi = ["evt"], z = function(n, t) {
1357
+ var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i = Pi(a, Bi);
1359
1358
  je.pluginEvent.bind(_)(n, t, K({
1360
1359
  dragEl: h,
1361
- parentEl: I,
1362
- ghostEl: C,
1363
- rootEl: H,
1364
- nextEl: he,
1360
+ parentEl: $,
1361
+ ghostEl: w,
1362
+ rootEl: T,
1363
+ nextEl: ue,
1365
1364
  lastDownEl: Ge,
1366
- cloneEl: T,
1365
+ cloneEl: I,
1367
1366
  cloneHidden: re,
1368
1367
  dragStarted: $e,
1369
- putSortable: L,
1368
+ putSortable: R,
1370
1369
  activeSortable: _.active,
1371
1370
  originalEvent: o,
1372
1371
  oldIndex: we,
1373
- oldDraggableIndex: Le,
1372
+ oldDraggableIndex: Re,
1374
1373
  newIndex: B,
1375
1374
  newDraggableIndex: oe,
1376
- hideGhostForTarget: Lt,
1377
- unhideGhostForTarget: At,
1375
+ hideGhostForTarget: At,
1376
+ unhideGhostForTarget: Mt,
1378
1377
  cloneNowHidden: function() {
1379
1378
  re = !0;
1380
1379
  },
@@ -1391,18 +1390,18 @@ var Wi = ["evt"], z = function(n, t) {
1391
1390
  }, i));
1392
1391
  };
1393
1392
  function M(e) {
1394
- Ui(K({
1395
- putSortable: L,
1396
- cloneEl: T,
1393
+ Wi(K({
1394
+ putSortable: R,
1395
+ cloneEl: I,
1397
1396
  targetEl: h,
1398
- rootEl: H,
1397
+ rootEl: T,
1399
1398
  oldIndex: we,
1400
- oldDraggableIndex: Le,
1399
+ oldDraggableIndex: Re,
1401
1400
  newIndex: B,
1402
1401
  newDraggableIndex: oe
1403
1402
  }, e));
1404
1403
  }
1405
- var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [], fe, J, un, yn, ut, yt, $e, ve, Ae, Me = !1, Be = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = Ot, bt = ze || te ? "cssFloat" : "float", Bi = sn && !St && !Ot && "draggable" in document.createElement("div"), Ft = function() {
1404
+ var h, $, w, T, ue, Ge, I, re, we, B, Re, oe, We, R, Ce = !1, en = !1, nn = [], fe, J, un, yn, ut, yt, $e, _e, Ae, Me = !1, Be = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = St, bt = ze || te ? "cssFloat" : "float", Zi = sn && !Ht && !St && "draggable" in document.createElement("div"), Lt = function() {
1406
1405
  if (sn) {
1407
1406
  if (te)
1408
1407
  return !1;
@@ -1410,7 +1409,7 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
1410
1409
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1411
1410
  }
1412
1411
  }(), Nt = function(n, t) {
1413
- var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + F(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + F(r).width;
1412
+ var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + L(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + L(r).width;
1414
1413
  if (a.display === "flex")
1415
1414
  return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1416
1415
  if (a.display === "grid")
@@ -1420,15 +1419,15 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
1420
1419
  return r && (c.clear === "both" || c.clear === f) ? "vertical" : "horizontal";
1421
1420
  }
1422
1421
  return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || p >= o && a[bt] === "none" || r && a[bt] === "none" && p + m > o) ? "vertical" : "horizontal";
1423
- }, Zi = function(n, t, a) {
1422
+ }, qi = function(n, t, a) {
1424
1423
  var o = a ? n.left : n.top, i = a ? n.right : n.bottom, r = a ? n.width : n.height, l = a ? t.left : t.top, c = a ? t.right : t.bottom, p = a ? t.width : t.height;
1425
1424
  return o === l || i === c || o + r / 2 === l + p / 2;
1426
- }, qi = function(n, t) {
1425
+ }, Vi = function(n, t) {
1427
1426
  var a;
1428
1427
  return nn.some(function(o) {
1429
1428
  var i = o[Z].options.emptyInsertThreshold;
1430
1429
  if (!(!i || et(o))) {
1431
- var r = F(o), l = n >= r.left - i && n <= r.right + i, c = t >= r.top - i && t <= r.bottom + i;
1430
+ var r = L(o), l = n >= r.left - i && n <= r.right + i, c = t >= r.top - i && t <= r.bottom + i;
1432
1431
  if (l && c)
1433
1432
  return a = o;
1434
1433
  }
@@ -1453,19 +1452,19 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
1453
1452
  (!o || Je(o) != "object") && (o = {
1454
1453
  name: o
1455
1454
  }), a.name = o.name, a.checkPull = t(o.pull, !0), a.checkPut = t(o.put), a.revertClone = o.revertClone, n.group = a;
1456
- }, Lt = function() {
1457
- !Ft && C && v(C, "display", "none");
1458
1455
  }, At = function() {
1459
- !Ft && C && v(C, "display", "");
1456
+ !Lt && w && v(w, "display", "none");
1457
+ }, Mt = function() {
1458
+ !Lt && w && v(w, "display", "");
1460
1459
  };
1461
- sn && !St && document.addEventListener("click", function(e) {
1460
+ sn && !Ht && document.addEventListener("click", function(e) {
1462
1461
  if (en)
1463
1462
  return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), en = !1, !1;
1464
1463
  }, !0);
1465
1464
  var me = function(n) {
1466
1465
  if (h) {
1467
1466
  n = n.touches ? n.touches[0] : n;
1468
- var t = qi(n.clientX, n.clientY);
1467
+ var t = Vi(n.clientX, n.clientY);
1469
1468
  if (t) {
1470
1469
  var a = {};
1471
1470
  for (var o in n)
@@ -1473,7 +1472,7 @@ var me = function(n) {
1473
1472
  a.target = a.rootEl = t, a.preventDefault = void 0, a.stopPropagation = void 0, t[Z]._onDragOver(a);
1474
1473
  }
1475
1474
  }
1476
- }, Vi = function(n) {
1475
+ }, Ji = function(n) {
1477
1476
  h && h.parentNode[Z]._isOutsideThisEl(n.target);
1478
1477
  };
1479
1478
  function _(e, n) {
@@ -1522,7 +1521,7 @@ function _(e, n) {
1522
1521
  x: 0,
1523
1522
  y: 0
1524
1523
  },
1525
- supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !Ne,
1524
+ supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !Le,
1526
1525
  emptyInsertThreshold: 5
1527
1526
  };
1528
1527
  je.initializePlugins(this, e, t);
@@ -1531,13 +1530,13 @@ function _(e, n) {
1531
1530
  Rt(n);
1532
1531
  for (var o in this)
1533
1532
  o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
1534
- this.nativeDraggable = n.forceFallback ? !1 : Bi, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? D(e, "pointerdown", this._onTapStart) : (D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart)), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), nn.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ne(this, Mi());
1533
+ this.nativeDraggable = n.forceFallback ? !1 : Zi, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), nn.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ne(this, zi());
1535
1534
  }
1536
1535
  _.prototype = /** @lends Sortable.prototype */
1537
1536
  {
1538
1537
  constructor: _,
1539
1538
  _isOutsideThisEl: function(n) {
1540
- !this.el.contains(n) && n !== this.el && (ve = null);
1539
+ !this.el.contains(n) && n !== this.el && (_e = null);
1541
1540
  },
1542
1541
  _getDirection: function(n, t) {
1543
1542
  return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t, h) : this.options.direction;
@@ -1545,8 +1544,8 @@ _.prototype = /** @lends Sortable.prototype */
1545
1544
  _onTapStart: function(n) {
1546
1545
  if (n.cancelable) {
1547
1546
  var t = this, a = this.el, o = this.options, i = o.preventOnFilter, r = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, c = (l || n).target, p = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || c, m = o.filter;
1548
- if (ns(a), !h && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Ne && c && c.tagName.toUpperCase() === "SELECT") && (c = G(c, o.draggable, a, !1), !(c && c.animated) && Ge !== c)) {
1549
- if (we = q(c), Le = q(c, o.draggable), typeof m == "function") {
1547
+ if (ts(a), !h && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Le && c && c.tagName.toUpperCase() === "SELECT") && (c = G(c, o.draggable, a, !1), !(c && c.animated) && Ge !== c)) {
1548
+ if (we = q(c), Re = q(c, o.draggable), typeof m == "function") {
1550
1549
  if (m.call(this, n, c, this)) {
1551
1550
  M({
1552
1551
  sortable: t,
@@ -1583,8 +1582,8 @@ _.prototype = /** @lends Sortable.prototype */
1583
1582
  _prepareDragStart: function(n, t, a) {
1584
1583
  var o = this, i = o.el, r = o.options, l = i.ownerDocument, c;
1585
1584
  if (a && !h && a.parentNode === i) {
1586
- var p = F(a);
1587
- if (H = i, h = a, I = h.parentNode, he = h.nextSibling, Ge = a, We = r.group, _.dragged = h, fe = {
1585
+ var p = L(a);
1586
+ if (T = i, h = a, $ = h.parentNode, ue = h.nextSibling, Ge = a, We = r.group, _.dragged = h, fe = {
1588
1587
  target: h,
1589
1588
  clientX: (t || n).clientX,
1590
1589
  clientY: (t || n).clientY
@@ -1601,15 +1600,15 @@ _.prototype = /** @lends Sortable.prototype */
1601
1600
  originalEvent: n
1602
1601
  }), W(h, r.chosenClass, !0);
1603
1602
  }, r.ignore.split(",").forEach(function(m) {
1604
- Ht(h, m.trim(), gn);
1605
- }), D(l, "dragover", me), D(l, "mousemove", me), D(l, "touchmove", me), D(l, "mouseup", o._onDrop), D(l, "touchend", o._onDrop), D(l, "touchcancel", o._onDrop), pt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), z("delayStart", this, {
1603
+ Tt(h, m.trim(), gn);
1604
+ }), H(l, "dragover", me), H(l, "mousemove", me), H(l, "touchmove", me), H(l, "mouseup", o._onDrop), H(l, "touchend", o._onDrop), H(l, "touchcancel", o._onDrop), pt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), z("delayStart", this, {
1606
1605
  evt: n
1607
1606
  }), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ze || te))) {
1608
1607
  if (_.eventCanceled) {
1609
1608
  this._onDrop();
1610
1609
  return;
1611
1610
  }
1612
- D(l, "mouseup", o._disableDelayedDrag), D(l, "touchend", o._disableDelayedDrag), D(l, "touchcancel", o._disableDelayedDrag), D(l, "mousemove", o._delayedDragTouchMoveHandler), D(l, "touchmove", o._delayedDragTouchMoveHandler), r.supportPointer && D(l, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(c, r.delay);
1611
+ H(l, "mouseup", o._disableDelayedDrag), H(l, "touchend", o._disableDelayedDrag), H(l, "touchcancel", o._disableDelayedDrag), H(l, "mousemove", o._delayedDragTouchMoveHandler), H(l, "touchmove", o._delayedDragTouchMoveHandler), r.supportPointer && H(l, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(c, r.delay);
1613
1612
  } else
1614
1613
  c();
1615
1614
  }
@@ -1626,7 +1625,7 @@ _.prototype = /** @lends Sortable.prototype */
1626
1625
  k(n, "mouseup", this._disableDelayedDrag), k(n, "touchend", this._disableDelayedDrag), k(n, "touchcancel", this._disableDelayedDrag), k(n, "mousemove", this._delayedDragTouchMoveHandler), k(n, "touchmove", this._delayedDragTouchMoveHandler), k(n, "pointermove", this._delayedDragTouchMoveHandler);
1627
1626
  },
1628
1627
  _triggerDragStart: function(n, t) {
1629
- t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ? D(document, "pointermove", this._onTouchMove) : t ? D(document, "touchmove", this._onTouchMove) : D(document, "mousemove", this._onTouchMove) : (D(h, "dragend", this), D(H, "dragstart", this._onDragStart));
1628
+ t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(h, "dragend", this), H(T, "dragstart", this._onDragStart));
1630
1629
  try {
1631
1630
  document.selection ? Xe(function() {
1632
1631
  document.selection.empty();
@@ -1635,10 +1634,10 @@ _.prototype = /** @lends Sortable.prototype */
1635
1634
  }
1636
1635
  },
1637
1636
  _dragStarted: function(n, t) {
1638
- if (Ce = !1, H && h) {
1637
+ if (Ce = !1, T && h) {
1639
1638
  z("dragStarted", this, {
1640
1639
  evt: t
1641
- }), this.nativeDraggable && D(document, "dragover", Vi);
1640
+ }), this.nativeDraggable && H(document, "dragover", Ji);
1642
1641
  var a = this.options;
1643
1642
  !n && W(h, a.dragClass, !1), W(h, a.ghostClass, !0), _.active = this, n && this._appendGhost(), M({
1644
1643
  sortable: this,
@@ -1650,7 +1649,7 @@ _.prototype = /** @lends Sortable.prototype */
1650
1649
  },
1651
1650
  _emulateDragOver: function() {
1652
1651
  if (J) {
1653
- this._lastX = J.clientX, this._lastY = J.clientY, Lt();
1652
+ this._lastX = J.clientX, this._lastY = J.clientY, At();
1654
1653
  for (var n = document.elementFromPoint(J.clientX, J.clientY), t = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(J.clientX, J.clientY), n !== t); )
1655
1654
  t = n;
1656
1655
  if (h.parentNode[Z]._isOutsideThisEl(n), t)
@@ -1667,18 +1666,18 @@ _.prototype = /** @lends Sortable.prototype */
1667
1666
  }
1668
1667
  n = t;
1669
1668
  } while (t = t.parentNode);
1670
- At();
1669
+ Mt();
1671
1670
  }
1672
1671
  },
1673
1672
  _onTouchMove: function(n) {
1674
1673
  if (fe) {
1675
- var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, r = C && ke(C, !0), l = C && r && r.a, c = C && r && r.d, p = Ze && A && ht(A), m = (i.clientX - fe.clientX + o.x) / (l || 1) + (p ? p[0] - bn[0] : 0) / (l || 1), f = (i.clientY - fe.clientY + o.y) / (c || 1) + (p ? p[1] - bn[1] : 0) / (c || 1);
1674
+ var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, r = w && ke(w, !0), l = w && r && r.a, c = w && r && r.d, p = Ze && A && ht(A), m = (i.clientX - fe.clientX + o.x) / (l || 1) + (p ? p[0] - bn[0] : 0) / (l || 1), f = (i.clientY - fe.clientY + o.y) / (c || 1) + (p ? p[1] - bn[1] : 0) / (c || 1);
1676
1675
  if (!_.active && !Ce) {
1677
1676
  if (a && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < a)
1678
1677
  return;
1679
1678
  this._onDragStart(n, !0);
1680
1679
  }
1681
- if (C) {
1680
+ if (w) {
1682
1681
  r ? (r.e += m - (un || 0), r.f += f - (yn || 0)) : r = {
1683
1682
  a: 1,
1684
1683
  b: 0,
@@ -1688,20 +1687,20 @@ _.prototype = /** @lends Sortable.prototype */
1688
1687
  f
1689
1688
  };
1690
1689
  var u = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
1691
- v(C, "webkitTransform", u), v(C, "mozTransform", u), v(C, "msTransform", u), v(C, "transform", u), un = m, yn = f, J = i;
1690
+ v(w, "webkitTransform", u), v(w, "mozTransform", u), v(w, "msTransform", u), v(w, "transform", u), un = m, yn = f, J = i;
1692
1691
  }
1693
1692
  n.cancelable && n.preventDefault();
1694
1693
  }
1695
1694
  },
1696
1695
  _appendGhost: function() {
1697
- if (!C) {
1698
- var n = this.options.fallbackOnBody ? document.body : H, t = F(h, !0, Ze, !0, n), a = this.options;
1696
+ if (!w) {
1697
+ var n = this.options.fallbackOnBody ? document.body : T, t = L(h, !0, Ze, !0, n), a = this.options;
1699
1698
  if (Ze) {
1700
1699
  for (A = n; v(A, "position") === "static" && v(A, "transform") === "none" && A !== document; )
1701
1700
  A = A.parentNode;
1702
1701
  A !== document.body && A !== document.documentElement ? (A === document && (A = X()), t.top += A.scrollTop, t.left += A.scrollLeft) : A = X(), bn = ht(A);
1703
1702
  }
1704
- C = h.cloneNode(!0), W(C, a.ghostClass, !1), W(C, a.fallbackClass, !0), W(C, a.dragClass, !0), v(C, "transition", ""), v(C, "transform", ""), v(C, "box-sizing", "border-box"), v(C, "margin", 0), v(C, "top", t.top), v(C, "left", t.left), v(C, "width", t.width), v(C, "height", t.height), v(C, "opacity", "0.8"), v(C, "position", Ze ? "absolute" : "fixed"), v(C, "zIndex", "100000"), v(C, "pointerEvents", "none"), _.ghost = C, n.appendChild(C), v(C, "transform-origin", ut / parseInt(C.style.width) * 100 + "% " + yt / parseInt(C.style.height) * 100 + "%");
1703
+ w = h.cloneNode(!0), W(w, a.ghostClass, !1), W(w, a.fallbackClass, !0), W(w, a.dragClass, !0), v(w, "transition", ""), v(w, "transform", ""), v(w, "box-sizing", "border-box"), v(w, "margin", 0), v(w, "top", t.top), v(w, "left", t.left), v(w, "width", t.width), v(w, "height", t.height), v(w, "opacity", "0.8"), v(w, "position", Ze ? "absolute" : "fixed"), v(w, "zIndex", "100000"), v(w, "pointerEvents", "none"), _.ghost = w, n.appendChild(w), v(w, "transform-origin", ut / parseInt(w.style.width) * 100 + "% " + yt / parseInt(w.style.height) * 100 + "%");
1705
1704
  }
1706
1705
  },
1707
1706
  _onDragStart: function(n, t) {
@@ -1712,45 +1711,45 @@ _.prototype = /** @lends Sortable.prototype */
1712
1711
  this._onDrop();
1713
1712
  return;
1714
1713
  }
1715
- z("setupClone", this), _.eventCanceled || (T = $t(h), T.removeAttribute("id"), T.draggable = !1, T.style["will-change"] = "", this._hideClone(), W(T, this.options.chosenClass, !1), _.clone = T), a.cloneId = Xe(function() {
1716
- z("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || H.insertBefore(T, h), a._hideClone(), M({
1714
+ z("setupClone", this), _.eventCanceled || (I = Ft(h), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), W(I, this.options.chosenClass, !1), _.clone = I), a.cloneId = Xe(function() {
1715
+ z("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || T.insertBefore(I, h), a._hideClone(), M({
1717
1716
  sortable: a,
1718
1717
  name: "clone"
1719
1718
  }));
1720
- }), !t && W(h, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, h)), D(document, "drop", a), v(h, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), D(document, "selectstart", a), $e = !0, Ne && v(document.body, "user-select", "none");
1719
+ }), !t && W(h, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, h)), H(document, "drop", a), v(h, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), H(document, "selectstart", a), $e = !0, Le && v(document.body, "user-select", "none");
1721
1720
  },
1722
1721
  // Returns true - if no further action is needed (either inserted or another condition)
1723
1722
  _onDragOver: function(n) {
1724
- var t = this.el, a = n.target, o, i, r, l = this.options, c = l.group, p = _.active, m = We === c, f = l.sort, u = L || p, g, y = this, w = !1;
1723
+ var t = this.el, a = n.target, o, i, r, l = this.options, c = l.group, p = _.active, m = We === c, f = l.sort, u = R || p, b, y = this, C = !1;
1725
1724
  if (Gn)
1726
1725
  return;
1727
- function $(Ie, ma) {
1726
+ function D(Ie, ha) {
1728
1727
  z(Ie, y, K({
1729
1728
  evt: n,
1730
1729
  isOwner: m,
1731
- axis: g ? "vertical" : "horizontal",
1730
+ axis: b ? "vertical" : "horizontal",
1732
1731
  revert: r,
1733
1732
  dragRect: o,
1734
1733
  targetRect: i,
1735
1734
  canSort: f,
1736
1735
  fromSortable: u,
1737
1736
  target: a,
1738
- completed: R,
1739
- onMove: function(at, ha) {
1740
- return qe(H, t, h, o, at, F(at), n, ha);
1737
+ completed: N,
1738
+ onMove: function(at, ua) {
1739
+ return qe(T, t, h, o, at, L(at), n, ua);
1741
1740
  },
1742
1741
  changed: V
1743
- }, ma));
1742
+ }, ha));
1744
1743
  }
1745
- function N() {
1746
- $("dragOverAnimationCapture"), y.captureAnimationState(), y !== u && u.captureAnimationState();
1744
+ function F() {
1745
+ D("dragOverAnimationCapture"), y.captureAnimationState(), y !== u && u.captureAnimationState();
1747
1746
  }
1748
- function R(Ie) {
1749
- return $("dragOverCompleted", {
1747
+ function N(Ie) {
1748
+ return D("dragOverCompleted", {
1750
1749
  insertion: Ie
1751
- }), Ie && (m ? p._hideClone() : p._showClone(y), y !== u && (W(h, L ? L.options.ghostClass : p.options.ghostClass, !1), W(h, l.ghostClass, !0)), L !== y && y !== _.active ? L = y : y === _.active && L && (L = null), u === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
1752
- $("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
1753
- }), y !== u && (u.animateAll(), u._ignoreWhileAnimating = null)), (a === h && !h.animated || a === t && !a.animated) && (ve = null), !l.dragoverBubble && !n.rootEl && a !== document && (h.parentNode[Z]._isOutsideThisEl(n.target), !Ie && me(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), w = !0;
1750
+ }), Ie && (m ? p._hideClone() : p._showClone(y), y !== u && (W(h, R ? R.options.ghostClass : p.options.ghostClass, !1), W(h, l.ghostClass, !0)), R !== y && y !== _.active ? R = y : y === _.active && R && (R = null), u === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
1751
+ D("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
1752
+ }), y !== u && (u.animateAll(), u._ignoreWhileAnimating = null)), (a === h && !h.animated || a === t && !a.animated) && (_e = null), !l.dragoverBubble && !n.rootEl && a !== document && (h.parentNode[Z]._isOutsideThisEl(n.target), !Ie && me(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), C = !0;
1754
1753
  }
1755
1754
  function V() {
1756
1755
  B = q(h), oe = q(h, l.draggable), M({
@@ -1762,49 +1761,49 @@ _.prototype = /** @lends Sortable.prototype */
1762
1761
  originalEvent: n
1763
1762
  });
1764
1763
  }
1765
- if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = G(a, l.draggable, t, !0), $("dragOver"), _.eventCanceled)
1766
- return w;
1764
+ if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = G(a, l.draggable, t, !0), D("dragOver"), _.eventCanceled)
1765
+ return C;
1767
1766
  if (h.contains(n.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
1768
- return R(!1);
1769
- if (en = !1, p && !l.disabled && (m ? f || (r = I !== H) : L === this || (this.lastPutMode = We.checkPull(this, p, h, n)) && c.checkPut(this, p, h, n))) {
1770
- if (g = this._getDirection(n, a) === "vertical", o = F(h), $("dragOverValid"), _.eventCanceled)
1771
- return w;
1767
+ return N(!1);
1768
+ if (en = !1, p && !l.disabled && (m ? f || (r = $ !== T) : R === this || (this.lastPutMode = We.checkPull(this, p, h, n)) && c.checkPut(this, p, h, n))) {
1769
+ if (b = this._getDirection(n, a) === "vertical", o = L(h), D("dragOverValid"), _.eventCanceled)
1770
+ return C;
1772
1771
  if (r)
1773
- return I = H, N(), this._hideClone(), $("revert"), _.eventCanceled || (he ? H.insertBefore(h, he) : H.appendChild(h)), R(!0);
1772
+ return $ = T, F(), this._hideClone(), D("revert"), _.eventCanceled || (ue ? T.insertBefore(h, ue) : T.appendChild(h)), N(!0);
1774
1773
  var j = et(t, l.draggable);
1775
- if (!j || Xi(n, g, this) && !j.animated) {
1774
+ if (!j || Ki(n, b, this) && !j.animated) {
1776
1775
  if (j === h)
1777
- return R(!1);
1778
- if (j && t === n.target && (a = j), a && (i = F(a)), qe(H, t, h, o, a, i, n, !!a) !== !1)
1779
- return N(), j && j.nextSibling ? t.insertBefore(h, j.nextSibling) : t.appendChild(h), I = t, V(), R(!0);
1780
- } else if (j && Yi(n, g, this)) {
1776
+ return N(!1);
1777
+ if (j && t === n.target && (a = j), a && (i = L(a)), qe(T, t, h, o, a, i, n, !!a) !== !1)
1778
+ return F(), j && j.nextSibling ? t.insertBefore(h, j.nextSibling) : t.appendChild(h), $ = t, V(), N(!0);
1779
+ } else if (j && Xi(n, b, this)) {
1781
1780
  var de = Ee(t, 0, l, !0);
1782
1781
  if (de === h)
1783
- return R(!1);
1784
- if (a = de, i = F(a), qe(H, t, h, o, a, i, n, !1) !== !1)
1785
- return N(), t.insertBefore(h, de), I = t, V(), R(!0);
1782
+ return N(!1);
1783
+ if (a = de, i = L(a), qe(T, t, h, o, a, i, n, !1) !== !1)
1784
+ return F(), t.insertBefore(h, de), $ = t, V(), N(!0);
1786
1785
  } else if (a.parentNode === t) {
1787
- i = F(a);
1788
- var Y = 0, ce, Se = h.parentNode !== t, U = !Zi(h.animated && h.toRect || o, a.animated && a.toRect || i, g), De = g ? "top" : "left", ae = mt(a, "top", "top") || mt(h, "top", "top"), He = ae ? ae.scrollTop : void 0;
1789
- ve !== a && (ce = i[De], Me = !1, Be = !U && l.invertSwap || Se), Y = Ki(n, a, i, g, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, ve === a);
1786
+ i = L(a);
1787
+ var Y = 0, ce, Se = h.parentNode !== t, U = !qi(h.animated && h.toRect || o, a.animated && a.toRect || i, b), He = b ? "top" : "left", ae = mt(a, "top", "top") || mt(h, "top", "top"), De = ae ? ae.scrollTop : void 0;
1788
+ _e !== a && (ce = i[He], Me = !1, Be = !U && l.invertSwap || Se), Y = Qi(n, a, i, b, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, _e === a);
1790
1789
  var Q;
1791
1790
  if (Y !== 0) {
1792
1791
  var pe = q(h);
1793
1792
  do
1794
- pe -= Y, Q = I.children[pe];
1795
- while (Q && (v(Q, "display") === "none" || Q === C));
1793
+ pe -= Y, Q = $.children[pe];
1794
+ while (Q && (v(Q, "display") === "none" || Q === w));
1796
1795
  }
1797
1796
  if (Y === 0 || Q === a)
1798
- return R(!1);
1799
- ve = a, Ae = Y;
1797
+ return N(!1);
1798
+ _e = a, Ae = Y;
1800
1799
  var Te = a.nextElementSibling, ie = !1;
1801
1800
  ie = Y === 1;
1802
- var Ue = qe(H, t, h, o, a, i, n, ie);
1801
+ var Ue = qe(T, t, h, o, a, i, n, ie);
1803
1802
  if (Ue !== !1)
1804
- return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(Gi, 30), N(), ie && !Te ? t.appendChild(h) : a.parentNode.insertBefore(h, ie ? Te : a), ae && It(ae, 0, He - ae.scrollTop), I = h.parentNode, ce !== void 0 && !Be && (Ye = Math.abs(ce - F(a)[De])), V(), R(!0);
1803
+ return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(Yi, 30), F(), ie && !Te ? t.appendChild(h) : a.parentNode.insertBefore(h, ie ? Te : a), ae && $t(ae, 0, De - ae.scrollTop), $ = h.parentNode, ce !== void 0 && !Be && (Ye = Math.abs(ce - L(a)[He])), V(), N(!0);
1805
1804
  }
1806
1805
  if (t.contains(h))
1807
- return R(!1);
1806
+ return N(!1);
1808
1807
  }
1809
1808
  return !1;
1810
1809
  },
@@ -1820,58 +1819,58 @@ _.prototype = /** @lends Sortable.prototype */
1820
1819
  var t = this.el, a = this.options;
1821
1820
  if (B = q(h), oe = q(h, a.draggable), z("drop", this, {
1822
1821
  evt: n
1823
- }), I = h && h.parentNode, B = q(h), oe = q(h, a.draggable), _.eventCanceled) {
1822
+ }), $ = h && h.parentNode, B = q(h), oe = q(h, a.draggable), _.eventCanceled) {
1824
1823
  this._nulling();
1825
1824
  return;
1826
1825
  }
1827
- Ce = !1, Be = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yn(this.cloneId), Yn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ne && v(document.body, "user-select", ""), v(h, "transform", ""), n && ($e && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (H === I || L && L.lastPutMode !== "clone") && T && T.parentNode && T.parentNode.removeChild(T), h && (this.nativeDraggable && k(h, "dragend", this), gn(h), h.style["will-change"] = "", $e && !Ce && W(h, L ? L.options.ghostClass : this.options.ghostClass, !1), W(h, this.options.chosenClass, !1), M({
1826
+ Ce = !1, Be = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yn(this.cloneId), Yn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Le && v(document.body, "user-select", ""), v(h, "transform", ""), n && ($e && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (T === $ || R && R.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), h && (this.nativeDraggable && k(h, "dragend", this), gn(h), h.style["will-change"] = "", $e && !Ce && W(h, R ? R.options.ghostClass : this.options.ghostClass, !1), W(h, this.options.chosenClass, !1), M({
1828
1827
  sortable: this,
1829
1828
  name: "unchoose",
1830
- toEl: I,
1829
+ toEl: $,
1831
1830
  newIndex: null,
1832
1831
  newDraggableIndex: null,
1833
1832
  originalEvent: n
1834
- }), H !== I ? (B >= 0 && (M({
1835
- rootEl: I,
1833
+ }), T !== $ ? (B >= 0 && (M({
1834
+ rootEl: $,
1836
1835
  name: "add",
1837
- toEl: I,
1838
- fromEl: H,
1836
+ toEl: $,
1837
+ fromEl: T,
1839
1838
  originalEvent: n
1840
1839
  }), M({
1841
1840
  sortable: this,
1842
1841
  name: "remove",
1843
- toEl: I,
1842
+ toEl: $,
1844
1843
  originalEvent: n
1845
1844
  }), M({
1846
- rootEl: I,
1845
+ rootEl: $,
1847
1846
  name: "sort",
1848
- toEl: I,
1849
- fromEl: H,
1847
+ toEl: $,
1848
+ fromEl: T,
1850
1849
  originalEvent: n
1851
1850
  }), M({
1852
1851
  sortable: this,
1853
1852
  name: "sort",
1854
- toEl: I,
1853
+ toEl: $,
1855
1854
  originalEvent: n
1856
- })), L && L.save()) : B !== we && B >= 0 && (M({
1855
+ })), R && R.save()) : B !== we && B >= 0 && (M({
1857
1856
  sortable: this,
1858
1857
  name: "update",
1859
- toEl: I,
1858
+ toEl: $,
1860
1859
  originalEvent: n
1861
1860
  }), M({
1862
1861
  sortable: this,
1863
1862
  name: "sort",
1864
- toEl: I,
1863
+ toEl: $,
1865
1864
  originalEvent: n
1866
- })), _.active && ((B == null || B === -1) && (B = we, oe = Le), M({
1865
+ })), _.active && ((B == null || B === -1) && (B = we, oe = Re), M({
1867
1866
  sortable: this,
1868
1867
  name: "end",
1869
- toEl: I,
1868
+ toEl: $,
1870
1869
  originalEvent: n
1871
1870
  }), this.save()))), this._nulling();
1872
1871
  },
1873
1872
  _nulling: function() {
1874
- z("nulling", this), H = h = I = C = he = T = Ge = re = fe = J = $e = B = oe = we = Le = ve = Ae = L = We = _.dragged = _.ghost = _.clone = _.active = null, tn.forEach(function(n) {
1873
+ z("nulling", this), T = h = $ = w = ue = I = Ge = re = fe = J = $e = B = oe = we = Re = _e = Ae = R = We = _.dragged = _.ghost = _.clone = _.active = null, tn.forEach(function(n) {
1875
1874
  n.checked = !0;
1876
1875
  }), tn.length = un = yn = 0;
1877
1876
  },
@@ -1883,7 +1882,7 @@ _.prototype = /** @lends Sortable.prototype */
1883
1882
  break;
1884
1883
  case "dragenter":
1885
1884
  case "dragover":
1886
- h && (this._onDragOver(n), Ji(n));
1885
+ h && (this._onDragOver(n), Gi(n));
1887
1886
  break;
1888
1887
  case "selectstart":
1889
1888
  n.preventDefault();
@@ -1896,7 +1895,7 @@ _.prototype = /** @lends Sortable.prototype */
1896
1895
  */
1897
1896
  toArray: function() {
1898
1897
  for (var n = [], t, a = this.el.children, o = 0, i = a.length, r = this.options; o < i; o++)
1899
- t = a[o], G(t, r.draggable, this.el, !1) && n.push(t.getAttribute(r.dataIdAttr) || es(t));
1898
+ t = a[o], G(t, r.draggable, this.el, !1) && n.push(t.getAttribute(r.dataIdAttr) || ns(t));
1900
1899
  return n;
1901
1900
  },
1902
1901
  /**
@@ -1955,7 +1954,7 @@ _.prototype = /** @lends Sortable.prototype */
1955
1954
  if (!re) {
1956
1955
  if (z("hideClone", this), _.eventCanceled)
1957
1956
  return;
1958
- v(T, "display", "none"), this.options.removeCloneOnHide && T.parentNode && T.parentNode.removeChild(T), re = !0;
1957
+ v(I, "display", "none"), this.options.removeCloneOnHide && I.parentNode && I.parentNode.removeChild(I), re = !0;
1959
1958
  }
1960
1959
  },
1961
1960
  _showClone: function(n) {
@@ -1966,11 +1965,11 @@ _.prototype = /** @lends Sortable.prototype */
1966
1965
  if (re) {
1967
1966
  if (z("showClone", this), _.eventCanceled)
1968
1967
  return;
1969
- h.parentNode == H && !this.options.group.revertClone ? H.insertBefore(T, h) : he ? H.insertBefore(T, he) : H.appendChild(T), this.options.group.revertClone && this.animate(h, T), v(T, "display", ""), re = !1;
1968
+ h.parentNode == T && !this.options.group.revertClone ? T.insertBefore(I, h) : ue ? T.insertBefore(I, ue) : T.appendChild(I), this.options.group.revertClone && this.animate(h, I), v(I, "display", ""), re = !1;
1970
1969
  }
1971
1970
  }
1972
1971
  };
1973
- function Ji(e) {
1972
+ function Gi(e) {
1974
1973
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1975
1974
  }
1976
1975
  function qe(e, n, t, a, o, i, r, l) {
@@ -1978,23 +1977,23 @@ function qe(e, n, t, a, o, i, r, l) {
1978
1977
  return window.CustomEvent && !te && !ze ? c = new CustomEvent("move", {
1979
1978
  bubbles: !0,
1980
1979
  cancelable: !0
1981
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i || F(n), c.willInsertAfter = l, c.originalEvent = r, e.dispatchEvent(c), m && (f = m.call(p, c, r)), f;
1980
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i || L(n), c.willInsertAfter = l, c.originalEvent = r, e.dispatchEvent(c), m && (f = m.call(p, c, r)), f;
1982
1981
  }
1983
1982
  function gn(e) {
1984
1983
  e.draggable = !1;
1985
1984
  }
1986
- function Gi() {
1985
+ function Yi() {
1987
1986
  Gn = !1;
1988
1987
  }
1989
- function Yi(e, n, t) {
1990
- var a = F(Ee(t.el, 0, t.options, !0)), o = Pt(t.el, t.options, C), i = 10;
1988
+ function Xi(e, n, t) {
1989
+ var a = L(Ee(t.el, 0, t.options, !0)), o = Pt(t.el, t.options, w), i = 10;
1991
1990
  return n ? e.clientX < o.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < o.top - i || e.clientY < a.bottom && e.clientX < a.left;
1992
1991
  }
1993
- function Xi(e, n, t) {
1994
- var a = F(et(t.el, t.options.draggable)), o = Pt(t.el, t.options, C), i = 10;
1992
+ function Ki(e, n, t) {
1993
+ var a = L(et(t.el, t.options.draggable)), o = Pt(t.el, t.options, w), i = 10;
1995
1994
  return n ? e.clientX > o.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > o.bottom + i || e.clientX > a.right && e.clientY > a.top;
1996
1995
  }
1997
- function Ki(e, n, t, a, o, i, r, l) {
1996
+ function Qi(e, n, t, a, o, i, r, l) {
1998
1997
  var c = a ? e.clientY : e.clientX, p = a ? t.height : t.width, m = a ? t.top : t.left, f = a ? t.bottom : t.right, u = !1;
1999
1998
  if (!r) {
2000
1999
  if (l && Ye < p * o) {
@@ -2003,19 +2002,19 @@ function Ki(e, n, t, a, o, i, r, l) {
2003
2002
  else if (Ae === 1 ? c < m + Ye : c > f - Ye)
2004
2003
  return -Ae;
2005
2004
  } else if (c > m + p * (1 - o) / 2 && c < f - p * (1 - o) / 2)
2006
- return Qi(n);
2005
+ return es(n);
2007
2006
  }
2008
2007
  return u = u || r, u && (c < m + p * i / 2 || c > f - p * i / 2) ? c > m + p / 2 ? 1 : -1 : 0;
2009
2008
  }
2010
- function Qi(e) {
2009
+ function es(e) {
2011
2010
  return q(h) < q(e) ? 1 : -1;
2012
2011
  }
2013
- function es(e) {
2012
+ function ns(e) {
2014
2013
  for (var n = e.tagName + e.className + e.src + e.href + e.textContent, t = n.length, a = 0; t--; )
2015
2014
  a += n.charCodeAt(t);
2016
2015
  return a.toString(36);
2017
2016
  }
2018
- function ns(e) {
2017
+ function ts(e) {
2019
2018
  tn.length = 0;
2020
2019
  for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
2021
2020
  var a = n[t];
@@ -2028,22 +2027,22 @@ function Xe(e) {
2028
2027
  function Yn(e) {
2029
2028
  return clearTimeout(e);
2030
2029
  }
2031
- sn && D(document, "touchmove", function(e) {
2030
+ sn && H(document, "touchmove", function(e) {
2032
2031
  (_.active || Ce) && e.cancelable && e.preventDefault();
2033
2032
  });
2034
2033
  _.utils = {
2035
- on: D,
2034
+ on: H,
2036
2035
  off: k,
2037
2036
  css: v,
2038
- find: Ht,
2037
+ find: Tt,
2039
2038
  is: function(n, t) {
2040
2039
  return !!G(n, t, n, !1);
2041
2040
  },
2042
- extend: Li,
2043
- throttle: Tt,
2041
+ extend: Ai,
2042
+ throttle: It,
2044
2043
  closest: G,
2045
2044
  toggleClass: W,
2046
- clone: $t,
2045
+ clone: Ft,
2047
2046
  index: q,
2048
2047
  nextTick: Xe,
2049
2048
  cancelNextTick: Yn,
@@ -2065,9 +2064,9 @@ _.mount = function() {
2065
2064
  _.create = function(e, n) {
2066
2065
  return new _(e, n);
2067
2066
  };
2068
- _.version = Fi;
2069
- var P = [], Pe, Xn, Kn = !1, vn, _n, an, Fe;
2070
- function ts() {
2067
+ _.version = Li;
2068
+ var P = [], Fe, Xn, Kn = !1, vn, _n, an, Pe;
2069
+ function as() {
2071
2070
  function e() {
2072
2071
  this.defaults = {
2073
2072
  scroll: !0,
@@ -2082,27 +2081,27 @@ function ts() {
2082
2081
  return e.prototype = {
2083
2082
  dragStarted: function(t) {
2084
2083
  var a = t.originalEvent;
2085
- this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? D(document, "pointermove", this._handleFallbackAutoScroll) : a.touches ? D(document, "touchmove", this._handleFallbackAutoScroll) : D(document, "mousemove", this._handleFallbackAutoScroll);
2084
+ this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? H(document, "pointermove", this._handleFallbackAutoScroll) : a.touches ? H(document, "touchmove", this._handleFallbackAutoScroll) : H(document, "mousemove", this._handleFallbackAutoScroll);
2086
2085
  },
2087
2086
  dragOverCompleted: function(t) {
2088
2087
  var a = t.originalEvent;
2089
2088
  !this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
2090
2089
  },
2091
2090
  drop: function() {
2092
- this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ke(), Ai();
2091
+ this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ke(), Mi();
2093
2092
  },
2094
2093
  nulling: function() {
2095
- an = Xn = Pe = Kn = Fe = vn = _n = null, P.length = 0;
2094
+ an = Xn = Fe = Kn = Pe = vn = _n = null, P.length = 0;
2096
2095
  },
2097
2096
  _handleFallbackAutoScroll: function(t) {
2098
2097
  this._handleAutoScroll(t, !0);
2099
2098
  },
2100
2099
  _handleAutoScroll: function(t, a) {
2101
2100
  var o = this, i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(i, r);
2102
- if (an = t, a || this.options.forceAutoScrollFallback || ze || te || Ne) {
2101
+ if (an = t, a || this.options.forceAutoScrollFallback || ze || te || Le) {
2103
2102
  Cn(t, this.options, l, a);
2104
2103
  var c = le(l, !0);
2105
- Kn && (!Fe || i !== vn || r !== _n) && (Fe && gt(), Fe = setInterval(function() {
2104
+ Kn && (!Pe || i !== vn || r !== _n) && (Pe && gt(), Pe = setInterval(function() {
2106
2105
  var p = le(document.elementFromPoint(i, r), !0);
2107
2106
  p !== c && (c = p, Ke()), Cn(t, o.options, p, a);
2108
2107
  }, 10), vn = i, _n = r);
@@ -2125,31 +2124,31 @@ function Ke() {
2125
2124
  }), P = [];
2126
2125
  }
2127
2126
  function gt() {
2128
- clearInterval(Fe);
2127
+ clearInterval(Pe);
2129
2128
  }
2130
- var Cn = Tt(function(e, n, t, a) {
2129
+ var Cn = It(function(e, n, t, a) {
2131
2130
  if (n.scroll) {
2132
2131
  var o = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, l = n.scrollSpeed, c = X(), p = !1, m;
2133
- Xn !== t && (Xn = t, Ke(), Pe = n.scroll, m = n.scrollFn, Pe === !0 && (Pe = le(t, !0)));
2134
- var f = 0, u = Pe;
2132
+ Xn !== t && (Xn = t, Ke(), Fe = n.scroll, m = n.scrollFn, Fe === !0 && (Fe = le(t, !0)));
2133
+ var f = 0, u = Fe;
2135
2134
  do {
2136
- var g = u, y = F(g), w = y.top, $ = y.bottom, N = y.left, R = y.right, V = y.width, j = y.height, de = void 0, Y = void 0, ce = g.scrollWidth, Se = g.scrollHeight, U = v(g), De = g.scrollLeft, ae = g.scrollTop;
2137
- g === c ? (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll"));
2138
- var He = de && (Math.abs(R - o) <= r && De + V < ce) - (Math.abs(N - o) <= r && !!De), Q = Y && (Math.abs($ - i) <= r && ae + j < Se) - (Math.abs(w - i) <= r && !!ae);
2135
+ var b = u, y = L(b), C = y.top, D = y.bottom, F = y.left, N = y.right, V = y.width, j = y.height, de = void 0, Y = void 0, ce = b.scrollWidth, Se = b.scrollHeight, U = v(b), He = b.scrollLeft, ae = b.scrollTop;
2136
+ b === c ? (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll"));
2137
+ var De = de && (Math.abs(N - o) <= r && He + V < ce) - (Math.abs(F - o) <= r && !!He), Q = Y && (Math.abs(D - i) <= r && ae + j < Se) - (Math.abs(C - i) <= r && !!ae);
2139
2138
  if (!P[f])
2140
2139
  for (var pe = 0; pe <= f; pe++)
2141
2140
  P[pe] || (P[pe] = {});
2142
- (P[f].vx != He || P[f].vy != Q || P[f].el !== g) && (P[f].el = g, P[f].vx = He, P[f].vy = Q, clearInterval(P[f].pid), (He != 0 || Q != 0) && (p = !0, P[f].pid = setInterval((function() {
2141
+ (P[f].vx != De || P[f].vy != Q || P[f].el !== b) && (P[f].el = b, P[f].vx = De, P[f].vy = Q, clearInterval(P[f].pid), (De != 0 || Q != 0) && (p = !0, P[f].pid = setInterval((function() {
2143
2142
  a && this.layer === 0 && _.active._onTouchMove(an);
2144
2143
  var Te = P[this.layer].vy ? P[this.layer].vy * l : 0, ie = P[this.layer].vx ? P[this.layer].vx * l : 0;
2145
- typeof m == "function" && m.call(_.dragged.parentNode[Z], ie, Te, e, an, P[this.layer].el) !== "continue" || It(P[this.layer].el, ie, Te);
2144
+ typeof m == "function" && m.call(_.dragged.parentNode[Z], ie, Te, e, an, P[this.layer].el) !== "continue" || $t(P[this.layer].el, ie, Te);
2146
2145
  }).bind({
2147
2146
  layer: f
2148
2147
  }), 24))), f++;
2149
2148
  } while (n.bubbleScroll && u !== c && (u = le(u, !1)));
2150
2149
  Kn = p;
2151
2150
  }
2152
- }, 30), Mt = function(n) {
2151
+ }, 30), zt = function(n) {
2153
2152
  var t = n.originalEvent, a = n.putSortable, o = n.dragEl, i = n.activeSortable, r = n.dispatchSortableEvent, l = n.hideGhostForTarget, c = n.unhideGhostForTarget;
2154
2153
  if (t) {
2155
2154
  var p = a || i;
@@ -2175,7 +2174,7 @@ nt.prototype = {
2175
2174
  var o = Ee(this.sortable.el, this.startIndex, this.options);
2176
2175
  o ? this.sortable.el.insertBefore(t, o) : this.sortable.el.appendChild(t), this.sortable.animateAll(), a && a.animateAll();
2177
2176
  },
2178
- drop: Mt
2177
+ drop: zt
2179
2178
  };
2180
2179
  ne(nt, {
2181
2180
  pluginName: "revertOnSpill"
@@ -2187,15 +2186,15 @@ tt.prototype = {
2187
2186
  var t = n.dragEl, a = n.putSortable, o = a || this.sortable;
2188
2187
  o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
2189
2188
  },
2190
- drop: Mt
2189
+ drop: zt
2191
2190
  };
2192
2191
  ne(tt, {
2193
2192
  pluginName: "removeOnSpill"
2194
2193
  });
2195
- _.mount(new ts());
2194
+ _.mount(new as());
2196
2195
  _.mount(tt, nt);
2197
- const as = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex;flex-direction:column;gap:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', is = as;
2198
- var ss = function(e, n, t, a) {
2196
+ const is = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex;flex-direction:column;gap:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', ss = is;
2197
+ var os = function(e, n, t, a) {
2199
2198
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2200
2199
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2201
2200
  i = Reflect.decorate(e, n, t, a);
@@ -2207,13 +2206,37 @@ var ss = function(e, n, t, a) {
2207
2206
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2208
2207
  return Reflect.metadata(e, n);
2209
2208
  };
2210
- const zt = class {
2209
+ const vt = [
2210
+ {
2211
+ type: "text",
2212
+ label: "Your name",
2213
+ key: "your_name",
2214
+ typeLabel: "Short text",
2215
+ readonly: !0,
2216
+ required: !0,
2217
+ isOpen: !1,
2218
+ order: 0
2219
+ },
2220
+ {
2221
+ type: "email",
2222
+ label: "Your Email",
2223
+ key: "your_email",
2224
+ typeLabel: "Email",
2225
+ readonly: !0,
2226
+ isOpen: !1,
2227
+ required: !0,
2228
+ order: 1
2229
+ }
2230
+ ], jt = class {
2211
2231
  constructor(e) {
2212
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "booking-form-config", this.additonalFields = void 0, this.formFields = void 0;
2232
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "booking-form-config", this.additionalFields = void 0, this.formFields = void 0;
2213
2233
  }
2214
2234
  elementNameChangedHandler(e) {
2215
2235
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
2216
2236
  }
2237
+ selectedConfigurationChangedHandler(e) {
2238
+ this.updateFormFields(e);
2239
+ }
2217
2240
  connectedCallback() {
2218
2241
  d("nylas-booking-form-config", "connectedCallback");
2219
2242
  }
@@ -2221,44 +2244,26 @@ const zt = class {
2221
2244
  d("nylas-booking-form-config", "disconnectedCallback");
2222
2245
  }
2223
2246
  componentWillLoad() {
2224
- d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name);
2225
- const e = [
2226
- {
2227
- type: "text",
2228
- label: "Your name",
2229
- key: "your_name",
2230
- typeLabel: "Short text",
2231
- readonly: !0,
2232
- required: !0,
2233
- isOpen: !1,
2234
- order: 0
2235
- },
2236
- {
2237
- type: "email",
2238
- label: "Your Email",
2239
- key: "your_email",
2240
- typeLabel: "Email",
2241
- readonly: !0,
2242
- isOpen: !1,
2243
- required: !0,
2244
- order: 1
2245
- }
2246
- ];
2247
- this.formFields = [...e];
2247
+ d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name), this.formFields = [...vt];
2248
2248
  }
2249
2249
  componentDidLoad() {
2250
- var t, a, o;
2251
- d("nylas-booking-form-config", "componentDidLoad");
2252
- const e = Object.entries(((a = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : a.additional_fields) || {}).map(([i, r]) => ({ ...r, key: i })) || this.additonalFields || [];
2250
+ d("nylas-booking-form-config", "componentDidLoad"), this.selectedConfiguration && this.updateFormFields(this.selectedConfiguration);
2251
+ }
2252
+ updateFormFields(e) {
2253
+ var a, o;
2254
+ const n = Object.entries(((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.additional_fields) || {}).map(([i, r]) => ({ ...r, key: i })) || this.additionalFields || [];
2253
2255
  this.formFields = [
2254
- ...this.formFields,
2255
- ...e.sort((i, r) => i.order - r.order).map((i, r) => {
2256
- const { typeLabel: l } = rt.find((c) => c.type === i.type);
2257
- return i.order = r + 2, { ...i, isOpen: !1, typeLabel: l };
2256
+ ...vt,
2257
+ ...n.sort((i, r) => i.order - r.order).map((i, r) => {
2258
+ const l = rt.find((p) => p.type === i.type);
2259
+ if (!l)
2260
+ return { ...i, isOpen: !1, typeLabel: "Unknown" };
2261
+ const c = l.label;
2262
+ return i.order = r + 2, { ...i, isOpen: !1, typeLabel: c };
2258
2263
  })
2259
2264
  ];
2260
- const n = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById("fields");
2261
- _.create(n, {
2265
+ const t = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById("fields");
2266
+ _.create(t, {
2262
2267
  animation: 150,
2263
2268
  swap: !0,
2264
2269
  swapClass: "highlight",
@@ -2368,13 +2373,13 @@ const zt = class {
2368
2373
  this.formFields = this.formFields.map((t, a) => (a === e && (t.default = n.detail.value), t));
2369
2374
  }
2370
2375
  render() {
2371
- return s(E, { key: "c04d0559326b5a5f2b06a50ec75108aa9205f554" }, s("div", { key: "b28ce5476fc6d458e578bacc70f8515a41140bdb", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "8ae9f70bafd0c3389e2e8cfb1bc9167322c51d02", class: "header", part: "nbfc__header" }, s("div", { key: "00aca11123f8789fc33e19aa563ae989eabd732b", class: "header_text" }, s("h3", { key: "1236bc055f9da4d9edb6a46f123ac26f7e3bf3be" }, "Booking form"), s("p", { key: "10e937c33b0b2cc06cd2d55dd6dce17e53731885" }, "Add custom fields to the booking form.")), s("div", { key: "7aa116effb6fa846a50d214195bb0297d2370a7f", class: "header_action" }, s("select-dropdown", { key: "6f6e50d1349f633bb6fc3114f17f357ef273047b", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: ga, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, s("span", { key: "f7efbb6d8d43323944d73b50afe891e6037ef618", slot: "select-icon" }, s("plus-icon", { key: "6c201dcd7830277b33459886e2889b3daf69ce4f", width: "15", height: "15" }))))), s("div", { key: "0de903a139c7055abd25fcdfa887c26c375fc0c6", class: "content" }, s("div", { key: "bfad27230ada72d362e79add159fddf66ecc742f", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, n) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: n }, s("div", { class: "form-field_header", part: "nbfc__form_field-header" }, s("span", { class: "dragable" }, s("dragable-icon", { width: "24", height: "25" })), s("div", { class: "form-field_header_text" }, s("h4", null, e.label), s("p", null, e.typeLabel)), s("div", { class: "form-field_header_actions" }, s("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && s("button", { onClick: () => {
2376
+ return s(E, { key: "bd832f2b9a02ce53187e4f633e4c0388e6e65a03" }, s("div", { key: "fcf79fe131d8e0a99312286b15f228b997d8c0be", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "07cd086a8af8145f5a8c6676e360fa5f919040f3", class: "header", part: "nbfc__header" }, s("div", { key: "f703982061b36b7f4b792f4deff59cc4256b7c25", class: "header_text" }, s("h3", { key: "a7cba135c527592a000c296ceaf68bb91c9ddcf4" }, "Booking form"), s("p", { key: "62acf8b4a583145e2bc300b1b351799dec1ff438" }, "Add custom fields to the booking form.")), s("div", { key: "574ef9a02aa06ad29ac0b08c22aa749a844d32d8", class: "header_action" }, s("select-dropdown", { key: "c2a83f721237dc1032af5e55e17438e1060b2e58", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: va, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, s("span", { key: "e0aaa33a3bd04b79499310c3904984269eaecbf3", slot: "select-icon" }, s("plus-icon", { key: "06bf29f2b3d0dca74d660db8791a47bc2474652b", width: "15", height: "15" }))))), s("div", { key: "b33cfae9a876be328d795366802a1791e22ca164", class: "content" }, s("div", { key: "0df453e1fc129a13b90b33c6e267ecd9dd149c56", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, n) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: n }, s("div", { class: "form-field_header", part: "nbfc__form_field-header" }, s("span", { class: "dragable" }, s("dragable-icon", { width: "24", height: "25" })), s("div", { class: "form-field_header_text" }, s("h4", null, e.label), s("p", null, e.typeLabel)), s("div", { class: "form-field_header_actions" }, s("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && s("button", { onClick: () => {
2372
2377
  this.fieldRemove(n);
2373
2378
  } }, s("close-icon", null)), s("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
2374
2379
  this.fieldToggle(n);
2375
2380
  } }, s("chevron-icon", { width: "24", height: "24" })))), s("div", { class: `form-field_content ${!e.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, s("div", { class: "inputs" }, s("input-component", { class: "label-input", name: `${n}`, key: n, label: "Label", required: !1, readOnly: e.readonly, defaultValue: e.label }, s("div", { class: "required-input", slot: "additional-input" }, s("input", { type: "checkbox", name: `required_${e.order}`, id: `required_${e.order}`, onClick: () => {
2376
2381
  this.fieldRequired(n);
2377
- }, checked: e.required, disabled: e.readonly }), s("label", { htmlFor: `required_${e.order}`, "aria-label": "Required" }, "Required"))), !e.readonly && s("input-component", { class: "default-value", name: `default-value-${n}`, key: n, label: "Default value", required: !1, readOnly: e.readonly, defaultValue: e.default })), e.options != null && s("div", { class: "options-container" }, s("h4", null, "ALL OPTIONS"), s("div", { class: "options" }, e.options.map((t, a) => s("div", { class: "option" }, s("input-component", { key: a, name: `${n}_${a}`, label: e.typeLabel + " option " + (a + 1), required: !0, defaultValue: t }, a > 1 && s("div", { class: "required-input", slot: "additional-input" }, s("button", { onClick: () => {
2382
+ }, checked: e.required, disabled: e.readonly }), s("label", { htmlFor: `required_${e.order}`, "aria-label": "Required" }, "Required"))), !e.readonly && e.type !== "date" && s("input-component", { class: "default-value", name: `default-value-${n}`, key: n, label: "Default value", required: !1, readOnly: e.readonly, defaultValue: e.default }), !e.readonly && e.type === "date" && s("nylas-date-component", { class: "default-value", name: `default-value-${n}`, key: n, label: "Default value", required: !1, readOnly: e.readonly, defaultValue: e.default })), e.options != null && s("div", { class: "options-container" }, s("h4", null, "ALL OPTIONS"), s("div", { class: "options" }, e.options.map((t, a) => s("div", { class: "option" }, s("input-component", { key: a, name: `${n}_${a}`, label: e.typeLabel + " option " + (a + 1), required: !0, defaultValue: t }, a > 1 && s("div", { class: "required-input", slot: "additional-input" }, s("button", { onClick: () => {
2378
2383
  this.fieldOptionRemove(n, a);
2379
2384
  } }, s("close-icon", null))))))), s("button", { onClick: () => {
2380
2385
  this.fieldOptionAdd(n);
@@ -2389,11 +2394,12 @@ const zt = class {
2389
2394
  static get watchers() {
2390
2395
  return {
2391
2396
  name: ["elementNameChangedHandler"],
2397
+ selectedConfiguration: ["selectedConfigurationChangedHandler"],
2392
2398
  formFields: ["watchHandler"]
2393
2399
  };
2394
2400
  }
2395
2401
  };
2396
- ss([
2402
+ os([
2397
2403
  S({
2398
2404
  name: "nylas-booking-form-config",
2399
2405
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -2402,10 +2408,10 @@ ss([
2402
2408
  wn("design:type", Function),
2403
2409
  wn("design:paramtypes", []),
2404
2410
  wn("design:returntype", void 0)
2405
- ], zt.prototype, "render", null);
2406
- zt.style = is;
2407
- const os = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', rs = os;
2408
- var ls = function(e, n, t, a) {
2411
+ ], jt.prototype, "render", null);
2412
+ jt.style = ss;
2413
+ const rs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', ls = rs;
2414
+ var ds = function(e, n, t, a) {
2409
2415
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2410
2416
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2411
2417
  i = Reflect.decorate(e, n, t, a);
@@ -2417,10 +2423,10 @@ var ls = function(e, n, t, a) {
2417
2423
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2418
2424
  return Reflect.metadata(e, n);
2419
2425
  };
2420
- const jt = class {
2426
+ const Ut = class {
2421
2427
  constructor(e) {
2422
2428
  var n, t, a;
2423
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((a = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer) ?? { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
2429
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((a = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer) ?? { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
2424
2430
  }
2425
2431
  connectedCallback() {
2426
2432
  d("nylas-buffer-time", "connectedCallback");
@@ -2432,13 +2438,7 @@ const jt = class {
2432
2438
  d("nylas-buffer-time", "componentWillLoad"), this.host.setAttribute("name", this.name);
2433
2439
  }
2434
2440
  componentDidLoad() {
2435
- if (d("nylas-buffer-time", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after), this.componentLoaded = !0, typeof this.internals.setFormValue == "function") {
2436
- const e = {
2437
- before: this.selectedBeforeBufferTime,
2438
- after: this.selectedAfterBufferTime
2439
- };
2440
- this.internals.setFormValue(JSON.stringify(e), this.name);
2441
- }
2441
+ d("nylas-buffer-time", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after), this.updateFormValue(), this.componentLoaded = !0;
2442
2442
  }
2443
2443
  componentWillUpdate() {
2444
2444
  d("nylas-buffer-time", "componentWillUpdate");
@@ -2459,21 +2459,26 @@ const jt = class {
2459
2459
  var t, a;
2460
2460
  d("nylas-buffer-time", "selectedConfigurationChangedHandler", e);
2461
2461
  const n = (a = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer;
2462
- this.selectedAfterBufferTime = n != null && n.after ? n.after : this.buffer.after, this.selectedBeforeBufferTime = n != null && n.before ? n.before : this.buffer.before;
2462
+ this.selectedAfterBufferTime = n != null && n.after ? n.after : this.buffer.after, this.selectedBeforeBufferTime = n != null && n.before ? n.before : this.buffer.before, this.updateFormValue();
2463
2463
  }
2464
2464
  nylasFormDropdownChangedHandler(e) {
2465
2465
  d("nylas-buffer-time", "nylasFormDropdownChangedHandler", e.detail);
2466
2466
  const n = (t) => {
2467
2467
  const { value: a, name: o } = t.detail;
2468
- o === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(a) : o === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(a));
2469
- const i = {
2470
- before: this.selectedBeforeBufferTime,
2471
- after: this.selectedAfterBufferTime
2472
- };
2473
- this.internals.setFormValue(JSON.stringify(i), "booking-calendar");
2468
+ o === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(a) : o === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(a)), this.updateFormValue();
2474
2469
  };
2475
2470
  this.valueChanged.emit({ ...e.detail, valueChanged: n });
2476
2471
  }
2472
+ get isInternalsAvailable() {
2473
+ return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
2474
+ }
2475
+ updateFormValue() {
2476
+ const e = {
2477
+ before: this.selectedBeforeBufferTime,
2478
+ after: this.selectedAfterBufferTime
2479
+ };
2480
+ this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name);
2481
+ }
2477
2482
  renderPreview() {
2478
2483
  const a = (r) => {
2479
2484
  const l = Math.floor(r / 30), c = r % 30 / 30 * 10;
@@ -2527,7 +2532,7 @@ const jt = class {
2527
2532
  };
2528
2533
  }
2529
2534
  };
2530
- ls([
2535
+ ds([
2531
2536
  S({
2532
2537
  name: "nylas-buffer-time",
2533
2538
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -2542,10 +2547,10 @@ ls([
2542
2547
  xn("design:type", Function),
2543
2548
  xn("design:paramtypes", []),
2544
2549
  xn("design:returntype", void 0)
2545
- ], jt.prototype, "render", null);
2546
- jt.style = rs;
2547
- const ds = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', cs = ds;
2548
- var ps = function(e, n, t, a) {
2550
+ ], Ut.prototype, "render", null);
2551
+ Ut.style = ls;
2552
+ const cs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', ps = cs;
2553
+ var fs = function(e, n, t, a) {
2549
2554
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2550
2555
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2551
2556
  i = Reflect.decorate(e, n, t, a);
@@ -2557,9 +2562,9 @@ var ps = function(e, n, t, a) {
2557
2562
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2558
2563
  return Reflect.metadata(e, n);
2559
2564
  };
2560
- const Ut = class {
2565
+ const Wt = class {
2561
2566
  constructor(e) {
2562
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "calendar", this.currentUser = void 0, this.calendars = void 0, this.defaultSelectedCalendars = [], this.selectedCalendars = [], this.error = "";
2567
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "calendar", this.currentUser = void 0, this.calendars = void 0, this.defaultSelectedCalendars = [], this.selectedCalendars = [], this.error = "";
2563
2568
  }
2564
2569
  elementNameChangedHandler(e) {
2565
2570
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2620,7 +2625,7 @@ const Ut = class {
2620
2625
  };
2621
2626
  }
2622
2627
  };
2623
- ps([
2628
+ fs([
2624
2629
  S({
2625
2630
  name: "nylas-calendar-picker",
2626
2631
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.currentUser", "currentUser"]]),
@@ -2635,10 +2640,10 @@ ps([
2635
2640
  kn("design:type", Function),
2636
2641
  kn("design:paramtypes", []),
2637
2642
  kn("design:returntype", void 0)
2638
- ], Ut.prototype, "render", null);
2639
- Ut.style = cs;
2640
- const fs = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', ms = fs;
2641
- var hs = function(e, n, t, a) {
2643
+ ], Wt.prototype, "render", null);
2644
+ Wt.style = ps;
2645
+ const ms = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', hs = ms;
2646
+ var us = function(e, n, t, a) {
2642
2647
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2643
2648
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2644
2649
  i = Reflect.decorate(e, n, t, a);
@@ -2650,9 +2655,9 @@ var hs = function(e, n, t, a) {
2650
2655
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2651
2656
  return Reflect.metadata(e, n);
2652
2657
  };
2653
- const Wt = class {
2658
+ const Bt = class {
2654
2659
  constructor(e) {
2655
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.message = void 0;
2660
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.message = void 0;
2656
2661
  }
2657
2662
  elementNameChangedHandler(e) {
2658
2663
  d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2693,7 +2698,7 @@ const Wt = class {
2693
2698
  };
2694
2699
  }
2695
2700
  };
2696
- hs([
2701
+ us([
2697
2702
  S({
2698
2703
  name: "nylas-cancellation-policy",
2699
2704
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -2703,10 +2708,10 @@ hs([
2703
2708
  En("design:type", Function),
2704
2709
  En("design:paramtypes", []),
2705
2710
  En("design:returntype", void 0)
2706
- ], Wt.prototype, "render", null);
2707
- Wt.style = ms;
2708
- const us = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}', ys = us;
2709
- var bs = function(e, n, t, a) {
2711
+ ], Bt.prototype, "render", null);
2712
+ Bt.style = hs;
2713
+ const ys = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}toggle-switch{padding-right:8px}', bs = ys;
2714
+ var gs = function(e, n, t, a) {
2710
2715
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2711
2716
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2712
2717
  i = Reflect.decorate(e, n, t, a);
@@ -2718,9 +2723,9 @@ var bs = function(e, n, t, a) {
2718
2723
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2719
2724
  return Reflect.metadata(e, n);
2720
2725
  };
2721
- const Bt = class {
2726
+ const Zt = class {
2722
2727
  constructor(e) {
2723
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.participants = [], this.name = "confirmation-email-template", this.isOpen = !1, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
2728
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.participants = [], this.name = "confirmation-email-template", this.isOpen = !1, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
2724
2729
  }
2725
2730
  connectedCallback() {
2726
2731
  d("nylas-confirmation-email", "connectedCallback");
@@ -2732,14 +2737,15 @@ const Bt = class {
2732
2737
  d("nylas-confirmation-email", "componentWillLoad"), this.host.setAttribute("name", this.name);
2733
2738
  }
2734
2739
  componentDidLoad() {
2735
- d("nylas-confirmation-email", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.confirmationEmail = this.confirmationEmailTemplate, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants);
2740
+ var e;
2741
+ d("nylas-confirmation-email", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.confirmationEmail = this.confirmationEmailTemplate, (e = this.confirmationEmail) != null && e.show_nylas_branding || (this.confirmationEmail = { ...this.confirmationEmail, show_nylas_branding: !0 }), this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants);
2736
2742
  }
2737
2743
  elementNameChangedHandler(e) {
2738
2744
  d("nylas-confirmation-email", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
2739
2745
  }
2740
2746
  selectedConfigurationChangedHandler(e) {
2741
- var n, t, a;
2742
- d("nylas-confirmation-email", "selectedConfigurationChangedHandler", e), this.confirmationEmail = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.email_template) || this.confirmationEmailTemplate, this.isConfirmationEmailOpen = !((a = (t = e == null ? void 0 : e.event_booking) == null ? void 0 : t.reminders) != null && a.length), this.participantsState = (e == null ? void 0 : e.participants) || this.participants;
2747
+ var n, t, a, o;
2748
+ d("nylas-confirmation-email", "selectedConfigurationChangedHandler", e), this.confirmationEmail = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.email_template) || this.confirmationEmailTemplate, typeof ((t = this.confirmationEmail) == null ? void 0 : t.show_nylas_branding) > "u" && (this.confirmationEmail = { ...this.confirmationEmail, show_nylas_branding: !0 }), this.isConfirmationEmailOpen = !((o = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.reminders) != null && o.length), this.participantsState = (e == null ? void 0 : e.participants) || this.participants;
2743
2749
  }
2744
2750
  async nylasFormInputChangeHandler(e) {
2745
2751
  var o, i;
@@ -2755,6 +2761,9 @@ const Bt = class {
2755
2761
  const { value: n, name: t } = e.detail;
2756
2762
  t === "confirmation-email-logo" && typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, n || "Invalid image URL.");
2757
2763
  }
2764
+ nyalsFormSwitchToggledHandler(e) {
2765
+ d("nylas-confirmation-email", "nyalsFormSwitchToggledHandler", e.detail), e.detail.name === "confirmation-email-show-branding" && (this.confirmationEmail = { ...this.confirmationEmail, show_nylas_branding: e.detail.checked }, this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name }));
2766
+ }
2758
2767
  updateConfirmationFormValue() {
2759
2768
  d("nylas-confirmation-email", "updateConfirmationFormValue"), this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
2760
2769
  }
@@ -2767,11 +2776,11 @@ const Bt = class {
2767
2776
  this.confirmationEmail = { ...this.confirmationEmail, booking_confirmed: { ...((t = this.confirmationEmail) == null ? void 0 : t.booking_confirmed) || {}, body: n } }, this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
2768
2777
  }
2769
2778
  render() {
2770
- var t, a, o, i, r, l, c;
2771
- const e = this.participantsState.find((p) => p.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
2772
- return s(E, { key: "bc4803b94f914d083bd33cf4cecd0cac70b0658c" }, s("div", { key: "6445d38b903bffd19b4db004e850f6488ed4c27f", class: "nylas-confirmation-email", part: "nce" }, s("div", { key: "7ce1ccd72ef83717aec42fe0b533902e3a254796", class: "header", part: "nce__header" }, s("div", { key: "cbceb816c30deebc4e053a7abd1da1c82c171ebe" }, s("h3", { key: "36f5b00d5a98d325341ff06b2bb3ba3cf951e94f" }, ((a = (t = this.confirmationEmail) == null ? void 0 : t.booking_confirmed) == null ? void 0 : a.title) ?? `Booking confirmed with ${n ? ` ${n}` : ""}`), s("p", { key: "6f72022d71e5f4e3c03d0f6d07d7f0f5bc0f9686" }, "Booking confirmation email")), this.isConfirmationEmailOpen ? s("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, s("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" }))) : s("button-component", { variant: "basic", clickHandler: (p) => {
2773
- p.preventDefault(), this.toggleConfirmationEmail();
2774
- } }, s("edit-icon", { width: "16", height: "16" }), "Edit")), this.isConfirmationEmailOpen ? s("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, s("div", { class: "nylas-confirmation-email__section" }, s("div", { class: "nylas-confirmation-email__row" }, s("label", null, "Send confirmation email", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation email immediately upon booking.")))), s("span", { class: "selected-value" }, "Immediately upon booking")), s("div", { class: "nylas-confirmation-email__row" }, s("div", { class: "subsection" }, s("div", { class: "input-container" }, s("label", null, "Company logo URL", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "This logo appears in the booking confirmation email. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), this.confirmationEmail && s("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", imageUrl: ((o = this.confirmationEmail) == null ? void 0 : o.logo) ?? "" })))), s("div", { class: "nylas-confirmation-email__row full-width-col" }, s("div", { class: "subsection" }, s("h3", null, "Email message"), s("div", { class: "input-container" }, s("label", { htmlFor: "title" }, "Custom email title", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "An email title is a headline within the body of the email. This doesn't change the subject line.")))), s("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: `Booking confirmed ${n ? `with ${n}` : ""}`, defaultValue: ((r = (i = this.confirmationEmail) == null ? void 0 : i.booking_confirmed) == null ? void 0 : r.title) ?? "" })), s("div", { class: "input-container" }, s("textarea-component", { label: "Additional info", name: "confirmation-email-body", id: "confirmation-email-body", placeholder: "Default body", tooltip: "Scheduler adds the content of the box to the email body.", maxLength: 500, defaultValue: ((c = (l = this.confirmationEmail) == null ? void 0 : l.booking_confirmed) == null ? void 0 : c.body) ?? "" })))))) : s("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, s("p", null, s("span", { class: "summary-icon" }, s("person-clipboard-icon", null)), "All host & guests"), s("p", null, s("span", { class: "summary-icon" }, s("clock-icon", null)), "Immediately on booking"))));
2779
+ var t, a, o, i, r, l, c, p;
2780
+ const e = this.participantsState.find((m) => m.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
2781
+ return s(E, { key: "759357259b7ec93874cc1f8cf7435190e518c07d" }, s("div", { key: "294719768ed0e18df0de33754780bb0161334a08", class: "nylas-confirmation-email", part: "nce" }, s("div", { key: "6d755d2ae63fc6235435ec65f861902831bf4832", class: "header", part: "nce__header" }, s("div", { key: "c691076d3f389463e18a7bcded96e12191286a39" }, s("h3", { key: "8c4a2a6499665034238ce149929421fb534a2a9b" }, ((a = (t = this.confirmationEmail) == null ? void 0 : t.booking_confirmed) == null ? void 0 : a.title) ?? `Booking confirmed with ${n ? ` ${n}` : ""}`), s("p", { key: "64d8cb9eb73d299029c227d3d68b45f5f6471712" }, "Booking confirmation email")), this.isConfirmationEmailOpen ? s("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, s("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" }))) : s("button-component", { variant: "basic", clickHandler: (m) => {
2782
+ m.preventDefault(), this.toggleConfirmationEmail();
2783
+ } }, s("edit-icon", { width: "16", height: "16" }), "Edit")), this.isConfirmationEmailOpen ? s("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, s("div", { class: "nylas-confirmation-email__section" }, s("div", { class: "nylas-confirmation-email__row" }, s("label", null, "Send confirmation email", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation email immediately upon booking.")))), s("span", { class: "selected-value" }, "Immediately upon booking")), s("div", { class: "nylas-confirmation-email__row" }, s("label", null, "Show Nylas branding", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "Uncheck this to hide the footer in the email communication.")))), s("toggle-switch", { exportparts: "ts_label: nce__toggle-label, ts_input: nce_toggle-input, ts_slider: nce_toggle-slider", name: "confirmation-email-show-branding", checked: (o = this.confirmationEmail) == null ? void 0 : o.show_nylas_branding })), s("div", { class: "nylas-confirmation-email__row" }, s("div", { class: "subsection" }, s("div", { class: "input-container" }, s("label", null, "Company logo URL", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "This logo appears in the booking confirmation email. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), this.confirmationEmail && s("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", imageUrl: ((i = this.confirmationEmail) == null ? void 0 : i.logo) ?? "" })))), s("div", { class: "nylas-confirmation-email__row full-width-col" }, s("div", { class: "subsection" }, s("h3", null, "Email message"), s("div", { class: "input-container" }, s("label", { htmlFor: "title" }, "Custom email title", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "An email title is a headline within the body of the email. This doesn't change the subject line.")))), s("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: `Booking confirmed ${n ? `with ${n}` : ""}`, defaultValue: ((l = (r = this.confirmationEmail) == null ? void 0 : r.booking_confirmed) == null ? void 0 : l.title) ?? "" })), s("div", { class: "input-container" }, s("textarea-component", { label: "Additional info", name: "confirmation-email-body", id: "confirmation-email-body", placeholder: "Default body", tooltip: "Scheduler adds the content of the box to the email body.", maxLength: 500, defaultValue: ((p = (c = this.confirmationEmail) == null ? void 0 : c.booking_confirmed) == null ? void 0 : p.body) ?? "" })))))) : s("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, s("p", null, s("span", { class: "summary-icon" }, s("person-clipboard-icon", null)), "All host & guests"), s("p", null, s("span", { class: "summary-icon" }, s("clock-icon", null)), "Immediately on booking"))));
2775
2784
  }
2776
2785
  static get formAssociated() {
2777
2786
  return !0;
@@ -2786,7 +2795,7 @@ const Bt = class {
2786
2795
  };
2787
2796
  }
2788
2797
  };
2789
- bs([
2798
+ gs([
2790
2799
  S({
2791
2800
  name: "nylas-confirmation-email",
2792
2801
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -2801,10 +2810,10 @@ bs([
2801
2810
  On("design:type", Function),
2802
2811
  On("design:paramtypes", []),
2803
2812
  On("design:returntype", void 0)
2804
- ], Bt.prototype, "render", null);
2805
- Bt.style = ys;
2806
- const gs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', vs = gs;
2807
- var _s = function(e, n, t, a) {
2813
+ ], Zt.prototype, "render", null);
2814
+ Zt.style = bs;
2815
+ const vs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', _s = vs;
2816
+ var Cs = function(e, n, t, a) {
2808
2817
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2809
2818
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2810
2819
  i = Reflect.decorate(e, n, t, a);
@@ -2816,10 +2825,10 @@ var _s = function(e, n, t, a) {
2816
2825
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2817
2826
  return Reflect.metadata(e, n);
2818
2827
  };
2819
- const Zt = class {
2828
+ const qt = class {
2820
2829
  constructor(e) {
2821
2830
  var n;
2822
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "connected-calendars", this.selectedConfiguration = void 0, this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
2831
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "connected-calendars", this.selectedConfiguration = void 0, this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
2823
2832
  }
2824
2833
  elementNameChangedHandler(e) {
2825
2834
  d("nylas-connected-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2844,18 +2853,18 @@ const Zt = class {
2844
2853
  if (n) {
2845
2854
  const p = e == null ? void 0 : e.filter((f) => n.some((u) => u.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((u) => u.email === f.email));
2846
2855
  p == null || p.forEach((f) => {
2847
- var y, w, $;
2848
- const u = n == null ? void 0 : n.find((N) => N.email === f.email);
2856
+ var y, C, D;
2857
+ const u = n == null ? void 0 : n.find((F) => F.email === f.email);
2849
2858
  if (!u)
2850
2859
  return;
2851
2860
  this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
2852
- const g = u.calendars ?? [];
2853
- ($ = (w = f.availability) == null ? void 0 : w.calendar_ids) == null || $.forEach((N) => {
2854
- !(g != null && g.some((R) => R.id === N)) && N !== "primary" && g.push({ id: N, name: N });
2855
- }), o[f.email] = g;
2861
+ const b = u.calendars ?? [];
2862
+ (D = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || D.forEach((F) => {
2863
+ !(b != null && b.some((N) => N.id === F)) && F !== "primary" && b.push({ id: F, name: F });
2864
+ }), o[f.email] = b;
2856
2865
  }), a && (m == null || m.forEach((f) => {
2857
- var u, g, y, w;
2858
- (u = f == null ? void 0 : f.availability) != null && u.calendar_ids && ((y = (g = f == null ? void 0 : f.availability) == null ? void 0 : g.calendar_ids) == null ? void 0 : y.length) > 0 && !f.is_organizer && (o[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendars[f.email] = ((w = f.availability) == null ? void 0 : w.calendar_ids) || []);
2866
+ var u, b, y, C;
2867
+ (u = f == null ? void 0 : f.availability) != null && u.calendar_ids && ((y = (b = f == null ? void 0 : f.availability) == null ? void 0 : b.calendar_ids) == null ? void 0 : y.length) > 0 && !f.is_organizer && (o[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendars[f.email] = ((C = f.availability) == null ? void 0 : C.calendar_ids) || []);
2859
2868
  }));
2860
2869
  }
2861
2870
  return t && (o[t.email] = this.calendars ?? [{ id: "primary", name: t.email }], this.participantDefaultSelectedCalendars[t.email] = ((c = t.availability) == null ? void 0 : c.calendar_ids) || []), o;
@@ -2896,19 +2905,19 @@ const Zt = class {
2896
2905
  setParticipants(e) {
2897
2906
  const n = {};
2898
2907
  return e == null || e.forEach((t) => {
2899
- var a, o, i;
2908
+ var a, o, i, r;
2900
2909
  if ((a = t == null ? void 0 : t.availability) != null && a.calendar_ids && ((i = (o = t == null ? void 0 : t.availability) == null ? void 0 : o.calendar_ids) == null ? void 0 : i.length) > 0) {
2901
- const r = !!t.is_organizer;
2910
+ const l = !!t.is_organizer;
2902
2911
  n[t.email] = {
2903
- isOpen: r,
2912
+ isOpen: l,
2904
2913
  name: t.name || t.email,
2905
- availability: t.availability
2914
+ calendars: (r = t.availability) == null ? void 0 : r.calendar_ids
2906
2915
  };
2907
2916
  }
2908
2917
  }), n;
2909
2918
  }
2910
2919
  render() {
2911
- return s(E, { key: "32710fe762bdf90e238c62695957a9fca31db258" }, s("div", { key: "a5ebf4adb7eb8e1b8a065bc05733738da06fbac3", class: "nylas-connected-calendars", part: "nccals" }, s("div", { key: "f3c820bcde922a7b852630d86145b1e6e1bf0e25", class: "header", part: "nccals__header" }, s("h3", { key: "e2b68d05d416c322b22f969d8d8c890a09812154" }, "Connected Calendars"), s("p", { key: "4dd41d10a6043fec1c0f4943371c312a29e1d489" }, "Select the calendars to use for checking your availability.", s("tooltip-component", { key: "6a8ec009fd879e1ed6b6fb65be75a88255adba17" }, s("info-icon", { key: "0d4a99eaee064ecee1c82ee5b13f3ab87a1d5d93", slot: "tooltip-icon" }), s("span", { key: "de3779efce64d7a14dbc3f7759c827005f92ed50", slot: "tooltip-content" }, "Check availability across one or more calendars. If you select multiple calendars for a participant, the participant must be available across all of their calendars to be considered available.")))), s("div", { key: "720267110636c1dc06ac67b7e715515f56737b73", class: "content", part: "nccals__content" }, s("form", { key: "f295ba327aa302ea186dbf2daef3a9c30f96ee5f", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
2920
+ return s(E, { key: "4b8cfcfa751c2790968049f6f10a06193f9adc70" }, s("div", { key: "ffbcde80612886bc09b4419bc1cc47d585834fac", class: "nylas-connected-calendars", part: "nccals" }, s("div", { key: "d00c14cd0ab8107a2ba609ba58b596a7d3e1e69f", class: "header", part: "nccals__header" }, s("h3", { key: "cb0ad20533c33a3778d0b89fe5d51aa4c15864a8" }, "Connected Calendars"), s("p", { key: "b3488e835534f477d2585be0a60b5800d42cbaac" }, "Select the calendars to use for checking your availability.", s("tooltip-component", { key: "6acbd37df60566fa8a3fb8676fe3b3f4287d5c06" }, s("info-icon", { key: "f1eb4a75f869b09bee95c074c8d180449654a49f", slot: "tooltip-icon" }), s("span", { key: "e8aca8b29c7a89fe7b6eea0635761bdde19349e2", slot: "tooltip-content" }, "Check availability across one or more calendars. If you select multiple calendars for a participant, the participant must be available across all of their calendars to be considered available.")))), s("div", { key: "844803e9ea3270bfcedbc212990c0038a74dd663", class: "content", part: "nccals__content" }, s("form", { key: "2970ec7cec45d2582b987cbfab8949c1ece02499", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
2912
2921
  const t = this.selectedCalendars[e], a = this.participantCalendars[e];
2913
2922
  if (!(!t || !t.name))
2914
2923
  return s("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "nccals__title" }, s("p", null, t.name, "'s connected calendars"), s("div", { class: "participant-toggle", part: "nccals__toggle-container" }, s("span", { class: `chevron ${t.isOpen ? "open" : "closed"}`, onClick: () => {
@@ -2932,7 +2941,7 @@ const Zt = class {
2932
2941
  };
2933
2942
  }
2934
2943
  };
2935
- _s([
2944
+ Cs([
2936
2945
  S({
2937
2946
  name: "nylas-connected-calendars",
2938
2947
  stateToProps: /* @__PURE__ */ new Map([
@@ -2946,10 +2955,10 @@ _s([
2946
2955
  Sn("design:type", Function),
2947
2956
  Sn("design:paramtypes", []),
2948
2957
  Sn("design:returntype", void 0)
2949
- ], Zt.prototype, "render", null);
2950
- Zt.style = vs;
2951
- const Cs = ':host{display:block;margin:1rem;--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}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', ws = Cs;
2952
- var xs = function(e, n, t, a) {
2958
+ ], qt.prototype, "render", null);
2959
+ qt.style = _s;
2960
+ const ws = ':host{display:block;margin:1rem;--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}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', xs = ws;
2961
+ var ks = function(e, n, t, a) {
2953
2962
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2954
2963
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2955
2964
  i = Reflect.decorate(e, n, t, a);
@@ -2957,13 +2966,13 @@ var xs = function(e, n, t, a) {
2957
2966
  for (var l = e.length - 1; l >= 0; l--)
2958
2967
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
2959
2968
  return o > 3 && i && Object.defineProperty(n, t, i), i;
2960
- }, Dn = function(e, n) {
2969
+ }, Hn = function(e, n) {
2961
2970
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2962
2971
  return Reflect.metadata(e, n);
2963
2972
  };
2964
- const qt = class {
2973
+ const Vt = class {
2965
2974
  constructor(e) {
2966
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
2975
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
2967
2976
  }
2968
2977
  connectedCallback() {
2969
2978
  d("nylas-custom-booking-flow", "connectedCallback");
@@ -2987,19 +2996,19 @@ const qt = class {
2987
2996
  return O(this);
2988
2997
  }
2989
2998
  };
2990
- xs([
2999
+ ks([
2991
3000
  S({
2992
3001
  name: "nylas-custom-booking-flow",
2993
3002
  eventToProps: {},
2994
3003
  fireRegisterEvent: !0
2995
3004
  }),
2996
- Dn("design:type", Function),
2997
- Dn("design:paramtypes", []),
2998
- Dn("design:returntype", void 0)
2999
- ], qt.prototype, "render", null);
3000
- qt.style = ws;
3001
- const ks = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:0;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', Es = ks;
3002
- var Os = function(e, n, t, a) {
3005
+ Hn("design:type", Function),
3006
+ Hn("design:paramtypes", []),
3007
+ Hn("design:returntype", void 0)
3008
+ ], Vt.prototype, "render", null);
3009
+ Vt.style = xs;
3010
+ const Es = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:0;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', Os = Es;
3011
+ var Ss = function(e, n, t, a) {
3003
3012
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3004
3013
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3005
3014
  i = Reflect.decorate(e, n, t, a);
@@ -3007,13 +3016,13 @@ var Os = function(e, n, t, a) {
3007
3016
  for (var l = e.length - 1; l >= 0; l--)
3008
3017
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3009
3018
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3010
- }, Hn = function(e, n) {
3019
+ }, Dn = function(e, n) {
3011
3020
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3012
3021
  return Reflect.metadata(e, n);
3013
3022
  };
3014
- const Vt = class {
3023
+ const Jt = class {
3015
3024
  constructor(e) {
3016
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
3025
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
3017
3026
  }
3018
3027
  connectedCallback() {
3019
3028
  d("nylas-custom-event-slug", "connectedCallback");
@@ -3093,7 +3102,7 @@ const Vt = class {
3093
3102
  };
3094
3103
  }
3095
3104
  };
3096
- Os([
3105
+ Ss([
3097
3106
  S({
3098
3107
  name: "nylas-custom-event-slug",
3099
3108
  stateToProps: /* @__PURE__ */ new Map([
@@ -3108,13 +3117,13 @@ Os([
3108
3117
  },
3109
3118
  fireRegisterEvent: !0
3110
3119
  }),
3111
- Hn("design:type", Function),
3112
- Hn("design:paramtypes", []),
3113
- Hn("design:returntype", void 0)
3114
- ], Vt.prototype, "render", null);
3115
- Vt.style = Es;
3116
- const Ss = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Ds = Ss;
3117
- var Hs = function(e, n, t, a) {
3120
+ Dn("design:type", Function),
3121
+ Dn("design:paramtypes", []),
3122
+ Dn("design:returntype", void 0)
3123
+ ], Jt.prototype, "render", null);
3124
+ Jt.style = Os;
3125
+ const Hs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Ds = Hs;
3126
+ var Ts = function(e, n, t, a) {
3118
3127
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3119
3128
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3120
3129
  i = Reflect.decorate(e, n, t, a);
@@ -3126,10 +3135,10 @@ var Hs = function(e, n, t, a) {
3126
3135
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3127
3136
  return Reflect.metadata(e, n);
3128
3137
  };
3129
- const Jt = class {
3138
+ const Gt = class {
3130
3139
  constructor(e) {
3131
3140
  var n, t, a, o, i, r;
3132
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : t.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (a = this.selectedConfiguration) == null ? void 0 : a.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((r = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : r.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
3141
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : t.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (a = this.selectedConfiguration) == null ? void 0 : a.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((r = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : r.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
3133
3142
  }
3134
3143
  elementNameChangedHandler(e) {
3135
3144
  d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -3205,7 +3214,7 @@ const Jt = class {
3205
3214
  };
3206
3215
  }
3207
3216
  };
3208
- Hs([
3217
+ Ts([
3209
3218
  S({
3210
3219
  name: "nylas-customize-booking-settings",
3211
3220
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -3214,10 +3223,10 @@ Hs([
3214
3223
  Tn("design:type", Function),
3215
3224
  Tn("design:paramtypes", []),
3216
3225
  Tn("design:returntype", void 0)
3217
- ], Jt.prototype, "render", null);
3218
- Jt.style = Ds;
3219
- const Ts = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}', Is = Ts;
3220
- var $s = function(e, n, t, a) {
3226
+ ], Gt.prototype, "render", null);
3227
+ Gt.style = Ds;
3228
+ const Is = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}', $s = Is;
3229
+ var Fs = function(e, n, t, a) {
3221
3230
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3222
3231
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3223
3232
  i = Reflect.decorate(e, n, t, a);
@@ -3229,10 +3238,10 @@ var $s = function(e, n, t, a) {
3229
3238
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3230
3239
  return Reflect.metadata(e, n);
3231
3240
  };
3232
- const Gt = class {
3241
+ const Yt = class {
3233
3242
  constructor(e) {
3234
3243
  var n, t;
3235
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.description) || "";
3244
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.description) || "";
3236
3245
  }
3237
3246
  elementNameChangedHandler(e) {
3238
3247
  d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -3273,7 +3282,7 @@ const Gt = class {
3273
3282
  };
3274
3283
  }
3275
3284
  };
3276
- $s([
3285
+ Fs([
3277
3286
  S({
3278
3287
  name: "nylas-event-description",
3279
3288
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -3283,9 +3292,9 @@ $s([
3283
3292
  In("design:type", Function),
3284
3293
  In("design:paramtypes", []),
3285
3294
  In("design:returntype", void 0)
3286
- ], Gt.prototype, "render", null);
3287
- Gt.style = Is;
3288
- const Ps = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Fs = Ps;
3295
+ ], Yt.prototype, "render", null);
3296
+ Yt.style = $s;
3297
+ const Ps = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Ls = Ps;
3289
3298
  var Ns = function(e, n, t, a) {
3290
3299
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3291
3300
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -3298,9 +3307,9 @@ var Ns = function(e, n, t, a) {
3298
3307
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3299
3308
  return Reflect.metadata(e, n);
3300
3309
  };
3301
- const Yt = class {
3310
+ const Xt = class {
3302
3311
  constructor(e) {
3303
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.durationMinutesOptions = [
3312
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.durationMinutesOptions = [
3304
3313
  { value: 15, label: "15" },
3305
3314
  { value: 30, label: "30" },
3306
3315
  { value: 45, label: "45" },
@@ -3385,10 +3394,10 @@ Ns([
3385
3394
  $n("design:type", Function),
3386
3395
  $n("design:paramtypes", []),
3387
3396
  $n("design:returntype", void 0)
3388
- ], Yt.prototype, "render", null);
3389
- Yt.style = Fs;
3390
- const Rs = ':host{display:block;margin:1rem;--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}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', Ls = Rs;
3391
- var As = function(e, n, t, a) {
3397
+ ], Xt.prototype, "render", null);
3398
+ Xt.style = Ls;
3399
+ const Rs = ':host{display:block;margin:1rem;--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}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', As = Rs;
3400
+ var Ms = function(e, n, t, a) {
3392
3401
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3393
3402
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3394
3403
  i = Reflect.decorate(e, n, t, a);
@@ -3396,13 +3405,13 @@ var As = function(e, n, t, a) {
3396
3405
  for (var l = e.length - 1; l >= 0; l--)
3397
3406
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3398
3407
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3399
- }, Pn = function(e, n) {
3408
+ }, Fn = function(e, n) {
3400
3409
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3401
3410
  return Reflect.metadata(e, n);
3402
3411
  };
3403
- const Xt = class {
3412
+ const Kt = class {
3404
3413
  constructor(e) {
3405
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3414
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3406
3415
  }
3407
3416
  connectedCallback() {
3408
3417
  d("nylas-event-info", "connectedCallback");
@@ -3417,7 +3426,7 @@ const Xt = class {
3417
3426
  d("nylas-event-info", "disconnectedCallback");
3418
3427
  }
3419
3428
  render() {
3420
- return s(E, { key: "be80a4e687ce223a8e52bbabc2e8acadcb194b11" }, s("nylas-form-card", { key: "c96b77795ec2516889acf0f78c5eb723b26dd89c", exportparts: "nfc__header: nei__header" }, s("h1", { key: "890113187adcd6be1ab1d1beb489fe3a80124617", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), s("div", { key: "44eaaae3833654530706dc93077b43a7597acc2c", slot: "content", class: "nylas-event-info__content" }, s("slot", { key: "7af737a67cb007c0ede7db5aa075828311d98da3", name: "inputs" }))));
3429
+ return s(E, { key: "2305758f0702be020d00fc241cf9517950e07ebb" }, s("nylas-form-card", { key: "c23b13bd162a79a23450f84948273c08970fed42", exportparts: "nfc__header: nei__header" }, s("h1", { key: "b14f5b69df2e5fc0d0b10c4d2710082cb0b340ac", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), s("div", { key: "ac541433a019bdbd0b4f313686f3f159aae3c094", slot: "content", class: "nylas-event-info__content" }, s("slot", { key: "68bdf809b300bda9591a73b875c73bcf3e2be069", name: "inputs" }))));
3421
3430
  }
3422
3431
  static get formAssociated() {
3423
3432
  return !0;
@@ -3426,19 +3435,19 @@ const Xt = class {
3426
3435
  return O(this);
3427
3436
  }
3428
3437
  };
3429
- As([
3438
+ Ms([
3430
3439
  S({
3431
3440
  name: "nylas-event-info",
3432
3441
  eventToProps: {},
3433
3442
  fireRegisterEvent: !0
3434
3443
  }),
3435
- Pn("design:type", Function),
3436
- Pn("design:paramtypes", []),
3437
- Pn("design:returntype", void 0)
3438
- ], Xt.prototype, "render", null);
3439
- Xt.style = Ls;
3440
- const Ms = ':host{display:block;margin:1rem;--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}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', zs = Ms;
3441
- var js = function(e, n, t, a) {
3444
+ Fn("design:type", Function),
3445
+ Fn("design:paramtypes", []),
3446
+ Fn("design:returntype", void 0)
3447
+ ], Kt.prototype, "render", null);
3448
+ Kt.style = As;
3449
+ const zs = ':host{display:block;margin:1rem;--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}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', js = zs;
3450
+ var Us = function(e, n, t, a) {
3442
3451
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3443
3452
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3444
3453
  i = Reflect.decorate(e, n, t, a);
@@ -3446,13 +3455,13 @@ var js = function(e, n, t, a) {
3446
3455
  for (var l = e.length - 1; l >= 0; l--)
3447
3456
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3448
3457
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3449
- }, Fn = function(e, n) {
3458
+ }, Pn = function(e, n) {
3450
3459
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3451
3460
  return Reflect.metadata(e, n);
3452
3461
  };
3453
- const Kt = class {
3462
+ const Qt = class {
3454
3463
  constructor(e) {
3455
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3464
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3456
3465
  }
3457
3466
  connectedCallback() {
3458
3467
  d("nylas-event-limits", "connectedCallback");
@@ -3467,7 +3476,7 @@ const Kt = class {
3467
3476
  d("nylas-event-limits", "disconnectedCallback");
3468
3477
  }
3469
3478
  render() {
3470
- return s(E, { key: "6a28113e3b403869e77cc3a2c9c3a1bea217dc52" }, s("nylas-form-card", { key: "cf9004d044222d796ae59df58737ad9719a20576", exportparts: "nfc__header: nel__header" }, s("h1", { key: "ffeeb7a5741c9f07fb4f9bd84016b1707e2b55b7", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), s("div", { key: "7b51592d95736f860ec805950275a18e9d914c32", slot: "content", class: "nylas-event-limits__content" }, s("slot", { key: "53e9098d736eedf5b22e1b8ae712ec22c8ca865e", name: "inputs" }))));
3479
+ return s(E, { key: "efbcc4df573c34bdde02afceda5dc680eb07be76" }, s("nylas-form-card", { key: "050f44a6ce41100bda2c10318cd131b88580ff2c", exportparts: "nfc__header: nel__header" }, s("h1", { key: "1636d04db69170502bd11a4535d02919cfe6c560", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), s("div", { key: "06accc70326650d5a8bfc58854bbf4ed910d9d7b", slot: "content", class: "nylas-event-limits__content" }, s("slot", { key: "280f15e8f6e6918d36179036009b285d2501246b", name: "inputs" }))));
3471
3480
  }
3472
3481
  static get formAssociated() {
3473
3482
  return !0;
@@ -3476,19 +3485,19 @@ const Kt = class {
3476
3485
  return O(this);
3477
3486
  }
3478
3487
  };
3479
- js([
3488
+ Us([
3480
3489
  S({
3481
3490
  name: "nylas-event-limits",
3482
3491
  eventToProps: {},
3483
3492
  fireRegisterEvent: !0
3484
3493
  }),
3485
- Fn("design:type", Function),
3486
- Fn("design:paramtypes", []),
3487
- Fn("design:returntype", void 0)
3488
- ], Kt.prototype, "render", null);
3489
- Kt.style = zs;
3490
- const Us = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ws = Us;
3491
- var Bs = function(e, n, t, a) {
3494
+ Pn("design:type", Function),
3495
+ Pn("design:paramtypes", []),
3496
+ Pn("design:returntype", void 0)
3497
+ ], Qt.prototype, "render", null);
3498
+ Qt.style = js;
3499
+ const Ws = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Bs = Ws;
3500
+ var Zs = function(e, n, t, a) {
3492
3501
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3493
3502
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3494
3503
  i = Reflect.decorate(e, n, t, a);
@@ -3496,22 +3505,22 @@ var Bs = function(e, n, t, a) {
3496
3505
  for (var l = e.length - 1; l >= 0; l--)
3497
3506
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3498
3507
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3499
- }, Nn = function(e, n) {
3508
+ }, Ln = function(e, n) {
3500
3509
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3501
3510
  return Reflect.metadata(e, n);
3502
3511
  };
3503
- const _e = {
3512
+ const he = {
3504
3513
  none: "None",
3505
3514
  custom: "Custom location",
3506
3515
  google: "Google Meet",
3507
3516
  microsoft: "Microsoft Teams",
3508
3517
  zoom: "Zoom Meeting"
3509
- }, Qt = class {
3518
+ }, ea = class {
3510
3519
  constructor(e) {
3511
3520
  var n;
3512
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.locationOptions = [
3513
- { value: "none", label: _e.none, labelHTML: this.getLabelHTML("none") },
3514
- { value: "custom", label: _e.custom, labelHTML: this.getLabelHTML("custom") }
3521
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.locationOptions = [
3522
+ { value: "none", label: he.none, labelHTML: this.getLabelHTML("none") },
3523
+ { value: "custom", label: he.custom, labelHTML: this.getLabelHTML("custom") }
3515
3524
  ];
3516
3525
  }
3517
3526
  elementNameChangedHandler(e) {
@@ -3523,6 +3532,12 @@ const _e = {
3523
3532
  const n = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.location, t = (o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.conferencing;
3524
3533
  t != null && t.provider ? (this.selectedLocationOption = this.setDefaultLocationOption(t, n ?? ""), this.grantId = this.setDefaultGrantID(t), this.location = n || "") : n ? (this.selectedLocationOption = n ? "custom" : "none", this.location = n) : (this.selectedLocationOption = "none", this.location = "");
3525
3534
  }
3535
+ currentUserChangedHandler(e) {
3536
+ d("nylas-custom-booking-flow", "currentUserChangedHandler", e), e != null && e.provider && (this.userProviderState = e == null ? void 0 : e.provider, this.setLocationOptionsForProvider(this.userProviderState));
3537
+ }
3538
+ conferenceProvidersChanged(e) {
3539
+ e != null && e.zoom && !this.locationOptions.some((n) => n.value === "zoom") && this.locationOptions.push({ value: "zoom", label: he.zoom, labelHTML: this.getLabelHTML("zoom") });
3540
+ }
3526
3541
  connectedCallback() {
3527
3542
  d("nylas-event-location", "connectedCallback");
3528
3543
  }
@@ -3531,15 +3546,7 @@ const _e = {
3531
3546
  }
3532
3547
  componentDidLoad() {
3533
3548
  var e, n;
3534
- switch (d("nylas-event-location", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((e = this.currentUser) == null ? void 0 : e.provider) ?? "", this.userProviderState) {
3535
- case "google":
3536
- this.locationOptions.push({ value: "google", label: _e.google, labelHTML: this.getLabelHTML("google") });
3537
- break;
3538
- case "microsoft":
3539
- this.locationOptions.push({ value: "microsoft", label: _e.microsoft, labelHTML: this.getLabelHTML("microsoft") });
3540
- break;
3541
- }
3542
- (n = this.conferenceProviders) != null && n.zoom && this.locationOptions.push({ value: "zoom", label: _e.zoom, labelHTML: this.getLabelHTML("zoom") });
3549
+ d("nylas-event-location", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((e = this.currentUser) == null ? void 0 : e.provider) ?? "", this.setLocationOptionsForProvider(this.userProviderState), (n = this.conferenceProviders) != null && n.zoom && !this.locationOptions.some((t) => t.value === "zoom") && this.locationOptions.push({ value: "zoom", label: he.zoom, labelHTML: this.getLabelHTML("zoom") });
3543
3550
  }
3544
3551
  disconnectedCallback() {
3545
3552
  d("nylas-event-location", "disconnectedCallback");
@@ -3587,8 +3594,18 @@ const _e = {
3587
3594
  break;
3588
3595
  }
3589
3596
  }
3597
+ setLocationOptionsForProvider(e) {
3598
+ switch (e) {
3599
+ case "google":
3600
+ this.locationOptions.some((n) => n.value === "google") || this.locationOptions.push({ value: "google", label: he.google, labelHTML: this.getLabelHTML("google") });
3601
+ break;
3602
+ case "microsoft":
3603
+ this.locationOptions.some((n) => n.value === "microsoft") || this.locationOptions.push({ value: "microsoft", label: he.microsoft, labelHTML: this.getLabelHTML("microsoft") });
3604
+ break;
3605
+ }
3606
+ }
3590
3607
  setDefaultLocationOption(e, n) {
3591
- return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? va[e == null ? void 0 : e.provider] : n ? "custom" : "none";
3608
+ return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? _a[e == null ? void 0 : e.provider] : n ? "custom" : "none";
3592
3609
  }
3593
3610
  setDefaultGrantID(e) {
3594
3611
  var n;
@@ -3624,11 +3641,11 @@ const _e = {
3624
3641
  } }, this.getIcon(e), s("span", { class: "location-text", style: {
3625
3642
  fontSize: "14px",
3626
3643
  fontWeight: "400"
3627
- } }, _e[e]));
3644
+ } }, he[e]));
3628
3645
  }
3629
3646
  render() {
3630
3647
  const e = typeof this.selectedLocationOption < "u" ? this.locationOptions.find((n) => n.value == this.selectedLocationOption) : null;
3631
- return s(E, { key: "6869d3c2f6316dc482becc022bc973783332658f" }, s("div", { key: "e17b95b15e181f73efd5c666ff0074bcd5467b65", class: "nylas-event-location", part: "nel" }, s("label", { key: "9370ab01f5f730099dd5061ccf39ca3b53132244", htmlFor: "location" }, "Event meeting or location", s("span", { key: "acd558f22ad18afc63b93456450a5aa946916fd4", class: "label-icon" }, s("tooltip-component", { key: "bd2ea171a9eef9e9a377a0be2dc4a16b91bb1359" }, s("info-icon", { key: "745289e658441e9aadb245c94da890cdb3119179", slot: "tooltip-icon" }), s("span", { key: "ffa4a9597a7d63e33b639dafd736a654a97589c9", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), s("div", { key: "59f930e30b758b740128b42a855608a02ee1a739", class: "location-input" }, e && (e == null ? void 0 : e.label) && s("select-dropdown", { withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
3648
+ return s(E, { key: "c91ef22df2a83a3c2ac66ca9011ad8633a085b9e" }, s("div", { key: "9e6823ce704cf4870f99936a39371b255b165afb", class: "nylas-event-location", part: "nel" }, s("label", { key: "2d1a71a258d0576460acd68a93cbace4a5c9254c", htmlFor: "location" }, "Event meeting or location", s("span", { key: "9dd7df66eec4e35a8659c88d4f26be99093e815a", class: "label-icon" }, s("tooltip-component", { key: "9299313bad5724106fa7108d0874e760945bcb30" }, s("info-icon", { key: "2490fbc28caa2547d8a3cecc747dc94254c59df3", slot: "tooltip-icon" }), s("span", { key: "d6c73fef100e4f962507d58b4ed24a1bd19599c2", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), s("div", { key: "726f78440a3e65e379368b0a849bee94b2839dfd", class: "location-input" }, e && (e == null ? void 0 : e.label) && s("select-dropdown", { withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
3632
3649
  }
3633
3650
  static get formAssociated() {
3634
3651
  return !0;
@@ -3639,11 +3656,13 @@ const _e = {
3639
3656
  static get watchers() {
3640
3657
  return {
3641
3658
  name: ["elementNameChangedHandler"],
3642
- selectedConfiguration: ["selectedConfigurationChangedHandler"]
3659
+ selectedConfiguration: ["selectedConfigurationChangedHandler"],
3660
+ currentUser: ["currentUserChangedHandler"],
3661
+ conferenceProviders: ["conferenceProvidersChanged"]
3643
3662
  };
3644
3663
  }
3645
3664
  };
3646
- Bs([
3665
+ Zs([
3647
3666
  S({
3648
3667
  name: "nylas-event-location",
3649
3668
  stateToProps: /* @__PURE__ */ new Map([
@@ -3654,13 +3673,13 @@ Bs([
3654
3673
  eventToProps: {},
3655
3674
  fireRegisterEvent: !0
3656
3675
  }),
3657
- Nn("design:type", Function),
3658
- Nn("design:paramtypes", []),
3659
- Nn("design:returntype", void 0)
3660
- ], Qt.prototype, "render", null);
3661
- Qt.style = Ws;
3662
- const Zs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', qs = Zs;
3663
- var Vs = function(e, n, t, a) {
3676
+ Ln("design:type", Function),
3677
+ Ln("design:paramtypes", []),
3678
+ Ln("design:returntype", void 0)
3679
+ ], ea.prototype, "render", null);
3680
+ ea.style = Bs;
3681
+ const qs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Vs = qs;
3682
+ var Js = function(e, n, t, a) {
3664
3683
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3665
3684
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3666
3685
  i = Reflect.decorate(e, n, t, a);
@@ -3668,14 +3687,14 @@ var Vs = function(e, n, t, a) {
3668
3687
  for (var l = e.length - 1; l >= 0; l--)
3669
3688
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3670
3689
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3671
- }, Rn = function(e, n) {
3690
+ }, Nn = function(e, n) {
3672
3691
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3673
3692
  return Reflect.metadata(e, n);
3674
3693
  };
3675
- const ea = class {
3694
+ const na = class {
3676
3695
  constructor(e) {
3677
3696
  var n, t;
3678
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.title, this.name = "title", this.showTokens = !1, this.availableTokens = lt.map((a) => ({
3697
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.title, this.name = "title", this.showTokens = !1, this.availableTokens = lt.map((a) => ({
3679
3698
  label: a.token,
3680
3699
  value: a.value,
3681
3700
  labelHTML: a
@@ -3745,7 +3764,7 @@ const ea = class {
3745
3764
  var l, c;
3746
3765
  return r.anchorOffset === 0 && r.focusOffset === ((c = (l = r.focusNode) == null ? void 0 : l.nodeValue) == null ? void 0 : c.length);
3747
3766
  };
3748
- switch (ba()) {
3767
+ switch (ga()) {
3749
3768
  case "Chrome":
3750
3769
  const r = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), l = r == null ? void 0 : r.focusNode, c = (l == null ? void 0 : l.nodeValue) || "", p = r && n(r);
3751
3770
  return e(c, (r == null ? void 0 : r.focusOffset) || -1, l, p);
@@ -3753,8 +3772,8 @@ const ea = class {
3753
3772
  const m = document.getSelection(), f = ((o = m == null ? void 0 : m.anchorNode) == null ? void 0 : o.nodeValue) || "", u = m && n(m);
3754
3773
  return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode, u);
3755
3774
  case "Safari":
3756
- const g = window.getSelection(), y = g == null ? void 0 : g.getComposedRanges(this.host.shadowRoot)[0], w = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "", $ = g && n(g);
3757
- return e(w, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, $);
3775
+ const b = window.getSelection(), y = b == null ? void 0 : b.getComposedRanges(this.host.shadowRoot)[0], C = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "", D = b && n(b);
3776
+ return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, D);
3758
3777
  default:
3759
3778
  return console.warn("Browser not supported"), null;
3760
3779
  }
@@ -3782,7 +3801,7 @@ const ea = class {
3782
3801
  handleInputKeyDown(e) {
3783
3802
  var t, a, o, i;
3784
3803
  const n = this.getCurrentSelectionForBrowser();
3785
- if (n != null && n.allSelected && !ya(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
3804
+ if (n != null && n.allSelected && !ba(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
3786
3805
  e.preventDefault();
3787
3806
  const r = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(this.ariaActivedescendant);
3788
3807
  r && (r.click(), this.ariaActivedescendant = "");
@@ -3810,14 +3829,14 @@ const ea = class {
3810
3829
  }
3811
3830
  }
3812
3831
  selectOption(e, n) {
3813
- var w;
3832
+ var C;
3814
3833
  e.preventDefault();
3815
3834
  const t = this.currentWord.fullText, a = this.currentWord.$value;
3816
3835
  let o = this.titleRef.firstChild, i = null;
3817
3836
  for (; o; ) {
3818
3837
  if (o.nodeType === 3) {
3819
- const $ = ((w = o.textContent) == null ? void 0 : w.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", N = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
3820
- if ($.includes(N)) {
3838
+ const D = ((C = o.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", F = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
3839
+ if (D.includes(F)) {
3821
3840
  i = o;
3822
3841
  break;
3823
3842
  }
@@ -3828,12 +3847,12 @@ const ea = class {
3828
3847
  return;
3829
3848
  const r = i.textContent || "", l = r.indexOf(a), c = r.substring(0, l), p = r.substring(l + a.length), m = document.createTextNode(c), f = document.createRange(), u = document.createElement("span");
3830
3849
  u.classList.add("highlighted-tag"), u.textContent = `${n.value}`;
3831
- const g = document.createTextNode(p);
3850
+ const b = document.createTextNode(p);
3832
3851
  if (p !== "")
3833
- i.replaceWith(m, u, g), f.setStart(g, 1);
3852
+ i.replaceWith(m, u, b), f.setStart(b, 1);
3834
3853
  else {
3835
- const $ = document.createTextNode("​");
3836
- i.replaceWith(m, u, $), f.setStart($, 1);
3854
+ const D = document.createTextNode("​");
3855
+ i.replaceWith(m, u, D), f.setStart(D, 1);
3837
3856
  }
3838
3857
  this.resetDropdown(), this.titleRef.focus();
3839
3858
  const y = window.getSelection();
@@ -3877,20 +3896,20 @@ const ea = class {
3877
3896
  };
3878
3897
  }
3879
3898
  };
3880
- Vs([
3899
+ Js([
3881
3900
  S({
3882
3901
  name: "nylas-event-title",
3883
3902
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
3884
3903
  eventToProps: {},
3885
3904
  fireRegisterEvent: !0
3886
3905
  }),
3887
- Rn("design:type", Function),
3888
- Rn("design:paramtypes", []),
3889
- Rn("design:returntype", void 0)
3890
- ], ea.prototype, "render", null);
3891
- ea.style = qs;
3892
- const Js = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.card-wrapper{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);position:relative;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-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.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)}', Gs = Js;
3893
- var Ys = function(e, n, t, a) {
3906
+ Nn("design:type", Function),
3907
+ Nn("design:paramtypes", []),
3908
+ Nn("design:returntype", void 0)
3909
+ ], na.prototype, "render", null);
3910
+ na.style = Vs;
3911
+ const Gs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.card-wrapper{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);position:relative;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-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.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)}', Ys = Gs;
3912
+ var Xs = function(e, n, t, a) {
3894
3913
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3895
3914
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3896
3915
  i = Reflect.decorate(e, n, t, a);
@@ -3898,13 +3917,13 @@ var Ys = function(e, n, t, a) {
3898
3917
  for (var l = e.length - 1; l >= 0; l--)
3899
3918
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3900
3919
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3901
- }, Ln = function(e, n) {
3920
+ }, Rn = function(e, n) {
3902
3921
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3903
3922
  return Reflect.metadata(e, n);
3904
3923
  };
3905
- const na = class {
3924
+ const ta = class {
3906
3925
  constructor(e) {
3907
- b(this, e), this.feedbackModalClosed = x(this, "feedbackModalClosed", 7), this.feedbackSubmitted = x(this, "feedbackSubmitted", 7), this.triggerValidation = x(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
3926
+ g(this, e), this.feedbackModalClosed = x(this, "feedbackModalClosed", 7), this.feedbackSubmitted = x(this, "feedbackSubmitted", 7), this.triggerValidation = x(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
3908
3927
  this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
3909
3928
  }, this.themeConfig = void 0, this.feedbackMessage = "";
3910
3929
  }
@@ -3930,15 +3949,15 @@ const na = class {
3930
3949
  e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
3931
3950
  }
3932
3951
  render() {
3933
- return s(E, { key: "a2fdcdd71d0c4ff3902df64405da31a223eaf7d7", part: "nfbf" }, s("div", { key: "f9e8577b5357683928205b53ee81753a66a7e4ae", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "d1bbb63d773ef30918549fe4a6737bf582ae0d06", class: "close-button" }, s("button-component", { key: "a418fa3fef1af84a1d504030e1bcafde4653e2ad", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "cc39f114e75f5554417718701175d44844ffc4a0" }))), s("div", { key: "d425f232a67162d7865986403819a9aa80641891", class: "header" }, s("h2", { key: "3ee4ce9fa02a86831ff4a292320fe890bfb728bf", slot: "card-title", part: "nfbf__title" }, ye.t("feedbackFormTitle"))), s("div", { key: "e190c2c7558cc3d292ecdd0efde36a5ba949406e", class: "description title-desc" }, s("p", { key: "bae5de83094598fa1794fac48f44d6385499183e" }, ye.t("feedbackFormDescription"))), s("textarea-component", { key: "2dbcd70b5d4c8035a2cc7e852fdd6dfe23650d92", label: ye.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: ye.t("feedbackMessagePlaceholder") }), s("div", { key: "0970ad9b93148e325b85353e7ae79df9de057f10", class: "description footer-desc" }, s("p", { key: "3f20809d828a385b471916d5f53944d5438e0cff" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "bdb691d2575ba496607675f82bea362bfcb3dcdb", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "7cfd02b5827dfbd325f49e8c0b055873ae9ab32a", class: {
3952
+ return s(E, { key: "a30860bd5c42332657c3084c2680b136ec1eaa67", part: "nfbf" }, s("div", { key: "37cd7481d3017e3c896a940a7ebc776f7c19c2f2", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "80c1c7770c36c9e01c39b68ff6c204b1a0a2db74", class: "close-button" }, s("button-component", { key: "408e2c4a25009a0acd593439ab7978fc38b89096", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "e0afa64f4073eea9eaf4692026d23df6e5bb66af" }))), s("div", { key: "131e27ebc2d35bc489c9f10566ff6f0236e7828e", class: "header" }, s("h2", { key: "1a69a21f7882a4d098f651082fee8a95cfaf7030", slot: "card-title", part: "nfbf__title" }, be.t("feedbackFormTitle"))), s("div", { key: "41da0f5a9c4d838904e2eea9a3354e7d24839e10", class: "description title-desc" }, s("p", { key: "4fbd2c5c0e49c2845f6595c108d68c1d2586dc9a" }, be.t("feedbackFormDescription"))), s("textarea-component", { key: "899b0f78b1b411517eb275d69dbf94f78583b71d", label: be.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: be.t("feedbackMessagePlaceholder") }), s("div", { key: "4774bf3601d35202ac17f4e2f34dd917201e6bba", class: "description footer-desc" }, s("p", { key: "5d24e812deb9d923e964db5e1707c26319c30aaf" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "5da0487543195028584d32f40190669df3955512", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "495cff113e92f77fd4f86ae85fc5f37362aca230", class: {
3934
3953
  footer: !0
3935
- } }, s("button-component", { key: "8d31999de17098830414f2944f52d94b59b903dd", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${ye.t("feedbackModalCloseButton")}`), s("button-component", { key: "b802e92f4dba1467a54d90b730fc94161b41030c", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${ye.t("feedbackModalSubmitButton")}`))));
3954
+ } }, s("button-component", { key: "048d5a6c8a483c8fb2b7c6fe4b45ca167cf87fbe", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${be.t("feedbackModalCloseButton")}`), s("button-component", { key: "4a414579c7e47bc728fee83ee46756a488f12086", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${be.t("feedbackModalSubmitButton")}`))));
3936
3955
  }
3937
3956
  get host() {
3938
3957
  return O(this);
3939
3958
  }
3940
3959
  };
3941
- Ys([
3960
+ Xs([
3942
3961
  S({
3943
3962
  name: "nylas-feedback-form",
3944
3963
  stateToProps: /* @__PURE__ */ new Map([]),
@@ -3949,13 +3968,13 @@ Ys([
3949
3968
  localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
3950
3969
  fireRegisterEvent: !0
3951
3970
  }),
3952
- Ln("design:type", Function),
3953
- Ln("design:paramtypes", []),
3954
- Ln("design:returntype", void 0)
3955
- ], na.prototype, "render", null);
3956
- na.style = Gs;
3957
- const Xs = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Ks = Xs;
3958
- var Qs = function(e, n, t, a) {
3971
+ Rn("design:type", Function),
3972
+ Rn("design:paramtypes", []),
3973
+ Rn("design:returntype", void 0)
3974
+ ], ta.prototype, "render", null);
3975
+ ta.style = Ys;
3976
+ const Ks = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Qs = Ks;
3977
+ var eo = function(e, n, t, a) {
3959
3978
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3960
3979
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3961
3980
  i = Reflect.decorate(e, n, t, a);
@@ -3967,9 +3986,9 @@ var Qs = function(e, n, t, a) {
3967
3986
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3968
3987
  return Reflect.metadata(e, n);
3969
3988
  };
3970
- const ta = class {
3989
+ const aa = class {
3971
3990
  constructor(e) {
3972
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedNumber = void 0, this.selectedPeriod = void 0;
3991
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedNumber = void 0, this.selectedPeriod = void 0;
3973
3992
  }
3974
3993
  elementNameChangedHandler(e) {
3975
3994
  d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4017,7 +4036,7 @@ const ta = class {
4017
4036
  };
4018
4037
  }
4019
4038
  };
4020
- Qs([
4039
+ eo([
4021
4040
  S({
4022
4041
  name: "nylas-limit-future-bookings",
4023
4042
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4027,10 +4046,10 @@ Qs([
4027
4046
  An("design:type", Function),
4028
4047
  An("design:paramtypes", []),
4029
4048
  An("design:returntype", void 0)
4030
- ], ta.prototype, "render", null);
4031
- ta.style = Ks;
4032
- const eo = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', no = eo;
4033
- var to = function(e, n, t, a) {
4049
+ ], aa.prototype, "render", null);
4050
+ aa.style = Qs;
4051
+ const no = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', to = no;
4052
+ var ao = function(e, n, t, a) {
4034
4053
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4035
4054
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4036
4055
  i = Reflect.decorate(e, n, t, a);
@@ -4042,9 +4061,9 @@ var to = function(e, n, t, a) {
4042
4061
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4043
4062
  return Reflect.metadata(e, n);
4044
4063
  };
4045
- const aa = class {
4064
+ const ia = class {
4046
4065
  constructor(e) {
4047
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-booking-notice", this.minBookingNotice = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
4066
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-booking-notice", this.minBookingNotice = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
4048
4067
  }
4049
4068
  elementNameChangedHandler(e) {
4050
4069
  d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4093,7 +4112,7 @@ const aa = class {
4093
4112
  };
4094
4113
  }
4095
4114
  };
4096
- to([
4115
+ ao([
4097
4116
  S({
4098
4117
  name: "nylas-min-booking-notice",
4099
4118
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4103,10 +4122,10 @@ to([
4103
4122
  Mn("design:type", Function),
4104
4123
  Mn("design:paramtypes", []),
4105
4124
  Mn("design:returntype", void 0)
4106
- ], aa.prototype, "render", null);
4107
- aa.style = no;
4108
- const ao = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', io = ao;
4109
- var so = function(e, n, t, a) {
4125
+ ], ia.prototype, "render", null);
4126
+ ia.style = to;
4127
+ const io = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', so = io;
4128
+ var oo = function(e, n, t, a) {
4110
4129
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4111
4130
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4112
4131
  i = Reflect.decorate(e, n, t, a);
@@ -4118,9 +4137,9 @@ var so = function(e, n, t, a) {
4118
4137
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4119
4138
  return Reflect.metadata(e, n);
4120
4139
  };
4121
- const ia = class {
4140
+ const sa = class {
4122
4141
  constructor(e) {
4123
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-cancellation-notice", this.minCancellationNotice = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
4142
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-cancellation-notice", this.minCancellationNotice = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
4124
4143
  }
4125
4144
  elementNameChangedHandler(e) {
4126
4145
  d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4154,7 +4173,7 @@ const ia = class {
4154
4173
  }
4155
4174
  render() {
4156
4175
  const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
4157
- return s(E, { key: "b3d5eab0c7f826b60f8d88dbcd2de20b8aa05953" }, s("div", { key: "df62baa3bd558066cea96bd86f2b4594b7eae613", class: "nylas-min-cancellation-notice", part: "nmcn" }, s("label", { key: "7bab73f950ee0529feef61c32750488ee8e3d816" }, "Minimum cancellation notice", s("span", { key: "71856612ca18403cc95642ad22f7fea40c93163e", class: "label-icon" }, s("tooltip-component", { key: "3961109385d524c08115a98bd8e303d573529884" }, s("info-icon", { key: "60053a1ff74768ab53e903b52c0028b5c04aa5c7", slot: "tooltip-icon" }), s("span", { key: "af42bbed9685aa44d11ad4dd3cd35a156ba245a4", slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), e && s("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
4176
+ return s(E, { key: "763f53683b51e3339d19b53e59582874300a885b" }, s("div", { key: "dde1c0eb7db774e8d7127b651ae2bfa500441abe", class: "nylas-min-cancellation-notice", part: "nmcn" }, s("label", { key: "316a311a44525fa054cf7c4b67fb4cc53dda7d9c" }, "Minimum cancellation notice", s("span", { key: "552a66e7ba544ee76f5ae12cb1e06aec64841e9b", class: "label-icon" }, s("tooltip-component", { key: "6a932766126bdb8bf9cd67d8d62af7bfbeb4b251" }, s("info-icon", { key: "2afdafbb09f069ddf2a224685f399d11c547a3be", slot: "tooltip-icon" }), s("span", { key: "cf536f1254f151846a58bdeb855251785e62e98f", slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), e && s("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
4158
4177
  }
4159
4178
  static get formAssociated() {
4160
4179
  return !0;
@@ -4169,7 +4188,7 @@ const ia = class {
4169
4188
  };
4170
4189
  }
4171
4190
  };
4172
- so([
4191
+ oo([
4173
4192
  S({
4174
4193
  name: "nylas-min-cancellation-notice",
4175
4194
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4179,10 +4198,10 @@ so([
4179
4198
  zn("design:type", Function),
4180
4199
  zn("design:paramtypes", []),
4181
4200
  zn("design:returntype", void 0)
4182
- ], ia.prototype, "render", null);
4183
- ia.style = io;
4184
- const oo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}', ro = oo;
4185
- var lo = function(e, n, t, a) {
4201
+ ], sa.prototype, "render", null);
4202
+ sa.style = so;
4203
+ const ro = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}', lo = ro;
4204
+ var co = function(e, n, t, a) {
4186
4205
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4187
4206
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4188
4207
  i = Reflect.decorate(e, n, t, a);
@@ -4194,9 +4213,9 @@ var lo = function(e, n, t, a) {
4194
4213
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4195
4214
  return Reflect.metadata(e, n);
4196
4215
  };
4197
- const sa = class {
4216
+ const oa = class {
4198
4217
  constructor(e) {
4199
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.currentPageName = void 0;
4218
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.currentPageName = void 0;
4200
4219
  }
4201
4220
  connectedCallback() {
4202
4221
  d("nylas-page-name", "connectedCallback");
@@ -4237,7 +4256,7 @@ const sa = class {
4237
4256
  }
4238
4257
  render() {
4239
4258
  const e = typeof this.currentPageName < "u";
4240
- return s(E, { key: "f0b405f57e2cb8c65b59c07bdca8ec3885a98a7d" }, s("div", { key: "4873ef6137393c0bd31b90fca33eee42e2feb449", class: "nylas-page-name", part: "nces" }, s("div", { key: "bf9894bee632ed6debc5f401b1e3bb98d4561258", class: "header", part: "nces__header" }, s("div", { key: "631f080c4c2aba2597d6638ea4dfb20eedb0a1d6" }, s("h3", { key: "657b49c737bb46d96698cac0c39ba20f08dac34a" }, "Page name"), s("p", { key: "7a81b920c53b427529828476a2efed5c80c5ce56" }, "Set the Scheduling Page name.", s("tooltip-component", { key: "a16a8a9e03310794cf4de5b0ab863d730723bf16" }, s("info-icon", { key: "ffbfa4cfd591c4994a7ff51251ed92062e9cf42e", slot: "tooltip-icon" }), s("span", { key: "41a0ed919be3aa80fc5f1d03138157f46aaa8494", slot: "tooltip-content" }, "By default, Scheduling Pages use your user name as the Page name. The Page name is displayed in the top-left corner of the calendar view.")))), this.showToggle && s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-page-name__body", part: "nces__body" }, s("div", { class: "nylas-page-name__section" }, s("div", { class: "nylas-page-name__row" }, s("div", { class: "input-container" }, s("div", { class: "nylas-page-name__input-wrapper" }, e && s("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" }))))))));
4259
+ return s(E, { key: "ef02e8eca3480c5a15005e01a911d0c269e23d43" }, s("div", { key: "d3179f670d5f53f536a011891f2af42b976c55a9", class: "nylas-page-name", part: "nces" }, s("div", { key: "061be315e626958385e579dbbe7cd3dad8576628", class: "header", part: "nces__header" }, s("div", { key: "b3b3710a8e9e89e63041e546dfcb963e8ca655ab" }, s("h3", { key: "18b451df9b5da9a8abec6b34d4581453acd8e61f" }, "Page name"), s("p", { key: "2014f675c31a65797ef59f00e1db1edc8e5b43a5" }, "Set the Scheduling Page name.", s("tooltip-component", { key: "7e4a00f58470dfabbd5f39d60921effb99dc2b1b" }, s("info-icon", { key: "a71e8933a1dda9fe6614b88eecbb5b55145c987c", slot: "tooltip-icon" }), s("span", { key: "7b593e04a0585339b42f76f47901ba0ec80375d9", slot: "tooltip-content" }, "By default, Scheduling Pages use your user name as the Page name. The Page name is displayed in the top-left corner of the calendar view.")))), this.showToggle && s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-page-name__body", part: "nces__body" }, s("div", { class: "nylas-page-name__section" }, s("div", { class: "nylas-page-name__row" }, s("div", { class: "input-container" }, s("div", { class: "nylas-page-name__input-wrapper" }, e && s("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" }))))))));
4241
4260
  }
4242
4261
  static get formAssociated() {
4243
4262
  return !0;
@@ -4252,7 +4271,7 @@ const sa = class {
4252
4271
  };
4253
4272
  }
4254
4273
  };
4255
- lo([
4274
+ co([
4256
4275
  S({
4257
4276
  name: "nylas-page-name",
4258
4277
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4267,10 +4286,10 @@ lo([
4267
4286
  jn("design:type", Function),
4268
4287
  jn("design:paramtypes", []),
4269
4288
  jn("design:returntype", void 0)
4270
- ], sa.prototype, "render", null);
4271
- sa.style = ro;
4272
- const co = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}', po = co;
4273
- var fo = function(e, n, t, a) {
4289
+ ], oa.prototype, "render", null);
4290
+ oa.style = lo;
4291
+ const po = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}', fo = po;
4292
+ var mo = function(e, n, t, a) {
4274
4293
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4275
4294
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4276
4295
  i = Reflect.decorate(e, n, t, a);
@@ -4282,9 +4301,9 @@ var fo = function(e, n, t, a) {
4282
4301
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4283
4302
  return Reflect.metadata(e, n);
4284
4303
  };
4285
- const oa = class {
4304
+ const ra = class {
4286
4305
  constructor(e) {
4287
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), this.bookingFormSubmitted = x(this, "bookingFormSubmitted", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-styling", this.appearance = void 0, this.isOpen = !0, this.currentAppearance = void 0, this.customInputsSlot = null;
4306
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), this.bookingFormSubmitted = x(this, "bookingFormSubmitted", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-styling", this.appearance = void 0, this.isOpen = !0, this.currentAppearance = void 0, this.customInputsSlot = null;
4288
4307
  }
4289
4308
  connectedCallback() {
4290
4309
  d("nylas-page-styling", "connectedCallback");
@@ -4430,7 +4449,7 @@ const oa = class {
4430
4449
  this.isOpen = !this.isOpen;
4431
4450
  }
4432
4451
  render() {
4433
- return s(E, { key: "be08b4dc45a6950b8bf9190fbb5bd450a63f24cb" }, s("div", { key: "37c4ef967ab1ccecc7752be8e13847c1ff67f2ad", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? s("div", { class: "header", part: "nps__header" }, s("div", null, s("h3", null, "Page styling and customization")), s("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" })))) : null, s("div", { key: "304a8a53cff0c854ce244435ff51abb2dc51b105", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "9de4abc9b92aab8d976b0fd2a568a5c60d7f0f6e", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "490d7515e07679200e6a42138867088c7b6c4634", class: "nylas-page-styling__row" }, s("div", { key: "dcf7dbe82d82b103f14e63dc519aab3245d869e8", class: { subsection: !0, hide: !this.isOpen } }))))));
4452
+ return s(E, { key: "c2ffa8ae940e9594f254903d45abc3f7c01d7d41" }, s("div", { key: "1813654e2aaa9c66d5a535186f227968b434654c", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? s("div", { class: "header", part: "nps__header" }, s("div", null, s("h3", null, "Page styling and customization")), s("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" })))) : null, s("div", { key: "cff4891eeb1a958feb2a6b20623b97f908721c60", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "16b2398f10b6d7703d02bbbf5c43e3e229499b2d", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "fd09434076ea4626ee9d7b2710ec8418325aa117", class: "nylas-page-styling__row" }, s("div", { key: "16a29cabadc4f1a4ba9f389fe232ea22125cfe36", class: { subsection: !0, hide: !this.isOpen } }))))));
4434
4453
  }
4435
4454
  static get formAssociated() {
4436
4455
  return !0;
@@ -4440,11 +4459,12 @@ const oa = class {
4440
4459
  }
4441
4460
  static get watchers() {
4442
4461
  return {
4443
- name: ["elementNameChangedHandler"]
4462
+ name: ["elementNameChangedHandler"],
4463
+ selectedConfiguration: ["selectedConfigurationChangedHandler"]
4444
4464
  };
4445
4465
  }
4446
4466
  };
4447
- fo([
4467
+ mo([
4448
4468
  S({
4449
4469
  name: "nylas-page-styling",
4450
4470
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4459,10 +4479,10 @@ fo([
4459
4479
  Un("design:type", Function),
4460
4480
  Un("design:paramtypes", []),
4461
4481
  Un("design:returntype", void 0)
4462
- ], oa.prototype, "render", null);
4463
- oa.style = po;
4464
- const mo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', ho = mo;
4465
- var uo = function(e, n, t, a) {
4482
+ ], ra.prototype, "render", null);
4483
+ ra.style = fo;
4484
+ const ho = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', uo = ho;
4485
+ var yo = function(e, n, t, a) {
4466
4486
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4467
4487
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4468
4488
  i = Reflect.decorate(e, n, t, a);
@@ -4474,10 +4494,10 @@ var uo = function(e, n, t, a) {
4474
4494
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4475
4495
  return Reflect.metadata(e, n);
4476
4496
  };
4477
- const ra = class {
4497
+ const la = class {
4478
4498
  constructor(e) {
4479
4499
  var n;
4480
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-booking-calendars", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
4500
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-booking-calendars", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
4481
4501
  }
4482
4502
  elementNameChangedHandler(e) {
4483
4503
  d("nylas-participant-booking-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4503,15 +4523,15 @@ const ra = class {
4503
4523
  const p = e == null ? void 0 : e.filter((f) => n.some((u) => u.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((u) => u.email === f.email));
4504
4524
  p == null || p.forEach((f) => {
4505
4525
  var y;
4506
- const u = n == null ? void 0 : n.find((w) => w.email === f.email);
4526
+ const u = n == null ? void 0 : n.find((C) => C.email === f.email);
4507
4527
  if (!u)
4508
4528
  return;
4509
4529
  this.participantDefaultSelectedCalendar[f.email] = ((y = f.booking) == null ? void 0 : y.calendar_id) ?? "primary";
4510
- const g = u.calendars ?? [];
4511
- a[f.email] = g;
4530
+ const b = u.calendars ?? [];
4531
+ a[f.email] = b;
4512
4532
  }), m == null || m.forEach((f) => {
4513
- var u, g;
4514
- (u = f == null ? void 0 : f.booking) != null && u.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((g = f == null ? void 0 : f.booking) == null ? void 0 : g.calendar_id) ?? "primary");
4533
+ var u, b;
4534
+ (u = f == null ? void 0 : f.booking) != null && u.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((b = f == null ? void 0 : f.booking) == null ? void 0 : b.calendar_id) ?? "primary");
4515
4535
  });
4516
4536
  }
4517
4537
  return t && (a[t.email] = this.calendars ?? [{ id: "primary", name: t.email }], this.participantDefaultSelectedCalendar[t.email] = ((c = t == null ? void 0 : t.booking) == null ? void 0 : c.calendar_id) ?? "primary"), a;
@@ -4589,7 +4609,7 @@ const ra = class {
4589
4609
  };
4590
4610
  }
4591
4611
  };
4592
- uo([
4612
+ yo([
4593
4613
  S({
4594
4614
  name: "nylas-participant-booking-calendars",
4595
4615
  stateToProps: /* @__PURE__ */ new Map([
@@ -4603,10 +4623,10 @@ uo([
4603
4623
  Wn("design:type", Function),
4604
4624
  Wn("design:paramtypes", []),
4605
4625
  Wn("design:returntype", void 0)
4606
- ], ra.prototype, "render", null);
4607
- ra.style = ho;
4608
- const yo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', bo = yo;
4609
- var go = function(e, n, t, a) {
4626
+ ], la.prototype, "render", null);
4627
+ la.style = uo;
4628
+ const bo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', go = bo;
4629
+ var vo = function(e, n, t, a) {
4610
4630
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4611
4631
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4612
4632
  i = Reflect.decorate(e, n, t, a);
@@ -4618,10 +4638,10 @@ var go = function(e, n, t, a) {
4618
4638
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4619
4639
  return Reflect.metadata(e, n);
4620
4640
  };
4621
- const la = class {
4641
+ const da = class {
4622
4642
  constructor(e) {
4623
4643
  var n;
4624
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-custom-availability", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.selectedParticipants = this.setParticipants(this.participants);
4644
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-custom-availability", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.selectedParticipants = this.setParticipants(this.participants);
4625
4645
  }
4626
4646
  elementNameChangedHandler(e) {
4627
4647
  d("nylas-participants-custom-availability", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4646,22 +4666,23 @@ const la = class {
4646
4666
  d("nylas-participants-custom-availability", "componentDidLoad"), this.selectedConfiguration ? this.selectedParticipants = this.setParticipants((e = this.selectedConfiguration) == null ? void 0 : e.participants) : this.selectedParticipants = this.setParticipants(this.participants);
4647
4667
  }
4648
4668
  nylasFormSwitchToggledHandler(e) {
4649
- var t, a, o;
4669
+ var i, r, l, c, p, m, f, u, b, y, C, D;
4650
4670
  d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
4651
- const n = ((o = (a = (t = this.selectedConfiguration) == null ? void 0 : t.participants.find((i) => i.email === e.detail.name)) == null ? void 0 : a.availability) == null ? void 0 : o.open_hours) || [];
4652
- this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (n == null ? void 0 : n.length) > 0 ? n : vt : [], this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
4671
+ const n = (i = this.selectedConfiguration) == null ? void 0 : i.participants.find((F) => F.email === e.detail.name), t = (r = n == null ? void 0 : n.availability) == null ? void 0 : r.open_hours, a = t || ((p = (c = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : p.default_open_hours) || [], o = t && t.length > 0 ? n == null ? void 0 : n.timezone : ((y = (b = (u = (f = (m = this.selectedConfiguration) == null ? void 0 : m.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : u.default_open_hours) == null ? void 0 : b.at(0)) == null ? void 0 : y.timezone) || ((D = (C = this.selectedConfiguration) == null ? void 0 : C.event_booking) == null ? void 0 : D.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
4672
+ this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (a == null ? void 0 : a.length) > 0 ? a : _t : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
4653
4673
  }
4654
4674
  handleValueChanged(e) {
4655
4675
  d("[nylas-editor-tabs]", "handleValueChanged", e);
4656
4676
  const { name: n, value: t } = e.detail;
4657
4677
  if (!n.startsWith("participant-"))
4658
4678
  return;
4659
- if (this.participantFormRef.checkValidity())
4660
- this.internals.setValidity({});
4661
- else {
4662
- this.internals.setValidity({ customError: !0 }, "Please fix the overlapping time ranges.");
4663
- return;
4664
- }
4679
+ if (this.isInternalsAvailable)
4680
+ if (this.participantFormRef.checkValidity())
4681
+ this.internals.setValidity({});
4682
+ else {
4683
+ this.internals.setValidity({ customError: !0 }, "Please fix the overlapping time ranges.");
4684
+ return;
4685
+ }
4665
4686
  const a = JSON.parse(t), o = n.split("-")[2];
4666
4687
  this.selectedParticipants[o] && (this.selectedParticipants[o].openHours = a.openHours, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue());
4667
4688
  }
@@ -4670,7 +4691,7 @@ const la = class {
4670
4691
  const e = {};
4671
4692
  (((t = this.selectedConfiguration) == null ? void 0 : t.participants) || this.participants).forEach((a) => {
4672
4693
  e[a.email] = this.selectedParticipants[a.email].openHours;
4673
- }), this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name });
4694
+ }), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name });
4674
4695
  }
4675
4696
  setParticipants(e) {
4676
4697
  const n = {};
@@ -4686,13 +4707,17 @@ const la = class {
4686
4707
  };
4687
4708
  }), n;
4688
4709
  }
4710
+ get isInternalsAvailable() {
4711
+ return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
4712
+ }
4689
4713
  render() {
4690
- return s(E, { key: "6f9b3c61650e7dd61b6e548fe008be57494b5e89" }, s("div", { key: "256e2e41f0849180ffdb5c67c66dffd9c1ce031a", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "c3e1aefbb7872b233938aefeb22a13169f194864", class: "header", part: "npca__header" }, s("h3", { key: "8f7af6fa1435b2530fb5d179db1357e765270865" }, "Participant open hours"), s("p", { key: "ff146ecd72673369a01773b2f00e81264654acf5" }, "If not set, the default open hours will be used to calculate availability for this participant.")), s("div", { key: "c6aa29f7b88ecb5082f86b7b63416b3537e89dfe", class: "content", part: "npca__content" }, s("form", { key: "f46b43df9ee6026aa74c08feab122b4fd4e8e2bd", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
4691
- const t = this.selectedParticipants[e];
4714
+ return s(E, { key: "64198b8231e1739484f81d02167d7b5f456eda69" }, s("div", { key: "68eb8279c510ef937e19dec06960867c98a5b02a", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "9622d8a7fbc124723cb7135a3a3846fad0e4e458", class: "header", part: "npca__header" }, s("h3", { key: "6424eeeb937ce2225a63d76482ec633efacd9e7a" }, "Participant open hours"), s("p", { key: "ac021fef4d4b0de03d5e2ca335563ec4f328156c" }, "If not set, the default open hours will be used to calculate availability for this participant.")), s("div", { key: "e9412e214011b575954196e39ea265dcf86801ec", class: "content", part: "npca__content" }, s("form", { key: "ab5b4239f2d2b31fcd69d0f2e2d61a8a13003739", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
4715
+ var o;
4716
+ const t = this.selectedParticipants[e], a = ((o = t.availability) == null ? void 0 : o.open_hours) || [];
4692
4717
  if (!(!t || !t.name || !t.availability))
4693
4718
  return s("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "npca__participant-title" }, s("p", null, t.name, "'s open hours"), s("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, s("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: e, checked: !!(t != null && t.openHours) && (t == null ? void 0 : t.openHours.length) > 0 }), s("span", { class: `chevron ${t.isOpen ? "open" : "closed"} ${t.setCustom ? "" : "disabled"}`, onClick: () => {
4694
4719
  t.setCustom && (this.selectedParticipants[e].isOpen = !t.isOpen, this.selectedParticipants = { ...this.selectedParticipants });
4695
- } }, s("chevron-icon", { width: "24", height: "24" })))), t.isOpen && s("nylas-availability-picker", { key: n, name: `participant-${n}-${e}`, openHours: t.openHours, defaultTimezone: t.timezone, hideHeader: !0 }));
4720
+ } }, s("chevron-icon", { width: "24", height: "24" })))), t.isOpen && s("nylas-availability-picker", { key: n, name: `participant-${n}-${e}`, openHours: a, defaultTimezone: t.timezone, hideHeader: !0 }));
4696
4721
  })))));
4697
4722
  }
4698
4723
  static get formAssociated() {
@@ -4709,7 +4734,7 @@ const la = class {
4709
4734
  };
4710
4735
  }
4711
4736
  };
4712
- go([
4737
+ vo([
4713
4738
  S({
4714
4739
  name: "nylas-participants-custom-availability",
4715
4740
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4719,10 +4744,10 @@ go([
4719
4744
  Bn("design:type", Function),
4720
4745
  Bn("design:paramtypes", []),
4721
4746
  Bn("design:returntype", void 0)
4722
- ], la.prototype, "render", null);
4723
- la.style = bo;
4724
- const vo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', _o = vo;
4725
- var Co = function(e, n, t, a) {
4747
+ ], da.prototype, "render", null);
4748
+ da.style = go;
4749
+ const _o = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', Co = _o;
4750
+ var wo = function(e, n, t, a) {
4726
4751
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4727
4752
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4728
4753
  i = Reflect.decorate(e, n, t, a);
@@ -4734,10 +4759,10 @@ var Co = function(e, n, t, a) {
4734
4759
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4735
4760
  return Reflect.metadata(e, n);
4736
4761
  };
4737
- const da = class {
4762
+ const ca = class {
4738
4763
  constructor(e) {
4739
4764
  var n, t, a;
4740
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventReminders = void 0, this.name = "reminder-overrides", this.reminders = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
4765
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventReminders = void 0, this.name = "reminder-overrides", this.reminders = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
4741
4766
  }
4742
4767
  connectedCallback() {
4743
4768
  d("nylas-reminder-emails", "connectedCallback");
@@ -4879,7 +4904,7 @@ const da = class {
4879
4904
  };
4880
4905
  }
4881
4906
  };
4882
- Co([
4907
+ wo([
4883
4908
  S({
4884
4909
  name: "nylas-reminder-emails",
4885
4910
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -4894,10 +4919,10 @@ Co([
4894
4919
  Zn("design:type", Function),
4895
4920
  Zn("design:paramtypes", []),
4896
4921
  Zn("design:returntype", void 0)
4897
- ], da.prototype, "render", null);
4898
- da.style = _o;
4899
- const wo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', xo = wo;
4900
- var ko = function(e, n, t, a) {
4922
+ ], ca.prototype, "render", null);
4923
+ ca.style = Co;
4924
+ const xo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', ko = xo;
4925
+ var Eo = function(e, n, t, a) {
4901
4926
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4902
4927
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4903
4928
  i = Reflect.decorate(e, n, t, a);
@@ -4914,7 +4939,7 @@ const xe = [
4914
4939
  { value: 60, label: "hour" },
4915
4940
  { value: 1, label: "minute" }
4916
4941
  ];
4917
- function Eo(e) {
4942
+ function Oo(e) {
4918
4943
  if (!e)
4919
4944
  return 30;
4920
4945
  for (const n of xe)
@@ -4922,7 +4947,7 @@ function Eo(e) {
4922
4947
  return e / n.value;
4923
4948
  return e;
4924
4949
  }
4925
- function Oo(e) {
4950
+ function So(e) {
4926
4951
  if (!e)
4927
4952
  return 1;
4928
4953
  for (const n of xe)
@@ -4930,9 +4955,9 @@ function Oo(e) {
4930
4955
  return n.value;
4931
4956
  return 1;
4932
4957
  }
4933
- const ca = class {
4958
+ const pa = class {
4934
4959
  constructor(e) {
4935
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.reminderTime = Eo(this.eventReminderTimeMinutes), this.reminderTimeMinutes = this.eventReminderTimeMinutes ?? 30, this.reminderTimeincrement = Oo(this.eventReminderTimeMinutes), this.reminderTimeMinutesOptions = dt;
4960
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.reminderTime = Oo(this.eventReminderTimeMinutes), this.reminderTimeMinutes = this.eventReminderTimeMinutes ?? 30, this.reminderTimeincrement = So(this.eventReminderTimeMinutes), this.reminderTimeMinutesOptions = dt;
4936
4961
  }
4937
4962
  elementNameChangedHandler(e) {
4938
4963
  d("nylas-reminder-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4956,7 +4981,7 @@ const ca = class {
4956
4981
  return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
4957
4982
  }
4958
4983
  setReminderTimeMinuteOptions() {
4959
- return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = dt : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions = _a : this.reminderTimeMinutesOptions = Ca, this.reminderTimeMinutesOptions;
4984
+ return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = dt : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions = Ca : this.reminderTimeMinutesOptions = wa, this.reminderTimeMinutesOptions;
4960
4985
  }
4961
4986
  nylasFormDropdownChangedHandler(e) {
4962
4987
  d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
@@ -4984,7 +5009,7 @@ const ca = class {
4984
5009
  };
4985
5010
  }
4986
5011
  };
4987
- ko([
5012
+ Eo([
4988
5013
  S({
4989
5014
  name: "nylas-reminder-time",
4990
5015
  eventToProps: {},
@@ -4993,10 +5018,10 @@ ko([
4993
5018
  qn("design:type", Function),
4994
5019
  qn("design:paramtypes", []),
4995
5020
  qn("design:returntype", void 0)
4996
- ], ca.prototype, "render", null);
4997
- ca.style = xo;
4998
- const So = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);margin:0.25rem 0 0 0;font-size:14px;font-weight:400;line-height:20px;text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label tooltip-component{display:flex}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-scheduling-method .nylas-scheduling-method__dropdown input-component::part(ic__input){background:var(--nylas-base-50);outline:none;cursor:not-allowed}', Do = So;
4999
- var Ho = function(e, n, t, a) {
5021
+ ], pa.prototype, "render", null);
5022
+ pa.style = ko;
5023
+ const Ho = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);margin:0.25rem 0 0 0;font-size:14px;font-weight:400;line-height:20px;text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label tooltip-component{display:flex}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-scheduling-method .nylas-scheduling-method__dropdown input-component::part(ic__input){background:var(--nylas-base-50);outline:none;cursor:not-allowed}', Do = Ho;
5024
+ var To = function(e, n, t, a) {
5000
5025
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
5001
5026
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
5002
5027
  i = Reflect.decorate(e, n, t, a);
@@ -5008,9 +5033,9 @@ var Ho = function(e, n, t, a) {
5008
5033
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
5009
5034
  return Reflect.metadata(e, n);
5010
5035
  };
5011
- const pa = class {
5036
+ const fa = class {
5012
5037
  constructor(e) {
5013
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "availability-method", this.participantOptions = void 0, this.readOnly = !1, this.selectedBookingType = "";
5038
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "availability-method", this.participantOptions = void 0, this.readOnly = !1, this.selectedBookingType = "";
5014
5039
  }
5015
5040
  connectedCallback() {
5016
5041
  d("nylas-scheduling-method", "connectedCallback");
@@ -5071,7 +5096,7 @@ const pa = class {
5071
5096
  };
5072
5097
  }
5073
5098
  };
5074
- Ho([
5099
+ To([
5075
5100
  S({
5076
5101
  name: "nylas-scheduling-method",
5077
5102
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -5087,10 +5112,10 @@ Ho([
5087
5112
  Vn("design:type", Function),
5088
5113
  Vn("design:paramtypes", []),
5089
5114
  Vn("design:returntype", void 0)
5090
- ], pa.prototype, "render", null);
5091
- pa.style = Do;
5092
- const To = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Io = To;
5093
- var $o = function(e, n, t, a) {
5115
+ ], fa.prototype, "render", null);
5116
+ fa.style = Do;
5117
+ const Io = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', $o = Io;
5118
+ var Fo = function(e, n, t, a) {
5094
5119
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
5095
5120
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
5096
5121
  i = Reflect.decorate(e, n, t, a);
@@ -5102,10 +5127,10 @@ var $o = function(e, n, t, a) {
5102
5127
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
5103
5128
  return Reflect.metadata(e, n);
5104
5129
  };
5105
- const Ve = 15, fa = class {
5130
+ const Ve = 15, ma = class {
5106
5131
  constructor(e) {
5107
5132
  var n, t;
5108
- b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.duration_minutes, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
5133
+ g(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.duration_minutes, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
5109
5134
  }
5110
5135
  elementNameChangedHandler(e) {
5111
5136
  d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -5178,7 +5203,7 @@ const Ve = 15, fa = class {
5178
5203
  { value: "45", label: "45 mins" },
5179
5204
  { value: "60", label: "60 mins" }
5180
5205
  ], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((t) => t.value == this.selectedInterval.toString()) ?? e[0] : void 0;
5181
- return s(E, { key: "8f7dd99dfc3f41a0435f37c9a8e4052732a9868b" }, s("div", { key: "c2c462dd6409b08f0d641fc6c169793dc5a05150", class: "nylas-timeslot-interval", part: "nti" }, s("div", { key: "b6e29f56325f75b03ad4ba933fabea9825eb50cc", class: "header", part: "nti__header" }, s("h3", { key: "1c736752d9bd7e8e0a4b113eb858b8d9420fc72b" }, "Time slot settings")), s("div", { key: "3577261419231e74b71e890a2de0629ac0c02c89", class: "nylas-timeslot-interval__dropdown" }, s("span", { key: "68dc2a1f0709ca3b1a14d68001cde315b83509cc", class: "label", part: "nti__input-label" }, "Time slot interval."), (n == null ? void 0 : n.label) && s("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n }), s("span", { key: "505093bca858fd24188db043fda5e3036a474d7d", slot: "label", class: "label", part: "nti__input-label" }, "Time slot rounding type", s("tooltip-component", { key: "9b63c319d79fb926da222939aea8c38600c5c70e" }, s("info-icon", { key: "a3f1ed080e6508c02cc150d9252d40eae1adb1ac", slot: "tooltip-icon" }), s("span", { key: "4690a7089fb68e0f119f3efc583a55a8dbff0b88", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), this.componentLoaded && s("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
5206
+ return s(E, { key: "ab8e3b84ca1e7d005dfbb48f293b79e8207c23bf" }, s("div", { key: "1a86d259897b0747ae9f5ac9372397c6cde82988", class: "nylas-timeslot-interval", part: "nti" }, s("div", { key: "9286ae474f9ff0fa0969f29064506decfca7276e", class: "header", part: "nti__header" }, s("h3", { key: "a8229e779db361d0178883c57a61b49ff5dc0e76" }, "Time slot settings")), s("div", { key: "39ce5de27f8bd68a39f46cfa42a7f05d338b4dcc", class: "nylas-timeslot-interval__dropdown" }, s("span", { key: "94d9acdfa2d7f091c4a0b4351f0616cb654359b2", class: "label", part: "nti__input-label" }, "Time slot interval."), (n == null ? void 0 : n.label) && s("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n }), s("span", { key: "0ffaa20e58b54ace7ce43dff78a6f3e61f3fd6eb", slot: "label", class: "label", part: "nti__input-label" }, "Time slot rounding type", s("tooltip-component", { key: "9344477a28ce7594a4aa2534947907a78b506a45" }, s("info-icon", { key: "7987999d4cd119bc530534fb321fec725b6a2ead", slot: "tooltip-icon" }), s("span", { key: "7d8b75bfe3928e49c42fedc23c42eaf83aaaceeb", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), this.componentLoaded && s("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
5182
5207
  { value: "no-rounding", label: "Default", description: "Time slots will be rounded to the nearest quarter-hour." },
5183
5208
  {
5184
5209
  value: "rounding",
@@ -5200,7 +5225,7 @@ const Ve = 15, fa = class {
5200
5225
  };
5201
5226
  }
5202
5227
  };
5203
- $o([
5228
+ Fo([
5204
5229
  S({
5205
5230
  name: "nylas-timeslot-interval",
5206
5231
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -5209,125 +5234,105 @@ $o([
5209
5234
  Jn("design:type", Function),
5210
5235
  Jn("design:paramtypes", []),
5211
5236
  Jn("design:returntype", void 0)
5212
- ], fa.prototype, "render", null);
5213
- fa.style = Io;
5214
- const Po = ".sc-paintbrush-fill-icon-h{display:flex}", Fo = Po, No = class {
5237
+ ], ma.prototype, "render", null);
5238
+ ma.style = $o;
5239
+ const Po = ".sc-paintbrush-fill-icon-h{display:flex}", Lo = Po, No = class {
5215
5240
  constructor(e) {
5216
- b(this, e), this.width = "16", this.height = "13";
5241
+ g(this, e), this.width = "16", this.height = "13";
5217
5242
  }
5218
5243
  render() {
5219
5244
  return s("svg", { key: "e4684ac3235a59975a67508b6a5019e70b1a3a5a", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "00dee1b55784f1191d56a8c1b420f0076575a197", d: "M5 2.875V0.375H0.5C0.223858 0.375 0 0.598858 0 0.875V7.37585H10V0.875C10 0.598858 9.77614 0.375 9.5 0.375H8V3.87722C8 4.15337 7.77614 4.37722 7.5 4.37722C7.22386 4.37722 7 4.15337 7 3.87722V0.375H6V2.875C6 3.15114 5.77614 3.375 5.5 3.375C5.22386 3.375 5 3.15114 5 2.875ZM10 8.37585H0V9.37938C0 10.4839 0.895431 11.3794 2 11.3794H3.5V14.8767C3.5 15.7051 4.17157 16.3767 5 16.3767C5.82843 16.3767 6.5 15.7051 6.5 14.8767V11.3794H8C9.10457 11.3794 10 10.4839 10 9.37938V8.37585Z", fill: "currentColor" }));
5220
5245
  }
5221
5246
  };
5222
- No.style = Fo;
5223
- const Ro = ".sc-paintbrush-icon-h{display:flex}", Lo = Ro, Ao = class {
5247
+ No.style = Lo;
5248
+ const Ro = ".sc-paintbrush-icon-h{display:flex}", Ao = Ro, Mo = class {
5224
5249
  constructor(e) {
5225
- b(this, e), this.width = "16", this.height = "13";
5250
+ g(this, e), this.width = "16", this.height = "13";
5226
5251
  }
5227
5252
  render() {
5228
5253
  return s("svg", { key: "8ed14deda237ca56daa7b7cfd55788700ecf8614", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "5100cb1d8fba90615962e57facfd3361cd31f4e5", d: "M0.5 -0.000976562C0.223858 -0.000976562 0 0.222881 0 0.499023L1.90735e-05 9.00337C1.90735e-05 10.1079 0.89545 11.0034 2.00002 11.0034H3.00411V14.0007C3.00411 15.1053 3.89954 16.0007 5.00411 16.0007C6.10868 16.0007 7.00411 15.1053 7.00411 14.0007V11.0034H8.00002C9.10459 11.0034 10 10.1079 10 9.00337V7.50339L10 7.49897V0.499023C10 0.222881 9.77614 -0.000976562 9.5 -0.000976562H0.5ZM1.00002 8.00342H9.00002V9.00337C9.00002 9.55566 8.5523 10.0034 8.00002 10.0034H6.50411C6.22797 10.0034 6.00411 10.2272 6.00411 10.5034V14.0007C6.00411 14.553 5.5564 15.0007 5.00411 15.0007C4.45183 15.0007 4.00411 14.553 4.00411 14.0007V10.5034C4.00411 10.2272 3.78026 10.0034 3.50411 10.0034H2.00002C1.44773 10.0034 1.00002 9.55566 1.00002 9.00337V8.00342ZM9 7.00339H1V0.999023H5V2.49902C5 2.77517 5.22386 2.99902 5.5 2.99902C5.77614 2.99902 6 2.77517 6 2.49902V0.999023H7V3.50122C7 3.77736 7.22386 4.00122 7.5 4.00122C7.77614 4.00122 8 3.77736 8 3.50122V0.999023H9V7.00339Z", fill: "currentColor" }));
5229
5254
  }
5230
5255
  };
5231
- Ao.style = Lo;
5232
- const Mo = ".sc-people-icon-h{display:flex}", zo = Mo, jo = class {
5256
+ Mo.style = Ao;
5257
+ const zo = ".sc-people-icon-h{display:flex}", jo = zo, Uo = class {
5233
5258
  constructor(e) {
5234
- b(this, e), this.width = "20", this.height = "20";
5259
+ g(this, e), this.width = "20", this.height = "20";
5235
5260
  }
5236
5261
  render() {
5237
5262
  return s("svg", { key: "e7e23abad1ff011b5e2d8931755a605179586351", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, s("path", { key: "3ddb5e0a172b339cd8d33c3ae95fda09c0edd3bb", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
5238
5263
  }
5239
5264
  };
5240
- jo.style = zo;
5241
- const Uo = '.switch{--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;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}', Wo = Uo, Bo = class {
5242
- constructor(e) {
5243
- b(this, e), this.nylasFormSwitchToggled = x(this, "nylasFormSwitchToggled", 7), this.name = "toggle-switch", this.checked = !1, this.label = "", this.isChecked = this.checked;
5244
- }
5245
- componentWillLoad() {
5246
- this.isChecked = this.checked;
5247
- }
5248
- toggleCheck() {
5249
- this.isChecked = !this.isChecked, this.nylasFormSwitchToggled.emit({
5250
- checked: this.isChecked,
5251
- name: this.name,
5252
- label: this.label
5253
- });
5254
- }
5255
- render() {
5256
- return s("label", { key: "7d74c0f5a452c3261e1cdd897a5092697a6782bb", class: "switch", part: "ts_label" }, s("input", { key: "80f5740b7e4a7af96b95648dd556b50c0537b505", type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), s("div", { key: "5176ee85b2fd72586ae6faf41e84c2ef60598f32", class: "slider round", part: "ts_slider" }));
5257
- }
5258
- };
5259
- Bo.style = Wo;
5260
- const Zo = ".sc-trash-icon-h{display:flex}", qo = Zo, Vo = class {
5265
+ Uo.style = jo;
5266
+ const Wo = ".sc-trash-icon-h{display:flex}", Bo = Wo, Zo = class {
5261
5267
  constructor(e) {
5262
- b(this, e), this.width = "20", this.height = "21";
5268
+ g(this, e), this.width = "20", this.height = "21";
5263
5269
  }
5264
5270
  render() {
5265
5271
  return s("svg", { key: "996def7abb49e7006b1982be54b9a7a0da6fb27f", width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "85f12d3be93cba4337ddf2fc99d89c80dbf6008c", d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" }));
5266
5272
  }
5267
5273
  };
5268
- Vo.style = qo;
5269
- const Jo = ".sc-zoom-icon-h{display:flex}", Go = Jo, Yo = class {
5274
+ Zo.style = Bo;
5275
+ const qo = ".sc-zoom-icon-h{display:flex}", Vo = qo, Jo = class {
5270
5276
  constructor(e) {
5271
- b(this, e), this.width = "20", this.height = "20";
5277
+ g(this, e), this.width = "20", this.height = "20";
5272
5278
  }
5273
5279
  render() {
5274
5280
  return s("svg", { key: "9789a9930b484f5094660e3b26ca8597a9b98079", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "a6c4d6c5d01a39cf9f302982b9d59e20ef8dd4fe", d: "M19.7495 6.85792C19.2077 3.4745 16.5255 0.792345 13.1421 0.250451C12.1175 0.0865155 11.0702 0 10 0C8.92992 0 7.88256 0.0865155 6.85797 0.250451C3.47453 0.792345 0.792373 3.4745 0.250478 6.85792C0.0865433 7.87796 0 8.92987 0 10C0 11.0701 0.0865433 12.1175 0.250478 13.1421C0.792373 16.5255 3.47453 19.2077 6.85797 19.7495C7.88256 19.9135 8.92992 20 10 20C11.0702 20 12.1175 19.9135 13.1421 19.7495C16.5255 19.2077 19.2077 16.5255 19.7495 13.1421C19.9135 12.122 20 11.0701 20 10C20 8.92987 19.9135 7.88251 19.7495 6.85792Z", fill: "url(#paint0_linear_22_6272)" }), s("path", { key: "8a1742b847a85d297382072fa1344e261236b2c7", d: "M12.154 12.1676C12.154 12.7596 11.6759 13.2377 11.0839 13.2377H6.42995C5.24598 13.2377 4.28516 12.2769 4.28516 11.0929V7.87794C4.28516 7.28596 4.76328 6.80786 5.35527 6.80786H10.0092C11.1932 6.80786 12.154 7.7687 12.154 8.95267V12.1676ZM14.8589 7.09475L13.2879 8.27412C13.0193 8.47448 12.8598 8.79324 12.8598 9.13022V10.9153C12.8598 11.2523 13.0193 11.5711 13.2879 11.7714L14.8589 12.9508C15.2141 13.2149 15.715 12.9645 15.715 12.5228V7.5228C15.715 7.08109 15.2096 6.83063 14.8589 7.09475Z", fill: "white" }), s("defs", { key: "be2e9962bb2dec55076c7b323ad5b1140ef9283b" }, s("linearGradient", { key: "7d273efb34a3a13abd745023ff924b1dbd87be37", id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "841a9fc4ea78d5507cd19a581573c8cf86fb443a", "stop-color": "#003FAE" }), s("stop", { key: "84c1e64fa2dcdf8bc3c532db4d67bcda557c6a50", offset: "0.02", "stop-color": "#0142B7" }), s("stop", { key: "c5fccfcd3460597ba44aea510048970b5ea750bf", offset: "0.09", "stop-color": "#044BD1" }), s("stop", { key: "08b1ebe7800ae3e1da23755119f3411693ab22ab", offset: "0.16", "stop-color": "#0752E5" }), s("stop", { key: "16c3bc399028a8377c06c6e1b4cf1680717ef464", offset: "0.24", "stop-color": "#0958F4" }), s("stop", { key: "c5938a655523d730914af0f13eebd1d51527cab8", offset: "0.34", "stop-color": "#0A5BFC" }), s("stop", { key: "c3ec1966b6d7602465a59c2b5db40ad4738cfc0b", offset: "0.5", "stop-color": "#0B5CFF" }))));
5275
5281
  }
5276
5282
  };
5277
- Yo.style = Go;
5283
+ Jo.style = Vo;
5278
5284
  export {
5279
- ka as calendar_agenda_fill_icon,
5280
- Sa as calendar_agenda_icon,
5281
- Ta as calendar_info_icon,
5285
+ Ea as calendar_agenda_fill_icon,
5286
+ Ha as calendar_agenda_icon,
5287
+ Ia as calendar_info_icon,
5282
5288
  Pa as calendar_patterns_icon,
5283
5289
  Ra as checkmark_icon,
5284
- Ma as dragable_icon,
5285
- Ua as envelope_fill_icon,
5286
- Za as envelope_icon,
5287
- Ja as eye_icon,
5288
- Xa as feedback_icon,
5289
- ei as flow_icon,
5290
- ai as google_meet_icon,
5291
- _t as input_image_url,
5292
- di as location_icon,
5293
- fi as location_off_icon,
5294
- ui as microsoft_teams_icon,
5295
- Ct as nylas_additional_participants,
5296
- wt as nylas_availability_picker,
5297
- xt as nylas_booking_calendar_picker,
5298
- kt as nylas_booking_confirmation_redirect,
5299
- Et as nylas_booking_confirmation_type,
5300
- zt as nylas_booking_form_config,
5301
- jt as nylas_buffer_time,
5302
- Ut as nylas_calendar_picker,
5303
- Wt as nylas_cancellation_policy,
5304
- Bt as nylas_confirmation_email,
5305
- Zt as nylas_connected_calendars,
5306
- qt as nylas_custom_booking_flow,
5307
- Vt as nylas_custom_event_slug,
5308
- Jt as nylas_customize_booking_settings,
5309
- Gt as nylas_event_description,
5310
- Yt as nylas_event_duration,
5311
- Xt as nylas_event_info,
5312
- Kt as nylas_event_limits,
5313
- Qt as nylas_event_location,
5314
- ea as nylas_event_title,
5315
- na as nylas_feedback_form,
5316
- ta as nylas_limit_future_bookings,
5317
- aa as nylas_min_booking_notice,
5318
- ia as nylas_min_cancellation_notice,
5319
- sa as nylas_page_name,
5320
- oa as nylas_page_styling,
5321
- ra as nylas_participant_booking_calendars,
5322
- la as nylas_participants_custom_availability,
5323
- da as nylas_reminder_emails,
5324
- ca as nylas_reminder_time,
5325
- pa as nylas_scheduling_method,
5326
- fa as nylas_timeslot_interval,
5290
+ za as dragable_icon,
5291
+ Wa as envelope_fill_icon,
5292
+ qa as envelope_icon,
5293
+ Ga as eye_icon,
5294
+ Ka as feedback_icon,
5295
+ ni as flow_icon,
5296
+ ii as google_meet_icon,
5297
+ Ct as input_image_url,
5298
+ ci as location_icon,
5299
+ mi as location_off_icon,
5300
+ yi as microsoft_teams_icon,
5301
+ wt as nylas_additional_participants,
5302
+ xt as nylas_availability_picker,
5303
+ kt as nylas_booking_calendar_picker,
5304
+ Et as nylas_booking_confirmation_redirect,
5305
+ Ot as nylas_booking_confirmation_type,
5306
+ jt as nylas_booking_form_config,
5307
+ Ut as nylas_buffer_time,
5308
+ Wt as nylas_calendar_picker,
5309
+ Bt as nylas_cancellation_policy,
5310
+ Zt as nylas_confirmation_email,
5311
+ qt as nylas_connected_calendars,
5312
+ Vt as nylas_custom_booking_flow,
5313
+ Jt as nylas_custom_event_slug,
5314
+ Gt as nylas_customize_booking_settings,
5315
+ Yt as nylas_event_description,
5316
+ Xt as nylas_event_duration,
5317
+ Kt as nylas_event_info,
5318
+ Qt as nylas_event_limits,
5319
+ ea as nylas_event_location,
5320
+ na as nylas_event_title,
5321
+ ta as nylas_feedback_form,
5322
+ aa as nylas_limit_future_bookings,
5323
+ ia as nylas_min_booking_notice,
5324
+ sa as nylas_min_cancellation_notice,
5325
+ oa as nylas_page_name,
5326
+ ra as nylas_page_styling,
5327
+ la as nylas_participant_booking_calendars,
5328
+ da as nylas_participants_custom_availability,
5329
+ ca as nylas_reminder_emails,
5330
+ pa as nylas_reminder_time,
5331
+ fa as nylas_scheduling_method,
5332
+ ma as nylas_timeslot_interval,
5327
5333
  No as paintbrush_fill_icon,
5328
- Ao as paintbrush_icon,
5329
- jo as people_icon,
5330
- Bo as toggle_switch,
5331
- Vo as trash_icon,
5332
- Yo as zoom_icon
5334
+ Mo as paintbrush_icon,
5335
+ Uo as people_icon,
5336
+ Zo as trash_icon,
5337
+ Jo as zoom_icon
5333
5338
  };