@iamfiro/design 0.3.1 → 0.3.4

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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,48 +1,34 @@
1
1
  "use client";
2
- function e(t, r) {
3
- t -= 271;
4
- let i = n(), a = i[t];
5
- e.qGGPPI === void 0 && (e.JbeJkU = function(e) {
6
- let t = "", n = "";
7
- 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);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.azHtcX = {}, e.qGGPPI = !0);
11
- let o = i[0];
12
- e.KeULEA !== o && (e.azHtcX = {}, e.KeULEA = o);
13
- let s = e.azHtcX[t];
14
- return s === void 0 ? (a = e.JbeJkU(a), e.azHtcX[t] = a) : a = s, a;
15
- }
16
- const t = e;
17
- function n() {
18
- let e = /* @__PURE__ */ "tNvTyMvYrM9YBwf0.BwLU.mJbNAKnrCgm.DMfYka.mtjKuvrNq3C.y29TCgfJDa.nJm5mty4m1LxzNDLzq.DMfYkc0TzgfUz2vYkq.C3fYDa.zNjVBq.C21VB3rO.zM9YBwf0.BwfW.DMfYkc0TD2fYBMLUzYK.mJvLAwLIEeO.Bg9Nmta.BgvUz3rO.mJGZmZa2ofbsr1H2qq.mtm5mZqWuwH4rNvO.CM91BMq.y2vPBa.ndq5mtu0Cu5srKzn.BNvTyMvY.ntuWotu2BwDbAwrQ.mJKWmJmXmxvlDuToDa.C2XPy2u.DMfYkc0Ty2HHCNqTyxHPCYK.zMXVB3i.DMfYkc0TD2fYBMLUzY1ZB2z0kq.AxngAw5PDgu.ls1JAgfYDc0.CMv2zxjZzq.A28Ts1i.AM9PBG.mJi0ndiWogHhB0zICa.Bwf4".split(".");
19
- return n = function() {
20
- return e;
21
- }, n();
22
- }
23
- (function(t, n) {
24
- let r = e, i = t();
2
+ const e = p;
3
+ (function(e, t) {
4
+ let n = p, r = e();
25
5
  for (;;) try {
26
- if (-parseInt(r(301)) / 1 + parseInt(r(299)) / 2 + parseInt(r(302)) / 3 + -parseInt(r(296)) / 4 * (-parseInt(r(292)) / 5) + -parseInt(r(282)) / 6 * (-parseInt(r(295)) / 7) + parseInt(r(276)) / 8 + -parseInt(r(284)) / 9 * (parseInt(r(280)) / 10) == n) break;
27
- i.push(i.shift());
6
+ if (-parseInt(n(289)) / 1 + parseInt(n(301)) / 2 * (parseInt(n(303)) / 3) + parseInt(n(293)) / 4 * (parseInt(n(304)) / 5) + -parseInt(n(315)) / 6 + -parseInt(n(299)) / 7 + -parseInt(n(311)) / 8 * (parseInt(n(313)) / 9) + -parseInt(n(317)) / 10 * (-parseInt(n(312)) / 11) == t) break;
7
+ r.push(r.shift());
28
8
  } catch {
29
- i.push(i.shift());
9
+ r.push(r.shift());
30
10
  }
31
- })(n, 484833);
32
- var r = new Intl[t(278)](t(274)), i = new Intl[t(278)](t(274), {
33
- notation: t(283),
11
+ })(c, 989849);
12
+ var t = new Intl.NumberFormat("ko-KR"), n = new Intl.NumberFormat(e(306), {
13
+ notation: "compact",
34
14
  maximumFractionDigits: 1
35
- }), a = (e) => r[t(289)](e), o = (e) => i[t(289)](e), s = (e) => Math[t(297)](e * 1e3) / 10 + "%", c = (e, n) => {
36
- let r = t, i = e ?? r(272) + (n % 6 + 1);
37
- return i.startsWith("--") ? r(281) + i + ")" : i;
38
- }, l = (e, n) => {
39
- let r = t, i = e?.[n];
40
- return typeof i === r(300) && Number[r(271)](i) ? i : null;
15
+ }), r = (n) => t[e(285)](n), i = (t) => n[e(285)](t), a = (t) => Math[e(288)](t * 1e3) / 10 + "%", o = (t, n) => {
16
+ let r = e, i = t ?? r(295) + (n % 6 + 1);
17
+ return i[r(290)]("--") ? r(320) + i + ")" : i;
18
+ }, s = (e, t) => {
19
+ let n = e?.[t];
20
+ return typeof n == "number" && Number.isFinite(n) ? n : null;
41
21
  };
42
- function u(e, n) {
43
- let r = t, i = Math[r(277)](1, n - 1);
44
- if (e <= 0) return Array[r(287)]({ length: i + 1 }, (e, t) => t);
45
- let a = e / i, o = 10 ** Math[r(305)](Math[r(293)](a)), s = ([
22
+ function c() {
23
+ let e = /* @__PURE__ */ "DMfYkc0TywnJzw50kq.ls1JAgfYDc0.Bwf4.C3fYDa.zNjVBq.mte3mZeYntfmB2X4u1y.y2vPBa.ndm1mZbQswjus0C.DMfYkc0TC3vYzMfJzs1Hy3rPDMuP.mtqXveDbsxzU.mZCZmJvowLv0vxi.Bg9Nmta.A28Ts1i.C2XPy2u.BwLU.zMXVB3i.BgvUz3rO.mZKZodrhqKzytgW.ntyWnZi1zK5wEMLI.mZe0munXvLPpsG.BwfW.mtC1nZy0nLP3CeLTBG.CMvWBgfJzq.mta3mfrey0Tora.DMfYkc0TzgfUz2vYkq.DMfYkc0TywnJzw50lxnVzNqP.DMfYka.zM9YBwf0.DMfYkc0Ty2HHCNqTyxHPCYK.DMfYkc0TD2fYBMLUzY1ZB2z0kq.CM91BMq.mtK1nZiZnvbsDNrVBq.C3rHCNrZv2L0Aa.AM9PBG.CMv2zxjZzq.odrssM5KrfC".split(".");
24
+ return c = function() {
25
+ return e;
26
+ }, c();
27
+ }
28
+ function l(t, n) {
29
+ let r = e, i = Math.max(1, n - 1);
30
+ if (t <= 0) return Array[r(298)]({ length: i + 1 }, (e, t) => t);
31
+ let a = t / i, o = 10 ** Math[r(309)](Math[r(305)](a)), s = ([
46
32
  1,
47
33
  1.5,
48
34
  2,
@@ -53,9 +39,23 @@ function u(e, n) {
53
39
  ].find((e) => e * o >= a) ?? 10) * o;
54
40
  return Array.from({ length: i + 1 }, (e, t) => t * s);
55
41
  }
56
- var d = (e) => Math.max(...e[t(290)]((e) => e[t(294)])) * 7 + 14, f = (e, n, r = 110) => Math.max(1, Math[t(298)](e / Math[t(277)](1, Math[t(305)](n / r)))), p = (e, n) => n === t(288) && e[t(294)] > 2 ? m(e) : e[t(290)](([e, t], n) => (n ? "L" : "M") + e + "," + t)[t(275)]("");
57
- function m(e) {
58
- let n = t, r = e[n(294)], i = e[n(303)](0, -1)[n(290)](([t, n], r) => (e[r + 1][1] - n) / (e[r + 1][0] - t)), a = e[n(290)]((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[e(314)]((t) => t[e(310)])) * 7 + 14, d = (t, n, r = 110) => Math[e(296)](1, Math[e(300)](t / Math[e(296)](1, Math[e(309)](n / r)))), f = (t, n) => n === "smooth" && t[e(310)] > 2 ? m(t) : t[e(314)](([e, t], n) => (n ? "L" : "M") + e + "," + t)[e(291)]("");
43
+ function p(e, t) {
44
+ e -= 285;
45
+ let n = c(), r = n[e];
46
+ p.YfBLIj === void 0 && (p.eUIONB = function(e) {
47
+ let t = "", n = "";
48
+ 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);
49
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
50
+ return decodeURIComponent(n);
51
+ }, p.crCkLG = {}, p.YfBLIj = !0);
52
+ let i = n[0];
53
+ p.ORnCDd !== i && (p.crCkLG = {}, p.ORnCDd = i);
54
+ let a = p.crCkLG[e];
55
+ return a === void 0 ? (r = p.eUIONB(r), p.crCkLG[e] = r) : r = a, r;
56
+ }
57
+ function m(t) {
58
+ let n = e, r = t.length, i = t[n(307)](0, -1)[n(314)](([e, n], r) => (t[r + 1][1] - n) / (t[r + 1][0] - e)), a = t[n(314)]((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
59
  for (let e = 0; e < r - 1; e++) {
60
60
  if (i[e] === 0) {
61
61
  a[e] = a[e + 1] = 0;
@@ -63,34 +63,34 @@ function m(e) {
63
63
  }
64
64
  let t = a[e] / i[e], r = a[e + 1] / i[e], o = t * t + r * r;
65
65
  if (o > 9) {
66
- let s = 3 / Math[n(286)](o);
66
+ let s = 3 / Math[n(297)](o);
67
67
  a[e] = s * t * i[e], a[e + 1] = s * r * i[e];
68
68
  }
69
69
  }
70
- let o = "M" + e[0][0] + "," + e[0][1];
71
- for (let t = 0; t < r - 1; t++) {
72
- let n = (e[t + 1][0] - e[t][0]) / 3;
73
- o += "C" + (e[t][0] + n) + "," + (e[t][1] + a[t] * n) + " " + (e[t + 1][0] - n) + "," + (e[t + 1][1] - a[t + 1] * n) + " " + e[t + 1][0] + "," + e[t + 1][1];
70
+ let o = "M" + t[0][0] + "," + t[0][1];
71
+ for (let e = 0; e < r - 1; e++) {
72
+ let n = (t[e + 1][0] - t[e][0]) / 3;
73
+ o += "C" + (t[e][0] + n) + "," + (t[e][1] + a[e] * n) + " " + (t[e + 1][0] - n) + "," + (t[e + 1][1] - a[e + 1] * n) + " " + t[e + 1][0] + "," + t[e + 1][1];
74
74
  }
75
75
  return o;
76
76
  }
77
- function h(e, n, r, i, a) {
78
- let o = t, s = Math[o(277)](0, Math[o(279)](a, r / 2, i));
79
- return "M" + e + "," + (n + i) + "V" + (n + s) + "Q" + e + "," + n + " " + (e + s) + "," + n + "H" + (e + r - s) + "Q" + (e + r) + "," + n + " " + (e + r) + "," + (n + s) + "V" + (n + i) + "Z";
77
+ function h(t, n, r, i, a) {
78
+ let o = e, s = Math[o(296)](0, Math[o(308)](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";
80
80
  }
81
81
  var g = {
82
- neutral: "var(--surface-active)",
83
- accent: "var(--accent-soft)",
84
- warning: t(306),
82
+ neutral: e(302),
83
+ accent: e(319),
84
+ warning: e(287),
85
85
  danger: "var(--danger-soft)"
86
86
  }, _ = {
87
- neutral: t(304),
88
- accent: "var(--accent)",
89
- warning: t(291),
90
- danger: t(285)
91
- }, v = (e, t) => e.length ? p(e, t) : "";
92
- function y(e, n, r) {
93
- let i = t;
94
- return e[i(294)] ? "" + p(e, r) + p([...n][i(273)](), r).replace(/^M/, "L") + "Z" : "";
87
+ neutral: e(286),
88
+ accent: e(294),
89
+ warning: "var(--warning)",
90
+ danger: e(318)
91
+ }, v = (e, t) => e.length ? f(e, t) : "";
92
+ function y(t, n, r) {
93
+ let i = e;
94
+ return t[i(310)] ? "" + f(t, r) + f([...n][i(292)](), r)[i(316)](/^M/, "L") + "Z" : "";
95
95
  }
96
- export { g as CHART_TONE_SOFT, _ as CHART_TONE_STRONG, d as axisGutter, y as bandPath, h as barPath, c as chartColor, o as formatCompact, a as formatNumber, s as formatPercent, f as labelStep, v as linePath, u as niceTicks, l as numberAt };
96
+ export { g as CHART_TONE_SOFT, _ as CHART_TONE_STRONG, u as axisGutter, y as bandPath, h as barPath, o as chartColor, i as formatCompact, r as formatNumber, a as formatPercent, d as labelStep, v as linePath, l as niceTicks, s as numberAt };
@@ -1,51 +1,43 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 471;
4
- let r = l(), i = r[t];
5
- e.ekisQP === void 0 && (e.PFkmjs = function(e) {
6
- let t = "", n = "";
7
- 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);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.sLeVHZ = {}, e.ekisQP = !0);
11
- let a = r[0];
12
- e.VnhnCj !== a && (e.sLeVHZ = {}, e.VnhnCj = a);
13
- let o = e.sLeVHZ[t];
14
- return o === void 0 ? (i = e.PFkmjs(i), e.sLeVHZ[t] = i) : i = o, i;
2
+ function e() {
3
+ let t = /* @__PURE__ */ "qxjYB3DsAwDODa.nJnnuufmsw8.mJq0mtmWENb3EeXu.y3vYCMvUDa.BgfZDa.ChjLDMvUDerLzMf1Bhq.nZG4ndmYs2vHt1Ly.n0DLsvjAsG.mty3odmWsgXiywnT.y2XPzw50v2LKDgG.Bwf4.B2jZzxj2zq.mJi4nZrWtNLiAKu.mtGXndu3muHtrhzQwa.mZzqAxzZqKS.nZiYntK4sNvvqwDU.z3jVDxa.sg9Tzq.BwLU.oMzVy3vZlxzPC2LIBgu.mtyWnZDOtfbXENO.rw5K.ogrkwevZta.zMLYC3q.Bwf0y2HLCW.zgLZy29UBMvJDa.C2v0vgLTzw91Da.A2v5.B2zMC2v0sgvPz2H0.Ag92zxjhCMfJzq.B2zMC2v0v2LKDgG.y2XLyxjuAw1LB3v0.qxjYB3DeB3DU".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
15
7
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
8
+ const t = l;
9
+ (function(e, t) {
10
+ let n = l, r = e();
19
11
  for (;;) try {
20
- if (-parseInt(r(498)) / 1 * (parseInt(r(496)) / 2) + -parseInt(r(473)) / 3 * (-parseInt(r(479)) / 4) + -parseInt(r(478)) / 5 + -parseInt(r(477)) / 6 * (parseInt(r(490)) / 7) + parseInt(r(494)) / 8 + parseInt(r(472)) / 9 + parseInt(r(483)) / 10 * (parseInt(r(491)) / 11) == n) break;
21
- i.push(i.shift());
12
+ if (parseInt(n(172)) / 1 * (-parseInt(n(149)) / 2) + -parseInt(n(147)) / 3 * (-parseInt(n(174)) / 4) + parseInt(n(168)) / 5 + -parseInt(n(175)) / 6 * (parseInt(n(167)) / 7) + -parseInt(n(166)) / 8 + parseInt(n(161)) / 9 * (parseInt(n(162)) / 10) + parseInt(n(173)) / 11 == t) break;
13
+ r.push(r.shift());
22
14
  } catch {
23
- i.push(i.shift());
15
+ r.push(r.shift());
24
16
  }
25
- })(l, 957337);
17
+ })(e, 107166);
26
18
  import { TIMING as n } from "../../hooks/timing.js";
27
19
  import { useControllableState as r } from "../../hooks/useControllableState.js";
28
20
  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 = t(487) }) {
30
- let p = t, [m, h] = r(l, u, d), g = o(null), _ = o(null), [v, y] = s(0), [b, x] = s({
21
+ function c({ count: e, activeIndex: c, defaultActiveIndex: u = null, onActiveIndexChange: d, initialKeyboardIndex: f = t(164) }) {
22
+ let p = t, [m, h] = r(c, u, d), g = o(null), _ = o(null), [v, y] = s(0), [b, x] = s({
31
23
  w: 0,
32
24
  h: 0
33
25
  }), S = o(void 0);
34
26
  a(() => {
35
- let t = e, n = g.current, r = _.current;
36
- if (!n) return;
37
- let i = new ResizeObserver(() => {
38
- let t = e;
39
- y(n[t(471)]), r && x((e) => e.w === r[t(488)] && e.h === r[t(485)] ? e : {
40
- w: r[t(488)],
41
- h: r.offsetHeight
27
+ let e = l, t = g[e(163)], n = _[e(163)];
28
+ if (!t) return;
29
+ let r = new ResizeObserver(() => {
30
+ let r = e;
31
+ y(t[r(169)]), n && x((e) => e.w === n[r(157)] && e.h === n[r(155)] ? e : {
32
+ w: n.offsetWidth,
33
+ h: n[r(155)]
42
34
  });
43
35
  });
44
- return i[t(484)](n), r && i[t(484)](r), y(n[t(471)]), () => i[t(474)]();
45
- }, []), i(() => () => window.clearTimeout(S.current), []);
46
- let C = m !== null && m < c, [w, T] = s(m);
36
+ return r[e(171)](t), n && r.observe(n), y(t[e(169)]), () => r[e(152)]();
37
+ }, []), i(() => () => window[p(158)](S[p(163)]), []);
38
+ let C = m !== null && m < e, [w, T] = s(m);
47
39
  C && m !== w && T(m);
48
- let E = w !== null && w < c ? w : null, [D, O] = s(!1);
40
+ let E = w !== null && w < e ? w : null, [D, O] = s(!1);
49
41
  return !C && D && O(!1), i(() => {
50
42
  if (!C) return;
51
43
  let e = requestAnimationFrame(() => e = requestAnimationFrame(() => O(!0)));
@@ -59,36 +51,44 @@ function c({ count: c, activeIndex: l, defaultActiveIndex: u = null, onActiveInd
59
51
  width: v,
60
52
  tipRef: _,
61
53
  tipSize: b,
62
- hover: (t) => {
63
- let n = e;
64
- window.clearTimeout(S[n(480)]), t !== m && h(t);
54
+ hover: (e) => {
55
+ let t = p;
56
+ window[t(158)](S[t(163)]), e !== m && h(e);
65
57
  },
66
58
  leave: () => {
67
- let t = e;
68
- window[t(481)](S[t(480)]), S[t(480)] = window.setTimeout(() => h(null), n.hoverGrace);
59
+ let e = p;
60
+ window[e(158)](S[e(163)]), S.current = window[e(153)](() => h(null), n[e(156)]);
69
61
  },
70
62
  plotProps: {
71
63
  ref: g,
72
64
  tabIndex: 0,
73
- role: p(497),
65
+ role: p(143),
74
66
  onKeyDown: (t) => {
75
- let n = e;
76
- if (!c) return;
77
- let r = m ?? (f === n(482) ? 0 : c - 1), i = t[n(495)] === "ArrowRight" || t.key === "ArrowDown" ? Math[n(499)](c - 1, r + 1) : t[n(495)] === "ArrowLeft" || t[n(495)] === "ArrowUp" ? Math.max(0, r - 1) : t[n(495)] === "Home" ? 0 : t[n(495)] === n(475) ? c - 1 : void 0;
78
- i === void 0 ? t[n(495)] === n(489) && m !== null && (t[n(493)](), h(null)) : (t[n(493)](), h(i));
67
+ let n = p;
68
+ if (!e) return;
69
+ let r = m ?? (f === n(150) ? 0 : e - 1), i = t[n(154)] === n(160) || t.key === n(159) ? Math[n(145)](e - 1, r + 1) : t.key === "ArrowLeft" || t.key === "ArrowUp" ? Math[n(170)](0, r - 1) : t[n(154)] === n(144) ? 0 : t[n(154)] === n(148) ? e - 1 : void 0;
70
+ i === void 0 ? t[n(154)] === "Escape" && m !== null && (t[n(165)](), h(null)) : (t[n(165)](), h(i));
79
71
  },
80
- onFocus: (e) => {
81
- let t = p;
82
- e[t(476)][t(486)](t(492)) && m === null && c && h(f === t(482) ? 0 : c - 1);
72
+ onFocus: (t) => {
73
+ let n = p;
74
+ t.currentTarget[n(151)](n(146)) && m === null && e && h(f === n(150) ? 0 : e - 1);
83
75
  },
84
76
  onBlur: () => h(null)
85
77
  }
86
78
  };
87
79
  }
88
- function l() {
89
- let e = /* @__PURE__ */ "y3vYCMvUDa.y2XLyxjuAw1LB3v0.zMLYC3q.mZuXmteWD3b1zNv6.B2jZzxj2zq.B2zMC2v0sgvPz2H0.Bwf0y2HLCW.BgfZDa.B2zMC2v0v2LKDgG.rxnJyxbL.nZG4nti5v3zWru9M.mJK3EKLlCuvg.oMzVy3vZlxzPC2LIBgu.ChjLDMvUDerLzMf1Bhq.ndmYndK1mMfPtvvYBG.A2v5.nJCXmZjTA2rnAMy.z3jVDxa.ndrSrw9KwwS.BwLU.y2XPzw50v2LKDgG.odC3ndK1nvHvy09PuW.ndK4mtG5CgnZCMzv.zgLZy29UBMvJDa.rw5K.y3vYCMvUDfrHCMDLDa.nJznr0nOCKG.mJi1ndqXnunpBKPeta.ndbssejbuw8".split(".");
90
- return l = function() {
91
- return e;
92
- }, l();
80
+ function l(t, n) {
81
+ t -= 143;
82
+ let r = e(), i = r[t];
83
+ l.EcvkMw === void 0 && (l.kIUajP = function(e) {
84
+ let t = "", n = "";
85
+ 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);
86
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
87
+ return decodeURIComponent(n);
88
+ }, l.CEEYHd = {}, l.EcvkMw = !0);
89
+ let a = r[0];
90
+ l.ROdnnf !== a && (l.CEEYHd = {}, l.ROdnnf = a);
91
+ let o = l.CEEYHd[t];
92
+ return o === void 0 ? (i = l.kIUajP(i), l.CEEYHd[t] = i) : i = o, i;
93
93
  }
94
94
  export { c as useChartInteraction };
@@ -1,105 +1,125 @@
1
1
  "use client";
2
- const e = D;
2
+ const e = r;
3
3
  (function(e, t) {
4
- let n = D, r = e();
4
+ let n = r, i = e();
5
5
  for (;;) try {
6
- if (parseInt(n(358)) / 1 * (-parseInt(n(354)) / 2) + -parseInt(n(341)) / 3 + -parseInt(n(377)) / 4 + -parseInt(n(342)) / 5 * (parseInt(n(368)) / 6) + -parseInt(n(366)) / 7 * (parseInt(n(371)) / 8) + -parseInt(n(379)) / 9 + parseInt(n(362)) / 10 * (parseInt(n(369)) / 11) == t) break;
7
- r.push(r.shift());
6
+ if (parseInt(n(315)) / 1 * (parseInt(n(339)) / 2) + parseInt(n(335)) / 3 * (-parseInt(n(330)) / 4) + -parseInt(n(312)) / 5 + -parseInt(n(338)) / 6 + parseInt(n(319)) / 7 * (-parseInt(n(310)) / 8) + -parseInt(n(301)) / 9 * (-parseInt(n(325)) / 10) + parseInt(n(305)) / 11 == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(T, 905697);
11
+ })(o, 655216);
12
12
  import { Spinner as t } from "../../primitives/Spinner2.js";
13
13
  import { Text as n } from "../../primitives/Typography2.js";
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";
14
+ function r(e, t) {
15
+ e -= 296;
16
+ let n = o(), i = n[e];
17
+ r.NqOgIJ === void 0 && (r.eZsoQg = function(e) {
18
+ let t = "", n = "";
19
+ 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);
20
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
+ return decodeURIComponent(n);
22
+ }, r.lswiZT = {}, r.NqOgIJ = !0);
23
+ let a = n[0];
24
+ r.sJcFdY !== a && (r.lswiZT = {}, r.sJcFdY = a);
25
+ let s = r.lswiZT[e];
26
+ return s === void 0 ? (i = r.eZsoQg(i), r.lswiZT[e] = i) : i = s, i;
27
+ }
28
+ import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
29
+ function o() {
30
+ let e = /* @__PURE__ */ "zMfPBgvK.oufbA0nwDG.BgvUz3rO.BMv1DhjHBa.ndG4ntmYmgzxwML6Aq.mtzKzvfbu3m.y2fWDgLVBG.C2vJB25Kyxj5.Aw1N.zhmTy2HHDc1IDwjIBgvFx3n0yxr1CW.Cg9ZAxrPB24.C3rHDhvZ.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.yM9KEs1Tza.zhmTy2HHDc1IDwjIBgvFx2fJDgLVBNm.zhmTy2HHDc1NCM91Ca.BgfIzwWTC20.C2LKzq.zgfUz2vY.C3bHBG.mtCWmtLguKDJDvy.7j6f66cLioYKKq.z3jVDxa.C2vUzgLUzW.mJuXmJGZndvLBLfKywe.BgfZDa.67o064k064QuioYKKq.Aw5OzxjPDa.zw5K.mZKYww95weXL.zhmTy2HHDc1IDwjIBgu.mtG3otq1nuj1uw5KtW.zMLYC3q.zhmTy2HHDc1IDwjIBgvFx3jVDW.nda1mtLLrwrVueW.7j2yioUPLoYlNoYNGa.Dg9bCNjHEq.BwfW.mtu5nZmZt3DQBvnm.7kce7iAH65cO.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.7kce7iAHioYlPo2mQa.z2HVC3q.C2LUz2XL.mZaYmfDcB2TqyG.C3rHCNq.uhjVDMLKzxi.64UK7iUCioUZToUcToQ4Sa.zhmTy2HHDc1IDwjIBgvFx2zPBgW.mJG4mJi4qLDQtK5s.r3jVDxa.zgL2.C3rYAw5N".split(".");
31
+ return o = function() {
32
+ return e;
33
+ }, o();
34
+ }
35
+ import { RelativeTime as s } from "../../primitives/RelativeTime.js";
36
+ import { Avatar as c, Button as l, cx as u } from "../../primitives/index.js";
37
+ import { formatChatTime as d } from "./formatChatTime.js";
18
38
  /* 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: e(338),
24
- sent: e(360),
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: e(307),
44
+ sent: e(320),
25
45
  read: "읽음",
26
- failed: e(356)
46
+ failed: e(322)
27
47
  };
28
- function C({ status: n }) {
48
+ function T({ status: n }) {
29
49
  let r = e;
30
- if (n === r(346)) return y(t, {
50
+ if (n === r(304)) return x(t, {
31
51
  size: 12,
32
- tone: r(345),
33
- label: S[r(346)]
52
+ tone: r(308),
53
+ label: w[r(304)]
34
54
  });
35
- if (n === r(336)) return null;
36
- let i = n === r(359) ? g : h;
37
- return y(r(332), {
38
- className: r(348),
55
+ if (n === "failed") return null;
56
+ let i = n === "read" ? v : _;
57
+ return x(r(300), {
58
+ className: r(343),
39
59
  "data-status": n,
40
- role: "img",
41
- "aria-label": S[n],
42
- children: y(i, { "aria-hidden": !0 })
60
+ role: r(342),
61
+ "aria-label": w[n],
62
+ children: x(i, { "aria-hidden": !0 })
43
63
  });
44
64
  }
45
- function w({ side: t, tone: o, position: u, children: d, time: f, status: h, onRetry: g, typing: w, actions: T, footer: E, appear: D, className: O, style: k }) {
46
- let A = e, j = p(x), M = t ?? j?.side ?? A(367), N = u ?? j?.[A(370)] ?? A(380), P = o ?? (M === A(344) ? A(376) : A(331)), F = N === A(380) || N === A(337), I = F && (f != null || h != null) || h === A(346) || h === A(336), L = y(n, {
65
+ function E({ side: t, tone: r, position: o, children: c, time: f, status: p, onRetry: m, typing: _, actions: v, footer: E, appear: D, className: O, style: k }) {
66
+ let A = e, j = h(C), M = t ?? j?.[A(298)] ?? A(326), N = o ?? j?.[A(344)] ?? A(324), P = r ?? (M === A(309) ? "accent" : A(337)), F = N === "single" || N === A(306), I = F && (f != null || p != null) || p === A(304) || p === A(334), L = x(n, {
47
67
  as: "div",
48
- variant: "body-md",
49
- tone: A(345),
50
- className: c("ds-chat-bubble__fill", A(363) + P),
51
- "data-typing": w || void 0,
52
- children: w ? b(A(332), {
53
- className: A(340),
54
- role: A(335),
55
- "aria-label": A(372),
68
+ variant: A(347),
69
+ tone: "inherit",
70
+ className: u(A(329), "ds-chat-bubble__fill--" + P),
71
+ "data-typing": _ || void 0,
72
+ children: _ ? S(A(300), {
73
+ className: "ds-chat-bubble__dots",
74
+ role: A(345),
75
+ "aria-label": A(302),
56
76
  children: [
57
- y(A(332), {}),
58
- y("span", {}),
59
- y(A(332), {})
77
+ x(A(300), {}),
78
+ x(A(300), {}),
79
+ x("span", {})
60
80
  ]
61
- }) : d
62
- }), R = I && y(r, {
81
+ }) : c
82
+ }), R = I && x(i, {
63
83
  gap: 1,
64
84
  wrap: !1,
65
- className: A(343),
66
- "data-failed": h === A(336) || void 0,
67
- children: h === "failed" ? b(v, { children: [y(m, {
85
+ className: "ds-chat-bubble__meta",
86
+ "data-failed": p === A(334) || void 0,
87
+ children: p === A(334) ? S(b, { children: [x(g, {
68
88
  "aria-hidden": !0,
69
- className: A(365)
70
- }), y(n, {
71
- variant: A(383),
72
- tone: A(351),
73
- children: S[A(336)]
74
- })] }) : b(v, { children: [h && y(C, { status: h }), F && f != null && y(a, {
89
+ className: A(321)
90
+ }), x(n, {
91
+ variant: A(340),
92
+ tone: A(299),
93
+ children: w.failed
94
+ })] }) : S(b, { children: [p && x(T, { status: p }), F && f != null && x(s, {
75
95
  date: f,
76
- format: l,
96
+ format: d,
77
97
  refreshInterval: !1
78
98
  })] })
79
- }), z = h === A(336) && g && y(s, {
80
- variant: "ghost",
99
+ }), z = p === A(334) && m && x(l, {
100
+ variant: A(323),
81
101
  size: "sm",
82
- icon: y(_, {}),
83
- onClick: g,
84
- children: A(361)
85
- }), B = T && y(A(332), {
86
- className: A(352),
87
- children: T
102
+ icon: x(y, {}),
103
+ onClick: m,
104
+ children: A(328)
105
+ }), B = v && x(A(300), {
106
+ className: A(348),
107
+ children: v
88
108
  });
89
- return b(i, {
109
+ return S(a, {
90
110
  gap: 1,
91
- align: M === A(344) ? A(344) : A(367),
92
- className: c("ds-chat-bubble", O),
111
+ align: M === A(309) ? A(309) : A(326),
112
+ className: u(A(311), O),
93
113
  "data-side": M,
94
114
  "data-position": N,
95
- "data-status": h,
115
+ "data-status": p,
96
116
  "data-appear": D || void 0,
97
117
  style: k,
98
- children: [b(r, {
118
+ children: [S(i, {
99
119
  gap: 2,
100
- align: A(344),
120
+ align: A(309),
101
121
  wrap: !1,
102
- className: A(349),
122
+ className: A(314),
103
123
  children: [
104
124
  L,
105
125
  R,
@@ -109,66 +129,46 @@ function w({ side: t, tone: o, position: u, children: d, time: f, status: h, onR
109
129
  }), E]
110
130
  });
111
131
  }
112
- function T() {
113
- let e = /* @__PURE__ */ "zhmTy2HHDc1IDwjIBgvFx2zPBgWTlq.BwfW.zhmTy2HHDc1IDwjIBgvFx2fSzxj0.mtGXnZjbB0LtsvK.C3rHCNq.mZe3otiYwvnqExrw.mtq5mZHRC1jfBhK.Cg9ZAxrPB24.mJm0nhHWuhnYrG.7j6f66cLioYKKq.C3rYAw5N.zhmTy2HHDc1NCM91Cf9FyxzHDgfY.zgL2.ywnJzw50.mZe5ody0A3vYvNrW.zMLSDgvY.mtqXmZi1odnxDKfSrMK.C2LUz2XL.BgvUz3rO.BwLKzgXL.y2fWDgLVBG.BMv1DhjHBa.C3bHBG.zhmTy2HHDc1NCM91Cf9FBMfTzq.A2v5.C3rHDhvZ.zMfPBgvK.BgfZDa.67o064k064QuioYKKq.uhjVDMLKzxi.zhmTy2HHDc1IDwjIBgvFx2rVDhm.ndCXntCWuhHrv3zi.otbPCg5Xv1i.zhmTy2HHDc1IDwjIBgvFx21LDge.zw5K.Aw5OzxjPDa.C2vUzgLUzW.zMLYC3q.zhmTy2HHDc1IDwjIBgvFx3n0yxr1CW.zhmTy2HHDc1IDwjIBgvFx3jVDW.zhmTy2HHDc1NCM91Ca.zgfUz2vY.zhmTy2HHDc1IDwjIBgvFx2fJDgLVBNm.r3jVDxa.mteZmtm2nejOs3bVrq.C2vJB25Kyxj5.7kce7iAHioYlPo2mQa.zhmTy2HHDc1NCM91Cf9FyNvIyMXLCW.m3bHq2rssa.CMvHza.7kce7iAH65cO.64UK7iUCioUZToUcToQ4Sa.nduXmdbtB2XZBLe".split(".");
114
- return T = function() {
115
- return e;
116
- }, T();
117
- }
118
- function E({ author: t, avatar: a, side: s = e(367), avatarSize: l = 28, showName: d = s === e(367), children: p, className: m, style: h }) {
119
- let g = e, _ = u.toArray(p)[g(378)](f), v = _[g(381)] - 1, S = s === g(367) && (a === void 0 ? typeof t === g(373) ? y(o, {
132
+ function D({ author: t, avatar: r, side: o = e(326), avatarSize: s = 28, showName: l = o === e(326), children: d, className: p, style: h }) {
133
+ let g = e, _ = f[g(317)](d).filter(m), v = _[g(336)] - 1, y = o === g(326) && (r === void 0 ? typeof t === g(333) ? x(c, {
120
134
  name: t,
121
- size: l
122
- }) : null : a), C = b(i, {
135
+ size: s
136
+ }) : null : r), b = S(a, {
123
137
  gap: 1,
124
- align: s === g(344) ? g(344) : "start",
125
- className: g(357),
126
- children: [d && t != null && y(n, {
127
- variant: "label-sm",
128
- tone: g(355),
129
- className: g(333),
138
+ align: o === g(309) ? g(309) : "start",
139
+ className: "ds-chat-group__bubbles",
140
+ children: [l && t != null && x(n, {
141
+ variant: g(297),
142
+ tone: g(341),
143
+ className: "ds-chat-group__name",
130
144
  children: t
131
- }), _[g(364)]((e, t) => y(x[g(339)], {
145
+ }), _[g(318)]((e, t) => x(C[g(327)], {
132
146
  value: {
133
- side: s,
134
- position: g(v === 0 ? 380 : t === 0 ? 347 : t === v ? 337 : 382)
147
+ side: o,
148
+ position: v === 0 ? "single" : t === 0 ? g(313) : t === v ? g(306) : "middle"
135
149
  },
136
150
  children: e
137
- }, e[g(334)] ?? t))]
151
+ }, e.key ?? t))]
138
152
  });
139
- return y(g(375), {
140
- className: c(g(350), m),
141
- "data-side": s,
142
- role: "group",
143
- "aria-label": typeof t === g(373) ? t + "의 메시지" : void 0,
153
+ return x(g(332), {
154
+ className: u(g(296), p),
155
+ "data-side": o,
156
+ role: g(303),
157
+ "aria-label": typeof t == "string" ? t + g(316) : void 0,
144
158
  style: {
145
- "--_avatar": l + "px",
159
+ "--_avatar": s + "px",
146
160
  ...h
147
161
  },
148
- children: s === "start" && (S || a === null) ? b(r, {
162
+ children: o === g(326) && (y || r === null) ? S(i, {
149
163
  gap: 2,
150
- align: g(367),
164
+ align: g(326),
151
165
  wrap: !1,
152
- children: [y(g(332), {
153
- className: g(374),
154
- children: S
155
- }), C]
156
- }) : C
166
+ children: [x("span", {
167
+ className: g(346),
168
+ children: y
169
+ }), b]
170
+ }) : b
157
171
  });
158
172
  }
159
- w[e(353)] = E;
160
- function D(e, t) {
161
- e -= 331;
162
- let n = T(), r = n[e];
163
- D.FMKRsp === void 0 && (D.CPNoDr = function(e) {
164
- let t = "", n = "";
165
- 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);
166
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
167
- return decodeURIComponent(n);
168
- }, D.zLNDCw = {}, D.FMKRsp = !0);
169
- let i = n[0];
170
- D.kjIBGp !== i && (D.zLNDCw = {}, D.kjIBGp = i);
171
- let a = D.zLNDCw[e];
172
- return a === void 0 ? (r = D.CPNoDr(r), D.zLNDCw[e] = r) : r = a, r;
173
- }
174
- export { w as ChatBubble, E as ChatBubbleGroup };
173
+ E[e(331)] = D;
174
+ export { E as ChatBubble, D as ChatBubbleGroup };