@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,42 +1,34 @@
1
1
  "use client";
2
- const e = t;
3
- (function(e, n) {
4
- let r = t, i = e();
2
+ const e = y;
3
+ (function(e, t) {
4
+ let n = y, r = e();
5
5
  for (;;) try {
6
- if (parseInt(r(238)) / 1 * (parseInt(r(214)) / 2) + parseInt(r(199)) / 3 * (parseInt(r(237)) / 4) + -parseInt(r(219)) / 5 + parseInt(r(229)) / 6 * (parseInt(r(226)) / 7) + parseInt(r(208)) / 8 * (-parseInt(r(212)) / 9) + parseInt(r(235)) / 10 * (parseInt(r(225)) / 11) + parseInt(r(239)) / 12 * (parseInt(r(222)) / 13) == n) break;
7
- i.push(i.shift());
6
+ if (parseInt(n(292)) / 1 * (parseInt(n(305)) / 2) + parseInt(n(291)) / 3 * (parseInt(n(315)) / 4) + -parseInt(n(310)) / 5 * (parseInt(n(325)) / 6) + parseInt(n(304)) / 7 + -parseInt(n(322)) / 8 + parseInt(n(297)) / 9 + -parseInt(n(300)) / 10 * (parseInt(n(293)) / 11) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(p, 574765);
12
- function t(e, n) {
13
- e -= 199;
14
- let r = p(), i = r[e];
15
- t.dgQlCe === void 0 && (t.OGjcKE = function(e) {
16
- let t = "", n = "";
17
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
18
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
- return decodeURIComponent(n);
20
- }, t.YQBrFu = {}, t.dgQlCe = !0);
21
- let a = r[0];
22
- t.DkOFsG !== a && (t.YQBrFu = {}, t.DkOFsG = a);
23
- let o = t.YQBrFu[e];
24
- return o === void 0 ? (i = t.OGjcKE(i), t.YQBrFu[e] = i) : i = o, i;
25
- }
26
- var n = new Intl[e(231)](e(204)), r = new Intl.NumberFormat(e(204), {
27
- notation: e(200),
11
+ })(c, 491689);
12
+ var t = new Intl[e(298)]("ko-KR"), n = new Intl[e(298)](e(316), {
13
+ notation: "compact",
28
14
  maximumFractionDigits: 1
29
- }), i = (e) => n.format(e), a = (t) => r[e(240)](t), o = (t) => Math[e(230)](t * 1e3) / 10 + "%", s = (t, n) => {
30
- let r = t ?? e(211) + (n % 6 + 1);
31
- return r.startsWith("--") ? "var(" + r + ")" : r;
32
- }, c = (t, n) => {
15
+ }), r = (n) => t[e(321)](n), i = (t) => n[e(321)](t), a = (e) => Math.round(e * 1e3) / 10 + "%", o = (t, n) => {
16
+ let r = e, i = t ?? r(318) + (n % 6 + 1);
17
+ return i.startsWith("--") ? r(309) + i + ")" : i;
18
+ }, s = (t, n) => {
33
19
  let r = e, i = t?.[n];
34
- return typeof i === r(206) && Number[r(227)](i) ? i : null;
20
+ return typeof i === r(306) && Number.isFinite(i) ? i : null;
35
21
  };
22
+ function c() {
23
+ let e = /* @__PURE__ */ "DMfYka.mJCWmZuWnvLNr2TvCW.zNjVBq.DMfYkc0Ty2HHCNqTyxHPCYK.DMfYkc0TD2fYBMLUzY1ZB2z0kq.zMXVB3i.mZm5otq4ne9Nqu9Krq.A28Ts1i.DMfYkc0TywnJzw50lxnVzNqP.ls1JAgfYDc0.CMv2zxjZzq.DMfYkc0TC3vYzMfJzs1Hy3rPDMuP.zM9YBwf0.mZe4nJCYogfvt0PpqG.C21VB3rO.BgvUz3rO.nMHtyNbMCW.CMvWBgfJzq.DMfYkc0TD2fYBMLUzYK.BwLU.m3z3wMjrBa.mtCYueXnBuLM.mtG3rKfPz29e.DMfYkc0TywnJzw50kq.C2XPy2u.Bwf4.nde1ntq4z05kr2fm.tNvTyMvYrM9YBwf0.zMLUza.nJmXmZyWAMrvBg53.y2vPBa.BwfW.DMfYkc0TzgfUz2vYkq.nJC1nZG1nKDKEffqDW.nZq3mMDhAhPsDa.BNvTyMvY.AM9PBG.Bg9Nmta".split(".");
24
+ return c = function() {
25
+ return e;
26
+ }, c();
27
+ }
36
28
  function l(t, n) {
37
- let r = e, i = Math[r(242)](1, n - 1);
38
- if (t <= 0) return Array[r(228)]({ length: i + 1 }, (e, t) => t);
39
- let a = t / i, o = 10 ** Math[r(217)](Math[r(232)](a)), s = ([
29
+ let r = e, i = Math[r(296)](1, n - 1);
30
+ if (t <= 0) return Array[r(311)]({ length: i + 1 }, (e, t) => t);
31
+ let a = t / i, o = 10 ** Math[r(314)](Math[r(308)](a)), s = ([
40
32
  1,
41
33
  1.5,
42
34
  2,
@@ -44,27 +36,21 @@ function l(t, n) {
44
36
  3,
45
37
  5,
46
38
  10
47
- ][r(207)]((e) => e * o >= a) ?? 10) * o;
48
- return Array.from({ length: i + 1 }, (e, t) => t * s);
39
+ ][r(299)]((e) => e * o >= a) ?? 10) * o;
40
+ return Array[r(311)]({ length: i + 1 }, (e, t) => t * s);
49
41
  }
50
- var u = (t) => Math[e(242)](...t.map((t) => t[e(223)])) * 7 + 14, d = (t, n, r = 110) => Math[e(242)](1, Math[e(210)](t / Math[e(242)](1, Math[e(217)](n / r)))), f = (t, n) => n === e(215) && t[e(223)] > 2 ? m(t) : t[e(234)](([e, t], n) => (n ? "L" : "M") + e + "," + t)[e(233)]("");
51
- function p() {
52
- let e = /* @__PURE__ */ "CMv2zxjZzq.mJK4nZy5ou1ms0rUDG.BgvUz3rO.CMvWBgfJzq.mtfev3PQthC.odC0m0X5AxnQAq.AxngAw5PDgu.zNjVBq.mZq5ogTlwgTuDG.CM91BMq.tNvTyMvYrM9YBwf0.Bg9Nmta.AM9PBG.BwfW.mta4nJq1mhLSAfDlAq.BwLU.mte5nJC2ne1SANngta.ndGXmdC2C1jQCKzU.mtjqy0PJCgG.zM9YBwf0.C3fYDa.Bwf4.nK5PsLb5uq.y29TCgfJDa.DMfYkc0TC3vYzMfJzs1Hy3rPDMuP.C2XPy2u.DMfYkc0TywnJzw50kq.A28Ts1i.DMfYkc0TzgfUz2vYkq.BNvTyMvY.zMLUza.mti4odGWmgHZzNPPyG.DMfYkc0TywnJzw50lxnVzNqP.y2vPBa.ls1JAgfYDc0.ntrPAe1wzKm.DMfYkc0TD2fYBMLUzYK.mKDTuhrHuW.C21VB3rO.DMfYkc0TzgfUz2vYlxnVzNqP.zMXVB3i.DMfYkc0Ty2HHCNqTyxHPCYK.mZaYmZy0mePgBK5YBW.DMfYkc0TD2fYBMLUzY1ZB2z0kq".split(".");
53
- return p = function() {
54
- return e;
55
- }, p();
56
- }
57
- function m(t) {
58
- let n = e, r = t[n(223)], i = t[n(202)](0, -1)[n(234)](([e, n], r) => (t[r + 1][1] - n) / (t[r + 1][0] - e)), a = t.map((e, t) => t === 0 ? i[0] : t === r - 1 ? i[r - 2] : i[t - 1] * i[t] <= 0 ? 0 : (i[t - 1] + i[t]) / 2);
42
+ var u = (t) => Math[e(296)](...t.map((t) => t[e(324)])) * 7 + 14, d = (t, n, r = 110) => Math[e(296)](1, Math[e(301)](t / Math[e(296)](1, Math[e(314)](n / r)))), f = (t, n) => n === e(323) && t.length > 2 ? p(t) : t[e(302)](([e, t], n) => (n ? "L" : "M") + e + "," + t)[e(307)]("");
43
+ function p(t) {
44
+ let n = e, r = t[n(324)], i = t[n(295)](0, -1)[n(302)](([e, n], r) => (t[r + 1][1] - n) / (t[r + 1][0] - e)), a = t.map((e, t) => t === 0 ? i[0] : t === r - 1 ? i[r - 2] : i[t - 1] * i[t] <= 0 ? 0 : (i[t - 1] + i[t]) / 2);
59
45
  for (let e = 0; e < r - 1; e++) {
60
46
  if (i[e] === 0) {
61
47
  a[e] = a[e + 1] = 0;
62
48
  continue;
63
49
  }
64
- let t = a[e] / i[e], r = a[e + 1] / i[e], o = t * t + r * r;
65
- if (o > 9) {
66
- let s = 3 / Math[n(241)](o);
67
- a[e] = s * t * i[e], a[e + 1] = s * r * i[e];
50
+ let t = a[e] / i[e], n = a[e + 1] / i[e], r = t * t + n * n;
51
+ if (r > 9) {
52
+ let o = 3 / Math.sqrt(r);
53
+ a[e] = o * t * i[e], a[e + 1] = o * n * i[e];
68
54
  }
69
55
  }
70
56
  let o = "M" + t[0][0] + "," + t[0][1];
@@ -74,23 +60,37 @@ function m(t) {
74
60
  }
75
61
  return o;
76
62
  }
77
- function h(t, n, r, i, a) {
78
- let o = e, s = Math[o(242)](0, Math[o(236)](a, r / 2, i));
79
- return "M" + t + "," + (n + i) + "V" + (n + s) + "Q" + t + "," + n + " " + (t + s) + "," + n + "H" + (t + r - s) + "Q" + (t + r) + "," + n + " " + (t + r) + "," + (n + s) + "V" + (n + i) + "Z";
63
+ function m(t, n, r, i, a) {
64
+ let o = Math.max(0, Math[e(290)](a, r / 2, i));
65
+ return "M" + t + "," + (n + i) + "V" + (n + o) + "Q" + t + "," + n + " " + (t + o) + "," + n + "H" + (t + r - o) + "Q" + (t + r) + "," + n + " " + (t + r) + "," + (n + o) + "V" + (n + i) + "Z";
80
66
  }
81
- var g = {
82
- neutral: e(201),
83
- accent: e(209),
84
- warning: e(220),
85
- danger: e(216)
86
- }, _ = {
87
- neutral: e(218),
88
- accent: e(203),
89
- warning: e(213),
90
- danger: e(205)
91
- }, v = (e, t) => e.length ? f(e, t) : "";
92
- function y(t, n, r) {
67
+ var h = {
68
+ neutral: e(320),
69
+ accent: e(317),
70
+ warning: e(313),
71
+ danger: "var(--danger-soft)"
72
+ }, g = {
73
+ neutral: e(312),
74
+ accent: e(294),
75
+ warning: e(289),
76
+ danger: e(303)
77
+ }, _ = (t, n) => t[e(324)] ? f(t, n) : "";
78
+ function v(t, n, r) {
93
79
  let i = e;
94
- return t.length ? "" + f(t, r) + f([...n][i(221)](), r)[i(224)](/^M/, "L") + "Z" : "";
80
+ return t[i(324)] ? "" + f(t, r) + f([...n][i(319)](), r)[i(326)](/^M/, "L") + "Z" : "";
81
+ }
82
+ function y(e, t) {
83
+ e -= 289;
84
+ let n = c(), r = n[e];
85
+ y.wqVXpA === void 0 && (y.XcMyLa = function(e) {
86
+ let t = "", n = "";
87
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
88
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
89
+ return decodeURIComponent(n);
90
+ }, y.ITFeLU = {}, y.wqVXpA = !0);
91
+ let i = n[0];
92
+ y.bNtHzM !== i && (y.ITFeLU = {}, y.bNtHzM = i);
93
+ let a = y.ITFeLU[e];
94
+ return a === void 0 ? (r = y.XcMyLa(r), y.ITFeLU[e] = r) : r = a, r;
95
95
  }
96
- export { g as CHART_TONE_SOFT, _ as CHART_TONE_STRONG, u as axisGutter, y as bandPath, h as barPath, s as chartColor, a as formatCompact, i as formatNumber, o as formatPercent, d as labelStep, v as linePath, l as niceTicks, c as numberAt };
96
+ export { h as CHART_TONE_SOFT, g as CHART_TONE_STRONG, u as axisGutter, v as bandPath, m as barPath, o as chartColor, i as formatCompact, r as formatNumber, a as formatPercent, d as labelStep, _ as linePath, l as niceTicks, s as numberAt };
@@ -3,56 +3,50 @@ const e = n;
3
3
  (function(e, t) {
4
4
  let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(r(282)) / 1 + -parseInt(r(273)) / 2 + -parseInt(r(290)) / 3 + -parseInt(r(292)) / 4 + parseInt(r(278)) / 5 * (parseInt(r(274)) / 6) + parseInt(r(271)) / 7 * (parseInt(r(296)) / 8) + parseInt(r(299)) / 9 == t) break;
6
+ if (-parseInt(r(260)) / 1 * (parseInt(r(258)) / 2) + -parseInt(r(268)) / 3 * (-parseInt(r(286)) / 4) + -parseInt(r(271)) / 5 * (-parseInt(r(265)) / 6) + parseInt(r(278)) / 7 * (-parseInt(r(283)) / 8) + -parseInt(r(261)) / 9 * (parseInt(r(280)) / 10) + -parseInt(r(276)) / 11 + parseInt(r(277)) / 12 == t) break;
7
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(t, 491486);
12
- function t() {
13
- let e = /* @__PURE__ */ "y2XLyxjuAw1LB3v0.mZjUwMPfq2K.C2v0vgLTzw91Da.qxjYB3DeB3DU.mti1mdC1ntj3twr4qu8.ndu5mZi2uurLyMDW.ChjLDMvUDerLzMf1Bhq.mteXnJK4EwLWExDj.mZi1ote0wufZEfbK.qxjYB3Dmzwz0.Bwf4.rxnJyxbL.mZvpsujQsKi.z3jVDxa.B2zMC2v0v2LKDgG.y3vYCMvUDa.nZa1nZjnr3HjBuW.y2XPzw50v2LKDgG.B2jZzxj2zq.zMLYC3q.oMzVy3vZlxzPC2LIBgu.Bwf0y2HLCW.A2v5.qxjYB3DsAwDODa.mJKZnduXm1n0qM5Tyq.BwLU.mtC0ntqYmg9XChbKvq.sg9Tzq.BgfZDa".split(".");
14
- return t = function() {
15
- return e;
16
- }, t();
17
- }
18
- function n(e, r) {
19
- e -= 271;
20
- let i = t(), a = i[e];
21
- n.XVvPyO === void 0 && (n.qNAjBf = function(e) {
11
+ })(l, 390577);
12
+ import { TIMING as t } from "../../hooks/timing.js";
13
+ function n(e, t) {
14
+ e -= 255;
15
+ let r = l(), i = r[e];
16
+ n.EFlpmf === void 0 && (n.sOiDvx = function(e) {
22
17
  let t = "", n = "";
23
18
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
24
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
20
  return decodeURIComponent(n);
26
- }, n.byXfMw = {}, n.XVvPyO = !0);
27
- let o = i[0];
28
- n.JFspSs !== o && (n.byXfMw = {}, n.JFspSs = o);
29
- let s = n.byXfMw[e];
30
- return s === void 0 ? (a = n.qNAjBf(a), n.byXfMw[e] = a) : a = s, a;
21
+ }, n.HxsTcJ = {}, n.EFlpmf = !0);
22
+ let a = r[0];
23
+ n.tBzdmz !== a && (n.HxsTcJ = {}, n.tBzdmz = a);
24
+ let o = n.HxsTcJ[e];
25
+ return o === void 0 ? (i = n.sOiDvx(i), n.HxsTcJ[e] = i) : i = o, i;
31
26
  }
32
- import { TIMING as r } from "../../hooks/timing.js";
33
- import { useControllableState as i } from "../../hooks/useControllableState.js";
34
- import { useEffect as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
35
- function l({ count: t, activeIndex: l, defaultActiveIndex: u = null, onActiveIndexChange: d, initialKeyboardIndex: f = e(294) }) {
36
- let p = e, [m, h] = i(l, u, d), g = s(null), _ = s(null), [v, y] = c(0), [b, x] = c({
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
29
+ function c({ count: c, activeIndex: l, defaultActiveIndex: u = null, onActiveIndexChange: d, initialKeyboardIndex: f = e(281) }) {
30
+ let p = e, [m, h] = r(l, u, d), g = o(null), _ = o(null), [v, y] = s(0), [b, x] = s({
37
31
  w: 0,
38
32
  h: 0
39
- }), S = s(void 0);
40
- o(() => {
41
- let e = n, t = g[e(281)], r = _[e(281)];
33
+ }), S = o(void 0);
34
+ a(() => {
35
+ let e = n, t = g[e(272)], r = _.current;
42
36
  if (!t) return;
43
37
  let i = new ResizeObserver(() => {
44
38
  let n = e;
45
- y(t[n(283)]), r && x((e) => e.w === r[n(280)] && e.h === r.offsetHeight ? e : {
46
- w: r[n(280)],
47
- h: r.offsetHeight
39
+ y(t[n(285)]), r && x((e) => e.w === r[n(274)] && e.h === r[n(263)] ? e : {
40
+ w: r.offsetWidth,
41
+ h: r[n(263)]
48
42
  });
49
43
  });
50
- return i[e(284)](t), r && i[e(284)](r), y(t.clientWidth), () => i.disconnect();
51
- }, []), a(() => () => window[p(295)](S[p(281)]), []);
52
- let C = m !== null && m < t, [w, T] = c(m);
44
+ return i[e(284)](t), r && i[e(284)](r), y(t[e(285)]), () => i[e(270)]();
45
+ }, []), i(() => () => window[p(267)](S[p(272)]), []);
46
+ let C = m !== null && m < c, [w, T] = s(m);
53
47
  C && m !== w && T(m);
54
- let E = w !== null && w < t ? w : null, [D, O] = c(!1);
55
- return !C && D && O(!1), a(() => {
48
+ let E = w !== null && w < c ? w : null, [D, O] = s(!1);
49
+ return !C && D && O(!1), i(() => {
56
50
  if (!C) return;
57
51
  let e = requestAnimationFrame(() => e = requestAnimationFrame(() => O(!0)));
58
52
  return () => cancelAnimationFrame(e);
@@ -67,28 +61,34 @@ function l({ count: t, activeIndex: l, defaultActiveIndex: u = null, onActiveInd
67
61
  tipSize: b,
68
62
  hover: (e) => {
69
63
  let t = p;
70
- window[t(295)](S[t(281)]), e !== m && h(e);
64
+ window.clearTimeout(S[t(272)]), e !== m && h(e);
71
65
  },
72
66
  leave: () => {
73
67
  let e = p;
74
- window[e(295)](S.current), S[e(281)] = window[e(297)](() => h(null), r.hoverGrace);
68
+ window.clearTimeout(S.current), S.current = window[e(256)](() => h(null), t[e(275)]);
75
69
  },
76
70
  plotProps: {
77
71
  ref: g,
78
72
  tabIndex: 0,
79
- role: p(279),
73
+ role: "group",
80
74
  onKeyDown: (e) => {
81
- let n = p;
82
- if (!t) return;
83
- let r = m ?? (f === n(285) ? 0 : t - 1), i = e[n(288)] === n(289) || e.key === n(298) ? Math[n(291)](t - 1, r + 1) : e[n(288)] === n(275) || e.key === "ArrowUp" ? Math[n(276)](0, r - 1) : e.key === n(293) ? 0 : e[n(288)] === "End" ? t - 1 : void 0;
84
- i === void 0 ? e.key === n(277) && m !== null && (e[n(272)](), h(null)) : (e[n(272)](), h(i));
75
+ let t = p;
76
+ if (!c) return;
77
+ let n = m ?? (f === t(279) ? 0 : c - 1), r = e.key === t(266) || e[t(273)] === t(255) ? Math[t(264)](c - 1, n + 1) : e[t(273)] === t(257) || e.key === "ArrowUp" ? Math[t(259)](0, n - 1) : e[t(273)] === t(287) ? 0 : e[t(273)] === t(269) ? c - 1 : void 0;
78
+ r === void 0 ? e[t(273)] === "Escape" && m !== null && (e[t(262)](), h(null)) : (e[t(262)](), h(r));
85
79
  },
86
80
  onFocus: (e) => {
87
- let n = p;
88
- e.currentTarget[n(287)](n(286)) && m === null && t && h(f === "first" ? 0 : t - 1);
81
+ let t = p;
82
+ e.currentTarget[t(282)](":focus-visible") && m === null && c && h(f === t(279) ? 0 : c - 1);
89
83
  },
90
84
  onBlur: () => h(null)
91
85
  }
92
86
  };
93
87
  }
94
- export { l as useChartInteraction };
88
+ function l() {
89
+ let e = /* @__PURE__ */ "ndbKwK96qNC.B2jZzxj2zq.y2XPzw50v2LKDgG.ng1Ivfnezq.sg9Tzq.qxjYB3DeB3DU.C2v0vgLTzw91Da.qxjYB3Dmzwz0.nti0EuruAgHH.Bwf4.otKZv0XzzK5q.nJnYEfHruhO.ChjLDMvUDerLzMf1Bhq.B2zMC2v0sgvPz2H0.BwLU.mZK5mfvjDxzpEq.qxjYB3DsAwDODa.y2XLyxjuAw1LB3v0.mZi5odKYufPbCMvR.rw5K.zgLZy29UBMvJDa.mZCWt05RwvLP.y3vYCMvUDa.A2v5.B2zMC2v0v2LKDgG.Ag92zxjhCMfJzq.mJeZmJyXnhbUEe5Qta.mtK2ndu3nZzzt1fTswW.mZCZodK4twnYALjM.zMLYC3q.otC4mduWz2DPu0jJ.BgfZDa.Bwf0y2HLCW".split(".");
90
+ return l = function() {
91
+ return e;
92
+ }, l();
93
+ }
94
+ export { c as useChartInteraction };
@@ -1,125 +1,125 @@
1
1
  "use client";
2
- const e = d;
2
+ const e = w;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let n = w, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(224)) / 1 * (-parseInt(n(212)) / 2) + parseInt(n(223)) / 3 * (parseInt(n(204)) / 4) + -parseInt(n(237)) / 5 * (parseInt(n(191)) / 6) + parseInt(n(209)) / 7 + -parseInt(n(195)) / 8 + parseInt(n(196)) / 9 + parseInt(n(194)) / 10 * (parseInt(n(215)) / 11) == t) break;
6
+ if (parseInt(n(387)) / 1 * (parseInt(n(374)) / 2) + parseInt(n(406)) / 3 * (parseInt(n(398)) / 4) + -parseInt(n(380)) / 5 * (parseInt(n(363)) / 6) + parseInt(n(379)) / 7 + parseInt(n(401)) / 8 * (-parseInt(n(411)) / 9) + parseInt(n(381)) / 10 + parseInt(n(378)) / 11 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(r, 968535);
11
+ })(C, 149e3);
12
12
  import { Spinner as t } from "../../primitives/Spinner2.js";
13
13
  import { Text as n } from "../../primitives/Typography2.js";
14
- function r() {
15
- let e = /* @__PURE__ */ "C3bHBG.BwfW.Aw1N.BMv1DhjHBa.C2LUz2XL.zMfPBgvK.Aw5OzxjPDa.mJe0mZbmy25YzLG.64UK7iUCioUZToUcToQ4Sa.zhmTy2HHDc1IDwjIBgvFx2zPBgWTlq.C2LKzq.zMLSDgvY.C2vJB25Kyxj5.zhmTy2HHDc1IDwjIBgvFx21LDge.BgfZDa.ndaYA2PHruDy.zhmTy2HHDc1NCM91Ca.zMLYC3q.mJi2mfPWCuLKEG.nJeYnJuYogjNt1z5DG.ndGYmtm1nefxt3H5EG.Cg9ZAxrPB24.uhjVDMLKzxi.zw5K.C2vUzgLUzW.zhmTy2HHDc1NCM91Cf9FyNvIyMXLCW.CMvHza.r3jVDxa.ng9PCvbYAa.zhmTy2HHDc1NCM91Cf9FBMfTzq.zhmTy2HHDc1IDwjIBgvFx3n0yxr1CW.BgfIzwWTC20.A2v5.mteZotGYnJHJywvLqKe.BgvUz3rO.zgL2.mJu0otaYzhvdzuHx.BwLKzgXL.zhmTy2HHDc1IDwjIBgvFx3jVDW.odKYmvHNvuvAvq.7j6f66cLioYKKq.ywnJzw50.yM9KEs1Tza.z2HVC3q.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.C3rHCNq.C3rYAw5N.ntuYmdaZv1bVsuzj.neTfrgzYuq.zhmTy2HHDc1IDwjIBgvFx2rVDhm.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.7j2yioUPLoYlNoYNGa.Dg9bCNjHEq.C3rHDhvZ".split(".");
16
- return r = function() {
14
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
+ import { RelativeTime as a } from "../../primitives/RelativeTime.js";
16
+ import { Avatar as o, Button as s, cx as c } from "../../primitives/index.js";
17
+ import { formatChatTime as l } from "./formatChatTime.js";
18
+ /* empty css */
19
+ import { Children as u, createContext as d, isValidElement as f, useContext as p } from "react";
20
+ import { AlertCircle as m, Check as h, CheckCheck as g, RotateCw as _ } from "lucide-react";
21
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
22
+ var x = d(null), S = {
23
+ sending: "보내는 중",
24
+ sent: "전송됨",
25
+ read: "읽음",
26
+ failed: "전송 실패"
27
+ };
28
+ function C() {
29
+ let e = /* @__PURE__ */ "zgfUz2vY.A2v5.zhmTy2HHDc1NCM91Ca.7j2yioUPLoYlNoYNGa.zhmTy2HHDc1NCM91Cf9FBMfTzq.zhmTy2HHDc1NCM91Cf9FyNvIyMXLCW.zhmTy2HHDc1IDwjIBgvFx2rVDhm.z2HVC3q.C3rYAw5N.ndaWt0zNsLvl.Aw1N.r3jVDxa.odGYnhb0s29SqG.C3rHCNq.zhmTy2HHDc1IDwjIBgu.Aw5OzxjPDa.zMLYC3q.mJG0n29cu1nOvG.BMv1DhjHBa.C2vJB25Kyxj5.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.zhmTy2HHDc1IDwjIBgvFx2zPBgWTlq.mtyYowLHswz6AG.CMvHza.zhmTy2HHDc1IDwjIBgvFx2fJDgLVBNm.zhmTy2HHDc1IDwjIBgvFx3jVDW.mZGWmJi2zKntDhne.zgL2.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.BwLKzgXL.BgvUz3rO.ywnJzw50.zMLSDgvY.zw5K.zhmTy2HHDc1IDwjIBgvFx21LDge.zhmTy2HHDc1IDwjIBgvFx3n0yxr1CW.C3bHBG.nNLVzw5esq.y2fWDgLVBG.64UK7iUCioUZToUcToQ4Sa.zMfPBgvK.mty5nJG3mwHwDNjHyG.otm5nda3yuDHBKnP.mJbTCe1ewuK.mtyYnJKYmer2CvH2tW.C2LUz2XL.C2LKzq.C2vUzgLUzW.C3rHDhvZ.BgfZDa.mtG2otfPtw1uEKC.BgfIzwWTC20".split(".");
30
+ return C = function() {
17
31
  return e;
18
- }, r();
32
+ }, C();
19
33
  }
20
- import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
21
- import { RelativeTime as o } from "../../primitives/RelativeTime.js";
22
- import { Avatar as s, Button as c, cx as l } from "../../primitives/index.js";
23
- import { formatChatTime as u } from "./formatChatTime.js";
24
- function d(e, t) {
25
- e -= 184;
26
- let n = r(), i = n[e];
27
- d.xQoXKX === void 0 && (d.KUZQZQ = function(e) {
34
+ function w(e, t) {
35
+ e -= 362;
36
+ let n = C(), r = n[e];
37
+ w.YOtlGn === void 0 && (w.gOwCHq = function(e) {
28
38
  let t = "", n = "";
29
39
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
30
40
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
41
  return decodeURIComponent(n);
32
- }, d.OjOcqH = {}, d.xQoXKX = !0);
33
- let a = n[0];
34
- d.ptlVaL !== a && (d.OjOcqH = {}, d.ptlVaL = a);
35
- let o = d.OjOcqH[e];
36
- return o === void 0 ? (i = d.KUZQZQ(i), d.OjOcqH[e] = i) : i = o, i;
42
+ }, w.ZKVtlJ = {}, w.YOtlGn = !0);
43
+ let i = n[0];
44
+ w.SlwdRJ !== i && (w.ZKVtlJ = {}, w.SlwdRJ = i);
45
+ let a = w.ZKVtlJ[e];
46
+ return a === void 0 ? (r = w.gOwCHq(r), w.ZKVtlJ[e] = r) : r = a, r;
37
47
  }
38
- /* empty css */
39
- import { Children as f, createContext as p, isValidElement as m, useContext as h } from "react";
40
- import { AlertCircle as g, Check as _, CheckCheck as v, RotateCw as y } from "lucide-react";
41
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
42
- var C = p(null), w = {
43
- sending: "보내는 중",
44
- sent: "전송됨",
45
- read: "읽음",
46
- failed: "전송 실패"
47
- };
48
48
  function T({ status: e }) {
49
- let n = d;
50
- if (e === n(200)) return x(t, {
49
+ let n = w;
50
+ if (e === n(384)) return y(t, {
51
51
  size: 12,
52
- tone: "inherit",
53
- label: w[n(200)]
52
+ tone: n(404),
53
+ label: S[n(384)]
54
54
  });
55
- if (e === n(235)) return null;
56
- let r = e === n(202) ? v : _;
57
- return x(n(230), {
58
- className: n(206),
55
+ if (e === n(377)) return null;
56
+ let r = e === n(412) ? g : h;
57
+ return y(n(373), {
58
+ className: n(372),
59
59
  "data-status": e,
60
- role: n(232),
61
- "aria-label": w[e],
62
- children: x(r, { "aria-hidden": !0 })
60
+ role: n(399),
61
+ "aria-label": S[e],
62
+ children: y(r, { "aria-hidden": !0 })
63
63
  });
64
64
  }
65
- function E({ side: e, tone: t, position: r, children: s, time: f, status: p, onRetry: m, typing: _, actions: v, footer: E, appear: D, className: O, style: k }) {
66
- let A = d, j = h(C), M = e ?? j?.[A(186)] ?? A(221), N = r ?? j?.[A(197)] ?? A(234), P = t ?? (M === A(199) ? A(217) : A(233)), F = N === "single" || N === A(190), I = F && (f != null || p != null) || p === "sending" || p === A(235), L = x(n, {
67
- as: "div",
68
- variant: A(218),
69
- tone: A(236),
70
- className: l("ds-chat-bubble__fill", A(185) + P),
71
- "data-typing": _ || void 0,
72
- children: _ ? S(A(230), {
73
- className: A(225),
74
- role: A(229),
75
- "aria-label": A(216),
65
+ function E({ side: e, tone: t, position: o, children: u, time: d, status: f, onRetry: h, typing: g, actions: C, footer: E, appear: D, className: O, style: k }) {
66
+ let A = w, j = p(x), M = e ?? j?.[A(383)] ?? A(402), N = o ?? j?.position ?? A(382), P = t ?? (M === A(370) ? A(368) : A(407)), F = N === A(382) || N === A(386), I = F && (d != null || f != null) || f === A(384) || f === "failed", L = y(n, {
67
+ as: A(364),
68
+ variant: "body-md",
69
+ tone: A(404),
70
+ className: c("ds-chat-bubble__fill", A(410) + P),
71
+ "data-typing": g || void 0,
72
+ children: g ? b(A(373), {
73
+ className: A(395),
74
+ role: A(385),
75
+ "aria-label": "입력 중",
76
76
  children: [
77
- x(A(230), {}),
78
- x("span", {}),
79
- x("span", {})
77
+ y(A(373), {}),
78
+ y(A(373), {}),
79
+ y(A(373), {})
80
80
  ]
81
- }) : s
82
- }), R = I && x(i, {
81
+ }) : u
82
+ }), R = I && y(r, {
83
83
  gap: 1,
84
84
  wrap: !1,
85
- className: A(189),
86
- "data-failed": p === "failed" || void 0,
87
- children: p === "failed" ? S(b, { children: [x(g, {
85
+ className: A(371),
86
+ "data-failed": f === A(377) || void 0,
87
+ children: f === A(377) ? b(v, { children: [y(m, {
88
88
  "aria-hidden": !0,
89
- className: A(220)
90
- }), x(n, {
91
- variant: "caption",
92
- tone: "danger",
93
- children: w[A(235)]
94
- })] }) : S(b, { children: [p && x(T, { status: p }), F && f != null && x(o, {
95
- date: f,
96
- format: u,
89
+ className: A(409)
90
+ }), y(n, {
91
+ variant: A(375),
92
+ tone: A(389),
93
+ children: S[A(377)]
94
+ })] }) : b(v, { children: [f && y(T, { status: f }), F && d != null && y(a, {
95
+ date: d,
96
+ format: l,
97
97
  refreshInterval: !1
98
98
  })] })
99
- }), z = p === A(235) && m && x(c, {
100
- variant: A(219),
99
+ }), z = f === "failed" && h && y(s, {
100
+ variant: A(396),
101
101
  size: "sm",
102
- icon: x(y, {}),
103
- onClick: m,
104
- children: A(184)
105
- }), B = v && x("span", {
106
- className: "ds-chat-bubble__actions",
107
- children: v
102
+ icon: y(_, {}),
103
+ onClick: h,
104
+ children: A(376)
105
+ }), B = C && y(A(373), {
106
+ className: A(413),
107
+ children: C
108
108
  });
109
- return S(a, {
109
+ return b(i, {
110
110
  gap: 1,
111
- align: M === A(199) ? A(199) : A(221),
112
- className: l("ds-chat-bubble", O),
111
+ align: M === A(370) ? A(370) : "start",
112
+ className: c(A(403), O),
113
113
  "data-side": M,
114
114
  "data-position": N,
115
- "data-status": p,
115
+ "data-status": f,
116
116
  "data-appear": D || void 0,
117
117
  style: k,
118
- children: [S(i, {
118
+ children: [b(r, {
119
119
  gap: 2,
120
- align: A(199),
120
+ align: A(370),
121
121
  wrap: !1,
122
- className: A(214),
122
+ className: A(362),
123
123
  children: [
124
124
  L,
125
125
  R,
@@ -129,46 +129,46 @@ function E({ side: e, tone: t, position: r, children: s, time: f, status: p, onR
129
129
  }), E]
130
130
  });
131
131
  }
132
- function D({ author: t, avatar: r, side: o = "start", avatarSize: c = 28, showName: u = o === e(221), children: d, className: p, style: h }) {
133
- let g = e, _ = f[g(228)](d)[g(187)](m), v = _[g(210)] - 1, y = o === "start" && (r === void 0 ? typeof t === g(222) ? x(s, {
132
+ function D({ author: t, avatar: a, side: s = e(402), avatarSize: l = 28, showName: d = s === e(402), children: p, className: m, style: h }) {
133
+ let g = e, _ = u.toArray(p)[g(369)](f), v = _[g(367)] - 1, S = s === g(402) && (a === void 0 ? typeof t == "string" ? y(o, {
134
134
  name: t,
135
- size: c
136
- }) : null : r), b = S(a, {
135
+ size: l
136
+ }) : null : a), C = b(i, {
137
137
  gap: 1,
138
- align: o === g(199) ? g(199) : g(221),
139
- className: g(201),
140
- children: [u && t != null && x(n, {
141
- variant: g(207),
142
- tone: g(188),
143
- className: g(205),
138
+ align: s === g(370) ? g(370) : g(402),
139
+ className: g(394),
140
+ children: [d && t != null && y(n, {
141
+ variant: g(388),
142
+ tone: g(408),
143
+ className: g(393),
144
144
  children: t
145
- }), _[g(231)]((e, t) => x(C[g(198)], {
145
+ }), _.map((e, t) => y(x.Provider, {
146
146
  value: {
147
- side: o,
148
- position: v === 0 ? g(234) : t === 0 ? g(193) : t === v ? "last" : g(213)
147
+ side: s,
148
+ position: g(v === 0 ? 382 : t === 0 ? 405 : t === v ? 386 : 366)
149
149
  },
150
150
  children: e
151
- }, e[g(208)] ?? t))]
151
+ }, e[g(390)] ?? t))]
152
152
  });
153
- return x(g(211), {
154
- className: l(g(192), p),
155
- "data-side": o,
153
+ return y(g(364), {
154
+ className: c(g(391), m),
155
+ "data-side": s,
156
156
  role: "group",
157
- "aria-label": typeof t == "string" ? t + g(227) : void 0,
157
+ "aria-label": typeof t === g(397) ? t + g(392) : void 0,
158
158
  style: {
159
- "--_avatar": c + "px",
159
+ "--_avatar": l + "px",
160
160
  ...h
161
161
  },
162
- children: o === "start" && (y || r === null) ? S(i, {
162
+ children: s === g(402) && (S || a === null) ? b(r, {
163
163
  gap: 2,
164
- align: g(221),
164
+ align: g(402),
165
165
  wrap: !1,
166
- children: [x(g(230), {
167
- className: g(226),
168
- children: y
169
- }), b]
170
- }) : b
166
+ children: [y(g(373), {
167
+ className: g(365),
168
+ children: S
169
+ }), C]
170
+ }) : C
171
171
  });
172
172
  }
173
- E[e(203)] = D;
173
+ E[e(400)] = D;
174
174
  export { E as ChatBubble, D as ChatBubbleGroup };