@nylas/react 1.0.0-prealpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/LICENSE.md +22 -0
  2. package/README.md +3 -0
  3. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +1 -0
  4. package/dist/_commonjsHelpers-57e89916-af061c86.js +19 -0
  5. package/dist/archive-icon_7.entry-53aede1b.js +75 -0
  6. package/dist/archive-icon_7.entry-8c90815a.cjs +1 -0
  7. package/dist/arrow-icon.entry-2867f4fb.js +15 -0
  8. package/dist/arrow-icon.entry-a2f53919.cjs +1 -0
  9. package/dist/bold-icon_3.entry-ad806730.js +35 -0
  10. package/dist/bold-icon_3.entry-e0bc6774.cjs +1 -0
  11. package/dist/calendar-cancel-icon.entry-546b7bd4.cjs +1 -0
  12. package/dist/calendar-cancel-icon.entry-74051835.js +15 -0
  13. package/dist/calendar-check-icon_3.entry-42bab0b4.js +35 -0
  14. package/dist/calendar-check-icon_3.entry-f5846fee.cjs +1 -0
  15. package/dist/calendar-icon.entry-25474b1e.cjs +1 -0
  16. package/dist/calendar-icon.entry-c751873f.js +15 -0
  17. package/dist/chevron-icon.entry-60842fb6.js +15 -0
  18. package/dist/chevron-icon.entry-97e4621e.cjs +1 -0
  19. package/dist/close-icon_2.entry-aa015993.cjs +1 -0
  20. package/dist/close-icon_2.entry-ef03bd27.js +25 -0
  21. package/dist/core-js-38e53e34.cjs +4 -0
  22. package/dist/core-js-a9d3b6e1.js +3297 -0
  23. package/dist/document-refresh-icon.entry-b27207eb.js +15 -0
  24. package/dist/document-refresh-icon.entry-ca2ef29e.cjs +1 -0
  25. package/dist/dom-68f08be9.cjs +15 -0
  26. package/dist/dom-86e17616.js +664 -0
  27. package/dist/duration-bddc4a13-05d3e3e2.cjs +1 -0
  28. package/dist/duration-bddc4a13-179ce826.js +41 -0
  29. package/dist/elements/index.d.ts +56 -0
  30. package/dist/elements/react-component-lib/createComponent.d.ts +10 -0
  31. package/dist/elements/react-component-lib/createOverlayComponent.d.ts +21 -0
  32. package/dist/elements/react-component-lib/index.d.ts +2 -0
  33. package/dist/elements/react-component-lib/interfaces.d.ts +29 -0
  34. package/dist/elements/react-component-lib/utils/attachProps.d.ts +9 -0
  35. package/dist/elements/react-component-lib/utils/case.d.ts +2 -0
  36. package/dist/elements/react-component-lib/utils/dev.d.ts +2 -0
  37. package/dist/elements/react-component-lib/utils/index.d.ts +10 -0
  38. package/dist/elements-60ebdb01-24595598.cjs +16494 -0
  39. package/dist/elements-60ebdb01-5d144002.js +27455 -0
  40. package/dist/flow-40ff9cea-6f8c30e2.cjs +9 -0
  41. package/dist/flow-40ff9cea-ee70fdf5.js +505 -0
  42. package/dist/focus-visible-e8093c16-28fc08a0.js +82 -0
  43. package/dist/focus-visible-e8093c16-f380b705.cjs +1 -0
  44. package/dist/forward-icon_6.entry-725d1be4.cjs +3 -0
  45. package/dist/forward-icon_6.entry-dc8f7235.js +955 -0
  46. package/dist/globe-icon.entry-796d3f48.js +15 -0
  47. package/dist/globe-icon.entry-918cfd35.cjs +1 -0
  48. package/dist/index-29d0e781.cjs +30 -0
  49. package/dist/index-2b85580a-bfc3ceac.cjs +7 -0
  50. package/dist/index-2b85580a-f9211f23.js +3238 -0
  51. package/dist/index-4f65b6f9.js +1489 -0
  52. package/dist/index.d.ts +4 -0
  53. package/dist/loading-icon.entry-8e49fab0.js +15 -0
  54. package/dist/loading-icon.entry-b2534e3e.cjs +1 -0
  55. package/dist/mailbox-store-0019772c-06d31a90.js +380 -0
  56. package/dist/mailbox-store-0019772c-d1254c5c.cjs +1 -0
  57. package/dist/nylas-booked-event-card_9.entry-d995d7cb.js +4567 -0
  58. package/dist/nylas-booked-event-card_9.entry-ea02f083.cjs +148 -0
  59. package/dist/nylas-if-state_3.entry-ce816adb.js +291 -0
  60. package/dist/nylas-if-state_3.entry-e8c831b7.cjs +1 -0
  61. package/dist/nylas-list-folders.entry-8134344b.js +121 -0
  62. package/dist/nylas-list-folders.entry-de8cca60.cjs +1 -0
  63. package/dist/nylas-list-threads.entry-1367fe30.js +71 -0
  64. package/dist/nylas-list-threads.entry-93b70a1a.cjs +1 -0
  65. package/dist/nylas-mailbox-pagination.entry-568ac217.js +102 -0
  66. package/dist/nylas-mailbox-pagination.entry-6bb0ee37.cjs +1 -0
  67. package/dist/nylas-mailbox-toolbar-button.entry-9214b283.js +83 -0
  68. package/dist/nylas-mailbox-toolbar-button.entry-d4ad5c15.cjs +1 -0
  69. package/dist/nylas-open-hours-picker.entry-109f13f5.js +186 -0
  70. package/dist/nylas-open-hours-picker.entry-2c19643f.cjs +1 -0
  71. package/dist/nylas-provider.entry-2cfe5f0e.js +134 -0
  72. package/dist/nylas-provider.entry-87fa9276.cjs +1 -0
  73. package/dist/nylas-scheduler.entry-6ec8e574.js +195 -0
  74. package/dist/nylas-scheduler.entry-b41cbf99.cjs +1 -0
  75. package/dist/nylas-threads-refresh.entry-6d61a689.cjs +1 -0
  76. package/dist/nylas-threads-refresh.entry-9111a403.js +75 -0
  77. package/dist/nylas-threads-search.entry-03073490.cjs +1 -0
  78. package/dist/nylas-threads-search.entry-2124f663.js +70 -0
  79. package/dist/nylas-view-thread.entry-4ecbcd78.cjs +1 -0
  80. package/dist/nylas-view-thread.entry-fe51c1f6.js +204 -0
  81. package/dist/play-icon_2.entry-8e156535.js +25 -0
  82. package/dist/play-icon_2.entry-cf1cbc8d.cjs +1 -0
  83. package/dist/property-0065dde7-83dc9cc4.cjs +23 -0
  84. package/dist/property-0065dde7-c57b8fa3.js +589 -0
  85. package/dist/react.cjs +1 -0
  86. package/dist/react.js +62 -0
  87. package/dist/refresh-icon.entry-4ddd53b0.js +15 -0
  88. package/dist/refresh-icon.entry-9f24e833.cjs +1 -0
  89. package/dist/register-component-55376f31-5eaf8954.js +105 -0
  90. package/dist/register-component-55376f31-8d6ddee4.cjs +1 -0
  91. package/dist/scheduler-store-5a39585a-117668e3.js +173 -0
  92. package/dist/scheduler-store-5a39585a-2c848bec.cjs +1 -0
  93. package/dist/translate-icon.entry-0cd24de4.cjs +1 -0
  94. package/dist/translate-icon.entry-db2cdf1d.js +15 -0
  95. package/dist/utils-5074a070-ce33ee6b.js +119 -0
  96. package/dist/utils-5074a070-d5ba6add.cjs +2 -0
  97. package/package.json +47 -0
