@solibo/solibo-ui 2.2.18 → 2.2.20

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 (52) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index18.css +1 -1
  3. package/dist/assets/index20.css +1 -1
  4. package/dist/components/checkbox/index.cjs +1 -1
  5. package/dist/components/checkbox/index.js +1 -1
  6. package/dist/components/comment/index.cjs +1 -1
  7. package/dist/components/comment/index.js +1 -1
  8. package/dist/components/comments/index.cjs +1 -1
  9. package/dist/components/comments/index.js +1 -1
  10. package/dist/components/controls/index.cjs +1 -1
  11. package/dist/components/controls/index.js +2 -2
  12. package/dist/components/dropdown/index.cjs +1 -1
  13. package/dist/components/dropdown/index.js +3 -3
  14. package/dist/components/editor/index.cjs +1 -1
  15. package/dist/components/editor/index.js +1 -1
  16. package/dist/components/icon/index.cjs +1 -1
  17. package/dist/components/icon/index.js +1 -1
  18. package/dist/components/iframe/index.cjs +1 -1
  19. package/dist/components/iframe/index.js +93 -74
  20. package/dist/components/input/index.cjs +1 -1
  21. package/dist/components/input/index.js +2 -2
  22. package/dist/components/menu/index.cjs +1 -1
  23. package/dist/components/menu/index.js +1 -1
  24. package/dist/components/message/index.cjs +1 -1
  25. package/dist/components/message/index.js +32 -33
  26. package/dist/components/messages/index.cjs +1 -1
  27. package/dist/components/messages/index.js +1 -1
  28. package/dist/components/nav/index.cjs +1 -1
  29. package/dist/components/nav/index.js +1 -1
  30. package/dist/components/search/index.cjs +1 -1
  31. package/dist/components/search/index.js +2 -2
  32. package/dist/components/select/index.cjs +1 -1
  33. package/dist/components/select/index.js +2 -2
  34. package/dist/icons-BSfBrPs3.cjs +1 -0
  35. package/dist/{icons-DVeBguFb.js → icons-DtAsxlep.js} +3 -0
  36. package/dist/{index-B4dFheLl.cjs → index-BAvndpvN.cjs} +1 -1
  37. package/dist/{index-acMNM3VJ.js → index-BOIHwDwc.js} +1 -1
  38. package/dist/{index-BwfsmdF6.cjs → index-C6rfOHaL.cjs} +1 -1
  39. package/dist/{index-GPsHvb4d.js → index-CWeknFzO.js} +1 -1
  40. package/dist/{index-BQoXmNo3.cjs → index-Ct84TXGv.cjs} +1 -1
  41. package/dist/{index-DEQcFR32.cjs → index-D3gtJMYv.cjs} +1 -1
  42. package/dist/{index-6TyCExT0.js → index-DpkXKD1Z.js} +1 -1
  43. package/dist/{index-BJiUk1q2.js → index-pFwW6g9T.js} +1 -1
  44. package/dist/index.cjs +1 -1
  45. package/dist/index.d.ts +7 -4
  46. package/dist/index.js +4 -4
  47. package/dist/{menu-popover-Ceb_9V67.js → menu-popover-AX_9ln6L.js} +3 -3
  48. package/dist/menu-popover-Bzgvr-we.cjs +1 -0
  49. package/dist/tokens.json +1 -1
  50. package/package.json +1 -1
  51. package/dist/icons-BIdcCH-v.cjs +0 -1
  52. package/dist/menu-popover-bqblnK6P.cjs +0 -1
