@nylas/react 1.0.0-prealpha1 → 1.0.1-prealpha1

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 (88) hide show
  1. package/dist/add-circle-icon.entry-4b8debfa.js +15 -0
  2. package/dist/add-circle-icon.entry-c5fdaa6f.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-53aede1b.js → archive-icon_7.entry-9f3eca2c.js} +16 -16
  4. package/dist/{archive-icon_7.entry-8c90815a.cjs → archive-icon_7.entry-baecb43c.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-a2f53919.cjs → arrow-icon.entry-9ab0c414.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-2867f4fb.js → arrow-icon.entry-a3b36218.js} +4 -4
  7. package/dist/{bold-icon_3.entry-e0bc6774.cjs → bold-icon_3.entry-50406bc7.cjs} +1 -1
  8. package/dist/{bold-icon_3.entry-ad806730.js → bold-icon_3.entry-b0d81839.js} +6 -6
  9. package/dist/{calendar-cancel-icon.entry-74051835.js → calendar-cancel-icon.entry-0d07e33c.js} +5 -5
  10. package/dist/{calendar-cancel-icon.entry-546b7bd4.cjs → calendar-cancel-icon.entry-8f498984.cjs} +1 -1
  11. package/dist/{calendar-check-icon_3.entry-f5846fee.cjs → calendar-check-icon_3.entry-5415e916.cjs} +1 -1
  12. package/dist/{calendar-check-icon_3.entry-42bab0b4.js → calendar-check-icon_3.entry-cfb612c6.js} +4 -4
  13. package/dist/{calendar-icon.entry-25474b1e.cjs → calendar-icon.entry-219efd7a.cjs} +1 -1
  14. package/dist/{calendar-icon.entry-c751873f.js → calendar-icon.entry-e5f20598.js} +5 -5
  15. package/dist/chevron-icon.entry-3c709061.cjs +1 -0
  16. package/dist/chevron-icon.entry-f5d5d1b1.js +15 -0
  17. package/dist/close-icon_2.entry-eca351c4.js +25 -0
  18. package/dist/{close-icon_2.entry-aa015993.cjs → close-icon_2.entry-fa4f6d3e.cjs} +1 -1
  19. package/dist/{document-refresh-icon.entry-ca2ef29e.cjs → document-refresh-icon.entry-3a29a6e6.cjs} +1 -1
  20. package/dist/{document-refresh-icon.entry-b27207eb.js → document-refresh-icon.entry-89ad42fa.js} +5 -5
  21. package/dist/elements/index.d.ts +4 -0
  22. package/dist/{elements-60ebdb01-24595598.cjs → elements-dc5b338e-81a0319c.cjs} +577 -555
  23. package/dist/{elements-60ebdb01-5d144002.js → elements-dc5b338e-fb5dbfb5.js} +3339 -2763
  24. package/dist/{forward-icon_6.entry-dc8f7235.js → forward-icon_6.entry-0a6dff18.js} +127 -127
  25. package/dist/{forward-icon_6.entry-725d1be4.cjs → forward-icon_6.entry-ce725f05.cjs} +3 -3
  26. package/dist/{globe-icon.entry-796d3f48.js → globe-icon.entry-71414bc6.js} +4 -4
  27. package/dist/{globe-icon.entry-918cfd35.cjs → globe-icon.entry-a0c9599a.cjs} +1 -1
  28. package/dist/index-586a4206.cjs +30 -0
  29. package/dist/{index-4f65b6f9.js → index-98d3a4da.js} +410 -401
  30. package/dist/{index-2b85580a-bfc3ceac.cjs → index-b30d446a-3d69a3cc.cjs} +1 -1
  31. package/dist/{index-2b85580a-f9211f23.js → index-b30d446a-e0eaccad.js} +4 -9
  32. package/dist/{loading-icon.entry-8e49fab0.js → loading-icon.entry-15debb7d.js} +4 -4
  33. package/dist/loading-icon.entry-d2680046.cjs +1 -0
  34. package/dist/{mailbox-store-0019772c-06d31a90.js → mailbox-store-19f0c6c9-23a4e72f.js} +1 -1
  35. package/dist/{mailbox-store-0019772c-d1254c5c.cjs → mailbox-store-19f0c6c9-9a3ef58a.cjs} +1 -1
  36. package/dist/{nylas-booked-event-card_9.entry-ea02f083.cjs → nylas-booked-event-card_10.entry-27efa654.cjs} +6 -139
  37. package/dist/{nylas-booked-event-card_9.entry-d995d7cb.js → nylas-booked-event-card_10.entry-f2481a57.js} +1818 -1927
  38. package/dist/{nylas-if-state_3.entry-e8c831b7.cjs → nylas-if-state_3.entry-6c0bf8eb.cjs} +1 -1
  39. package/dist/{nylas-if-state_3.entry-ce816adb.js → nylas-if-state_3.entry-d805d4c6.js} +6 -6
  40. package/dist/{nylas-list-folders.entry-8134344b.js → nylas-list-folders.entry-472bd255.js} +3 -3
  41. package/dist/{nylas-list-folders.entry-de8cca60.cjs → nylas-list-folders.entry-cc04a07e.cjs} +1 -1
  42. package/dist/{nylas-list-threads.entry-93b70a1a.cjs → nylas-list-threads.entry-795c5a2b.cjs} +1 -1
  43. package/dist/{nylas-list-threads.entry-1367fe30.js → nylas-list-threads.entry-f3266bf7.js} +3 -3
  44. package/dist/{nylas-mailbox-pagination.entry-568ac217.js → nylas-mailbox-pagination.entry-bd0d3bda.js} +2 -2
  45. package/dist/{nylas-mailbox-pagination.entry-6bb0ee37.cjs → nylas-mailbox-pagination.entry-f701fd83.cjs} +1 -1
  46. package/dist/{nylas-mailbox-toolbar-button.entry-9214b283.js → nylas-mailbox-toolbar-button.entry-9641b5cd.js} +8 -8
  47. package/dist/{nylas-mailbox-toolbar-button.entry-d4ad5c15.cjs → nylas-mailbox-toolbar-button.entry-b9d6a3c8.cjs} +1 -1
  48. package/dist/{nylas-open-hours-picker.entry-109f13f5.js → nylas-open-hours-picker.entry-42942946.js} +58 -58
  49. package/dist/{nylas-open-hours-picker.entry-2c19643f.cjs → nylas-open-hours-picker.entry-aa103daf.cjs} +1 -1
  50. package/dist/{nylas-provider.entry-87fa9276.cjs → nylas-provider.entry-5bb55b2d.cjs} +1 -1
  51. package/dist/{nylas-provider.entry-2cfe5f0e.js → nylas-provider.entry-b94198a1.js} +7 -7
  52. package/dist/nylas-scheduler.entry-3b7cb841.js +230 -0
  53. package/dist/nylas-scheduler.entry-ea6fb146.cjs +1 -0
  54. package/dist/{nylas-threads-refresh.entry-6d61a689.cjs → nylas-threads-refresh.entry-4002608b.cjs} +1 -1
  55. package/dist/{nylas-threads-refresh.entry-9111a403.js → nylas-threads-refresh.entry-7d567ed1.js} +4 -4
  56. package/dist/nylas-threads-search.entry-556f1219.cjs +1 -0
  57. package/dist/{nylas-threads-search.entry-2124f663.js → nylas-threads-search.entry-c881d54b.js} +12 -12
  58. package/dist/{nylas-view-thread.entry-4ecbcd78.cjs → nylas-view-thread.entry-6faf1b51.cjs} +1 -1
  59. package/dist/{nylas-view-thread.entry-fe51c1f6.js → nylas-view-thread.entry-d8de6c83.js} +3 -3
  60. package/dist/play-icon_2.entry-2e21b8b9.cjs +1 -0
  61. package/dist/play-icon_2.entry-cae94826.js +25 -0
  62. package/dist/react.cjs +1 -1
  63. package/dist/react.js +57 -53
  64. package/dist/{refresh-icon.entry-9f24e833.cjs → refresh-icon.entry-3e0aef26.cjs} +1 -1
  65. package/dist/{refresh-icon.entry-4ddd53b0.js → refresh-icon.entry-9563850b.js} +4 -4
  66. package/dist/{register-component-55376f31-5eaf8954.js → register-component-152c6ad2-418db864.js} +1 -1
  67. package/dist/{register-component-55376f31-8d6ddee4.cjs → register-component-152c6ad2-b0d34c36.cjs} +1 -1
  68. package/dist/scheduler-store-7d48e682-39104219.js +289 -0
  69. package/dist/scheduler-store-7d48e682-449277d4.cjs +1 -0
  70. package/dist/search-icon_3.entry-9b027cfc.cjs +1 -0
  71. package/dist/search-icon_3.entry-e36548ec.js +101 -0
  72. package/package.json +1 -1
  73. package/dist/chevron-icon.entry-60842fb6.js +0 -15
  74. package/dist/chevron-icon.entry-97e4621e.cjs +0 -1
  75. package/dist/close-icon_2.entry-ef03bd27.js +0 -25
  76. package/dist/index-29d0e781.cjs +0 -30
  77. package/dist/loading-icon.entry-b2534e3e.cjs +0 -1
  78. package/dist/nylas-scheduler.entry-6ec8e574.js +0 -195
  79. package/dist/nylas-scheduler.entry-b41cbf99.cjs +0 -1
  80. package/dist/nylas-threads-search.entry-03073490.cjs +0 -1
  81. package/dist/play-icon_2.entry-8e156535.js +0 -25
  82. package/dist/play-icon_2.entry-cf1cbc8d.cjs +0 -1
  83. package/dist/property-0065dde7-83dc9cc4.cjs +0 -23
  84. package/dist/property-0065dde7-c57b8fa3.js +0 -589
  85. package/dist/scheduler-store-5a39585a-117668e3.js +0 -173
  86. package/dist/scheduler-store-5a39585a-2c848bec.cjs +0 -1
  87. package/dist/translate-icon.entry-0cd24de4.cjs +0 -1
  88. package/dist/translate-icon.entry-db2cdf1d.js +0 -15
