@iamfiro/design 0.3.4 → 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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,49 +1,49 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, n) {
4
- e -= 349;
5
- let r = c(), i = r[e];
6
- t.EvfvwO === void 0 && (t.fGXehm = function(e) {
2
+ const e = s;
3
+ (function(e, t) {
4
+ let n = s, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(475)) / 1 + -parseInt(n(498)) / 2 * (parseInt(n(484)) / 3) + -parseInt(n(485)) / 4 * (parseInt(n(505)) / 5) + -parseInt(n(449)) / 6 + -parseInt(n(465)) / 7 + -parseInt(n(495)) / 8 + parseInt(n(470)) / 9 * (parseInt(n(454)) / 10) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(c, 458968);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Inline as n } from "../../primitives/Layout2.js";
14
+ import { Button as r, cx as i } from "../../primitives/index.js";
15
+ import { Popover as a } from "../Popover/Popover2.js";
16
+ import { useDiffReview as o } from "./useDiffReview.js";
17
+ function s(e, t) {
18
+ e -= 433;
19
+ let n = c(), r = n[e];
20
+ s.vVjSlE === void 0 && (s.YVShtI = function(e) {
7
21
  let t = "", n = "";
8
22
  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);
9
23
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
24
  return decodeURIComponent(n);
11
- }, t.TLgRlJ = {}, t.EvfvwO = !0);
12
- let a = r[0];
13
- t.NTQMCE !== a && (t.TLgRlJ = {}, t.NTQMCE = a);
14
- let o = t.TLgRlJ[e];
15
- return o === void 0 ? (i = t.fGXehm(i), t.TLgRlJ[e] = i) : i = o, i;
25
+ }, s.XMwqap = {}, s.vVjSlE = !0);
26
+ let i = n[0];
27
+ s.njHGow !== i && (s.XMwqap = {}, s.njHGow = i);
28
+ let a = s.XMwqap[e];
29
+ return a === void 0 ? (r = s.YVShtI(r), s.XMwqap[e] = r) : r = a, r;
16
30
  }
