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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/add-circle-icon_13.entry-6dccb5e5.cjs +1 -0
  2. package/dist/add-circle-icon_13.entry-ab84be80.js +1050 -0
  3. package/dist/{archive-icon_7.entry-8c90815a.cjs → archive-icon_7.entry-0deb31c2.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-53aede1b.js → archive-icon_7.entry-187a3484.js} +20 -20
  5. package/dist/arrow-icon.entry-b782e05a.js +15 -0
  6. package/dist/{arrow-icon.entry-a2f53919.cjs → arrow-icon.entry-fb0ebc89.cjs} +1 -1
  7. package/dist/auth-store-764d3768-3e9c24a0.js +66 -0
  8. package/dist/auth-store-764d3768-ce84fc6a.cjs +1 -0
  9. package/dist/{bold-icon_3.entry-e0bc6774.cjs → bold-icon_3.entry-49e5a1d0.cjs} +1 -1
  10. package/dist/{bold-icon_3.entry-ad806730.js → bold-icon_3.entry-8aebbbdb.js} +6 -6
  11. package/dist/{calendar-cancel-icon.entry-74051835.js → calendar-cancel-icon.entry-305c099c.js} +5 -5
  12. package/dist/{calendar-cancel-icon.entry-546b7bd4.cjs → calendar-cancel-icon.entry-3f4d6cf2.cjs} +1 -1
  13. package/dist/calendar-check-icon_2.entry-1bf4163c.js +25 -0
  14. package/dist/calendar-check-icon_2.entry-fa7c033a.cjs +1 -0
  15. package/dist/{calendar-icon.entry-25474b1e.cjs → calendar-icon.entry-78433555.cjs} +1 -1
  16. package/dist/{calendar-icon.entry-c751873f.js → calendar-icon.entry-b5678535.js} +4 -4
  17. package/dist/{chevron-icon.entry-97e4621e.cjs → chevron-icon.entry-49b0d3e7.cjs} +1 -1
  18. package/dist/chevron-icon.entry-f484c9a3.js +15 -0
  19. package/dist/close-icon.entry-24d5c268.js +15 -0
  20. package/dist/close-icon.entry-37965d55.cjs +1 -0
  21. package/dist/{nylas-booked-event-card_9.entry-d995d7cb.js → constants-d93cf397-dd67263d.js} +1381 -2230
  22. package/dist/{nylas-booked-event-card_9.entry-ea02f083.cjs → constants-d93cf397-e3587f5c.cjs} +6 -139
  23. package/dist/document-refresh-icon.entry-0e8935fa.cjs +1 -0
  24. package/dist/document-refresh-icon.entry-8791ab16.js +15 -0
  25. package/dist/elements/index.d.ts +20 -0
  26. package/dist/{elements-60ebdb01-24595598.cjs → elements-dc5b338e-81a0319c.cjs} +577 -555
  27. package/dist/{elements-60ebdb01-5d144002.js → elements-dc5b338e-fb5dbfb5.js} +3339 -2763
  28. package/dist/{forward-icon_6.entry-725d1be4.cjs → forward-icon_6.entry-903ccd33.cjs} +2 -2
  29. package/dist/{forward-icon_6.entry-dc8f7235.js → forward-icon_6.entry-cb605bfc.js} +63 -63
  30. package/dist/globe-icon_3.entry-71d83904.js +109 -0
  31. package/dist/globe-icon_3.entry-c6aefc52.cjs +1 -0
  32. package/dist/{index-2b85580a-f9211f23.js → index-10914bc1-1a809477.js} +5 -10
  33. package/dist/{index-2b85580a-bfc3ceac.cjs → index-10914bc1-93ff6f46.cjs} +1 -1
  34. package/dist/index-cee193d2.cjs +30 -0
  35. package/dist/index-e834697b.js +1562 -0
  36. package/dist/index.d.ts +1 -1
  37. package/dist/info-icon.entry-3774a4e3.js +15 -0
  38. package/dist/info-icon.entry-85bf3fbc.cjs +1 -0
  39. package/dist/loading-icon.entry-8941102c.js +15 -0
  40. package/dist/loading-icon.entry-ae6c7b74.cjs +1 -0
  41. package/dist/mailbox-store-6b9425dc-a0366cf2.cjs +1 -0
  42. package/dist/{mailbox-store-0019772c-06d31a90.js → mailbox-store-6b9425dc-c249fa99.js} +59 -121
  43. package/dist/nylas-booked-event-card_10.entry-a166d51d.js +739 -0
  44. package/dist/nylas-booked-event-card_10.entry-b181a874.cjs +1 -0
  45. package/dist/nylas-form-card.entry-7173dd4a.js +56 -0
  46. package/dist/nylas-form-card.entry-8fdbefa6.cjs +1 -0
  47. package/dist/nylas-if-state_3.entry-2093c593.cjs +1 -0
  48. package/dist/{nylas-if-state_3.entry-ce816adb.js → nylas-if-state_3.entry-e7b615a1.js} +12 -10
  49. package/dist/{nylas-list-folders.entry-8134344b.js → nylas-list-folders.entry-744293ae.js} +9 -8
  50. package/dist/nylas-list-folders.entry-dff7a835.cjs +1 -0
  51. package/dist/{nylas-list-threads.entry-1367fe30.js → nylas-list-threads.entry-85ad1b74.js} +5 -4
  52. package/dist/nylas-list-threads.entry-edb1d265.cjs +1 -0
  53. package/dist/{nylas-mailbox-pagination.entry-568ac217.js → nylas-mailbox-pagination.entry-55ef4b8c.js} +4 -3
  54. package/dist/nylas-mailbox-pagination.entry-5b888a0e.cjs +1 -0
  55. package/dist/nylas-mailbox-toolbar-button.entry-bb42156a.cjs +1 -0
  56. package/dist/{nylas-mailbox-toolbar-button.entry-9214b283.js → nylas-mailbox-toolbar-button.entry-bdcf7d17.js} +10 -9
  57. package/dist/nylas-open-hours-picker.entry-0f4f34f6.cjs +1 -0
  58. package/dist/{nylas-open-hours-picker.entry-109f13f5.js → nylas-open-hours-picker.entry-7e7060fe.js} +3 -2
  59. package/dist/nylas-provider.entry-1dc58829.js +155 -0
  60. package/dist/nylas-provider.entry-cb1ef04e.cjs +1 -0
  61. package/dist/nylas-scheduler-config.entry-2382ac1b.js +114 -0
  62. package/dist/nylas-scheduler-config.entry-477d2171.cjs +1 -0
  63. package/dist/nylas-scheduler-editor.entry-1a95d313.cjs +1 -0
  64. package/dist/nylas-scheduler-editor.entry-c0479087.js +140 -0
  65. package/dist/nylas-scheduler.entry-69ecc3ae.cjs +1 -0
  66. package/dist/nylas-scheduler.entry-7084c148.js +231 -0
  67. package/dist/nylas-threads-refresh.entry-b35f1b68.cjs +1 -0
  68. package/dist/{nylas-threads-refresh.entry-9111a403.js → nylas-threads-refresh.entry-ef5d6dfd.js} +13 -12
  69. package/dist/nylas-threads-search.entry-2dda7524.cjs +1 -0
  70. package/dist/{nylas-threads-search.entry-2124f663.js → nylas-threads-search.entry-e570bf8e.js} +6 -5
  71. package/dist/nylas-view-thread.entry-1ee0680f.cjs +1 -0
  72. package/dist/{nylas-view-thread.entry-fe51c1f6.js → nylas-view-thread.entry-3939c913.js} +5 -4
  73. package/dist/people-icon.entry-4a88822e.cjs +1 -0
  74. package/dist/people-icon.entry-69465395.js +15 -0
  75. package/dist/play-icon_2.entry-bc24fda7.js +25 -0
  76. package/dist/play-icon_2.entry-bd9f650e.cjs +1 -0
  77. package/dist/react.cjs +1 -1
  78. package/dist/react.js +77 -57
  79. package/dist/{refresh-icon.entry-9f24e833.cjs → refresh-icon.entry-678f92e7.cjs} +1 -1
  80. package/dist/{refresh-icon.entry-4ddd53b0.js → refresh-icon.entry-bd2bf7ce.js} +2 -2
  81. package/dist/{register-component-55376f31-5eaf8954.js → register-component-486ea571-1f151779.js} +2 -2
  82. package/dist/{register-component-55376f31-8d6ddee4.cjs → register-component-486ea571-cdfe1ef9.cjs} +1 -1
  83. package/dist/scheduler-config-store-a059f30b-06c1aa21.cjs +1 -0
  84. package/dist/scheduler-config-store-a059f30b-ff3efc00.js +33 -0
  85. package/dist/scheduler-store-81058220-263a5f44.js +297 -0
  86. package/dist/scheduler-store-81058220-a20698af.cjs +1 -0
  87. package/dist/{translate-icon.entry-0cd24de4.cjs → translate-icon.entry-0c0dbba6.cjs} +1 -1
  88. package/dist/{translate-icon.entry-db2cdf1d.js → translate-icon.entry-c1fcd2f8.js} +4 -4
  89. package/dist/utils-df5c1963-1c47e21c.cjs +8 -0
  90. package/dist/utils-df5c1963-d9833bcb.js +2114 -0
  91. package/dist/warning-icon.entry-9631cd2e.js +15 -0
  92. package/dist/warning-icon.entry-dbd44cdb.cjs +1 -0
  93. package/package.json +6 -3
  94. package/dist/arrow-icon.entry-2867f4fb.js +0 -15
  95. package/dist/calendar-check-icon_3.entry-42bab0b4.js +0 -35
  96. package/dist/calendar-check-icon_3.entry-f5846fee.cjs +0 -1
  97. package/dist/chevron-icon.entry-60842fb6.js +0 -15
  98. package/dist/close-icon_2.entry-aa015993.cjs +0 -1
  99. package/dist/close-icon_2.entry-ef03bd27.js +0 -25
  100. package/dist/document-refresh-icon.entry-b27207eb.js +0 -15
  101. package/dist/document-refresh-icon.entry-ca2ef29e.cjs +0 -1
  102. package/dist/globe-icon.entry-796d3f48.js +0 -15
  103. package/dist/globe-icon.entry-918cfd35.cjs +0 -1
  104. package/dist/index-29d0e781.cjs +0 -30
  105. package/dist/index-4f65b6f9.js +0 -1489
  106. package/dist/loading-icon.entry-8e49fab0.js +0 -15
  107. package/dist/loading-icon.entry-b2534e3e.cjs +0 -1
  108. package/dist/mailbox-store-0019772c-d1254c5c.cjs +0 -1
  109. package/dist/nylas-if-state_3.entry-e8c831b7.cjs +0 -1
  110. package/dist/nylas-list-folders.entry-de8cca60.cjs +0 -1
  111. package/dist/nylas-list-threads.entry-93b70a1a.cjs +0 -1
  112. package/dist/nylas-mailbox-pagination.entry-6bb0ee37.cjs +0 -1
  113. package/dist/nylas-mailbox-toolbar-button.entry-d4ad5c15.cjs +0 -1
  114. package/dist/nylas-open-hours-picker.entry-2c19643f.cjs +0 -1
  115. package/dist/nylas-provider.entry-2cfe5f0e.js +0 -134
  116. package/dist/nylas-provider.entry-87fa9276.cjs +0 -1
  117. package/dist/nylas-scheduler.entry-6ec8e574.js +0 -195
  118. package/dist/nylas-scheduler.entry-b41cbf99.cjs +0 -1
  119. package/dist/nylas-threads-refresh.entry-6d61a689.cjs +0 -1
  120. package/dist/nylas-threads-search.entry-03073490.cjs +0 -1
  121. package/dist/nylas-view-thread.entry-4ecbcd78.cjs +0 -1
  122. package/dist/play-icon_2.entry-8e156535.js +0 -25
  123. package/dist/play-icon_2.entry-cf1cbc8d.cjs +0 -1
  124. package/dist/property-0065dde7-83dc9cc4.cjs +0 -23
  125. package/dist/property-0065dde7-c57b8fa3.js +0 -589
  126. package/dist/scheduler-store-5a39585a-117668e3.js +0 -173
  127. package/dist/scheduler-store-5a39585a-2c848bec.cjs +0 -1
  128. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  129. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
