@nylas/react 1.1.0-canary.14 → 1.1.0-canary.15

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 (130) hide show
  1. package/dist/add-circle-icon_2.entry-00dc2c13.cjs +1 -0
  2. package/dist/add-circle-icon_2.entry-3f834b47.js +26 -0
  3. package/dist/{archive-icon_7.entry-60311199.cjs → archive-icon_7.entry-25d8b2f0.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-0dfc9782.js → archive-icon_7.entry-ca8262ff.js} +15 -15
  5. package/dist/{arrow-icon.entry-eb53c4cb.cjs → arrow-icon.entry-01192ecf.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-f38f3014.js → arrow-icon.entry-991ba7cd.js} +2 -2
  7. package/dist/{bold-icon_3.entry-20e74265.js → bold-icon_3.entry-81a3ff1e.js} +10 -10
  8. package/dist/{bold-icon_3.entry-d5100ffa.cjs → bold-icon_3.entry-e94dcf5b.cjs} +1 -1
  9. package/dist/{calendar-cancel-icon.entry-e5d1bc0a.cjs → calendar-cancel-icon.entry-9088fa8b.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-0bdee178.js → calendar-cancel-icon.entry-f646c147.js} +5 -5
  11. package/dist/{calendar-check-icon_2.entry-10af2017.cjs → calendar-check-icon_2.entry-4dc1391a.cjs} +1 -1
  12. package/dist/{calendar-check-icon_2.entry-f18a2ddb.js → calendar-check-icon_2.entry-a7e4d0e6.js} +7 -7
  13. package/dist/{calendar-icon.entry-12ca0ae4.js → calendar-icon.entry-1658930c.js} +2 -2
  14. package/dist/{calendar-icon.entry-bc6f0808.cjs → calendar-icon.entry-1e2acd5c.cjs} +1 -1
  15. package/dist/{add-circle-icon_22.entry-ab0d5ede.js → calendar-info-icon_25.entry-493c5547.js} +966 -704
  16. package/dist/calendar-info-icon_25.entry-7513d798.cjs +1 -0
  17. package/dist/chevron-icon_3.entry-52b97043.cjs +1 -0
  18. package/dist/chevron-icon_3.entry-b3c7eb44.js +126 -0
  19. package/dist/{clock-icon_2.entry-ffc9e057.js → clock-icon_2.entry-58f07042.js} +3 -3
  20. package/dist/{clock-icon_2.entry-7cddf901.cjs → clock-icon_2.entry-882249ee.cjs} +1 -1
  21. package/dist/close-icon.entry-4a39816a.js +15 -0
  22. package/dist/close-icon.entry-f1166251.cjs +1 -0
  23. package/dist/{constants-f34b9c6e-108993e8.cjs → constants-f34b9c6e-1da5094b.cjs} +1 -1
  24. package/dist/{constants-f34b9c6e-37cabe82.js → constants-f34b9c6e-628beaa8.js} +1 -1
  25. package/dist/{document-refresh-icon.entry-d1f6259a.cjs → document-refresh-icon.entry-4f581bf4.cjs} +1 -1
  26. package/dist/{document-refresh-icon.entry-e4636c8e.js → document-refresh-icon.entry-b53316b4.js} +2 -2
  27. package/dist/elements/index.d.ts +9 -0
  28. package/dist/{elements-dc5b338e-a37a0510.cjs → elements-dc5b338e-3284591d.cjs} +1 -1
  29. package/dist/{elements-dc5b338e-c6f2806c.js → elements-dc5b338e-7abe37c6.js} +1 -1
  30. package/dist/{focus-visible-e8093c16-b62197ad.cjs → focus-visible-e8093c16-cb6c97b1.cjs} +1 -1
  31. package/dist/{focus-visible-e8093c16-b0821d89.js → focus-visible-e8093c16-d6612604.js} +1 -1
  32. package/dist/{forward-icon_6.entry-2a694e7c.js → forward-icon_6.entry-d54244f7.js} +9 -9
  33. package/dist/{forward-icon_6.entry-b81b22f6.cjs → forward-icon_6.entry-e402ad1e.cjs} +2 -2
  34. package/dist/{globe-icon.entry-c037589b.cjs → globe-icon.entry-db7377d9.cjs} +1 -1
  35. package/dist/{globe-icon.entry-e794eb52.js → globe-icon.entry-e83c79c2.js} +4 -4
  36. package/dist/google-logo-icon_4.entry-8818686b.js +429 -0
  37. package/dist/google-logo-icon_4.entry-fa65ae29.cjs +1 -0
  38. package/dist/{index-d61429c6.js → index-2d032bec.js} +1288 -1265
  39. package/dist/index-53420959-41ed02ae.js +5 -0
  40. package/dist/index-53420959-a76f0327.cjs +1 -0
  41. package/dist/{index-ef01c714-1e2feefc.js → index-6d9eeb53-91d36348.js} +2 -2
  42. package/dist/{index-ef01c714-54e17405.cjs → index-6d9eeb53-f478270c.cjs} +1 -1
  43. package/dist/index-9c04361d.cjs +42 -0
  44. package/dist/{index.es-74f70f7d-a22eba35.cjs → index.es-9cc0eb3c-2242baf6.cjs} +1 -1
  45. package/dist/{index.es-74f70f7d-da0e7fcf.js → index.es-9cc0eb3c-ee2ebbe1.js} +1 -1
  46. package/dist/{info-icon_2.entry-23e3fa8a.cjs → info-icon_2.entry-4b257e73.cjs} +1 -1
  47. package/dist/{info-icon_2.entry-647915bb.js → info-icon_2.entry-74eb7415.js} +5 -5
  48. package/dist/input-component.entry-3ef7ce2c.cjs +1 -0
  49. package/dist/input-component.entry-6bb4a5e8.js +45 -0
  50. package/dist/input-dropdown_2.entry-a87714fc.cjs +1 -0
  51. package/dist/input-dropdown_2.entry-f71e4c01.js +209 -0
  52. package/dist/{loading-icon.entry-1ddd0244.js → loading-icon.entry-30724cb0.js} +2 -2
  53. package/dist/{loading-icon.entry-98d65a5d.cjs → loading-icon.entry-bb250f1c.cjs} +1 -1
  54. package/dist/{mailbox-store-050a2914-6fef25fb.js → mailbox-store-64b4ef7c-202f1afd.js} +2 -2
  55. package/dist/{mailbox-store-050a2914-bd0a86bb.cjs → mailbox-store-64b4ef7c-74f959be.cjs} +1 -1
  56. package/dist/{nylas-additional-participants.entry-3c598863.cjs → nylas-additional-participants.entry-567c7c2a.cjs} +1 -1
  57. package/dist/{nylas-additional-participants.entry-0f93e24e.js → nylas-additional-participants.entry-7961be04.js} +5 -5
  58. package/dist/nylas-booked-event-card_10.entry-c2f889ba.cjs +1 -0
  59. package/dist/{nylas-booked-event-card_10.entry-9f7869af.js → nylas-booked-event-card_10.entry-ddfcff5e.js} +371 -299
  60. package/dist/{nylas-custom-booking-flow.entry-877cac85.cjs → nylas-custom-booking-flow.entry-63ed387e.cjs} +1 -1
  61. package/dist/{nylas-custom-booking-flow.entry-69638c50.js → nylas-custom-booking-flow.entry-a1f66d05.js} +10 -10
  62. package/dist/{nylas-form-card.entry-4349d07d.cjs → nylas-form-card.entry-6fece0ff.cjs} +1 -1
  63. package/dist/{nylas-form-card.entry-b2da5266.js → nylas-form-card.entry-ea1153b9.js} +11 -11
  64. package/dist/{nylas-if-state.entry-62474acb.js → nylas-if-state.entry-05f8f66f.js} +3 -3
  65. package/dist/{nylas-if-state.entry-9eade180.cjs → nylas-if-state.entry-b75320f0.cjs} +1 -1
  66. package/dist/{nylas-list-folders.entry-348a784b.js → nylas-list-folders.entry-bd5a1b1d.js} +7 -7
  67. package/dist/{nylas-list-folders.entry-b32ec92a.cjs → nylas-list-folders.entry-edc61b97.cjs} +1 -1
  68. package/dist/{nylas-list-threads.entry-7e8044b2.cjs → nylas-list-threads.entry-79ad0944.cjs} +1 -1
  69. package/dist/{nylas-list-threads.entry-ec1c5fb6.js → nylas-list-threads.entry-f3cd80de.js} +3 -3
  70. package/dist/{nylas-login.entry-0495d0b5.cjs → nylas-login.entry-68873357.cjs} +1 -1
  71. package/dist/{nylas-login.entry-f6f1e306.js → nylas-login.entry-b3207e82.js} +7 -7
  72. package/dist/{nylas-mailbox-pagination.entry-24c82c53.js → nylas-mailbox-pagination.entry-22c5b9ca.js} +2 -2
  73. package/dist/{nylas-mailbox-pagination.entry-22385ead.cjs → nylas-mailbox-pagination.entry-2ef5b88a.cjs} +1 -1
  74. package/dist/{nylas-mailbox-toolbar-button.entry-b13b2a58.js → nylas-mailbox-toolbar-button.entry-95bb58b5.js} +9 -9
  75. package/dist/{nylas-mailbox-toolbar-button.entry-e8e52474.cjs → nylas-mailbox-toolbar-button.entry-f2fa3a8e.cjs} +1 -1
  76. package/dist/{nylas-mailbox.entry-77f4c37e.cjs → nylas-mailbox.entry-4b1d320f.cjs} +1 -1
  77. package/dist/{nylas-mailbox.entry-0365fbb0.js → nylas-mailbox.entry-4ef7d18d.js} +6 -6
  78. package/dist/{nylas-provider.entry-11239372.js → nylas-provider.entry-7f7e098a.js} +6 -6
  79. package/dist/{nylas-provider.entry-d454a4d1.cjs → nylas-provider.entry-b629340a.cjs} +1 -1
  80. package/dist/{nylas-scheduler-editor.entry-16473950.cjs → nylas-scheduler-editor.entry-19a29c4c.cjs} +2 -2
  81. package/dist/{nylas-scheduler-editor.entry-c4d38853.js → nylas-scheduler-editor.entry-2d19593f.js} +13 -7
  82. package/dist/nylas-scheduling.entry-70454242.cjs +1 -0
  83. package/dist/{nylas-scheduling.entry-cc2535a9.js → nylas-scheduling.entry-753cb746.js} +61 -61
  84. package/dist/{nylas-threads-refresh.entry-725ef87d.cjs → nylas-threads-refresh.entry-0a832631.cjs} +1 -1
  85. package/dist/{nylas-threads-refresh.entry-5a6378fe.js → nylas-threads-refresh.entry-5a774ad7.js} +4 -4
  86. package/dist/{nylas-threads-search.entry-5e7b6a03.js → nylas-threads-search.entry-451c6d5c.js} +9 -9
  87. package/dist/nylas-threads-search.entry-5b57688b.cjs +1 -0
  88. package/dist/{nylas-view-thread.entry-98f8e35b.cjs → nylas-view-thread.entry-7b273955.cjs} +1 -1
  89. package/dist/{nylas-view-thread.entry-249f0b65.js → nylas-view-thread.entry-e0af8998.js} +3 -3
  90. package/dist/{people-icon.entry-0ab4b752.cjs → people-icon.entry-c7fb7f6c.cjs} +1 -1
  91. package/dist/{people-icon.entry-0ed95db0.js → people-icon.entry-de3fada0.js} +6 -6
  92. package/dist/{play-icon_2.entry-433a8722.js → play-icon_2.entry-58592b64.js} +5 -5
  93. package/dist/play-icon_2.entry-5b22a7ca.cjs +1 -0
  94. package/dist/react.cjs +1 -1
  95. package/dist/react.js +98 -89
  96. package/dist/{refresh-icon.entry-508a246d.cjs → refresh-icon.entry-876b8aea.cjs} +1 -1
  97. package/dist/{refresh-icon.entry-b5bee0f4.js → refresh-icon.entry-90756bc6.js} +4 -4
  98. package/dist/{register-component-e4dc8778-7812a275.cjs → register-component-a5a9ca5d-1fbb27d2.cjs} +1 -1
  99. package/dist/{register-component-e4dc8778-53fe0729.js → register-component-a5a9ca5d-8bede801.js} +1 -1
  100. package/dist/{scheduler-config-store-ec3b6190-435c84ca.cjs → scheduler-config-store-ec3b6190-104df545.cjs} +1 -1
  101. package/dist/{scheduler-config-store-ec3b6190-01892765.js → scheduler-config-store-ec3b6190-cbc40d60.js} +1 -1
  102. package/dist/scheduler-store-f02ce045-1d93c571.js +390 -0
  103. package/dist/scheduler-store-f02ce045-712c600c.cjs +1 -0
  104. package/dist/textarea-component.entry-3ea161d6.js +35 -0
  105. package/dist/textarea-component.entry-9d6b5cdc.cjs +1 -0
  106. package/dist/toggle-switch.entry-10aa0c1a.cjs +1 -0
  107. package/dist/toggle-switch.entry-a08c1027.js +25 -0
  108. package/dist/{translate-icon.entry-f77cfd3d.cjs → translate-icon.entry-04dde6b1.cjs} +1 -1
  109. package/dist/{translate-icon.entry-c34bad94.js → translate-icon.entry-be9c3401.js} +6 -6
  110. package/dist/{warning-icon.entry-f781a623.js → warning-icon.entry-347d77af.js} +5 -5
  111. package/dist/{warning-icon.entry-f73b31bf.cjs → warning-icon.entry-84121a43.cjs} +1 -1
  112. package/package.json +3 -3
  113. package/dist/add-circle-icon_22.entry-c165f0de.cjs +0 -1
  114. package/dist/chevron-icon_3.entry-55eb864f.js +0 -117
  115. package/dist/chevron-icon_3.entry-a18c373d.cjs +0 -1
  116. package/dist/close-icon.entry-7c67181c.js +0 -15
  117. package/dist/close-icon.entry-918dd254.cjs +0 -1
  118. package/dist/google-logo-icon_4.entry-748af8c3.cjs +0 -1
  119. package/dist/google-logo-icon_4.entry-b4464873.js +0 -393
  120. package/dist/index-53420959-31867ccf.js +0 -5
  121. package/dist/index-53420959-535906ce.cjs +0 -1
  122. package/dist/index-6a4ee4f8.cjs +0 -42
  123. package/dist/nylas-booked-event-card_10.entry-912e4a89.cjs +0 -1
  124. package/dist/nylas-scheduling.entry-5b156a28.cjs +0 -1
  125. package/dist/nylas-threads-search.entry-a2553cbe.cjs +0 -1
  126. package/dist/play-icon_2.entry-f9c0b647.cjs +0 -1
  127. package/dist/scheduler-store-04e15f8a-5d06eaf3.cjs +0 -1
  128. package/dist/scheduler-store-04e15f8a-69eb8d7a.js +0 -376
  129. package/dist/time-period-selector.entry-77a6debf.cjs +0 -1
  130. package/dist/time-period-selector.entry-a29c8ffa.js +0 -76
@@ -1,192 +1,77 @@
1
- import { r as m, h as i, c as w, g as k, d, H as _, I as W, J as F, K as ve, L as Ce, M as We, i as Ue, O as K, P as ae, Q as ie, R as xe, S as ke, T as U, U as Ke } from "./index-d61429c6.js";
2
- import { R as C } from "./register-component-e4dc8778-53fe0729.js";
3
- import { T as we, E as _e } from "./constants-f34b9c6e-37cabe82.js";
4
- import { s as ye } from "./index-ef01c714-1e2feefc.js";
5
- import "./index-53420959-31867ccf.js";
1
+ import { r as b, h as a, c as k, d, H as _, g as w, G as W, I as N, J as Ce, K as Oe, L as Qe, i as Xe, M as Z, O as se, P as le, Q as Te, R as Ie, S as U, T as et } from "./index-2d032bec.js";
2
+ import { R as C } from "./register-component-a5a9ca5d-8bede801.js";
3
+ import { T as De, E as Se } from "./constants-f34b9c6e-628beaa8.js";
4
+ import { s as V } from "./index-6d9eeb53-91d36348.js";
5
+ import "./index-53420959-41ed02ae.js";
6
6
  import "react";
7
7
  import "react-dom";
