@selectwin/kit 0.1.258 → 0.1.259

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 (40) hide show
  1. package/README.md +31 -0
  2. package/dist/SelectActionBar.d.ts +29 -0
  3. package/dist/SelectActionBar.js +101 -0
  4. package/dist/SelectBadge.d.ts +9 -0
  5. package/dist/SelectBadge.js +26 -12
  6. package/dist/SelectBulkBar.d.ts +21 -0
  7. package/dist/SelectBulkBar.js +40 -0
  8. package/dist/SelectChannelPreview.d.ts +21 -1
  9. package/dist/SelectChannelPreview.js +100 -73
  10. package/dist/SelectColorField.d.ts +1 -5
  11. package/dist/SelectColorField.js +83 -101
  12. package/dist/SelectCombobox.d.ts +5 -0
  13. package/dist/SelectCombobox.js +52 -49
  14. package/dist/SelectDataTable.d.ts +17 -1
  15. package/dist/SelectDataTable.js +100 -90
  16. package/dist/SelectDeadlineBadge.d.ts +32 -0
  17. package/dist/SelectDeadlineBadge.js +73 -0
  18. package/dist/SelectFilterBar.js +5 -5
  19. package/dist/SelectListCard.d.ts +27 -1
  20. package/dist/SelectListCard.js +47 -22
  21. package/dist/SelectLocale.d.ts +62 -0
  22. package/dist/SelectLocale.js +173 -0
  23. package/dist/SelectMail.d.ts +9 -1
  24. package/dist/SelectMail.js +234 -207
  25. package/dist/SelectSection.d.ts +4 -4
  26. package/dist/SelectSection.js +77 -8
  27. package/dist/SelectTable.d.ts +13 -1
  28. package/dist/SelectTable.js +88 -79
  29. package/dist/SelectTabs.d.ts +10 -0
  30. package/dist/SelectTabs.js +68 -30
  31. package/dist/SelectWeekHours.d.ts +64 -0
  32. package/dist/SelectWeekHours.js +338 -0
  33. package/dist/index.d.ts +12 -2
  34. package/dist/index.js +188 -183
  35. package/dist/internal/color.d.ts +15 -0
  36. package/dist/internal/color.js +40 -0
  37. package/dist/internal/safeHref.d.ts +7 -0
  38. package/dist/internal/safeHref.js +12 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +1 -1
@@ -5,42 +5,42 @@ import { SelectPopover as g } from "./SelectPopover.js";
5
5
  import { SelectIconButton as _ } from "./SelectIconButton.js";
6
6
  import { SelectAvatar as v } from "./SelectAvatar.js";
7
7
  import { attachmentExt as y, attachmentTone as b } from "./internal/fileKind.js";
8
- import { useRef as x, useState as S } from "react";
9
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
8
+ import { useCallback as x, useLayoutEffect as S, useRef as C, useState as w } from "react";
9
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
10
10
  //#region src/SelectMail.tsx