@@ -1,98 +1,117 @@
1
- import { jsxs as W, jsx as o } from "react/jsx-runtime";
2
- import X from "classix";
3
- import { useRef as v, useState as J, useCallback as _, useEffect as K } from "react";
4
- import { Button as Q } from "../button/index.js";
5
- import { C as oe } from "../../index-acMNM3VJ.js";
6
- import { Dialog as ce } from "../dialog/index.js";
7
- import { Header as se } from "../header/index.js";
8
- import '../../assets/index20.css';const ae = "_wrapper_vtkwq_1", le = "_toolbar_vtkwq_6", ue = "_iframe_vtkwq_12", m = {
9
- wrapper: ae,
10
- toolbar: le,
11
- iframe: ue,
12
- "fullscreen-iframe": "_fullscreen-iframe_vtkwq_18",
13
- "print-content": "_print-content_vtkwq_23"
14
- }, N = 120, de = 12e3, he = 8, _e = ({
15
- accessibleLabel: f,
16
- autoResize: a = !1,
17
- className: O,
18
- closeFullscreenLabel: R = "Close fullscreen",
19
- fullscreenLabel: Y = "View in fullscreen",
20
- hasFullscreenView: Z = !0,
21
- loading: P = "lazy",
22
- onLoad: g,
23
- printContent: S,
24
- referrerPolicy: C = "no-referrer",
25
- sandbox: A = "",
26
- srcDoc: h,
27
- style: I,
28
- ...T
1
+ import { jsxs as U, jsx as u, Fragment as it } from "react/jsx-runtime";
2
+ import Y from "classix";
3
+ import { useRef as f, useState as Z, useLayoutEffect as ct, useEffect as F, useCallback as E } from "react";
4
+ import { createPortal as at } from "react-dom";
5
+ import { Dialog as st } from "../dialog/index.js";
6
+ import '../../assets/index20.css';const ut = ":host{all:initial;display:block;color:#000;background:#fff;font:12pt/1.4 system-ui,sans-serif;overflow-wrap:anywhere;-webkit-print-color-adjust:exact;print-color-adjust:exact}img{max-width:100%;height:auto}table{max-width:100%;page-break-inside:auto}tr{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}pre{white-space:pre-wrap}", dt = "_wrapper_1xjxk_1", lt = "_iframe_1xjxk_5", M = {
7
+ wrapper: dt,
8
+ iframe: lt,
9
+ "fullscreen-iframe": "_fullscreen-iframe_1xjxk_11",
10
+ "print-content": "_print-content_1xjxk_16"
11
+ }, R = 120, ht = 12e3, mt = 8, ft = ({
12
+ children: d
29
13
  }) => {
30
- const y = v(null), p = v(null), d = v(void 0), w = v(!0), M = v(h), E = v(void 0), [D, ee] = J(N), [b, x] = J(!1), B = _(() => {
31
- p.current !== null && (window.cancelAnimationFrame(p.current), p.current = null);
32
- }, []), U = _(() => {
33
- if (!(!a || !w.current))
14
+ const [o, _] = Z(null), l = E((H) => {
15
+ H && _(H.shadowRoot ?? H.attachShadow({
16
+ mode: "open"
17
+ }));
18
+ }, []);
19
+ return /* @__PURE__ */ u("div", { ref: l, "data-component": "isolatedprintcontent", children: o && at(/* @__PURE__ */ U(it, { children: [
20
+ /* @__PURE__ */ u("style", { children: ut }),
21
+ d
22
+ ] }), o) });
23
+ }, xt = ({
24
+ accessibleLabel: d,
25
+ autoResize: o = !1,
26
+ className: _,
27
+ fullscreenOpen: l = !1,
28
+ isolatePrintContent: H = !1,
29
+ loading: D = "lazy",
30
+ onLoad: b,
31
+ onFullscreenOpenChange: S,
32
+ printContent: V,
33
+ referrerPolicy: q = "no-referrer",
34
+ sandbox: G = "",
35
+ srcDoc: m,
36
+ style: L,
37
+ ...z
38
+ }) => {
39
+ const j = f(null), w = f(null), h = f(void 0), x = f(!0), T = f(m), N = f(void 0), [O, tt] = Z(R), y = f(null);
40
+ ct(() => {
41
+ l && !y.current && (y.current = document.activeElement instanceof HTMLElement ? document.activeElement : null);
42
+ }, [l]), F(() => {
43
+ var e;
44
+ l || ((e = y.current) != null && e.isConnected && y.current.focus({
45
+ preventScroll: !0
46
+ }), y.current = null);
47
+ }, [l]);
48
+ const $ = E(() => {
49
+ w.current !== null && (window.cancelAnimationFrame(w.current), w.current = null);
50
+ }, []), C = E(() => {
51
+ if (!(!o || !x.current))
34
52
  try {
35
- const e = y.current, r = e == null ? void 0 : e.contentDocument;
53
+ const e = j.current, r = e == null ? void 0 : e.contentDocument;
36
54
  if (!e || !(r != null && r.body)) return;
37
- const n = r.querySelector("[data-iframe-content]") ?? r.body, t = n.getBoundingClientRect(), c = e.clientHeight || Number.parseFloat(e.style.height), l = r.documentElement.scrollHeight, H = Math.max(n.scrollHeight, n.offsetHeight, t.height), i = Math.max(n === r.body && n.scrollHeight <= c ? 0 : n.scrollHeight, n.offsetHeight, t.height, t.bottom || 0), V = l > c + 1 ? l : 0, re = Number.parseFloat(window.getComputedStyle(n).height), ne = Math.abs(H - c) <= 1 || Math.abs(re - c) <= 1 && n.scrollHeight <= n.offsetHeight, G = Math.min(Math.max(Math.ceil(ne ? c : Math.max(i, V) + he), N), de), u = E.current, k = Math.max(i, V), j = e.clientWidth, ie = (u == null ? void 0 : u.document) === r && u.width === j, q = u ? c - u.viewportHeight : 0, $ = u ? k - u.contentHeight : 0, z = !!(ie && k > c && (q > 1 && Math.abs($ - q) <= 1 || u.viewportDependent && Math.abs(q) <= 1 && Math.abs($) <= 1));
38
- E.current = {
55
+ const n = r.querySelector("[data-iframe-content]") ?? r.body, g = n.getBoundingClientRect(), t = e.clientHeight || Number.parseFloat(e.style.height), p = r.documentElement.scrollHeight, a = r.documentElement.offsetHeight, k = Math.max(n.scrollHeight, n.offsetHeight, g.height), v = Math.max(n === r.body && n.scrollHeight <= t ? 0 : n.scrollHeight, n.offsetHeight, g.height, g.bottom || 0, a), i = p > t + 1 ? p : 0, rt = Number.parseFloat(window.getComputedStyle(n).height), nt = Math.abs(k - t) <= 1 || Math.abs(rt - t) <= 1 && n.scrollHeight <= n.offsetHeight || Math.abs(a - t) <= 1 && p <= t + 1 && v <= t + 1, W = Math.min(Math.max(Math.ceil(nt ? t : Math.max(v, i) + mt), R), ht), s = N.current, I = Math.max(v, i), X = e.clientWidth, ot = (s == null ? void 0 : s.document) === r && s.width === X, B = s ? t - s.viewportHeight : 0, J = s ? I - s.contentHeight : 0, K = !!(ot && I > t && (B > 1 && Math.abs(J - B) <= 1 || s.viewportDependent && Math.abs(B) <= 1 && Math.abs(J) <= 1));
56
+ N.current = {
39
57
  document: r,
40
- viewportHeight: c,
41
- width: j,
42
- contentHeight: k,
43
- viewportDependent: z
44
- }, z || ee((L) => L === G ? L : G);
58
+ viewportHeight: t,
59
+ width: X,
60
+ contentHeight: I,
61
+ viewportDependent: K
62
+ }, K || tt((Q) => Q === W ? Q : W);
45
63
  } catch {
46
64
  return;
47
65
  }
48
- }, [a]), s = _(() => {
49
- !a || !w.current || p.current !== null || (p.current = window.requestAnimationFrame(() => {
50
- p.current = null, U();
66
+ }, [o]), c = E(() => {
67
+ !o || !x.current || w.current !== null || (w.current = window.requestAnimationFrame(() => {
68
+ w.current = null, C();
51
69
  }));
52
- }, [a, U]), F = _(() => {
53
- var e, r, n;
54
- if ((e = d.current) == null || e.call(d), d.current = void 0, E.current = void 0, !!a)
70
+ }, [o, C]), A = E(() => {
71
+ var e, r, n, g;
72
+ if ((e = h.current) == null || e.call(h), h.current = void 0, N.current = void 0, !!o)
55
73
  try {
56
- const t = (r = y.current) == null ? void 0 : r.contentDocument;
74
+ const t = (r = j.current) == null ? void 0 : r.contentDocument;
57
75
  if (!(t != null && t.body)) return;
58
- let c = !0;
59
- const l = () => {
60
- c && s();
61
- }, H = t.querySelector("[data-iframe-content]") ?? t.body, i = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(l);
62
- i == null || i.observe(H), H !== t.body && (i == null || i.observe(t.body)), t.addEventListener("load", l, !0), t.addEventListener("error", l, !0), (n = t.fonts) == null || n.ready.then(l).catch(() => {
63
- }), d.current = () => {
64
- c = !1, i == null || i.disconnect(), t.removeEventListener("load", l, !0), t.removeEventListener("error", l, !0);
76
+ let p = !0;
77
+ const a = () => {
78
+ p && c();
79
+ }, k = t.querySelector("[data-iframe-content]") ?? t.body, v = ((n = t.defaultView) == null ? void 0 : n.ResizeObserver) ?? window.ResizeObserver, i = v ? new v(a) : void 0;
80
+ i == null || i.observe(k), k !== t.body && (i == null || i.observe(t.body)), t.addEventListener("load", a, !0), t.addEventListener("error", a, !0), (g = t.fonts) == null || g.ready.then(a).catch(() => {
81
+ }), h.current = () => {
82
+ p = !1, i == null || i.disconnect(), t.removeEventListener("load", a, !0), t.removeEventListener("error", a, !0);
65
83
  };
66
84
  } catch {
67
85
  return;
68
86
  }
69
- }, [a, s]), te = (e) => {
70
- w.current = !0, F(), g == null || g(e), s();
87
+ }, [o, c]), et = (e) => {
88
+ x.current = !0, A(), b == null || b(e), c();
71
89
  };
72
- return K(() => (w.current = M.current === h, M.current === h && (F(), s()), M.current = h, () => {
90
+ F(() => (x.current = T.current === m, T.current === m && (A(), c()), T.current = m, () => {
73
91
  var e;
74
- w.current = !1, (e = d.current) == null || e.call(d), B();
75
- }), [B, F, s, h]), K(() => {
92
+ x.current = !1, (e = h.current) == null || e.call(h), $();
93
+ }), [$, A, c, m]), F(() => {
76
94
  var e;
77
- if (a)
78
- return window.addEventListener("resize", s), (e = window.visualViewport) == null || e.addEventListener("resize", s), () => {
95
+ if (o)
96
+ return window.addEventListener("resize", c), (e = window.visualViewport) == null || e.addEventListener("resize", c), () => {
79
97
  var r;
80
- window.removeEventListener("resize", s), (r = window.visualViewport) == null || r.removeEventListener("resize", s);
98
+ window.removeEventListener("resize", c), (r = window.visualViewport) == null || r.removeEventListener("resize", c);
81
99
  };
82
- }, [a, s]), /* @__PURE__ */ W("div", { className: m.wrapper, "data-component": "iframe", children: [
83
- Z && /* @__PURE__ */ o("div", { className: m.toolbar, children: /* @__PURE__ */ o(Q, { "aria-expanded": b, "aria-haspopup": "dialog", onClick: () => x(!0), variant: "tertiary", children: Y }) }),
84
- /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, O), loading: P, onLoad: te, ref: y, referrerPolicy: C, sandbox: A, srcDoc: h, style: a ? {
85
- ...I,
86
- height: D,
87
- minHeight: N
88
- } : I, title: f }),
89
- !b && /* @__PURE__ */ o("div", { className: m["print-content"], "data-iframe-print-content": !0, children: S ?? /* @__PURE__ */ o("p", { children: f }) }),
90
- b && /* @__PURE__ */ W(ce, { "aria-label": `${f} fullscreen`, controls: /* @__PURE__ */ o(oe, { children: /* @__PURE__ */ o(Q, { onClick: () => x(!1), children: R }) }), fullscreen: !0, header: /* @__PURE__ */ o(se, { children: /* @__PURE__ */ o("h2", { children: f }) }), open: !0, setOpen: x, children: [
91
- /* @__PURE__ */ o("iframe", { ...T, className: X(m.iframe, m["fullscreen-iframe"], O), loading: "eager", onLoad: g, referrerPolicy: C, sandbox: A, srcDoc: h, title: `${f} fullscreen` }),
92
- /* @__PURE__ */ o("div", { className: m["print-content"], "data-iframe-print-content": !0, children: S ?? /* @__PURE__ */ o("p", { children: f }) })
100
+ }, [o, c]);
101
+ const P = /* @__PURE__ */ u("div", { className: M["print-content"], "data-iframe-print-content": !0, children: H ? /* @__PURE__ */ u(ft, { children: V ?? /* @__PURE__ */ u("p", { children: d }) }) : V ?? /* @__PURE__ */ u("p", { children: d }) });
102
+ return /* @__PURE__ */ U("div", { className: M.wrapper, "data-component": "iframe", children: [
103
+ /* @__PURE__ */ u("iframe", { ...z, className: Y(M.iframe, _), loading: D, onLoad: et, ref: j, referrerPolicy: q, sandbox: G, srcDoc: m, style: o ? {
104
+ ...L,
105
+ height: O,
106
+ minHeight: R
107
+ } : L, title: d }),
108
+ !l && P,
109
+ l && /* @__PURE__ */ U(st, { "aria-label": `${d} fullscreen`, fullscreen: !0, header: /* @__PURE__ */ u("h2", { className: "print-hidden", children: d }), open: !0, setOpen: () => S == null ? void 0 : S(!1), children: [
110
+ /* @__PURE__ */ u("iframe", { ...z, className: Y(M.iframe, M["fullscreen-iframe"], _), loading: "eager", onLoad: b, referrerPolicy: q, sandbox: G, srcDoc: m, title: `${d} fullscreen` }),
111
+ P
93
112
  ] })
94
113
  ] });
95
114
  };
96
115
  export {
97
- _e as Iframe
116
+ xt as Iframe
98
117
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../form/index.cjs");require("../../icons-BIdcCH-v.cjs");require("../label/index.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-DEQcFR32.cjs");exports.Input=e.Input;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../form/index.cjs");require("../../icons-BSfBrPs3.cjs");require("../label/index.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-D3gtJMYv.cjs");exports.Input=e.Input;
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
2
2
  import "classix";
3
3
  import "react";
4
4
  import "../form/index.js";
5
- import "../../icons-DVeBguFb.js";
5
+ import "../../icons-DtAsxlep.js";
6
6
  import "../label/index.js";
7
7
  import "../../use-touched-B999bBr8.js";
8
- import { I as f } from "../../index-6TyCExT0.js";
8
+ import { I as f } from "../../index-DpkXKD1Z.js";
9
9
  export {
10
10
  f as Input
11
11
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-bqblnK6P.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-Bzgvr-we.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as M } from "react/jsx-runtime";
2
2
  import { Button as h } from "../button/index.js";
3
3
  import { Icon as v } from "../icon/index.js";
4
- import { M as l, a as t } from "../../menu-popover-Ceb_9V67.js";
4
+ import { M as l, a as t } from "../../menu-popover-AX_9ln6L.js";
5
5
  function x(o) {
6
6
  return [...o].sort((n, u) => +!!n.isDanger - +!!u.isDanger);
7
7
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const e=require("react/jsx-runtime"),j=require("classix"),y=require("../avatar/index.cjs"),l=require("../../index-BwfsmdF6.cjs"),q=require("../icon/index.cjs"),S="_attachments_1jli5_1",I="_footer_1jli5_27",C="_message_1jli5_11",M="_timestamp_1jli5_147",L="_actions_1jli5_152",O="_preview_1jli5_164",T="_toolbar_1jli5_199",s={attachments:S,"message-group":"_message-group_1jli5_11",footer:I,message:C,timestamp:M,actions:L,preview:O,toolbar:T,"with-toolbar":"_with-toolbar_1jli5_205"},k=({actions:o,actionsPlacement:u="footer",appearance:v="default",attachments:c,author:i,authorColor:x,authorImageUrl:h,authorLink:p,authorRole:b,content:m,iconName:f="Info",id:N,preview:d,timestamp:_,timestampText:w,type:t="default"})=>{const a=!!o&&u==="toolbar"&&t!=="system",g=a?l.controlChildren(o):[],n=_?new Date(_):void 0,r=n?e.jsx("time",{className:s.timestamp,dateTime:n.toISOString(),children:w??n.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[i&&e.jsx(y.Avatar,{accessibleLabel:i,color:x,imageUrl:h,link:p,name:i,role:b}),t==="system"&&r,e.jsxs("div",{className:j(s.message,a&&s["with-toolbar"]),"data-appearance":v,"data-id":N,"data-type":t,children:[t=="system"&&e.jsx(q.Icon,{gap:"right",name:f,size:"tiny"}),d||a?e.jsx("div",{className:j(d&&s.preview),children:m}):m,a&&e.jsx("div",{className:s.toolbar,children:e.jsx(l.Controls,{variant:g.every(l.isControlButton)?"embedded":"inline",children:g})})]}),c&&e.jsx("div",{className:s.attachments,children:c}),t!=="system"&&(o&&!a?e.jsxs("div",{className:s.footer,children:[r,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):r)]})};exports.Message=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const e=require("react/jsx-runtime"),g=require("classix"),y=require("../avatar/index.cjs"),n=require("../../index-C6rfOHaL.cjs"),q=require("../icon/index.cjs"),S="_attachments_1t3tb_1",C="_footer_1t3tb_27",I="_message_1t3tb_11",M="_timestamp_1t3tb_147",L="_preview_1t3tb_152",O="_toolbar_1t3tb_187",t={attachments:S,"message-group":"_message-group_1t3tb_11",footer:C,message:I,timestamp:M,preview:L,toolbar:O,"with-toolbar":"_with-toolbar_1t3tb_193"},T=({actions:o,actionsPlacement:u="footer",appearance:v="default",attachments:l,author:r,authorColor:x,authorImageUrl:h,authorLink:p,authorRole:j,content:m,iconName:f="Info",id:w,preview:d,timestamp:_,timestampText:N,type:s="default"})=>{const a=!!o&&u==="toolbar"&&s!=="system",b=a?n.controlChildren(o):[],i=_?new Date(_):void 0,c=i?e.jsx("time",{className:t.timestamp,dateTime:i.toISOString(),children:N??i.toLocaleString()}):null;return e.jsxs("div",{className:t["message-group"],"data-message-type":s,"data-component":"message",children:[r&&e.jsx(y.Avatar,{accessibleLabel:r,color:x,imageUrl:h,link:p,name:r,role:j}),s==="system"&&c,e.jsxs("div",{className:g(t.message,a&&t["with-toolbar"]),"data-appearance":v,"data-id":w,"data-type":s,children:[s=="system"&&e.jsx(q.Icon,{gap:"right",name:f,size:"tiny"}),d||a?e.jsx("div",{className:g(d&&t.preview),children:m}):m,a&&e.jsx("div",{className:t.toolbar,children:e.jsx(n.Controls,{variant:b.every(n.isControlButton)?"embedded":"inline",children:b})})]}),l&&e.jsx("div",{className:t.attachments,children:l}),s!=="system"&&(o&&!a?e.jsxs("div",{className:t.footer,children:[c,e.jsx(n.Controls,{"data-message-actions":!0,variant:"inline",children:o})]}):c)]})};exports.Message=T;
@@ -1,52 +1,51 @@
1
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
- import p from "classix";
3
- import { Avatar as y } from "../avatar/index.js";
4
- import { c as C, C as I, i as S } from "../../index-acMNM3VJ.js";
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import g from "classix";
3
+ import { Avatar as I } from "../avatar/index.js";
4
+ import { c as S, C as p, i as j } from "../../index-BOIHwDwc.js";
5
5
  import { Icon as L } from "../icon/index.js";
6
- import '../../assets/index18.css';const k = "_attachments_1jli5_1", z = "_footer_1jli5_27", A = "_message_1jli5_11", B = "_timestamp_1jli5_147", D = "_actions_1jli5_152", E = "_preview_1jli5_164", M = "_toolbar_1jli5_199", e = {
6
+ import '../../assets/index18.css';const k = "_attachments_1t3tb_1", z = "_footer_1t3tb_27", A = "_message_1t3tb_11", B = "_timestamp_1t3tb_147", D = "_preview_1t3tb_152", E = "_toolbar_1t3tb_187", e = {
7
7
  attachments: k,
8
- "message-group": "_message-group_1jli5_11",
8
+ "message-group": "_message-group_1t3tb_11",
9
9
  footer: z,
10
10
  message: A,
11
11
  timestamp: B,
12
- actions: D,
13
- preview: E,
14
- toolbar: M,
15
- "with-toolbar": "_with-toolbar_1jli5_205"
16
- }, G = ({
12
+ preview: D,
13
+ toolbar: E,
14
+ "with-toolbar": "_with-toolbar_1t3tb_193"
15
+ }, F = ({
17
16
  actions: o,
18
17
  actionsPlacement: h = "footer",
19
18
  appearance: v = "default",
20
- attachments: n,
21
- author: i,
19
+ attachments: l,
20
+ author: r,
22
21
  authorColor: f,
23
- authorImageUrl: b,
24
- authorLink: j,
22
+ authorImageUrl: u,
23
+ authorLink: w,
25
24
  authorRole: N,
26
25
  content: c,
27
- iconName: u = "Info",
28
- id: w,
26
+ iconName: x = "Info",
27
+ id: y,
29
28
  preview: d,
30
29
  timestamp: _,
31
- timestampText: x,
32
- type: s = "default"
30
+ timestampText: C,
31
+ type: a = "default"
33
32
  }) => {
34
- const a = !!o && h === "toolbar" && s !== "system", g = a ? C(o) : [], r = _ ? new Date(_) : void 0, l = r ? /* @__PURE__ */ t("time", { className: e.timestamp, dateTime: r.toISOString(), children: x ?? r.toLocaleString() }) : null;
35
- return /* @__PURE__ */ m("div", { className: e["message-group"], "data-message-type": s, "data-component": "message", children: [
36
- i && /* @__PURE__ */ t(y, { accessibleLabel: i, color: f, imageUrl: b, link: j, name: i, role: N }),
37
- s === "system" && l,
38
- /* @__PURE__ */ m("div", { className: p(e.message, a && e["with-toolbar"]), "data-appearance": v, "data-id": w, "data-type": s, children: [
39
- s == "system" && /* @__PURE__ */ t(L, { gap: "right", name: u, size: "tiny" }),
40
- d || a ? /* @__PURE__ */ t("div", { className: p(d && e.preview), children: c }) : c,
41
- a && /* @__PURE__ */ t("div", { className: e.toolbar, children: /* @__PURE__ */ t(I, { variant: g.every(S) ? "embedded" : "inline", children: g }) })
33
+ const s = !!o && h === "toolbar" && a !== "system", b = s ? S(o) : [], m = _ ? new Date(_) : void 0, i = m ? /* @__PURE__ */ t("time", { className: e.timestamp, dateTime: m.toISOString(), children: C ?? m.toLocaleString() }) : null;
34
+ return /* @__PURE__ */ n("div", { className: e["message-group"], "data-message-type": a, "data-component": "message", children: [
35
+ r && /* @__PURE__ */ t(I, { accessibleLabel: r, color: f, imageUrl: u, link: w, name: r, role: N }),
36
+ a === "system" && i,
37
+ /* @__PURE__ */ n("div", { className: g(e.message, s && e["with-toolbar"]), "data-appearance": v, "data-id": y, "data-type": a, children: [
38
+ a == "system" && /* @__PURE__ */ t(L, { gap: "right", name: x, size: "tiny" }),
39
+ d || s ? /* @__PURE__ */ t("div", { className: g(d && e.preview), children: c }) : c,
40
+ s && /* @__PURE__ */ t("div", { className: e.toolbar, children: /* @__PURE__ */ t(p, { variant: b.every(j) ? "embedded" : "inline", children: b }) })
42
41
  ] }),
43
- n && /* @__PURE__ */ t("div", { className: e.attachments, children: n }),
44
- s !== "system" && (o && !a ? /* @__PURE__ */ m("div", { className: e.footer, children: [
45
- l,
46
- /* @__PURE__ */ t("div", { className: e.actions, "data-message-actions": !0, children: o })
47
- ] }) : l)
42
+ l && /* @__PURE__ */ t("div", { className: e.attachments, children: l }),
43
+ a !== "system" && (o && !s ? /* @__PURE__ */ n("div", { className: e.footer, children: [
44
+ i,
45
+ /* @__PURE__ */ t(p, { "data-message-actions": !0, variant: "inline", children: o })
46
+ ] }) : i)
48
47
  ] });
49
48
  };
50
49
  export {
51
- G as Message
50
+ F as Message
52
51
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const c=require("react/jsx-runtime"),A=require("classix"),f=require("react"),D=require("../editor/index.cjs"),H=require("../list/index.cjs"),P=require("../tooltip/index.cjs"),q=require("../button/index.cjs"),U=require("../../index-BwfsmdF6.cjs"),C=require("../../content-i-MRPlxK.cjs"),K=require("../message/index.cjs"),N="_messages_15gj2_1",I="_fill_15gj2_22",$="_composer_15gj2_35",M={messages:N,fill:I,composer:$};function F(m,i=!1){const g=f.useRef(i),d=f.useRef(null),a=f.useRef(()=>{});return f.useLayoutEffect(()=>{const e=d.current;if(!e)return;let v=!0,p=e.scrollTop,l;const h=()=>{const o=e.getBoundingClientRect().top,r=Array.from(e.children).find(L=>L instanceof HTMLElement&&L.getBoundingClientRect().bottom>o);l=r?{element:r,offset:r.getBoundingClientRect().top-o}:void 0},_=()=>{if(Math.abs(e.scrollTop-p)<=.5)return!1;const o=Math.max(0,e.scrollHeight-e.clientHeight);return!(p>o&&Math.abs(e.scrollTop-o)<=.5)},s=()=>{if(g.current&&(v=!1),_()&&(v=!1,h()),v)e.scrollTop=e.scrollHeight;else if(l!=null&&l.element.isConnected&&e.contains(l.element)){const r=l.element.getBoundingClientRect().top-e.getBoundingClientRect().top-l.offset;Math.abs(r)>.5&&(e.scrollTop+=r)}p=e.scrollTop,h()};a.current=s;const u=()=>{v=!1,h()},y=()=>{_()&&(v=!1),p=e.scrollTop,h()},E=o=>{o.target===e&&u()},R=o=>{const r=o.target;r instanceof Element&&r.closest('input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(o.key)&&u()},n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),w=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(o=>n==null?void 0:n.observe(o)),s()},x=new MutationObserver(w);return x.observe(e,{childList:!0,subtree:!0,characterData:!0}),w(),e.addEventListener("scroll",y,{passive:!0}),e.addEventListener("wheel",u,{passive:!0}),e.addEventListener("touchmove",u,{passive:!0}),e.addEventListener("pointerdown",E),e.addEventListener("keydown",R),e.addEventListener("load",s,!0),e.addEventListener("error",s,!0),()=>{a.current=()=>{},n==null||n.disconnect(),x.disconnect(),e.removeEventListener("scroll",y),e.removeEventListener("wheel",u),e.removeEventListener("touchmove",u),e.removeEventListener("pointerdown",E),e.removeEventListener("keydown",R),e.removeEventListener("load",s,!0),e.removeEventListener("error",s,!0)}},[]),f.useLayoutEffect(()=>{g.current=i,a.current()},[m,i]),d}const G=({messages:m,editingId:i})=>{var d;const g=F((d=m[m.length-1])==null?void 0:d.id,!!i);return c.jsx(H.List,{"data-message-list":!0,ref:g,tabIndex:0,"data-component":"messagelist",children:m.map(a=>c.jsx("li",{"data-message-editing":a.id===i||void 0,children:c.jsx(K.Message,{...a})},a.id))})},J=({autofocus:m=!0,editing:i,fill:g=!1,files:d,handleUpload:a,inlineImages:e,maxEditorRows:v=5,message:p="",messages:l,minEditorRows:h=1,onChange:_,onFilesChange:s,onInlineImagesChange:u,onSubmit:y,placeholder:E,resizableEditor:R=!1,sending:n,submitLabel:w="Send message",tooltipLabel:x})=>{const[o,r]=f.useState([]),L=d??o,t=i&&l.some(j=>j.id===i.messageId)?i:void 0,[B,T]=f.useState(!1),S=f.useRef(!1),b=!!(t!=null&&t.saving)||B,k=async()=>{if(!(!t||!C.hasEditorContent(t.content)||b||S.current)){S.current=!0,T(!0);try{await t.onSave(t.content)}catch{}finally{S.current=!1,T(!1)}}};return c.jsxs("div",{className:A(M.messages,g&&M.fill),"data-component":"messages",children:[c.jsx(G,{messages:l,editingId:t==null?void 0:t.messageId}),(t||x)&&c.jsx(P.Tooltip,{variant:"static",children:t?t.editingLabel??"Editing message":x}),c.jsx("div",{className:M.composer,children:c.jsx(D.Editor,{autofocus:m,sessionKey:t?`edit:${t.messageId}`:"reply",attachmentsEnabled:!t,controls:t?c.jsxs(U.Controls,{variant:"inline",children:[c.jsx(q.Button,{disabled:b,onClick:t.onCancel,variant:"secondary",children:t.cancelLabel??"Cancel"}),c.jsx(q.Button,{disabled:!C.hasEditorContent(t.content)||b,isLoading:b,onClick:()=>void k(),variant:"primary",children:t.saveLabel??"Save"})]}):void 0,content:(t==null?void 0:t.content)??p,disabled:n||!C.hasEditorContent(p)&&L.length===0&&!(e!=null&&e.length),files:L,inlineImages:e,isSubmitting:t?b:n,maxRows:v,minRows:h,onChange:(t==null?void 0:t.onChange)??_,onFilesChange:j=>{d===void 0&&r(j),s==null||s(j)},onInlineImagesChange:u,onSubmit:t?void 0:y,onUpload:a,placeholder:E,resizable:R?"top":!1,submitLabel:w})})]})};exports.Messages=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const c=require("react/jsx-runtime"),A=require("classix"),f=require("react"),D=require("../editor/index.cjs"),H=require("../list/index.cjs"),P=require("../tooltip/index.cjs"),q=require("../button/index.cjs"),U=require("../../index-C6rfOHaL.cjs"),C=require("../../content-i-MRPlxK.cjs"),K=require("../message/index.cjs"),N="_messages_15gj2_1",I="_fill_15gj2_22",$="_composer_15gj2_35",M={messages:N,fill:I,composer:$};function F(m,i=!1){const g=f.useRef(i),d=f.useRef(null),a=f.useRef(()=>{});return f.useLayoutEffect(()=>{const e=d.current;if(!e)return;let v=!0,p=e.scrollTop,l;const h=()=>{const o=e.getBoundingClientRect().top,r=Array.from(e.children).find(L=>L instanceof HTMLElement&&L.getBoundingClientRect().bottom>o);l=r?{element:r,offset:r.getBoundingClientRect().top-o}:void 0},_=()=>{if(Math.abs(e.scrollTop-p)<=.5)return!1;const o=Math.max(0,e.scrollHeight-e.clientHeight);return!(p>o&&Math.abs(e.scrollTop-o)<=.5)},s=()=>{if(g.current&&(v=!1),_()&&(v=!1,h()),v)e.scrollTop=e.scrollHeight;else if(l!=null&&l.element.isConnected&&e.contains(l.element)){const r=l.element.getBoundingClientRect().top-e.getBoundingClientRect().top-l.offset;Math.abs(r)>.5&&(e.scrollTop+=r)}p=e.scrollTop,h()};a.current=s;const u=()=>{v=!1,h()},y=()=>{_()&&(v=!1),p=e.scrollTop,h()},E=o=>{o.target===e&&u()},R=o=>{const r=o.target;r instanceof Element&&r.closest('input, textarea, select, [contenteditable="true"]')||["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(o.key)&&u()},n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),w=()=>{n==null||n.disconnect(),n==null||n.observe(e),Array.from(e.children).forEach(o=>n==null?void 0:n.observe(o)),s()},x=new MutationObserver(w);return x.observe(e,{childList:!0,subtree:!0,characterData:!0}),w(),e.addEventListener("scroll",y,{passive:!0}),e.addEventListener("wheel",u,{passive:!0}),e.addEventListener("touchmove",u,{passive:!0}),e.addEventListener("pointerdown",E),e.addEventListener("keydown",R),e.addEventListener("load",s,!0),e.addEventListener("error",s,!0),()=>{a.current=()=>{},n==null||n.disconnect(),x.disconnect(),e.removeEventListener("scroll",y),e.removeEventListener("wheel",u),e.removeEventListener("touchmove",u),e.removeEventListener("pointerdown",E),e.removeEventListener("keydown",R),e.removeEventListener("load",s,!0),e.removeEventListener("error",s,!0)}},[]),f.useLayoutEffect(()=>{g.current=i,a.current()},[m,i]),d}const G=({messages:m,editingId:i})=>{var d;const g=F((d=m[m.length-1])==null?void 0:d.id,!!i);return c.jsx(H.List,{"data-message-list":!0,ref:g,tabIndex:0,"data-component":"messagelist",children:m.map(a=>c.jsx("li",{"data-message-editing":a.id===i||void 0,children:c.jsx(K.Message,{...a})},a.id))})},J=({autofocus:m=!0,editing:i,fill:g=!1,files:d,handleUpload:a,inlineImages:e,maxEditorRows:v=5,message:p="",messages:l,minEditorRows:h=1,onChange:_,onFilesChange:s,onInlineImagesChange:u,onSubmit:y,placeholder:E,resizableEditor:R=!1,sending:n,submitLabel:w="Send message",tooltipLabel:x})=>{const[o,r]=f.useState([]),L=d??o,t=i&&l.some(j=>j.id===i.messageId)?i:void 0,[B,T]=f.useState(!1),S=f.useRef(!1),b=!!(t!=null&&t.saving)||B,k=async()=>{if(!(!t||!C.hasEditorContent(t.content)||b||S.current)){S.current=!0,T(!0);try{await t.onSave(t.content)}catch{}finally{S.current=!1,T(!1)}}};return c.jsxs("div",{className:A(M.messages,g&&M.fill),"data-component":"messages",children:[c.jsx(G,{messages:l,editingId:t==null?void 0:t.messageId}),(t||x)&&c.jsx(P.Tooltip,{variant:"static",children:t?t.editingLabel??"Editing message":x}),c.jsx("div",{className:M.composer,children:c.jsx(D.Editor,{autofocus:m,sessionKey:t?`edit:${t.messageId}`:"reply",attachmentsEnabled:!t,controls:t?c.jsxs(U.Controls,{variant:"inline",children:[c.jsx(q.Button,{disabled:b,onClick:t.onCancel,variant:"secondary",children:t.cancelLabel??"Cancel"}),c.jsx(q.Button,{disabled:!C.hasEditorContent(t.content)||b,isLoading:b,onClick:()=>void k(),variant:"primary",children:t.saveLabel??"Save"})]}):void 0,content:(t==null?void 0:t.content)??p,disabled:n||!C.hasEditorContent(p)&&L.length===0&&!(e!=null&&e.length),files:L,inlineImages:e,isSubmitting:t?b:n,maxRows:v,minRows:h,onChange:(t==null?void 0:t.onChange)??_,onFilesChange:j=>{d===void 0&&r(j),s==null||s(j)},onInlineImagesChange:u,onSubmit:t?void 0:y,onUpload:a,placeholder:E,resizable:R?"top":!1,submitLabel:w})})]})};exports.Messages=J;
@@ -5,7 +5,7 @@ import { Editor as K } from "../editor/index.js";
5
5
  import { List as N } from "../list/index.js";
6
6
  import { Tooltip as q } from "../tooltip/index.js";
7
7
  import { Button as D } from "../button/index.js";
8
- import { C as I } from "../../index-acMNM3VJ.js";
8
+ import { C as I } from "../../index-BOIHwDwc.js";
9
9
  import { h as x } from "../../content-Duav5qcc.js";
10
10
  import { Message as $ } from "../message/index.js";
11
11
  import '../../assets/index16.css';const F = "_messages_15gj2_1", G = "_fill_15gj2_22", J = "_composer_15gj2_35", _ = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-BIdcCH-v.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-BSfBrPs3.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
@@ -1,7 +1,7 @@
1
1
  import { jsx as c, jsxs as p } from "react/jsx-runtime";
2
2
  import r from "classix";
3
3
  import { useState as b } from "react";
4
- import { i as f } from "../../icons-DVeBguFb.js";
4
+ import { i as f } from "../../icons-DtAsxlep.js";
5
5
  import '../../assets/index15.css';const v = "_nav_1jlcq_3", j = "_label_1jlcq_9", u = "_item_1jlcq_17", g = "_actions_1jlcq_36", q = "_highlighted_1jlcq_60", w = "_horizontal_1jlcq_64", N = "_sidebar_1jlcq_74", k = "_stacked_1jlcq_124", x = "_tabs_1jlcq_141", z = "_pills_1jlcq_161", t = {
6
6
  nav: v,
7
7
  label: j,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index9.css');const a=require("react/jsx-runtime"),b=require("react"),h=require("../button/index.cjs"),z=require("../checkbox/index.cjs"),H=require("../chip/index.cjs"),P=require("../collapsible/index.cjs"),A=require("../../index-BwfsmdF6.cjs"),E=require("../dialog/index.cjs"),J=require("../header/index.cjs"),K=require("../../index-DEQcFR32.cjs"),Q=require("../loading/index.cjs"),S="_search_1r1ik_3",U="_controls_1r1ik_15",V="_actions_1r1ik_36",W="_chips_1r1ik_56",X="_radio_1r1ik_122",n={search:S,controls:U,actions:V,"loading-status":"_loading-status_1r1ik_46",chips:W,"filter-dialog":"_filter-dialog_1r1ik_63","filter-groups":"_filter-groups_1r1ik_68","filter-group":"_filter-group_1r1ik_68","filter-option":"_filter-option_1r1ik_104","option-copy":"_option-copy_1r1ik_110",radio:X,"collapsible-options":"_collapsible-options_1r1ik_145"},Y=({filterButtonLabel:j="Filters",filterDialogColumns:f=1,filterDialogTitle:M="Filters",filterGroups:t=[],isLoading:d,loadingLabel:$="Loading results",onChange:w,onSelectedFiltersChange:l,removeFilterLabel:O=o=>`Remove ${o.label} filter`,resetLabel:v="Reset",searchLabel:B="Search",searchPlaceholder:D="Search",selectedFilters:r=[],showResultsLabel:R="Show results",value:I=""})=>{const o=b.useId(),[u,_]=b.useState(!1),T=b.useMemo(()=>new Map(t.flatMap(s=>{var i;return[...s.options,...((i=s.collapsible)==null?void 0:i.options)??[]]}).map(s=>[s.value,s])),[t]),p=r.flatMap(s=>{const i=T.get(s);return i?[i]:[]}),m=(s,i,e)=>{var q;if(!l)return;const x=new Set([...(e==null?void 0:e.options.map(c=>c.value))??[],...((q=e==null?void 0:e.collapsible)==null?void 0:q.options.map(c=>c.value))??[]]),N=r.filter(c=>!x.has(c));if(i&&(e==null?void 0:e.defaultValue)===s){l(N);return}l(i?(e==null?void 0:e.control)==="radio"||(e==null?void 0:e.selectionMode)==="single"?[...N,s]:[...new Set([...r,s])]:r.filter(c=>c!==s))},k=(s,i)=>{var e;return r.includes(s)||i.defaultValue===s&&![...i.options,...((e=i.collapsible)==null?void 0:e.options)??[]].some(x=>r.includes(x.value))},y=(s,i)=>a.jsx("div",{className:n["filter-option"],"data-component":"renderfilter",children:i.control==="radio"?a.jsxs("label",{className:n.radio,children:[a.jsx("input",{checked:k(s.value,i),name:`${o}-filter-${i.label??"group"}`,onChange:e=>m(s.value,e.target.checked,i),type:"radio"}),a.jsxs("span",{className:n["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]})]}):a.jsx(z.Checkbox,{checked:k(s.value,i),label:a.jsxs("span",{className:n["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]}),onChange:e=>m(s.value,e.target.checked,i)})},s.value);return a.jsxs("div",{className:n.search,"data-component":"search",children:[a.jsxs("div",{className:n.controls,"data-with-filters":t.length>0||void 0,children:[a.jsx(K.Input,{"aria-label":B,icon:"MagnifyingGlass",onChange:s=>w(s.target.value),placeholder:D,type:"search",value:I}),(t.length>0||d!==void 0)&&a.jsxs("div",{className:n.actions,children:[t.length>0&&a.jsx(h.Button,{"aria-expanded":u,"aria-haspopup":"dialog",badge:p.length,icon:"Funnel",onClick:()=>_(!0),variant:"tertiary",children:j}),d!==void 0&&a.jsx("div",{"aria-hidden":!d,"aria-label":$,className:n["loading-status"],role:"status",children:d&&a.jsx(Q.Loading,{size:"small"})})]})]}),p.length>0&&a.jsxs("div",{"aria-label":j,className:n.chips,children:[p.map(s=>a.jsx(H.Chip,{accessibleLabel:O(s),label:s.label,onDelete:()=>m(s.value,!1)},s.value)),a.jsx(h.Button,{onClick:()=>l==null?void 0:l([]),variant:"tertiary",children:v})]}),u&&a.jsx(E.Dialog,{"aria-labelledby":o,className:n["filter-dialog"],controls:a.jsxs(A.Controls,{children:[a.jsx(h.Button,{onClick:()=>{l==null||l([]),_(!1)},children:v}),a.jsx(h.Button,{onClick:()=>_(!1),variant:"primary",children:R})]}),header:a.jsx(J.Header,{children:a.jsx("h2",{id:o,children:M})}),open:!0,setOpen:_,children:a.jsx("div",{className:n["filter-groups"],"data-columns":f,children:t.map((s,i)=>a.jsxs("section",{"aria-labelledby":s.label?`${o}-${i}`:void 0,className:n["filter-group"],"data-column-span":s.columnSpan??1,role:s.control==="radio"?"radiogroup":"group",children:[s.label&&a.jsx("h3",{id:`${o}-${i}`,children:s.label}),s.options.map(e=>y(e,s)),s.collapsible&&a.jsx(P.Collapsible,{summary:s.collapsible.label,children:a.jsx("div",{className:n["collapsible-options"],children:s.collapsible.options.map(e=>y(e,s))})})]},s.label??i))})})]})};exports.Search=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index9.css');const a=require("react/jsx-runtime"),b=require("react"),h=require("../button/index.cjs"),z=require("../checkbox/index.cjs"),H=require("../chip/index.cjs"),P=require("../collapsible/index.cjs"),A=require("../../index-C6rfOHaL.cjs"),E=require("../dialog/index.cjs"),J=require("../header/index.cjs"),K=require("../../index-D3gtJMYv.cjs"),Q=require("../loading/index.cjs"),S="_search_1r1ik_3",U="_controls_1r1ik_15",V="_actions_1r1ik_36",W="_chips_1r1ik_56",X="_radio_1r1ik_122",n={search:S,controls:U,actions:V,"loading-status":"_loading-status_1r1ik_46",chips:W,"filter-dialog":"_filter-dialog_1r1ik_63","filter-groups":"_filter-groups_1r1ik_68","filter-group":"_filter-group_1r1ik_68","filter-option":"_filter-option_1r1ik_104","option-copy":"_option-copy_1r1ik_110",radio:X,"collapsible-options":"_collapsible-options_1r1ik_145"},Y=({filterButtonLabel:j="Filters",filterDialogColumns:f=1,filterDialogTitle:M="Filters",filterGroups:t=[],isLoading:d,loadingLabel:$="Loading results",onChange:w,onSelectedFiltersChange:l,removeFilterLabel:O=o=>`Remove ${o.label} filter`,resetLabel:v="Reset",searchLabel:B="Search",searchPlaceholder:D="Search",selectedFilters:r=[],showResultsLabel:R="Show results",value:I=""})=>{const o=b.useId(),[u,_]=b.useState(!1),T=b.useMemo(()=>new Map(t.flatMap(s=>{var i;return[...s.options,...((i=s.collapsible)==null?void 0:i.options)??[]]}).map(s=>[s.value,s])),[t]),p=r.flatMap(s=>{const i=T.get(s);return i?[i]:[]}),m=(s,i,e)=>{var q;if(!l)return;const x=new Set([...(e==null?void 0:e.options.map(c=>c.value))??[],...((q=e==null?void 0:e.collapsible)==null?void 0:q.options.map(c=>c.value))??[]]),N=r.filter(c=>!x.has(c));if(i&&(e==null?void 0:e.defaultValue)===s){l(N);return}l(i?(e==null?void 0:e.control)==="radio"||(e==null?void 0:e.selectionMode)==="single"?[...N,s]:[...new Set([...r,s])]:r.filter(c=>c!==s))},k=(s,i)=>{var e;return r.includes(s)||i.defaultValue===s&&![...i.options,...((e=i.collapsible)==null?void 0:e.options)??[]].some(x=>r.includes(x.value))},y=(s,i)=>a.jsx("div",{className:n["filter-option"],"data-component":"renderfilter",children:i.control==="radio"?a.jsxs("label",{className:n.radio,children:[a.jsx("input",{checked:k(s.value,i),name:`${o}-filter-${i.label??"group"}`,onChange:e=>m(s.value,e.target.checked,i),type:"radio"}),a.jsxs("span",{className:n["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]})]}):a.jsx(z.Checkbox,{checked:k(s.value,i),label:a.jsxs("span",{className:n["option-copy"],children:[s.label,s.description&&a.jsx("sub",{children:s.description})]}),onChange:e=>m(s.value,e.target.checked,i)})},s.value);return a.jsxs("div",{className:n.search,"data-component":"search",children:[a.jsxs("div",{className:n.controls,"data-with-filters":t.length>0||void 0,children:[a.jsx(K.Input,{"aria-label":B,icon:"MagnifyingGlass",onChange:s=>w(s.target.value),placeholder:D,type:"search",value:I}),(t.length>0||d!==void 0)&&a.jsxs("div",{className:n.actions,children:[t.length>0&&a.jsx(h.Button,{"aria-expanded":u,"aria-haspopup":"dialog",badge:p.length,icon:"Funnel",onClick:()=>_(!0),variant:"tertiary",children:j}),d!==void 0&&a.jsx("div",{"aria-hidden":!d,"aria-label":$,className:n["loading-status"],role:"status",children:d&&a.jsx(Q.Loading,{size:"small"})})]})]}),p.length>0&&a.jsxs("div",{"aria-label":j,className:n.chips,children:[p.map(s=>a.jsx(H.Chip,{accessibleLabel:O(s),label:s.label,onDelete:()=>m(s.value,!1)},s.value)),a.jsx(h.Button,{onClick:()=>l==null?void 0:l([]),variant:"tertiary",children:v})]}),u&&a.jsx(E.Dialog,{"aria-labelledby":o,className:n["filter-dialog"],controls:a.jsxs(A.Controls,{children:[a.jsx(h.Button,{onClick:()=>{l==null||l([]),_(!1)},children:v}),a.jsx(h.Button,{onClick:()=>_(!1),variant:"primary",children:R})]}),header:a.jsx(J.Header,{children:a.jsx("h2",{id:o,children:M})}),open:!0,setOpen:_,children:a.jsx("div",{className:n["filter-groups"],"data-columns":f,children:t.map((s,i)=>a.jsxs("section",{"aria-labelledby":s.label?`${o}-${i}`:void 0,className:n["filter-group"],"data-column-span":s.columnSpan??1,role:s.control==="radio"?"radiogroup":"group",children:[s.label&&a.jsx("h3",{id:`${o}-${i}`,children:s.label}),s.options.map(e=>y(e,s)),s.collapsible&&a.jsx(P.Collapsible,{summary:s.collapsible.label,children:a.jsx("div",{className:n["collapsible-options"],children:s.collapsible.options.map(e=>y(e,s))})})]},s.label??i))})})]})};exports.Search=Y;
@@ -4,10 +4,10 @@ import { Button as p } from "../button/index.js";
4
4
  import { Checkbox as C } from "../checkbox/index.js";
5
5
  import { Chip as E } from "../chip/index.js";
6
6
  import { Collapsible as J } from "../collapsible/index.js";
7
- import { C as K } from "../../index-acMNM3VJ.js";
7
+ import { C as K } from "../../index-BOIHwDwc.js";
8
8
  import { Dialog as P } from "../dialog/index.js";
9
9
  import { Header as Q } from "../header/index.js";
10
- import { I as U } from "../../index-6TyCExT0.js";
10
+ import { I as U } from "../../index-DpkXKD1Z.js";
11
11
  import { Loading as V } from "../loading/index.js";
12
12
  import '../../assets/index9.css';const W = "_search_1r1ik_3", X = "_controls_1r1ik_15", Y = "_actions_1r1ik_36", Z = "_chips_1r1ik_56", L = "_radio_1r1ik_122", o = {
13
13
  search: W,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("../../icons-BIdcCH-v.cjs");require("../label/index.cjs");const e=require("../../index-BQoXmNo3.cjs");require("../../use-touched-Bq5Gjbpz.cjs");exports.Select=e.Select;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("../../icons-BSfBrPs3.cjs");require("../label/index.cjs");const e=require("../../index-Ct84TXGv.cjs");require("../../use-touched-Bq5Gjbpz.cjs");exports.Select=e.Select;
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "classix";
3
- import "../../icons-DVeBguFb.js";
3
+ import "../../icons-DtAsxlep.js";
4
4
  import "../label/index.js";
5
- import { S } from "../../index-GPsHvb4d.js";
5
+ import { S } from "../../index-CWeknFzO.js";
6
6
  import "../../use-touched-B999bBr8.js";
7
7
  export {
8
8
  S as Select
@@ -0,0 +1 @@
1
+ "use strict";const h={ArrowBendUpLeft:{regular:'<path d="M232,200a8,8,0,0,1-16,0,88.1,88.1,0,0,0-88-88H51.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,85.66,61.66L51.31,96H128A104.11,104.11,0,0,1,232,200Z"/>'},ArrowDown:{regular:'<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"/>'},ArrowRight:{regular:'<path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"/>'},ArrowsClockwise:{regular:'<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>'},ArrowsDownUp:{regular:'<path d="M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"/>'},ArrowsOut:{regular:'<path d="M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"/>'},ArrowSquareOut:{regular:'<path d="M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"/>'},ArrowUp:{regular:'<path d="M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"/>'},Bell:{regular:'<path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"/>',fill:'<path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"/>'},BuildingApartment:{fill:'<path d="M240,208h-8V72a8,8,0,0,0-8-8H184V40a8,8,0,0,0-8-8H80a8,8,0,0,0-8,8V96H32a8,8,0,0,0-8,8V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM80,176H64a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm0-32H64a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm64,64H112V168h32Zm-8-64H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H120a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm56,96H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H176a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Z"/>',regular:'<path d="M240,208h-8V72a8,8,0,0,0-8-8H184V40a8,8,0,0,0-8-8H80a8,8,0,0,0-8,8V96H32a8,8,0,0,0-8,8V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM40,112H80a8,8,0,0,0,8-8V48h80V72a8,8,0,0,0,8,8h40V208H152V168a8,8,0,0,0-8-8H112a8,8,0,0,0-8,8v40H40Zm96,96H120V176h16ZM112,72a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,72Zm0,32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,104Zm56,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,104ZM88,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H80A8,8,0,0,1,88,136Zm0,32a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H80A8,8,0,0,1,88,168Zm24-32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H120A8,8,0,0,1,112,136Zm56,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,168Z"/>'},CaretDown:{regular:'<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"/>'},CaretLeft:{regular:'<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"/>'},CaretRight:{regular:'<path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"/>'},CaretUp:{regular:'<path d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"/>'},CaretUpDown:{regular:'<path d="M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"/>'},ChatsCircle:{fill:'<path d="M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86Zm-16.25,1.47L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z"/>'},Check:{regular:'<path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"/>'},CheckCircle:{fill:'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"/>'},ClipboardText:{fill:'<path d="M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"/>',regular:'<path d="M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"/>'},Clock:{fill:'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"/>'},Confetti:{fill:'<path d="M111.49,52.63a15.8,15.8,0,0,0-26,5.77L33,202.78A15.83,15.83,0,0,0,47.76,224a16,16,0,0,0,5.46-1l144.37-52.5a15.8,15.8,0,0,0,5.78-26ZM65.14,161.13l19.2-52.79,63.32,63.32-52.8,19.2ZM160,72a37.8,37.8,0,0,1,3.84-15.58C169.14,45.83,179.14,40,192,40c6.7,0,11-2.29,13.65-7.21A22,22,0,0,0,208,23.94,8,8,0,0,1,224,24c0,12.86-8.52,32-32,32-6.7,0-11,2.29-13.65,7.21A22,22,0,0,0,176,72.06,8,8,0,0,1,160,72ZM136,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm101.66,82.34a8,8,0,1,1-11.32,11.31l-16-16a8,8,0,0,1,11.32-11.32Zm4.87-42.75-24,8a8,8,0,0,1-5.06-15.18l24-8a8,8,0,0,1,5.06,15.18Z"/>'},Copy:{fill:'<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"/>',regular:'<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>'},DotsThreeVertical:{regular:'<path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"/>'},DownloadSimple:{regular:'<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"/>'},Envelope:{fill:'<path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"/>'},FileDoc:{fill:'<path d="M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"/>'},FilePdf:{fill:'<path d="M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"/>'},FilePlus:{fill:'<path d="M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,160H136v16a8,8,0,0,1-16,0V160H104a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16a8,8,0,0,1,0,16Zm0-72V43.31L196.69,88Z"/>'},FilePpt:{fill:'<path d="M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"/>'},FileText:{fill:'<path d="M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"/>'},FileXls:{fill:'<path d="M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"/>'},Flag:{fill:'<path d="M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z"/>'},FloppyDisk:{regular:'<path d="M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"/>'},Folder:{fill:'<path d="M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"/>'},FolderOpen:{fill:'<path d="M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z"/>'},Funnel:{fill:'<path d="M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"/>'},Gear:{fill:'<path d="M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"/>',regular:'<path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"/>'},HandCoins:{fill:'<path d="M128.09,57.38a36,36,0,0,1,55.17-27.82,4,4,0,0,1-.56,7A52.06,52.06,0,0,0,152,84c0,1.17,0,2.34.12,3.49a4,4,0,0,1-6,3.76A36,36,0,0,1,128.09,57.38ZM240,160.61a24.47,24.47,0,0,1-13.6,22l-.44.2-38.83,16.54a6.94,6.94,0,0,1-1.19.4l-64,16A7.93,7.93,0,0,1,120,216H16A16,16,0,0,1,0,200V160a16,16,0,0,1,16-16H44.69l22.62-22.63A31.82,31.82,0,0,1,89.94,112H140a28,28,0,0,1,27.25,34.45l41.84-9.62A24.61,24.61,0,0,1,240,160.61Zm-16,0a8.61,8.61,0,0,0-10.87-8.3l-.31.08-67,15.41a8.32,8.32,0,0,1-1.79.2H112a8,8,0,0,1,0-16h28a12,12,0,0,0,0-24H89.94a15.86,15.86,0,0,0-11.31,4.69L56,155.31V200h63l62.43-15.61,38-16.18A8.56,8.56,0,0,0,224,160.61ZM168,84a36,36,0,1,0,36-36A36,36,0,0,0,168,84Z"/>'},House:{fill:'<path d="M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"/>',regular:'<path d="M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"/>'},Image:{fill:'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"/>'},Info:{fill:'<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"/>'},Link:{regular:'<path d="M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"/>'},LinkBreak:{regular:'<path d="M198.63,57.37a32,32,0,0,0-45.19-.06L141.79,69.52a8,8,0,0,1-11.58-11l11.72-12.29a1.59,1.59,0,0,1,.13-.13,48,48,0,0,1,67.88,67.88,1.59,1.59,0,0,1-.13.13l-12.29,11.72a8,8,0,0,1-11-11.58l12.21-11.65A32,32,0,0,0,198.63,57.37ZM114.21,186.48l-11.65,12.21a32,32,0,0,1-45.25-45.25l12.21-11.65a8,8,0,0,0-11-11.58L46.19,141.93a1.59,1.59,0,0,0-.13.13,48,48,0,0,0,67.88,67.88,1.59,1.59,0,0,0,.13-.13l11.72-12.29a8,8,0,1,0-11.58-11ZM216,152H192a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16ZM40,104H64a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm120,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V192A8,8,0,0,0,160,184ZM96,72a8,8,0,0,0,8-8V40a8,8,0,0,0-16,0V64A8,8,0,0,0,96,72Z"/>'},List:{regular:'<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"/>'},ListBullets:{regular:'<path d="M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"/>'},LockKey:{fill:'<path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-72,78.63V184a8,8,0,0,1-16,0V158.63a24,24,0,1,1,16,0ZM160,80H96V56a32,32,0,0,1,64,0Z"/>'},MagnifyingGlass:{regular:'<path d="M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>'},MapPin:{fill:'<path d="M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"/>'},Megaphone:{fill:'<path d="M200,72H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48,48,0,0,0,200,72ZM179,207.89l0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"/>',regular:'<path d="M248,120a48.05,48.05,0,0,0-48-48H160.2c-2.91-.17-53.62-3.74-101.91-44.24A16,16,0,0,0,32,40V200a16,16,0,0,0,26.29,12.25c37.77-31.68,77-40.76,93.71-43.3v31.72A16,16,0,0,0,159.12,214l11,7.33A16,16,0,0,0,194.5,212l11.77-44.36A48.07,48.07,0,0,0,248,120ZM48,199.93V40h0c42.81,35.91,86.63,45,104,47.24v65.48C134.65,155,90.84,164.07,48,199.93Zm131,8,0,.11-11-7.33V168h21.6ZM200,152H168V88h32a32,32,0,1,1,0,64Z"/>'},NotePencil:{fill:'<path d="M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"/>'},Paperclip:{regular:'<path d="M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"/>'},PaperPlaneTilt:{fill:'<path d="M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"/>'},Pencil:{fill:'<path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"/>'},PenNib:{fill:'<path d="M243.31,81.36,174.63,12.68a16,16,0,0,0-22.63,0L123.56,41.12l-58,21.76A16,16,0,0,0,55.36,75.23L34.59,199.83a4,4,0,0,0,6.77,3.49l57-57a23.85,23.85,0,0,1-2.29-12.08,24,24,0,1,1,13.6,23.4l-57,57a4,4,0,0,0,3.49,6.77l124.61-20.77a16,16,0,0,0,12.35-10.16l21.77-58.07L243.31,104a16,16,0,0,0,0-22.63ZM208,116.68,139.32,48l24-24L232,92.68Z"/>'},Phone:{fill:'<path d="M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"/>',regular:'<path d="M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"/>'},Plus:{regular:'<path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>'},PushPin:{fill:'<path d="M235.33,104l-53.47,53.65c4.56,12.67,6.45,33.89-13.19,60A15.93,15.93,0,0,1,157,224c-.38,0-.75,0-1.13,0a16,16,0,0,1-11.32-4.69L96.29,171,53.66,213.66a8,8,0,0,1-11.32-11.32L85,159.71l-48.3-48.3A16,16,0,0,1,38,87.63c25.42-20.51,49.75-16.48,60.4-13.14L152,20.7a16,16,0,0,1,22.63,0l60.69,60.68A16,16,0,0,1,235.33,104Z"/>'},PushPinSimpleSlash:{fill:'<path d="M79.25,38.69a4,4,0,0,1,3-6.69H192a8,8,0,0,1,8,8.53A8.17,8.17,0,0,1,191.73,48h-6.19L206.7,167.91a4,4,0,0,1-6.9,3.39ZM213.92,210.62l-160-176A8,8,0,1,0,42.08,45.38L66.24,72,49.29,168H40a8,8,0,0,0,0,16h80v56a8,8,0,0,0,16,0V184h32.1l34,37.38a8,8,0,1,0,11.84-10.76Z"/>'},SidebarSimple:{fill:'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H88V56H216V200Z"/>',regular:'<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"/>'},Signature:{regular:'<path d="M232,168H63.86c2.66-5.24,5.33-10.63,8-16.11,15,1.65,32.58-8.78,52.66-31.14,5,13.46,14.45,30.93,30.58,31.25,9.06.18,18.11-5.2,27.42-16.37C189.31,143.75,203.3,152,232,152a8,8,0,0,0,0-16c-30.43,0-39.43-10.45-40-16.11a7.67,7.67,0,0,0-5.46-7.75,8.14,8.14,0,0,0-9.25,3.49c-12.07,18.54-19.38,20.43-21.92,20.37-8.26-.16-16.66-19.52-19.54-33.42a8,8,0,0,0-14.09-3.37C101.54,124.55,88,133.08,79.57,135.29,88.06,116.42,94.4,99.85,98.46,85.9c6.82-23.44,7.32-39.83,1.51-50.1-3-5.38-9.34-11.8-22.06-11.8C61.85,24,49.18,39.18,43.14,65.65c-3.59,15.71-4.18,33.21-1.62,48s7.87,25.55,15.59,31.94c-3.73,7.72-7.53,15.26-11.23,22.41H24a8,8,0,0,0,0,16H37.41c-11.32,21-20.12,35.64-20.26,35.88a8,8,0,1,0,13.71,8.24c.15-.26,11.27-18.79,24.7-44.12H232a8,8,0,0,0,0-16ZM58.74,69.21C62.72,51.74,70.43,40,77.91,40c5.33,0,7.1,1.86,8.13,3.67,3,5.33,6.52,24.19-21.66,86.39C56.12,118.78,53.31,93,58.74,69.21Z"/>'},SlidersHorizontal:{fill:'<path d="M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z"/>'},Tag:{fill:'<path d="M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"/>'},TextB:{regular:'<path d="M178.48,115.7A44,44,0,0,0,148,40H80a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM88,56h60a28,28,0,0,1,0,56H88Zm72,136H88V128h72a32,32,0,0,1,0,64Z"/>'},TextItalic:{regular:'<path d="M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z"/>'},TextUnderline:{regular:'<path d="M200,224a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,224Zm-72-24a64.07,64.07,0,0,0,64-64V56a8,8,0,0,0-16,0v80a48,48,0,0,1-96,0V56a8,8,0,0,0-16,0v80A64.07,64.07,0,0,0,128,200Z"/>'},ThumbsUp:{regular:'<path d="M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"/>',fill:'<path d="M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"/>'},Trash:{fill:'<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"/>'},UploadSimple:{regular:'<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"/>'},User:{fill:'<path d="M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"/>',regular:'<path d="M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"/>'},UserMinus:{fill:'<path d="M198.13,194.85A8,8,0,0,1,192,208H24a8,8,0,0,1-6.12-13.15c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM248,128H200a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z"/>'},UserPlus:{fill:'<path d="M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"/>'},Users:{fill:'<path d="M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"/>',regular:'<path d="M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"/>'},Warning:{fill:'<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"/>'},X:{regular:'<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>'}};Object.freeze(Object.keys(h));function r(a){return a.replace(/&/gu,"&amp;").replace(/"/gu,"&quot;").replace(/'/gu,"&apos;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;")}function A(a,l="currentColor"){const H=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="${r(l)}">${a}</svg>`;return`url("data:image/svg+xml,${encodeURIComponent(H)}")`}function t(a,l,H){const Z=h[a];if(!Z)return A(String(Z),l);const V=Object.values(Z)[0],M=H&&Z[H]||V;return A(M,l)}exports.iconSVG=t;
@@ -14,6 +14,9 @@ const h = {
14
14
  ArrowsDownUp: {
15
15
  regular: '<path d="M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"/>'
16
16
  },
17
+ ArrowsOut: {
18
+ regular: '<path d="M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"/>'
19
+ },
17
20
  ArrowSquareOut: {
18
21
  regular: '<path d="M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"/>'
19
22
  },
@@ -1 +1 @@
1
- "use strict";require('./assets/index35.css');const e=require("react/jsx-runtime"),a=require("react"),A=require("./components/avatar/index.cjs"),N=require("./components/button/index.cjs"),O=require("./components/group/index.cjs"),L=require("./components/icon/index.cjs"),U=require("./index-BwfsmdF6.cjs"),G=require("./components/editor/index.cjs"),H=require("./content-i-MRPlxK.cjs"),K="_comment_1mvf0_1",T="_meta_1mvf0_12",V="_body_1mvf0_23",$="_notice_1mvf0_30",F="_toggle_1mvf0_46",J="_composer_1mvf0_51",M="_replies_1mvf0_73",Q="_text_1mvf0_82",s={comment:K,meta:T,body:V,notice:$,toggle:F,composer:J,replies:M,text:Q},I=({author:d,label:_,placeholder:j,submitLabel:h,cancelLabel:p,initialContent:v="",autofocus:y=!1,sending:b=!1,onCancel:o,onSubmit:w,onPublished:i})=>{const[c,n]=a.useState(v),[u,f]=a.useState(!1),l=H.hasEditorContent(c,{allowImages:!1}),r=b||u,g=async()=>{if(!(!l||r)){f(!0);try{const t=await w(c);t!==!1&&(n(""),typeof t=="string"&&(i==null||i(t)))}catch{return}finally{f(!1)}}};return e.jsxs("div",{"aria-label":_,className:s.composer,"data-active":l,role:"group","data-component":"commentcomposer",children:[d&&e.jsx("header",{children:e.jsx(A.Avatar,{...d})}),e.jsx(G.Editor,{autofocus:y,content:c,isSubmitting:r,maxRows:10,minRows:1,onChange:n,placeholder:j,variant:"embedded"}),e.jsx("footer",{children:e.jsxs(U.Controls,{variant:"inline",children:[(l||o)&&e.jsx(N.Button,{disabled:r,onClick:()=>{n(""),o==null||o()},variant:"secondary",children:p}),e.jsx(N.Button,{disabled:!l||r,isLoading:r,onClick:()=>void g(),variant:"primary",children:h})]})})]})},B=({id:d,author:_,authorImageUrl:j,authorColor:h="3",timestamp:p,timestampText:v,content:y,actions:b,notice:o,locked:w,reactions:i,editor:c,replies:n=[],replyComposer:u,replyLabel:f="Reply",showRepliesLabel:l="Show replies",hideRepliesLabel:r="Hide replies",onPublished:g})=>{const[t,z]=a.useState(!1),[S,D]=a.useState(!1),R=a.useId(),q=a.useRef(null);a.useEffect(()=>{var x,k,E;t&&S&&((x=q.current)==null||x.scrollIntoView({behavior:"smooth",block:"center"}),(E=(k=q.current)==null?void 0:k.querySelector('[contenteditable="true"]'))==null||E.focus({preventScroll:!0}))},[t,S]);const m=p?new Date(p):void 0,C=n.length>0||!!u;return e.jsxs("div",{"data-comment-id":d,"data-component":"comment",children:[e.jsxs("article",{className:s.comment,children:[e.jsxs("header",{children:[e.jsxs(O.Group,{className:s.meta,gap:"small",justify:"between",layout:"row",children:[e.jsx(A.Avatar,{accessibleLabel:_,color:h,imageUrl:j,name:_}),e.jsxs("sub",{children:[w&&e.jsx(L.Icon,{gap:"right",name:"LockKey",size:"small"}),e.jsx("time",{dateTime:m==null?void 0:m.toISOString(),children:v??(m==null?void 0:m.toLocaleString())})]})]}),b]}),e.jsxs("div",{className:s.body,children:[o&&e.jsx("p",{className:s.notice,children:o}),c?e.jsx(I,{...c}):e.jsx("div",{className:s.text,"data-content":"user-generated",children:y})]}),!c&&(i||C)&&e.jsxs("footer",{children:[i,C&&e.jsxs(N.Button,{"aria-controls":R,"aria-expanded":t,className:s.toggle,onClick:()=>{z(!t),D(!t&&n.length===0)},variant:"tertiary",children:[t?r:n.length?l:f,(t||n.length>0)&&e.jsx(L.Icon,{name:t?"CaretUp":"CaretDown",size:"small"})]})]})]}),t&&C&&e.jsxs("ul",{className:s.replies,id:R,children:[n.map(x=>e.jsx("li",{children:e.jsx(B,{...x,onPublished:g})},x.id)),u&&e.jsx("li",{"data-reply-composer":d,ref:q,children:e.jsx(I,{...u,autofocus:S,onPublished:g})})]})]})};exports.Comment=B;exports.CommentComposer=I;
1
+ "use strict";require('./assets/index35.css');const e=require("react/jsx-runtime"),a=require("react"),A=require("./components/avatar/index.cjs"),N=require("./components/button/index.cjs"),O=require("./components/group/index.cjs"),L=require("./components/icon/index.cjs"),U=require("./index-C6rfOHaL.cjs"),G=require("./components/editor/index.cjs"),H=require("./content-i-MRPlxK.cjs"),K="_comment_1mvf0_1",T="_meta_1mvf0_12",V="_body_1mvf0_23",$="_notice_1mvf0_30",F="_toggle_1mvf0_46",J="_composer_1mvf0_51",M="_replies_1mvf0_73",Q="_text_1mvf0_82",s={comment:K,meta:T,body:V,notice:$,toggle:F,composer:J,replies:M,text:Q},I=({author:d,label:_,placeholder:j,submitLabel:h,cancelLabel:p,initialContent:v="",autofocus:y=!1,sending:b=!1,onCancel:o,onSubmit:w,onPublished:i})=>{const[c,n]=a.useState(v),[u,f]=a.useState(!1),l=H.hasEditorContent(c,{allowImages:!1}),r=b||u,g=async()=>{if(!(!l||r)){f(!0);try{const t=await w(c);t!==!1&&(n(""),typeof t=="string"&&(i==null||i(t)))}catch{return}finally{f(!1)}}};return e.jsxs("div",{"aria-label":_,className:s.composer,"data-active":l,role:"group","data-component":"commentcomposer",children:[d&&e.jsx("header",{children:e.jsx(A.Avatar,{...d})}),e.jsx(G.Editor,{autofocus:y,content:c,isSubmitting:r,maxRows:10,minRows:1,onChange:n,placeholder:j,variant:"embedded"}),e.jsx("footer",{children:e.jsxs(U.Controls,{variant:"inline",children:[(l||o)&&e.jsx(N.Button,{disabled:r,onClick:()=>{n(""),o==null||o()},variant:"secondary",children:p}),e.jsx(N.Button,{disabled:!l||r,isLoading:r,onClick:()=>void g(),variant:"primary",children:h})]})})]})},B=({id:d,author:_,authorImageUrl:j,authorColor:h="3",timestamp:p,timestampText:v,content:y,actions:b,notice:o,locked:w,reactions:i,editor:c,replies:n=[],replyComposer:u,replyLabel:f="Reply",showRepliesLabel:l="Show replies",hideRepliesLabel:r="Hide replies",onPublished:g})=>{const[t,z]=a.useState(!1),[S,D]=a.useState(!1),R=a.useId(),q=a.useRef(null);a.useEffect(()=>{var x,k,E;t&&S&&((x=q.current)==null||x.scrollIntoView({behavior:"smooth",block:"center"}),(E=(k=q.current)==null?void 0:k.querySelector('[contenteditable="true"]'))==null||E.focus({preventScroll:!0}))},[t,S]);const m=p?new Date(p):void 0,C=n.length>0||!!u;return e.jsxs("div",{"data-comment-id":d,"data-component":"comment",children:[e.jsxs("article",{className:s.comment,children:[e.jsxs("header",{children:[e.jsxs(O.Group,{className:s.meta,gap:"small",justify:"between",layout:"row",children:[e.jsx(A.Avatar,{accessibleLabel:_,color:h,imageUrl:j,name:_}),e.jsxs("sub",{children:[w&&e.jsx(L.Icon,{gap:"right",name:"LockKey",size:"small"}),e.jsx("time",{dateTime:m==null?void 0:m.toISOString(),children:v??(m==null?void 0:m.toLocaleString())})]})]}),b]}),e.jsxs("div",{className:s.body,children:[o&&e.jsx("p",{className:s.notice,children:o}),c?e.jsx(I,{...c}):e.jsx("div",{className:s.text,"data-content":"user-generated",children:y})]}),!c&&(i||C)&&e.jsxs("footer",{children:[i,C&&e.jsxs(N.Button,{"aria-controls":R,"aria-expanded":t,className:s.toggle,onClick:()=>{z(!t),D(!t&&n.length===0)},variant:"tertiary",children:[t?r:n.length?l:f,(t||n.length>0)&&e.jsx(L.Icon,{name:t?"CaretUp":"CaretDown",size:"small"})]})]})]}),t&&C&&e.jsxs("ul",{className:s.replies,id:R,children:[n.map(x=>e.jsx("li",{children:e.jsx(B,{...x,onPublished:g})},x.id)),u&&e.jsx("li",{"data-reply-composer":d,ref:q,children:e.jsx(I,{...u,autofocus:S,onPublished:g})})]})]})};exports.Comment=B;exports.CommentComposer=I;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as G, jsx as v } from "react/jsx-runtime";
2
2
  import re from "classix";
3
3
  import { Children as oe, isValidElement as T, Fragment as de, cloneElement as N, useRef as E, useState as P, useCallback as se, useLayoutEffect as ce } from "react";
4
- import { a as H, M as ae } from "./menu-popover-Ceb_9V67.js";
4
+ import { a as H, M as ae } from "./menu-popover-AX_9ln6L.js";
5
5
  import { Button as le } from "./components/button/index.js";
6
6
  import './assets/index37.css';const J = (n, r = "") => oe.toArray(n).flatMap((t, f) => {
7
7
  if (!T(t)) return [t];