@nylas/react 1.0.1-prealpha1 → 1.0.2-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/add-circle-icon_13.entry-6dccb5e5.cjs +1 -0
  2. package/dist/add-circle-icon_13.entry-ab84be80.js +1050 -0
  3. package/dist/{archive-icon_7.entry-baecb43c.cjs → archive-icon_7.entry-0deb31c2.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-9f3eca2c.js → archive-icon_7.entry-187a3484.js} +20 -20
  5. package/dist/arrow-icon.entry-b782e05a.js +15 -0
  6. package/dist/{arrow-icon.entry-9ab0c414.cjs → arrow-icon.entry-fb0ebc89.cjs} +1 -1
  7. package/dist/auth-store-764d3768-3e9c24a0.js +66 -0
  8. package/dist/auth-store-764d3768-ce84fc6a.cjs +1 -0
  9. package/dist/{bold-icon_3.entry-50406bc7.cjs → bold-icon_3.entry-49e5a1d0.cjs} +1 -1
  10. package/dist/{bold-icon_3.entry-b0d81839.js → bold-icon_3.entry-8aebbbdb.js} +4 -4
  11. package/dist/{calendar-cancel-icon.entry-0d07e33c.js → calendar-cancel-icon.entry-305c099c.js} +2 -2
  12. package/dist/{calendar-cancel-icon.entry-8f498984.cjs → calendar-cancel-icon.entry-3f4d6cf2.cjs} +1 -1
  13. package/dist/calendar-check-icon_2.entry-1bf4163c.js +25 -0
  14. package/dist/calendar-check-icon_2.entry-fa7c033a.cjs +1 -0
  15. package/dist/{calendar-icon.entry-219efd7a.cjs → calendar-icon.entry-78433555.cjs} +1 -1
  16. package/dist/{calendar-icon.entry-e5f20598.js → calendar-icon.entry-b5678535.js} +7 -7
  17. package/dist/chevron-icon.entry-49b0d3e7.cjs +1 -0
  18. package/dist/{chevron-icon.entry-f5d5d1b1.js → chevron-icon.entry-f484c9a3.js} +5 -5
  19. package/dist/close-icon.entry-24d5c268.js +15 -0
  20. package/dist/close-icon.entry-37965d55.cjs +1 -0
  21. package/dist/{nylas-booked-event-card_10.entry-f2481a57.js → constants-d93cf397-dd67263d.js} +1636 -2376
  22. package/dist/{nylas-booked-event-card_10.entry-27efa654.cjs → constants-d93cf397-e3587f5c.cjs} +6 -6
  23. package/dist/document-refresh-icon.entry-0e8935fa.cjs +1 -0
  24. package/dist/{document-refresh-icon.entry-89ad42fa.js → document-refresh-icon.entry-8791ab16.js} +5 -5
  25. package/dist/elements/index.d.ts +16 -0
  26. package/dist/{forward-icon_6.entry-ce725f05.cjs → forward-icon_6.entry-903ccd33.cjs} +3 -3
  27. package/dist/{forward-icon_6.entry-0a6dff18.js → forward-icon_6.entry-cb605bfc.js} +82 -82
  28. package/dist/globe-icon_3.entry-71d83904.js +109 -0
  29. package/dist/globe-icon_3.entry-c6aefc52.cjs +1 -0
  30. package/dist/{index-b30d446a-e0eaccad.js → index-10914bc1-1a809477.js} +2 -2
  31. package/dist/{index-b30d446a-3d69a3cc.cjs → index-10914bc1-93ff6f46.cjs} +1 -1
  32. package/dist/index-cee193d2.cjs +30 -0
  33. package/dist/index-e834697b.js +1562 -0
  34. package/dist/index.d.ts +1 -1
  35. package/dist/info-icon.entry-3774a4e3.js +15 -0
  36. package/dist/info-icon.entry-85bf3fbc.cjs +1 -0
  37. package/dist/loading-icon.entry-8941102c.js +15 -0
  38. package/dist/{loading-icon.entry-d2680046.cjs → loading-icon.entry-ae6c7b74.cjs} +1 -1
  39. package/dist/mailbox-store-6b9425dc-a0366cf2.cjs +1 -0
  40. package/dist/{mailbox-store-19f0c6c9-23a4e72f.js → mailbox-store-6b9425dc-c249fa99.js} +59 -121
  41. package/dist/nylas-booked-event-card_10.entry-a166d51d.js +739 -0
  42. package/dist/nylas-booked-event-card_10.entry-b181a874.cjs +1 -0
  43. package/dist/nylas-form-card.entry-7173dd4a.js +56 -0
  44. package/dist/nylas-form-card.entry-8fdbefa6.cjs +1 -0
  45. package/dist/nylas-if-state_3.entry-2093c593.cjs +1 -0
  46. package/dist/{nylas-if-state_3.entry-d805d4c6.js → nylas-if-state_3.entry-e7b615a1.js} +12 -10
  47. package/dist/{nylas-list-folders.entry-472bd255.js → nylas-list-folders.entry-744293ae.js} +9 -8
  48. package/dist/nylas-list-folders.entry-dff7a835.cjs +1 -0
  49. package/dist/{nylas-list-threads.entry-f3266bf7.js → nylas-list-threads.entry-85ad1b74.js} +5 -4
  50. package/dist/nylas-list-threads.entry-edb1d265.cjs +1 -0
  51. package/dist/{nylas-mailbox-pagination.entry-bd0d3bda.js → nylas-mailbox-pagination.entry-55ef4b8c.js} +4 -3
  52. package/dist/nylas-mailbox-pagination.entry-5b888a0e.cjs +1 -0
  53. package/dist/nylas-mailbox-toolbar-button.entry-bb42156a.cjs +1 -0
  54. package/dist/{nylas-mailbox-toolbar-button.entry-9641b5cd.js → nylas-mailbox-toolbar-button.entry-bdcf7d17.js} +9 -8
  55. package/dist/nylas-open-hours-picker.entry-0f4f34f6.cjs +1 -0
  56. package/dist/{nylas-open-hours-picker.entry-42942946.js → nylas-open-hours-picker.entry-7e7060fe.js} +59 -58
  57. package/dist/nylas-provider.entry-1dc58829.js +155 -0
  58. package/dist/nylas-provider.entry-cb1ef04e.cjs +1 -0
  59. package/dist/nylas-scheduler-config.entry-2382ac1b.js +114 -0
  60. package/dist/nylas-scheduler-config.entry-477d2171.cjs +1 -0
  61. package/dist/nylas-scheduler-editor.entry-1a95d313.cjs +1 -0
  62. package/dist/nylas-scheduler-editor.entry-c0479087.js +140 -0
  63. package/dist/nylas-scheduler.entry-69ecc3ae.cjs +1 -0
  64. package/dist/{nylas-scheduler.entry-3b7cb841.js → nylas-scheduler.entry-7084c148.js} +20 -19
  65. package/dist/nylas-threads-refresh.entry-b35f1b68.cjs +1 -0
  66. package/dist/{nylas-threads-refresh.entry-7d567ed1.js → nylas-threads-refresh.entry-ef5d6dfd.js} +13 -12
  67. package/dist/nylas-threads-search.entry-2dda7524.cjs +1 -0
  68. package/dist/{nylas-threads-search.entry-c881d54b.js → nylas-threads-search.entry-e570bf8e.js} +13 -12
  69. package/dist/nylas-view-thread.entry-1ee0680f.cjs +1 -0
  70. package/dist/{nylas-view-thread.entry-d8de6c83.js → nylas-view-thread.entry-3939c913.js} +5 -4
  71. package/dist/people-icon.entry-4a88822e.cjs +1 -0
  72. package/dist/people-icon.entry-69465395.js +15 -0
  73. package/dist/{play-icon_2.entry-cae94826.js → play-icon_2.entry-bc24fda7.js} +6 -6
  74. package/dist/play-icon_2.entry-bd9f650e.cjs +1 -0
  75. package/dist/react.cjs +1 -1
  76. package/dist/react.js +74 -58
  77. package/dist/{refresh-icon.entry-3e0aef26.cjs → refresh-icon.entry-678f92e7.cjs} +1 -1
  78. package/dist/{refresh-icon.entry-9563850b.js → refresh-icon.entry-bd2bf7ce.js} +4 -4
  79. package/dist/{register-component-152c6ad2-418db864.js → register-component-486ea571-1f151779.js} +2 -2
  80. package/dist/{register-component-152c6ad2-b0d34c36.cjs → register-component-486ea571-cdfe1ef9.cjs} +1 -1
  81. package/dist/scheduler-config-store-a059f30b-06c1aa21.cjs +1 -0
  82. package/dist/scheduler-config-store-a059f30b-ff3efc00.js +33 -0
  83. package/dist/{scheduler-store-7d48e682-39104219.js → scheduler-store-81058220-263a5f44.js} +53 -45
  84. package/dist/scheduler-store-81058220-a20698af.cjs +1 -0
  85. package/dist/translate-icon.entry-0c0dbba6.cjs +1 -0
  86. package/dist/translate-icon.entry-c1fcd2f8.js +15 -0
  87. package/dist/utils-df5c1963-1c47e21c.cjs +8 -0
  88. package/dist/utils-df5c1963-d9833bcb.js +2114 -0
  89. package/dist/warning-icon.entry-9631cd2e.js +15 -0
  90. package/dist/warning-icon.entry-dbd44cdb.cjs +1 -0
  91. package/package.json +6 -3
  92. package/dist/add-circle-icon.entry-4b8debfa.js +0 -15
  93. package/dist/add-circle-icon.entry-c5fdaa6f.cjs +0 -1
  94. package/dist/arrow-icon.entry-a3b36218.js +0 -15
  95. package/dist/calendar-check-icon_3.entry-5415e916.cjs +0 -1
  96. package/dist/calendar-check-icon_3.entry-cfb612c6.js +0 -35
  97. package/dist/chevron-icon.entry-3c709061.cjs +0 -1
  98. package/dist/close-icon_2.entry-eca351c4.js +0 -25
  99. package/dist/close-icon_2.entry-fa4f6d3e.cjs +0 -1
  100. package/dist/document-refresh-icon.entry-3a29a6e6.cjs +0 -1
  101. package/dist/globe-icon.entry-71414bc6.js +0 -15
  102. package/dist/globe-icon.entry-a0c9599a.cjs +0 -1
  103. package/dist/index-586a4206.cjs +0 -30
  104. package/dist/index-98d3a4da.js +0 -1498
  105. package/dist/loading-icon.entry-15debb7d.js +0 -15
  106. package/dist/mailbox-store-19f0c6c9-9a3ef58a.cjs +0 -1
  107. package/dist/nylas-if-state_3.entry-6c0bf8eb.cjs +0 -1
  108. package/dist/nylas-list-folders.entry-cc04a07e.cjs +0 -1
  109. package/dist/nylas-list-threads.entry-795c5a2b.cjs +0 -1
  110. package/dist/nylas-mailbox-pagination.entry-f701fd83.cjs +0 -1
  111. package/dist/nylas-mailbox-toolbar-button.entry-b9d6a3c8.cjs +0 -1
  112. package/dist/nylas-open-hours-picker.entry-aa103daf.cjs +0 -1
  113. package/dist/nylas-provider.entry-5bb55b2d.cjs +0 -1
  114. package/dist/nylas-provider.entry-b94198a1.js +0 -134
  115. package/dist/nylas-scheduler.entry-ea6fb146.cjs +0 -1
  116. package/dist/nylas-threads-refresh.entry-4002608b.cjs +0 -1
  117. package/dist/nylas-threads-search.entry-556f1219.cjs +0 -1
  118. package/dist/nylas-view-thread.entry-6faf1b51.cjs +0 -1
  119. package/dist/play-icon_2.entry-2e21b8b9.cjs +0 -1
  120. package/dist/scheduler-store-7d48e682-449277d4.cjs +0 -1
  121. package/dist/search-icon_3.entry-9b027cfc.cjs +0 -1
  122. package/dist/search-icon_3.entry-e36548ec.js +0 -101
  123. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  124. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