17
- (function(e, n) {
18
- let r = t, i = e();
19
- for (;;) try {
20
- if (-parseInt(r(390)) / 1 + -parseInt(r(350)) / 2 * (parseInt(r(369)) / 3) + -parseInt(r(392)) / 4 * (parseInt(r(368)) / 5) + -parseInt(r(374)) / 6 + parseInt(r(414)) / 7 * (-parseInt(r(386)) / 8) + -parseInt(r(410)) / 9 + parseInt(r(383)) / 10 == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(c, 952701);
26
- import { Text as n } from "../../primitives/Typography2.js";
27
- import { Inline as r } from "../../primitives/Layout2.js";
28
- import { Button as i, cx as a } from "../../primitives/index.js";
29
- import { Popover as o } from "../Popover/Popover2.js";
30
- import { useDiffReview as s } from "./useDiffReview.js";
31
- /* empty css */
32
31
  function c() {
33
- let e = /* @__PURE__ */ "y2HHBMDLswq.65cy64+m66AS6RIW.nLLmBNvpuW.zgLHBg9N.DhLWzq.7ikT7kcCoIa.7lAu6RcaoIa.zhmTzgLMzL9Fy2HHBMDL.z2v0rwXLBwvUDej5swq.z29uBW.zgvJAxnPB25Z.BgfIzwWTC20.w2rHDgeTy3vYCMvUDf0.DgfYz2v0.y3vYCMvUDfrHCMDLDa.ChjPBwfYEq.y2HHBMDLCW.Dgv4Da.C2vJB25Kyxj5.qxjYB3DsAwDODa.mJvfvMXbqLC.mtu0nJu1nfDjsezbyW.Aw5Z.zhmTzgLMzL9FCgfYDc0T.CgfYDhm.67oa6Rk9ioQYGo2gOa.nJGXntiYwenive56.C3bHBG.Aw5Zzxj0.zgvS.CMvQzwn0zwq.ChjLDMvUDerLzMf1Bhq.6RgW7kci7zAi7jA07jQu.zgvJAwrL.zhmTzgLMzI0TCMv2Awv3.nte0ndiXntbJzgLRCwO.zgf0yxnLDa.qxjYB3Dmzwz0.oda2oti4tLPbCfPN.AgLKzgvU.C2v0q3vYCMvUDa.w2rHDgeTy2HHBMDLlwLKxq.ndq4nJGXy2fntMPr.zhmTC3iTB25SEq.otK4mZu2C25cuw5n.ywnJzxb0zwq.zxf1ywW.ChvZAa.C21VB3rO.zM9JDxm.zhmTzgLMzL9FDgv4Da.qxjYB3DvCa.AxndB21WB3nPBMC.yM9KEs1Tza.y29UDgfPBNm.BMf0AxzLrxzLBNq.BMvHCMvZDa.yNv0Dg9U.CxvLCNLtzwXLy3rVCG.B3v0.BgvUz3rO.6RgW7kci7zwO.nJyWndKYoxLYt25xqq.BwfW.7iIy65297zAi7jA07jQu.zNjVBq.n2fABxLrsq.qxjYB3DeB3DU.y2HHBMDL".split(".");
32
+ let e = /* @__PURE__ */ "BMvHCMvZDa.zhmTzgLMzL9FCgfYDa.C2vJB25Kyxj5.C21VB3rO.ntq2nJy3uhPVBhzM.6RgW7kci7zwO.rw5K.zhmTzgLMzI0TCMv2Awv3.rw50zxi.zhmTC3iTB25SEq.BwfW.zhmTzgLMzG.zgvJAwrL.ntGWnJK1v0vIy1jZ.ntq4mtjTD2Xoy3u.CMvQzwn0zwq.Dgv4Da.B3v0.7lAu6RcaoIa.sg9Tzq.zNjVBq.y3vYCMvUDfrHCMDLDa.yM9KEs1Tza.7iIy65297zwO.mtqZmdmWngLIsuvTqq.y2HHBMDLCW.zgvJAxnPB25Z.nLzos0Luza.BgfIzwWTC20.qxjYB3DsAwDODa.qxjYB3DeB3DU.7ikT7kcCoIa.Aw5Z.AgLKzgvU.mJG1wefZr09e.y2XVC2vZDa.zhmTzgLMzL9FCgfYDc0T.zM9JDxm.z29uBW.67oa6Rk9ioQYGo2gOa.A2v5.CgvUzgLUzW.C2v0q3vYCMvUDa.zgLHBg9N.6RgW7kci7zAi7jA07jQu.zgvSzxrL.y2HHBMDL.65cy64+m66AS6RIW.AxndB21WB3nPBMC.DhLWzq.BgvUz3rO.mJK0odu5ogHuC2Xwtq.DgfYz2v0.C3bHBG.w2rHDgeTy3vYCMvUDf0.Aw5Zzxj0.ote1odeZmhnOq3PezG.CgfYDhm.z2HVC3q.ChvZAa.z2v0rwXLBwvUDej5swq.ywnJzxb0zwq.y29UDgfPBNm.zhmTzgLMzL9FDgv4Da.ChjLDMvUDerLzMf1Bhq.A2LUza.qxjYB3Dmzwz0.ndm3otqXmfznCMHAvG.qxjYB3DvCa.C2nYB2XSsw50B1zPzxC.y2HHBMDLswq.CxvLCNLtzwXLy3rVCG.mZzxq0X1B3e".split(".");
34
33
  return c = function() {
35
34
  return e;
36
35
  }, c();
37
36
  }
37
+ /* empty css */
38
38
  import { useEffect as l, useId as u, useState as d } from "react";
39
39
  import { Check as f, Undo2 as p, X as m } from "lucide-react";
40
40
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
41
41
  var _ = {
42
- accepted: "수락함",
43
- rejected: e(409)
44
- }, v = (t, n) => t === "delete" && n === e(393) || t === e(376) && n === e(378);
45
- function y({ changes: c, before: _, after: v, review: y, reviewable: x, decisions: S, defaultDecisions: C, onDecisionsChange: w, variant: T = e(401), as: E = "p", "aria-label": D, className: O, style: k }) {
46
- let A = e, j = s({
42
+ accepted: e(494),
43
+ rejected: e(476)
44
+ }, v = (t, n) => t === "delete" && n === e(459) || t === e(453) && n === "rejected";
45
+ function y({ changes: c, before: _, after: v, review: y, reviewable: x, decisions: S, defaultDecisions: C, onDecisionsChange: w, variant: T = e(493), as: E = "p", "aria-label": D, className: O, style: k }) {
46
+ let A = e, j = o({
47
47
  changes: c,
48
48
  before: _,
49
49
  after: v,
@@ -52,124 +52,123 @@ function y({ changes: c, before: _, after: v, review: y, reviewable: x, decision
52
52
  onDecisionsChange: w
53
53
  }), M = y ?? j, N = x ?? y != null, P = u(), [F, I] = d(null), [L, R] = d(0), { segments: z, current: B, navToken: V } = M;
54
54
  l(() => {
55
- let e = t;
56
- V && document.getElementById(P)?.[e(406)](e(360))?.scrollIntoView({
57
- block: e(404),
58
- inline: e(404),
59
- behavior: e(396)
55
+ let e = s;
56
+ V && document[e(458)](P)?.querySelector(e(452))?.[e(467)]({
57
+ block: e(471),
58
+ inline: e(471),
59
+ behavior: e(474)
60
60
  });
61
61
  }, [V, P]), l(() => {
62
- let e = t;
63
- L && document[e(356)](P)?.querySelector(e(360))?.[e(397)]({ preventScroll: !0 });
62
+ let e = s;
63
+ L && document.getElementById(P)?.[e(469)]("[data-current]")?.[e(435)]({ preventScroll: !0 });
64
64
  }, [L, P]);
65
65
  let H = [];
66
66
  for (let e of z) {
67
- let t = H[H[A(408)] - 1];
68
- e[A(352)] === A(394) || e[A(417)] == null ? H[A(395)]({
69
- kind: A(365),
70
- text: e[A(365)]
71
- }) : t?.kind === A(416) && t.id === e[A(417)] ? t[A(372)][A(395)](e) : H[A(395)]({
72
- kind: A(416),
73
- id: e[A(417)],
67
+ let t = H[H[A(448)] - 1];
68
+ e[A(447)] === "equal" || e[A(468)] == null ? H[A(457)]({
69
+ kind: A(487),
70
+ text: e.text
71
+ }) : t?.kind === A(444) && t.id === e[A(468)] ? t[A(455)][A(457)](e) : H[A(457)]({
72
+ kind: A(444),
73
+ id: e[A(468)],
74
74
  parts: [e]
75
75
  });
76
76
  }
77
- let U = B ?? M[A(364)][0]?.id, W = (e) => {
77
+ let U = B ?? M[A(496)][0]?.id, W = (e) => {
78
78
  let t = A;
79
- if (!N || e[t(403)][t(400)] || !e[t(362)][t(402)](e.target)) return;
80
- let n = e[t(361)].closest(t(389))?.[t(384)][t(417)], r = M[t(364)][t(411)]((e) => e.id), i = n == null ? -1 : r.indexOf(n);
79
+ if (!N || e.nativeEvent[t(446)] || !e[t(492)][t(460)](e[t(450)])) return;
80
+ let n = e.target[t(433)]("[data-change-id]")?.dataset[t(468)], r = M[t(496)][t(481)]((e) => e.id), i = n == null ? -1 : r.indexOf(n);
81
81
  if (n == null || i < 0) return;
82
82
  let a;
83
- switch (e.key) {
84
- case t(367):
85
- case t(415):
86
- a = r[(i + 1) % r[t(408)]];
83
+ switch (e[t(438)]) {
84
+ case t(500):
85
+ case t(501):
86
+ a = r[(i + 1) % r[t(448)]];
87
87
  break;
88
- case t(385):
89
- case t(399):
90
- a = r[(i - 1 + r[t(408)]) % r[t(408)]];
88
+ case t(464):
89
+ case t(466):
90
+ a = r[(i - 1 + r.length) % r[t(448)]];
91
91
  break;
92
- case "Home":
92
+ case t(490):
93
93
  a = r[0];
94
94
  break;
95
- case "End":
96
- a = r[r[t(408)] - 1];
95
+ case t(477):
96
+ a = r[r[t(448)] - 1];
97
97
  break;
98
- case "Enter":
98
+ case t(479):
99
99
  case " ":
100
- e[t(379)](), M[t(388)](n), I(n);
100
+ e.preventDefault(), M[t(440)](n), I(n);
101
101
  return;
102
102
  default: return;
103
103
  }
104
- e[t(379)](), M[t(357)](a), R((e) => e + 1);
104
+ e[t(462)](), M[t(436)](a), R((e) => e + 1);
105
105
  }, G = (e, t, n) => {
106
- M[A(381)](e, t), n(), R((e) => e + 1);
106
+ M[A(483)](e, t), n(), R((e) => e + 1);
107
107
  };
108
- return h(n, {
108
+ return h(t, {
109
109
  as: E,
110
110
  id: P,
111
111
  variant: T,
112
112
  "aria-label": D,
113
- className: a("ds-diff", N && A(382), O),
113
+ className: i(A(482), N && A(478), O),
114
114
  style: k,
115
115
  onKeyDown: N ? W : void 0,
116
- children: H[A(411)]((e, t) => {
117
- let a = A;
118
- if (e.kind === a(365)) return h(a(375), { children: e[a(365)] }, "t" + t);
119
- let s = M[a(358)][e.id], c = h(b, {
116
+ children: H.map((e, i) => {
117
+ let o = A;
118
+ if (e[o(463)] === "text") return h("span", { children: e.text }, "t" + i);
119
+ let s = M[o(497)][e.id], c = h(b, {
120
120
  id: e.id,
121
- parts: e[a(372)],
121
+ parts: e[o(455)],
122
122
  decision: s,
123
123
  current: e.id === B,
124
124
  interactive: N,
125
125
  tabbable: e.id === U,
126
- onFocus: () => M.setCurrent(e.id)
126
+ onFocus: () => M[o(440)](e.id)
127
127
  });
128
- return N ? h(o, {
128
+ return N ? h(a, {
129
129
  trigger: c,
130
130
  open: F === e.id,
131
131
  onOpenChange: (t) => {
132
- let n = a;
133
- I(t ? e.id : null), t && M[n(388)](e.id);
132
+ I(t ? e.id : null), t && M.setCurrent(e.id);
134
133
  },
135
134
  padding: "sm",
136
- "aria-label": a(373),
137
- children: (t) => s ? g(r, {
135
+ "aria-label": o(437),
136
+ children: (i) => s ? g(n, {
138
137
  gap: 2,
139
138
  wrap: !1,
140
- children: [h(n, {
141
- variant: a(359),
142
- tone: a(366),
143
- children: s === a(393) ? a(412) : a(380)
144
- }), h(i, {
139
+ children: [h(t, {
140
+ variant: o(499),
141
+ tone: "secondary",
142
+ children: s === o(459) ? "수락했어요" : o(442)
143
+ }), h(r, {
145
144
  size: "sm",
146
- variant: "ghost",
145
+ variant: o(456),
147
146
  icon: h(p, {}),
148
- onClick: () => G(e.id, null, t),
149
- children: a(349)
147
+ onClick: () => G(e.id, null, i),
148
+ children: o(445)
150
149
  })]
151
- }) : g(r, {
150
+ }) : g(n, {
152
151
  gap: 1,
153
152
  wrap: !1,
154
- children: [h(i, {
153
+ children: [h(r, {
155
154
  size: "sm",
156
- variant: a(366),
155
+ variant: o(473),
157
156
  icon: h(m, {}),
158
- onClick: () => G(e.id, a(378), t),
157
+ onClick: () => G(e.id, o(486), i),
159
158
  children: "거절"
160
- }), h(i, {
159
+ }), h(r, {
161
160
  size: "sm",
162
- variant: a(363),
161
+ variant: "primary",
163
162
  icon: h(f, {}),
164
- onClick: () => G(e.id, a(393), t),
163
+ onClick: () => G(e.id, "accepted", i),
165
164
  children: "수락"
166
165
  })]
167
166
  })
168
- }, "c" + t) : h(a(375), { children: c }, "c" + t);
167
+ }, "c" + i) : h(o(451), { children: c }, "c" + i);
169
168
  })
170
169
  });
171
170
  }
172
- function b({ id: t, parts: n, decision: r, current: i, interactive: o, tabbable: s, onFocus: c }) {
171
+ function b({ id: t, parts: n, decision: r, current: a, interactive: o, tabbable: s, onFocus: c }) {
173
172
  let l = e, [u, f] = d({
174
173
  from: r,
175
174
  to: r
@@ -178,32 +177,32 @@ function b({ id: t, parts: n, decision: r, current: i, interactive: o, tabbable:
178
177
  from: u.to,
179
178
  to: r
180
179
  });
181
- let p = u.to === r ? u[l(413)] : u.to;
182
- return g(l(375), {
183
- className: l(355),
180
+ let p = u.to === r ? u[l(491)] : u.to;
181
+ return g(l(451), {
182
+ className: "ds-diff__change",
184
183
  "data-change-id": t,
185
- "data-decision": r ?? "pending",
186
- "data-current": i || void 0,
187
- role: o ? l(405) : void 0,
184
+ "data-decision": r ?? l(439),
185
+ "data-current": a || void 0,
186
+ role: o ? "button" : void 0,
188
187
  tabIndex: o ? s ? 0 : -1 : void 0,
189
- "aria-haspopup": o ? l(351) : void 0,
188
+ "aria-haspopup": o ? l(441) : void 0,
190
189
  onFocus: o ? c : void 0,
191
- children: [n[l(411)]((e, t) => {
192
- let n = l, i = e[n(352)] === "delete" ? n(377) : n(370), o = v(e[n(352)], r), s = v(e[n(352)], p), c = o ? n(s ? 387 : 407) : s ? "in" : void 0;
193
- return h(i, {
194
- className: a("ds-diff__part", n(371) + e.type),
190
+ children: [n[l(481)]((e, t) => {
191
+ let n = l, a = e[n(447)] === "delete" ? "del" : n(503), o = v(e[n(447)], r), s = v(e[n(447)], p), c = o ? n(s ? 504 : 488) : s ? "in" : void 0;
192
+ return h(a, {
193
+ className: i(n(472), n(434) + e[n(447)]),
195
194
  "data-motion": c,
196
195
  "aria-hidden": o || void 0,
197
- children: g(n(375), {
198
- className: n(398),
199
- children: [!r && h(n(375), {
200
- className: n(391),
201
- children: e[n(352)] === "delete" ? n(353) : n(354)
202
- }), e.text]
196
+ children: g(n(451), {
197
+ className: n(461),
198
+ children: [!r && h(n(451), {
199
+ className: n(480),
200
+ children: e[n(447)] === n(443) ? n(502) : n(489)
201
+ }), e[n(487)]]
203
202
  })
204
203
  }, t);
205
- }), r && g(l(375), {
206
- className: l(391),
204
+ }), r && g("span", {
205
+ className: l(480),
207
206
  children: [
208
207
  " (",
209
208
  _[r],
@@ -1,126 +1,126 @@
1
1
  "use client";
2
- const e = c;
2
+ const e = r;
3
3
  (function(e, t) {
4
- let n = c, r = e();
4
+ let n = r, i = e();
5
5
  for (;;) try {
6
- if (parseInt(n(231)) / 1 * (-parseInt(n(210)) / 2) + -parseInt(n(228)) / 3 + -parseInt(n(237)) / 4 + -parseInt(n(219)) / 5 * (-parseInt(n(229)) / 6) + parseInt(n(212)) / 7 * (-parseInt(n(214)) / 8) + parseInt(n(234)) / 9 * (parseInt(n(215)) / 10) + -parseInt(n(230)) / 11 * (-parseInt(n(224)) / 12) == t) break;
7
- r.push(r.shift());
6
+ if (parseInt(n(262)) / 1 * (-parseInt(n(284)) / 2) + -parseInt(n(267)) / 3 + -parseInt(n(273)) / 4 + -parseInt(n(278)) / 5 * (parseInt(n(283)) / 6) + parseInt(n(268)) / 7 + -parseInt(n(257)) / 8 + parseInt(n(256)) / 9 == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(n, 912303);
11
+ })(u, 637356);
12
12
  var t = /\s+|[\p{L}\p{N}_]+|[^\s\p{L}\p{N}_]/gu;
13
- function n() {
14
- let e = /* @__PURE__ */ "mte5nZy0otb0ANvNDvK.C2XPy2u.Bwf4.Dgv4Da.ota2mZe5mhDHr29xqq.BwfW.DMfSDwvZ.zgvSzxrL.y2HHBMDLswq.mtjntKvoCxu.Aw5Zzxj0.zxf1ywW.Aw5Zzxj0zwq.mJiZmZy0mvPQuKHrzG.nNfxtvP2ra.mteYnJeYotrytMv6DKy.mvPNt2rWCa.ywnJzxb0zwq.BgvUz3rO.ouvnzNDkvW.ChvZAa.y2HHBMDLlq.ndq1otyWmgHxy1Hqwq.ywz0zxi.z2v0.C2v0.ntKZnZCWyvjREK1f.DhLWzq.ndjruKrkthm.Bwf0y2G.mti4nZiWoenbCw1iyW".split(".");
15
- return n = function() {
16
- return e;
17
- }, n();
13
+ function n(e) {
14
+ return e[r(263)](t) ?? [];
18
15
  }
19
- function r(e) {
20
- return e[c(213)](t) ?? [];
16
+ function r(e, t) {
17
+ e -= 256;
18
+ let n = u(), i = n[e];
19
+ r.hkQiSL === void 0 && (r.EfTegI = function(e) {
20
+ let t = "", n = "";
21
+ 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);
22
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
+ return decodeURIComponent(n);
24
+ }, r.Gvnqpa = {}, r.hkQiSL = !0);
25
+ let a = n[0];
26
+ r.QyHZnR !== a && (r.Gvnqpa = {}, r.QyHZnR = a);
27
+ let o = r.Gvnqpa[e];
28
+ return o === void 0 ? (i = r.EfTegI(i), r.Gvnqpa[e] = i) : i = o, i;
21
29
  }
22
- var i = (e) => /^\s+$/.test(e);
23
- function a(e, t) {
24
- let n = c, i = r(e), a = r(t), s = 0;
25
- for (; s < i.length && s < a[n(233)] && i[s] === a[s];) s++;
26
- let l = i.length, u = a.length;
27
- for (; l > s && u > s && i[l - 1] === a[u - 1];) l--, u--;
30
+ var i = (t) => /^\s+$/[e(270)](t);
31
+ function a(t, r) {
32
+ let i = e, a = n(t), s = n(r), c = 0;
33
+ for (; c < a[i(259)] && c < s[i(259)] && a[c] === s[c];) c++;
34
+ let l = a[i(259)], u = s[i(259)];
35
+ for (; l > c && u > c && a[l - 1] === s[u - 1];) l--, u--;
28
36
  let d = [], f = (e, t) => {
29
- let r = n, i = d[d.length - 1];
30
- i && i[r(211)] === e ? i[r(218)] += t : d[r(235)]({
37
+ let n = i, r = d[d[n(259)] - 1];
38
+ r && r[n(274)] === e ? r[n(271)] += t : d[n(279)]({
31
39
  type: e,
32
40
  text: t
33
41
  });
34
42
  };
35
- for (let e = 0; e < s; e++) f(n(226), i[e]);
36
- let p = i.slice(s, l), m = a[n(216)](s, u), h = p.length, g = m[n(233)], _ = g + 1, v = new Int32Array((h + 1) * _);
37
- for (let e = h - 1; e >= 0; e--) for (let t = g - 1; t >= 0; t--) v[e * _ + t] = p[e] === m[t] ? v[(e + 1) * _ + t + 1] + 1 : Math[n(217)](v[(e + 1) * _ + t], v[e * _ + t + 1]);
43
+ for (let e = 0; e < c; e++) f(i(281), a[e]);
44
+ let p = a[i(269)](c, l), m = s.slice(c, u), h = p[i(259)], g = m[i(259)], _ = g + 1, v = new Int32Array((h + 1) * _);
45
+ for (let e = h - 1; e >= 0; e--) for (let t = g - 1; t >= 0; t--) v[e * _ + t] = p[e] === m[t] ? v[(e + 1) * _ + t + 1] + 1 : Math[i(275)](v[(e + 1) * _ + t], v[e * _ + t + 1]);
38
46
  let y = 0, b = 0;
39
- for (; y < h && b < g;) p[y] === m[b] ? (f(n(226), p[y]), y++, b++) : v[(y + 1) * _ + b] >= v[y * _ + b + 1] ? (f("delete", p[y]), y++) : (f(n(225), m[b]), b++);
40
- for (; y < h; y++) f(n(222), p[y]);
41
- for (; b < g; b++) f("insert", m[b]);
42
- for (let e = l; e < i[n(233)]; e++) f(n(226), i[e]);
47
+ for (; y < h && b < g;) p[y] === m[b] ? (f(i(281), p[y]), y++, b++) : v[(y + 1) * _ + b] >= v[y * _ + b + 1] ? (f(i(282), p[y]), y++) : (f(i(265), m[b]), b++);
48
+ for (; y < h; y++) f(i(282), p[y]);
49
+ for (; b < g; b++) f(i(265), m[b]);
50
+ for (let e = l; e < a[i(259)]; e++) f(i(281), a[e]);
43
51
  return o(d);
44
52
  }
45
- function o(e) {
46
- let t = c, n = [], r = "", a = "", o = () => {
47
- let e = c;
48
- r && n[e(235)]({
49
- type: e(222),
50
- text: r
51
- }), a && n[e(235)]({
52
- type: e(225),
53
- text: a
54
- }), r = "", a = "";
53
+ function o(t) {
54
+ let n = e, a = [], o = "", s = "", c = () => {
55
+ let e = r;
56
+ o && a[e(279)]({
57
+ type: e(282),
58
+ text: o
59
+ }), s && a.push({
60
+ type: "insert",
61
+ text: s
62
+ }), o = "", s = "";
55
63
  };
56
- for (let s = 0; s < e[t(233)]; s++) {
57
- let c = e[s];
58
- if (c.type === t(222)) r += c[t(218)];
59
- else if (c[t(211)] === t(225)) a += c[t(218)];
64
+ for (let e = 0; e < t[n(259)]; e++) {
65
+ let r = t[e];
66
+ if (r[n(274)] === n(282)) o += r[n(271)];
67
+ else if (r[n(274)] === n(265)) s += r[n(271)];
60
68
  else {
61
- let l = r !== "" || a !== "", u = s + 1 < e[t(233)] && e[s + 1][t(211)] !== t(226);
62
- if (l && u && i(c[t(218)])) {
63
- r += c[t(218)], a += c.text;
69
+ let l = o !== "" || s !== "", u = e + 1 < t[n(259)] && t[e + 1][n(274)] !== n(281);
70
+ if (l && u && i(r[n(271)])) {
71
+ o += r[n(271)], s += r[n(271)];
64
72
  continue;
65
73
  }
66
- o(), n[t(235)]({
67
- type: t(226),
68
- text: c[t(218)]
74
+ c(), a[n(279)]({
75
+ type: "equal",
76
+ text: r[n(271)]
69
77
  });
70
78
  }
71
79
  }
72
- return o(), n;
80
+ return c(), a;
73
81
  }
74
- function s(e) {
75
- let t = c, n = 0, r;
76
- return e[t(220)]((e) => {
77
- let i = t, a;
78
- return a = e[i(211)] === "equal" ? {
79
- type: i(226),
80
- text: e[i(218)]
81
- } : e[i(223)] == null ? r && r[i(211)] !== "equal" && r.changeId != null ? {
82
+ function s(t) {
83
+ let n = e, r = 0, i;
84
+ return t[n(258)]((e) => {
85
+ let t = n, a;
86
+ return a = e.type === t(281) ? {
87
+ type: t(281),
88
+ text: e[t(271)]
89
+ } : e[t(277)] == null ? i && i[t(274)] !== t(281) && i.changeId != null ? {
82
90
  ...e,
83
- changeId: r.changeId
91
+ changeId: i[t(277)]
84
92
  } : {
85
93
  ...e,
86
- changeId: i(236) + ++n
87
- } : { ...e }, r = a, a;
94
+ changeId: t(264) + ++r
95
+ } : { ...e }, i = a, a;
88
96
  });
89
97
  }
90
- function c(e, t) {
91
- e -= 210;
92
- let r = n(), i = r[e];
93
- c.QpgIUn === void 0 && (c.CfvJZU = function(e) {
94
- let t = "", n = "";
95
- 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);
96
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
97
- return decodeURIComponent(n);
98
- }, c.ruSlyT = {}, c.QpgIUn = !0);
99
- let a = r[0];
100
- c.JCQxKp !== a && (c.ruSlyT = {}, c.JCQxKp = a);
101
- let o = c.ruSlyT[e];
102
- return o === void 0 ? (i = c.CfvJZU(i), c.ruSlyT[e] = i) : i = o, i;
103
- }
104
- function l(e) {
105
- let t = c, n = /* @__PURE__ */ new Map();
106
- for (let r of e) {
107
- if (r[t(211)] === t(226) || r[t(223)] == null) continue;
108
- let e = n[t(239)](r[t(223)]);
109
- !e && (e = {
110
- id: r[t(223)],
98
+ function c(t) {
99
+ let n = e, r = /* @__PURE__ */ new Map();
100
+ for (let e of t) {
101
+ if (e[n(274)] === n(281) || e[n(277)] == null) continue;
102
+ let t = r[n(272)](e[n(277)]);
103
+ !t && (t = {
104
+ id: e[n(277)],
111
105
  deleted: "",
112
106
  inserted: ""
113
- }, n[t(240)](r.changeId, e)), r[t(211)] === t(222) ? e.deleted += r.text : e[t(227)] += r[t(218)];
107
+ }, r[n(266)](e[n(277)], t)), e[n(274)] === n(282) ? t[n(260)] += e[n(271)] : t[n(280)] += e[n(271)];
114
108
  }
115
- return [...n[t(221)]()];
109
+ return [...r[n(276)]()];
116
110
  }
117
- function u(t, n, r = e(238)) {
111
+ function l(t, n, r = e(261)) {
118
112
  let i = e;
119
- return s(t)[i(220)]((e) => {
113
+ return s(t)[i(258)]((e) => {
120
114
  let t = i;
121
- if (e.type === t(226)) return e.text;
122
- let a = e[t(223)] == null ? void 0 : n[e[t(223)]], o = a ? a === t(232) : r === "after";
123
- return e[t(211)] === t(225) === o ? e[t(218)] : "";
115
+ if (e[t(274)] === t(281)) return e[t(271)];
116
+ let a = e[t(277)] == null ? void 0 : n[e[t(277)]], o = a ? a === "accepted" : r === t(261);
117
+ return e[t(274)] === "insert" === o ? e.text : "";
124
118
  }).join("");
125
119
  }
126
- export { u as applyDiffDecisions, a as diffWords, l as listDiffChanges, s as resolveDiffSegments, r as tokenizeWords };
120
+ export { l as applyDiffDecisions, a as diffWords, c as listDiffChanges, s as resolveDiffSegments, n as tokenizeWords };
121
+ function u() {
122
+ let e = /* @__PURE__ */ "Aw5Zzxj0zwq.zxf1ywW.zgvSzxrL.nMTdALr2zG.mtq1nZi2reLrzhjR.mZaYoty1mtfWAwvdv1m.ndG0nJi1nMndrg1ACa.BwfW.BgvUz3rO.zgvSzxrLza.ywz0zxi.mtnksejwzem.Bwf0y2G.y2HHBMDLlq.Aw5Zzxj0.C2v0.odq2ntq5ExrQyuzR.mte4otC2ouneCfLryW.C2XPy2u.DgvZDa.Dgv4Da.z2v0.mZKWnJyXnMXIyMvezG.DhLWzq.Bwf4.DMfSDwvZ.y2HHBMDLswq.ndm1mJyWsuTeD1fb.ChvZAa".split(".");
123
+ return u = function() {
124
+ return e;
125
+ }, u();
126
+ }