refract-ui 0.0.0 → 1.0.2

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 (88) hide show
  1. package/README.md +14 -3
  2. package/dist/RefractProvider-Bzz4G22S.cjs +25 -0
  3. package/dist/RefractProvider-Bzz4G22S.cjs.map +1 -0
  4. package/dist/RefractProvider-D__A8gQl.js +238 -0
  5. package/dist/RefractProvider-D__A8gQl.js.map +1 -0
  6. package/dist/assets/iphone-11.glb +0 -0
  7. package/dist/assets/macbook-pro.glb +0 -0
  8. package/dist/carousel.cjs +48 -1
  9. package/dist/carousel.cjs.map +1 -1
  10. package/dist/carousel.js +300 -0
  11. package/dist/carousel.js.map +1 -1
  12. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -0
  13. package/dist/components/Breadcrumbs/index.d.ts +2 -0
  14. package/dist/components/Button/Button.d.ts +22 -0
  15. package/dist/components/Button/index.d.ts +2 -0
  16. package/dist/components/Carousel/Carousel.d.ts +21 -0
  17. package/dist/components/Carousel/index.d.ts +1 -0
  18. package/dist/components/Divider/Divider.d.ts +12 -0
  19. package/dist/components/Divider/index.d.ts +2 -0
  20. package/dist/components/Heading/Heading.d.ts +9 -0
  21. package/dist/components/Heading/index.d.ts +2 -0
  22. package/dist/components/Icon/Icon.d.ts +30 -0
  23. package/dist/components/Icon/index.d.ts +2 -0
  24. package/dist/components/Image/Image.d.ts +27 -0
  25. package/dist/components/Image/index.d.ts +1 -0
  26. package/dist/components/Input/Input.d.ts +21 -0
  27. package/dist/components/Input/TextArea.d.ts +11 -0
  28. package/dist/components/Input/index.d.ts +2 -0
  29. package/dist/components/Link/Link.d.ts +10 -0
  30. package/dist/components/Link/index.d.ts +1 -0
  31. package/dist/components/LinkProvider/LinkProvider.d.ts +11 -0
  32. package/dist/components/LinkProvider/index.d.ts +1 -0
  33. package/dist/components/List/List.d.ts +11 -0
  34. package/dist/components/List/index.d.ts +1 -0
  35. package/dist/components/Loader/Loader.d.ts +6 -0
  36. package/dist/components/Loader/index.d.ts +2 -0
  37. package/dist/components/Model/Model.d.ts +40 -0
  38. package/dist/components/Model/deviceModels.d.ts +29 -0
  39. package/dist/components/Model/index.d.ts +2 -0
  40. package/dist/components/RefractProvider/RefractProvider.d.ts +20 -0
  41. package/dist/components/RefractProvider/index.d.ts +1 -0
  42. package/dist/components/ScrambleReveal/ScrambleReveal.d.ts +9 -0
  43. package/dist/components/ScrambleReveal/index.d.ts +1 -0
  44. package/dist/components/Section/Section.d.ts +8 -0
  45. package/dist/components/Section/index.d.ts +1 -0
  46. package/dist/components/SegmentedControl/SegmentedControl.d.ts +15 -0
  47. package/dist/components/SegmentedControl/index.d.ts +1 -0
  48. package/dist/components/Table/Table.d.ts +11 -0
  49. package/dist/components/Table/index.d.ts +1 -0
  50. package/dist/components/ThemeProvider/ThemeProvider.d.ts +21 -0
  51. package/dist/components/ThemeProvider/index.d.ts +5 -0
  52. package/dist/components/ThemeProvider/theme.d.ts +138 -0
  53. package/dist/components/ThemeProvider/useTheme.d.ts +2 -0
  54. package/dist/components/Transition/Transition.d.ts +19 -0
  55. package/dist/components/Transition/index.d.ts +1 -0
  56. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +10 -0
  57. package/dist/components/VisuallyHidden/index.d.ts +2 -0
  58. package/dist/components/Wordmark/Wordmark.d.ts +5 -0
  59. package/dist/components/Wordmark/index.d.ts +2 -0
  60. package/dist/entries/carousel.d.ts +1 -1
  61. package/dist/entries/model.d.ts +1 -1
  62. package/dist/hooks/useFormInput.d.ts +11 -0
  63. package/dist/hooks/useFps.d.ts +8 -0
  64. package/dist/hooks/useHasMounted.d.ts +1 -0
  65. package/dist/hooks/useInViewport.d.ts +2 -0
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.ts +20 -0
  69. package/dist/index.js +914 -45
  70. package/dist/index.js.map +1 -1
  71. package/dist/model.cjs +4 -1
  72. package/dist/model.cjs.map +1 -1
  73. package/dist/model.js +267 -0
  74. package/dist/model.js.map +1 -1
  75. package/dist/style-CWBkJEps.cjs +2 -0
  76. package/dist/style-CWBkJEps.cjs.map +1 -0
  77. package/dist/style-uMN7vipQ.js +96 -0
  78. package/dist/style-uMN7vipQ.js.map +1 -0
  79. package/dist/styles.css +1 -1
  80. package/dist/three-CWsiEOQZ.js +48 -0
  81. package/dist/three-CWsiEOQZ.js.map +1 -0
  82. package/dist/three-aeLbW1yA.cjs +2 -0
  83. package/dist/three-aeLbW1yA.cjs.map +1 -0
  84. package/dist/tokens.css +1 -0
  85. package/dist/utils/delay.d.ts +1 -0
  86. package/dist/utils/image.d.ts +31 -0
  87. package/dist/utils/three.d.ts +29 -0
  88. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,56 +1,925 @@
1
1
  "use client";
