@nylas/react 1.1.0-canary.4 → 1.1.0-canary.7

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 (103) hide show
  1. package/dist/elements/index.d.ts +1 -0
  2. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-6078b875.js} +1 -1
  3. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-96e197ca.cjs} +1 -1
  4. package/dist/focus-visible-e8093c16-018ffd63.cjs +1 -0
  5. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-ab01d60a.js} +5 -3
  6. package/dist/index-1fd24ccf.js +3582 -0
  7. package/dist/index-823fdc6f.cjs +36 -0
  8. package/dist/react.cjs +1 -1
  9. package/dist/react.js +53 -52
  10. package/package.json +3 -3
  11. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  12. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  13. package/dist/add-circle-icon_22.entry-077661c3.cjs +0 -1
  14. package/dist/add-circle-icon_22.entry-f699d91e.js +0 -1733
  15. package/dist/archive-icon_7.entry-40b7ef3b.js +0 -75
  16. package/dist/archive-icon_7.entry-e8630de9.cjs +0 -1
  17. package/dist/arrow-icon.entry-58246303.js +0 -15
  18. package/dist/arrow-icon.entry-ffa53114.cjs +0 -1
  19. package/dist/bold-icon_3.entry-106a4e77.cjs +0 -1
  20. package/dist/bold-icon_3.entry-f5f1643d.js +0 -35
  21. package/dist/calendar-cancel-icon.entry-6ae0fd0f.cjs +0 -1
  22. package/dist/calendar-cancel-icon.entry-75b15b19.js +0 -15
  23. package/dist/calendar-check-icon_2.entry-57339318.js +0 -25
  24. package/dist/calendar-check-icon_2.entry-c57f83f3.cjs +0 -1
  25. package/dist/calendar-icon.entry-2069fec6.js +0 -15
  26. package/dist/calendar-icon.entry-492c2630.cjs +0 -1
  27. package/dist/chevron-icon_3.entry-83df50c3.js +0 -117
  28. package/dist/chevron-icon_3.entry-878ff6df.cjs +0 -1
  29. package/dist/close-icon.entry-480c199d.js +0 -15
  30. package/dist/close-icon.entry-8015ca05.cjs +0 -1
  31. package/dist/constants-6ee60d6d-4cd16450.js +0 -3740
  32. package/dist/constants-6ee60d6d-6c0540db.cjs +0 -15
  33. package/dist/document-refresh-icon.entry-06f7972b.cjs +0 -1
  34. package/dist/document-refresh-icon.entry-09870b14.js +0 -15
  35. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  36. package/dist/forward-icon_6.entry-8bb201eb.js +0 -955
  37. package/dist/forward-icon_6.entry-eeecf2a2.cjs +0 -3
  38. package/dist/globe-icon.entry-a690028c.cjs +0 -1
  39. package/dist/globe-icon.entry-d515cbfa.js +0 -15
  40. package/dist/google-logo-icon_3.entry-2164cec1.js +0 -258
  41. package/dist/google-logo-icon_3.entry-b2b85284.cjs +0 -1
  42. package/dist/index-2b8437d6.cjs +0 -30
  43. package/dist/index-db0c5017.js +0 -1824
  44. package/dist/index.es-2578c6a5-098d48d0.cjs +0 -7
  45. package/dist/index.es-2578c6a5-71441142.js +0 -3133
  46. package/dist/info-icon_2.entry-300ef196.js +0 -34
  47. package/dist/info-icon_2.entry-e286aaa5.cjs +0 -1
  48. package/dist/loading-icon.entry-6d8adaa4.js +0 -15
  49. package/dist/loading-icon.entry-dc40e97d.cjs +0 -1
  50. package/dist/mailbox-store-bb21512c-649a374c.js +0 -381
  51. package/dist/mailbox-store-bb21512c-fc3c8c03.cjs +0 -1
  52. package/dist/nylas-additional-participants.entry-4afba192.js +0 -83
  53. package/dist/nylas-additional-participants.entry-db05e510.cjs +0 -1
  54. package/dist/nylas-booked-event-card_10.entry-1ebbe0c0.js +0 -784
  55. package/dist/nylas-booked-event-card_10.entry-6b6fdfae.cjs +0 -1
  56. package/dist/nylas-form-card.entry-70b20571.cjs +0 -1
  57. package/dist/nylas-form-card.entry-7bc23695.js +0 -56
  58. package/dist/nylas-if-state.entry-3829cb3d.js +0 -96
  59. package/dist/nylas-if-state.entry-ebeffe22.cjs +0 -1
  60. package/dist/nylas-list-folders.entry-191688f2.cjs +0 -1
  61. package/dist/nylas-list-folders.entry-7347e78d.js +0 -122
  62. package/dist/nylas-list-threads.entry-432a8d8c.js +0 -72
  63. package/dist/nylas-list-threads.entry-44658578.cjs +0 -1
  64. package/dist/nylas-login.entry-5311f0a7.js +0 -75
  65. package/dist/nylas-login.entry-db17a3d2.cjs +0 -1
  66. package/dist/nylas-mailbox-pagination.entry-20150fb2.js +0 -103
  67. package/dist/nylas-mailbox-pagination.entry-9d3f5baa.cjs +0 -1
  68. package/dist/nylas-mailbox-toolbar-button.entry-6c0f7299.cjs +0 -1
  69. package/dist/nylas-mailbox-toolbar-button.entry-eec426d5.js +0 -84
  70. package/dist/nylas-mailbox.entry-b6c758b9.js +0 -136
  71. package/dist/nylas-mailbox.entry-d41401e0.cjs +0 -1
  72. package/dist/nylas-provider.entry-271cafd2.js +0 -147
  73. package/dist/nylas-provider.entry-6173b721.cjs +0 -1
  74. package/dist/nylas-scheduler-editor.entry-0c75d39e.cjs +0 -7
  75. package/dist/nylas-scheduler-editor.entry-b51ad4b1.js +0 -2192
  76. package/dist/nylas-scheduling.entry-081c8825.cjs +0 -1
  77. package/dist/nylas-scheduling.entry-0a8d1da8.js +0 -237
  78. package/dist/nylas-threads-refresh.entry-72dd854e.js +0 -76
  79. package/dist/nylas-threads-refresh.entry-c3509e6a.cjs +0 -1
  80. package/dist/nylas-threads-search.entry-16a59ef6.cjs +0 -1
  81. package/dist/nylas-threads-search.entry-4750a187.js +0 -71
  82. package/dist/nylas-view-thread.entry-27df3349.cjs +0 -1
  83. package/dist/nylas-view-thread.entry-c6adce43.js +0 -205
  84. package/dist/people-icon.entry-342be0c8.js +0 -15
  85. package/dist/people-icon.entry-35252ca9.cjs +0 -1
  86. package/dist/play-icon_2.entry-0787352c.js +0 -25
  87. package/dist/play-icon_2.entry-f83fa92a.cjs +0 -1
  88. package/dist/refresh-icon.entry-8fbabfe7.js +0 -15
  89. package/dist/refresh-icon.entry-ddbc5446.cjs +0 -1
  90. package/dist/register-component-dc659dc3-e43e8fae.js +0 -105
  91. package/dist/register-component-dc659dc3-fb85ee68.cjs +0 -1
  92. package/dist/scheduler-config-store-51ee4f42-66f8c2ac.js +0 -14
  93. package/dist/scheduler-config-store-51ee4f42-d7d9c25d.cjs +0 -1
  94. package/dist/scheduler-store-72116723-ce4c7a69.cjs +0 -1
  95. package/dist/scheduler-store-72116723-e5f87122.js +0 -294
  96. package/dist/time-period-selector.entry-333942a8.js +0 -78
  97. package/dist/time-period-selector.entry-78d5b3c2.cjs +0 -1
  98. package/dist/translate-icon.entry-87a62108.js +0 -15
  99. package/dist/translate-icon.entry-cb19864c.cjs +0 -1
  100. package/dist/utils-c00bdc3c-89ab163d.js +0 -2111
  101. package/dist/utils-c00bdc3c-94b9c3b6.cjs +0 -8
  102. package/dist/warning-icon.entry-50755d91.cjs +0 -1
  103. package/dist/warning-icon.entry-7a72e24a.js +0 -15
