@nylas/react 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/{add-circle-icon.entry-d2b7178c.js → add-circle-icon.entry-0ea05c5b.js} +1 -1
  2. package/dist/{add-circle-icon.entry-0f0cd6d8.cjs → add-circle-icon.entry-10f2c319.cjs} +1 -1
  3. package/dist/{archive-icon.entry-ec25f93a.cjs → archive-icon.entry-7eeea6f4.cjs} +1 -1
  4. package/dist/{archive-icon.entry-602d3c58.js → archive-icon.entry-a0af58f2.js} +1 -1
  5. package/dist/{arrow-icon.entry-d4dd38b3.js → arrow-icon.entry-7fd7c18e.js} +1 -1
  6. package/dist/{arrow-icon.entry-7bcb6442.cjs → arrow-icon.entry-954f2ba8.cjs} +1 -1
  7. package/dist/{bold-icon.entry-5fc41386.js → bold-icon.entry-690ecac8.js} +1 -1
  8. package/dist/{bold-icon.entry-fc1d34a6.cjs → bold-icon.entry-e970c498.cjs} +1 -1
  9. package/dist/{button-component_2.entry-d62ae520.js → button-component_2.entry-b57d03fc.js} +1 -1
  10. package/dist/{button-component_2.entry-d23be43d.cjs → button-component_2.entry-b7d39903.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_54.entry-1a42103a.js → calendar-agenda-fill-icon_53.entry-7792b45c.js} +448 -447
  12. package/dist/calendar-agenda-fill-icon_53.entry-89e5ac45.cjs +9 -0
  13. package/dist/{calendar-cancel-icon.entry-1566c286.js → calendar-cancel-icon.entry-5757c056.js} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-bf9fc719.cjs → calendar-cancel-icon.entry-8cd02237.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-4c3e78a6.cjs → calendar-check-icon_2.entry-4f59d206.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-82407a92.js → calendar-check-icon_2.entry-6864b9d5.js} +1 -1
  17. package/dist/{calendar-icon.entry-359c064c.cjs → calendar-icon.entry-0b1edb49.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-c3c23413.js → calendar-icon.entry-3798880d.js} +1 -1
  19. package/dist/checkbox-component_3.entry-10293364.cjs +1 -0
  20. package/dist/checkbox-component_3.entry-3d9fa7b5.js +140 -0
  21. package/dist/{chevron-icon_3.entry-a6189c37.js → chevron-icon_3.entry-43e83594.js} +11 -11
  22. package/dist/{chevron-icon_3.entry-2453084c.cjs → chevron-icon_3.entry-a5175d87.cjs} +1 -1
  23. package/dist/{clock-icon_4.entry-ad679142.js → clock-icon_4.entry-219733d8.js} +1 -1
  24. package/dist/{clock-icon_4.entry-5162dfec.cjs → clock-icon_4.entry-76751b46.cjs} +1 -1
  25. package/dist/{close-icon.entry-2c6cdf35.js → close-icon.entry-286fc5ca.js} +1 -1
  26. package/dist/{close-icon.entry-38dc2638.cjs → close-icon.entry-cecd3cdd.cjs} +1 -1
  27. package/dist/{constants-35df11e7-b37e3406.js → constants-54af2051-767e8462.js} +28 -4
  28. package/dist/{constants-35df11e7-d87ad6d9.cjs → constants-54af2051-a3596673.cjs} +1 -1
  29. package/dist/{copy-icon.entry-6630ce5a.js → copy-icon.entry-121dd297.js} +1 -1
  30. package/dist/{copy-icon.entry-79df1d0e.cjs → copy-icon.entry-d4835d9a.cjs} +1 -1
  31. package/dist/{delete-icon.entry-f9a265b6.cjs → delete-icon.entry-14249f70.cjs} +1 -1
  32. package/dist/{delete-icon.entry-716f906c.js → delete-icon.entry-497ac8a2.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-bb91822a.cjs → document-refresh-icon.entry-c0eacb66.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-fa775295.js → document-refresh-icon.entry-f265bb1b.js} +1 -1
  35. package/dist/elements/index.d.ts +1 -0
  36. package/dist/{feedbackSync-adc893c2-5965d5ba.js → feedbackSync-e5cb0245-d84015c5.js} +1 -1
  37. package/dist/{feedbackSync-adc893c2-70d06afc.cjs → feedbackSync-e5cb0245-ea7ddac9.cjs} +1 -1
  38. package/dist/{folder-icon.entry-9cf7590f.js → folder-icon.entry-d22b3e80.js} +1 -1
  39. package/dist/{folder-icon.entry-82a02de7.cjs → folder-icon.entry-e4806f0a.cjs} +1 -1
  40. package/dist/{forward-icon.entry-034ec3be.cjs → forward-icon.entry-42b98c73.cjs} +1 -1
  41. package/dist/{forward-icon.entry-ebd5e108.js → forward-icon.entry-b6711af7.js} +1 -1
  42. package/dist/{globe-icon.entry-b67c68d5.cjs → globe-icon.entry-18605371.cjs} +1 -1
  43. package/dist/{globe-icon.entry-48837e22.js → globe-icon.entry-4c5d6be0.js} +1 -1
  44. package/dist/google-logo-icon_4.entry-007f2813.cjs +1 -0
  45. package/dist/{google-logo-icon_4.entry-819d7d0d.js → google-logo-icon_4.entry-c3bae7b7.js} +176 -168
  46. package/dist/{inbox-icon.entry-7f91d971.cjs → inbox-icon.entry-02c59267.cjs} +1 -1
  47. package/dist/{inbox-icon.entry-c611c154.js → inbox-icon.entry-ae4383af.js} +1 -1
  48. package/dist/{index-72501df0.js → index-ad112f6a.js} +167 -161
  49. package/dist/{index-92ba1b80.cjs → index-bbbc79ad.cjs} +17 -17
  50. package/dist/{index.es-28b1b2ec-5a87db22.js → index.es-e9d66a9b-62be34ce.js} +214 -211
  51. package/dist/{index.es-28b1b2ec-595c0513.cjs → index.es-e9d66a9b-a29322e0.cjs} +5 -5
  52. package/dist/{info-icon_2.entry-4ad69286.js → info-icon_2.entry-3f143408.js} +5 -5
  53. package/dist/{info-icon_2.entry-4c70ab61.cjs → info-icon_2.entry-d10f1df5.cjs} +1 -1
  54. package/dist/{input-color-picker.entry-46bf04e1.cjs → input-color-picker.entry-45caaa1d.cjs} +1 -1
  55. package/dist/{input-color-picker.entry-4e5760ce.js → input-color-picker.entry-8ce41f49.js} +1 -1
  56. package/dist/{input-component.entry-1019ce99.cjs → input-component.entry-37b106dc.cjs} +1 -1
  57. package/dist/{input-component.entry-dca1013f.js → input-component.entry-6db98fb0.js} +1 -1
  58. package/dist/{input-dropdown.entry-e535fb5e.cjs → input-dropdown.entry-1a2cdf40.cjs} +1 -1
  59. package/dist/{input-dropdown.entry-f14c59e7.js → input-dropdown.entry-ec3d04ad.js} +1 -1
  60. package/dist/{italic-icon.entry-2ab53839.js → italic-icon.entry-36d1e644.js} +1 -1
  61. package/dist/{italic-icon.entry-726cc194.cjs → italic-icon.entry-b5e4eec9.cjs} +1 -1
  62. package/dist/{multi-select-dropdown.entry-6820d249.cjs → multi-select-dropdown.entry-00e43a89.cjs} +1 -1
  63. package/dist/{multi-select-dropdown.entry-a097d3cb.js → multi-select-dropdown.entry-6f22740f.js} +1 -1
  64. package/dist/nylas-booked-event-card_12.entry-4f115674.cjs +1 -0
  65. package/dist/{nylas-booked-event-card_12.entry-ccd85ff4.js → nylas-booked-event-card_12.entry-cb6b2ce6.js} +428 -423
  66. package/dist/{nylas-form-card.entry-afdfee47.js → nylas-form-card.entry-07e46491.js} +11 -11
  67. package/dist/{nylas-form-card.entry-8eb47f3d.cjs → nylas-form-card.entry-e2749723.cjs} +1 -1
  68. package/dist/{nylas-if-state.entry-be7978de.cjs → nylas-if-state.entry-88e01248.cjs} +1 -1
  69. package/dist/{nylas-if-state.entry-7caad39f.js → nylas-if-state.entry-e34c5cbb.js} +2 -2
  70. package/dist/{nylas-login.entry-dcf85f93.js → nylas-login.entry-a30bbd87.js} +3 -3
  71. package/dist/{nylas-login.entry-bce4f689.cjs → nylas-login.entry-ab50ca6a.cjs} +1 -1
  72. package/dist/{nylas-provider.entry-97882e4b.js → nylas-provider.entry-070f8090.js} +5 -5
  73. package/dist/{nylas-provider.entry-f02017da.cjs → nylas-provider.entry-7f4a1520.cjs} +1 -1
  74. package/dist/{nylas-scheduler-editor.entry-dcfdd6bf.js → nylas-scheduler-editor.entry-23e68865.js} +12 -12
  75. package/dist/nylas-scheduler-editor.entry-287ca230.cjs +2 -0
  76. package/dist/{nylas-scheduling.entry-2b842e93.js → nylas-scheduling.entry-19fca55a.js} +10 -10
  77. package/dist/{nylas-scheduling.entry-e0e9c8e8.cjs → nylas-scheduling.entry-c882ee9a.cjs} +1 -1
  78. package/dist/nylas-time-window-picker_2.entry-3d24eec4.js +336 -0
  79. package/dist/nylas-time-window-picker_2.entry-9a216230.cjs +1 -0
  80. package/dist/{person-icon.entry-3ec67feb.js → person-icon.entry-a6d86572.js} +1 -1
  81. package/dist/{person-icon.entry-2f8e00fd.cjs → person-icon.entry-b26a199b.cjs} +1 -1
  82. package/dist/{play-icon.entry-1abf79e9.cjs → play-icon.entry-5fc66fe6.cjs} +1 -1
  83. package/dist/{play-icon.entry-a840bdca.js → play-icon.entry-87939760.js} +1 -1
  84. package/dist/react.cjs +1 -1
  85. package/dist/react.js +73 -72
  86. package/dist/{refresh-icon.entry-af7f54b4.cjs → refresh-icon.entry-3a8ae0f6.cjs} +1 -1
  87. package/dist/{refresh-icon.entry-11fcb673.js → refresh-icon.entry-820111be.js} +1 -1
  88. package/dist/{register-component-75f530bc-0e4e3d7a.js → register-component-5d7bcc15-35e4a5a0.js} +12 -12
  89. package/dist/{register-component-75f530bc-61b6f2dd.cjs → register-component-5d7bcc15-d9900fbc.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-5c8b3356.js → reply-all-icon.entry-5fbf1103.js} +1 -1
  91. package/dist/{reply-all-icon.entry-cc2ad940.cjs → reply-all-icon.entry-864494e2.cjs} +1 -1
  92. package/dist/{reply-icon.entry-d048736f.js → reply-icon.entry-7c136d06.js} +1 -1
  93. package/dist/{reply-icon.entry-840acade.cjs → reply-icon.entry-93084ffd.cjs} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-161a3efd.cjs → scheduler-config-store-ed4a8dfd-b2986359.cjs} +1 -1
  95. package/dist/{scheduler-config-store-ed4a8dfd-f74e58ae.js → scheduler-config-store-ed4a8dfd-f7f53255.js} +1 -1
  96. package/dist/scheduler-store-20151a77-2dfd28c2.cjs +1 -0
  97. package/dist/{scheduler-store-d84b82a0-11faba86.js → scheduler-store-20151a77-4f7ffb6f.js} +127 -124
  98. package/dist/{sent-icon.entry-987760ce.cjs → sent-icon.entry-18afc1f9.cjs} +1 -1
  99. package/dist/{sent-icon.entry-fd3b9ad9.js → sent-icon.entry-60f1b814.js} +1 -1
  100. package/dist/{spam-icon.entry-3ce4f9fc.cjs → spam-icon.entry-9d41427e.cjs} +1 -1
  101. package/dist/{spam-icon.entry-4665415c.js → spam-icon.entry-b580b108.js} +1 -1
  102. package/dist/{star-icon.entry-0f446ac7.js → star-icon.entry-7cbe5a81.js} +1 -1
  103. package/dist/{star-icon.entry-a3ba4703.cjs → star-icon.entry-8792026f.cjs} +1 -1
  104. package/dist/{stop-icon.entry-9c13e00a.cjs → stop-icon.entry-5b605364.cjs} +1 -1
  105. package/dist/{stop-icon.entry-72c964b2.js → stop-icon.entry-ae629874.js} +1 -1
  106. package/dist/{textarea-component.entry-ff04b5fa.cjs → textarea-component.entry-2dae13db.cjs} +1 -1
  107. package/dist/{textarea-component.entry-d414e219.js → textarea-component.entry-fa87a032.js} +2 -2
  108. package/dist/{time-period-selector.entry-53edc0ba.js → time-period-selector.entry-0de79682.js} +2 -2
  109. package/dist/{time-period-selector.entry-2ce3347a.cjs → time-period-selector.entry-b1f5523b.cjs} +1 -1
  110. package/dist/{translate-icon.entry-84a78b9a.js → translate-icon.entry-07e9c2cf.js} +1 -1
  111. package/dist/{translate-icon.entry-9bab13ad.cjs → translate-icon.entry-22ef3602.cjs} +1 -1
  112. package/dist/{trash-fill-icon.entry-2881a44c.js → trash-fill-icon.entry-81ee0fdf.js} +1 -1
  113. package/dist/{trash-fill-icon.entry-84f52290.cjs → trash-fill-icon.entry-d332cf5d.cjs} +1 -1
  114. package/dist/{underline-icon.entry-23eca319.js → underline-icon.entry-dce1c48b.js} +1 -1
  115. package/dist/{underline-icon.entry-5a8410ef.cjs → underline-icon.entry-e381e3d2.cjs} +1 -1
  116. package/dist/{warning-icon.entry-abf9e5dc.js → warning-icon.entry-76d03910.js} +1 -1
  117. package/dist/{warning-icon.entry-1966042d.cjs → warning-icon.entry-b55e52d0.cjs} +1 -1
  118. package/package.json +3 -3
  119. package/dist/calendar-agenda-fill-icon_54.entry-95ccb99e.cjs +0 -9
  120. package/dist/checkbox-component_2.entry-97e97789.js +0 -79
  121. package/dist/checkbox-component_2.entry-f974e789.cjs +0 -1
  122. package/dist/google-logo-icon_4.entry-b637470a.cjs +0 -1
  123. package/dist/nylas-booked-event-card_12.entry-c684905b.cjs +0 -1
  124. package/dist/nylas-scheduler-editor.entry-cc6f4060.cjs +0 -2
  125. package/dist/nylas-time-window-picker.entry-96f5fe9a.js +0 -316
  126. package/dist/nylas-time-window-picker.entry-a8780f2e.cjs +0 -1
  127. package/dist/scheduler-store-d84b82a0-7a7fe186.cjs +0 -1