2
- import { jsx as l } from "react/jsx-runtime";
3
- const y = {
4
- desktop: 2080,
5
- laptop: 1680,
6
- tablet: 1040,
7
- mobile: 696,
8
- mobileS: 400
9
- }, d = (t) => Number(t.replace("px", "")), r = (t) => `${t}px`, T = (t) => `${t / 16}rem`, b = (t) => Number(t.replace("ms", "")), u = (t) => `${t}ms`, N = (t) => (t == null ? void 0 : t.split(" ").map((s) => Number(s) / 255)) || [];
10
- function k(t, s = {}) {
11
- const n = {}, a = Object.keys(t);
12
- for (const o of a) {
13
- let e = t[o];
14
- typeof e == "number" && o === "delay" && (e = u(e)), typeof e == "number" && o !== "opacity" && (e = r(e)), n[`--${o}`] = e;
15
- }
16
- return { ...n, ...s };
17
- }
18
- function i(...t) {
19
- return t.filter(Boolean).join(" ");
20
- }
21
- const p = "_text_18l38_1", x = {
22
- text: p
23
- }, $ = ({
24
- children: t,
25
- size: s = "m",
26
- as: n = "span",
27
- align: a = "auto",
2
+ import { a as w, c as x, n as j, m as m1, u as g1, s as p1, r as _1 } from "./style-uMN7vipQ.js";
3
+ import { b as Pe, d as Ie, p as Ze, e as je, f as De } from "./style-uMN7vipQ.js";
4
+ import { jsx as n, jsxs as b } from "react/jsx-runtime";
5
+ import * as i from "react";
6
+ import { Fragment as n1, forwardRef as B, useRef as M, useEffect as N, useState as L, useId as J, useCallback as X, useContext as y1, createContext as f1, memo as w1 } from "react";
7
+ import { a as s1, u as b1, t as L1, b as c1, c as M1 } from "./RefractProvider-D__A8gQl.js";
8
+ import { L as Oe, R as Fe, T as We, d as Ge, e as Ke, f as Ue, g as Xe, s as Je, h as Qe, i as Ye } from "./RefractProvider-D__A8gQl.js";
9
+ import { AnimatePresence as V1, usePresence as z1, useReducedMotion as Q, useSpring as H1 } from "framer-motion";
10
+ import { createPortal as x1 } from "react-dom";
11
+ const N1 = "_text_18l38_1", k1 = {
12
+ text: N1
13
+ }, C1 = ({
14
+ children: e,
15
+ size: t = "m",
16
+ as: a = "span",
17
+ align: l = "auto",
28
18
  weight: o = "auto",
29
- secondary: e,
19
+ secondary: s,
30
20
  className: c,
31
- ...m
32
- }) => /* @__PURE__ */ l(
33
- n,
21
+ ...r
22
+ }) => /* @__PURE__ */ n(
23
+ a,
34
24
  {
35
- className: i(x.text, c),
36
- "data-align": a,
37
- "data-size": s,
25
+ className: w(k1.text, c),
26
+ "data-align": l,
27
+ "data-size": t,
38
28
  "data-weight": o,
39
- "data-secondary": e,
29
+ "data-secondary": s,
30
+ ...r,
31
+ children: e
32
+ }
33
+ ), S1 = "_heading_17xux_1", T1 = {
34
+ heading: S1
35
+ }, ye = ({
36
+ children: e,
37
+ level: t = 1,
38
+ as: a,
39
+ align: l = "auto",
40
+ weight: o = "medium",
41
+ className: s,
42
+ ...c
43
+ }) => {
44
+ const r = Math.min(Math.max(t, 0), 5), h = a || `h${Math.max(r, 1)}`;
45
+ return /* @__PURE__ */ n(n1, { children: /* @__PURE__ */ n(
46
+ h,
47
+ {
48
+ className: w(T1.heading, s),
49
+ "data-align": l,
50
+ "data-weight": o,
51
+ "data-level": r,
52
+ ...c,
53
+ children: e
54
+ }
55
+ ) });
56
+ }, E1 = "_section_e4ou0_1", $1 = {
57
+ section: E1
58
+ }, fe = B(
59
+ ({ as: e = "div", children: t, className: a, ...l }, o) => /* @__PURE__ */ n(
60
+ e,
61
+ {
62
+ className: w($1.section, a),
63
+ ref: o,
64
+ ...l,
65
+ children: t
66
+ }
67
+ )
68
+ ), B1 = "_list_70779_1", R1 = "_item_70779_14", l1 = {
69
+ list: B1,
70
+ item: R1
71
+ }, we = ({ ordered: e, children: t, className: a, ...l }) => /* @__PURE__ */ n(e ? "ol" : "ul", { className: w(l1.list, a), ...l, children: t }), be = ({ children: e, ...t }) => /* @__PURE__ */ n("li", { className: l1.item, ...t, children: e }), A1 = "_divider_vqctv_1", P1 = "_line_vqctv_14", I1 = "_notch_vqctv_36", U = {
72
+ divider: A1,
73
+ line: P1,
74
+ notch: I1
75
+ }, Le = ({
76
+ lineWidth: e = "100%",
77
+ lineHeight: t = "2px",
78
+ notchWidth: a = "90px",
79
+ notchHeight: l = "10px",
80
+ collapseDelay: o = 0,
81
+ collapsed: s = !1,
82
+ notch: c = !0,
83
+ light: r = !1,
84
+ className: h,
85
+ style: u,
86
+ ...m
87
+ }) => /* @__PURE__ */ b(
88
+ "div",
89
+ {
90
+ className: w(U.divider, h),
91
+ "data-light": r,
92
+ style: x(
93
+ {
94
+ lineWidth: e,
95
+ lineHeight: t,
96
+ notchWidth: a,
97
+ notchHeight: l,
98
+ collapseDelay: j(o)
99
+ },
100
+ u
101
+ ),
40
102
  ...m,
41
- children: t
103
+ children: [
104
+ /* @__PURE__ */ n("div", { className: U.line, "data-collapsed": s }),
105
+ c && /* @__PURE__ */ n(
106
+ "div",
107
+ {
108
+ className: U.notch,
109
+ "data-collapsed": s,
110
+ style: x({ collapseDelay: j(o + 160) })
111
+ }
112
+ )
113
+ ]
114
+ }
115
+ ), Z1 = "_table_1fa0f_1", j1 = "_row_1fa0f_6", D1 = "_head_1fa0f_15", q1 = "_headCell_1fa0f_20", O1 = "_cell_1fa0f_25", R = {
116
+ table: Z1,
117
+ row: j1,
118
+ head: D1,
119
+ headCell: q1,
120
+ cell: O1
121
+ }, Me = ({ children: e }) => /* @__PURE__ */ n("table", { className: R.table, children: e }), Ve = ({ children: e }) => /* @__PURE__ */ n("tr", { className: R.row, children: e }), ze = ({ children: e }) => /* @__PURE__ */ n("thead", { className: R.head, children: e }), He = ({ children: e }) => /* @__PURE__ */ n("tbody", { className: R.body, children: e }), xe = ({ children: e }) => /* @__PURE__ */ n("th", { className: R.headCell, children: e }), Ne = ({ children: e }) => /* @__PURE__ */ n("td", { className: R.cell, children: e }), F1 = "_hidden_1xw0v_1", W1 = {
122
+ hidden: F1
123
+ }, Y = B(
124
+ ({ className: e, showOnFocus: t, as: a = "span", children: l, visible: o, ...s }, c) => /* @__PURE__ */ n(
125
+ a,
126
+ {
127
+ className: w(W1.hidden, e),
128
+ "data-hidden": !o && !t,
129
+ "data-show-on-focus": t,
130
+ ref: c,
131
+ ...s,
132
+ children: l
133
+ }
134
+ )
135
+ ), o1 = ({
136
+ children: e,
137
+ timeout: t = 0,
138
+ onEnter: a,
139
+ onEntered: l,
140
+ onExit: o,
141
+ onExited: s,
142
+ in: c,
143
+ unmount: r
144
+ }) => {
145
+ const h = M(void 0), u = M(void 0);
146
+ return N(() => {
147
+ clearTimeout(c ? u.current : h.current);
148
+ }, [c]), /* @__PURE__ */ n(V1, { children: (c || !r) && /* @__PURE__ */ n(
149
+ G1,
150
+ {
151
+ timeout: t,
152
+ enterTimeout: h,
153
+ exitTimeout: u,
154
+ onEnter: a,
155
+ onEntered: l,
156
+ onExit: o,
157
+ onExited: s,
158
+ show: c,
159
+ children: e
160
+ }
161
+ ) });
162
+ }, G1 = ({
163
+ children: e,
164
+ timeout: t,
165
+ enterTimeout: a,
166
+ exitTimeout: l,
167
+ onEnter: o,
168
+ onEntered: s,
169
+ onExit: c,
170
+ onExited: r,
171
+ show: h
172
+ }) => {
173
+ const [u, m] = L("exited"), [g, p] = z1(), [d, v] = L(!1), _ = typeof t == "object";
174
+ return N(() => {
175
+ if (d || !h) return;
176
+ const y = _ ? t.enter : t;
177
+ clearTimeout(a.current), clearTimeout(l.current), v(!0), m("entering"), o == null || o(), a.current = setTimeout(() => {
178
+ m("entered"), s == null || s();
179
+ }, y);
180
+ }, [o, s, t, u, h]), N(() => {
181
+ if (g && h) return;
182
+ const y = _ ? t.exit : t;
183
+ clearTimeout(a.current), clearTimeout(l.current), m("exiting"), c == null || c(), l.current = setTimeout(() => {
184
+ m("exited"), p == null || p(), r == null || r();
185
+ }, y);
186
+ }, [g, c, p, t, r, h]), e(d && h ? g : !1, u);
187
+ }, K1 = "_loader_19l09_1", U1 = "_text_19l09_8", X1 = "_content_19l09_12", J1 = "_span_19l09_47", T = {
188
+ loader: K1,
189
+ text: U1,
190
+ content: X1,
191
+ span: J1
192
+ }, Q1 = ({
193
+ className: e,
194
+ style: t,
195
+ size: a = 32,
196
+ text: l = "Loading...",
197
+ ...o
198
+ }) => {
199
+ const s = Q(), c = s1(), { portalContainer: r } = b1(), h = () => {
200
+ if (!c) return null;
201
+ const g = r();
202
+ return g ? x1(
203
+ /* @__PURE__ */ n(Y, { className: "loader-announcement", "aria-live": "assertive", children: l }),
204
+ g
205
+ ) : null;
206
+ };
207
+ if (s)
208
+ return /* @__PURE__ */ b(C1, { className: w(T.text, e), weight: "medium", ...o, children: [
209
+ l,
210
+ h()
211
+ ] });
212
+ const u = Math.round(a / 3 * 0.2), m = Math.round(a / 3 - u * 2 - 1);
213
+ return /* @__PURE__ */ b(
214
+ "div",
215
+ {
216
+ className: w(T.loader, e),
217
+ style: x({ size: a, spanSize: m, gapSize: u }, t),
218
+ ...o,
219
+ children: [
220
+ /* @__PURE__ */ b("div", { className: T.content, children: [
221
+ /* @__PURE__ */ n("div", { className: T.span }),
222
+ /* @__PURE__ */ n("div", { className: T.span }),
223
+ /* @__PURE__ */ n("div", { className: T.span })
224
+ ] }),
225
+ h()
226
+ ]
227
+ }
228
+ );
229
+ }, Y1 = "_icon_13804_1", e0 = {
230
+ icon: Y1
231
+ }, t0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "m9.793 19.207-6.5-6.5L2.586 12l.707-.707 6.5-6.5 1.414 1.414L6.414 11H21v2H6.414l4.793 4.793-1.414 1.414Z" })), a0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M14.207 4.793l6.5 6.5.707.707-.707.707-6.5 6.5-1.414-1.414L17.586 13H3v-2h14.586l-4.793-4.793 1.414-1.414z" })), n0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M35.34,16.5h72.75v30.73l-72.75,0V16.5L35.34,16.5z M23.42,91.7c-0.67,2.24-1.63,4.05-2.8,5.46l88.47,0l0.04,0 c3.19-0.18,5.57-1.03,7.16-2.54c1.56-1.48,2.43-3.69,2.62-6.62V3.97H24.36v80.06C24.36,87.43,24.4,88.42,23.42,91.7L23.42,91.7 L23.42,91.7z M13.15,101.13c-0.45,0.03-0.91,0.03-1.36,0.01c-1.82-0.11-3.61-0.67-5.23-1.62c-3.55-2.09-6.29-6.09-6.54-11.32 C0.01,88.12,0,88.03,0,87.95v-70.4c0-1.1,0.89-1.98,1.98-1.98l18.41,0V1.98c0-1.1,0.89-1.98,1.98-1.98l98.52,0 c1.1,0,1.98,0.89,1.98,1.98v86.07c0,0.11-0.01,0.21-0.02,0.31c-0.27,3.9-1.55,6.95-3.84,9.13c-2.28,2.17-5.5,3.38-9.67,3.62 c-0.08,0.01-0.17,0.02-0.26,0.02L13.15,101.13L13.15,101.13L13.15,101.13z M12.05,97.19c0.1-0.02,0.21-0.03,0.32-0.03h0.72 c0.79-0.08,1.56-0.3,2.28-0.68c4.41-2.31,5.02-7.95,5.02-12.42V19.53H3.97v68.41c0,0.02,0,0.05,0,0.07 c0.19,3.76,2.12,6.62,4.61,8.09c1.08,0.64,2.26,1.01,3.43,1.08L12.05,97.19L12.05,97.19L12.05,97.19z M40.87,24.15h3.9l5.07,8.52 v-8.52h3.94v15.42l-3.94,0l-5.04-8.47v8.47h-3.92V24.15L40.87,24.15z M57.21,24.15h11.17v3.3l-6.98,0v2.46l6.47,0v3.14H61.4v3.04 h7.19v3.49H57.21V24.15L57.21,24.15L57.21,24.15z M70.12,24.15h3.96l1.42,8.61l2.09-8.61h3.93l2.1,8.62l1.43-8.62H89l-2.98,15.42 l-4.09,0l-2.37-9.71l-2.36,9.71h-4.09L70.12,24.15L70.12,24.15L70.12,24.15z M90.31,34.48l3.96-0.28c0.08,0.73,0.26,1.29,0.52,1.67 c0.43,0.62,1.04,0.93,1.84,0.93c0.59,0,1.05-0.16,1.37-0.48c0.32-0.32,0.48-0.69,0.48-1.11c0-0.4-0.15-0.76-0.46-1.07 c-0.3-0.32-1.02-0.61-2.13-0.89c-1.83-0.47-3.13-1.09-3.91-1.87c-0.79-0.78-1.18-1.77-1.18-2.97c0-0.79,0.2-1.54,0.6-2.24 c0.4-0.71,1.01-1.26,1.81-1.66c0.81-0.4,1.92-0.6,3.32-0.6c1.73,0,3.04,0.37,3.95,1.1c0.91,0.73,1.44,1.9,1.62,3.5l-3.92,0.27 c-0.1-0.7-0.32-1.21-0.66-1.53c-0.34-0.32-0.8-0.48-1.39-0.48c-0.48,0-0.85,0.12-1.1,0.35c-0.25,0.23-0.37,0.52-0.37,0.86 c0,0.24,0.1,0.46,0.3,0.66c0.19,0.2,0.66,0.39,1.39,0.57c1.82,0.45,3.13,0.9,3.91,1.36c0.79,0.46,1.36,1.03,1.72,1.71 c0.36,0.68,0.54,1.44,0.54,2.28c0,0.99-0.24,1.9-0.72,2.74c-0.48,0.83-1.15,1.47-2.01,1.9c-0.86,0.43-1.94,0.65-3.25,0.65 c-2.3,0-3.89-0.51-4.77-1.52C90.93,37.31,90.43,36.03,90.31,34.48L90.31,34.48L90.31,34.48z M35.8,60.85 c-1.1,0-1.98-0.89-1.98-1.98s0.89-1.98,1.98-1.98h30.25c1.09,0,1.98,0.89,1.98,1.98s-0.89,1.98-1.98,1.98H35.8L35.8,60.85z M74.73,60.85c-1.1,0-1.99-0.89-1.99-1.99c0-1.1,0.89-1.99,1.99-1.99h32.63c1.1,0,1.99,0.89,1.99,1.99c0,1.1-0.89,1.99-1.99,1.99 H74.73L74.73,60.85z M74.73,72.36c-1.1,0-1.99-0.89-1.99-1.99s0.89-1.99,1.99-1.99h32.63c1.1,0,1.99,0.89,1.99,1.99 c0,1.1-0.89,1.99-1.99,1.99H74.73L74.73,72.36z M74.73,83.87c-1.1,0-1.99-0.89-1.99-1.99s0.89-1.99,1.99-1.99l32.63,0 c1.1,0,1.99,0.89,1.99,1.99c0,1.1-0.89,1.99-1.99,1.99L74.73,83.87L74.73,83.87z M35.8,83.87c-1.1,0-1.98-0.89-1.98-1.98 s0.89-1.98,1.98-1.98l30.25,0c1.09,0,1.98,0.89,1.98,1.98s-0.89,1.98-1.98,1.98L35.8,83.87L35.8,83.87z M36.76,72.36 c-1.1,0-1.98-0.89-1.98-1.98s0.89-1.98,1.98-1.98h30.25c1.1,0,1.98,0.89,1.98,1.98s-0.89,1.98-1.98,1.98H36.76L36.76,72.36z" })), s0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "m20.207 7.207-10 10-.707.707-.707-.707-5-5 1.414-1.414L9.5 15.086l9.293-9.293 1.414 1.414Z" })), c0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M13.586 12L7.793 6.207l1.414-1.414 6.5 6.5.707.707-.707.707-6.5 6.5-1.414-1.414L13.586 12z" })), l0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), o0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022zM6 8.694 1 10.36V15h5V8.694zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15z" }), /* @__PURE__ */ i.createElement("path", { d: "M2 11h1v1H2v-1zm2 0h1v1H4v-1zm-2 2h1v1H2v-1zm2 0h1v1H4v-1zm4-4h1v1H8V9zm2 0h1v1h-1V9zm-2 2h1v1H8v-1zm2 0h1v1h-1v-1zm2-2h1v1h-1V9zm0 2h1v1h-1v-1zM8 7h1v1H8V7zm2 0h1v1h-1V7zm2 0h1v1h-1V7zM8 5h1v1H8V5zm2 0h1v1h-1V5zm2 0h1v1h-1V5zm0-2h1v1h-1V3z" })), r0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M3 1H2v16h4v-2H4V3h10v2h2V1H3Zm5 6h14v12.414l-.293.293-3 3-.293.293H8V7Zm2 14h7.586L20 18.586V9H10v12Z" })), i0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" })), h0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M12 5.068 19.697 19H4.302L12 5.068Zm-.876-2.552-9.392 17L2.607 21h18.785l.875-1.484-9.392-17h-1.75ZM11 14v-4h2v4h-2Zm0 3v-2h2v2h-2Z" })), d0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { fillRule: "evenodd", d: "M15 10a2 2 0 100 4 2 2 0 000-4zm-2 5.464A4 4 0 0017.646 9 4 4 0 0015 2H9a4 4 0 00-2.646 7 4.01 4.01 0 00-.818 1 4 4 0 00.818 5 3.977 3.977 0 00-.818 1A4 4 0 1013 18v-2.536zM11 16H9a2 2 0 102 2v-2zM9 8h2V4H9a2 2 0 100 4zm0 2a2 2 0 100 4h2v-4H9zm4-2V4h2a2 2 0 010 4h-2z" })), v0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M12 2C6.477 2 2 6.477 2 12c0 4.42 2.87 8.17 6.84 9.5.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34-.46-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.87 1.52 2.34 1.07 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.92 0-1.11.38-2 1.03-2.71-.1-.25-.45-1.29.1-2.64 0 0 .84-.27 2.75 1.02.79-.22 1.65-.33 2.5-.33.85 0 1.71.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.35.2 2.39.1 2.64.65.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0012 2z" })), u0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M9 4 8 5v2h2V6h10v7H10v-2H8v3l1 1h12l1-1V5l-1-1H9Zm2 4H3L2 9v9l1 1h12l1-1v-2h-2v1H4v-7h10v2h2V9l-1-1h-4Z" })), m0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" })), g0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M22 6H2V4h20v2zM2 13h16v-2H2v2zm0 7h20v-2H2v2z" })), p0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" })), _0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M8 5v14l11-7z" })), y0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2 .01 7z" })), f0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M19,70.15c-4.75,1-9.66,1.1-14.42-3.79C1.4,63.1-.19,58.23,0,53.13c12.17,14.15,27-3.34,9-12.43,8.69-4.12,16.89-.25,21.24,7.76,2.06,3.78,3.29,5.76,4.86,7.11a8.58,8.58,0,0,0,.9.69A8.1,8.1,0,0,1,39.8,51.8,7.14,7.14,0,0,1,43.05,51c3.18,0,7.14,1.9,7.81,5.14h0a1.61,1.61,0,0,1,.44-.06h2.31a1.5,1.5,0,0,1,.37,0,5.6,5.6,0,0,1,5,4.59,1.65,1.65,0,0,1,.71-.16H62a1.5,1.5,0,0,1,.37,0c3.31.51,4.65,2.55,5.12,5.12l.26,0h2.31a1.5,1.5,0,0,1,.37,0c3.8.59,5.29,3.08,5.87,6.08,7-1.07,14.57-5.27,22,2.33a17.78,17.78,0,0,1,4.57,13.23c-12.17-14.15-27,3.34-9,12.43-7.47,3.54-14.59,1.17-19.2-4.66a30.06,30.06,0,0,1-2.34,4.92c-.38.62-.77,1.26-1.27,2.14a.16.16,0,0,0,0,.07,19.77,19.77,0,0,1-1.3,2h1.6a2.51,2.51,0,0,1,2.5,2.5v13.61a2.51,2.51,0,0,1-2.5,2.5H35.13a2.51,2.51,0,0,1-2.5-2.5V106.77a2.51,2.51,0,0,1,2.5-2.5H36a18,18,0,0,1-.9-3.79L22.64,80.07,22.58,80a22.48,22.48,0,0,1-2.5-4.24,12.37,12.37,0,0,1-1.08-4,10.22,10.22,0,0,1,0-1.57Zm92-33.29a2,2,0,0,0-.37-.74,1.51,1.51,0,0,0-.57-.46,1.61,1.61,0,0,0-.7-.22,2.62,2.62,0,0,0-.76.09l-.06,0-7.36,2.24a3,3,0,0,1-3.63-1.55c-.38-.64-.75-1.27-1.2-2s-1-1.38-1.39-2S94,31,93.4,30.38s-1-1.14-1.69-1.83A3.09,3.09,0,0,1,91.22,25l3.91-7.35a1.63,1.63,0,0,0,.13-1.46,2.07,2.07,0,0,0-.31-.65,1.82,1.82,0,0,0-.61-.49l-9.26-4.93a2.81,2.81,0,0,0-.68-.26,2.72,2.72,0,0,0-.82.11,1.31,1.31,0,0,0-.61.33,1.82,1.82,0,0,0-.49.61l-3.6,6.75a3.13,3.13,0,0,1-3.69,1.52c-.82-.21-1.59-.41-2.27-.55s-1.54-.28-2.36-.39a23.32,23.32,0,0,0-2.4-.19c-.84-.06-1.62,0-2.37-.06a3,3,0,0,1-3-2.18l-2.5-8.1c0-.06,0-.06,0-.1a2.52,2.52,0,0,0-.3-.66,2.09,2.09,0,0,0-1.26-.61,1.94,1.94,0,0,0-.82.11L48,9.48a1.9,1.9,0,0,0-.74.36,1.71,1.71,0,0,0-.47.57,1.5,1.5,0,0,0-.21.71,2.29,2.29,0,0,0,.09.75l0,.05,2.25,7.35a3.08,3.08,0,0,1-1.56,3.64c-.64.37-1.27.74-2,1.2s-1.38.95-2,1.39-1.3,1-1.91,1.54-1.15,1-1.83,1.7a3.1,3.1,0,0,1-3.59.48l-7.34-3.91a1.88,1.88,0,0,0-.75-.23,3.3,3.3,0,0,0-.69.07,1.31,1.31,0,0,0-.61.32,1.75,1.75,0,0,0-.49.62l-.4.74a24.3,24.3,0,0,0-6.73-.35l1.78-3.35a8.61,8.61,0,0,1,2-2.49,8.51,8.51,0,0,1,2.81-1.5,8.08,8.08,0,0,1,3.18-.33,8.57,8.57,0,0,1,3,1l5.43,2.9.4-.33c.7-.61,1.45-1.19,2.2-1.78s1.56-1.18,2.3-1.66l.26-.19-1.5-5.05a7.44,7.44,0,0,1-.33-3.17,7.84,7.84,0,0,1,.92-3.06,7.75,7.75,0,0,1,2-2.46,8.26,8.26,0,0,1,2.82-1.5L56.28.41l0,0A8.58,8.58,0,0,1,59.43,0a7.71,7.71,0,0,1,3.06.92A8.54,8.54,0,0,1,65,3a7.27,7.27,0,0,1,1.39,2.81l1.83,5.88a2.12,2.12,0,0,0,.43,0c.9.05,1.83.16,2.81.25s1.87.28,2.81.46a1,1,0,0,1,.39.1l2.46-4.63a7.84,7.84,0,0,1,4.82-3.92l.06,0a7.71,7.71,0,0,1,3.11-.31,8.44,8.44,0,0,1,3,.89l9.25,4.94a8.58,8.58,0,0,1,2.49,2,7.68,7.68,0,0,1,1.5,2.82,8,8,0,0,1,.33,3.17,8.31,8.31,0,0,1-1,3l-2.9,5.44c.11.11.23.28.34.39.6.71,1.19,1.45,1.77,2.2s1.19,1.56,1.66,2.3l.19.27,5.05-1.51a7.43,7.43,0,0,1,3.17-.32,8,8,0,0,1,3.06.91,7.67,7.67,0,0,1,2.46,2l0,.08a8.26,8.26,0,0,1,1.5,2.82l3,9.91.05,0a8.8,8.8,0,0,1,.35,3.13,7.87,7.87,0,0,1-.92,3.06,8.54,8.54,0,0,1-2,2.46A7.31,7.31,0,0,1,114.63,55l-5.88,1.83c0,.15,0,.32,0,.47,0,.91-.15,1.83-.24,2.71,0,0,0,.11,0,.15A26.84,26.84,0,0,1,108,63l-.07.34,4.67,2.49a7.52,7.52,0,0,1,2.47,2,8,8,0,0,1,1.45,2.79l0,.07a7.66,7.66,0,0,1,.31,3.1,8.25,8.25,0,0,1-.9,3l-.74,1.39-1.32-.71a25.71,25.71,0,0,0-4.34-7.75c-.14-.19-.29-.37-.45-.55a27.07,27.07,0,0,0-7.55-6.25c.09-.37.18-.75.26-1.13.13-.75.28-1.54.37-2.42,0,0,0-.11,0-.15.11-.81.17-1.54.23-2.27s.09-1.59.07-2.37a3,3,0,0,1,2.18-3l8.09-2.5s.07,0,.11,0a2.31,2.31,0,0,0,.65-.3,1.52,1.52,0,0,0,.41-.55,1.77,1.77,0,0,0,.21-.71,1.94,1.94,0,0,0-.11-.82L111,36.8l0,.06Zm-34-3.09a21.79,21.79,0,0,1,3.93,2.64,23.11,23.11,0,0,1,3.3,3.33,29.87,29.87,0,0,1,2.5,3.79,21.32,21.32,0,0,1,1.72,4.13,20.05,20.05,0,0,1,.86,4.44,20.89,20.89,0,0,1,0,4.54c0,.11,0,.19,0,.26a23,23,0,0,1-.68,3.77c-1.64.16-3.27.42-4.88.71l-1.48-.79c.13-.34.24-.69.35-1.05a18.63,18.63,0,0,0,.64-3.14.8.8,0,0,1,0-.22,17.14,17.14,0,0,0,0-3.44,17.56,17.56,0,0,0-.62-3.23,14.89,14.89,0,0,0-1.28-3,18.34,18.34,0,0,0-1.91-2.87A16.74,16.74,0,0,0,77,41.19a18.31,18.31,0,0,0-6.2-3.3,18.63,18.63,0,0,0-3.14-.64.57.57,0,0,1-.22,0,18.76,18.76,0,0,0-3.44,0,17.57,17.57,0,0,0-3.23.63,14.89,14.89,0,0,0-3,1.28,18.26,18.26,0,0,0-2.87,1.9,17.35,17.35,0,0,0-2.43,2.42c-.23.27-.46.56-.68.87l-5.46-2.91a20.4,20.4,0,0,1,1.42-1.9A22.63,22.63,0,0,1,51,36.26a28.91,28.91,0,0,1,3.79-2.51A24.63,24.63,0,0,1,59,32a22,22,0,0,1,4.39-.88,21.63,21.63,0,0,1,4.55,0c.1,0,.19.05.25,0a23.26,23.26,0,0,1,4.35.84,26.43,26.43,0,0,1,4.39,1.79l0,0Zm-37.89,24h0v.1h0l0,0V58h0v.21h0v.11h0v.11h0v.34h0V59h0v.12h0v.23h0v.13h0v.13h0V60h0v.13h0v.14h0v.25h0V79a1.68,1.68,0,1,1-3.35,0v-3.1h0a1.84,1.84,0,0,1-.25-.17L31.8,73.16l-4.34-3.57A6.52,6.52,0,0,0,26,68.66H24.87a2.57,2.57,0,0,0-1.45.06,1.46,1.46,0,0,0-.79.81h-.1a5.44,5.44,0,0,0-.2,2.11,8.87,8.87,0,0,0,.81,2.9A18.68,18.68,0,0,0,25.26,78s.07.1.1.16l12.7,20.76a1.68,1.68,0,0,1,.28.76h0a11.41,11.41,0,0,0,1.31,4.59H65a11,11,0,0,0,3.08-3.63.47.47,0,0,1,.06-.09c.36-.62.84-1.41,1.31-2.18a29.64,29.64,0,0,0,2.86-6.82v0l0-.06,0-.1,0-.06v0l0-.1,0-.07v0l0-.1.06-.2,0-.1h0l0-.09,0-.1v0l0-.07,0-.1v-.1l0-.1V90l0-.1,0-.09h0l0-.1,0-.1h0l0-.08,0-.1v0l0-.07,0-.1v-.1l0-.1,0-.07v0l0-.1,0-.08v0l0-.09,0-.1h0l0-.09,0-.1v-.1l0-.09v-.29l0-.1v-.1l0-.09v-.1h0v-.09l0-.1v-.84h0v-1l-.13-5.7a1.94,1.94,0,0,1,0-.24c0-.08,0-.62,0-1.34v-.18h0V76.84h0v-.19h0V75.36h0v-.19h0V74.1h0v-.17h0v-.18h0v-.19l0-.09v-.64l0-.08,0-.09,0-.09h0v-.09l0-.07h0l0-.09v-.08l0-.09V72a3.67,3.67,0,0,0-2.89-3H67.74c0,.47,0,.93,0,1.4h0v0h0v0h0v0h0v.1h0v0h0v.08h0V71h0v0h0v0h0v.1h0v0h0v0h0v0h0v.07h0v0h0v0h0v0h0v0h0v.05h0v0h0v0h0v0h0v0h0v.05h0v0h0v0h0v0h0v0h0v0h0v0h0v0h0v.05c-.06.93-.11,1.84-.11,2.7a1.68,1.68,0,0,1-3.36,0c0-.86.07-1.86.13-2.9v-.33h0v-.17h0v-.15h0v-.33h0v-.17h0v-.15h0v-.17h0V70.2h0v-.34h0v-.33h0V69.2h0V69c0-2.52-.45-4.71-2.48-5.08H59.7a1.37,1.37,0,0,1-.36,0c0,.94,0,1.92-.08,2.87v1c-.06.93-.11,1.83-.11,2.69a1.68,1.68,0,1,1-3.36,0c0-.86.07-1.86.13-2.9v-.17h0v-.15h0v-.16h0v-.17h0v-.17h0v-.17h0v-.32h0v-.16h0v-.17h0v-.14h0v-.17h0v-.17h0v-.07c.08-2.84-.23-5.46-2.47-5.87H51.29a1.49,1.49,0,0,1-.43-.06v6.49a1.68,1.68,0,0,1-3.36,0v-8.2c0-2.32-2.3-3.32-4.45-3.32a3.85,3.85,0,0,0-1.74.42,5,5,0,0,0-2.26,3ZM35.29,70l-1.58-.65a19.89,19.89,0,0,0-2.2-.75l2.41,2,1.37,1.12V70Z" })), w0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M16.71.243l-.12 2.71a.18.18 0 00.29.15l1.06-.8.9.7a.18.18 0 00.28-.14l-.1-2.76 1.33-.1a1.2 1.2 0 011.279 1.2v21.596a1.2 1.2 0 01-1.26 1.2l-16.096-.72a1.2 1.2 0 01-1.15-1.16l-.75-19.797a1.2 1.2 0 011.13-1.27L16.7.222zM13.64 9.3c0 .47 3.16.24 3.59-.08 0-3.2-1.72-4.89-4.859-4.89-3.15 0-4.899 1.72-4.899 4.29 0 4.45 5.999 4.53 5.999 6.959 0 .7-.32 1.1-1.05 1.1-.96 0-1.35-.49-1.3-2.16 0-.36-3.649-.48-3.769 0-.27 4.03 2.23 5.2 5.099 5.2 2.79 0 4.969-1.49 4.969-4.18 0-4.77-6.099-4.64-6.099-6.999 0-.97.72-1.1 1.13-1.1.45 0 1.25.07 1.19 1.87z" })), b0 = (e) => /* @__PURE__ */ i.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("path", { d: "M22.92 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.83 4.5 17.72 4 16.46 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98-3.56-.18-6.73-1.89-8.84-4.48-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 01-1.93.07 4.28 4.28 0 004 2.98 8.521 8.521 0 01-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.9 20.29 6.16 21 8.58 21c7.88 0 12.21-6.54 12.21-12.21 0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z" })), L0 = {
232
+ arrowLeft: t0,
233
+ arrowRight: a0,
234
+ articles: n0,
235
+ company: o0,
236
+ check: s0,
237
+ chevronRight: c0,
238
+ close: l0,
239
+ copy: r0,
240
+ download: i0,
241
+ error: h0,
242
+ figma: d0,
243
+ github: v0,
244
+ link: u0,
245
+ linkedin: m0,
246
+ menu: g0,
247
+ pause: p0,
248
+ play: _0,
249
+ send: y0,
250
+ skills: f0,
251
+ storybook: w0,
252
+ twitter: b0
253
+ }, D = ({ icon: e, className: t, ...a }) => {
254
+ const l = L0[e];
255
+ return /* @__PURE__ */ n(l, { "aria-hidden": !0, className: w(e0.icon, t), ...a });
256
+ }, M0 = "_container_19hr9_1", V0 = "_options_19hr9_5", z0 = "_button_19hr9_25", H0 = "_indicator_19hr9_66", G = {
257
+ container: M0,
258
+ options: V0,
259
+ button: z0,
260
+ indicator: H0
261
+ }, r1 = f1(
262
+ {}
263
+ ), ke = ({
264
+ children: e,
265
+ currentIndex: t,
266
+ onChange: a,
267
+ label: l,
268
+ ...o
269
+ }) => {
270
+ const c = `${J()}segmented-control-label`, r = M([]), [h, u] = L(), m = (d) => {
271
+ var f, V;
272
+ const { length: v } = r.current, _ = (t - 1 + v) % v, y = (t + 1) % v;
273
+ ["ArrowLeft", "ArrowUp"].includes(d.key) ? (a(_), (f = r.current[_].current) == null || f.focus()) : ["ArrowRight", "ArrowDown"].includes(d.key) && (a(y), (V = r.current[y].current) == null || V.focus());
274
+ }, g = X((d) => {
275
+ r.current = [...r.current, d];
276
+ }, []), p = X((d) => {
277
+ r.current = r.current.filter((v) => v !== d);
278
+ }, []);
279
+ return N(() => {
280
+ var _;
281
+ const d = (_ = r.current[t]) == null ? void 0 : _.current;
282
+ if (!d) return;
283
+ const v = new ResizeObserver(() => {
284
+ const y = d.getBoundingClientRect(), f = d.offsetLeft;
285
+ u({ width: y.width, left: f });
286
+ });
287
+ return v.observe(d), () => {
288
+ v.disconnect();
289
+ };
290
+ }, [t]), /* @__PURE__ */ n(
291
+ r1.Provider,
292
+ {
293
+ value: { optionRefs: r, currentIndex: t, onChange: a, registerOption: g, unRegisterOption: p },
294
+ children: /* @__PURE__ */ b(
295
+ "div",
296
+ {
297
+ className: G.container,
298
+ role: "radiogroup",
299
+ "aria-labelledby": c,
300
+ onKeyDown: m,
301
+ ...o,
302
+ children: [
303
+ /* @__PURE__ */ n(Y, { as: "label", id: c, children: l }),
304
+ /* @__PURE__ */ b("div", { className: G.options, children: [
305
+ !!h && /* @__PURE__ */ n(
306
+ "div",
307
+ {
308
+ className: G.indicator,
309
+ "data-last": t === r.current.length - 1,
310
+ style: x(h)
311
+ }
312
+ ),
313
+ e
314
+ ] })
315
+ ]
316
+ }
317
+ )
318
+ }
319
+ );
320
+ }, Ce = ({ children: e, ...t }) => {
321
+ const { optionRefs: a, currentIndex: l, onChange: o, registerOption: s, unRegisterOption: c } = y1(r1), r = M(null), h = a.current.indexOf(r), u = l === h;
322
+ return N(() => (s(r), () => {
323
+ c(r);
324
+ }), [s, c]), /* @__PURE__ */ n(
325
+ "button",
326
+ {
327
+ className: G.button,
328
+ tabIndex: u ? 0 : -1,
329
+ role: "radio",
330
+ "aria-checked": u,
331
+ onClick: () => o(h),
332
+ ref: r,
333
+ ...t,
334
+ children: e
335
+ }
336
+ );
337
+ }, x0 = "_container_1a9g9_1", N0 = "_content_1a9g9_15", k0 = "_input_1a9g9_20", C0 = "_underline_1a9g9_60", S0 = "_label_1a9g9_32", T0 = "_error_1a9g9_135", E0 = "_errorMessage_1a9g9_151", S = {
338
+ container: x0,
339
+ content: N0,
340
+ input: k0,
341
+ underline: C0,
342
+ label: S0,
343
+ error: T0,
344
+ errorMessage: E0
345
+ }, $0 = "_textarea_vm3vl_1", B0 = {
346
+ textarea: $0
347
+ }, R0 = ({
348
+ className: e,
349
+ resize: t = "none",
350
+ value: a,
351
+ onChange: l,
352
+ minRows: o = 1,
353
+ maxRows: s,
354
+ ...c
355
+ }) => {
356
+ const [r, h] = L(o), [u, m] = L(), g = M(null);
357
+ N(() => {
358
+ const d = getComputedStyle(g.current), v = parseInt(d.lineHeight, 10), _ = parseInt(d.paddingTop, 10) + parseInt(d.paddingBottom, 10);
359
+ m({ lineHeight: v, paddingHeight: _ });
360
+ }, []);
361
+ const p = (d) => {
362
+ l(d);
363
+ const { lineHeight: v, paddingHeight: _ } = u, y = d.target.rows;
364
+ d.target.rows = o;
365
+ const f = ~~((d.target.scrollHeight - _) / v);
366
+ f === y && (d.target.rows = f), s && f >= s && (d.target.rows = s, d.target.scrollTop = d.target.scrollHeight), h(s && f > s ? s : f);
367
+ };
368
+ return /* @__PURE__ */ n(
369
+ "textarea",
370
+ {
371
+ className: w(B0.textarea, e),
372
+ ref: g,
373
+ onChange: p,
374
+ style: x({ resize: t }),
375
+ rows: r,
376
+ value: a,
377
+ ...c
378
+ }
379
+ );
380
+ }, Se = ({
381
+ id: e,
382
+ label: t,
383
+ value: a,
384
+ multiline: l,
385
+ className: o,
386
+ style: s,
387
+ error: c,
388
+ onBlur: r,
389
+ autoComplete: h,
390
+ required: u,
391
+ maxLength: m,
392
+ type: g,
393
+ placeholder: p,
394
+ maxRows: d,
395
+ onChange: v,
396
+ ..._
397
+ }) => {
398
+ const [y, f] = L(!1), V = J(), k = M(null), C = e || `${V}input`, A = `${C}-label`, q = `${C}-error`, K = l ? R0 : "input", z = (H) => {
399
+ f(!1), r && r(H);
400
+ };
401
+ return /* @__PURE__ */ b(
402
+ "div",
403
+ {
404
+ className: w(S.container, o),
405
+ "data-error": !!c,
406
+ "data-multiline": !!l,
407
+ style: s,
408
+ ..._,
409
+ children: [
410
+ /* @__PURE__ */ b("div", { className: S.content, children: [
411
+ /* @__PURE__ */ n(
412
+ "label",
413
+ {
414
+ className: S.label,
415
+ "data-focused": y,
416
+ "data-filled": !!a,
417
+ "data-placeholder": !!p,
418
+ id: A,
419
+ htmlFor: C,
420
+ children: t
421
+ }
422
+ ),
423
+ /* @__PURE__ */ n(
424
+ K,
425
+ {
426
+ className: S.input,
427
+ id: C,
428
+ "aria-labelledby": A,
429
+ "aria-describedby": c ? q : void 0,
430
+ onFocus: () => f(!0),
431
+ onBlur: z,
432
+ value: a,
433
+ onChange: v,
434
+ autoComplete: h,
435
+ required: u,
436
+ maxLength: m,
437
+ type: g,
438
+ placeholder: p,
439
+ ...l ? { maxRows: d } : {}
440
+ }
441
+ ),
442
+ /* @__PURE__ */ n("div", { className: S.underline, "data-focused": y })
443
+ ] }),
444
+ /* @__PURE__ */ n(o1, { unmount: !0, in: !!c, timeout: m1(L1.base.durationM), children: (H) => {
445
+ var P;
446
+ return /* @__PURE__ */ n(
447
+ "div",
448
+ {
449
+ className: S.error,
450
+ "data-visible": H,
451
+ id: q,
452
+ role: "alert",
453
+ style: x({
454
+ height: H ? ((P = k.current) == null ? void 0 : P.getBoundingClientRect().height) ?? 0 : 0
455
+ }),
456
+ children: /* @__PURE__ */ b("div", { className: S.errorMessage, ref: k, children: [
457
+ /* @__PURE__ */ n(D, { icon: "error" }),
458
+ c
459
+ ] })
460
+ }
461
+ );
462
+ } })
463
+ ]
464
+ }
465
+ );
466
+ }, A0 = "_link_o3rjr_1", P0 = {
467
+ link: A0
468
+ }, I0 = ["txt", "png", "jpg"];
469
+ function Z0(e) {
470
+ const t = I0.includes((e == null ? void 0 : e.split(".").pop()) ?? "");
471
+ return !!(e != null && e.includes("://")) || (e == null ? void 0 : e[0]) === "#" || t;
472
+ }
473
+ const j0 = B(
474
+ ({ rel: e, target: t, children: a, secondary: l, className: o, href: s, linkComponent: c, ...r }, h) => {
475
+ const u = c1(), m = c ?? u, g = s == null ? void 0 : s.includes("://"), p = e || (g ? "noreferrer noopener" : void 0), d = t || (g ? "_blank" : void 0), v = {
476
+ className: w(P0.link, o),
477
+ "data-secondary": l,
478
+ rel: p,
479
+ href: s,
480
+ target: d,
481
+ ref: h,
482
+ ...r
483
+ };
484
+ return Z0(s) ? /* @__PURE__ */ n("a", { ...v, children: a }) : /* @__PURE__ */ n(m, { ...v, href: s ?? "", children: a });
485
+ }
486
+ ), D0 = "_button_1yrod_1", q0 = "_text_1yrod_128", O0 = "_loader_1yrod_141", F0 = "_icon_1yrod_154", I = {
487
+ button: D0,
488
+ text: q0,
489
+ loader: O0,
490
+ icon: F0
491
+ };
492
+ function i1(e) {
493
+ return !!(e != null && e.includes("://"));
494
+ }
495
+ const W0 = B(
496
+ ({ href: e, linkComponent: t, ...a }, l) => {
497
+ const o = c1(), s = t ?? o;
498
+ return i1(e) || !e ? /* @__PURE__ */ n(e1, { href: e, ref: l, ...a }) : /* @__PURE__ */ n(e1, { as: s, href: e, ref: l, ...a });
499
+ }
500
+ ), e1 = B(
501
+ ({
502
+ className: e,
503
+ as: t,
504
+ secondary: a,
505
+ loading: l,
506
+ loadingText: o = "loading",
507
+ icon: s,
508
+ iconEnd: c,
509
+ iconHoverShift: r,
510
+ iconOnly: h,
511
+ children: u,
512
+ rel: m,
513
+ target: g,
514
+ href: p,
515
+ disabled: d,
516
+ ...v
517
+ }, _) => {
518
+ const y = i1(p);
519
+ return /* @__PURE__ */ b(
520
+ t || (p ? "a" : "button"),
521
+ {
522
+ className: w(I.button, e),
523
+ "data-loading": l,
524
+ "data-icon-only": h,
525
+ "data-secondary": a,
526
+ "data-icon": s,
527
+ href: p,
528
+ rel: m || y ? "noopener noreferrer" : void 0,
529
+ target: g || y ? "_blank" : void 0,
530
+ disabled: d,
531
+ ref: _,
532
+ ...v,
533
+ children: [
534
+ !!s && /* @__PURE__ */ n(
535
+ D,
536
+ {
537
+ className: I.icon,
538
+ "data-start": !h,
539
+ "data-shift": r,
540
+ icon: s
541
+ }
542
+ ),
543
+ !!u && /* @__PURE__ */ n("span", { className: I.text, children: u }),
544
+ !!c && /* @__PURE__ */ n(
545
+ D,
546
+ {
547
+ className: I.icon,
548
+ "data-end": !h,
549
+ "data-shift": r,
550
+ icon: c
551
+ }
552
+ ),
553
+ /* @__PURE__ */ n(o1, { unmount: !0, in: l, children: (k) => /* @__PURE__ */ n(
554
+ Q1,
555
+ {
556
+ className: I.loader,
557
+ size: 32,
558
+ text: o,
559
+ "data-visible": k
560
+ }
561
+ ) })
562
+ ]
563
+ }
564
+ );
565
+ }
566
+ ), G0 = "_breadcrumbs_1k287_3", K0 = "_list_1k287_16", U0 = "_item_1k287_26", X0 = "_link_1k287_33", J0 = "_separator_1k287_44", Q0 = "_current_1k287_51", E = {
567
+ breadcrumbs: G0,
568
+ list: K0,
569
+ item: U0,
570
+ link: X0,
571
+ separator: J0,
572
+ current: Q0
573
+ }, Te = ({ items: e, className: t }) => /* @__PURE__ */ n("nav", { "aria-label": "Breadcrumb", className: w(E.breadcrumbs, t), children: /* @__PURE__ */ n("ol", { className: E.list, children: e.map((a, l) => {
574
+ const o = l === e.length - 1;
575
+ return /* @__PURE__ */ b("li", { className: E.item, children: [
576
+ l > 0 && /* @__PURE__ */ n(
577
+ D,
578
+ {
579
+ className: E.separator,
580
+ icon: "chevronRight",
581
+ "aria-hidden": "true"
582
+ }
583
+ ),
584
+ o ? /* @__PURE__ */ n("span", { className: E.current, "aria-current": "page", children: a.label }) : /* @__PURE__ */ n(j0, { className: E.link, href: a.href, children: a.label })
585
+ ] }, a.href);
586
+ }) }) });
587
+ async function Y0(e) {
588
+ return new Promise((t) => setTimeout(t, e));
589
+ }
590
+ const ee = "_text_11knq_1", te = "_glyph_11knq_8", ae = "_value_11knq_15", W = {
591
+ text: ee,
592
+ glyph: te,
593
+ value: ae
594
+ }, t1 = [
595
+ // Independent vowels
596
+ "अ",
597
+ "आ",
598
+ "इ",
599
+ "ई",
600
+ "उ",
601
+ "ऊ",
602
+ "ऋ",
603
+ "ए",
604
+ "ऐ",
605
+ "ओ",
606
+ "औ",
607
+ // Consonants
608
+ "क",
609
+ "ख",
610
+ "ग",
611
+ "घ",
612
+ "ङ",
613
+ "च",
614
+ "छ",
615
+ "ज",
616
+ "झ",
617
+ "ञ",
618
+ "ट",
619
+ "ठ",
620
+ "ड",
621
+ "ढ",
622
+ "ण",
623
+ "त",
624
+ "थ",
625
+ "द",
626
+ "ध",
627
+ "न",
628
+ "प",
629
+ "फ",
630
+ "ब",
631
+ "भ",
632
+ "म",
633
+ "य",
634
+ "र",
635
+ "ल",
636
+ "व",
637
+ "श",
638
+ "ष",
639
+ "स",
640
+ "ह",
641
+ "ळ",
642
+ // Devanagari digits
643
+ "०",
644
+ "१",
645
+ "२",
646
+ "३",
647
+ "४",
648
+ "५",
649
+ "६",
650
+ "७",
651
+ "८",
652
+ "९"
653
+ ], Z = {
654
+ Glyph: "glyph",
655
+ Value: "value"
656
+ };
657
+ function ne(e, t, a) {
658
+ return e.map((l, o) => {
659
+ if (o < a)
660
+ return { type: Z.Value, value: l };
661
+ if (a % 1 < 0.5) {
662
+ const s = Math.floor(Math.random() * t1.length);
663
+ return { type: Z.Glyph, value: t1[s] };
664
+ }
665
+ return { type: Z.Glyph, value: t[o].value };
666
+ });
667
+ }
668
+ const Ee = w1(
669
+ ({ text: e, start: t = !0, delay: a = 0, className: l, ...o }) => {
670
+ const s = M([{ type: Z.Glyph, value: "" }]), c = M(null), r = Q(), h = H1(0, { stiffness: 8, damping: 5 });
671
+ return N(() => {
672
+ const u = c.current, m = e.split(""), g = () => {
673
+ const v = s.current.map((_) => `<span class="${W[_.type]}">${_.value}</span>`);
674
+ u && (u.innerHTML = v.join(""));
675
+ }, p = h.on("change", (v) => {
676
+ s.current = ne(m, s.current, v), g();
677
+ });
678
+ return t && !r && (async () => {
679
+ await Y0(a), h.set(m.length);
680
+ })(), r && (s.current = m.map((v, _) => ({
681
+ type: Z.Value,
682
+ value: m[_]
683
+ })), g()), () => {
684
+ p == null || p();
685
+ };
686
+ }, [h, r, t, a, e]), /* @__PURE__ */ b("span", { className: w(W.text, l), ...o, children: [
687
+ /* @__PURE__ */ n(Y, { className: W.label, children: e }),
688
+ /* @__PURE__ */ n("span", { "aria-hidden": !0, className: W.content, ref: c })
689
+ ] });
690
+ }
691
+ ), se = "_image_y6je9_1", ce = "_elementWrapper_y6je9_49", le = "_placeholder_y6je9_71", oe = "_element_y6je9_49", re = "_button_y6je9_101", $ = {
692
+ image: se,
693
+ elementWrapper: ce,
694
+ placeholder: le,
695
+ element: oe,
696
+ button: re
697
+ }, $e = ({
698
+ className: e,
699
+ style: t,
700
+ reveal: a,
701
+ delay: l = 0,
702
+ raised: o,
703
+ src: s,
704
+ srcSet: c,
705
+ placeholder: r,
706
+ ...h
707
+ }) => {
708
+ const [u, m] = L(!1), { themeId: g } = M1(), p = M(null), d = s || (c == null ? void 0 : c[0]), v = g1(p, !h1(d)), _ = X(() => {
709
+ m(!0);
710
+ }, []);
711
+ return /* @__PURE__ */ n(
712
+ "div",
713
+ {
714
+ className: w($.image, e),
715
+ "data-visible": v || u,
716
+ "data-reveal": a,
717
+ "data-raised": o,
718
+ "data-theme": g,
719
+ style: x({ delay: j(l) }, t),
720
+ ref: p,
721
+ children: /* @__PURE__ */ n(
722
+ ie,
723
+ {
724
+ delay: l,
725
+ onLoad: _,
726
+ loaded: u,
727
+ inViewport: v,
728
+ reveal: a,
729
+ src: d,
730
+ srcSet: c,
731
+ placeholder: r,
732
+ ...h
733
+ }
734
+ )
735
+ }
736
+ );
737
+ }, ie = ({
738
+ onLoad: e,
739
+ loaded: t,
740
+ inViewport: a,
741
+ srcSet: l,
742
+ placeholder: o,
743
+ delay: s,
744
+ src: c,
745
+ alt: r,
746
+ play: h = !0,
747
+ restartOnPause: u,
748
+ reveal: m,
749
+ sizes: g,
750
+ noPauseButton: p,
751
+ ...d
752
+ }) => {
753
+ const v = Q(), [_, y] = L(!0), [f, V] = L(!v), [k, C] = L(), [A, q] = L(!1), K = M(null), z = M(null), H = h1(c), P = a, d1 = p1(l), v1 = s1();
754
+ N(() => {
755
+ H && l ? (async () => {
756
+ const F = await _1({ srcSet: l, sizes: g });
757
+ C(F);
758
+ })() : H && C(c.src);
759
+ }, [H, g, c, l]), N(() => {
760
+ if (!z.current || !k) return;
761
+ const O = () => {
762
+ V(!0), z.current.play();
763
+ }, F = () => {
764
+ V(!1), z.current.pause();
765
+ };
766
+ h || (F(), u && (z.current.currentTime = 0)), !A && (a ? a && !v && h && O() : F());
767
+ }, [a, h, v, u, A, k]);
768
+ const u1 = (O) => {
769
+ O.preventDefault(), q(!0), z.current.paused ? (V(!0), z.current.play()) : (V(!1), z.current.pause());
770
+ };
771
+ return /* @__PURE__ */ b(
772
+ "div",
773
+ {
774
+ className: $.elementWrapper,
775
+ "data-reveal": m,
776
+ "data-visible": a || t,
777
+ style: x({ delay: j(s + 1e3) }),
778
+ children: [
779
+ H && v1 && /* @__PURE__ */ b(n1, { children: [
780
+ /* @__PURE__ */ n(
781
+ "video",
782
+ {
783
+ muted: !0,
784
+ loop: !0,
785
+ playsInline: !0,
786
+ className: $.element,
787
+ "data-loaded": t,
788
+ autoPlay: !v,
789
+ role: "img",
790
+ onLoadStart: e,
791
+ src: k,
792
+ "aria-label": r,
793
+ ref: z,
794
+ ...d
795
+ }
796
+ ),
797
+ !p && /* @__PURE__ */ b(W0, { className: $.button, onClick: u1, children: [
798
+ /* @__PURE__ */ n(D, { icon: f ? "pause" : "play" }),
799
+ f ? "Pause" : "Play"
800
+ ] })
801
+ ] }),
802
+ !H && /* @__PURE__ */ n(
803
+ "img",
804
+ {
805
+ className: $.element,
806
+ "data-loaded": t,
807
+ onLoad: e,
808
+ decoding: "async",
809
+ src: P ? c == null ? void 0 : c.src : void 0,
810
+ srcSet: P ? d1 : void 0,
811
+ width: c == null ? void 0 : c.width,
812
+ height: c == null ? void 0 : c.height,
813
+ alt: r,
814
+ sizes: g,
815
+ ...d
816
+ }
817
+ ),
818
+ _ && o && /* @__PURE__ */ n(
819
+ "img",
820
+ {
821
+ "aria-hidden": !0,
822
+ className: $.placeholder,
823
+ "data-loaded": t,
824
+ style: x({ delay: j(s) }),
825
+ ref: K,
826
+ src: o.src,
827
+ width: o.width,
828
+ height: o.height,
829
+ onTransitionEnd: () => y(!1),
830
+ decoding: "async",
831
+ alt: "",
832
+ role: "presentation"
833
+ }
834
+ )
835
+ ]
836
+ }
837
+ );
838
+ };
839
+ function h1(e) {
840
+ return e ? typeof e.src == "string" && e.src.endsWith(".mp4") : !1;
841
+ }
842
+ const he = "_wordmark_w8y5a_1", de = "_highlight_w8y5a_6", a1 = {
843
+ wordmark: he,
844
+ highlight: de
845
+ }, Be = B(
846
+ ({ highlight: e, className: t, ...a }, l) => {
847
+ const s = `${J()}wordmark-clip`;
848
+ return /* @__PURE__ */ b(
849
+ "svg",
850
+ {
851
+ "aria-hidden": !0,
852
+ className: w(a1.wordmark, t),
853
+ width: "46",
854
+ height: "29",
855
+ viewBox: "0 0 46 29",
856
+ ref: l,
857
+ ...a,
858
+ children: [
859
+ /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: s, children: /* @__PURE__ */ n(
860
+ "path",
861
+ {
862
+ d: "M 10.3281 17.7888 l 4.4875 -11.4688 l 0.0019 -0.0006 l 6.075 11.5263 a 0.5238 0.5238 90 0 0 0.9525 -0.0581 l 2.1187 -5.515 a 0.5288 0.5288 90 0 0 -0.025 -0.4288 L 18.9419 2.2531 A 4.1863 4.1863 90 0 0 15.2294 0 h -2.875 a 0.525 0.525 90 0 0 -0.4625 0.7688 l 2.2687 4.3044 l -2.2844 5.7188 l -4.45 -8.5388 A 4.1863 4.1863 90 0 0 3.7138 0 h -2.875 a 0.5262 0.5262 90 0 0 -0.4675 0.7688 L 9.375 17.8462 a 0.5244 0.5244 90 0 0 0.9525 -0.0575 z M 26.495 5.5037 a 0.5219 0.5219 90 0 0 0.2419 -0.2787 v 0.0006 l 1.6687 -4.5188 a 0.5238 0.5238 90 0 0 -0.4906 -0.7056 h -4.1113 a 0.5231 0.5231 90 0 0 -0.46 0.7737 l 2.4419 4.5163 c 0.1375 0.2562 0.4556 0.35 0.7094 0.2125 z M 39.375 0 l 0 18.125 L 34.375 18.125 l 0 -11.875 A 4.1863 4.1863 90 0 0 34.375 18.125 L 34.375 18.125 L 34.375 0 z z",
863
+ transform: "rotate(180 23 15)"
864
+ }
865
+ ) }) }),
866
+ /* @__PURE__ */ n("rect", { clipPath: `url(#${s})`, width: "100%", height: "100%" }),
867
+ e && /* @__PURE__ */ n("g", { clipPath: `url(#${s})`, children: /* @__PURE__ */ n("rect", { className: a1.highlight, width: "100%", height: "100%" }) })
868
+ ]
869
+ }
870
+ );
42
871
  }
