@iamfiro/design 0.1.0 → 0.3.0

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 (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +65 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +229 -0
  15. package/lib/components/Calendar/date.js +121 -0
  16. package/lib/components/Card/Card2.js +104 -0
  17. package/lib/components/CardFrame/CardFrame2.js +72 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +53 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +114 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +75 -0
  29. package/lib/components/Combobox/Combobox2.js +229 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +134 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1996 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +558 -0
  37. package/lib/components/DataGrid/panels.js +703 -0
  38. package/lib/components/DataGrid/typeMeta.js +76 -0
  39. package/lib/components/DataGrid/types.js +54 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +118 -0
  42. package/lib/components/Dialog/Dialog2.js +109 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +144 -0
  48. package/lib/components/EmptyState/EmptyState2.js +72 -0
  49. package/lib/components/FileChip/FileChip2.js +118 -0
  50. package/lib/components/FileUpload/FileUpload.js +258 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +69 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +109 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +133 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +223 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +129 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +53 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +66 -0
  77. package/lib/components/PieChart/useArcTween.js +94 -0
  78. package/lib/components/Popover/Popover2.js +112 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +236 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  85. package/lib/components/ScatterChart/scatter.js +83 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +218 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +76 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +360 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +83 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +83 -0
  105. package/lib/components/Toast/Toaster.js +212 -0
  106. package/lib/components/Toast/store.js +129 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +281 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +284 -0
  112. package/lib/hooks/timing.js +55 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +80 -0
  115. package/lib/hooks/useDigitInput.js +105 -0
  116. package/lib/hooks/useDismiss.js +71 -0
  117. package/lib/hooks/useElapsed.js +83 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +61 -0
  120. package/lib/hooks/usePresence.js +60 -0
  121. package/lib/hooks/usePressToOpen.js +69 -0
  122. package/lib/hooks/useScrollLock.js +70 -0
  123. package/lib/hooks/useSelection.js +68 -0
  124. package/lib/index.js +175 -17911
  125. package/lib/primitives/AspectRatio2.js +80 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +70 -0
  128. package/lib/primitives/CopyButton2.js +85 -0
  129. package/lib/primitives/CountBadge2.js +78 -0
  130. package/lib/primitives/Countdown2.js +65 -0
  131. package/lib/primitives/Delta2.js +67 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +68 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +53 -0
  140. package/lib/primitives/MaskedText2.js +120 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +84 -0
  143. package/lib/primitives/SearchInput2.js +84 -0
  144. package/lib/primitives/SelectorButton2.js +97 -0
  145. package/lib/primitives/Spinner2.js +98 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +51 -0
  151. package/lib/primitives/formatElapsed.js +66 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +352 -0
  155. package/lib/primitives/maskValue.js +65 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,129 @@
1
+ "use client";
2
+ const e = a;
3
+ (function(e, t) {
4
+ let n = a, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(372)) / 1 + parseInt(n(377)) / 2 * (-parseInt(n(350)) / 3) + -parseInt(n(341)) / 4 * (parseInt(n(343)) / 5) + parseInt(n(373)) / 6 * (-parseInt(n(353)) / 7) + -parseInt(n(375)) / 8 + parseInt(n(381)) / 9 + parseInt(n(364)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(t, 341543);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "mJaXmZmWmhjhBfrfDa.Aw5WDxq.BNvTyMvY.CMvWzwf0rgvSyxK.qxjYB3DeB3DU.mte5nte0oeXRruv5ra.64Qy66AS6RIW.nvvZrK5Lva.C3bHBG.qxjYB3Dmzwz0.ugfNzurVD24.Dg9gAxHLza.C2v0vgLTzw91Da.Bwf4.mZq5nwriA3bwvW.y2XLyxjuAw1LB3v0.zhmTC3rLChbLCG.mtrtA2PhzhC.BwLU.y3vYCMvUDa.zhmTC3rLChbLCL9FDMfSDwu.sg9Tzq.AxndB21WB3nPBMC.7kse7j206RIW.AxngAw5PDgu.CMvWzwf0zwq.C3rYAw5N.qxjYB3DvCa.mta4mdeZndbOBhfotxi.Aw5KzxHpzG.zhmTC3rLChbLCL9FBNvT.rw5K.DgLTzxi.zhmTC3rLChbLCL9FyNrU.yNv0Dg9U.C3bPBMj1DhrVBG.ntuZnda0wMLcshbj.mte0nZC1offqwvnIBa.A2v5.nti3nJu3nKjmu3vsra.CMvWzwf0sw50zxj2ywW.mZaWzhvLD1Hl.AgLKzgvU.BgvUz3rO.qxjYB3DsAwDODa".split(".");
14
+ return t = function() {
15
+ return e;
16
+ }, t();
17
+ }
18
+ import { TIMING as n } from "../../hooks/timing.js";
19
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
20
+ import { cx as i } from "../../primitives/index.js";
21
+ function a(e, n) {
22
+ e -= 339;
23
+ let r = t(), i = r[e];
24
+ a.WBqFHG === void 0 && (a.qtGqEk = function(e) {
25
+ let t = "", n = "";
26
+ 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);
27
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
+ return decodeURIComponent(n);
29
+ }, a.vnCyXg = {}, a.WBqFHG = !0);
30
+ let o = r[0];
31
+ a.OAJDwT !== o && (a.vnCyXg = {}, a.OAJDwT = o);
32
+ let s = a.vnCyXg[e];
33
+ return s === void 0 ? (i = a.qtGqEk(i), a.vnCyXg[e] = i) : i = s, i;
34
+ }
35
+ /* empty css */
36
+ import { useEffect as o, useRef as s, useState as c } from "react";
37
+ import { Minus as l, Plus as u } from "lucide-react";
38
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
39
+ var p = (e) => {
40
+ let t = a, n = String(e), r = n[t(365)](".");
41
+ return r < 0 ? 0 : n.length - r - 1;
42
+ };
43
+ function m({ value: t, defaultValue: a, onValueChange: m, min: h = -Infinity, max: g = Infinity, step: _ = 1, largeStep: v, size: y = "md", disabled: b, formatValue: x, "aria-label": S, "aria-labelledby": C, decrementLabel: w = e(359), incrementLabel: T = e(342), name: E, id: D, className: O, style: k }) {
44
+ let A = e, [j, M] = r(t, a ?? Math[A(354)](g, Math[A(349)](h, 0)), m), N = Math[A(349)](p(_), p(Number[A(360)](h) ? h : 0)), P = (e) => Number(Math[A(354)](g, Math[A(349)](h, e))[A(347)](N)), [F, I] = c(j), [L, R] = c(null);
45
+ j !== F && (I(j), R(j > F ? "up" : "down"));
46
+ let z = s(j);
47
+ o(() => {
48
+ let e = A;
49
+ z[e(355)] = j;
50
+ });
51
+ let B = s({
52
+ timer: 0,
53
+ repeated: !1
54
+ }), V = () => window[A(351)](B[A(355)].timer);
55
+ o(() => {
56
+ let e = A, t = B.current;
57
+ return () => window[e(351)](t[e(368)]);
58
+ }, []);
59
+ let H = (e) => {
60
+ let t = A, n = P(e);
61
+ return n !== z[t(355)] && (z[t(355)] = n, M(n), !0);
62
+ }, U = (e) => H(z.current + e), W = (e) => (t) => {
63
+ let r = A;
64
+ if (t[r(370)] !== 0 || b) return;
65
+ V(), B.current[r(361)] = !1;
66
+ let i = () => {
67
+ let t = r;
68
+ B.current[t(361)] = !0, U(e) && (B[t(355)][t(368)] = window.setTimeout(i, n[t(376)]));
69
+ };
70
+ B[r(355)][r(368)] = window[r(348)](i, n[r(339)]);
71
+ }, G = (e) => () => {
72
+ let t = A;
73
+ B[t(355)][t(361)] ? B[t(355)][t(361)] = !1 : U(e);
74
+ }, K = (e) => {
75
+ let t = A;
76
+ if (b || e.nativeEvent[t(358)]) return;
77
+ let n = v ?? _ * 10, r = !0;
78
+ e.key === t(363) || e.key === t(380) ? U(_) : e[t(374)] === t(340) || e[t(374)] === t(345) ? U(-_) : e[t(374)] === "PageUp" ? U(n) : e[t(374)] === t(346) ? U(-n) : e[t(374)] === t(357) && Number[t(360)](h) ? H(h) : e[t(374)] === t(367) && Number[t(360)](g) ? H(g) : r = !1, r && e.preventDefault();
79
+ }, q = x ? x(j) : j, J = typeof q === A(362) || typeof q === A(383) ? String(q) : String(j), Y = Math.max(String(Number[A(360)](g) ? g : j)[A(379)], String(Number[A(360)](h) ? h : j)[A(379)], String(j)[A(379)]), X = (e, t, n, r) => d(A(370), {
80
+ type: A(370),
81
+ className: A(369),
82
+ "aria-label": t,
83
+ tabIndex: -1,
84
+ disabled: b || r,
85
+ onPointerDown: W(e),
86
+ onPointerUp: V,
87
+ onPointerLeave: V,
88
+ onPointerCancel: V,
89
+ onClick: G(e),
90
+ children: n
91
+ });
92
+ return f("div", {
93
+ className: i(A(352), "ds-stepper--" + y, O),
94
+ "data-disabled": b || void 0,
95
+ style: {
96
+ "--_digits": Y + "ch",
97
+ ...k
98
+ },
99
+ children: [
100
+ X(-_, w, d(l, {}), j <= h),
101
+ d(A(344), {
102
+ id: D,
103
+ role: A(371),
104
+ tabIndex: b ? -1 : 0,
105
+ className: A(356),
106
+ "aria-label": S,
107
+ "aria-labelledby": C,
108
+ "aria-valuenow": j,
109
+ "aria-valuemin": Number[A(360)](h) ? h : void 0,
110
+ "aria-valuemax": Number[A(360)](g) ? g : void 0,
111
+ "aria-valuetext": x ? J : void 0,
112
+ "aria-disabled": b || void 0,
113
+ onKeyDown: K,
114
+ children: d(A(344), {
115
+ className: A(366),
116
+ "data-dir": L ?? void 0,
117
+ children: q
118
+ }, j)
119
+ }),
120
+ X(_, T, d(u, {}), j >= g),
121
+ E && d(A(382), {
122
+ type: A(378),
123
+ name: E,
124
+ value: j
125
+ })
126
+ ]
127
+ });
128
+ }
129
+ export { m as NumberStepper };
@@ -0,0 +1,122 @@
1
+ "use client";
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(451)) / 1 + parseInt(n(476)) / 2 + parseInt(n(464)) / 3 + -parseInt(n(473)) / 4 + parseInt(n(465)) / 5 * (-parseInt(n(447)) / 6) + -parseInt(n(484)) / 7 + parseInt(n(456)) / 8 * (parseInt(n(481)) / 9) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(f, 700011);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ /* empty css */
15
+ import { forwardRef as r, useImperativeHandle as i, useRef as a, useState as o } from "react";
16
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
17
+ function l(e, t) {
18
+ e -= 442;
19
+ let n = f(), r = n[e];
20
+ l.xOLFOy === void 0 && (l.dcjMbr = function(e) {
21
+ let t = "", n = "";
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);
23
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
24
+ return decodeURIComponent(n);
25
+ }, l.PQxSeB = {}, l.xOLFOy = !0);
26
+ let i = n[0];
27
+ l.iznGNZ !== i && (l.PQxSeB = {}, l.iznGNZ = i);
28
+ let a = l.PQxSeB[e];
29
+ return a === void 0 ? (r = l.dcjMbr(r), l.PQxSeB[e] = r) : r = a, r;
30
+ }
31
+ var u = {
32
+ numeric: /[^0-9]/g,
33
+ alphanumeric: /[^a-zA-Z0-9]/g
34
+ }, d = r(function({ length: r = 6, groups: l, value: d, defaultValue: f = "", onValueChange: p, onComplete: m, pattern: h = e(453), status: g, mask: _, size: v = "md", disabled: y, autoFocus: b, name: x, id: S, className: C, "aria-label": w = e(457) }, T) {
35
+ let E = e, D = a(null);
36
+ i(T, () => D[E(483)]);
37
+ let O = (e) => {
38
+ let t = E, n = e.replace(u[h], "").slice(0, r);
39
+ return h === t(482) ? n[t(454)]() : n;
40
+ }, [k, A] = t(d, O(f), p), [j, M] = o(!1), N = (e) => {
41
+ let t = O(e);
42
+ t !== k && (A(t), t.length === r && m?.(t));
43
+ }, P = () => {
44
+ let e = E, t = D[e(483)];
45
+ t && t[e(467)](t[e(450)][e(472)], t[e(450)].length);
46
+ }, F = g === "loading", I = F || g === E(462), L = j && !I ? Math[E(446)](k.length, r - 1) : -1, R = l && l.reduce((e, t) => e + t, 0) === r ? l : [r], z = R[E(463)]((e, t) => {
47
+ let n = R[E(443)](0, t).reduce((e, t) => e + t, 0);
48
+ return [n, n + e];
49
+ });
50
+ return c(E(460), {
51
+ className: n("ds-otp", v === "lg" && E(452), C),
52
+ "data-status": g,
53
+ "data-disabled": y || void 0,
54
+ onPointerDown: (e) => {
55
+ let t = E;
56
+ y || (e[t(477)](), D[t(483)]?.[t(479)](), P());
57
+ },
58
+ children: [s("input", {
59
+ ref: D,
60
+ id: S,
61
+ name: x,
62
+ className: E(455),
63
+ value: k,
64
+ inputMode: h === E(453) ? "numeric" : E(478),
65
+ autoComplete: "one-time-code",
66
+ autoCapitalize: E(449),
67
+ spellCheck: !1,
68
+ "aria-label": w + " " + r + "자리",
69
+ "aria-invalid": g === E(469) || void 0,
70
+ "aria-busy": F || void 0,
71
+ readOnly: I,
72
+ disabled: y,
73
+ autoFocus: b,
74
+ onChange: (e) => N(e[E(471)][E(450)]),
75
+ onFocus: () => {
76
+ M(!0), P();
77
+ },
78
+ onBlur: () => M(!1),
79
+ onSelect: P,
80
+ onKeyDown: (e) => {
81
+ let t = E;
82
+ [
83
+ t(461),
84
+ t(466),
85
+ "Home",
86
+ "End",
87
+ t(470),
88
+ t(442)
89
+ ][t(480)](e.key) && e[t(477)]();
90
+ }
91
+ }), s(E(460), {
92
+ className: "ds-otp__slots",
93
+ children: z[E(463)](([e, t], n) => c("div", {
94
+ className: E(485),
95
+ children: [n > 0 && s(E(459), {
96
+ className: E(458),
97
+ "aria-hidden": !0
98
+ }), Array[E(444)]({ length: t - e }, (t, n) => {
99
+ let r = E, i = e + n, a = k[i];
100
+ return c(r(460), {
101
+ className: r(468),
102
+ "data-filled": a != null || void 0,
103
+ "data-active": i === L || void 0,
104
+ style: { "--_i": i },
105
+ "aria-hidden": !0,
106
+ children: [a != null && s(r(459), {
107
+ className: r(445),
108
+ children: _ ? s(r(459), { className: r(474) }) : a
109
+ }, a + i), i === L && a == null && s(r(459), { className: r(448) })]
110
+ }, i);
111
+ })]
112
+ }, n))
113
+ }, g ? g + "-" + k : E(475))]
114
+ });
115
+ });
116
+ function f() {
117
+ let e = /* @__PURE__ */ "BgvUz3rO.ntaZodGYnffMqKD5uq.zhmTB3rWx19KB3q.AwrSzq.odm4nduWBLntB2PZ.ChjLDMvUDerLzMf1Bhq.Dgv4Da.zM9JDxm.Aw5JBhvKzxm.mZe2mti1B3fnt0nT.ywXWAgfUDw1LCMLJ.y3vYCMvUDa.otaWntaZmwrpBMLVua.zhmTB3rWx19NCM91Ca.qxjYB3DeB3DU.C2XPy2u.zNjVBq.zhmTB3rWx19JAgfY.BwLU.ntKXotm2t1HWvvvf.zhmTB3rWx19JyxjLDa.y2HHCMfJDgvYCW.DMfSDwu.mJa0ode3CvPdyxbZ.zhmTB3rWls1SzW.BNvTzxjPyW.Dg9vChbLCKnHC2u.zhmTB3rWx19PBNb1Da.nJu2uujPsuj5.7j247kAD67ki7zI4.zhmTB3rWx19Zzxa.C3bHBG.zgL2.qxjYB3Dmzwz0.C3vJy2vZCW.BwfW.mJuYnJi1mMjQtK9lAW.mZvvu29zr0K.qxjYB3DsAwDODa.C2v0u2vSzwn0Aw9UuMfUz2u.zhmTB3rWx19ZBg90.zxjYB3i.qxjYB3DvCa.DgfYz2v0".split(".");
118
+ return f = function() {
119
+ return e;
120
+ }, f();
121
+ }
122
+ export { d as OtpInput };
@@ -0,0 +1,210 @@
1
+ "use client";
2
+ const e = p;
3
+ (function(e, t) {
4
+ let n = p, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(460)) / 1 + -parseInt(n(518)) / 2 + parseInt(n(462)) / 3 * (-parseInt(n(485)) / 4) + parseInt(n(480)) / 5 + -parseInt(n(486)) / 6 * (-parseInt(n(507)) / 7) + parseInt(n(501)) / 8 + -parseInt(n(478)) / 9 * (parseInt(n(461)) / 10) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(l, 539255);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Inline as n } from "../../primitives/Layout2.js";
14
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
15
+ import { Button as i, Input as a, cx as o } from "../../primitives/index.js";
16
+ import { Select as s } from "../Select/Select2.js";
17
+ import { paginationRange as c } from "./paginationRange.js";
18
+ /* empty css */
19
+ function l() {
20
+ let e = /* @__PURE__ */ "zhmTCgfNAw5HDgLVBL9FCgfNzq.zhmTCgfNAw5HDgLVBI0T.BgvMDa.BMv1DhjHBa.mty1mMXMAuz4za.Cg9SAxrL.DgfYz2v0.7y6y7j207kEa64U5io2vREUQQsdSIjG.zMXVB3i.BNvTyMvY.yM9KEs1ZBq.zhmTCgfNAw5HDgLVBL9FC2LTCgXL.y3vYCMvUDa.zw5K.ic8G.mtK2mZe2EK5ZyNvS.BMf2.7y6y7j207kEa64U5ia.zhmTCgfNAw5HDgLVBL9FDgH1Bwi.BNvTzxjPyW.A2v5.C2vJB25Kyxj5.C3bHBG.Bwf4.BwLU.B2zMC2v0tgvMDa.mJy0nJmZDfjpChv3.mti2ndG3mfbtthvmwq.mtjTvwnSyue.DgvYDgLHCNK.Dg9mB2nHBgvtDhjPBMC.BwfW.BMf0AxzLrxzLBNq.rw50zxi.yMv0D2vLBG.BgfIzwWTBwq.7j2064+z7zwGio2oMoYDToYNGcaOmEkaKW.zhmTCgfNAw5HDgLVBL9FANvTCa.66Ei7kEa66Ejio2oMoYDToYNGa.zhmTCgfNAw5HDgLVBL9FCgfNzxm.Dg90ywW.rxnJyxbL.64UK7j2mio2oMoYDToYNGa.D2LKDgG.mti2teLMEeHo.C2LTCgXL.nduYotmYmgHnwfz6rq.DMfSDwu.B2zMC2v0v2LKDgG.ChjPBwfYEq.zgL2.mZuYnJq0uKDMrhP3.mtK5nZrQsfHNBhO.7y6y7j207kEa.y2vPBa.C3rHCNq.zhmTCgfNAw5HDgLVBL9FzwXSAxbZAxm.Axnoyu4.zgLZy29UBMvJDa.BgfIzwW.CxvLCNLtzwXLy3rVCG.z2HVC3q.7lkRio2oMoYDToYNGa.zhmTCgfNAw5HDgLVBI0TChjPBwfYEq.zgvMyxvSDa.7j207kceio2oMoYDToYNGa.A28Ts1i.nJqZnZG3mMXLDKHYBq.CgfNzq".split(".");
21
+ return l = function() {
22
+ return e;
23
+ }, l();
24
+ }
25
+ import { useLayoutEffect as u, useRef as d, useState as f } from "react";
26
+ function p(e, t) {
27
+ e -= 456;
28
+ let n = l(), r = n[e];
29
+ p.FAevzn === void 0 && (p.ydFkvj = 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.FQMuED = {}, p.FAevzn = !0);
35
+ let i = n[0];
36
+ p.FpXFJR !== i && (p.FQMuED = {}, p.FpXFJR = i);
37
+ let a = p.FQMuED[e];
38
+ return a === void 0 ? (r = p.ydFkvj(r), p.FQMuED[e] = r) : r = a, r;
39
+ }
40
+ import { ChevronLeft as m, ChevronRight as h, ChevronsLeft as g, ChevronsRight as _ } from "lucide-react";
41
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
42
+ var b = (t) => t[e(464)](e(500));
43
+ function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalItems: d, pageSize: f, defaultPageSize: p = 20, onPageSizeChange: x, pageSizeOptions: w, siblingCount: T = 1, boundaryCount: E = 1, variant: D = e(498), tone: O = e(506), size: k = "md", showFirstLast: A, showRange: j, showJump: M, formatRange: N, disabled: P, "aria-label": F = e(487), className: I, style: L }) {
44
+ let R = e, [z, B] = r(a, c, l), [V, H] = r(f, p, x), U = Math.max(1, u ?? (d == null ? 1 : Math[R(488)](d / V))), W = Math[R(458)](Math[R(457)](1, z), U), G = (e) => {
45
+ let t = R, n = Math[t(458)](Math[t(457)](1, e), U);
46
+ n !== W && B(n);
47
+ }, K = (e, t, n, r) => v(i, {
48
+ variant: R(495),
49
+ size: k,
50
+ iconOnly: !0,
51
+ icon: t,
52
+ "aria-label": e,
53
+ disabled: P || r,
54
+ onClick: () => G(n)
55
+ }), q = (j ?? d != null) && d != null, J = d == null ? null : {
56
+ start: d === 0 ? 0 : (W - 1) * V + 1,
57
+ end: Math[R(458)](W * V, d),
58
+ total: d
59
+ }, Y = (e) => {
60
+ let t = R, n = (W - 1) * V;
61
+ H(e);
62
+ let r = Math[t(511)](n / e) + 1;
63
+ r !== W && B(r);
64
+ }, X = q && J || w ? y(n, {
65
+ gap: 3,
66
+ children: [q && J && v(t, {
67
+ variant: "body-sm",
68
+ tone: "secondary",
69
+ numeric: !0,
70
+ "aria-live": R(508),
71
+ children: N ? N(J) : b(J[R(489)]) + "–" + b(J[R(516)]) + R(517) + b(J[R(474)]) + "개"
72
+ }), w && v(s, {
73
+ size: "sm",
74
+ "aria-label": R(510),
75
+ disabled: P,
76
+ options: w[R(465)]((e) => ({
77
+ value: String(e),
78
+ label: e + "개"
79
+ })),
80
+ value: String(V),
81
+ onValueChange: (e) => Y(Number(e)),
82
+ renderValue: (e) => R(520) + e[R(493)]
83
+ })]
84
+ }) : null;
85
+ return y(n, {
86
+ as: R(519),
87
+ gap: 4,
88
+ justify: R(X ? 468 : 489),
89
+ "aria-label": F,
90
+ className: o("ds-pagination", R(504) + k, O === R(483) && R(497), I),
91
+ style: L,
92
+ children: [X, y(n, {
93
+ gap: 4,
94
+ children: [y(n, {
95
+ gap: 1,
96
+ wrap: !1,
97
+ children: [
98
+ A && K(R(496), v(g, {}), 1, W <= 1),
99
+ K(R(499), v(m, {}), W - 1, W <= 1),
100
+ D === R(479) ? y(t, {
101
+ variant: R(469),
102
+ numeric: !0,
103
+ className: R(514),
104
+ "aria-live": R(508),
105
+ children: [W, y(t, {
106
+ as: R(456),
107
+ variant: R(469),
108
+ tone: R(463),
109
+ numeric: !0,
110
+ children: [
111
+ " ",
112
+ "/ ",
113
+ U
114
+ ]
115
+ })]
116
+ }) : v(S, {
117
+ page: W,
118
+ count: U,
119
+ siblingCount: T,
120
+ boundaryCount: E,
121
+ disabled: P,
122
+ onPick: G
123
+ }),
124
+ K(R(476), v(h, {}), W + 1, W >= U),
125
+ A && K(R(472), v(_, {}), U, W >= U)
126
+ ]
127
+ }), M && v(C, {
128
+ count: U,
129
+ disabled: P,
130
+ onJump: G
131
+ })]
132
+ })]
133
+ });
134
+ }
135
+ function S({ page: t, count: n, siblingCount: r, boundaryCount: i, disabled: a, onPick: o }) {
136
+ let s = e, l = d(null), [m, h] = f(null), g = c(t, n, r, i);
137
+ return u(() => {
138
+ let e = p, t = l[e(515)];
139
+ if (!t) return;
140
+ let n = () => {
141
+ let n = e, r = t[n(494)]("[aria-current=\"page\"]");
142
+ r && h({
143
+ left: r[n(459)],
144
+ width: r[n(482)]
145
+ });
146
+ };
147
+ n();
148
+ let r = new ResizeObserver(n);
149
+ return r.observe(t), () => r[e(492)]();
150
+ }, [
151
+ t,
152
+ n,
153
+ r,
154
+ i
155
+ ]), y(s(484), {
156
+ ref: l,
157
+ className: s(473),
158
+ children: [m && v(s(456), {
159
+ className: s(521),
160
+ "aria-hidden": !0,
161
+ style: {
162
+ left: m[s(505)],
163
+ width: m[s(477)]
164
+ }
165
+ }), g.map((e) => typeof e === s(512) ? v("button", {
166
+ type: "button",
167
+ className: s(503),
168
+ "aria-current": e === t ? s(502) : void 0,
169
+ "aria-label": e + s(487),
170
+ disabled: a,
171
+ onClick: () => o(e),
172
+ children: e
173
+ }, e) : v("span", {
174
+ className: s(490),
175
+ "aria-hidden": !0,
176
+ children: "…"
177
+ }, e))]
178
+ });
179
+ }
180
+ function C({ count: r, disabled: i, onJump: o }) {
181
+ let s = e, [c, l] = f(""), u = () => {
182
+ let e = p, t = parseInt(c, 10);
183
+ Number[e(491)](t) || o(t), l("");
184
+ };
185
+ return y(n, {
186
+ gap: 2,
187
+ wrap: !1,
188
+ children: [v(t, {
189
+ variant: s(513),
190
+ tone: s(524),
191
+ "aria-hidden": !0,
192
+ children: "이동"
193
+ }), v(a, {
194
+ size: "sm",
195
+ inputMode: s(522),
196
+ "aria-label": s(470) + r + ")",
197
+ placeholder: "1–" + r,
198
+ disabled: i,
199
+ value: c,
200
+ wrapperClassName: s(471),
201
+ onChange: (e) => l(e[s(509)][s(481)].replace(/[^0-9]/g, "")),
202
+ onKeyDown: (e) => {
203
+ let t = s;
204
+ e[t(523)] === t(467) && !e[t(466)].isComposing && u(), e.key === t(475) && l("");
205
+ },
206
+ onBlur: () => l("")
207
+ })]
208
+ });
209
+ }
210
+ export { x as Pagination };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ function e(t, r) {
3
+ t -= 260;
4
+ let i = n(), a = i[t];
5
+ e.aIrWeu === void 0 && (e.UOPkbj = 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.yYqvtE = {}, e.aIrWeu = !0);
11
+ let o = i[0];
12
+ e.awoEhY !== o && (e.yYqvtE = {}, e.awoEhY = o);
13
+ let s = e.yYqvtE[t];
14
+ return s === void 0 ? (a = e.UOPkbj(a), e.yYqvtE[t] = a) : a = s, a;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
18
+ for (;;) try {
19
+ if (-parseInt(r(275)) / 1 + parseInt(r(263)) / 2 + parseInt(r(267)) / 3 + -parseInt(r(270)) / 4 * (parseInt(r(264)) / 5) + -parseInt(r(276)) / 6 * (-parseInt(r(265)) / 7) + parseInt(r(266)) / 8 * (-parseInt(r(269)) / 9) + -parseInt(r(274)) / 10 * (-parseInt(r(271)) / 11) == n) break;
20
+ i.push(i.shift());
21
+ } catch {
22
+ i.push(i.shift());
23
+ }
24
+ })(n, 402858);
25
+ function t(t, n, r = 1, i = 1) {
26
+ let a = e, o = (e, t) => Array[a(273)]({ length: Math[a(272)](t - e + 1, 0) }, (t, n) => e + n), s = o(1, Math[a(262)](i, n)), c = o(Math[a(272)](n - i + 1, i + 1), n), l = Math[a(272)](Math.min(t - r, n - i - r * 2 - 1), i + 2), u = Math[a(262)](Math.max(t + r, i + r * 2 + 2), c.length > 0 ? c[0] - 2 : n - 1), d = [...s];
27
+ return l > i + 2 ? d[a(261)](a(260)) : i + 1 < n - i && d[a(261)](i + 1), d[a(261)](...o(l, u)), u < n - i - 1 ? d.push(a(268)) : n - i > i && d.push(n - i), d[a(261)](...c), d;
28
+ }
29
+ export { t as paginationRange };
30
+ function n() {
31
+ let e = [
32
+ "ovDrq1Lxva",
33
+ "mJG4mZqXnLv4rK9Rwq",
34
+ "mtq1mZfdsMLtEKO",
35
+ "Bwf4",
36
+ "zNjVBq",
37
+ "ntK5mfLntg1WqW",
38
+ "nta0nJGZDev1BuHL",
39
+ "mti2nZuXmM9nr29LDW",
40
+ "C3rHCNqTzwXSAxbZAxm",
41
+ "ChvZAa",
42
+ "BwLU",
43
+ "odiYnJa0z1b5EM5f",
44
+ "nuziCNLswG",
45
+ "mtrxDMXHyNe",
46
+ "mtuXntG0ohDxBvnHyG",
47
+ "ntC4mZCZyM5Qr2TK",
48
+ "zw5KlwvSBgLWC2LZ"
49
+ ];
50
+ return n = function() {
51
+ return e;
52
+ }, n();
53
+ }
@@ -0,0 +1,175 @@
1
+ "use client";
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (parseInt(r(493)) / 1 * (parseInt(r(522)) / 2) + -parseInt(r(527)) / 3 + -parseInt(r(514)) / 4 + -parseInt(r(528)) / 5 * (parseInt(r(511)) / 6) + parseInt(r(513)) / 7 * (parseInt(r(501)) / 8) + -parseInt(r(502)) / 9 + parseInt(r(515)) / 10 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(f, 805421);
12
+ import { Flag as t } from "../../primitives/Flag2.js";
13
+ function n(e, t) {
14
+ e -= 491;
15
+ let r = f(), i = r[e];
16
+ n.bKtlrh === void 0 && (n.MLBNce = function(e) {
17
+ let t = "", n = "";
18
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
19
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, n.MEMSWw = {}, n.bKtlrh = !0);
22
+ let a = r[0];
23
+ n.PyfDNk !== a && (n.MEMSWw = {}, n.PyfDNk = a);
24
+ let o = n.MEMSWw[e];
25
+ return o === void 0 ? (i = n.MLBNce(i), n.MEMSWw[e] = i) : i = o, i;
26
+ }
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { Input as i } from "../../primitives/index.js";
29
+ import { useDigitInput as a } from "../../hooks/useDigitInput.js";
30
+ import { Select as o } from "../Select/Select2.js";
31
+ import { useRef as s } from "react";
32
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
33
+ var d = [
34
+ {
35
+ code: "KR",
36
+ name: e(536),
37
+ dial: "82",
38
+ pattern: e(508),
39
+ example: "01012345678",
40
+ trunk: !0
41
+ },
42
+ {
43
+ code: "US",
44
+ name: "미국",
45
+ dial: "1",
46
+ pattern: e(517),
47
+ example: "2015550123"
48
+ },
49
+ {
50
+ code: "JP",
51
+ name: "일본",
52
+ dial: "81",
53
+ pattern: e(508),
54
+ example: e(506),
55
+ trunk: !0
56
+ },
57
+ {
58
+ code: "CN",
59
+ name: "중국",
60
+ dial: "86",
61
+ pattern: e(512),
62
+ example: e(496)
63
+ },
64
+ {
65
+ code: "VN",
66
+ name: e(531),
67
+ dial: "84",
68
+ pattern: e(507),
69
+ example: "0912345678",
70
+ trunk: !0
71
+ },
72
+ {
73
+ code: "GB",
74
+ name: "영국",
75
+ dial: "44",
76
+ pattern: e(521),
77
+ example: "07400123456",
78
+ trunk: !0
79
+ },
80
+ {
81
+ code: "DE",
82
+ name: "독일",
83
+ dial: "49",
84
+ pattern: e(494),
85
+ example: e(504),
86
+ trunk: !0
87
+ },
88
+ {
89
+ code: "FR",
90
+ name: "프랑스",
91
+ dial: "33",
92
+ pattern: e(505),
93
+ example: e(533),
94
+ trunk: !0
95
+ }
96
+ ];
97
+ function f() {
98
+ let e = /* @__PURE__ */ "C2XPy2u.mdyXmJm0nty3oa.zMLUza.BgvUz3rO.64Ya7zwC66+86RwT.zxHHBxbSzq.y3vYCMvUDa.mte0nvbQq0TNAa.iYmJiYmGiYmJiYmJiW.CMvM.mtmXmJm0nty3odK.ChjLDMvUDerLzMf1Bhq.zM9JDxm.CMvWBgfJzq.C29YDa.mZy0mZjqEvvgzwK.mtmZmtu0mJHtCxrsAxC.DgvS.mde1mtiZndu2nZG5.iYmGiYmGiYmGiYmGiYm.mdKWmtiZndu2nZG.iYmJicmJiYaJiYmJ.iYmJlsmJiYmTiYmJiW.Cgf0DgvYBG.y2XPCgjVyxjKrgf0yq.mJeZmJy4mKP2qwHuCG.iYmJicmJiYmGiYmJiW.mti4mvL4EKfJqG.mZiWnZi0ogXms25eqG.mZi5mZa5mdbIDurXEKW.C3rHCNrZv2L0Aa.kcmJiYKGiYmJlsmJiYm.y29Kzq.Dhj1BMS.Aw5WDxq.iYmJiYmGiYmJiYmJ.odG2y1DzAMn2.DgvSlw5HDgLVBMfS.AgLKzgvU.C3bSAxq.BwfW.mZC1ntGYD2vUsxHt.mJbsBwXRrge.zgLHBa.Dgv4Da.67kG7yQ464kO".split(".");
99
+ return f = function() {
100
+ return e;
101
+ }, f();
102
+ }
103
+ function p(e, t) {
104
+ let n = "", r = 0;
105
+ for (let i of t) {
106
+ if (r === e.length) break;
107
+ n += i === "#" ? e[r++] : i;
108
+ }
109
+ return n;
110
+ }
111
+ function m(t, n) {
112
+ let r = e;
113
+ return t ? "+" + n[r(529)] + (n[r(519)] ? t[r(499)](/^0/, "") : t) : "";
114
+ }
115
+ function h({ value: n, defaultValue: f = "", onValueChange: h, country: g, defaultCountry: _ = "KR", onCountryChange: v, countries: y = d, size: b = "md", invalid: x, disabled: S, placeholder: C, name: w, id: T, "aria-label": E }) {
116
+ let D = e, O = s(null), [k, A] = r(g, _, v), j = y[D(534)]((e) => e[D(518)] === k) ?? y[0], M = j[D(509)][D(525)]("#").length - 1, [N, P] = r(n, f), F = (e, t = j) => {
117
+ P(e), h?.(e, {
118
+ country: t,
119
+ e164: m(e, t)
120
+ });
121
+ }, I = a({
122
+ digits: N,
123
+ onDigitsChange: F,
124
+ format: (e) => p(e, j.pattern),
125
+ maxDigits: M
126
+ }), L = (e) => {
127
+ let t = D, n = y[t(534)]((n) => n[t(518)] === e) ?? j;
128
+ A(e);
129
+ let r = N.slice(0, n.pattern[t(525)]("#")[t(535)] - 1);
130
+ (r !== N || n !== j) && F(r, n), requestAnimationFrame(() => I[t(495)][t(492)]?.[t(498)]());
131
+ }, R = (e) => {
132
+ let t = D, n = e[t(510)].getData(t(530)).trim();
133
+ if (!n[t(516)]("+")) return;
134
+ let r = n.replace(/\D/g, ""), i = [...y][t(500)]((e, n) => n[t(529)].length - e.dial[t(535)])[t(534)]((e) => r[t(516)](e.dial));
135
+ if (!i) return;
136
+ e[t(497)]();
137
+ let a = r[t(532)](i[t(529)][t(535)]);
138
+ i[t(519)] && !a[t(516)]("0") && (a = "0" + a), A(i[t(518)]), F(a[t(532)](0, i[t(509)].split("#")[t(535)] - 1), i);
139
+ }, z = y[D(526)]((e) => ({
140
+ value: e[D(518)],
141
+ label: e.name,
142
+ icon: l(t, { code: e[D(518)] }),
143
+ meta: "+" + e.dial,
144
+ keywords: [e.dial]
145
+ }));
146
+ return u(c, { children: [l(i, {
147
+ ...I,
148
+ id: T,
149
+ type: D(503),
150
+ inputMode: D(503),
151
+ autoComplete: D(523),
152
+ size: b,
153
+ invalid: x,
154
+ disabled: S,
155
+ "aria-label": E,
156
+ placeholder: C ?? p(j[D(491)], j[D(509)]),
157
+ onPaste: R,
158
+ wrapperRef: O,
159
+ leading: l(o, {
160
+ bare: !0,
161
+ options: z,
162
+ value: j[D(518)],
163
+ onValueChange: L,
164
+ anchorRef: O,
165
+ disabled: S,
166
+ "aria-label": "국가",
167
+ renderValue: () => "+" + j.dial
168
+ })
169
+ }), w && l(D(520), {
170
+ type: D(524),
171
+ name: w,
172
+ value: m(N, j)
173
+ })] });
174
+ }
175
+ export { d as PHONE_COUNTRIES, h as PhoneInput, p as formatPhone, m as toE164 };