@@ -1,11 +1,11 @@
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-72501df0.js";
2
- import { R as S } from "./register-component-75f530bc-0e4e3d7a.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-35df11e7-b37e3406.js";
1
+ import { r as g, h as s, c as x, d, D as ha, H as E, g as O, E as he, 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-ad112f6a.js";
2
+ import { R as S } from "./register-component-5d7bcc15-35e4a5a0.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-54af2051-767e8462.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  const wa = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = wa, ka = 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" }));
@@ -14,7 +14,7 @@ const wa = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = wa, ka = class
14
14
  ka.style = xa;
15
15
  const Ea = ".sc-calendar-agenda-icon-h{display:flex}", Oa = Ea, Sa = 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" }));
@@ -23,34 +23,34 @@ const Ea = ".sc-calendar-agenda-icon-h{display:flex}", Oa = Ea, Sa = class {
23
23
  Sa.style = Oa;
24
24
  const Da = ".sc-calendar-info-icon-h{display:flex}", Ha = Da, Ta = 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
32
  Ta.style = Ha;
33
- const Ia = ".sc-calendar-patterns-icon-h{display:flex}", $a = Ia, Pa = class {
33
+ const Ia = ".sc-calendar-patterns-icon-h{display:flex}", $a = Ia, Fa = 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
+ Fa.style = $a;
42
+ const Na = ".sc-checkmark-icon-h{display:flex}", Pa = Na, La = 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
- Ra.style = Na;
51
- const La = ".sc-dragable-icon-h{display:flex}", Aa = La, Ma = class {
50
+ La.style = Pa;
51
+ const Ra = ".sc-dragable-icon-h{display:flex}", Aa = Ra, Ma = 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" }));
@@ -59,25 +59,25 @@ const La = ".sc-dragable-icon-h{display:flex}", Aa = La, Ma = class {
59
59
  Ma.style = Aa;
60
60
  const za = ".sc-envelope-fill-icon-h{display:flex}", ja = za, Ua = 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
68
  Ua.style = ja;
69
- const Wa = ".sc-envelope-icon-h{display:flex}", Ba = Wa, Za = class {
69
+ const Ba = ".sc-envelope-icon-h{display:flex}", Wa = Ba, Za = 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;
77
+ Za.style = Wa;
78
78
  const qa = ".sc-eye-icon-h{display:flex}", Va = qa, Ja = 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" }));
@@ -86,7 +86,7 @@ const qa = ".sc-eye-icon-h{display:flex}", Va = qa, Ja = class {
86
86
  Ja.style = Va;
87
87
  const Ga = ".sc-feedback-icon-h{display:flex}", Ya = Ga, Xa = 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" }));
@@ -95,7 +95,7 @@ const Ga = ".sc-feedback-icon-h{display:flex}", Ya = Ga, Xa = class {
95
95
  Xa.style = Ya;
96
96
  const Ka = ".sc-flow-icon-h{display:flex}", Qa = Ka, ei = 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" }));
@@ -104,7 +104,7 @@ const Ka = ".sc-flow-icon-h{display:flex}", Qa = Ka, ei = class {
104
104
  ei.style = Qa;
105
105
  const ni = ".sc-google-meet-icon-h{display:flex}", ti = ni, ai = 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" }))));
@@ -126,7 +126,7 @@ var oi = function(e, n, t, a) {
126
126
  };
127
127
  const _t = 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 = "", ha(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.");
@@ -202,7 +202,7 @@ oi([
202
202
  _t.style = si;
203
203
  const ri = ".sc-location-icon-h{display:flex}", li = ri, di = 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" }));
@@ -211,22 +211,22 @@ const ri = ".sc-location-icon-h{display:flex}", li = ri, di = class {
211
211
  di.style = li;
212
212
  const ci = ".sc-location-off-icon-h{display:flex}", pi = ci, fi = 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
220
  fi.style = pi;
221
- const mi = ".sc-microsoft-teams-icon-h{display:flex}", hi = mi, ui = class {
221
+ const mi = ".sc-microsoft-teams-icon-h{display:flex}", ui = mi, hi = 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;
229
+ hi.style = ui;
230
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
231
  var gi = function(e, n, t, a) {
232
232
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
@@ -242,32 +242,30 @@ var gi = function(e, n, t, a) {
242
242
  };
243
243
  const Ct = 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");
257
255
  }
258
256
  componentWillLoad() {
259
- d("nylas-additional-participants", "componentWillLoad"), this.host.setAttribute("name", this.name);
257
+ d("nylas-additional-participants", "componentWillLoad"), this.host.setAttribute("name", this.name), this.updateState(this.selectedConfiguration, this.currentUser);
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");
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,7 +341,8 @@ 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
  };
@@ -379,7 +378,7 @@ var Ci = function(e, n, t, a) {
379
378
  };
380
379
  const wt = 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" }],
@@ -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: he(a.start),
467
+ end: he(a.end),
469
468
  originalIndex: o
470
469
  }));
471
470
  n.sort((a, o) => a.start - o.start);
@@ -480,8 +479,8 @@ 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: he(r.start),
483
+ end: he(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({
@@ -506,7 +505,7 @@ const wt = class {
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) => he(o.start) - he(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 };
@@ -621,7 +620,7 @@ var ki = function(e, n, t, a) {
621
620
  };
622
621
  const xt = 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");
@@ -726,7 +725,7 @@ var Si = function(e, n, t, a) {
726
725
  };
727
726
  const kt = 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);
@@ -841,7 +840,7 @@ var Ti = function(e, n, t, a) {
841
840
  const Et = 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);
@@ -986,7 +985,7 @@ function $i(e, n) {
986
985
  o = a[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
987
986
  return t;
988
987
  }
989
- function Pi(e, n) {
988
+ function Fi(e, n) {
990
989
  if (e == null)
991
990
  return {};
992
991
  var t = $i(e, n), a, o;
@@ -997,12 +996,12 @@ function Pi(e, n) {
997
996
  }
998
997
  return t;
999
998
  }
1000
- var Fi = "1.15.2";
999
+ var Ni = "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), Pe = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), Ot = ee(/iP(ad|od|hone)/i), St = ee(/chrome/i) && ee(/android/i), Dt = {
1006
1005
  capture: !1,
1007
1006
  passive: !1
1008
1007
  };
@@ -1028,7 +1027,7 @@ function Qe(e, n) {
1028
1027
  return !1;
1029
1028
  }
1030
1029
  }
1031
- function Ni(e) {
1030
+ function Pi(e) {
1032
1031
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1033
1032
  }
1034
1033
  function G(e, n, t, a) {
@@ -1039,12 +1038,12 @@ function G(e, n, t, a) {
1039
1038
  return e;
1040
1039
  if (e === t)
1041
1040
  break;
1042
- } while (e = Ni(e));
1041
+ } while (e = Pi(e));
1043
1042
  }
1044
1043
  return null;
1045
1044
  }
1046
1045
  var ft = /\s+/g;
1047
- function W(e, n, t) {
1046
+ function B(e, n, t) {
1048
1047
  if (e && n)
1049
1048
  if (e.classList)
1050
1049
  e.classList[t ? "add" : "remove"](n);
@@ -1087,20 +1086,20 @@ 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 P(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))
1094
1093
  do
1095
1094
  if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || t && v(o, "position") !== "static")) {
1096
- var u = o.getBoundingClientRect();
1097
- r -= u.top + parseInt(v(o, "border-top-width")), l -= u.left + parseInt(v(o, "border-left-width")), c = r + i.height, p = l + i.width;
1095
+ var h = o.getBoundingClientRect();
1096
+ r -= h.top + parseInt(v(o, "border-top-width")), l -= h.left + parseInt(v(o, "border-left-width")), c = r + i.height, p = l + i.width;
1098
1097
  break;
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 = P(e)[n]; a; ) {
1116
+ var i = P(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())
@@ -1147,7 +1146,7 @@ function q(e, n) {
1147
1146
  e.nodeName.toUpperCase() !== "TEMPLATE" && e !== _.clone && (!n || Qe(e, n)) && t++;
1148
1147
  return t;
1149
1148
  }
1150
- function ht(e) {
1149
+ function ut(e) {
1151
1150
  var n = 0, t = 0, a = X();
1152
1151
  if (e)
1153
1152
  do {
@@ -1156,7 +1155,7 @@ function ht(e) {
1156
1155
  } while (e !== a && (e = e.parentNode));
1157
1156
  return [n, t];
1158
1157
  }
1159
- function Ri(e, n) {
1158
+ function Li(e, n) {
1160
1159
  for (var t in e)
1161
1160
  if (e.hasOwnProperty(t)) {
1162
1161
  for (var a in n)
@@ -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 Ri(e, n) {
1187
1186
  if (e && n)
1188
1187
  for (var t in n)
1189
1188
  n.hasOwnProperty(t) && (e[t] = n[t]);
@@ -1192,19 +1191,19 @@ 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;
1194
+ var Le;
1196
1195
  function Tt(e, n) {
1197
1196
  return function() {
1198
- if (!Re) {
1197
+ if (!Le) {
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), Le = setTimeout(function() {
1200
+ Le = void 0;
1202
1201
  }, n);
1203
1202
  }
1204
1203
  };
1205
1204
  }
1206
1205
  function Ai() {
1207
- clearTimeout(Re), Re = void 0;
1206
+ clearTimeout(Le), Le = void 0;
1208
1207
  }
1209
1208
  function It(e, n, t) {
1210
1209
  e.scrollLeft += n, e.scrollTop += t;
@@ -1213,12 +1212,12 @@ function $t(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
  }
1216
- function Pt(e, n, t) {
1215
+ function Ft(e, n, t) {
1217
1216
  var a = {};
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 = P(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;
@@ -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: P(o)
1238
1237
  });
1239
1238
  var i = K({}, e[e.length - 1].rect);
1240
1239
  if (o.thisAnimationDuration) {
@@ -1250,7 +1249,7 @@ function Mi() {
1250
1249
  e.push(a);
1251
1250
  },
1252
1251
  removeAnimationState: function(a) {
1253
- e.splice(Ri(e, {
1252
+ e.splice(Li(e, {
1254
1253
  target: a
1255
1254
  }), 1);
1256
1255
  },
@@ -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 = P(p), h = 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(h, 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 = ji(y, h, 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() {
@@ -1288,12 +1287,12 @@ function zi(e) {
1288
1287
  function ji(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 ge = [], un = {
1292
1291
  initializeByDefault: !0
1293
1292
  }, je = {
1294
1293
  mount: function(n) {
1295
- for (var t in hn)
1296
- hn.hasOwnProperty(t) && !(t in n) && (n[t] = hn[t]);
1294
+ for (var t in un)
1295
+ un.hasOwnProperty(t) && !(t in n) && (n[t] = un[t]);
1297
1296
  ge.forEach(function(a) {
1298
1297
  if (a.pluginName === n.pluginName)
1299
1298
  throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
@@ -1341,39 +1340,39 @@ var ge = [], hn = {
1341
1340
  }
1342
1341
  };
1343
1342
  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;
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, h = 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, H = 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 = h, C.pullMode = b ? b.lastPutMode : void 0;
1350
+ var L = K(K({}, y), je.getEventProperties(a, n));
1351
+ for (var V in L)
1352
+ C[V] = L[V];
1353
+ t && t.dispatchEvent(C), H[F] && H[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 = Fi(a, Bi);
1359
1358
  je.pluginEvent.bind(_)(n, t, K({
1360
- dragEl: h,
1361
- parentEl: I,
1362
- ghostEl: C,
1363
- rootEl: H,
1364
- nextEl: he,
1359
+ dragEl: u,
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,
1374
- newIndex: B,
1372
+ oldDraggableIndex: Re,
1373
+ newIndex: W,
1375
1374
  newDraggableIndex: oe,
1376
- hideGhostForTarget: Lt,
1375
+ hideGhostForTarget: Rt,
1377
1376
  unhideGhostForTarget: At,
1378
1377
  cloneNowHidden: function() {
1379
1378
  re = !0;
@@ -1392,25 +1391,25 @@ var Wi = ["evt"], z = function(n, t) {
1392
1391
  };
1393
1392
  function M(e) {
1394
1393
  Ui(K({
1395
- putSortable: L,
1396
- cloneEl: T,
1397
- targetEl: h,
1398
- rootEl: H,
1394
+ putSortable: R,
1395
+ cloneEl: I,
1396
+ targetEl: u,
1397
+ rootEl: T,
1399
1398
  oldIndex: we,
1400
- oldDraggableIndex: Le,
1401
- newIndex: B,
1399
+ oldDraggableIndex: Re,
1400
+ newIndex: W,
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 u, $, w, T, ue, Ge, I, re, we, W, Re, oe, Be, R, Ce = !1, en = !1, nn = [], fe, J, hn, yn, ht, yt, $e, ve, Ae, Me = !1, We = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = Ot, bt = ze || te ? "cssFloat" : "float", Wi = sn && !St && !Ot && "draggable" in document.createElement("div"), Nt = function() {
1406
1405
  if (sn) {
1407
1406
  if (te)
1408
1407
  return !1;
1409
1408
  var e = document.createElement("x");
1410
1409
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
1411
1410
  }
1412
- }(), 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;
1411
+ }(), Pt = function(n, t) {
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) + P(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + P(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")
@@ -1428,12 +1427,12 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
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 = P(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
  }
1435
1434
  }), a;
1436
- }, Rt = function(n) {
1435
+ }, Lt = function(n) {
1437
1436
  function t(i, r) {
1438
1437
  return function(l, c, p, m) {
1439
1438
  var f = l.options.group.name && c.options.group.name && l.options.group.name === c.options.group.name;
@@ -1445,25 +1444,25 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
1445
1444
  return i;
1446
1445
  if (typeof i == "function")
1447
1446
  return t(i(l, c, p, m), r)(l, c, p, m);
1448
- var u = (r ? l : c).options.group.name;
1449
- return i === !0 || typeof i == "string" && i === u || i.join && i.indexOf(u) > -1;
1447
+ var h = (r ? l : c).options.group.name;
1448
+ return i === !0 || typeof i == "string" && i === h || i.join && i.indexOf(h) > -1;
1450
1449
  };
1451
1450
  }
1452
1451
  var a = {}, o = n.group;
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");
1455
+ }, Rt = function() {
1456
+ !Nt && w && v(w, "display", "none");
1458
1457
  }, At = function() {
1459
- !Ft && C && v(C, "display", "");
1458
+ !Nt && w && v(w, "display", "");
1460
1459
  };
1461
1460
  sn && !St && 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
- if (h) {
1465
+ if (u) {
1467
1466
  n = n.touches ? n.touches[0] : n;
1468
1467
  var t = qi(n.clientX, n.clientY);
1469
1468
  if (t) {
@@ -1474,7 +1473,7 @@ var me = function(n) {
1474
1473
  }
1475
1474
  }
1476
1475
  }, Vi = function(n) {
1477
- h && h.parentNode[Z]._isOutsideThisEl(n.target);
1476
+ u && u.parentNode[Z]._isOutsideThisEl(n.target);
1478
1477
  };
1479
1478
  function _(e, n) {
1480
1479
  if (!(e && e.nodeType && e.nodeType === 1))
@@ -1495,7 +1494,7 @@ function _(e, n) {
1495
1494
  // will be set to same as swapThreshold if default
1496
1495
  removeCloneOnHide: !0,
1497
1496
  direction: function() {
1498
- return Nt(e, this.options);
1497
+ return Pt(e, this.options);
1499
1498
  },
1500
1499
  ghostClass: "sortable-ghost",
1501
1500
  chosenClass: "sortable-chosen",
@@ -1522,16 +1521,16 @@ 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 && !Pe,
1526
1525
  emptyInsertThreshold: 5
1527
1526
  };
1528
1527
  je.initializePlugins(this, e, t);
1529
1528
  for (var a in t)
1530
1529
  !(a in n) && (n[a] = t[a]);
1531
- Rt(n);
1530
+ Lt(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 : Wi, 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());
1535
1534
  }
1536
1535
  _.prototype = /** @lends Sortable.prototype */
1537
1536
  {
@@ -1540,13 +1539,13 @@ _.prototype = /** @lends Sortable.prototype */
1540
1539
  !this.el.contains(n) && n !== this.el && (ve = null);
1541
1540
  },
1542
1541
  _getDirection: function(n, t) {
1543
- return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t, h) : this.options.direction;
1542
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t, u) : this.options.direction;
1544
1543
  },
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 (ns(a), !u && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Pe && 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,
@@ -1582,27 +1581,27 @@ _.prototype = /** @lends Sortable.prototype */
1582
1581
  },
1583
1582
  _prepareDragStart: function(n, t, a) {
1584
1583
  var o = this, i = o.el, r = o.options, l = i.ownerDocument, c;
1585
- 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 = {
1588
- target: h,
1584
+ if (a && !u && a.parentNode === i) {
1585
+ var p = P(a);
1586
+ if (T = i, u = a, $ = u.parentNode, ue = u.nextSibling, Ge = a, Be = r.group, _.dragged = u, fe = {
1587
+ target: u,
1589
1588
  clientX: (t || n).clientX,
1590
1589
  clientY: (t || n).clientY
1591
- }, ut = fe.clientX - p.left, yt = fe.clientY - p.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, h.style["will-change"] = "all", c = function() {
1590
+ }, ht = fe.clientX - p.left, yt = fe.clientY - p.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, u.style["will-change"] = "all", c = function() {
1592
1591
  if (z("delayEnded", o, {
1593
1592
  evt: n
1594
1593
  }), _.eventCanceled) {
1595
1594
  o._onDrop();
1596
1595
  return;
1597
1596
  }
1598
- o._disableDelayedDragEvents(), !pt && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(n, t), M({
1597
+ o._disableDelayedDragEvents(), !pt && o.nativeDraggable && (u.draggable = !0), o._triggerDragStart(n, t), M({
1599
1598
  sortable: o,
1600
1599
  name: "choose",
1601
1600
  originalEvent: n
1602
- }), W(h, r.chosenClass, !0);
1601
+ }), B(u, 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
+ Ht(u, m.trim(), gn);
1604
+ }), 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, u.draggable = !0), z("delayStart", this, {
1606
1605
  evt: n
1607
1606
  }), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ze || te))) {
1608
1607
  if (_.eventCanceled) {
@@ -1619,14 +1618,14 @@ _.prototype = /** @lends Sortable.prototype */
1619
1618
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1620
1619
  },
1621
1620
  _disableDelayedDrag: function() {
1622
- h && gn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1621
+ u && gn(u), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1623
1622
  },
1624
1623
  _disableDelayedDragEvents: function() {
1625
1624
  var n = this.el.ownerDocument;
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 ? D(document, "pointermove", this._onTouchMove) : t ? D(document, "touchmove", this._onTouchMove) : D(document, "mousemove", this._onTouchMove) : (D(u, "dragend", this), D(T, "dragstart", this._onDragStart));
1630
1629
  try {
1631
1630
  document.selection ? Xe(function() {
1632
1631
  document.selection.empty();
@@ -1635,12 +1634,12 @@ _.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 && u) {
1639
1638
  z("dragStarted", this, {
1640
1639
  evt: t
1641
1640
  }), this.nativeDraggable && D(document, "dragover", Vi);
1642
1641
  var a = this.options;
1643
- !n && W(h, a.dragClass, !1), W(h, a.ghostClass, !0), _.active = this, n && this._appendGhost(), M({
1642
+ !n && B(u, a.dragClass, !1), B(u, a.ghostClass, !0), _.active = this, n && this._appendGhost(), M({
1644
1643
  sortable: this,
1645
1644
  name: "start",
1646
1645
  originalEvent: t
@@ -1650,10 +1649,10 @@ _.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, Rt();
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
- if (h.parentNode[Z]._isOutsideThisEl(n), t)
1655
+ if (u.parentNode[Z]._isOutsideThisEl(n), t)
1657
1656
  do {
1658
1657
  if (t[Z]) {
1659
1658
  var a = void 0;
@@ -1672,14 +1671,14 @@ _.prototype = /** @lends Sortable.prototype */
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 && ut(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) {
1682
- r ? (r.e += m - (un || 0), r.f += f - (yn || 0)) : r = {
1680
+ if (w) {
1681
+ r ? (r.e += m - (hn || 0), r.f += f - (yn || 0)) : r = {
1683
1682
  a: 1,
1684
1683
  b: 0,
1685
1684
  c: 0,
@@ -1687,21 +1686,21 @@ _.prototype = /** @lends Sortable.prototype */
1687
1686
  e: m,
1688
1687
  f
1689
1688
  };
1690
- 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;
1689
+ var h = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
1690
+ v(w, "webkitTransform", h), v(w, "mozTransform", h), v(w, "msTransform", h), v(w, "transform", h), hn = 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 = P(u, !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
- A !== document.body && A !== document.documentElement ? (A === document && (A = X()), t.top += A.scrollTop, t.left += A.scrollLeft) : A = X(), bn = ht(A);
1701
+ A !== document.body && A !== document.documentElement ? (A === document && (A = X()), t.top += A.scrollTop, t.left += A.scrollLeft) : A = X(), bn = ut(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 = u.cloneNode(!0), B(w, a.ghostClass, !1), B(w, a.fallbackClass, !0), B(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", ht / parseInt(w.style.width) * 100 + "% " + yt / parseInt(w.style.height) * 100 + "%");
1705
1704
  }
1706
1705
  },
1707
1706
  _onDragStart: function(n, t) {
@@ -1712,99 +1711,99 @@ _.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 = $t(u), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), B(I, this.options.chosenClass, !1), _.clone = I), a.cloneId = Xe(function() {
1715
+ z("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || T.insertBefore(I, u), 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 && B(u, 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, u)), D(document, "drop", a), v(u, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), D(document, "selectstart", a), $e = !0, Pe && 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 = Be === c, f = l.sort, h = R || p, b, y = this, C = !1;
1725
1724
  if (Gn)
1726
1725
  return;
1727
- function $(Ie, ma) {
1726
+ function H(Ie, ma) {
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
- fromSortable: u,
1735
+ fromSortable: h,
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: L,
1738
+ onMove: function(at, ua) {
1739
+ return qe(T, t, u, o, at, P(at), n, ua);
1741
1740
  },
1742
1741
  changed: V
1743
1742
  }, ma));
1744
1743
  }
1745
- function N() {
1746
- $("dragOverAnimationCapture"), y.captureAnimationState(), y !== u && u.captureAnimationState();
1744
+ function F() {
1745
+ H("dragOverAnimationCapture"), y.captureAnimationState(), y !== h && h.captureAnimationState();
1747
1746
  }
1748
- function R(Ie) {
1749
- return $("dragOverCompleted", {
1747
+ function L(Ie) {
1748
+ return H("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 !== h && (B(u, R ? R.options.ghostClass : p.options.ghostClass, !1), B(u, l.ghostClass, !0)), R !== y && y !== _.active ? R = y : y === _.active && R && (R = null), h === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
1751
+ H("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
1752
+ }), y !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (a === u && !u.animated || a === t && !a.animated) && (ve = null), !l.dragoverBubble && !n.rootEl && a !== document && (u.parentNode[Z]._isOutsideThisEl(n.target), !Ie && me(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), C = !0;
1754
1753
  }
1755
1754
  function V() {
1756
- B = q(h), oe = q(h, l.draggable), M({
1755
+ W = q(u), oe = q(u, l.draggable), M({
1757
1756
  sortable: y,
1758
1757
  name: "change",
1759
1758
  toEl: t,
1760
- newIndex: B,
1759
+ newIndex: W,
1761
1760
  newDraggableIndex: oe,
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;
1767
- 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;
1764
+ if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = G(a, l.draggable, t, !0), H("dragOver"), _.eventCanceled)
1765
+ return C;
1766
+ if (u.contains(n.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
1767
+ return L(!1);
1768
+ if (en = !1, p && !l.disabled && (m ? f || (r = $ !== T) : R === this || (this.lastPutMode = Be.checkPull(this, p, u, n)) && c.checkPut(this, p, u, n))) {
1769
+ if (b = this._getDirection(n, a) === "vertical", o = P(u), H("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(), H("revert"), _.eventCanceled || (ue ? T.insertBefore(u, ue) : T.appendChild(u)), L(!0);
1774
1773
  var j = et(t, l.draggable);
1775
- if (!j || Xi(n, g, this) && !j.animated) {
1776
- 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)) {
1774
+ if (!j || Xi(n, b, this) && !j.animated) {
1775
+ if (j === u)
1776
+ return L(!1);
1777
+ if (j && t === n.target && (a = j), a && (i = P(a)), qe(T, t, u, o, a, i, n, !!a) !== !1)
1778
+ return F(), j && j.nextSibling ? t.insertBefore(u, j.nextSibling) : t.appendChild(u), $ = t, V(), L(!0);
1779
+ } else if (j && Yi(n, b, this)) {
1781
1780
  var de = Ee(t, 0, l, !0);
1782
- 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);
1781
+ if (de === u)
1782
+ return L(!1);
1783
+ if (a = de, i = P(a), qe(T, t, u, o, a, i, n, !1) !== !1)
1784
+ return F(), t.insertBefore(u, de), $ = t, V(), L(!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 = P(a);
1787
+ var Y = 0, ce, Se = u.parentNode !== t, U = !Zi(u.animated && u.toRect || o, a.animated && a.toRect || i, b), De = b ? "top" : "left", ae = mt(a, "top", "top") || mt(u, "top", "top"), He = ae ? ae.scrollTop : void 0;
1788
+ ve !== a && (ce = i[De], Me = !1, We = !U && l.invertSwap || Se), Y = Ki(n, a, i, b, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, We, ve === a);
1790
1789
  var Q;
1791
1790
  if (Y !== 0) {
1792
- var pe = q(h);
1791
+ var pe = q(u);
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);
1797
+ return L(!1);
1799
1798
  ve = 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, u, 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(Gi, 30), F(), ie && !Te ? t.appendChild(u) : a.parentNode.insertBefore(u, ie ? Te : a), ae && It(ae, 0, He - ae.scrollTop), $ = u.parentNode, ce !== void 0 && !We && (Ye = Math.abs(ce - P(a)[De])), V(), L(!0);
1805
1804
  }
1806
- if (t.contains(h))
1807
- return R(!1);
1805
+ if (t.contains(u))
1806
+ return L(!1);
1808
1807
  }
1809
1808
  return !1;
1810
1809
  },
@@ -1818,62 +1817,62 @@ _.prototype = /** @lends Sortable.prototype */
1818
1817
  },
1819
1818
  _onDrop: function(n) {
1820
1819
  var t = this.el, a = this.options;
1821
- if (B = q(h), oe = q(h, a.draggable), z("drop", this, {
1820
+ if (W = q(u), oe = q(u, a.draggable), z("drop", this, {
1822
1821
  evt: n
1823
- }), I = h && h.parentNode, B = q(h), oe = q(h, a.draggable), _.eventCanceled) {
1822
+ }), $ = u && u.parentNode, W = q(u), oe = q(u, 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, We = !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(), Pe && v(document.body, "user-select", ""), v(u, "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), u && (this.nativeDraggable && k(u, "dragend", this), gn(u), u.style["will-change"] = "", $e && !Ce && B(u, R ? R.options.ghostClass : this.options.ghostClass, !1), B(u, 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 !== $ ? (W >= 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()) : W !== we && W >= 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 && ((W == null || W === -1) && (W = 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 = u = $ = w = ue = I = Ge = re = fe = J = $e = W = oe = we = Re = ve = Ae = R = Be = _.dragged = _.ghost = _.clone = _.active = null, tn.forEach(function(n) {
1875
1874
  n.checked = !0;
1876
- }), tn.length = un = yn = 0;
1875
+ }), tn.length = hn = yn = 0;
1877
1876
  },
1878
1877
  handleEvent: function(n) {
1879
1878
  switch (n.type) {
@@ -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
+ u && (this._onDragOver(n), Ji(n));
1887
1886
  break;
1888
1887
  case "selectstart":
1889
1888
  n.preventDefault();
@@ -1939,7 +1938,7 @@ _.prototype = /** @lends Sortable.prototype */
1939
1938
  if (t === void 0)
1940
1939
  return a[n];
1941
1940
  var o = je.modifyOption(this, n, t);
1942
- typeof o < "u" ? a[n] = o : a[n] = t, n === "group" && Rt(a);
1941
+ typeof o < "u" ? a[n] = o : a[n] = t, n === "group" && Lt(a);
1943
1942
  },
1944
1943
  /**
1945
1944
  * Destroy
@@ -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,7 +1965,7 @@ _.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
+ u.parentNode == T && !this.options.group.revertClone ? T.insertBefore(I, u) : ue ? T.insertBefore(I, ue) : T.appendChild(I), this.options.group.revertClone && this.animate(u, I), v(I, "display", ""), re = !1;
1970
1969
  }
1971
1970
  }
1972
1971
  };
@@ -1978,7 +1977,7 @@ 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 || P(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;
@@ -1987,28 +1986,28 @@ function Gi() {
1987
1986
  Gn = !1;
1988
1987
  }
1989
1988
  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;
1989
+ var a = P(Ee(t.el, 0, t.options, !0)), o = Ft(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
1992
  function Xi(e, n, t) {
1994
- var a = F(et(t.el, t.options.draggable)), o = Pt(t.el, t.options, C), i = 10;
1993
+ var a = P(et(t.el, t.options.draggable)), o = Ft(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
1996
  function Ki(e, n, t, a, o, i, r, l) {
1998
- 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;
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, h = !1;
1999
1998
  if (!r) {
2000
1999
  if (l && Ye < p * o) {
2001
2000
  if (!Me && (Ae === 1 ? c > m + p * i / 2 : c < f - p * i / 2) && (Me = !0), Me)
2002
- u = !0;
2001
+ h = !0;
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
2005
  return Qi(n);
2007
2006
  }
2008
- return u = u || r, u && (c < m + p * i / 2 || c > f - p * i / 2) ? c > m + p / 2 ? 1 : -1 : 0;
2007
+ return h = h || r, h && (c < m + p * i / 2 || c > f - p * i / 2) ? c > m + p / 2 ? 1 : -1 : 0;
2009
2008
  }
2010
2009
  function Qi(e) {
2011
- return q(h) < q(e) ? 1 : -1;
2010
+ return q(u) < q(e) ? 1 : -1;
2012
2011
  }
2013
2012
  function es(e) {
2014
2013
  for (var n = e.tagName + e.className + e.src + e.href + e.textContent, t = n.length, a = 0; t--; )
@@ -2039,15 +2038,15 @@ _.utils = {
2039
2038
  is: function(n, t) {
2040
2039
  return !!G(n, t, n, !1);
2041
2040
  },
2042
- extend: Li,
2041
+ extend: Ri,
2043
2042
  throttle: Tt,
2044
2043
  closest: G,
2045
- toggleClass: W,
2044
+ toggleClass: B,
2046
2045
  clone: $t,
2047
2046
  index: q,
2048
2047
  nextTick: Xe,
2049
2048
  cancelNextTick: Yn,
2050
- detectDirection: Nt,
2049
+ detectDirection: Pt,
2051
2050
  getChild: Ee
2052
2051
  };
2053
2052
  _.get = function(e) {
@@ -2065,8 +2064,8 @@ _.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;
2067
+ _.version = Ni;
2068
+ var N = [], Fe, Xn, Kn = !1, vn, _n, an, Ne;
2070
2069
  function ts() {
2071
2070
  function e() {
2072
2071
  this.defaults = {
@@ -2092,17 +2091,17 @@ function ts() {
2092
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(), Ai();
2093
2092
  },
2094
2093
  nulling: function() {
2095
- an = Xn = Pe = Kn = Fe = vn = _n = null, P.length = 0;
2094
+ an = Xn = Fe = Kn = Ne = vn = _n = null, N.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 || Pe) {
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 && (!Ne || i !== vn || r !== _n) && (Ne && gt(), Ne = 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);
@@ -2120,33 +2119,33 @@ function ts() {
2120
2119
  });
2121
2120
  }
2122
2121
  function Ke() {
2123
- P.forEach(function(e) {
2122
+ N.forEach(function(e) {
2124
2123
  clearInterval(e.pid);
2125
- }), P = [];
2124
+ }), N = [];
2126
2125
  }
2127
2126
  function gt() {
2128
- clearInterval(Fe);
2127
+ clearInterval(Ne);
2129
2128
  }
2130
2129
  var Cn = Tt(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, h = 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);
2139
- if (!P[f])
2135
+ var b = h, y = P(b), C = y.top, H = y.bottom, F = y.left, L = y.right, V = y.width, j = y.height, de = void 0, Y = void 0, ce = b.scrollWidth, Se = b.scrollHeight, U = v(b), De = 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 He = de && (Math.abs(L - o) <= r && De + V < ce) - (Math.abs(F - o) <= r && !!De), Q = Y && (Math.abs(H - i) <= r && ae + j < Se) - (Math.abs(C - i) <= r && !!ae);
2138
+ if (!N[f])
2140
2139
  for (var pe = 0; pe <= f; pe++)
2141
- 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() {
2140
+ N[pe] || (N[pe] = {});
2141
+ (N[f].vx != He || N[f].vy != Q || N[f].el !== b) && (N[f].el = b, N[f].vx = He, N[f].vy = Q, clearInterval(N[f].pid), (He != 0 || Q != 0) && (p = !0, N[f].pid = setInterval((function() {
2143
2142
  a && this.layer === 0 && _.active._onTouchMove(an);
2144
- 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);
2143
+ var Te = N[this.layer].vy ? N[this.layer].vy * l : 0, ie = N[this.layer].vx ? N[this.layer].vx * l : 0;
2144
+ typeof m == "function" && m.call(_.dragged.parentNode[Z], ie, Te, e, an, N[this.layer].el) !== "continue" || It(N[this.layer].el, ie, Te);
2146
2145
  }).bind({
2147
2146
  layer: f
2148
2147
  }), 24))), f++;
2149
- } while (n.bubbleScroll && u !== c && (u = le(u, !1)));
2148
+ } while (n.bubbleScroll && h !== c && (h = le(h, !1)));
2150
2149
  Kn = p;
2151
2150
  }
2152
2151
  }, 30), Mt = function(n) {
@@ -2194,7 +2193,7 @@ ne(tt, {
2194
2193
  });
2195
2194
  _.mount(new ts());
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}.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;
2196
+ 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
2197
  var ss = 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")
@@ -2209,7 +2208,7 @@ var ss = function(e, n, t, a) {
2209
2208
  };
2210
2209
  const zt = class {
2211
2210
  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;
2211
+ 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
2212
  }
2214
2213
  elementNameChangedHandler(e) {
2215
2214
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2249,12 +2248,15 @@ const zt = class {
2249
2248
  componentDidLoad() {
2250
2249
  var t, a, o;
2251
2250
  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 || [];
2251
+ 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.additionalFields || [];
2253
2252
  this.formFields = [
2254
2253
  ...this.formFields,
2255
2254
  ...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 };
2255
+ const l = rt.find((p) => p.type === i.type);
2256
+ if (!l)
2257
+ return { ...i, isOpen: !1, typeLabel: "Unknown" };
2258
+ const c = l.label;
2259
+ return i.order = r + 2, { ...i, isOpen: !1, typeLabel: c };
2258
2260
  })
2259
2261
  ];
2260
2262
  const n = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById("fields");
@@ -2274,13 +2276,15 @@ const zt = class {
2274
2276
  label: o.label,
2275
2277
  order: i + 1,
2276
2278
  options: o.options,
2277
- key: o.key
2279
+ key: o.key,
2280
+ default: o.default
2278
2281
  } })).reduce((o, i) => (o[i.key] = {
2279
2282
  type: i.type,
2280
2283
  required: i.required,
2281
2284
  order: i.order,
2282
2285
  options: i.options,
2283
- label: i.label
2286
+ label: i.label,
2287
+ default: i.default
2284
2288
  }, o), {});
2285
2289
  this.valueChanged.emit({
2286
2290
  value: a,
@@ -2307,8 +2311,14 @@ const zt = class {
2307
2311
  }
2308
2312
  }
2309
2313
  nylasFormInputChangedHandler(e) {
2310
- const { name: n } = e.detail, [t, a] = n.split("_");
2311
- a ? this.fieldOptionChange(parseInt(t), parseInt(a), e) : this.fieldLabelChange(parseInt(t), e);
2314
+ const { name: n } = e.detail;
2315
+ if (n.startsWith("default-value-")) {
2316
+ const t = parseInt(n.split("-").pop() || "0");
2317
+ this.fieldDefaultValueChanged(t, e);
2318
+ } else {
2319
+ const [t, a] = n.split("_");
2320
+ a ? this.fieldOptionChange(parseInt(t), parseInt(a), e) : this.fieldLabelChange(parseInt(t), e);
2321
+ }
2312
2322
  }
2313
2323
  swapFields(e) {
2314
2324
  const { oldIndex: n, newIndex: t } = e;
@@ -2356,14 +2366,17 @@ const zt = class {
2356
2366
  fieldOptionChange(e, n, t) {
2357
2367
  this.formFields = this.formFields.map((a, o) => (o === e && (a.options || (a.options = []), a.options = a.options.map((i, r) => (r === n && (i = t.detail.value), i))), a));
2358
2368
  }
2369
+ fieldDefaultValueChanged(e, n) {
2370
+ this.formFields = this.formFields.map((t, a) => (a === e && (t.default = n.detail.value), t));
2371
+ }
2359
2372
  render() {
2360
- return s(E, { key: "f1a56ef7ca6a116aebe0860bfa732a4758e2c617" }, s("div", { key: "11ad74886044fb105ced31c2d3ac25e8fd327831", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "4e8596d4f15ddfc6895209920e3306815a772e93", class: "header", part: "nbfc__header" }, s("div", { key: "7222fe005b4b11f04eb507608341dcbadec31f4d", class: "header_text" }, s("h3", { key: "9753e8ac99d493c0be298dc23aec5a1738ff107a" }, "Booking form"), s("p", { key: "78a2571f80d7c8c850503d6d5884d3aef620bcd7" }, "Add custom fields to the booking form.")), s("div", { key: "97842482b11f278923b1695c15b302e674032eff", class: "header_action" }, s("select-dropdown", { key: "da467e20e7b2e913d2a5c1b643b62d2625799dd4", 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: "c66021be57f65b94fc896a4f3532371214e26767", slot: "select-icon" }, s("plus-icon", { key: "650d9c970d533b477a4c8a383ebf9ec4f9ebf30c", width: "15", height: "15" }))))), s("div", { key: "eaec7e2834db82b654f49f0e84e8f20197a92feb", class: "content" }, s("div", { key: "c03373b4ce85f174205e2919c4fd642fe95fc1da", 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: () => {
2373
+ return s(E, { key: "632d9bd6cc0162efdb7e83b78b23935f04569fcb" }, s("div", { key: "dae8d7f52a658b121a992f9cd73cd766e2c16cec", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "4f02c7163dfecd29df48da9b163e12e9a6c9c357", class: "header", part: "nbfc__header" }, s("div", { key: "169cfa3f8d4dd519dd0621d032d3e7a13384b8c7", class: "header_text" }, s("h3", { key: "66e50347bae8fca4c3344030d4d3caf4158244e2" }, "Booking form"), s("p", { key: "883886b2c841acdbd44e6cb1c18a860a51c52412" }, "Add custom fields to the booking form.")), s("div", { key: "e307526fa6d75c4aaaa71c5658006d9e7417c0f0", class: "header_action" }, s("select-dropdown", { key: "4b16dd221f5740b21cde95488e2609730e08ea54", 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: "5ccd949bb563f32f1682b9432759828f086b46e3", slot: "select-icon" }, s("plus-icon", { key: "b77ac5dd297071ec6e16c3728db1a7b096e83e74", width: "15", height: "15" }))))), s("div", { key: "a7499ce8959d027f0540b086c3393353c3993452", class: "content" }, s("div", { key: "ff24161e13beba123ca46c814515704bf06d4259", 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: () => {
2361
2374
  this.fieldRemove(n);
2362
2375
  } }, s("close-icon", null)), s("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
2363
2376
  this.fieldToggle(n);
2364
2377
  } }, 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: () => {
2365
2378
  this.fieldRequired(n);
2366
- }, checked: e.required, disabled: e.readonly }), s("label", { htmlFor: `required_${e.order}`, "aria-label": "Required" }, "Required")))), 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: () => {
2379
+ }, 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: () => {
2367
2380
  this.fieldOptionRemove(n, a);
2368
2381
  } }, s("close-icon", null))))))), s("button", { onClick: () => {
2369
2382
  this.fieldOptionAdd(n);
@@ -2409,7 +2422,7 @@ var ls = function(e, n, t, a) {
2409
2422
  const jt = class {
2410
2423
  constructor(e) {
2411
2424
  var n, t, a;
2412
- 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;
2425
+ 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;
2413
2426
  }
2414
2427
  connectedCallback() {
2415
2428
  d("nylas-buffer-time", "connectedCallback");
@@ -2474,20 +2487,20 @@ const jt = class {
2474
2487
  const { fullSlots: r, partialFillHeight: l } = a(this.selectedBeforeBufferTime);
2475
2488
  return Array.from({ length: 4 }, (c, p) => {
2476
2489
  const m = this.selectedBeforeBufferTime > 0 && p > 4 - r - 1, f = this.selectedBeforeBufferTime > 0 && p === 4 - r - 1 && l > 0;
2477
- let u = {};
2478
- return m && !f ? u.backgroundColor = "var(--nylas-base-100)" : f && (u.background = `linear-gradient(to top, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
2490
+ let h = {};
2491
+ return m && !f ? h.backgroundColor = "var(--nylas-base-100)" : f && (h.background = `linear-gradient(to top, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
2479
2492
  height: "10px",
2480
- ...u
2493
+ ...h
2481
2494
  } });
2482
2495
  });
2483
2496
  }, i = () => {
2484
2497
  const { fullSlots: r, partialFillHeight: l } = a(this.selectedAfterBufferTime);
2485
2498
  return Array.from({ length: 4 }, (c, p) => {
2486
2499
  const m = this.selectedAfterBufferTime > 0 && p < r, f = p === r && l > 0;
2487
- let u = {};
2488
- return m && !f ? u.backgroundColor = "var(--nylas-base-100)" : f && (u.background = `linear-gradient(to bottom, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
2500
+ let h = {};
2501
+ return m && !f ? h.backgroundColor = "var(--nylas-base-100)" : f && (h.background = `linear-gradient(to bottom, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
2489
2502
  height: "10px",
2490
- ...u
2503
+ ...h
2491
2504
  } });
2492
2505
  });
2493
2506
  };
@@ -2548,7 +2561,7 @@ var ps = function(e, n, t, a) {
2548
2561
  };
2549
2562
  const Ut = class {
2550
2563
  constructor(e) {
2551
- 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 = "";
2564
+ 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 = "";
2552
2565
  }
2553
2566
  elementNameChangedHandler(e) {
2554
2567
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2627,7 +2640,7 @@ ps([
2627
2640
  ], Ut.prototype, "render", null);
2628
2641
  Ut.style = cs;
2629
2642
  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;
2630
- var hs = function(e, n, t, a) {
2643
+ var us = function(e, n, t, a) {
2631
2644
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2632
2645
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2633
2646
  i = Reflect.decorate(e, n, t, a);
@@ -2639,9 +2652,9 @@ var hs = function(e, n, t, a) {
2639
2652
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2640
2653
  return Reflect.metadata(e, n);
2641
2654
  };
2642
- const Wt = class {
2655
+ const Bt = class {
2643
2656
  constructor(e) {
2644
- 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;
2657
+ 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;
2645
2658
  }
2646
2659
  elementNameChangedHandler(e) {
2647
2660
  d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2682,7 +2695,7 @@ const Wt = class {
2682
2695
  };
2683
2696
  }
2684
2697
  };
2685
- hs([
2698
+ us([
2686
2699
  S({
2687
2700
  name: "nylas-cancellation-policy",
2688
2701
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -2692,9 +2705,9 @@ hs([
2692
2705
  En("design:type", Function),
2693
2706
  En("design:paramtypes", []),
2694
2707
  En("design:returntype", void 0)
2695
- ], Wt.prototype, "render", null);
2696
- Wt.style = ms;
2697
- 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;
2708
+ ], Bt.prototype, "render", null);
2709
+ Bt.style = ms;
2710
+ 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-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}', ys = hs;
2698
2711
  var bs = function(e, n, t, a) {
2699
2712
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
2700
2713
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -2707,9 +2720,9 @@ var bs = function(e, n, t, a) {
2707
2720
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2708
2721
  return Reflect.metadata(e, n);
2709
2722
  };
2710
- const Bt = class {
2723
+ const Wt = class {
2711
2724
  constructor(e) {
2712
- 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;
2725
+ 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;
2713
2726
  }
2714
2727
  connectedCallback() {
2715
2728
  d("nylas-confirmation-email", "connectedCallback");
@@ -2721,14 +2734,15 @@ const Bt = class {
2721
2734
  d("nylas-confirmation-email", "componentWillLoad"), this.host.setAttribute("name", this.name);
2722
2735
  }
2723
2736
  componentDidLoad() {
2724
- d("nylas-confirmation-email", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.confirmationEmail = this.confirmationEmailTemplate, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants);
2737
+ var e;
2738
+ 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);
2725
2739
  }
2726
2740
  elementNameChangedHandler(e) {
2727
2741
  d("nylas-confirmation-email", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
2728
2742
  }
2729
2743
  selectedConfigurationChangedHandler(e) {
2730
- var n, t, a;
2731
- 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;
2744
+ var n, t, a, o;
2745
+ 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;
2732
2746
  }
2733
2747
  async nylasFormInputChangeHandler(e) {
2734
2748
  var o, i;
@@ -2744,6 +2758,9 @@ const Bt = class {
2744
2758
  const { value: n, name: t } = e.detail;
2745
2759
  t === "confirmation-email-logo" && typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, n || "Invalid image URL.");
2746
2760
  }
2761
+ nyalsFormSwitchToggledHandler(e) {
2762
+ 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 }));
2763
+ }
2747
2764
  updateConfirmationFormValue() {
2748
2765
  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 });
2749
2766
  }
@@ -2756,11 +2773,11 @@ const Bt = class {
2756
2773
  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 });
2757
2774
  }
2758
2775
  render() {
2759
- var t, a, o, i, r, l, c;
2760
- const e = this.participantsState.find((p) => p.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
2761
- 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) => {
2762
- p.preventDefault(), this.toggleConfirmationEmail();
2763
- } }, 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"))));
2776
+ var t, a, o, i, r, l, c, p;
2777
+ const e = this.participantsState.find((m) => m.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
2778
+ 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) => {
2779
+ m.preventDefault(), this.toggleConfirmationEmail();
2780
+ } }, 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"))));
2764
2781
  }
2765
2782
  static get formAssociated() {
2766
2783
  return !0;
@@ -2790,8 +2807,8 @@ bs([
2790
2807
  On("design:type", Function),
2791
2808
  On("design:paramtypes", []),
2792
2809
  On("design:returntype", void 0)
2793
- ], Bt.prototype, "render", null);
2794
- Bt.style = ys;
2810
+ ], Wt.prototype, "render", null);
2811
+ Wt.style = ys;
2795
2812
  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;
2796
2813
  var _s = function(e, n, t, a) {
2797
2814
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
@@ -2808,7 +2825,7 @@ var _s = function(e, n, t, a) {
2808
2825
  const Zt = class {
2809
2826
  constructor(e) {
2810
2827
  var n;
2811
- 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 = {};
2828
+ 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 = {};
2812
2829
  }
2813
2830
  elementNameChangedHandler(e) {
2814
2831
  d("nylas-connected-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -2831,20 +2848,20 @@ const Zt = class {
2831
2848
  var i, r, l, c;
2832
2849
  const t = e == null ? void 0 : e.find((p) => p.is_organizer), a = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective", o = {};
2833
2850
  if (n) {
2834
- 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));
2851
+ const p = e == null ? void 0 : e.filter((f) => n.some((h) => h.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((h) => h.email === f.email));
2835
2852
  p == null || p.forEach((f) => {
2836
- var y, w, $;
2837
- const u = n == null ? void 0 : n.find((N) => N.email === f.email);
2838
- if (!u)
2853
+ var y, C, H;
2854
+ const h = n == null ? void 0 : n.find((F) => F.email === f.email);
2855
+ if (!h)
2839
2856
  return;
2840
2857
  this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
2841
- const g = u.calendars ?? [];
2842
- ($ = (w = f.availability) == null ? void 0 : w.calendar_ids) == null || $.forEach((N) => {
2843
- !(g != null && g.some((R) => R.id === N)) && N !== "primary" && g.push({ id: N, name: N });
2844
- }), o[f.email] = g;
2858
+ const b = h.calendars ?? [];
2859
+ (H = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || H.forEach((F) => {
2860
+ !(b != null && b.some((L) => L.id === F)) && F !== "primary" && b.push({ id: F, name: F });
2861
+ }), o[f.email] = b;
2845
2862
  }), a && (m == null || m.forEach((f) => {
2846
- var u, g, y, w;
2847
- (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) || []);
2863
+ var h, b, y, C;
2864
+ (h = f == null ? void 0 : f.availability) != null && h.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) || []);
2848
2865
  }));
2849
2866
  }
2850
2867
  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;
@@ -2952,7 +2969,7 @@ var xs = function(e, n, t, a) {
2952
2969
  };
2953
2970
  const qt = class {
2954
2971
  constructor(e) {
2955
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
2972
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
2956
2973
  }
2957
2974
  connectedCallback() {
2958
2975
  d("nylas-custom-booking-flow", "connectedCallback");
@@ -3002,7 +3019,7 @@ var Os = function(e, n, t, a) {
3002
3019
  };
3003
3020
  const Vt = class {
3004
3021
  constructor(e) {
3005
- 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;
3022
+ 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;
3006
3023
  }
3007
3024
  connectedCallback() {
3008
3025
  d("nylas-custom-event-slug", "connectedCallback");
@@ -3118,7 +3135,7 @@ var Hs = function(e, n, t, a) {
3118
3135
  const Jt = class {
3119
3136
  constructor(e) {
3120
3137
  var n, t, a, o, i, r;
3121
- 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;
3138
+ 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;
3122
3139
  }
3123
3140
  elementNameChangedHandler(e) {
3124
3141
  d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -3221,7 +3238,7 @@ var $s = function(e, n, t, a) {
3221
3238
  const Gt = class {
3222
3239
  constructor(e) {
3223
3240
  var n, t;
3224
- 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) || "";
3241
+ 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) || "";
3225
3242
  }
3226
3243
  elementNameChangedHandler(e) {
3227
3244
  d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -3274,8 +3291,8 @@ $s([
3274
3291
  In("design:returntype", void 0)
3275
3292
  ], Gt.prototype, "render", null);
3276
3293
  Gt.style = Is;
3277
- 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;
3278
- var Ns = function(e, n, t, a) {
3294
+ const Fs = ':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)}', Ns = Fs;
3295
+ var Ps = function(e, n, t, a) {
3279
3296
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3280
3297
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3281
3298
  i = Reflect.decorate(e, n, t, a);
@@ -3289,7 +3306,7 @@ var Ns = function(e, n, t, a) {
3289
3306
  };
3290
3307
  const Yt = class {
3291
3308
  constructor(e) {
3292
- 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 = [
3309
+ 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 = [
3293
3310
  { value: 15, label: "15" },
3294
3311
  { value: 30, label: "30" },
3295
3312
  { value: 45, label: "45" },
@@ -3364,7 +3381,7 @@ const Yt = class {
3364
3381
  };
3365
3382
  }
3366
3383
  };
3367
- Ns([
3384
+ Ps([
3368
3385
  S({
3369
3386
  name: "nylas-event-duration",
3370
3387
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
@@ -3375,8 +3392,8 @@ Ns([
3375
3392
  $n("design:paramtypes", []),
3376
3393
  $n("design:returntype", void 0)
3377
3394
  ], Yt.prototype, "render", null);
3378
- Yt.style = Fs;
3379
- 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;
3395
+ Yt.style = Ns;
3396
+ const Ls = ':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}', Rs = Ls;
3380
3397
  var As = function(e, n, t, a) {
3381
3398
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3382
3399
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -3385,13 +3402,13 @@ var As = function(e, n, t, a) {
3385
3402
  for (var l = e.length - 1; l >= 0; l--)
3386
3403
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3387
3404
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3388
- }, Pn = function(e, n) {
3405
+ }, Fn = function(e, n) {
3389
3406
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3390
3407
  return Reflect.metadata(e, n);
3391
3408
  };
3392
3409
  const Xt = class {
3393
3410
  constructor(e) {
3394
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3411
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3395
3412
  }
3396
3413
  connectedCallback() {
3397
3414
  d("nylas-event-info", "connectedCallback");
@@ -3406,7 +3423,7 @@ const Xt = class {
3406
3423
  d("nylas-event-info", "disconnectedCallback");
3407
3424
  }
3408
3425
  render() {
3409
- 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" }))));
3426
+ 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" }))));
3410
3427
  }
3411
3428
  static get formAssociated() {
3412
3429
  return !0;
@@ -3421,11 +3438,11 @@ As([
3421
3438
  eventToProps: {},
3422
3439
  fireRegisterEvent: !0
3423
3440
  }),
3424
- Pn("design:type", Function),
3425
- Pn("design:paramtypes", []),
3426
- Pn("design:returntype", void 0)
3441
+ Fn("design:type", Function),
3442
+ Fn("design:paramtypes", []),
3443
+ Fn("design:returntype", void 0)
3427
3444
  ], Xt.prototype, "render", null);
3428
- Xt.style = Ls;
3445
+ Xt.style = Rs;
3429
3446
  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;
3430
3447
  var js = function(e, n, t, a) {
3431
3448
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
@@ -3435,13 +3452,13 @@ var js = function(e, n, t, a) {
3435
3452
  for (var l = e.length - 1; l >= 0; l--)
3436
3453
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3437
3454
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3438
- }, Fn = function(e, n) {
3455
+ }, Nn = function(e, n) {
3439
3456
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3440
3457
  return Reflect.metadata(e, n);
3441
3458
  };
3442
3459
  const Kt = class {
3443
3460
  constructor(e) {
3444
- b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3461
+ g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
3445
3462
  }
3446
3463
  connectedCallback() {
3447
3464
  d("nylas-event-limits", "connectedCallback");
@@ -3456,7 +3473,7 @@ const Kt = class {
3456
3473
  d("nylas-event-limits", "disconnectedCallback");
3457
3474
  }
3458
3475
  render() {
3459
- 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" }))));
3476
+ 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" }))));
3460
3477
  }
3461
3478
  static get formAssociated() {
3462
3479
  return !0;
@@ -3471,13 +3488,13 @@ js([
3471
3488
  eventToProps: {},
3472
3489
  fireRegisterEvent: !0
3473
3490
  }),
3474
- Fn("design:type", Function),
3475
- Fn("design:paramtypes", []),
3476
- Fn("design:returntype", void 0)
3491
+ Nn("design:type", Function),
3492
+ Nn("design:paramtypes", []),
3493
+ Nn("design:returntype", void 0)
3477
3494
  ], Kt.prototype, "render", null);
3478
3495
  Kt.style = zs;
3479
- 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;
3480
- var Bs = function(e, n, t, a) {
3496
+ 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}', Bs = Us;
3497
+ var Ws = function(e, n, t, a) {
3481
3498
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
3482
3499
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
3483
3500
  i = Reflect.decorate(e, n, t, a);
@@ -3485,7 +3502,7 @@ var Bs = function(e, n, t, a) {
3485
3502
  for (var l = e.length - 1; l >= 0; l--)
3486
3503
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3487
3504
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3488
- }, Nn = function(e, n) {
3505
+ }, Pn = function(e, n) {
3489
3506
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3490
3507
  return Reflect.metadata(e, n);
3491
3508
  };
@@ -3498,7 +3515,7 @@ const _e = {
3498
3515
  }, Qt = class {
3499
3516
  constructor(e) {
3500
3517
  var n;
3501
- 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 = [
3518
+ 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 = [
3502
3519
  { value: "none", label: _e.none, labelHTML: this.getLabelHTML("none") },
3503
3520
  { value: "custom", label: _e.custom, labelHTML: this.getLabelHTML("custom") }
3504
3521
  ];
@@ -3632,7 +3649,7 @@ const _e = {
3632
3649
  };
3633
3650
  }
3634
3651
  };
3635
- Bs([
3652
+ Ws([
3636
3653
  S({
3637
3654
  name: "nylas-event-location",
3638
3655
  stateToProps: /* @__PURE__ */ new Map([
@@ -3643,11 +3660,11 @@ Bs([
3643
3660
  eventToProps: {},
3644
3661
  fireRegisterEvent: !0
3645
3662
  }),
3646
- Nn("design:type", Function),
3647
- Nn("design:paramtypes", []),
3648
- Nn("design:returntype", void 0)
3663
+ Pn("design:type", Function),
3664
+ Pn("design:paramtypes", []),
3665
+ Pn("design:returntype", void 0)
3649
3666
  ], Qt.prototype, "render", null);
3650
- Qt.style = Ws;
3667
+ Qt.style = Bs;
3651
3668
  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;
3652
3669
  var Vs = function(e, n, t, a) {
3653
3670
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
@@ -3657,14 +3674,14 @@ var Vs = function(e, n, t, a) {
3657
3674
  for (var l = e.length - 1; l >= 0; l--)
3658
3675
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3659
3676
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3660
- }, Rn = function(e, n) {
3677
+ }, Ln = function(e, n) {
3661
3678
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3662
3679
  return Reflect.metadata(e, n);
3663
3680
  };
3664
3681
  const ea = class {
3665
3682
  constructor(e) {
3666
3683
  var n, t;
3667
- 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) => ({
3684
+ 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) => ({
3668
3685
  label: a.token,
3669
3686
  value: a.value,
3670
3687
  labelHTML: a
@@ -3721,11 +3738,11 @@ const ea = class {
3721
3738
  getCurrentSelectionForBrowser() {
3722
3739
  var a, o, i;
3723
3740
  const e = (r, l, c, p) => {
3724
- const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"), u = m.substring(f).split(" ")[0];
3741
+ const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"), h = m.substring(f).split(" ")[0];
3725
3742
  return {
3726
3743
  focusOffset: l,
3727
3744
  dollarIndex: f,
3728
- lastWord: u,
3745
+ lastWord: h,
3729
3746
  currentText: m,
3730
3747
  node: c,
3731
3748
  allSelected: p
@@ -3739,11 +3756,11 @@ const ea = class {
3739
3756
  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);
3740
3757
  return e(c, (r == null ? void 0 : r.focusOffset) || -1, l, p);
3741
3758
  case "Firefox":
3742
- const m = document.getSelection(), f = ((o = m == null ? void 0 : m.anchorNode) == null ? void 0 : o.nodeValue) || "", u = m && n(m);
3743
- return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode, u);
3759
+ const m = document.getSelection(), f = ((o = m == null ? void 0 : m.anchorNode) == null ? void 0 : o.nodeValue) || "", h = m && n(m);
3760
+ return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode, h);
3744
3761
  case "Safari":
3745
- 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);
3746
- return e(w, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, $);
3762
+ 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) || "", H = b && n(b);
3763
+ return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, H);
3747
3764
  default:
3748
3765
  return console.warn("Browser not supported"), null;
3749
3766
  }
@@ -3799,14 +3816,14 @@ const ea = class {
3799
3816
  }
3800
3817
  }
3801
3818
  selectOption(e, n) {
3802
- var w;
3819
+ var C;
3803
3820
  e.preventDefault();
3804
3821
  const t = this.currentWord.fullText, a = this.currentWord.$value;
3805
3822
  let o = this.titleRef.firstChild, i = null;
3806
3823
  for (; o; ) {
3807
3824
  if (o.nodeType === 3) {
3808
- const $ = ((w = o.textContent) == null ? void 0 : w.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", N = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
3809
- if ($.includes(N)) {
3825
+ const H = ((C = o.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", F = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
3826
+ if (H.includes(F)) {
3810
3827
  i = o;
3811
3828
  break;
3812
3829
  }
@@ -3815,14 +3832,14 @@ const ea = class {
3815
3832
  }
3816
3833
  if (!i)
3817
3834
  return;
3818
- 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");
3819
- u.classList.add("highlighted-tag"), u.textContent = `${n.value}`;
3820
- const g = document.createTextNode(p);
3835
+ 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(), h = document.createElement("span");
3836
+ h.classList.add("highlighted-tag"), h.textContent = `${n.value}`;
3837
+ const b = document.createTextNode(p);
3821
3838
  if (p !== "")
3822
- i.replaceWith(m, u, g), f.setStart(g, 1);
3839
+ i.replaceWith(m, h, b), f.setStart(b, 1);
3823
3840
  else {
3824
- const $ = document.createTextNode("​");
3825
- i.replaceWith(m, u, $), f.setStart($, 1);
3841
+ const H = document.createTextNode("​");
3842
+ i.replaceWith(m, h, H), f.setStart(H, 1);
3826
3843
  }
3827
3844
  this.resetDropdown(), this.titleRef.focus();
3828
3845
  const y = window.getSelection();
@@ -3873,9 +3890,9 @@ Vs([
3873
3890
  eventToProps: {},
3874
3891
  fireRegisterEvent: !0
3875
3892
  }),
3876
- Rn("design:type", Function),
3877
- Rn("design:paramtypes", []),
3878
- Rn("design:returntype", void 0)
3893
+ Ln("design:type", Function),
3894
+ Ln("design:paramtypes", []),
3895
+ Ln("design:returntype", void 0)
3879
3896
  ], ea.prototype, "render", null);
3880
3897
  ea.style = qs;
3881
3898
  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;
@@ -3887,13 +3904,13 @@ var Ys = function(e, n, t, a) {
3887
3904
  for (var l = e.length - 1; l >= 0; l--)
3888
3905
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
3889
3906
  return o > 3 && i && Object.defineProperty(n, t, i), i;
3890
- }, Ln = function(e, n) {
3907
+ }, Rn = function(e, n) {
3891
3908
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
3892
3909
  return Reflect.metadata(e, n);
3893
3910
  };
3894
3911
  const na = class {
3895
3912
  constructor(e) {
3896
- b(this, e), this.feedbackModalClosed = x(this, "feedbackModalClosed", 7), this.feedbackSubmitted = x(this, "feedbackSubmitted", 7), this.triggerValidation = x(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
3913
+ g(this, e), this.feedbackModalClosed = x(this, "feedbackModalClosed", 7), this.feedbackSubmitted = x(this, "feedbackSubmitted", 7), this.triggerValidation = x(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
3897
3914
  this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
3898
3915
  }, this.themeConfig = void 0, this.feedbackMessage = "";
3899
3916
  }
@@ -3919,9 +3936,9 @@ const na = class {
3919
3936
  e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
3920
3937
  }
3921
3938
  render() {
3922
- 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: {
3939
+ 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" }, ye.t("feedbackFormTitle"))), s("div", { key: "41da0f5a9c4d838904e2eea9a3354e7d24839e10", class: "description title-desc" }, s("p", { key: "4fbd2c5c0e49c2845f6595c108d68c1d2586dc9a" }, ye.t("feedbackFormDescription"))), s("textarea-component", { key: "899b0f78b1b411517eb275d69dbf94f78583b71d", label: ye.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: ye.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: {
3923
3940
  footer: !0
3924
- } }, 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")}`))));
3941
+ } }, s("button-component", { key: "048d5a6c8a483c8fb2b7c6fe4b45ca167cf87fbe", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${ye.t("feedbackModalCloseButton")}`), s("button-component", { key: "4a414579c7e47bc728fee83ee46756a488f12086", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${ye.t("feedbackModalSubmitButton")}`))));
3925
3942
  }
3926
3943
  get host() {
3927
3944
  return O(this);
@@ -3938,9 +3955,9 @@ Ys([
3938
3955
  localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
3939
3956
  fireRegisterEvent: !0
3940
3957
  }),
3941
- Ln("design:type", Function),
3942
- Ln("design:paramtypes", []),
3943
- Ln("design:returntype", void 0)
3958
+ Rn("design:type", Function),
3959
+ Rn("design:paramtypes", []),
3960
+ Rn("design:returntype", void 0)
3944
3961
  ], na.prototype, "render", null);
3945
3962
  na.style = Gs;
3946
3963
  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,7 +3975,7 @@ var Qs = function(e, n, t, a) {
3958
3975
  };
3959
3976
  const ta = class {
3960
3977
  constructor(e) {
3961
- 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;
3978
+ 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;
3962
3979
  }
3963
3980
  elementNameChangedHandler(e) {
3964
3981
  d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4033,7 +4050,7 @@ var to = function(e, n, t, a) {
4033
4050
  };
4034
4051
  const aa = class {
4035
4052
  constructor(e) {
4036
- 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;
4053
+ 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;
4037
4054
  }
4038
4055
  elementNameChangedHandler(e) {
4039
4056
  d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4109,7 +4126,7 @@ var so = function(e, n, t, a) {
4109
4126
  };
4110
4127
  const ia = class {
4111
4128
  constructor(e) {
4112
- 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;
4129
+ 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;
4113
4130
  }
4114
4131
  elementNameChangedHandler(e) {
4115
4132
  d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4143,7 +4160,7 @@ const ia = class {
4143
4160
  }
4144
4161
  render() {
4145
4162
  const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
4146
- 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 })));
4163
+ 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 })));
4147
4164
  }
4148
4165
  static get formAssociated() {
4149
4166
  return !0;
@@ -4185,7 +4202,7 @@ var lo = function(e, n, t, a) {
4185
4202
  };
4186
4203
  const sa = class {
4187
4204
  constructor(e) {
4188
- 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;
4205
+ 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;
4189
4206
  }
4190
4207
  connectedCallback() {
4191
4208
  d("nylas-page-name", "connectedCallback");
@@ -4226,7 +4243,7 @@ const sa = class {
4226
4243
  }
4227
4244
  render() {
4228
4245
  const e = typeof this.currentPageName < "u";
4229
- 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 ?? "" }))))))));
4246
+ 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 ?? "" }))))))));
4230
4247
  }
4231
4248
  static get formAssociated() {
4232
4249
  return !0;
@@ -4273,7 +4290,7 @@ var fo = function(e, n, t, a) {
4273
4290
  };
4274
4291
  const oa = class {
4275
4292
  constructor(e) {
4276
- 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;
4293
+ 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;
4277
4294
  }
4278
4295
  connectedCallback() {
4279
4296
  d("nylas-page-styling", "connectedCallback");
@@ -4419,7 +4436,7 @@ const oa = class {
4419
4436
  this.isOpen = !this.isOpen;
4420
4437
  }
4421
4438
  render() {
4422
- 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 } }))))));
4439
+ return s(E, { key: "1601b88e8e7e2c500cb105f237949faa4e9d8dbd" }, s("div", { key: "2a3072bc409f07961da51439a0f45f930d0725de", 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: "404727336fdf8d0de2d8e769df1dcc21ae69f34b", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "2e7da0539b197347719a1202e04c1f7b238cdc9d", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "55ba3e932216f073238b8385071defa9139ca0f9", class: "nylas-page-styling__row" }, s("div", { key: "333576450039ea7f76bfb548c5947609bc813837", class: { subsection: !0, hide: !this.isOpen } }))))));
4423
4440
  }
4424
4441
  static get formAssociated() {
4425
4442
  return !0;
@@ -4450,8 +4467,8 @@ fo([
4450
4467
  Un("design:returntype", void 0)
4451
4468
  ], oa.prototype, "render", null);
4452
4469
  oa.style = po;
4453
- 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;
4454
- var uo = function(e, n, t, a) {
4470
+ 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}', uo = mo;
4471
+ var ho = function(e, n, t, a) {
4455
4472
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
4456
4473
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
4457
4474
  i = Reflect.decorate(e, n, t, a);
@@ -4459,14 +4476,14 @@ var uo = function(e, n, t, a) {
4459
4476
  for (var l = e.length - 1; l >= 0; l--)
4460
4477
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
4461
4478
  return o > 3 && i && Object.defineProperty(n, t, i), i;
4462
- }, Wn = function(e, n) {
4479
+ }, Bn = function(e, n) {
4463
4480
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4464
4481
  return Reflect.metadata(e, n);
4465
4482
  };
4466
4483
  const ra = class {
4467
4484
  constructor(e) {
4468
4485
  var n;
4469
- 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 = {};
4486
+ 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 = {};
4470
4487
  }
4471
4488
  elementNameChangedHandler(e) {
4472
4489
  d("nylas-participant-booking-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4489,18 +4506,18 @@ const ra = class {
4489
4506
  var i, r, l, c;
4490
4507
  const t = e == null ? void 0 : e.find((p) => p.is_organizer), a = {}, o = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective";
4491
4508
  if (n && o) {
4492
- 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));
4509
+ const p = e == null ? void 0 : e.filter((f) => n.some((h) => h.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((h) => h.email === f.email));
4493
4510
  p == null || p.forEach((f) => {
4494
4511
  var y;
4495
- const u = n == null ? void 0 : n.find((w) => w.email === f.email);
4496
- if (!u)
4512
+ const h = n == null ? void 0 : n.find((C) => C.email === f.email);
4513
+ if (!h)
4497
4514
  return;
4498
4515
  this.participantDefaultSelectedCalendar[f.email] = ((y = f.booking) == null ? void 0 : y.calendar_id) ?? "primary";
4499
- const g = u.calendars ?? [];
4500
- a[f.email] = g;
4516
+ const b = h.calendars ?? [];
4517
+ a[f.email] = b;
4501
4518
  }), m == null || m.forEach((f) => {
4502
- var u, g;
4503
- (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");
4519
+ var h, b;
4520
+ (h = f == null ? void 0 : f.booking) != null && h.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");
4504
4521
  });
4505
4522
  }
4506
4523
  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;
@@ -4578,7 +4595,7 @@ const ra = class {
4578
4595
  };
4579
4596
  }
4580
4597
  };
4581
- uo([
4598
+ ho([
4582
4599
  S({
4583
4600
  name: "nylas-participant-booking-calendars",
4584
4601
  stateToProps: /* @__PURE__ */ new Map([
@@ -4589,11 +4606,11 @@ uo([
4589
4606
  eventToProps: {},
4590
4607
  fireRegisterEvent: !0
4591
4608
  }),
4592
- Wn("design:type", Function),
4593
- Wn("design:paramtypes", []),
4594
- Wn("design:returntype", void 0)
4609
+ Bn("design:type", Function),
4610
+ Bn("design:paramtypes", []),
4611
+ Bn("design:returntype", void 0)
4595
4612
  ], ra.prototype, "render", null);
4596
- ra.style = ho;
4613
+ ra.style = uo;
4597
4614
  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;
4598
4615
  var go = function(e, n, t, a) {
4599
4616
  var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
@@ -4603,14 +4620,14 @@ var go = function(e, n, t, a) {
4603
4620
  for (var l = e.length - 1; l >= 0; l--)
4604
4621
  (r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
4605
4622
  return o > 3 && i && Object.defineProperty(n, t, i), i;
4606
- }, Bn = function(e, n) {
4623
+ }, Wn = function(e, n) {
4607
4624
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
4608
4625
  return Reflect.metadata(e, n);
4609
4626
  };
4610
4627
  const la = class {
4611
4628
  constructor(e) {
4612
4629
  var n;
4613
- 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);
4630
+ 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);
4614
4631
  }
4615
4632
  elementNameChangedHandler(e) {
4616
4633
  d("nylas-participants-custom-availability", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4635,22 +4652,23 @@ const la = class {
4635
4652
  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);
4636
4653
  }
4637
4654
  nylasFormSwitchToggledHandler(e) {
4638
- var t, a, o;
4655
+ var i, r, l, c, p, m, f, h, b, y, C, H;
4639
4656
  d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
4640
- 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) || [];
4641
- 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();
4657
+ 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 = (h = (f = (m = this.selectedConfiguration) == null ? void 0 : m.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : h.default_open_hours) == null ? void 0 : b.at(0)) == null ? void 0 : y.timezone) || ((H = (C = this.selectedConfiguration) == null ? void 0 : C.event_booking) == null ? void 0 : H.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
4658
+ 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 : vt : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
4642
4659
  }
4643
4660
  handleValueChanged(e) {
4644
4661
  d("[nylas-editor-tabs]", "handleValueChanged", e);
4645
4662
  const { name: n, value: t } = e.detail;
4646
4663
  if (!n.startsWith("participant-"))
4647
4664
  return;
4648
- if (this.participantFormRef.checkValidity())
4649
- this.internals.setValidity({});
4650
- else {
4651
- this.internals.setValidity({ customError: !0 }, "Please fix the overlapping time ranges.");
4652
- return;
4653
- }
4665
+ if (this.isInternalsAvailable)
4666
+ if (this.participantFormRef.checkValidity())
4667
+ this.internals.setValidity({});
4668
+ else {
4669
+ this.internals.setValidity({ customError: !0 }, "Please fix the overlapping time ranges.");
4670
+ return;
4671
+ }
4654
4672
  const a = JSON.parse(t), o = n.split("-")[2];
4655
4673
  this.selectedParticipants[o] && (this.selectedParticipants[o].openHours = a.openHours, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue());
4656
4674
  }
@@ -4659,7 +4677,7 @@ const la = class {
4659
4677
  const e = {};
4660
4678
  (((t = this.selectedConfiguration) == null ? void 0 : t.participants) || this.participants).forEach((a) => {
4661
4679
  e[a.email] = this.selectedParticipants[a.email].openHours;
4662
- }), this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name });
4680
+ }), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name });
4663
4681
  }
4664
4682
  setParticipants(e) {
4665
4683
  const n = {};
@@ -4675,8 +4693,11 @@ const la = class {
4675
4693
  };
4676
4694
  }), n;
4677
4695
  }
4696
+ get isInternalsAvailable() {
4697
+ return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
4698
+ }
4678
4699
  render() {
4679
- 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) => {
4700
+ return s(E, { key: "5034211537411e732ffee5f7420884e5908cc4e5" }, s("div", { key: "6d016a9b8a3dd204521d9f63de90cd848e9c49e7", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "fff77ce67f19e5b0bdc7a8b491ff38b1b7d9af55", class: "header", part: "npca__header" }, s("h3", { key: "656016ac8ee26636fad2e725237b1bb538563864" }, "Participant open hours"), s("p", { key: "87ab243b9f3402150c6dae36fc702d7f675350c3" }, "If not set, the default open hours will be used to calculate availability for this participant.")), s("div", { key: "ba6c30fbb85fc26d6471494716b18f7f815900ec", class: "content", part: "npca__content" }, s("form", { key: "7cc553b6730ead929fc45efa67b29b56e41f022e", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
4680
4701
  const t = this.selectedParticipants[e];
4681
4702
  if (!(!t || !t.name || !t.availability))
4682
4703
  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: () => {
@@ -4705,9 +4726,9 @@ go([
4705
4726
  eventToProps: {},
4706
4727
  fireRegisterEvent: !0
4707
4728
  }),
4708
- Bn("design:type", Function),
4709
- Bn("design:paramtypes", []),
4710
- Bn("design:returntype", void 0)
4729
+ Wn("design:type", Function),
4730
+ Wn("design:paramtypes", []),
4731
+ Wn("design:returntype", void 0)
4711
4732
  ], la.prototype, "render", null);
4712
4733
  la.style = bo;
4713
4734
  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;
@@ -4726,7 +4747,7 @@ var Co = function(e, n, t, a) {
4726
4747
  const da = class {
4727
4748
  constructor(e) {
4728
4749
  var n, t, a;
4729
- 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) ?? [];
4750
+ 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) ?? [];
4730
4751
  }
4731
4752
  connectedCallback() {
4732
4753
  d("nylas-reminder-emails", "connectedCallback");
@@ -4921,7 +4942,7 @@ function Oo(e) {
4921
4942
  }
4922
4943
  const ca = class {
4923
4944
  constructor(e) {
4924
- 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;
4945
+ 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 = Eo(this.eventReminderTimeMinutes), this.reminderTimeMinutes = this.eventReminderTimeMinutes ?? 30, this.reminderTimeincrement = Oo(this.eventReminderTimeMinutes), this.reminderTimeMinutesOptions = dt;
4925
4946
  }
4926
4947
  elementNameChangedHandler(e) {
4927
4948
  d("nylas-reminder-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -4999,7 +5020,7 @@ var Ho = function(e, n, t, a) {
4999
5020
  };
5000
5021
  const pa = class {
5001
5022
  constructor(e) {
5002
- 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 = "";
5023
+ 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 = "";
5003
5024
  }
5004
5025
  connectedCallback() {
5005
5026
  d("nylas-scheduling-method", "connectedCallback");
@@ -5094,7 +5115,7 @@ var $o = function(e, n, t, a) {
5094
5115
  const Ve = 15, fa = class {
5095
5116
  constructor(e) {
5096
5117
  var n, t;
5097
- 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;
5118
+ 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;
5098
5119
  }
5099
5120
  elementNameChangedHandler(e) {
5100
5121
  d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -5167,7 +5188,7 @@ const Ve = 15, fa = class {
5167
5188
  { value: "45", label: "45 mins" },
5168
5189
  { value: "60", label: "60 mins" }
5169
5190
  ], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((t) => t.value == this.selectedInterval.toString()) ?? e[0] : void 0;
5170
- 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: [
5191
+ 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: [
5171
5192
  { value: "no-rounding", label: "Default", description: "Time slots will be rounded to the nearest quarter-hour." },
5172
5193
  {
5173
5194
  value: "rounding",
@@ -5200,76 +5221,57 @@ $o([
5200
5221
  Jn("design:returntype", void 0)
5201
5222
  ], fa.prototype, "render", null);
5202
5223
  fa.style = Io;
5203
- const Po = ".sc-paintbrush-fill-icon-h{display:flex}", Fo = Po, No = class {
5224
+ const Fo = ".sc-paintbrush-fill-icon-h{display:flex}", No = Fo, Po = class {
5204
5225
  constructor(e) {
5205
- b(this, e), this.width = "16", this.height = "13";
5226
+ g(this, e), this.width = "16", this.height = "13";
5206
5227
  }
5207
5228
  render() {
5208
5229
  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" }));
5209
5230
  }
5210
5231
  };
5211
- No.style = Fo;
5212
- const Ro = ".sc-paintbrush-icon-h{display:flex}", Lo = Ro, Ao = class {
5232
+ Po.style = No;
5233
+ const Lo = ".sc-paintbrush-icon-h{display:flex}", Ro = Lo, Ao = class {
5213
5234
  constructor(e) {
5214
- b(this, e), this.width = "16", this.height = "13";
5235
+ g(this, e), this.width = "16", this.height = "13";
5215
5236
  }
5216
5237
  render() {
5217
5238
  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" }));
5218
5239
  }
5219
5240
  };
5220
- Ao.style = Lo;
5241
+ Ao.style = Ro;
5221
5242
  const Mo = ".sc-people-icon-h{display:flex}", zo = Mo, jo = class {
5222
5243
  constructor(e) {
5223
- b(this, e), this.width = "20", this.height = "20";
5244
+ g(this, e), this.width = "20", this.height = "20";
5224
5245
  }
5225
5246
  render() {
5226
5247
  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" }));
5227
5248
  }
5228
5249
  };
5229
5250
  jo.style = zo;
5230
- 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 {
5231
- constructor(e) {
5232
- b(this, e), this.nylasFormSwitchToggled = x(this, "nylasFormSwitchToggled", 7), this.name = "toggle-switch", this.checked = !1, this.label = "", this.isChecked = this.checked;
5233
- }
5234
- componentWillLoad() {
5235
- this.isChecked = this.checked;
5236
- }
5237
- toggleCheck() {
5238
- this.isChecked = !this.isChecked, this.nylasFormSwitchToggled.emit({
5239
- checked: this.isChecked,
5240
- name: this.name,
5241
- label: this.label
5242
- });
5243
- }
5244
- render() {
5245
- 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" }));
5246
- }
5247
- };
5248
- Bo.style = Wo;
5249
- const Zo = ".sc-trash-icon-h{display:flex}", qo = Zo, Vo = class {
5251
+ const Uo = ".sc-trash-icon-h{display:flex}", Bo = Uo, Wo = class {
5250
5252
  constructor(e) {
5251
- b(this, e), this.width = "20", this.height = "21";
5253
+ g(this, e), this.width = "20", this.height = "21";
5252
5254
  }
5253
5255
  render() {
5254
5256
  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" }));
5255
5257
  }
5256
5258
  };
5257
- Vo.style = qo;
5258
- const Jo = ".sc-zoom-icon-h{display:flex}", Go = Jo, Yo = class {
5259
+ Wo.style = Bo;
5260
+ const Zo = ".sc-zoom-icon-h{display:flex}", qo = Zo, Vo = class {
5259
5261
  constructor(e) {
5260
- b(this, e), this.width = "20", this.height = "20";
5262
+ g(this, e), this.width = "20", this.height = "20";
5261
5263
  }
5262
5264
  render() {
5263
5265
  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" }))));
5264
5266
  }
5265
5267
  };
5266
- Yo.style = Go;
5268
+ Vo.style = qo;
5267
5269
  export {
5268
5270
  ka as calendar_agenda_fill_icon,
5269
5271
  Sa as calendar_agenda_icon,
5270
5272
  Ta as calendar_info_icon,
5271
- Pa as calendar_patterns_icon,
5272
- Ra as checkmark_icon,
5273
+ Fa as calendar_patterns_icon,
5274
+ La as checkmark_icon,
5273
5275
  Ma as dragable_icon,
5274
5276
  Ua as envelope_fill_icon,
5275
5277
  Za as envelope_icon,
@@ -5280,7 +5282,7 @@ export {
5280
5282
  _t as input_image_url,
5281
5283
  di as location_icon,
5282
5284
  fi as location_off_icon,
5283
- ui as microsoft_teams_icon,
5285
+ hi as microsoft_teams_icon,
5284
5286
  Ct as nylas_additional_participants,
5285
5287
  wt as nylas_availability_picker,
5286
5288
  xt as nylas_booking_calendar_picker,
@@ -5289,8 +5291,8 @@ export {
5289
5291
  zt as nylas_booking_form_config,
5290
5292
  jt as nylas_buffer_time,
5291
5293
  Ut as nylas_calendar_picker,
5292
- Wt as nylas_cancellation_policy,
5293
- Bt as nylas_confirmation_email,
5294
+ Bt as nylas_cancellation_policy,
5295
+ Wt as nylas_confirmation_email,
5294
5296
  Zt as nylas_connected_calendars,
5295
5297
  qt as nylas_custom_booking_flow,
5296
5298
  Vt as nylas_custom_event_slug,
@@ -5313,10 +5315,9 @@ export {
5313
5315
  ca as nylas_reminder_time,
5314
5316
  pa as nylas_scheduling_method,
5315
5317
  fa as nylas_timeslot_interval,
5316
- No as paintbrush_fill_icon,
5318
+ Po as paintbrush_fill_icon,
5317
5319
  Ao as paintbrush_icon,
5318
5320
  jo as people_icon,
5319
- Bo as toggle_switch,
5320
- Vo as trash_icon,
5321
- Yo as zoom_icon
5321
+ Wo as trash_icon,
5322
+ Vo as zoom_icon
5322
5323
  };