43
872
  );
44
873
  export {
45
- $ as Text,
46
- i as classes,
47
- k as cssProps,
48
- y as media,
49
- b as msToNum,
50
- u as numToMs,
51
- r as numToPx,
52
- d as pxToNum,
53
- T as pxToRem,
54
- N as rgbToThreeColor
874
+ Te as Breadcrumbs,
875
+ W0 as Button,
876
+ Le as Divider,
877
+ ye as Heading,
878
+ D as Icon,
879
+ $e as Image,
880
+ Se as Input,
881
+ j0 as Link,
882
+ Oe as LinkProvider,
883
+ we as List,
884
+ be as ListItem,
885
+ Q1 as Loader,
886
+ Fe as RefractProvider,
887
+ Ee as ScrambleReveal,
888
+ fe as Section,
889
+ ke as SegmentedControl,
890
+ Ce as SegmentedControlOption,
891
+ Me as Table,
892
+ He as TableBody,
893
+ Ne as TableCell,
894
+ ze as TableHead,
895
+ xe as TableHeadCell,
896
+ Ve as TableRow,
897
+ C1 as Text,
898
+ R0 as TextArea,
899
+ We as ThemeContext,
900
+ Ge as ThemeProvider,
901
+ o1 as Transition,
902
+ Y as VisuallyHidden,
903
+ Be as Wordmark,
904
+ w as classes,
905
+ Ke as createMediaTokenProperties,
906
+ Ue as createThemeProperties,
907
+ Xe as createThemeStyleObject,
908
+ x as cssProps,
909
+ L0 as icons,
910
+ Pe as media,
911
+ m1 as msToNum,
912
+ j as numToMs,
913
+ Ie as numToPx,
914
+ Ze as pxToNum,
915
+ je as pxToRem,
916
+ De as rgbToThreeColor,
917
+ Je as squish,
918
+ Qe as theme,
919
+ Ye as tokenStyles,
920
+ L1 as tokens,
921
+ c1 as useLinkComponent,
922
+ b1 as useRefractConfig,
923
+ M1 as useTheme
55
924
  };
56
925
  //# sourceMappingURL=index.js.map