@@ -1,955 +0,0 @@
1
- import { r as ne, h as g, c as We, H as $e, g as Rt, F as bn } from "./index-db0c5017.js";
2
- import { d as T, h as yn, i as En, p as Tn, j as An } from "./utils-c00bdc3c-89ab163d.js";
3
- import { R as _n } from "./register-component-dc659dc3-e43e8fae.js";
4
- import { c as wn } from "./_commonjsHelpers-57e89916-af061c86.js";
5
- import "react";
6
- import "react-dom";
7
- const vn = ".sc-forward-icon-h{display:flex}", Sn = vn, Cn = class {
8
- constructor(t) {
9
- ne(this, t), this.width = "15", this.height = "15";
10
- }
11
- render() {
12
- return g("svg", { key: "a858bd82169ace274a3c8cc1e214cd976e47e113", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "963f33f0803edfb6e8dfdbd287cee4917da7df01", d: "m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z", "fill-rule": "evenodd" }));
13
- }
14
- };
15
- Cn.style = Sn;
16
- const Ln = ':host{display:grid;color:var(--nylas-color-primary-900)}.editor{position:relative;display:block;max-height:300px;overflow:auto;padding:1rem;border:1px solid var(--nylas-color-primary-300)}.editor blockquote{visibility:hidden;overflow:hidden;position:relative;transition:height 0.3s ease;margin:0}.editor blockquote::before{content:"...";visibility:visible;opacity:1;position:absolute;top:0;left:0;background-color:var(--nylas-color-primary-300);width:20px;text-align:center;color:var(--nylas-color-primary-800);vertical-align:middle;display:flex;justify-content:center;align-items:center;align-self:center;cursor:pointer}.editor .collapsed{height:20px}.editor .expanded{visibility:visible;opacity:1;height:auto;margin:0px 0px 0px 0.8ex;border-left:1px solid var(--nylas-color-primary-300);padding-left:1rem}.editor .expanded::before{display:none;}.buttons{display:flex;margin-top:1rem;justify-content:space-between}.buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.buttons sp-button chevron-icon{display:inline-block}.buttons .close{justify-self:end}.toolbar{position:absolute;display:none;background-color:var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);z-index:1}.toolbar sp-button{border:0}', Rn = Ln, kn = class {
17
- constructor(t) {
18
- ne(this, t), this.close = We(this, "close", 7), this.send = We(this, "send", 7), this.closeComposer = (o) => {
19
- this.close.emit(o);
20
- }, this.sendComposer = (o) => {
21
- var s;
22
- if (!this.editorEl) {
23
- T("no editor element");
24
- return;
25
- }
26
- const u = this.editorEl.querySelector(".message-body");
27
- if (!u) {
28
- T("no message body");
29
- return;
30
- }
31
- this.message && (this.send.emit({
32
- message: this.message,
33
- replyBody: ((s = u.querySelector(".message-body")) == null ? void 0 : s.innerHTML) || ""
34
- }), this.close.emit(o), this.editorEl.innerHTML = "");
35
- }, this.message = void 0, this.viewEmailElement = void 0;
36
- }
37
- connectedCallback() {
38
- }
39
- disconnectedCallback() {
40
- this.editorEl && (this.editorEl.innerHTML = "");
41
- }
42
- componentWillLoad() {
43
- }
44
- async componentDidLoad() {
45
- if (this.message && this.watchBody(this.message), !this.editorEl) {
46
- T("[connectedCallback] no editor element");
47
- return;
48
- }
49
- if (!this.toolbarEl) {
50
- T("[connectedCallback] no toolbar element");
51
- return;
52
- }
53
- const t = this.editorEl, o = this.toolbarEl;
54
- t.addEventListener("mouseup", (u) => {
55
- var W;
56
- const s = (W = this.host.shadowRoot) == null ? void 0 : W.getSelection();
57
- if (!s) {
58
- T("no selection");
59
- return;
60
- }
61
- const m = s.getRangeAt(0), a = s.toString();
62
- if (!a) {
63
- o.style.display = "none";
64
- return;
65
- }
66
- const f = t.querySelector(".message-body");
67
- if (!f) {
68
- T("no message body");
69
- return;
70
- }
71
- const l = m.commonAncestorContainer.parentElement;
72
- if (!l)
73
- return;
74
- const E = f.getBoundingClientRect();
75
- T("messageBodyRect", { messageBodyRect: E });
76
- const _ = l.getBoundingClientRect();
77
- T("foundRect", { foundRect: _ });
78
- const de = (l.childNodes[0].textContent || "").indexOf(a), G = window.getComputedStyle(l).fontSize, X = parseInt(G.replace("px", ""), 10), oe = _.top - E.top - o.clientHeight, Ee = de * (1 / X) * 100;
79
- o.style.top = `${oe}px`, o.style.left = `${Ee}px`, o.style.display = "block";
80
- });
81
- }
82
- watchBody(t) {
83
- var a;
84
- if (!this.editorEl) {
85
- T("no editor element");
86
- return;
87
- }
88
- this.editorEl.querySelectorAll(".message-body").forEach((f) => f.remove());
89
- const o = document.createElement("div");
90
- o.classList.add("message-body");
91
- const u = document.createElement("p");
92
- u.innerHTML = " ", o.appendChild(u);
93
- const s = document.createElement("br");
94
- o.appendChild(s);
95
- const m = document.createElement("div");
96
- if (m.classList.add("reply-text"), m.innerText = `On ${new Date(t.date * 1e3).toLocaleDateString(void 0, { dateStyle: "full" })} <${(a = t.from) == null ? void 0 : a.map((f) => f.name || f.email).join(", ")}> wrote:`, o.appendChild(m), t.body) {
97
- const f = document.createElement("html");
98
- f.innerHTML = t.body;
99
- const i = document.createElement("blockquote");
100
- i.classList.add("collapsed"), i.classList.add("gmail_quote"), i.innerHTML = f.innerHTML, o.appendChild(i), T("replyContainer", { replyContainer: i });
101
- }
102
- this.editorEl.appendChild(o), this.editorEl.querySelectorAll("blockquote.collapsed").forEach((f) => {
103
- f.addEventListener("click", function(i) {
104
- i.preventDefault();
105
- const l = i.target;
106
- l.classList.remove("collapsed"), l.classList.add("expanded");
107
- }, { once: !0 });
108
- }), this.editorEl.focus();
109
- }
110
- render() {
111
- return g($e, { key: "89cdb2c6c606698704a06507ddbe301a37134ca4" }, g("sp-theme", { key: "4946560c2ab8518e5172e506caf36fa98fbc3912", scale: "medium", color: "dark" }, g("div", { key: "b21a8843aaebb1fd4169ce2b849fb801bce46df4", class: "editor", contentEditable: !0, ref: (t) => this.editorEl = t }, g("div", { key: "830a97d7947b65c0312630184d539d4f8c7a48eb", class: "toolbar", ref: (t) => this.toolbarEl = t, contentEditable: !1 }, g("sp-button", { key: "2fb11d997b13e4ec6e700155e3001d30f52bb217", quiet: !0, onClick: () => document.execCommand("bold") }, g("div", { key: "5c4fd64a8a3ccb94f36675047c05a662a1846426", slot: "icon" }, g("bold-icon", { key: "033043849fddd392bc078dbb2fd843f6701c0501" })), g("div", { key: "585b08407297a97e3214d716505331f0889ea68f", slot: "label" }, "Bold")), g("sp-button", { key: "b01e3c9c40fbe11122ca7be4b5120ba19262e1d5", quiet: !0, onClick: () => document.execCommand("underline") }, g("div", { key: "e407e888cb414fc4e5b15e9d21349038c7871f83", slot: "icon" }, g("underline-icon", { key: "838cf6c3b7b42708b5ed6e5c53072cda29043f40" })), g("div", { key: "c662e1cefa352cb8910050a77e5b0a2e18de6bed", slot: "label" }, "Underline")), g("sp-button", { key: "7e39fdbbdaeafabf1de93f42758f3b499c70206b", quiet: !0, onClick: () => document.execCommand("italic") }, g("div", { key: "8d7c7be8cf3959726b7541ed64e4e41995461258", slot: "icon" }, g("italic-icon", { key: "ae07a6648728e3f9720dfdc3e3f91e8e4cbf86d9" })), g("div", { key: "fc3fc026d47610df27752ec8a310db99e280014c", slot: "label" }, "Italic")))), g("div", { key: "9d4abb27a5d5a6b2c884da58191ca8f014e9ab43", class: "buttons" }, g("sp-button", { key: "43f2b6d9a4a6d5513eb6fd52fb8f68f416077b37", onClick: this.sendComposer, class: "send" }, "Send"), g("sp-button", { key: "fbae8e0490814b13347e3cc09bfd922ff5fceb43", onClick: this.closeComposer, class: "close" }, "Close"))));
112
- }
113
- get host() {
114
- return Rt(this);
115
- }
116
- static get watchers() {
117
- return {
118
- message: ["watchBody"]
119
- };
120
- }
121
- };
122
- kn.style = Rn;
123
- const Mn = ":host{display:block}sp-button{padding:0;border:0;border-radius:var(--nylas-border-radius);min-block-size:50%;min-inline-size:2rem;background-color:var(--nylas-color-primary-300);fill:var(--nylas-color-primary-800)}sp-button:hover{background-color:var(--nylas-color-primary-400)}.summarize-button.stopped{animation:none}.summarize-button.playing{animation:pulse 2s infinite}.summarize-button.loading{display:flex;align-content:center;height:1.5rem;width:2rem;vertical-align:middle;animation:pulse 2s infinite;flex-wrap:wrap}.summarize-button.loading loading-icon{--dot-color:var(--nylas-color-primary-600)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 var(--nylas-color-primary-300)}70%{transform:scale(1.05);box-shadow:0 0 0 10px rgba(255, 69, 0, 0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255, 69, 0, 0)}}@keyframes wave{0%{transform:translateX(0)}50%{transform:translateX(100%)}100%{transform:translateX(0)}}", Nn = Mn;
124
- var xn = function(t, o, u, s) {
125
- var m = arguments.length, a = m < 3 ? o : s === null ? s = Object.getOwnPropertyDescriptor(o, u) : s, f;
126
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
127
- a = Reflect.decorate(t, o, u, s);
128
- else
129
- for (var i = t.length - 1; i >= 0; i--)
130
- (f = t[i]) && (a = (m < 3 ? f(a) : m > 3 ? f(o, u, a) : f(o, u)) || a);
131
- return m > 3 && a && Object.defineProperty(o, u, a), a;
132
- }, Be = function(t, o) {
133
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
134
- return Reflect.metadata(t, o);
135
- };
136
- const kt = class {
137
- constructor(t) {
138
- ne(this, t), this.summarize = We(this, "summarize", 7), this.abortController = new AbortController(), this.onClick = async (o) => {
139
- var u, s;
140
- o.preventDefault(), o.stopPropagation(), this.state === "stopped" ? this.message && (this.abortController = new AbortController(), this.summarize.emit({
141
- abortController: this.abortController,
142
- playAudio: this.playAudio,
143
- message: this.message,
144
- updateState: this.updateState
145
- }).defaultPrevented || (T("[nylas-summarize-message-button] Default event not prevented, summarizing message"), this.audioRef && (await this.audioRef.play().then(() => {
146
- var a;
147
- return (a = this.audioRef) == null ? void 0 : a.pause();
148
- }).catch((a) => console.error("Error playing audio:", a)), await this.audioRef.play().catch((a) => console.error("Error playing audio:", a))))) : this.state === "playing" ? ((u = this.abortController) == null || u.abort(), (s = this.audioRef) == null || s.pause()) : this.state = "stopped";
149
- }, this.message = void 0, this.state = "stopped", this.playAudio = this.playAudio.bind(this), this.updateState = this.updateState.bind(this);
150
- }
151
- connectedCallback() {
152
- }
153
- disconnectedCallback() {
154
- }
155
- async componentWillLoad() {
156
- T("[nylas-summarize-message-button] Component will load");
157
- }
158
- async componentDidLoad() {
159
- T("[nylas-summarize-message-button] Component did load");
160
- }
161
- async updateState(t) {
162
- this.state = t;
163
- }
164
- async playAudio(t) {
165
- if (!this.audioRef) {
166
- this.state = "stopped";
167
- return;
168
- }
169
- if (!t) {
170
- this.state = "stopped";
171
- return;
172
- }
173
- const o = this.audioRef;
174
- if (!("MediaSource" in window)) {
175
- const i = await t;
176
- if (i == null)
177
- throw new Error("ReadableStream not yet supported in this browser.");
178
- const l = i.getReader(), E = [];
179
- await this.readChunk(l, E);
180
- const _ = new Blob(E, { type: "audio/mpeg" }), N = URL.createObjectURL(_);
181
- o.src = N;
182
- return;
183
- }
184
- const u = new MediaSource();
185
- let s, m = !1;
186
- o.src = URL.createObjectURL(u), u.addEventListener("sourceopen", a);
187
- async function a() {
188
- s = u.addSourceBuffer("audio/mpeg"), s.addEventListener("updateend", f);
189
- const i = await t;
190
- if (i == null)
191
- throw new Error("ReadableStream not yet supported in this browser.");
192
- const l = i.getReader(), E = () => {
193
- l.read().then(({ done: _, value: N }) => {
194
- if (_) {
195
- m = !0;
196
- return;
197
- }
198
- s.updating || s.appendBuffer(N), E();
199
- }).catch((_) => {
200
- console.error("Error while fetching and appending chunks:", _);
201
- });
202
- };
203
- E(), o.paused && o.play().catch((_) => console.error("Error playing audio:", _));
204
- }
205
- function f() {
206
- if (m) {
207
- u.endOfStream(), u.removeEventListener("sourceopen", a), u.removeEventListener("sourceclose", () => {
208
- T("[nylas-summarize-message-button] Source closed");
209
- }), s.removeEventListener("updateend", f);
210
- return;
211
- }
212
- }
213
- }
214
- async readChunk(t, o) {
215
- return t.read().then(({ done: u, value: s }) => u ? o : (o.push(s), this.readChunk(t, o)));
216
- }
217
- render() {
218
- return g($e, { key: "b14f3bab7ebd190d54a66a3e00704f9e4b147a8f" }, g("sp-theme", { key: "3a5b0782c84bbc7dba7b15306d608b885b5a6edc", scale: "medium", color: "dark" }, g("sp-button", { key: "d63121e6f80bd09f1e7ca35e1176aa3a070517b3", label: "Summarize email", "icon-only": !0, onClickCapture: this.onClick, class: {
219
- "summarize-button": !0,
220
- stopped: this.state === "stopped",
221
- loading: this.state === "loading",
222
- playing: this.state === "playing"
223
- } }, this.state === "stopped" && g("play-icon", null), this.state === "loading" && g("loading-icon", null), this.state === "playing" && g("stop-icon", null)), g("audio", { key: "954be0517a3b7328149830b2058d073ae9da591d", ref: (t) => this.audioRef = t, autoPlay: !0, onPlaying: () => this.state = "playing", onPause: () => this.state = "stopped", onEnded: () => {
224
- this.state = "stopped", T("[nylas-summarize-message-button] Audio ended");
225
- } })));
226
- }
227
- };
228
- xn([
229
- _n({
230
- name: "nylas-summarize-message-button",
231
- eventToProps: {
232
- summarize: async (t, o) => {
233
- const { playAudio: u, updateState: s, abortController: m, message: a } = t.detail, f = An(a.body || "");
234
- await s("loading");
235
- try {
236
- const i = await o.messages.summarizeText(f), l = o.messages.textToSpeech(i, m);
237
- await u(l);
238
- } catch (i) {
239
- await s("stopped"), console.error("Error summarizing message:", i);
240
- }
241
- }
242
- },
243
- fireRegisterEvent: !0
244
- }),
245
- Be("design:type", Function),
246
- Be("design:paramtypes", []),
247
- Be("design:returntype", void 0)
248
- ], kt.prototype, "render", null);
249
- kt.style = Nn;
250
- function P(t) {
251
- return !window.matchMedia("(prefers-color-scheme: dark)").matches || !t ? t : t === "transparent" ? "color" : t.startsWith("#") ? Dn(t) : t.startsWith("rgb") ? Mt(t) : t.startsWith("hsl") ? On(t) : In(t) ? Pn(t) : t;
252
- }
253
- function Dn(t) {
254
- t.length < 7 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
255
- const o = (255 - parseInt(t.slice(1, 3), 16)).toString(16).padStart(2, "0"), u = (255 - parseInt(t.slice(3, 5), 16)).toString(16).padStart(2, "0"), s = (255 - parseInt(t.slice(5, 7), 16)).toString(16).padStart(2, "0");
256
- return `#${o}${u}${s}`;
257
- }
258
- function Mt(t) {
259
- var a;
260
- const o = (a = t.match(/\d+/g)) == null ? void 0 : a.map(Number);
261
- if (!o)
262
- return t;
263
- const [u, s, m] = o;
264
- return `rgb(${255 - u}, ${255 - s}, ${255 - m})`;
265
- }
266
- function On(t) {
267
- var a;
268
- const o = (a = t.match(/\d+\.?\d*/g)) == null ? void 0 : a.map(Number);
269
- if (!o)
270
- return t;
271
- const [u, s, m] = o;
272
- return `hsl(${u}, ${s}%, ${100 - m}%)`;
273
- }
274
- function In(t) {
275
- return /^[a-z]+$/i.test(t);
276
- }
277
- function Pn(t) {
278
- return Mt(Un(t));
279
- }
280
- function Un(t) {
281
- return t.toLowerCase() === "red" ? "rgb(255, 0, 0)" : "rgb(0, 0, 0)";
282
- }
283
- function Lt(t) {
284
- if (t instanceof HTMLStyleElement) {
285
- let o = t.textContent;
286
- if (o) {
287
- o = o.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g, "");
288
- const u = o.matchAll(/border-color:\s*([^;]+)/g);
289
- if (u)
290
- for (const i of u) {
291
- const [l, E] = i, _ = l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
292
- o = o.replaceAll(_, l.replace(E, P(E)));
293
- }
294
- const s = o.matchAll(/border:\s*([^;]+)/g);
295
- if (s)
296
- for (const i of s) {
297
- const l = i[0].trim(), E = l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), [_, N, U] = i[1].split(" ");
298
- o = o.replaceAll(E, l.replace(U, P(U)));
299
- }
300
- const m = o.matchAll(/background-color:\s*([^;]+)/g);
301
- if (m)
302
- for (const i of m) {
303
- const [l, E] = i, _ = l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
304
- o = o.replaceAll(_, l.replace(E, P(E))), T("backgroundColor", { fullMatch: l, replace: l.replace(E, P(E)), color: E, invertColor: P(E) });
305
- }
306
- const a = o.matchAll(/background:\s*([^;]+)/g);
307
- if (a)
308
- for (const i of a) {
309
- const l = i[0].trim(), E = l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), [_, N, U] = i[1].split(" ");
310
- o = o.replaceAll(E, l.replace(U, P(U)));
311
- }
312
- const f = o.matchAll(/color:\s*([^;]+)/g);
313
- if (f)
314
- for (const i of f) {
315
- const [l, E] = i, _ = l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
316
- o = o.replaceAll(_, l.replace(E, P(E)));
317
- }
318
- t.textContent = o;
319
- }
320
- }
321
- if (t instanceof HTMLElement) {
322
- const o = window.getComputedStyle(t), u = o.color || t.style.color, s = o.backgroundColor || t.style.backgroundColor, m = o.borderColor || t.style.borderColor;
323
- u && !s ? t.style.color = "" : u && s ? (t.style.color = P(u), t.style.backgroundColor = P(s), T("element", t), T("computedStyle.color", u), T("computedStyle.backgroundColor", s), T("invertColor(color)", P(u)), T("invertColor(backgroundColor)", P(s))) : !u && s && (t.style.backgroundColor = ""), m && (T("borderColor", m), t.style.borderColor = P(m)), t.hasAttribute("bgcolor") && t.removeAttribute("bgcolor");
324
- }
325
- }
326
- function zn(t) {
327
- Lt(t), t.querySelectorAll("*").forEach((u) => Lt(u));
328
- }
329
- var Nt = { exports: {} };
330
- /*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */
331
- (function(t, o) {
332
- (function(u, s) {
333
- t.exports = s();
334
- })(wn, function() {
335
- const {
336
- entries: u,
337
- setPrototypeOf: s,
338
- isFrozen: m,
339
- getPrototypeOf: a,
340
- getOwnPropertyDescriptor: f
341
- } = Object;
342
- let {
343
- freeze: i,
344
- seal: l,
345
- create: E
346
- } = Object, {
347
- apply: _,
348
- construct: N
349
- } = typeof Reflect < "u" && Reflect;
350
- i || (i = function(c) {
351
- return c;
352
- }), l || (l = function(c) {
353
- return c;
354
- }), _ || (_ = function(c, y, h) {
355
- return c.apply(y, h);
356
- }), N || (N = function(c, y) {
357
- return new c(...y);
358
- });
359
- const U = I(Array.prototype.forEach), de = I(Array.prototype.pop), G = I(Array.prototype.push), X = I(String.prototype.toLowerCase), oe = I(String.prototype.toString), Ee = I(String.prototype.match), W = I(String.prototype.replace), xt = I(String.prototype.indexOf), Dt = I(String.prototype.trim), O = I(RegExp.prototype.test), ie = Ot(TypeError);
360
- function I(b) {
361
- return function(c) {
362
- for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), k = 1; k < y; k++)
363
- h[k - 1] = arguments[k];
364
- return _(b, c, h);
365
- };
366
- }
367
- function Ot(b) {
368
- return function() {
369
- for (var c = arguments.length, y = new Array(c), h = 0; h < c; h++)
370
- y[h] = arguments[h];
371
- return N(b, y);
372
- };
373
- }
374
- function p(b, c) {
375
- let y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : X;
376
- s && s(b, null);
377
- let h = c.length;
378
- for (; h--; ) {
379
- let k = c[h];
380
- if (typeof k == "string") {
381
- const F = y(k);
382
- F !== k && (m(c) || (c[h] = F), k = F);
383
- }
384
- b[k] = !0;
385
- }
386
- return b;
387
- }
388
- function It(b) {
389
- for (let c = 0; c < b.length; c++)
390
- f(b, c) === void 0 && (b[c] = null);
391
- return b;
392
- }
393
- function $(b) {
394
- const c = E(null);
395
- for (const [y, h] of u(b))
396
- f(b, y) !== void 0 && (Array.isArray(h) ? c[y] = It(h) : h && typeof h == "object" && h.constructor === Object ? c[y] = $(h) : c[y] = h);
397
- return c;
398
- }
399
- function ue(b, c) {
400
- for (; b !== null; ) {
401
- const h = f(b, c);
402
- if (h) {
403
- if (h.get)
404
- return I(h.get);
405
- if (typeof h.value == "function")
406
- return I(h.value);
407
- }
408
- b = a(b);
409
- }
410
- function y(h) {
411
- return console.warn("fallback value for", h), null;
412
- }
413
- return y;
414
- }
415
- const qe = i(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Te = i(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ae = i(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Pt = i(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), _e = i(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ut = i(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ye = i(["#text"]), je = i(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), we = i(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Xe = i(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), fe = i(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), zt = l(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ft = l(/<%[\w\W]*|[\w\W]*%>/gm), Ht = l(/\${[\w\W]*}/gm), Bt = l(/^data-[\-\w.\u00B7-\uFFFF]/), Wt = l(/^aria-[\-\w]+$/), Ve = l(
416
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
417
- // eslint-disable-line no-useless-escape
418
- ), Gt = l(/^(?:\w+script|data):/i), $t = l(
419
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
420
- // eslint-disable-line no-control-regex
421
- ), Ze = l(/^html$/i);
422
- var Ke = /* @__PURE__ */ Object.freeze({
423
- __proto__: null,
424
- MUSTACHE_EXPR: zt,
425
- ERB_EXPR: Ft,
426
- TMPLIT_EXPR: Ht,
427
- DATA_ATTR: Bt,
428
- ARIA_ATTR: Wt,
429
- IS_ALLOWED_URI: Ve,
430
- IS_SCRIPT_OR_DATA: Gt,
431
- ATTR_WHITESPACE: $t,
432
- DOCTYPE_NAME: Ze
433
- });
434
- const qt = function() {
435
- return typeof window > "u" ? null : window;
436
- }, Yt = function(c, y) {
437
- if (typeof c != "object" || typeof c.createPolicy != "function")
438
- return null;
439
- let h = null;
440
- const k = "data-tt-policy-suffix";
441
- y && y.hasAttribute(k) && (h = y.getAttribute(k));
442
- const F = "dompurify" + (h ? "#" + h : "");
443
- try {
444
- return c.createPolicy(F, {
445
- createHTML(V) {
446
- return V;
447
- },
448
- createScriptURL(V) {
449
- return V;
450
- }
451
- });
452
- } catch {
453
- return console.warn("TrustedTypes policy " + F + " could not be created."), null;
454
- }
455
- };
456
- function Qe() {
457
- let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qt();
458
- const c = (d) => Qe(d);
459
- if (c.version = "3.0.8", c.removed = [], !b || !b.document || b.document.nodeType !== 9)
460
- return c.isSupported = !1, c;
461
- let {
462
- document: y
463
- } = b;
464
- const h = y, k = h.currentScript, {
465
- DocumentFragment: F,
466
- HTMLTemplateElement: V,
467
- Node: ve,
468
- Element: Je,
469
- NodeFilter: Se,
470
- NamedNodeMap: Xt = b.NamedNodeMap || b.MozNamedAttrMap,
471
- HTMLFormElement: Vt,
472
- DOMParser: Zt,
473
- trustedTypes: me
474
- } = b, pe = Je.prototype, Kt = ue(pe, "cloneNode"), Qt = ue(pe, "nextSibling"), Jt = ue(pe, "childNodes"), Ce = ue(pe, "parentNode");
475
- if (typeof V == "function") {
476
- const d = y.createElement("template");
477
- d.content && d.content.ownerDocument && (y = d.content.ownerDocument);
478
- }
479
- let M, ae = "";
480
- const {
481
- implementation: Le,
482
- createNodeIterator: en,
483
- createDocumentFragment: tn,
484
- getElementsByTagName: nn
485
- } = y, {
486
- importNode: on
487
- } = h;
488
- let z = {};
489
- c.isSupported = typeof u == "function" && typeof Ce == "function" && Le && Le.createHTMLDocument !== void 0;
490
- const {
491
- MUSTACHE_EXPR: Re,
492
- ERB_EXPR: ke,
493
- TMPLIT_EXPR: Me,
494
- DATA_ATTR: an,
495
- ARIA_ATTR: rn,
496
- IS_SCRIPT_OR_DATA: sn,
497
- ATTR_WHITESPACE: et
498
- } = Ke;
499
- let {
500
- IS_ALLOWED_URI: tt
501
- } = Ke, v = null;
502
- const nt = p({}, [...qe, ...Te, ...Ae, ..._e, ...Ye]);
503
- let S = null;
504
- const ot = p({}, [...je, ...we, ...Xe, ...fe]);
505
- let w = Object.seal(E(null, {
506
- tagNameCheck: {
507
- writable: !0,
508
- configurable: !1,
509
- enumerable: !0,
510
- value: null
511
- },
512
- attributeNameCheck: {
513
- writable: !0,
514
- configurable: !1,
515
- enumerable: !0,
516
- value: null
517
- },
518
- allowCustomizedBuiltInElements: {
519
- writable: !0,
520
- configurable: !1,
521
- enumerable: !0,
522
- value: !1
523
- }
524
- })), re = null, Ne = null, it = !0, xe = !0, at = !1, rt = !0, Z = !1, q = !1, De = !1, Oe = !1, K = !1, he = !1, ge = !1, st = !0, lt = !1;
525
- const ln = "user-content-";
526
- let Ie = !0, se = !1, Q = {}, J = null;
527
- const ct = p({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
528
- let dt = null;
529
- const ut = p({}, ["audio", "video", "img", "source", "image", "track"]);
530
- let Pe = null;
531
- const ft = p({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), be = "http://www.w3.org/1998/Math/MathML", ye = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml";
532
- let ee = H, Ue = !1, ze = null;
533
- const cn = p({}, [be, ye, H], oe);
534
- let le = null;
535
- const dn = ["application/xhtml+xml", "text/html"], un = "text/html";
536
- let C = null, te = null;
537
- const fn = y.createElement("form"), mt = function(e) {
538
- return e instanceof RegExp || e instanceof Function;
539
- }, Fe = function() {
540
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
541
- if (!(te && te === e)) {
542
- if ((!e || typeof e != "object") && (e = {}), e = $(e), le = // eslint-disable-next-line unicorn/prefer-includes
543
- dn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? un : e.PARSER_MEDIA_TYPE, C = le === "application/xhtml+xml" ? oe : X, v = "ALLOWED_TAGS" in e ? p({}, e.ALLOWED_TAGS, C) : nt, S = "ALLOWED_ATTR" in e ? p({}, e.ALLOWED_ATTR, C) : ot, ze = "ALLOWED_NAMESPACES" in e ? p({}, e.ALLOWED_NAMESPACES, oe) : cn, Pe = "ADD_URI_SAFE_ATTR" in e ? p(
544
- $(ft),
545
- // eslint-disable-line indent
546
- e.ADD_URI_SAFE_ATTR,
547
- // eslint-disable-line indent
548
- C
549
- // eslint-disable-line indent
550
- ) : ft, dt = "ADD_DATA_URI_TAGS" in e ? p(
551
- $(ut),
552
- // eslint-disable-line indent
553
- e.ADD_DATA_URI_TAGS,
554
- // eslint-disable-line indent
555
- C
556
- // eslint-disable-line indent
557
- ) : ut, J = "FORBID_CONTENTS" in e ? p({}, e.FORBID_CONTENTS, C) : ct, re = "FORBID_TAGS" in e ? p({}, e.FORBID_TAGS, C) : {}, Ne = "FORBID_ATTR" in e ? p({}, e.FORBID_ATTR, C) : {}, Q = "USE_PROFILES" in e ? e.USE_PROFILES : !1, it = e.ALLOW_ARIA_ATTR !== !1, xe = e.ALLOW_DATA_ATTR !== !1, at = e.ALLOW_UNKNOWN_PROTOCOLS || !1, rt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Z = e.SAFE_FOR_TEMPLATES || !1, q = e.WHOLE_DOCUMENT || !1, K = e.RETURN_DOM || !1, he = e.RETURN_DOM_FRAGMENT || !1, ge = e.RETURN_TRUSTED_TYPE || !1, Oe = e.FORCE_BODY || !1, st = e.SANITIZE_DOM !== !1, lt = e.SANITIZE_NAMED_PROPS || !1, Ie = e.KEEP_CONTENT !== !1, se = e.IN_PLACE || !1, tt = e.ALLOWED_URI_REGEXP || Ve, ee = e.NAMESPACE || H, w = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (w.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (w.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Z && (xe = !1), he && (K = !0), Q && (v = p({}, Ye), S = [], Q.html === !0 && (p(v, qe), p(S, je)), Q.svg === !0 && (p(v, Te), p(S, we), p(S, fe)), Q.svgFilters === !0 && (p(v, Ae), p(S, we), p(S, fe)), Q.mathMl === !0 && (p(v, _e), p(S, Xe), p(S, fe))), e.ADD_TAGS && (v === nt && (v = $(v)), p(v, e.ADD_TAGS, C)), e.ADD_ATTR && (S === ot && (S = $(S)), p(S, e.ADD_ATTR, C)), e.ADD_URI_SAFE_ATTR && p(Pe, e.ADD_URI_SAFE_ATTR, C), e.FORBID_CONTENTS && (J === ct && (J = $(J)), p(J, e.FORBID_CONTENTS, C)), Ie && (v["#text"] = !0), q && p(v, ["html", "head", "body"]), v.table && (p(v, ["tbody"]), delete re.tbody), e.TRUSTED_TYPES_POLICY) {
558
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
559
- throw ie('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
560
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
561
- throw ie('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
562
- M = e.TRUSTED_TYPES_POLICY, ae = M.createHTML("");
563
- } else
564
- M === void 0 && (M = Yt(me, k)), M !== null && typeof ae == "string" && (ae = M.createHTML(""));
565
- i && i(e), te = e;
566
- }
567
- }, pt = p({}, ["mi", "mo", "mn", "ms", "mtext"]), ht = p({}, ["foreignobject", "desc", "title", "annotation-xml"]), mn = p({}, ["title", "style", "font", "a", "script"]), gt = p({}, [...Te, ...Ae, ...Pt]), bt = p({}, [..._e, ...Ut]), pn = function(e) {
568
- let n = Ce(e);
569
- (!n || !n.tagName) && (n = {
570
- namespaceURI: ee,
571
- tagName: "template"
572
- });
573
- const r = X(e.tagName), A = X(n.tagName);
574
- return ze[e.namespaceURI] ? e.namespaceURI === ye ? n.namespaceURI === H ? r === "svg" : n.namespaceURI === be ? r === "svg" && (A === "annotation-xml" || pt[A]) : !!gt[r] : e.namespaceURI === be ? n.namespaceURI === H ? r === "math" : n.namespaceURI === ye ? r === "math" && ht[A] : !!bt[r] : e.namespaceURI === H ? n.namespaceURI === ye && !ht[A] || n.namespaceURI === be && !pt[A] ? !1 : !bt[r] && (mn[r] || !gt[r]) : !!(le === "application/xhtml+xml" && ze[e.namespaceURI]) : !1;
575
- }, Y = function(e) {
576
- G(c.removed, {
577
- element: e
578
- });
579
- try {
580
- e.parentNode.removeChild(e);
581
- } catch {
582
- e.remove();
583
- }
584
- }, He = function(e, n) {
585
- try {
586
- G(c.removed, {
587
- attribute: n.getAttributeNode(e),
588
- from: n
589
- });
590
- } catch {
591
- G(c.removed, {
592
- attribute: null,
593
- from: n
594
- });
595
- }
596
- if (n.removeAttribute(e), e === "is" && !S[e])
597
- if (K || he)
598
- try {
599
- Y(n);
600
- } catch {
601
- }
602
- else
603
- try {
604
- n.setAttribute(e, "");
605
- } catch {
606
- }
607
- }, yt = function(e) {
608
- let n = null, r = null;
609
- if (Oe)
610
- e = "<remove></remove>" + e;
611
- else {
612
- const R = Ee(e, /^[\r\n\t ]+/);
613
- r = R && R[0];
614
- }
615
- le === "application/xhtml+xml" && ee === H && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
616
- const A = M ? M.createHTML(e) : e;
617
- if (ee === H)
618
- try {
619
- n = new Zt().parseFromString(A, le);
620
- } catch {
621
- }
622
- if (!n || !n.documentElement) {
623
- n = Le.createDocument(ee, "template", null);
624
- try {
625
- n.documentElement.innerHTML = Ue ? ae : A;
626
- } catch {
627
- }
628
- }
629
- const L = n.body || n.documentElement;
630
- return e && r && L.insertBefore(y.createTextNode(r), L.childNodes[0] || null), ee === H ? nn.call(n, q ? "html" : "body")[0] : q ? n.documentElement : L;
631
- }, Et = function(e) {
632
- return en.call(
633
- e.ownerDocument || e,
634
- e,
635
- // eslint-disable-next-line no-bitwise
636
- Se.SHOW_ELEMENT | Se.SHOW_COMMENT | Se.SHOW_TEXT,
637
- null
638
- );
639
- }, hn = function(e) {
640
- return e instanceof Vt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Xt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
641
- }, Tt = function(e) {
642
- return typeof ve == "function" && e instanceof ve;
643
- }, B = function(e, n, r) {
644
- z[e] && U(z[e], (A) => {
645
- A.call(c, n, r, te);
646
- });
647
- }, At = function(e) {
648
- let n = null;
649
- if (B("beforeSanitizeElements", e, null), hn(e))
650
- return Y(e), !0;
651
- const r = C(e.nodeName);
652
- if (B("uponSanitizeElement", e, {
653
- tagName: r,
654
- allowedTags: v
655
- }), e.hasChildNodes() && !Tt(e.firstElementChild) && O(/<[/\w]/g, e.innerHTML) && O(/<[/\w]/g, e.textContent))
656
- return Y(e), !0;
657
- if (!v[r] || re[r]) {
658
- if (!re[r] && wt(r) && (w.tagNameCheck instanceof RegExp && O(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r)))
659
- return !1;
660
- if (Ie && !J[r]) {
661
- const A = Ce(e) || e.parentNode, L = Jt(e) || e.childNodes;
662
- if (L && A) {
663
- const R = L.length;
664
- for (let x = R - 1; x >= 0; --x)
665
- A.insertBefore(Kt(L[x], !0), Qt(e));
666
- }
667
- }
668
- return Y(e), !0;
669
- }
670
- return e instanceof Je && !pn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Y(e), !0) : (Z && e.nodeType === 3 && (n = e.textContent, U([Re, ke, Me], (A) => {
671
- n = W(n, A, " ");
672
- }), e.textContent !== n && (G(c.removed, {
673
- element: e.cloneNode()
674
- }), e.textContent = n)), B("afterSanitizeElements", e, null), !1);
675
- }, _t = function(e, n, r) {
676
- if (st && (n === "id" || n === "name") && (r in y || r in fn))
677
- return !1;
678
- if (!(xe && !Ne[n] && O(an, n))) {
679
- if (!(it && O(rn, n))) {
680
- if (!S[n] || Ne[n]) {
681
- if (
682
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
683
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
684
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
685
- !(wt(e) && (w.tagNameCheck instanceof RegExp && O(w.tagNameCheck, e) || w.tagNameCheck instanceof Function && w.tagNameCheck(e)) && (w.attributeNameCheck instanceof RegExp && O(w.attributeNameCheck, n) || w.attributeNameCheck instanceof Function && w.attributeNameCheck(n)) || // Alternative, second condition checks if it's an `is`-attribute, AND
686
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
687
- n === "is" && w.allowCustomizedBuiltInElements && (w.tagNameCheck instanceof RegExp && O(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r)))
688
- )
689
- return !1;
690
- } else if (!Pe[n]) {
691
- if (!O(tt, W(r, et, ""))) {
692
- if (!((n === "src" || n === "xlink:href" || n === "href") && e !== "script" && xt(r, "data:") === 0 && dt[e])) {
693
- if (!(at && !O(sn, W(r, et, "")))) {
694
- if (r)
695
- return !1;
696
- }
697
- }
698
- }
699
- }
700
- }
701
- }
702
- return !0;
703
- }, wt = function(e) {
704
- return e.indexOf("-") > 0;
705
- }, vt = function(e) {
706
- B("beforeSanitizeAttributes", e, null);
707
- const {
708
- attributes: n
709
- } = e;
710
- if (!n)
711
- return;
712
- const r = {
713
- attrName: "",
714
- attrValue: "",
715
- keepAttr: !0,
716
- allowedAttributes: S
717
- };
718
- let A = n.length;
719
- for (; A--; ) {
720
- const L = n[A], {
721
- name: R,
722
- namespaceURI: x,
723
- value: j
724
- } = L, ce = C(R);
725
- let D = R === "value" ? j : Dt(j);
726
- if (r.attrName = ce, r.attrValue = D, r.keepAttr = !0, r.forceKeepAttr = void 0, B("uponSanitizeAttribute", e, r), D = r.attrValue, r.forceKeepAttr || (He(R, e), !r.keepAttr))
727
- continue;
728
- if (!rt && O(/\/>/i, D)) {
729
- He(R, e);
730
- continue;
731
- }
732
- Z && U([Re, ke, Me], (Ct) => {
733
- D = W(D, Ct, " ");
734
- });
735
- const St = C(e.nodeName);
736
- if (_t(St, ce, D)) {
737
- if (lt && (ce === "id" || ce === "name") && (He(R, e), D = ln + D), M && typeof me == "object" && typeof me.getAttributeType == "function" && !x)
738
- switch (me.getAttributeType(St, ce)) {
739
- case "TrustedHTML": {
740
- D = M.createHTML(D);
741
- break;
742
- }
743
- case "TrustedScriptURL": {
744
- D = M.createScriptURL(D);
745
- break;
746
- }
747
- }
748
- try {
749
- x ? e.setAttributeNS(x, R, D) : e.setAttribute(R, D), de(c.removed);
750
- } catch {
751
- }
752
- }
753
- }
754
- B("afterSanitizeAttributes", e, null);
755
- }, gn = function d(e) {
756
- let n = null;
757
- const r = Et(e);
758
- for (B("beforeSanitizeShadowDOM", e, null); n = r.nextNode(); )
759
- B("uponSanitizeShadowNode", n, null), !At(n) && (n.content instanceof F && d(n.content), vt(n));
760
- B("afterSanitizeShadowDOM", e, null);
761
- };
762
- return c.sanitize = function(d) {
763
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, r = null, A = null, L = null;
764
- if (Ue = !d, Ue && (d = "<!-->"), typeof d != "string" && !Tt(d))
765
- if (typeof d.toString == "function") {
766
- if (d = d.toString(), typeof d != "string")
767
- throw ie("dirty is not a string, aborting");
768
- } else
769
- throw ie("toString is not a function");
770
- if (!c.isSupported)
771
- return d;
772
- if (De || Fe(e), c.removed = [], typeof d == "string" && (se = !1), se) {
773
- if (d.nodeName) {
774
- const j = C(d.nodeName);
775
- if (!v[j] || re[j])
776
- throw ie("root node is forbidden and cannot be sanitized in-place");
777
- }
778
- } else if (d instanceof ve)
779
- n = yt("<!---->"), r = n.ownerDocument.importNode(d, !0), r.nodeType === 1 && r.nodeName === "BODY" || r.nodeName === "HTML" ? n = r : n.appendChild(r);
780
- else {
781
- if (!K && !Z && !q && // eslint-disable-next-line unicorn/prefer-includes
782
- d.indexOf("<") === -1)
783
- return M && ge ? M.createHTML(d) : d;
784
- if (n = yt(d), !n)
785
- return K ? null : ge ? ae : "";
786
- }
787
- n && Oe && Y(n.firstChild);
788
- const R = Et(se ? d : n);
789
- for (; A = R.nextNode(); )
790
- At(A) || (A.content instanceof F && gn(A.content), vt(A));
791
- if (se)
792
- return d;
793
- if (K) {
794
- if (he)
795
- for (L = tn.call(n.ownerDocument); n.firstChild; )
796
- L.appendChild(n.firstChild);
797
- else
798
- L = n;
799
- return (S.shadowroot || S.shadowrootmode) && (L = on.call(h, L, !0)), L;
800
- }
801
- let x = q ? n.outerHTML : n.innerHTML;
802
- return q && v["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && O(Ze, n.ownerDocument.doctype.name) && (x = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
803
- ` + x), Z && U([Re, ke, Me], (j) => {
804
- x = W(x, j, " ");
805
- }), M && ge ? M.createHTML(x) : x;
806
- }, c.setConfig = function() {
807
- let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
808
- Fe(d), De = !0;
809
- }, c.clearConfig = function() {
810
- te = null, De = !1;
811
- }, c.isValidAttribute = function(d, e, n) {
812
- te || Fe({});
813
- const r = C(d), A = C(e);
814
- return _t(r, A, n);
815
- }, c.addHook = function(d, e) {
816
- typeof e == "function" && (z[d] = z[d] || [], G(z[d], e));
817
- }, c.removeHook = function(d) {
818
- if (z[d])
819
- return de(z[d]);
820
- }, c.removeHooks = function(d) {
821
- z[d] && (z[d] = []);
822
- }, c.removeAllHooks = function() {
823
- z = {};
824
- }, c;
825
- }
826
- var jt = Qe();
827
- return jt;
828
- });
829
- })(Nt);
830
- const Ge = Nt.exports, Fn = ":host{display:inline-grid;overflow:hidden;width:100%}.view-email{width:100%}.view-email div.gmail_quote{display:none;color:var(--nylas-color-primary-400)}.view-email div.gmail_quote.show{display:block}.view-email blockquote{border-color:var(--nylas-color-primary-500) !important}.view-email .nylas-view-email-toggle-button{display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);border:0;border-radius:2px;font-size:14px;font-weight:500;line-height:1.5;transition:all 0.2s ease-in-out}.view-email .nylas-view-email-toggle-button:hover{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600)}", Hn = Fn;
831
- Ge.addHook("afterSanitizeAttributes", function(t) {
832
- "target" in t && (t.setAttribute("target", "_blank"), t.setAttribute("rel", "noopener"));
833
- });
834
- const Bn = class {
835
- constructor(t) {
836
- ne(this, t), this.htmlElement = document.createElement("html"), this.setBody = (o) => {
837
- var m;
838
- this.state = "loading", this.styles = [], this.hoistedFontURLs = /* @__PURE__ */ new Map(), this.sanitizedBody = "", document.querySelectorAll(".nylas-view-email-font").forEach((a) => {
839
- a.remove();
840
- }), (this.message ? yn(this.message) : En(o)) || (o = `<html><body>${Tn(o)}</body></html>`), this.htmlElement.innerHTML = o, this.detectDarkMode && zn(this.htmlElement), this.htmlElement.querySelectorAll("link").forEach((a) => {
841
- if (console.debug(`[nylas-view-email] Hoisting link: ${a.getAttribute("href")}`), a.getAttribute("rel") === "stylesheet" && a.getAttribute("href")) {
842
- const f = a.getAttribute("href");
843
- if (f) {
844
- const i = new URL(f, window.location.href);
845
- (i.protocol === "https:" || i.protocol === "http:") && this.hoistedFontURLs.set(i.href, i.href);
846
- }
847
- }
848
- }), this.htmlElement.querySelectorAll("style").forEach((a) => {
849
- a.innerHTML.split(`
850
- `).forEach((f) => {
851
- const i = f.match(/@import url\((.*)\)/);
852
- if (i) {
853
- const l = new URL(i[1], window.location.href);
854
- (l.protocol === "https:" || l.protocol === "http:") && this.hoistedFontURLs.set(l.href, l.href);
855
- }
856
- }), a.innerHTML = a.innerHTML.replace("body", ":host"), this.styles.push(a), a.remove();
857
- }), this.htmlElement.querySelectorAll("a").forEach((a) => {
858
- a.setAttribute("target", "_blank");
859
- });
860
- const s = this.htmlElement.querySelector(".gmail_quote");
861
- if (s) {
862
- const a = document.createElement("button");
863
- a.classList.add("nylas-view-email-toggle-button"), a.setAttribute("aria-label", "Show quoted text"), a.innerText = "...", (m = s.parentElement) == null || m.insertBefore(a, s);
864
- }
865
- this.sanitizedBody = Ge.sanitize(this.htmlElement.innerHTML), this.hoistedFontURLs.forEach((a, f) => {
866
- const i = document.createElement("link");
867
- i.setAttribute("rel", "stylesheet"), i.setAttribute("href", a), i.classList.add("nylas-view-email-font"), document.head.appendChild(i);
868
- }), this.state = "ready";
869
- }, this.handleMobileSize = () => {
870
- var u, s, m, a;
871
- const o = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
872
- if (o <= 768) {
873
- const f = (u = this.viewEmailElement) == null ? void 0 : u.getBoundingClientRect();
874
- if (f && this.viewEmailElement && this.parent && f.width > o) {
875
- const i = this.parent, l = i == null ? void 0 : i.getBoundingClientRect();
876
- T("Parent width:", l == null ? void 0 : l.width, "Parent height:", l == null ? void 0 : l.height), T("Parent client width:", i.clientWidth, "Parent client height:", i.clientHeight);
877
- const E = l.width / f.width, _ = l.height / f.height, N = Math.min(E, _);
878
- T("Scale:", N), this.viewEmailElement.style.setProperty("transform", `scale(${N})`), this.viewEmailElement.style.setProperty("transform-origin", "top left"), this.viewEmailElement.style.setProperty("height", `${f.height * N}px`);
879
- }
880
- } else
881
- (s = this.viewEmailElement) == null || s.style.removeProperty("transform"), (m = this.viewEmailElement) == null || m.style.removeProperty("transform-origin"), (a = this.viewEmailElement) == null || a.style.removeProperty("height");
882
- }, this.message = void 0, this.parent = void 0, this.attachments = [], this.detectDarkMode = !0, this.state = "loading", this.sanitizedBody = "", this.styles = [], this.viewEmailElement = void 0, this.hoistedFontURLs = /* @__PURE__ */ new Map();
883
- }
884
- connectedCallback() {
885
- }
886
- disconnectedCallback() {
887
- T("[nylas-view-email] Component disconnected"), this.state = "loading", this.styles = [], this.hoistedFontURLs = /* @__PURE__ */ new Map(), this.sanitizedBody = "", document.querySelectorAll(".nylas-view-email-font").forEach((t) => {
888
- t.remove();
889
- });
890
- }
891
- async componentWillLoad() {
892
- var t;
893
- T("[nylas-view-email] component loaded"), this.setBody(((t = this.message) == null ? void 0 : t.body) ?? "");
894
- }
895
- async componentDidLoad() {
896
- T("[nylas-view-thread] Component did load"), this.handleMobileSize();
897
- }
898
- async messageChanged() {
899
- var t;
900
- T("[nylas-view-thread] Message changed", { message: this.message }), this.setBody(((t = this.message) == null ? void 0 : t.body) ?? "");
901
- }
902
- handleScroll() {
903
- this.handleMobileSize();
904
- }
905
- viewEmailElementChanged() {
906
- var o;
907
- const t = (o = this.viewEmailElement) == null ? void 0 : o.querySelectorAll(".nylas-view-email-toggle-button");
908
- t && t.forEach((u) => {
909
- u.addEventListener("click", () => {
910
- var m;
911
- const s = (m = this.viewEmailElement) == null ? void 0 : m.querySelector(".gmail_quote");
912
- s && s.classList.toggle("show");
913
- });
914
- });
915
- }
916
- render() {
917
- return console.debug("[nylas-view-email] render", { hoistedFontURLs: this.hoistedFontURLs }), g($e, { key: "5209aa3727b4c8013cec3ee0a33afdb38e9925d9" }, this.state === "loading" && g("div", null, "Loading..."), this.state === "ready" && g(bn, null, this.styles.map((t) => g("style", null, Ge.sanitize(t.innerHTML))), g("div", { class: "view-email", part: "view-email", innerHTML: this.sanitizedBody, ref: (t) => this.viewEmailElement = t })));
918
- }
919
- get host() {
920
- return Rt(this);
921
- }
922
- static get watchers() {
923
- return {
924
- message: ["messageChanged"],
925
- viewEmailElement: ["viewEmailElementChanged"]
926
- };
927
- }
928
- };
929
- Bn.style = Hn;
930
- const Wn = ".sc-reply-all-icon-h{display:flex}", Gn = Wn, $n = class {
931
- constructor(t) {
932
- ne(this, t), this.width = "15", this.height = "15";
933
- }
934
- render() {
935
- return g("svg", { key: "cf3a910b7232018b6579cfe31a868e3ba54f30b0", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "1db5bb9aa170d0a00c5939cdd7bfe7b878124c2c", d: "m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z", "fill-rule": "evenodd" }));
936
- }
937
- };
938
- $n.style = Gn;
939
- const qn = ".sc-reply-icon-h{display:flex}", Yn = qn, jn = class {
940
- constructor(t) {
941
- ne(this, t), this.width = "15", this.height = "15";
942
- }
943
- render() {
944
- return g("svg", { key: "a353055eb9122f1dae36fbf49a557c431fd8580a", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "97ac62efd50d229e10b45fc2a47f3c8c5a9b6e5d", d: "M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816", "fill-rule": "evenodd" }));
945
- }
946
- };
947
- jn.style = Yn;
948
- export {
949
- Cn as forward_icon,
950
- kn as nylas_composer,
951
- kt as nylas_summarize_message_button,
952
- Bn as nylas_view_email,
953
- $n as reply_all_icon,
954
- jn as reply_icon
955
- };