tguikit 0.2.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -1,13 +1,101 @@
1
1
  "use client";
2
- import { Children as e, Fragment as t, createContext as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l, useSyncExternalStore as u } from "react";
3
- import { clsx as d } from "clsx";
4
- import { cva as f } from "class-variance-authority";
5
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
2
+ import { Children as e, Fragment as t, createContext as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useId as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
3
+ import { clsx as p } from "clsx";
4
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
5
+ import { cva as _ } from "class-variance-authority";
6
+ import { createPortal as v } from "react-dom";
6
7
  //#region src/shared/lib/cn.ts
7
- function h(...e) {
8
- return d(e);
8
+ function y(...e) {
9
+ return p(e);
9
10
  }
10
- var g = {
11
+ var b = {
12
+ accordion: "_accordion_1bhfn_1",
13
+ item: "_item_1bhfn_6",
14
+ header: "_header_1bhfn_14",
15
+ title: "_title_1bhfn_31",
16
+ chevron: "_chevron_1bhfn_36",
17
+ panel: "_panel_1bhfn_59",
18
+ "panel--open": "_panel--open_1bhfn_70",
19
+ panelInner: "_panelInner_1bhfn_74",
20
+ panelContent: "_panelContent_1bhfn_78"
21
+ }, x = n(null);
22
+ x.displayName = "AccordionContext";
23
+ //#endregion
24
+ //#region src/components/Accordion/Accordion.tsx
25
+ var S = (e) => e == null ? [] : Array.isArray(e) ? e : [e];
26
+ function C({ ref: e, multiple: t = !1, value: n, defaultValue: r, onChange: a, className: o, children: s, ...c }) {
27
+ let [u, f] = d(() => S(r)), p = n == null ? u : S(n), m = i((e) => {
28
+ let r = p.includes(e) ? p.filter((t) => t !== e) : t ? [...p, e] : [e];
29
+ n ?? f(r), a?.(r);
30
+ }, [
31
+ p,
32
+ t,
33
+ n,
34
+ a
35
+ ]), g = l(() => ({
36
+ open: p,
37
+ toggle: m
38
+ }), [p, m]);
39
+ return /* @__PURE__ */ h(x.Provider, {
40
+ value: g,
41
+ children: /* @__PURE__ */ h("div", {
42
+ ref: e,
43
+ className: y(b.accordion, o),
44
+ ...c,
45
+ children: s
46
+ })
47
+ });
48
+ }
49
+ C.displayName = "Accordion";
50
+ //#endregion
51
+ //#region src/components/Accordion/AccordionItem.tsx
52
+ function w({ ref: e, value: t, header: n, className: r, children: i, ...o }) {
53
+ let c = a(x);
54
+ if (!c) throw Error("AccordionItem must be used within an <Accordion>.");
55
+ let l = s(), u = c.open.includes(t);
56
+ return /* @__PURE__ */ g("div", {
57
+ ref: e,
58
+ className: y(b.item, r),
59
+ ...o,
60
+ children: [/* @__PURE__ */ g("button", {
61
+ type: "button",
62
+ className: b.header,
63
+ "aria-expanded": u,
64
+ "aria-controls": l,
65
+ onClick: () => c.toggle(t),
66
+ children: [/* @__PURE__ */ h("span", {
67
+ className: b.title,
68
+ children: n
69
+ }), /* @__PURE__ */ h("svg", {
70
+ className: b.chevron,
71
+ viewBox: "0 0 18 18",
72
+ fill: "none",
73
+ "aria-hidden": !0,
74
+ children: /* @__PURE__ */ h("path", {
75
+ d: "M4.5 7l4.5 4.5L13.5 7",
76
+ stroke: "currentColor",
77
+ strokeWidth: "1.8",
78
+ strokeLinecap: "round",
79
+ strokeLinejoin: "round"
80
+ })
81
+ })]
82
+ }), /* @__PURE__ */ h("div", {
83
+ className: y(b.panel, u && b["panel--open"]),
84
+ children: /* @__PURE__ */ h("div", {
85
+ className: b.panelInner,
86
+ children: /* @__PURE__ */ h("div", {
87
+ id: l,
88
+ className: b.panelContent,
89
+ inert: !u,
90
+ "aria-hidden": !u,
91
+ children: i
92
+ })
93
+ })
94
+ })]
95
+ });
96
+ }
97
+ w.displayName = "AccordionItem";
98
+ var T = {
11
99
  avatar: "_avatar_lii18_1",
12
100
  s20: "_s20_lii18_18",
13
101
  s24: "_s24_lii18_24",
@@ -18,50 +106,65 @@ var g = {
18
106
  img: "_img_lii18_54",
19
107
  acronym: "_acronym_lii18_61",
20
108
  icon: "_icon_lii18_65"
21
- }, _ = f(g.avatar, {
109
+ }, E = _(T.avatar, {
22
110
  variants: { size: {
23
- 20: g.s20,
24
- 24: g.s24,
25
- 28: g.s28,
26
- 40: g.s40,
27
- 48: g.s48,
28
- 96: g.s96
111
+ 20: T.s20,
112
+ 24: T.s24,
113
+ 28: T.s28,
114
+ 40: T.s40,
115
+ 48: T.s48,
116
+ 96: T.s96
29
117
  } },
30
118
  defaultVariants: { size: 40 }
31
119
  });
32
120
  //#endregion
33
121
  //#region src/components/Avatar/Avatar.tsx
34
- function v() {
35
- return /* @__PURE__ */ p("svg", {
122
+ function D() {
123
+ return /* @__PURE__ */ h("svg", {
36
124
  viewBox: "0 0 24 24",
37
125
  fill: "currentColor",
38
126
  "aria-hidden": !0,
39
- children: /* @__PURE__ */ p("path", { d: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.2 0-7 2.4-7 4.5V20h14v-1.5c0-2.1-2.8-4.5-7-4.5Z" })
127
+ children: /* @__PURE__ */ h("path", { d: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.2 0-7 2.4-7 4.5V20h14v-1.5c0-2.1-2.8-4.5-7-4.5Z" })
40
128
  });
41
129
  }
42
- function y({ ref: e, size: t = 40, src: n, alt: r = "", acronym: i, fallbackIcon: a, className: o, children: s, ...c }) {
43
- let [u, d] = l(null), f = n != null && n !== "" && n !== u;
44
- return /* @__PURE__ */ m("span", {
130
+ function O({ ref: e, size: t = 40, src: n, alt: r = "", acronym: i, fallbackIcon: a, className: o, children: s, ...c }) {
131
+ let [l, u] = d(null), f = n != null && n !== "" && n !== l;
132
+ return /* @__PURE__ */ g("span", {
45
133
  ref: e,
46
- className: h(_({ size: t }), o),
134
+ className: y(E({ size: t }), o),
47
135
  ...c,
48
- children: [f ? /* @__PURE__ */ p("img", {
49
- className: g.img,
136
+ children: [f ? /* @__PURE__ */ h("img", {
137
+ className: T.img,
50
138
  src: n,
51
139
  alt: r,
52
140
  loading: "lazy",
53
- onError: () => d(n)
54
- }) : i ? /* @__PURE__ */ p("span", {
55
- className: g.acronym,
141
+ onError: () => u(n)
142
+ }) : i ? /* @__PURE__ */ h("span", {
143
+ className: T.acronym,
56
144
  children: i
57
- }) : /* @__PURE__ */ p("span", {
58
- className: g.icon,
59
- children: a ?? /* @__PURE__ */ p(v, {})
145
+ }) : /* @__PURE__ */ h("span", {
146
+ className: T.icon,
147
+ children: a ?? /* @__PURE__ */ h(D, {})
60
148
  }), s]
61
149
  });
62
150
  }
63
- y.displayName = "Avatar";
64
- var b = {
151
+ O.displayName = "Avatar";
152
+ var k = { stack: "_stack_gi9bj_1" };
153
+ //#endregion
154
+ //#region src/components/AvatarStack/AvatarStack.tsx
155
+ function A({ ref: e, overlap: t, className: n, style: r, ...i }) {
156
+ return /* @__PURE__ */ h("div", {
157
+ ref: e,
158
+ className: y(k.stack, n),
159
+ style: t == null ? r : {
160
+ ...r,
161
+ "--tgui--avatar-stack--overlap": `${t}px`
162
+ },
163
+ ...i
164
+ });
165
+ }
166
+ A.displayName = "AvatarStack";
167
+ var j = {
65
168
  badge: "_badge_76m5w_1",
66
169
  number: "_number_76m5w_11",
67
170
  large: "_large_76m5w_20",
@@ -71,20 +174,20 @@ var b = {
71
174
  "mode-secondary": "_mode-secondary_76m5w_49",
72
175
  "mode-gray": "_mode-gray_76m5w_54",
73
176
  "mode-white": "_mode-white_76m5w_59"
74
- }, ee = f(b.badge, {
177
+ }, ee = _(j.badge, {
75
178
  variants: {
76
179
  type: {
77
- number: b.number,
78
- dot: b.dot
180
+ number: j.number,
181
+ dot: j.dot
79
182
  },
80
183
  mode: {
81
- primary: b["mode-primary"],
82
- critical: b["mode-critical"],
83
- secondary: b["mode-secondary"],
84
- gray: b["mode-gray"],
85
- white: b["mode-white"]
184
+ primary: j["mode-primary"],
185
+ critical: j["mode-critical"],
186
+ secondary: j["mode-secondary"],
187
+ gray: j["mode-gray"],
188
+ white: j["mode-white"]
86
189
  },
87
- large: { true: b.large }
190
+ large: { true: j.large }
88
191
  },
89
192
  defaultVariants: {
90
193
  type: "number",
@@ -93,10 +196,10 @@ var b = {
93
196
  });
94
197
  //#endregion
95
198
  //#region src/components/Badge/Badge.tsx
96
- function x({ ref: e, type: t = "number", mode: n = "primary", large: r = !1, className: i, children: a, ...o }) {
97
- return /* @__PURE__ */ p("span", {
199
+ function te({ ref: e, type: t = "number", mode: n = "primary", large: r = !1, className: i, children: a, ...o }) {
200
+ return /* @__PURE__ */ h("span", {
98
201
  ref: e,
99
- className: h(ee({
202
+ className: y(ee({
100
203
  type: t,
101
204
  mode: n,
102
205
  large: r
@@ -105,110 +208,278 @@ function x({ ref: e, type: t = "number", mode: n = "primary", large: r = !1, cla
105
208
  children: t === "number" ? a : null
106
209
  });
107
210
  }
108
- x.displayName = "Badge";
109
- var S = {
211
+ te.displayName = "Badge";
212
+ var M = {
213
+ banner: "_banner_1sxll_1",
214
+ "type-section": "_type-section_1sxll_12",
215
+ "type-image": "_type-image_1sxll_17",
216
+ background: "_background_1sxll_21",
217
+ before: "_before_1sxll_41",
218
+ body: "_body_1sxll_47",
219
+ callout: "_callout_1sxll_57",
220
+ header: "_header_1sxll_66",
221
+ subheader: "_subheader_1sxll_72",
222
+ description: "_description_1sxll_78",
223
+ actions: "_actions_1sxll_84",
224
+ close: "_close_1sxll_91"
225
+ }, ne = _(M.banner, {
226
+ variants: { type: {
227
+ section: M["type-section"],
228
+ image: M["type-image"]
229
+ } },
230
+ defaultVariants: { type: "section" }
231
+ });
232
+ //#endregion
233
+ //#region src/components/Banner/Banner.tsx
234
+ function re({ ref: e, type: t = "section", before: n, callout: r, header: i, subheader: a, description: o, actions: s, background: c, onClose: l, closeLabel: u = "Close", className: d, children: f, ...p }) {
235
+ return /* @__PURE__ */ g("section", {
236
+ ref: e,
237
+ className: y(ne({ type: t }), d),
238
+ ...p,
239
+ children: [
240
+ t === "image" && c != null ? /* @__PURE__ */ h("div", {
241
+ className: M.background,
242
+ "aria-hidden": !0,
243
+ children: c
244
+ }) : null,
245
+ n == null ? null : /* @__PURE__ */ h("div", {
246
+ className: M.before,
247
+ children: n
248
+ }),
249
+ /* @__PURE__ */ g("div", {
250
+ className: M.body,
251
+ children: [
252
+ r == null ? null : /* @__PURE__ */ h("span", {
253
+ className: M.callout,
254
+ children: r
255
+ }),
256
+ i == null ? null : /* @__PURE__ */ h("span", {
257
+ className: M.header,
258
+ children: i
259
+ }),
260
+ a == null ? null : /* @__PURE__ */ h("span", {
261
+ className: M.subheader,
262
+ children: a
263
+ }),
264
+ o == null ? null : /* @__PURE__ */ h("p", {
265
+ className: M.description,
266
+ children: o
267
+ }),
268
+ f,
269
+ s == null ? null : /* @__PURE__ */ h("div", {
270
+ className: M.actions,
271
+ children: s
272
+ })
273
+ ]
274
+ }),
275
+ l == null ? null : /* @__PURE__ */ h("button", {
276
+ type: "button",
277
+ className: M.close,
278
+ "aria-label": u,
279
+ onClick: l,
280
+ children: /* @__PURE__ */ h("svg", {
281
+ width: "14",
282
+ height: "14",
283
+ viewBox: "0 0 14 14",
284
+ "aria-hidden": !0,
285
+ children: /* @__PURE__ */ h("path", {
286
+ d: "M3.5 3.5l7 7M10.5 3.5l-7 7",
287
+ stroke: "currentColor",
288
+ strokeWidth: "1.5",
289
+ strokeLinecap: "round"
290
+ })
291
+ })
292
+ })
293
+ ]
294
+ });
295
+ }
296
+ re.displayName = "Banner";
297
+ var ie = {
298
+ blockquote: "_blockquote_mub25_1",
299
+ cite: "_cite_mub25_13"
300
+ };
301
+ //#endregion
302
+ //#region src/components/Blockquote/Blockquote.tsx
303
+ function ae({ ref: e, author: t, className: n, children: r, ...i }) {
304
+ return /* @__PURE__ */ g("blockquote", {
305
+ ref: e,
306
+ className: y(ie.blockquote, n),
307
+ ...i,
308
+ children: [r, t == null ? null : /* @__PURE__ */ h("cite", {
309
+ className: ie.cite,
310
+ children: t
311
+ })]
312
+ });
313
+ }
314
+ ae.displayName = "Blockquote";
315
+ var N = {
316
+ nav: "_nav_12mkz_1",
317
+ list: "_list_12mkz_8",
318
+ item: "_item_12mkz_18",
319
+ link: "_link_12mkz_25",
320
+ current: "_current_12mkz_48",
321
+ ellipsis: "_ellipsis_12mkz_57",
322
+ chevron: "_chevron_12mkz_61"
323
+ }, oe = () => /* @__PURE__ */ h("svg", {
324
+ className: N.chevron,
325
+ width: "14",
326
+ height: "14",
327
+ viewBox: "0 0 18 18",
328
+ fill: "none",
329
+ "aria-hidden": !0,
330
+ children: /* @__PURE__ */ h("path", {
331
+ d: "M6.75 4.5L11.25 9l-4.5 4.5",
332
+ stroke: "currentColor",
333
+ strokeWidth: "1.8",
334
+ strokeLinecap: "round",
335
+ strokeLinejoin: "round"
336
+ })
337
+ });
338
+ function se({ ref: e, items: t, maxItems: n = 4, className: r, ...i }) {
339
+ let a = t.length > n ? [
340
+ t[0],
341
+ "ellipsis",
342
+ ...t.slice(t.length - (n - 1))
343
+ ] : t;
344
+ return /* @__PURE__ */ h("nav", {
345
+ ref: e,
346
+ "aria-label": "Breadcrumbs",
347
+ className: y(N.nav, r),
348
+ ...i,
349
+ children: /* @__PURE__ */ h("ol", {
350
+ className: N.list,
351
+ children: a.map((e, t) => {
352
+ let n = t === a.length - 1;
353
+ return /* @__PURE__ */ g("li", {
354
+ className: N.item,
355
+ children: [e === "ellipsis" ? /* @__PURE__ */ h("span", {
356
+ className: N.ellipsis,
357
+ "aria-hidden": !0,
358
+ children: "…"
359
+ }) : n ? /* @__PURE__ */ h("span", {
360
+ className: N.current,
361
+ "aria-current": "page",
362
+ children: e.label
363
+ }) : e.href == null ? /* @__PURE__ */ h("button", {
364
+ type: "button",
365
+ className: N.link,
366
+ onClick: e.onClick,
367
+ children: e.label
368
+ }) : /* @__PURE__ */ h("a", {
369
+ href: e.href,
370
+ className: N.link,
371
+ onClick: e.onClick,
372
+ children: e.label
373
+ }), n ? null : /* @__PURE__ */ h(oe, {})]
374
+ }, t);
375
+ })
376
+ })
377
+ });
378
+ }
379
+ se.displayName = "Breadcrumbs";
380
+ var ce = {
110
381
  spinner: "_spinner_1kqa4_1",
111
382
  "tgui-spinner": "_tgui-spinner_1kqa4_1",
112
383
  s: "_s_1kqa4_1",
113
384
  m: "_m_1kqa4_17",
114
385
  l: "_l_1kqa4_23"
115
- }, te = f(S.spinner, {
386
+ }, le = _(ce.spinner, {
116
387
  variants: { size: {
117
- s: S.s,
118
- m: S.m,
119
- l: S.l
388
+ s: ce.s,
389
+ m: ce.m,
390
+ l: ce.l
120
391
  } },
121
392
  defaultVariants: { size: "m" }
122
393
  });
123
394
  //#endregion
124
395
  //#region src/components/Spinner/Spinner.tsx
125
- function C({ ref: e, size: t = "m", className: n, ...r }) {
126
- return /* @__PURE__ */ p("span", {
396
+ function ue({ ref: e, size: t = "m", className: n, ...r }) {
397
+ return /* @__PURE__ */ h("span", {
127
398
  ref: e,
128
399
  role: "status",
129
400
  "aria-label": "Loading",
130
- className: h(te({ size: t }), n),
401
+ className: y(le({ size: t }), n),
131
402
  ...r
132
403
  });
133
404
  }
134
- C.displayName = "Spinner";
135
- var w = {
405
+ ue.displayName = "Spinner";
406
+ var de = {
136
407
  typography: "_typography_1uxpm_1",
137
408
  "weight-1": "_weight-1_1uxpm_6",
138
409
  "weight-2": "_weight-2_1uxpm_10",
139
410
  "weight-3": "_weight-3_1uxpm_14",
140
411
  caps: "_caps_1uxpm_18"
141
- }, T = f(w.typography, {
412
+ }, fe = _(de.typography, {
142
413
  variants: {
143
414
  weight: {
144
- 1: w["weight-1"],
145
- 2: w["weight-2"],
146
- 3: w["weight-3"]
415
+ 1: de["weight-1"],
416
+ 2: de["weight-2"],
417
+ 3: de["weight-3"]
147
418
  },
148
- caps: { true: w.caps }
419
+ caps: { true: de.caps }
149
420
  },
150
421
  defaultVariants: { weight: "3" }
151
422
  });
152
423
  //#endregion
153
424
  //#region src/components/Typography/Typography.tsx
154
- function E({ ref: e, weight: t, caps: n, Component: r = "span", className: i, ...a }) {
155
- return /* @__PURE__ */ p(r, {
425
+ function P({ ref: e, weight: t, caps: n, Component: r = "span", className: i, ...a }) {
426
+ return /* @__PURE__ */ h(r, {
156
427
  ref: e,
157
- className: h(T({
428
+ className: y(fe({
158
429
  weight: t,
159
430
  caps: n
160
431
  }), i),
161
432
  ...a
162
433
  });
163
434
  }
164
- E.displayName = "Typography";
435
+ P.displayName = "Typography";
165
436
  //#endregion
166
437
  //#region src/components/Subheadline/Subheadline.module.css
167
- var ne = {
438
+ var pe = {
168
439
  "level-1": "_level-1_1azf3_1",
169
440
  "level-2": "_level-2_1azf3_6"
170
- }, re = f("", {
441
+ }, me = _("", {
171
442
  variants: { level: {
172
- 1: ne["level-1"],
173
- 2: ne["level-2"]
443
+ 1: pe["level-1"],
444
+ 2: pe["level-2"]
174
445
  } },
175
446
  defaultVariants: { level: "1" }
176
447
  });
177
448
  //#endregion
178
449
  //#region src/components/Subheadline/Subheadline.tsx
179
- function D({ ref: e, level: t, Component: n = "h6", className: r, ...i }) {
180
- return /* @__PURE__ */ p(E, {
450
+ function F({ ref: e, level: t, Component: n = "h6", className: r, ...i }) {
451
+ return /* @__PURE__ */ h(P, {
181
452
  ref: e,
182
453
  Component: n,
183
- className: h(re({ level: t }), r),
454
+ className: y(me({ level: t }), r),
184
455
  ...i
185
456
  });
186
457
  }
187
- D.displayName = "Subheadline";
458
+ F.displayName = "Subheadline";
188
459
  //#endregion
189
460
  //#region src/components/TguiProvider/context.ts
190
- var ie = n(null);
191
- ie.displayName = "TguiContext";
461
+ var he = n(null);
462
+ he.displayName = "TguiContext";
192
463
  //#endregion
193
464
  //#region src/components/TguiProvider/useTgui.ts
194
- function O() {
195
- let e = a(ie);
465
+ function I() {
466
+ let e = a(he);
196
467
  if (e === null) throw Error("useTgui must be used within a <TguiProvider>.");
197
468
  return e;
198
469
  }
199
- var ae = {
470
+ var ge = {
200
471
  ripple: "_ripple_1cc3x_1",
201
472
  wave: "_wave_1cc3x_9",
202
473
  "wave-rise": "_wave-rise_1cc3x_1"
203
474
  };
204
475
  //#endregion
205
476
  //#region src/components/Tappable/Ripple.tsx
206
- function oe({ waves: e, onWaveEnd: t }) {
207
- return /* @__PURE__ */ p("span", {
477
+ function _e({ waves: e, onWaveEnd: t }) {
478
+ return /* @__PURE__ */ h("span", {
208
479
  "aria-hidden": !0,
209
- className: ae.ripple,
210
- children: e.map((e) => /* @__PURE__ */ p("span", {
211
- className: ae.wave,
480
+ className: ge.ripple,
481
+ children: e.map((e) => /* @__PURE__ */ h("span", {
482
+ className: ge.wave,
212
483
  style: {
213
484
  top: e.y,
214
485
  left: e.x
@@ -217,13 +488,13 @@ function oe({ waves: e, onWaveEnd: t }) {
217
488
  }, e.id))
218
489
  });
219
490
  }
220
- var k = {
491
+ var ve = {
221
492
  tappable: "_tappable_10au7_1",
222
493
  "tappable--ios": "_tappable--ios_10au7_17",
223
494
  "tappable--opacity": "_tappable--opacity_10au7_18"
224
- }, se = 70, ce = 600;
225
- function le() {
226
- let [e, t] = l([]), n = c(0), r = c(/* @__PURE__ */ new Map()), a = c(/* @__PURE__ */ new Set());
495
+ }, ye = 70, be = 600;
496
+ function xe() {
497
+ let [e, t] = d([]), n = u(0), r = u(/* @__PURE__ */ new Map()), a = u(/* @__PURE__ */ new Set());
227
498
  o(() => {
228
499
  let e = r.current, t = a.current;
229
500
  return () => {
@@ -247,9 +518,9 @@ function le() {
247
518
  }]);
248
519
  let i = setTimeout(() => {
249
520
  a.current.delete(i), s(e);
250
- }, ce);
521
+ }, be);
251
522
  a.current.add(i);
252
- }, se);
523
+ }, ye);
253
524
  r.current.set(u, d);
254
525
  }, [s]),
255
526
  onPointerCancel: i((e) => {
@@ -261,11 +532,11 @@ function le() {
261
532
  }
262
533
  //#endregion
263
534
  //#region src/components/Tappable/Tappable.tsx
264
- function A({ ref: e, Component: t = "div", interactiveAnimation: n = "background", className: r, children: i, onPointerDown: a, onPointerCancel: o, ...s }) {
265
- let { platform: c } = O(), l = le(), u = !!s.disabled, d = !!s.readOnly, f = c === "base" && n === "background" && !d && !u && (t !== "div" && t !== "span" || s.onClick != null);
266
- return /* @__PURE__ */ m(t, {
535
+ function Se({ ref: e, Component: t = "div", interactiveAnimation: n = "background", className: r, children: i, onPointerDown: a, onPointerCancel: o, ...s }) {
536
+ let { platform: c } = I(), l = xe(), u = !!s.disabled, d = !!s.readOnly, f = c === "base" && n === "background" && !d && !u && (t !== "div" && t !== "span" || s.onClick != null);
537
+ return /* @__PURE__ */ g(t, {
267
538
  ref: e,
268
- className: h(k.tappable, c === "ios" && k["tappable--ios"], n === "opacity" && k["tappable--opacity"], r),
539
+ className: y(ve.tappable, c === "ios" && ve["tappable--ios"], n === "opacity" && ve["tappable--opacity"], r),
269
540
  "data-readonly": d || void 0,
270
541
  "data-disabled": u || void 0,
271
542
  "aria-disabled": u || void 0,
@@ -276,123 +547,123 @@ function A({ ref: e, Component: t = "div", interactiveAnimation: n = "background
276
547
  f && l.onPointerCancel(e), o?.(e);
277
548
  },
278
549
  ...s,
279
- children: [f && /* @__PURE__ */ p(oe, {
550
+ children: [f && /* @__PURE__ */ h(_e, {
280
551
  waves: l.waves,
281
552
  onWaveEnd: l.removeWave
282
553
  }), i]
283
554
  });
284
555
  }
285
- A.displayName = "Tappable";
286
- var ue = { text: "_text_5v0x0_1" };
556
+ Se.displayName = "Tappable";
557
+ var Ce = { text: "_text_5v0x0_1" };
287
558
  //#endregion
288
559
  //#region src/components/Text/Text.tsx
289
- function j({ ref: e, className: t, Component: n = "span", ...r }) {
290
- return /* @__PURE__ */ p(E, {
560
+ function L({ ref: e, className: t, Component: n = "span", ...r }) {
561
+ return /* @__PURE__ */ h(P, {
291
562
  ref: e,
292
563
  Component: n,
293
- className: h(ue.text, t),
564
+ className: y(Ce.text, t),
294
565
  ...r
295
566
  });
296
567
  }
297
- j.displayName = "Text";
568
+ L.displayName = "Text";
298
569
  //#endregion
299
570
  //#region src/shared/lib/telegram.ts
300
- function de() {
571
+ function we() {
301
572
  if (!(typeof window > "u")) return window.Telegram?.WebApp;
302
573
  }
303
574
  //#endregion
304
575
  //#region src/shared/lib/appearance.ts
305
- var fe = "(prefers-color-scheme: dark)";
306
- function pe() {
576
+ var Te = "(prefers-color-scheme: dark)";
577
+ function Ee() {
307
578
  return typeof window < "u" && typeof window.matchMedia == "function";
308
579
  }
309
- function me() {
310
- let e = de();
311
- return e ? e.colorScheme === "dark" ? "dark" : "light" : pe() && window.matchMedia(fe).matches ? "dark" : "light";
580
+ function De() {
581
+ let e = we();
582
+ return e ? e.colorScheme === "dark" ? "dark" : "light" : Ee() && window.matchMedia(Te).matches ? "dark" : "light";
312
583
  }
313
- function he(e) {
314
- let t = de();
584
+ function Oe(e) {
585
+ let t = we();
315
586
  if (t) return t.onEvent("themeChanged", e), () => t.offEvent("themeChanged", e);
316
- if (!pe()) return () => {};
317
- let n = window.matchMedia(fe);
587
+ if (!Ee()) return () => {};
588
+ let n = window.matchMedia(Te);
318
589
  return n.addEventListener("change", e), () => n.removeEventListener("change", e);
319
590
  }
320
591
  //#endregion
321
592
  //#region src/shared/lib/platform.ts
322
- var ge = /* @__PURE__ */ new Set(["ios", "macos"]);
323
- function _e() {
324
- let e = de();
325
- if (e) return ge.has(e.platform) ? "ios" : "base";
593
+ var ke = /* @__PURE__ */ new Set(["ios", "macos"]);
594
+ function Ae() {
595
+ let e = we();
596
+ if (e) return ke.has(e.platform) ? "ios" : "base";
326
597
  if (typeof navigator > "u") return "base";
327
598
  let t = navigator.userAgent, n = t.includes("Macintosh") && navigator.maxTouchPoints > 1;
328
599
  return /iphone|ipad|ipod/i.test(t) || n ? "ios" : "base";
329
600
  }
330
- var M = {
331
- wrapper: "_wrapper_zs68y_1",
332
- "wrapper--ios": "_wrapper--ios_zs68y_89",
333
- "wrapper--dark": "_wrapper--dark_zs68y_102"
334
- }, ve = () => "light";
335
- function ye({ ref: e, platform: t, appearance: n, portalContainer: r, className: a, children: o, ...c }) {
336
- let d = s(() => t ?? _e(), [t]), f = u(he, me, ve), m = n ?? f, [g, _] = l(null), v = i((t) => {
337
- _(t), typeof e == "function" ? e(t) : e && (e.current = t);
338
- }, [e]), y = s(() => ({
339
- platform: d,
340
- appearance: m,
341
- portalContainer: r ?? g
601
+ var je = {
602
+ wrapper: "_wrapper_qycbb_1",
603
+ "wrapper--ios": "_wrapper--ios_qycbb_95",
604
+ "wrapper--dark": "_wrapper--dark_qycbb_108"
605
+ }, Me = () => "light";
606
+ function Ne({ ref: e, platform: t, appearance: n, portalContainer: r, className: a, children: o, ...s }) {
607
+ let c = l(() => t ?? Ae(), [t]), u = f(Oe, De, Me), p = n ?? u, [m, g] = d(null), _ = i((t) => {
608
+ g(t), typeof e == "function" ? e(t) : e && (e.current = t);
609
+ }, [e]), v = l(() => ({
610
+ platform: c,
611
+ appearance: p,
612
+ portalContainer: r ?? m
342
613
  }), [
343
- d,
344
- m,
614
+ c,
615
+ p,
345
616
  r,
346
- g
617
+ m
347
618
  ]);
348
- return /* @__PURE__ */ p("div", {
349
- ref: v,
350
- className: h(M.wrapper, d === "ios" && M["wrapper--ios"], m === "dark" && M["wrapper--dark"], a),
351
- ...c,
352
- children: /* @__PURE__ */ p(ie.Provider, {
353
- value: y,
619
+ return /* @__PURE__ */ h("div", {
620
+ ref: _,
621
+ className: y(je.wrapper, c === "ios" && je["wrapper--ios"], p === "dark" && je["wrapper--dark"], a),
622
+ ...s,
623
+ children: /* @__PURE__ */ h(he.Provider, {
624
+ value: v,
354
625
  children: o
355
626
  })
356
627
  });
357
628
  }
358
- ye.displayName = "TguiProvider";
359
- var N = {
360
- button: "_button_1fqnm_1",
361
- stretched: "_stretched_1fqnm_13",
362
- before: "_before_1fqnm_33",
363
- after: "_after_1fqnm_34",
364
- content: "_content_1fqnm_40",
365
- label: "_label_1fqnm_49",
366
- loading: "_loading_1fqnm_60",
367
- spinner: "_spinner_1fqnm_70",
368
- "size-s": "_size-s_1fqnm_75",
369
- "size-m": "_size-m_1fqnm_83",
370
- "size-l": "_size-l_1fqnm_90",
371
- ios: "_ios_1fqnm_96",
372
- "mode-filled": "_mode-filled_1fqnm_104",
373
- "mode-bezeled": "_mode-bezeled_1fqnm_111",
374
- "mode-plain": "_mode-plain_1fqnm_118",
375
- "mode-gray": "_mode-gray_1fqnm_125",
376
- "mode-outline": "_mode-outline_1fqnm_132",
377
- "mode-white": "_mode-white_1fqnm_140"
378
- }, be = f(N.button, {
629
+ Ne.displayName = "TguiProvider";
630
+ var R = {
631
+ button: "_button_6vql2_1",
632
+ stretched: "_stretched_6vql2_13",
633
+ before: "_before_6vql2_34",
634
+ after: "_after_6vql2_35",
635
+ content: "_content_6vql2_41",
636
+ label: "_label_6vql2_50",
637
+ loading: "_loading_6vql2_61",
638
+ spinner: "_spinner_6vql2_71",
639
+ "size-s": "_size-s_6vql2_76",
640
+ "size-m": "_size-m_6vql2_84",
641
+ "size-l": "_size-l_6vql2_91",
642
+ ios: "_ios_6vql2_97",
643
+ "mode-filled": "_mode-filled_6vql2_105",
644
+ "mode-bezeled": "_mode-bezeled_6vql2_112",
645
+ "mode-plain": "_mode-plain_6vql2_119",
646
+ "mode-gray": "_mode-gray_6vql2_126",
647
+ "mode-outline": "_mode-outline_6vql2_133",
648
+ "mode-white": "_mode-white_6vql2_141"
649
+ }, Pe = _(R.button, {
379
650
  variants: {
380
651
  mode: {
381
- filled: N["mode-filled"],
382
- bezeled: N["mode-bezeled"],
383
- plain: N["mode-plain"],
384
- gray: N["mode-gray"],
385
- outline: N["mode-outline"],
386
- white: N["mode-white"]
652
+ filled: R["mode-filled"],
653
+ bezeled: R["mode-bezeled"],
654
+ plain: R["mode-plain"],
655
+ gray: R["mode-gray"],
656
+ outline: R["mode-outline"],
657
+ white: R["mode-white"]
387
658
  },
388
659
  size: {
389
- s: N["size-s"],
390
- m: N["size-m"],
391
- l: N["size-l"]
660
+ s: R["size-s"],
661
+ m: R["size-m"],
662
+ l: R["size-l"]
392
663
  },
393
- stretched: { true: N.stretched },
664
+ stretched: { true: R.stretched },
394
665
  platform: {
395
- ios: N.ios,
666
+ ios: R.ios,
396
667
  base: null
397
668
  }
398
669
  },
@@ -403,92 +674,92 @@ var N = {
403
674
  });
404
675
  //#endregion
405
676
  //#region src/components/Button/Button.tsx
406
- function xe({ size: e, children: t }) {
677
+ function Fe({ size: e, children: t }) {
407
678
  let n = {
408
679
  weight: "2",
409
- className: N.content
410
- }, r = /* @__PURE__ */ p("span", {
411
- className: N.label,
680
+ className: R.content
681
+ }, r = /* @__PURE__ */ h("span", {
682
+ className: R.label,
412
683
  children: t
413
684
  });
414
- return e === "l" ? /* @__PURE__ */ p(j, {
685
+ return e === "l" ? /* @__PURE__ */ h(L, {
415
686
  ...n,
416
687
  children: r
417
- }) : /* @__PURE__ */ p(D, {
688
+ }) : /* @__PURE__ */ h(F, {
418
689
  level: "2",
419
690
  ...n,
420
691
  children: r
421
692
  });
422
693
  }
423
- function Se({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m", stretched: i = !1, loading: a = !1, type: o, before: s, after: c, children: l, className: u, ...d }) {
424
- let { platform: f } = O();
425
- return /* @__PURE__ */ m(A, {
694
+ function Ie({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m", stretched: i = !1, loading: a = !1, type: o, before: s, after: c, children: l, className: u, ...d }) {
695
+ let { platform: f } = I();
696
+ return /* @__PURE__ */ g(Se, {
426
697
  ref: e,
427
698
  Component: t,
428
699
  type: t === "button" ? o ?? "button" : o,
429
700
  "aria-busy": a || void 0,
430
- className: h(be({
701
+ className: y(Pe({
431
702
  mode: n,
432
703
  size: r,
433
704
  stretched: i,
434
705
  platform: f
435
- }), a && N.loading, u),
706
+ }), a && R.loading, u),
436
707
  ...d,
437
708
  children: [
438
- a ? /* @__PURE__ */ p(C, {
709
+ a ? /* @__PURE__ */ h(ue, {
439
710
  size: "s",
440
- className: N.spinner,
711
+ className: R.spinner,
441
712
  "aria-hidden": !0
442
713
  }) : null,
443
- s ? /* @__PURE__ */ p("span", {
444
- className: N.before,
714
+ s ? /* @__PURE__ */ h("span", {
715
+ className: R.before,
445
716
  children: s
446
717
  }) : null,
447
- /* @__PURE__ */ p(xe, {
718
+ /* @__PURE__ */ h(Fe, {
448
719
  size: r,
449
720
  children: l
450
721
  }),
451
- c ? /* @__PURE__ */ p("span", {
452
- className: N.after,
722
+ c ? /* @__PURE__ */ h("span", {
723
+ className: R.after,
453
724
  children: c
454
725
  }) : null
455
726
  ]
456
727
  });
457
728
  }
458
- Se.displayName = "Button";
729
+ Ie.displayName = "Button";
459
730
  //#endregion
460
731
  //#region src/components/Caption/Caption.module.css
461
- var Ce = {
732
+ var Le = {
462
733
  "level-1": "_level-1_1fkm7_1",
463
734
  "level-2": "_level-2_1fkm7_6"
464
- }, we = f("", {
735
+ }, Re = _("", {
465
736
  variants: { level: {
466
- 1: Ce["level-1"],
467
- 2: Ce["level-2"]
737
+ 1: Le["level-1"],
738
+ 2: Le["level-2"]
468
739
  } },
469
740
  defaultVariants: { level: "1" }
470
741
  });
471
742
  //#endregion
472
743
  //#region src/components/Caption/Caption.tsx
473
- function P({ ref: e, level: t, Component: n = "span", className: r, ...i }) {
474
- return /* @__PURE__ */ p(E, {
744
+ function ze({ ref: e, level: t, Component: n = "span", className: r, ...i }) {
745
+ return /* @__PURE__ */ h(P, {
475
746
  ref: e,
476
747
  Component: n,
477
- className: h(we({ level: t }), r),
748
+ className: y(Re({ level: t }), r),
478
749
  ...i
479
750
  });
480
751
  }
481
- P.displayName = "Caption";
752
+ ze.displayName = "Caption";
482
753
  //#endregion
483
754
  //#region src/components/Card/Card.context.ts
484
- var Te = n({ type: "plain" }), F = {
755
+ var Be = n({ type: "plain" }), Ve = {
485
756
  card: "_card_1maup_1",
486
757
  cardAmbient: "_cardAmbient_1maup_17",
487
758
  cell: "_cell_1maup_21",
488
759
  cellAmbient: "_cellAmbient_1maup_26",
489
760
  cellHeader: "_cellHeader_1maup_43",
490
761
  cellSubtitle: "_cellSubtitle_1maup_47"
491
- }, I = {
762
+ }, z = {
492
763
  cell: "_cell_1w7p5_1",
493
764
  before: "_before_1w7p5_10",
494
765
  after: "_after_1w7p5_11",
@@ -503,200 +774,266 @@ var Te = n({ type: "plain" }), F = {
503
774
  hovered: "_hovered_1w7p5_56",
504
775
  ios: "_ios_1w7p5_60",
505
776
  interactive: "_interactive_1w7p5_67"
506
- }, Ee = f(I.cell, { variants: {
777
+ }, He = _(z.cell, { variants: {
507
778
  platform: {
508
- ios: I.ios,
779
+ ios: z.ios,
509
780
  base: null
510
781
  },
511
- hovered: { true: I.hovered },
512
- interactive: { true: I.interactive },
513
- multiline: { true: I.multiline }
782
+ hovered: { true: z.hovered },
783
+ interactive: { true: z.interactive },
784
+ multiline: { true: z.multiline }
514
785
  } });
515
786
  //#endregion
516
787
  //#region src/components/Cell/Cell.tsx
517
- function De({ ios: e, children: t }) {
518
- return e ? /* @__PURE__ */ p(j, {
519
- className: I.head,
788
+ function Ue({ ios: e, children: t }) {
789
+ return e ? /* @__PURE__ */ h(L, {
790
+ className: z.head,
520
791
  children: t
521
- }) : /* @__PURE__ */ p(D, {
792
+ }) : /* @__PURE__ */ h(F, {
522
793
  level: "1",
523
- className: I.head,
794
+ className: z.head,
524
795
  children: t
525
796
  });
526
797
  }
527
- function Oe({ ios: e, children: t }) {
528
- return e ? /* @__PURE__ */ p(P, {
529
- className: I.description,
798
+ function We({ ios: e, children: t }) {
799
+ return e ? /* @__PURE__ */ h(ze, {
800
+ className: z.description,
530
801
  children: t
531
- }) : /* @__PURE__ */ p(D, {
802
+ }) : /* @__PURE__ */ h(F, {
532
803
  level: "2",
533
- className: I.description,
804
+ className: z.description,
534
805
  children: t
535
806
  });
536
807
  }
537
- function ke({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, titleBadge: a, subtitle: o, description: s, before: c, after: l, hovered: u, multiline: d, className: f, ...g }) {
538
- let { platform: _ } = O(), v = _ === "ios", y = r != null || i != null || a != null, b = g.onClick != null || g.href != null || t === "a" || t === "button" || t === "label";
539
- return /* @__PURE__ */ m(A, {
808
+ function Ge({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, titleBadge: a, subtitle: o, description: s, before: c, after: l, hovered: u, multiline: d, className: f, ...p }) {
809
+ let { platform: m } = I(), _ = m === "ios", v = r != null || i != null || a != null, b = p.onClick != null || p.href != null || t === "a" || t === "button" || t === "label";
810
+ return /* @__PURE__ */ g(Se, {
540
811
  ref: e,
541
812
  Component: t,
542
- className: h(Ee({
543
- platform: _,
813
+ className: y(He({
814
+ platform: m,
544
815
  hovered: u,
545
816
  multiline: d,
546
817
  interactive: b
547
818
  }), f),
548
- ...g,
819
+ ...p,
549
820
  children: [
550
- c == null ? null : /* @__PURE__ */ p("div", {
551
- className: I.before,
821
+ c == null ? null : /* @__PURE__ */ h("div", {
822
+ className: z.before,
552
823
  children: c
553
824
  }),
554
- /* @__PURE__ */ m("div", {
555
- className: I.middle,
825
+ /* @__PURE__ */ g("div", {
826
+ className: z.middle,
556
827
  children: [
557
- n == null ? null : /* @__PURE__ */ p(D, {
828
+ n == null ? null : /* @__PURE__ */ h(F, {
558
829
  level: "2",
559
- className: I.subhead,
830
+ className: z.subhead,
560
831
  children: n
561
832
  }),
562
- y ? /* @__PURE__ */ m(De, {
563
- ios: v,
833
+ v ? /* @__PURE__ */ g(Ue, {
834
+ ios: _,
564
835
  children: [
565
- r == null ? null : /* @__PURE__ */ p("span", {
566
- className: I.title,
836
+ r == null ? null : /* @__PURE__ */ h("span", {
837
+ className: z.title,
567
838
  children: r
568
839
  }),
569
- i == null ? null : /* @__PURE__ */ p("span", {
570
- className: I.hint,
840
+ i == null ? null : /* @__PURE__ */ h("span", {
841
+ className: z.hint,
571
842
  children: i
572
843
  }),
573
844
  a
574
845
  ]
575
846
  }) : null,
576
- o == null ? null : /* @__PURE__ */ p(D, {
847
+ o == null ? null : /* @__PURE__ */ h(F, {
577
848
  level: "2",
578
- className: I.subtitle,
849
+ className: z.subtitle,
579
850
  children: o
580
851
  }),
581
- s == null ? null : /* @__PURE__ */ p(Oe, {
582
- ios: v,
852
+ s == null ? null : /* @__PURE__ */ h(We, {
853
+ ios: _,
583
854
  children: s
584
855
  })
585
856
  ]
586
857
  }),
587
- l == null ? null : /* @__PURE__ */ p("div", {
588
- className: I.after,
858
+ l == null ? null : /* @__PURE__ */ h("div", {
859
+ className: z.after,
589
860
  children: l
590
861
  })
591
862
  ]
592
863
  });
593
864
  }
594
- ke.displayName = "Cell";
865
+ Ge.displayName = "Cell";
595
866
  //#endregion
596
867
  //#region src/components/Card/CardCell.tsx
597
- function Ae({ ref: e, children: t, subtitle: n, className: r, ...i }) {
598
- let { type: o } = a(Te), s = o === "ambient";
599
- return /* @__PURE__ */ p(ke, {
868
+ function Ke({ ref: e, children: t, subtitle: n, className: r, ...i }) {
869
+ let { type: o } = a(Be), s = o === "ambient";
870
+ return /* @__PURE__ */ h(Ge, {
600
871
  ref: e,
601
- className: h(F.cell, s && F.cellAmbient, r),
602
- subtitle: n == null ? void 0 : /* @__PURE__ */ p("span", {
603
- className: F.cellSubtitle,
872
+ className: y(Ve.cell, s && Ve.cellAmbient, r),
873
+ subtitle: n == null ? void 0 : /* @__PURE__ */ h("span", {
874
+ className: Ve.cellSubtitle,
604
875
  children: n
605
876
  }),
606
877
  ...i,
607
- children: t == null ? null : /* @__PURE__ */ p("span", {
608
- className: F.cellHeader,
878
+ children: t == null ? null : /* @__PURE__ */ h("span", {
879
+ className: Ve.cellHeader,
609
880
  children: t
610
881
  })
611
882
  });
612
883
  }
613
- Ae.displayName = "CardCell";
884
+ Ke.displayName = "CardCell";
614
885
  //#endregion
615
886
  //#region src/components/Card/Card.tsx
616
- function je({ ref: e, type: t = "plain", className: n, children: r, ...i }) {
617
- let a = s(() => ({ type: t }), [t]);
618
- return /* @__PURE__ */ p(Te.Provider, {
887
+ function qe({ ref: e, type: t = "plain", className: n, children: r, ...i }) {
888
+ let a = l(() => ({ type: t }), [t]);
889
+ return /* @__PURE__ */ h(Be.Provider, {
619
890
  value: a,
620
- children: /* @__PURE__ */ p("article", {
891
+ children: /* @__PURE__ */ h("article", {
621
892
  ref: e,
622
- className: h(F.card, t === "ambient" && F.cardAmbient, n),
893
+ className: y(Ve.card, t === "ambient" && Ve.cardAmbient, n),
623
894
  ...i,
624
895
  children: r
625
896
  })
626
897
  });
627
898
  }
628
- je.displayName = "Card", je.Cell = Ae;
629
- var L = {
899
+ qe.displayName = "Card", qe.Cell = Ke;
900
+ var Je = {
630
901
  checkbox: "_checkbox_yjw6v_1",
631
902
  input: "_input_yjw6v_12",
632
903
  box: "_box_yjw6v_22"
633
904
  };
634
905
  //#endregion
635
906
  //#region src/components/Checkbox/Checkbox.tsx
636
- function Me({ ref: e, indeterminate: t = !1, disabled: n, className: r, style: i, ...a }) {
637
- let s = c(null);
907
+ function Ye({ ref: e, indeterminate: t = !1, disabled: n, className: r, style: i, ...a }) {
908
+ let s = u(null);
638
909
  return o(() => {
639
910
  s.current && (s.current.indeterminate = t);
640
- }, [t]), /* @__PURE__ */ m("span", {
641
- className: h(L.checkbox, r),
911
+ }, [t]), /* @__PURE__ */ g("span", {
912
+ className: y(Je.checkbox, r),
642
913
  style: i,
643
914
  "data-disabled": n || void 0,
644
- children: [/* @__PURE__ */ p("input", {
915
+ children: [/* @__PURE__ */ h("input", {
645
916
  ref: (t) => {
646
917
  s.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
647
918
  },
648
919
  type: "checkbox",
649
- className: L.input,
920
+ className: Je.input,
650
921
  disabled: n,
651
922
  ...a
652
- }), /* @__PURE__ */ p("span", {
653
- className: L.box,
923
+ }), /* @__PURE__ */ h("span", {
924
+ className: Je.box,
654
925
  "aria-hidden": !0
655
926
  })]
656
927
  });
657
928
  }
658
- Me.displayName = "Checkbox";
659
- var R = {
929
+ Ye.displayName = "Checkbox";
930
+ var B = {
931
+ chip: "_chip_13v10_1",
932
+ "mode-elevated": "_mode-elevated_13v10_16",
933
+ "mode-outline": "_mode-outline_13v10_21",
934
+ clickable: "_clickable_13v10_26",
935
+ before: "_before_13v10_37",
936
+ after: "_after_13v10_38",
937
+ label: "_label_13v10_49",
938
+ remove: "_remove_13v10_56"
939
+ }, Xe = _(B.chip, {
940
+ variants: {
941
+ mode: {
942
+ elevated: B["mode-elevated"],
943
+ outline: B["mode-outline"]
944
+ },
945
+ clickable: { true: B.clickable }
946
+ },
947
+ defaultVariants: { mode: "elevated" }
948
+ });
949
+ //#endregion
950
+ //#region src/components/Chip/Chip.tsx
951
+ function Ze({ ref: e, Component: t = "div", mode: n = "elevated", before: r, after: i, onClick: a, onRemove: o, removeLabel: s = "Remove", className: c, children: l, ...u }) {
952
+ return /* @__PURE__ */ g(t, {
953
+ ref: e,
954
+ className: y(Xe({
955
+ mode: n,
956
+ clickable: a != null
957
+ }), c),
958
+ onClick: a,
959
+ ...u,
960
+ children: [
961
+ r == null ? null : /* @__PURE__ */ h("span", {
962
+ className: B.before,
963
+ children: r
964
+ }),
965
+ /* @__PURE__ */ h("span", {
966
+ className: B.label,
967
+ children: l
968
+ }),
969
+ o == null ? i == null ? null : /* @__PURE__ */ h("span", {
970
+ className: B.after,
971
+ children: i
972
+ }) : /* @__PURE__ */ h("button", {
973
+ type: "button",
974
+ className: B.remove,
975
+ "aria-label": s,
976
+ onClick: (e) => {
977
+ e.stopPropagation(), o();
978
+ },
979
+ children: /* @__PURE__ */ h("svg", {
980
+ width: "12",
981
+ height: "12",
982
+ viewBox: "0 0 12 12",
983
+ "aria-hidden": !0,
984
+ children: /* @__PURE__ */ h("path", {
985
+ d: "M3 3l6 6M9 3l-6 6",
986
+ stroke: "currentColor",
987
+ strokeWidth: "1.5",
988
+ strokeLinecap: "round"
989
+ })
990
+ })
991
+ })
992
+ ]
993
+ });
994
+ }
995
+ Ze.displayName = "Chip";
996
+ var Qe = {
660
997
  root: "_root_hheo5_1",
661
998
  svg: "_svg_hheo5_6",
662
999
  track: "_track_hheo5_10",
663
1000
  indicator: "_indicator_hheo5_14"
664
- }, Ne = {
1001
+ }, $e = {
665
1002
  s: 20,
666
1003
  m: 28,
667
1004
  l: 36
668
- }, Pe = {
1005
+ }, et = {
669
1006
  s: 2,
670
1007
  m: 2.5,
671
1008
  l: 3
672
1009
  };
673
1010
  //#endregion
674
1011
  //#region src/components/CircularProgress/CircularProgress.tsx
675
- function Fe({ ref: e, value: t = 0, size: n = "m", className: r, ...i }) {
676
- let a = Math.max(0, Math.min(100, t)), o = Ne[n], s = Pe[n], c = (o - s) / 2, l = 2 * Math.PI * c, u = o / 2;
677
- return /* @__PURE__ */ p("span", {
1012
+ function tt({ ref: e, value: t = 0, size: n = "m", className: r, ...i }) {
1013
+ let a = Math.max(0, Math.min(100, t)), o = $e[n], s = et[n], c = (o - s) / 2, l = 2 * Math.PI * c, u = o / 2;
1014
+ return /* @__PURE__ */ h("span", {
678
1015
  ref: e,
679
1016
  role: "progressbar",
680
1017
  "aria-valuemin": 0,
681
1018
  "aria-valuemax": 100,
682
1019
  "aria-valuenow": Math.round(a),
683
- className: h(R.root, r),
1020
+ className: y(Qe.root, r),
684
1021
  ...i,
685
- children: /* @__PURE__ */ m("svg", {
686
- className: R.svg,
1022
+ children: /* @__PURE__ */ g("svg", {
1023
+ className: Qe.svg,
687
1024
  width: o,
688
1025
  height: o,
689
1026
  viewBox: `0 0 ${o} ${o}`,
690
1027
  "aria-hidden": !0,
691
- children: [/* @__PURE__ */ p("circle", {
692
- className: R.track,
1028
+ children: [/* @__PURE__ */ h("circle", {
1029
+ className: Qe.track,
693
1030
  cx: u,
694
1031
  cy: u,
695
1032
  r: c,
696
1033
  strokeWidth: s,
697
1034
  fill: "none"
698
- }), /* @__PURE__ */ p("circle", {
699
- className: R.indicator,
1035
+ }), /* @__PURE__ */ h("circle", {
1036
+ className: Qe.indicator,
700
1037
  cx: u,
701
1038
  cy: u,
702
1039
  r: c,
@@ -709,32 +1046,133 @@ function Fe({ ref: e, value: t = 0, size: n = "m", className: r, ...i }) {
709
1046
  })
710
1047
  });
711
1048
  }
712
- Fe.displayName = "CircularProgress";
713
- var Ie = { divider: "_divider_fq1ux_1" };
1049
+ tt.displayName = "CircularProgress";
1050
+ var nt = { divider: "_divider_fq1ux_1" };
714
1051
  //#endregion
715
1052
  //#region src/components/Divider/Divider.tsx
716
- function z({ ref: e, className: t, ...n }) {
717
- return /* @__PURE__ */ p("hr", {
1053
+ function rt({ ref: e, className: t, ...n }) {
1054
+ return /* @__PURE__ */ h("hr", {
718
1055
  ref: e,
719
- className: h(Ie.divider, t),
1056
+ className: y(nt.divider, t),
720
1057
  ...n
721
1058
  });
722
1059
  }
723
- z.displayName = "Divider";
724
- var Le = { headline: "_headline_17ihj_1" };
1060
+ rt.displayName = "Divider";
1061
+ var it = {
1062
+ fixedLayout: "_fixedLayout_1b5hq_1",
1063
+ top: "_top_1b5hq_9",
1064
+ bottom: "_bottom_1b5hq_14"
1065
+ };
1066
+ //#endregion
1067
+ //#region src/components/FixedLayout/FixedLayout.tsx
1068
+ function at({ ref: e, vertical: t = "bottom", className: n, ...r }) {
1069
+ return /* @__PURE__ */ h("div", {
1070
+ ref: e,
1071
+ className: y(it.fixedLayout, it[t], n),
1072
+ ...r
1073
+ });
1074
+ }
1075
+ at.displayName = "FixedLayout";
1076
+ var ot = { headline: "_headline_17ihj_1" };
725
1077
  //#endregion
726
1078
  //#region src/components/Headline/Headline.tsx
727
- function Re({ ref: e, weight: t = "2", className: n, Component: r = "h5", ...i }) {
728
- return /* @__PURE__ */ p(E, {
1079
+ function st({ ref: e, weight: t = "2", className: n, Component: r = "h5", ...i }) {
1080
+ return /* @__PURE__ */ h(P, {
729
1081
  ref: e,
730
1082
  weight: t,
731
1083
  Component: r,
732
- className: h(Le.headline, n),
1084
+ className: y(ot.headline, n),
733
1085
  ...i
734
1086
  });
735
1087
  }
736
- Re.displayName = "Headline";
737
- var B = {
1088
+ st.displayName = "Headline";
1089
+ var V = {
1090
+ root: "_root_ykq8r_1",
1091
+ edge: "_edge_ykq8r_9",
1092
+ visible: "_visible_ykq8r_25",
1093
+ "edge--start": "_edge--start_ykq8r_29",
1094
+ "edge--end": "_edge--end_ykq8r_34",
1095
+ scroller: "_scroller_ykq8r_39",
1096
+ snap: "_snap_ykq8r_72"
1097
+ }, ct = 4;
1098
+ function lt({ ref: e, snap: t = !1, fade: n = !0, className: r, children: a, ...s }) {
1099
+ let c = u(null), [l, f] = d({
1100
+ start: !1,
1101
+ end: !1
1102
+ }), p = u({
1103
+ down: !1,
1104
+ moved: !1,
1105
+ startX: 0,
1106
+ startScroll: 0
1107
+ }), _ = i(() => {
1108
+ let e = c.current;
1109
+ if (!e) return;
1110
+ let t = e.scrollLeft > 1, n = e.scrollLeft < e.scrollWidth - e.clientWidth - 1;
1111
+ f((e) => e.start === t && e.end === n ? e : {
1112
+ start: t,
1113
+ end: n
1114
+ });
1115
+ }, []);
1116
+ o(() => {
1117
+ let e = c.current;
1118
+ if (!e) return;
1119
+ _(), e.addEventListener("scroll", _, { passive: !0 });
1120
+ let t = typeof ResizeObserver < "u" ? new ResizeObserver(_) : null;
1121
+ return t?.observe(e), () => {
1122
+ e.removeEventListener("scroll", _), t?.disconnect();
1123
+ };
1124
+ }, [_]);
1125
+ let v = (e) => {
1126
+ if (e.pointerType !== "mouse" || e.button !== 0) return;
1127
+ let t = c.current;
1128
+ t && (p.current = {
1129
+ down: !0,
1130
+ moved: !1,
1131
+ startX: e.clientX,
1132
+ startScroll: t.scrollLeft
1133
+ });
1134
+ }, b = (e) => {
1135
+ let t = p.current, n = c.current;
1136
+ if (!t.down || !n) return;
1137
+ let r = e.clientX - t.startX;
1138
+ if (!t.moved) {
1139
+ if (Math.abs(r) < ct) return;
1140
+ t.moved = !0, n.setPointerCapture(e.pointerId), n.dataset.grabbing = "true", n.style.scrollBehavior = "auto";
1141
+ }
1142
+ e.preventDefault(), n.scrollLeft = t.startScroll - r;
1143
+ }, x = (e) => {
1144
+ let t = c.current;
1145
+ t && p.current.moved && (t.releasePointerCapture?.(e.pointerId), delete t.dataset.grabbing, t.style.scrollBehavior = ""), p.current.down = !1;
1146
+ };
1147
+ return /* @__PURE__ */ g("div", {
1148
+ ref: e,
1149
+ className: y(V.root, r),
1150
+ "data-start": n ? String(l.start) : void 0,
1151
+ "data-end": n ? String(l.end) : void 0,
1152
+ ...s,
1153
+ children: [n ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
1154
+ className: y(V.edge, V["edge--start"], l.start && V.visible),
1155
+ "aria-hidden": !0
1156
+ }), /* @__PURE__ */ h("span", {
1157
+ className: y(V.edge, V["edge--end"], l.end && V.visible),
1158
+ "aria-hidden": !0
1159
+ })] }) : null, /* @__PURE__ */ h("div", {
1160
+ ref: c,
1161
+ className: y(V.scroller, t && V.snap),
1162
+ onPointerDown: v,
1163
+ onPointerMove: b,
1164
+ onPointerUp: x,
1165
+ onPointerCancel: x,
1166
+ onDragStart: (e) => e.preventDefault(),
1167
+ onClickCapture: (e) => {
1168
+ p.current.moved && (e.stopPropagation(), p.current.moved = !1);
1169
+ },
1170
+ children: a
1171
+ })]
1172
+ });
1173
+ }
1174
+ lt.displayName = "HorizontalScroll";
1175
+ var H = {
738
1176
  iconButton: "_iconButton_1ifh1_1",
739
1177
  circle: "_circle_1ifh1_15",
740
1178
  s: "_s_1ifh1_19",
@@ -746,22 +1184,22 @@ var B = {
746
1184
  "mode-plain": "_mode-plain_1ifh1_72",
747
1185
  "mode-gray": "_mode-gray_1ifh1_76",
748
1186
  "mode-outline": "_mode-outline_1ifh1_81"
749
- }, ze = f(B.iconButton, {
1187
+ }, ut = _(H.iconButton, {
750
1188
  variants: {
751
1189
  mode: {
752
- bezeled: B["mode-bezeled"],
753
- plain: B["mode-plain"],
754
- gray: B["mode-gray"],
755
- outline: B["mode-outline"]
1190
+ bezeled: H["mode-bezeled"],
1191
+ plain: H["mode-plain"],
1192
+ gray: H["mode-gray"],
1193
+ outline: H["mode-outline"]
756
1194
  },
757
1195
  size: {
758
- s: B.s,
759
- m: B.m,
760
- l: B.l
1196
+ s: H.s,
1197
+ m: H.m,
1198
+ l: H.l
761
1199
  },
762
- circle: { true: B.circle },
1200
+ circle: { true: H.circle },
763
1201
  platform: {
764
- ios: B.ios,
1202
+ ios: H.ios,
765
1203
  base: null
766
1204
  }
767
1205
  },
@@ -772,182 +1210,509 @@ var B = {
772
1210
  });
773
1211
  //#endregion
774
1212
  //#region src/components/IconButton/IconButton.tsx
775
- function Be({ ref: e, Component: t = "button", mode: n = "plain", size: r = "m", circle: i = !1, type: a, className: o, children: s, ...c }) {
776
- let { platform: l } = O();
777
- return /* @__PURE__ */ p(A, {
1213
+ function dt({ ref: e, Component: t = "button", mode: n = "plain", size: r = "m", circle: i = !1, type: a, className: o, children: s, ...c }) {
1214
+ let { platform: l } = I();
1215
+ return /* @__PURE__ */ h(Se, {
778
1216
  ref: e,
779
1217
  Component: t,
780
1218
  type: t === "button" ? a ?? "button" : a,
781
- className: h(ze({
1219
+ className: y(ut({
782
1220
  mode: n,
783
1221
  size: r,
784
1222
  circle: i,
785
1223
  platform: l
786
1224
  }), o),
787
1225
  ...c,
788
- children: /* @__PURE__ */ p("span", {
789
- className: B.icon,
1226
+ children: /* @__PURE__ */ h("span", {
1227
+ className: H.icon,
790
1228
  children: s
791
1229
  })
792
1230
  });
793
1231
  }
794
- Be.displayName = "IconButton";
795
- var V = {
796
- base: "_base_1k0ze_1",
797
- body: "_body_1k0ze_7",
798
- ios: "_ios_1k0ze_23",
799
- "align-start": "_align-start_1k0ze_29",
800
- before: "_before_1k0ze_33",
801
- after: "_after_1k0ze_34",
802
- header: "_header_1k0ze_39",
803
- focused: "_focused_1k0ze_53",
804
- error: "_error_1k0ze_61",
805
- disabled: "_disabled_1k0ze_73"
1232
+ dt.displayName = "IconButton";
1233
+ var ft = {
1234
+ frame: "_frame_1q5rs_1",
1235
+ bordered: "_bordered_1q5rs_10",
1236
+ img: "_img_1q5rs_14",
1237
+ loading: "_loading_1q5rs_21",
1238
+ placeholder: "_placeholder_1q5rs_25",
1239
+ fallback: "_fallback_1q5rs_26",
1240
+ "tgui-image-shimmer": "_tgui-image-shimmer_1q5rs_1"
1241
+ }, pt = /* @__PURE__ */ h("svg", {
1242
+ viewBox: "0 0 24 24",
1243
+ fill: "none",
1244
+ "aria-hidden": !0,
1245
+ children: /* @__PURE__ */ h("path", {
1246
+ d: "M3 5h18v14H3zM3 15l5-5 4 4 3-3 6 6",
1247
+ stroke: "currentColor",
1248
+ strokeWidth: "1.6",
1249
+ strokeLinejoin: "round"
1250
+ })
1251
+ });
1252
+ function mt({ ref: e, size: t, width: n, height: r, aspectRatio: i, fit: a = "cover", radius: o, bordered: s = !1, fallback: c = pt, src: l, alt: u = "", className: f, style: p, onLoad: m, onError: _, ...v }) {
1253
+ let [b, x] = d(null), [S, C] = d(!1), w = l != null && l === b, T = {
1254
+ ...p,
1255
+ width: t ?? n,
1256
+ height: t ?? r,
1257
+ aspectRatio: i,
1258
+ borderRadius: o === "full" ? "50%" : o,
1259
+ "--tgui--image--fit": a
1260
+ };
1261
+ return /* @__PURE__ */ g("div", {
1262
+ className: y(ft.frame, s && ft.bordered, !S && ft.loading, f),
1263
+ style: T,
1264
+ children: [
1265
+ l != null && !w ? /* @__PURE__ */ h("img", {
1266
+ ref: e,
1267
+ className: ft.img,
1268
+ src: l,
1269
+ alt: u,
1270
+ draggable: !1,
1271
+ onLoad: (e) => {
1272
+ C(!0), m?.(e);
1273
+ },
1274
+ onError: (e) => {
1275
+ x(l), _?.(e);
1276
+ },
1277
+ ...v
1278
+ }) : null,
1279
+ !S && !w ? /* @__PURE__ */ h("div", {
1280
+ className: ft.placeholder,
1281
+ "aria-hidden": !0
1282
+ }) : null,
1283
+ w ? /* @__PURE__ */ h("div", {
1284
+ className: ft.fallback,
1285
+ "aria-hidden": !0,
1286
+ children: c
1287
+ }) : null
1288
+ ]
1289
+ });
1290
+ }
1291
+ mt.displayName = "Image";
1292
+ //#endregion
1293
+ //#region src/components/InlineButtons/context.ts
1294
+ var ht = n({ mode: "bezeled" });
1295
+ ht.displayName = "InlineButtonsContext";
1296
+ var gt = {
1297
+ group: "_group_ezipj_1",
1298
+ item: "_item_ezipj_15",
1299
+ "mode-bezeled": "_mode-bezeled_ezipj_35",
1300
+ "mode-plain": "_mode-plain_ezipj_39",
1301
+ "mode-gray": "_mode-gray_ezipj_43",
1302
+ icon: "_icon_ezipj_48",
1303
+ label: "_label_ezipj_62"
1304
+ }, _t = _(gt.item, {
1305
+ variants: { mode: {
1306
+ bezeled: gt["mode-bezeled"],
1307
+ plain: gt["mode-plain"],
1308
+ gray: gt["mode-gray"]
1309
+ } },
1310
+ defaultVariants: { mode: "bezeled" }
1311
+ });
1312
+ //#endregion
1313
+ //#region src/components/InlineButtons/InlineButtonsItem.tsx
1314
+ function vt({ ref: e, icon: t, children: n, className: r, ...i }) {
1315
+ let { mode: o } = a(ht);
1316
+ return /* @__PURE__ */ g(Se, {
1317
+ ref: e,
1318
+ Component: "button",
1319
+ type: "button",
1320
+ interactiveAnimation: "opacity",
1321
+ className: y(_t({ mode: o }), r),
1322
+ ...i,
1323
+ children: [/* @__PURE__ */ h("span", {
1324
+ className: gt.icon,
1325
+ children: t
1326
+ }), /* @__PURE__ */ h(ze, {
1327
+ className: gt.label,
1328
+ level: "2",
1329
+ weight: "2",
1330
+ children: n
1331
+ })]
1332
+ });
1333
+ }
1334
+ vt.displayName = "InlineButtonsItem";
1335
+ //#endregion
1336
+ //#region src/components/InlineButtons/InlineButtons.tsx
1337
+ function yt({ ref: e, mode: t = "bezeled", className: n, children: r, ...i }) {
1338
+ return /* @__PURE__ */ h(ht.Provider, {
1339
+ value: { mode: t },
1340
+ children: /* @__PURE__ */ h("div", {
1341
+ ref: e,
1342
+ role: "group",
1343
+ className: y(gt.group, n),
1344
+ ...i,
1345
+ children: r
1346
+ })
1347
+ });
1348
+ }
1349
+ yt.displayName = "InlineButtons", yt.Item = vt;
1350
+ var U = {
1351
+ base: "_base_1jyfl_1",
1352
+ body: "_body_1jyfl_7",
1353
+ ios: "_ios_1jyfl_23",
1354
+ "align-start": "_align-start_1jyfl_29",
1355
+ before: "_before_1jyfl_33",
1356
+ after: "_after_1jyfl_34",
1357
+ header: "_header_1jyfl_39",
1358
+ focused: "_focused_1jyfl_53",
1359
+ error: "_error_1jyfl_61",
1360
+ disabled: "_disabled_1jyfl_73"
806
1361
  };
807
1362
  //#endregion
808
1363
  //#region src/components/FormField/FormField.tsx
809
- function H({ ref: e, ios: t = !1, status: n = "default", disabled: r = !1, alignStart: i = !1, header: a, before: o, after: s, className: c, children: l }) {
810
- return /* @__PURE__ */ m("div", {
1364
+ function bt({ ref: e, ios: t = !1, status: n = "default", disabled: r = !1, alignStart: i = !1, header: a, before: o, after: s, className: c, children: l }) {
1365
+ return /* @__PURE__ */ g("div", {
811
1366
  ref: e,
812
- className: h(t ? V.ios : V.base, n === "error" && V.error, n === "focused" && V.focused, r && V.disabled, i && V["align-start"], c),
1367
+ className: y(t ? U.ios : U.base, n === "error" && U.error, n === "focused" && U.focused, r && U.disabled, i && U["align-start"], c),
813
1368
  "aria-disabled": r || void 0,
814
- children: [/* @__PURE__ */ m("label", {
815
- className: V.body,
1369
+ children: [/* @__PURE__ */ g("label", {
1370
+ className: U.body,
816
1371
  children: [
817
- o == null ? null : /* @__PURE__ */ p("span", {
818
- className: V.before,
1372
+ o == null ? null : /* @__PURE__ */ h("span", {
1373
+ className: U.before,
819
1374
  children: o
820
1375
  }),
821
1376
  l,
822
- s == null ? null : /* @__PURE__ */ p("span", {
823
- className: V.after,
1377
+ s == null ? null : /* @__PURE__ */ h("span", {
1378
+ className: U.after,
824
1379
  children: s
825
1380
  })
826
1381
  ]
827
- }), a != null && !t ? /* @__PURE__ */ p("span", {
828
- className: V.header,
1382
+ }), a != null && !t ? /* @__PURE__ */ h("span", {
1383
+ className: U.header,
829
1384
  children: a
830
1385
  }) : null]
831
1386
  });
832
1387
  }
833
- H.displayName = "FormField";
834
- var Ve = { field: "_field_11zrf_1" };
1388
+ bt.displayName = "FormField";
1389
+ var xt = { field: "_field_11zrf_1" };
835
1390
  //#endregion
836
1391
  //#region src/components/Input/Input.tsx
837
- function He({ ref: e, type: t = "text", header: n, before: r, after: i, status: a, disabled: o, className: s, onFocus: c, onBlur: u, ...d }) {
838
- let { platform: f } = O(), m = f === "ios", [h, g] = l(!1);
839
- return /* @__PURE__ */ p(H, {
840
- ios: m,
841
- status: a ?? (h ? "focused" : "default"),
1392
+ function St({ ref: e, type: t = "text", header: n, before: r, after: i, status: a, disabled: o, className: s, onFocus: c, onBlur: l, ...u }) {
1393
+ let { platform: f } = I(), p = f === "ios", [m, g] = d(!1);
1394
+ return /* @__PURE__ */ h(bt, {
1395
+ ios: p,
1396
+ status: a ?? (m ? "focused" : "default"),
842
1397
  disabled: o,
843
1398
  header: n,
844
1399
  before: r,
845
1400
  after: i,
846
1401
  className: s,
847
- children: /* @__PURE__ */ p(m ? j : D, {
1402
+ children: /* @__PURE__ */ h(p ? L : F, {
848
1403
  ref: e,
849
1404
  Component: "input",
850
- className: Ve.field,
1405
+ className: xt.field,
851
1406
  type: t,
852
1407
  disabled: o,
853
1408
  onFocus: (e) => {
854
1409
  o || g(!0), c?.(e);
855
1410
  },
856
1411
  onBlur: (e) => {
857
- g(!1), u?.(e);
1412
+ g(!1), l?.(e);
858
1413
  },
859
- ...d
1414
+ ...u
860
1415
  })
861
1416
  });
862
1417
  }
863
- He.displayName = "Input";
1418
+ St.displayName = "Input";
864
1419
  //#endregion
865
1420
  //#region src/components/LargeTitle/LargeTitle.module.css
866
- var Ue = { "large-title": "_large-title_15hug_1" };
1421
+ var Ct = { "large-title": "_large-title_15hug_1" };
867
1422
  //#endregion
868
1423
  //#region src/components/LargeTitle/LargeTitle.tsx
869
- function We({ ref: e, weight: t = "1", className: n, Component: r = "h1", ...i }) {
870
- return /* @__PURE__ */ p(E, {
1424
+ function wt({ ref: e, weight: t = "1", className: n, Component: r = "h1", ...i }) {
1425
+ return /* @__PURE__ */ h(P, {
871
1426
  ref: e,
872
1427
  weight: t,
873
1428
  Component: r,
874
- className: h(Ue["large-title"], n),
1429
+ className: y(Ct["large-title"], n),
875
1430
  ...i
876
1431
  });
877
1432
  }
878
- We.displayName = "LargeTitle";
879
- var Ge = {
1433
+ wt.displayName = "LargeTitle";
1434
+ var Tt = {
1435
+ link: "_link_1ylyy_1",
1436
+ icon: "_icon_1ylyy_18"
1437
+ };
1438
+ //#endregion
1439
+ //#region src/components/Link/Link.tsx
1440
+ function Et({ ref: e, target: t, rel: n, className: r, children: i, ...a }) {
1441
+ let o = t === "_blank";
1442
+ return /* @__PURE__ */ g("a", {
1443
+ ref: e,
1444
+ target: t,
1445
+ rel: o ? n ?? "noopener noreferrer" : n,
1446
+ className: y(Tt.link, r),
1447
+ ...a,
1448
+ children: [i, o ? /* @__PURE__ */ h("svg", {
1449
+ className: Tt.icon,
1450
+ viewBox: "0 0 16 16",
1451
+ fill: "none",
1452
+ "aria-hidden": !0,
1453
+ children: /* @__PURE__ */ h("path", {
1454
+ d: "M6 3h7v7M13 3l-8 8",
1455
+ stroke: "currentColor",
1456
+ strokeWidth: "1.6",
1457
+ strokeLinecap: "round",
1458
+ strokeLinejoin: "round"
1459
+ })
1460
+ }) : null]
1461
+ });
1462
+ }
1463
+ Et.displayName = "Link";
1464
+ var Dt = {
880
1465
  list: "_list_1rhgw_1",
881
1466
  ios: "_ios_1rhgw_5"
882
1467
  };
883
1468
  //#endregion
884
1469
  //#region src/components/List/List.tsx
885
- function Ke({ ref: e, Component: t = "div", className: n, children: r, ...i }) {
886
- let { platform: a } = O();
887
- return /* @__PURE__ */ p(t, {
1470
+ function Ot({ ref: e, Component: t = "div", className: n, children: r, ...i }) {
1471
+ let { platform: a } = I();
1472
+ return /* @__PURE__ */ h(t, {
888
1473
  ref: e,
889
- className: h(Ge.list, a === "ios" && Ge.ios, n),
1474
+ className: y(Dt.list, a === "ios" && Dt.ios, n),
890
1475
  ...i,
891
1476
  children: r
892
1477
  });
893
1478
  }
894
- Ke.displayName = "List";
1479
+ Ot.displayName = "List";
1480
+ var W = {
1481
+ nav: "_nav_4ys7l_1",
1482
+ list: "_list_4ys7l_5",
1483
+ page: "_page_4ys7l_14",
1484
+ "page--active": "_page--active_4ys7l_27",
1485
+ dots: "_dots_4ys7l_44",
1486
+ dotList: "_dotList_4ys7l_53",
1487
+ dot: "_dot_4ys7l_44",
1488
+ dotGap: "_dotGap_4ys7l_87"
1489
+ }, kt = "dots";
1490
+ function At(e, t) {
1491
+ return Array.from({ length: t - e + 1 }, (t, n) => e + n);
1492
+ }
1493
+ function jt(e, t, n) {
1494
+ if (n * 2 + 5 >= t) return At(1, t);
1495
+ let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
1496
+ return !a && o ? [
1497
+ ...At(1, 3 + n * 2),
1498
+ kt,
1499
+ t
1500
+ ] : a && !o ? [
1501
+ 1,
1502
+ kt,
1503
+ ...At(t - (3 + n * 2) + 1, t)
1504
+ ] : [
1505
+ 1,
1506
+ kt,
1507
+ ...At(r, i),
1508
+ kt,
1509
+ t
1510
+ ];
1511
+ }
1512
+ //#endregion
1513
+ //#region src/components/Pagination/CompactPagination.tsx
1514
+ function Mt({ ref: e, page: t, count: n, onChange: r, siblingCount: i = 1, className: a, ...o }) {
1515
+ let s = jt(t, n, i);
1516
+ return /* @__PURE__ */ h("nav", {
1517
+ ref: e,
1518
+ "aria-label": "Pagination",
1519
+ className: y(W.nav, a),
1520
+ ...o,
1521
+ children: /* @__PURE__ */ h("ul", {
1522
+ className: W.dotList,
1523
+ children: s.map((e, n) => e === "dots" ? /* @__PURE__ */ h("li", {
1524
+ className: W.dotGap,
1525
+ "aria-hidden": !0
1526
+ }, `dots-${n}`) : /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("button", {
1527
+ type: "button",
1528
+ className: W.dot,
1529
+ "data-active": e === t || void 0,
1530
+ "aria-label": `Page ${e}`,
1531
+ "aria-current": e === t ? "page" : void 0,
1532
+ onClick: () => r(e)
1533
+ }) }, e))
1534
+ })
1535
+ });
1536
+ }
1537
+ Mt.displayName = "CompactPagination";
1538
+ //#endregion
1539
+ //#region src/components/Pagination/Pagination.tsx
1540
+ var Nt = ({ direction: e }) => /* @__PURE__ */ h("svg", {
1541
+ width: "16",
1542
+ height: "16",
1543
+ viewBox: "0 0 18 18",
1544
+ fill: "none",
1545
+ "aria-hidden": !0,
1546
+ children: /* @__PURE__ */ h("path", {
1547
+ d: e === "prev" ? "M11.25 4.5L6.75 9l4.5 4.5" : "M6.75 4.5L11.25 9l-4.5 4.5",
1548
+ stroke: "currentColor",
1549
+ strokeWidth: "1.8",
1550
+ strokeLinecap: "round",
1551
+ strokeLinejoin: "round"
1552
+ })
1553
+ });
1554
+ function Pt({ ref: e, page: t, count: n, onChange: r, siblingCount: i = 1, className: a, ...o }) {
1555
+ let s = jt(t, n, i);
1556
+ return /* @__PURE__ */ h("nav", {
1557
+ ref: e,
1558
+ "aria-label": "Pagination",
1559
+ className: y(W.nav, a),
1560
+ ...o,
1561
+ children: /* @__PURE__ */ g("ul", {
1562
+ className: W.list,
1563
+ children: [
1564
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(dt, {
1565
+ mode: "gray",
1566
+ size: "s",
1567
+ "aria-label": "Previous page",
1568
+ disabled: t <= 1,
1569
+ onClick: () => r(t - 1),
1570
+ children: /* @__PURE__ */ h(Nt, { direction: "prev" })
1571
+ }) }),
1572
+ s.map((e, n) => e === "dots" ? /* @__PURE__ */ h("li", {
1573
+ className: W.dots,
1574
+ "aria-hidden": !0,
1575
+ children: "…"
1576
+ }, `dots-${n}`) : /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("button", {
1577
+ type: "button",
1578
+ className: y(W.page, e === t && W["page--active"]),
1579
+ "aria-current": e === t ? "page" : void 0,
1580
+ onClick: () => r(e),
1581
+ children: e
1582
+ }) }, e)),
1583
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(dt, {
1584
+ mode: "gray",
1585
+ size: "s",
1586
+ "aria-label": "Next page",
1587
+ disabled: t >= n,
1588
+ onClick: () => r(t + 1),
1589
+ children: /* @__PURE__ */ h(Nt, { direction: "next" })
1590
+ }) })
1591
+ ]
1592
+ })
1593
+ });
1594
+ }
1595
+ Pt.displayName = "Pagination";
1596
+ var Ft = {
1597
+ pinInput: "_pinInput_fn21m_1",
1598
+ cell: "_cell_fn21m_6"
1599
+ }, It = {
1600
+ numeric: /[0-9]/,
1601
+ alphanumeric: /[a-z0-9]/i
1602
+ };
1603
+ function Lt({ ref: e, length: t = 4, value: n, defaultValue: r = "", onChange: i, onComplete: a, type: o = "numeric", mask: s = !1, disabled: c = !1, invalid: f = !1, name: p, "aria-label": m = "Verification code", className: g }) {
1604
+ let [_, v] = d(r.slice(0, t)), b = n ?? _, x = l(() => {
1605
+ let e = b.split("").slice(0, t);
1606
+ for (; e.length < t;) e.push("");
1607
+ return e;
1608
+ }, [b, t]), S = u([]), C = It[o], w = (e) => {
1609
+ let r = e.join("");
1610
+ n ?? v(r), i?.(r), r.length === t && e.every(Boolean) && a?.(r);
1611
+ }, T = (e) => {
1612
+ let n = Math.max(0, Math.min(t - 1, e));
1613
+ S.current[n]?.focus(), S.current[n]?.select();
1614
+ }, E = (e, t) => {
1615
+ let n = t.split("").reverse().find((e) => C.test(e));
1616
+ if (!n) return;
1617
+ let r = [...x];
1618
+ r[e] = n, w(r), T(e + 1);
1619
+ }, D = (e, t) => {
1620
+ if (t.key === "Backspace") {
1621
+ t.preventDefault();
1622
+ let n = [...x];
1623
+ n[e] ? (n[e] = "", w(n)) : e > 0 && (n[e - 1] = "", w(n), T(e - 1));
1624
+ } else t.key === "ArrowLeft" ? (t.preventDefault(), T(e - 1)) : t.key === "ArrowRight" && (t.preventDefault(), T(e + 1));
1625
+ }, O = (e, n) => {
1626
+ n.preventDefault();
1627
+ let r = n.clipboardData.getData("text").split("").filter((e) => C.test(e));
1628
+ if (r.length === 0) return;
1629
+ let i = [...x];
1630
+ for (let n = 0; n < r.length && e + n < t; n += 1) i[e + n] = r[n];
1631
+ w(i), T(e + r.length);
1632
+ };
1633
+ return /* @__PURE__ */ h("div", {
1634
+ ref: e,
1635
+ className: y(Ft.pinInput, g),
1636
+ role: "group",
1637
+ "aria-label": m,
1638
+ "data-invalid": f || void 0,
1639
+ children: x.map((e, t) => /* @__PURE__ */ h("input", {
1640
+ ref: (e) => {
1641
+ S.current[t] = e;
1642
+ },
1643
+ className: Ft.cell,
1644
+ type: s ? "password" : "text",
1645
+ inputMode: o === "numeric" ? "numeric" : "text",
1646
+ autoComplete: t === 0 ? "one-time-code" : "off",
1647
+ name: p ? `${p}-${t}` : void 0,
1648
+ "aria-label": `${m}, digit ${t + 1}`,
1649
+ maxLength: 1,
1650
+ value: e,
1651
+ disabled: c,
1652
+ onChange: (e) => E(t, e.target.value),
1653
+ onKeyDown: (e) => D(t, e),
1654
+ onPaste: (e) => O(t, e),
1655
+ onFocus: (e) => e.target.select()
1656
+ }, t))
1657
+ });
1658
+ }
1659
+ Lt.displayName = "PinInput";
895
1660
  //#endregion
896
1661
  //#region src/components/Title/Title.module.css
897
- var U = {
1662
+ var Rt = {
898
1663
  "level-1": "_level-1_rosk9_1",
899
1664
  "level-2": "_level-2_rosk9_6",
900
1665
  "level-3": "_level-3_rosk9_11"
901
- }, qe = {
1666
+ }, zt = {
902
1667
  1: {
903
1668
  tag: "h2",
904
- className: U["level-1"]
1669
+ className: Rt["level-1"]
905
1670
  },
906
1671
  2: {
907
1672
  tag: "h3",
908
- className: U["level-2"]
1673
+ className: Rt["level-2"]
909
1674
  },
910
1675
  3: {
911
1676
  tag: "h4",
912
- className: U["level-3"]
1677
+ className: Rt["level-3"]
913
1678
  }
914
1679
  };
915
1680
  //#endregion
916
1681
  //#region src/components/Title/Title.tsx
917
- function W({ ref: e, level: t = "2", Component: n, className: r, ...i }) {
918
- let { tag: a, className: o } = qe[t];
919
- return /* @__PURE__ */ p(E, {
1682
+ function Bt({ ref: e, level: t = "2", Component: n, className: r, ...i }) {
1683
+ let { tag: a, className: o } = zt[t];
1684
+ return /* @__PURE__ */ h(P, {
920
1685
  ref: e,
921
1686
  Component: n ?? a,
922
- className: h(o, r),
1687
+ className: y(o, r),
923
1688
  ...i
924
1689
  });
925
1690
  }
926
- W.displayName = "Title";
927
- var G = {
1691
+ Bt.displayName = "Title";
1692
+ var Vt = {
928
1693
  placeholder: "_placeholder_4t5fq_1",
929
1694
  fields: "_fields_4t5fq_13",
930
1695
  description: "_description_4t5fq_19"
931
1696
  };
932
1697
  //#endregion
933
1698
  //#region src/components/Placeholder/Placeholder.tsx
934
- function Je({ ref: e, children: t, header: n, description: r, action: i, className: a, ...o }) {
935
- return /* @__PURE__ */ m("section", {
1699
+ function Ht({ ref: e, children: t, header: n, description: r, action: i, className: a, ...o }) {
1700
+ return /* @__PURE__ */ g("section", {
936
1701
  ref: e,
937
- className: h(G.placeholder, a),
1702
+ className: y(Vt.placeholder, a),
938
1703
  ...o,
939
1704
  children: [
940
1705
  t,
941
- n != null || r != null ? /* @__PURE__ */ m("dl", {
942
- className: G.fields,
943
- children: [n == null ? null : /* @__PURE__ */ p(W, {
1706
+ n != null || r != null ? /* @__PURE__ */ g("dl", {
1707
+ className: Vt.fields,
1708
+ children: [n == null ? null : /* @__PURE__ */ h(Bt, {
944
1709
  Component: "dt",
945
1710
  level: "3",
946
1711
  weight: "2",
947
1712
  children: n
948
- }), r == null ? null : /* @__PURE__ */ p(j, {
1713
+ }), r == null ? null : /* @__PURE__ */ h(L, {
949
1714
  Component: "dd",
950
- className: G.description,
1715
+ className: Vt.description,
951
1716
  children: r
952
1717
  })]
953
1718
  }) : null,
@@ -955,56 +1720,217 @@ function Je({ ref: e, children: t, header: n, description: r, action: i, classNa
955
1720
  ]
956
1721
  });
957
1722
  }
958
- Je.displayName = "Placeholder";
959
- var Ye = {
1723
+ Ht.displayName = "Placeholder";
1724
+ //#endregion
1725
+ //#region src/components/Portal/Portal.tsx
1726
+ function Ut({ children: e, container: t }) {
1727
+ let { portalContainer: n } = I(), r = t ?? n;
1728
+ return r ? v(e, r) : null;
1729
+ }
1730
+ Ut.displayName = "Portal";
1731
+ var Wt = {
960
1732
  track: "_track_5w1vs_1",
961
1733
  bar: "_bar_5w1vs_9"
962
1734
  };
963
1735
  //#endregion
964
1736
  //#region src/components/Progress/Progress.tsx
965
- function Xe({ ref: e, value: t = 0, className: n, ...r }) {
1737
+ function Gt({ ref: e, value: t = 0, className: n, ...r }) {
966
1738
  let i = Math.max(0, Math.min(100, t));
967
- return /* @__PURE__ */ p("div", {
1739
+ return /* @__PURE__ */ h("div", {
968
1740
  ref: e,
969
1741
  role: "progressbar",
970
1742
  "aria-valuemin": 0,
971
1743
  "aria-valuemax": 100,
972
1744
  "aria-valuenow": Math.round(i),
973
- className: h(Ye.track, n),
1745
+ className: y(Wt.track, n),
974
1746
  ...r,
975
- children: /* @__PURE__ */ p("div", {
976
- className: Ye.bar,
1747
+ children: /* @__PURE__ */ h("div", {
1748
+ className: Wt.bar,
977
1749
  style: { width: `${i}%` }
978
1750
  })
979
1751
  });
980
1752
  }
981
- Xe.displayName = "Progress";
982
- var K = {
1753
+ Gt.displayName = "Progress";
1754
+ var Kt = {
983
1755
  radio: "_radio_czv9z_1",
984
1756
  input: "_input_czv9z_12",
985
1757
  dot: "_dot_czv9z_22"
986
1758
  };
987
1759
  //#endregion
988
1760
  //#region src/components/Radio/Radio.tsx
989
- function Ze({ ref: e, disabled: t, className: n, style: r, ...i }) {
990
- return /* @__PURE__ */ m("span", {
991
- className: h(K.radio, n),
1761
+ function qt({ ref: e, disabled: t, className: n, style: r, ...i }) {
1762
+ return /* @__PURE__ */ g("span", {
1763
+ className: y(Kt.radio, n),
992
1764
  style: r,
993
1765
  "data-disabled": t || void 0,
994
- children: [/* @__PURE__ */ p("input", {
1766
+ children: [/* @__PURE__ */ h("input", {
995
1767
  ref: e,
996
1768
  type: "radio",
997
- className: K.input,
1769
+ className: Kt.input,
998
1770
  disabled: t,
999
1771
  ...i
1000
- }), /* @__PURE__ */ p("span", {
1001
- className: K.dot,
1772
+ }), /* @__PURE__ */ h("span", {
1773
+ className: Kt.dot,
1002
1774
  "aria-hidden": !0
1003
1775
  })]
1004
1776
  });
1005
1777
  }
1006
- Ze.displayName = "Radio";
1007
- var q = {
1778
+ qt.displayName = "Radio";
1779
+ var G = {
1780
+ rating: "_rating_pfqty_1",
1781
+ row: "_row_pfqty_7",
1782
+ empty: "_empty_pfqty_12",
1783
+ fill: "_fill_pfqty_16",
1784
+ star: "_star_pfqty_29",
1785
+ interactive: "_interactive_pfqty_41"
1786
+ }, Jt = /* @__PURE__ */ h("svg", {
1787
+ viewBox: "0 0 24 24",
1788
+ fill: "currentColor",
1789
+ "aria-hidden": !0,
1790
+ children: /* @__PURE__ */ h("path", { d: "M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.8 5.9 20.4l1.4-6.8L2.2 9.1l6.9-.8z" })
1791
+ });
1792
+ function Yt({ ref: e, value: t, defaultValue: n = 0, onChange: r, count: i = 5, readOnly: a = !1, disabled: o = !1, icon: s = Jt, name: c, "aria-label": l = "Rating", className: u }) {
1793
+ let [f, p] = d(n), m = t ?? f, [_, v] = d(null), b = !a && !o, x = Math.max(0, Math.min(1, (_ ?? m) / i)) * 100, S = (e) => {
1794
+ b && (t ?? p(e), r?.(e));
1795
+ }, C = (e) => {
1796
+ b && (e.key === "ArrowRight" || e.key === "ArrowUp" ? (e.preventDefault(), S(Math.min(i, Math.round(m) + 1))) : (e.key === "ArrowLeft" || e.key === "ArrowDown") && (e.preventDefault(), S(Math.max(0, Math.round(m) - 1))));
1797
+ }, w = Array.from({ length: i }, (e, t) => t + 1), T = b ? {
1798
+ onKeyDown: C,
1799
+ onMouseLeave: () => v(null)
1800
+ } : {}, E = b ? "radiogroup" : "img", D = b ? l : `${l}: ${m} out of ${i}`;
1801
+ return /* @__PURE__ */ g("div", {
1802
+ ref: e,
1803
+ className: y(G.rating, b && G.interactive, u),
1804
+ "data-disabled": o || void 0,
1805
+ role: E,
1806
+ "aria-label": D,
1807
+ ...T,
1808
+ children: [/* @__PURE__ */ h("div", {
1809
+ className: y(G.row, G.empty),
1810
+ "aria-hidden": !b,
1811
+ children: w.map((e) => b ? /* @__PURE__ */ h("button", {
1812
+ type: "button",
1813
+ role: "radio",
1814
+ "aria-checked": Math.round(m) === e,
1815
+ "aria-label": `${e}`,
1816
+ tabIndex: e === (Math.round(m) || 1) ? 0 : -1,
1817
+ name: c,
1818
+ className: G.star,
1819
+ onClick: () => S(e),
1820
+ onMouseEnter: () => v(e),
1821
+ onFocus: () => v(e),
1822
+ onBlur: () => v(null),
1823
+ children: s
1824
+ }, e) : /* @__PURE__ */ h("span", {
1825
+ className: G.star,
1826
+ children: s
1827
+ }, e))
1828
+ }), /* @__PURE__ */ h("div", {
1829
+ className: G.fill,
1830
+ style: { clipPath: `inset(0 ${100 - x}% 0 0)` },
1831
+ "aria-hidden": !0,
1832
+ children: /* @__PURE__ */ h("div", {
1833
+ className: G.row,
1834
+ children: w.map((e) => /* @__PURE__ */ h("span", {
1835
+ className: G.star,
1836
+ children: s
1837
+ }, e))
1838
+ })
1839
+ })]
1840
+ });
1841
+ }
1842
+ Yt.displayName = "Rating";
1843
+ var Xt = {
1844
+ bar: "_bar_4mkob_1",
1845
+ field: "_field_4mkob_8",
1846
+ icon: "_icon_4mkob_20",
1847
+ input: "_input_4mkob_26",
1848
+ clear: "_clear_4mkob_49",
1849
+ cancel: "_cancel_4mkob_70",
1850
+ "cancel--visible": "_cancel--visible_4mkob_86"
1851
+ }, Zt = (e) => e.preventDefault();
1852
+ function Qt({ ref: e, value: t, onChange: n, placeholder: r = "Search", onCancel: i, label: a = "Search", className: o, ...s }) {
1853
+ let c = u(null), [l, f] = d(!1), p = () => {
1854
+ n(""), c.current?.focus();
1855
+ }, m = () => {
1856
+ i?.(), c.current?.blur();
1857
+ };
1858
+ return /* @__PURE__ */ g("div", {
1859
+ ref: e,
1860
+ className: y(Xt.bar, o),
1861
+ ...s,
1862
+ children: [/* @__PURE__ */ g("div", {
1863
+ className: Xt.field,
1864
+ children: [
1865
+ /* @__PURE__ */ g("svg", {
1866
+ className: Xt.icon,
1867
+ width: "16",
1868
+ height: "16",
1869
+ viewBox: "0 0 16 16",
1870
+ fill: "none",
1871
+ "aria-hidden": !0,
1872
+ children: [/* @__PURE__ */ h("circle", {
1873
+ cx: "7",
1874
+ cy: "7",
1875
+ r: "5.25",
1876
+ stroke: "currentColor",
1877
+ strokeWidth: "1.5"
1878
+ }), /* @__PURE__ */ h("path", {
1879
+ d: "M11.5 11.5L14.5 14.5",
1880
+ stroke: "currentColor",
1881
+ strokeWidth: "1.5",
1882
+ strokeLinecap: "round"
1883
+ })]
1884
+ }),
1885
+ /* @__PURE__ */ h("input", {
1886
+ ref: c,
1887
+ type: "search",
1888
+ className: Xt.input,
1889
+ value: t,
1890
+ placeholder: r,
1891
+ "aria-label": a,
1892
+ onChange: (e) => n(e.target.value),
1893
+ onFocus: () => f(!0),
1894
+ onBlur: () => f(!1)
1895
+ }),
1896
+ t.length > 0 ? /* @__PURE__ */ h("button", {
1897
+ type: "button",
1898
+ className: Xt.clear,
1899
+ "aria-label": "Clear",
1900
+ onMouseDown: Zt,
1901
+ onClick: p,
1902
+ children: /* @__PURE__ */ g("svg", {
1903
+ width: "14",
1904
+ height: "14",
1905
+ viewBox: "0 0 14 14",
1906
+ "aria-hidden": !0,
1907
+ children: [/* @__PURE__ */ h("circle", {
1908
+ cx: "7",
1909
+ cy: "7",
1910
+ r: "7",
1911
+ fill: "currentColor",
1912
+ opacity: "0.15"
1913
+ }), /* @__PURE__ */ h("path", {
1914
+ d: "M4.5 4.5l5 5M9.5 4.5l-5 5",
1915
+ stroke: "currentColor",
1916
+ strokeWidth: "1.4",
1917
+ strokeLinecap: "round"
1918
+ })]
1919
+ })
1920
+ }) : null
1921
+ ]
1922
+ }), i == null ? null : /* @__PURE__ */ h("button", {
1923
+ type: "button",
1924
+ className: y(Xt.cancel, l && Xt["cancel--visible"]),
1925
+ tabIndex: l ? 0 : -1,
1926
+ onMouseDown: Zt,
1927
+ onClick: m,
1928
+ children: "Cancel"
1929
+ })]
1930
+ });
1931
+ }
1932
+ Qt.displayName = "SearchBar";
1933
+ var K = {
1008
1934
  body: "_body_1o4ef_1",
1009
1935
  sectionBase: "_sectionBase_1o4ef_6",
1010
1936
  bodyWithHeader: "_bodyWithHeader_1o4ef_6",
@@ -1019,86 +1945,153 @@ var q = {
1019
1945
  };
1020
1946
  //#endregion
1021
1947
  //#region src/components/Section/SectionFooter.tsx
1022
- function Qe({ ios: e, children: t }) {
1023
- return e ? /* @__PURE__ */ p(P, {
1024
- className: q.footerText,
1948
+ function $t({ ios: e, children: t }) {
1949
+ return e ? /* @__PURE__ */ h(ze, {
1950
+ className: K.footerText,
1025
1951
  children: t
1026
- }) : /* @__PURE__ */ p(D, {
1952
+ }) : /* @__PURE__ */ h(F, {
1027
1953
  level: "2",
1028
- className: q.footerText,
1954
+ className: K.footerText,
1029
1955
  children: t
1030
1956
  });
1031
1957
  }
1032
- function J({ ref: e, centered: t = !1, className: n, children: r, ...i }) {
1033
- let { platform: a } = O(), o = a === "ios";
1034
- return /* @__PURE__ */ p("footer", {
1958
+ function en({ ref: e, centered: t = !1, className: n, children: r, ...i }) {
1959
+ let { platform: a } = I(), o = a === "ios";
1960
+ return /* @__PURE__ */ h("footer", {
1035
1961
  ref: e,
1036
- className: h(q.footer, o && q.footerIos, t && q.footerCentered, n),
1962
+ className: y(K.footer, o && K.footerIos, t && K.footerCentered, n),
1037
1963
  ...i,
1038
- children: /* @__PURE__ */ p(Qe, {
1964
+ children: /* @__PURE__ */ h($t, {
1039
1965
  ios: o,
1040
1966
  children: r
1041
1967
  })
1042
1968
  });
1043
1969
  }
1044
- J.displayName = "SectionFooter";
1970
+ en.displayName = "SectionFooter";
1045
1971
  //#endregion
1046
1972
  //#region src/components/Section/SectionHeader.tsx
1047
- function $e({ ios: e, large: t, children: n }) {
1048
- return t ? e ? /* @__PURE__ */ p(D, {
1973
+ function tn({ ios: e, large: t, children: n }) {
1974
+ return t ? e ? /* @__PURE__ */ h(F, {
1049
1975
  Component: "h2",
1050
1976
  level: "1",
1051
1977
  weight: "2",
1052
1978
  children: n
1053
- }) : /* @__PURE__ */ p(j, {
1979
+ }) : /* @__PURE__ */ h(L, {
1054
1980
  Component: "h2",
1055
1981
  weight: "2",
1056
1982
  children: n
1057
- }) : e ? /* @__PURE__ */ p(P, {
1983
+ }) : e ? /* @__PURE__ */ h(ze, {
1058
1984
  Component: "h2",
1059
1985
  caps: !0,
1060
1986
  children: n
1061
- }) : /* @__PURE__ */ p(D, {
1987
+ }) : /* @__PURE__ */ h(F, {
1062
1988
  Component: "h2",
1063
1989
  level: "2",
1064
1990
  weight: "2",
1065
1991
  children: n
1066
1992
  });
1067
1993
  }
1068
- function Y({ ref: e, large: t = !1, className: n, children: r, ...i }) {
1069
- let { platform: a } = O(), o = a === "ios";
1070
- return /* @__PURE__ */ p("header", {
1994
+ function nn({ ref: e, large: t = !1, className: n, children: r, ...i }) {
1995
+ let { platform: a } = I(), o = a === "ios";
1996
+ return /* @__PURE__ */ h("header", {
1071
1997
  ref: e,
1072
- className: h(q.header, o && q.headerIos, t && q.headerLarge, n),
1998
+ className: y(K.header, o && K.headerIos, t && K.headerLarge, n),
1073
1999
  ...i,
1074
- children: /* @__PURE__ */ p($e, {
2000
+ children: /* @__PURE__ */ h(tn, {
1075
2001
  ios: o,
1076
2002
  large: t,
1077
2003
  children: r
1078
2004
  })
1079
2005
  });
1080
2006
  }
1081
- Y.displayName = "SectionHeader";
2007
+ nn.displayName = "SectionHeader";
1082
2008
  //#endregion
1083
2009
  //#region src/components/Section/Section.tsx
1084
- var et = (e) => typeof e == "string" || typeof e == "number";
1085
- function X({ ref: n, header: i, footer: a, className: o, children: s, ...c }) {
1086
- let { platform: l } = O(), u = e.toArray(s);
1087
- return /* @__PURE__ */ m("section", {
2010
+ var rn = (e) => typeof e == "string" || typeof e == "number";
2011
+ function an({ ref: n, header: i, footer: a, className: o, children: s, ...c }) {
2012
+ let { platform: l } = I(), u = e.toArray(s);
2013
+ return /* @__PURE__ */ g("section", {
1088
2014
  ref: n,
1089
- className: h(l === "ios" ? q.sectionIos : q.sectionBase, o),
2015
+ className: y(l === "ios" ? K.sectionIos : K.sectionBase, o),
1090
2016
  ...c,
1091
- children: [/* @__PURE__ */ m("div", {
1092
- className: q.bodyWithHeader,
1093
- children: [et(i) ? /* @__PURE__ */ p(Y, { children: i }) : i, /* @__PURE__ */ p("div", {
1094
- className: q.body,
1095
- children: u.map((e, n) => /* @__PURE__ */ m(t, { children: [e, n < u.length - 1 ? /* @__PURE__ */ p(z, {}) : null] }, r(e) ? e.key : n))
2017
+ children: [/* @__PURE__ */ g("div", {
2018
+ className: K.bodyWithHeader,
2019
+ children: [rn(i) ? /* @__PURE__ */ h(nn, { children: i }) : i, /* @__PURE__ */ h("div", {
2020
+ className: K.body,
2021
+ children: u.map((e, n) => /* @__PURE__ */ g(t, { children: [e, n < u.length - 1 ? /* @__PURE__ */ h(rt, {}) : null] }, r(e) ? e.key : n))
1096
2022
  })]
1097
- }), et(a) ? /* @__PURE__ */ p(J, { children: a }) : a]
2023
+ }), rn(a) ? /* @__PURE__ */ h(en, { children: a }) : a]
2024
+ });
2025
+ }
2026
+ an.displayName = "Section", an.Header = nn, an.Footer = en;
2027
+ var on = {
2028
+ control: "_control_1uo8p_1",
2029
+ pill: "_pill_1uo8p_10",
2030
+ item: "_item_1uo8p_28"
2031
+ };
2032
+ //#endregion
2033
+ //#region src/components/SegmentedControl/SegmentedControl.tsx
2034
+ function sn({ ref: e, className: t, children: n, onKeyDown: r, ...a }) {
2035
+ let s = u(null), [l, f] = d(null), p = i(() => {
2036
+ let e = s.current;
2037
+ if (!e) return;
2038
+ let t = e.querySelector("[role=\"radio\"][data-selected]"), n = t ? {
2039
+ left: t.offsetLeft,
2040
+ width: t.offsetWidth
2041
+ } : null;
2042
+ f((e) => e === n || e && n && e.left === n.left && e.width === n.width ? e : n);
2043
+ }, []);
2044
+ c(p), o(() => {
2045
+ let e = s.current;
2046
+ if (!e || typeof ResizeObserver > "u") return;
2047
+ let t = new ResizeObserver(p);
2048
+ return t.observe(e), () => t.disconnect();
2049
+ }, [p]);
2050
+ let m = i((t) => {
2051
+ s.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2052
+ }, [e]);
2053
+ return /* @__PURE__ */ g("div", {
2054
+ ref: m,
2055
+ role: "radiogroup",
2056
+ className: y(on.control, t),
2057
+ onKeyDown: (e) => {
2058
+ if (r?.(e), e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
2059
+ let t = s.current;
2060
+ if (!t) return;
2061
+ let n = Array.from(t.querySelectorAll("[role=\"radio\"]:not(:disabled)")), i = n.indexOf(document.activeElement);
2062
+ if (i < 0) return;
2063
+ e.preventDefault();
2064
+ let a = n[(i + (e.key === "ArrowRight" ? 1 : -1) + n.length) % n.length];
2065
+ a.focus(), a.click();
2066
+ },
2067
+ ...a,
2068
+ children: [/* @__PURE__ */ h("div", {
2069
+ className: on.pill,
2070
+ style: l ? {
2071
+ transform: `translateX(${l.left}px)`,
2072
+ width: l.width
2073
+ } : { opacity: 0 },
2074
+ "aria-hidden": !0
2075
+ }), n]
2076
+ });
2077
+ }
2078
+ sn.displayName = "SegmentedControl";
2079
+ //#endregion
2080
+ //#region src/components/SegmentedControl/SegmentedControlItem.tsx
2081
+ function cn({ ref: e, selected: t = !1, className: n, ...r }) {
2082
+ return /* @__PURE__ */ h("button", {
2083
+ ref: e,
2084
+ type: "button",
2085
+ role: "radio",
2086
+ "aria-checked": t,
2087
+ tabIndex: t ? 0 : -1,
2088
+ "data-selected": t || void 0,
2089
+ className: y(on.item, n),
2090
+ ...r
1098
2091
  });
1099
2092
  }
1100
- X.displayName = "Section", X.Header = Y, X.Footer = J;
1101
- var Z = {
2093
+ cn.displayName = "SegmentedControlItem";
2094
+ var q = {
1102
2095
  base: "_base_yxki5_1",
1103
2096
  row: "_row_yxki5_7",
1104
2097
  ios: "_ios_yxki5_17",
@@ -1111,55 +2104,696 @@ var Z = {
1111
2104
  };
1112
2105
  //#endregion
1113
2106
  //#region src/components/Select/Select.tsx
1114
- function tt({ ref: e, header: t, status: n, disabled: r, className: i, onFocus: a, onBlur: o, children: s, ...c }) {
1115
- let { platform: u } = O(), d = u === "ios", [f, g] = l(!1), _ = n ?? (f ? "focused" : "default"), v = d ? j : D;
1116
- return /* @__PURE__ */ m("div", {
1117
- className: h(d ? Z.ios : Z.base, _ === "error" && Z.error, _ === "focused" && Z.focused, r && Z.disabled, i),
2107
+ function ln({ ref: e, header: t, status: n, disabled: r, className: i, onFocus: a, onBlur: o, children: s, ...c }) {
2108
+ let { platform: l } = I(), u = l === "ios", [f, p] = d(!1), m = n ?? (f ? "focused" : "default"), _ = u ? L : F;
2109
+ return /* @__PURE__ */ g("div", {
2110
+ className: y(u ? q.ios : q.base, m === "error" && q.error, m === "focused" && q.focused, r && q.disabled, i),
1118
2111
  "aria-disabled": r || void 0,
1119
- children: [/* @__PURE__ */ m("div", {
1120
- className: Z.row,
1121
- children: [/* @__PURE__ */ p(v, {
2112
+ children: [/* @__PURE__ */ g("div", {
2113
+ className: q.row,
2114
+ children: [/* @__PURE__ */ h(_, {
1122
2115
  ref: e,
1123
2116
  Component: "select",
1124
- className: Z.select,
2117
+ className: q.select,
1125
2118
  disabled: r,
1126
2119
  onFocus: (e) => {
1127
- r || g(!0), a?.(e);
2120
+ r || p(!0), a?.(e);
1128
2121
  },
1129
2122
  onBlur: (e) => {
1130
- g(!1), o?.(e);
2123
+ p(!1), o?.(e);
1131
2124
  },
1132
2125
  ...c,
1133
2126
  children: s
1134
- }), /* @__PURE__ */ p("span", {
2127
+ }), /* @__PURE__ */ h("span", {
1135
2128
  "aria-hidden": !0,
1136
- className: Z.chevron
2129
+ className: q.chevron
1137
2130
  })]
1138
- }), t != null && !d ? /* @__PURE__ */ p("span", {
1139
- className: Z.header,
2131
+ }), t != null && !u ? /* @__PURE__ */ h("span", {
2132
+ className: q.header,
1140
2133
  children: t
1141
2134
  }) : null]
1142
2135
  });
1143
2136
  }
1144
- tt.displayName = "Select";
1145
- var nt = {
2137
+ ln.displayName = "Select";
2138
+ //#endregion
2139
+ //#region src/shared/lib/useReducedMotion.ts
2140
+ var un = "(prefers-reduced-motion: reduce)";
2141
+ function dn(e) {
2142
+ if (typeof window > "u" || !window.matchMedia) return () => {};
2143
+ let t = window.matchMedia(un);
2144
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
2145
+ }
2146
+ function fn() {
2147
+ return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia(un).matches;
2148
+ }
2149
+ function pn() {
2150
+ return f(dn, fn, () => !1);
2151
+ }
2152
+ var J = {
2153
+ backdrop: "_backdrop_a10cl_1",
2154
+ "backdrop--contained": "_backdrop--contained_a10cl_12",
2155
+ "backdrop--visible": "_backdrop--visible_a10cl_16",
2156
+ panel: "_panel_a10cl_20",
2157
+ "panel--visible": "_panel--visible_a10cl_37",
2158
+ grip: "_grip_a10cl_67",
2159
+ handle: "_handle_a10cl_76",
2160
+ header: "_header_a10cl_84",
2161
+ title: "_title_a10cl_95",
2162
+ close: "_close_a10cl_100",
2163
+ body: "_body_a10cl_105"
2164
+ }, mn = 340, hn = 6, gn = 96, _n = .5;
2165
+ function vn(e) {
2166
+ return Array.from(e.querySelectorAll("a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex=\"-1\"])")).filter((e) => e.offsetParent !== null || e === document.activeElement);
2167
+ }
2168
+ function yn({ ref: e, open: t, onClose: n, header: r, children: a, dismissable: s = !0, closeLabel: c = "Close", className: l, container: f }) {
2169
+ let p = pn(), m = f != null, [_, v] = d(t), [b, x] = d(!1), S = u(null), C = u(null), w = u({
2170
+ id: -1,
2171
+ active: !1,
2172
+ startY: 0,
2173
+ lastY: 0,
2174
+ lastT: 0,
2175
+ velocity: 0
2176
+ });
2177
+ o(() => {
2178
+ if (t) {
2179
+ v(!0);
2180
+ return;
2181
+ }
2182
+ if (x(!1), p) {
2183
+ v(!1);
2184
+ return;
2185
+ }
2186
+ let e = setTimeout(() => v(!1), mn);
2187
+ return () => clearTimeout(e);
2188
+ }, [t, p]), o(() => {
2189
+ if (!_ || !t) return;
2190
+ let e = S.current;
2191
+ e && (e.offsetHeight, x(!0));
2192
+ }, [_, t]), o(() => {
2193
+ if (!_) return;
2194
+ C.current = document.activeElement;
2195
+ let { body: e, documentElement: t } = document, n = {
2196
+ overflow: e.style.overflow,
2197
+ paddingRight: e.style.paddingRight
2198
+ };
2199
+ if (!m) {
2200
+ let n = window.innerWidth - t.clientWidth;
2201
+ e.style.overflow = "hidden", n > 0 && (e.style.paddingRight = `${n}px`);
2202
+ }
2203
+ let r = requestAnimationFrame(() => S.current?.focus({ preventScroll: !0 }));
2204
+ return () => {
2205
+ cancelAnimationFrame(r), e.style.overflow = n.overflow, e.style.paddingRight = n.paddingRight, C.current?.focus?.({ preventScroll: !0 });
2206
+ };
2207
+ }, [_, m]), o(() => {
2208
+ if (!_) return;
2209
+ let e = (e) => {
2210
+ e.key === "Escape" && s && (e.stopPropagation(), n());
2211
+ };
2212
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2213
+ }, [
2214
+ _,
2215
+ s,
2216
+ n
2217
+ ]);
2218
+ let T = i((e) => {
2219
+ if (e.key !== "Tab" || !S.current) return;
2220
+ let t = vn(S.current);
2221
+ if (t.length === 0) {
2222
+ e.preventDefault(), S.current.focus();
2223
+ return;
2224
+ }
2225
+ let n = t[0], r = t[t.length - 1], i = document.activeElement;
2226
+ e.shiftKey && (i === n || i === S.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
2227
+ }, []), E = (e) => {
2228
+ !s || e.button !== 0 || p || e.target.closest("button") || (w.current = {
2229
+ id: e.pointerId,
2230
+ active: !1,
2231
+ startY: e.clientY,
2232
+ lastY: e.clientY,
2233
+ lastT: e.timeStamp,
2234
+ velocity: 0
2235
+ });
2236
+ }, D = (e) => {
2237
+ let t = w.current;
2238
+ if (t.id !== e.pointerId) return;
2239
+ let n = e.clientY - t.startY;
2240
+ if (!t.active) {
2241
+ if (n < hn) return;
2242
+ t.active = !0, e.currentTarget.setPointerCapture(e.pointerId), S.current && (S.current.style.transition = "none");
2243
+ }
2244
+ let r = e.timeStamp - t.lastT;
2245
+ if (r >= 1) {
2246
+ let n = (e.clientY - t.lastY) / r;
2247
+ t.velocity = t.velocity * .6 + n * .4, t.lastY = e.clientY, t.lastT = e.timeStamp;
2248
+ }
2249
+ S.current && (S.current.style.transform = `translateY(${Math.max(0, n)}px)`);
2250
+ }, O = (e) => {
2251
+ let t = w.current;
2252
+ if (t.id !== e.pointerId || (w.current = {
2253
+ ...t,
2254
+ id: -1,
2255
+ active: !1
2256
+ }, !t.active)) return;
2257
+ e.currentTarget.releasePointerCapture?.(e.pointerId);
2258
+ let r = S.current, i = e.clientY - t.startY > gn || t.velocity > _n;
2259
+ r && (r.style.transition = "", r.getBoundingClientRect(), r.style.transform = ""), i && (x(!1), n());
2260
+ };
2261
+ if (!_) return null;
2262
+ let k = b && t;
2263
+ return /* @__PURE__ */ h(Ut, {
2264
+ container: f,
2265
+ children: /* @__PURE__ */ h("div", {
2266
+ ref: e,
2267
+ className: y(J.backdrop, m && J["backdrop--contained"], k && J["backdrop--visible"]),
2268
+ onPointerDown: (e) => {
2269
+ e.target === e.currentTarget && s && n();
2270
+ },
2271
+ children: /* @__PURE__ */ g("div", {
2272
+ ref: S,
2273
+ role: "dialog",
2274
+ "aria-modal": "true",
2275
+ tabIndex: -1,
2276
+ className: y(J.panel, k && J["panel--visible"], l),
2277
+ onKeyDown: T,
2278
+ children: [/* @__PURE__ */ g("div", {
2279
+ className: J.grip,
2280
+ onPointerDown: E,
2281
+ onPointerMove: D,
2282
+ onPointerUp: O,
2283
+ onPointerCancel: O,
2284
+ children: [s ? /* @__PURE__ */ h("span", {
2285
+ className: J.handle,
2286
+ "aria-hidden": !0
2287
+ }) : null, r == null ? null : /* @__PURE__ */ g("div", {
2288
+ className: J.header,
2289
+ children: [/* @__PURE__ */ h("div", {
2290
+ className: J.title,
2291
+ children: r
2292
+ }), s ? /* @__PURE__ */ h(dt, {
2293
+ mode: "gray",
2294
+ size: "s",
2295
+ circle: !0,
2296
+ className: J.close,
2297
+ "aria-label": c,
2298
+ onClick: n,
2299
+ children: /* @__PURE__ */ h("svg", {
2300
+ width: "16",
2301
+ height: "16",
2302
+ viewBox: "0 0 16 16",
2303
+ "aria-hidden": !0,
2304
+ children: /* @__PURE__ */ h("path", {
2305
+ d: "M4 4l8 8M12 4l-8 8",
2306
+ stroke: "currentColor",
2307
+ strokeWidth: "1.6",
2308
+ strokeLinecap: "round"
2309
+ })
2310
+ })
2311
+ }) : null]
2312
+ })]
2313
+ }), /* @__PURE__ */ h("div", {
2314
+ className: J.body,
2315
+ children: a
2316
+ })]
2317
+ })
2318
+ })
2319
+ });
2320
+ }
2321
+ yn.displayName = "Sheet";
2322
+ var bn = {
1146
2323
  skeleton: "_skeleton_197j4_1",
1147
2324
  visible: "_visible_197j4_5",
1148
2325
  "tgui-skeleton": "_tgui-skeleton_197j4_1"
1149
2326
  };
1150
2327
  //#endregion
1151
2328
  //#region src/components/Skeleton/Skeleton.tsx
1152
- function rt({ ref: e, visible: t = !0, className: n, children: r, ...i }) {
1153
- return /* @__PURE__ */ p("div", {
2329
+ function xn({ ref: e, visible: t = !0, className: n, children: r, ...i }) {
2330
+ return /* @__PURE__ */ h("div", {
1154
2331
  ref: e,
1155
2332
  "aria-hidden": t || void 0,
1156
- className: h(nt.skeleton, t && nt.visible, n),
2333
+ className: y(bn.skeleton, t && bn.visible, n),
1157
2334
  ...i,
1158
2335
  children: r
1159
2336
  });
1160
2337
  }
1161
- rt.displayName = "Skeleton";
1162
- var Q = {
2338
+ xn.displayName = "Skeleton";
2339
+ var Sn = {
2340
+ slider: "_slider_avyl5_1",
2341
+ track: "_track_avyl5_8",
2342
+ rail: "_rail_avyl5_16",
2343
+ fill: "_fill_avyl5_25",
2344
+ input: "_input_avyl5_39",
2345
+ side: "_side_avyl5_98"
2346
+ };
2347
+ //#endregion
2348
+ //#region src/components/Slider/Slider.tsx
2349
+ function Cn({ ref: e, value: t, defaultValue: n, onChange: r, min: i = 0, max: a = 100, step: o = 1, before: s, after: c, disabled: l, className: u, ...f }) {
2350
+ let [p, m] = d(n ?? i), _ = t ?? p, v = a > i ? (_ - i) / (a - i) * 100 : 0;
2351
+ return /* @__PURE__ */ g("div", {
2352
+ className: y(Sn.slider, u),
2353
+ "data-disabled": l || void 0,
2354
+ children: [
2355
+ s == null ? null : /* @__PURE__ */ h("span", {
2356
+ className: Sn.side,
2357
+ children: s
2358
+ }),
2359
+ /* @__PURE__ */ g("span", {
2360
+ className: Sn.track,
2361
+ children: [
2362
+ /* @__PURE__ */ h("span", { className: Sn.rail }),
2363
+ /* @__PURE__ */ h("span", {
2364
+ className: Sn.fill,
2365
+ style: { width: `${Math.max(0, Math.min(100, v))}%` }
2366
+ }),
2367
+ /* @__PURE__ */ h("input", {
2368
+ ref: e,
2369
+ type: "range",
2370
+ className: Sn.input,
2371
+ min: i,
2372
+ max: a,
2373
+ step: o,
2374
+ value: _,
2375
+ disabled: l,
2376
+ onChange: (e) => {
2377
+ let n = Number(e.target.value);
2378
+ t ?? m(n), r?.(n);
2379
+ },
2380
+ ...f
2381
+ })
2382
+ ]
2383
+ }),
2384
+ c == null ? null : /* @__PURE__ */ h("span", {
2385
+ className: Sn.side,
2386
+ children: c
2387
+ })
2388
+ ]
2389
+ });
2390
+ }
2391
+ Cn.displayName = "Slider";
2392
+ //#endregion
2393
+ //#region src/components/Snackbar/context.ts
2394
+ var wn = n(null);
2395
+ wn.displayName = "SnackbarContext";
2396
+ var Y = {
2397
+ viewport: "_viewport_1rbuf_1",
2398
+ snackbar: "_snackbar_1rbuf_19",
2399
+ "snackbar--visible": "_snackbar--visible_1rbuf_37",
2400
+ "snackbar--dragging": "_snackbar--dragging_1rbuf_50",
2401
+ before: "_before_1rbuf_54",
2402
+ body: "_body_1rbuf_60",
2403
+ message: "_message_1rbuf_69",
2404
+ description: "_description_1rbuf_74",
2405
+ action: "_action_1rbuf_80"
2406
+ }, Tn = 240, En = 80;
2407
+ function Dn({ children: e, duration: t = 4e3, max: n = 3 }) {
2408
+ let [r, a] = d([]), o = u(0), s = i((e) => {
2409
+ a((t) => t.filter((t) => t.id !== e));
2410
+ }, []), c = i((e) => {
2411
+ let t = `snackbar-${o.current++}`;
2412
+ return a((r) => [...r, {
2413
+ ...e,
2414
+ id: t
2415
+ }].slice(-n)), t;
2416
+ }, [n]), f = l(() => ({
2417
+ show: c,
2418
+ dismiss: s
2419
+ }), [c, s]);
2420
+ return /* @__PURE__ */ g(wn.Provider, {
2421
+ value: f,
2422
+ children: [e, r.length > 0 ? /* @__PURE__ */ h(Ut, { children: /* @__PURE__ */ h("div", {
2423
+ className: Y.viewport,
2424
+ children: r.map((e) => /* @__PURE__ */ h(On, {
2425
+ item: e,
2426
+ defaultDuration: t,
2427
+ onDismiss: () => s(e.id)
2428
+ }, e.id))
2429
+ }) }) : null]
2430
+ });
2431
+ }
2432
+ Dn.displayName = "SnackbarProvider";
2433
+ function On({ item: e, defaultDuration: t, onDismiss: n }) {
2434
+ let r = pn(), [a, s] = d(!1), [l, f] = d(!1), p = u(null), m = e.duration ?? t, _ = u(m), v = u(0), b = u(null), x = u({
2435
+ id: -1,
2436
+ startX: 0,
2437
+ active: !1
2438
+ });
2439
+ c(() => {
2440
+ let e = p.current;
2441
+ e && e.offsetHeight, s(!0);
2442
+ }, []);
2443
+ let S = i(() => {
2444
+ if (f(!0), s(!1), r) {
2445
+ n();
2446
+ return;
2447
+ }
2448
+ let e = setTimeout(n, Tn);
2449
+ return () => clearTimeout(e);
2450
+ }, [r, n]), C = i(() => {
2451
+ b.current && (clearTimeout(b.current), b.current = null, _.current -= Date.now() - v.current);
2452
+ }, []), w = i(() => {
2453
+ m <= 0 || l || b.current || (v.current = Date.now(), b.current = setTimeout(() => S(), Math.max(0, _.current)));
2454
+ }, [
2455
+ m,
2456
+ l,
2457
+ S
2458
+ ]);
2459
+ o(() => (w(), C), [w, C]);
2460
+ let T = (e) => {
2461
+ e.button === 0 && (x.current = {
2462
+ id: e.pointerId,
2463
+ startX: e.clientX,
2464
+ active: !1
2465
+ }, C());
2466
+ }, E = (e) => {
2467
+ let t = x.current;
2468
+ if (t.id !== e.pointerId) return;
2469
+ let n = e.clientX - t.startX;
2470
+ if (!t.active) {
2471
+ if (Math.abs(n) < 6) return;
2472
+ t.active = !0, e.currentTarget.setPointerCapture(e.pointerId), p.current?.classList.add(Y["snackbar--dragging"]);
2473
+ }
2474
+ p.current && (p.current.style.transform = `translateX(${n}px)`, p.current.style.opacity = `${Math.max(0, 1 - Math.abs(n) / 240)}`);
2475
+ }, D = (e) => {
2476
+ let t = x.current;
2477
+ if (t.id !== e.pointerId) return;
2478
+ x.current = {
2479
+ id: -1,
2480
+ startX: 0,
2481
+ active: !1
2482
+ };
2483
+ let i = p.current;
2484
+ if (!i) return;
2485
+ i.classList.remove(Y["snackbar--dragging"]);
2486
+ let a = e.clientX - t.startX;
2487
+ if (t.active && Math.abs(a) > En) {
2488
+ if (r) {
2489
+ n();
2490
+ return;
2491
+ }
2492
+ i.style.transition = "transform 0.2s ease-out, opacity 0.2s ease-out", i.style.transform = `translateX(${Math.sign(a) * (window.innerWidth || 400)}px)`, i.style.opacity = "0", setTimeout(n, 190);
2493
+ return;
2494
+ }
2495
+ i.style.transform = "", i.style.opacity = "", w();
2496
+ };
2497
+ return /* @__PURE__ */ g("div", {
2498
+ ref: p,
2499
+ className: y(Y.snackbar, a && !l && Y["snackbar--visible"]),
2500
+ role: "status",
2501
+ onMouseEnter: C,
2502
+ onMouseLeave: w,
2503
+ onFocus: C,
2504
+ onBlur: w,
2505
+ onPointerDown: T,
2506
+ onPointerMove: E,
2507
+ onPointerUp: D,
2508
+ onPointerCancel: D,
2509
+ children: [
2510
+ e.before == null ? null : /* @__PURE__ */ h("span", {
2511
+ className: Y.before,
2512
+ children: e.before
2513
+ }),
2514
+ /* @__PURE__ */ g("div", {
2515
+ className: Y.body,
2516
+ children: [/* @__PURE__ */ h("span", {
2517
+ className: Y.message,
2518
+ children: e.message
2519
+ }), e.description == null ? null : /* @__PURE__ */ h("span", {
2520
+ className: Y.description,
2521
+ children: e.description
2522
+ })]
2523
+ }),
2524
+ e.action == null ? null : /* @__PURE__ */ h("button", {
2525
+ type: "button",
2526
+ className: Y.action,
2527
+ onClick: () => {
2528
+ e.action?.onClick(), S();
2529
+ },
2530
+ children: e.action.label
2531
+ })
2532
+ ]
2533
+ });
2534
+ }
2535
+ //#endregion
2536
+ //#region src/components/Snackbar/useSnackbar.ts
2537
+ function kn() {
2538
+ let e = a(wn);
2539
+ if (!e) throw Error("useSnackbar must be used within a <SnackbarProvider>.");
2540
+ return e;
2541
+ }
2542
+ //#endregion
2543
+ //#region src/components/Spoiler/particles.ts
2544
+ var An = Math.PI * 2, jn = (e) => Math.max(0, Math.min(1, e)), Mn = (e) => 1 - (1 - e) ** 3;
2545
+ function Nn(e, t, n, r) {
2546
+ let i = Math.max(t, e - n);
2547
+ return r < t ? Math.max(0, r / t) : r > i ? Math.max(0, 1 - (r - i) / (e - i)) : 1;
2548
+ }
2549
+ function Pn(e, t, n) {
2550
+ let r = Math.round(Math.min(1800, Math.max(12, n * e * t))), i = [];
2551
+ for (let n = 0; n < r; n += 1) {
2552
+ let n = 2 + Math.random() * 10, r = Math.random() * An, a = .3 + Math.random() * 1.2, o = Math.random();
2553
+ i.push({
2554
+ x0: Math.random() * e,
2555
+ y0: Math.random() * t,
2556
+ vx: n * Math.cos(r),
2557
+ vy: n * Math.sin(r),
2558
+ life: a,
2559
+ respawn: o,
2560
+ phase: Math.random() * (a + o),
2561
+ size: 1 + Math.random() * .7,
2562
+ square: Math.random() > .5
2563
+ });
2564
+ }
2565
+ return i;
2566
+ }
2567
+ function Fn(e, t, n, r, i, a, o, s, c) {
2568
+ e.clearRect(0, 0, t, n);
2569
+ let l = t / r, u = n / r, [d, f, p] = a, m = i.length;
2570
+ for (let t = 0; t < m; t += 1) {
2571
+ let n = i[t], a = n.life + n.respawn;
2572
+ if (s != null && Math.floor((o + n.phase) / a) > Math.floor((s + n.phase) / a)) continue;
2573
+ let h = (o + n.phase) % a;
2574
+ if (h >= n.life) continue;
2575
+ let g = (n.x0 + n.vx * h) % l;
2576
+ g < 0 && (g += l);
2577
+ let _ = (n.y0 + n.vy * h) % u;
2578
+ _ < 0 && (_ += u);
2579
+ let v = Nn(n.life, .15, .3, h), y = v * (.45 + .55 * (1 - h / n.life));
2580
+ if (s != null && c > 0) {
2581
+ let e = jn((o - (s + 2 / 3 * c * t / m)) / (1 / 3 * c));
2582
+ y *= Mn(1 - e);
2583
+ }
2584
+ if (y <= .01) continue;
2585
+ let b = Math.max(.5, n.size * v) * r;
2586
+ e.fillStyle = `rgba(${d}, ${f}, ${p}, ${y.toFixed(3)})`, e.beginPath(), n.square ? e.rect(g * r, _ * r, b, b) : e.arc(g * r, _ * r, b / 2, 0, An), e.fill();
2587
+ }
2588
+ }
2589
+ var In = {
2590
+ spoiler: "_spoiler_15ysm_1",
2591
+ revealed: "_revealed_15ysm_15",
2592
+ canvas: "_canvas_15ysm_20",
2593
+ content: "_content_15ysm_67"
2594
+ }, Ln = .5;
2595
+ function Rn(e) {
2596
+ let t = e.match(/-?\d*\.?\d+/g);
2597
+ return !t || t.length < 3 ? [
2598
+ 128,
2599
+ 128,
2600
+ 128
2601
+ ] : [
2602
+ Number(t[0]),
2603
+ Number(t[1]),
2604
+ Number(t[2])
2605
+ ];
2606
+ }
2607
+ function zn({ ref: e, revealed: t, defaultRevealed: n = !1, onRevealedChange: r, revealOn: i = "click", accentColor: a, density: s = .1, fps: c = 40, revealLabel: l = "Reveal hidden text", className: f, style: p, children: m, onClick: _, onKeyDown: v, onMouseEnter: b, onMouseLeave: x, ...S }) {
2608
+ let [C, w] = d(n), T = t ?? C, E = pn(), D = i === "click", O = u(null), k = u(null), A = u([]), j = u([
2609
+ 128,
2610
+ 128,
2611
+ 128
2612
+ ]), ee = u(!0), te = u(T ? 0 : null), M = u(0), [ne, re] = d(!T), ie = (e) => {
2613
+ e ? te.current = M.current : (te.current = null, re(!0)), t ?? w(e), r?.(e);
2614
+ };
2615
+ o(() => {
2616
+ if (!ne) return;
2617
+ let e = O.current, t = k.current, n = t?.getContext("2d");
2618
+ if (!e || !t || !n) return;
2619
+ let r = Math.min(2, window.devicePixelRatio || 1), i = () => {
2620
+ let n = t.getBoundingClientRect(), i = Math.max(1, Math.round(n.width * r)), o = Math.max(1, Math.round(n.height * r));
2621
+ (t.width !== i || t.height !== o) && (t.width = i, t.height = o, A.current = Pn(i / r, o / r, s)), j.current = Rn(a ?? getComputedStyle(e).color);
2622
+ };
2623
+ if (i(), E) {
2624
+ Fn(n, t.width, t.height, r, A.current, j.current, .6, null, 0);
2625
+ return;
2626
+ }
2627
+ let o = 0, l = 0, u = -1, d = 1e3 / Math.max(8, c), f = (e) => {
2628
+ l ||= e;
2629
+ let i = (e - l) / 1e3;
2630
+ M.current = i;
2631
+ let a = te.current;
2632
+ if (a != null && i > a + Ln + .06) {
2633
+ n.clearRect(0, 0, t.width, t.height), re(!1);
2634
+ return;
2635
+ }
2636
+ o = requestAnimationFrame(f), !(!ee.current || e - u < d) && (u = e, Fn(n, t.width, t.height, r, A.current, j.current, i, a, Ln));
2637
+ };
2638
+ o = requestAnimationFrame(f);
2639
+ let p = typeof ResizeObserver < "u" ? new ResizeObserver(i) : null;
2640
+ p?.observe(e);
2641
+ let m = typeof IntersectionObserver < "u" ? new IntersectionObserver(([e]) => {
2642
+ ee.current = e.isIntersecting;
2643
+ }) : null;
2644
+ return m?.observe(e), () => {
2645
+ cancelAnimationFrame(o), p?.disconnect(), m?.disconnect();
2646
+ };
2647
+ }, [
2648
+ ne,
2649
+ E,
2650
+ s,
2651
+ c,
2652
+ a
2653
+ ]);
2654
+ let ae = () => ie(!T);
2655
+ return /* @__PURE__ */ g("span", {
2656
+ ref: (t) => {
2657
+ O.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2658
+ },
2659
+ className: y(In.spoiler, T && In.revealed, f),
2660
+ role: "button",
2661
+ tabIndex: 0,
2662
+ "aria-pressed": T,
2663
+ "aria-label": T ? void 0 : l,
2664
+ style: {
2665
+ ...p,
2666
+ "--tgui--spoiler--p": +!!T
2667
+ },
2668
+ onClick: (e) => {
2669
+ _?.(e), D && ae();
2670
+ },
2671
+ onKeyDown: (e) => {
2672
+ v?.(e), (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ae());
2673
+ },
2674
+ onMouseEnter: (e) => {
2675
+ b?.(e), !D && !T && ie(!0);
2676
+ },
2677
+ onMouseLeave: (e) => {
2678
+ x?.(e), !D && T && ie(!1);
2679
+ },
2680
+ ...S,
2681
+ children: [/* @__PURE__ */ h("span", {
2682
+ className: In.content,
2683
+ "aria-hidden": !T,
2684
+ children: m
2685
+ }), ne ? /* @__PURE__ */ h("canvas", {
2686
+ ref: k,
2687
+ className: In.canvas,
2688
+ "aria-hidden": !0
2689
+ }) : null]
2690
+ });
2691
+ }
2692
+ zn.displayName = "Spoiler";
2693
+ var Bn = {
2694
+ stepper: "_stepper_j2yr8_1",
2695
+ value: "_value_j2yr8_7",
2696
+ "pulse-up": "_pulse-up_j2yr8_1",
2697
+ "pulse-down": "_pulse-down_j2yr8_1"
2698
+ }, Vn = (e, t, n) => Math.min(n, Math.max(t, e)), Hn = () => /* @__PURE__ */ h("svg", {
2699
+ width: "14",
2700
+ height: "14",
2701
+ viewBox: "0 0 14 14",
2702
+ "aria-hidden": !0,
2703
+ children: /* @__PURE__ */ h("path", {
2704
+ d: "M2.5 7h9",
2705
+ stroke: "currentColor",
2706
+ strokeWidth: "1.6",
2707
+ strokeLinecap: "round"
2708
+ })
2709
+ }), Un = () => /* @__PURE__ */ h("svg", {
2710
+ width: "14",
2711
+ height: "14",
2712
+ viewBox: "0 0 14 14",
2713
+ "aria-hidden": !0,
2714
+ children: /* @__PURE__ */ h("path", {
2715
+ d: "M7 2.5v9M2.5 7h9",
2716
+ stroke: "currentColor",
2717
+ strokeWidth: "1.6",
2718
+ strokeLinecap: "round"
2719
+ })
2720
+ });
2721
+ function Wn({ ref: e, value: t, onChange: n, min: r = 0, max: i = Infinity, step: a = 1, disabled: s = !1, className: c, ...l }) {
2722
+ let f = pn(), [p, m] = d(String(t)), [_, v] = d(null), b = u(t);
2723
+ o(() => {
2724
+ m(String(t)), t !== b.current && (f || v(t > b.current ? "up" : "down"), b.current = t);
2725
+ }, [t, f]);
2726
+ let x = () => {
2727
+ let e = Number.parseFloat(p), a = Vn(Number.isNaN(e) ? t : e, r, i);
2728
+ n(a), m(String(a));
2729
+ }, S = (e) => {
2730
+ e.key === "Enter" && (x(), e.currentTarget.blur());
2731
+ };
2732
+ return /* @__PURE__ */ g("div", {
2733
+ ref: e,
2734
+ className: y(Bn.stepper, c),
2735
+ ...l,
2736
+ children: [
2737
+ /* @__PURE__ */ h(dt, {
2738
+ mode: "gray",
2739
+ size: "s",
2740
+ circle: !0,
2741
+ "aria-label": "Decrease",
2742
+ disabled: s || t <= r,
2743
+ onClick: () => n(Vn(t - a, r, i)),
2744
+ children: /* @__PURE__ */ h(Hn, {})
2745
+ }),
2746
+ /* @__PURE__ */ h("input", {
2747
+ className: Bn.value,
2748
+ type: "number",
2749
+ inputMode: "numeric",
2750
+ "aria-label": "Value",
2751
+ value: p,
2752
+ disabled: s,
2753
+ "data-pulse": _ ?? void 0,
2754
+ onChange: (e) => m(e.target.value),
2755
+ onBlur: x,
2756
+ onKeyDown: S,
2757
+ onAnimationEnd: () => v(null)
2758
+ }),
2759
+ /* @__PURE__ */ h(dt, {
2760
+ mode: "gray",
2761
+ size: "s",
2762
+ circle: !0,
2763
+ "aria-label": "Increase",
2764
+ disabled: s || t >= i,
2765
+ onClick: () => n(Vn(t + a, r, i)),
2766
+ children: /* @__PURE__ */ h(Un, {})
2767
+ })
2768
+ ]
2769
+ });
2770
+ }
2771
+ Wn.displayName = "Stepper";
2772
+ var Gn = {
2773
+ steps: "_steps_u50on_1",
2774
+ segment: "_segment_u50on_8",
2775
+ fill: "_fill_u50on_16"
2776
+ }, Kn = (e) => Math.max(0, Math.min(1, e));
2777
+ function qn({ ref: e, count: t, progress: n, className: r, ...i }) {
2778
+ return /* @__PURE__ */ h("div", {
2779
+ ref: e,
2780
+ role: "progressbar",
2781
+ "aria-valuemin": 0,
2782
+ "aria-valuemax": t,
2783
+ "aria-valuenow": Math.max(0, Math.min(t, n)),
2784
+ className: y(Gn.steps, r),
2785
+ ...i,
2786
+ children: Array.from({ length: t }, (e, t) => /* @__PURE__ */ h("div", {
2787
+ className: Gn.segment,
2788
+ children: /* @__PURE__ */ h("div", {
2789
+ className: Gn.fill,
2790
+ style: { width: `${Kn(n - t) * 100}%` }
2791
+ })
2792
+ }, t))
2793
+ });
2794
+ }
2795
+ qn.displayName = "Steps";
2796
+ var Jn = {
1163
2797
  switch: "_switch_s4zd1_1",
1164
2798
  input: "_input_s4zd1_18",
1165
2799
  control: "_control_s4zd1_28",
@@ -1168,26 +2802,26 @@ var Q = {
1168
2802
  };
1169
2803
  //#endregion
1170
2804
  //#region src/components/Switch/Switch.tsx
1171
- function it({ ref: e, disabled: t, className: n, style: r, ...i }) {
1172
- let { platform: a } = O();
1173
- return /* @__PURE__ */ m("label", {
1174
- className: h(Q.switch, a === "ios" ? Q.ios : Q.base, n),
2805
+ function Yn({ ref: e, disabled: t, className: n, style: r, ...i }) {
2806
+ let { platform: a } = I();
2807
+ return /* @__PURE__ */ g("label", {
2808
+ className: y(Jn.switch, a === "ios" ? Jn.ios : Jn.base, n),
1175
2809
  style: r,
1176
2810
  "data-disabled": t || void 0,
1177
- children: [/* @__PURE__ */ p("input", {
2811
+ children: [/* @__PURE__ */ h("input", {
1178
2812
  ref: e,
1179
2813
  type: "checkbox",
1180
- className: Q.input,
2814
+ className: Jn.input,
1181
2815
  disabled: t,
1182
2816
  ...i
1183
- }), /* @__PURE__ */ p("span", {
2817
+ }), /* @__PURE__ */ h("span", {
1184
2818
  "aria-hidden": !0,
1185
- className: Q.control
2819
+ className: Jn.control
1186
2820
  })]
1187
2821
  });
1188
2822
  }
1189
- it.displayName = "Switch";
1190
- var $ = {
2823
+ Yn.displayName = "Switch";
2824
+ var Xn = {
1191
2825
  bar: "_bar_muj3n_1",
1192
2826
  barIos: "_barIos_muj3n_10",
1193
2827
  item: "_item_muj3n_15",
@@ -1198,86 +2832,235 @@ var $ = {
1198
2832
  };
1199
2833
  //#endregion
1200
2834
  //#region src/components/TabBar/TabBarItem.tsx
1201
- function at({ ref: e, selected: t, text: n, children: r, className: i, ...a }) {
1202
- let { platform: o } = O(), s = o === "ios";
1203
- return /* @__PURE__ */ m(A, {
2835
+ function Zn({ ref: e, selected: t, text: n, children: r, className: i, ...a }) {
2836
+ let { platform: o } = I(), s = o === "ios";
2837
+ return /* @__PURE__ */ g(Se, {
1204
2838
  ref: e,
1205
2839
  Component: "button",
1206
2840
  interactiveAnimation: "opacity",
1207
2841
  "aria-current": t ? "page" : void 0,
1208
- className: h($.item, s && $.itemIos, t && $.itemSelected, i),
2842
+ className: y(Xn.item, s && Xn.itemIos, t && Xn.itemSelected, i),
1209
2843
  ...a,
1210
- children: [r == null ? null : /* @__PURE__ */ p("span", {
1211
- className: $.icon,
2844
+ children: [r == null ? null : /* @__PURE__ */ h("span", {
2845
+ className: Xn.icon,
1212
2846
  children: r
1213
- }), n == null ? null : /* @__PURE__ */ p(P, {
1214
- className: $.text,
2847
+ }), n == null ? null : /* @__PURE__ */ h(ze, {
2848
+ className: Xn.text,
1215
2849
  weight: "2",
1216
2850
  level: s ? "2" : "1",
1217
2851
  children: n
1218
2852
  })]
1219
2853
  });
1220
2854
  }
1221
- at.displayName = "TabBarItem";
2855
+ Zn.displayName = "TabBarItem";
1222
2856
  //#endregion
1223
2857
  //#region src/components/TabBar/TabBar.tsx
1224
- function ot({ ref: e, className: t, children: n, ...r }) {
1225
- let { platform: i } = O();
1226
- return /* @__PURE__ */ p("nav", {
2858
+ function Qn({ ref: e, className: t, children: n, ...r }) {
2859
+ let { platform: i } = I();
2860
+ return /* @__PURE__ */ h("nav", {
1227
2861
  ref: e,
1228
- className: h($.bar, i === "ios" && $.barIos, t),
2862
+ className: y(Xn.bar, i === "ios" && Xn.barIos, t),
1229
2863
  ...r,
1230
2864
  children: n
1231
2865
  });
1232
2866
  }
1233
- ot.displayName = "TabBar", ot.Item = at;
1234
- var st = { field: "_field_1crg0_1" };
2867
+ Qn.displayName = "TabBar", Qn.Item = Zn;
2868
+ var $n = { field: "_field_1crg0_1" };
1235
2869
  //#endregion
1236
2870
  //#region src/components/Textarea/Textarea.tsx
1237
- function ct({ ref: e, header: t, status: n, autoGrow: r = !1, maxRows: a, rows: s = 3, disabled: u, className: d, value: f, defaultValue: m, onFocus: h, onBlur: g, onChange: _, ...v }) {
1238
- let { platform: y } = O(), b = y === "ios", [ee, x] = l(!1), S = n ?? (ee ? "focused" : "default"), te = b ? j : D, C = c(null), w = i((t) => {
1239
- C.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
1240
- }, [e]), T = i(() => {
1241
- let e = C.current;
2871
+ function er({ ref: e, header: t, status: n, autoGrow: r = !1, maxRows: a, rows: s = 3, disabled: c, className: l, value: f, defaultValue: p, onFocus: m, onBlur: g, onChange: _, ...v }) {
2872
+ let { platform: y } = I(), b = y === "ios", [x, S] = d(!1), C = n ?? (x ? "focused" : "default"), w = b ? L : F, T = u(null), E = i((t) => {
2873
+ T.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
2874
+ }, [e]), D = i(() => {
2875
+ let e = T.current;
1242
2876
  if (!e || !r) return;
1243
2877
  e.style.height = "auto";
1244
2878
  let t = getComputedStyle(e), n = Number.parseFloat(t.lineHeight) || 20, i = a ? n * a : Infinity;
1245
2879
  e.style.height = `${Math.min(e.scrollHeight, i)}px`, e.style.overflowY = e.scrollHeight > i ? "auto" : "hidden";
1246
2880
  }, [r, a]);
1247
- return o(T, [
1248
- T,
2881
+ return o(D, [
2882
+ D,
1249
2883
  f,
1250
- m
1251
- ]), /* @__PURE__ */ p(H, {
2884
+ p
2885
+ ]), /* @__PURE__ */ h(bt, {
1252
2886
  ios: b,
1253
- status: S,
1254
- disabled: u,
2887
+ status: C,
2888
+ disabled: c,
1255
2889
  alignStart: !0,
1256
2890
  header: t,
1257
- className: d,
1258
- children: /* @__PURE__ */ p(te, {
1259
- ref: w,
2891
+ className: l,
2892
+ children: /* @__PURE__ */ h(w, {
2893
+ ref: E,
1260
2894
  Component: "textarea",
1261
- className: st.field,
2895
+ className: $n.field,
1262
2896
  rows: s,
1263
- disabled: u,
2897
+ disabled: c,
1264
2898
  value: f,
1265
- defaultValue: m,
2899
+ defaultValue: p,
1266
2900
  onFocus: (e) => {
1267
- u || x(!0), h?.(e);
2901
+ c || S(!0), m?.(e);
1268
2902
  },
1269
2903
  onBlur: (e) => {
1270
- x(!1), g?.(e);
2904
+ S(!1), g?.(e);
1271
2905
  },
1272
2906
  onChange: (e) => {
1273
- T(), _?.(e);
2907
+ D(), _?.(e);
1274
2908
  },
1275
2909
  ...v
1276
2910
  })
1277
2911
  });
1278
2912
  }
1279
- ct.displayName = "Textarea";
2913
+ er.displayName = "Textarea";
2914
+ var X = {
2915
+ timeline: "_timeline_1usgg_1",
2916
+ item: "_item_1usgg_9",
2917
+ rail: "_rail_1usgg_20",
2918
+ connector: "_connector_1usgg_29",
2919
+ dot: "_dot_1usgg_47",
2920
+ content: "_content_1usgg_74",
2921
+ heading: "_heading_1usgg_80",
2922
+ title: "_title_1usgg_87",
2923
+ time: "_time_1usgg_1",
2924
+ description: "_description_1usgg_101"
2925
+ };
2926
+ //#endregion
2927
+ //#region src/components/Timeline/Timeline.tsx
2928
+ function tr({ ref: e, className: t, children: n, ...r }) {
2929
+ return /* @__PURE__ */ h("ol", {
2930
+ ref: e,
2931
+ className: y(X.timeline, t),
2932
+ ...r,
2933
+ children: n
2934
+ });
2935
+ }
2936
+ tr.displayName = "Timeline";
2937
+ //#endregion
2938
+ //#region src/components/Timeline/TimelineItem.tsx
2939
+ function nr({ ref: e, title: t, description: n, time: r, active: i = !1, className: a, ...o }) {
2940
+ return /* @__PURE__ */ g("li", {
2941
+ ref: e,
2942
+ className: y(X.item, a),
2943
+ "data-active": i || void 0,
2944
+ ...o,
2945
+ children: [/* @__PURE__ */ g("span", {
2946
+ className: X.rail,
2947
+ "aria-hidden": !0,
2948
+ children: [/* @__PURE__ */ h("span", { className: X.connector }), /* @__PURE__ */ h("span", { className: X.dot })]
2949
+ }), /* @__PURE__ */ g("div", {
2950
+ className: X.content,
2951
+ children: [/* @__PURE__ */ g("div", {
2952
+ className: X.heading,
2953
+ children: [/* @__PURE__ */ h("span", {
2954
+ className: X.title,
2955
+ children: t
2956
+ }), r == null ? null : /* @__PURE__ */ h("span", {
2957
+ className: X.time,
2958
+ children: r
2959
+ })]
2960
+ }), n == null ? null : /* @__PURE__ */ h("div", {
2961
+ className: X.description,
2962
+ children: n
2963
+ })]
2964
+ })]
2965
+ });
2966
+ }
2967
+ nr.displayName = "TimelineItem";
2968
+ var rr = {
2969
+ trigger: "_trigger_83ipz_1",
2970
+ tooltip: "_tooltip_83ipz_5",
2971
+ "tooltip--visible": "_tooltip--visible_83ipz_25",
2972
+ arrow: "_arrow_83ipz_44"
2973
+ }, Z = 8, Q = 8, $ = (e, t, n) => Math.max(t, Math.min(n, e));
2974
+ function ir(e, t, n) {
2975
+ let r = window.innerWidth, i = window.innerHeight, a = n;
2976
+ a === "top" && e.top - t.height - Z < Q ? a = "bottom" : a === "bottom" && e.bottom + t.height + Z > i - Q ? a = "top" : a === "left" && e.left - t.width - Z < Q ? a = "right" : a === "right" && e.right + t.width + Z > r - Q && (a = "left");
2977
+ let o = 0, s = 0;
2978
+ a === "top" || a === "bottom" ? (s = e.left + e.width / 2 - t.width / 2, o = a === "top" ? e.top - t.height - Z : e.bottom + Z) : (o = e.top + e.height / 2 - t.height / 2, s = a === "left" ? e.left - t.width - Z : e.right + Z), s = $(s, Q, r - t.width - Q), o = $(o, Q, i - t.height - Q);
2979
+ let c = e.left + e.width / 2 - s, l = e.top + e.height / 2 - o, u = {};
2980
+ return a === "top" ? (u.left = $(c, 10, t.width - 10) - 4, u.bottom = -4) : a === "bottom" ? (u.left = $(c, 10, t.width - 10) - 4, u.top = -4) : a === "left" ? (u.top = $(l, 10, t.height - 10) - 4, u.right = -4) : (u.top = $(l, 10, t.height - 10) - 4, u.left = -4), {
2981
+ top: o,
2982
+ left: s,
2983
+ placement: a,
2984
+ originX: $(c, 0, t.width),
2985
+ originY: $(l, 0, t.height),
2986
+ arrow: u
2987
+ };
2988
+ }
2989
+ function ar({ ref: e, children: t, content: n, placement: r = "top", open: a, onOpenChange: l, className: f }) {
2990
+ let [p, _] = d(!1), v = a ?? p, b = u(null), x = u(null), S = u(null), [C, w] = d(null), [T, E] = d(!1), D = s(), O = i((e) => {
2991
+ a ?? _(e), l?.(e);
2992
+ }, [a, l]), k = i(() => {
2993
+ let e = b.current, t = x.current;
2994
+ !e || !t || w(ir(e.getBoundingClientRect(), t.getBoundingClientRect(), r));
2995
+ }, [r]);
2996
+ c(() => {
2997
+ if (!v) {
2998
+ E(!1), w(null);
2999
+ return;
3000
+ }
3001
+ k();
3002
+ }, [v, k]), o(() => {
3003
+ if (!v || !C) return;
3004
+ let e = requestAnimationFrame(() => E(!0)), t = () => O(!1);
3005
+ return window.addEventListener("scroll", t, !0), window.addEventListener("resize", k), () => {
3006
+ cancelAnimationFrame(e), window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", k);
3007
+ };
3008
+ }, [
3009
+ v,
3010
+ C,
3011
+ k,
3012
+ O
3013
+ ]), o(() => {
3014
+ if (!v) return;
3015
+ let e = (e) => {
3016
+ e.key === "Escape" && O(!1);
3017
+ };
3018
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3019
+ }, [v, O]);
3020
+ let A = i(() => {
3021
+ S.current &&= (clearTimeout(S.current), null);
3022
+ }, []);
3023
+ return o(() => A, [A]), /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
3024
+ ref: (t) => {
3025
+ b.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
3026
+ },
3027
+ className: y(rr.trigger, f),
3028
+ "aria-describedby": v ? D : void 0,
3029
+ onPointerEnter: (e) => {
3030
+ e.pointerType !== "touch" && O(!0);
3031
+ },
3032
+ onPointerLeave: (e) => {
3033
+ e.pointerType !== "touch" && O(!1), A();
3034
+ },
3035
+ onPointerDown: (e) => {
3036
+ e.pointerType === "touch" && (S.current = setTimeout(() => O(!0), 450));
3037
+ },
3038
+ onPointerUp: A,
3039
+ onPointerCancel: A,
3040
+ onFocus: () => O(!0),
3041
+ onBlur: () => O(!1),
3042
+ children: t
3043
+ }), v ? /* @__PURE__ */ h(Ut, { children: /* @__PURE__ */ g("div", {
3044
+ ref: x,
3045
+ id: D,
3046
+ role: "tooltip",
3047
+ className: y(rr.tooltip, T && rr["tooltip--visible"]),
3048
+ style: C ? {
3049
+ top: C.top,
3050
+ left: C.left,
3051
+ "--tgui--tooltip--origin-x": `${C.originX}px`,
3052
+ "--tgui--tooltip--origin-y": `${C.originY}px`
3053
+ } : void 0,
3054
+ "data-placement": C?.placement,
3055
+ children: [n, C ? /* @__PURE__ */ h("span", {
3056
+ className: rr.arrow,
3057
+ style: C.arrow,
3058
+ "aria-hidden": !0
3059
+ }) : null]
3060
+ }) }) : null] });
3061
+ }
3062
+ ar.displayName = "Tooltip";
1280
3063
  //#endregion
1281
- export { y as Avatar, x as Badge, Se as Button, P as Caption, je as Card, Ae as CardCell, ke as Cell, Me as Checkbox, Fe as CircularProgress, z as Divider, Re as Headline, Be as IconButton, He as Input, We as LargeTitle, Ke as List, Je as Placeholder, Xe as Progress, Ze as Radio, X as Section, J as SectionFooter, Y as SectionHeader, tt as Select, rt as Skeleton, C as Spinner, D as Subheadline, it as Switch, ot as TabBar, at as TabBarItem, A as Tappable, j as Text, ct as Textarea, ye as TguiProvider, W as Title, E as Typography, O as useTgui };
3064
+ export { C as Accordion, w as AccordionItem, O as Avatar, A as AvatarStack, te as Badge, re as Banner, ae as Blockquote, se as Breadcrumbs, Ie as Button, ze as Caption, qe as Card, Ke as CardCell, Ge as Cell, Ye as Checkbox, Ze as Chip, tt as CircularProgress, Mt as CompactPagination, rt as Divider, at as FixedLayout, st as Headline, lt as HorizontalScroll, dt as IconButton, mt as Image, yt as InlineButtons, vt as InlineButtonsItem, St as Input, wt as LargeTitle, Et as Link, Ot as List, Pt as Pagination, Lt as PinInput, Ht as Placeholder, Ut as Portal, Gt as Progress, qt as Radio, Yt as Rating, Qt as SearchBar, an as Section, en as SectionFooter, nn as SectionHeader, sn as SegmentedControl, cn as SegmentedControlItem, ln as Select, yn as Sheet, xn as Skeleton, Cn as Slider, Dn as SnackbarProvider, ue as Spinner, zn as Spoiler, Wn as Stepper, qn as Steps, F as Subheadline, Yn as Switch, Qn as TabBar, Zn as TabBarItem, Se as Tappable, L as Text, er as Textarea, Ne as TguiProvider, tr as Timeline, nr as TimelineItem, Bt as Title, ar as Tooltip, P as Typography, kn as useSnackbar, I as useTgui };
1282
3065
 
1283
3066
  //# sourceMappingURL=index.js.map