8
- const Ze = ".sc-add-circle-icon-h{display:flex}", Ye = Ze, Ve = class {
8
+ const tt = ".sc-calendar-info-icon-h{display:flex}", nt = tt, at = class {
9
9
  constructor(e) {
10
- m(this, e), this.width = "24", this.height = "25";
10
+ b(this, e), this.width = "20", this.height = "20";
11
11
  }
12
12
  render() {
13
- return i("svg", { key: "4406ac2509a17d4887dd8dcb9ff8e9001e18643b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "b08da8f266b5abfd1c43d61ed427bd34c92d0d5b", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
14
- }
15
- };
16
- Ve.style = Ye;
17
- const qe = "button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}", Je = qe, Ge = class {
18
- constructor(e) {
19
- m(this, e), this.variant = "primary", this.disabled = !1, this.type = "button", this.clickHandler = void 0, this.mouseOverHandler = void 0, this.mouseOutHandler = void 0, this.focusHandler = void 0, this.blurHandler = void 0;
20
- }
21
- render() {
22
- const e = `button-${this.variant}` + (this.disabled ? " disabled" : "");
23
- return i("button", { key: "b5d5ab5f387a6159524e0981e0b15f2594096130", class: e, disabled: this.disabled, type: "type", onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, i("slot", { key: "d3d7ec151854d1164f8699b57fee9998eb9e2039" }));
24
- }
25
- };
26
- Ge.style = Je;
27
- const Xe = ".sc-calendar-info-icon-h{display:flex}", Qe = Xe, et = class {
28
- constructor(e) {
29
- m(this, e), this.width = "20", this.height = "20";
30
- }
31
- render() {
32
- return i("svg", { key: "70a80808372e537f9e317ba568922f503d2fa358", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "f06b4115c72ac00183bfd9b7d9610608790ad051", 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" }));
33
- }
34
- };
35
- et.style = Qe;
36
- const tt = ".sc-calendar-patterns-icon-h{display:flex}", nt = tt, at = class {
37
- constructor(e) {
38
- m(this, e), this.width = "20", this.height = "20";
39
- }
40
- render() {
41
- return i("svg", { key: "34186e64e6fa5e330d4c3cc027451c9aab4c4330", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "4f3c46e550436f3e9723af7f1bf96302cbe3d052", 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" }));
13
+ return a("svg", { key: "4627a1bd7409bf86d6e987334411a7791cced94d", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "0ac301e5d6ecc7f616f2e4efe4bc58a492b5d6c2", 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" }));
42
14
  }
43
15
  };
44
16
  at.style = nt;
45
- const it = ".sc-flow-icon-h{display:flex}", st = it, ot = class {
17
+ const it = ".sc-calendar-patterns-icon-h{display:flex}", st = it, lt = class {
46
18
  constructor(e) {
47
- m(this, e), this.width = "16", this.height = "12";
19
+ b(this, e), this.width = "20", this.height = "20";
48
20
  }
49
21
  render() {
50
- return i("svg", { key: "02b7fda4b7e68b9339a18d0538388300b6eb0a81", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "c65115a97b68ef89e18ee6f47dbcab45da4ae3ff", 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" }));
22
+ return a("svg", { key: "51194c3d75fbd584a92f542e1577cd42d02220ea", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "4c59913ad1970a360ae9cd8e69551131e66fc00e", 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" }));
51
23
  }
52
24
  };
53
- ot.style = st;
54
- const lt = ':host{display:block;position:relative;--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}@media screen and (max-width: 768px){:host{position:unset}}.dropdown{display:inline-block}.dropbtn{color:var(--nylas-base-800);padding:10px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;border-radius:var(--nylas-border-radius-2x);width:50px;padding:14px 16px;border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);max-width:306px;width:max-content;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content 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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', rt = lt, dt = class {
25
+ lt.style = st;
26
+ const ot = 'label{--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:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', rt = ot, dt = class {
55
27
  constructor(e) {
56
- m(this, e), this.inputOptionChanged = w(this, "inputOptionChanged", 7), this.name = void 0, this.options = [], this.defaultInputOption = void 0, this.inputValue = void 0, this.pluralizedLabel = "", this.selectedOption = this.defaultInputOption || null, this.isOpen = !1, this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.shouldAutoScroll = !1;
57
- }
58
- optionsChangedHandler(e, t) {
59
- e !== t && (this.filteredOptions = e);
60
- }
61
- defaultSelectedOptionChangedHandler(e, t) {
62
- e.label !== t.label && (this.selectedOption = e);
28
+ b(this, e), this.nylasFormCheckboxToggled = k(this, "nylasFormCheckboxToggled", 7), this.name = "checkbox", this.checked = !1, this.label = "", this.isChecked = this.checked;
63
29
  }
64
30
  componentWillLoad() {
65
- this.filteredOptions = this.options, !this.selectedOption && this.defaultInputOption && (this.selectedOption = this.defaultInputOption), !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]);
31
+ this.isChecked = this.checked;
66
32
  }
67
- toggleDropdown() {
68
- this.isOpen = !this.isOpen;
69
- }
70
- selectOption(e) {
71
- this.selectedOption = e, this.toggleDropdown(), this.inputOptionChanged.emit({
72
- value: e.value,
73
- name: this.name
74
- });
75
- }
76
- handleOnInput(e) {
77
- const t = e.target.value, n = this.options.findIndex((a) => a.label.toLowerCase().includes(t.toLowerCase()));
78
- n > -1 && this.scrollToViewWithinParent(n), this.inputOptionChanged.emit({
79
- value: t,
80
- name: this.name
33
+ toggleCheck() {
34
+ this.isChecked = !this.isChecked, this.nylasFormCheckboxToggled.emit({
35
+ checked: this.isChecked,
36
+ name: this.name,
37
+ label: this.label
81
38
  });
82
39
  }
83
- scrollToViewWithinParent(e) {
84
- var l;
85
- const t = this.options[e], n = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(t.value.toString()), a = this.optionsRef;
86
- this.ariaActivedescendant = t.value.toString();
87
- const o = n.getBoundingClientRect(), s = a.getBoundingClientRect();
88
- o.top < s.top ? a.scrollTop -= s.top - o.top : o.bottom > s.bottom && (a.scrollTop += o.bottom - s.bottom);
89
- }
90
- handleSelectButtonKeyDown(e) {
91
- var t;
92
- switch (e.key) {
93
- case "ArrowDown":
94
- case "Enter":
95
- e.preventDefault(), this.isOpen || this.toggleDropdown(), (t = this.inputRef) == null || t.focus();
96
- break;
97
- case "Escape":
98
- this.isOpen = !1;
99
- break;
100
- }
101
- }
102
- handleClick(e) {
103
- if (this.isOpen) {
104
- const t = e.target.value, n = this.options.findIndex((a) => a.label.toLowerCase().includes(t.toLowerCase()));
105
- n > -1 && setTimeout(() => {
106
- this.scrollToViewWithinParent(n);
107
- }, 10);
108
- }
109
- }
110
- handleListboxKeydown(e) {
111
- var a, o;
112
- const t = this.filteredOptions, n = t.findIndex((s) => s.value === this.ariaActivedescendant);
113
- if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
114
- if (e.preventDefault(), n === t.length - 1) {
115
- this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
116
- return;
117
- }
118
- const s = n + 1 < t.length ? n + 1 : 0;
119
- this.ariaActivedescendant = t[s].value, this.focusOption(s);
120
- } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
121
- if (e.preventDefault(), n === 0) {
122
- this.ariaActivedescendant = "", (o = this.inputRef) == null || o.focus();
123
- return;
124
- }
125
- const s = n - 1 >= 0 ? n - 1 : t.length - 1;
126
- this.ariaActivedescendant = t[s].value, this.focusOption(s);
127
- } else
128
- e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[n])) : e.key === "Escape" && (this.isOpen = !1);
129
- }
130
- focusOption(e) {
131
- var o;
132
- const t = this.filteredOptions[e];
133
- if (!t)
134
- return;
135
- const n = t.value, a = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(n);
136
- a && (a.focus(), a.scrollIntoView({ behavior: "smooth", block: "nearest" }));
137
- }
138
- handleComboboxKeyDown(e) {
139
- if (e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey) {
140
- if (e.preventDefault(), !this.isOpen) {
141
- this.isOpen = !0, this.shouldAutoScroll = !0;
142
- return;
143
- }
144
- this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0);
145
- } else
146
- e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[this.filteredOptions.length - 1].value, this.focusOption(this.filteredOptions.length - 1)) : e.key === "Escape" && (this.isOpen = !1);
147
- }
148
- handleOutsideClick(e) {
149
- !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
150
- }
151
40
  render() {
152
- return i("div", { key: "477367bf59c43e635a242508ee854ba785ea6232", class: "dropdown", part: "id_dropdown" }, i("input", { key: "39878fbabaec31690981124d85e3a2267b9cde4b", type: "text", name: this.name, id: this.name, part: "id_dropdown-input", class: { dropbtn: !0, open: this.isOpen }, value: this.inputValue, onClick: (e) => {
153
- this.toggleDropdown(), this.shouldAutoScroll = !0, this.handleClick(e);
154
- }, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.isOpen ? "true" : "false", onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e) }), this.isOpen ? i("div", { class: "dropdown-content", part: "id_dropdown-content", ref: (e) => this.optionsRef = e }, i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.filteredOptions.map((e) => i("li", { tabindex: "0", key: e.value, id: e.value, onClick: () => this.selectOption(e), role: "option", class: {
155
- focused: this.ariaActivedescendant === e.value.toString()
156
- } }, e.labelHTML ? e.labelHTML : e.label)))) : null);
157
- }
158
- get el() {
159
- return k(this);
160
- }
161
- static get watchers() {
162
- return {
163
- options: ["optionsChangedHandler"],
164
- defaultInputOption: ["defaultSelectedOptionChangedHandler"]
165
- };
41
+ return a("label", { key: "38e5db24a5990c9b892fc824508148c28d918097" }, a("input", { key: "98d0bcc2e427035e7cc6fe216a1db105b65fc848", type: "checkbox", checked: this.isChecked, onChange: () => this.toggleCheck() }), a("span", { key: "9d475bd9e76606d62791e3aad90acd3286daae4b", class: "checkmark" }), a("slot", { key: "901fc53b3031d828a9e83f074b4223ef40ed0566", name: "label" }, a("span", { key: "fa95b9232724d82e023214e666948f5dd9d11a4f", class: "label" }, this.label)));
166
42
  }
167
43
  };
168
44
  dt.style = rt;
169
- const ct = ".sc-location-icon-h{display:flex}", pt = ct, ft = class {
45
+ const ct = ".sc-flow-icon-h{display:flex}", ft = ct, pt = class {
170
46
  constructor(e) {
171
- m(this, e), this.width = "16", this.height = "18";
47
+ b(this, e), this.width = "16", this.height = "12";
172
48
  }
173
49
  render() {
174
- return i("svg", { key: "cfcb8d9cf76acec56ed63112cf9d9fa6cfcea52b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "321a83e5d78176ac944316764d7a636b2a16a8a3", 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" }));
50
+ return a("svg", { key: "3cc6938f442a5a5929c7b649b2b1e63dc4ce9d9b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "2fd666481696e0717a006c6cc35d14bfe076e778", 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" }));
175
51
  }
176
52
  };
177
- ft.style = pt;
178
- const ut = ".sc-location-off-icon-h{display:flex}", ht = ut, bt = class {
53
+ pt.style = ft;
54
+ const ut = ".sc-location-icon-h{display:flex}", ht = ut, bt = class {
179
55
  constructor(e) {
180
- m(this, e), this.width = "16", this.height = "18";
56
+ b(this, e), this.width = "16", this.height = "18";
181
57
  }
182
58
  render() {
183
- return i("svg", { key: "67b1b71715d064a7e4cba955a6f2408c60852393", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "0ee75a47b27780c9a6bb82dd53de377d7a163870", 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" }));
59
+ return a("svg", { key: "ac7261b5c4435c0ce081169de0cc9f9153a4c0fc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "72f2ad6299564760a1586d975d15cbfb776b171f", 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" }));
184
60
  }
185
61
  };
186
62
  bt.style = ht;
187
- const mt = ':host{display:block;width:inherit;--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}.dropdown{display:inline-block;width:100%;position:relative}.dropdown .dropdown-label{display:flex;align-items:center;gap:0.25rem;color:var(--nylas-base-800)}.dropbtn{width:inherit;height:48px;color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{border:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content 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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content ul li label{display:flex;align-items:center;gap:0.5rem}.dropdown-content ul li label input{margin:0}.selected-options{display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0;margin-top:0.25rem;background:var(--nylas-base-0)}.selected-options .selected-option{display:flex;align-items:center;gap:0.5rem;padding:4px 8px;border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-100);color:var(--nylas-base-800);font-size:16px;font-weight:500;line-height:1.5rem;letter-spacing:0.5px}.selected-options .selected-option button{background:transparent;border:none;cursor:pointer;padding:0}.selected-options .selected-option button:hover{color:var(--nylas-primary)}', yt = mt, gt = class {
63
+ const mt = ".sc-location-off-icon-h{display:flex}", yt = mt, gt = class {
188
64
  constructor(e) {
189
- m(this, e), this.selectedOptionsChanged = w(this, "selectedOptionsChanged", 7), this.name = void 0, this.label = void 0, this.options = [], this.availableOptions = this.options, this.isOpen = !1, this.ariaActivedescendant = "", this.shouldFocusFirstOption = !1;
65
+ b(this, e), this.width = "16", this.height = "18";
66
+ }
67
+ render() {
68
+ return a("svg", { key: "71b77626fd36927b30dd10b92175179cde4de388", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "a37496113d32883d1dde6a7821b7a34dbbe2e705", 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" }));
69
+ }
70
+ };
71
+ gt.style = yt;
72
+ const vt = ':host{display:block;width:inherit;--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}.dropdown{display:inline-block;width:100%;position:relative}.dropdown .dropdown-label{display:flex;align-items:center;gap:0.25rem;color:var(--nylas-base-800)}.dropbtn{width:inherit;height:48px;color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{border:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content 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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content ul li label{display:flex;align-items:center;gap:0.5rem}.dropdown-content ul li label input{margin:0}.selected-options{display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0;margin-top:0.25rem;background:var(--nylas-base-0)}.selected-options .selected-option{display:flex;align-items:center;gap:0.5rem;padding:4px 8px;border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-100);color:var(--nylas-base-800);font-size:16px;font-weight:500;line-height:1.5rem;letter-spacing:0.5px}.selected-options .selected-option button{background:transparent;border:none;cursor:pointer;padding:0}.selected-options .selected-option button:hover{color:var(--nylas-primary)}', kt = vt, xt = class {
73
+ constructor(e) {
74
+ b(this, e), this.selectedOptionsChanged = k(this, "selectedOptionsChanged", 7), this.name = void 0, this.label = void 0, this.options = [], this.availableOptions = this.options, this.isOpen = !1, this.ariaActivedescendant = "", this.shouldFocusFirstOption = !1;
190
75
  }
191
76
  componentDidRender() {
192
77
  d("multi-select-dropdown", "componentDidRender"), this.isOpen && this.shouldFocusFirstOption && (this.ariaActivedescendant = this.availableOptions[0].value, this.focusOption(0), this.shouldFocusFirstOption = !1);
@@ -217,24 +102,24 @@ const mt = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
217
102
  }
218
103
  }
219
104
  handleListboxKeydown(e) {
220
- const t = this.availableOptions, n = t.findIndex((a) => a.value === this.ariaActivedescendant);
105
+ const t = this.availableOptions, n = t.findIndex((i) => i.value === this.ariaActivedescendant);
221
106
  switch (e.key) {
222
107
  case "ArrowDown":
223
108
  case "Tab":
224
109
  if (e.shiftKey) {
225
110
  e.preventDefault();
226
- const o = n - 1 >= 0 ? n - 1 : t.length - 1;
227
- this.ariaActivedescendant = t[o].value, this.focusOption(o);
111
+ const l = n - 1 >= 0 ? n - 1 : t.length - 1;
112
+ this.ariaActivedescendant = t[l].value, this.focusOption(l);
228
113
  } else {
229
114
  e.preventDefault();
230
- const o = n + 1 < t.length ? n + 1 : 0;
231
- this.ariaActivedescendant = t[o].value, this.focusOption(o);
115
+ const l = n + 1 < t.length ? n + 1 : 0;
116
+ this.ariaActivedescendant = t[l].value, this.focusOption(l);
232
117
  }
233
118
  break;
234
119
  case "ArrowUp":
235
120
  e.preventDefault();
236
- const a = n - 1 >= 0 ? n - 1 : t.length - 1;
237
- this.ariaActivedescendant = t[a].value, this.focusOption(a);
121
+ const i = n - 1 >= 0 ? n - 1 : t.length - 1;
122
+ this.ariaActivedescendant = t[i].value, this.focusOption(i);
238
123
  break;
239
124
  case "Enter":
240
125
  e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[n]);
@@ -245,46 +130,46 @@ const mt = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
245
130
  }
246
131
  }
247
132
  focusOption(e) {
248
- var o;
133
+ var l;
249
134
  const t = this.availableOptions[e];
250
135
  if (!t)
251
136
  return;
252
- const n = t.value, a = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(n);
253
- a && (a.focus(), a.scrollIntoView({ behavior: "smooth", block: "nearest" }));
137
+ const n = t.value, i = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(n);
138
+ i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
254
139
  }
255
140
  getSelectedOptions() {
256
141
  return this.availableOptions.filter((e) => e.selected);
257
142
  }
258
143
  renderOption(e) {
259
- return i("li", { key: e.value, id: e.value, role: "option", tabindex: "0", "aria-selected": e.selected ? "true" : "false", onClick: (t) => {
144
+ return a("li", { key: e.value, id: e.value, role: "option", tabindex: "0", "aria-selected": e.selected ? "true" : "false", onClick: (t) => {
260
145
  t.stopImmediatePropagation(), this.selectOption(e);
261
- }, class: { selected: !!e.selected } }, i("label", { htmlFor: e.value }, i("input", { "aria-hidden": "true", id: e.value, type: "checkbox", checked: e.selected }), i("span", null, e.label)));
146
+ }, class: { selected: !!e.selected } }, a("label", { htmlFor: e.value }, a("input", { "aria-hidden": "true", id: e.value, type: "checkbox", checked: e.selected }), a("span", null, e.label)));
262
147
  }
263
148
  render() {
264
149
  var e, t;
265
- return i(_, { key: "a0411f59ebf50d71a4d9b396ad1a6c2725ee2975" }, i("div", { key: "7b093446e0cf5a3a4f0028245f6d122d0800fec0", class: "dropdown", part: "msd_dropdown" }, i("label", { key: "b49fe2b3d2abf8842c19dbe043f76c6584d8d0b9", class: "dropdown-label" }, this.label, i("slot", { key: "2ade01a138047872fd4123467a0f269d0355c2f9", name: "label-icon", "aria-hidden": "true" })), i("button", { key: "2f457812f885eec9b61b37dbb84e3914d8987606", part: "msd_dropdown-button", class: { dropbtn: !0, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (n) => this.handleSelectButtonKeyDown(n) }, i("slot", { key: "292fac636c3a262dd513760bf8056b59e0a257fe", name: "select-icon", "aria-hidden": "true" }), i("span", { key: "c63e21f5bd68a699d446138193b2cb83e763e4a8", class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1 ? `Multiple ${this.name}s selected` : ((e = this.availableOptions.filter((n) => n.selected)[0]) == null ? void 0 : e.label) ?? ((t = this.availableOptions[0]) == null ? void 0 : t.label)), i("span", { key: "11b35ef316881fcab1ae7d3c4921cf5e2be915c1", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, i("chevron-icon", { key: "715469190dbdb8a9cbed4985117dff1345a29804", width: "16", height: "16" }))), this.isOpen ? null : i("div", { class: "selected-options" }, this.getSelectedOptions().map((n) => i("span", { class: "selected-option" }, n.label, i("button", { key: n.label, onClick: () => this.selectOption(n) }, i("close-icon", null))))), this.isOpen ? i("div", { class: "dropdown-content", part: "msd_dropdown-content" }, i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": !0, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (n) => this.handleListboxKeydown(n) }, this.availableOptions.map((n) => this.renderOption(n)))) : null));
150
+ return a(_, { key: "89819bc74cdae708fbdd60dc3f4160c0047d1414" }, a("div", { key: "2c3568247699101568790460b5d9ef6780cef096", class: "dropdown", part: "msd_dropdown" }, a("label", { key: "d524fd75f9a8fcde85727904b6e2b21e5f6cbe0e", class: "dropdown-label" }, this.label, a("slot", { key: "e4442acbc279840d6c3d815907fa79f6fd7a11d5", name: "label-icon", "aria-hidden": "true" })), a("button", { key: "8b66520137e83747c4e74237c74598fa2081275f", part: "msd_dropdown-button", class: { dropbtn: !0, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (n) => this.handleSelectButtonKeyDown(n) }, a("slot", { key: "e6ba4fd51fb6cf3dde63757f9eef8d1538a9a91d", name: "select-icon", "aria-hidden": "true" }), a("span", { key: "bfc7c1bdc8046bb3a27f11a587619ecfe6d62d32", class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1 ? `Multiple ${this.name}s selected` : ((e = this.availableOptions.filter((n) => n.selected)[0]) == null ? void 0 : e.label) ?? ((t = this.availableOptions[0]) == null ? void 0 : t.label)), a("span", { key: "f93e18714865b54dee754d2764b0b3bec3a4dead", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, a("chevron-icon", { key: "d91d60366c8503e84cb6e41e43ac77f911f9517c", width: "16", height: "16" }))), this.isOpen ? null : a("div", { class: "selected-options" }, this.getSelectedOptions().map((n) => a("span", { class: "selected-option" }, n.label, a("button", { key: n.label, onClick: () => this.selectOption(n) }, a("close-icon", null))))), this.isOpen ? a("div", { class: "dropdown-content", part: "msd_dropdown-content" }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": !0, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (n) => this.handleListboxKeydown(n) }, this.availableOptions.map((n) => this.renderOption(n)))) : null));
266
151
  }
267
152
  get el() {
268
- return k(this);
153
+ return w(this);
269
154
  }
270
155
  };
271
- gt.style = yt;
272
- const vt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .select-timezone select-dropdown{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}', xt = vt;
273
- var kt = function(e, t, n, a) {
274
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
156
+ xt.style = kt;
157
+ const _t = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', wt = _t;
158
+ var Ct = function(e, t, n, i) {
159
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
275
160
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
276
- s = Reflect.decorate(e, t, n, a);
161
+ s = Reflect.decorate(e, t, n, i);
277
162
  else
278
163
  for (var r = e.length - 1; r >= 0; r--)
279
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
280
- return o > 3 && s && Object.defineProperty(t, n, s), s;
281
- }, se = function(e, t) {
164
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
165
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
166
+ }, oe = function(e, t) {
282
167
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
283
168
  return Reflect.metadata(e, t);
284
169
  };
285
- const Oe = class {
170
+ const Ee = class {
286
171
  constructor(e) {
287
- m(this, e), this.valueChanged = w(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.openHours = void 0, this.name = "availability", this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.schedule = {
172
+ b(this, e), this.valueChanged = k(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.openHours = void 0, this.name = "availability", this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.schedule = {
288
173
  SUN: [],
289
174
  MON: [{ start: "09:00am", end: "05:00pm" }],
290
175
  TUE: [{ start: "09:00am", end: "05:00pm" }],
@@ -298,9 +183,9 @@ const Oe = class {
298
183
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
299
184
  }
300
185
  configChangedHandler(e) {
301
- var n, a, o;
186
+ var n, i, l;
302
187
  const t = (n = e == null ? void 0 : e.participants) == null ? void 0 : n.find((s) => s.is_organizer);
303
- t && ((a = t == null ? void 0 : t.availability) != null && a.open_hours) && this.openHoursToSchedule((o = t == null ? void 0 : t.availability) == null ? void 0 : o.open_hours);
188
+ t && ((i = t == null ? void 0 : t.availability) != null && i.open_hours) && this.openHoursToSchedule((l = t == null ? void 0 : t.availability) == null ? void 0 : l.open_hours);
304
189
  }
305
190
  scheduleChanged(e, t) {
306
191
  var n;
@@ -312,18 +197,18 @@ const Oe = class {
312
197
  },
313
198
  name: this.name
314
199
  });
315
- let a = {};
316
- if (Object.keys(e).forEach((o) => {
317
- const s = e[o];
200
+ let i = {};
201
+ if (Object.keys(e).forEach((l) => {
202
+ const s = e[l];
318
203
  if (s.length > 0) {
319
- const l = this.getOverlaps(s);
320
- l.length > 0 && (a[o] = l);
204
+ const o = this.getOverlaps(s);
205
+ o.length > 0 && (i[l] = o);
321
206
  }
322
- }), this.overlapDays = a, typeof this.internals.setFormValue != "function")
207
+ }), this.overlapDays = i, typeof this.internals.setFormValue != "function")
323
208
  return;
324
- if (Object.keys(a).length > 0) {
325
- const o = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(Object.keys(a)[0]);
326
- o && (d("nylas-availability-picker", "The time ranges are overlapping. Overlap: ", a), this.internals.setValidity({ customError: !0 }, "Overlapping time ranges found", o));
209
+ if (Object.keys(i).length > 0) {
210
+ const l = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(Object.keys(i)[0]);
211
+ l && (d("nylas-availability-picker", "The time ranges are overlapping. Overlap: ", i), this.internals.setValidity({ customError: !0 }, "Overlapping time ranges found", l));
327
212
  } else
328
213
  this.internals.setValidity({ customError: !1 }), this.internals.setFormValue(JSON.stringify({
329
214
  openHours: this.scheduleToOpenHours(this.schedule),
@@ -331,7 +216,7 @@ const Oe = class {
331
216
  }));
332
217
  }
333
218
  }
334
- selectedOptionChangedHandler(e) {
219
+ nylasFormDropdownChangedHandler(e) {
335
220
  const { name: t, value: n } = e.detail;
336
221
  if (t === "timezone") {
337
222
  if (this.timezone = n, typeof this.internals.setFormValue != "function")
@@ -358,62 +243,62 @@ const Oe = class {
358
243
  }));
359
244
  }
360
245
  getOverlaps(e) {
361
- let t = e.map((a, o) => ({
362
- start: W(a.start),
363
- end: W(a.end),
364
- originalIndex: o
246
+ let t = e.map((i, l) => ({
247
+ start: W(i.start),
248
+ end: W(i.end),
249
+ originalIndex: l
365
250
  }));
366
- t.sort((a, o) => a.start - o.start);
251
+ t.sort((i, l) => i.start - l.start);
367
252
  let n = [];
368
- for (let a = 1; a < t.length; a++)
369
- t[a].start < t[a - 1].end && (n.includes(t[a].originalIndex) || n.push(t[a].originalIndex), n.includes(t[a - 1].originalIndex) || n.push(t[a - 1].originalIndex));
370
- return n.sort((a, o) => a - o);
253
+ for (let i = 1; i < t.length; i++)
254
+ t[i].start < t[i - 1].end && (n.includes(t[i].originalIndex) || n.push(t[i].originalIndex), n.includes(t[i - 1].originalIndex) || n.push(t[i - 1].originalIndex));
255
+ return n.sort((i, l) => i - l);
371
256
  }
372
257
  addTimeRange(e) {
373
- const t = this.schedule[e], n = 0, a = 1425;
258
+ const t = this.schedule[e], n = 0, i = 1425;
374
259
  if (t.length === 0)
375
260
  this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
376
261
  else {
377
- const o = t.map((l) => ({
378
- start: W(l.start),
379
- end: W(l.end)
380
- })).sort((l, r) => l.start - r.start), s = o[o.length - 1].end;
381
- if (s + 60 <= a)
262
+ const l = t.map((o) => ({
263
+ start: W(o.start),
264
+ end: W(o.end)
265
+ })).sort((o, r) => o.start - r.start), s = l[l.length - 1].end;
266
+ if (s + 60 <= i)
382
267
  this.schedule[e].push({
383
- start: F(U(s)),
384
- end: F(U(s + 60))
268
+ start: N(U(s)),
269
+ end: N(U(s + 60))
385
270
  });
386
271
  else {
387
- let l = !1;
388
- if (o[0].start > n + 60 && (this.schedule[e].push({
389
- start: F(U(n)),
390
- end: F(U(n + 60))
391
- }), l = !0), !l)
392
- for (let r = 0; r < o.length - 1; r++) {
393
- const h = o[r].end;
394
- if (o[r + 1].start - h >= 60) {
272
+ let o = !1;
273
+ if (l[0].start > n + 60 && (this.schedule[e].push({
274
+ start: N(U(n)),
275
+ end: N(U(n + 60))
276
+ }), o = !0), !o)
277
+ for (let r = 0; r < l.length - 1; r++) {
278
+ const h = l[r].end;
279
+ if (l[r + 1].start - h >= 60) {
395
280
  this.schedule[e].push({
396
- start: F(U(h)),
397
- end: F(U(h + 60))
281
+ start: N(U(h)),
282
+ end: N(U(h + 60))
398
283
  });
399
284
  break;
400
285
  }
401
286
  }
402
287
  }
403
288
  }
404
- this.schedule[e].sort((o, s) => W(o.start) - W(s.start)), this.schedule = { ...this.schedule };
289
+ this.schedule[e].sort((l, s) => W(l.start) - W(s.start)), this.schedule = { ...this.schedule };
405
290
  }
406
291
  removeTimeRange(e, t) {
407
292
  this.schedule[e].splice(t, 1), this.schedule = { ...this.schedule };
408
293
  }
409
294
  setTime(e) {
410
- const { key: t, value: n } = e.detail, [a, o] = t.split("_"), [s, l] = a.split(":");
411
- o === "start" ? this.schedule[s][l].start = n : o === "end" && (this.schedule[s][l].end = n), this.internals.setValidity({ customError: !1 }), this.schedule = { ...this.schedule };
295
+ const { key: t, value: n } = e.detail, [i, l] = t.split("_"), [s, o] = i.split(":");
296
+ l === "start" ? this.schedule[s][o].start = n : l === "end" && (this.schedule[s][o].end = n), this.internals.setValidity({ customError: !1 }), this.schedule = { ...this.schedule };
412
297
  }
413
298
  setFormError(e) {
414
299
  var s;
415
- const { key: t } = e.detail, [n, a] = t.split("_"), o = (s = this.host.shadowRoot) == null ? void 0 : s.getElementById(t);
416
- o && this.internals.setValidity({ customError: !0 }, `Invalid ${a} time`, o);
300
+ const { key: t } = e.detail, [n, i] = t.split("_"), l = (s = this.host.shadowRoot) == null ? void 0 : s.getElementById(t);
301
+ l && this.internals.setValidity({ customError: !0 }, `Invalid ${i} time`, l);
417
302
  }
418
303
  openHoursToSchedule(e) {
419
304
  const t = {
@@ -426,10 +311,10 @@ const Oe = class {
426
311
  SAT: []
427
312
  };
428
313
  e.forEach((n) => {
429
- n.days.forEach((a) => {
430
- const o = this.getDayKey(a), s = F(n.start), l = F(n.end), r = { start: s, end: l };
314
+ n.days.forEach((i) => {
315
+ const l = this.getDayKey(i), s = N(n.start), o = N(n.end), r = { start: s, end: o };
431
316
  let h = !1;
432
- t[o] && (h = t[o].some((p) => p.start === r.start && p.end === r.end)), h || (t[o] ? t[o].push(r) : t[o] = [r]);
317
+ t[l] && (h = t[l].some((f) => f.start === r.start && f.end === r.end)), h || (t[l] ? t[l].push(r) : t[l] = [r]);
433
318
  });
434
319
  }), this.timezone = this.defaultTimezone, this.schedule = t;
435
320
  }
@@ -439,48 +324,48 @@ const Oe = class {
439
324
  scheduleToOpenHours(e) {
440
325
  const t = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
441
326
  let n = /* @__PURE__ */ new Map();
442
- t.forEach((o, s) => {
443
- e[o] && e[o].forEach((l) => {
444
- const r = ve(l.start), h = ve(l.end), p = `${r}-${h}`;
445
- if (!n.has(p))
446
- n.set(p, { days: [s], start: r, end: h });
327
+ t.forEach((l, s) => {
328
+ e[l] && e[l].forEach((o) => {
329
+ const r = Ce(o.start), h = Ce(o.end), f = `${r}-${h}`;
330
+ if (!n.has(f))
331
+ n.set(f, { days: [s], start: r, end: h });
447
332
  else {
448
- let u = n.get(p);
449
- u && (u.days.push(s), n.set(p, u));
333
+ let u = n.get(f);
334
+ u && (u.days.push(s), n.set(f, u));
450
335
  }
451
336
  });
452
337
  });
453
- let a = [];
454
- return n.forEach((o, s) => {
455
- a.push({
456
- days: o.days,
457
- start: o.start,
458
- end: o.end,
338
+ let i = [];
339
+ return n.forEach((l, s) => {
340
+ i.push({
341
+ days: l.days,
342
+ start: l.start,
343
+ end: l.end,
459
344
  timezone: this.timezone
460
345
  });
461
- }), a;
346
+ }), i;
462
347
  }
463
348
  render() {
464
- const e = Object.keys(we).map((t) => ({
465
- label: we[t],
349
+ const e = Object.keys(De).map((t) => ({
350
+ label: De[t],
466
351
  value: t
467
352
  }));
468
- return i(_, { key: "31a09de392c342f1958a8902e4fe14520f3e8456" }, i("div", { key: "5b54b628bcb882aa24ec22b930701d235a08632b", class: "nylas-availability-picker" }, i("div", { key: "5b3e816afde7359c996bafb2ad98cc9432ea4b25", class: "header", part: "nap__header" }, i("h3", { key: "e0110aa3f8474c17acb48bfea19951c304261cd8" }, "General availability"), i("p", { key: "9a75a45b67bd070f7a9b3ab8334f189b11f7663a" }, "Set your availability for scheduling meetings.")), i("div", { key: "4bb3c1bef9b889c8c2e8d4f14a552ca4e2790194", class: "content" }, i("div", { key: "5e7e66c5efa4de3ed8200185892ab41622174b10", class: "select-timezone", part: "nap__select-timezone" }, i("h4", { key: "a5ea58a9bf26d568a37943054e92bab6100746fc", class: "sub-header" }, "Select timezone", i("span", { key: "1ad6f96e6565d7cfea5b69550aed6f0e81b473fa", class: "icon" }, i("tooltip-component", { key: "99cf87bc40b0ef6a81fbf00e5900df45893cb746" }, i("info-icon", { key: "3e7ec881948c07e4874967a3c21a7a091a5f9004", slot: "tooltip-icon" }), i("span", { key: "587a86479c784bf7c158e2f32c0a400c0ac81c9d", slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), i("select-dropdown", { key: "efcd0485aa4fc975b0cab24b9db94b3de1141281", name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: e.find((t) => t.value === this.defaultTimezone) }, i("span", { key: "734e759c7f5888d6622ddac4fc6a1ed0fd1088e3", slot: "select-icon" }, i("globe-icon", { key: "f5fb31381fce113687b5a0a9aae68d95e4bb9d13", width: "20", height: "20" })))), i("div", { key: "1c3b5fb0a01ce5e5b987bfdf237e0484a4fda118", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((t) => {
469
- const n = t, a = this.schedule[t];
470
- return i("div", { class: "availability-day" }, i("div", { class: "day", part: "nap__day" }, i("input", { type: "checkbox", name: n, id: n, checked: a.length > 0, onClick: () => {
471
- a.length > 0 ? this.schedule[n] = [] : this.schedule[n] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule };
472
- } }), i("label", { htmlFor: n, "aria-label": "Select day" }, n)), i("div", { class: "time-ranges", part: "nap__time-ranges" }, a.length ? null : i("span", { class: "unavailable" }, "Unavailable"), a.length > 0 && a.map((o, s) => {
473
- var h, p;
474
- const l = `${t}:${s}_start`, r = `${t}:${s}_end`;
475
- return i("div", { class: "time-range", part: "nap__time-range" }, i("div", { class: "pickers" }, i("nylas-time-window-picker", { id: l, hasError: (h = this.overlapDays[n]) == null ? void 0 : h.includes(s), time: o.start, name: l, key: l, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), i("span", null, " - "), i("nylas-time-window-picker", { id: r, hasError: (p = this.overlapDays[n]) == null ? void 0 : p.includes(s), time: o.end, name: r, key: r, minimumStartTime: o.start, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), i("button", { onClick: () => this.removeTimeRange(n, s) }, i("close-icon", null)));
476
- }), i("p", { class: "error" }, this.overlapDays[n] ? "Overlapping time ranges" : "")), i("div", null, a.length > 0 ? i("button", { onClick: () => this.addTimeRange(n), part: "nap__add-time-range" }, i("add-circle-icon", null)) : null));
353
+ return a(_, { key: "c032e8a3630fe918533895156285e4b37778d812" }, a("div", { key: "1582bd8c1f3ef09d793a7120dafb6c7d420c3e9a", class: "nylas-availability-picker" }, a("div", { key: "61f2c1de7921e15455d7b827379e7d4815f6fb13", class: "header", part: "nap__header" }, a("h3", { key: "238b0ab77477d06a62412fed051d5641924e46d4" }, "General availability"), a("p", { key: "81967b68c5077941a5bf3d055c9be9e41d4ae705" }, "Set your availability for scheduling meetings.")), a("div", { key: "f1da5a939c1459bd7e9833cf9a97add09d75a822", class: "content" }, a("div", { key: "71e2f859541bd4fb2a4485f3350db5d6bbf73b00", class: "select-timezone", part: "nap__select-timezone" }, a("h4", { key: "a136696a498fb1521d4d8d844b9b03e2e49ff93a", class: "sub-header" }, "Select timezone", a("span", { key: "52636e30a6dea12cb69d55bd258ed48837826c80", class: "icon" }, a("tooltip-component", { key: "9f0dbc8c234f3550e83bbce3226346981b764896" }, a("info-icon", { key: "a8f556694bd02b710c89242a3d3057de5b7b0612", slot: "tooltip-icon" }), a("span", { key: "a8a52dd9835c32becbae165fa972bf6be6e716fa", slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), a("select-dropdown", { key: "4800272cc24dcd24c82a4a89f24131c11e528d8c", name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: e.find((t) => t.value === this.defaultTimezone) }, a("span", { key: "8b072e23cd0130f203696f5c99baaad07b1bbb2e", slot: "select-icon" }, a("globe-icon", { key: "de4c7ef153bff887947d73ed458aa5de0786b576", width: "20", height: "20" })))), a("div", { key: "6234933a0307c253e33ad9242e06c71388ba7a0a", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((t) => {
354
+ const n = t, i = this.schedule[t];
355
+ return a("div", { class: "availability-day" }, a("div", { class: "day", part: "nap__day" }, a("input", { type: "checkbox", name: n, id: n, checked: i.length > 0, onClick: () => {
356
+ i.length > 0 ? this.schedule[n] = [] : this.schedule[n] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule };
357
+ } }), a("label", { htmlFor: n, "aria-label": "Select day" }, n)), a("div", { class: "time-ranges", part: "nap__time-ranges" }, i.length ? null : a("span", { class: "unavailable" }, "Unavailable"), i.length > 0 && i.map((l, s) => {
358
+ var h, f;
359
+ const o = `${t}:${s}_start`, r = `${t}:${s}_end`;
360
+ return a("div", { class: "time-range", part: "nap__time-range" }, a("div", { class: "pickers" }, a("nylas-time-window-picker", { id: o, hasError: (h = this.overlapDays[n]) == null ? void 0 : h.includes(s), time: l.start, name: o, key: o, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), a("span", null, " - "), a("nylas-time-window-picker", { id: r, hasError: (f = this.overlapDays[n]) == null ? void 0 : f.includes(s), time: l.end, name: r, key: r, minimumStartTime: l.start, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), a("button", { onClick: () => this.removeTimeRange(n, s) }, a("close-icon", null)));
361
+ }), a("p", { class: "error" }, this.overlapDays[n] ? "Overlapping time ranges" : "")), a("div", null, i.length > 0 ? a("button", { onClick: () => this.addTimeRange(n), part: "nap__add-time-range" }, a("add-circle-icon", null)) : null));
477
362
  })))));
478
363
  }
479
364
  static get formAssociated() {
480
365
  return !0;
481
366
  }
482
367
  get host() {
483
- return k(this);
368
+ return w(this);
484
369
  }
485
370
  static get watchers() {
486
371
  return {
@@ -490,33 +375,33 @@ const Oe = class {
490
375
  };
491
376
  }
492
377
  };
493
- kt([
378
+ Ct([
494
379
  C({
495
380
  name: "nylas-availability-picker",
496
381
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
497
382
  fireRegisterEvent: !0
498
383
  }),
499
- se("design:type", Function),
500
- se("design:paramtypes", []),
501
- se("design:returntype", void 0)
502
- ], Oe.prototype, "render", null);
503
- Oe.style = xt;
504
- const wt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', _t = wt;
505
- var Ct = function(e, t, n, a) {
506
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
384
+ oe("design:type", Function),
385
+ oe("design:paramtypes", []),
386
+ oe("design:returntype", void 0)
387
+ ], Ee.prototype, "render", null);
388
+ Ee.style = wt;
389
+ const Tt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', It = Tt;
390
+ var Dt = function(e, t, n, i) {
391
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
507
392
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
508
- s = Reflect.decorate(e, t, n, a);
393
+ s = Reflect.decorate(e, t, n, i);
509
394
  else
510
395
  for (var r = e.length - 1; r >= 0; r--)
511
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
512
- return o > 3 && s && Object.defineProperty(t, n, s), s;
513
- }, oe = function(e, t) {
396
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
397
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
398
+ }, re = function(e, t) {
514
399
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
515
400
  return Reflect.metadata(e, t);
516
401
  };
517
- const Te = class {
402
+ const $e = class {
518
403
  constructor(e) {
519
- m(this, e), this.valueChanged = w(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.name = "booking-calendar", this.defaultBookingCalendar = "", this.selectedCalendar = "";
404
+ b(this, e), this.valueChanged = k(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.name = "booking-calendar", this.defaultBookingCalendar = "", this.selectedCalendar = "";
520
405
  }
521
406
  connectedCallback() {
522
407
  d("nylas-booking-calendar-picker", "connectedCallback");
@@ -546,11 +431,11 @@ const Te = class {
546
431
  elementNameChangedHandler(e) {
547
432
  d("nylas-booking-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
548
433
  }
549
- selectedOptionChangedHandler(e) {
550
- d("nylas-booking-calendar-picker", "selectedOptionChangedHandler", e.detail);
434
+ nylasFormDropdownChangedHandler(e) {
435
+ d("nylas-booking-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
551
436
  const t = (n) => {
552
- const { value: a } = n.detail;
553
- this.selectedCalendar = a, this.internals.setFormValue(a.toString(), this.name);
437
+ const { value: i } = n.detail;
438
+ this.selectedCalendar = i, this.internals.setFormValue(i.toString(), this.name);
554
439
  };
555
440
  this.valueChanged.emit({ value: e.detail.value, name: this.name, valueChanged: t });
556
441
  }
@@ -560,13 +445,13 @@ const Te = class {
560
445
  value: n.id,
561
446
  label: n.name
562
447
  }))) ?? [];
563
- return i(_, null, i("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, i("div", { class: "header", part: "nbcp__header" }, i("h3", null, "Calendar booking"), i("p", null, "Choose calendar where you’d like the event bookings to show up.")), e.length > 0 ? i("div", { class: "nylas-booking-calendar-picker__dropdown" }, i("span", { class: "label", part: "nbcp__input-label" }, "Select a calendar to book meetings on", i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))), i("select-dropdown", { name: "booking-calendar", options: e, withSearch: !1, exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: e.find((n) => n.value == this.defaultBookingCalendar) ?? e[0] })) : i("div", { class: "nylas-booking-calendar-picker__loading" }, i("span", { class: "label" }, "Select a calendar to book meetings on ", i("info-icon", null)), i("div", { class: "loading-button" }, i("span", null, "Loading...")))));
448
+ return a(_, null, a("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, a("div", { class: "header", part: "nbcp__header" }, a("h3", null, "Calendar booking"), a("p", null, "Choose calendar where you’d like the event bookings to show up.")), e.length > 0 ? a("div", { class: "nylas-booking-calendar-picker__dropdown" }, a("span", { class: "label", part: "nbcp__input-label" }, "Select a calendar to book meetings on", a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))), a("select-dropdown", { name: "booking-calendar", options: e, withSearch: !1, exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: e.find((n) => n.value == this.defaultBookingCalendar) ?? e[0] })) : a("div", { class: "nylas-booking-calendar-picker__loading" }, a("span", { class: "label" }, "Select a calendar to book meetings on ", a("info-icon", null)), a("div", { class: "loading-button" }, a("span", null, "Loading...")))));
564
449
  }
565
450
  static get formAssociated() {
566
451
  return !0;
567
452
  }
568
453
  get host() {
569
- return k(this);
454
+ return w(this);
570
455
  }
571
456
  static get watchers() {
572
457
  return {
@@ -574,7 +459,7 @@ const Te = class {
574
459
  };
575
460
  }
576
461
  };
577
- Ct([
462
+ Dt([
578
463
  C({
579
464
  name: "nylas-booking-calendar-picker",
580
465
  stateToProps: /* @__PURE__ */ new Map([
@@ -589,27 +474,27 @@ Ct([
589
474
  },
590
475
  fireRegisterEvent: !0
591
476
  }),
592
- oe("design:type", Function),
593
- oe("design:paramtypes", []),
594
- oe("design:returntype", void 0)
595
- ], Te.prototype, "render", null);
596
- Te.style = _t;
597
- const Ot = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Tt = Ot;
598
- var It = function(e, t, n, a) {
599
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
477
+ re("design:type", Function),
478
+ re("design:paramtypes", []),
479
+ re("design:returntype", void 0)
480
+ ], $e.prototype, "render", null);
481
+ $e.style = It;
482
+ const St = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ot = St;
483
+ var Et = function(e, t, n, i) {
484
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
600
485
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
601
- s = Reflect.decorate(e, t, n, a);
486
+ s = Reflect.decorate(e, t, n, i);
602
487
  else
603
488
  for (var r = e.length - 1; r >= 0; r--)
604
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
605
- return o > 3 && s && Object.defineProperty(t, n, s), s;
606
- }, le = function(e, t) {
489
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
490
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
491
+ }, de = function(e, t) {
607
492
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
608
493
  return Reflect.metadata(e, t);
609
494
  };
610
- const Ie = class {
495
+ const He = class {
611
496
  constructor(e) {
612
- m(this, e), this.valueChanged = w(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 = "buffer-time", this.buffer = { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after;
497
+ b(this, e), this.valueChanged = k(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 = "buffer-time", this.buffer = { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after;
613
498
  }
614
499
  connectedCallback() {
615
500
  d("nylas-buffer-time", "connectedCallback");
@@ -645,11 +530,11 @@ const Ie = class {
645
530
  elementNameChangedHandler(e) {
646
531
  d("nylas-buffer-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
647
532
  }
648
- selectedOptionChangedHandler(e) {
649
- d("nylas-buffer-time", "selectedOptionChangedHandler", e.detail);
533
+ nylasFormDropdownChangedHandler(e) {
534
+ d("nylas-buffer-time", "nylasFormDropdownChangedHandler", e.detail);
650
535
  const t = (n) => {
651
- const { value: a, name: o } = n.detail;
652
- o === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(a) : o === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(a));
536
+ const { value: i, name: l } = n.detail;
537
+ l === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(i) : l === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(i));
653
538
  const s = {
654
539
  before: this.selectedBeforeBufferTime,
655
540
  after: this.selectedAfterBufferTime
@@ -659,50 +544,50 @@ const Ie = class {
659
544
  this.valueChanged.emit({ ...e.detail, valueChanged: t });
660
545
  }
661
546
  renderPreview() {
662
- const a = (l) => {
663
- const r = Math.floor(l / 30), h = l % 30 / 30 * 10;
547
+ const i = (o) => {
548
+ const r = Math.floor(o / 30), h = o % 30 / 30 * 10;
664
549
  return {
665
550
  fullSlots: r,
666
551
  partialFillHeight: h
667
552
  };
668
- }, o = () => {
669
- const { fullSlots: l, partialFillHeight: r } = a(this.selectedBeforeBufferTime);
670
- return Array.from({ length: 4 }, (h, p) => {
671
- const u = this.selectedBeforeBufferTime > 0 && p > 4 - l - 1, g = this.selectedBeforeBufferTime > 0 && p === 4 - l - 1 && r > 0;
553
+ }, l = () => {
554
+ const { fullSlots: o, partialFillHeight: r } = i(this.selectedBeforeBufferTime);
555
+ return Array.from({ length: 4 }, (h, f) => {
556
+ const u = this.selectedBeforeBufferTime > 0 && f > 4 - o - 1, g = this.selectedBeforeBufferTime > 0 && f === 4 - o - 1 && r > 0;
672
557
  let v = {};
673
- return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`), i("div", { key: p, class: `slot ${u ? "active" : ""}`, style: {
558
+ return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`), a("div", { key: f, class: `slot ${u ? "active" : ""}`, style: {
674
559
  height: "10px",
675
560
  ...v
676
561
  } });
677
562
  });
678
563
  }, s = () => {
679
- const { fullSlots: l, partialFillHeight: r } = a(this.selectedAfterBufferTime);
680
- return Array.from({ length: 4 }, (h, p) => {
681
- const u = this.selectedAfterBufferTime > 0 && p < l, g = p === l && r > 0;
564
+ const { fullSlots: o, partialFillHeight: r } = i(this.selectedAfterBufferTime);
565
+ return Array.from({ length: 4 }, (h, f) => {
566
+ const u = this.selectedAfterBufferTime > 0 && f < o, g = f === o && r > 0;
682
567
  let v = {};
683
- return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`), i("div", { key: p, class: `slot ${u ? "active" : ""}`, style: {
568
+ return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`), a("div", { key: f, class: `slot ${u ? "active" : ""}`, style: {
684
569
  height: "10px",
685
570
  ...v
686
571
  } });
687
572
  });
688
573
  };
689
- return i("div", { class: "preview-container" }, o(), i("div", { class: "event-slot", style: { height: "20px" } }), s());
574
+ return a("div", { class: "preview-container" }, l(), a("div", { class: "event-slot", style: { height: "20px" } }), s());
690
575
  }
691
576
  render() {
692
577
  const e = Array.from({ length: 25 }, (t, n) => {
693
- const a = n * 5;
578
+ const i = n * 5;
694
579
  return {
695
- label: a.toString(),
696
- value: a
580
+ label: i.toString(),
581
+ value: i
697
582
  };
698
583
  });
699
- return i(_, null, i("div", { class: "nylas-buffer-time", part: "nbt" }, i("div", { class: "header", part: "nbt__header" }, i("h3", null, "Buffer time"), i("p", null, "Add buffer time before and after the event.")), i("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, i("div", { class: "nylas-buffer-time__dropdown" }, i("div", { class: "nylas-buffer-time__row" }, i("label", null, "Before the event"), i("div", { class: "dropdown-container" }, i("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((t) => t.value == this.selectedBeforeBufferTime) ?? e[0] }), i("span", null, "mins"))), i("div", { class: "nylas-buffer-time__row" }, i("label", null, "After the event"), i("div", { class: "dropdown-container" }, i("select-dropdown", { id: "after-buffer-time", withSearch: !1, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: e, defaultSelectedOption: e.find((t) => t.value == this.selectedAfterBufferTime) ?? e[0] }), i("span", null, "mins")))), i("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, i("h4", null, "PREVIEW"), this.renderPreview()))));
584
+ return a(_, null, a("div", { class: "nylas-buffer-time", part: "nbt" }, a("div", { class: "header", part: "nbt__header" }, a("h3", null, "Buffer time"), a("p", null, "Add buffer time before and after the event.")), a("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, a("div", { class: "nylas-buffer-time__dropdown" }, a("div", { class: "nylas-buffer-time__row" }, a("label", null, "Before the event"), a("div", { class: "dropdown-container" }, a("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((t) => t.value == this.selectedBeforeBufferTime) ?? e[0] }), a("span", null, "mins"))), a("div", { class: "nylas-buffer-time__row" }, a("label", null, "After the event"), a("div", { class: "dropdown-container" }, a("select-dropdown", { id: "after-buffer-time", withSearch: !1, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: e, defaultSelectedOption: e.find((t) => t.value == this.selectedAfterBufferTime) ?? e[0] }), a("span", null, "mins")))), a("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, a("h4", null, "PREVIEW"), this.renderPreview()))));
700
585
  }
701
586
  static get formAssociated() {
702
587
  return !0;
703
588
  }
704
589
  get host() {
705
- return k(this);
590
+ return w(this);
706
591
  }
707
592
  static get watchers() {
708
593
  return {
@@ -710,7 +595,7 @@ const Ie = class {
710
595
  };
711
596
  }
712
597
  };
713
- It([
598
+ Et([
714
599
  C({
715
600
  name: "nylas-buffer-time",
716
601
  eventToProps: {
@@ -721,27 +606,27 @@ It([
721
606
  },
722
607
  fireRegisterEvent: !0
723
608
  }),
724
- le("design:type", Function),
725
- le("design:paramtypes", []),
726
- le("design:returntype", void 0)
727
- ], Ie.prototype, "render", null);
728
- Ie.style = Tt;
729
- const Dt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', St = Dt;
730
- var Et = function(e, t, n, a) {
731
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
609
+ de("design:type", Function),
610
+ de("design:paramtypes", []),
611
+ de("design:returntype", void 0)
612
+ ], He.prototype, "render", null);
613
+ He.style = Ot;
614
+ const $t = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ht = $t;
615
+ var Lt = function(e, t, n, i) {
616
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
732
617
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
733
- s = Reflect.decorate(e, t, n, a);
618
+ s = Reflect.decorate(e, t, n, i);
734
619
  else
735
620
  for (var r = e.length - 1; r >= 0; r--)
736
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
737
- return o > 3 && s && Object.defineProperty(t, n, s), s;
738
- }, re = function(e, t) {
621
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
622
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
623
+ }, ce = function(e, t) {
739
624
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
740
625
  return Reflect.metadata(e, t);
741
626
  };
742
- const De = class {
627
+ const Le = class {
743
628
  constructor(e) {
744
- m(this, e), this.valueChanged = w(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.name = "calendar", this.defaultSelectedCalendars = [], this.selectedCalendars = [];
629
+ b(this, e), this.valueChanged = k(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.name = "calendar", this.defaultSelectedCalendars = [], this.selectedCalendars = [];
745
630
  }
746
631
  elementNameChangedHandler(e) {
747
632
  d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -771,30 +656,30 @@ const De = class {
771
656
  d("nylas-calendar-picker", "componentDidRender");
772
657
  }
773
658
  selectedOptionsChangedHandler(e) {
774
- d("nylas-calendar-picker", "selectedOptionChangedHandler", e.detail);
659
+ d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
775
660
  const t = (n) => {
776
- const { value: a } = n.detail;
777
- this.selectedCalendars = [...a], this.internals.setFormValue(a.toString(), "calendar");
661
+ const { value: i } = n.detail;
662
+ this.selectedCalendars = [...i], this.internals.setFormValue(i.toString(), "calendar");
778
663
  };
779
664
  this.valueChanged.emit({ ...e.detail, name: this.name, valueChangedHandler: t });
780
665
  }
781
666
  render() {
782
667
  var t;
783
668
  const e = ((t = this.calendars) == null ? void 0 : t.map((n) => {
784
- var a, o, s, l;
669
+ var i, l, s, o;
785
670
  return {
786
671
  value: n.id,
787
672
  label: n.name,
788
- selected: ((a = this.defaultSelectedCalendars) == null ? void 0 : a.includes(n.id)) || ((o = this.defaultSelectedCalendars) != null && o.includes("primary") || ((s = this.defaultSelectedCalendars) == null ? void 0 : s.length) === 0 ? n.id === ((l = this.currentUser) == null ? void 0 : l.email) : !1)
673
+ selected: ((i = this.defaultSelectedCalendars) == null ? void 0 : i.includes(n.id)) || ((l = this.defaultSelectedCalendars) != null && l.includes("primary") || ((s = this.defaultSelectedCalendars) == null ? void 0 : s.length) === 0 ? n.id === ((o = this.currentUser) == null ? void 0 : o.email) : !1)
789
674
  };
790
675
  })) ?? [];
791
- return i(_, null, i("div", { class: "nylas-calendar-picker", part: "ncp" }, i("div", { class: "header", part: "ncp__header" }, i("h3", null, "Calendar availability"), i("p", null, "Select calendars that you’d like to use for checking your availability.")), e.length > 0 ? i("div", { class: "nylas-calendar-picker__dropdown" }, i("multi-select-dropdown", { name: "calendar", label: "Select calendars that will be checked for availability", options: e, exportparts: "msd__dropdown: ncp__dropdown, msd__dropdown-button: ncp__dropdown-button, msd__dropdown-content: ncp__dropdown-content" }, i("span", { slot: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))) : i("div", { class: "nylas-calendar-picker__loading" }, i("span", { class: "label" }, "Select calendars that will be checked for availability ", i("info-icon", null)), i("div", { class: "loading-button" }, i("span", null, "Loading...")))));
676
+ return a(_, null, a("div", { class: "nylas-calendar-picker", part: "ncp" }, a("div", { class: "header", part: "ncp__header" }, a("h3", null, "Calendar availability"), a("p", null, "Select calendars that you’d like to use for checking your availability.")), e.length > 0 ? a("div", { class: "nylas-calendar-picker__dropdown" }, a("multi-select-dropdown", { name: "calendar", label: "Select calendars that will be checked for availability", options: e, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content" }, a("span", { slot: "label-icon" }, a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))) : a("div", { class: "nylas-calendar-picker__loading" }, a("span", { class: "label" }, "Select calendars that will be checked for availability ", a("info-icon", null)), a("div", { class: "loading-button" }, a("span", null, "Loading...")))));
792
677
  }
793
678
  static get formAssociated() {
794
679
  return !0;
795
680
  }
796
681
  get host() {
797
- return k(this);
682
+ return w(this);
798
683
  }
799
684
  static get watchers() {
800
685
  return {
@@ -802,7 +687,7 @@ const De = class {
802
687
  };
803
688
  }
804
689
  };
805
- Et([
690
+ Lt([
806
691
  C({
807
692
  name: "nylas-calendar-picker",
808
693
  stateToProps: /* @__PURE__ */ new Map([
@@ -817,35 +702,206 @@ Et([
817
702
  },
818
703
  fireRegisterEvent: !0
819
704
  }),
820
- re("design:type", Function),
821
- re("design:paramtypes", []),
822
- re("design:returntype", void 0)
823
- ], De.prototype, "render", null);
824
- De.style = St;
825
- const Lt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}', $t = Lt;
826
- var Ht = function(e, t, n, a) {
827
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
705
+ ce("design:type", Function),
706
+ ce("design:paramtypes", []),
707
+ ce("design:returntype", void 0)
708
+ ], Le.prototype, "render", null);
709
+ Le.style = Ht;
710
+ const Mt = ':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}', At = Mt;
711
+ var Nt = function(e, t, n, i) {
712
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
828
713
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
829
- s = Reflect.decorate(e, t, n, a);
714
+ s = Reflect.decorate(e, t, n, i);
830
715
  else
831
716
  for (var r = e.length - 1; r >= 0; r--)
832
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
833
- return o > 3 && s && Object.defineProperty(t, n, s), s;
834
- }, de = function(e, t) {
717
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
718
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
719
+ }, fe = function(e, t) {
720
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
721
+ return Reflect.metadata(e, t);
722
+ };
723
+ const Me = class {
724
+ constructor(e) {
725
+ var t, n;
726
+ b(this, e), this.valueChanged = k(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 = this.cancellationPolicy || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.cancellation_policy) || "";
727
+ }
728
+ elementNameChangedHandler(e) {
729
+ d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
730
+ }
731
+ selectedConfigurationChangedHandler(e, t) {
732
+ var n, i;
733
+ d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.scheduler) != null && n.cancellation_policy && (this.message = (i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.cancellation_policy);
734
+ }
735
+ connectedCallback() {
736
+ d("nylas-cancellation-policy", "connectedCallback");
737
+ }
738
+ componentWillLoad() {
739
+ d("nylas-cancellation-policy", "componentWillLoad"), this.host.setAttribute("name", this.name);
740
+ }
741
+ componentDidLoad() {
742
+ d("nylas-cancellation-policy", "componentDidLoad");
743
+ }
744
+ disconnectedCallback() {
745
+ d("nylas-cancellation-policy", "disconnectedCallback");
746
+ }
747
+ handleChange(e) {
748
+ const t = V(e.target.value);
749
+ this.message = t, this.internals.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
750
+ }
751
+ render() {
752
+ return a(_, { key: "9ad194925cfb18c323d3f75aec51c4ac5ad67230" }, a("div", { key: "a4ae061a504a0cd6a91dd6dd23adcf7c3b8f43d5", class: "nylas-cancellation-policy", part: "ncpolicy" }, a("label", { key: "ea742ee8fba2e50a5694c210172e8783fa3d5e7b", htmlFor: this.name }, "Cancellation policy message", a("span", { key: "5c7143f8da100b650aa386c9fb895c3fd9ed2e04", class: "label-icon" }, a("tooltip-component", { key: "f46c7b94a1a58bd7162e5cfffc14a88b04a18a4c" }, a("info-icon", { key: "9d85ce578da1db7b080f3152b8fdb43834968829", slot: "tooltip-icon" }), a("span", { key: "0e4d0c4f98d1529179622c22fa6bf9d56d085ffb", slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), a("textarea", { key: "570404ef8450c4ef2bb28fad4d1c6359b735abae", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
753
+ }
754
+ static get formAssociated() {
755
+ return !0;
756
+ }
757
+ get host() {
758
+ return w(this);
759
+ }
760
+ static get watchers() {
761
+ return {
762
+ name: ["elementNameChangedHandler"],
763
+ selectedConfiguration: ["selectedConfigurationChangedHandler"]
764
+ };
765
+ }
766
+ };
767
+ Nt([
768
+ C({
769
+ name: "nylas-cancellation-policy",
770
+ stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
771
+ eventToProps: {},
772
+ fireRegisterEvent: !0
773
+ }),
774
+ fe("design:type", Function),
775
+ fe("design:paramtypes", []),
776
+ fe("design:returntype", void 0)
777
+ ], Me.prototype, "render", null);
778
+ Me.style = At;
779
+ const Ft = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Rt = Ft;
780
+ var Pt = function(e, t, n, i) {
781
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
782
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
783
+ s = Reflect.decorate(e, t, n, i);
784
+ else
785
+ for (var r = e.length - 1; r >= 0; r--)
786
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
787
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
788
+ }, pe = function(e, t) {
789
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
790
+ return Reflect.metadata(e, t);
791
+ };
792
+ const Ae = class {
793
+ constructor(e) {
794
+ var t, n, i, l, s, o;
795
+ b(this, e), this.valueChanged = k(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.defaultAdditionalGuestsHidden = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.additional_guests_hidden) ?? !1, this.defaultHideCancellationOptions = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : l.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((o = (s = this.selectedConfiguration) == null ? void 0 : s.scheduler) == null ? void 0 : o.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = this.defaultAdditionalGuestsHidden, this.hideCancellationOptions = this.defaultHideCancellationOptions, this.hideReschedulingOptions = this.defaultHideReschedulingOptions;
796
+ }
797
+ elementNameChangedHandler(e) {
798
+ d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
799
+ }
800
+ selectedConfigurationChangedHandler(e) {
801
+ var t, n, i;
802
+ d("nylas-customize-booking-settings", "selectedConfigurationChangedHandler", e), this.allowGuestsToInvite = !((t = e == null ? void 0 : e.scheduler) != null && t.additional_guests_hidden), this.hideCancellationOptions = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.hide_cancellation_options) ?? !1, this.hideReschedulingOptions = ((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.hide_rescheduling_options) ?? !1;
803
+ }
804
+ connectedCallback() {
805
+ d("nylas-customize-booking-settings", "connectedCallback");
806
+ }
807
+ disconnectedCallback() {
808
+ d("nylas-customize-booking-settings", "disconnectedCallback");
809
+ }
810
+ componentWillLoad() {
811
+ d("nylas-customize-booking-settings", "componentWillLoad"), this.host.setAttribute("name", this.name);
812
+ }
813
+ componentDidLoad() {
814
+ d("nylas-customize-booking-settings", "componentDidLoad");
815
+ }
816
+ componentWillUpdate() {
817
+ d("nylas-customize-booking-settings", "componentWillUpdate");
818
+ }
819
+ componentDidUpdate() {
820
+ d("nylas-customize-booking-settings", "componentDidUpdate");
821
+ }
822
+ componentWillRender() {
823
+ d("nylas-customize-booking-settings", "componentWillRender");
824
+ }
825
+ componentDidRender() {
826
+ d("nylas-customize-booking-settings", "componentDidRender");
827
+ }
828
+ checkboxToggledHandler(e) {
829
+ const { name: t, checked: n } = e.detail;
830
+ switch (t) {
831
+ case "additional_guests_hidden":
832
+ this.allowGuestsToInvite = n;
833
+ break;
834
+ case "hide_cancellation_options":
835
+ this.hideCancellationOptions = n;
836
+ break;
837
+ case "hide_rescheduling_options":
838
+ this.hideReschedulingOptions = n;
839
+ break;
840
+ }
841
+ this.valueChanged.emit({
842
+ value: JSON.stringify({
843
+ additionalGuestsHidden: !this.allowGuestsToInvite,
844
+ hideCancellationOptions: this.hideCancellationOptions,
845
+ hideReschedulingOptions: this.hideReschedulingOptions
846
+ }),
847
+ name: this.name
848
+ }), this.internals.setFormValue(JSON.stringify({
849
+ additionalGuestsHidden: !this.allowGuestsToInvite,
850
+ hideCancellationOptions: this.hideCancellationOptions,
851
+ hideReschedulingOptions: this.hideReschedulingOptions
852
+ }), this.name);
853
+ }
854
+ render() {
855
+ return a(_, { key: "992ccff7eab4869bf8b845713417b95e3389fd4e" }, a("div", { key: "b6ef35657d2bbad229988c0b49583230db54161f", class: "nylas-customize-booking-settings", part: "ncbs" }, a("div", { key: "ff4e03f5c0e9f7d0dae8e231aecc051e6c4c0e19", class: "header", part: "ncbs__header" }, a("h3", { key: "d2bec3aa510726cbf74972eb88adf5f138ba0b1e" }, "Additional settings"), a("p", { key: "d77ad0ca1cad6ee54fc7324732d54a8b4a3b8169" }, "Booking settings for the event.")), a("div", { key: "24e2811534d1ecf7fa8581e9fc55c34ceb3ef6d2", class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, a("div", { key: "61a22cc50cdc6e625d25c5970cf853e5dd8187ab", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, a("checkbox-component", { key: "79b6079f75f2fd1b1c850a29ab5b0c15a8ed7d18", name: "additional_guests_hidden", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, a("span", { key: "11955e5ef0d789692ccb6c4657eaa4c45da26706", slot: "label", class: "label" }, a("p", { key: "9b968109bbabf45eab71c2c44534983138f04f23", class: "label-contents" }, "Allow guests to invite additional guests to the booking."), a("tooltip-component", { key: "a07a91c34ae38dda51d598fb4468df21adb3f7be", id: "guests" }, a("info-icon", { key: "007977190eff2a79fe50de5f46b8fd51ce331cbe", slot: "tooltip-icon" }), a("span", { key: "10f385796d8872f4a2568192ec707268defe89e9", slot: "tooltip-content" }, "Allow guests to invite additional guests to the event. If enabled, the guest will be able to add additional guests' email addresses."))))), a("div", { key: "a134a6ac8b3908c6fa9c512ee110bcd577aac029", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, a("checkbox-component", { key: "5ad8ad1c3fb1c937335dd8e0d82a0dd3d5a635dd", name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, a("span", { key: "40c94ef2bf663ac961eb7aec4bc39691ac6b0818", slot: "label", class: "label" }, a("p", { key: "d3417ba815f5ab78e503ae6cf9fc7bffcc12d111", class: "label-contents" }, "Hide the ", a("strong", { key: "7b1c6e8327f76fa552ff9f285bb7d7e88d601a0b" }, "Reschedule"), " button on the Scheduling Page and in the email notifications."), a("tooltip-component", { key: "4c9acdacae74c069b6d9c4f2bab65f2f2a8bd3f7", id: "reschedule" }, a("info-icon", { key: "2a16cac01e270b0383377692de9ae13717a2d3d0", slot: "tooltip-icon" }), a("span", { key: "17b130ce1be45cce38f72450bc4e6f63aa0bad41", slot: "tooltip-content" }, "Hide the 'Reschedule' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to reschedule the booking."))))), a("div", { key: "1ab5fe25b44eae2f53b2018b6f68f14f1845cf77", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, a("checkbox-component", { key: "48502f280cdc6bd9dd4ddfd3b56ee91209b7dec5", name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, a("span", { key: "4a71756f70076e96ed5eb109f54b679f2267bf69", slot: "label", class: "label" }, a("p", { key: "838fdd1635b8f0ce3f3918adbdd70f516d0fa6bc", class: "label-contents" }, "Hide the ", a("strong", { key: "85529b0715b538ac7f783d599269bb47bcc5634c" }, "Cancel"), " button on the Scheduling Page and in the email notifications."), a("tooltip-component", { key: "748342d43b711d3e3dc28424fe404195c1857c38", id: "cancel" }, a("info-icon", { key: "96e121ef01d79273cd6d170271caadc0aab5e821", slot: "tooltip-icon" }), a("span", { key: "13c99611d0f63cda85aafaf09f29ae283bf52fd5", slot: "tooltip-content" }, "Hide the 'Cancel' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to cancel the booking."))))))));
856
+ }
857
+ static get formAssociated() {
858
+ return !0;
859
+ }
860
+ get host() {
861
+ return w(this);
862
+ }
863
+ static get watchers() {
864
+ return {
865
+ name: ["elementNameChangedHandler"],
866
+ selectedConfiguration: ["selectedConfigurationChangedHandler"]
867
+ };
868
+ }
869
+ };
870
+ Pt([
871
+ C({
872
+ name: "nylas-customize-booking-settings",
873
+ stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
874
+ fireRegisterEvent: !0
875
+ }),
876
+ pe("design:type", Function),
877
+ pe("design:paramtypes", []),
878
+ pe("design:returntype", void 0)
879
+ ], Ae.prototype, "render", null);
880
+ Ae.style = Rt;
881
+ const zt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}', jt = zt;
882
+ var Bt = function(e, t, n, i) {
883
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
884
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
885
+ s = Reflect.decorate(e, t, n, i);
886
+ else
887
+ for (var r = e.length - 1; r >= 0; r--)
888
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
889
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
890
+ }, ue = function(e, t) {
835
891
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
836
892
  return Reflect.metadata(e, t);
837
893
  };
838
- const Se = class {
894
+ const Ne = class {
839
895
  constructor(e) {
840
896
  var t, n;
841
- m(this, e), this.valueChanged = w(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 || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description) || "";
897
+ b(this, e), this.valueChanged = k(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 || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description) || "";
842
898
  }
843
899
  elementNameChangedHandler(e) {
844
900
  d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
845
901
  }
846
902
  selectedConfigurationChangedHandler(e, t) {
847
- var n, a;
848
- d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.event_booking) != null && n.description && (this.description = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.description);
903
+ var n, i;
904
+ d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.event_booking) != null && n.description && (this.description = (i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.description);
849
905
  }
850
906
  connectedCallback() {
851
907
  d("nylas-event-description", "connectedCallback");
@@ -860,17 +916,17 @@ const Se = class {
860
916
  d("nylas-event-description", "disconnectedCallback");
861
917
  }
862
918
  handleChange(e) {
863
- const t = ye(e.target.value);
919
+ const t = V(e.target.value);
864
920
  this.description = t, this.internals.setFormValue(t, "description"), this.valueChanged.emit({ value: t, name: this.name });
865
921
  }
866
922
  render() {
867
- return i(_, { key: "66d2eae749fd438176c41cc4cb73e76025d1f224" }, i("div", { key: "aa8302861fb0c900b290aafcee5d07d1a04af7f5", class: "nylas-event-description", part: "nedesc" }, i("label", { key: "c0f2b80af2ae8219b8cf977e4145d3a58c1ae38d", htmlFor: "description" }, "Event description", i("span", { key: "e7ec771fc84b256a3511cb6e4238fd4fb13e9c37", class: "label-icon" }, i("tooltip-component", { key: "5b1a43fd9ba2a50f37f5b4c36233fbc14873ed02" }, i("info-icon", { key: "5ff39c03142fbd56e842298fb268bcf3b157fb70", slot: "tooltip-icon" }), i("span", { key: "3e5d6cd7e616f84fb58bacfcd4bf68da52798010", slot: "tooltip-content" }, "Provide any additional details for your event.")))), i("textarea", { key: "19f0e318d74d28a9ddc0a4401b05f49650fffd2b", id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: (e) => this.handleChange(e) })));
923
+ return a(_, { key: "ba8fe981702f13ac0b8132bc13fc6fea56500a62" }, a("div", { key: "41ab7f418a4878f7e9322564f77fe1008f048090", class: "nylas-event-description", part: "nedesc" }, a("label", { key: "8dd6e3fc10d8a360606b53eef4b7c596df082167", htmlFor: "description" }, "Event description", a("span", { key: "1533f26a880a136a76ad6bacb33b9cbf3895b35e", class: "label-icon" }, a("tooltip-component", { key: "f378fa630e3a8c80a5423c5086ff8ed3d0baa50b" }, a("info-icon", { key: "e343fc186b270f6c7eb9c38bf1ea04dbb7de7d6e", slot: "tooltip-icon" }), a("span", { key: "fb397590af111cac95805c50b96e22ebf3a3836e", slot: "tooltip-content" }, "Provide any additional details for your event.")))), a("textarea", { key: "650ab0c3162ad8fda2d3b0dfa9870bdc1aa700e6", id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: (e) => this.handleChange(e) })));
868
924
  }
869
925
  static get formAssociated() {
870
926
  return !0;
871
927
  }
872
928
  get host() {
873
- return k(this);
929
+ return w(this);
874
930
  }
875
931
  static get watchers() {
876
932
  return {
@@ -879,34 +935,34 @@ const Se = class {
879
935
  };
880
936
  }
881
937
  };
882
- Ht([
938
+ Bt([
883
939
  C({
884
940
  name: "nylas-event-description",
885
941
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
886
942
  eventToProps: {},
887
943
  fireRegisterEvent: !0
888
944
  }),
889
- de("design:type", Function),
890
- de("design:paramtypes", []),
891
- de("design:returntype", void 0)
892
- ], Se.prototype, "render", null);
893
- Se.style = $t;
894
- const At = ':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:12px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}', Mt = At;
895
- var Ft = function(e, t, n, a) {
896
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
945
+ ue("design:type", Function),
946
+ ue("design:paramtypes", []),
947
+ ue("design:returntype", void 0)
948
+ ], Ne.prototype, "render", null);
949
+ Ne.style = jt;
950
+ const Wt = ':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)}', Ut = Wt;
951
+ var Zt = function(e, t, n, i) {
952
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
897
953
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
898
- s = Reflect.decorate(e, t, n, a);
954
+ s = Reflect.decorate(e, t, n, i);
899
955
  else
900
956
  for (var r = e.length - 1; r >= 0; r--)
901
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
902
- return o > 3 && s && Object.defineProperty(t, n, s), s;
903
- }, ce = function(e, t) {
957
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
958
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
959
+ }, he = function(e, t) {
904
960
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
905
961
  return Reflect.metadata(e, t);
906
962
  };
907
- const Ee = class {
963
+ const Fe = class {
908
964
  constructor(e) {
909
- m(this, e), this.valueChanged = w(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 : 5, this.durationMinutes = this.eventDurationMinutes ?? 5, this.durationIncrement = this.eventDurationMinutes && this.eventDurationMinutes >= 60 ? 60 : 1, this.durationMinutesOptions = [
965
+ b(this, e), this.valueChanged = k(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 = this.eventDurationMinutes ?? 30, this.durationIncrement = this.eventDurationMinutes && this.eventDurationMinutes >= 60 ? 60 : 1, this.durationMinutesOptions = [
910
966
  { value: 15, label: "15" },
911
967
  { value: 30, label: "30" },
912
968
  { value: 45, label: "45" },
@@ -919,7 +975,7 @@ const Ee = class {
919
975
  selectedConfigurationChangedHandler(e) {
920
976
  var n;
921
977
  const t = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.duration_minutes;
922
- t && (this.duration = t >= 60 ? t / 60 : t, this.durationMinutes = t ?? 5, this.durationIncrement = t >= 60 ? 60 : 1);
978
+ t && (this.duration = t >= 60 ? t / 60 : t, this.durationMinutes = t ?? 30, this.durationIncrement = t >= 60 ? 60 : 1);
923
979
  }
924
980
  durationMinutesChangedHandler(e, t) {
925
981
  d("nylas-event-duration", "durationMinutesChangedHandler", e), e !== t && this.valueChanged.emit({ value: e.toString(), name: this.name });
@@ -947,16 +1003,13 @@ const Ee = class {
947
1003
  handleChange(e) {
948
1004
  this.duration = e.target.value, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
949
1005
  }
950
- handleBlur() {
951
- (this.duration === null || this.duration === void 0) && this.durationIncrement === 1 && (this.duration = 5), (this.duration <= 0 || this.duration === null || this.duration === void 0) && this.durationIncrement === 60 && (this.duration = 1), this.duration < 5 && this.durationIncrement === 1 && (this.duration = 5), this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), "duration");
952
- }
953
- selectedOptionChangedHandler(e) {
954
- d("nylas-calendar-picker", "selectedOptionChangedHandler", e.detail);
1006
+ nylasFormDropdownChangedHandler(e) {
1007
+ d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
955
1008
  const { value: t } = e.detail;
956
1009
  this.durationIncrement = parseInt(t), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), "duration");
957
1010
  }
958
1011
  inputOptionChangedHandler(e) {
959
- d("nylas-calendar-picker", "selectedOptionChangedHandler", e.detail);
1012
+ d("nylas-calendar-picker", "inputOptionChangedHandler", e.detail);
960
1013
  const { value: t } = e.detail;
961
1014
  this.duration = t, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
962
1015
  }
@@ -965,13 +1018,13 @@ const Ee = class {
965
1018
  { value: 1, label: "minute" },
966
1019
  { value: 60, label: "hour" }
967
1020
  ];
968
- return i(_, { key: "cd39f094761b20d6a016000f634fec1ba3f446be" }, i("div", { key: "52aa0d5d51d18d00604c7598c1ffefc195cbee26", class: "nylas-event-duration", part: "ned" }, i("label", { key: "4e438e990324d88976a13040c871aece2993166d", htmlFor: "duration" }, "Event duration", i("span", { key: "0e96a062a5a5e18f03cd523dce3e18f0c005eb03", class: "required" }, "*"), i("span", { key: "82003caed486495486b5bc56f67801945a9934fb", class: "label-icon" }, i("tooltip-component", { key: "9b4d29ecbc50f8109393ac271d66721dafd50f44" }, i("info-icon", { key: "d7f9af86af78cae824979fb1f03f21288db5b422", slot: "tooltip-icon" }), i("span", { key: "eff1616d15bb219e15c4e0b6f4993cfe9e4e6c05", slot: "tooltip-content" }, "Set the duration of your event.")))), i("div", { key: "1358e1bf2501523f922a029068719265291fec6d", class: "nylas-event-duration__wrapper" }, i("input-dropdown", { key: "8504905b8582540587567751f9376cfb1df98b32", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id__dropdown: ned__input_dropdown, id__dropdown-input: ned__input_dropdown-input, id__dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((t) => t.value == this.duration) ?? e[0] }), i("select-dropdown", { key: "007a4f7fba5419b4376b55e59e433f2a4a17b482", name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? "s" : "", exportparts: "sd__dropdown: ned__dropdown, sd__dropdown-button: ned__dropdown-button, sd__dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((t) => t.value == this.durationIncrement) ?? e[0], withSearch: !1 }))));
1021
+ return a(_, { key: "69f81ffd2ca891c9c4681ac03e28091c52db815d" }, a("div", { key: "0f2f55279a060023ee3d0996e255075821c0eaf8", class: "nylas-event-duration", part: "ned" }, a("label", { key: "034772be3a25547f190ea70575e07f356aec1268", htmlFor: "duration" }, "Event duration", a("span", { key: "b3bbb769c229d9de4da23b330c6801093ec70ffe", class: "required" }, "*"), a("span", { key: "f62a2f5e762073f5dea8be87948fc75cc398c2cf", class: "label-icon" }, a("tooltip-component", { key: "73fa017a9c54ee8b38c5d9ebecffeb247bb94e1a" }, a("info-icon", { key: "662f790d63babba084ffb7b3d2c1d6ad57872444", slot: "tooltip-icon" }), a("span", { key: "71e2c2816bde5eef547f8004858c10809a3d9fc8", slot: "tooltip-content" }, "Set the duration of your event.")))), a("div", { key: "491c79e0a0ff84aa3421c084bbe0370fe3fae874", class: "nylas-event-duration__wrapper" }, a("input-dropdown", { key: "de21d1aa7aa5dffd80c73bd27860b4a8949e54d6", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((t) => t.value == this.duration) ?? e[0] }), a("select-dropdown", { key: "8ecfa42bb8d7065750b80a523e051aede990237e", name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? "s" : "", exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((t) => t.value == this.durationIncrement) ?? e[0], withSearch: !1 }))));
969
1022
  }
970
1023
  static get formAssociated() {
971
1024
  return !0;
972
1025
  }
973
1026
  get host() {
974
- return k(this);
1027
+ return w(this);
975
1028
  }
976
1029
  static get watchers() {
977
1030
  return {
@@ -981,34 +1034,34 @@ const Ee = class {
981
1034
  };
982
1035
  }
983
1036
  };
984
- Ft([
1037
+ Zt([
985
1038
  C({
986
1039
  name: "nylas-event-duration",
987
1040
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
988
1041
  eventToProps: {},
989
1042
  fireRegisterEvent: !0
990
1043
  }),
991
- ce("design:type", Function),
992
- ce("design:paramtypes", []),
993
- ce("design:returntype", void 0)
994
- ], Ee.prototype, "render", null);
995
- Ee.style = Mt;
996
- const Nt = ':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}', Rt = Nt;
997
- var Pt = function(e, t, n, a) {
998
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1044
+ he("design:type", Function),
1045
+ he("design:paramtypes", []),
1046
+ he("design:returntype", void 0)
1047
+ ], Fe.prototype, "render", null);
1048
+ Fe.style = Ut;
1049
+ const Yt = ':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}', Gt = Yt;
1050
+ var Kt = function(e, t, n, i) {
1051
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
999
1052
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1000
- s = Reflect.decorate(e, t, n, a);
1053
+ s = Reflect.decorate(e, t, n, i);
1001
1054
  else
1002
1055
  for (var r = e.length - 1; r >= 0; r--)
1003
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1004
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1005
- }, pe = function(e, t) {
1056
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1057
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1058
+ }, be = function(e, t) {
1006
1059
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1007
1060
  return Reflect.metadata(e, t);
1008
1061
  };
1009
- const Le = class {
1062
+ const Re = class {
1010
1063
  constructor(e) {
1011
- m(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
1064
+ b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
1012
1065
  }
1013
1066
  connectedCallback() {
1014
1067
  d("nylas-event-info", "connectedCallback");
@@ -1017,48 +1070,48 @@ const Le = class {
1017
1070
  d("nylas-event-info", "componentWillLoad");
1018
1071
  }
1019
1072
  componentDidLoad() {
1020
- d("nylas-event-info", "componentDidLoad"), Ce(["inputs"], this.el);
1073
+ d("nylas-event-info", "componentDidLoad"), Oe(["inputs"], this.el);
1021
1074
  }
1022
1075
  disconnectedCallback() {
1023
1076
  d("nylas-event-info", "disconnectedCallback");
1024
1077
  }
1025
1078
  render() {
1026
- return i(_, { key: "3d50d24894f959b4f3934d3a9d0c8f22426bbf52" }, i("nylas-form-card", { key: "b4fe6f96328e630aa619b75cbc0119ae2f108e91" }, i("h1", { key: "7cd07abb0cfd695c073149c22754f3233bc3b9c7", slot: "header-title", class: "nylas-event-info__title" }, "Event information"), i("h3", { key: "bc6e7420df55ba180419716ea0f1fd8f3eeab2b8", slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), i("div", { key: "56040379502ac4aa71abcaa9bdfe8424e3097742", slot: "content", class: "nylas-event-info__content" }, i("slot", { key: "b94d1ec6b04e50a78445b7046be9c1f34d4f7c5e", name: "inputs" }))));
1079
+ return a(_, { key: "311ce4cda7377b94f12a98ff6a3318697762f6f0" }, a("nylas-form-card", { key: "99e5490667e83818242ae24863e5cdd94b39b0fa" }, a("h1", { key: "f8c0f0cc5c330fac2b2f17e46be32ea4f3cc0b4b", slot: "header-title", class: "nylas-event-info__title" }, "Event information"), a("h3", { key: "637d443ca5851d7038acf20425c7fc969543951d", slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), a("div", { key: "aa0c51b31eeda0ba4b2c0090ed8367d139ea447b", slot: "content", class: "nylas-event-info__content" }, a("slot", { key: "95cf051184160aa802d89fc395bf914df09412e9", name: "inputs" }))));
1027
1080
  }
1028
1081
  static get formAssociated() {
1029
1082
  return !0;
1030
1083
  }
1031
1084
  get el() {
1032
- return k(this);
1085
+ return w(this);
1033
1086
  }
1034
1087
  };
1035
- Pt([
1088
+ Kt([
1036
1089
  C({
1037
1090
  name: "nylas-event-info",
1038
1091
  eventToProps: {},
1039
1092
  fireRegisterEvent: !0
1040
1093
  }),
1041
- pe("design:type", Function),
1042
- pe("design:paramtypes", []),
1043
- pe("design:returntype", void 0)
1044
- ], Le.prototype, "render", null);
1045
- Le.style = Rt;
1046
- const zt = ':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}', Bt = zt;
1047
- var jt = function(e, t, n, a) {
1048
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1094
+ be("design:type", Function),
1095
+ be("design:paramtypes", []),
1096
+ be("design:returntype", void 0)
1097
+ ], Re.prototype, "render", null);
1098
+ Re.style = Gt;
1099
+ const Jt = ':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}', qt = Jt;
1100
+ var Vt = function(e, t, n, i) {
1101
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1049
1102
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1050
- s = Reflect.decorate(e, t, n, a);
1103
+ s = Reflect.decorate(e, t, n, i);
1051
1104
  else
1052
1105
  for (var r = e.length - 1; r >= 0; r--)
1053
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1054
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1055
- }, fe = function(e, t) {
1106
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1107
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1108
+ }, me = function(e, t) {
1056
1109
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1057
1110
  return Reflect.metadata(e, t);
1058
1111
  };
1059
- const $e = class {
1112
+ const Pe = class {
1060
1113
  constructor(e) {
1061
- m(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
1114
+ b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
1062
1115
  }
1063
1116
  connectedCallback() {
1064
1117
  d("nylas-event-limits", "connectedCallback");
@@ -1067,56 +1120,56 @@ const $e = class {
1067
1120
  d("nylas-event-limits", "componentWillLoad");
1068
1121
  }
1069
1122
  componentDidLoad() {
1070
- d("nylas-event-limits", "componentDidLoad"), Ce(["inputs"], this.el);
1123
+ d("nylas-event-limits", "componentDidLoad"), Oe(["inputs"], this.el);
1071
1124
  }
1072
1125
  disconnectedCallback() {
1073
1126
  d("nylas-event-limits", "disconnectedCallback");
1074
1127
  }
1075
1128
  render() {
1076
- return i(_, { key: "30d78f51d8e6e0c358bda5a8721002e19f539987" }, i("nylas-form-card", { key: "708cb09606a7452155d75328fa6b4102edc589f8" }, i("h1", { key: "2bad4fda79ad5721e33c56b023444dde14c24cac", slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), i("h3", { key: "b11865bd252ab95e2ee76b1a442ade752f41862b", slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), i("div", { key: "2987c4d4b8de461f61834cae0b21be88364a2183", slot: "content", class: "nylas-event-limits__content" }, i("slot", { key: "b80a2429328f103dfa5546a0266f03e0df3520d5", name: "inputs" }))));
1129
+ return a(_, { key: "6bfa0e29afa1529eb445b68339a658e4d7c8a6be" }, a("nylas-form-card", { key: "eda419f6f0f7bb8dfd2ebdb0a13c0a8c650190eb" }, a("h1", { key: "ea2c9af0d66665f25dcbb9c4c152bf159ceb4169", slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), a("h3", { key: "b600fd0b690bab256fde199b373913d9009be9bf", slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), a("div", { key: "72b24085107528833d406802b206eed3719bb358", slot: "content", class: "nylas-event-limits__content" }, a("slot", { key: "74a09fd8044065a2f52ef5abaeef0ba80f38f17b", name: "inputs" }))));
1077
1130
  }
1078
1131
  static get formAssociated() {
1079
1132
  return !0;
1080
1133
  }
1081
1134
  get el() {
1082
- return k(this);
1135
+ return w(this);
1083
1136
  }
1084
1137
  };
1085
- jt([
1138
+ Vt([
1086
1139
  C({
1087
1140
  name: "nylas-event-limits",
1088
1141
  eventToProps: {},
1089
1142
  fireRegisterEvent: !0
1090
1143
  }),
1091
- fe("design:type", Function),
1092
- fe("design:paramtypes", []),
1093
- fe("design:returntype", void 0)
1094
- ], $e.prototype, "render", null);
1095
- $e.style = Bt;
1096
- const Wt = ':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}', Ut = Wt;
1097
- var Kt = function(e, t, n, a) {
1098
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1144
+ me("design:type", Function),
1145
+ me("design:paramtypes", []),
1146
+ me("design:returntype", void 0)
1147
+ ], Pe.prototype, "render", null);
1148
+ Pe.style = qt;
1149
+ const Qt = ':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}', Xt = Qt;
1150
+ var en = function(e, t, n, i) {
1151
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1099
1152
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1100
- s = Reflect.decorate(e, t, n, a);
1153
+ s = Reflect.decorate(e, t, n, i);
1101
1154
  else
1102
1155
  for (var r = e.length - 1; r >= 0; r--)
1103
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1104
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1105
- }, ue = function(e, t) {
1156
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1157
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1158
+ }, ye = function(e, t) {
1106
1159
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1107
1160
  return Reflect.metadata(e, t);
1108
1161
  };
1109
- const He = class {
1162
+ const ze = class {
1110
1163
  constructor(e) {
1111
- m(this, e), this.valueChanged = w(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.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.selectedLocationOption = this.eventLocation ? "custom" : "none";
1164
+ b(this, e), this.valueChanged = k(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.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.selectedLocationOption = this.eventLocation ? "custom" : "none";
1112
1165
  }
1113
1166
  elementNameChangedHandler(e) {
1114
1167
  d("nylas-event-location", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
1115
1168
  }
1116
1169
  selectedConfigurationChangedHandler(e, t) {
1117
- var a;
1170
+ var i;
1118
1171
  d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t);
1119
- const n = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.location;
1172
+ const n = (i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.location;
1120
1173
  n && (this.selectedLocationOption = n ? "custom" : "none", this.location = n);
1121
1174
  }
1122
1175
  eventLocationChangedHandler(e, t) {
@@ -1134,14 +1187,14 @@ const He = class {
1134
1187
  disconnectedCallback() {
1135
1188
  d("nylas-event-location", "disconnectedCallback");
1136
1189
  }
1137
- selectedOptionChangedHandler(e) {
1190
+ nylasFormDropdownChangedHandler(e) {
1138
1191
  this.selectedLocationOption = e.detail.value, this.selectedLocationOption === "none" && (this.location = "", this.setFormValue("", "location"), this.valueChanged.emit({ value: "", name: this.name }));
1139
1192
  }
1140
1193
  setFormValue(e, t) {
1141
1194
  typeof this.internals.setFormValue == "function" && this.internals.setFormValue(e, t);
1142
1195
  }
1143
1196
  handleChange(e) {
1144
- const t = ye(e.target.value);
1197
+ const t = V(e.target.value);
1145
1198
  this.location = t, this.setFormValue(t, "location"), this.valueChanged.emit({ value: t, name: this.name });
1146
1199
  }
1147
1200
  render() {
@@ -1149,16 +1202,16 @@ const He = class {
1149
1202
  { value: "none", label: "None" },
1150
1203
  { value: "custom", label: "Custom location" }
1151
1204
  ], t = {
1152
- none: i("location-off-icon", { key: "68f24ab2ac9c92610c37e8cb8f7fb675eb34e1c0" }),
1153
- custom: i("location-icon", { key: "b82dae045728e7e5f3a4d5f681b8100addbd86d1" })
1205
+ none: a("location-off-icon", { key: "f9a254f862acd3c1b8a24b7efe0069f232bd9f51" }),
1206
+ custom: a("location-icon", { key: "641cfced66068f659d7d6db3b88a11314d9cacf6" })
1154
1207
  };
1155
- return i(_, { key: "663ce6f8f67b42528ec804c90223eb01a9ac8078" }, i("div", { key: "8df5d3d4259312db798aa8d6729c3607dcedce47", class: "nylas-event-location", part: "nel" }, i("label", { key: "8c7422b7bbf5e69ca105a97c91c6e77cfc2c960a", htmlFor: "location" }, "Location type", i("span", { key: "d4dd5b670091bb4d73b0c8f856a9ef97aa6bbac9", class: "label-icon" }, i("tooltip-component", { key: "f3f8db4880f00b8031d161af989a9f0d8357325e" }, i("info-icon", { key: "c0ebef1e813376a9e90fa2722a6b4f411ce9f60a", slot: "tooltip-icon" }), i("span", { key: "78071f01cfe674c444b65d5115d7b69e213abb02", slot: "tooltip-content" }, "Choose how you’ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), i("div", { key: "1e7fde8848028a53f862ab19d6417f7d756fac9e", class: "location-input" }, i("select-dropdown", { key: "44b0db28ee7c153cdfd918219128cdf569b24e5e", withSearch: !1, name: "location", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedLocationOption), exportparts: "sd__dropdown: nel__dropdown, sd__dropdown-button: nel__dropdown-button, sd__dropdown-content: nel__dropdown-content" }, i("span", { key: "19010ea6e4ca8981884600373344742569d29d35", slot: "select-icon" }, t[this.selectedLocationOption])), this.selectedLocationOption === "custom" && i("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
1208
+ return a(_, { key: "9e86c85ff957ac4d8192350e61bc66dfb7d8f764" }, a("div", { key: "a51752993c346200236187f906caa0629be50e88", class: "nylas-event-location", part: "nel" }, a("label", { key: "53cb18b0acd1a46b4be9a49f88a2786e7832d761", htmlFor: "location" }, "Location type", a("span", { key: "2b2debd710387758562de5833b5160f1d3a18481", class: "label-icon" }, a("tooltip-component", { key: "237da0e3bbfae495fd865d99e8f1e1ef68ae027e" }, a("info-icon", { key: "5f23b94c2bbe0f3ddd3870aeb69cee2f75b0bd28", slot: "tooltip-icon" }), a("span", { key: "b1ed166875a24ce4bcfbc808c26d0042b74f73f3", slot: "tooltip-content" }, "Choose how you’ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), a("div", { key: "316411158feced50b61ce97014ffa0ba7c4400e8", class: "location-input" }, a("select-dropdown", { key: "cc6bdbca81e738f43dfb37b7dc66f06ac338dc40", withSearch: !1, name: "location", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, a("span", { key: "faacafdffda95071ee9304ac0e4c0125dc31c123", slot: "select-icon" }, t[this.selectedLocationOption])), this.selectedLocationOption === "custom" && a("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
1156
1209
  }
1157
1210
  static get formAssociated() {
1158
1211
  return !0;
1159
1212
  }
1160
1213
  get host() {
1161
- return k(this);
1214
+ return w(this);
1162
1215
  }
1163
1216
  static get watchers() {
1164
1217
  return {
@@ -1168,38 +1221,38 @@ const He = class {
1168
1221
  };
1169
1222
  }
1170
1223
  };
1171
- Kt([
1224
+ en([
1172
1225
  C({
1173
1226
  name: "nylas-event-location",
1174
1227
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
1175
1228
  eventToProps: {},
1176
1229
  fireRegisterEvent: !0
1177
1230
  }),
1178
- ue("design:type", Function),
1179
- ue("design:paramtypes", []),
1180
- ue("design:returntype", void 0)
1181
- ], He.prototype, "render", null);
1182
- He.style = Ut;
1183
- const Zt = ':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);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{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)}', Yt = Zt;
1184
- var Vt = function(e, t, n, a) {
1185
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1231
+ ye("design:type", Function),
1232
+ ye("design:paramtypes", []),
1233
+ ye("design:returntype", void 0)
1234
+ ], ze.prototype, "render", null);
1235
+ ze.style = Xt;
1236
+ const tn = ':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);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{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)}', nn = tn;
1237
+ var an = function(e, t, n, i) {
1238
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1186
1239
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1187
- s = Reflect.decorate(e, t, n, a);
1240
+ s = Reflect.decorate(e, t, n, i);
1188
1241
  else
1189
1242
  for (var r = e.length - 1; r >= 0; r--)
1190
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1191
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1192
- }, he = function(e, t) {
1243
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1244
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1245
+ }, ge = function(e, t) {
1193
1246
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1194
1247
  return Reflect.metadata(e, t);
1195
1248
  };
1196
- const Ae = class {
1249
+ const je = class {
1197
1250
  constructor(e) {
1198
1251
  var t, n;
1199
- m(this, e), this.valueChanged = w(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 = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.showTokens = !1, this.availableTokens = _e.map((a) => ({
1200
- label: a.token,
1201
- value: a.value,
1202
- labelHTML: a
1252
+ b(this, e), this.valueChanged = k(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 = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.showTokens = !1, this.availableTokens = Se.map((i) => ({
1253
+ label: i.token,
1254
+ value: i.value,
1255
+ labelHTML: i
1203
1256
  })), this.filteredTokens = this.availableTokens, this.ariaActivedescendant = "", this.currentWord = { $value: "", fullText: "", index: -1, focusOffset: -1 }, this.validationError = "";
1204
1257
  }
1205
1258
  elementNameChangedHandler(e) {
@@ -1208,11 +1261,11 @@ const Ae = class {
1208
1261
  ariaActivedescendantChangedHandler(e) {
1209
1262
  var t, n;
1210
1263
  if (d("nylas-event-title", "ariaActivedescendantChangedHandler", e), e !== "") {
1211
- const a = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(e);
1212
- a == null || a.classList.add("active");
1264
+ const i = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(e);
1265
+ i == null || i.classList.add("active");
1213
1266
  } else {
1214
- const a = (n = this.host.shadowRoot) == null ? void 0 : n.querySelectorAll(".token-options li.active");
1215
- a == null || a.forEach((o) => o.classList.remove("active"));
1267
+ const i = (n = this.host.shadowRoot) == null ? void 0 : n.querySelectorAll(".token-options li.active");
1268
+ i == null || i.forEach((l) => l.classList.remove("active"));
1216
1269
  }
1217
1270
  }
1218
1271
  configChangedHandler(e) {
@@ -1242,81 +1295,81 @@ const Ae = class {
1242
1295
  }
1243
1296
  highlightTokens(e) {
1244
1297
  let t = e;
1245
- return _e.forEach((n) => {
1246
- const a = n.value, o = new RegExp(`(\\${a})(?!\\w)`, "g");
1247
- t = t.replace(o, '<span class="highlighted-tag">$1</span>');
1298
+ return Se.forEach((n) => {
1299
+ const i = n.value, l = new RegExp(`(\\${i})(?!\\w)`, "g");
1300
+ t = t.replace(l, '<span class="highlighted-tag">$1</span>');
1248
1301
  }), t;
1249
1302
  }
1250
1303
  getCurrentSelectionForBrowser() {
1251
- var a, o, s;
1252
- const e = (l, r, h, p) => {
1253
- const u = l.replace(/[\u200B-\u200D\uFEFF]/g, ""), g = u.lastIndexOf("$"), v = u.substring(g).split(" ")[0];
1304
+ var i, l, s;
1305
+ const e = (o, r, h, f) => {
1306
+ const u = o.replace(/[\u200B-\u200D\uFEFF]/g, ""), g = u.lastIndexOf("$"), v = u.substring(g).split(" ")[0];
1254
1307
  return {
1255
1308
  focusOffset: r,
1256
1309
  dollarIndex: g,
1257
1310
  lastWord: v,
1258
1311
  currentText: u,
1259
1312
  node: h,
1260
- allSelected: p
1313
+ allSelected: f
1261
1314
  };
1262
- }, t = (l) => {
1315
+ }, t = (o) => {
1263
1316
  var r, h;
1264
- return l.anchorOffset === 0 && l.focusOffset === ((h = (r = l.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : h.length);
1317
+ return o.anchorOffset === 0 && o.focusOffset === ((h = (r = o.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : h.length);
1265
1318
  };
1266
- switch (Ke()) {
1319
+ switch (et()) {
1267
1320
  case "Chrome":
1268
- const l = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), r = l == null ? void 0 : l.focusNode, h = (r == null ? void 0 : r.nodeValue) || "", p = l && t(l);
1269
- return e(h, (l == null ? void 0 : l.focusOffset) || -1, r, p);
1321
+ const o = (i = this.host.shadowRoot) == null ? void 0 : i.getSelection(), r = o == null ? void 0 : o.focusNode, h = (r == null ? void 0 : r.nodeValue) || "", f = o && t(o);
1322
+ return e(h, (o == null ? void 0 : o.focusOffset) || -1, r, f);
1270
1323
  case "Firefox":
1271
- const u = document.getSelection(), g = ((o = u == null ? void 0 : u.anchorNode) == null ? void 0 : o.nodeValue) || "", v = u && t(u);
1324
+ const u = document.getSelection(), g = ((l = u == null ? void 0 : u.anchorNode) == null ? void 0 : l.nodeValue) || "", v = u && t(u);
1272
1325
  return e(g, (u == null ? void 0 : u.focusOffset) || -1, u == null ? void 0 : u.anchorNode, v);
1273
1326
  case "Safari":
1274
- const I = window.getSelection(), x = I == null ? void 0 : I.getComposedRanges(this.host.shadowRoot)[0], c = ((s = x == null ? void 0 : x.startContainer) == null ? void 0 : s.nodeValue) || "", f = I && t(I);
1275
- return e(c, (x == null ? void 0 : x.endOffset) || -1, x == null ? void 0 : x.startContainer, f);
1327
+ const D = window.getSelection(), x = D == null ? void 0 : D.getComposedRanges(this.host.shadowRoot)[0], c = ((s = x == null ? void 0 : x.startContainer) == null ? void 0 : s.nodeValue) || "", p = D && t(D);
1328
+ return e(c, (x == null ? void 0 : x.endOffset) || -1, x == null ? void 0 : x.startContainer, p);
1276
1329
  default:
1277
1330
  return console.warn("Browser not supported"), null;
1278
1331
  }
1279
1332
  }
1280
1333
  handleChange(e) {
1281
1334
  let t = e.target.textContent || "";
1282
- t = ye(t);
1335
+ t = V(t);
1283
1336
  const n = this.getCurrentSelectionForBrowser();
1284
1337
  if (!n) {
1285
1338
  this.updateEventTitle(t), this.resetDropdown();
1286
1339
  return;
1287
1340
  }
1288
- const { focusOffset: a, dollarIndex: o, lastWord: s, currentText: l } = n;
1289
- if (o === -1 || a < o) {
1341
+ const { focusOffset: i, dollarIndex: l, lastWord: s, currentText: o } = n;
1342
+ if (l === -1 || i < l) {
1290
1343
  this.updateEventTitle(t), this.resetDropdown();
1291
1344
  return;
1292
1345
  }
1293
1346
  s.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
1294
1347
  $value: s,
1295
- fullText: l,
1296
- index: o,
1297
- focusOffset: a
1348
+ fullText: o,
1349
+ index: l,
1350
+ focusOffset: i
1298
1351
  }, this.populateSuggestionsDropdown(s)) : this.resetDropdown(), this.updateEventTitle(t);
1299
1352
  }
1300
1353
  handleInputKeyDown(e) {
1301
- var n, a, o, s;
1354
+ var n, i, l, s;
1302
1355
  const t = this.getCurrentSelectionForBrowser();
1303
- if (t != null && t.allSelected && !We(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
1356
+ if (t != null && t.allSelected && !Qe(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
1304
1357
  e.preventDefault();
1305
- const l = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
1306
- l && (l.click(), this.ariaActivedescendant = "");
1358
+ const o = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
1359
+ o && (o.click(), this.ariaActivedescendant = "");
1307
1360
  } else if (e.key === "ArrowDown") {
1308
1361
  e.preventDefault();
1309
- const l = (a = this.host.shadowRoot) == null ? void 0 : a.getElementById(this.ariaActivedescendant);
1310
- if (l) {
1311
- const r = l.nextElementSibling;
1362
+ const o = (i = this.host.shadowRoot) == null ? void 0 : i.getElementById(this.ariaActivedescendant);
1363
+ if (o) {
1364
+ const r = o.nextElementSibling;
1312
1365
  r ? this.ariaActivedescendant = r.id : this.ariaActivedescendant = this.filteredTokens[0].label;
1313
1366
  } else
1314
1367
  this.ariaActivedescendant = this.filteredTokens[0].label;
1315
1368
  } else if (e.key === "ArrowUp") {
1316
1369
  e.preventDefault();
1317
- const l = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById(this.ariaActivedescendant);
1318
- if (l) {
1319
- const r = l.previousElementSibling;
1370
+ const o = (l = this.host.shadowRoot) == null ? void 0 : l.getElementById(this.ariaActivedescendant);
1371
+ if (o) {
1372
+ const r = o.previousElementSibling;
1320
1373
  r ? this.ariaActivedescendant = r.id : this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
1321
1374
  } else
1322
1375
  this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
@@ -1326,28 +1379,28 @@ const Ae = class {
1326
1379
  selectOption(e, t) {
1327
1380
  var c;
1328
1381
  e.preventDefault();
1329
- const n = this.currentWord.fullText, a = this.currentWord.$value;
1330
- let o = this.titleRef.firstChild, s = null;
1331
- for (; o; ) {
1332
- if (o.nodeType === 3) {
1333
- const f = ((c = o.textContent) == null ? void 0 : c.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", b = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
1334
- if (f.includes(b)) {
1335
- s = o;
1382
+ const n = this.currentWord.fullText, i = this.currentWord.$value;
1383
+ let l = this.titleRef.firstChild, s = null;
1384
+ for (; l; ) {
1385
+ if (l.nodeType === 3) {
1386
+ const p = ((c = l.textContent) == null ? void 0 : c.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", m = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
1387
+ if (p.includes(m)) {
1388
+ s = l;
1336
1389
  break;
1337
1390
  }
1338
1391
  }
1339
- o = o.nextSibling;
1392
+ l = l.nextSibling;
1340
1393
  }
1341
1394
  if (!s)
1342
1395
  return;
1343
- const l = s.textContent || "", r = l.indexOf(a), h = l.substring(0, r), p = l.substring(r + a.length), u = document.createTextNode(h), g = document.createRange(), v = document.createElement("span");
1396
+ const o = s.textContent || "", r = o.indexOf(i), h = o.substring(0, r), f = o.substring(r + i.length), u = document.createTextNode(h), g = document.createRange(), v = document.createElement("span");
1344
1397
  v.classList.add("highlighted-tag"), v.textContent = `${t.value}`;
1345
- const I = document.createTextNode(p);
1346
- if (p !== "")
1347
- s.replaceWith(u, v, I), g.setStart(I, 1);
1398
+ const D = document.createTextNode(f);
1399
+ if (f !== "")
1400
+ s.replaceWith(u, v, D), g.setStart(D, 1);
1348
1401
  else {
1349
- const f = document.createTextNode("​");
1350
- s.replaceWith(u, v, f), g.setStart(f, 1);
1402
+ const p = document.createTextNode("​");
1403
+ s.replaceWith(u, v, p), g.setStart(p, 1);
1351
1404
  }
1352
1405
  this.resetDropdown(), this.titleRef.focus();
1353
1406
  const x = window.getSelection();
@@ -1357,28 +1410,28 @@ const Ae = class {
1357
1410
  this.filteredTokens = this.availableTokens.filter((t) => t.label.startsWith(e.toString()) || t.value.startsWith(e.toString())), this.filteredTokens.length > 0 && (this.ariaActivedescendant = this.filteredTokens[0].label);
1358
1411
  }
1359
1412
  updateEventTitle(e) {
1360
- var n, a, o;
1413
+ var n, i, l;
1361
1414
  const t = e.replace(/ +/g, " ");
1362
- t === "" ? ((n = this.internals) == null || n.setValidity({ customError: !0 }, "Event title is required", this.titleRef), this.validationError = "Event title is required") : ((a = this.internals) == null || a.setValidity({ customError: !1 }), this.validationError = ""), (o = this.internals) == null || o.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
1415
+ t === "" ? ((n = this.internals) == null || n.setValidity({ customError: !0 }, "Event title is required", this.titleRef), this.validationError = "Event title is required") : ((i = this.internals) == null || i.setValidity({ customError: !1 }), this.validationError = ""), (l = this.internals) == null || l.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
1363
1416
  }
1364
1417
  resetDropdown() {
1365
1418
  this.showTokens = !1, this.ariaActivedescendant = "";
1366
1419
  }
1367
1420
  getLabelHTML(e) {
1368
- return i("div", { class: "token-label" }, i("span", { class: "token" }, e.token), i("span", { class: "description" }, e.description));
1421
+ return a("div", { class: "token-label" }, a("span", { class: "token" }, e.token), a("span", { class: "description" }, e.description));
1369
1422
  }
1370
1423
  render() {
1371
1424
  var e;
1372
- return i(_, { key: "66954aa7afd52271b194a1241b46bf54b26eeb38" }, i("div", { key: "f5aebb6914b94cac9aef99bc5e382ffa60572735", class: "nylas-event-title", part: "net" }, i("label", { key: "b99854a3d225a079b1fa86fc4379f16c9a54645c", htmlFor: "title" }, "Event title", i("span", { key: "4c2910eac57af8118fbd5deef5e70587e48ce02f", class: "required" }, "*"), i("span", { key: "e944e4a6498892a2c5cd4558e90a318aa09d1b5b", class: "label-icon" }, i("tooltip-component", { key: "c483e44bf98e26ff2b36752a2812a04cd66acb9d" }, i("info-icon", { key: "9e6ec872bc60e1bd658fbcc47ffd04068fb95543", slot: "tooltip-icon" }), i("span", { key: "108f13463468b574d4fb0417bfd387461c36f3dd", slot: "tooltip-content" }, "Enter a title for your event.")))), i("div", { key: "478be8206ff1eabb6167a6f257f74f646515cddb", class: {
1425
+ return a(_, { key: "8e8de66d58ca4428f35effa133fc8c0b3e3c804f" }, a("div", { key: "411cf6eb2553063facf74bc0fcf46cbced1b2eb8", class: "nylas-event-title", part: "net" }, a("label", { key: "47c8a32d54022a41182ba71aa665f05275e0926b", htmlFor: "title" }, "Event title", a("span", { key: "664268aa456eeae43411ef0c59c3391dfebac185", class: "required" }, "*"), a("span", { key: "c4db00b1f2f428c30344dbe098fabba19e15cf76", class: "label-icon" }, a("tooltip-component", { key: "9884d36d7237310d454cb2cce36ea7a7391a58e5" }, a("info-icon", { key: "6a2c57dc06b77fb2c8faaa21af08558f7cfcf98c", slot: "tooltip-icon" }), a("span", { key: "185fee4da67795d4cbad48ce905c573e42749b95", slot: "tooltip-content" }, "Enter a title for your event.")))), a("div", { key: "80db52b66751ec73660465a2185d2e5c1304903d", class: {
1373
1426
  title: !0,
1374
1427
  error: this.validationError !== ""
1375
- }, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && i("div", { class: "token-options", part: "net__dropdown-content" }, i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => i("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), i("span", { key: "1ceba0cac2c71119094055f1f064cceacaa27ede", class: "help-text" }, "Create a dynamic templated event title by typing $. Learn more"), this.validationError != "" && i("span", { class: "error-message" }, this.validationError)));
1428
+ }, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && a("div", { class: "token-options", part: "net__dropdown-content" }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => a("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), a("span", { key: "35d1099854f33517e668691f98a3bf296a8280d4", class: "help-text" }, "Create a dynamic templated event title by typing $. Learn more"), this.validationError != "" && a("span", { class: "error-message" }, this.validationError)));
1376
1429
  }
1377
1430
  static get formAssociated() {
1378
1431
  return !0;
1379
1432
  }
1380
1433
  get host() {
1381
- return k(this);
1434
+ return w(this);
1382
1435
  }
1383
1436
  static get watchers() {
1384
1437
  return {
@@ -1388,34 +1441,34 @@ const Ae = class {
1388
1441
  };
1389
1442
  }
1390
1443
  };
1391
- Vt([
1444
+ an([
1392
1445
  C({
1393
1446
  name: "nylas-event-title",
1394
1447
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
1395
1448
  eventToProps: {},
1396
1449
  fireRegisterEvent: !0
1397
1450
  }),
1398
- he("design:type", Function),
1399
- he("design:paramtypes", []),
1400
- he("design:returntype", void 0)
1401
- ], Ae.prototype, "render", null);
1402
- Ae.style = Yt;
1403
- const qt = ':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}', Jt = qt;
1404
- var Gt = function(e, t, n, a) {
1405
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1451
+ ge("design:type", Function),
1452
+ ge("design:paramtypes", []),
1453
+ ge("design:returntype", void 0)
1454
+ ], je.prototype, "render", null);
1455
+ je.style = nn;
1456
+ const sn = ':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}', ln = sn;
1457
+ var on = function(e, t, n, i) {
1458
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1406
1459
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1407
- s = Reflect.decorate(e, t, n, a);
1460
+ s = Reflect.decorate(e, t, n, i);
1408
1461
  else
1409
1462
  for (var r = e.length - 1; r >= 0; r--)
1410
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1411
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1412
- }, be = function(e, t) {
1463
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1464
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1465
+ }, ve = function(e, t) {
1413
1466
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1414
1467
  return Reflect.metadata(e, t);
1415
1468
  };
1416
- const Me = class {
1469
+ const Be = class {
1417
1470
  constructor(e) {
1418
- m(this, e), this.valueChanged = w(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 = 1, this.selectedPeriod = "day";
1471
+ b(this, e), this.valueChanged = k(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 = 1, this.selectedPeriod = "day";
1419
1472
  }
1420
1473
  elementNameChangedHandler(e) {
1421
1474
  d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -1443,21 +1496,21 @@ const Me = class {
1443
1496
  }
1444
1497
  timePeriodChangedHandler(e) {
1445
1498
  const { number: t, period: n } = e.detail;
1446
- let a;
1447
- n === "day" ? a = t : n === "week" ? a = t * 7 : a = t * 30, this.valueChanged.emit({ value: a, name: "availableDaysInFuture" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(a.toString(), this.name);
1499
+ let i;
1500
+ n === "day" ? i = t : n === "week" ? i = t * 7 : i = t * 30, this.valueChanged.emit({ value: i, name: "availableDaysInFuture" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
1448
1501
  }
1449
1502
  updateNumberAndPeriodFromDays(e) {
1450
1503
  let t, n;
1451
1504
  e >= 30 && e % 30 === 0 ? (t = e / 30, n = "month") : e >= 7 && e % 7 === 0 ? (t = e / 7, n = "week") : (t = e, n = "day"), this.selectedNumber = t, this.selectedPeriod = n;
1452
1505
  }
1453
1506
  render() {
1454
- return i(_, { key: "644b6c27b5f42b8434641d4d5fb66b9b999600f3" }, i("div", { key: "5752ad1825c031be60ae17f8b8e0c045b9dd03f2", class: "nylas-limit-future-bookings", part: "nlfb" }, i("label", { key: "20757b46040b546f588186315b930a9deb0e20e2" }, "Limit future bookings", i("span", { key: "5c8da87988a96a02f56a64d7adbcec0d861218b1", class: "label-icon" }, i("tooltip-component", { key: "d7e59094062b2292b59f4dc0e8d553fa33d9a3a1" }, i("info-icon", { key: "2d180ec4e6daecaa44481ea424fca1488273b1c5", slot: "tooltip-icon" }), i("span", { key: "6c968e6da43177276ef8dcf28f4d250f39a28fe2", slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), i("time-period-selector", { key: "4776c9bc6447a477103eadee1805e7313352e0ee", id: "limit-future-bookings", timePeriods: ["day", "week", "month"], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
1507
+ return a(_, { key: "e1e24151575c5c687d51fdf177840aa7c05424d9" }, a("div", { key: "ceb19c13b5ad7e132260de266b1883b3f8d53f3d", class: "nylas-limit-future-bookings", part: "nlfb" }, a("label", { key: "44c296c74b9a9cd7152d2c704d4dc6ef82cc39c7" }, "Limit future bookings", a("span", { key: "11e7622613f38d12ef4f1c564b0ca311ab679cb3", class: "label-icon" }, a("tooltip-component", { key: "d9ab1be2efb6616a937d112017be0e2c8e965ab3" }, a("info-icon", { key: "9f207ec82aa2a122ebfd0ba047f650751c49e470", slot: "tooltip-icon" }), a("span", { key: "1d91cfa505846f5f9da0457b785d8c645044be55", slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), a("time-period-selector", { key: "cc11ea1514b99b8b4ef1721a15d56fbda1c1693b", id: "limit-future-bookings", timePeriods: ["day", "week", "month"], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
1455
1508
  }
1456
1509
  static get formAssociated() {
1457
1510
  return !0;
1458
1511
  }
1459
1512
  get host() {
1460
- return k(this);
1513
+ return w(this);
1461
1514
  }
1462
1515
  static get watchers() {
1463
1516
  return {
@@ -1467,34 +1520,114 @@ const Me = class {
1467
1520
  };
1468
1521
  }
1469
1522
  };
1470
- Gt([
1523
+ on([
1471
1524
  C({
1472
1525
  name: "nylas-limit-future-bookings",
1473
1526
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
1474
1527
  eventToProps: {},
1475
1528
  fireRegisterEvent: !0
1476
1529
  }),
1477
- be("design:type", Function),
1478
- be("design:paramtypes", []),
1479
- be("design:returntype", void 0)
1480
- ], Me.prototype, "render", null);
1481
- Me.style = Jt;
1482
- const Xt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}', Qt = Xt;
1483
- var en = function(e, t, n, a) {
1484
- var o = arguments.length, s = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
1530
+ ve("design:type", Function),
1531
+ ve("design:paramtypes", []),
1532
+ ve("design:returntype", void 0)
1533
+ ], Be.prototype, "render", null);
1534
+ Be.style = ln;
1535
+ const rn = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', dn = rn;
1536
+ var cn = function(e, t, n, i) {
1537
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1485
1538
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1486
- s = Reflect.decorate(e, t, n, a);
1539
+ s = Reflect.decorate(e, t, n, i);
1487
1540
  else
1488
1541
  for (var r = e.length - 1; r >= 0; r--)
1489
- (l = e[r]) && (s = (o < 3 ? l(s) : o > 3 ? l(t, n, s) : l(t, n)) || s);
1490
- return o > 3 && s && Object.defineProperty(t, n, s), s;
1491
- }, me = function(e, t) {
1542
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1543
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1544
+ }, ke = function(e, t) {
1492
1545
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1493
1546
  return Reflect.metadata(e, t);
1494
1547
  };
1495
- const Fe = class {
1548
+ const We = class {
1496
1549
  constructor(e) {
1497
- m(this, e), this.valueChanged = w(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.minCancellationNotice = void 0, this.name = "min-cancellation-notice", this.selectedNumber = 1, this.selectedPeriod = "day";
1550
+ b(this, e), this.valueChanged = k(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.minBookingNotice = void 0, this.name = "min-booking-notice", this.selectedNumber = 1, this.selectedPeriod = "hour";
1551
+ }
1552
+ elementNameChangedHandler(e) {
1553
+ d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
1554
+ }
1555
+ selectedConfigurationChangedHandler(e) {
1556
+ var n;
1557
+ const t = (n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.min_booking_notice;
1558
+ t && this.updateNumberAndPeriodFromMinutes(t);
1559
+ }
1560
+ availableDaysInFutureChanged(e) {
1561
+ this.updateNumberAndPeriodFromMinutes(e);
1562
+ }
1563
+ connectedCallback() {
1564
+ d("nylas-min-booking-notice", "connectedCallback");
1565
+ }
1566
+ componentWillLoad() {
1567
+ d("nylas-min-booking-notice", "componentWillLoad"), this.host.setAttribute("name", this.name);
1568
+ }
1569
+ componentDidLoad() {
1570
+ var e;
1571
+ d("nylas-min-booking-notice", "componentDidLoad"), this.availableDaysInFutureChanged(this.minBookingNotice ?? 1), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(((e = this.minBookingNotice) == null ? void 0 : e.toString()) ?? "1", this.name);
1572
+ }
1573
+ disconnectedCallback() {
1574
+ d("nylas-min-booking-notice", "disconnectedCallback");
1575
+ }
1576
+ timePeriodChangedHandler(e) {
1577
+ const { number: t, period: n } = e.detail;
1578
+ let i;
1579
+ const l = 60, s = l * 24, o = s * 7, r = s * 30;
1580
+ n === "minute" ? i = t : n === "hour" ? i = t * l : n === "day" ? i = t * s : n === "week" ? i = t * o : n === "month" ? i = t * r : i = 0, this.valueChanged.emit({ value: i, name: "minBookingNotice" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
1581
+ }
1582
+ updateNumberAndPeriodFromMinutes(e) {
1583
+ let s, o;
1584
+ e >= 43200 ? (s = Math.floor(e / 43200), o = "month") : e >= 10080 ? (s = Math.floor(e / 10080), o = "week") : e >= 1440 ? (s = Math.floor(e / 1440), o = "day") : e >= 60 ? (s = Math.floor(e / 60), o = "hour") : (s = e, o = "minute"), this.selectedNumber = s, this.selectedPeriod = o;
1585
+ }
1586
+ render() {
1587
+ return a(_, { key: "75bc177620fae5662328ba8f53f9f4a4e84733e5" }, a("div", { key: "a76b27e58174ca827e389b361ce4837e6ae11ced", class: "nylas-min-booking-notice", part: "nmbn" }, a("label", { key: "1db3f2c7c54b05744b64ad40c951595122d317c5" }, "Minimum booking notice", a("span", { key: "a4c7db6f534b570cbbf5af4c3d60d97843599a4b", class: "label-icon" }, a("tooltip-component", { key: "f7d6ba6b294f85c9d573933b6916cd50ad830d2a" }, a("info-icon", { key: "16b11bfaa5affbe15748f6ae6129c1e5a6fcfe32", slot: "tooltip-icon" }), a("span", { key: "1fe829a53fa3dcef0a6d5954717889d9e92d0c68", slot: "tooltip-content" }, "The minimum amount of time in the future for planning the event.")))), a("time-period-selector", { key: "e4a545fc471e67447cab675ccd11fa786337fc23", id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
1588
+ }
1589
+ static get formAssociated() {
1590
+ return !0;
1591
+ }
1592
+ get host() {
1593
+ return w(this);
1594
+ }
1595
+ static get watchers() {
1596
+ return {
1597
+ name: ["elementNameChangedHandler"],
1598
+ selectedConfiguration: ["selectedConfigurationChangedHandler"],
1599
+ availableDaysInFuture: ["availableDaysInFutureChanged"]
1600
+ };
1601
+ }
1602
+ };
1603
+ cn([
1604
+ C({
1605
+ name: "nylas-min-booking-notice",
1606
+ stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
1607
+ eventToProps: {},
1608
+ fireRegisterEvent: !0
1609
+ }),
1610
+ ke("design:type", Function),
1611
+ ke("design:paramtypes", []),
1612
+ ke("design:returntype", void 0)
1613
+ ], We.prototype, "render", null);
1614
+ We.style = dn;
1615
+ const fn = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', pn = fn;
1616
+ var un = function(e, t, n, i) {
1617
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
1618
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1619
+ s = Reflect.decorate(e, t, n, i);
1620
+ else
1621
+ for (var r = e.length - 1; r >= 0; r--)
1622
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
1623
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
1624
+ }, xe = function(e, t) {
1625
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1626
+ return Reflect.metadata(e, t);
1627
+ };
1628
+ const Ue = class {
1629
+ constructor(e) {
1630
+ b(this, e), this.valueChanged = k(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.minCancellationNotice = void 0, this.name = "min-cancellation-notice", this.selectedNumber = 1, this.selectedPeriod = "day";
1498
1631
  }
1499
1632
  elementNameChangedHandler(e) {
1500
1633
  d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
@@ -1522,22 +1655,22 @@ const Fe = class {
1522
1655
  }
1523
1656
  timePeriodChangedHandler(e) {
1524
1657
  const { number: t, period: n } = e.detail;
1525
- let a;
1526
- const o = 60, s = o * 24, l = s * 7, r = s * 30;
1527
- n === "minute" ? a = t : n === "hour" ? a = t * o : n === "day" ? a = t * s : n === "week" ? a = t * l : n === "month" ? a = t * r : a = 0, this.valueChanged.emit({ value: a, name: "minCancellationNotice" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(a.toString(), this.name);
1658
+ let i;
1659
+ const l = 60, s = l * 24, o = s * 7, r = s * 30;
1660
+ n === "minute" ? i = t : n === "hour" ? i = t * l : n === "day" ? i = t * s : n === "week" ? i = t * o : n === "month" ? i = t * r : i = 0, this.valueChanged.emit({ value: i, name: "minCancellationNotice" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
1528
1661
  }
1529
1662
  updateNumberAndPeriodFromMinutes(e) {
1530
- let s, l;
1531
- e >= 43200 ? (s = Math.floor(e / 43200), l = "month") : e >= 10080 ? (s = Math.floor(e / 10080), l = "week") : e >= 1440 ? (s = Math.floor(e / 1440), l = "day") : e >= 60 ? (s = Math.floor(e / 60), l = "hour") : (s = e, l = "minute"), this.selectedNumber = s, this.selectedPeriod = l;
1663
+ let s, o;
1664
+ e >= 43200 ? (s = Math.floor(e / 43200), o = "month") : e >= 10080 ? (s = Math.floor(e / 10080), o = "week") : e >= 1440 ? (s = Math.floor(e / 1440), o = "day") : e >= 60 ? (s = Math.floor(e / 60), o = "hour") : (s = e, o = "minute"), this.selectedNumber = s, this.selectedPeriod = o;
1532
1665
  }
1533
1666
  render() {
1534
- return i(_, { key: "c8aa308100f6883aba1096c18ee4fa4e93f22031" }, i("div", { key: "98a462f85a7aebb65f004d24d990899b87b70ba5", class: "nylas-min-cancellation-notice", part: "nmcn" }, i("label", { key: "f5e00583b2c9bf32d6e6a66c0bf34021a82cff10" }, "Minimum cancellation notice", i("span", { key: "ff572a74cf14935730b04b67040635cc3405607f", class: "label-icon" }, i("tooltip-component", { key: "5fc8718589a679693f5a042d5d4f45cc6a204d9c" }, i("info-icon", { key: "aa132926b3d719db1bfa3489d3083eb834fcddea", slot: "tooltip-icon" }), i("span", { key: "4ae6e92255f4c34bac09d266c12b6d009ff8e915", slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), i("time-period-selector", { key: "8d74b2848f6231d2a7accb29385e3d02273eec42", 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 })));
1667
+ return a(_, { key: "8cccdce4a9960ecf6b860b638da26c50a68104c4" }, a("div", { key: "82854ad81861233231fe4a1e8006196155328141", class: "nylas-min-cancellation-notice", part: "nmcn" }, a("label", { key: "db3eddec3a8fb28c0b035d4d4cd61986832dff0b" }, "Minimum cancellation notice", a("span", { key: "137472a58beef549599289b04be8fde01e7d81da", class: "label-icon" }, a("tooltip-component", { key: "2cfcceb4c7144553ac85d32da46fbd894955a9ee" }, a("info-icon", { key: "9e13ddb61e10e10a5fa426fb6a2b56159597ea88", slot: "tooltip-icon" }), a("span", { key: "9670035ec49fe0db37564d2d44d30f2197a7ec85", slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), a("time-period-selector", { key: "0e7b9f7b99d7e10c2c39c5affdfc014a403146ad", 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 })));
1535
1668
  }
1536
1669
  static get formAssociated() {
1537
1670
  return !0;
1538
1671
  }
1539
1672
  get host() {
1540
- return k(this);
1673
+ return w(this);
1541
1674
  }
1542
1675
  static get watchers() {
1543
1676
  return {
@@ -1547,163 +1680,163 @@ const Fe = class {
1547
1680
  };
1548
1681
  }
1549
1682
  };
1550
- en([
1683
+ un([
1551
1684
  C({
1552
1685
  name: "nylas-min-cancellation-notice",
1553
1686
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
1554
1687
  eventToProps: {},
1555
1688
  fireRegisterEvent: !0
1556
1689
  }),
1557
- me("design:type", Function),
1558
- me("design:paramtypes", []),
1559
- me("design:returntype", void 0)
1560
- ], Fe.prototype, "render", null);
1561
- Fe.style = Qt;
1562
- var Ne = { exports: {} };
1690
+ xe("design:type", Function),
1691
+ xe("design:paramtypes", []),
1692
+ xe("design:returntype", void 0)
1693
+ ], Ue.prototype, "render", null);
1694
+ Ue.style = pn;
1695
+ var Ze = { exports: {} };
1563
1696
  (function(e, t) {
1564
- (function(n, a) {
1565
- e.exports = a();
1566
- })(Ue, function() {
1567
- var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, r = {}, h = function(c) {
1697
+ (function(n, i) {
1698
+ e.exports = i();
1699
+ })(Xe, function() {
1700
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d\d/, s = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, r = {}, h = function(c) {
1568
1701
  return (c = +c) + (c > 68 ? 1900 : 2e3);
1569
- }, p = function(c) {
1570
- return function(f) {
1571
- this[c] = +f;
1702
+ }, f = function(c) {
1703
+ return function(p) {
1704
+ this[c] = +p;
1572
1705
  };
1573
1706
  }, u = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
1574
- (this.zone || (this.zone = {})).offset = function(f) {
1575
- if (!f || f === "Z")
1707
+ (this.zone || (this.zone = {})).offset = function(p) {
1708
+ if (!p || p === "Z")
1576
1709
  return 0;
1577
- var b = f.match(/([+-]|\d\d)/g), y = 60 * b[1] + (+b[2] || 0);
1578
- return y === 0 ? 0 : b[0] === "+" ? -y : y;
1710
+ var m = p.match(/([+-]|\d\d)/g), y = 60 * m[1] + (+m[2] || 0);
1711
+ return y === 0 ? 0 : m[0] === "+" ? -y : y;
1579
1712
  }(c);
1580
1713
  }], g = function(c) {
1581
- var f = r[c];
1582
- return f && (f.indexOf ? f : f.s.concat(f.f));
1583
- }, v = function(c, f) {
1584
- var b, y = r.meridiem;
1714
+ var p = r[c];
1715
+ return p && (p.indexOf ? p : p.s.concat(p.f));
1716
+ }, v = function(c, p) {
1717
+ var m, y = r.meridiem;
1585
1718
  if (y) {
1586
- for (var S = 1; S <= 24; S += 1)
1587
- if (c.indexOf(y(S, 0, f)) > -1) {
1588
- b = S > 12;
1719
+ for (var O = 1; O <= 24; O += 1)
1720
+ if (c.indexOf(y(O, 0, p)) > -1) {
1721
+ m = O > 12;
1589
1722
  break;
1590
1723
  }
1591
1724
  } else
1592
- b = c === (f ? "pm" : "PM");
1593
- return b;
1594
- }, I = { A: [l, function(c) {
1725
+ m = c === (p ? "pm" : "PM");
1726
+ return m;
1727
+ }, D = { A: [o, function(c) {
1595
1728
  this.afternoon = v(c, !1);
1596
- }], a: [l, function(c) {
1729
+ }], a: [o, function(c) {
1597
1730
  this.afternoon = v(c, !0);
1598
1731
  }], S: [/\d/, function(c) {
1599
1732
  this.milliseconds = 100 * +c;
1600
- }], SS: [o, function(c) {
1733
+ }], SS: [l, function(c) {
1601
1734
  this.milliseconds = 10 * +c;
1602
1735
  }], SSS: [/\d{3}/, function(c) {
1603
1736
  this.milliseconds = +c;
1604
- }], s: [s, p("seconds")], ss: [s, p("seconds")], m: [s, p("minutes")], mm: [s, p("minutes")], H: [s, p("hours")], h: [s, p("hours")], HH: [s, p("hours")], hh: [s, p("hours")], D: [s, p("day")], DD: [o, p("day")], Do: [l, function(c) {
1605
- var f = r.ordinal, b = c.match(/\d+/);
1606
- if (this.day = b[0], f)
1737
+ }], s: [s, f("seconds")], ss: [s, f("seconds")], m: [s, f("minutes")], mm: [s, f("minutes")], H: [s, f("hours")], h: [s, f("hours")], HH: [s, f("hours")], hh: [s, f("hours")], D: [s, f("day")], DD: [l, f("day")], Do: [o, function(c) {
1738
+ var p = r.ordinal, m = c.match(/\d+/);
1739
+ if (this.day = m[0], p)
1607
1740
  for (var y = 1; y <= 31; y += 1)
1608
- f(y).replace(/\[|\]/g, "") === c && (this.day = y);
1609
- }], M: [s, p("month")], MM: [o, p("month")], MMM: [l, function(c) {
1610
- var f = g("months"), b = (g("monthsShort") || f.map(function(y) {
1741
+ p(y).replace(/\[|\]/g, "") === c && (this.day = y);
1742
+ }], M: [s, f("month")], MM: [l, f("month")], MMM: [o, function(c) {
1743
+ var p = g("months"), m = (g("monthsShort") || p.map(function(y) {
1611
1744
  return y.slice(0, 3);
1612
1745
  })).indexOf(c) + 1;
1613
- if (b < 1)
1746
+ if (m < 1)
1614
1747
  throw new Error();
1615
- this.month = b % 12 || b;
1616
- }], MMMM: [l, function(c) {
1617
- var f = g("months").indexOf(c) + 1;
1618
- if (f < 1)
1748
+ this.month = m % 12 || m;
1749
+ }], MMMM: [o, function(c) {
1750
+ var p = g("months").indexOf(c) + 1;
1751
+ if (p < 1)
1619
1752
  throw new Error();
1620
- this.month = f % 12 || f;
1621
- }], Y: [/[+-]?\d+/, p("year")], YY: [o, function(c) {
1753
+ this.month = p % 12 || p;
1754
+ }], Y: [/[+-]?\d+/, f("year")], YY: [l, function(c) {
1622
1755
  this.year = h(c);
1623
- }], YYYY: [/\d{4}/, p("year")], Z: u, ZZ: u };
1756
+ }], YYYY: [/\d{4}/, f("year")], Z: u, ZZ: u };
1624
1757
  function x(c) {
1625
- var f, b;
1626
- f = c, b = r && r.formats;
1627
- for (var y = (c = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(R, H, D) {
1628
- var O = D && D.toUpperCase();
1629
- return H || b[D] || n[D] || b[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, M, P) {
1630
- return M || P.slice(1);
1758
+ var p, m;
1759
+ p = c, m = r && r.formats;
1760
+ for (var y = (c = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(R, L, S) {
1761
+ var T = S && S.toUpperCase();
1762
+ return L || m[S] || n[S] || m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, A, P) {
1763
+ return A || P.slice(1);
1631
1764
  });
1632
- })).match(a), S = y.length, E = 0; E < S; E += 1) {
1633
- var Z = y[E], N = I[Z], L = N && N[0], $ = N && N[1];
1634
- y[E] = $ ? { regex: L, parser: $ } : Z.replace(/^\[|\]$/g, "");
1765
+ })).match(i), O = y.length, E = 0; E < O; E += 1) {
1766
+ var Y = y[E], F = D[Y], $ = F && F[0], H = F && F[1];
1767
+ y[E] = H ? { regex: $, parser: H } : Y.replace(/^\[|\]$/g, "");
1635
1768
  }
1636
1769
  return function(R) {
1637
- for (var H = {}, D = 0, O = 0; D < S; D += 1) {
1638
- var A = y[D];
1639
- if (typeof A == "string")
1640
- O += A.length;
1770
+ for (var L = {}, S = 0, T = 0; S < O; S += 1) {
1771
+ var M = y[S];
1772
+ if (typeof M == "string")
1773
+ T += M.length;
1641
1774
  else {
1642
- var M = A.regex, P = A.parser, Y = R.slice(O), B = M.exec(Y)[0];
1643
- P.call(H, B), R = R.replace(B, "");
1775
+ var A = M.regex, P = M.parser, G = R.slice(T), j = A.exec(G)[0];
1776
+ P.call(L, j), R = R.replace(j, "");
1644
1777
  }
1645
1778
  }
1646
1779
  return function(z) {
1647
- var T = z.afternoon;
1648
- if (T !== void 0) {
1649
- var j = z.hours;
1650
- T ? j < 12 && (z.hours += 12) : j === 12 && (z.hours = 0), delete z.afternoon;
1780
+ var I = z.afternoon;
1781
+ if (I !== void 0) {
1782
+ var B = z.hours;
1783
+ I ? B < 12 && (z.hours += 12) : B === 12 && (z.hours = 0), delete z.afternoon;
1651
1784
  }
1652
- }(H), H;
1785
+ }(L), L;
1653
1786
  };
1654
1787
  }
1655
- return function(c, f, b) {
1656
- b.p.customParseFormat = !0, c && c.parseTwoDigitYear && (h = c.parseTwoDigitYear);
1657
- var y = f.prototype, S = y.parse;
1788
+ return function(c, p, m) {
1789
+ m.p.customParseFormat = !0, c && c.parseTwoDigitYear && (h = c.parseTwoDigitYear);
1790
+ var y = p.prototype, O = y.parse;
1658
1791
  y.parse = function(E) {
1659
- var Z = E.date, N = E.utc, L = E.args;
1660
- this.$u = N;
1661
- var $ = L[1];
1662
- if (typeof $ == "string") {
1663
- var R = L[2] === !0, H = L[3] === !0, D = R || H, O = L[2];
1664
- H && (O = L[2]), r = this.$locale(), !R && O && (r = b.Ls[O]), this.$d = function(Y, B, z) {
1792
+ var Y = E.date, F = E.utc, $ = E.args;
1793
+ this.$u = F;
1794
+ var H = $[1];
1795
+ if (typeof H == "string") {
1796
+ var R = $[2] === !0, L = $[3] === !0, S = R || L, T = $[2];
1797
+ L && (T = $[2]), r = this.$locale(), !R && T && (r = m.Ls[T]), this.$d = function(G, j, z) {
1665
1798
  try {
1666
- if (["x", "X"].indexOf(B) > -1)
1667
- return new Date((B === "X" ? 1e3 : 1) * Y);
1668
- var T = x(B)(Y), j = T.year, V = T.month, Re = T.day, Pe = T.hours, ze = T.minutes, Be = T.seconds, je = T.milliseconds, ge = T.zone, J = /* @__PURE__ */ new Date(), G = Re || (j || V ? 1 : J.getDate()), X = j || J.getFullYear(), q = 0;
1669
- j && !V || (q = V > 0 ? V - 1 : J.getMonth());
1670
- var Q = Pe || 0, ee = ze || 0, te = Be || 0, ne = je || 0;
1671
- return ge ? new Date(Date.UTC(X, q, G, Q, ee, te, ne + 60 * ge.offset * 1e3)) : z ? new Date(Date.UTC(X, q, G, Q, ee, te, ne)) : new Date(X, q, G, Q, ee, te, ne);
1799
+ if (["x", "X"].indexOf(j) > -1)
1800
+ return new Date((j === "X" ? 1e3 : 1) * G);
1801
+ var I = x(j)(G), B = I.year, K = I.month, Ge = I.day, Ke = I.hours, Je = I.minutes, qe = I.seconds, Ve = I.milliseconds, we = I.zone, Q = /* @__PURE__ */ new Date(), X = Ge || (B || K ? 1 : Q.getDate()), ee = B || Q.getFullYear(), J = 0;
1802
+ B && !K || (J = K > 0 ? K - 1 : Q.getMonth());
1803
+ var te = Ke || 0, ne = Je || 0, ae = qe || 0, ie = Ve || 0;
1804
+ return we ? new Date(Date.UTC(ee, J, X, te, ne, ae, ie + 60 * we.offset * 1e3)) : z ? new Date(Date.UTC(ee, J, X, te, ne, ae, ie)) : new Date(ee, J, X, te, ne, ae, ie);
1672
1805
  } catch {
1673
1806
  return /* @__PURE__ */ new Date("");
1674
1807
  }
1675
- }(Z, $, N), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), D && Z != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), r = {};
1676
- } else if ($ instanceof Array)
1677
- for (var A = $.length, M = 1; M <= A; M += 1) {
1678
- L[1] = $[M - 1];
1679
- var P = b.apply(this, L);
1808
+ }(Y, H, F), this.init(), T && T !== !0 && (this.$L = this.locale(T).$L), S && Y != this.format(H) && (this.$d = /* @__PURE__ */ new Date("")), r = {};
1809
+ } else if (H instanceof Array)
1810
+ for (var M = H.length, A = 1; A <= M; A += 1) {
1811
+ $[1] = H[A - 1];
1812
+ var P = m.apply(this, $);
1680
1813
  if (P.isValid()) {
1681
1814
  this.$d = P.$d, this.$L = P.$L, this.init();
1682
1815
  break;
1683
1816
  }
1684
- M === A && (this.$d = /* @__PURE__ */ new Date(""));
1817
+ A === M && (this.$d = /* @__PURE__ */ new Date(""));
1685
1818
  }
1686
1819
  else
1687
- S.call(this, E);
1820
+ O.call(this, E);
1688
1821
  };
1689
1822
  };
1690
1823
  });
1691
- })(Ne);
1692
- const tn = Ne.exports, nn = ':host{display:block;position:relative;--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}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times 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:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', an = nn;
1693
- K.extend(tn);
1694
- const sn = class {
1824
+ })(Ze);
1825
+ const hn = Ze.exports, bn = ':host{display:block;position:relative;--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}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times 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:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', mn = bn;
1826
+ Z.extend(hn);
1827
+ const yn = class {
1695
1828
  constructor(e) {
1696
- m(this, e), this.timeChange = w(this, "timeChange", 7), this.formError = w(this, "formError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
1829
+ b(this, e), this.timeChange = k(this, "timeChange", 7), this.formError = k(this, "formError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
1697
1830
  }
1698
1831
  handleOutsideClick(e) {
1699
1832
  !e.composedPath().includes(this.el) && this.showTimes && (this.showTimes = !1);
1700
1833
  }
1701
1834
  minimumStartTimeChangedHandler() {
1702
1835
  if (this.minimumStartTime) {
1703
- let e = K().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4, -2)));
1836
+ let e = Z().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4, -2)));
1704
1837
  this.minimumStartTime.slice(-2).toLowerCase() === "pm" && parseInt(this.minimumStartTime) !== 12 ? e = e.add(12, "hour") : this.minimumStartTime.slice(-2).toLowerCase() === "am" && parseInt(this.minimumStartTime) === 12 && (e = e.subtract(12, "hour")), this.times = this.generateTimes();
1705
- const t = K(this.times[0].value, "hh:mma");
1706
- K(this.time, "hh:mma").isBefore(t) && (this.err = "Invalid", this.formError.emit({
1838
+ const t = Z(this.times[0].value, "hh:mma");
1839
+ Z(this.time, "hh:mma").isBefore(t) && (this.err = "Invalid", this.formError.emit({
1707
1840
  key: this.el.id,
1708
1841
  message: "Invalid"
1709
1842
  }));
@@ -1711,7 +1844,7 @@ const sn = class {
1711
1844
  }
1712
1845
  componentDidRender() {
1713
1846
  if (this.showTimes && this.shouldAutoScroll) {
1714
- const e = ae(this.time), t = this.times.findIndex((n) => n.value === e);
1847
+ const e = se(this.time), t = this.times.findIndex((n) => n.value === e);
1715
1848
  t > -1 && (this.shouldAutoScroll = !1, this.scrollToViewWithinParent(t));
1716
1849
  return;
1717
1850
  }
@@ -1721,7 +1854,7 @@ const sn = class {
1721
1854
  n[0] === "00" && n[1].slice(-2) == "pm" && (this.err = "Invalid", this.formError.emit({
1722
1855
  key: this.el.id,
1723
1856
  message: "Invalid"
1724
- })), ie(t) ? (this.err = "", this.formError.emit({
1857
+ })), le(t) ? (this.err = "", this.formError.emit({
1725
1858
  key: this.el.id,
1726
1859
  message: ""
1727
1860
  })) : (this.err = "Invalid", this.formError.emit({
@@ -1735,7 +1868,7 @@ const sn = class {
1735
1868
  handleTimeAutocomplete(e) {
1736
1869
  var n;
1737
1870
  const t = (n = e.target) == null ? void 0 : n.value;
1738
- if (!ie(t)) {
1871
+ if (!le(t)) {
1739
1872
  this.err = "Invalid", this.formError.emit({
1740
1873
  key: this.el.id,
1741
1874
  message: "Invalid"
@@ -1743,18 +1876,18 @@ const sn = class {
1743
1876
  return;
1744
1877
  }
1745
1878
  if (t === "") {
1746
- const a = xe().format("hh:mma");
1879
+ const i = Te().format("hh:mma");
1747
1880
  this.timeChange.emit({
1748
1881
  key: this.el.id,
1749
- value: a
1882
+ value: i
1750
1883
  });
1751
1884
  return;
1752
1885
  }
1753
- if (!ke(t)) {
1754
- const a = ae(t);
1886
+ if (!Ie(t)) {
1887
+ const i = se(t);
1755
1888
  this.timeChange.emit({
1756
1889
  key: this.el.id,
1757
- value: a
1890
+ value: i
1758
1891
  });
1759
1892
  return;
1760
1893
  }
@@ -1766,29 +1899,29 @@ const sn = class {
1766
1899
  handleOnInput(e) {
1767
1900
  var n;
1768
1901
  const t = (n = e.target) == null ? void 0 : n.value;
1769
- if (ie(t)) {
1902
+ if (le(t)) {
1770
1903
  if (t === "") {
1771
- const a = xe().format("hh:mma"), o = this.times.findIndex((s) => s.value === a);
1772
- o > -1 && this.scrollToViewWithinParent(o);
1904
+ const i = Te().format("hh:mma"), l = this.times.findIndex((s) => s.value === i);
1905
+ l > -1 && this.scrollToViewWithinParent(l);
1773
1906
  return;
1774
1907
  }
1775
- if (!ke(t)) {
1776
- const a = ae(t), o = this.times.findIndex((s) => s.value === a);
1777
- o > -1 && this.scrollToViewWithinParent(o);
1908
+ if (!Ie(t)) {
1909
+ const i = se(t), l = this.times.findIndex((s) => s.value === i);
1910
+ l > -1 && this.scrollToViewWithinParent(l);
1778
1911
  return;
1779
1912
  }
1780
1913
  }
1781
1914
  }
1782
1915
  generateTimes() {
1783
1916
  const e = [];
1784
- let t = K().set("hour", 0).set("minute", 0).set("second", 0);
1785
- this.minimumStartTime && (t = K(this.minimumStartTime, "hh:mma"));
1786
- const n = t.endOf("day").diff(t, "minutes"), a = Math.round(n / 15);
1787
- for (let o = 0; o < a + 1; o++) {
1788
- const s = t.add(o * 15, "minute");
1789
- if (o == a && s.format("hh:mma").includes("am"))
1917
+ let t = Z().set("hour", 0).set("minute", 0).set("second", 0);
1918
+ this.minimumStartTime && (t = Z(this.minimumStartTime, "hh:mma"));
1919
+ const n = t.endOf("day").diff(t, "minutes"), i = Math.round(n / 15);
1920
+ for (let l = 0; l < i + 1; l++) {
1921
+ const s = t.add(l * 15, "minute");
1922
+ if (l == i && s.format("hh:mma").includes("am"))
1790
1923
  break;
1791
- e.push({ id: o, value: s.format("hh:mma") });
1924
+ e.push({ id: l, value: s.format("hh:mma") });
1792
1925
  }
1793
1926
  return e;
1794
1927
  }
@@ -1801,66 +1934,66 @@ const sn = class {
1801
1934
  if (this.ariaActivedescendant === "")
1802
1935
  this.ariaActivedescendant = this.times[0].id.toString(), this.focusOption(0);
1803
1936
  else {
1804
- const t = this.times.findIndex((a) => a.id.toString() === this.ariaActivedescendant), n = t + 1 < this.times.length ? t + 1 : 0;
1937
+ const t = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), n = t + 1 < this.times.length ? t + 1 : 0;
1805
1938
  this.ariaActivedescendant = this.times[n].id.toString(), this.focusOption(n);
1806
1939
  }
1807
1940
  } else if (e.key === "ArrowUp")
1808
1941
  if (e.preventDefault(), this.ariaActivedescendant === "")
1809
1942
  this.ariaActivedescendant = this.times[this.times.length - 1].id.toString(), this.focusOption(this.times.length - 1);
1810
1943
  else {
1811
- const t = this.times.findIndex((a) => a.id.toString() === this.ariaActivedescendant), n = t - 1 >= 0 ? t - 1 : this.times.length - 1;
1944
+ const t = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), n = t - 1 >= 0 ? t - 1 : this.times.length - 1;
1812
1945
  this.ariaActivedescendant = this.times[n].id.toString(), this.focusOption(n);
1813
1946
  }
1814
1947
  else
1815
1948
  e.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
1816
1949
  }
1817
1950
  handleListboxKeydown(e) {
1818
- const t = this.times, n = t.findIndex((a) => a.id.toString() === this.ariaActivedescendant);
1951
+ const t = this.times, n = t.findIndex((i) => i.id.toString() === this.ariaActivedescendant);
1819
1952
  if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
1820
1953
  e.preventDefault();
1821
- const a = n + 1 < t.length ? n + 1 : 0;
1822
- this.ariaActivedescendant = t[a].id.toString(), this.focusOption(a);
1954
+ const i = n + 1 < t.length ? n + 1 : 0;
1955
+ this.ariaActivedescendant = t[i].id.toString(), this.focusOption(i);
1823
1956
  } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
1824
1957
  e.preventDefault();
1825
- const a = n - 1 >= 0 ? n - 1 : t.length - 1;
1826
- this.ariaActivedescendant = t[a].id.toString(), this.focusOption(a);
1958
+ const i = n - 1 >= 0 ? n - 1 : t.length - 1;
1959
+ this.ariaActivedescendant = t[i].id.toString(), this.focusOption(i);
1827
1960
  } else if (e.key === "Enter") {
1828
1961
  if (e.preventDefault(), this.ariaActivedescendant) {
1829
- const a = t[n];
1830
- this.handleTimeChange(e, a.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
1962
+ const i = t[n];
1963
+ this.handleTimeChange(e, i.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
1831
1964
  }
1832
1965
  } else
1833
1966
  e.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
1834
1967
  }
1835
1968
  scrollToViewWithinParent(e) {
1836
- var l;
1837
- const t = this.times[e], n = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(t.id.toString()), a = this.timeMenu;
1969
+ var o;
1970
+ const t = this.times[e], n = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(t.id.toString()), i = this.timeMenu;
1838
1971
  this.ariaActivedescendant = t.id.toString();
1839
- const o = n.getBoundingClientRect(), s = a.getBoundingClientRect();
1840
- o.top < s.top ? a.scrollTop -= s.top - o.top : o.bottom > s.bottom && (a.scrollTop += o.bottom - s.bottom), o.left < s.left ? a.scrollLeft -= s.left - o.left : o.right > s.right && (a.scrollLeft += o.right - s.right);
1972
+ const l = n.getBoundingClientRect(), s = i.getBoundingClientRect();
1973
+ l.top < s.top ? i.scrollTop -= s.top - l.top : l.bottom > s.bottom && (i.scrollTop += l.bottom - s.bottom), l.left < s.left ? i.scrollLeft -= s.left - l.left : l.right > s.right && (i.scrollLeft += l.right - s.right);
1841
1974
  }
1842
1975
  focusOption(e) {
1843
- var o;
1976
+ var l;
1844
1977
  const t = this.times[e];
1845
1978
  if (!t)
1846
1979
  return;
1847
- const n = t.id.toString(), a = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(n);
1848
- a && (a.focus(), a.scrollIntoView({ behavior: "smooth", block: "nearest" }));
1980
+ const n = t.id.toString(), i = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(n);
1981
+ i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
1849
1982
  }
1850
1983
  render() {
1851
- return i(_, { key: "bb7dc42bbfdbad25bfcd419846582d470a2e9df9" }, i("div", { key: "26df571e17431fb0d27e8a0166334f30f19c3067", class: "time-picker", part: "time-picker" }, i("input", { key: "3391356d69af3205a3427bd791124af6a05d5524", type: "text", name: this.name, id: this.name, part: "time-input", class: {
1984
+ return a(_, { key: "a6c2e840c56397a1365b3205e793df4157c734d0" }, a("div", { key: "d36acf9fb02fa1ae9337d02b161d51880a68422e", class: "time-picker", part: "time-picker" }, a("input", { key: "d574493f83e42ef66a64d14a21abaaf38f7926c3", type: "text", name: this.name, id: this.name, part: "time-input", class: {
1852
1985
  "time-input": !0,
1853
1986
  error: !!this.err || this.hasError
1854
1987
  }, ref: (e) => this.timeInput = e, value: this.time, onClick: () => {
1855
1988
  this.showTimes = !this.showTimes, this.shouldAutoScroll = !0;
1856
- }, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err && i("div", { class: "invalid-time-icon" }), this.showTimes && i("div", { class: "times", part: "times", ref: (e) => this.timeMenu = e }, i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.times.map((e) => i("li", { tabindex: "0", key: e.id, id: e.id.toString(), class: {
1989
+ }, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err && a("div", { class: "invalid-time-icon" }), this.showTimes && a("div", { class: "times", part: "times", ref: (e) => this.timeMenu = e }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.times.map((e) => a("li", { tabindex: "0", key: e.id, id: e.id.toString(), class: {
1857
1990
  focused: this.ariaActivedescendant === e.id.toString()
1858
1991
  }, onClick: (t) => {
1859
1992
  this.handleTimeChange(t, e.value), this.showTimes = !1, this.timeInput.focus();
1860
- }, role: "option" }, `${e.value}`)))), !this.showTimes && this.err && i("p", { class: "error", id: "email-error" }, this.err)));
1993
+ }, role: "option" }, `${e.value}`)))), !this.showTimes && this.err && a("p", { class: "error", id: "email-error" }, this.err)));
1861
1994
  }
1862
1995
  get el() {
1863
- return k(this);
1996
+ return w(this);
1864
1997
  }
1865
1998
  static get watchers() {
1866
1999
  return {
@@ -1868,28 +2001,157 @@ const sn = class {
1868
2001
  };
1869
2002
  }
1870
2003
  };
1871
- sn.style = an;
2004
+ yn.style = mn;
2005
+ const gn = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', vn = gn;
2006
+ var kn = function(e, t, n, i) {
2007
+ var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
2008
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2009
+ s = Reflect.decorate(e, t, n, i);
2010
+ else
2011
+ for (var r = e.length - 1; r >= 0; r--)
2012
+ (o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
2013
+ return l > 3 && s && Object.defineProperty(t, n, s), s;
2014
+ }, _e = function(e, t) {
2015
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
2016
+ return Reflect.metadata(e, t);
2017
+ };
2018
+ const q = 15, Ye = class {
2019
+ constructor(e) {
2020
+ var t, n, i, l, s, o;
2021
+ b(this, e), this.valueChanged = k(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 = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.duration_minutes) ?? 5, this.defaultIntervalMinutes = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : l.interval_minutes) ?? this.eventDurationMinutes, this.defaultRoundTo = ((o = (s = this.selectedConfiguration) == null ? void 0 : s.availability) == null ? void 0 : o.round_to) ?? void 0, this.selectedInterval = this.defaultIntervalMinutes, this.selectedRoundTo = !!(this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes);
2022
+ }
2023
+ elementNameChangedHandler(e) {
2024
+ d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
2025
+ }
2026
+ selectedConfigurationChangedHandler(e) {
2027
+ var t, n;
2028
+ d("nylas-timeslot-interval", "selectedConfigurationChangedHandler", e), this.defaultIntervalMinutes = ((t = e.availability) == null ? void 0 : t.interval_minutes) ?? this.eventDurationMinutes, this.defaultRoundTo = ((n = e.availability) == null ? void 0 : n.round_to) ?? void 0, this.selectedInterval = this.defaultIntervalMinutes, this.selectedRoundTo = !!(this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes);
2029
+ }
2030
+ connectedCallback() {
2031
+ d("nylas-timeslot-interval", "connectedCallback");
2032
+ }
2033
+ disconnectedCallback() {
2034
+ d("nylas-timeslot-interval", "disconnectedCallback");
2035
+ }
2036
+ componentWillLoad() {
2037
+ d("nylas-timeslot-interval", "componentWillLoad"), this.host.setAttribute("name", this.name);
2038
+ }
2039
+ componentDidLoad() {
2040
+ d("nylas-timeslot-interval", "componentDidLoad");
2041
+ }
2042
+ componentWillUpdate() {
2043
+ d("nylas-timeslot-interval", "componentWillUpdate");
2044
+ }
2045
+ componentDidUpdate() {
2046
+ d("nylas-timeslot-interval", "componentDidUpdate");
2047
+ }
2048
+ componentWillRender() {
2049
+ d("nylas-timeslot-interval", "componentWillRender");
2050
+ }
2051
+ componentDidRender() {
2052
+ d("nylas-timeslot-interval", "componentDidRender");
2053
+ }
2054
+ nylasFormDropdownChangedHandler(e) {
2055
+ d("nylas-timeslot-interval", "nylasFormDropdownChangedHandler", e.detail), e.detail.value === "duration" ? this.selectedInterval = this.eventDurationMinutes : this.selectedInterval = parseInt(e.detail.value), console.log("nylasFormDropdownChanged selectedRoundTo", this.selectedRoundTo), this.valueChanged.emit({
2056
+ value: JSON.stringify({
2057
+ interval: this.selectedInterval,
2058
+ roundTo: this.selectedRoundTo ? this.selectedInterval : q
2059
+ }),
2060
+ name: this.name
2061
+ }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : q }), this.name);
2062
+ }
2063
+ radioSelectionChangedHandler(e) {
2064
+ d("nylas-timeslot-interval", "radioSelectionChangedHandler", e.detail), e.detail.value === "no-rounding" ? this.selectedRoundTo = !1 : this.selectedRoundTo = !0, console.log("selectedRoundTo", this.selectedRoundTo), this.valueChanged.emit({
2065
+ value: JSON.stringify({
2066
+ interval: this.selectedInterval,
2067
+ roundTo: this.selectedRoundTo ? this.selectedInterval : q
2068
+ }),
2069
+ name: this.name
2070
+ }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : q }), this.name);
2071
+ }
2072
+ render() {
2073
+ const e = [
2074
+ { value: "duration", label: "Length of the booking" },
2075
+ { value: "5", label: "5 mins" },
2076
+ { value: "10", label: "10 mins" },
2077
+ { value: "15", label: "15 mins" },
2078
+ { value: "20", label: "20 mins" },
2079
+ { value: "30", label: "30 mins" },
2080
+ { value: "45", label: "45 mins" },
2081
+ { value: "60", label: "60 mins" }
2082
+ ];
2083
+ return a(_, { key: "218908e5caee3df264532000ee406e888a7ae6b5" }, a("div", { key: "c7fbf0c98a0a1999541a2970eafa7ab3bb76181f", class: "nylas-timeslot-interval", part: "nti" }, a("div", { key: "2e434be03d0bf571a7dc9a984c8d7fd243faab2f", class: "header", part: "nti__header" }, a("h3", { key: "957af7f458ed3dde113b473e46f01c18636a26ff" }, "Time-slot interval preferences"), a("p", { key: "5d16f7c33bcba2e3e457f07b85c9a3159f5f28fc" }, "Choose your interval preference for time-slots.")), a("div", { key: "9e2a6327ae104b162ad1882ff42e3b39b634c7e4", class: "nylas-timeslot-interval__dropdown" }, a("span", { key: "70bec24786bdcfdf07356f91640be14ee5d2c147", class: "label", part: "nti__input-label" }, "Select interval preference", a("tooltip-component", { key: "a7d3a458106b07b1ae79517b2c7de11c9401033c" }, a("info-icon", { key: "2fef5cb6c3fe62f7034c3c43e51f2ade04261021", slot: "tooltip-icon" }), a("span", { key: "d321766e49f8487610267a964ffbecb84e352082", slot: "tooltip-content" }, "Set the interval preference for the time-slots."))), a("select-dropdown", { key: "77ba683ef75281101d5e677de21a45599d00d061", name: "booking-calendar", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: this.defaultIntervalMinutes == this.eventDurationMinutes ? e[0] : e.find((t) => t.value == this.defaultIntervalMinutes.toString()) ?? e[0] }), a("span", { key: "9bea159b0fd24c70214c1bc554d447e1a8c6e124", class: "label", part: "nti__input-label" }, "Select the type of time-slot rounding", a("tooltip-component", { key: "c0e5c9f89e0b48149f114214a299f6f85ddfd7fa" }, a("info-icon", { key: "b0c4588afabb822532fecce06d12045ad16c534b", slot: "tooltip-icon" }), a("span", { key: "7b0d4571043dc17ff35747cfa6e8b98c5742ac24", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), a("radio-button-group", { key: "50eaa3d8675ddcba7d6b4d81324bc70668e9ad2f", name: "interval-preference", defaultSelectedValue: this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes ? "rounding" : "no-rounding", options: [
2084
+ { value: "no-rounding", label: "Default", description: "Time-slots will be rounded to the nearest quarter-hour." },
2085
+ {
2086
+ value: "rounding",
2087
+ label: "Interval rounding",
2088
+ description: "Time-slots will begin at times rounded to the interval value."
2089
+ }
2090
+ ] }))));
2091
+ }
2092
+ static get formAssociated() {
2093
+ return !0;
2094
+ }
2095
+ get host() {
2096
+ return w(this);
2097
+ }
2098
+ static get watchers() {
2099
+ return {
2100
+ name: ["elementNameChangedHandler"],
2101
+ selectedConfiguration: ["selectedConfigurationChangedHandler"]
2102
+ };
2103
+ }
2104
+ };
2105
+ kn([
2106
+ C({
2107
+ name: "nylas-timeslot-interval",
2108
+ stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
2109
+ fireRegisterEvent: !0
2110
+ }),
2111
+ _e("design:type", Function),
2112
+ _e("design:paramtypes", []),
2113
+ _e("design:returntype", void 0)
2114
+ ], Ye.prototype, "render", null);
2115
+ Ye.style = vn;
2116
+ const xn = ".radio-group{display:flex;flex-direction:column}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary);margin-top:16px}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}", _n = xn, wn = class {
2117
+ constructor(e) {
2118
+ b(this, e), this.radioSelectionChanged = k(this, "radioSelectionChanged", 7), this.name = "radio-group", this.options = [], this.defaultSelectedValue = "", this.selectedValue = this.defaultSelectedValue;
2119
+ }
2120
+ handleChange(e) {
2121
+ this.selectedValue = e, this.radioSelectionChanged.emit({
2122
+ value: e,
2123
+ name: this.name
2124
+ });
2125
+ }
2126
+ render() {
2127
+ return a("div", { key: "d407d08b8179a3370934e580c0971c00f323879a", class: "radio-group" }, this.options.map((e) => a("label", null, a("div", { class: "radio-option" }, a("input", { type: "radio", name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), a("p", null, a("span", { class: "title" }, e.label), a("span", { class: "description" }, e.description))))));
2128
+ }
2129
+ };
2130
+ wn.style = _n;
1872
2131
  export {
1873
- Ve as add_circle_icon,
1874
- Ge as button_component,
1875
- et as calendar_info_icon,
1876
- at as calendar_patterns_icon,
1877
- ot as flow_icon,
1878
- dt as input_dropdown,
1879
- ft as location_icon,
1880
- bt as location_off_icon,
1881
- gt as multi_select_dropdown,
1882
- Oe as nylas_availability_picker,
1883
- Te as nylas_booking_calendar_picker,
1884
- Ie as nylas_buffer_time,
1885
- De as nylas_calendar_picker,
1886
- Se as nylas_event_description,
1887
- Ee as nylas_event_duration,
1888
- Le as nylas_event_info,
1889
- $e as nylas_event_limits,
1890
- He as nylas_event_location,
1891
- Ae as nylas_event_title,
1892
- Me as nylas_limit_future_bookings,
1893
- Fe as nylas_min_cancellation_notice,
1894
- sn as nylas_time_window_picker
2132
+ at as calendar_info_icon,
2133
+ lt as calendar_patterns_icon,
2134
+ dt as checkbox_component,
2135
+ pt as flow_icon,
2136
+ bt as location_icon,
2137
+ gt as location_off_icon,
2138
+ xt as multi_select_dropdown,
2139
+ Ee as nylas_availability_picker,
2140
+ $e as nylas_booking_calendar_picker,
2141
+ He as nylas_buffer_time,
2142
+ Le as nylas_calendar_picker,
2143
+ Me as nylas_cancellation_policy,
2144
+ Ae as nylas_customize_booking_settings,
2145
+ Ne as nylas_event_description,
2146
+ Fe as nylas_event_duration,
2147
+ Re as nylas_event_info,
2148
+ Pe as nylas_event_limits,
2149
+ ze as nylas_event_location,
2150
+ je as nylas_event_title,
2151
+ Be as nylas_limit_future_bookings,
2152
+ We as nylas_min_booking_notice,
2153
+ Ue as nylas_min_cancellation_notice,
2154
+ yn as nylas_time_window_picker,
2155
+ Ye as nylas_timeslot_interval,
2156
+ wn as radio_button_group
1895
2157
  };