@iamfiro/design 0.1.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 (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 +66 -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 +90 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +228 -0
  15. package/lib/components/Calendar/date.js +118 -0
  16. package/lib/components/Card/Card2.js +103 -0
  17. package/lib/components/CardFrame/CardFrame2.js +67 -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 +48 -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 +111 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +609 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +70 -0
  29. package/lib/components/Combobox/Combobox2.js +228 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +110 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1998 -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 +557 -0
  37. package/lib/components/DataGrid/panels.js +701 -0
  38. package/lib/components/DataGrid/typeMeta.js +75 -0
  39. package/lib/components/DataGrid/types.js +53 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +119 -0
  42. package/lib/components/Dialog/Dialog2.js +110 -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 +393 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +145 -0
  48. package/lib/components/EmptyState/EmptyState2.js +70 -0
  49. package/lib/components/FileChip/FileChip2.js +94 -0
  50. package/lib/components/FileUpload/FileUpload.js +259 -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 +72 -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 +110 -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 +132 -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 +222 -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 +128 -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 +52 -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 +90 -0
  77. package/lib/components/PieChart/useArcTween.js +92 -0
  78. package/lib/components/Popover/Popover2.js +111 -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 +238 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +99 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +355 -0
  85. package/lib/components/ScatterChart/scatter.js +85 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +217 -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 +84 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +71 -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 +357 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +81 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +81 -0
  105. package/lib/components/Toast/Toaster.js +213 -0
  106. package/lib/components/Toast/store.js +128 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +283 -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 +286 -0
  112. package/lib/hooks/timing.js +57 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +75 -0
  115. package/lib/hooks/useDigitInput.js +103 -0
  116. package/lib/hooks/useDismiss.js +69 -0
  117. package/lib/hooks/useElapsed.js +85 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +85 -0
  120. package/lib/hooks/usePresence.js +58 -0
  121. package/lib/hooks/usePressToOpen.js +70 -0
  122. package/lib/hooks/useScrollLock.js +71 -0
  123. package/lib/hooks/useSelection.js +65 -0
  124. package/lib/index.js +176 -17911
  125. package/lib/primitives/AspectRatio2.js +76 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +71 -0
  128. package/lib/primitives/CopyButton2.js +86 -0
  129. package/lib/primitives/CountBadge2.js +80 -0
  130. package/lib/primitives/Countdown2.js +61 -0
  131. package/lib/primitives/Delta2.js +92 -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 +69 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +55 -0
  140. package/lib/primitives/MaskedText2.js +121 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +82 -0
  143. package/lib/primitives/SearchInput2.js +85 -0
  144. package/lib/primitives/SelectorButton2.js +96 -0
  145. package/lib/primitives/Spinner2.js +94 -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 +54 -0
  151. package/lib/primitives/formatElapsed.js +63 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +351 -0
  155. package/lib/primitives/maskValue.js +69 -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,128 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 303;
4
+ let r = m(), i = r[t];
5
+ e.cKbYLx === void 0 && (e.uLQdPO = 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.CRUbwC = {}, e.cKbYLx = !0);
11
+ let a = r[0];
12
+ e.vgYTOK !== a && (e.CRUbwC = {}, e.vgYTOK = a);
13
+ let o = e.CRUbwC[t];
14
+ return o === void 0 ? (i = e.uLQdPO(i), e.CRUbwC[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(307)) / 1 * (parseInt(r(336)) / 2) + -parseInt(r(309)) / 3 + -parseInt(r(312)) / 4 + -parseInt(r(317)) / 5 + -parseInt(r(332)) / 6 * (parseInt(r(330)) / 7) + -parseInt(r(303)) / 8 * (-parseInt(r(326)) / 9) + parseInt(r(316)) / 10 * (parseInt(r(327)) / 11) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(m, 197900);
26
+ import { TIMING as n } from "../../hooks/timing.js";
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { cx as i } from "../../primitives/index.js";
29
+ /* empty css */
30
+ import { useEffect as a, useRef as o, useState as s } from "react";
31
+ import { Minus as c, Plus as l } from "lucide-react";
32
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
33
+ var f = (t) => {
34
+ let n = e, r = String(t), i = r[n(344)](".");
35
+ return i < 0 ? 0 : r[n(306)] - i - 1;
36
+ };
37
+ function p({ value: e, defaultValue: p, 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 = t(320), incrementLabel: T = t(331), name: E, id: D, className: O, style: k }) {
38
+ let A = t, [j, M] = r(e, p ?? Math.min(g, Math[A(343)](h, 0)), m), N = Math.max(f(_), f(Number[A(342)](h) ? h : 0)), P = (e) => Number(Math[A(322)](g, Math.max(h, e))[A(329)](N)), [F, I] = s(j), [L, R] = s(null);
39
+ j !== F && (I(j), R(j > F ? "up" : "down"));
40
+ let z = o(j);
41
+ a(() => {
42
+ z.current = j;
43
+ });
44
+ let B = o({
45
+ timer: 0,
46
+ repeated: !1
47
+ }), V = () => window.clearTimeout(B[A(308)].timer);
48
+ a(() => {
49
+ let e = A, t = B[e(308)];
50
+ return () => window[e(338)](t[e(313)]);
51
+ }, []);
52
+ let H = (e) => {
53
+ let t = A, n = P(e);
54
+ return n !== z[t(308)] && (z[t(308)] = n, M(n), !0);
55
+ }, U = (e) => H(z[A(308)] + e), W = (e) => (t) => {
56
+ let r = A;
57
+ if (t[r(319)] !== 0 || b) return;
58
+ V(), B[r(308)][r(339)] = !1;
59
+ let i = () => {
60
+ let t = r;
61
+ B[t(308)][t(339)] = !0, U(e) && (B.current[t(313)] = window[t(304)](i, n[t(325)]));
62
+ };
63
+ B.current[r(313)] = window[r(304)](i, n.repeatDelay);
64
+ }, G = (e) => () => {
65
+ let t = A;
66
+ B[t(308)][t(339)] ? B[t(308)][t(339)] = !1 : U(e);
67
+ }, K = (e) => {
68
+ let t = A;
69
+ if (b || e[t(321)].isComposing) return;
70
+ let n = v ?? _ * 10, r = !0;
71
+ e[t(340)] === "ArrowUp" || e[t(340)] === t(314) ? U(_) : e[t(340)] === "ArrowDown" || e[t(340)] === "ArrowLeft" ? U(-_) : e.key === t(335) ? U(n) : e[t(340)] === "PageDown" ? U(-n) : e.key === t(324) && Number[t(342)](h) ? H(h) : e[t(340)] === t(328) && Number[t(342)](g) ? H(g) : r = !1, r && e[t(311)]();
72
+ }, q = x ? x(j) : j, J = typeof q === A(310) || typeof q == "number" ? String(q) : String(j), Y = Math[A(343)](String(Number[A(342)](g) ? g : j)[A(306)], String(Number[A(342)](h) ? h : j)[A(306)], String(j)[A(306)]), X = (e, t, n, r) => u("button", {
73
+ type: A(319),
74
+ className: A(337),
75
+ "aria-label": t,
76
+ tabIndex: -1,
77
+ disabled: b || r,
78
+ onPointerDown: W(e),
79
+ onPointerUp: V,
80
+ onPointerLeave: V,
81
+ onPointerCancel: V,
82
+ onClick: G(e),
83
+ children: n
84
+ });
85
+ return d(A(333), {
86
+ className: i(A(334), "ds-stepper--" + y, O),
87
+ "data-disabled": b || void 0,
88
+ style: {
89
+ "--_digits": Y + "ch",
90
+ ...k
91
+ },
92
+ children: [
93
+ X(-_, w, u(c, {}), j <= h),
94
+ u(A(315), {
95
+ id: D,
96
+ role: A(318),
97
+ tabIndex: b ? -1 : 0,
98
+ className: "ds-stepper__value",
99
+ "aria-label": S,
100
+ "aria-labelledby": C,
101
+ "aria-valuenow": j,
102
+ "aria-valuemin": Number.isFinite(h) ? h : void 0,
103
+ "aria-valuemax": Number[A(342)](g) ? g : void 0,
104
+ "aria-valuetext": x ? J : void 0,
105
+ "aria-disabled": b || void 0,
106
+ onKeyDown: K,
107
+ children: u("span", {
108
+ className: A(305),
109
+ "data-dir": L ?? void 0,
110
+ children: q
111
+ }, j)
112
+ }),
113
+ X(_, T, u(l, {}), j >= g),
114
+ E && u(A(323), {
115
+ type: A(341),
116
+ name: E,
117
+ value: j
118
+ })
119
+ ]
120
+ });
121
+ }
122
+ function m() {
123
+ let e = /* @__PURE__ */ "qxjYB3DsAwDODa.C3bHBG.mtbIELbKAwC.ntKYmZi1wMfvuMXM.C3bPBMj1DhrVBG.yNv0Dg9U.7kse7j206RIW.BMf0AxzLrxzLBNq.BwLU.Aw5WDxq.sg9Tzq.CMvWzwf0sw50zxj2ywW.oxH1r21ruG.nZC3mZy2n3fPCffNyq.rw5K.Dg9gAxHLza.nZeYmtfHsKniEKC.64Qy66AS6RIW.mtuWyu1zs1bk.zgL2.zhmTC3rLChbLCG.ugfNzvvW.nty2mda4wvLMyu5n.zhmTC3rLChbLCL9FyNrU.y2XLyxjuAw1LB3v0.CMvWzwf0zwq.A2v5.AgLKzgvU.AxngAw5PDgu.Bwf4.Aw5KzxHpzG.mJmZmZC5mLDyvwjgzG.C2v0vgLTzw91Da.zhmTC3rLChbLCL9FBNvT.BgvUz3rO.muzfsxLKta.y3vYCMvUDa.ndaXote2shrSq01e.C3rYAw5N.ChjLDMvUDerLzMf1Bhq.ndmWmJbwA0nxvxa.DgLTzxi".split(".");
124
+ return m = function() {
125
+ return e;
126
+ }, m();
127
+ }
128
+ export { p as NumberStepper };
@@ -0,0 +1,122 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 409;
4
+ let r = f(), i = r[t];
5
+ e.wtigKy === void 0 && (e.GxUgwC = 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.SLCKGx = {}, e.wtigKy = !0);
11
+ let a = r[0];
12
+ e.FRxEfR !== a && (e.SLCKGx = {}, e.FRxEfR = a);
13
+ let o = e.SLCKGx[t];
14
+ return o === void 0 ? (i = e.GxUgwC(i), e.SLCKGx[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(435)) / 1 + parseInt(r(411)) / 2 + parseInt(r(426)) / 3 * (parseInt(r(412)) / 4) + -parseInt(r(419)) / 5 * (parseInt(r(443)) / 6) + parseInt(r(447)) / 7 + parseInt(r(431)) / 8 + parseInt(r(422)) / 9 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(f, 978536);
26
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
27
+ import { cx as r } from "../../primitives/index.js";
28
+ /* empty css */
29
+ import { forwardRef as i, useImperativeHandle as a, useRef as o, useState as s } from "react";
30
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
31
+ var u = {
32
+ numeric: /[^0-9]/g,
33
+ alphanumeric: /[^a-zA-Z0-9]/g
34
+ }, d = i(function({ length: i = 6, groups: d, value: f, defaultValue: p = "", onValueChange: m, onComplete: h, pattern: g = t(414), status: _, mask: v, size: y = "md", disabled: b, autoFocus: x, name: S, id: C, className: w, "aria-label": T = "인증번호" }, E) {
35
+ let D = t, O = o(null);
36
+ a(E, () => O.current);
37
+ let k = (t) => {
38
+ let n = e, r = t[n(416)](u[g], "")[n(440)](0, i);
39
+ return g === "alphanumeric" ? r[n(425)]() : r;
40
+ }, [A, j] = n(f, k(p), m), [M, N] = s(!1), P = (t) => {
41
+ let n = e, r = k(t);
42
+ r !== A && (j(r), r[n(444)] === i && h?.(r));
43
+ }, F = () => {
44
+ let t = e, n = O[t(429)];
45
+ n && n[t(446)](n[t(428)].length, n.value.length);
46
+ }, I = _ === D(418), L = I || _ === "success", R = M && !L ? Math[D(413)](A.length, i - 1) : -1, z = d && d[D(430)]((e, t) => e + t, 0) === i ? d : [i], B = z[D(442)]((e, t) => {
47
+ let n = D, r = z[n(440)](0, t)[n(430)]((e, t) => e + t, 0);
48
+ return [r, r + e];
49
+ });
50
+ return l(D(437), {
51
+ className: r("ds-otp", y === "lg" && D(410), w),
52
+ "data-status": _,
53
+ "data-disabled": b || void 0,
54
+ onPointerDown: (e) => {
55
+ let t = D;
56
+ b || (e[t(448)](), O[t(429)]?.[t(415)](), F());
57
+ },
58
+ children: [c(D(434), {
59
+ ref: O,
60
+ id: C,
61
+ name: S,
62
+ className: D(436),
63
+ value: A,
64
+ inputMode: g === D(414) ? "numeric" : "text",
65
+ autoComplete: D(433),
66
+ autoCapitalize: D(421),
67
+ spellCheck: !1,
68
+ "aria-label": T + " " + i + "자리",
69
+ "aria-invalid": _ === D(445) || void 0,
70
+ "aria-busy": I || void 0,
71
+ readOnly: L,
72
+ disabled: b,
73
+ autoFocus: x,
74
+ onChange: (e) => P(e[D(439)][D(428)]),
75
+ onFocus: () => {
76
+ N(!0), F();
77
+ },
78
+ onBlur: () => N(!1),
79
+ onSelect: F,
80
+ onKeyDown: (e) => {
81
+ let t = D;
82
+ [
83
+ t(417),
84
+ "ArrowRight",
85
+ t(420),
86
+ "End",
87
+ t(441),
88
+ "ArrowDown"
89
+ ][t(423)](e[t(409)]) && e[t(448)]();
90
+ }
91
+ }), c(D(437), {
92
+ className: "ds-otp__slots",
93
+ children: B.map(([e, t], n) => l("div", {
94
+ className: D(432),
95
+ children: [n > 0 && c("span", {
96
+ className: "ds-otp__sep",
97
+ "aria-hidden": !0
98
+ }), Array[D(424)]({ length: t - e }, (t, n) => {
99
+ let r = D, i = e + n, a = A[i];
100
+ return l(r(437), {
101
+ className: "ds-otp__slot",
102
+ "data-filled": a != null || void 0,
103
+ "data-active": i === R || void 0,
104
+ style: { "--_i": i },
105
+ "aria-hidden": !0,
106
+ children: [a != null && c("span", {
107
+ className: r(427),
108
+ children: v ? c(r(449), { className: "ds-otp__dot" }) : a
109
+ }, a + i), i === R && a == null && c("span", { className: "ds-otp__caret" })]
110
+ }, i);
111
+ })]
112
+ }, n))
113
+ }, _ ? _ + "-" + A : D(438))]
114
+ });
115
+ });
116
+ function f() {
117
+ let e = /* @__PURE__ */ "mZG0mdq4mfDNCMHUvG.ChjLDMvUDerLzMf1Bhq.C3bHBG.A2v5.zhmTB3rWls1SzW.mta2odCWngj6CerJtW.nezyDKLUEq.BwLU.BNvTzxjPyW.zM9JDxm.CMvWBgfJzq.qxjYB3Dmzwz0.Bg9HzgLUzW.ndq1odbIzvPNtvG.sg9Tzq.y2HHCMfJDgvYCW.mtiYnJa5mtzRALDlwwq.Aw5JBhvKzxm.zNjVBq.Dg9vChbLCKnHC2u.odmYmdC0svvOwvPH.zhmTB3rWx19JAgfY.DMfSDwu.y3vYCMvUDa.CMvKDwnL.mtaYnde0ngzQq2HKzW.zhmTB3rWx19NCM91Ca.B25LlxrPBwuTy29Kzq.Aw5WDxq.odi4otG0se1YBwPk.zhmTB3rWx19PBNb1Da.zgL2.AwrSzq.DgfYz2v0.C2XPy2u.qxjYB3DvCa.BwfW.nZaYt2LXrhf4.BgvUz3rO.zxjYB3i.C2v0u2vSzwn0Aw9UuMfUz2u".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 = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(158)) / 1 * (-parseInt(n(162)) / 2) + parseInt(n(189)) / 3 + -parseInt(n(180)) / 4 * (parseInt(n(182)) / 5) + -parseInt(n(176)) / 6 * (parseInt(n(156)) / 7) + parseInt(n(199)) / 8 * (-parseInt(n(171)) / 9) + parseInt(n(192)) / 10 + -parseInt(n(205)) / 11 * (-parseInt(n(164)) / 12) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(u, 277544);
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
+ function i(e, t) {
16
+ e -= 155;
17
+ let n = u(), r = n[e];
18
+ i.dIRwuv === void 0 && (i.jPeigp = function(e) {
19
+ let t = "", n = "";
20
+ 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);
21
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
+ return decodeURIComponent(n);
23
+ }, i.eQVJky = {}, i.dIRwuv = !0);
24
+ let a = n[0];
25
+ i.DXUAhN !== a && (i.eQVJky = {}, i.DXUAhN = a);
26
+ let o = i.eQVJky[e];
27
+ return o === void 0 ? (r = i.jPeigp(r), i.eQVJky[e] = r) : r = o, r;
28
+ }
29
+ import { Button as a, Input as o, cx as s } from "../../primitives/index.js";
30
+ import { Select as c } from "../Select/Select2.js";
31
+ import { paginationRange as l } from "./paginationRange.js";
32
+ function u() {
33
+ let e = /* @__PURE__ */ "A2v5.zhmTCgfNAw5HDgLVBL9FANvTCa.B2zMC2v0v2LKDgG.ChjPBwfYEq.BMv1DhjHBa.zgLZy29UBMvJDa.mtCWoduWCwrqrePZ.BwLU.zhmTCgfNAw5HDgLVBL9FCgfNzxm.ntmYntKWDwjez2j5.C2LTCgXL.yNv0Dg9U.zhmTCgfNAw5HDgLVBL9FDgH1Bwi.7lkRio2oMoYDToYNGa.Axnoyu4.D2LKDgG.ntz2Awn2twm.7y6y7j207kEa.z2HVC3q.CxvLCNLtzwXLy3rVCG.BNvTzxjPyW.CMvWBgfJzq.mtfts0Xzzwq.Dg90ywW.zw5K.zgL2.zhmTCgfNAw5HDgLVBL9FCgfNzq.C2vJB25Kyxj5.BNvTyMvY.rxnJyxbL.mZiZmtjArKrPsxa.DgvYDgLHCNK.odLYDunkzfy.A28Ts1i.zhmTCgfNAw5HDgLVBL9FzwXSAxbZAxm.DMfSDwu.mte0mZHwDxjPAxK.y3vYCMvUDa.mJiYmJy5nJrvwgPQEMW.C3bHBG.zhmTCgfNAw5HDgLVBL9FC2LTCgXL.BMf0AxzLrxzLBNq.BgfIzwWTBwq.ic8G.BwfW.ndG4mZa0DLnjBvf4.Bwf4.7j2064+z7zwGio2oMoYDToYNGcaOmEkaKW.AxndB21WB3nPBMC.7j207kceio2oMoYDToYNGa.nZiWrgrVDvvr.Cg9SAxrL.zhmTCgfNAw5HDgLVBI0T.zhmTCgfNAw5HDgLVBG.ndrRC2zJtNa.zhmTCgfNAw5HDgLVBI0TChjPBwfYEq.mteWmdK1vNHuuxHK".split(".");
34
+ return u = function() {
35
+ return e;
36
+ }, u();
37
+ }
38
+ /* empty css */
39
+ import { useLayoutEffect as d, useRef as f, useState as p } from "react";
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.toLocaleString(e(159));
43
+ function x({ page: i, defaultPage: o = 1, onPageChange: l, totalPages: u, totalItems: d, pageSize: f, defaultPageSize: p = 20, onPageSizeChange: x, pageSizeOptions: w, siblingCount: T = 1, boundaryCount: E = 1, variant: D = "default", tone: O = e(187), size: k = "md", showFirstLast: A, showRange: j, showJump: M, formatRange: N, disabled: P, "aria-label": F = e(200), className: I, style: L }) {
44
+ let R = e, [z, B] = r(i, o, l), [V, H] = r(f, p, x), U = Math[R(172)](1, u ?? (d == null ? 1 : Math.ceil(d / V))), W = Math[R(190)](Math[R(172)](1, z), U), G = (e) => {
45
+ let t = Math.min(Math[R(172)](1, e), U);
46
+ t !== W && B(t);
47
+ }, K = (e, t, n, r) => v(a, {
48
+ variant: R(201),
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(190)](W * V, d),
58
+ total: d
59
+ }, Y = (e) => {
60
+ let t = (W - 1) * V;
61
+ H(e);
62
+ let n = Math.floor(t / e) + 1;
63
+ n !== W && B(n);
64
+ }, X = q && J || w ? y(n, {
65
+ gap: 3,
66
+ children: [q && J && v(t, {
67
+ variant: "body-sm",
68
+ tone: R(210),
69
+ numeric: !0,
70
+ "aria-live": R(177),
71
+ children: N ? N(J) : b(J.start) + "–" + b(J[R(207)]) + R(169) + b(J[R(206)]) + "개"
72
+ }), w && v(c, {
73
+ size: "sm",
74
+ "aria-label": "페이지당 항목 수",
75
+ disabled: P,
76
+ options: w[R(170)]((e) => ({
77
+ value: String(e),
78
+ label: e + "개"
79
+ })),
80
+ value: String(V),
81
+ onValueChange: (e) => Y(Number(e)),
82
+ renderValue: (e) => "페이지당 " + e.label
83
+ })]
84
+ }) : null;
85
+ return y(n, {
86
+ as: "nav",
87
+ gap: 4,
88
+ justify: X ? "between" : "start",
89
+ "aria-label": F,
90
+ className: s(R(179), R(178) + k, O === R(186) && R(181), 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(196), v(g, {}), 1, W <= 1),
99
+ K(R(175), v(m, {}), W - 1, W <= 1),
100
+ D === R(193) ? y(t, {
101
+ variant: R(168),
102
+ numeric: !0,
103
+ className: R(166),
104
+ "aria-live": "polite",
105
+ children: [W, y(t, {
106
+ as: "span",
107
+ variant: R(168),
108
+ tone: R(157),
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("다음 페이지", v(h, {}), W + 1, W >= U),
125
+ A && K("마지막 페이지", 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: a, disabled: o, onPick: s }) {
136
+ let c = e, u = f(null), [m, h] = p(null), g = l(t, n, r, a);
137
+ return d(() => {
138
+ let e = i, t = u[e(163)];
139
+ if (!t) return;
140
+ let n = () => {
141
+ let n = e, r = t[n(202)]("[aria-current=\"page\"]");
142
+ r && h({
143
+ left: r.offsetLeft,
144
+ width: r[n(185)]
145
+ });
146
+ };
147
+ n();
148
+ let r = new ResizeObserver(n);
149
+ return r.observe(t), () => r[e(188)]();
150
+ }, [
151
+ t,
152
+ n,
153
+ r,
154
+ a
155
+ ]), y(c(208), {
156
+ ref: u,
157
+ className: c(191),
158
+ children: [m && v("span", {
159
+ className: c(195),
160
+ "aria-hidden": !0,
161
+ style: {
162
+ left: m.left,
163
+ width: m[c(198)]
164
+ }
165
+ }), g[c(170)]((e) => typeof e === c(211) ? v("button", {
166
+ type: c(194),
167
+ className: c(209),
168
+ "aria-current": e === t ? "page" : void 0,
169
+ "aria-label": e + c(200),
170
+ disabled: o,
171
+ onClick: () => s(e),
172
+ children: e
173
+ }, e) : v(c(165), {
174
+ className: c(160),
175
+ "aria-hidden": !0,
176
+ children: "…"
177
+ }, e))]
178
+ });
179
+ }
180
+ function C({ count: r, disabled: a, onJump: s }) {
181
+ let c = e, [l, u] = p(""), d = () => {
182
+ let e = i, t = parseInt(l, 10);
183
+ Number[e(197)](t) || s(t), u("");
184
+ };
185
+ return y(n, {
186
+ gap: 2,
187
+ wrap: !1,
188
+ children: [v(t, {
189
+ variant: "body-sm",
190
+ tone: c(210),
191
+ "aria-hidden": !0,
192
+ children: "이동"
193
+ }), v(o, {
194
+ size: "sm",
195
+ inputMode: c(203),
196
+ "aria-label": c(173) + r + ")",
197
+ placeholder: "1–" + r,
198
+ disabled: a,
199
+ value: l,
200
+ wrapperClassName: c(184),
201
+ onChange: (e) => u(e.target[c(161)][c(204)](/[^0-9]/g, "")),
202
+ onKeyDown: (e) => {
203
+ let t = c;
204
+ e[t(183)] === "Enter" && !e[t(167)][t(174)] && d(), e.key === t(155) && u("");
205
+ },
206
+ onBlur: () => u("")
207
+ })]
208
+ });
209
+ }
210
+ export { x as Pagination };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ function e(t, r) {
3
+ t -= 284;
4
+ let i = n(), a = i[t];
5
+ e.vhCHSn === void 0 && (e.AXAkvg = 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.CneFiH = {}, e.vhCHSn = !0);
11
+ let o = i[0];
12
+ e.kKpwvS !== o && (e.CneFiH = {}, e.kKpwvS = o);
13
+ let s = e.CneFiH[t];
14
+ return s === void 0 ? (a = e.AXAkvg(a), e.CneFiH[t] = a) : a = s, a;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
18
+ for (;;) try {
19
+ if (parseInt(r(284)) / 1 * (-parseInt(r(294)) / 2) + -parseInt(r(298)) / 3 * (-parseInt(r(286)) / 4) + -parseInt(r(289)) / 5 + parseInt(r(299)) / 6 + -parseInt(r(295)) / 7 + -parseInt(r(287)) / 8 + parseInt(r(296)) / 9 == n) break;
20
+ i.push(i.shift());
21
+ } catch {
22
+ i.push(i.shift());
23
+ }
24
+ })(n, 618899);
25
+ function t(t, n, r = 1, i = 1) {
26
+ let a = e, o = (e, t) => Array[a(291)]({ length: Math[a(285)](t - e + 1, 0) }, (t, n) => e + n), s = o(1, Math[a(293)](i, n)), c = o(Math[a(285)](n - i + 1, i + 1), n), l = Math.max(Math[a(293)](t - r, n - i - r * 2 - 1), i + 2), u = Math[a(293)](Math[a(285)](t + r, i + r * 2 + 2), c[a(288)] > 0 ? c[0] - 2 : n - 1), d = [...s];
27
+ return l > i + 2 ? d[a(290)](a(292)) : i + 1 < n - i && d[a(290)](i + 1), d[a(290)](...o(l, u)), u < n - i - 1 ? d.push(a(297)) : n - i > i && d.push(n - i), d[a(290)](...c), d;
28
+ }
29
+ function n() {
30
+ let e = [
31
+ "ntu1ntG4mfznwM9LBq",
32
+ "otK0nZK3qvzMAhLJ",
33
+ "Bwf4",
34
+ "mZy4ngztDMjvtW",
35
+ "nti3nteWnfrtvKjnBW",
36
+ "BgvUz3rO",
37
+ "otCYnJmWDNLYzM9k",
38
+ "ChvZAa",
39
+ "zNjVBq",
40
+ "C3rHCNqTzwXSAxbZAxm",
41
+ "BwLU",
42
+ "mMrPBhLStG",
43
+ "mtKYodi2mKjgChzgBW",
44
+ "mtaWmti3nZLjvuv1uuu",
45
+ "zw5KlwvSBgLWC2LZ",
46
+ "mJi5nvjMqxzYDG"
47
+ ];
48
+ return n = function() {
49
+ return e;
50
+ }, n();
51
+ }
52
+ export { t as paginationRange };
@@ -0,0 +1,175 @@
1
+ "use client";
2
+ const e = t;
3
+ function t(e, r) {
4
+ e -= 431;
5
+ let i = n(), a = i[e];
6
+ t.oyupzQ === void 0 && (t.wCVwaf = 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.HOrBej = {}, t.oyupzQ = !0);
12
+ let o = i[0];
13
+ t.gebScX !== o && (t.HOrBej = {}, t.gebScX = o);
14
+ let s = t.HOrBej[e];
15
+ return s === void 0 ? (a = t.wCVwaf(a), t.HOrBej[e] = a) : a = s, a;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (-parseInt(r(468)) / 1 * (parseInt(r(444)) / 2) + parseInt(r(475)) / 3 * (parseInt(r(478)) / 4) + -parseInt(r(479)) / 5 + parseInt(r(435)) / 6 + -parseInt(r(446)) / 7 * (-parseInt(r(476)) / 8) + parseInt(r(450)) / 9 * (-parseInt(r(433)) / 10) + -parseInt(r(458)) / 11 * (-parseInt(r(461)) / 12) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(n, 701299);
26
+ function n() {
27
+ let e = /* @__PURE__ */ "BgvUz3rO.zM9JDxm.zxHHBxbSzq.CMvWBgfJzq.kcmJiYKGiYmJlsmJiYm.iYmGiYmGiYmGiYmGiYm.mtC4odC5mez2wM9qtG.iYmJlsmJiYmTiYmJiW.mZa0nduXuNLstunk.DgvSlw5HDgLVBMfS.67kG7yQ464kO.BwfW.ntrSzwPvAMS.zMLUza.C3rHCNrZv2L0Aa.64Ya7zwC66+86RwT.7zse656r7iQK.mdyXmJm0nty3oa.iYmJicmJiYaJiYmJ.C2XPy2u.nJu2ndu4s2HnDNPW.ChjLDMvUDerLzMf1Bhq.C3bSAxq.mta4CuzXAhjr.DhjPBq.mdKXmJm0nty3oa.mdKWmtiZndu2nZG.y2XPCgjVyxjKrgf0yq.Dhj1BMS.Dgv4Da.mwrhtwXmAa.AgLKzgvU.zgLHBa.Cgf0DgvYBG.y29Kzq.mde1mtiZndu2nZG5.DgvS.mtv3BNbNwKq.mtG0wxnTDKfQ.iYmJiYmGiYmJiYmJ.ntu0otG0y1PXrNvT.mJq0mZC1r2vPvgzu.C29YDa.iYmJicmJiYmGiYmJiW.mtG4nZu1me9jv2Hlta.CMvM.mZi3ntu2ogPMuefVtG.mJaXntu1mdeYmW.mdeWmtiZndu2nZG".split(".");
28
+ return n = function() {
29
+ return e;
30
+ }, n();
31
+ }
32
+ import { Flag as r } from "../../primitives/Flag2.js";
33
+ import { useControllableState as i } from "../../hooks/useControllableState.js";
34
+ import { Input as a } from "../../primitives/index.js";
35
+ import { useDigitInput as o } from "../../hooks/useDigitInput.js";
36
+ import { Select as s } from "../Select/Select2.js";
37
+ import { useRef as c } from "react";
38
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
39
+ var f = [
40
+ {
41
+ code: "KR",
42
+ name: e(453),
43
+ dial: "82",
44
+ pattern: e(445),
45
+ example: e(437),
46
+ trunk: !0
47
+ },
48
+ {
49
+ code: "US",
50
+ name: "미국",
51
+ dial: "1",
52
+ pattern: e(442),
53
+ example: e(436)
54
+ },
55
+ {
56
+ code: "JP",
57
+ name: "일본",
58
+ dial: "81",
59
+ pattern: e(445),
60
+ example: e(464),
61
+ trunk: !0
62
+ },
63
+ {
64
+ code: "CN",
65
+ name: "중국",
66
+ dial: "86",
67
+ pattern: e(432),
68
+ example: "13123456789"
69
+ },
70
+ {
71
+ code: "VN",
72
+ name: e(448),
73
+ dial: "84",
74
+ pattern: e(456),
75
+ example: e(463),
76
+ trunk: !0
77
+ },
78
+ {
79
+ code: "GB",
80
+ name: "영국",
81
+ dial: "44",
82
+ pattern: e(477),
83
+ example: "07400123456",
84
+ trunk: !0
85
+ },
86
+ {
87
+ code: "DE",
88
+ name: "독일",
89
+ dial: "49",
90
+ pattern: "##### #######",
91
+ example: e(473),
92
+ trunk: !0
93
+ },
94
+ {
95
+ code: "FR",
96
+ name: e(454),
97
+ dial: "33",
98
+ pattern: e(443),
99
+ example: e(455),
100
+ trunk: !0
101
+ }
102
+ ];
103
+ function p(t, n) {
104
+ let r = e, i = "", a = 0;
105
+ for (let e of n) {
106
+ if (a === t[r(438)]) break;
107
+ i += e === "#" ? t[a++] : e;
108
+ }
109
+ return i;
110
+ }
111
+ function m(t, n) {
112
+ let r = e;
113
+ return t ? "+" + n[r(470)] + (n.trunk ? t[r(441)](/^0/, "") : t) : "";
114
+ }
115
+ function h({ value: t, defaultValue: n = "", onValueChange: h, country: g, defaultCountry: _ = "KR", onCountryChange: v, countries: y = f, size: b = "md", invalid: x, disabled: S, placeholder: C, name: w, id: T, "aria-label": E }) {
116
+ let D = e, O = c(null), [k, A] = i(g, _, v), j = y.find((e) => e[D(472)] === k) ?? y[0], M = j[D(471)][D(460)]("#")[D(438)] - 1, [N, P] = i(t, n), F = (e, t = j) => {
117
+ P(e), h?.(e, {
118
+ country: t,
119
+ e164: m(e, t)
120
+ });
121
+ }, I = o({
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(451)]((n) => n[t(472)] === e) ?? j;
128
+ A(e);
129
+ let r = N[t(457)](0, n[t(471)].split("#")[t(438)] - 1);
130
+ (r !== N || n !== j) && F(r, n), requestAnimationFrame(() => I[t(434)].current?.[t(439)]());
131
+ }, R = (e) => {
132
+ let t = D, n = e[t(465)].getData(t(467))[t(462)]();
133
+ if (!n[t(452)]("+")) return;
134
+ let r = n[t(441)](/\D/g, ""), i = [...y][t(431)]((e, n) => n[t(470)][t(438)] - e.dial.length).find((e) => r[t(452)](e[t(470)]));
135
+ if (!i) return;
136
+ e[t(459)]();
137
+ let a = r[t(457)](i[t(470)][t(438)]);
138
+ i[t(466)] && !a[t(452)]("0") && (a = "0" + a), A(i.code), F(a.slice(0, i[t(471)][t(460)]("#")[t(438)] - 1), i);
139
+ }, z = y[D(449)]((e) => ({
140
+ value: e[D(472)],
141
+ label: e.name,
142
+ icon: u(r, { code: e[D(472)] }),
143
+ meta: "+" + e[D(470)],
144
+ keywords: [e[D(470)]]
145
+ }));
146
+ return d(l, { children: [u(a, {
147
+ ...I,
148
+ id: T,
149
+ type: D(474),
150
+ inputMode: D(474),
151
+ autoComplete: D(447),
152
+ size: b,
153
+ invalid: x,
154
+ disabled: S,
155
+ "aria-label": E,
156
+ placeholder: C ?? p(j[D(440)], j[D(471)]),
157
+ onPaste: R,
158
+ wrapperRef: O,
159
+ leading: u(s, {
160
+ bare: !0,
161
+ options: z,
162
+ value: j.code,
163
+ onValueChange: L,
164
+ anchorRef: O,
165
+ disabled: S,
166
+ "aria-label": "국가",
167
+ renderValue: () => "+" + j[D(470)]
168
+ })
169
+ }), w && u("input", {
170
+ type: D(469),
171
+ name: w,
172
+ value: m(N, j)
173
+ })] });
174
+ }
175
+ export { f as PHONE_COUNTRIES, h as PhoneInput, p as formatPhone, m as toE164 };