@@ -0,0 +1,101 @@
1
+ import { r, h as s, c as l, g as d } from "./index-98d3a4da.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const c = ".sc-search-icon-h{display:flex}", p = c, h = class {
5
+ constructor(e) {
6
+ r(this, e), this.width = "15", this.height = "15";
7
+ }
8
+ render() {
9
+ return s("svg", { key: "baa6b304adc90eb600c71064ab8ec07b371b1584", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "f5fb2b0da29891bc7bec40a3d7537924a2e277f0", 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" }));
10
+ }
11
+ };
12
+ h.style = p;
13
+ const b = ":host{display:block;position:relative}.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{background-color:var(--nylas-base-50);border:1px solid var(--nylas-primary)}.dropbtn:active{border-width:2px}.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}}.dropbtn:hover,.dropbtn:focus{background-color:#f1f1f1}.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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content a:hover,.dropdown-content a: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}", f = b, C = class {
14
+ constructor(e) {
15
+ r(this, e), this.selectedOptionChanged = l(this, "selectedOptionChanged", 7), this.name = void 0, this.options = [], this.defaultSelectedOption = void 0, this.selectedOption = this.defaultSelectedOption || null, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "";
16
+ }
17
+ componentWillLoad() {
18
+ this.filteredOptions = this.options, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]);
19
+ }
20
+ toggleDropdown() {
21
+ this.isOpen = !this.isOpen;
22
+ }
23
+ filterOptions(e) {
24
+ const t = e.target.value;
25
+ this.searchValue = t, this.filteredOptions = this.options.filter((i) => i.label.toLowerCase().includes(t.toLowerCase()));
26
+ }
27
+ selectOption(e) {
28
+ this.selectedOption = e, this.toggleDropdown(), this.selectedOptionChanged.emit({
29
+ value: e.value,
30
+ name: this.name
31
+ });
32
+ }
33
+ handleSelectButtonKeyDown(e) {
34
+ var t;
35
+ switch (e.key) {
36
+ case "ArrowDown":
37
+ case "Enter":
38
+ e.preventDefault(), this.isOpen || this.toggleDropdown(), (t = this.inputRef) == null || t.focus();
39
+ break;
40
+ case "Escape":
41
+ this.isOpen = !1;
42
+ break;
43
+ }
44
+ }
45
+ handleListboxKeydown(e) {
46
+ var n, a;
47
+ const t = this.filteredOptions, i = t.findIndex((o) => o.value === this.ariaActivedescendant);
48
+ if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
49
+ if (e.preventDefault(), i === t.length - 1) {
50
+ this.ariaActivedescendant = "", (n = this.inputRef) == null || n.focus();
51
+ return;
52
+ }
53
+ const o = i + 1 < t.length ? i + 1 : 0;
54
+ this.ariaActivedescendant = t[o].value, this.focusOption(o);
55
+ } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
56
+ if (e.preventDefault(), i === 0) {
57
+ this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
58
+ return;
59
+ }
60
+ const o = i - 1 >= 0 ? i - 1 : t.length - 1;
61
+ this.ariaActivedescendant = t[o].value, this.focusOption(o);
62
+ } else
63
+ e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[i])) : e.key === "Escape" && (this.isOpen = !1);
64
+ }
65
+ focusOption(e) {
66
+ var a;
67
+ const t = this.filteredOptions[e];
68
+ if (!t)
69
+ return;
70
+ const i = t.value, n = (a = this.el.shadowRoot) == null ? void 0 : a.getElementById(i);
71
+ n && (n.focus(), n.scrollIntoView({ behavior: "smooth", block: "nearest" }));
72
+ }
73
+ handleComboboxKeyDown(e) {
74
+ 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);
75
+ }
76
+ handleOutsideClick(e) {
77
+ !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
78
+ }
79
+ render() {
80
+ var e;
81
+ return s("div", { key: "7ebf4768db42ef9d5a220fe2a3c0fbe8f8c604d3", class: "dropdown" }, s("button", { key: "61a3b0bbae22051a086b0731a5665ab4406e0fb6", 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: "524524003a5b1befd04d84a550e8779ba432e6a6", name: "select-icon", "aria-hidden": "true" }), s("span", { key: "55c27a218ae3668c0bc6787fdc43f75b4aa4f421", class: "selected-option" }, (e = this.selectedOption) == null ? void 0 : e.label), s("span", { key: "64e34fc4ce09240416f37653b35a5dc1a4752222", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, s("chevron-icon", { key: "9e602e625986844d519a9c6c9bb8ae62f1cdf84d", width: "16", height: "16" }))), this.isOpen ? s("div", { class: "dropdown-content" }, 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);
82
+ }
83
+ get el() {
84
+ return d(this);
85
+ }
86
+ };
87
+ C.style = f;
88
+ const u = ".sc-translate-icon-h{display:flex}", x = u, w = class {
89
+ constructor(e) {
90
+ r(this, e), this.width = "16", this.height = "16";
91
+ }
92
+ render() {
93
+ return s("svg", { key: "482a971e7045aba7372284ea28e2cac899909663", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, s("path", { key: "9bac1f8dd4c2317376847fe100875fa50ddeaf03", fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" }));
94
+ }
95
+ };
96
+ w.style = x;
97
+ export {
98
+ h as search_icon,
99
+ C as select_dropdown,
100
+ w as translate_icon
101
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylas/react",
3
- "version": "1.0.0-prealpha1",
3
+ "version": "1.0.1-prealpha1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,15 +0,0 @@
1
- import { r as o, h as t } from "./index-4f65b6f9.js";
2
- import "react";
3
- import "react-dom";
4
- const c = ".sc-chevron-icon-h{display:flex}", s = c, h = class {
5
- constructor(e) {
6
- o(this, e), this.width = "24", this.height = "24";
7
- }
8
- render() {
9
- return t("svg", { key: "66d45d1cf445af6a134f04f11e140cc77f5d90ba", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, t("path", { key: "37d2d521c4eaa10f95153418cb9ac919cd32e0fa", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
10
- }
11
- };
12
- h.style = s;
13
- export {
14
- h as chevron_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-29d0e781.cjs");require("react");require("react-dom");const i=".sc-chevron-icon-h{display:flex}",r=i,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="24"}render(){return e.h("svg",{key:"66d45d1cf445af6a134f04f11e140cc77f5d90ba",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},e.h("path",{key:"37d2d521c4eaa10f95153418cb9ac919cd32e0fa",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};t.style=r;exports.chevron_icon=t;
@@ -1,25 +0,0 @@
1
- import { r as c, h as e } from "./index-4f65b6f9.js";
2
- import "react";
3
- import "react-dom";
4
- const t = ".sc-close-icon-h{display:flex}", s = t, n = class {
5
- constructor(a) {
6
- c(this, a), this.width = "16", this.height = "16";
7
- }
8
- render() {
9
- return e("svg", { key: "e77b3e8dd0b306f1bb1bb2dfc75f590b2f9e82fb", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "0123327f2b69723ca3993f61bc5a234e2313f335", "clip-path": "url(#a)" }, e("path", { key: "c7ca66b41ca9c32a4e3a4caca29f734c47f0980e", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), e("defs", { key: "803fff72e1aa3393ce35d46a53ea645c87c6a3de" }, e("clipPath", { key: "08445f41ed8799a3de8d6f499436f753e574d3c9", id: "a" }, e("path", { key: "871a0acb1fc6b9010d69378f260a82e2e1c8750c", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
10
- }
11
- };
12
- n.style = s;
13
- const f = ".sc-warning-icon-h{display:flex}", i = f, l = class {
14
- constructor(a) {
15
- c(this, a), this.width = "16", this.height = "16";
16
- }
17
- render() {
18
- return e("svg", { key: "617fa976a2cbd047050de131b8e5cbf6f3a47e74", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "6e6f4018f180bfb09e37ad897c2b95f74cb5297f", d: "M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z", fill: "currentColor" }));
19
- }
20
- };
21
- l.style = i;
22
- export {
23
- n as close_icon,
24
- l as warning_icon
25
- };
@@ -1,30 +0,0 @@
1
- "use strict";var un=Object.defineProperty;var fn=(e,t,s)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var ve=(e,t,s)=>(fn(e,typeof t!="symbol"?t+"":t,s),s);const N=require("react");require("react-dom");function dn(){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 s=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||!s()||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,L=!1,Ee=null,Se=!1;const F=(e,t="")=>()=>{},pn=(e,t)=>()=>{},$n="{visibility:hidden}.hydrated{visibility:inherit}",ht="slot-fb{display:contents}slot-fb[hidden]{display:none}",tt={},yn="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml",vn=e=>e!=null,Te=e=>(e=typeof e,e==="object"||e==="function");function pt(e){var t,s,r;return(r=(s=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||s===void 0?void 0:s.getAttribute("content"))!==null&&r!==void 0?r:void 0}const _e=(e,t,...s)=>{let r=null,o=null,l=!1,a=!1;const u=[],c=p=>{for(let h=0;h<p.length;h++)r=p[h],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((l=typeof e!="function"&&!Te(r))&&(r=String(r)),l&&a?u[u.length-1].$text$+=r:u.push(l?oe(null,r):r),a=l)};if(c(s),t){t.key&&(o=t.key);{const p=t.className||t.class;p&&(t.class=typeof p!="object"?p:Object.keys(p).filter(h=>p[h]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,u,bn);const d=oe(e,null);return d.$attrs$=t,u.length>0&&(d.$children$=u),d.$key$=o,d},oe=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},$t={},mn=e=>e&&e.$tag$===$t,bn={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(En)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),En=e=>{if(typeof e.vtag=="function"){const s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),_e(e.vtag,s,...e.vchildren||[])}const t=oe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Sn=(e,t)=>e!=null&&!Te(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,yt=e=>q(e).$hostElement$,wn=(e,t,s)=>{const r=yt(e);return{emit:o=>gt(r,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:o})}},gt=(e,t,s)=>{const r=x.ce(t,s);return e.dispatchEvent(r),r},rt=new WeakMap,Cn=(e,t,s)=>{let r=ie.get(e);Vn&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,ie.set(e,r)},kn=(e,t,s)=>{var r;const o=vt(t),l=ie.get(o);if(e=e.nodeType===11?e:A,l)if(typeof l=="string"){e=e.head||e;let a=rt.get(e),u;if(a||rt.set(e,a=new Set),!a.has(o)){{u=A.createElement("style"),u.innerHTML=l;const c=(r=x.$nonce$)!==null&&r!==void 0?r:pt(A);c!=null&&u.setAttribute("nonce",c),e.insertBefore(u,e.querySelector("link"))}t.$flags$&4&&(u.innerHTML+=ht),a&&a.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o},Pn=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=t.$flags$,o=F("attachStyles",t.$tagName$),l=kn(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);r&10&&(s["s-sc"]=l,s.classList.add(l+"-h"),r&2&&s.classList.add(l+"-s")),o()},vt=(e,t)=>"sc-"+e.$tagName$,st=(e,t,s,r,o,l)=>{if(s!==r){let a=lt(e,t),u=t.toLowerCase();if(t==="class"){const c=e.classList,d=ot(s),p=ot(r);c.remove(...d.filter(h=>h&&!p.includes(h))),c.add(...p.filter(h=>h&&!d.includes(h)))}else if(t==="style"){for(const c in s)(!r||r[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in r)(!s||r[c]!==s[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,u)?t=u.slice(2):t=u[2]+t.slice(3),s||r){const c=t.endsWith(mt);t=t.replace(_n,""),s&&x.rel(e,t,s,c),r&&x.ael(e,t,r,c)}}else{const c=Te(r);if((a||c&&r!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{const d=r??"";t==="list"?a=!1:(s==null||e[t]!=d)&&(e[t]=d)}}catch{}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!a||l&4||o)&&!c&&(r=r===!0?"":r,e.setAttribute(t,r))}}},Tn=/\s/,ot=e=>e?e.split(Tn):[],mt="Capture",_n=new RegExp(mt+"$"),bt=(e,t,s,r)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||tt,a=t.$attrs$||tt;for(r in l)r in a||st(o,r,l[r],void 0,s,t.$flags$);for(r in a)st(o,r,l[r],a[r],s,t.$flags$)},ae=(e,t,s,r)=>{const o=t.$children$[s];let l=0,a,u;if(o.$text$!==null)a=o.$elm$=A.createTextNode(o.$text$);else{if(L||(L=o.$tag$==="svg"),a=o.$elm$=A.createElementNS(L?yn:gn,o.$tag$),L&&o.$tag$==="foreignObject"&&(L=!1),bt(null,o,L),vn(se)&&a["s-si"]!==se&&a.classList.add(a["s-si"]=se),o.$children$)for(l=0;l<o.$children$.length;++l)u=ae(e,o,l),u&&a.appendChild(u);o.$tag$==="svg"?L=!1:a.tagName==="foreignObject"&&(L=!0)}return a["s-hn"]=Pe,a},Et=(e,t,s,r,o,l)=>{let a=e,u;for(a.shadowRoot&&a.tagName===Pe&&(a=a.shadowRoot);o<=l;++o)r[o]&&(u=ae(null,s,o),u&&(r[o].$elm$=u,a.insertBefore(u,t)))},St=(e,t,s)=>{for(let r=t;r<=s;++r){const o=e[r];if(o){const l=o.$elm$;wt(o),l&&l.remove()}}},Rn=(e,t,s,r,o=!1)=>{let l=0,a=0,u=0,c=0,d=t.length-1,p=t[0],h=t[d],S=r.length-1,b=r[0],k=r[S],P,T;for(;l<=d&&a<=S;)if(p==null)p=t[++l];else if(h==null)h=t[--d];else if(b==null)b=r[++a];else if(k==null)k=r[--S];else if(re(p,b,o))z(p,b,o),p=t[++l],b=r[++a];else if(re(h,k,o))z(h,k,o),h=t[--d],k=r[--S];else if(re(p,k,o))z(p,k,o),e.insertBefore(p.$elm$,h.$elm$.nextSibling),p=t[++l],k=r[--S];else if(re(h,b,o))z(h,b,o),e.insertBefore(h.$elm$,p.$elm$),h=t[--d],b=r[++a];else{for(u=-1,c=l;c<=d;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===b.$key$){u=c;break}u>=0?(T=t[u],T.$tag$!==b.$tag$?P=ae(t&&t[a],s,u):(z(T,b,o),t[u]=void 0,P=T.$elm$),b=r[++a]):(P=ae(t&&t[a],s,a),b=r[++a]),P&&p.$elm$.parentNode.insertBefore(P,p.$elm$)}l>d?Et(e,r[S+1]==null?null:r[S+1].$elm$,s,r,a,S):a>S&&St(t,l,d)},re=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,z=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,a=t.$tag$,u=t.$text$;u===null?(L=a==="svg"?!0:a==="foreignObject"?!1:L,a==="slot"||bt(e,t,L),o!==null&&l!==null?Rn(r,o,t,l,s):l!==null?(e.$text$!==null&&(r.textContent=""),Et(r,null,t,l,0,l.length-1)):o!==null&&St(o,0,o.length-1),L&&a==="svg"&&(L=!1)):e.$text$!==u&&(r.data=u)},wt=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(wt)},In=(e,t,s=!1)=>{const r=e.$hostElement$,o=e.$vnode$||oe(null,null),l=mn(t)?t:_e(null,null,t);if(Pe=r.tagName,s&&l.$attrs$)for(const a of Object.keys(l.$attrs$))r.hasAttribute(a)&&!["key","ref","style","class"].includes(a)&&(l.$attrs$[a]=r[a]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=o.$elm$=r.shadowRoot||r,se=r["s-sc"],z(o,l,s)},Ct=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},le=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ct(e,e.$ancestorComponent$),tr(()=>xn(e,t))},xn=(e,t)=>{const s=F("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;let o;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([l,a])=>Y(r,l,a)),e.$queuedListeners$=void 0),o=Y(r,"componentWillLoad")),o=at(o,()=>Y(r,"componentWillRender")),s(),at(o,()=>Ln(e,r,t))},at=(e,t)=>On(e)?e.then(t):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ln=async(e,t,s)=>{var r;const o=e.$hostElement$,l=F("update",e.$cmpMeta$.$tagName$),a=o["s-rc"];s&&Pn(e);const u=F("render",e.$cmpMeta$.$tagName$);jn(e,t,o,s),a&&(a.map(c=>c()),o["s-rc"]=void 0),u(),l();{const c=(r=o["s-p"])!==null&&r!==void 0?r:[],d=()=>Nn(e);c.length===0?d():(Promise.all(c).then(d),e.$flags$|=4,c.length=0)}},jn=(e,t,s,r)=>{try{Ee=t,t=t.render(),e.$flags$&=-17,e.$flags$|=2,In(e,t,r)}catch(o){m(o,e.$hostElement$)}return Ee=null,null},An=()=>Ee,Nn=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=F("postUpdate",t),o=e.$lazyInstance$,l=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,Pt(s),Y(o,"componentDidLoad"),r(),e.$onReadyResolve$(s),l||kt()),e.$onInstanceResolve$(s),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ie(()=>le(e,!1)),e.$flags$&=-517},Dn=e=>{{const t=q(e),s=t.$hostElement$.isConnected;return s&&(t.$flags$&18)===2&&le(t,!1),s}},kt=e=>{Pt(A.documentElement),Ie(()=>gt(Q,"appload",{detail:{namespace:hn}}))},Y=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(r){m(r)}},Pt=e=>e.classList.add("hydrated"),Mn=(e,t)=>q(e).$instanceValues$.get(t),Fn=(e,t,s,r)=>{const o=q(e),l=o.$hostElement$,a=o.$instanceValues$.get(t),u=o.$flags$,c=o.$lazyInstance$;s=Sn(s,r.$members$[t][0]);const d=Number.isNaN(a)&&Number.isNaN(s),p=s!==a&&!d;if((!(u&8)||a===void 0)&&p&&(o.$instanceValues$.set(t,s),c)){if(r.$watchers$&&u&128){const h=r.$watchers$[t];h&&h.map(S=>{try{c[S](s,a,t)}catch(b){m(b,l)}})}(u&18)===2&&le(o,!1)}},Tt=(e,t,s)=>{var r;const o=e.prototype;if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$);if(l.map(([a,[u]])=>{u&31||s&2&&u&32?Object.defineProperty(o,a,{get(){return Mn(this,a)},set(c){Fn(this,a,c,t)},configurable:!0,enumerable:!0}):s&1&&u&64&&Object.defineProperty(o,a,{value(...c){var d;const p=q(this);return(d=p==null?void 0:p.$onInstancePromise$)===null||d===void 0?void 0:d.then(()=>{var h;return(h=p.$lazyInstance$)===null||h===void 0?void 0:h[a](...c)})}})}),s&1){const a=new Map;o.attributeChangedCallback=function(u,c,d){x.jmp(()=>{var p;const h=a.get(u);if(this.hasOwnProperty(h))d=this[h],delete this[h];else{if(o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==d)return;if(h==null){const S=q(this),b=S==null?void 0:S.$flags$;if(b&&!(b&8)&&b&128&&d!==c){const k=S.$lazyInstance$,P=(p=t.$watchers$)===null||p===void 0?void 0:p[u];P==null||P.forEach(T=>{k[T]!=null&&k[T].call(k,d,c,u)})}return}}this[h]=d===null&&typeof this[h]=="boolean"?!1:d})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!==null&&r!==void 0?r:{}),...l.filter(([u,c])=>c[0]&15).map(([u,c])=>{const d=c[1]||u;return a.set(d,u),d})]))}}return e},qn=async(e,t,s,r)=>{let o;if(!(t.$flags$&32)){t.$flags$|=32;{if(o=Kn(s),o.then){const c=pn();o=await o,c()}o.isProxied||(s.$watchers$=o.watchers,Tt(o,s,2),o.isProxied=!0);const u=F("createInstance",s.$tagName$);t.$flags$|=8;try{new o(t)}catch(c){m(c)}t.$flags$&=-9,t.$flags$|=128,u(),we(t.$lazyInstance$)}if(o.style){let u=o.style;const c=vt(s);if(!ie.has(c)){const d=F("registerStyles",s.$tagName$);Cn(c,u,!!(s.$flags$&1)),d()}}}const l=t.$ancestorComponent$,a=()=>le(t,!0);l&&l["s-rc"]?l["s-rc"].push(a):a()},we=e=>{Y(e,"connectedCallback")},Un=e=>{if(!(x.$flags$&1)){const t=q(e),s=t.$cmpMeta$,r=F("connectedCallback",s.$tagName$);if(t.$flags$&1)_t(e,t,s.$listeners$),t!=null&&t.$lazyInstance$?we(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>we(t.$lazyInstance$));else{t.$flags$|=1;{let o=e;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ct(t,t.$ancestorComponent$=o);break}}s.$members$&&Object.entries(s.$members$).map(([o,[l]])=>{if(l&31&&e.hasOwnProperty(o)){const a=e[o];delete e[o],e[o]=a}}),qn(e,t,s)}r()}},it=e=>{Y(e,"disconnectedCallback")},Hn=async e=>{if(!(x.$flags$&1)){const t=q(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?it(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>it(t.$lazyInstance$))}},Wn=(e,t={})=>{var s;const r=F(),o=[],l=t.exclude||[],a=Q.customElements,u=A.head,c=u.querySelector("meta[charset]"),d=A.createElement("style"),p=[];let h,S=!0;Object.assign(x,t),x.$resourcesUrl$=new URL(t.resourcesUrl||"./",A.baseURI).href;let b=!1;if(e.map(k=>{k[1].map(P=>{var T;const R={$flags$:P[0],$tagName$:P[1],$members$:P[2],$listeners$:P[3]};R.$flags$&4&&(b=!0),R.$members$=P[2],R.$listeners$=P[3],R.$watchers$=(T=P[4])!==null&&T!==void 0?T:{};const C=R.$tagName$,ce=class extends HTMLElement{constructor(H){super(H),H=this,Xn(H,R),R.$flags$&1&&H.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),S?p.push(this):x.jmp(()=>Un(this))}disconnectedCallback(){x.jmp(()=>Hn(this))}componentOnReady(){return q(this).$onReadyPromise$}};R.$lazyBundleId$=k[0],!l.includes(C)&&!a.get(C)&&(o.push(C),a.define(C,Tt(ce,R,1)))})}),b&&(d.innerHTML+=ht),d.innerHTML+=o+$n,d.innerHTML.length){d.setAttribute("data-styles","");const k=(s=x.$nonce$)!==null&&s!==void 0?s:pt(A);k!=null&&d.setAttribute("nonce",k),u.insertBefore(d,c?c.nextSibling:u.firstChild)}S=!1,p.length?p.map(k=>k.connectedCallback()):x.jmp(()=>h=setTimeout(kt,30)),r()},Bn=(e,t)=>t,_t=(e,t,s,r)=>{s&&s.map(([o,l,a])=>{const u=Yn(e,o),c=zn(t,a),d=Gn(o);x.ael(u,l,c,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>x.rel(u,l,c,d))})},zn=(e,t)=>s=>{try{e.$flags$&256?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(r){m(r)}},Yn=(e,t)=>t&8?Q:t&16?A.body:e,Gn=e=>Qn?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Re=new WeakMap,q=e=>Re.get(e),Jn=(e,t)=>Re.set(t.$lazyInstance$=e,t),Xn=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise(r=>s.$onInstanceResolve$=r),s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],_t(e,s,t.$listeners$),Re.set(e,s)},lt=(e,t)=>t in e,m=(e,t)=>(0,console.error)(e,t),me=new Map,Kn=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,l=me.get(o);if(l)return l[r];if(!s||!BUILD.hotModuleReplacement){const a=u=>(me.set(o,u),u[r]);switch(o){case"nylas-if-state_3":return Promise.resolve().then(()=>require("./nylas-if-state_3.entry-e8c831b7.cjs")).then(a,m);case"document-refresh-icon":return Promise.resolve().then(()=>require("./document-refresh-icon.entry-ca2ef29e.cjs")).then(a,m);case"nylas-list-folders":return Promise.resolve().then(()=>require("./nylas-list-folders.entry-de8cca60.cjs")).then(a,m);case"nylas-list-threads":return Promise.resolve().then(()=>require("./nylas-list-threads.entry-93b70a1a.cjs")).then(a,m);case"nylas-mailbox-pagination":return Promise.resolve().then(()=>require("./nylas-mailbox-pagination.entry-6bb0ee37.cjs")).then(a,m);case"nylas-mailbox-toolbar-button":return Promise.resolve().then(()=>require("./nylas-mailbox-toolbar-button.entry-d4ad5c15.cjs")).then(a,m);case"nylas-open-hours-picker":return Promise.resolve().then(()=>require("./nylas-open-hours-picker.entry-2c19643f.cjs")).then(a,m);case"nylas-provider":return Promise.resolve().then(()=>require("./nylas-provider.entry-87fa9276.cjs")).then(a,m);case"nylas-scheduler":return Promise.resolve().then(()=>require("./nylas-scheduler.entry-b41cbf99.cjs")).then(a,m);case"nylas-threads-refresh":return Promise.resolve().then(()=>require("./nylas-threads-refresh.entry-6d61a689.cjs")).then(a,m);case"nylas-threads-search":return Promise.resolve().then(()=>require("./nylas-threads-search.entry-03073490.cjs")).then(a,m);case"nylas-view-thread":return Promise.resolve().then(()=>require("./nylas-view-thread.entry-4ecbcd78.cjs")).then(a,m);case"archive-icon_7":return Promise.resolve().then(()=>require("./archive-icon_7.entry-8c90815a.cjs")).then(a,m);case"arrow-icon":return Promise.resolve().then(()=>require("./arrow-icon.entry-a2f53919.cjs")).then(a,m);case"forward-icon_6":return Promise.resolve().then(()=>require("./forward-icon_6.entry-725d1be4.cjs")).then(a,m);case"nylas-booked-event-card_9":return Promise.resolve().then(()=>require("./nylas-booked-event-card_9.entry-ea02f083.cjs")).then(a,m);case"bold-icon_3":return Promise.resolve().then(()=>require("./bold-icon_3.entry-e0bc6774.cjs")).then(a,m);case"calendar-cancel-icon":return Promise.resolve().then(()=>require("./calendar-cancel-icon.entry-546b7bd4.cjs")).then(a,m);case"calendar-check-icon_3":return Promise.resolve().then(()=>require("./calendar-check-icon_3.entry-f5846fee.cjs")).then(a,m);case"calendar-icon":return Promise.resolve().then(()=>require("./calendar-icon.entry-25474b1e.cjs")).then(a,m);case"close-icon_2":return Promise.resolve().then(()=>require("./close-icon_2.entry-aa015993.cjs")).then(a,m);case"play-icon_2":return Promise.resolve().then(()=>require("./play-icon_2.entry-cf1cbc8d.cjs")).then(a,m);case"refresh-icon":return Promise.resolve().then(()=>require("./refresh-icon.entry-9f24e833.cjs")).then(a,m);case"translate-icon":return Promise.resolve().then(()=>require("./translate-icon.entry-0cd24de4.cjs")).then(a,m);case"chevron-icon":return Promise.resolve().then(()=>require("./chevron-icon.entry-97e4621e.cjs")).then(a,m);case"globe-icon":return Promise.resolve().then(()=>require("./globe-icon.entry-918cfd35.cjs")).then(a,m);case"loading-icon":return Promise.resolve().then(()=>require("./loading-icon.entry-b2534e3e.cjs")).then(a,m)}}return import(`./${o}.entry.js`).then(a=>(me.set(o,a),a[r]),m)},ie=new Map,Q=typeof window<"u"?window:{},A=Q.document||{head:{}},x={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},Qn=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Zn=e=>Promise.resolve(e),Vn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),ct=[],Rt=[],er=(e,t)=>s=>{e.push(s),Se||(Se=!0,t&&x.$flags$&4?Ie(Ce):x.raf(Ce))},ut=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){m(s)}e.length=0},Ce=()=>{ut(ct),ut(Rt),(Se=ct.length>0)&&x.raf(Ce)},Ie=e=>Zn().then(e),tr=er(Rt,!0);async function nr(){await Promise.resolve().then(()=>require("./elements-60ebdb01-24595598.cjs"))}const rr=nr,sr=(e,t)=>{if(!(typeof window>"u"))return rr(),Wn([["nylas-scheduler",[[1,"nylas-scheduler",{mode:[1],defaultSchedulerStoreState:[16],sessionId:[1,"session-id"],schedulerApiUrl:[1,"scheduler-api-url"],bookingInfo:[16],rescheduleId:[1,"reschedule-id"],eventOverrides:[16],loadingState:[16],themeConfig:[16],automaticComponentRegistration:[32],selectedDateLabel:[32],getNylasSchedulerStore:[64],getNylasSchedulerConnector:[64],getRef:[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"cancelButtonClicked","cancelButtonClickedHandler"],[0,"dateSelected","selectedDateChanged"]],{bookingInfo:["bookingInfoChanged"]}]]],["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]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{query:[1],internalQuery:[32]},null,{query:["onQueryChange"]}]]],["arrow-icon",[[2,"arrow-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]}]]],["refresh-icon",[[2,"refresh-icon",{width:[1],height:[1]}]]],["translate-icon",[[2,"translate-icon",{width:[1],height:[1]}]]],["close-icon_2",[[2,"close-icon",{width:[1],height:[1]}],[2,"warning-icon",{width:[1],height:[1]}]]],["play-icon_2",[[2,"play-icon",{width:[1],height:[1]}],[2,"stop-icon",{width:[1],height:[1]}]]],["chevron-icon",[[2,"chevron-icon",{width:[1],height:[1]}]]],["globe-icon",[[2,"globe-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]}]]],["calendar-check-icon_3",[[2,"calendar-check-icon",{width:[1],height:[1]}],[2,"checkmark-circle-icon",{width:[1],height:[1]}],[2,"people-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]}]]],["nylas-booked-event-card_9",[[1,"nylas-booked-event-card",{eventInfo:[16],bookingFlow:[1,"booking-flow"],bookingInfo:[8,"booking-info"]}],[1,"nylas-locale-switch",{selectedTimezone:[1025,"selected-timezone"],selectedLanguage:[1025,"selected-language"]}],[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",{bookedEventLoading:[4,"booked-event-loading"],bookedEventError:[8,"booked-event-error"],bookingInfo:[8,"booking-info"],eventInfo:[16],name:[32],email:[32],guestEmails:[32],isNameValid:[32],isEmailValid:[32]},null,{bookingInfo:["bookingInfoChangedHandler"]}],[1,"nylas-cancelled-event-card",{cancelledEvent:[16]}],[1,"nylas-date-picker",{selectableDates:[16],selectedDate:[16],loadingState:[8,"loading-state"],month:[32],dates:[32]}],[2,"nylas-logo",{width:[1],height:[1]}],[1,"nylas-timeslot-picker",{selectedDate:[16],availability:[16],selectedTimeslot:[16],loadingState:[16],selectedTimezone:[1,"selected-timezone"],times:[32],hoveredTimeslotIndex:[32],selectedTimeslotIndex:[32]},null,{selectedDate:["selectedDateChanged"],availability:["availabilityChanged"]}]]]],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:{}},X={};/**
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 ft;function or(){if(ft)return X;ft=1;var e=N,t=Symbol.for("react.element"),s=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(u,c,d){var p,h={},S=null,b=null;d!==void 0&&(S=""+d),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(b=c.ref);for(p in c)r.call(c,p)&&!l.hasOwnProperty(p)&&(h[p]=c[p]);if(u&&u.defaultProps)for(p in c=u.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:u,key:S,ref:b,props:h,_owner:o.current}}return X.Fragment=s,X.jsx=a,X.jsxs=a,X}var K={};/**
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 dt;function ar(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=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 i=k&&n[k]||n[P];return typeof i=="function"?i:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(n){{for(var i=arguments.length,f=new Array(i>1?i-1:0),y=1;y<i;y++)f[y-1]=arguments[y];ce("error",n,f)}}function ce(n,i,f){{var y=R.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(i+="%s",f=f.concat([E]));var w=f.map(function(v){return String(v)});w.unshift("Warning: "+i),Function.prototype.apply.call(console[n],console,w)}}var H=!1,Ot=!1,Lt=!1,jt=!1,At=!1,xe;xe=Symbol.for("react.module.reference");function Nt(n){return!!(typeof n=="string"||typeof n=="function"||n===r||n===l||At||n===o||n===d||n===p||jt||n===b||H||Ot||Lt||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===h||n.$$typeof===a||n.$$typeof===u||n.$$typeof===c||n.$$typeof===xe||n.getModuleId!==void 0))}function Dt(n,i,f){var y=n.displayName;if(y)return y;var E=i.displayName||i.name||"";return E!==""?f+"("+E+")":f}function Oe(n){return n.displayName||"Context"}function D(n){if(n==null)return null;if(typeof n.tag=="number"&&C("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 s:return"Portal";case l:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case u:var i=n;return Oe(i)+".Consumer";case a:var f=n;return Oe(f._context)+".Provider";case c:return Dt(n,n.render,"ForwardRef");case h:var y=n.displayName||null;return y!==null?y:D(n.type)||"Memo";case S:{var E=n,w=E._payload,v=E._init;try{return D(v(w))}catch{return null}}}return null}var U=Object.assign,G=0,Le,je,Ae,Ne,De,Me,Fe;function qe(){}qe.__reactDisabledLog=!0;function Mt(){{if(G===0){Le=console.log,je=console.info,Ae=console.warn,Ne=console.error,De=console.group,Me=console.groupCollapsed,Fe=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 Ft(){{if(G--,G===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},n,{value:Le}),info:U({},n,{value:je}),warn:U({},n,{value:Ae}),error:U({},n,{value:Ne}),group:U({},n,{value:De}),groupCollapsed:U({},n,{value:Me}),groupEnd:U({},n,{value:Fe})})}G<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=R.ReactCurrentDispatcher,fe;function Z(n,i,f){{if(fe===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);fe=y&&y[1]||""}return`
18
- `+fe+n}}var de=!1,V;{var qt=typeof WeakMap=="function"?WeakMap:Map;V=new qt}function Ue(n,i){if(!n||de)return"";{var f=V.get(n);if(f!==void 0)return f}var y;de=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=ue.current,ue.current=null,Mt();try{if(i){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(M){y=M}Reflect.construct(n,[],v)}else{try{v.call()}catch(M){y=M}n.call(v.prototype)}}else{try{throw Error()}catch(M){y=M}n()}}catch(M){if(M&&y&&typeof M.stack=="string"){for(var g=M.stack.split(`
19
- `),O=y.stack.split(`
20
- `),_=g.length-1,I=O.length-1;_>=1&&I>=0&&g[_]!==O[I];)I--;for(;_>=1&&I>=0;_--,I--)if(g[_]!==O[I]){if(_!==1||I!==1)do if(_--,I--,I<0||g[_]!==O[I]){var j=`
21
- `+g[_].replace(" at new "," at ");return n.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",n.displayName)),typeof n=="function"&&V.set(n,j),j}while(_>=1&&I>=0);break}}}finally{de=!1,ue.current=w,Ft(),Error.prepareStackTrace=E}var B=n?n.displayName||n.name:"",et=B?Z(B):"";return typeof n=="function"&&V.set(n,et),et}function Ut(n,i,f){return Ue(n,!1)}function Ht(n){var i=n.prototype;return!!(i&&i.isReactComponent)}function ee(n,i,f){if(n==null)return"";if(typeof n=="function")return Ue(n,Ht(n));if(typeof n=="string")return Z(n);switch(n){case d:return Z("Suspense");case p:return Z("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case c:return Ut(n.render);case h:return ee(n.type,i,f);case S:{var y=n,E=y._payload,w=y._init;try{return ee(w(E),i,f)}catch{}}}return""}var te=Object.prototype.hasOwnProperty,He={},We=R.ReactDebugCurrentFrame;function ne(n){if(n){var i=n._owner,f=ee(n.type,n._source,i?i.type:null);We.setExtraStackFrame(f)}else We.setExtraStackFrame(null)}function Wt(n,i,f,y,E){{var w=Function.call.bind(te);for(var v in n)if(w(n,v)){var g=void 0;try{if(typeof n[v]!="function"){var O=Error((y||"React class")+": "+f+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=n[v](i,v,y,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){g=_}g&&!(g instanceof Error)&&(ne(E),C("%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).",y||"React class",f,v,typeof g),ne(null)),g instanceof Error&&!(g.message in He)&&(He[g.message]=!0,ne(E),C("Failed %s type: %s",f,g.message),ne(null))}}}var Bt=Array.isArray;function he(n){return Bt(n)}function zt(n){{var i=typeof Symbol=="function"&&Symbol.toStringTag,f=i&&n[Symbol.toStringTag]||n.constructor.name||"Object";return f}}function Yt(n){try{return Be(n),!1}catch{return!0}}function Be(n){return""+n}function ze(n){if(Yt(n))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(n)),Be(n)}var J=R.ReactCurrentOwner,Gt={key:!0,ref:!0,__self:!0,__source:!0},Ye,Ge,pe;pe={};function Jt(n){if(te.call(n,"ref")){var i=Object.getOwnPropertyDescriptor(n,"ref").get;if(i&&i.isReactWarning)return!1}return n.ref!==void 0}function Xt(n){if(te.call(n,"key")){var i=Object.getOwnPropertyDescriptor(n,"key").get;if(i&&i.isReactWarning)return!1}return n.key!==void 0}function Kt(n,i){if(typeof n.ref=="string"&&J.current&&i&&J.current.stateNode!==i){var f=D(J.current.type);pe[f]||(C('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',D(J.current.type),n.ref),pe[f]=!0)}}function Qt(n,i){{var f=function(){Ye||(Ye=!0,C("%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)",i))};f.isReactWarning=!0,Object.defineProperty(n,"key",{get:f,configurable:!0})}}function Zt(n,i){{var f=function(){Ge||(Ge=!0,C("%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)",i))};f.isReactWarning=!0,Object.defineProperty(n,"ref",{get:f,configurable:!0})}}var Vt=function(n,i,f,y,E,w,v){var g={$$typeof:t,type:n,key:i,ref:f,props:v,_owner:w};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function en(n,i,f,y,E){{var w,v={},g=null,O=null;f!==void 0&&(ze(f),g=""+f),Xt(i)&&(ze(i.key),g=""+i.key),Jt(i)&&(O=i.ref,Kt(i,E));for(w in i)te.call(i,w)&&!Gt.hasOwnProperty(w)&&(v[w]=i[w]);if(n&&n.defaultProps){var _=n.defaultProps;for(w in _)v[w]===void 0&&(v[w]=_[w])}if(g||O){var I=typeof n=="function"?n.displayName||n.name||"Unknown":n;g&&Qt(v,I),O&&Zt(v,I)}return Vt(n,g,O,E,y,J.current,v)}}var $e=R.ReactCurrentOwner,Je=R.ReactDebugCurrentFrame;function W(n){if(n){var i=n._owner,f=ee(n.type,n._source,i?i.type:null);Je.setExtraStackFrame(f)}else Je.setExtraStackFrame(null)}var ye;ye=!1;function ge(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function Xe(){{if($e.current){var n=D($e.current.type);if(n)return`
22
-
23
- Check the render method of \``+n+"`."}return""}}function tn(n){{if(n!==void 0){var i=n.fileName.replace(/^.*[\\\/]/,""),f=n.lineNumber;return`
24
-
25
- Check your code at `+i+":"+f+"."}return""}}var Ke={};function nn(n){{var i=Xe();if(!i){var f=typeof n=="string"?n:n.displayName||n.name;f&&(i=`
26
-
27
- Check the top-level render call using <`+f+">.")}return i}}function Qe(n,i){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var f=nn(i);if(Ke[f])return;Ke[f]=!0;var y="";n&&n._owner&&n._owner!==$e.current&&(y=" It was passed a child from "+D(n._owner.type)+"."),W(n),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,y),W(null)}}function Ze(n,i){{if(typeof n!="object")return;if(he(n))for(var f=0;f<n.length;f++){var y=n[f];ge(y)&&Qe(y,i)}else if(ge(n))n._store&&(n._store.validated=!0);else if(n){var E=T(n);if(typeof E=="function"&&E!==n.entries)for(var w=E.call(n),v;!(v=w.next()).done;)ge(v.value)&&Qe(v.value,i)}}}function rn(n){{var i=n.type;if(i==null||typeof i=="string")return;var f;if(typeof i=="function")f=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===c||i.$$typeof===h))f=i.propTypes;else return;if(f){var y=D(i);Wt(f,n.props,"prop",y,n)}else if(i.PropTypes!==void 0&&!ye){ye=!0;var E=D(i);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sn(n){{for(var i=Object.keys(n.props),f=0;f<i.length;f++){var y=i[f];if(y!=="children"&&y!=="key"){W(n),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),W(null);break}}n.ref!==null&&(W(n),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function Ve(n,i,f,y,E,w){{var v=Nt(n);if(!v){var g="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(g+=" 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 O=tn(E);O?g+=O:g+=Xe();var _;n===null?_="null":he(n)?_="array":n!==void 0&&n.$$typeof===t?(_="<"+(D(n.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):_=typeof n,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,g)}var I=en(n,i,f,E,w);if(I==null)return I;if(v){var j=i.children;if(j!==void 0)if(y)if(he(j)){for(var B=0;B<j.length;B++)Ze(j[B],n);Object.freeze&&Object.freeze(j)}else C("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(j,n)}return n===r?sn(I):rn(I),I}}function on(n,i,f){return Ve(n,i,f,!0)}function an(n,i,f){return Ve(n,i,f,!1)}var ln=an,cn=on;K.Fragment=r,K.jsx=ln,K.jsxs=cn}()),K}process.env.NODE_ENV==="production"?ke.exports=or():ke.exports=ar();var ir=ke.exports;const lr=e=>e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),It=e=>e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`),cr=(e,t,s={})=>{if(e instanceof Element){const r=ur(e.classList,t,s);r!==""&&(e.className=r),Object.keys(t).forEach(o=>{if(!(o==="children"||o==="style"||o==="ref"||o==="class"||o==="className"||o==="forwardedRef"))if(o.indexOf("on")===0&&o[2]===o[2].toUpperCase()){const l=o.substring(2),a=l[0].toLowerCase()+l.substring(1);xt(a)||dr(e,a,t[o])}else e[o]=t[o],typeof t[o]==="string"&&e.setAttribute(It(o),t[o])})}},ur=(e,t,s)=>{const r=t.className||t.class,o=s.className||s.class,l=be(e),a=be(r?r.split(" "):[]),u=be(o?o.split(" "):[]),c=[];return l.forEach(d=>{a.has(d)?(c.push(d),a.delete(d)):u.has(d)||c.push(d)}),a.forEach(d=>c.push(d)),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 xt=e=>{if(typeof document>"u")return!0;{const t="on"+fr(e);let s=t in document;if(!s){const r=document.createElement("div");r.setAttribute(t,"return;"),s=typeof r[t]=="function"}return s}},dr=(e,t,s)=>{const r=e.__events||(e.__events={}),o=r[t];o&&e.removeEventListener(t,o),e.addEventListener(t,r[t]=function(a){s&&s.call(this,a)})},be=e=>{const t=new Map;return e.forEach(s=>t.set(s,s)),t},hr=(e,t)=>{typeof e=="function"?e(t):e!=null&&(e.current=t)},pr=(...e)=>t=>{e.forEach(s=>{hr(s,t)})},$r=(e,t)=>{const s=(r,o)=>ir.jsx(e,{...r,forwardedRef:o});return s.displayName=t,N.forwardRef(s)},$=(e,t,s,r)=>{r!==void 0&&r();const o=lr(e),l=class extends N.Component{constructor(u){super(u);ve(this,"componentEl");ve(this,"setComponentElRef",u=>{this.componentEl=u})}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){cr(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:c,style:d,className:p,ref:h,...S}=this.props;let b=Object.keys(S).reduce((P,T)=>{const R=S[T];if(T.indexOf("on")===0&&T[2]===T[2].toUpperCase()){const C=T.substring(2).toLowerCase();typeof document<"u"&&xt(C)&&(P[T]=R)}else{const C=typeof R;(C==="string"||C==="boolean"||C==="number")&&(P[It(T)]=R)}return P},{});s&&(b=s(this.props,b));const k={...b,ref:pr(c,this.setComponentElRef),style:d};return N.createElement(e,k,u)}static get displayName(){return o}};return t&&(l.contextType=t),$r(l,o)},yr=$("archive-icon"),gr=$("arrow-icon"),vr=$("bold-icon"),mr=$("calendar-cancel-icon"),br=$("calendar-check-icon"),Er=$("calendar-icon"),Sr=$("checkmark-circle-icon"),wr=$("chevron-icon"),Cr=$("close-icon"),kr=$("document-refresh-icon"),Pr=$("folder-icon"),Tr=$("forward-icon"),_r=$("globe-icon"),Rr=$("inbox-icon"),Ir=$("italic-icon"),xr=$("loading-icon"),Or=$("nylas-booked-event-card"),Lr=$("nylas-booking-form"),jr=$("nylas-cancelled-event-card"),Ar=$("nylas-composer"),Nr=$("nylas-date-picker"),Dr=$("nylas-if-state"),Mr=$("nylas-list-folders"),Fr=$("nylas-list-threads"),qr=$("nylas-locale-switch"),Ur=$("nylas-login"),Hr=$("nylas-logo"),Wr=$("nylas-mailbox"),Br=$("nylas-mailbox-pagination"),zr=$("nylas-mailbox-toolbar-button"),Yr=$("nylas-notification"),Gr=$("nylas-open-hours-picker"),Jr=$("nylas-provider"),Xr=$("nylas-scheduler"),Kr=$("nylas-selected-event-card"),Qr=$("nylas-summarize-message-button"),Zr=$("nylas-threads-refresh"),Vr=$("nylas-threads-search"),es=$("nylas-timeslot-picker"),ts=$("nylas-view-email"),ns=$("nylas-view-thread"),rs=$("people-icon"),ss=$("play-icon"),os=$("refresh-icon"),as=$("reply-all-icon"),is=$("reply-icon"),ls=$("sent-icon"),cs=$("spam-icon"),us=$("star-icon"),fs=$("stop-icon"),ds=$("translate-icon"),hs=$("trash-icon"),ps=$("underline-icon"),$s=$("warning-icon");function ys(){const[,e]=N.useReducer(o=>o+1,0),t=N.useRef(),s=N.useRef(null),r=N.useRef(null);return N.useEffect(()=>{t.current&&(s.current||t.current.getNylasMailboxConnector().then(o=>{o&&(s.current=o,r.current=s.current.nylasAuthStore,o.nylasAuthStore.on("set",e),e())}))},[]),[t,r.current]}exports.ArchiveIcon=yr;exports.ArrowIcon=gr;exports.BoldIcon=vr;exports.CalendarCancelIcon=mr;exports.CalendarCheckIcon=br;exports.CalendarIcon=Er;exports.CheckmarkCircleIcon=Sr;exports.ChevronIcon=wr;exports.CloseIcon=Cr;exports.DocumentRefreshIcon=kr;exports.FolderIcon=Pr;exports.ForwardIcon=Tr;exports.Fragment=Bn;exports.GlobeIcon=_r;exports.Host=$t;exports.InboxIcon=Rr;exports.ItalicIcon=Ir;exports.LoadingIcon=xr;exports.NylasBookedEventCard=Or;exports.NylasBookingForm=Lr;exports.NylasCancelledEventCard=jr;exports.NylasComposer=Ar;exports.NylasDatePicker=Nr;exports.NylasIfState=Dr;exports.NylasListFolders=Mr;exports.NylasListThreads=Fr;exports.NylasLocaleSwitch=qr;exports.NylasLogin=Ur;exports.NylasLogo=Hr;exports.NylasMailbox=Wr;exports.NylasMailboxPagination=Br;exports.NylasMailboxToolbarButton=zr;exports.NylasNotification=Yr;exports.NylasOpenHoursPicker=Gr;exports.NylasProvider=Jr;exports.NylasScheduler=Xr;exports.NylasSelectedEventCard=Kr;exports.NylasSummarizeMessageButton=Qr;exports.NylasThreadsRefresh=Zr;exports.NylasThreadsSearch=Vr;exports.NylasTimeslotPicker=es;exports.NylasViewEmail=ts;exports.NylasViewThread=ns;exports.PeopleIcon=rs;exports.PlayIcon=ss;exports.RefreshIcon=os;exports.ReplyAllIcon=as;exports.ReplyIcon=is;exports.SentIcon=ls;exports.SpamIcon=cs;exports.StarIcon=us;exports.StopIcon=fs;exports.TranslateIcon=ds;exports.TrashIcon=hs;exports.UnderlineIcon=ps;exports.WarningIcon=$s;exports.applyPolyfills=dn;exports.createEvent=wn;exports.defineCustomElements=sr;exports.forceUpdate=Dn;exports.getElement=yt;exports.getRenderingRef=An;exports.h=_e;exports.registerInstance=Jn;exports.useNylasMailboxElement=ys;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-29d0e781.cjs");require("react");require("react-dom");const i=".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}",n=i,a=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("div",{key:"236ae2f76a43a73bf12500c37a1315a798ee6682",class:"wave"},e.h("div",{key:"53991ce94d24ad556b00eaf5a1110ce5ff442333",class:"dot"}),e.h("div",{key:"d0a4ba7f5c52e2942370b630a58dc7843d717ba3",class:"dot"}),e.h("div",{key:"a14c7426974e5d6eae289967b301dce3e6d2db39",class:"dot"}))}};a.style=n;exports.loading_icon=a;
@@ -1,195 +0,0 @@
1
- import { r as y, c as p, h as n, H as d, g as v, F as _ } from "./index-4f65b6f9.js";
2
- import { n as m, N as k } from "./index-2b85580a-f9211f23.js";
3
- import { d as g } from "./utils-5074a070-ce33ee6b.js";
4
- import { C as w, N as S } from "./scheduler-store-5a39585a-117668e3.js";
5
- import "react";
6
- import "react-dom";
7
- class x {
8
- constructor({ schedulerAPIURL: e, nylasSchedulerStore: s, sessionId: i }) {
9
- if (!e)
10
- throw new Error("schedulerAPIURL is required");
11
- if (!s)
12
- throw new Error("nylasSchedulerStore is required");
13
- if (!i)
14
- throw new Error("sessionId is required");
15
- e === "/" && (e = new URL(window.location.href).origin), this.sessionId = i, this.schedulerAPIURL = e, this.nylasSchedulerStore = s;
16
- }
17
- init() {
18
- g("NylasConnector init");
19
- }
20
- get schedulerStore() {
21
- return this.nylasSchedulerStore;
22
- }
23
- get scheduler() {
24
- return this._schedulerAPIConnector ? this._schedulerAPIConnector : (this._schedulerAPIConnector = new S({
25
- schedulerAPIURL: this.schedulerAPIURL,
26
- schedulerStore: this.schedulerStore,
27
- sessionId: this.sessionId
28
- }), this._schedulerAPIConnector);
29
- }
30
- resetStores() {
31
- this.nylasSchedulerStore.reset();
32
- }
33
- }
34
- const c = (t, e) => {
35
- const s = t.loadingState && !!t.loadingState.api;
36
- return n(
37
- _,
38
- null,
39
- s && n(
40
- "div",
41
- { class: "loading" },
42
- n(
43
- "div",
44
- { class: "left" },
45
- n("div", { class: "skeleton" })
46
- ),
47
- n(
48
- "div",
49
- { class: "right" },
50
- n("div", { class: "skeleton" }),
51
- n("div", { class: "skeleton" }),
52
- n("div", { class: "skeleton" }),
53
- n("div", { class: "skeleton" }),
54
- n("div", { class: "skeleton" })
55
- )
56
- ),
57
- !s && e,
58
- n("nylas-notification", null),
59
- n(
60
- "div",
61
- { class: "footer" },
62
- "Powered by  ",
63
- n("nylas-logo", null)
64
- )
65
- );
66
- }, C = ":host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);--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;background:var(--nylas-base-0);position:relative}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page{display:flex}.additional-data-page{background-color:var(--nylas-base-50)}.booked-event-page{background-color:var(--nylas-base-50)}.cancelled-event-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.cancelled-event-page{min-width:784px}.left-panel{padding-left:1.5rem;padding-right:1.5rem;padding-top:1rem;gap:1rem;border-right-width:1px;height:500px;min-width:384px}.border{margin-left:-1.5rem;margin-right:-1.5rem;border-top-width:1px;height:1px;background-color:var(--nylas-base-200)}.right-panel{display:flex;overflow:hidden;flex-direction:column;justify-content:flex-start;align-items:center;min-width:360px;background-color:var(--nylas-base-50)}.right-panel .wrapper{width:100%}.right-panel .wrapper h2{display:flex;margin-bottom:1rem;margin-top:1.5rem;gap:0.25rem;justify-content:center;align-items:center;width:100%;font-size:1.125rem;line-height:1.75rem;font-weight:600;text-align:center;width:100%}nylas-selected-event-card,nylas-booking-form{height:496px}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-100)}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}", I = C, b = { title: "Something went wrong...", type: m.Error, category: "internal" }, D = class {
67
- constructor(t) {
68
- y(this, t), this.init = p(this, "init", 7), this.nylasSchedulerError = p(this, "nylasSchedulerError", 7), this.mode = "app", this.defaultSchedulerStoreState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://elements-staging.us.nylas.com", this.bookingInfo = void 0, this.rescheduleId = void 0, this.eventOverrides = {}, this.loadingState = void 0, this.themeConfig = void 0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || "No date selected";
69
- }
70
- connectedCallback() {
71
- g("[nylas-scheduler] connectedCallback");
72
- }
73
- async componentWillLoad() {
74
- var e, s;
75
- if (g("[nylas-scheduler] Component will load", { eventOverrides: this.eventOverrides }), !this.sessionId)
76
- throw new Error("The page slug or session Id is required");
77
- this.stores = {
78
- scheduler: w({
79
- bookingInfo: this.bookingInfo,
80
- ...this.defaultSchedulerStoreState
81
- })
82
- }, this.baseProvider = new k(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides);
83
- const t = (e = this.baseProvider) == null ? void 0 : e.getStore("scheduler");
84
- if (this.nylasSchedulerConnector = new x({
85
- schedulerAPIURL: this.schedulerApiUrl,
86
- sessionId: this.sessionId,
87
- nylasSchedulerStore: t
88
- }), this.init.emit(this.host), (s = this.baseProvider) == null || s.componentWillLoad(this.nylasSchedulerConnector), this.themeConfig)
89
- for (const [i, a] of Object.entries(this.themeConfig))
90
- this.host.style.setProperty(`${i}`, a);
91
- }
92
- async componentDidLoad() {
93
- var o, r, l, u;
94
- (o = this.baseProvider) == null || o.componentDidLoad();
95
- let t;
96
- const e = (r = this.baseProvider) == null ? void 0 : r.getStore("scheduler"), s = e == null ? void 0 : e.get("selectedDate");
97
- if (!s)
98
- t = await ((l = this.nylasSchedulerConnector) == null ? void 0 : l.scheduler.getAvailability());
99
- else {
100
- const h = new Date(s.getFullYear(), s.getMonth(), 1).getTime() / 1e3, f = new Date(s.getFullYear(), s.getMonth() + 1, 1).getTime() / 1e3;
101
- t = await ((u = this.nylasSchedulerConnector) == null ? void 0 : u.scheduler.getAvailability(h, f));
102
- }
103
- (!t || "error" in t) && this.nylasSchedulerError.emit({ ...this.getErrorObject(t == null ? void 0 : t.error) });
104
- const i = e == null ? void 0 : e.get("availability").find((h) => new Date(h.start_time) > /* @__PURE__ */ new Date());
105
- let a = /* @__PURE__ */ new Date();
106
- i && (a = i.start_time), e == null || e.set("selectedDate", a), this.selectedDateLabel = a.toLocaleDateString(void 0, { dateStyle: "full" }) || "No date selected";
107
- }
108
- componentDisconnected() {
109
- var t;
110
- (t = this.baseProvider) == null || t.componentDisconnected();
111
- }
112
- bookingInfoChanged(t) {
113
- var e;
114
- (e = this.stores) == null || e.scheduler.set("bookingInfo", t);
115
- }
116
- async registerComponentHandler(t) {
117
- var e;
118
- (e = this.baseProvider) == null || e.registerComponent(t.detail);
119
- }
120
- async unregisterComponentHandler(t) {
121
- var e;
122
- (e = this.baseProvider) == null || e.unregisterComponent(t.detail);
123
- }
124
- async monthChangedHandler(t) {
125
- var o;
126
- const e = t.detail, s = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3, a = await ((o = this.nylasSchedulerConnector) == null ? void 0 : o.scheduler.getAvailability(s, i));
127
- (!a || "error" in a) && this.nylasSchedulerError.emit({ ...this.getErrorObject(a == null ? void 0 : a.error) });
128
- }
129
- async bookButtonClickedHandler(t) {
130
- var s, i, a, o;
131
- if (this.rescheduleId) {
132
- const r = await ((s = this.nylasSchedulerConnector) == null ? void 0 : s.scheduler.rescheduleBooking(this.rescheduleId, t.detail));
133
- !r || "error" in r ? this.nylasSchedulerError.emit({ ...this.getErrorObject(r == null ? void 0 : r.error) }) : (i = this.baseProvider) == null || i.getStore("scheduler").set("showThankYouMessage", !0);
134
- return;
135
- }
136
- const e = await ((a = this.nylasSchedulerConnector) == null ? void 0 : a.scheduler.bookTimeslot(t.detail));
137
- !e || "error" in e ? this.nylasSchedulerError.emit({ ...this.getErrorObject(e == null ? void 0 : e.error) }) : (o = this.baseProvider) == null || o.getStore("scheduler").set("showThankYouMessage", !0);
138
- }
139
- async cancelButtonClickedHandler() {
140
- var t, e;
141
- (t = this.baseProvider) == null || t.getStore("scheduler").set("bookedEventLoading", !1), (e = this.baseProvider) == null || e.getStore("scheduler").set("bookedEventError", null);
142
- }
143
- selectedDateChanged(t) {
144
- const e = t.detail;
145
- this.selectedDateLabel = e ? e.toLocaleDateString(void 0, { dateStyle: "full" }) : "No date selected";
146
- }
147
- async getNylasSchedulerStore() {
148
- var t;
149
- return (t = this.baseProvider) == null ? void 0 : t.getStore("scheduler");
150
- }
151
- async getNylasSchedulerConnector() {
152
- return this.nylasSchedulerConnector;
153
- }
154
- async getRef() {
155
- return this.host;
156
- }
157
- getErrorObject(t) {
158
- return {
159
- title: (t == null ? void 0 : t.title) || b.title,
160
- category: (t == null ? void 0 : t.type) || b.category,
161
- type: m.Error,
162
- description: (t == null ? void 0 : t.message) || "",
163
- id: (/* @__PURE__ */ new Date()).getTime().toString()
164
- };
165
- }
166
- render() {
167
- var r;
168
- const t = this.mode === "app", e = (r = this.baseProvider) == null ? void 0 : r.getStore("scheduler"), s = e == null ? void 0 : e.get("eventInfo"), i = e == null ? void 0 : e.get("showThankYouMessage"), a = e == null ? void 0 : e.get("showBookingForm"), o = e == null ? void 0 : e.get("cancelledEvent");
169
- if (t && o)
170
- return n(d, null, n(c, { loadingState: this.loadingState }, n("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, n("nylas-cancelled-event-card", { cancelledEvent: o, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))));
171
- if (t && i && s)
172
- return n(d, null, n(c, { loadingState: this.loadingState }, n("div", { class: "booked-event-page", part: "booked-event-page" }, n("nylas-booked-event-card", { eventInfo: s, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))));
173
- if (t && !i && !a) {
174
- const l = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
175
- return n(d, null, n(c, { loadingState: this.loadingState }, n("div", { class: "select-date-page", part: "select-date-page" }, n("div", { class: "left-panel" }, n("nylas-date-picker", { exportparts: "ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), n("div", { class: "border" }), n("nylas-locale-switch", null)), n("div", { class: "right-panel" }, n("div", { class: "wrapper" }, n("h2", null, n("calendar-icon", null), n("span", { id: "selectedDate" }, this.selectedDateLabel)), n("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, l && n("span", { slot: "timeslot-picker-cta-label" }, n("slot", { name: "timeslot-picker-cta-label" }))))))));
176
- }
177
- if (t && !i && a) {
178
- const l = this.host.querySelector('[slot="custom-booking-form"]');
179
- return n(d, null, n(c, { loadingState: this.loadingState }, n("div", { class: "additional-data-page", part: "additional-data-page" }, n("div", { class: "left-panel" }, n("div", { class: "wrapper" }, n("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time" }))), n("div", { class: "right-panel" }, n("div", { class: "wrapper" }, n("nylas-booking-form", { exportparts: "nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline" }, l && n("div", { slot: "custom-booking-form" }, n("slot", { name: "custom-booking-form" }))))))));
180
- }
181
- return n(d, null, n("slot", null));
182
- }
183
- get host() {
184
- return v(this);
185
- }
186
- static get watchers() {
187
- return {
188
- bookingInfo: ["bookingInfoChanged"]
189
- };
190
- }
191
- };
192
- D.style = I;
193
- export {
194
- D as nylas_scheduler
195
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-29d0e781.cjs"),h=require("./index-2b85580a-bfc3ceac.cjs"),g=require("./utils-5074a070-d5ba6add.cjs"),b=require("./scheduler-store-5a39585a-2c848bec.cjs");require("react");require("react-dom");class f{constructor({schedulerAPIURL:t,nylasSchedulerStore:s,sessionId:i}){if(!t)throw new Error("schedulerAPIURL is required");if(!s)throw new Error("nylasSchedulerStore is required");if(!i)throw new Error("sessionId is required");t==="/"&&(t=new URL(window.location.href).origin),this.sessionId=i,this.schedulerAPIURL=t,this.nylasSchedulerStore=s}init(){g.debug("NylasConnector init")}get schedulerStore(){return this.nylasSchedulerStore}get scheduler(){return this._schedulerAPIConnector?this._schedulerAPIConnector:(this._schedulerAPIConnector=new b.NylaSchedulerAPIConnector({schedulerAPIURL:this.schedulerAPIURL,schedulerStore:this.schedulerStore,sessionId:this.sessionId}),this._schedulerAPIConnector)}resetStores(){this.nylasSchedulerStore.reset()}}const d=(n,t)=>{const s=n.loadingState&&!!n.loadingState.api;return e.h(e.Fragment,null,s&&e.h("div",{class:"loading"},e.h("div",{class:"left"},e.h("div",{class:"skeleton"})),e.h("div",{class:"right"},e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}))),!s&&t,e.h("nylas-notification",null),e.h("div",{class:"footer"},"Powered by  ",e.h("nylas-logo",null)))},v=":host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);--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;background:var(--nylas-base-0);position:relative}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page{display:flex}.additional-data-page{background-color:var(--nylas-base-50)}.booked-event-page{background-color:var(--nylas-base-50)}.cancelled-event-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.cancelled-event-page{min-width:784px}.left-panel{padding-left:1.5rem;padding-right:1.5rem;padding-top:1rem;gap:1rem;border-right-width:1px;height:500px;min-width:384px}.border{margin-left:-1.5rem;margin-right:-1.5rem;border-top-width:1px;height:1px;background-color:var(--nylas-base-200)}.right-panel{display:flex;overflow:hidden;flex-direction:column;justify-content:flex-start;align-items:center;min-width:360px;background-color:var(--nylas-base-50)}.right-panel .wrapper{width:100%}.right-panel .wrapper h2{display:flex;margin-bottom:1rem;margin-top:1.5rem;gap:0.25rem;justify-content:center;align-items:center;width:100%;font-size:1.125rem;line-height:1.75rem;font-weight:600;text-align:center;width:100%}nylas-selected-event-card,nylas-booking-form{height:496px}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-100)}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}",_=v,p={title:"Something went wrong...",type:h.nr.Error,category:"internal"},m=class{constructor(n){e.registerInstance(this,n),this.init=e.createEvent(this,"init",7),this.nylasSchedulerError=e.createEvent(this,"nylasSchedulerError",7),this.mode="app",this.defaultSchedulerStoreState=void 0,this.sessionId=void 0,this.schedulerApiUrl="https://elements-staging.us.nylas.com",this.bookingInfo=void 0,this.rescheduleId=void 0,this.eventOverrides={},this.loadingState=void 0,this.themeConfig=void 0,this.automaticComponentRegistration=!0,this.selectedDateLabel=new Date().toLocaleDateString(void 0,{dateStyle:"full"})||"No date selected"}connectedCallback(){g.debug("[nylas-scheduler] connectedCallback")}async componentWillLoad(){var t,s;if(g.debug("[nylas-scheduler] Component will load",{eventOverrides:this.eventOverrides}),!this.sessionId)throw new Error("The page slug or session Id is required");this.stores={scheduler:b.CreateNylasSchedulerStore({bookingInfo:this.bookingInfo,...this.defaultSchedulerStoreState})},this.baseProvider=new h.NylasBaseProvider(this.host,this.stores,this.automaticComponentRegistration,this.eventOverrides);const n=(t=this.baseProvider)==null?void 0:t.getStore("scheduler");if(this.nylasSchedulerConnector=new f({schedulerAPIURL:this.schedulerApiUrl,sessionId:this.sessionId,nylasSchedulerStore:n}),this.init.emit(this.host),(s=this.baseProvider)==null||s.componentWillLoad(this.nylasSchedulerConnector),this.themeConfig)for(const[i,a]of Object.entries(this.themeConfig))this.host.style.setProperty(`${i}`,a)}async componentDidLoad(){var r,o,l,u;(r=this.baseProvider)==null||r.componentDidLoad();let n;const t=(o=this.baseProvider)==null?void 0:o.getStore("scheduler"),s=t==null?void 0:t.get("selectedDate");if(!s)n=await((l=this.nylasSchedulerConnector)==null?void 0:l.scheduler.getAvailability());else{const c=new Date(s.getFullYear(),s.getMonth(),1).getTime()/1e3,y=new Date(s.getFullYear(),s.getMonth()+1,1).getTime()/1e3;n=await((u=this.nylasSchedulerConnector)==null?void 0:u.scheduler.getAvailability(c,y))}(!n||"error"in n)&&this.nylasSchedulerError.emit({...this.getErrorObject(n==null?void 0:n.error)});const i=t==null?void 0:t.get("availability").find(c=>new Date(c.start_time)>new Date);let a=new Date;i&&(a=i.start_time),t==null||t.set("selectedDate",a),this.selectedDateLabel=a.toLocaleDateString(void 0,{dateStyle:"full"})||"No date selected"}componentDisconnected(){var n;(n=this.baseProvider)==null||n.componentDisconnected()}bookingInfoChanged(n){var t;(t=this.stores)==null||t.scheduler.set("bookingInfo",n)}async registerComponentHandler(n){var t;(t=this.baseProvider)==null||t.registerComponent(n.detail)}async unregisterComponentHandler(n){var t;(t=this.baseProvider)==null||t.unregisterComponent(n.detail)}async monthChangedHandler(n){var r;const t=n.detail,s=new Date(t.getFullYear(),t.getMonth(),1).getTime()/1e3,i=new Date(t.getFullYear(),t.getMonth()+1,1).getTime()/1e3,a=await((r=this.nylasSchedulerConnector)==null?void 0:r.scheduler.getAvailability(s,i));(!a||"error"in a)&&this.nylasSchedulerError.emit({...this.getErrorObject(a==null?void 0:a.error)})}async bookButtonClickedHandler(n){var s,i,a,r;if(this.rescheduleId){const o=await((s=this.nylasSchedulerConnector)==null?void 0:s.scheduler.rescheduleBooking(this.rescheduleId,n.detail));!o||"error"in o?this.nylasSchedulerError.emit({...this.getErrorObject(o==null?void 0:o.error)}):(i=this.baseProvider)==null||i.getStore("scheduler").set("showThankYouMessage",!0);return}const t=await((a=this.nylasSchedulerConnector)==null?void 0:a.scheduler.bookTimeslot(n.detail));!t||"error"in t?this.nylasSchedulerError.emit({...this.getErrorObject(t==null?void 0:t.error)}):(r=this.baseProvider)==null||r.getStore("scheduler").set("showThankYouMessage",!0)}async cancelButtonClickedHandler(){var n,t;(n=this.baseProvider)==null||n.getStore("scheduler").set("bookedEventLoading",!1),(t=this.baseProvider)==null||t.getStore("scheduler").set("bookedEventError",null)}selectedDateChanged(n){const t=n.detail;this.selectedDateLabel=t?t.toLocaleDateString(void 0,{dateStyle:"full"}):"No date selected"}async getNylasSchedulerStore(){var n;return(n=this.baseProvider)==null?void 0:n.getStore("scheduler")}async getNylasSchedulerConnector(){return this.nylasSchedulerConnector}async getRef(){return this.host}getErrorObject(n){return{title:(n==null?void 0:n.title)||p.title,category:(n==null?void 0:n.type)||p.category,type:h.nr.Error,description:(n==null?void 0:n.message)||"",id:new Date().getTime().toString()}}render(){var o;const n=this.mode==="app",t=(o=this.baseProvider)==null?void 0:o.getStore("scheduler"),s=t==null?void 0:t.get("eventInfo"),i=t==null?void 0:t.get("showThankYouMessage"),a=t==null?void 0:t.get("showBookingForm"),r=t==null?void 0:t.get("cancelledEvent");if(n&&r)return e.h(e.Host,null,e.h(d,{loadingState:this.loadingState},e.h("div",{class:"cancelled-event-page",part:"cancelled-event-page"},e.h("nylas-cancelled-event-card",{cancelledEvent:r,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))));if(n&&i&&s)return e.h(e.Host,null,e.h(d,{loadingState:this.loadingState},e.h("div",{class:"booked-event-page",part:"booked-event-page"},e.h("nylas-booked-event-card",{eventInfo:s,exportparts:"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta"}))));if(n&&!i&&!a){const l=this.host.querySelector('[slot="timeslot-picker-cta-label"]');return e.h(e.Host,null,e.h(d,{loadingState:this.loadingState},e.h("div",{class:"select-date-page",part:"select-date-page"},e.h("div",{class:"left-panel"},e.h("nylas-date-picker",{exportparts:"ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month"}),e.h("div",{class:"border"}),e.h("nylas-locale-switch",null)),e.h("div",{class:"right-panel"},e.h("div",{class:"wrapper"},e.h("h2",null,e.h("calendar-icon",null),e.h("span",{id:"selectedDate"},this.selectedDateLabel)),e.h("nylas-timeslot-picker",{exportparts:"ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary"},l&&e.h("span",{slot:"timeslot-picker-cta-label"},e.h("slot",{name:"timeslot-picker-cta-label"}))))))))}if(n&&!i&&a){const l=this.host.querySelector('[slot="custom-booking-form"]');return e.h(e.Host,null,e.h(d,{loadingState:this.loadingState},e.h("div",{class:"additional-data-page",part:"additional-data-page"},e.h("div",{class:"left-panel"},e.h("div",{class:"wrapper"},e.h("nylas-selected-event-card",{exportparts:"nsec, nsec__card, nsec__icon, nsec__date, nsec__time"}))),e.h("div",{class:"right-panel"},e.h("div",{class:"wrapper"},e.h("nylas-booking-form",{exportparts:"nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline"},l&&e.h("div",{slot:"custom-booking-form"},e.h("slot",{name:"custom-booking-form"}))))))))}return e.h(e.Host,null,e.h("slot",null))}get host(){return e.getElement(this)}static get watchers(){return{bookingInfo:["bookingInfoChanged"]}}};m.style=_;exports.nylas_scheduler=m;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-29d0e781.cjs"),d=require("./register-component-55376f31-8d6ddee4.cjs"),h=require("./utils-5074a070-d5ba6add.cjs");require("react");require("react-dom");const y=":host{display:block}sp-search{width:100%;border:0}",f=y;var p=function(t,e,n,a){var c=arguments.length,r=c<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,n):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,n,a);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(r=(c<3?o(r):c>3?o(e,n,r):o(e,n))||r);return c>3&&r&&Object.defineProperty(e,n,r),r},l=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const u=class{constructor(t){s.registerInstance(this,t),this.search=s.createEvent(this,"search",7),this.onSearch=async e=>{e.preventDefault(),e.stopPropagation();const a=e.target.value;a!==this.internalQuery&&(this.internalQuery=a,this.search.emit(this.internalQuery))},this.query="",this.internalQuery=""}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){h.debug("[nylas-threads-search] Component will load")}async componentDidLoad(){h.debug("[nylas-threads-search] Component did load")}onQueryChange(){this.internalQuery=this.query}render(){return s.h(s.Host,{key:"8cec946ccaeb5fe2bf8f1282eaf5bb1e471fdc1d"},s.h("sp-theme",{key:"5795406abf802029c3722835aced9fd8bc562ef1",scale:"medium",color:"dark"},s.h("sp-search",{key:"e8c140f3a65a05106156af09a7bdf1c35f709ed1",quiet:!0,onSubmit:this.onSearch,onBlur:this.onSearch,value:this.internalQuery})))}static get watchers(){return{query:["onQueryChange"]}}};p([d.RegisterComponent({name:"nylas-pagination",stateToProps:new Map([["mailbox.searchQuery","query"]]),eventToProps:{search:async(t,e)=>{await e.threads.getThreads({search_query_native:t.detail||void 0,page_token:void 0})}},fireRegisterEvent:!0}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],u.prototype,"render",null);u.style=f;exports.nylas_threads_search=u;
@@ -1,25 +0,0 @@
1
- import { r as o, h as t } from "./index-4f65b6f9.js";
2
- import "react";
3
- import "react-dom";
4
- const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
5
- constructor(s) {
6
- o(this, s), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "5f4b005784b461f0f7c5da20c0a3b3289f51100a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "88fbd7a18f4e3f5e88cf134246af8d319d309352", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
- }
11
- };
12
- h.style = i;
13
- const n = ".sc-stop-icon-h{display:flex}", a = n, r = class {
14
- constructor(s) {
15
- o(this, s), this.width = "15", this.height = "15";
16
- }
17
- render() {
18
- return t("svg", { key: "1738ceb2d3e19179e090b1e8788cf71248abe6da", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "22daa75c459a24bb2d8af5784e306eb87aa4f98a", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
19
- }
20
- };
21
- r.style = a;
22
- export {
23
- h as play_icon,
24
- r as stop_icon
25
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-29d0e781.cjs");require("react");require("react-dom");const o=".sc-play-icon-h{display:flex}",n=o,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"5f4b005784b461f0f7c5da20c0a3b3289f51100a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"88fbd7a18f4e3f5e88cf134246af8d319d309352",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const h=".sc-stop-icon-h{display:flex}",r=h,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"1738ceb2d3e19179e090b1e8788cf71248abe6da",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"22daa75c459a24bb2d8af5784e306eb87aa4f98a",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;exports.play_icon=s;exports.stop_icon=i;