@iamfiro/design 0.3.0 → 0.3.1

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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,137 +1,137 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, r) {
4
- e -= 294;
5
- let i = n(), a = i[e];
6
- t.jgLKvO === void 0 && (t.BEGLFe = function(e) {
7
- let t = "", n = "";
8
- 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
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
- return decodeURIComponent(n);
11
- }, t.AMBjJN = {}, t.jgLKvO = !0);
12
- let o = i[0];
13
- t.WKVIBC !== o && (t.AMBjJN = {}, t.WKVIBC = o);
14
- let s = t.AMBjJN[e];
15
- return s === void 0 ? (a = t.BEGLFe(a), t.AMBjJN[e] = a) : a = s, a;
16
- }
17
- (function(e, n) {
18
- let r = t, i = e();
2
+ const e = p;
3
+ (function(e, t) {
4
+ let n = p, r = e();
19
5
  for (;;) try {
20
- if (-parseInt(r(328)) / 1 + -parseInt(r(324)) / 2 * (parseInt(r(340)) / 3) + -parseInt(r(351)) / 4 + -parseInt(r(354)) / 5 + parseInt(r(335)) / 6 * (-parseInt(r(338)) / 7) + parseInt(r(303)) / 8 * (-parseInt(r(300)) / 9) + parseInt(r(346)) / 10 * (parseInt(r(316)) / 11) == n) break;
21
- i.push(i.shift());
6
+ if (parseInt(n(313)) / 1 * (parseInt(n(376)) / 2) + parseInt(n(366)) / 3 * (-parseInt(n(358)) / 4) + parseInt(n(377)) / 5 + parseInt(n(303)) / 6 + parseInt(n(375)) / 7 + parseInt(n(315)) / 8 * (-parseInt(n(343)) / 9) + -parseInt(n(325)) / 10 == t) break;
7
+ r.push(r.shift());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(n, 453769);
26
- function n() {
27
- let e = /* @__PURE__ */ "C3zN.Dg9W.zhjVCfjHDgu.y29SB3i.zhmTzNvUBMvSlwnOyxj0x19Wy3q.zhmTzNvUBMvSlwnOyxj0x19SywjLBa.mZC5nte1mdDSvwTOr0W.zhmTzNvUBMvSlwnOyxj0x19KCM9W.BwLK.7j207kceioUlQoQZHcdRJidRUyq.zhmTy2HHCNrFx3n2zYbKCY1MDw5UzwWTy2HHCNrFx3n2zW.y2vPBa.zhmTzNvUBMvSlwnOyxj0.zgL2.mte5mNjkqxHstG.DhjHBNnSyxrLwsG.BgfIzwW.y2XPzw50wq.odK5nZqZtLzQrxLm.lwHHDgnOlq.ChGSia.y2XVC2vK.A2v5.BwfW.imk3ia.nMDUAMfTCa.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.DMfYkc0Ty2HHCNqTC2vXlq.mti2otqYmKzjufn4wq.D2LKDgG.ndi1n2vevurtqq.CM90yxrLkdq1kq.Dgv4Da.BwLU.ls1JAgfYDc1ZzxeTmq.Ag9YAxPVBNrHBa.mtbjsNjqzuq.zMLYC3q.C3bHBG.BwLKzgXL.DhjHBNnSyxrLwcG.mte2nJb3z3vVv1C.BgvMDa.BgLUzq.mZyYotq3meLcwxfvuW.y3vYCMvUDfrHCMDLDa.BgvUz3rO.7lkRioUlQoQZHcdRJidRUyq.B3bLBG.yM9KEs1ZBq.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.zhjVCa.zhmTzNvUBMvSlwnOyxj0x19ZDgvW.B3rOzxi.yMfY.y29SB3iTBwL4kgLUihnYz2iSia.zgvMCW.7y2864sqioYWQo2kUa.zhmTy2HHCNq.z2v0qM91BMrPBMDdBgLLBNrszwn0.zhmTzNvUBMvSlwnOyxj0x19Iyxi.zNjVBvbYzxzPB3vZ.y2XPzw50wa.DMfSDwu.ChGP.Cgf0Aa.zw5K.y29UDMvYC2LVBG.lwXPDMu.Agf0y2HLza.idmWjsWGDMfYkc0TC3vYzMfJzsKP.DhjHBNnSyxrLka.nZmWmtDfzgjgug8.zhmTy2HHCNrFx3rPCa.CMvJDa.mZm2shrzChLn.zhmTy2HHCNrFx3bSB3q.zMXVB3i.Bwf4.ChjLDMLVDxm.C2vJB25Kyxj5.zNjVBuzPCNn0".split(".");
28
- return n = function() {
11
+ })(l, 830432);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { ColorDot as n } from "../../primitives/ColorDot2.js";
14
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
+ import { cx as a } from "../../primitives/index.js";
16
+ import { ChartTooltip as o } from "../Chart/ChartParts.js";
17
+ import { barPath as s, chartColor as c, formatNumber as ee, formatPercent as te } from "../Chart/chart2.js";
18
+ function l() {
19
+ let e = /* @__PURE__ */ "BwfW.ChjLDMLVDxm.mZm5nZCWn3zcuMX1sa.y2XVC2vK.CMvJDa.zhmTzNvUBMvSlwnOyxj0x19ZDgvW.zhjVCa.zgL2.BgfIzwW.C2vJB25Kyxj5.ls1JAgfYDc1ZzxeTmq.ChGSia.Bwf4.B3bLBG.zw5K.Ag9YAxPVBNrHBa.imk3ia.nJHPuMznyNK.y2vPBa.7lkRioUlQoQZHcdRJidRUyq.DMfSDwu.ChGP.lwXPDMu.BgvMDa.zhmTzNvUBMvSlwnOyxj0x19SywjLBa.mtqXodD5su9VzLe.Dg9W.7j207kceioUlQoQZHcdRJidRUyq.zhmTy2HHCNrFx3nY.BwLU.BwLK.BwLKzgXL.zNjVBuzPCNn0.zNjVBvbYzxzPB3vZ.ntCXnJmXmNHYAgPSsq.mtG0nNrXu292sq.mtGZndaWme14uLvntG.mJyZnZeYEfDls3fV.DxjSkcm.DxnLCLnWywnLt25vC2u.Dgv4Da.CM90yxrLkdq1kq.CM91BMq.y2XPzw50wa.y3vYCMvUDfrHCMDLDa.DhjHBNnSyxrLwcG.zhmTzNvUBMvSlwnOyxj0x19Wy3q.otC3ALPpCNLb.C3bHBG.mJrMEKLvD1e.idmWjsWGDMfYkc0TC3vYzMfJzsKP.lwHHDgnOlq.zhmTy2HHCNq.zhmTy2HHCNrFx3rPCa.zhmTzNvUBMvSlwnOyxj0.zhmTzNvUBMvSlwnOyxj0x19KCM9W.y2XPzw50wq.zhjVCfjHDgu.A2v5.odu3nduWBNftAhjr.yM9KEs1ZBq.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.zgvMCW.Cgf0Aa.7y2864sqioYWQo2kUa.B3rOzxi.D2LKDgG.BgvUz3rO.zMLYC3q.y29UDMvYC2LVBG.z2v0qM91BMrPBMDdBgLLBNrszwn0.zMXVB3i.BgLUzq.yMfY".split(".");
20
+ return l = function() {
29
21
  return e;
30
- }, n();
22
+ }, l();
23
+ }
24
+ import { useChartInteraction as u } from "../Chart/useChartInteraction.js";
25
+ import { estimateTextWidth as d, funnelStats as ne, hBarPath as f } from "./funnel.js";
26
+ function p(e, t) {
27
+ e -= 303;
28
+ let n = l(), r = n[e];
29
+ p.oGoebU === void 0 && (p.twkWgz = function(e) {
30
+ let t = "", n = "";
31
+ 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);
32
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
+ return decodeURIComponent(n);
34
+ }, p.WAJVaD = {}, p.oGoebU = !0);
35
+ let i = n[0];
36
+ p.BcMVTf !== i && (p.WAJVaD = {}, p.BcMVTf = i);
37
+ let a = p.WAJVaD[e];
38
+ return a === void 0 ? (r = p.twkWgz(r), p.WAJVaD[e] = r) : r = a, r;
31
39
  }
32
- import { Text as r } from "../../primitives/Typography2.js";
33
- import { ColorDot as i } from "../../primitives/ColorDot2.js";
34
- import { Inline as a, Stack as o } from "../../primitives/Layout2.js";
35
- import { cx as s } from "../../primitives/index.js";
36
- import { ChartTooltip as c } from "../Chart/ChartParts.js";
37
- import { barPath as l, chartColor as u, formatNumber as d, formatPercent as ee } from "../Chart/chart2.js";
38
- import { useChartInteraction as te } from "../Chart/useChartInteraction.js";
39
- import { estimateTextWidth as f, funnelStats as ne, hBarPath as p } from "./funnel.js";
40
40
  /* empty css */
41
41
  import { useId as re } from "react";
42
42
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
43
43
  var g = 14, ie = 28, _ = 8, v = 4, y = 44;
44
- function b({ data: t, orientation: n = e(345), calculateFrom: b = e(347), color: ae = e(344), gradient: oe = !1, showDropOff: x = !0, height: S = 260, barSize: C = 32, formatValue: w = d, formatPercent: T = ee, legend: se = !0, activeIndex: ce, defaultActiveIndex: le, onActiveIndexChange: ue, "aria-label": de = e(367), className: fe, style: pe }) {
45
- let E = e, D = re(), O = ne(t, b), k = O[E(356)], { open: A, shown: j, settled: me, width: M, tipRef: he, tipSize: N, hover: ge, leave: P, plotProps: F } = te({
44
+ function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335), color: ae = e(351), gradient: oe = !1, showDropOff: x = !0, height: S = 260, barSize: C = 32, formatValue: w = ee, formatPercent: T = te, legend: se = !0, activeIndex: ce, defaultActiveIndex: le, onActiveIndexChange: ue, "aria-label": de = "퍼널 차트", className: fe, style: pe }) {
45
+ let E = e, D = re(), O = ne(l, b), k = O[E(334)], { open: A, shown: j, settled: me, width: M, tipRef: he, tipSize: N, hover: P, leave: ge, plotProps: F } = u({
46
46
  count: k,
47
47
  activeIndex: ce,
48
48
  defaultActiveIndex: le,
49
49
  onActiveIndexChange: ue,
50
- initialKeyboardIndex: E(347)
51
- }), I = n === E(345), _e = Math.max(0, ...O[E(333)]((e) => e[E(373)])) || 1, L = (e) => {
52
- let t = E, n = O[e]?.[t(313)];
53
- return n ? u(n, e) : oe ? t(337) + (k > 1 ? 1 + Math.round(e * 3 / (k - 1)) : 1) + ")" : u(ae, 0);
54
- }, ve = (e) => E(365) + e + E(298), R = I ? Math[E(321)](Math.max(0, ...O[E(333)]((e) => f(e[E(326)])))) + 16 : 0, ye = Math[E(321)](Math[E(306)](0, ...O[E(333)]((e) => f(w(e[E(373)], e))))) + 4, be = I ? 16 + ye + 10 + y : 0, xe = Math[E(306)](0, M - R - be), z = C + g, B = I ? Math[E(306)](0, k * C + (k - 1) * g) : S, V = S - ie, Se = Math.max(0, V - 50), H = k ? M / k : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = O[E(333)]((e, t) => {
55
- let n = E, r = t ? O[t - 1].value : e[n(373)], i = W(e.value), a = W(Math.max(r, e[n(373)]));
50
+ initialKeyboardIndex: E(335)
51
+ }), I = p === E(356), _e = Math[E(353)](0, ...O[E(341)]((e) => e.value)) || 1, L = (e) => {
52
+ let t = E, n = O[e]?.color;
53
+ return n ? c(n, e) : oe ? "var(--chart-seq-" + (k > 1 ? 1 + Math[t(308)](e * 3 / (k - 1)) : 1) + ")" : c(ae, 0);
54
+ }, ve = (e) => "color-mix(in srgb, " + e + E(316), R = I ? Math[E(359)](Math[E(353)](0, ...O.map((e) => d(e[E(349)])))) + 16 : 0, ye = Math[E(359)](Math[E(353)](0, ...O[E(341)]((e) => d(w(e[E(361)], e))))) + 4, be = I ? 16 + ye + 10 + y : 0, xe = Math.max(0, M - R - be), z = C + g, B = I ? Math[E(353)](0, k * C + (k - 1) * g) : S, V = S - ie, Se = Math.max(0, V - 50), H = k ? M / k : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = O[E(341)]((e, t) => {
55
+ let n = E, r = t ? O[t - 1].value : e.value, i = W(e[n(361)]), a = W(Math[n(353)](r, e[n(361)]));
56
56
  if (I) {
57
57
  let e = t * z;
58
58
  return {
59
- bar: p(R, e, i, C, v),
60
- drop: p(R + i, e, a - i, C, v),
59
+ bar: f(R, e, i, C, v),
60
+ drop: f(R + i, e, a - i, C, v),
61
61
  end: R + a,
62
62
  mid: e + C / 2
63
63
  };
64
64
  }
65
65
  let o = t * H + (H - U) / 2;
66
66
  return {
67
- bar: l(o, V - i, U, i, v),
68
- drop: l(o, V - a, U, a - i, v),
67
+ bar: s(o, V - i, U, i, v),
68
+ drop: s(o, V - a, U, a - i, v),
69
69
  end: (t + 1) * H,
70
70
  mid: t * H + H / 2
71
71
  };
72
- }), K = j === null ? void 0 : O[j], q = (e) => e === E(347) ? E(357) : E(319), J = b === E(347) ? E(307) : E(347), Ce = K && j !== null ? [{
73
- key: E(295),
72
+ }), K = j === null ? void 0 : O[j], q = (e) => E(e === "first" ? 360 : 368), J = b === E(335) ? E(342) : E(335), Ce = K && j !== null ? [{
73
+ key: E(336),
74
74
  label: q(b),
75
75
  color: L(j),
76
- value: T(K[E(295)])
76
+ value: T(K[E(336)])
77
77
  }, ...j > 0 ? [{
78
- key: E(363),
78
+ key: E(332),
79
79
  label: q(J),
80
80
  color: L(j),
81
- value: T(J === E(347) ? K[E(309)] : K[E(371)])
81
+ value: T(J === E(335) ? K[E(373)] : K[E(374)])
82
82
  }, {
83
- key: E(361),
83
+ key: "drop",
84
84
  label: "이탈",
85
85
  color: ve(L(j - 1)),
86
- value: w(K[E(361)], K) + E(334) + T(K[E(312)])
86
+ value: w(K[E(347)], K) + E(357) + T(K[E(323)])
87
87
  }] : []] : [], Y = j === null ? void 0 : G[j], X = 0, Z = 0;
88
88
  if (Y && j !== null) {
89
- if (I) X = Math[E(306)](0, Math[E(343)](Y[E(294)] + _, M - N.w)), Z = Math[E(306)](0, Math.min(Y.mid - N.h / 2, B - N.h));
89
+ if (I) X = Math[E(353)](0, Math[E(370)](Y[E(355)] + _, M - N.w)), Z = Math[E(353)](0, Math[E(370)](Y[E(371)] - N.h / 2, B - N.h));
90
90
  else {
91
91
  let e = j * H;
92
- X = Y[E(294)] + _ + N.w > M ? Math[E(306)](0, e - _ - N.w) : Y.end + _, Z = 50;
92
+ X = Y[E(355)] + _ + N.w > M ? Math.max(0, e - _ - N.w) : Y[E(355)] + _, Z = 50;
93
93
  }
94
94
  }
95
95
  let Q = j === null ? 0 : I ? j * z - g / 2 : j * H, $ = (e) => {
96
96
  let t = E;
97
97
  if (!k) return;
98
- let n = e[t(355)][t(369)](), r = I ? Math.floor((e[t(327)] - n[t(311)] + g / 2) / z) : Math[t(305)]((e[t(372)] - n[t(352)]) / n[t(339)] * k);
99
- ge(Math.min(k - 1, Math.max(0, r)));
100
- }, we = A && K ? K[E(326)] + ": " + w(K[E(373)], K) + ", " + q(b) + " " + T(K.conversion) + (j ? ", 이탈 " + w(K[E(361)], K) : "") : "";
101
- return h(o, {
98
+ let n = e[t(310)][t(337)](), r = I ? Math.floor((e[t(322)] - n[t(367)] + g / 2) / z) : Math[t(338)]((e[t(309)] - n[t(364)]) / n[t(333)] * k);
99
+ P(Math[t(370)](k - 1, Math[t(353)](0, r)));
100
+ }, we = A && K ? K[E(349)] + ": " + w(K.value, K) + ", " + q(b) + " " + T(K[E(336)]) + (j ? ", 이탈 " + w(K.drop, K) : "") : "";
101
+ return h(i, {
102
102
  gap: 3,
103
- className: s(E(368), E(322), fe),
103
+ className: a(E(318), E(320), fe),
104
104
  style: pe,
105
- children: [h(E(323), {
105
+ children: [h(E(348), {
106
106
  ...F,
107
- className: E(304),
107
+ className: "ds-chart__plot",
108
108
  style: { height: B },
109
- "data-orientation": n,
110
- "aria-roledescription": E(367),
109
+ "data-orientation": p,
110
+ "aria-roledescription": E(331),
111
111
  "aria-label": de,
112
- "aria-describedby": D + E(296),
112
+ "aria-describedby": D + "-live",
113
113
  children: [
114
- M > 0 && h(E(310), {
115
- className: E(320),
114
+ M > 0 && h("svg", {
115
+ className: "ds-chart__svg ds-funnel-chart__svg",
116
116
  width: M,
117
117
  height: B,
118
118
  "aria-hidden": !0,
119
- "data-orientation": n,
119
+ "data-orientation": p,
120
120
  children: [
121
- m(E(366), { children: O.map((e, t) => t > 0 ? h("pattern", {
122
- id: D + "-hatch-" + t,
121
+ m(E(329), { children: O[E(341)]((e, t) => t > 0 ? h("pattern", {
122
+ id: D + E(317) + t,
123
123
  width: 6,
124
124
  height: 6,
125
- patternUnits: "userSpaceOnUse",
126
- patternTransform: E(341),
127
- children: [m(E(302), {
125
+ patternUnits: E(305),
126
+ patternTransform: E(307),
127
+ children: [m(E(345), {
128
128
  width: 6,
129
129
  height: 6,
130
130
  style: {
131
131
  fill: L(t - 1),
132
132
  fillOpacity: .1
133
133
  }
134
- }), m(E(353), {
134
+ }), m(E(339), {
135
135
  x1: 1.5,
136
136
  y1: 0,
137
137
  x2: 1.5,
@@ -142,88 +142,88 @@ function b({ data: t, orientation: n = e(345), calculateFrom: b = e(347), color:
142
142
  strokeOpacity: .28
143
143
  }
144
144
  })]
145
- }, e[E(332)]) : null) }),
146
- m(E(302), {
147
- className: E(336),
148
- "data-state": A ? E(358) : "closed",
145
+ }, e.key) : null) }),
146
+ m(E(345), {
147
+ className: E(328),
148
+ "data-state": E(A ? 354 : 344),
149
149
  x: 0,
150
150
  y: 0,
151
151
  width: I ? M : H,
152
152
  height: I ? z : B,
153
153
  rx: 8,
154
- style: { transform: I ? E(325) + Q + "px)" : E(350) + Q + "px)" }
154
+ style: { transform: I ? "translateY(" + Q + E(362) : E(311) + Q + E(362) }
155
155
  }),
156
- O[E(333)]((e, t) => {
156
+ O.map((e, t) => {
157
157
  let n = E, r = G[t], i = A && j !== t || void 0, a = { "--_i": t };
158
158
  return h("g", {
159
- className: n(362),
159
+ className: n(346),
160
160
  "data-faded": i,
161
- children: [x && t > 0 && m(n(375), {
162
- className: n(317),
163
- d: r[n(361)],
164
- fill: "url(#" + D + n(329) + t + ")",
161
+ children: [x && t > 0 && m(n(330), {
162
+ className: n(321),
163
+ d: r[n(347)],
164
+ fill: n(304) + D + n(317) + t + ")",
165
165
  style: a
166
- }), m(n(375), {
167
- className: n(370),
168
- d: r[n(364)],
166
+ }), m(n(330), {
167
+ className: "ds-funnel-chart__bar",
168
+ d: r[n(340)],
169
169
  fill: L(t),
170
170
  style: a
171
171
  })]
172
- }, e[n(332)]);
172
+ }, e.key);
173
173
  }),
174
- O[E(333)]((e, t) => {
175
- let n = E, r = G[t], i = w(e[n(373)], e), a = T(e[n(295)]);
174
+ O[E(341)]((e, t) => {
175
+ let n = E, r = G[t], i = w(e.value, e), a = T(e[n(336)]);
176
176
  return I ? h("g", { children: [
177
- m(n(342), {
178
- className: n(315),
177
+ m(n(306), {
178
+ className: "ds-funnel-chart__label",
179
179
  x: 0,
180
- y: r.mid,
181
- dominantBaseline: n(349),
182
- children: e[n(326)]
180
+ y: r[n(371)],
181
+ dominantBaseline: n(372),
182
+ children: e.label
183
183
  }),
184
- m(n(342), {
185
- className: n(360),
184
+ m(n(306), {
185
+ className: n(327),
186
186
  x: M - y - 10,
187
- y: r.mid,
188
- dominantBaseline: n(349),
189
- textAnchor: n(294),
187
+ y: r[n(371)],
188
+ dominantBaseline: n(372),
189
+ textAnchor: n(355),
190
190
  children: i
191
191
  }),
192
- m("text", {
193
- className: "ds-funnel-chart__pct",
192
+ m(n(306), {
193
+ className: n(312),
194
194
  x: M,
195
- y: r[n(318)],
196
- dominantBaseline: "middle",
197
- textAnchor: n(294),
195
+ y: r[n(371)],
196
+ dominantBaseline: n(372),
197
+ textAnchor: "end",
198
198
  children: a
199
199
  })
200
- ] }, e[n(332)]) : h("g", { children: [
201
- m("text", {
202
- className: "ds-funnel-chart__value",
203
- x: r[n(318)],
200
+ ] }, e[n(324)]) : h("g", { children: [
201
+ m(n(306), {
202
+ className: n(327),
203
+ x: r[n(371)],
204
204
  y: 16,
205
- dominantBaseline: n(349),
205
+ dominantBaseline: n(372),
206
206
  textAnchor: "middle",
207
207
  children: i
208
208
  }),
209
- m(n(342), {
210
- className: n(314),
211
- x: r.mid,
209
+ m(n(306), {
210
+ className: n(312),
211
+ x: r[n(371)],
212
212
  y: 35,
213
- dominantBaseline: n(349),
214
- textAnchor: "middle",
213
+ dominantBaseline: n(372),
214
+ textAnchor: n(372),
215
215
  children: a
216
216
  }),
217
- m(n(342), {
218
- className: n(315),
219
- x: r.mid,
217
+ m("text", {
218
+ className: n(365),
219
+ x: r[n(371)],
220
220
  y: S - 6,
221
- textAnchor: n(349),
222
- children: e[n(326)]
221
+ textAnchor: n(372),
222
+ children: e[n(349)]
223
223
  })
224
- ] }, e.key);
224
+ ] }, e[n(324)]);
225
225
  }),
226
- m(E(302), {
226
+ m(E(345), {
227
227
  className: "ds-chart__hit",
228
228
  x: 0,
229
229
  y: 0,
@@ -231,49 +231,49 @@ function b({ data: t, orientation: n = e(345), calculateFrom: b = e(347), color:
231
231
  height: B,
232
232
  onPointerMove: $,
233
233
  onPointerDown: $,
234
- onPointerLeave: P
234
+ onPointerLeave: ge
235
235
  })
236
236
  ]
237
237
  }),
238
- m(E(323), {
238
+ m(E(348), {
239
239
  ref: he,
240
- className: E(301),
241
- "data-state": E(A ? 358 : 331),
240
+ className: E(319),
241
+ "data-state": E(A ? 354 : 344),
242
242
  "data-settled": me || void 0,
243
- style: { transform: E(299) + X + E(330) + Z + E(374) },
243
+ style: { transform: "translate(" + X + E(352) + Z + E(362) },
244
244
  "aria-hidden": !0,
245
- children: m(c, {
246
- title: K?.label,
247
- value: K ? w(K[E(373)], K) : void 0,
245
+ children: m(o, {
246
+ title: K?.[E(349)],
247
+ value: K ? w(K[E(361)], K) : void 0,
248
248
  rows: Ce
249
249
  })
250
250
  }),
251
- m(E(348), {
252
- id: D + E(296),
253
- className: "ds-chart__sr",
251
+ m(E(314), {
252
+ id: D + E(363),
253
+ className: E(369),
254
254
  "aria-live": "polite",
255
255
  children: we
256
256
  })
257
257
  ]
258
- }), se && x && h(a, {
258
+ }), se && x && h(r, {
259
259
  gap: 4,
260
- children: [h(a, {
260
+ children: [h(r, {
261
261
  gap: 2,
262
262
  wrap: !1,
263
- children: [m(i, { color: L(0) }), m(r, {
264
- variant: E(359),
265
- tone: E(308),
263
+ children: [m(n, { color: L(0) }), m(t, {
264
+ variant: E(326),
265
+ tone: E(350),
266
266
  children: "전환"
267
267
  })]
268
- }), h(a, {
268
+ }), h(r, {
269
269
  gap: 2,
270
270
  wrap: !1,
271
- children: [m(i, {
271
+ children: [m(n, {
272
272
  color: L(0),
273
- variant: E(297)
274
- }), m(r, {
275
- variant: "body-sm",
276
- tone: E(308),
273
+ variant: "hatched"
274
+ }), m(t, {
275
+ variant: E(326),
276
+ tone: E(350),
277
277
  children: "이탈"
278
278
  })]
279
279
  })]
@@ -1,69 +1,72 @@
1
1
  "use client";
2
- const e = t;
3
- (function(e, n) {
4
- let r = t, i = e();
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
5
  for (;;) try {
6
- if (parseInt(r(377)) / 1 * (-parseInt(r(378)) / 2) + parseInt(r(369)) / 3 + -parseInt(r(374)) / 4 + parseInt(r(366)) / 5 * (parseInt(r(380)) / 6) + parseInt(r(376)) / 7 + parseInt(r(373)) / 8 * (parseInt(r(372)) / 9) + -parseInt(r(370)) / 10 == n) break;
7
- i.push(i.shift());
6
+ if (-parseInt(n(238)) / 1 * (-parseInt(n(232)) / 2) + -parseInt(n(239)) / 3 + -parseInt(n(235)) / 4 * (parseInt(n(234)) / 5) + -parseInt(n(233)) / 6 * (-parseInt(n(231)) / 7) + parseInt(n(226)) / 8 + -parseInt(n(221)) / 9 * (-parseInt(n(222)) / 10) + -parseInt(n(223)) / 11 * (parseInt(n(230)) / 12) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(r, 458311);
12
- function t(e, n) {
13
- e -= 366;
14
- let i = r(), a = i[e];
15
- t.VvoTQs === void 0 && (t.sMJrrF = 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.pwfcvW = {}, t.VvoTQs = !0);
21
- let o = i[0];
22
- t.cVonwv !== o && (t.pwfcvW = {}, t.cVonwv = o);
23
- let s = t.pwfcvW[e];
24
- return s === void 0 ? (a = t.sMJrrF(a), t.pwfcvW[e] = a) : a = s, a;
11
+ })(t, 912199);
12
+ function t() {
13
+ let e = [
14
+ "mZK2mdy2mfvWzvH0vq",
15
+ "nfnby0nHrG",
16
+ "Bwf4",
17
+ "BwLU",
18
+ "nty3nZKWBhf5yxvV",
19
+ "mtm0nJm0m1fZuenIBq",
20
+ "ovDmuKnlvG",
21
+ "mtaYnJK1ntbxDeLKD1u",
22
+ "mtG3zKrvvvzi",
23
+ "BwfW",
24
+ "zNjVBq",
25
+ "nJq1mJu1mLHRsKHQqG",
26
+ "DMfSDwu",
27
+ "y29KzvbVAw50qxq",
28
+ "zMLYC3q",
29
+ "mta2ndu1nKfuAwHpBq",
30
+ "ndG0ndKWm0HSDvbZta",
31
+ "nfr4DK9Tsq",
32
+ "nK5ZD2PdrG"
33
+ ];
34
+ return t = function() {
35
+ return e;
36
+ }, t();
25
37
  }
26
- function n(e, n) {
27
- let r = t, i = e[0]?.[r(371)] ?? 0;
28
- return e[r(368)]((t, a) => {
29
- let o = r, s = Math[o(367)](0, t[o(371)]), c = a ? Math[o(367)](0, e[a - 1][o(371)]) : s, l = a === 0 ? 1 : i > 0 ? s / i : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(367)](0, c - s) : 0;
38
+ function n(e, t) {
39
+ let n = i, r = e[0]?.[n(227)] ?? 0;
40
+ return e[n(224)]((i, a) => {
41
+ let o = n, s = Math[o(236)](0, i[o(227)]), c = a ? Math[o(236)](0, e[a - 1][o(227)]) : s, l = a === 0 ? 1 : r > 0 ? s / r : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(236)](0, c - s) : 0;
30
42
  return {
31
- ...t,
43
+ ...i,
32
44
  value: s,
33
45
  fromFirst: l,
34
46
  fromPrevious: u,
35
- conversion: n === "first" ? l : u,
47
+ conversion: t === o(229) ? l : u,
36
48
  drop: d,
37
49
  dropRate: a && c > 0 ? d / c : 0
38
50
  };
39
51
  });
40
52
  }
41
- function r() {
42
- let e = [
43
- "mJm3mJm2sfPgwNDK",
44
- "BwLU",
45
- "mJuYnJC5BhjPBeLs",
46
- "mJy5mZGZufvfsLbM",
47
- "nLrkCMPwwG",
48
- "y29KzvbVAw50qxq",
49
- "mJu4D2LhAMPO",
50
- "zNjVBq",
51
- "ndKZntvMwgzJr1u",
52
- "Bwf4",
53
- "BwfW",
54
- "mtG2mdC1ouDkBNHxAa",
55
- "ntmXodaXmfvOyMLrzq",
56
- "DMfSDwu",
57
- "mJi1nteZsNnVy2fH",
58
- "mJq4v09nshHV"
59
- ];
60
- return r = function() {
61
- return e;
62
- }, r();
53
+ function r(e, t, n, r, a) {
54
+ let o = i, s = Math[o(236)](0, Math[o(237)](a, r / 2, n));
55
+ return "M" + e + "," + t + "H" + (e + n - s) + "Q" + (e + n) + "," + t + " " + (e + n) + "," + (t + s) + "V" + (t + r - s) + "Q" + (e + n) + "," + (t + r) + " " + (e + n - s) + "," + (t + r) + "H" + e + "Z";
63
56
  }
64
- function i(e, n, r, i, a) {
65
- let o = Math.max(0, Math[t(375)](a, i / 2, r));
66
- return "M" + e + "," + n + "H" + (e + r - o) + "Q" + (e + r) + "," + n + " " + (e + r) + "," + (n + o) + "V" + (n + i - o) + "Q" + (e + r) + "," + (n + i) + " " + (e + r - o) + "," + (n + i) + "H" + e + "Z";
57
+ function i(e, n) {
58
+ e -= 221;
59
+ let r = t(), a = r[e];
60
+ i.FUblpD === void 0 && (i.PXnMZL = function(e) {
61
+ let t = "", n = "";
62
+ 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);
63
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
64
+ return decodeURIComponent(n);
65
+ }, i.osNwMa = {}, i.FUblpD = !0);
66
+ let o = r[0];
67
+ i.ZjMToi !== o && (i.osNwMa = {}, i.ZjMToi = o);
68
+ let s = i.osNwMa[e];
69
+ return s === void 0 ? (a = i.PXnMZL(a), i.osNwMa[e] = a) : a = s, a;
67
70
  }
68
- var a = (t) => Array[e(381)](t).reduce((t, n) => t + ((n[e(379)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
69
- export { a as estimateTextWidth, n as funnelStats, i as hBarPath };
71
+ var a = (t) => Array[e(225)](t).reduce((t, n) => t + ((n[e(228)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
72
+ export { a as estimateTextWidth, n as funnelStats, r as hBarPath };