11
- function E(e) {
11
+ function O(e) {
12
12
  var t;
13
13
  return e ? ((t = e.name) == null ? void 0 : t.trim()) || e.address : "Remetente desconhecido";
14
14
  }
15
- var D = (...e) => e.filter(Boolean).join(" ");
16
- function O({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, children: a, fullBody: o, aside: s, asideLabel: c, listLabel: l, readerLabel: u, framed: d = !1, "aria-label": f }) {
15
+ var k = (...e) => e.filter(Boolean).join(" ");
16
+ function A({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, children: a, fullBody: o, aside: s, asideLabel: c, listLabel: l, readerLabel: u, framed: d = !1, "aria-label": f }) {
17
17
  let p = h().inbox;
18
- return /* @__PURE__ */ T("div", {
19
- className: D("select-inbox", d && "select-inbox--framed", i && "is-reading"),
18
+ return /* @__PURE__ */ D("div", {
19
+ className: k("select-inbox", d && "select-inbox--framed", i && "is-reading"),
20
20
  "aria-label": f,
21
21
  children: [
22
- /* @__PURE__ */ w("div", {
22
+ /* @__PURE__ */ E("div", {
23
23
  className: "select-inbox__toolbar",
24
24
  children: e
25
25
  }),
26
26
  t,
27
- o ? /* @__PURE__ */ w("div", {
27
+ o ? /* @__PURE__ */ E("div", {
28
28
  className: "select-inbox__body select-inbox__body--full",
29
29
  children: o
30
- }) : /* @__PURE__ */ T("div", {
30
+ }) : /* @__PURE__ */ D("div", {
31
31
  className: "select-inbox__body",
32
32
  children: [
33
- /* @__PURE__ */ w("section", {
33
+ /* @__PURE__ */ E("section", {
34
34
  className: "select-inbox__list",
35
35
  "aria-label": l ?? p.list,
36
36
  children: n
37
37
  }),
38
- /* @__PURE__ */ w("section", {
38
+ /* @__PURE__ */ E("section", {
39
39
  className: "select-inbox__reader",
40
40
  "aria-label": u ?? p.reader,
41
41
  children: r
42
42
  }),
43
- s ? /* @__PURE__ */ w("aside", {
43
+ s ? /* @__PURE__ */ E("aside", {
44
44
  className: "select-inbox__aside",
45
45
  "aria-label": c ?? p.aside,
46
46
  children: s
@@ -51,107 +51,107 @@ function O({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, chil
51
51
  ]
52
52
  });
53
53
  }
54
- function k({ tone: e = "warning", children: t, action: n }) {
55
- return /* @__PURE__ */ T("div", {
54
+ function j({ tone: e = "warning", children: t, action: n }) {
55
+ return /* @__PURE__ */ D("div", {
56
56
  className: `select-inbox-banner select-inbox-banner--${e}`,
57
57
  role: e === "info" ? "status" : "alert",
58
58
  children: [
59
- /* @__PURE__ */ w("span", {
59
+ /* @__PURE__ */ E("span", {
60
60
  className: "select-inbox-banner__icon",
61
61
  "aria-hidden": "true",
62
- children: w(e === "info" ? s : m, {})
62
+ children: E(e === "info" ? s : m, {})
63
63
  }),
64
- /* @__PURE__ */ w("span", {
64
+ /* @__PURE__ */ E("span", {
65
65
  className: "select-inbox-banner__text",
66
66
  children: t
67
67
  }),
68
- n ? /* @__PURE__ */ w("span", {
68
+ n ? /* @__PURE__ */ E("span", {
69
69
  className: "select-inbox-banner__action",
70
70
  children: n
71
71
  }) : null
72
72
  ]
73
73
  });
74
74
  }
75
- function A({ title: e, status: t, children: n, actions: r }) {
76
- return /* @__PURE__ */ T("div", {
75
+ function M({ title: e, status: t, children: n, actions: r }) {
76
+ return /* @__PURE__ */ D("div", {
77
77
  className: "select-inboxbar",
78
78
  children: [
79
- e != null || t != null ? /* @__PURE__ */ T("div", {
79
+ e != null || t != null ? /* @__PURE__ */ D("div", {
80
80
  className: "select-inboxbar__title",
81
- children: [e == null ? null : /* @__PURE__ */ w("h1", {
81
+ children: [e == null ? null : /* @__PURE__ */ E("h1", {
82
82
  className: "select-inboxbar__heading",
83
83
  children: e
84
84
  }), t]
85
85
  }) : null,
86
- n ? /* @__PURE__ */ w("div", {
86
+ n ? /* @__PURE__ */ E("div", {
87
87
  className: "select-inboxbar__controls",
88
88
  children: n
89
89
  }) : null,
90
- /* @__PURE__ */ w("span", { className: "select-inboxbar__spacer" }),
91
- r ? /* @__PURE__ */ w("div", {
90
+ /* @__PURE__ */ E("span", { className: "select-inboxbar__spacer" }),
91
+ r ? /* @__PURE__ */ E("div", {
92
92
  className: "select-inboxbar__actions",
93
93
  children: r
94
94
  }) : null
95
95
  ]
96
96
  });
97
97
  }
98
- function j({ tone: e, children: t }) {
99
- return /* @__PURE__ */ T("span", {
98
+ function N({ tone: e, children: t }) {
99
+ return /* @__PURE__ */ D("span", {
100
100
  className: `select-mailbox-status select-mailbox-status--${e}`,
101
- children: [/* @__PURE__ */ w("span", {
101
+ children: [/* @__PURE__ */ E("span", {
102
102
  className: "select-mailbox-status__dot",
103
103
  "aria-hidden": "true"
104
- }), /* @__PURE__ */ w("span", {
104
+ }), /* @__PURE__ */ E("span", {
105
105
  className: "select-mailbox-status__text",
106
106
  children: t
107
107
  })]
108
108
  });
109
109
  }
110
- function M({ icon: e, title: t, children: n, details: r, action: i, tone: a = "neutral" }) {
111
- return /* @__PURE__ */ T("div", {
110
+ function P({ icon: e, title: t, children: n, details: r, action: i, tone: a = "neutral" }) {
111
+ return /* @__PURE__ */ D("div", {
112
112
  className: `select-inbox-empty select-inbox-empty--${a}`,
113
113
  children: [
114
- e ? /* @__PURE__ */ w("span", {
114
+ e ? /* @__PURE__ */ E("span", {
115
115
  className: "select-inbox-empty__icon",
116
116
  "aria-hidden": "true",
117
117
  children: e
118
118
  }) : null,
119
- /* @__PURE__ */ w("div", {
119
+ /* @__PURE__ */ E("div", {
120
120
  className: "select-inbox-empty__title",
121
121
  children: t
122
122
  }),
123
- n ? /* @__PURE__ */ w("div", {
123
+ n ? /* @__PURE__ */ E("div", {
124
124
  className: "select-inbox-empty__text",
125
125
  children: n
126
126
  }) : null,
127
- r ? /* @__PURE__ */ w("div", {
127
+ r ? /* @__PURE__ */ E("div", {
128
128
  className: "select-inbox-empty__details",
129
129
  children: r
130
130
  }) : null,
131
- i ? /* @__PURE__ */ w("div", {
131
+ i ? /* @__PURE__ */ E("div", {
132
132
  className: "select-inbox-empty__action",
133
133
  children: i
134
134
  }) : null
135
135
  ]
136
136
  });
137
137
  }
138
- function N({ children: e, "aria-label": t }) {
139
- return /* @__PURE__ */ w("div", {
138
+ function ee({ children: e, "aria-label": t }) {
139
+ return /* @__PURE__ */ E("div", {
140
140
  className: "select-maillist",
141
141
  "aria-label": t,
142
142
  children: e
143
143
  });
144
144
  }
145
- function P({ label: e, children: t }) {
146
- return /* @__PURE__ */ T("div", {
145
+ function te({ label: e, children: t }) {
146
+ return /* @__PURE__ */ D("div", {
147
147
  className: "select-maillist__group",
148
148
  role: "group",
149
149
  "aria-label": e,
150
- children: [/* @__PURE__ */ w("div", {
150
+ children: [/* @__PURE__ */ E("div", {
151
151
  className: "select-maillist__grouplabel",
152
152
  "aria-hidden": "true",
153
153
  children: e
154
- }), /* @__PURE__ */ w("div", {
154
+ }), /* @__PURE__ */ E("div", {
155
155
  className: "select-maillist__items",
156
156
  children: t
157
157
  })]
@@ -159,68 +159,68 @@ function P({ label: e, children: t }) {
159
159
  }
160
160
  function F({ from: e, avatar: t, subject: n, snippet: r, date: i, count: a, attachments: o, active: s = !1, unread: l = !1, flagged: u = !1, unreadCount: d, onClick: p }) {
161
161
  let m = h().inbox, g = d != null && d > 0, _ = l || g, y = t === !1 ? void 0 : t ?? (typeof e == "string" ? e : void 0);
162
- return /* @__PURE__ */ T("button", {
162
+ return /* @__PURE__ */ D("button", {
163
163
  type: "button",
164
- className: D("select-maillist__row", s && "is-active", _ && "is-unread"),
164
+ className: k("select-maillist__row", s && "is-active", _ && "is-unread"),
165
165
  "aria-current": s || void 0,
166
166
  onClick: p,
167
- children: [t === !1 ? null : /* @__PURE__ */ w(v, {
167
+ children: [t === !1 ? null : /* @__PURE__ */ E(v, {
168
168
  name: y,
169
169
  initials: 2,
170
170
  className: "select-maillist__avatar"
171
- }), /* @__PURE__ */ T("span", {
171
+ }), /* @__PURE__ */ D("span", {
172
172
  className: "select-maillist__main",
173
173
  children: [
174
- /* @__PURE__ */ T("span", {
174
+ /* @__PURE__ */ D("span", {
175
175
  className: "select-maillist__line",
176
176
  children: [
177
- _ && !g ? /* @__PURE__ */ T("span", {
177
+ _ && !g ? /* @__PURE__ */ D("span", {
178
178
  className: "select-maillist__sr",
179
179
  children: [m.unread, ": "]
180
180
  }) : null,
181
- /* @__PURE__ */ w("span", {
181
+ /* @__PURE__ */ E("span", {
182
182
  className: "select-maillist__from",
183
183
  children: e
184
184
  }),
185
- a && a > 1 ? /* @__PURE__ */ w("span", {
185
+ a && a > 1 ? /* @__PURE__ */ E("span", {
186
186
  className: "select-maillist__count",
187
187
  "aria-label": m.messages(a),
188
188
  children: a
189
189
  }) : null,
190
- g ? /* @__PURE__ */ w("span", {
190
+ g ? /* @__PURE__ */ E("span", {
191
191
  className: "select-maillist__unread",
192
192
  "aria-label": m.unreadCount(d),
193
193
  children: d
194
- }) : _ ? /* @__PURE__ */ w("span", {
194
+ }) : _ ? /* @__PURE__ */ E("span", {
195
195
  className: "select-maillist__dot",
196
196
  "aria-hidden": "true"
197
197
  }) : null,
198
- u ? /* @__PURE__ */ w("span", {
198
+ u ? /* @__PURE__ */ E("span", {
199
199
  className: "select-maillist__star",
200
200
  role: "img",
201
201
  "aria-label": m.flagged,
202
- children: /* @__PURE__ */ w(f, { filled: !0 })
202
+ children: /* @__PURE__ */ E(f, { filled: !0 })
203
203
  }) : null,
204
- i ? /* @__PURE__ */ w("span", {
204
+ i ? /* @__PURE__ */ E("span", {
205
205
  className: "select-maillist__date",
206
206
  children: i
207
207
  }) : null
208
208
  ]
209
209
  }),
210
- /* @__PURE__ */ w("span", {
210
+ /* @__PURE__ */ E("span", {
211
211
  className: "select-maillist__subject",
212
212
  children: n
213
213
  }),
214
- r || o ? /* @__PURE__ */ T("span", {
214
+ r || o ? /* @__PURE__ */ D("span", {
215
215
  className: "select-maillist__line",
216
- children: [/* @__PURE__ */ w("span", {
216
+ children: [/* @__PURE__ */ E("span", {
217
217
  className: "select-maillist__snippet",
218
218
  children: r
219
- }), o ? /* @__PURE__ */ w("span", {
219
+ }), o ? /* @__PURE__ */ E("span", {
220
220
  className: "select-maillist__clip",
221
221
  role: "img",
222
222
  "aria-label": m.attachments(o),
223
- children: /* @__PURE__ */ w(c, {})
223
+ children: /* @__PURE__ */ E(c, {})
224
224
  }) : null]
225
225
  }) : null
226
226
  ]
@@ -228,17 +228,17 @@ function F({ from: e, avatar: t, subject: n, snippet: r, date: i, count: a, atta
228
228
  });
229
229
  }
230
230
  function I({ rows: e = 6 }) {
231
- return /* @__PURE__ */ w("div", {
231
+ return /* @__PURE__ */ E("div", {
232
232
  className: "select-maillist__skeleton",
233
233
  "aria-hidden": "true",
234
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ T("div", {
234
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ D("div", {
235
235
  className: "select-maillist__skelrow",
236
- children: [/* @__PURE__ */ w("span", { className: "select-maillist__skel select-maillist__skel--avatar" }), /* @__PURE__ */ T("span", {
236
+ children: [/* @__PURE__ */ E("span", { className: "select-maillist__skel select-maillist__skel--avatar" }), /* @__PURE__ */ D("span", {
237
237
  className: "select-maillist__skelcol",
238
- children: [/* @__PURE__ */ w("span", {
238
+ children: [/* @__PURE__ */ E("span", {
239
239
  className: "select-maillist__skel",
240
240
  style: { width: `${38 + t * 7 % 18}%` }
241
- }), /* @__PURE__ */ w("span", {
241
+ }), /* @__PURE__ */ E("span", {
242
242
  className: "select-maillist__skel",
243
243
  style: { width: `${62 + t * 11 % 22}%` }
244
244
  })]
@@ -247,47 +247,47 @@ function I({ rows: e = 6 }) {
247
247
  });
248
248
  }
249
249
  function L({ children: e, tone: t = "muted" }) {
250
- return /* @__PURE__ */ w("div", {
250
+ return /* @__PURE__ */ E("div", {
251
251
  className: `select-maillist__note select-maillist__note--${t}`,
252
252
  children: e
253
253
  });
254
254
  }
255
255
  function R({ title: t, meta: n, actions: r, tools: i, onBack: a, children: o, footer: s, variant: c = "mail" }) {
256
256
  let l = h().inbox;
257
- return /* @__PURE__ */ T("div", {
258
- className: D("select-mailreader", c === "chat" && "select-mailreader--chat"),
257
+ return /* @__PURE__ */ D("div", {
258
+ className: k("select-mailreader", c === "chat" && "select-mailreader--chat"),
259
259
  children: [
260
- /* @__PURE__ */ T("header", {
260
+ /* @__PURE__ */ D("header", {
261
261
  className: "select-mailreader__head",
262
262
  children: [
263
- a ? /* @__PURE__ */ w("span", {
263
+ a ? /* @__PURE__ */ E("span", {
264
264
  className: "select-mailreader__back",
265
- children: /* @__PURE__ */ w(_, {
266
- icon: /* @__PURE__ */ w(e, {}),
265
+ children: /* @__PURE__ */ E(_, {
266
+ icon: /* @__PURE__ */ E(e, {}),
267
267
  label: l.back,
268
268
  size: "sm",
269
269
  onClick: a
270
270
  })
271
271
  }) : null,
272
- /* @__PURE__ */ T("div", {
272
+ /* @__PURE__ */ D("div", {
273
273
  className: "select-mailreader__titles",
274
- children: [/* @__PURE__ */ w("h2", {
274
+ children: [/* @__PURE__ */ E("h2", {
275
275
  className: "select-mailreader__title",
276
276
  children: t
277
- }), n ? /* @__PURE__ */ w("div", {
277
+ }), n ? /* @__PURE__ */ E("div", {
278
278
  className: "select-mailreader__meta",
279
279
  children: n
280
280
  }) : null]
281
281
  }),
282
- r || i ? /* @__PURE__ */ T("div", {
282
+ r || i ? /* @__PURE__ */ D("div", {
283
283
  className: "select-mailreader__actions",
284
284
  children: [
285
285
  r,
286
- r && i ? /* @__PURE__ */ w("span", {
286
+ r && i ? /* @__PURE__ */ E("span", {
287
287
  className: "select-mailreader__sep",
288
288
  "aria-hidden": "true"
289
289
  }) : null,
290
- i ? /* @__PURE__ */ w("span", {
290
+ i ? /* @__PURE__ */ E("span", {
291
291
  className: "select-mailreader__tools",
292
292
  role: "group",
293
293
  "aria-label": l.tools,
@@ -297,11 +297,11 @@ function R({ title: t, meta: n, actions: r, tools: i, onBack: a, children: o, fo
297
297
  }) : null
298
298
  ]
299
299
  }),
300
- /* @__PURE__ */ w("div", {
300
+ /* @__PURE__ */ E("div", {
301
301
  className: "select-mailreader__thread",
302
302
  children: o
303
303
  }),
304
- s ? /* @__PURE__ */ w("div", {
304
+ s ? /* @__PURE__ */ E("div", {
305
305
  className: "select-mailreader__footer",
306
306
  children: s
307
307
  }) : null
@@ -309,33 +309,33 @@ function R({ title: t, meta: n, actions: r, tools: i, onBack: a, children: o, fo
309
309
  });
310
310
  }
311
311
  function z({ from: e, to: t, cc: n, bcc: i, selfAddress: a, date: o, dateTitle: s, actions: l, notice: u, text: d, children: f, attachments: p, collapsed: m = !1, snippet: h, hasAttachments: g = !1, onToggle: y }) {
312
- let b = (e) => !!e && !!a && e.address.toLowerCase() === a.toLowerCase(), x = (e) => (e ?? []).map((e) => b(e) ? "você" : E(e)).join(", "), S = E(e);
313
- if (m) return /* @__PURE__ */ T("button", {
312
+ let b = (e) => !!e && !!a && e.address.toLowerCase() === a.toLowerCase(), x = (e) => (e ?? []).map((e) => b(e) ? "você" : O(e)).join(", "), S = O(e);
313
+ if (m) return /* @__PURE__ */ D("button", {
314
314
  type: "button",
315
315
  className: "select-mailmsg select-mailmsg--collapsed",
316
316
  "aria-expanded": !1,
317
317
  onClick: y,
318
318
  children: [
319
- /* @__PURE__ */ w(v, {
319
+ /* @__PURE__ */ E(v, {
320
320
  name: S,
321
321
  initials: 2,
322
322
  className: "select-mailmsg__avatar select-mailmsg__avatar--sm"
323
323
  }),
324
- /* @__PURE__ */ w("span", {
324
+ /* @__PURE__ */ E("span", {
325
325
  className: "select-mailmsg__from",
326
326
  children: b(e) ? "Você" : S
327
327
  }),
328
- /* @__PURE__ */ w("span", {
328
+ /* @__PURE__ */ E("span", {
329
329
  className: "select-mailmsg__snippet",
330
330
  children: h
331
331
  }),
332
- g ? /* @__PURE__ */ w("span", {
332
+ g ? /* @__PURE__ */ E("span", {
333
333
  className: "select-mailmsg__clip",
334
334
  role: "img",
335
335
  "aria-label": "Com anexo",
336
- children: /* @__PURE__ */ w(c, {})
336
+ children: /* @__PURE__ */ E(c, {})
337
337
  }) : null,
338
- /* @__PURE__ */ w("span", {
338
+ /* @__PURE__ */ E("span", {
339
339
  className: "select-mailmsg__date",
340
340
  title: s,
341
341
  children: o
@@ -347,44 +347,44 @@ function z({ from: e, to: t, cc: n, bcc: i, selfAddress: a, date: o, dateTitle:
347
347
  n != null && n.length ? `cc ${x(n)}` : "",
348
348
  i != null && i.length ? `cco ${x(i)}` : ""
349
349
  ].filter(Boolean).join(" · ");
350
- return /* @__PURE__ */ T("article", {
350
+ return /* @__PURE__ */ D("article", {
351
351
  className: "select-mailmsg",
352
352
  children: [
353
- /* @__PURE__ */ T("header", {
353
+ /* @__PURE__ */ D("header", {
354
354
  className: "select-mailmsg__head",
355
355
  children: [
356
- /* @__PURE__ */ w(v, {
356
+ /* @__PURE__ */ E(v, {
357
357
  name: S,
358
358
  initials: 2,
359
359
  className: "select-mailmsg__avatar"
360
360
  }),
361
- /* @__PURE__ */ T("div", {
361
+ /* @__PURE__ */ D("div", {
362
362
  className: "select-mailmsg__who",
363
- children: [/* @__PURE__ */ T("span", {
363
+ children: [/* @__PURE__ */ D("span", {
364
364
  className: "select-mailmsg__line",
365
- children: [/* @__PURE__ */ w("span", {
365
+ children: [/* @__PURE__ */ E("span", {
366
366
  className: "select-mailmsg__from",
367
367
  children: S
368
- }), e != null && e.name ? /* @__PURE__ */ w("span", {
368
+ }), e != null && e.name ? /* @__PURE__ */ E("span", {
369
369
  className: "select-mailmsg__address",
370
370
  children: e.address
371
371
  }) : null]
372
- }), C ? /* @__PURE__ */ w("span", {
372
+ }), C ? /* @__PURE__ */ E("span", {
373
373
  className: "select-mailmsg__to",
374
374
  children: C
375
375
  }) : null]
376
376
  }),
377
- /* @__PURE__ */ T("div", {
377
+ /* @__PURE__ */ D("div", {
378
378
  className: "select-mailmsg__side",
379
379
  children: [
380
- /* @__PURE__ */ w("span", {
380
+ /* @__PURE__ */ E("span", {
381
381
  className: "select-mailmsg__date",
382
382
  title: s,
383
383
  children: o
384
384
  }),
385
385
  l,
386
- y ? /* @__PURE__ */ w(_, {
387
- icon: /* @__PURE__ */ w(r, {}),
386
+ y ? /* @__PURE__ */ E(_, {
387
+ icon: /* @__PURE__ */ E(r, {}),
388
388
  label: "Recolher a mensagem",
389
389
  size: "sm",
390
390
  onClick: y,
@@ -394,18 +394,18 @@ function z({ from: e, to: t, cc: n, bcc: i, selfAddress: a, date: o, dateTitle:
394
394
  })
395
395
  ]
396
396
  }),
397
- u ? /* @__PURE__ */ w("div", {
397
+ u ? /* @__PURE__ */ E("div", {
398
398
  className: "select-mailmsg__notices",
399
399
  children: u
400
400
  }) : null,
401
- f ? /* @__PURE__ */ w("div", {
401
+ f ? /* @__PURE__ */ E("div", {
402
402
  className: "select-mailmsg__body",
403
403
  children: f
404
- }) : d ? /* @__PURE__ */ w("div", {
404
+ }) : d ? /* @__PURE__ */ E("div", {
405
405
  className: "select-mailmsg__text",
406
406
  children: d
407
407
  }) : null,
408
- p ? /* @__PURE__ */ w("div", {
408
+ p ? /* @__PURE__ */ E("div", {
409
409
  className: "select-mailmsg__attachments",
410
410
  children: p
411
411
  }) : null
@@ -413,67 +413,67 @@ function z({ from: e, to: t, cc: n, bcc: i, selfAddress: a, date: o, dateTitle:
413
413
  });
414
414
  }
415
415
  function B({ tone: e = "info", icon: t, children: n }) {
416
- return /* @__PURE__ */ T("div", {
416
+ return /* @__PURE__ */ D("div", {
417
417
  className: `select-mailnotice select-mailnotice--${e}`,
418
- children: [/* @__PURE__ */ w("span", {
418
+ children: [/* @__PURE__ */ E("span", {
419
419
  className: "select-mailnotice__icon",
420
420
  "aria-hidden": "true",
421
- children: t ?? w(e === "warning" ? s : d, {})
422
- }), /* @__PURE__ */ w("span", { children: n })]
421
+ children: t ?? E(e === "warning" ? s : d, {})
422
+ }), /* @__PURE__ */ E("span", { children: n })]
423
423
  });
424
424
  }
425
425
  function V({ name: e, size: t, state: n = "idle", onClick: r, loadingLabel: i, readyLabel: s, failedLabel: c }) {
426
426
  let l = h().inbox, u = y(e), d = n === "loading" ? i ?? l.attachmentLoading : n === "ready" ? s ?? l.attachmentReady : n === "failed" ? c ?? l.attachmentFailed : t, f = n === "ready" ? l.attachmentOpen(e) : n === "loading" ? l.attachmentBusy(e) : l.attachmentGet(e);
427
- return /* @__PURE__ */ T("button", {
427
+ return /* @__PURE__ */ D("button", {
428
428
  type: "button",
429
429
  className: `select-mailatt select-mailatt--${n}`,
430
430
  onClick: r,
431
431
  "aria-label": f,
432
432
  "aria-busy": n === "loading" || void 0,
433
433
  children: [
434
- /* @__PURE__ */ w("span", {
434
+ /* @__PURE__ */ E("span", {
435
435
  className: `select-mailatt__ext select-mailatt__ext--${b(u)}`,
436
436
  "aria-hidden": "true",
437
437
  children: u
438
438
  }),
439
- /* @__PURE__ */ T("span", {
439
+ /* @__PURE__ */ D("span", {
440
440
  className: "select-mailatt__text",
441
- children: [/* @__PURE__ */ w("span", {
441
+ children: [/* @__PURE__ */ E("span", {
442
442
  className: "select-mailatt__name",
443
443
  children: e
444
- }), d ? /* @__PURE__ */ w("span", {
444
+ }), d ? /* @__PURE__ */ E("span", {
445
445
  className: "select-mailatt__sub",
446
446
  children: d
447
447
  }) : null]
448
448
  }),
449
- /* @__PURE__ */ w("span", {
449
+ /* @__PURE__ */ E("span", {
450
450
  className: "select-mailatt__icon",
451
451
  "aria-hidden": "true",
452
- children: w(n === "ready" ? a : n === "failed" ? m : o, {})
452
+ children: E(n === "ready" ? a : n === "failed" ? m : o, {})
453
453
  })
454
454
  ]
455
455
  });
456
456
  }
457
457
  function H({ children: e, onClick: n, variant: r = "link", title: i }) {
458
- return /* @__PURE__ */ T("button", {
458
+ return /* @__PURE__ */ D("button", {
459
459
  type: "button",
460
460
  className: `select-leadchip select-leadchip--${r}`,
461
461
  onClick: n,
462
462
  title: i,
463
463
  children: [
464
- /* @__PURE__ */ w("span", {
464
+ /* @__PURE__ */ E("span", {
465
465
  className: "select-leadchip__icon",
466
466
  "aria-hidden": "true",
467
- children: w(r === "create" ? l : p, {})
467
+ children: E(r === "create" ? l : p, {})
468
468
  }),
469
- /* @__PURE__ */ w("span", {
469
+ /* @__PURE__ */ E("span", {
470
470
  className: "select-leadchip__label",
471
471
  children: e
472
472
  }),
473
- r === "link" ? /* @__PURE__ */ w("span", {
473
+ r === "link" ? /* @__PURE__ */ E("span", {
474
474
  className: "select-leadchip__go",
475
475
  "aria-hidden": "true",
476
- children: /* @__PURE__ */ w(t, {})
476
+ children: /* @__PURE__ */ E(t, {})
477
477
  }) : null
478
478
  ]
479
479
  });
@@ -483,70 +483,70 @@ var U = (e) => {
483
483
  return Array.from(((t = e.dataTransfer) == null ? void 0 : t.types) ?? []).includes("Files");
484
484
  };
485
485
  function W({ variant: e = "inline", title: t, minimized: a = !1, onToggleMinimize: o, onClose: l, closeLabel: u, error: d, attachments: f, onFiles: p, dropLabel: m, footer: g, children: v, "aria-label": y }) {
486
- let b = h().inbox, E = e === "dock", [O, k] = S(!1), A = x(0), j = p ? {
486
+ let b = h().inbox, x = e === "dock", [S, O] = w(!1), A = C(0), j = p ? {
487
487
  onDragEnter: (e) => {
488
- U(e) && (e.preventDefault(), A.current += 1, k(!0));
488
+ U(e) && (e.preventDefault(), A.current += 1, O(!0));
489
489
  },
490
490
  onDragOver: (e) => {
491
491
  U(e) && e.preventDefault();
492
492
  },
493
493
  onDragLeave: (e) => {
494
- U(e) && (A.current = Math.max(0, A.current - 1), A.current === 0 && k(!1));
494
+ U(e) && (A.current = Math.max(0, A.current - 1), A.current === 0 && O(!1));
495
495
  },
496
496
  onDrop: (e) => {
497
497
  if (!U(e)) return;
498
- e.preventDefault(), A.current = 0, k(!1);
498
+ e.preventDefault(), A.current = 0, O(!1);
499
499
  let t = Array.from(e.dataTransfer.files);
500
500
  t.length && p(t);
501
501
  }
502
502
  } : {};
503
- return /* @__PURE__ */ T("div", {
504
- className: D("select-mailcomposer", `select-mailcomposer--${e}`, a && "is-minimized", O && "is-dragging"),
505
- role: E ? "dialog" : "group",
503
+ return /* @__PURE__ */ D("div", {
504
+ className: k("select-mailcomposer", `select-mailcomposer--${e}`, a && "is-minimized", S && "is-dragging"),
505
+ role: x ? "dialog" : "group",
506
506
  "aria-label": y,
507
507
  ...j,
508
508
  children: [
509
- E ? /* @__PURE__ */ T("div", {
509
+ x ? /* @__PURE__ */ D("div", {
510
510
  className: "select-mailcomposer__bar",
511
511
  children: [
512
- /* @__PURE__ */ w("span", {
512
+ /* @__PURE__ */ E("span", {
513
513
  className: "select-mailcomposer__title",
514
514
  children: t
515
515
  }),
516
- o ? /* @__PURE__ */ w(_, {
517
- icon: w(a ? r : n, {}),
516
+ o ? /* @__PURE__ */ E(_, {
517
+ icon: E(a ? r : n, {}),
518
518
  label: a ? b.open : b.minimize,
519
519
  size: "sm",
520
520
  onClick: o
521
521
  }) : null,
522
- l ? /* @__PURE__ */ w(_, {
523
- icon: /* @__PURE__ */ w(i, {}),
522
+ l ? /* @__PURE__ */ E(_, {
523
+ icon: /* @__PURE__ */ E(i, {}),
524
524
  label: u ?? b.close,
525
525
  size: "sm",
526
526
  onClick: l
527
527
  }) : null
528
528
  ]
529
529
  }) : null,
530
- O && !a ? /* @__PURE__ */ T("div", {
530
+ S && !a ? /* @__PURE__ */ D("div", {
531
531
  className: "select-mailcomposer__drop",
532
532
  "aria-hidden": "true",
533
- children: [/* @__PURE__ */ w(c, {}), /* @__PURE__ */ w("span", { children: m ?? b.drop })]
533
+ children: [/* @__PURE__ */ E(c, {}), /* @__PURE__ */ E("span", { children: m ?? b.drop })]
534
534
  }) : null,
535
- a ? null : /* @__PURE__ */ T(C, { children: [
536
- /* @__PURE__ */ w("div", {
535
+ a ? null : /* @__PURE__ */ D(T, { children: [
536
+ /* @__PURE__ */ E("div", {
537
537
  className: "select-mailcomposer__fields",
538
538
  children: v
539
539
  }),
540
540
  f,
541
- d ? /* @__PURE__ */ T("div", {
541
+ d ? /* @__PURE__ */ D("div", {
542
542
  className: "select-mailcomposer__error",
543
543
  role: "alert",
544
- children: [/* @__PURE__ */ w("span", {
544
+ children: [/* @__PURE__ */ E("span", {
545
545
  "aria-hidden": "true",
546
- children: /* @__PURE__ */ w(s, {})
547
- }), /* @__PURE__ */ w("span", { children: d })]
546
+ children: /* @__PURE__ */ E(s, {})
547
+ }), /* @__PURE__ */ E("span", { children: d })]
548
548
  }) : null,
549
- /* @__PURE__ */ w("div", {
549
+ /* @__PURE__ */ E("div", {
550
550
  className: "select-mailcomposer__footer",
551
551
  children: g
552
552
  })
@@ -555,18 +555,18 @@ function W({ variant: e = "inline", title: t, minimized: a = !1, onToggleMinimiz
555
555
  });
556
556
  }
557
557
  function G({ label: e, children: t, action: n }) {
558
- return /* @__PURE__ */ T("div", {
558
+ return /* @__PURE__ */ D("div", {
559
559
  className: "select-mailcomposer__row",
560
560
  children: [
561
- e ? /* @__PURE__ */ w("span", {
561
+ e ? /* @__PURE__ */ E("span", {
562
562
  className: "select-mailcomposer__label",
563
563
  children: e
564
564
  }) : null,
565
- /* @__PURE__ */ w("div", {
565
+ /* @__PURE__ */ E("div", {
566
566
  className: "select-mailcomposer__control",
567
567
  children: t
568
568
  }),
569
- n ? /* @__PURE__ */ w("div", {
569
+ n ? /* @__PURE__ */ E("div", {
570
570
  className: "select-mailcomposer__rowaction",
571
571
  children: n
572
572
  }) : null
@@ -574,7 +574,7 @@ function G({ label: e, children: t, action: n }) {
574
574
  });
575
575
  }
576
576
  function K({ value: e, onChange: t, placeholder: n, "aria-label": r, maxLength: i }) {
577
- return /* @__PURE__ */ w("input", {
577
+ return /* @__PURE__ */ E("input", {
578
578
  className: "select-mailcomposer__input",
579
579
  value: e,
580
580
  onChange: (e) => t(e.target.value),
@@ -583,29 +583,56 @@ function K({ value: e, onChange: t, placeholder: n, "aria-label": r, maxLength:
583
583
  maxLength: i
584
584
  });
585
585
  }
586
- function q({ value: e, onChange: t, placeholder: n, rows: r = 6, "aria-label": i, maxLength: a, onEnter: o, id: s, textareaRef: c, onKeyDown: l, onSelect: u, fieldProps: d }) {
587
- let f = h().inbox;
588
- return /* @__PURE__ */ w("textarea", {
589
- ...d,
590
- ref: c,
591
- id: s,
592
- className: "select-mailcomposer__body",
586
+ function q(e, t, n) {
587
+ let r = getComputedStyle(e), i = parseFloat(r.lineHeight) || 22, a = (parseFloat(r.paddingTop) || 0) + (parseFloat(r.paddingBottom) || 0) + (parseFloat(r.borderTopWidth) || 0) + (parseFloat(r.borderBottomWidth) || 0), o = i * t + a, s = i * n + a;
588
+ e.style.height = "auto";
589
+ let c = e.scrollHeight + (parseFloat(r.borderTopWidth) || 0) + (parseFloat(r.borderBottomWidth) || 0);
590
+ e.style.height = `${Math.round(Math.min(s, Math.max(o, c)))}px`, e.style.overflowY = c > s ? "auto" : "hidden";
591
+ }
592
+ function J({ value: e, onChange: t, placeholder: n, rows: r = 6, autoGrow: i = !1, minRows: a = 3, maxRows: o = 12, "aria-label": s, maxLength: c, onEnter: l, id: u, textareaRef: d, onKeyDown: f, onSelect: p, fieldProps: m }) {
593
+ let g = h().inbox, _ = C(null), v = x((e) => {
594
+ _.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
595
+ }, [d]);
596
+ return S(() => {
597
+ let e = _.current;
598
+ i && e && q(e, a, o);
599
+ }, [
600
+ i,
601
+ e,
602
+ a,
603
+ o
604
+ ]), S(() => {
605
+ let e = _.current;
606
+ if (!i || !e || typeof ResizeObserver > "u") return;
607
+ let t = e.clientWidth, n = new ResizeObserver(() => {
608
+ e.clientWidth !== t && (t = e.clientWidth, q(e, a, o));
609
+ });
610
+ return n.observe(e), () => n.disconnect();
611
+ }, [
612
+ i,
613
+ a,
614
+ o
615
+ ]), /* @__PURE__ */ E("textarea", {
616
+ ...m,
617
+ ref: v,
618
+ id: u,
619
+ className: `select-mailcomposer__body${i ? " select-mailcomposer__body--grow" : ""}`,
593
620
  value: e,
594
621
  onChange: (e) => t(e.target.value),
595
622
  onKeyDown: (e) => {
596
- l == null || l(e), !e.defaultPrevented && o && e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), o());
623
+ f == null || f(e), !e.defaultPrevented && l && e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), l());
597
624
  },
598
- onSelect: u,
625
+ onSelect: p,
599
626
  placeholder: n,
600
- rows: r,
601
- "aria-label": i ?? f.message,
602
- maxLength: a
627
+ rows: i ? a : r,
628
+ "aria-label": s ?? g.message,
629
+ maxLength: c
603
630
  });
604
631
  }
605
- function J({ onFiles: e, accept: t, multiple: n = !0, disabled: r = !1, label: i = "Anexar arquivo" }) {
606
- let a = x(null);
607
- return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(_, {
608
- icon: /* @__PURE__ */ w(c, {}),
632
+ function Y({ onFiles: e, accept: t, multiple: n = !0, disabled: r = !1, label: i = "Anexar arquivo" }) {
633
+ let a = C(null);
634
+ return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
635
+ icon: /* @__PURE__ */ E(c, {}),
609
636
  label: i,
610
637
  size: "sm",
611
638
  disabled: r,
@@ -613,7 +640,7 @@ function J({ onFiles: e, accept: t, multiple: n = !0, disabled: r = !1, label: i
613
640
  var e;
614
641
  return (e = a.current) == null ? void 0 : e.click();
615
642
  }
616
- }), /* @__PURE__ */ w("input", {
643
+ }), /* @__PURE__ */ E("input", {
617
644
  ref: a,
618
645
  type: "file",
619
646
  className: "select-mailcomposer__file",
@@ -627,60 +654,60 @@ function J({ onFiles: e, accept: t, multiple: n = !0, disabled: r = !1, label: i
627
654
  }
628
655
  })] });
629
656
  }
630
- function Y({ children: e, note: t }) {
631
- return /* @__PURE__ */ T("div", {
657
+ function X({ children: e, note: t }) {
658
+ return /* @__PURE__ */ D("div", {
632
659
  className: "select-mailcomposer__attachments",
633
660
  role: "list",
634
661
  "aria-label": "Anexos",
635
- children: [e, t ? /* @__PURE__ */ w("span", {
662
+ children: [e, t ? /* @__PURE__ */ E("span", {
636
663
  className: "select-mailcomposer__attnote",
637
664
  children: t
638
665
  }) : null]
639
666
  });
640
667
  }
641
- function X({ name: e, size: t, state: n = "done", progress: r, error: a, onRemove: o, onRetry: s }) {
668
+ function Z({ name: e, size: t, state: n = "done", progress: r, error: a, onRemove: o, onRetry: s }) {
642
669
  let c = y(e), l = r == null ? null : Math.round(Math.min(1, Math.max(0, r)) * 100), d = n === "uploading" ? l == null ? "Subindo…" : `Subindo… ${l}%` : n === "failed" ? a ?? "Não subiu" : t;
643
- return /* @__PURE__ */ T("span", {
670
+ return /* @__PURE__ */ D("span", {
644
671
  className: `select-mailupload select-mailupload--${n}`,
645
672
  role: "listitem",
646
673
  "aria-busy": n === "uploading" || void 0,
647
674
  children: [
648
- /* @__PURE__ */ w("span", {
675
+ /* @__PURE__ */ E("span", {
649
676
  className: `select-mailatt__ext select-mailatt__ext--${b(c)} select-mailupload__ext`,
650
677
  "aria-hidden": "true",
651
678
  children: c
652
679
  }),
653
- /* @__PURE__ */ T("span", {
680
+ /* @__PURE__ */ D("span", {
654
681
  className: "select-mailupload__text",
655
- children: [/* @__PURE__ */ w("span", {
682
+ children: [/* @__PURE__ */ E("span", {
656
683
  className: "select-mailupload__name",
657
684
  title: e,
658
685
  children: e
659
- }), d ? /* @__PURE__ */ w("span", {
686
+ }), d ? /* @__PURE__ */ E("span", {
660
687
  className: "select-mailupload__sub",
661
688
  children: d
662
689
  }) : null]
663
690
  }),
664
- n === "failed" && s ? /* @__PURE__ */ w("button", {
691
+ n === "failed" && s ? /* @__PURE__ */ E("button", {
665
692
  type: "button",
666
693
  className: "select-mailupload__btn",
667
694
  onClick: s,
668
695
  "aria-label": `Subir ${e} de novo`,
669
696
  title: "Tentar de novo",
670
- children: /* @__PURE__ */ w(u, {})
697
+ children: /* @__PURE__ */ E(u, {})
671
698
  }) : null,
672
- /* @__PURE__ */ w("button", {
699
+ /* @__PURE__ */ E("button", {
673
700
  type: "button",
674
701
  className: "select-mailupload__btn",
675
702
  onClick: o,
676
703
  "aria-label": `Tirar o anexo ${e}`,
677
704
  title: "Tirar",
678
- children: /* @__PURE__ */ w(i, {})
705
+ children: /* @__PURE__ */ E(i, {})
679
706
  }),
680
- n === "uploading" ? /* @__PURE__ */ w("span", {
707
+ n === "uploading" ? /* @__PURE__ */ E("span", {
681
708
  className: "select-mailupload__bar",
682
709
  "aria-hidden": "true",
683
- children: /* @__PURE__ */ w("span", {
710
+ children: /* @__PURE__ */ E("span", {
684
711
  className: l == null ? "is-indeterminate" : void 0,
685
712
  style: l == null ? void 0 : { width: `${l}%` }
686
713
  })
@@ -688,35 +715,35 @@ function X({ name: e, size: t, state: n = "done", progress: r, error: a, onRemov
688
715
  ]
689
716
  });
690
717
  }
691
- function Z({ start: e, note: t, end: n }) {
692
- return /* @__PURE__ */ T(C, { children: [
693
- e ? /* @__PURE__ */ w("div", {
718
+ function ne({ start: e, note: t, end: n }) {
719
+ return /* @__PURE__ */ D(T, { children: [
720
+ e ? /* @__PURE__ */ E("div", {
694
721
  className: "select-mailcomposer__start",
695
722
  children: e
696
723
  }) : null,
697
- /* @__PURE__ */ w("span", {
724
+ /* @__PURE__ */ E("span", {
698
725
  className: "select-mailcomposer__note",
699
726
  children: t
700
727
  }),
701
- n ? /* @__PURE__ */ w("div", {
728
+ n ? /* @__PURE__ */ E("div", {
702
729
  className: "select-mailcomposer__end",
703
730
  children: n
704
731
  }) : null
705
732
  ] });
706
733
  }
707
- var ee = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Q = /[\s,;]+/;
734
+ var re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Q = /[\s,;]+/;
708
735
  function $(e) {
709
- return ee.test(e);
736
+ return re.test(e);
710
737
  }
711
- function te({ value: e, onChange: t, labels: n, validate: r = $, placeholder: a, "aria-label": o }) {
712
- let [s, c] = S(""), l = x(null), u = (n) => {
738
+ function ie({ value: e, onChange: t, labels: n, validate: r = $, placeholder: a, "aria-label": o }) {
739
+ let [s, c] = w(""), l = C(null), u = (n) => {
713
740
  let r = n.split(Q).map((e) => e.trim()).filter(Boolean);
714
741
  if (c(""), !r.length) return;
715
742
  let i = [...e];
716
743
  for (let e of r) i.some((t) => t.toLowerCase() === e.toLowerCase()) || i.push(e);
717
744
  i.length !== e.length && t(i);
718
745
  };
719
- return /* @__PURE__ */ T("div", {
746
+ return /* @__PURE__ */ D("div", {
720
747
  className: "select-recipients",
721
748
  onClick: () => {
722
749
  var e;
@@ -724,23 +751,23 @@ function te({ value: e, onChange: t, labels: n, validate: r = $, placeholder: a,
724
751
  },
725
752
  children: [e.map((a) => {
726
753
  let o = !r(a), s = (n == null ? void 0 : n[a]) ?? a;
727
- return /* @__PURE__ */ T("span", {
728
- className: D("select-recipients__chip", o && "is-invalid"),
754
+ return /* @__PURE__ */ D("span", {
755
+ className: k("select-recipients__chip", o && "is-invalid"),
729
756
  title: s === a ? o ? "Endereço inválido" : void 0 : a,
730
- children: [/* @__PURE__ */ w("span", {
757
+ children: [/* @__PURE__ */ E("span", {
731
758
  className: "select-recipients__label",
732
759
  children: s
733
- }), /* @__PURE__ */ w("button", {
760
+ }), /* @__PURE__ */ E("button", {
734
761
  type: "button",
735
762
  className: "select-recipients__remove",
736
763
  "aria-label": `Tirar ${s}`,
737
764
  onClick: (n) => {
738
765
  n.stopPropagation(), t(e.filter((e) => e !== a));
739
766
  },
740
- children: /* @__PURE__ */ w(i, {})
767
+ children: /* @__PURE__ */ E(i, {})
741
768
  })]
742
769
  }, a);
743
- }), /* @__PURE__ */ w("input", {
770
+ }), /* @__PURE__ */ E("input", {
744
771
  ref: l,
745
772
  className: "select-recipients__input",
746
773
  value: s,
@@ -760,39 +787,39 @@ function te({ value: e, onChange: t, labels: n, validate: r = $, placeholder: a,
760
787
  })]
761
788
  });
762
789
  }
763
- function ne({ open: e, onClose: t, activator: n, templates: r, onPick: i, hint: a, footer: o, empty: s = "Nenhum modelo ainda." }) {
764
- return /* @__PURE__ */ w(g, {
790
+ function ae({ open: e, onClose: t, activator: n, templates: r, onPick: i, hint: a, footer: o, empty: s = "Nenhum modelo ainda." }) {
791
+ return /* @__PURE__ */ E(g, {
765
792
  active: e,
766
793
  onClose: t,
767
794
  activator: n,
768
795
  placement: "top-start",
769
796
  role: "menu",
770
- children: /* @__PURE__ */ T("div", {
797
+ children: /* @__PURE__ */ D("div", {
771
798
  className: "select-tplmenu",
772
799
  children: [
773
- a ? /* @__PURE__ */ w("div", {
800
+ a ? /* @__PURE__ */ E("div", {
774
801
  className: "select-tplmenu__hint",
775
802
  children: a
776
803
  }) : null,
777
- r.length ? r.map((e) => /* @__PURE__ */ T("button", {
804
+ r.length ? r.map((e) => /* @__PURE__ */ D("button", {
778
805
  type: "button",
779
806
  role: "menuitem",
780
807
  className: "select-tplmenu__item",
781
808
  onClick: () => {
782
809
  i(e.id), t();
783
810
  },
784
- children: [/* @__PURE__ */ w("span", {
811
+ children: [/* @__PURE__ */ E("span", {
785
812
  className: "select-tplmenu__name",
786
813
  children: e.name
787
- }), /* @__PURE__ */ w("span", {
814
+ }), /* @__PURE__ */ E("span", {
788
815
  className: "select-tplmenu__subject",
789
816
  children: e.subject
790
817
  })]
791
- }, e.id)) : /* @__PURE__ */ w("div", {
818
+ }, e.id)) : /* @__PURE__ */ E("div", {
792
819
  className: "select-tplmenu__empty",
793
820
  children: s
794
821
  }),
795
- o ? /* @__PURE__ */ w("div", {
822
+ o ? /* @__PURE__ */ E("div", {
796
823
  className: "select-tplmenu__footer",
797
824
  children: o
798
825
  }) : null
@@ -801,6 +828,6 @@ function ne({ open: e, onClose: t, activator: n, templates: r, onPick: i, hint:
801
828
  });
802
829
  }
803
830
  //#endregion
804
- export { O as SelectInbox, k as SelectInboxBanner, M as SelectInboxEmpty, A as SelectInboxToolbar, H as SelectLeadChip, J as SelectMailAttachButton, V as SelectMailAttachment, W as SelectMailComposer, Y as SelectMailComposerAttachments, q as SelectMailComposerBody, Z as SelectMailComposerFooter, K as SelectMailComposerInput, G as SelectMailComposerRow, N as SelectMailList, P as SelectMailListGroup, F as SelectMailListItem, L as SelectMailListNote, I as SelectMailListSkeleton, z as SelectMailMessage, B as SelectMailNotice, R as SelectMailReader, X as SelectMailUpload, j as SelectMailboxStatus, te as SelectRecipientInput, ne as SelectTemplateMenu, y as attachmentExt, $ as isMailAddress, E as mailName };
831
+ export { A as SelectInbox, j as SelectInboxBanner, P as SelectInboxEmpty, M as SelectInboxToolbar, H as SelectLeadChip, Y as SelectMailAttachButton, V as SelectMailAttachment, W as SelectMailComposer, X as SelectMailComposerAttachments, J as SelectMailComposerBody, ne as SelectMailComposerFooter, K as SelectMailComposerInput, G as SelectMailComposerRow, ee as SelectMailList, te as SelectMailListGroup, F as SelectMailListItem, L as SelectMailListNote, I as SelectMailListSkeleton, z as SelectMailMessage, B as SelectMailNotice, R as SelectMailReader, Z as SelectMailUpload, N as SelectMailboxStatus, ie as SelectRecipientInput, ae as SelectTemplateMenu, y as attachmentExt, $ as isMailAddress, O as mailName };
805
832
 
806
833
  //# sourceMappingURL=SelectMail.js.map