@@ -0,0 +1,109 @@
1
+ import { r, h as s, c as d, g as l } from "./index-e834697b.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const c = ".sc-globe-icon-h{display:flex}", p = c, h = class {
5
+ constructor(e) {
6
+ r(this, e), this.width = "16", this.height = "16";
7
+ }
8
+ render() {
9
+ return s("svg", { key: "bd412e83bf60cf5a4df9d8e7a1f0d8a6f882e3b5", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, s("path", { key: "37ae233065d10a260b637520c99df1cc2573d1d6", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
10
+ }
11
+ };
12
+ h.style = p;
13
+ const f = ".sc-search-icon-h{display:flex}", b = f, u = class {
14
+ constructor(e) {
15
+ r(this, e), this.width = "15", this.height = "15";
16
+ }
17
+ render() {
18
+ return s("svg", { key: "62c86abc3d9ae6b9b98d4db70b5066860b82d5d9", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "f695eff3cd7083f07f1bba1d5c7a5cef6d7944f5", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
19
+ }
20
+ };
21
+ u.style = b;
22
+ const y = ":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}.dropdown{display:inline-block}.dropbtn{color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;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.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}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px}}.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)}.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}", x = y, w = class {
23
+ constructor(e) {
24
+ r(this, e), this.selectedOptionChanged = d(this, "selectedOptionChanged", 7), this.name = void 0, this.options = [], this.defaultSelectedOption = void 0, this.withSearch = !0, this.selectedOption = this.defaultSelectedOption || null, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "";
25
+ }
26
+ defaultSelectedOptionChangedHandler(e) {
27
+ this.selectedOption = e;
28
+ }
29
+ componentWillLoad() {
30
+ this.filteredOptions = this.options, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]);
31
+ }
32
+ toggleDropdown() {
33
+ this.isOpen = !this.isOpen;
34
+ }
35
+ filterOptions(e) {
36
+ const t = e.target.value;
37
+ this.searchValue = t, this.filteredOptions = this.options.filter((i) => i.label.toLowerCase().includes(t.toLowerCase()));
38
+ }
39
+ selectOption(e) {
40
+ this.selectedOption = e, this.toggleDropdown(), this.selectedOptionChanged.emit({
41
+ value: e.value,
42
+ name: this.name
43
+ });
44
+ }
45
+ handleSelectButtonKeyDown(e) {
46
+ var t;
47
+ switch (e.key) {
48
+ case "ArrowDown":
49
+ case "Enter":
50
+ e.preventDefault(), this.isOpen || this.toggleDropdown(), (t = this.inputRef) == null || t.focus();
51
+ break;
52
+ case "Escape":
53
+ this.isOpen = !1;
54
+ break;
55
+ }
56
+ }
57
+ handleListboxKeydown(e) {
58
+ var o, a;
59
+ const t = this.filteredOptions, i = t.findIndex((n) => n.value === this.ariaActivedescendant);
60
+ if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
61
+ if (e.preventDefault(), i === t.length - 1) {
62
+ this.ariaActivedescendant = "", (o = this.inputRef) == null || o.focus();
63
+ return;
64
+ }
65
+ const n = i + 1 < t.length ? i + 1 : 0;
66
+ this.ariaActivedescendant = t[n].value, this.focusOption(n);
67
+ } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
68
+ if (e.preventDefault(), i === 0) {
69
+ this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
70
+ return;
71
+ }
72
+ const n = i - 1 >= 0 ? i - 1 : t.length - 1;
73
+ this.ariaActivedescendant = t[n].value, this.focusOption(n);
74
+ } else
75
+ e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[i])) : e.key === "Escape" && (this.isOpen = !1);
76
+ }
77
+ focusOption(e) {
78
+ var a;
79
+ const t = this.filteredOptions[e];
80
+ if (!t)
81
+ return;
82
+ const i = t.value, o = (a = this.el.shadowRoot) == null ? void 0 : a.getElementById(i);
83
+ o && (o.focus(), o.scrollIntoView({ behavior: "smooth", block: "nearest" }));
84
+ }
85
+ handleComboboxKeyDown(e) {
86
+ e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0)) : 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);
87
+ }
88
+ handleOutsideClick(e) {
89
+ !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
90
+ }
91
+ render() {
92
+ var e;
93
+ return s("div", { key: "d1589b3149e50781c1220d5b28743c56fd95b9a0", class: "dropdown" }, s("button", { key: "ab93c2d3d4980aa906427f4d368b4ca4c5a7fceb", class: { dropbtn: !0, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (t) => this.handleSelectButtonKeyDown(t) }, s("slot", { key: "67b88cfdba55c617859bb19150d2bae873f98bd5", name: "select-icon", "aria-hidden": "true" }), s("span", { key: "a30930ef7984cc51aa5d756a8c3681088d04560a", class: "selected-option" }, (e = this.selectedOption) == null ? void 0 : e.label), s("span", { key: "d85674881a8509d6f7f10dbc1765a90f8c17995f", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, s("chevron-icon", { key: "dd00a49d9c1544fc5635edca3311adc936d2d3cc", width: "16", height: "16" }))), this.isOpen ? s("div", { class: "dropdown-content" }, this.withSearch && s("div", { class: { "search-box": !0, open: this.isOpen } }, s("search-icon", { width: "15", height: "15", class: "icon" }), s("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: (t) => this.inputRef = t, onInput: (t) => this.filterOptions(t), onKeyDown: (t) => this.handleComboboxKeyDown(t) })), s("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (t) => this.handleListboxKeydown(t) }, this.filteredOptions.map((t) => s("li", { tabindex: "0", key: t.value, id: t.value, onClick: () => this.selectOption(t), role: "option" }, `${t.label}`)))) : null);
94
+ }
95
+ get el() {
96
+ return l(this);
97
+ }
98
+ static get watchers() {
99
+ return {
100
+ defaultSelectedOption: ["defaultSelectedOptionChangedHandler"]
101
+ };
102
+ }
103
+ };
104
+ w.style = x;
105
+ export {
106
+ h as globe_icon,
107
+ u as search_icon,
108
+ w as select_dropdown
109
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-cee193d2.cjs");require("react");require("react-dom");const c=".sc-globe-icon-h{display:flex}",h=c,r=class{constructor(e){s.registerInstance(this,e),this.width="16",this.height="16"}render(){return s.h("svg",{key:"bd412e83bf60cf5a4df9d8e7a1f0d8a6f882e3b5",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s.h("path",{key:"37ae233065d10a260b637520c99df1cc2573d1d6",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};r.style=h;const p=".sc-search-icon-h{display:flex}",b=p,d=class{constructor(e){s.registerInstance(this,e),this.width="15",this.height="15"}render(){return s.h("svg",{key:"62c86abc3d9ae6b9b98d4db70b5066860b82d5d9",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"f695eff3cd7083f07f1bba1d5c7a5cef6d7944f5",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};d.style=b;const f=":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}.dropdown{display:inline-block}.dropbtn{color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;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.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}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px}}.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)}.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}",u=f,l=class{constructor(e){s.registerInstance(this,e),this.selectedOptionChanged=s.createEvent(this,"selectedOptionChanged",7),this.name=void 0,this.options=[],this.defaultSelectedOption=void 0,this.withSearch=!0,this.selectedOption=this.defaultSelectedOption||null,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant=""}defaultSelectedOptionChangedHandler(e){this.selectedOption=e}componentWillLoad(){this.filteredOptions=this.options,!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0])}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const t=e.target.value;this.searchValue=t,this.filteredOptions=this.options.filter(i=>i.label.toLowerCase().includes(t.toLowerCase()))}selectOption(e){this.selectedOption=e,this.toggleDropdown(),this.selectedOptionChanged.emit({value:e.value,name:this.name})}handleSelectButtonKeyDown(e){var t;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(t=this.inputRef)==null||t.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var o,a;const t=this.filteredOptions,i=t.findIndex(n=>n.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),i===t.length-1){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const n=i+1<t.length?i+1:0;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),i===0){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const n=i-1>=0?i-1:t.length-1;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(t[i])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var a;const t=this.filteredOptions[e];if(!t)return;const i=t.value,o=(a=this.el.shadowRoot)==null?void 0:a.getElementById(i);o&&(o.focus(),o.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):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)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){var e;return s.h("div",{key:"d1589b3149e50781c1220d5b28743c56fd95b9a0",class:"dropdown"},s.h("button",{key:"ab93c2d3d4980aa906427f4d368b4ca4c5a7fceb",class:{dropbtn:!0,open:this.isOpen},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},s.h("slot",{key:"67b88cfdba55c617859bb19150d2bae873f98bd5",name:"select-icon","aria-hidden":"true"}),s.h("span",{key:"a30930ef7984cc51aa5d756a8c3681088d04560a",class:"selected-option"},(e=this.selectedOption)==null?void 0:e.label),s.h("span",{key:"d85674881a8509d6f7f10dbc1765a90f8c17995f",class:this.isOpen?"open":"closed","aria-hidden":"true"},s.h("chevron-icon",{key:"dd00a49d9c1544fc5635edca3311adc936d2d3cc",width:"16",height:"16"}))),this.isOpen?s.h("div",{class:"dropdown-content"},this.withSearch&&s.h("div",{class:{"search-box":!0,open:this.isOpen}},s.h("search-icon",{width:"15",height:"15",class:"icon"}),s.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>s.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},`${t.label}`)))):null)}get el(){return s.getElement(this)}static get watchers(){return{defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};l.style=u;exports.globe_icon=r;exports.search_icon=d;exports.select_dropdown=l;
@@ -1,5 +1,5 @@
1
- import { d as T, u as or, e as dn } from "./utils-5074a070-ce33ee6b.js";
2
- import { a as fn, f as pn } from "./index-98d3a4da.js";
1
+ import { d as T, u as or, e as dn } from "./utils-df5c1963-d9833bcb.js";
2
+ import { a as fn, f as pn } from "./index-e834697b.js";
3
3
  class ar {
4
4
  constructor(e, n, r = !0, s) {
5
5
  this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = e, this.stores = n, this.automaticComponentRegistration = r, this.eventOverrides = s, T(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: s }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((i) => {
@@ -1,4 +1,4 @@
1
- "use strict";const T=require("./utils-5074a070-d5ba6add.cjs"),Ye=require("./index-586a4206.cjs");class ir{constructor(e,n,r=!0,s){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=e,this.stores=n,this.automaticComponentRegistration=r,this.eventOverrides=s,T.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:s}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(i=>{this.propStateRegistrations.set(i,new Map)})}async componentWillLoad(e){T.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=e;const n=Array.from(this.host.querySelectorAll("*")).filter(r=>r.tagName.toLowerCase().startsWith("nylas-"));T.debug(`[${this.hostTagName}] Found ${n.length} child component(s).`,{childComponents:n}),n.forEach(r=>{const s=r;if(!s){T.debug(`[~${this.hostTagName}] Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){T.debug(`[~${this.hostTagName}] Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const i={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp};this.registerComponent(i)})}async componentDidLoad(){T.debug(`[${this.hostTagName}] Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(e=>{e.dispose()})}async registerComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping registration of ${e.detail.name}.`);return}this.registerComponent(e.detail)}async unregisterComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping unregistration of ${e.detail.name}.`);return}this.unregisterComponent(e.detail)}registerComponent(e){T.debug(`[${this.hostTagName}] Registering component ${e.name}.`);const n=e.element.dataset.nylasId;if(n&&this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} already registered. Skipping.`);return}const{stateToProps:r,getStoresToProp:s,eventToProps:i,storeToProps:o,connectorToProp:u,element:a}=e;a.dataset.nylasId=T.uniqueID(),this.registeredComponents[a.dataset.nylasId]=e;const l=this.eventOverrides;i==null||i.forEach((h,c)=>{var y;const d=this.nylasConnector,g=async m=>{T.debug(`[${this.hostTagName}] Handling "${e.name}" prop "${String(c)}" event.`,{event:m}),c in l&&(T.debug(`[${this.hostTagName}] Found event override for "${String(c)}" event. Calling override.`),await l[c](m,d)),m.defaultPrevented||await h(m,d)},p=e.element.dataset.nylasId;p&&!this.eventListenerRegistrations.has(p)&&this.eventListenerRegistrations.set(p,[]),p&&((y=this.eventListenerRegistrations.get(p))==null||y.push([a,c,g])),T.debug(`[${this.hostTagName}] Setting "${e.name}" event "${String(c)}" to automcially call NylasConnector method.`);const f=T.formatEventName(c.toString());T.debug(`[${this.hostTagName}] Adding event listener for "${f}" on "${a.tagName}"`),a.addEventListener(f,g)}),r==null||r.forEach((h,c)=>{var y,m,v,b;const[d,g]=c.split("."),f=this.getStore(d).state[g];if(!a.dataset.nylasId){T.debug(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`,{component:e});return}this.propStateRegistrations.has(d)||this.propStateRegistrations.set(d,new Map),(y=this.propStateRegistrations.get(d))!=null&&y.has(g)?(b=(v=this.propStateRegistrations.get(d))==null?void 0:v.get(g))==null||b.push({elementId:a.dataset.nylasId,propKey:h}):(m=this.propStateRegistrations.get(d))==null||m.set(g,[{elementId:a.dataset.nylasId,propKey:h}]),a[h.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${h.toString()}" to "${c}" value.`,{stateValue:f})}),s&&(a[s==null?void 0:s.toString()]=this.getStore,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${s.toString()}" to "getStore" method.`)),o==null||o.forEach((h,c)=>{const d=this.getStore(c);a[h.toString()]=d,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${h.toString()}" to "${c}" store.`,{store:d})}),u&&(a[u==null?void 0:u.toString()]=this.nylasConnector,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${u.toString()}" to "nylasConnector" value.`,{connectorToProp:u})),T.debug(`[${this.hostTagName}] Component ${e.name} registered.`)}unregisterComponent(e){T.debug(`[${this.hostTagName}] Unregistering component ${e.name}.`);const n=e.element.dataset.nylasId;if(!n){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}if(this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((s,i)=>{s.forEach((o,u)=>{var h,c;const a=(h=this.propStateRegistrations.get(i))==null?void 0:h.get(u),l=a==null?void 0:a.filter(d=>d.elementId!==n);l&&((c=this.propStateRegistrations.get(i))==null||c.set(u,l))})});const r=this.eventListenerRegistrations.get(n);r==null||r.forEach(([s,i,o])=>{const u=T.formatEventName(i.toString());T.debug(`[${this.hostTagName}] Removing event listener for "${u}" on "${s.tagName}"`),s.removeEventListener(u,o)}),delete this.registeredComponents[n]}getStore(e){const n=this.stores[e];if(!n)throw new Error(`[${this.hostTagName}] Store "${e.toString()}" not found.`);return n}async setupStoreListeners(){const e=this;Object.entries(this.stores).forEach(([n,r])=>{T.debug(`[${e.hostTagName}] Listening for changes in "${n}" store.`),r.use({set(s,i,o){var l;if(T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" changed`,{newValue:i,oldValue:o}),i===o){T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" unchanged. Skipping.`);return}const u=e.registeredComponents;if(!u){T.debug(`[${e.hostTagName}] No registered components found. Skipping.`);return}const a=((l=e.propStateRegistrations.get(n))==null?void 0:l.get(s.toString()))||[];T.debug(`[${e.hostTagName}] Found ${a.length} prop(s) registered for "${s.toString()}" store.`,{props:a,propStateRegistrations:e.propStateRegistrations}),a.forEach(({elementId:h,propKey:c})=>{const d=u[h];if(!d){T.debug(`[${e.hostTagName}] Component "${h}" not found. Skipping.`,{component:d});return}const p=e.getStore(n).state[s];d.element[c.toString()]=p,T.debug(`[${e.hostTagName}] Setting "${d.name}" prop "${c.toString()}" to "${s.toString()}" value.`,{stateValue:p})})}})})}get hostTagName(){var e,n;return((n=(e=this.host)==null?void 0:e.tagName)==null?void 0:n.toLowerCase())??"nylas-provider"}}class or extends ir{}var ar=Object.defineProperty,ur=(t,e,n)=>e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e,n)=>(ur(t,typeof e!="symbol"?e+"":e,n),n),Cn=(t=>(t.Error="error",t.Warning="warning",t.Info="info",t.Success="success",t))(Cn||{});const cr=t=>"error"in t;class lr extends Error{constructor(e){super(e==null?void 0:e.message),ct(this,"apiError"),this.name="NylasAPIError",this.stack=new Error().stack,this.apiError=e}}async function fn(t){const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e),r=Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const R=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$=Object.keys,F=Array.isArray;function U(t,e){return typeof e!="object"||$(e).forEach(function(n){t[n]=e[n]}),t}typeof Promise>"u"||R.Promise||(R.Promise=Promise);const Be=Object.getPrototypeOf,hr={}.hasOwnProperty;function z(t,e){return hr.call(t,e)}function Ee(t,e){typeof e=="function"&&(e=e(Be(t))),(typeof Reflect>"u"?$:Reflect.ownKeys)(e).forEach(n=>{ee(t,n,e[n])})}const Tn=Object.defineProperty;function ee(t,e,n,r){Tn(t,e,U(n&&z(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ke(t){return{from:function(e){return t.prototype=Object.create(e.prototype),ee(t.prototype,"constructor",t),{extend:Ee.bind(null,t.prototype)}}}}const dr=Object.getOwnPropertyDescriptor;function en(t,e){let n;return dr(t,e)||(n=Be(t))&&en(n,e)}const fr=[].slice;function lt(t,e,n){return fr.call(t,e,n)}function An(t,e){return e(t)}function Ie(t){if(!t)throw new Error("Assertion Failed")}function On(t){R.setImmediate?setImmediate(t):setTimeout(t,0)}function In(t,e){return t.reduce((n,r,s)=>{var i=e(r,s);return i&&(n[i[0]]=i[1]),n},{})}function te(t,e){if(z(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var n=[],r=0,s=e.length;r<s;++r){var i=te(t,e[r]);n.push(i)}return n}var o=e.indexOf(".");if(o!==-1){var u=t[e.substr(0,o)];return u===void 0?void 0:te(u,e.substr(o+1))}}function H(t,e,n){if(t&&e!==void 0&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if(typeof e!="string"&&"length"in e){Ie(typeof n!="string"&&"length"in n);for(var r=0,s=e.length;r<s;++r)H(t,e[r],n[r])}else{var i=e.indexOf(".");if(i!==-1){var o=e.substr(0,i),u=e.substr(i+1);if(u==="")n===void 0?F(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=n;else{var a=t[o];a&&z(t,o)||(a=t[o]={}),H(a,u,n)}}else n===void 0?F(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function Rn(t){var e={};for(var n in t)z(t,n)&&(e[n]=t[n]);return e}const pr=[].concat;function Kn(t){return pr.apply([],t)}const jn="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Kn([8,16,32,64].map(t=>["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>R[t]),gr=jn.map(t=>R[t]);In(jn,t=>[t,!0]);let se=null;function We(t){se=typeof WeakMap<"u"&&new WeakMap;const e=At(t);return se=null,e}function At(t){if(!t||typeof t!="object")return t;let e=se&&se.get(t);if(e)return e;if(F(t)){e=[],se&&se.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(At(t[n]))}else if(gr.indexOf(t.constructor)>=0)e=t;else{const i=Be(t);for(var s in e=i===Object.prototype?{}:Object.create(i),se&&se.set(t,e),t)z(t,s)&&(e[s]=At(t[s]))}return e}const{toString:mr}={};function Ot(t){return mr.call(t).slice(8,-1)}const It=typeof Symbol<"u"?Symbol.iterator:"@@iterator",yr=typeof It=="symbol"?function(t){var e;return t!=null&&(e=t[It])&&e.apply(t)}:function(){return null},_e={};function J(t){var e,n,r,s;if(arguments.length===1){if(F(t))return t.slice();if(this===_e&&typeof t=="string")return[t];if(s=yr(t)){for(n=[];!(r=s.next()).done;)n.push(r.value);return n}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}const tn=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var G=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Dn(t,e){G=t,$n=e}var $n=()=>!0;const vr=!new Error("").stack;function Pe(){if(vr)try{throw new Error}catch(t){return t}return new Error}function Rt(t,e){var n=t.stack;return n?(e=e||0,n.indexOf(t.name)===0&&(e+=(t.name+t.message).split(`
1
+ "use strict";const T=require("./utils-df5c1963-1c47e21c.cjs"),Ye=require("./index-cee193d2.cjs");class ir{constructor(e,n,r=!0,s){this.automaticComponentRegistration=!0,this.registeredComponents={},this.propStateRegistrations=new Map,this.eventListenerRegistrations=new Map,this.host=e,this.stores=n,this.automaticComponentRegistration=r,this.eventOverrides=s,T.debug(`[${this.hostTagName}] Initializing (abstract) provider.`,{eventOverrides:s}),this.registerComponent=this.registerComponent.bind(this),this.getStore=this.getStore.bind(this),Object.keys(this.stores).forEach(i=>{this.propStateRegistrations.set(i,new Map)})}async componentWillLoad(e){T.debug(`[${this.hostTagName}] Will load`),this.setupStoreListeners(),this.nylasConnector=e;const n=Array.from(this.host.querySelectorAll("*")).filter(r=>r.tagName.toLowerCase().startsWith("nylas-"));T.debug(`[${this.hostTagName}] Found ${n.length} child component(s).`,{childComponents:n}),n.forEach(r=>{const s=r;if(!s){T.debug(`[~${this.hostTagName}] Component ${s.tagName} does not have a name. Skipping.`);return}if(!s.registerNylasComponent){T.debug(`[~${this.hostTagName}] Component ${s.tagName} is not a component that can be registered. Skipping.`,{component:s});return}const i={element:s,name:s.tagName.toLowerCase(),getStoresToProp:s.getStoresToProp,storeToProps:s.storeToProps,stateToProps:s.stateToProps,authToProp:s.authToProp,eventToProps:s.eventToProps,connectorToProp:s.connectorToProp};this.registerComponent(i)})}async componentDidLoad(){T.debug(`[${this.hostTagName}] Did load`)}async componentDisconnected(){Object.values(this.stores).forEach(e=>{e.dispose()})}async registerComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping registration of ${e.detail.name}.`);return}this.registerComponent(e.detail)}async unregisterComponentHandler(e){if(e.stopPropagation(),!this.automaticComponentRegistration){T.debug(`[${this.hostTagName}] Automatic component registration disabled. Skipping unregistration of ${e.detail.name}.`);return}this.unregisterComponent(e.detail)}registerComponent(e){T.debug(`[${this.hostTagName}] Registering component ${e.name}.`);const n=e.element.dataset.nylasId;if(n&&this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} already registered. Skipping.`);return}const{stateToProps:r,getStoresToProp:s,eventToProps:i,storeToProps:o,connectorToProp:u,element:a}=e;a.dataset.nylasId=T.uniqueID(),this.registeredComponents[a.dataset.nylasId]=e;const l=this.eventOverrides;i==null||i.forEach((h,c)=>{var y;const d=this.nylasConnector,g=async m=>{T.debug(`[${this.hostTagName}] Handling "${e.name}" prop "${String(c)}" event.`,{event:m}),c in l&&(T.debug(`[${this.hostTagName}] Found event override for "${String(c)}" event. Calling override.`),await l[c](m,d)),m.defaultPrevented||await h(m,d)},p=e.element.dataset.nylasId;p&&!this.eventListenerRegistrations.has(p)&&this.eventListenerRegistrations.set(p,[]),p&&((y=this.eventListenerRegistrations.get(p))==null||y.push([a,c,g])),T.debug(`[${this.hostTagName}] Setting "${e.name}" event "${String(c)}" to automcially call NylasConnector method.`);const f=T.formatEventName(c.toString());T.debug(`[${this.hostTagName}] Adding event listener for "${f}" on "${a.tagName}"`),a.addEventListener(f,g)}),r==null||r.forEach((h,c)=>{var y,m,v,b;const[d,g]=c.split("."),f=this.getStore(d).state[g];if(!a.dataset.nylasId){T.debug(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`,{component:e});return}this.propStateRegistrations.has(d)||this.propStateRegistrations.set(d,new Map),(y=this.propStateRegistrations.get(d))!=null&&y.has(g)?(b=(v=this.propStateRegistrations.get(d))==null?void 0:v.get(g))==null||b.push({elementId:a.dataset.nylasId,propKey:h}):(m=this.propStateRegistrations.get(d))==null||m.set(g,[{elementId:a.dataset.nylasId,propKey:h}]),a[h.toString()]=f,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${h.toString()}" to "${c}" value.`,{stateValue:f})}),s&&(a[s==null?void 0:s.toString()]=this.getStore,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${s.toString()}" to "getStore" method.`)),o==null||o.forEach((h,c)=>{const d=this.getStore(c);a[h.toString()]=d,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${h.toString()}" to "${c}" store.`,{store:d})}),u&&(a[u==null?void 0:u.toString()]=this.nylasConnector,T.debug(`[${this.hostTagName}] Setting "${e.name}" prop "${u.toString()}" to "nylasConnector" value.`,{connectorToProp:u})),T.debug(`[${this.hostTagName}] Component ${e.name} registered.`)}unregisterComponent(e){T.debug(`[${this.hostTagName}] Unregistering component ${e.name}.`);const n=e.element.dataset.nylasId;if(!n){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}if(this.registeredComponents[n]){T.debug(`[${this.hostTagName}] Component ${e.name} not registered. Skipping.`);return}this.propStateRegistrations.forEach((s,i)=>{s.forEach((o,u)=>{var h,c;const a=(h=this.propStateRegistrations.get(i))==null?void 0:h.get(u),l=a==null?void 0:a.filter(d=>d.elementId!==n);l&&((c=this.propStateRegistrations.get(i))==null||c.set(u,l))})});const r=this.eventListenerRegistrations.get(n);r==null||r.forEach(([s,i,o])=>{const u=T.formatEventName(i.toString());T.debug(`[${this.hostTagName}] Removing event listener for "${u}" on "${s.tagName}"`),s.removeEventListener(u,o)}),delete this.registeredComponents[n]}getStore(e){const n=this.stores[e];if(!n)throw new Error(`[${this.hostTagName}] Store "${e.toString()}" not found.`);return n}async setupStoreListeners(){const e=this;Object.entries(this.stores).forEach(([n,r])=>{T.debug(`[${e.hostTagName}] Listening for changes in "${n}" store.`),r.use({set(s,i,o){var l;if(T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" changed`,{newValue:i,oldValue:o}),i===o){T.debug(`[${e.hostTagName}] Store "${n}" state "${s.toString()}" unchanged. Skipping.`);return}const u=e.registeredComponents;if(!u){T.debug(`[${e.hostTagName}] No registered components found. Skipping.`);return}const a=((l=e.propStateRegistrations.get(n))==null?void 0:l.get(s.toString()))||[];T.debug(`[${e.hostTagName}] Found ${a.length} prop(s) registered for "${s.toString()}" store.`,{props:a,propStateRegistrations:e.propStateRegistrations}),a.forEach(({elementId:h,propKey:c})=>{const d=u[h];if(!d){T.debug(`[${e.hostTagName}] Component "${h}" not found. Skipping.`,{component:d});return}const p=e.getStore(n).state[s];d.element[c.toString()]=p,T.debug(`[${e.hostTagName}] Setting "${d.name}" prop "${c.toString()}" to "${s.toString()}" value.`,{stateValue:p})})}})})}get hostTagName(){var e,n;return((n=(e=this.host)==null?void 0:e.tagName)==null?void 0:n.toLowerCase())??"nylas-provider"}}class or extends ir{}var ar=Object.defineProperty,ur=(t,e,n)=>e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e,n)=>(ur(t,typeof e!="symbol"?e+"":e,n),n),Cn=(t=>(t.Error="error",t.Warning="warning",t.Info="info",t.Success="success",t))(Cn||{});const cr=t=>"error"in t;class lr extends Error{constructor(e){super(e==null?void 0:e.message),ct(this,"apiError"),this.name="NylasAPIError",this.stack=new Error().stack,this.apiError=e}}async function fn(t){const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e),r=Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const R=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$=Object.keys,F=Array.isArray;function U(t,e){return typeof e!="object"||$(e).forEach(function(n){t[n]=e[n]}),t}typeof Promise>"u"||R.Promise||(R.Promise=Promise);const Be=Object.getPrototypeOf,hr={}.hasOwnProperty;function z(t,e){return hr.call(t,e)}function Ee(t,e){typeof e=="function"&&(e=e(Be(t))),(typeof Reflect>"u"?$:Reflect.ownKeys)(e).forEach(n=>{ee(t,n,e[n])})}const Tn=Object.defineProperty;function ee(t,e,n,r){Tn(t,e,U(n&&z(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ke(t){return{from:function(e){return t.prototype=Object.create(e.prototype),ee(t.prototype,"constructor",t),{extend:Ee.bind(null,t.prototype)}}}}const dr=Object.getOwnPropertyDescriptor;function en(t,e){let n;return dr(t,e)||(n=Be(t))&&en(n,e)}const fr=[].slice;function lt(t,e,n){return fr.call(t,e,n)}function An(t,e){return e(t)}function Ie(t){if(!t)throw new Error("Assertion Failed")}function On(t){R.setImmediate?setImmediate(t):setTimeout(t,0)}function In(t,e){return t.reduce((n,r,s)=>{var i=e(r,s);return i&&(n[i[0]]=i[1]),n},{})}function te(t,e){if(z(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var n=[],r=0,s=e.length;r<s;++r){var i=te(t,e[r]);n.push(i)}return n}var o=e.indexOf(".");if(o!==-1){var u=t[e.substr(0,o)];return u===void 0?void 0:te(u,e.substr(o+1))}}function H(t,e,n){if(t&&e!==void 0&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if(typeof e!="string"&&"length"in e){Ie(typeof n!="string"&&"length"in n);for(var r=0,s=e.length;r<s;++r)H(t,e[r],n[r])}else{var i=e.indexOf(".");if(i!==-1){var o=e.substr(0,i),u=e.substr(i+1);if(u==="")n===void 0?F(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=n;else{var a=t[o];a&&z(t,o)||(a=t[o]={}),H(a,u,n)}}else n===void 0?F(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function Rn(t){var e={};for(var n in t)z(t,n)&&(e[n]=t[n]);return e}const pr=[].concat;function Kn(t){return pr.apply([],t)}const jn="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Kn([8,16,32,64].map(t=>["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>R[t]),gr=jn.map(t=>R[t]);In(jn,t=>[t,!0]);let se=null;function We(t){se=typeof WeakMap<"u"&&new WeakMap;const e=At(t);return se=null,e}function At(t){if(!t||typeof t!="object")return t;let e=se&&se.get(t);if(e)return e;if(F(t)){e=[],se&&se.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(At(t[n]))}else if(gr.indexOf(t.constructor)>=0)e=t;else{const i=Be(t);for(var s in e=i===Object.prototype?{}:Object.create(i),se&&se.set(t,e),t)z(t,s)&&(e[s]=At(t[s]))}return e}const{toString:mr}={};function Ot(t){return mr.call(t).slice(8,-1)}const It=typeof Symbol<"u"?Symbol.iterator:"@@iterator",yr=typeof It=="symbol"?function(t){var e;return t!=null&&(e=t[It])&&e.apply(t)}:function(){return null},_e={};function J(t){var e,n,r,s;if(arguments.length===1){if(F(t))return t.slice();if(this===_e&&typeof t=="string")return[t];if(s=yr(t)){for(n=[];!(r=s.next()).done;)n.push(r.value);return n}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}const tn=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var G=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Dn(t,e){G=t,$n=e}var $n=()=>!0;const vr=!new Error("").stack;function Pe(){if(vr)try{throw new Error}catch(t){return t}return new Error}function Rt(t,e){var n=t.stack;return n?(e=e||0,n.indexOf(t.name)===0&&(e+=(t.name+t.message).split(`
2
2
  `).length),n.split(`
3
3
  `).slice(e).filter($n).map(r=>`
4
4
  `+r).join("")):""}var Nn=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],nn=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Nn),br={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function xe(t,e){this._e=Pe(),this.name=t,this.message=e}function Bn(t,e){return t+". Errors: "+Object.keys(e).map(n=>e[n].toString()).filter((n,r,s)=>s.indexOf(n)===r).join(`
@@ -0,0 +1,30 @@
1
+ "use strict";var dn=Object.defineProperty;var un=(e,t,o)=>t in e?dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var ve=(e,t,o)=>(un(e,typeof t!="symbol"?t+"":t,o),o);const j=require("react");require("react-dom");function fn(){var e=[];if(typeof window<"u"){var t=window;(!t.customElements||t.Element&&(!t.Element.prototype.closest||!t.Element.prototype.matches||!t.Element.prototype.remove||!t.Element.prototype.getRootNode))&&e.push(Promise.resolve().then(()=>require("./dom-68f08be9.cjs")));var o=function(){try{var r=new URL("b","http://a");return r.pathname="c%20d",r.href==="http://a/c%20d"&&r.searchParams}catch{return!1}};(typeof Object.assign!="function"||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||t.NodeList&&!t.NodeList.prototype.forEach||!t.fetch||!o()||typeof WeakMap>"u")&&e.push(Promise.resolve().then(()=>require("./core-js-38e53e34.cjs")))}return Promise.all(e)}const hn="nylas-web-elements";let se,Pe,N=!1,Ee=null,Se=!1;const H=(e,t="")=>()=>{},pn=(e,t)=>()=>{},yn="{visibility:hidden}.hydrated{visibility:inherit}",ht="slot-fb{display:contents}slot-fb[hidden]{display:none}",gn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],tt={},$n="http://www.w3.org/2000/svg",vn="http://www.w3.org/1999/xhtml",mn=e=>e!=null,Te=e=>(e=typeof e,e==="object"||e==="function");function pt(e){var t,o,r;return(r=(o=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&r!==void 0?r:void 0}const Ie=(e,t,...o)=>{let r=null,s=null,i=!1,a=!1;const d=[],c=p=>{for(let y=0;y<p.length;y++)r=p[y],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((i=typeof e!="function"&&!Te(r))&&(r=String(r)),i&&a?d[d.length-1].$text$+=r:d.push(i?ae(null,r):r),a=i)};if(c(o),t){t.key&&(s=t.key);{const p=t.className||t.class;p&&(t.class=typeof p!="object"?p:Object.keys(p).filter(y=>p[y]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,En);const u=ae(e,null);return u.$attrs$=t,d.length>0&&(u.$children$=d),u.$key$=s,u},ae=(e,t)=>{const o={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},yt={},bn=e=>e&&e.$tag$===yt,En={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(Sn)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Sn=e=>{if(typeof e.vtag=="function"){const o=Object.assign({},e.vattrs);return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),Ie(e.vtag,o,...e.vchildren||[])}const t=ae(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Cn=(e,t)=>e!=null&&!Te(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,gt=e=>D(e).$hostElement$,wn=(e,t,o)=>{const r=gt(e);return{emit:s=>$t(r,t,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:s})}},$t=(e,t,o)=>{const r=O.ce(t,o);return e.dispatchEvent(r),r},rt=new WeakMap,kn=(e,t,o)=>{let r=le.get(e);er&&o?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,le.set(e,r)},Pn=(e,t,o)=>{var r;const s=vt(t),i=le.get(s);if(e=e.nodeType===11?e:L,i)if(typeof i=="string"){e=e.head||e;let a=rt.get(e),d;if(a||rt.set(e,a=new Set),!a.has(s)){{d=L.createElement("style"),d.innerHTML=i;const c=(r=O.$nonce$)!==null&&r!==void 0?r:pt(L);c!=null&&d.setAttribute("nonce",c),e.insertBefore(d,e.querySelector("link"))}t.$flags$&4&&(d.innerHTML+=ht),a&&a.add(s)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return s},Tn=e=>{const t=e.$cmpMeta$,o=e.$hostElement$,r=t.$flags$,s=H("attachStyles",t.$tagName$),i=Pn(o.shadowRoot?o.shadowRoot:o.getRootNode(),t);r&10&&(o["s-sc"]=i,o.classList.add(i+"-h"),r&2&&o.classList.add(i+"-s")),s()},vt=(e,t)=>"sc-"+e.$tagName$,ot=(e,t,o,r,s,i)=>{if(o!==r){let a=lt(e,t),d=t.toLowerCase();if(t==="class"){const c=e.classList,u=st(o),p=st(r);c.remove(...u.filter(y=>y&&!p.includes(y))),c.add(...p.filter(y=>y&&!u.includes(y)))}else if(t==="style"){for(const c in o)(!r||r[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in r)(!o||r[c]!==o[c])&&(c.includes("-")?e.style.setProperty(c,r[c]):e.style[c]=r[c])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):lt(Q,d)?t=d.slice(2):t=d[2]+t.slice(3),o||r){const c=t.endsWith(mt);t=t.replace(_n,""),o&&O.rel(e,t,o,c),r&&O.ael(e,t,r,c)}}else{const c=Te(r);if((a||c&&r!==null)&&!s)try{if(e.tagName.includes("-"))e[t]=r;else{const u=r??"";t==="list"?a=!1:(o==null||e[t]!=u)&&(e[t]=u)}}catch{}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!a||i&4||s)&&!c&&(r=r===!0?"":r,e.setAttribute(t,r))}}},In=/\s/,st=e=>e?e.split(In):[],mt="Capture",_n=new RegExp(mt+"$"),bt=(e,t,o,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||tt,a=t.$attrs$||tt;for(r in i)r in a||ot(s,r,i[r],void 0,o,t.$flags$);for(r in a)ot(s,r,i[r],a[r],o,t.$flags$)},ie=(e,t,o,r)=>{const s=t.$children$[o];let i=0,a,d;if(s.$text$!==null)a=s.$elm$=L.createTextNode(s.$text$);else{if(N||(N=s.$tag$==="svg"),a=s.$elm$=L.createElementNS(N?$n:vn,s.$tag$),N&&s.$tag$==="foreignObject"&&(N=!1),bt(null,s,N),mn(se)&&a["s-si"]!==se&&a.classList.add(a["s-si"]=se),s.$children$)for(i=0;i<s.$children$.length;++i)d=ie(e,s,i),d&&a.appendChild(d);s.$tag$==="svg"?N=!1:a.tagName==="foreignObject"&&(N=!0)}return a["s-hn"]=Pe,a},Et=(e,t,o,r,s,i)=>{let a=e,d;for(a.shadowRoot&&a.tagName===Pe&&(a=a.shadowRoot);s<=i;++s)r[s]&&(d=ie(null,o,s),d&&(r[s].$elm$=d,a.insertBefore(d,t)))},St=(e,t,o)=>{for(let r=t;r<=o;++r){const s=e[r];if(s){const i=s.$elm$;Ct(s),i&&i.remove()}}},Rn=(e,t,o,r,s=!1)=>{let i=0,a=0,d=0,c=0,u=t.length-1,p=t[0],y=t[u],S=r.length-1,b=r[0],k=r[S],P,T;for(;i<=u&&a<=S;)if(p==null)p=t[++i];else if(y==null)y=t[--u];else if(b==null)b=r[++a];else if(k==null)k=r[--S];else if(oe(p,b,s))Y(p,b,s),p=t[++i],b=r[++a];else if(oe(y,k,s))Y(y,k,s),y=t[--u],k=r[--S];else if(oe(p,k,s))Y(p,k,s),e.insertBefore(p.$elm$,y.$elm$.nextSibling),p=t[++i],k=r[--S];else if(oe(y,b,s))Y(y,b,s),e.insertBefore(y.$elm$,p.$elm$),y=t[--u],b=r[++a];else{for(d=-1,c=i;c<=u;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===b.$key$){d=c;break}d>=0?(T=t[d],T.$tag$!==b.$tag$?P=ie(t&&t[a],o,d):(Y(T,b,s),t[d]=void 0,P=T.$elm$),b=r[++a]):(P=ie(t&&t[a],o,a),b=r[++a]),P&&p.$elm$.parentNode.insertBefore(P,p.$elm$)}i>u?Et(e,r[S+1]==null?null:r[S+1].$elm$,o,r,a,S):a>S&&St(t,i,u)},oe=(e,t,o=!1)=>e.$tag$===t.$tag$?o?!0:e.$key$===t.$key$:!1,Y=(e,t,o=!1)=>{const r=t.$elm$=e.$elm$,s=e.$children$,i=t.$children$,a=t.$tag$,d=t.$text$;d===null?(N=a==="svg"?!0:a==="foreignObject"?!1:N,a==="slot"||bt(e,t,N),s!==null&&i!==null?Rn(r,s,t,i,o):i!==null?(e.$text$!==null&&(r.textContent=""),Et(r,null,t,i,0,i.length-1)):s!==null&&St(s,0,s.length-1),N&&a==="svg"&&(N=!1)):e.$text$!==d&&(r.data=d)},Ct=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ct)},On=(e,t,o=!1)=>{const r=e.$hostElement$,s=e.$vnode$||ae(null,null),i=bn(t)?t:Ie(null,null,t);if(Pe=r.tagName,o&&i.$attrs$)for(const a of Object.keys(i.$attrs$))r.hasAttribute(a)&&!["key","ref","style","class"].includes(a)&&(i.$attrs$[a]=r[a]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=s.$elm$=r.shadowRoot||r,se=r["s-sc"],Y(s,i,o)},wt=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},ce=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return wt(e,e.$ancestorComponent$),nr(()=>xn(e,t))},xn=(e,t)=>{const o=H("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;let s;return t?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([i,a])=>q(r,i,a)),e.$queuedListeners$=void 0),s=q(r,"componentWillLoad")):s=q(r,"componentWillUpdate"),s=at(s,()=>q(r,"componentWillRender")),o(),at(s,()=>Ln(e,r,t))},at=(e,t)=>Nn(e)?e.then(t):t(),Nn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ln=async(e,t,o)=>{var r;const s=e.$hostElement$,i=H("update",e.$cmpMeta$.$tagName$),a=s["s-rc"];o&&Tn(e);const d=H("render",e.$cmpMeta$.$tagName$);An(e,t,s,o),a&&(a.map(c=>c()),s["s-rc"]=void 0),d(),i();{const c=(r=s["s-p"])!==null&&r!==void 0?r:[],u=()=>Dn(e);c.length===0?u():(Promise.all(c).then(u),e.$flags$|=4,c.length=0)}},An=(e,t,o,r)=>{try{Ee=t,t=t.render(),e.$flags$&=-17,e.$flags$|=2,On(e,t,r)}catch(s){$(s,e.$hostElement$)}return Ee=null,null},jn=()=>Ee,Dn=e=>{const t=e.$cmpMeta$.$tagName$,o=e.$hostElement$,r=H("postUpdate",t),s=e.$lazyInstance$,i=e.$ancestorComponent$;q(s,"componentDidRender"),e.$flags$&64?(q(s,"componentDidUpdate"),r()):(e.$flags$|=64,Pt(o),q(s,"componentDidLoad"),r(),e.$onReadyResolve$(o),i||kt()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Re(()=>ce(e,!1)),e.$flags$&=-517},Fn=e=>{{const t=D(e),o=t.$hostElement$.isConnected;return o&&(t.$flags$&18)===2&&ce(t,!1),o}},kt=e=>{Pt(L.documentElement),Re(()=>$t(Q,"appload",{detail:{namespace:hn}}))},q=(e,t,o)=>{if(e&&e[t])try{return e[t](o)}catch(r){$(r)}},Pt=e=>e.classList.add("hydrated"),Mn=(e,t)=>D(e).$instanceValues$.get(t),qn=(e,t,o,r)=>{const s=D(e),i=s.$hostElement$,a=s.$instanceValues$.get(t),d=s.$flags$,c=s.$lazyInstance$;o=Cn(o,r.$members$[t][0]);const u=Number.isNaN(a)&&Number.isNaN(o),p=o!==a&&!u;if((!(d&8)||a===void 0)&&p&&(s.$instanceValues$.set(t,o),c)){if(r.$watchers$&&d&128){const y=r.$watchers$[t];y&&y.map(S=>{try{c[S](o,a,t)}catch(b){$(b,i)}})}(d&18)===2&&ce(s,!1)}},Tt=(e,t,o)=>{var r;const s=e.prototype;if(t.$flags$&64&&o&1&&gn.forEach(i=>Object.defineProperty(s,i,{value(...a){const d=D(this),c=d.$lazyInstance$;if(!c)d.$onReadyPromise$.then(u=>{const p=u[i];typeof p=="function"&&p.call(u,...a)});else{const u=c[i];typeof u=="function"&&u.call(c,...a)}}})),t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$);if(i.map(([a,[d]])=>{d&31||o&2&&d&32?Object.defineProperty(s,a,{get(){return Mn(this,a)},set(c){qn(this,a,c,t)},configurable:!0,enumerable:!0}):o&1&&d&64&&Object.defineProperty(s,a,{value(...c){var u;const p=D(this);return(u=p==null?void 0:p.$onInstancePromise$)===null||u===void 0?void 0:u.then(()=>{var y;return(y=p.$lazyInstance$)===null||y===void 0?void 0:y[a](...c)})}})}),o&1){const a=new Map;s.attributeChangedCallback=function(d,c,u){O.jmp(()=>{var p;const y=a.get(d);if(this.hasOwnProperty(y))u=this[y],delete this[y];else{if(s.hasOwnProperty(y)&&typeof this[y]=="number"&&this[y]==u)return;if(y==null){const S=D(this),b=S==null?void 0:S.$flags$;if(b&&!(b&8)&&b&128&&u!==c){const k=S.$lazyInstance$,P=(p=t.$watchers$)===null||p===void 0?void 0:p[d];P==null||P.forEach(T=>{k[T]!=null&&k[T].call(k,u,c,d)})}return}}this[y]=u===null&&typeof this[y]=="boolean"?!1:u})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!==null&&r!==void 0?r:{}),...i.filter(([d,c])=>c[0]&15).map(([d,c])=>{const u=c[1]||d;return a.set(u,d),u})]))}}return e},Hn=async(e,t,o,r)=>{let s;if(!(t.$flags$&32)){t.$flags$|=32;{if(s=Qn(o),s.then){const c=pn();s=await s,c()}s.isProxied||(o.$watchers$=s.watchers,Tt(s,o,2),s.isProxied=!0);const d=H("createInstance",o.$tagName$);t.$flags$|=8;try{new s(t)}catch(c){$(c)}t.$flags$&=-9,t.$flags$|=128,d(),Ce(t.$lazyInstance$)}if(s.style){let d=s.style;const c=vt(o);if(!le.has(c)){const u=H("registerStyles",o.$tagName$);kn(c,d,!!(o.$flags$&1)),u()}}}const i=t.$ancestorComponent$,a=()=>ce(t,!0);i&&i["s-rc"]?i["s-rc"].push(a):a()},Ce=e=>{q(e,"connectedCallback")},Un=e=>{if(!(O.$flags$&1)){const t=D(e),o=t.$cmpMeta$,r=H("connectedCallback",o.$tagName$);if(t.$flags$&1)It(e,t,o.$listeners$),t!=null&&t.$lazyInstance$?Ce(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ce(t.$lazyInstance$));else{t.$flags$|=1;{let s=e;for(;s=s.parentNode||s.host;)if(s["s-p"]){wt(t,t.$ancestorComponent$=s);break}}o.$members$&&Object.entries(o.$members$).map(([s,[i]])=>{if(i&31&&e.hasOwnProperty(s)){const a=e[s];delete e[s],e[s]=a}}),Hn(e,t,o)}r()}},it=e=>{q(e,"disconnectedCallback")},Bn=async e=>{if(!(O.$flags$&1)){const t=D(e);t.$rmListeners$&&(t.$rmListeners$.map(o=>o()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?it(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>it(t.$lazyInstance$))}},zn=(e,t={})=>{var o;const r=H(),s=[],i=t.exclude||[],a=Q.customElements,d=L.head,c=d.querySelector("meta[charset]"),u=L.createElement("style"),p=[];let y,S=!0;Object.assign(O,t),O.$resourcesUrl$=new URL(t.resourcesUrl||"./",L.baseURI).href;let b=!1;if(e.map(k=>{k[1].map(P=>{var T;const I={$flags$:P[0],$tagName$:P[1],$members$:P[2],$listeners$:P[3]};I.$flags$&4&&(b=!0),I.$members$=P[2],I.$listeners$=P[3],I.$watchers$=(T=P[4])!==null&&T!==void 0?T:{};const w=I.$tagName$,Z=class extends HTMLElement{constructor(B){super(B),B=this,Xn(B,I),I.$flags$&1&&B.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),S?p.push(this):O.jmp(()=>Un(this))}disconnectedCallback(){O.jmp(()=>Bn(this))}componentOnReady(){return D(this).$onReadyPromise$}};I.$flags$&64&&(Z.formAssociated=!0),I.$lazyBundleId$=k[0],!i.includes(w)&&!a.get(w)&&(s.push(w),a.define(w,Tt(Z,I,1)))})}),b&&(u.innerHTML+=ht),u.innerHTML+=s+yn,u.innerHTML.length){u.setAttribute("data-styles","");const k=(o=O.$nonce$)!==null&&o!==void 0?o:pt(L);k!=null&&u.setAttribute("nonce",k),d.insertBefore(u,c?c.nextSibling:d.firstChild)}S=!1,p.length?p.map(k=>k.connectedCallback()):O.jmp(()=>y=setTimeout(kt,30)),r()},Wn=(e,t)=>t,It=(e,t,o,r)=>{o&&o.map(([s,i,a])=>{const d=Gn(e,s),c=Yn(t,a),u=Jn(s);O.ael(d,i,c,u),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>O.rel(d,i,c,u))})},Yn=(e,t)=>o=>{try{e.$flags$&256?e.$lazyInstance$[t](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,o])}catch(r){$(r)}},Gn=(e,t)=>t&4?L:t&8?Q:t&16?L.body:e,Jn=e=>Zn?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,_e=new WeakMap,D=e=>_e.get(e),Kn=(e,t)=>_e.set(t.$lazyInstance$=e,t),Xn=(e,t)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(r=>o.$onInstanceResolve$=r),o.$onReadyPromise$=new Promise(r=>o.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],It(e,o,t.$listeners$),_e.set(e,o)},lt=(e,t)=>t in e,$=(e,t)=>(0,console.error)(e,t),me=new Map,Qn=(e,t,o)=>{const r=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$,i=me.get(s);if(i)return i[r];if(!o||!BUILD.hotModuleReplacement){const a=d=>(me.set(s,d),d[r]);switch(s){case"nylas-if-state_3":return Promise.resolve().then(()=>require("./nylas-if-state_3.entry-2093c593.cjs")).then(a,$);case"document-refresh-icon":return Promise.resolve().then(()=>require("./document-refresh-icon.entry-0e8935fa.cjs")).then(a,$);case"nylas-list-folders":return Promise.resolve().then(()=>require("./nylas-list-folders.entry-dff7a835.cjs")).then(a,$);case"nylas-list-threads":return Promise.resolve().then(()=>require("./nylas-list-threads.entry-edb1d265.cjs")).then(a,$);case"nylas-mailbox-pagination":return Promise.resolve().then(()=>require("./nylas-mailbox-pagination.entry-5b888a0e.cjs")).then(a,$);case"nylas-mailbox-toolbar-button":return Promise.resolve().then(()=>require("./nylas-mailbox-toolbar-button.entry-bb42156a.cjs")).then(a,$);case"nylas-open-hours-picker":return Promise.resolve().then(()=>require("./nylas-open-hours-picker.entry-0f4f34f6.cjs")).then(a,$);case"nylas-provider":return Promise.resolve().then(()=>require("./nylas-provider.entry-cb1ef04e.cjs")).then(a,$);case"nylas-scheduler":return Promise.resolve().then(()=>require("./nylas-scheduler.entry-69ecc3ae.cjs")).then(a,$);case"nylas-scheduler-config":return Promise.resolve().then(()=>require("./nylas-scheduler-config.entry-477d2171.cjs")).then(a,$);case"nylas-threads-refresh":return Promise.resolve().then(()=>require("./nylas-threads-refresh.entry-b35f1b68.cjs")).then(a,$);case"nylas-threads-search":return Promise.resolve().then(()=>require("./nylas-threads-search.entry-2dda7524.cjs")).then(a,$);case"nylas-view-thread":return Promise.resolve().then(()=>require("./nylas-view-thread.entry-1ee0680f.cjs")).then(a,$);case"people-icon":return Promise.resolve().then(()=>require("./people-icon.entry-4a88822e.cjs")).then(a,$);case"archive-icon_7":return Promise.resolve().then(()=>require("./archive-icon_7.entry-0deb31c2.cjs")).then(a,$);case"arrow-icon":return Promise.resolve().then(()=>require("./arrow-icon.entry-fb0ebc89.cjs")).then(a,$);case"forward-icon_6":return Promise.resolve().then(()=>require("./forward-icon_6.entry-903ccd33.cjs")).then(a,$);case"nylas-booked-event-card_10":return Promise.resolve().then(()=>require("./nylas-booked-event-card_10.entry-b181a874.cjs")).then(a,$);case"nylas-scheduler-editor":return Promise.resolve().then(()=>require("./nylas-scheduler-editor.entry-1a95d313.cjs")).then(a,$);case"bold-icon_3":return Promise.resolve().then(()=>require("./bold-icon_3.entry-49e5a1d0.cjs")).then(a,$);case"calendar-check-icon_2":return Promise.resolve().then(()=>require("./calendar-check-icon_2.entry-fa7c033a.cjs")).then(a,$);case"add-circle-icon_13":return Promise.resolve().then(()=>require("./add-circle-icon_13.entry-6dccb5e5.cjs")).then(a,$);case"play-icon_2":return Promise.resolve().then(()=>require("./play-icon_2.entry-bd9f650e.cjs")).then(a,$);case"refresh-icon":return Promise.resolve().then(()=>require("./refresh-icon.entry-678f92e7.cjs")).then(a,$);case"translate-icon":return Promise.resolve().then(()=>require("./translate-icon.entry-0c0dbba6.cjs")).then(a,$);case"warning-icon":return Promise.resolve().then(()=>require("./warning-icon.entry-dbd44cdb.cjs")).then(a,$);case"calendar-cancel-icon":return Promise.resolve().then(()=>require("./calendar-cancel-icon.entry-3f4d6cf2.cjs")).then(a,$);case"calendar-icon":return Promise.resolve().then(()=>require("./calendar-icon.entry-78433555.cjs")).then(a,$);case"info-icon":return Promise.resolve().then(()=>require("./info-icon.entry-85bf3fbc.cjs")).then(a,$);case"loading-icon":return Promise.resolve().then(()=>require("./loading-icon.entry-ae6c7b74.cjs")).then(a,$);case"nylas-form-card":return Promise.resolve().then(()=>require("./nylas-form-card.entry-8fdbefa6.cjs")).then(a,$);case"globe-icon_3":return Promise.resolve().then(()=>require("./globe-icon_3.entry-c6aefc52.cjs")).then(a,$);case"close-icon":return Promise.resolve().then(()=>require("./close-icon.entry-37965d55.cjs")).then(a,$);case"chevron-icon":return Promise.resolve().then(()=>require("./chevron-icon.entry-49b0d3e7.cjs")).then(a,$)}}return import(`./${s}.entry.js`).then(a=>(me.set(s,a),a[r]),$)},le=new Map,Q=typeof window<"u"?window:{},L=Q.document||{head:{}},O={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,r)=>e.addEventListener(t,o,r),rel:(e,t,o,r)=>e.removeEventListener(t,o,r),ce:(e,t)=>new CustomEvent(e,t)},Zn=(()=>{let e=!1;try{L.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Vn=e=>Promise.resolve(e),er=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),ct=[],_t=[],tr=(e,t)=>o=>{e.push(o),Se||(Se=!0,t&&O.$flags$&4?Re(we):O.raf(we))},dt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){$(o)}e.length=0},we=()=>{dt(ct),dt(_t),(Se=ct.length>0)&&O.raf(we)},Re=e=>Vn().then(e),nr=tr(_t,!0);async function rr(){await Promise.resolve().then(()=>require("./elements-dc5b338e-81a0319c.cjs"))}const or=rr,sr=(e,t)=>{if(!(typeof window>"u"))return or(),zn(JSON.parse('[["nylas-scheduler",[[1,"nylas-scheduler",{"mode":[1],"defaultSchedulerStoreState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"cancelBookingId":[1,"cancel-booking-id"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"]}]]],["nylas-scheduler-config",[[1,"nylas-scheduler-config",{"authConfig":[16],"eventOverrides":[16],"defaultAuthStoreState":[16],"defaultSchedulerConfigStoreState":[16],"mode":[1],"automaticComponentRegistration":[32],"loggedInUser":[32]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"schedulerConfigChanged","schedulerConfigChangedHandler"]]]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["nylas-if-state_3",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}],[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}],[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-open-hours-picker",[[1,"nylas-open-hours-picker",{"openHours":[16],"startTime":[1040],"endTime":[1040],"stepMinutes":[2,"step-minutes"],"dragThreshold":[2,"drag-threshold"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"intervalMinutes":[32],"times":[32],"availableTimes":[32],"draggingStartDate":[32],"draggingEndDate":[32],"inverse":[32],"isMobile":[32]},[[9,"resize","onResize"]],{"openHours":["whenOpenHoursChanged"],"availableTimes":["availableTimesChanged"],"inverse":["inverseChanged"]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["people-icon",[[2,"people-icon",{"width":[1],"height":[1]}]]],["info-icon",[[2,"info-icon",{"width":[1],"height":[1]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["close-icon",[[2,"close-icon",{"width":[1],"height":[1]}]]],["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"calendars":[16],"config":[16],"activeTab":[32],"formState":[32]},null,{"config":["configChangedHandler"]}]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["chevron-icon",[[2,"chevron-icon",{"width":[1],"height":[1]}]]],["globe-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32]},[[4,"click","handleOutsideClick"]],{"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"globe-icon",{"width":[1],"height":[1]}],[2,"search-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"bookingFlow":[1,"booking-flow"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16]}],[1,"nylas-notification",{"ttl":[2],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"validationError":[32]},null,{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"cancellationReason":[32],"cancellationError":[32]}],[1,"nylas-cancelled-event-card",{"cancelledEvent":[16]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"isLoading":[4,"is-loading"],"month":[32],"dates":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]],["add-circle-icon_13",[[65,"nylas-availability-picker",{"openHours":[16],"name":[1],"schedule":[32],"timezone":[32],"defaultTimezone":[32],"overlapDays":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"schedule":["scheduleChanged"]}],[65,"nylas-calendar-picker",{"calendars":[16],"organizerEmail":[1,"organizer-email"],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-event-duration",{"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participants":[32],"participantsValid":[32]},null,{"name":["elementNameChangedHandler"]}],[65,"nylas-event-info"],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[65,"nylas-event-description",{"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"]}],[65,"nylas-event-title",{"eventTitle":[1,"event-title"],"name":[1],"title":[32]},null,{"name":["elementNameChangedHandler"]}],[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"defaultSelectedOptions":[16],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[4,"click","handleOutsideClick"]]],[2,"add-circle-icon",{"width":[1],"height":[1]}],[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"setTime":[16],"name":[1],"hasError":[4,"has-error"],"setFormError":[16],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[4,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}],[1,"tooltip-component",{"position":[1]}]]]]'),t)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var ke={exports:{}},K={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ut;function ar(){if(ut)return K;ut=1;var e=j,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(d,c,u){var p,y={},S=null,b=null;u!==void 0&&(S=""+u),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(b=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(y[p]=c[p]);if(d&&d.defaultProps)for(p in c=d.defaultProps,c)y[p]===void 0&&(y[p]=c[p]);return{$$typeof:t,type:d,key:S,ref:b,props:y,_owner:s.current}}return K.Fragment=o,K.jsx=a,K.jsxs=a,K}var X={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ft;function ir(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&function(){var e=j,t=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,P="@@iterator";function T(n){if(n===null||typeof n!="object")return null;var l=k&&n[k]||n[P];return typeof l=="function"?l:null}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(n){{for(var l=arguments.length,h=new Array(l>1?l-1:0),g=1;g<l;g++)h[g-1]=arguments[g];Z("error",n,h)}}function Z(n,l,h){{var g=I.ReactDebugCurrentFrame,E=g.getStackAddendum();E!==""&&(l+="%s",h=h.concat([E]));var C=h.map(function(m){return String(m)});C.unshift("Warning: "+l),Function.prototype.apply.call(console[n],console,C)}}var B=!1,xt=!1,Nt=!1,Lt=!1,At=!1,Oe;Oe=Symbol.for("react.module.reference");function jt(n){return!!(typeof n=="string"||typeof n=="function"||n===r||n===i||At||n===s||n===u||n===p||Lt||n===b||B||xt||Nt||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===y||n.$$typeof===a||n.$$typeof===d||n.$$typeof===c||n.$$typeof===Oe||n.getModuleId!==void 0))}function Dt(n,l,h){var g=n.displayName;if(g)return g;var E=l.displayName||l.name||"";return E!==""?h+"("+E+")":h}function xe(n){return n.displayName||"Context"}function F(n){if(n==null)return null;if(typeof n.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case r:return"Fragment";case o:return"Portal";case i:return"Profiler";case s:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case d:var l=n;return xe(l)+".Consumer";case a:var h=n;return xe(h._context)+".Provider";case c:return Dt(n,n.render,"ForwardRef");case y:var g=n.displayName||null;return g!==null?g:F(n.type)||"Memo";case S:{var E=n,C=E._payload,m=E._init;try{return F(m(C))}catch{return null}}}return null}var U=Object.assign,G=0,Ne,Le,Ae,je,De,Fe,Me;function qe(){}qe.__reactDisabledLog=!0;function Ft(){{if(G===0){Ne=console.log,Le=console.info,Ae=console.warn,je=console.error,De=console.group,Fe=console.groupCollapsed,Me=console.groupEnd;var n={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}G++}}function Mt(){{if(G--,G===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},n,{value:Ne}),info:U({},n,{value:Le}),warn:U({},n,{value:Ae}),error:U({},n,{value:je}),group:U({},n,{value:De}),groupCollapsed:U({},n,{value:Fe}),groupEnd:U({},n,{value:Me})})}G<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=I.ReactCurrentDispatcher,ue;function V(n,l,h){{if(ue===void 0)try{throw Error()}catch(E){var g=E.stack.trim().match(/\n( *(at )?)/);ue=g&&g[1]||""}return`
18
+ `+ue+n}}var fe=!1,ee;{var qt=typeof WeakMap=="function"?WeakMap:Map;ee=new qt}function He(n,l){if(!n||fe)return"";{var h=ee.get(n);if(h!==void 0)return h}var g;fe=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=de.current,de.current=null,Ft();try{if(l){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(M){g=M}Reflect.construct(n,[],m)}else{try{m.call()}catch(M){g=M}n.call(m.prototype)}}else{try{throw Error()}catch(M){g=M}n()}}catch(M){if(M&&g&&typeof M.stack=="string"){for(var v=M.stack.split(`
19
+ `),x=g.stack.split(`
20
+ `),_=v.length-1,R=x.length-1;_>=1&&R>=0&&v[_]!==x[R];)R--;for(;_>=1&&R>=0;_--,R--)if(v[_]!==x[R]){if(_!==1||R!==1)do if(_--,R--,R<0||v[_]!==x[R]){var A=`
21
+ `+v[_].replace(" at new "," at ");return n.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",n.displayName)),typeof n=="function"&&ee.set(n,A),A}while(_>=1&&R>=0);break}}}finally{fe=!1,de.current=C,Mt(),Error.prepareStackTrace=E}var W=n?n.displayName||n.name:"",et=W?V(W):"";return typeof n=="function"&&ee.set(n,et),et}function Ht(n,l,h){return He(n,!1)}function Ut(n){var l=n.prototype;return!!(l&&l.isReactComponent)}function te(n,l,h){if(n==null)return"";if(typeof n=="function")return He(n,Ut(n));if(typeof n=="string")return V(n);switch(n){case u:return V("Suspense");case p:return V("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case c:return Ht(n.render);case y:return te(n.type,l,h);case S:{var g=n,E=g._payload,C=g._init;try{return te(C(E),l,h)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,Ue={},Be=I.ReactDebugCurrentFrame;function re(n){if(n){var l=n._owner,h=te(n.type,n._source,l?l.type:null);Be.setExtraStackFrame(h)}else Be.setExtraStackFrame(null)}function Bt(n,l,h,g,E){{var C=Function.call.bind(ne);for(var m in n)if(C(n,m)){var v=void 0;try{if(typeof n[m]!="function"){var x=Error((g||"React class")+": "+h+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}v=n[m](l,m,g,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){v=_}v&&!(v instanceof Error)&&(re(E),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",h,m,typeof v),re(null)),v instanceof Error&&!(v.message in Ue)&&(Ue[v.message]=!0,re(E),w("Failed %s type: %s",h,v.message),re(null))}}}var zt=Array.isArray;function he(n){return zt(n)}function Wt(n){{var l=typeof Symbol=="function"&&Symbol.toStringTag,h=l&&n[Symbol.toStringTag]||n.constructor.name||"Object";return h}}function Yt(n){try{return ze(n),!1}catch{return!0}}function ze(n){return""+n}function We(n){if(Yt(n))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wt(n)),ze(n)}var J=I.ReactCurrentOwner,Gt={key:!0,ref:!0,__self:!0,__source:!0},Ye,Ge,pe;pe={};function Jt(n){if(ne.call(n,"ref")){var l=Object.getOwnPropertyDescriptor(n,"ref").get;if(l&&l.isReactWarning)return!1}return n.ref!==void 0}function Kt(n){if(ne.call(n,"key")){var l=Object.getOwnPropertyDescriptor(n,"key").get;if(l&&l.isReactWarning)return!1}return n.key!==void 0}function Xt(n,l){if(typeof n.ref=="string"&&J.current&&l&&J.current.stateNode!==l){var h=F(J.current.type);pe[h]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',F(J.current.type),n.ref),pe[h]=!0)}}function Qt(n,l){{var h=function(){Ye||(Ye=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};h.isReactWarning=!0,Object.defineProperty(n,"key",{get:h,configurable:!0})}}function Zt(n,l){{var h=function(){Ge||(Ge=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};h.isReactWarning=!0,Object.defineProperty(n,"ref",{get:h,configurable:!0})}}var Vt=function(n,l,h,g,E,C,m){var v={$$typeof:t,type:n,key:l,ref:h,props:m,_owner:C};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function en(n,l,h,g,E){{var C,m={},v=null,x=null;h!==void 0&&(We(h),v=""+h),Kt(l)&&(We(l.key),v=""+l.key),Jt(l)&&(x=l.ref,Xt(l,E));for(C in l)ne.call(l,C)&&!Gt.hasOwnProperty(C)&&(m[C]=l[C]);if(n&&n.defaultProps){var _=n.defaultProps;for(C in _)m[C]===void 0&&(m[C]=_[C])}if(v||x){var R=typeof n=="function"?n.displayName||n.name||"Unknown":n;v&&Qt(m,R),x&&Zt(m,R)}return Vt(n,v,x,E,g,J.current,m)}}var ye=I.ReactCurrentOwner,Je=I.ReactDebugCurrentFrame;function z(n){if(n){var l=n._owner,h=te(n.type,n._source,l?l.type:null);Je.setExtraStackFrame(h)}else Je.setExtraStackFrame(null)}var ge;ge=!1;function $e(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function Ke(){{if(ye.current){var n=F(ye.current.type);if(n)return`
22
+
23
+ Check the render method of \``+n+"`."}return""}}function tn(n){{if(n!==void 0){var l=n.fileName.replace(/^.*[\\\/]/,""),h=n.lineNumber;return`
24
+
25
+ Check your code at `+l+":"+h+"."}return""}}var Xe={};function nn(n){{var l=Ke();if(!l){var h=typeof n=="string"?n:n.displayName||n.name;h&&(l=`
26
+
27
+ Check the top-level render call using <`+h+">.")}return l}}function Qe(n,l){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var h=nn(l);if(Xe[h])return;Xe[h]=!0;var g="";n&&n._owner&&n._owner!==ye.current&&(g=" It was passed a child from "+F(n._owner.type)+"."),z(n),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,g),z(null)}}function Ze(n,l){{if(typeof n!="object")return;if(he(n))for(var h=0;h<n.length;h++){var g=n[h];$e(g)&&Qe(g,l)}else if($e(n))n._store&&(n._store.validated=!0);else if(n){var E=T(n);if(typeof E=="function"&&E!==n.entries)for(var C=E.call(n),m;!(m=C.next()).done;)$e(m.value)&&Qe(m.value,l)}}}function rn(n){{var l=n.type;if(l==null||typeof l=="string")return;var h;if(typeof l=="function")h=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===c||l.$$typeof===y))h=l.propTypes;else return;if(h){var g=F(l);Bt(h,n.props,"prop",g,n)}else if(l.PropTypes!==void 0&&!ge){ge=!0;var E=F(l);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function on(n){{for(var l=Object.keys(n.props),h=0;h<l.length;h++){var g=l[h];if(g!=="children"&&g!=="key"){z(n),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),z(null);break}}n.ref!==null&&(z(n),w("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function Ve(n,l,h,g,E,C){{var m=jt(n);if(!m){var v="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x=tn(E);x?v+=x:v+=Ke();var _;n===null?_="null":he(n)?_="array":n!==void 0&&n.$$typeof===t?(_="<"+(F(n.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):_=typeof n,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,v)}var R=en(n,l,h,E,C);if(R==null)return R;if(m){var A=l.children;if(A!==void 0)if(g)if(he(A)){for(var W=0;W<A.length;W++)Ze(A[W],n);Object.freeze&&Object.freeze(A)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ze(A,n)}return n===r?on(R):rn(R),R}}function sn(n,l,h){return Ve(n,l,h,!0)}function an(n,l,h){return Ve(n,l,h,!1)}var ln=an,cn=sn;X.Fragment=r,X.jsx=ln,X.jsxs=cn}()),X}process.env.NODE_ENV==="production"?ke.exports=ar():ke.exports=ir();var lr=ke.exports;const cr=e=>e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Rt=e=>e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`),dr=(e,t,o={})=>{if(e instanceof Element){const r=ur(e.classList,t,o);r!==""&&(e.className=r),Object.keys(t).forEach(s=>{if(!(s==="children"||s==="style"||s==="ref"||s==="class"||s==="className"||s==="forwardedRef"))if(s.indexOf("on")===0&&s[2]===s[2].toUpperCase()){const i=s.substring(2),a=i[0].toLowerCase()+i.substring(1);Ot(a)||hr(e,a,t[s])}else e[s]=t[s],typeof t[s]==="string"&&e.setAttribute(Rt(s),t[s])})}},ur=(e,t,o)=>{const r=t.className||t.class,s=o.className||o.class,i=be(e),a=be(r?r.split(" "):[]),d=be(s?s.split(" "):[]),c=[];return i.forEach(u=>{a.has(u)?(c.push(u),a.delete(u)):d.has(u)||c.push(u)}),a.forEach(u=>c.push(u)),c.join(" ")},fr=e=>{switch(e){case"doubleclick":return"dblclick"}return e};/**
28
+ * Checks if an event is supported in the current execution environment.
29
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
30
+ */const Ot=e=>{if(typeof document>"u")return!0;{const t="on"+fr(e);let o=t in document;if(!o){const r=document.createElement("div");r.setAttribute(t,"return;"),o=typeof r[t]=="function"}return o}},hr=(e,t,o)=>{const r=e.__events||(e.__events={}),s=r[t];s&&e.removeEventListener(t,s),e.addEventListener(t,r[t]=function(a){o&&o.call(this,a)})},be=e=>{const t=new Map;return e.forEach(o=>t.set(o,o)),t},pr=(e,t)=>{typeof e=="function"?e(t):e!=null&&(e.current=t)},yr=(...e)=>t=>{e.forEach(o=>{pr(o,t)})},gr=(e,t)=>{const o=(r,s)=>lr.jsx(e,{...r,forwardedRef:s});return o.displayName=t,j.forwardRef(o)},f=(e,t,o,r)=>{r!==void 0&&r();const s=cr(e),i=class extends j.Component{constructor(d){super(d);ve(this,"componentEl");ve(this,"setComponentElRef",d=>{this.componentEl=d})}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(d){dr(this.componentEl,this.props,d)}render(){const{children:d,forwardedRef:c,style:u,className:p,ref:y,...S}=this.props;let b=Object.keys(S).reduce((P,T)=>{const I=S[T];if(T.indexOf("on")===0&&T[2]===T[2].toUpperCase()){const w=T.substring(2).toLowerCase();typeof document<"u"&&Ot(w)&&(P[T]=I)}else{const w=typeof I;(w==="string"||w==="boolean"||w==="number")&&(P[Rt(T)]=I)}return P},{});o&&(b=o(this.props,b));const k={...b,ref:yr(c,this.setComponentElRef),style:u};return j.createElement(e,k,d)}static get displayName(){return s}};return t&&(i.contextType=t),gr(i,s)},$r=f("add-circle-icon"),vr=f("archive-icon"),mr=f("arrow-icon"),br=f("bold-icon"),Er=f("calendar-cancel-icon"),Sr=f("calendar-check-icon"),Cr=f("calendar-icon"),wr=f("calendar-info-icon"),kr=f("calendar-patterns-icon"),Pr=f("checkmark-circle-icon"),Tr=f("chevron-icon"),Ir=f("close-icon"),_r=f("document-refresh-icon"),Rr=f("folder-icon"),Or=f("forward-icon"),xr=f("globe-icon"),Nr=f("inbox-icon"),Lr=f("info-icon"),Ar=f("italic-icon"),jr=f("loading-icon"),Dr=f("multi-select-dropdown"),Fr=f("nylas-additional-participants"),Mr=f("nylas-availability-picker"),qr=f("nylas-booked-event-card"),Hr=f("nylas-booking-form"),Ur=f("nylas-calendar-picker"),Br=f("nylas-cancel-booking-form"),zr=f("nylas-cancelled-event-card"),Wr=f("nylas-composer"),Yr=f("nylas-date-picker"),Gr=f("nylas-event-description"),Jr=f("nylas-event-duration"),Kr=f("nylas-event-info"),Xr=f("nylas-event-title"),Qr=f("nylas-form-card"),Zr=f("nylas-if-state"),Vr=f("nylas-list-folders"),eo=f("nylas-list-threads"),to=f("nylas-locale-switch"),no=f("nylas-login"),ro=f("nylas-logo"),oo=f("nylas-mailbox"),so=f("nylas-mailbox-pagination"),ao=f("nylas-mailbox-toolbar-button"),io=f("nylas-notification"),lo=f("nylas-open-hours-picker"),co=f("nylas-provider"),uo=f("nylas-scheduler"),fo=f("nylas-scheduler-config"),ho=f("nylas-scheduler-editor"),po=f("nylas-selected-event-card"),yo=f("nylas-summarize-message-button"),go=f("nylas-threads-refresh"),$o=f("nylas-threads-search"),vo=f("nylas-time-window-picker"),mo=f("nylas-timeslot-picker"),bo=f("nylas-view-email"),Eo=f("nylas-view-thread"),So=f("people-icon"),Co=f("play-icon"),wo=f("refresh-icon"),ko=f("reply-all-icon"),Po=f("reply-icon"),To=f("search-icon"),Io=f("select-dropdown"),_o=f("sent-icon"),Ro=f("spam-icon"),Oo=f("star-icon"),xo=f("stop-icon"),No=f("tooltip-component"),Lo=f("translate-icon"),Ao=f("trash-icon"),jo=f("underline-icon"),Do=f("warning-icon");function Fo(){const[,e]=j.useReducer(s=>s+1,0),t=j.useRef(),o=j.useRef(null),r=j.useRef(null);return j.useEffect(()=>{t.current&&(o.current||t.current.getNylasMailboxConnector().then(s=>{s&&(o.current=s,r.current=o.current.nylasAuthStore,s.nylasAuthStore.on("set",e),e())}))},[]),[t,r.current]}exports.AddCircleIcon=$r;exports.ArchiveIcon=vr;exports.ArrowIcon=mr;exports.BoldIcon=br;exports.CalendarCancelIcon=Er;exports.CalendarCheckIcon=Sr;exports.CalendarIcon=Cr;exports.CalendarInfoIcon=wr;exports.CalendarPatternsIcon=kr;exports.CheckmarkCircleIcon=Pr;exports.ChevronIcon=Tr;exports.CloseIcon=Ir;exports.DocumentRefreshIcon=_r;exports.FolderIcon=Rr;exports.ForwardIcon=Or;exports.Fragment=Wn;exports.GlobeIcon=xr;exports.Host=yt;exports.InboxIcon=Nr;exports.InfoIcon=Lr;exports.ItalicIcon=Ar;exports.LoadingIcon=jr;exports.MultiSelectDropdown=Dr;exports.NylasAdditionalParticipants=Fr;exports.NylasAvailabilityPicker=Mr;exports.NylasBookedEventCard=qr;exports.NylasBookingForm=Hr;exports.NylasCalendarPicker=Ur;exports.NylasCancelBookingForm=Br;exports.NylasCancelledEventCard=zr;exports.NylasComposer=Wr;exports.NylasDatePicker=Yr;exports.NylasEventDescription=Gr;exports.NylasEventDuration=Jr;exports.NylasEventInfo=Kr;exports.NylasEventTitle=Xr;exports.NylasFormCard=Qr;exports.NylasIfState=Zr;exports.NylasListFolders=Vr;exports.NylasListThreads=eo;exports.NylasLocaleSwitch=to;exports.NylasLogin=no;exports.NylasLogo=ro;exports.NylasMailbox=oo;exports.NylasMailboxPagination=so;exports.NylasMailboxToolbarButton=ao;exports.NylasNotification=io;exports.NylasOpenHoursPicker=lo;exports.NylasProvider=co;exports.NylasScheduler=uo;exports.NylasSchedulerConfig=fo;exports.NylasSchedulerEditor=ho;exports.NylasSelectedEventCard=po;exports.NylasSummarizeMessageButton=yo;exports.NylasThreadsRefresh=go;exports.NylasThreadsSearch=$o;exports.NylasTimeWindowPicker=vo;exports.NylasTimeslotPicker=mo;exports.NylasViewEmail=bo;exports.NylasViewThread=Eo;exports.PeopleIcon=So;exports.PlayIcon=Co;exports.RefreshIcon=wo;exports.ReplyAllIcon=ko;exports.ReplyIcon=Po;exports.SearchIcon=To;exports.SelectDropdown=Io;exports.SentIcon=_o;exports.SpamIcon=Ro;exports.StarIcon=Oo;exports.StopIcon=xo;exports.TooltipComponent=No;exports.TranslateIcon=Lo;exports.TrashIcon=Ao;exports.UnderlineIcon=jo;exports.WarningIcon=Do;exports.applyPolyfills=fn;exports.createEvent=wn;exports.defineCustomElements=sr;exports.forceUpdate=Fn;exports.getElement=gt;exports.getRenderingRef=jn;exports.h=Ie;exports.registerInstance=Kn;exports.useNylasMailboxElement=Fo;