@@ -0,0 +1,955 @@
1
+ import { r as ne, h as g, c as We, H as $e, g as Rt, F as bn } from "./index-4f65b6f9.js";
2
+ import { d as T, j as yn, k as En, p as Tn, l as An } from "./utils-5074a070-ce33ee6b.js";
3
+ import { R as _n } from "./register-component-55376f31-5eaf8954.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: "4f51b5a4b2779e9877ce09164250017619114cb0", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "b2f1b016bdaef66b1c014791dd681fdfbdb3a160", 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: "a1e6e146356d27b4612c1381a051e421468016f9" }, g("sp-theme", { key: "a55f43e956e35a41e0854b7653f3eaa0472e4603", scale: "medium", color: "dark" }, g("div", { key: "dca393d6d4cae7d64630c2e684fa403638135aab", class: "editor", contentEditable: !0, ref: (t) => this.editorEl = t }, g("div", { key: "e77b4c9ea8b843cb15ebe92b49120bcf7b6a7ce4", class: "toolbar", ref: (t) => this.toolbarEl = t, contentEditable: !1 }, g("sp-button", { key: "0b825b12e643a37c4e746eec4fc51608f576a58b", quiet: !0, onClick: () => document.execCommand("bold") }, g("div", { key: "95051b6e9b07e9792e180e09a0ca74c834a6f6c8", slot: "icon" }, g("bold-icon", { key: "6f33cd1e9525984d8c9b001f2b3a114bf08ec9a5" })), g("div", { key: "250323dfd86467b528903b7cdbfc704efffcc789", slot: "label" }, "Bold")), g("sp-button", { key: "af4d4302617dd0ee1ad3d50161e4a019e4fbc1e7", quiet: !0, onClick: () => document.execCommand("underline") }, g("div", { key: "aa2e4a6c9be743d228b5ebc7a8c59d59cbed5b2c", slot: "icon" }, g("underline-icon", { key: "6833ead83e35cd0b07c0c88b81be3446d3efd824" })), g("div", { key: "1c18f62267adfa70e176efed64f745dd202c0230", slot: "label" }, "Underline")), g("sp-button", { key: "08139372218452b7b83aa9580cb9a797106b189f", quiet: !0, onClick: () => document.execCommand("italic") }, g("div", { key: "bd439d444ae836a0c612e57f92b7c0e303ff732a", slot: "icon" }, g("italic-icon", { key: "c25d86181198e1f1b176caad9ccfc0ecd5653c15" })), g("div", { key: "c6231490b7c86113f8dbcfc8386ec5581f6b2a3a", slot: "label" }, "Italic")))), g("div", { key: "95921362af8283ee5d04cf17faf4c8b5725ba7bd", class: "buttons" }, g("sp-button", { key: "6c21a44e39720b78fddda544d3b3e3dd2597d9c3", onClick: this.sendComposer, class: "send" }, "Send"), g("sp-button", { key: "2d0354668c676f6e723be1f0e9614cff6120d361", 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: "507fa8a1d6570be296501c8e154ef8b85cda0871" }, g("sp-theme", { key: "2db0d8c57e95c758f240a0e9328c26ec4e3d2e77", scale: "medium", color: "dark" }, g("sp-button", { key: "df8bb0eb9069456125bd570eb280f018e0ebb9e3", 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: "3bc2427c264410ae9c68f1aec3d3b0c675ae108b", 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: "c32409cd5bf30781d0d400103e9715bf48e13b23" }, 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: "90b30777b0de1b9622f557cb54af3397458b1599", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "4a7b8ec38ab7e5ed3d78d9b7c1c9730e94be8a45", 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: "d3fe83055b3bb9b88f5347f3bb5d8cec29354dce", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "c2082dfa35e4bb43d4e0489243b47b4d08ff34ac", 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
+ };