@@ -1,1489 +0,0 @@
1
- var cn = Object.defineProperty;
2
- var un = (e, t, s) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var ve = (e, t, s) => (un(e, typeof t != "symbol" ? t + "" : t, s), s);
4
- import ie, { createElement as fn, useReducer as dn, useRef as me, useEffect as hn } from "react";
5
- import "react-dom";
6
- function gr() {
7
- var e = [];
8
- if (typeof window < "u") {
9
- var t = window;
10
- (!t.customElements || t.Element && (!t.Element.prototype.closest || !t.Element.prototype.matches || !t.Element.prototype.remove || !t.Element.prototype.getRootNode)) && e.push(import(
11
- /* webpackChunkName: "polyfills-dom" */
12
- "./dom-86e17616.js"
13
- ));
14
- var s = function() {
15
- try {
16
- var r = new URL("b", "http://a");
17
- return r.pathname = "c%20d", r.href === "http://a/c%20d" && r.searchParams;
18
- } catch {
19
- return !1;
20
- }
21
- };
22
- (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(import(
23
- /* webpackChunkName: "polyfills-core-js" */
24
- "./core-js-a9d3b6e1.js"
25
- ));
26
- }
27
- return Promise.all(e);
28
- }
29
- const pn = "nylas-web-elements";
30
- let re, Te, L = !1, Se = null, we = !1;
31
- const F = (e, t = "") => () => {
32
- }, $n = (e, t) => () => {
33
- }, gn = "{visibility:hidden}.hydrated{visibility:inherit}", ht = "slot-fb{display:contents}slot-fb[hidden]{display:none}", tt = {}, yn = "http://www.w3.org/2000/svg", vn = "http://www.w3.org/1999/xhtml", mn = (e) => e != null, Re = (e) => (e = typeof e, e === "object" || e === "function");
34
- function pt(e) {
35
- var t, s, r;
36
- 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;
37
- }
38
- const $t = (e, t, ...s) => {
39
- let r = null, o = null, l = !1, a = !1;
40
- const u = [], c = (p) => {
41
- for (let h = 0; h < p.length; h++)
42
- r = p[h], Array.isArray(r) ? c(r) : r != null && typeof r != "boolean" && ((l = typeof e != "function" && !Re(r)) && (r = String(r)), l && a ? u[u.length - 1].$text$ += r : u.push(l ? se(null, r) : r), a = l);
43
- };
44
- if (c(s), t) {
45
- t.key && (o = t.key);
46
- {
47
- const p = t.className || t.class;
48
- p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((h) => p[h]).join(" "));
49
- }
50
- }
51
- if (typeof e == "function")
52
- return e(t === null ? {} : t, u, Sn);
53
- const d = se(e, null);
54
- return d.$attrs$ = t, u.length > 0 && (d.$children$ = u), d.$key$ = o, d;
55
- }, se = (e, t) => {
56
- const s = {
57
- $flags$: 0,
58
- $tag$: e,
59
- $text$: t,
60
- $elm$: null,
61
- $children$: null
62
- };
63
- return s.$attrs$ = null, s.$key$ = null, s;
64
- }, bn = {}, En = (e) => e && e.$tag$ === bn, Sn = {
65
- forEach: (e, t) => e.map(nt).forEach(t),
66
- map: (e, t) => e.map(nt).map(t).map(wn)
67
- }, nt = (e) => ({
68
- vattrs: e.$attrs$,
69
- vchildren: e.$children$,
70
- vkey: e.$key$,
71
- vname: e.$name$,
72
- vtag: e.$tag$,
73
- vtext: e.$text$
74
- }), wn = (e) => {
75
- if (typeof e.vtag == "function") {
76
- const s = Object.assign({}, e.vattrs);
77
- return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), $t(e.vtag, s, ...e.vchildren || []);
78
- }
79
- const t = se(e.vtag, e.vtext);
80
- return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
81
- }, _n = (e, t) => e != null && !Re(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, kn = (e) => U(e).$hostElement$, yr = (e, t, s) => {
82
- const r = kn(e);
83
- return {
84
- emit: (o) => gt(r, t, {
85
- bubbles: !!(s & 4),
86
- composed: !!(s & 2),
87
- cancelable: !!(s & 1),
88
- detail: o
89
- })
90
- };
91
- }, gt = (e, t, s) => {
92
- const r = O.ce(t, s);
93
- return e.dispatchEvent(r), r;
94
- }, rt = /* @__PURE__ */ new WeakMap(), Cn = (e, t, s) => {
95
- let r = ae.get(e);
96
- Qn && s ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = t : r.replaceSync(t)) : r = t, ae.set(e, r);
97
- }, Tn = (e, t, s) => {
98
- var r;
99
- const o = yt(t), l = ae.get(o);
100
- if (e = e.nodeType === 11 ? e : A, l)
101
- if (typeof l == "string") {
102
- e = e.head || e;
103
- let a = rt.get(e), u;
104
- if (a || rt.set(e, a = /* @__PURE__ */ new Set()), !a.has(o)) {
105
- {
106
- u = A.createElement("style"), u.innerHTML = l;
107
- const c = (r = O.$nonce$) !== null && r !== void 0 ? r : pt(A);
108
- c != null && u.setAttribute("nonce", c), e.insertBefore(u, e.querySelector("link"));
109
- }
110
- t.$flags$ & 4 && (u.innerHTML += ht), a && a.add(o);
111
- }
112
- } else
113
- e.adoptedStyleSheets.includes(l) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, l]);
114
- return o;
115
- }, Rn = (e) => {
116
- const t = e.$cmpMeta$, s = e.$hostElement$, r = t.$flags$, o = F("attachStyles", t.$tagName$), l = Tn(s.shadowRoot ? s.shadowRoot : s.getRootNode(), t);
117
- r & 10 && (s["s-sc"] = l, s.classList.add(l + "-h"), r & 2 && s.classList.add(l + "-s")), o();
118
- }, yt = (e, t) => "sc-" + e.$tagName$, st = (e, t, s, r, o, l) => {
119
- if (s !== r) {
120
- let a = lt(e, t), u = t.toLowerCase();
121
- if (t === "class") {
122
- const c = e.classList, d = ot(s), p = ot(r);
123
- c.remove(...d.filter((h) => h && !p.includes(h))), c.add(...p.filter((h) => h && !d.includes(h)));
124
- } else if (t === "style") {
125
- for (const c in s)
126
- (!r || r[c] == null) && (c.includes("-") ? e.style.removeProperty(c) : e.style[c] = "");
127
- for (const c in r)
128
- (!s || r[c] !== s[c]) && (c.includes("-") ? e.style.setProperty(c, r[c]) : e.style[c] = r[c]);
129
- } else if (t !== "key")
130
- if (t === "ref")
131
- r && r(e);
132
- else if (!a && t[0] === "o" && t[1] === "n") {
133
- if (t[2] === "-" ? t = t.slice(3) : lt(K, u) ? t = u.slice(2) : t = u[2] + t.slice(3), s || r) {
134
- const c = t.endsWith(vt);
135
- t = t.replace(Pn, ""), s && O.rel(e, t, s, c), r && O.ael(e, t, r, c);
136
- }
137
- } else {
138
- const c = Re(r);
139
- if ((a || c && r !== null) && !o)
140
- try {
141
- if (e.tagName.includes("-"))
142
- e[t] = r;
143
- else {
144
- const d = r ?? "";
145
- t === "list" ? a = !1 : (s == null || e[t] != d) && (e[t] = d);
146
- }
147
- } catch {
148
- }
149
- 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));
150
- }
151
- }
152
- }, xn = /\s/, ot = (e) => e ? e.split(xn) : [], vt = "Capture", Pn = new RegExp(vt + "$"), mt = (e, t, s, r) => {
153
- const o = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || tt, a = t.$attrs$ || tt;
154
- for (r in l)
155
- r in a || st(o, r, l[r], void 0, s, t.$flags$);
156
- for (r in a)
157
- st(o, r, l[r], a[r], s, t.$flags$);
158
- }, oe = (e, t, s, r) => {
159
- const o = t.$children$[s];
160
- let l = 0, a, u;
161
- if (o.$text$ !== null)
162
- a = o.$elm$ = A.createTextNode(o.$text$);
163
- else {
164
- if (L || (L = o.$tag$ === "svg"), a = o.$elm$ = A.createElementNS(L ? yn : vn, o.$tag$), L && o.$tag$ === "foreignObject" && (L = !1), mt(null, o, L), mn(re) && a["s-si"] !== re && a.classList.add(a["s-si"] = re), o.$children$)
165
- for (l = 0; l < o.$children$.length; ++l)
166
- u = oe(e, o, l), u && a.appendChild(u);
167
- o.$tag$ === "svg" ? L = !1 : a.tagName === "foreignObject" && (L = !0);
168
- }
169
- return a["s-hn"] = Te, a;
170
- }, bt = (e, t, s, r, o, l) => {
171
- let a = e, u;
172
- for (a.shadowRoot && a.tagName === Te && (a = a.shadowRoot); o <= l; ++o)
173
- r[o] && (u = oe(null, s, o), u && (r[o].$elm$ = u, a.insertBefore(u, t)));
174
- }, Et = (e, t, s) => {
175
- for (let r = t; r <= s; ++r) {
176
- const o = e[r];
177
- if (o) {
178
- const l = o.$elm$;
179
- St(o), l && l.remove();
180
- }
181
- }
182
- }, On = (e, t, s, r, o = !1) => {
183
- 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], C, T;
184
- for (; l <= d && a <= S; )
185
- if (p == null)
186
- p = t[++l];
187
- else if (h == null)
188
- h = t[--d];
189
- else if (b == null)
190
- b = r[++a];
191
- else if (k == null)
192
- k = r[--S];
193
- else if (ne(p, b, o))
194
- B(p, b, o), p = t[++l], b = r[++a];
195
- else if (ne(h, k, o))
196
- B(h, k, o), h = t[--d], k = r[--S];
197
- else if (ne(p, k, o))
198
- B(p, k, o), e.insertBefore(p.$elm$, h.$elm$.nextSibling), p = t[++l], k = r[--S];
199
- else if (ne(h, b, o))
200
- B(h, b, o), e.insertBefore(h.$elm$, p.$elm$), h = t[--d], b = r[++a];
201
- else {
202
- for (u = -1, c = l; c <= d; ++c)
203
- if (t[c] && t[c].$key$ !== null && t[c].$key$ === b.$key$) {
204
- u = c;
205
- break;
206
- }
207
- u >= 0 ? (T = t[u], T.$tag$ !== b.$tag$ ? C = oe(t && t[a], s, u) : (B(T, b, o), t[u] = void 0, C = T.$elm$), b = r[++a]) : (C = oe(t && t[a], s, a), b = r[++a]), C && p.$elm$.parentNode.insertBefore(C, p.$elm$);
208
- }
209
- l > d ? bt(e, r[S + 1] == null ? null : r[S + 1].$elm$, s, r, a, S) : a > S && Et(t, l, d);
210
- }, ne = (e, t, s = !1) => e.$tag$ === t.$tag$ ? s ? !0 : e.$key$ === t.$key$ : !1, B = (e, t, s = !1) => {
211
- const r = t.$elm$ = e.$elm$, o = e.$children$, l = t.$children$, a = t.$tag$, u = t.$text$;
212
- u === null ? (L = a === "svg" ? !0 : a === "foreignObject" ? !1 : L, a === "slot" || mt(e, t, L), o !== null && l !== null ? On(r, o, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = ""), bt(r, null, t, l, 0, l.length - 1)) : o !== null && Et(o, 0, o.length - 1), L && a === "svg" && (L = !1)) : e.$text$ !== u && (r.data = u);
213
- }, St = (e) => {
214
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(St);
215
- }, In = (e, t, s = !1) => {
216
- const r = e.$hostElement$, o = e.$vnode$ || se(null, null), l = En(t) ? t : $t(null, null, t);
217
- if (Te = r.tagName, s && l.$attrs$)
218
- for (const a of Object.keys(l.$attrs$))
219
- r.hasAttribute(a) && !["key", "ref", "style", "class"].includes(a) && (l.$attrs$[a] = r[a]);
220
- l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = o.$elm$ = r.shadowRoot || r, re = r["s-sc"], B(o, l, s);
221
- }, wt = (e, t) => {
222
- t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((s) => e.$onRenderResolve$ = s));
223
- }, le = (e, t) => {
224
- if (e.$flags$ |= 16, e.$flags$ & 4) {
225
- e.$flags$ |= 512;
226
- return;
227
- }
228
- return wt(e, e.$ancestorComponent$), Vn(() => Ln(e, t));
229
- }, Ln = (e, t) => {
230
- const s = F("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
231
- let o;
232
- 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, () => An(e, r, t));
233
- }, at = (e, t) => jn(e) ? e.then(t) : t(), jn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", An = async (e, t, s) => {
234
- var r;
235
- const o = e.$hostElement$, l = F("update", e.$cmpMeta$.$tagName$), a = o["s-rc"];
236
- s && Rn(e);
237
- const u = F("render", e.$cmpMeta$.$tagName$);
238
- Dn(e, t, o, s), a && (a.map((c) => c()), o["s-rc"] = void 0), u(), l();
239
- {
240
- const c = (r = o["s-p"]) !== null && r !== void 0 ? r : [], d = () => Mn(e);
241
- c.length === 0 ? d() : (Promise.all(c).then(d), e.$flags$ |= 4, c.length = 0);
242
- }
243
- }, Dn = (e, t, s, r) => {
244
- try {
245
- Se = t, t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, In(e, t, r);
246
- } catch (o) {
247
- m(o, e.$hostElement$);
248
- }
249
- return Se = null, null;
250
- }, vr = () => Se, Mn = (e) => {
251
- const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, r = F("postUpdate", t), o = e.$lazyInstance$, l = e.$ancestorComponent$;
252
- e.$flags$ & 64 ? r() : (e.$flags$ |= 64, kt(s), Y(o, "componentDidLoad"), r(), e.$onReadyResolve$(s), l || _t()), e.$onInstanceResolve$(s), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Pe(() => le(e, !1)), e.$flags$ &= -517;
253
- }, mr = (e) => {
254
- {
255
- const t = U(e), s = t.$hostElement$.isConnected;
256
- return s && (t.$flags$ & 18) === 2 && le(t, !1), s;
257
- }
258
- }, _t = (e) => {
259
- kt(A.documentElement), Pe(() => gt(K, "appload", { detail: { namespace: pn } }));
260
- }, Y = (e, t, s) => {
261
- if (e && e[t])
262
- try {
263
- return e[t](s);
264
- } catch (r) {
265
- m(r);
266
- }
267
- }, kt = (e) => e.classList.add("hydrated"), Fn = (e, t) => U(e).$instanceValues$.get(t), Un = (e, t, s, r) => {
268
- const o = U(e), l = o.$hostElement$, a = o.$instanceValues$.get(t), u = o.$flags$, c = o.$lazyInstance$;
269
- s = _n(s, r.$members$[t][0]);
270
- const d = Number.isNaN(a) && Number.isNaN(s), p = s !== a && !d;
271
- if ((!(u & 8) || a === void 0) && p && (o.$instanceValues$.set(t, s), c)) {
272
- if (r.$watchers$ && u & 128) {
273
- const h = r.$watchers$[t];
274
- h && h.map((S) => {
275
- try {
276
- c[S](s, a, t);
277
- } catch (b) {
278
- m(b, l);
279
- }
280
- });
281
- }
282
- (u & 18) === 2 && le(o, !1);
283
- }
284
- }, Ct = (e, t, s) => {
285
- var r;
286
- const o = e.prototype;
287
- if (t.$members$) {
288
- e.watchers && (t.$watchers$ = e.watchers);
289
- const l = Object.entries(t.$members$);
290
- if (l.map(([a, [u]]) => {
291
- u & 31 || s & 2 && u & 32 ? Object.defineProperty(o, a, {
292
- get() {
293
- return Fn(this, a);
294
- },
295
- set(c) {
296
- Un(this, a, c, t);
297
- },
298
- configurable: !0,
299
- enumerable: !0
300
- }) : s & 1 && u & 64 && Object.defineProperty(o, a, {
301
- value(...c) {
302
- var d;
303
- const p = U(this);
304
- return (d = p == null ? void 0 : p.$onInstancePromise$) === null || d === void 0 ? void 0 : d.then(() => {
305
- var h;
306
- return (h = p.$lazyInstance$) === null || h === void 0 ? void 0 : h[a](...c);
307
- });
308
- }
309
- });
310
- }), s & 1) {
311
- const a = /* @__PURE__ */ new Map();
312
- o.attributeChangedCallback = function(u, c, d) {
313
- O.jmp(() => {
314
- var p;
315
- const h = a.get(u);
316
- if (this.hasOwnProperty(h))
317
- d = this[h], delete this[h];
318
- else {
319
- if (o.hasOwnProperty(h) && typeof this[h] == "number" && this[h] == d)
320
- return;
321
- if (h == null) {
322
- const S = U(this), b = S == null ? void 0 : S.$flags$;
323
- if (b && !(b & 8) && b & 128 && d !== c) {
324
- const k = S.$lazyInstance$, C = (p = t.$watchers$) === null || p === void 0 ? void 0 : p[u];
325
- C == null || C.forEach((T) => {
326
- k[T] != null && k[T].call(k, d, c, u);
327
- });
328
- }
329
- return;
330
- }
331
- }
332
- this[h] = d === null && typeof this[h] == "boolean" ? !1 : d;
333
- });
334
- }, e.observedAttributes = Array.from(/* @__PURE__ */ new Set([
335
- ...Object.keys((r = t.$watchers$) !== null && r !== void 0 ? r : {}),
336
- ...l.filter(
337
- ([u, c]) => c[0] & 15
338
- /* MEMBER_FLAGS.HasAttribute */
339
- ).map(([u, c]) => {
340
- const d = c[1] || u;
341
- return a.set(d, u), d;
342
- })
343
- ]));
344
- }
345
- }
346
- return e;
347
- }, Nn = async (e, t, s, r) => {
348
- let o;
349
- if (!(t.$flags$ & 32)) {
350
- t.$flags$ |= 32;
351
- {
352
- if (o = Jn(s), o.then) {
353
- const c = $n();
354
- o = await o, c();
355
- }
356
- o.isProxied || (s.$watchers$ = o.watchers, Ct(
357
- o,
358
- s,
359
- 2
360
- /* PROXY_FLAGS.proxyState */
361
- ), o.isProxied = !0);
362
- const u = F("createInstance", s.$tagName$);
363
- t.$flags$ |= 8;
364
- try {
365
- new o(t);
366
- } catch (c) {
367
- m(c);
368
- }
369
- t.$flags$ &= -9, t.$flags$ |= 128, u(), _e(t.$lazyInstance$);
370
- }
371
- if (o.style) {
372
- let u = o.style;
373
- const c = yt(s);
374
- if (!ae.has(c)) {
375
- const d = F("registerStyles", s.$tagName$);
376
- Cn(c, u, !!(s.$flags$ & 1)), d();
377
- }
378
- }
379
- }
380
- const l = t.$ancestorComponent$, a = () => le(t, !0);
381
- l && l["s-rc"] ? l["s-rc"].push(a) : a();
382
- }, _e = (e) => {
383
- Y(e, "connectedCallback");
384
- }, Hn = (e) => {
385
- if (!(O.$flags$ & 1)) {
386
- const t = U(e), s = t.$cmpMeta$, r = F("connectedCallback", s.$tagName$);
387
- if (t.$flags$ & 1)
388
- Tt(e, t, s.$listeners$), t != null && t.$lazyInstance$ ? _e(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => _e(t.$lazyInstance$));
389
- else {
390
- t.$flags$ |= 1;
391
- {
392
- let o = e;
393
- for (; o = o.parentNode || o.host; )
394
- if (o["s-p"]) {
395
- wt(t, t.$ancestorComponent$ = o);
396
- break;
397
- }
398
- }
399
- s.$members$ && Object.entries(s.$members$).map(([o, [l]]) => {
400
- if (l & 31 && e.hasOwnProperty(o)) {
401
- const a = e[o];
402
- delete e[o], e[o] = a;
403
- }
404
- }), Nn(e, t, s);
405
- }
406
- r();
407
- }
408
- }, it = (e) => {
409
- Y(e, "disconnectedCallback");
410
- }, Wn = async (e) => {
411
- if (!(O.$flags$ & 1)) {
412
- const t = U(e);
413
- 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$));
414
- }
415
- }, zn = (e, t = {}) => {
416
- var s;
417
- const r = F(), o = [], l = t.exclude || [], a = K.customElements, u = A.head, c = /* @__PURE__ */ u.querySelector("meta[charset]"), d = /* @__PURE__ */ A.createElement("style"), p = [];
418
- let h, S = !0;
419
- Object.assign(O, t), O.$resourcesUrl$ = new URL(t.resourcesUrl || "./", A.baseURI).href;
420
- let b = !1;
421
- if (e.map((k) => {
422
- k[1].map((C) => {
423
- var T;
424
- const x = {
425
- $flags$: C[0],
426
- $tagName$: C[1],
427
- $members$: C[2],
428
- $listeners$: C[3]
429
- };
430
- x.$flags$ & 4 && (b = !0), x.$members$ = C[2], x.$listeners$ = C[3], x.$watchers$ = (T = C[4]) !== null && T !== void 0 ? T : {};
431
- const _ = x.$tagName$, ce = class extends HTMLElement {
432
- // StencilLazyHost
433
- constructor(H) {
434
- super(H), H = this, Gn(H, x), x.$flags$ & 1 && H.attachShadow({ mode: "open" });
435
- }
436
- connectedCallback() {
437
- h && (clearTimeout(h), h = null), S ? p.push(this) : O.jmp(() => Hn(this));
438
- }
439
- disconnectedCallback() {
440
- O.jmp(() => Wn(this));
441
- }
442
- componentOnReady() {
443
- return U(this).$onReadyPromise$;
444
- }
445
- };
446
- x.$lazyBundleId$ = k[0], !l.includes(_) && !a.get(_) && (o.push(_), a.define(_, Ct(
447
- ce,
448
- x,
449
- 1
450
- /* PROXY_FLAGS.isElementConstructor */
451
- )));
452
- });
453
- }), b && (d.innerHTML += ht), d.innerHTML += o + gn, d.innerHTML.length) {
454
- d.setAttribute("data-styles", "");
455
- const k = (s = O.$nonce$) !== null && s !== void 0 ? s : pt(A);
456
- k != null && d.setAttribute("nonce", k), u.insertBefore(d, c ? c.nextSibling : u.firstChild);
457
- }
458
- S = !1, p.length ? p.map((k) => k.connectedCallback()) : O.jmp(() => h = setTimeout(_t, 30)), r();
459
- }, br = (e, t) => t, Tt = (e, t, s, r) => {
460
- s && s.map(([o, l, a]) => {
461
- const u = Yn(e, o), c = Bn(t, a), d = qn(o);
462
- O.ael(u, l, c, d), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => O.rel(u, l, c, d));
463
- });
464
- }, Bn = (e, t) => (s) => {
465
- try {
466
- e.$flags$ & 256 ? e.$lazyInstance$[t](s) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([t, s]);
467
- } catch (r) {
468
- m(r);
469
- }
470
- }, Yn = (e, t) => t & 8 ? K : t & 16 ? A.body : e, qn = (e) => Xn ? {
471
- passive: (e & 1) !== 0,
472
- capture: (e & 2) !== 0
473
- } : (e & 2) !== 0, xe = /* @__PURE__ */ new WeakMap(), U = (e) => xe.get(e), Er = (e, t) => xe.set(t.$lazyInstance$ = e, t), Gn = (e, t) => {
474
- const s = {
475
- $flags$: 0,
476
- $hostElement$: e,
477
- $cmpMeta$: t,
478
- $instanceValues$: /* @__PURE__ */ new Map()
479
- };
480
- return s.$onInstancePromise$ = new Promise((r) => s.$onInstanceResolve$ = r), s.$onReadyPromise$ = new Promise((r) => s.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], Tt(e, s, t.$listeners$), xe.set(e, s);
481
- }, lt = (e, t) => t in e, m = (e, t) => (0, console.error)(e, t), be = /* @__PURE__ */ new Map(), Jn = (e, t, s) => {
482
- const r = e.$tagName$.replace(/-/g, "_"), o = e.$lazyBundleId$, l = be.get(o);
483
- if (l)
484
- return l[r];
485
- if (!s || !BUILD.hotModuleReplacement) {
486
- const a = (u) => (be.set(o, u), u[r]);
487
- switch (o) {
488
- case "nylas-if-state_3":
489
- return import(
490
- /* webpackMode: "lazy" */
491
- "./nylas-if-state_3.entry-ce816adb.js"
492
- ).then(a, m);
493
- case "document-refresh-icon":
494
- return import(
495
- /* webpackMode: "lazy" */
496
- "./document-refresh-icon.entry-b27207eb.js"
497
- ).then(a, m);
498
- case "nylas-list-folders":
499
- return import(
500
- /* webpackMode: "lazy" */
501
- "./nylas-list-folders.entry-8134344b.js"
502
- ).then(a, m);
503
- case "nylas-list-threads":
504
- return import(
505
- /* webpackMode: "lazy" */
506
- "./nylas-list-threads.entry-1367fe30.js"
507
- ).then(a, m);
508
- case "nylas-mailbox-pagination":
509
- return import(
510
- /* webpackMode: "lazy" */
511
- "./nylas-mailbox-pagination.entry-568ac217.js"
512
- ).then(a, m);
513
- case "nylas-mailbox-toolbar-button":
514
- return import(
515
- /* webpackMode: "lazy" */
516
- "./nylas-mailbox-toolbar-button.entry-9214b283.js"
517
- ).then(a, m);
518
- case "nylas-open-hours-picker":
519
- return import(
520
- /* webpackMode: "lazy" */
521
- "./nylas-open-hours-picker.entry-109f13f5.js"
522
- ).then(a, m);
523
- case "nylas-provider":
524
- return import(
525
- /* webpackMode: "lazy" */
526
- "./nylas-provider.entry-2cfe5f0e.js"
527
- ).then(a, m);
528
- case "nylas-scheduler":
529
- return import(
530
- /* webpackMode: "lazy" */
531
- "./nylas-scheduler.entry-6ec8e574.js"
532
- ).then(a, m);
533
- case "nylas-threads-refresh":
534
- return import(
535
- /* webpackMode: "lazy" */
536
- "./nylas-threads-refresh.entry-9111a403.js"
537
- ).then(a, m);
538
- case "nylas-threads-search":
539
- return import(
540
- /* webpackMode: "lazy" */
541
- "./nylas-threads-search.entry-2124f663.js"
542
- ).then(a, m);
543
- case "nylas-view-thread":
544
- return import(
545
- /* webpackMode: "lazy" */
546
- "./nylas-view-thread.entry-fe51c1f6.js"
547
- ).then(a, m);
548
- case "archive-icon_7":
549
- return import(
550
- /* webpackMode: "lazy" */
551
- "./archive-icon_7.entry-53aede1b.js"
552
- ).then(a, m);
553
- case "arrow-icon":
554
- return import(
555
- /* webpackMode: "lazy" */
556
- "./arrow-icon.entry-2867f4fb.js"
557
- ).then(a, m);
558
- case "forward-icon_6":
559
- return import(
560
- /* webpackMode: "lazy" */
561
- "./forward-icon_6.entry-dc8f7235.js"
562
- ).then(a, m);
563
- case "nylas-booked-event-card_9":
564
- return import(
565
- /* webpackMode: "lazy" */
566
- "./nylas-booked-event-card_9.entry-d995d7cb.js"
567
- ).then(a, m);
568
- case "bold-icon_3":
569
- return import(
570
- /* webpackMode: "lazy" */
571
- "./bold-icon_3.entry-ad806730.js"
572
- ).then(a, m);
573
- case "calendar-cancel-icon":
574
- return import(
575
- /* webpackMode: "lazy" */
576
- "./calendar-cancel-icon.entry-74051835.js"
577
- ).then(a, m);
578
- case "calendar-check-icon_3":
579
- return import(
580
- /* webpackMode: "lazy" */
581
- "./calendar-check-icon_3.entry-42bab0b4.js"
582
- ).then(a, m);
583
- case "calendar-icon":
584
- return import(
585
- /* webpackMode: "lazy" */
586
- "./calendar-icon.entry-c751873f.js"
587
- ).then(a, m);
588
- case "close-icon_2":
589
- return import(
590
- /* webpackMode: "lazy" */
591
- "./close-icon_2.entry-ef03bd27.js"
592
- ).then(a, m);
593
- case "play-icon_2":
594
- return import(
595
- /* webpackMode: "lazy" */
596
- "./play-icon_2.entry-8e156535.js"
597
- ).then(a, m);
598
- case "refresh-icon":
599
- return import(
600
- /* webpackMode: "lazy" */
601
- "./refresh-icon.entry-4ddd53b0.js"
602
- ).then(a, m);
603
- case "translate-icon":
604
- return import(
605
- /* webpackMode: "lazy" */
606
- "./translate-icon.entry-db2cdf1d.js"
607
- ).then(a, m);
608
- case "chevron-icon":
609
- return import(
610
- /* webpackMode: "lazy" */
611
- "./chevron-icon.entry-60842fb6.js"
612
- ).then(a, m);
613
- case "globe-icon":
614
- return import(
615
- /* webpackMode: "lazy" */
616
- "./globe-icon.entry-796d3f48.js"
617
- ).then(a, m);
618
- case "loading-icon":
619
- return import(
620
- /* webpackMode: "lazy" */
621
- "./loading-icon.entry-8e49fab0.js"
622
- ).then(a, m);
623
- }
624
- }
625
- return import(
626
- /* @vite-ignore */
627
- /* webpackInclude: /\.entry\.js$/ */
628
- /* webpackExclude: /\.system\.entry\.js$/ */
629
- /* webpackMode: "lazy" */
630
- `./${o}.entry.js`
631
- ).then((a) => (be.set(o, a), a[r]), m);
632
- }, ae = /* @__PURE__ */ new Map(), K = typeof window < "u" ? window : {}, A = K.document || { head: {} }, O = {
633
- $flags$: 0,
634
- $resourcesUrl$: "",
635
- jmp: (e) => e(),
636
- raf: (e) => requestAnimationFrame(e),
637
- ael: (e, t, s, r) => e.addEventListener(t, s, r),
638
- rel: (e, t, s, r) => e.removeEventListener(t, s, r),
639
- ce: (e, t) => new CustomEvent(e, t)
640
- }, Xn = /* @__PURE__ */ (() => {
641
- let e = !1;
642
- try {
643
- A.addEventListener("e", null, Object.defineProperty({}, "passive", {
644
- get() {
645
- e = !0;
646
- }
647
- }));
648
- } catch {
649
- }
650
- return e;
651
- })(), Kn = (e) => Promise.resolve(e), Qn = /* @__PURE__ */ (() => {
652
- try {
653
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
654
- } catch {
655
- }
656
- return !1;
657
- })(), ct = [], Rt = [], Zn = (e, t) => (s) => {
658
- e.push(s), we || (we = !0, t && O.$flags$ & 4 ? Pe(ke) : O.raf(ke));
659
- }, ut = (e) => {
660
- for (let t = 0; t < e.length; t++)
661
- try {
662
- e[t](performance.now());
663
- } catch (s) {
664
- m(s);
665
- }
666
- e.length = 0;
667
- }, ke = () => {
668
- ut(ct), ut(Rt), (we = ct.length > 0) && O.raf(ke);
669
- }, Pe = (e) => Kn().then(e), Vn = /* @__PURE__ */ Zn(Rt, !0);
670
- async function er() {
671
- await import("./elements-60ebdb01-5d144002.js");
672
- }
673
- const tr = er, Sr = (e, t) => {
674
- if (!(typeof window > "u"))
675
- return tr(), zn([["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);
676
- };
677
- (function() {
678
- if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
679
- var e = HTMLElement;
680
- window.HTMLElement = function() {
681
- return Reflect.construct(e, [], this.constructor);
682
- }, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
683
- }
684
- })();
685
- var Ce = { exports: {} }, J = {};
686
- /**
687
- * @license React
688
- * react-jsx-runtime.production.min.js
689
- *
690
- * Copyright (c) Facebook, Inc. and its affiliates.
691
- *
692
- * This source code is licensed under the MIT license found in the
693
- * LICENSE file in the root directory of this source tree.
694
- */
695
- var ft;
696
- function nr() {
697
- if (ft)
698
- return J;
699
- ft = 1;
700
- var e = ie, 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 };
701
- function a(u, c, d) {
702
- var p, h = {}, S = null, b = null;
703
- d !== void 0 && (S = "" + d), c.key !== void 0 && (S = "" + c.key), c.ref !== void 0 && (b = c.ref);
704
- for (p in c)
705
- r.call(c, p) && !l.hasOwnProperty(p) && (h[p] = c[p]);
706
- if (u && u.defaultProps)
707
- for (p in c = u.defaultProps, c)
708
- h[p] === void 0 && (h[p] = c[p]);
709
- return { $$typeof: t, type: u, key: S, ref: b, props: h, _owner: o.current };
710
- }
711
- return J.Fragment = s, J.jsx = a, J.jsxs = a, J;
712
- }
713
- var X = {};
714
- /**
715
- * @license React
716
- * react-jsx-runtime.development.js
717
- *
718
- * Copyright (c) Facebook, Inc. and its affiliates.
719
- *
720
- * This source code is licensed under the MIT license found in the
721
- * LICENSE file in the root directory of this source tree.
722
- */
723
- var dt;
724
- function rr() {
725
- return dt || (dt = 1, process.env.NODE_ENV !== "production" && function() {
726
- var e = ie, 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, C = "@@iterator";
727
- function T(n) {
728
- if (n === null || typeof n != "object")
729
- return null;
730
- var i = k && n[k] || n[C];
731
- return typeof i == "function" ? i : null;
732
- }
733
- var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
734
- function _(n) {
735
- {
736
- for (var i = arguments.length, f = new Array(i > 1 ? i - 1 : 0), g = 1; g < i; g++)
737
- f[g - 1] = arguments[g];
738
- ce("error", n, f);
739
- }
740
- }
741
- function ce(n, i, f) {
742
- {
743
- var g = x.ReactDebugCurrentFrame, E = g.getStackAddendum();
744
- E !== "" && (i += "%s", f = f.concat([E]));
745
- var w = f.map(function(v) {
746
- return String(v);
747
- });
748
- w.unshift("Warning: " + i), Function.prototype.apply.call(console[n], console, w);
749
- }
750
- }
751
- var H = !1, Ot = !1, It = !1, Lt = !1, jt = !1, Oe;
752
- Oe = Symbol.for("react.module.reference");
753
- function At(n) {
754
- return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || jt || n === o || n === d || n === p || Lt || n === b || H || Ot || It || typeof n == "object" && n !== null && (n.$$typeof === S || n.$$typeof === h || n.$$typeof === a || n.$$typeof === u || n.$$typeof === c || // This needs to include all possible module reference object
755
- // types supported by any Flight configuration anywhere since
756
- // we don't know which Flight build this will end up being used
757
- // with.
758
- n.$$typeof === Oe || n.getModuleId !== void 0));
759
- }
760
- function Dt(n, i, f) {
761
- var g = n.displayName;
762
- if (g)
763
- return g;
764
- var E = i.displayName || i.name || "";
765
- return E !== "" ? f + "(" + E + ")" : f;
766
- }
767
- function Ie(n) {
768
- return n.displayName || "Context";
769
- }
770
- function D(n) {
771
- if (n == null)
772
- return null;
773
- if (typeof n.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
774
- return n.displayName || n.name || null;
775
- if (typeof n == "string")
776
- return n;
777
- switch (n) {
778
- case r:
779
- return "Fragment";
780
- case s:
781
- return "Portal";
782
- case l:
783
- return "Profiler";
784
- case o:
785
- return "StrictMode";
786
- case d:
787
- return "Suspense";
788
- case p:
789
- return "SuspenseList";
790
- }
791
- if (typeof n == "object")
792
- switch (n.$$typeof) {
793
- case u:
794
- var i = n;
795
- return Ie(i) + ".Consumer";
796
- case a:
797
- var f = n;
798
- return Ie(f._context) + ".Provider";
799
- case c:
800
- return Dt(n, n.render, "ForwardRef");
801
- case h:
802
- var g = n.displayName || null;
803
- return g !== null ? g : D(n.type) || "Memo";
804
- case S: {
805
- var E = n, w = E._payload, v = E._init;
806
- try {
807
- return D(v(w));
808
- } catch {
809
- return null;
810
- }
811
- }
812
- }
813
- return null;
814
- }
815
- var N = Object.assign, q = 0, Le, je, Ae, De, Me, Fe, Ue;
816
- function Ne() {
817
- }
818
- Ne.__reactDisabledLog = !0;
819
- function Mt() {
820
- {
821
- if (q === 0) {
822
- Le = console.log, je = console.info, Ae = console.warn, De = console.error, Me = console.group, Fe = console.groupCollapsed, Ue = console.groupEnd;
823
- var n = {
824
- configurable: !0,
825
- enumerable: !0,
826
- value: Ne,
827
- writable: !0
828
- };
829
- Object.defineProperties(console, {
830
- info: n,
831
- log: n,
832
- warn: n,
833
- error: n,
834
- group: n,
835
- groupCollapsed: n,
836
- groupEnd: n
837
- });
838
- }
839
- q++;
840
- }
841
- }
842
- function Ft() {
843
- {
844
- if (q--, q === 0) {
845
- var n = {
846
- configurable: !0,
847
- enumerable: !0,
848
- writable: !0
849
- };
850
- Object.defineProperties(console, {
851
- log: N({}, n, {
852
- value: Le
853
- }),
854
- info: N({}, n, {
855
- value: je
856
- }),
857
- warn: N({}, n, {
858
- value: Ae
859
- }),
860
- error: N({}, n, {
861
- value: De
862
- }),
863
- group: N({}, n, {
864
- value: Me
865
- }),
866
- groupCollapsed: N({}, n, {
867
- value: Fe
868
- }),
869
- groupEnd: N({}, n, {
870
- value: Ue
871
- })
872
- });
873
- }
874
- q < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
875
- }
876
- }
877
- var ue = x.ReactCurrentDispatcher, fe;
878
- function Q(n, i, f) {
879
- {
880
- if (fe === void 0)
881
- try {
882
- throw Error();
883
- } catch (E) {
884
- var g = E.stack.trim().match(/\n( *(at )?)/);
885
- fe = g && g[1] || "";
886
- }
887
- return `
888
- ` + fe + n;
889
- }
890
- }
891
- var de = !1, Z;
892
- {
893
- var Ut = typeof WeakMap == "function" ? WeakMap : Map;
894
- Z = new Ut();
895
- }
896
- function He(n, i) {
897
- if (!n || de)
898
- return "";
899
- {
900
- var f = Z.get(n);
901
- if (f !== void 0)
902
- return f;
903
- }
904
- var g;
905
- de = !0;
906
- var E = Error.prepareStackTrace;
907
- Error.prepareStackTrace = void 0;
908
- var w;
909
- w = ue.current, ue.current = null, Mt();
910
- try {
911
- if (i) {
912
- var v = function() {
913
- throw Error();
914
- };
915
- if (Object.defineProperty(v.prototype, "props", {
916
- set: function() {
917
- throw Error();
918
- }
919
- }), typeof Reflect == "object" && Reflect.construct) {
920
- try {
921
- Reflect.construct(v, []);
922
- } catch (M) {
923
- g = M;
924
- }
925
- Reflect.construct(n, [], v);
926
- } else {
927
- try {
928
- v.call();
929
- } catch (M) {
930
- g = M;
931
- }
932
- n.call(v.prototype);
933
- }
934
- } else {
935
- try {
936
- throw Error();
937
- } catch (M) {
938
- g = M;
939
- }
940
- n();
941
- }
942
- } catch (M) {
943
- if (M && g && typeof M.stack == "string") {
944
- for (var y = M.stack.split(`
945
- `), I = g.stack.split(`
946
- `), R = y.length - 1, P = I.length - 1; R >= 1 && P >= 0 && y[R] !== I[P]; )
947
- P--;
948
- for (; R >= 1 && P >= 0; R--, P--)
949
- if (y[R] !== I[P]) {
950
- if (R !== 1 || P !== 1)
951
- do
952
- if (R--, P--, P < 0 || y[R] !== I[P]) {
953
- var j = `
954
- ` + y[R].replace(" at new ", " at ");
955
- return n.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", n.displayName)), typeof n == "function" && Z.set(n, j), j;
956
- }
957
- while (R >= 1 && P >= 0);
958
- break;
959
- }
960
- }
961
- } finally {
962
- de = !1, ue.current = w, Ft(), Error.prepareStackTrace = E;
963
- }
964
- var z = n ? n.displayName || n.name : "", et = z ? Q(z) : "";
965
- return typeof n == "function" && Z.set(n, et), et;
966
- }
967
- function Nt(n, i, f) {
968
- return He(n, !1);
969
- }
970
- function Ht(n) {
971
- var i = n.prototype;
972
- return !!(i && i.isReactComponent);
973
- }
974
- function V(n, i, f) {
975
- if (n == null)
976
- return "";
977
- if (typeof n == "function")
978
- return He(n, Ht(n));
979
- if (typeof n == "string")
980
- return Q(n);
981
- switch (n) {
982
- case d:
983
- return Q("Suspense");
984
- case p:
985
- return Q("SuspenseList");
986
- }
987
- if (typeof n == "object")
988
- switch (n.$$typeof) {
989
- case c:
990
- return Nt(n.render);
991
- case h:
992
- return V(n.type, i, f);
993
- case S: {
994
- var g = n, E = g._payload, w = g._init;
995
- try {
996
- return V(w(E), i, f);
997
- } catch {
998
- }
999
- }
1000
- }
1001
- return "";
1002
- }
1003
- var ee = Object.prototype.hasOwnProperty, We = {}, ze = x.ReactDebugCurrentFrame;
1004
- function te(n) {
1005
- if (n) {
1006
- var i = n._owner, f = V(n.type, n._source, i ? i.type : null);
1007
- ze.setExtraStackFrame(f);
1008
- } else
1009
- ze.setExtraStackFrame(null);
1010
- }
1011
- function Wt(n, i, f, g, E) {
1012
- {
1013
- var w = Function.call.bind(ee);
1014
- for (var v in n)
1015
- if (w(n, v)) {
1016
- var y = void 0;
1017
- try {
1018
- if (typeof n[v] != "function") {
1019
- var I = Error((g || "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`.");
1020
- throw I.name = "Invariant Violation", I;
1021
- }
1022
- y = n[v](i, v, g, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1023
- } catch (R) {
1024
- y = R;
1025
- }
1026
- y && !(y instanceof Error) && (te(E), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", f, v, typeof y), te(null)), y instanceof Error && !(y.message in We) && (We[y.message] = !0, te(E), _("Failed %s type: %s", f, y.message), te(null));
1027
- }
1028
- }
1029
- }
1030
- var zt = Array.isArray;
1031
- function he(n) {
1032
- return zt(n);
1033
- }
1034
- function Bt(n) {
1035
- {
1036
- var i = typeof Symbol == "function" && Symbol.toStringTag, f = i && n[Symbol.toStringTag] || n.constructor.name || "Object";
1037
- return f;
1038
- }
1039
- }
1040
- function Yt(n) {
1041
- try {
1042
- return Be(n), !1;
1043
- } catch {
1044
- return !0;
1045
- }
1046
- }
1047
- function Be(n) {
1048
- return "" + n;
1049
- }
1050
- function Ye(n) {
1051
- if (Yt(n))
1052
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(n)), Be(n);
1053
- }
1054
- var G = x.ReactCurrentOwner, qt = {
1055
- key: !0,
1056
- ref: !0,
1057
- __self: !0,
1058
- __source: !0
1059
- }, qe, Ge, pe;
1060
- pe = {};
1061
- function Gt(n) {
1062
- if (ee.call(n, "ref")) {
1063
- var i = Object.getOwnPropertyDescriptor(n, "ref").get;
1064
- if (i && i.isReactWarning)
1065
- return !1;
1066
- }
1067
- return n.ref !== void 0;
1068
- }
1069
- function Jt(n) {
1070
- if (ee.call(n, "key")) {
1071
- var i = Object.getOwnPropertyDescriptor(n, "key").get;
1072
- if (i && i.isReactWarning)
1073
- return !1;
1074
- }
1075
- return n.key !== void 0;
1076
- }
1077
- function Xt(n, i) {
1078
- if (typeof n.ref == "string" && G.current && i && G.current.stateNode !== i) {
1079
- var f = D(G.current.type);
1080
- pe[f] || (_('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(G.current.type), n.ref), pe[f] = !0);
1081
- }
1082
- }
1083
- function Kt(n, i) {
1084
- {
1085
- var f = function() {
1086
- qe || (qe = !0, _("%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));
1087
- };
1088
- f.isReactWarning = !0, Object.defineProperty(n, "key", {
1089
- get: f,
1090
- configurable: !0
1091
- });
1092
- }
1093
- }
1094
- function Qt(n, i) {
1095
- {
1096
- var f = function() {
1097
- Ge || (Ge = !0, _("%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));
1098
- };
1099
- f.isReactWarning = !0, Object.defineProperty(n, "ref", {
1100
- get: f,
1101
- configurable: !0
1102
- });
1103
- }
1104
- }
1105
- var Zt = function(n, i, f, g, E, w, v) {
1106
- var y = {
1107
- // This tag allows us to uniquely identify this as a React Element
1108
- $$typeof: t,
1109
- // Built-in properties that belong on the element
1110
- type: n,
1111
- key: i,
1112
- ref: f,
1113
- props: v,
1114
- // Record the component responsible for creating this element.
1115
- _owner: w
1116
- };
1117
- return y._store = {}, Object.defineProperty(y._store, "validated", {
1118
- configurable: !1,
1119
- enumerable: !1,
1120
- writable: !0,
1121
- value: !1
1122
- }), Object.defineProperty(y, "_self", {
1123
- configurable: !1,
1124
- enumerable: !1,
1125
- writable: !1,
1126
- value: g
1127
- }), Object.defineProperty(y, "_source", {
1128
- configurable: !1,
1129
- enumerable: !1,
1130
- writable: !1,
1131
- value: E
1132
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
1133
- };
1134
- function Vt(n, i, f, g, E) {
1135
- {
1136
- var w, v = {}, y = null, I = null;
1137
- f !== void 0 && (Ye(f), y = "" + f), Jt(i) && (Ye(i.key), y = "" + i.key), Gt(i) && (I = i.ref, Xt(i, E));
1138
- for (w in i)
1139
- ee.call(i, w) && !qt.hasOwnProperty(w) && (v[w] = i[w]);
1140
- if (n && n.defaultProps) {
1141
- var R = n.defaultProps;
1142
- for (w in R)
1143
- v[w] === void 0 && (v[w] = R[w]);
1144
- }
1145
- if (y || I) {
1146
- var P = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
1147
- y && Kt(v, P), I && Qt(v, P);
1148
- }
1149
- return Zt(n, y, I, E, g, G.current, v);
1150
- }
1151
- }
1152
- var $e = x.ReactCurrentOwner, Je = x.ReactDebugCurrentFrame;
1153
- function W(n) {
1154
- if (n) {
1155
- var i = n._owner, f = V(n.type, n._source, i ? i.type : null);
1156
- Je.setExtraStackFrame(f);
1157
- } else
1158
- Je.setExtraStackFrame(null);
1159
- }
1160
- var ge;
1161
- ge = !1;
1162
- function ye(n) {
1163
- return typeof n == "object" && n !== null && n.$$typeof === t;
1164
- }
1165
- function Xe() {
1166
- {
1167
- if ($e.current) {
1168
- var n = D($e.current.type);
1169
- if (n)
1170
- return `
1171
-
1172
- Check the render method of \`` + n + "`.";
1173
- }
1174
- return "";
1175
- }
1176
- }
1177
- function en(n) {
1178
- {
1179
- if (n !== void 0) {
1180
- var i = n.fileName.replace(/^.*[\\\/]/, ""), f = n.lineNumber;
1181
- return `
1182
-
1183
- Check your code at ` + i + ":" + f + ".";
1184
- }
1185
- return "";
1186
- }
1187
- }
1188
- var Ke = {};
1189
- function tn(n) {
1190
- {
1191
- var i = Xe();
1192
- if (!i) {
1193
- var f = typeof n == "string" ? n : n.displayName || n.name;
1194
- f && (i = `
1195
-
1196
- Check the top-level render call using <` + f + ">.");
1197
- }
1198
- return i;
1199
- }
1200
- }
1201
- function Qe(n, i) {
1202
- {
1203
- if (!n._store || n._store.validated || n.key != null)
1204
- return;
1205
- n._store.validated = !0;
1206
- var f = tn(i);
1207
- if (Ke[f])
1208
- return;
1209
- Ke[f] = !0;
1210
- var g = "";
1211
- n && n._owner && n._owner !== $e.current && (g = " It was passed a child from " + D(n._owner.type) + "."), W(n), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, g), W(null);
1212
- }
1213
- }
1214
- function Ze(n, i) {
1215
- {
1216
- if (typeof n != "object")
1217
- return;
1218
- if (he(n))
1219
- for (var f = 0; f < n.length; f++) {
1220
- var g = n[f];
1221
- ye(g) && Qe(g, i);
1222
- }
1223
- else if (ye(n))
1224
- n._store && (n._store.validated = !0);
1225
- else if (n) {
1226
- var E = T(n);
1227
- if (typeof E == "function" && E !== n.entries)
1228
- for (var w = E.call(n), v; !(v = w.next()).done; )
1229
- ye(v.value) && Qe(v.value, i);
1230
- }
1231
- }
1232
- }
1233
- function nn(n) {
1234
- {
1235
- var i = n.type;
1236
- if (i == null || typeof i == "string")
1237
- return;
1238
- var f;
1239
- if (typeof i == "function")
1240
- f = i.propTypes;
1241
- else if (typeof i == "object" && (i.$$typeof === c || // Note: Memo only checks outer props here.
1242
- // Inner props are checked in the reconciler.
1243
- i.$$typeof === h))
1244
- f = i.propTypes;
1245
- else
1246
- return;
1247
- if (f) {
1248
- var g = D(i);
1249
- Wt(f, n.props, "prop", g, n);
1250
- } else if (i.PropTypes !== void 0 && !ge) {
1251
- ge = !0;
1252
- var E = D(i);
1253
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
1254
- }
1255
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1256
- }
1257
- }
1258
- function rn(n) {
1259
- {
1260
- for (var i = Object.keys(n.props), f = 0; f < i.length; f++) {
1261
- var g = i[f];
1262
- if (g !== "children" && g !== "key") {
1263
- W(n), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), W(null);
1264
- break;
1265
- }
1266
- }
1267
- n.ref !== null && (W(n), _("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
1268
- }
1269
- }
1270
- function Ve(n, i, f, g, E, w) {
1271
- {
1272
- var v = At(n);
1273
- if (!v) {
1274
- var y = "";
1275
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1276
- var I = en(E);
1277
- I ? y += I : y += Xe();
1278
- var R;
1279
- n === null ? R = "null" : he(n) ? R = "array" : n !== void 0 && n.$$typeof === t ? (R = "<" + (D(n.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : R = typeof n, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, y);
1280
- }
1281
- var P = Vt(n, i, f, E, w);
1282
- if (P == null)
1283
- return P;
1284
- if (v) {
1285
- var j = i.children;
1286
- if (j !== void 0)
1287
- if (g)
1288
- if (he(j)) {
1289
- for (var z = 0; z < j.length; z++)
1290
- Ze(j[z], n);
1291
- Object.freeze && Object.freeze(j);
1292
- } else
1293
- _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1294
- else
1295
- Ze(j, n);
1296
- }
1297
- return n === r ? rn(P) : nn(P), P;
1298
- }
1299
- }
1300
- function sn(n, i, f) {
1301
- return Ve(n, i, f, !0);
1302
- }
1303
- function on(n, i, f) {
1304
- return Ve(n, i, f, !1);
1305
- }
1306
- var an = on, ln = sn;
1307
- X.Fragment = r, X.jsx = an, X.jsxs = ln;
1308
- }()), X;
1309
- }
1310
- process.env.NODE_ENV === "production" ? Ce.exports = nr() : Ce.exports = rr();
1311
- var sr = Ce.exports;
1312
- const or = (e) => e.toLowerCase().split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(""), xt = (e) => e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`), ar = (e, t, s = {}) => {
1313
- if (e instanceof Element) {
1314
- const r = ir(e.classList, t, s);
1315
- r !== "" && (e.className = r), Object.keys(t).forEach((o) => {
1316
- if (!(o === "children" || o === "style" || o === "ref" || o === "class" || o === "className" || o === "forwardedRef"))
1317
- if (o.indexOf("on") === 0 && o[2] === o[2].toUpperCase()) {
1318
- const l = o.substring(2), a = l[0].toLowerCase() + l.substring(1);
1319
- Pt(a) || cr(e, a, t[o]);
1320
- } else
1321
- e[o] = t[o], typeof t[o] === "string" && e.setAttribute(xt(o), t[o]);
1322
- });
1323
- }
1324
- }, ir = (e, t, s) => {
1325
- const r = t.className || t.class, o = s.className || s.class, l = Ee(e), a = Ee(r ? r.split(" ") : []), u = Ee(o ? o.split(" ") : []), c = [];
1326
- return l.forEach((d) => {
1327
- a.has(d) ? (c.push(d), a.delete(d)) : u.has(d) || c.push(d);
1328
- }), a.forEach((d) => c.push(d)), c.join(" ");
1329
- }, lr = (e) => {
1330
- switch (e) {
1331
- case "doubleclick":
1332
- return "dblclick";
1333
- }
1334
- return e;
1335
- };
1336
- /**
1337
- * Checks if an event is supported in the current execution environment.
1338
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
1339
- */
1340
- const Pt = (e) => {
1341
- if (typeof document > "u")
1342
- return !0;
1343
- {
1344
- const t = "on" + lr(e);
1345
- let s = t in document;
1346
- if (!s) {
1347
- const r = document.createElement("div");
1348
- r.setAttribute(t, "return;"), s = typeof r[t] == "function";
1349
- }
1350
- return s;
1351
- }
1352
- }, cr = (e, t, s) => {
1353
- const r = e.__events || (e.__events = {}), o = r[t];
1354
- o && e.removeEventListener(t, o), e.addEventListener(
1355
- t,
1356
- r[t] = function(a) {
1357
- s && s.call(this, a);
1358
- }
1359
- );
1360
- }, Ee = (e) => {
1361
- const t = /* @__PURE__ */ new Map();
1362
- return e.forEach((s) => t.set(s, s)), t;
1363
- }, ur = (e, t) => {
1364
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1365
- }, fr = (...e) => (t) => {
1366
- e.forEach((s) => {
1367
- ur(s, t);
1368
- });
1369
- }, dr = (e, t) => {
1370
- const s = (r, o) => /* @__PURE__ */ sr.jsx(e, { ...r, forwardedRef: o });
1371
- return s.displayName = t, ie.forwardRef(s);
1372
- }, $ = (e, t, s, r) => {
1373
- r !== void 0 && r();
1374
- const o = or(e), l = class extends ie.Component {
1375
- constructor(u) {
1376
- super(u);
1377
- ve(this, "componentEl");
1378
- ve(this, "setComponentElRef", (u) => {
1379
- this.componentEl = u;
1380
- });
1381
- }
1382
- componentDidMount() {
1383
- this.componentDidUpdate(this.props);
1384
- }
1385
- componentDidUpdate(u) {
1386
- ar(this.componentEl, this.props, u);
1387
- }
1388
- render() {
1389
- const { children: u, forwardedRef: c, style: d, className: p, ref: h, ...S } = this.props;
1390
- let b = Object.keys(S).reduce((C, T) => {
1391
- const x = S[T];
1392
- if (T.indexOf("on") === 0 && T[2] === T[2].toUpperCase()) {
1393
- const _ = T.substring(2).toLowerCase();
1394
- typeof document < "u" && Pt(_) && (C[T] = x);
1395
- } else {
1396
- const _ = typeof x;
1397
- (_ === "string" || _ === "boolean" || _ === "number") && (C[xt(T)] = x);
1398
- }
1399
- return C;
1400
- }, {});
1401
- s && (b = s(this.props, b));
1402
- const k = {
1403
- ...b,
1404
- ref: fr(c, this.setComponentElRef),
1405
- style: d
1406
- };
1407
- return fn(e, k, u);
1408
- }
1409
- static get displayName() {
1410
- return o;
1411
- }
1412
- };
1413
- return t && (l.contextType = t), dr(l, o);
1414
- }, wr = /* @__PURE__ */ $("archive-icon"), _r = /* @__PURE__ */ $("arrow-icon"), kr = /* @__PURE__ */ $("bold-icon"), Cr = /* @__PURE__ */ $("calendar-cancel-icon"), Tr = /* @__PURE__ */ $("calendar-check-icon"), Rr = /* @__PURE__ */ $("calendar-icon"), xr = /* @__PURE__ */ $("checkmark-circle-icon"), Pr = /* @__PURE__ */ $("chevron-icon"), Or = /* @__PURE__ */ $("close-icon"), Ir = /* @__PURE__ */ $("document-refresh-icon"), Lr = /* @__PURE__ */ $("folder-icon"), jr = /* @__PURE__ */ $("forward-icon"), Ar = /* @__PURE__ */ $("globe-icon"), Dr = /* @__PURE__ */ $("inbox-icon"), Mr = /* @__PURE__ */ $("italic-icon"), Fr = /* @__PURE__ */ $("loading-icon"), Ur = /* @__PURE__ */ $("nylas-booked-event-card"), Nr = /* @__PURE__ */ $("nylas-booking-form"), Hr = /* @__PURE__ */ $("nylas-cancelled-event-card"), Wr = /* @__PURE__ */ $("nylas-composer"), zr = /* @__PURE__ */ $("nylas-date-picker"), Br = /* @__PURE__ */ $("nylas-if-state"), Yr = /* @__PURE__ */ $("nylas-list-folders"), qr = /* @__PURE__ */ $("nylas-list-threads"), Gr = /* @__PURE__ */ $("nylas-locale-switch"), Jr = /* @__PURE__ */ $("nylas-login"), Xr = /* @__PURE__ */ $("nylas-logo"), Kr = /* @__PURE__ */ $("nylas-mailbox"), Qr = /* @__PURE__ */ $("nylas-mailbox-pagination"), Zr = /* @__PURE__ */ $("nylas-mailbox-toolbar-button"), Vr = /* @__PURE__ */ $("nylas-notification"), es = /* @__PURE__ */ $("nylas-open-hours-picker"), ts = /* @__PURE__ */ $("nylas-provider"), ns = /* @__PURE__ */ $("nylas-scheduler"), rs = /* @__PURE__ */ $("nylas-selected-event-card"), ss = /* @__PURE__ */ $("nylas-summarize-message-button"), os = /* @__PURE__ */ $("nylas-threads-refresh"), as = /* @__PURE__ */ $("nylas-threads-search"), is = /* @__PURE__ */ $("nylas-timeslot-picker"), ls = /* @__PURE__ */ $("nylas-view-email"), cs = /* @__PURE__ */ $("nylas-view-thread"), us = /* @__PURE__ */ $("people-icon"), fs = /* @__PURE__ */ $("play-icon"), ds = /* @__PURE__ */ $("refresh-icon"), hs = /* @__PURE__ */ $("reply-all-icon"), ps = /* @__PURE__ */ $("reply-icon"), $s = /* @__PURE__ */ $("sent-icon"), gs = /* @__PURE__ */ $("spam-icon"), ys = /* @__PURE__ */ $("star-icon"), vs = /* @__PURE__ */ $("stop-icon"), ms = /* @__PURE__ */ $("translate-icon"), bs = /* @__PURE__ */ $("trash-icon"), Es = /* @__PURE__ */ $("underline-icon"), Ss = /* @__PURE__ */ $("warning-icon");
1415
- function ws() {
1416
- const [, e] = dn((o) => o + 1, 0), t = me(), s = me(null), r = me(null);
1417
- return hn(() => {
1418
- t.current && (s.current || t.current.getNylasMailboxConnector().then((o) => {
1419
- o && (s.current = o, r.current = s.current.nylasAuthStore, o.nylasAuthStore.on("set", e), e());
1420
- }));
1421
- }, []), [t, r.current];
1422
- }
1423
- export {
1424
- fs as $,
1425
- wr as A,
1426
- kr as B,
1427
- Cr as C,
1428
- Ir as D,
1429
- Jr as E,
1430
- br as F,
1431
- Ar as G,
1432
- bn as H,
1433
- Dr as I,
1434
- Xr as J,
1435
- Kr as K,
1436
- Fr as L,
1437
- Qr as M,
1438
- Ur as N,
1439
- Zr as O,
1440
- Vr as P,
1441
- es as Q,
1442
- ts as R,
1443
- ns as S,
1444
- rs as T,
1445
- ss as U,
1446
- os as V,
1447
- as as W,
1448
- is as X,
1449
- ls as Y,
1450
- cs as Z,
1451
- us as _,
1452
- vr as a,
1453
- ds as a0,
1454
- hs as a1,
1455
- ps as a2,
1456
- $s as a3,
1457
- gs as a4,
1458
- ys as a5,
1459
- vs as a6,
1460
- ms as a7,
1461
- bs as a8,
1462
- Es as a9,
1463
- Ss as aa,
1464
- gr as b,
1465
- yr as c,
1466
- Sr as d,
1467
- _r as e,
1468
- mr as f,
1469
- kn as g,
1470
- $t as h,
1471
- Tr as i,
1472
- Rr as j,
1473
- xr as k,
1474
- Pr as l,
1475
- Or as m,
1476
- Lr as n,
1477
- jr as o,
1478
- Mr as p,
1479
- Nr as q,
1480
- Er as r,
1481
- Hr as s,
1482
- Wr as t,
1483
- ws as u,
1484
- zr as v,
1485
- Br as w,
1486
- Yr as x,
1487
- qr as y,
1488
- Gr as z
1489
- };