@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,204 @@
1
+ import { r as k, c as p, h as a, F as m, H as M, g as x } from "./index-4f65b6f9.js";
2
+ import { R as E } from "./register-component-55376f31-5eaf8954.js";
3
+ import { d, t as D, h as S, a as T, i as g } from "./utils-5074a070-ce33ee6b.js";
4
+ import "react";
5
+ import "react-dom";
6
+ function R(t, e, s, o, r) {
7
+ if (!o || !s || s.children.length > 0)
8
+ return;
9
+ d("[nylas-view-thread] Rendering email", { message: t, attachments: e, viewEmailElement: o });
10
+ const n = o.cloneNode(!0);
11
+ n.message = t.data, n.parent = r, s.appendChild(n);
12
+ }
13
+ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o, onShowContactDataClick: r, parent: n }) => {
14
+ var l, i, c, v, w, f, b;
15
+ return a(
16
+ m,
17
+ null,
18
+ a(
19
+ "div",
20
+ { key: e.id, class: "message" },
21
+ a(
22
+ "div",
23
+ { class: "sub-header", "data-id": e.data.id, onClick: o },
24
+ a("div", { class: "avatar" }, e.data.from && ((l = e.data.from[0]) == null ? void 0 : l.name) && ((c = (i = e.data.from[0]) == null ? void 0 : i.name[0]) == null ? void 0 : c.toUpperCase())),
25
+ a(
26
+ "div",
27
+ { class: "from" },
28
+ a("span", { class: "name" }, e.data.from && ((v = e.data.from[0]) == null ? void 0 : v.name)),
29
+ " ",
30
+ a("span", { class: "email" }, e.data.from && ((w = e.data.from[0]) == null ? void 0 : w.email))
31
+ ),
32
+ a(
33
+ "div",
34
+ { class: "date" },
35
+ new Date(e.data.date * 1e3).toLocaleTimeString(void 0, {
36
+ timeStyle: "short"
37
+ }),
38
+ " ",
39
+ "(",
40
+ S(new Date(e.data.date * 1e3)),
41
+ ")"
42
+ ),
43
+ a(
44
+ "sp-button-group",
45
+ { class: "buttons" },
46
+ a("nylas-summarize-message-button", { message: e.data })
47
+ ),
48
+ e.collapse && a("div", { class: "snippet" }, e.data.snippet),
49
+ !e.collapse && e.data.to && a(
50
+ "div",
51
+ { class: "to" },
52
+ a("span", null, "to"),
53
+ " ",
54
+ T(e.data.to),
55
+ " ",
56
+ a(
57
+ "button",
58
+ { type: "button", value: e.data.id, onClick: r, class: {
59
+ expand: !0,
60
+ "expand--showContactData": e.showContactData
61
+ } },
62
+ a("chevron-icon", null)
63
+ )
64
+ )
65
+ ),
66
+ e.showContactData && a(
67
+ "div",
68
+ { class: "address-info" },
69
+ a("div", { class: "label" }, "From"),
70
+ a("div", { class: "value" }, g((f = e.data) != null && f.from ? (b = e == null ? void 0 : e.data) == null ? void 0 : b.from[0] : { name: "", email: "" })),
71
+ e.data.to && a(
72
+ m,
73
+ null,
74
+ a("div", { class: "label" }, "To"),
75
+ a("div", { class: "value" }, e.data.to.map((h) => a("div", null, g(h))))
76
+ ),
77
+ typeof e.data.cc < "u" && e.data.cc.length > 0 && a(
78
+ m,
79
+ null,
80
+ a("div", { class: "label" }, "CC"),
81
+ a("div", { class: "value" }, e.data.cc.map((h) => a("div", null, g(h))))
82
+ )
83
+ ),
84
+ !e.collapse && t && a("div", { key: e.id, ref: (h) => R(e, s, h, t, n) }),
85
+ !e.collapse && !t && a("nylas-view-email", { key: e.id, message: e.data, parent: n })
86
+ ),
87
+ a("hr", null)
88
+ );
89
+ }, A = ':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-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)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}', V = A;
90
+ var _ = function(t, e, s, o) {
91
+ var r = arguments.length, n = r < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, s) : o, l;
92
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
93
+ n = Reflect.decorate(t, e, s, o);
94
+ else
95
+ for (var i = t.length - 1; i >= 0; i--)
96
+ (l = t[i]) && (n = (r < 3 ? l(n) : r > 3 ? l(e, s, n) : l(e, s)) || n);
97
+ return r > 3 && n && Object.defineProperty(e, s, n), n;
98
+ }, y = function(t, e) {
99
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
100
+ return Reflect.metadata(t, e);
101
+ };
102
+ const C = class {
103
+ constructor(t) {
104
+ k(this, t), this.threadSelected = p(this, "threadSelected", 7), this.showContactDataClicked = p(this, "showContactDataClicked", 7), this.messageClicked = p(this, "messageClicked", 7), this.nylasViewEmailElement = null, this.nylasComposerElement = null, this.onShowContactDataClick = (e) => {
105
+ e.stopPropagation();
106
+ const o = e.target.value, r = this.internalMessages.find((l) => l.data.id === o);
107
+ if (!r) {
108
+ d(`[nylas-view-thread] Could not find message ${o}`);
109
+ return;
110
+ }
111
+ this.showContactDataClicked.emit(r.data).defaultPrevented || (r.showContactData = !r.showContactData, this.internalMessages = [...this.internalMessages]), d(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData ? "collapsed" : "expanded"}`);
112
+ }, this.onMessageClick = (e) => {
113
+ var l;
114
+ const o = e.target.dataset.id, r = this.internalMessages.find((i) => i.data.id === o);
115
+ if (!r) {
116
+ d(`[nylas-view-thread] Could not find message ${o}`);
117
+ return;
118
+ }
119
+ this.messageClicked.emit(r.data).defaultPrevented || (r.id !== ((l = this.internalMessages[this.internalMessages.length - 1]) == null ? void 0 : l.id) && (r.collapse = !r.collapse, r.collapse && (r.showContactData = !1)), this.internalMessages = [...this.internalMessages]), d(`[nylas-view-thread] message clicked ${o} ${r.collapse ? "collapsed" : "expanded"}`);
120
+ }, this.onShowAllEmailsClick = () => {
121
+ this.showAllEmails = !this.showAllEmails;
122
+ }, this.showComposerClick = () => {
123
+ this.showComposer = !this.showComposer;
124
+ }, this.draft = void 0, this.thread = void 0, this.messages = [], this.attachments = [], this.state = "loading", this.internalMessages = [], this.showAllEmails = !1, this.showComposer = !1;
125
+ }
126
+ connectedCallback() {
127
+ }
128
+ disconnectedCallback() {
129
+ }
130
+ async componentWillLoad() {
131
+ d("[nylas-view-thread] Component will load"), this.updateInternalMessages(this.messages);
132
+ const t = this.host.querySelector("template.nylas-view-email");
133
+ if (!t) {
134
+ d("[nylas-view-thread] Could not find template");
135
+ return;
136
+ }
137
+ const e = document.importNode(t.content, !0);
138
+ this.nylasViewEmailElement = e.querySelector("nylas-view-email");
139
+ const s = this.host.querySelector("template.nylas-composer");
140
+ if (!s) {
141
+ d("[nylas-view-thread] Could not find composer template");
142
+ return;
143
+ }
144
+ const o = document.importNode(s.content, !0);
145
+ this.nylasComposerElement = o.querySelector("nylas-composer");
146
+ }
147
+ async componentDidLoad() {
148
+ d("[nylas-view-thread] Component did load");
149
+ }
150
+ async threadChanged(t) {
151
+ d("[nylas-view-thread] Thread changed", { thread: t }), this.internalMessages = [], this.threadSelected.emit(t).defaultPrevented || d("[nylas-view-thread] Default event not prevented, initializing");
152
+ }
153
+ updateInternalMessages(t) {
154
+ d("[nylas-view-thread] Updating internal messages", { messages: t });
155
+ const e = t.sort((s, o) => s.date > o.date ? 1 : -1).map((s, o) => ({
156
+ id: s.id,
157
+ data: s,
158
+ collapse: o !== t.length - 1,
159
+ showContactData: !1
160
+ }));
161
+ this.internalMessages = e;
162
+ }
163
+ render() {
164
+ var r, n, l;
165
+ const t = this.internalMessages.length > 2 ? this.internalMessages[0] : null, e = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length), s = this.internalMessages.slice(1, this.internalMessages.length - 2), o = this.internalMessages[this.internalMessages.length - 1];
166
+ return a(M, { key: "99b11b1bd476708c89e6284a7d8fda1da9d886ff" }, a("sp-theme", { key: "23bc8c7387f08654aa38a187ee0da13e860ad207", scale: "medium", color: "dark" }, a("div", { key: "fd78702832a02c3469dfea1b91aea94282cc566d", class: "view-thread" }, a("div", { key: "2405c194d2a7f80802cc25794129496453781445", class: "header" }, a("div", { key: "f69ceef2127c53c38acb2be2033fd1e5b5502aad", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "2aceb0fa163a30aaa3e6a8f95b52b6ba0583d904", class: "folders" }, (l = (n = this.thread) == null ? void 0 : n.folders) == null ? void 0 : l.map((i) => a("sp-tag", { size: "s" }, D(i.replace("CATEGORY_", "").replace("_", " ")))))), a("div", { key: "33a0f1c33dfd2072681c356a5144eaba7ef9522b", class: "messages" }, t && a(u, { message: t, attachments: this.attachments.filter((i) => i.messageId === t.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }), s.length > 0 && this.messages.length > 1 && !this.showAllEmails && e.length > 0 && a(m, null, a("div", { class: "show-more" }, a("button", { type: "button", onClick: this.onShowAllEmailsClick }, a("span", { class: "avatar" }, s.length), " ", a("span", { class: "sr-only" }, "Show ", s.length, " more emails"))), a("hr", null)), s.length > 0 && this.showAllEmails && this.messages.length > 2 && s.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), e.length > 0 && e.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), !(this.showComposer && o) && a("div", { class: "reply-buttons" }, a("sp-button", { variant: "cta", type: "button", onClick: this.showComposerClick }, a("span", { slot: "icon" }, a("reply-icon", null)), a("span", null, "Reply")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("reply-all-icon", null)), a("span", null, "Reply All")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("forward-icon", null)), a("span", null, "Forward"))), this.showComposer && o && a("div", { class: "composer" }, a("nylas-composer", { message: o.data, onClose: this.showComposerClick, onSend: (i) => {
167
+ d("[nylas-view-thread] Send event", { message: i.detail.message, replyBody: i.detail.replyBody });
168
+ } })))));
169
+ }
170
+ get host() {
171
+ return x(this);
172
+ }
173
+ static get watchers() {
174
+ return {
175
+ thread: ["threadChanged"],
176
+ messages: ["updateInternalMessages"]
177
+ };
178
+ }
179
+ };
180
+ _([
181
+ E({
182
+ name: "nylas-view-thread",
183
+ stateToProps: /* @__PURE__ */ new Map([
184
+ ["mailbox.selectedThread", "thread"],
185
+ ["mailbox.messages", "messages"],
186
+ ["mailbox.state", "state"]
187
+ ]),
188
+ eventToProps: {
189
+ threadSelected: async (t, e) => {
190
+ d("[nylas-view-thread] Nylas init event. Fetching thread messages.", { event: t });
191
+ const s = t.detail;
192
+ s && s.id && await e.messages.getThreadMessages(s.id);
193
+ }
194
+ },
195
+ fireRegisterEvent: !0
196
+ }),
197
+ y("design:type", Function),
198
+ y("design:paramtypes", []),
199
+ y("design:returntype", void 0)
200
+ ], C.prototype, "render", null);
201
+ C.style = V;
202
+ export {
203
+ C as nylas_view_thread
204
+ };
@@ -0,0 +1,25 @@
1
+ import { r as o, h as t } from "./index-4f65b6f9.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
5
+ constructor(s) {
6
+ o(this, s), this.width = "15", this.height = "15";
7
+ }
8
+ render() {
9
+ return t("svg", { key: "5f4b005784b461f0f7c5da20c0a3b3289f51100a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "88fbd7a18f4e3f5e88cf134246af8d319d309352", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
+ }
11
+ };
12
+ h.style = i;
13
+ const n = ".sc-stop-icon-h{display:flex}", a = n, r = class {
14
+ constructor(s) {
15
+ o(this, s), this.width = "15", this.height = "15";
16
+ }
17
+ render() {
18
+ return t("svg", { key: "1738ceb2d3e19179e090b1e8788cf71248abe6da", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "22daa75c459a24bb2d8af5784e306eb87aa4f98a", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
19
+ }
20
+ };
21
+ r.style = a;
22
+ export {
23
+ h as play_icon,
24
+ r as stop_icon
25
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-29d0e781.cjs");require("react");require("react-dom");const o=".sc-play-icon-h{display:flex}",n=o,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"5f4b005784b461f0f7c5da20c0a3b3289f51100a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"88fbd7a18f4e3f5e88cf134246af8d319d309352",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const h=".sc-stop-icon-h{display:flex}",r=h,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"1738ceb2d3e19179e090b1e8788cf71248abe6da",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"22daa75c459a24bb2d8af5784e306eb87aa4f98a",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;exports.play_icon=s;exports.stop_icon=i;
@@ -0,0 +1,23 @@
1
+ "use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const N=window,R=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),K=new WeakMap;class nt{constructor(t,e,i){if(this._$cssResult$=!0,i!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(R&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=K.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&K.set(e,t))}return t}toString(){return this.cssText}}const yt=n=>new nt(typeof n=="string"?n:n+"",void 0,W),gt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,r)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[r+1],n[0]);return new nt(e,n,W)},mt=(n,t)=>{R?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=N.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},Z=R?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return yt(e)})(n):n;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */var M;const T=window,J=T.trustedTypes,Et=J?J.emptyScript:"",F=T.reactiveElementPolyfillSupport,I={toAttribute(n,t){switch(t){case Boolean:n=n?Et:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ot=(n,t)=>t!==n&&(t==t||n==n),L={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:ot},V="finalized";class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=L){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||L}static finalize(){if(this.hasOwnProperty(V))return!1;this[V]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Z(s))}else t!==void 0&&e.push(Z(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return mt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=L){var s;const r=this.constructor._$Ep(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$El=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(r!==void 0&&this._$El!==r){const o=s.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:I;this._$El=r,this[r]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ot)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach((s,r)=>this[r]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}m[V]=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},F==null||F({ReactiveElement:m}),((M=T.reactiveElementVersions)!==null&&M!==void 0?M:T.reactiveElementVersions=[]).push("1.6.3");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */var j;const O=window,E=O.trustedTypes,G=E?E.createPolicy("lit-html",{createHTML:n=>n}):void 0,k="$lit$",v=`lit$${(Math.random()+"").slice(9)}$`,q="?"+v,St=`<${q}>`,f=document,w=()=>f.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",rt=Array.isArray,lt=n=>rt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",z=`[
14
+ \f\r]`,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,_=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,tt=/"/g,ht=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),bt=at(1),Ct=at(2),y=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),et=new WeakMap,A=f.createTreeWalker(f,129,null,!1);function dt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return G!==void 0?G.createHTML(t):t}const ct=(n,t)=>{const e=n.length-1,i=[];let s,r=t===2?"<svg>":"",o=b;for(let a=0;a<e;a++){const l=n[a];let h,d,c=-1,p=0;for(;p<l.length&&(o.lastIndex=p,d=o.exec(l),d!==null);)p=o.lastIndex,o===b?d[1]==="!--"?o=Q:d[1]!==void 0?o=X:d[2]!==void 0?(ht.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=_):d[3]!==void 0&&(o=_):o===_?d[0]===">"?(o=s??b,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?_:d[3]==='"'?tt:Y):o===tt||o===Y?o=_:o===Q||o===X?o=b:(o=_,s=void 0);const $=o===_&&n[a+1].startsWith("/>")?" ":"";r+=o===b?l+St:c>=0?(i.push(h),l.slice(0,c)+k+l.slice(c)+v+$):l+v+(c===-2?(i.push(void 0),a):$)}return[dt(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class x{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[h,d]=ct(t,e);if(this.el=x.createElement(h,i),A.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=A.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith(k)||p.startsWith(v)){const $=d[o++];if(c.push(p),$!==void 0){const ft=s.getAttribute($.toLowerCase()+k).split(v),H=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:H[2],strings:ft,ctor:H[1]==="."?pt:H[1]==="?"?$t:H[1]==="@"?vt:U})}else l.push({type:6,index:r})}for(const p of c)s.removeAttribute(p)}if(ht.test(s.tagName)){const c=s.textContent.split(v),p=c.length-1;if(p>0){s.textContent=E?E.emptyScript:"";for(let $=0;$<p;$++)s.append(c[$],w()),A.nextNode(),l.push({type:2,index:++r});s.append(c[p],w())}}}else if(s.nodeType===8)if(s.data===q)l.push({type:2,index:r});else{let c=-1;for(;(c=s.data.indexOf(v,c+1))!==-1;)l.push({type:7,index:r}),c+=v.length-1}r++}}static createElement(t,e){const i=f.createElement("template");return i.innerHTML=t,i}}function g(n,t,e=n,i){var s,r,o,a;if(t===y)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const h=P(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),h===void 0?l=void 0:(l=new h(n),l._$AT(n,e,i)),i!==void 0?((o=(a=e)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=g(n,l._$AS(n,t.values),l,i)),t}class ut{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:f).importNode(i,!0);A.currentNode=r;let o=A.nextNode(),a=0,l=0,h=s[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new S(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new _t(o,this,t)),this._$AV.push(d),h=s[++l]}a!==(h==null?void 0:h.index)&&(o=A.nextNode(),a++)}return A.currentNode=f,r}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class S{constructor(t,e,i,s){var r;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=g(this,t,e),P(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):lt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==u&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(f.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=x.createElement(dt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const o=new ut(r,this),a=o.u(this.options);o.v(i),this.$(a),this._$AH=o}}_$AC(t){let e=et.get(t.strings);return e===void 0&&et.set(t.strings,e=new x(t)),e}T(t){rt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new S(this.k(w()),this.k(w()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class U{constructor(t,e,i,s,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(r===void 0)t=g(this,t,e,0),o=!P(t)||t!==this._$AH&&t!==y,o&&(this._$AH=t);else{const a=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=g(this,a[i+l],e,l),h===y&&(h=this._$AH[l]),o||(o=!P(h)||h!==this._$AH[l]),h===u?t=u:t!==u&&(t+=(h??"")+r[l+1]),this._$AH[l]=h}o&&!s&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class pt extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}const wt=E?E.emptyScript:"";class $t extends U{constructor(){super(...arguments),this.type=4}j(t){t&&t!==u?this.element.setAttribute(this.name,wt):this.element.removeAttribute(this.name)}}class vt extends U{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=g(this,t,e,0))!==null&&i!==void 0?i:u)===y)return;const s=this._$AH,r=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==u&&(s===u||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){g(this,t)}}const Pt={O:k,P:v,A:q,C:1,M:ct,L:ut,R:lt,D:g,I:S,V:U,H:$t,N:vt,U:pt,F:_t},it=O.litHtmlPolyfillSupport;it==null||it(x,S),((j=O.litHtmlVersions)!==null&&j!==void 0?j:O.litHtmlVersions=[]).push("2.8.0");const At=(n,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=r._$litPart$;if(o===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=o=new S(t.insertBefore(w(),a),a,void 0,e??{})}return o._$AI(n),o};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */var D,B;class C extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return y}}C.finalized=!0,C._$litElement$=!0,(D=globalThis.litElementHydrateSupport)===null||D===void 0||D.call(globalThis,{LitElement:C});const st=globalThis.litElementPolyfillSupport;st==null||st({LitElement:C});((B=globalThis.litElementVersions)!==null&&B!==void 0?B:globalThis.litElementVersions=[]).push("3.3.3");/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const xt=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}},Ut=(n,t,e)=>{t.constructor.createProperty(e,n)};function Ht(n){return(t,e)=>e!==void 0?Ut(n,t,e):xt(n,t)}exports.A=u;exports.D=At;exports.T=y;exports.b=Ct;exports.e$3=R;exports.i$2=gt;exports.j=Pt;exports.n=Ht;exports.s=C;exports.x=bt;