@equal-experts/kuat-react 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1683 +1,291 @@
1
- /* empty css */
2
- import { c as v } from "./utils-DLUjLwnh.js";
3
- import { S as st } from "./button-group-enIzvVeN.js";
4
- import { d as Yn, B as Qn, a as Jn, b as Wn, c as er } from "./button-group-enIzvVeN.js";
5
- import { jsxs as H, jsx as d, Fragment as _e } from "react/jsx-runtime";
6
- import * as _ from "react";
7
- import { useRef as We, useState as et, useCallback as At, useEffect as He } from "react";
8
- import { ChevronLeft as Vt, ChevronRight as Oe, MoreHorizontal as Dt, ChevronDown as Mt } from "lucide-react";
9
- import { b as nr, a as rr, K as or } from "./kuat-radial-progress-YcpYzHjk.js";
10
- import { A as cr, c as ar, a as ir, b as lr } from "./accordion-CUlVo4uo.js";
11
- import { A as dr, i as fr, j as mr, d as pr, h as hr, f as gr, e as br, b as Sr, a as Cr, g as Nr, c as yr } from "./alert-dialog-yHaNWLGX.js";
12
- import { c as Er, a as Lr, B as wr, b as xr } from "./badge-BZgdEQSD.js";
13
- import * as R from "@radix-ui/react-dropdown-menu";
14
- import { d as Ir, c as Hr, a as Tr, B as kr, b as Ar } from "./button-C0a1gFoV.js";
15
- import { a as Dr, T as Mr } from "./textarea-B0irOcAM.js";
16
- import { a as Rr, I as Pr } from "./input-DmkHok33.js";
17
- import { j as Fr, F as Gr, a as Zr, b as Kr, c as Ur, d as jr, e as zr, f as $r, g as qr, h as Xr, i as Yr } from "./field-CpIBifwy.js";
18
- import { K as Jr, j as Wr, k as eo, S as to, a as no, b as ro, c as oo, d as so, e as co, f as ao, g as io, h as lo, i as uo } from "./select-CkwcI4vN.js";
19
- import { b as mo, c as po, C as ho, a as go } from "./checkbox-field-7OmstdY0.js";
20
- import { c as So, d as Co, b as No, R as yo, a as _o } from "./radio-field-BD77QCpO.js";
21
- import { b as Lo, c as wo, S as xo, a as vo } from "./switch-field-xn_CPJH7.js";
22
- import { a as Ho, b as To, T as ko, c as Ao, d as Vo } from "./constants-Cfitvm6L.js";
23
- import { a as Mo, S as Oo, b as Ro, t as Po } from "./sonner-content-CXBD6jNn.js";
24
- const Pn = _.forwardRef(function({
25
- className: t,
26
- asChild: n = !1,
27
- imageSrc: r = null,
28
- imageAlt: s = "",
29
- contentText: c = null,
30
- headerAccessory: o = null,
31
- customContent: l = null,
32
- footer: a = null,
33
- badge: u,
34
- category: S,
35
- title: i,
1
+ import { c as s } from "./utils-DLUjLwnh.js";
2
+ import { S as T } from "./button-group-enIzvVeN.js";
3
+ import { d as pe, B as Ce, a as ge, b as fe, c as be } from "./button-group-enIzvVeN.js";
4
+ import { jsxs as n, jsx as e, Fragment as w } from "react/jsx-runtime";
5
+ import * as t from "react";
6
+ import { C as _e, a as He, b as we, d as Se, c as Le, u as Ve } from "./carousel-vRCoMeVE.js";
7
+ import { K as Ee, a as Re, b as Ae, d as Ie, c as ve, u as Te } from "./kuat-carousel-DsHwXGpb.js";
8
+ import { b as ye, a as xe, K as Me } from "./kuat-radial-progress-YcpYzHjk.js";
9
+ import { A as Oe, c as Ze, a as Ke, b as Fe } from "./accordion-CUlVo4uo.js";
10
+ import { A as Ge, i as Ue, j as $e, d as je, h as Xe, f as Ye, e as qe, b as We, a as ze, g as Je, c as Qe } from "./alert-dialog-yHaNWLGX.js";
11
+ import { c as aa, a as ra, B as la, b as oa } from "./badge-BZgdEQSD.js";
12
+ import { ChevronRight as D, MoreHorizontal as F, ChevronDown as P } from "lucide-react";
13
+ import * as c from "@radix-ui/react-dropdown-menu";
14
+ import { d as na, c as sa, a as da, B as ca, b as ia } from "./button-C0a1gFoV.js";
15
+ import { a as ma, T as ha } from "./textarea-B0irOcAM.js";
16
+ import { a as Ca, I as ga } from "./input-DmkHok33.js";
17
+ import { j as ba, F as Na, a as _a, b as Ha, c as wa, d as Sa, e as La, f as Va, g as ka, h as Ea, i as Ra } from "./field-CpIBifwy.js";
18
+ import { K as Ia, j as va, k as Ta, S as Da, a as ya, b as xa, c as Ma, d as Ba, e as Oa, f as Za, g as Ka, h as Fa, i as Pa } from "./select-CkwcI4vN.js";
19
+ import { b as Ua, c as $a, C as ja, a as Xa } from "./checkbox-field-7OmstdY0.js";
20
+ import { c as qa, d as Wa, b as za, R as Ja, a as Qa } from "./radio-field-BD77QCpO.js";
21
+ import { b as ar, c as rr, S as lr, a as or } from "./switch-field-xn_CPJH7.js";
22
+ import { a as nr, b as sr, T as dr, c as cr, d as ir } from "./constants-Cfitvm6L.js";
23
+ import { a as mr, S as hr, b as pr, t as Cr } from "./sonner-content-CXBD6jNn.js";
24
+ const se = t.forwardRef(function({
25
+ className: r,
26
+ asChild: l = !1,
27
+ imageSrc: o = null,
28
+ imageAlt: d = "",
29
+ contentText: u = null,
30
+ headerAccessory: i = null,
31
+ customContent: C = null,
32
+ footer: p = null,
33
+ badge: g,
34
+ category: N,
35
+ title: f,
36
36
  titleHeadingLevel: m = 3,
37
- children: C,
38
- ...p
39
- }, h) {
40
- const b = `h${m}`, f = /* @__PURE__ */ H(_e, { children: [
41
- r !== null ? /* @__PURE__ */ d("div", { className: "content-card__media", children: /* @__PURE__ */ d("img", { className: "content-card__media-img", alt: s, src: r }) }) : null,
42
- /* @__PURE__ */ H("div", { className: "content-card__body", children: [
43
- /* @__PURE__ */ H("div", { className: "content-card__heading-row", children: [
44
- /* @__PURE__ */ H("div", { className: "content-card__heading-left", children: [
45
- /* @__PURE__ */ H("div", { className: "content-card__heading-meta", children: [
46
- /* @__PURE__ */ d("div", { "data-slot": "badge", className: "content-card__badge", children: u }),
47
- /* @__PURE__ */ d("p", { className: "content-card__category", children: S })
37
+ children: h,
38
+ ..._
39
+ }, S) {
40
+ const L = `h${m}`, b = /* @__PURE__ */ n(w, { children: [
41
+ o !== null ? /* @__PURE__ */ e("div", { className: "content-card__media", children: /* @__PURE__ */ e("img", { className: "content-card__media-img", alt: d, src: o }) }) : null,
42
+ /* @__PURE__ */ n("div", { className: "content-card__body", children: [
43
+ /* @__PURE__ */ n("div", { className: "content-card__heading-row", children: [
44
+ /* @__PURE__ */ n("div", { className: "content-card__heading-left", children: [
45
+ /* @__PURE__ */ n("div", { className: "content-card__heading-meta", children: [
46
+ /* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: g }),
47
+ /* @__PURE__ */ e("p", { className: "content-card__category", children: N })
48
48
  ] }),
49
- /* @__PURE__ */ d(b, { className: "content-card__title", children: i })
49
+ /* @__PURE__ */ e(L, { className: "content-card__title", children: f })
50
50
  ] }),
51
- /* @__PURE__ */ d(
51
+ /* @__PURE__ */ e(
52
52
  "div",
53
53
  {
54
54
  "data-slot": "header-accessory",
55
55
  className: "content-card__header-accessory",
56
- children: o ?? null
56
+ children: i ?? null
57
57
  }
58
58
  )
59
59
  ] }),
60
- c != null ? /* @__PURE__ */ d("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ d("p", { className: "content-card__content-text", children: c }) }) : null,
61
- /* @__PURE__ */ d("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: l ?? null }),
62
- /* @__PURE__ */ d("div", { "data-slot": "footer", className: "content-card__footer", children: a ?? null })
60
+ u != null ? /* @__PURE__ */ e("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ e("p", { className: "content-card__content-text", children: u }) }) : null,
61
+ /* @__PURE__ */ e("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: C ?? null }),
62
+ /* @__PURE__ */ e("div", { "data-slot": "footer", className: "content-card__footer", children: p ?? null })
63
63
  ] })
64
64
  ] });
65
- if (n) {
66
- const g = _.Children.only(C);
67
- if (!_.isValidElement(g))
65
+ if (l) {
66
+ const H = t.Children.only(h);
67
+ if (!t.isValidElement(H))
68
68
  throw new Error("ContentCard: when `asChild` is true, provide a single React element child.");
69
- const N = g;
70
- return _.cloneElement(
71
- N,
69
+ const v = H;
70
+ return t.cloneElement(
71
+ v,
72
72
  {
73
- ...p,
74
- ref: h,
73
+ ..._,
74
+ ref: S,
75
75
  "data-slot": "content-card",
76
- className: v("content-card", N.props.className, t)
76
+ className: s("content-card", v.props.className, r)
77
77
  },
78
- f
78
+ b
79
79
  );
80
80
  }
81
- return /* @__PURE__ */ d(
81
+ return /* @__PURE__ */ e(
82
82
  "div",
83
83
  {
84
- ref: h,
84
+ ref: S,
85
85
  "data-slot": "content-card",
86
- className: v("content-card", t),
87
- ...p,
88
- children: f
86
+ className: s("content-card", r),
87
+ ..._,
88
+ children: b
89
89
  }
90
90
  );
91
91
  });
92
- function Te({ className: e, textColor: t = "grey" }) {
93
- return /* @__PURE__ */ H(
92
+ function V({ className: a, textColor: r = "grey" }) {
93
+ return /* @__PURE__ */ n(
94
94
  "svg",
95
95
  {
96
- className: v("ee-logo", `ee-logo--${t}`, e),
96
+ className: s("ee-logo", `ee-logo--${r}`, a),
97
97
  viewBox: "0 0 500 133",
98
98
  fill: "none",
99
99
  xmlns: "http://www.w3.org/2000/svg",
100
100
  "aria-label": "Equal Experts logo",
101
101
  children: [
102
- /* @__PURE__ */ H("g", { clipPath: "url(#ee-logo-clip)", children: [
103
- /* @__PURE__ */ H("g", { className: "ee-logo__text", fill: "currentColor", children: [
104
- /* @__PURE__ */ d("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
105
- /* @__PURE__ */ d("path", { d: "M227.495 29.0742C227.495 11.6766 233.601 0.136902 250.675 0.136902C267.75 0.136902 273.855 11.6766 273.855 29.0742V29.3382C273.855 41.4549 270.92 50.6084 263.454 55.2243L271.869 65.0037L260.568 70.7736L252.446 58.256C251.872 58.3312 251.293 58.3606 250.714 58.344C233.64 58.344 227.534 46.7945 227.534 29.3187L227.495 29.0742ZM241.194 29.2307C241.194 40.6921 243.669 46.55 250.685 46.55C257.701 46.55 260.254 40.6823 260.254 29.2307C260.254 17.779 257.691 11.9211 250.685 11.9211C243.679 11.9211 241.194 17.8572 241.194 29.2307Z" }),
106
- /* @__PURE__ */ d("path", { d: "M295.871 1.36911V35.2059C295.871 42.7947 297.436 46.5891 304.119 46.5891C310.802 46.5891 312.368 42.7947 312.368 35.2059V1.36911H325.401V35.8318C325.401 50.5009 320.284 58.3244 304.119 58.3244C287.955 58.3244 282.847 50.5009 282.847 35.8318V1.36911H295.871Z" }),
107
- /* @__PURE__ */ d("path", { d: "M361.282 1.45712C365.734 13.0751 373.493 37.0737 378.894 57.014H365.656L363.258 46.462H346.38L343.982 57.014H330.724C335.651 38.2094 341.53 19.6666 348.337 1.45712H361.282ZM354.599 16.7032C352.544 22.8838 350.89 28.9079 349.315 34.844H360.294C358.562 28.9079 356.996 22.8838 355.01 16.7032H354.599Z" }),
108
- /* @__PURE__ */ d("path", { d: "M399.139 1.45712V45.3862H421.076V57.0237H386.106V1.45712H399.139Z" })
102
+ /* @__PURE__ */ n("g", { clipPath: "url(#ee-logo-clip)", children: [
103
+ /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
104
+ /* @__PURE__ */ e("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
105
+ /* @__PURE__ */ e("path", { d: "M227.495 29.0742C227.495 11.6766 233.601 0.136902 250.675 0.136902C267.75 0.136902 273.855 11.6766 273.855 29.0742V29.3382C273.855 41.4549 270.92 50.6084 263.454 55.2243L271.869 65.0037L260.568 70.7736L252.446 58.256C251.872 58.3312 251.293 58.3606 250.714 58.344C233.64 58.344 227.534 46.7945 227.534 29.3187L227.495 29.0742ZM241.194 29.2307C241.194 40.6921 243.669 46.55 250.685 46.55C257.701 46.55 260.254 40.6823 260.254 29.2307C260.254 17.779 257.691 11.9211 250.685 11.9211C243.679 11.9211 241.194 17.8572 241.194 29.2307Z" }),
106
+ /* @__PURE__ */ e("path", { d: "M295.871 1.36911V35.2059C295.871 42.7947 297.436 46.5891 304.119 46.5891C310.802 46.5891 312.368 42.7947 312.368 35.2059V1.36911H325.401V35.8318C325.401 50.5009 320.284 58.3244 304.119 58.3244C287.955 58.3244 282.847 50.5009 282.847 35.8318V1.36911H295.871Z" }),
107
+ /* @__PURE__ */ e("path", { d: "M361.282 1.45712C365.734 13.0751 373.493 37.0737 378.894 57.014H365.656L363.258 46.462H346.38L343.982 57.014H330.724C335.651 38.2094 341.53 19.6666 348.337 1.45712H361.282ZM354.599 16.7032C352.544 22.8838 350.89 28.9079 349.315 34.844H360.294C358.562 28.9079 356.996 22.8838 355.01 16.7032H354.599Z" }),
108
+ /* @__PURE__ */ e("path", { d: "M399.139 1.45712V45.3862H421.076V57.0237H386.106V1.45712H399.139Z" })
109
109
  ] }),
110
- /* @__PURE__ */ d("path", { d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z", fill: "#1795D4" }),
111
- /* @__PURE__ */ d("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
112
- /* @__PURE__ */ d("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
113
- /* @__PURE__ */ d("path", { d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z", fill: "#1795D4" }),
114
- /* @__PURE__ */ H("g", { className: "ee-logo__text", fill: "currentColor", children: [
115
- /* @__PURE__ */ d("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
116
- /* @__PURE__ */ d("path", { d: "M240.773 75.3015C243.17 80.1912 246.712 87.0368 249.677 92.2101H249.931C252.984 87.2519 256.614 80.1716 258.924 75.3015H273.601C269.687 83.2228 263.63 93.6868 258.014 102.928L274.765 130.868H259.168L250.088 113.969H249.853L240.616 130.868H225.264L241.683 102.821C236.487 94.0193 229.941 82.1275 226.174 75.2819L240.773 75.3015Z" }),
117
- /* @__PURE__ */ d("path", { d: "M296.204 75.3015C301.096 75.3015 305.939 75.634 309.648 76.8759C315.842 79.0959 319.873 85.1982 319.873 93.7748C319.873 106.39 311.879 112.649 298.425 112.649H294.804V130.849H281.8V75.3015H296.204ZM294.804 101.021H297.358C302.965 101.021 306.164 100.366 306.164 93.7748C306.164 91.3006 305.254 89.1589 303.767 88.1614C302.28 87.1639 300.313 86.9292 297.505 86.9292H294.785L294.804 101.021Z" }),
118
- /* @__PURE__ */ d("path", { d: "M363.924 75.2819L363.092 86.9096H341.399V97.1291H360.538V108.679H341.399V119.231H363.346V130.849H328.366V75.2819H363.924Z" }),
119
- /* @__PURE__ */ d("path", { d: "M387.593 75.3015C392.485 75.3015 397.329 75.634 401.037 76.8759C407.221 79.0959 411.262 85.1884 411.262 93.7748C411.262 101.442 408.327 106.801 402.935 109.764L412.994 130.868H399.472L391.468 112.571C390.558 112.649 389.325 112.649 388.17 112.649H386.213V130.849H373.151V75.3015H387.593ZM386.194 101.276H388.748C394.354 101.276 397.554 100.366 397.554 93.7748C397.554 91.3006 396.644 88.9926 395.166 87.9951C393.689 86.9976 391.859 86.7629 388.885 86.7629H386.174L386.194 101.276Z" }),
120
- /* @__PURE__ */ d("path", { d: "M456.957 75.2819L456.135 86.9096H442.857V130.849H429.824V86.9096H416.213V75.2819H456.957Z" }),
121
- /* @__PURE__ */ d("path", { d: "M495.978 89.1393C492.031 87.0587 487.652 85.93 483.19 85.8437C481.553 85.7535 479.918 86.0343 478.405 86.6651C477.672 86.9348 477.045 87.4311 476.613 88.0819C476.182 88.7326 475.97 89.5039 476.008 90.2835C476.008 93.2174 478.943 94.9874 483.024 96.6401L487.642 98.4493C495.89 101.755 499.765 106.204 499.765 114.282C499.765 127.142 490.362 132.169 479.061 132.169C473.816 132.084 468.616 131.197 463.64 129.538L464.217 117.001C468.488 119.008 473.113 120.154 477.828 120.375C483.767 120.375 486.076 118.888 486.076 115.485C486.076 112.277 483.933 110.869 479.227 108.972L474.609 107.163C467.926 104.522 462.319 99.8282 462.319 90.5965C462.319 81.3647 469.002 73.9715 482.524 73.9715C487.385 74.0422 492.192 74.9931 496.712 76.7782L495.978 89.1393Z" })
110
+ /* @__PURE__ */ e("path", { d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z", fill: "#1795D4" }),
111
+ /* @__PURE__ */ e("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
112
+ /* @__PURE__ */ e("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
113
+ /* @__PURE__ */ e("path", { d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z", fill: "#1795D4" }),
114
+ /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
115
+ /* @__PURE__ */ e("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
116
+ /* @__PURE__ */ e("path", { d: "M240.773 75.3015C243.17 80.1912 246.712 87.0368 249.677 92.2101H249.931C252.984 87.2519 256.614 80.1716 258.924 75.3015H273.601C269.687 83.2228 263.63 93.6868 258.014 102.928L274.765 130.868H259.168L250.088 113.969H249.853L240.616 130.868H225.264L241.683 102.821C236.487 94.0193 229.941 82.1275 226.174 75.2819L240.773 75.3015Z" }),
117
+ /* @__PURE__ */ e("path", { d: "M296.204 75.3015C301.096 75.3015 305.939 75.634 309.648 76.8759C315.842 79.0959 319.873 85.1982 319.873 93.7748C319.873 106.39 311.879 112.649 298.425 112.649H294.804V130.849H281.8V75.3015H296.204ZM294.804 101.021H297.358C302.965 101.021 306.164 100.366 306.164 93.7748C306.164 91.3006 305.254 89.1589 303.767 88.1614C302.28 87.1639 300.313 86.9292 297.505 86.9292H294.785L294.804 101.021Z" }),
118
+ /* @__PURE__ */ e("path", { d: "M363.924 75.2819L363.092 86.9096H341.399V97.1291H360.538V108.679H341.399V119.231H363.346V130.849H328.366V75.2819H363.924Z" }),
119
+ /* @__PURE__ */ e("path", { d: "M387.593 75.3015C392.485 75.3015 397.329 75.634 401.037 76.8759C407.221 79.0959 411.262 85.1884 411.262 93.7748C411.262 101.442 408.327 106.801 402.935 109.764L412.994 130.868H399.472L391.468 112.571C390.558 112.649 389.325 112.649 388.17 112.649H386.213V130.849H373.151V75.3015H387.593ZM386.194 101.276H388.748C394.354 101.276 397.554 100.366 397.554 93.7748C397.554 91.3006 396.644 88.9926 395.166 87.9951C393.689 86.9976 391.859 86.7629 388.885 86.7629H386.174L386.194 101.276Z" }),
120
+ /* @__PURE__ */ e("path", { d: "M456.957 75.2819L456.135 86.9096H442.857V130.849H429.824V86.9096H416.213V75.2819H456.957Z" }),
121
+ /* @__PURE__ */ e("path", { d: "M495.978 89.1393C492.031 87.0587 487.652 85.93 483.19 85.8437C481.553 85.7535 479.918 86.0343 478.405 86.6651C477.672 86.9348 477.045 87.4311 476.613 88.0819C476.182 88.7326 475.97 89.5039 476.008 90.2835C476.008 93.2174 478.943 94.9874 483.024 96.6401L487.642 98.4493C495.89 101.755 499.765 106.204 499.765 114.282C499.765 127.142 490.362 132.169 479.061 132.169C473.816 132.084 468.616 131.197 463.64 129.538L464.217 117.001C468.488 119.008 473.113 120.154 477.828 120.375C483.767 120.375 486.076 118.888 486.076 115.485C486.076 112.277 483.933 110.869 479.227 108.972L474.609 107.163C467.926 104.522 462.319 99.8282 462.319 90.5965C462.319 81.3647 469.002 73.9715 482.524 73.9715C487.385 74.0422 492.192 74.9931 496.712 76.7782L495.978 89.1393Z" })
122
122
  ] })
123
123
  ] }),
124
- /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("clipPath", { id: "ee-logo-clip", children: /* @__PURE__ */ d("rect", { width: "500", height: "133", fill: "white" }) }) })
124
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "ee-logo-clip", children: /* @__PURE__ */ e("rect", { width: "500", height: "133", fill: "white" }) }) })
125
125
  ]
126
126
  }
127
127
  );
128
128
  }
129
- const Ot = _.forwardRef(
129
+ const G = t.forwardRef(
130
130
  ({
131
- className: e,
132
- variant: t = "default",
133
- logo: n,
134
- title: r,
135
- navigation: s,
136
- actions: c,
137
- mobileMenuTrigger: o,
138
- mobileMenu: l,
139
- hideLogo: a,
140
- children: u,
141
- ...S
142
- }, i) => {
143
- const m = n !== void 0 ? n : !a && /* @__PURE__ */ d(
144
- Te,
131
+ className: a,
132
+ variant: r = "default",
133
+ logo: l,
134
+ title: o,
135
+ navigation: d,
136
+ actions: u,
137
+ mobileMenuTrigger: i,
138
+ mobileMenu: C,
139
+ hideLogo: p,
140
+ children: g,
141
+ ...N
142
+ }, f) => {
143
+ const m = l !== void 0 ? l : !p && /* @__PURE__ */ e(
144
+ V,
145
145
  {
146
146
  className: "ee-logo--desktop shrink-0",
147
- textColor: t === "bold" ? "white" : "grey"
147
+ textColor: r === "bold" ? "white" : "grey"
148
148
  }
149
- ), C = n !== void 0 ? n : !a && /* @__PURE__ */ d(
150
- Te,
149
+ ), h = l !== void 0 ? l : !p && /* @__PURE__ */ e(
150
+ V,
151
151
  {
152
152
  className: "ee-logo--mobile shrink-0",
153
- textColor: t === "bold" ? "white" : "grey"
153
+ textColor: r === "bold" ? "white" : "grey"
154
154
  }
155
155
  );
156
- return /* @__PURE__ */ H(
156
+ return /* @__PURE__ */ n(
157
157
  "header",
158
158
  {
159
- ref: i,
160
- className: v(
159
+ ref: f,
160
+ className: s(
161
161
  "kuat-header",
162
- `kuat-header--${t}`,
163
- e
162
+ `kuat-header--${r}`,
163
+ a
164
164
  ),
165
- ...S,
165
+ ...N,
166
166
  children: [
167
- /* @__PURE__ */ H("div", { className: "kuat-header__desktop", children: [
168
- /* @__PURE__ */ H("div", { className: "kuat-header__desktop-left", children: [
169
- m && /* @__PURE__ */ H(_e, { children: [
170
- /* @__PURE__ */ d("div", { className: "shrink-0", children: m }),
171
- /* @__PURE__ */ d(
172
- st,
167
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop", children: [
168
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop-left", children: [
169
+ m && /* @__PURE__ */ n(w, { children: [
170
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: m }),
171
+ /* @__PURE__ */ e(
172
+ T,
173
173
  {
174
174
  orientation: "vertical",
175
175
  className: "kuat-header__separator"
176
176
  }
177
177
  )
178
178
  ] }),
179
- r && /* @__PURE__ */ d("h1", { className: "kuat-header__desktop-title", children: r })
179
+ o && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: o })
180
180
  ] }),
181
- /* @__PURE__ */ H("div", { className: "kuat-header__desktop-right", children: [
182
- s && /* @__PURE__ */ d("nav", { className: "flex items-center", children: s }),
183
- c && /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: c })
181
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop-right", children: [
182
+ d && /* @__PURE__ */ e("nav", { className: "flex items-center", children: d }),
183
+ u && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: u })
184
184
  ] })
185
185
  ] }),
186
- /* @__PURE__ */ H("div", { className: "kuat-header__mobile", children: [
187
- /* @__PURE__ */ H("div", { className: "kuat-header__mobile-left", children: [
188
- C && /* @__PURE__ */ d("div", { className: "shrink-0", children: C }),
189
- r && /* @__PURE__ */ d("p", { className: "kuat-header__mobile-title", children: r })
186
+ /* @__PURE__ */ n("div", { className: "kuat-header__mobile", children: [
187
+ /* @__PURE__ */ n("div", { className: "kuat-header__mobile-left", children: [
188
+ h && /* @__PURE__ */ e("div", { className: "shrink-0", children: h }),
189
+ o && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: o })
190
190
  ] }),
191
- o && /* @__PURE__ */ d("div", { className: "shrink-0", children: o })
191
+ i && /* @__PURE__ */ e("div", { className: "shrink-0", children: i })
192
192
  ] }),
193
- l,
194
- u
193
+ C,
194
+ g
195
195
  ]
196
196
  }
197
197
  );
198
198
  }
199
199
  );
200
- Ot.displayName = "KuatHeader";
201
- function Bn(e) {
202
- const t = (e == null ? void 0 : e.variant) ?? "default";
203
- return v("kuat-header", `kuat-header--${t}`);
204
- }
205
- function Rt(e) {
206
- return Object.prototype.toString.call(e) === "[object Object]";
207
- }
208
- function tt(e) {
209
- return Rt(e) || Array.isArray(e);
210
- }
211
- function Pt() {
212
- return !!(typeof window < "u" && window.document && window.document.createElement);
213
- }
214
- function Re(e, t) {
215
- const n = Object.keys(e), r = Object.keys(t);
216
- if (n.length !== r.length) return !1;
217
- const s = JSON.stringify(Object.keys(e.breakpoints || {})), c = JSON.stringify(Object.keys(t.breakpoints || {}));
218
- return s !== c ? !1 : n.every((o) => {
219
- const l = e[o], a = t[o];
220
- return typeof l == "function" ? `${l}` == `${a}` : !tt(l) || !tt(a) ? l === a : Re(l, a);
221
- });
222
- }
223
- function nt(e) {
224
- return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
225
- }
226
- function Bt(e, t) {
227
- if (e.length !== t.length) return !1;
228
- const n = nt(e), r = nt(t);
229
- return n.every((s, c) => {
230
- const o = r[c];
231
- return Re(s, o);
232
- });
233
- }
234
- function Pe(e) {
235
- return typeof e == "number";
236
- }
237
- function ke(e) {
238
- return typeof e == "string";
239
- }
240
- function Ee(e) {
241
- return typeof e == "boolean";
242
- }
243
- function rt(e) {
244
- return Object.prototype.toString.call(e) === "[object Object]";
245
- }
246
- function M(e) {
247
- return Math.abs(e);
248
- }
249
- function Be(e) {
250
- return Math.sign(e);
251
- }
252
- function pe(e, t) {
253
- return M(e - t);
254
- }
255
- function Ft(e, t) {
256
- if (e === 0 || t === 0 || M(e) <= M(t)) return 0;
257
- const n = pe(M(e), M(t));
258
- return M(n / e);
259
- }
260
- function Gt(e) {
261
- return Math.round(e * 100) / 100;
262
- }
263
- function he(e) {
264
- return ge(e).map(Number);
265
- }
266
- function K(e) {
267
- return e[Se(e)];
268
- }
269
- function Se(e) {
270
- return Math.max(0, e.length - 1);
271
- }
272
- function Fe(e, t) {
273
- return t === Se(e);
274
- }
275
- function ot(e, t = 0) {
276
- return Array.from(Array(e), (n, r) => t + r);
277
- }
278
- function ge(e) {
279
- return Object.keys(e);
280
- }
281
- function ct(e, t) {
282
- return [e, t].reduce((n, r) => (ge(r).forEach((s) => {
283
- const c = n[s], o = r[s], l = rt(c) && rt(o);
284
- n[s] = l ? ct(c, o) : o;
285
- }), n), {});
286
- }
287
- function Ae(e, t) {
288
- return typeof t.MouseEvent < "u" && e instanceof t.MouseEvent;
289
- }
290
- function Zt(e, t) {
291
- const n = {
292
- start: r,
293
- center: s,
294
- end: c
295
- };
296
- function r() {
297
- return 0;
298
- }
299
- function s(a) {
300
- return c(a) / 2;
301
- }
302
- function c(a) {
303
- return t - a;
304
- }
305
- function o(a, u) {
306
- return ke(e) ? n[e](a) : e(t, a, u);
307
- }
308
- return {
309
- measure: o
310
- };
311
- }
312
- function be() {
313
- let e = [];
314
- function t(s, c, o, l = {
315
- passive: !0
316
- }) {
317
- let a;
318
- if ("addEventListener" in s)
319
- s.addEventListener(c, o, l), a = () => s.removeEventListener(c, o, l);
320
- else {
321
- const u = s;
322
- u.addListener(o), a = () => u.removeListener(o);
323
- }
324
- return e.push(a), r;
325
- }
326
- function n() {
327
- e = e.filter((s) => s());
328
- }
329
- const r = {
330
- add: t,
331
- clear: n
332
- };
333
- return r;
334
- }
335
- function Kt(e, t, n, r) {
336
- const s = be(), c = 1e3 / 60;
337
- let o = null, l = 0, a = 0;
338
- function u() {
339
- s.add(e, "visibilitychange", () => {
340
- e.hidden && p();
341
- });
342
- }
343
- function S() {
344
- C(), s.clear();
345
- }
346
- function i(b) {
347
- if (!a) return;
348
- o || (o = b, n(), n());
349
- const f = b - o;
350
- for (o = b, l += f; l >= c; )
351
- n(), l -= c;
352
- const g = l / c;
353
- r(g), a && (a = t.requestAnimationFrame(i));
354
- }
355
- function m() {
356
- a || (a = t.requestAnimationFrame(i));
357
- }
358
- function C() {
359
- t.cancelAnimationFrame(a), o = null, l = 0, a = 0;
360
- }
361
- function p() {
362
- o = null, l = 0;
363
- }
364
- return {
365
- init: u,
366
- destroy: S,
367
- start: m,
368
- stop: C,
369
- update: n,
370
- render: r
371
- };
372
- }
373
- function Ut(e, t) {
374
- const n = t === "rtl", r = e === "y", s = r ? "y" : "x", c = r ? "x" : "y", o = !r && n ? -1 : 1, l = S(), a = i();
375
- function u(p) {
376
- const {
377
- height: h,
378
- width: b
379
- } = p;
380
- return r ? h : b;
381
- }
382
- function S() {
383
- return r ? "top" : n ? "right" : "left";
384
- }
385
- function i() {
386
- return r ? "bottom" : n ? "left" : "right";
387
- }
388
- function m(p) {
389
- return p * o;
390
- }
391
- return {
392
- scroll: s,
393
- cross: c,
394
- startEdge: l,
395
- endEdge: a,
396
- measureSize: u,
397
- direction: m
398
- };
399
- }
400
- function se(e = 0, t = 0) {
401
- const n = M(e - t);
402
- function r(u) {
403
- return u < e;
404
- }
405
- function s(u) {
406
- return u > t;
407
- }
408
- function c(u) {
409
- return r(u) || s(u);
410
- }
411
- function o(u) {
412
- return c(u) ? r(u) ? e : t : u;
413
- }
414
- function l(u) {
415
- return n ? u - n * Math.ceil((u - t) / n) : u;
416
- }
417
- return {
418
- length: n,
419
- max: t,
420
- min: e,
421
- constrain: o,
422
- reachedAny: c,
423
- reachedMax: s,
424
- reachedMin: r,
425
- removeOffset: l
426
- };
427
- }
428
- function at(e, t, n) {
429
- const {
430
- constrain: r
431
- } = se(0, e), s = e + 1;
432
- let c = o(t);
433
- function o(m) {
434
- return n ? M((s + m) % s) : r(m);
435
- }
436
- function l() {
437
- return c;
438
- }
439
- function a(m) {
440
- return c = o(m), i;
441
- }
442
- function u(m) {
443
- return S().set(l() + m);
444
- }
445
- function S() {
446
- return at(e, l(), n);
447
- }
448
- const i = {
449
- get: l,
450
- set: a,
451
- add: u,
452
- clone: S
453
- };
454
- return i;
455
- }
456
- function jt(e, t, n, r, s, c, o, l, a, u, S, i, m, C, p, h, b, f, g) {
457
- const {
458
- cross: N,
459
- direction: I
460
- } = e, T = ["INPUT", "SELECT", "TEXTAREA"], x = {
461
- passive: !1
462
- }, E = be(), L = be(), w = se(50, 225).constrain(C.measure(20)), V = {
463
- mouse: 300,
464
- touch: 400
465
- }, k = {
466
- mouse: 500,
467
- touch: 600
468
- }, F = p ? 43 : 25;
469
- let U = !1, j = 0, z = 0, ne = !1, ee = !1, X = !1, Y = !1;
470
- function le(y) {
471
- if (!g) return;
472
- function A(B) {
473
- (Ee(g) || g(y, B)) && de(B);
474
- }
475
- const O = t;
476
- E.add(O, "dragstart", (B) => B.preventDefault(), x).add(O, "touchmove", () => {
477
- }, x).add(O, "touchend", () => {
478
- }).add(O, "touchstart", A).add(O, "mousedown", A).add(O, "touchcancel", P).add(O, "contextmenu", P).add(O, "click", J, !0);
479
- }
480
- function $() {
481
- E.clear(), L.clear();
482
- }
483
- function ce() {
484
- const y = Y ? n : t;
485
- L.add(y, "touchmove", G, x).add(y, "touchend", P).add(y, "mousemove", G, x).add(y, "mouseup", P);
486
- }
487
- function ae(y) {
488
- const A = y.nodeName || "";
489
- return T.includes(A);
490
- }
491
- function Q() {
492
- return (p ? k : V)[Y ? "mouse" : "touch"];
493
- }
494
- function ue(y, A) {
495
- const O = i.add(Be(y) * -1), B = S.byDistance(y, !p).distance;
496
- return p || M(y) < w ? B : b && A ? B * 0.5 : S.byIndex(O.get(), 0).distance;
497
- }
498
- function de(y) {
499
- const A = Ae(y, r);
500
- Y = A, X = p && A && !y.buttons && U, U = pe(s.get(), o.get()) >= 2, !(A && y.button !== 0) && (ae(y.target) || (ne = !0, c.pointerDown(y), u.useFriction(0).useDuration(0), s.set(o), ce(), j = c.readPoint(y), z = c.readPoint(y, N), m.emit("pointerDown")));
501
- }
502
- function G(y) {
503
- if (!Ae(y, r) && y.touches.length >= 2) return P(y);
504
- const O = c.readPoint(y), B = c.readPoint(y, N), q = pe(O, j), W = pe(B, z);
505
- if (!ee && !Y && (!y.cancelable || (ee = q > W, !ee)))
506
- return P(y);
507
- const re = c.pointerMove(y);
508
- q > h && (X = !0), u.useFriction(0.3).useDuration(0.75), l.start(), s.add(I(re)), y.preventDefault();
509
- }
510
- function P(y) {
511
- const O = S.byDistance(0, !1).index !== i.get(), B = c.pointerUp(y) * Q(), q = ue(I(B), O), W = Ft(B, q), re = F - 10 * W, te = f + W / 50;
512
- ee = !1, ne = !1, L.clear(), u.useDuration(re).useFriction(te), a.distance(q, !p), Y = !1, m.emit("pointerUp");
513
- }
514
- function J(y) {
515
- X && (y.stopPropagation(), y.preventDefault(), X = !1);
516
- }
517
- function Z() {
518
- return ne;
519
- }
520
- return {
521
- init: le,
522
- destroy: $,
523
- pointerDown: Z
524
- };
525
- }
526
- function zt(e, t) {
527
- let r, s;
528
- function c(i) {
529
- return i.timeStamp;
530
- }
531
- function o(i, m) {
532
- const p = `client${(m || e.scroll) === "x" ? "X" : "Y"}`;
533
- return (Ae(i, t) ? i : i.touches[0])[p];
534
- }
535
- function l(i) {
536
- return r = i, s = i, o(i);
537
- }
538
- function a(i) {
539
- const m = o(i) - o(s), C = c(i) - c(r) > 170;
540
- return s = i, C && (r = i), m;
541
- }
542
- function u(i) {
543
- if (!r || !s) return 0;
544
- const m = o(s) - o(r), C = c(i) - c(r), p = c(i) - c(s) > 170, h = m / C;
545
- return C && !p && M(h) > 0.1 ? h : 0;
546
- }
547
- return {
548
- pointerDown: l,
549
- pointerMove: a,
550
- pointerUp: u,
551
- readPoint: o
552
- };
553
- }
554
- function $t() {
555
- function e(n) {
556
- const {
557
- offsetTop: r,
558
- offsetLeft: s,
559
- offsetWidth: c,
560
- offsetHeight: o
561
- } = n;
562
- return {
563
- top: r,
564
- right: s + c,
565
- bottom: r + o,
566
- left: s,
567
- width: c,
568
- height: o
569
- };
570
- }
571
- return {
572
- measure: e
573
- };
574
- }
575
- function qt(e) {
576
- function t(r) {
577
- return e * (r / 100);
578
- }
579
- return {
580
- measure: t
581
- };
582
- }
583
- function Xt(e, t, n, r, s, c, o) {
584
- const l = [e].concat(r);
585
- let a, u, S = [], i = !1;
586
- function m(b) {
587
- return s.measureSize(o.measure(b));
588
- }
589
- function C(b) {
590
- if (!c) return;
591
- u = m(e), S = r.map(m);
592
- function f(g) {
593
- for (const N of g) {
594
- if (i) return;
595
- const I = N.target === e, T = r.indexOf(N.target), x = I ? u : S[T], E = m(I ? e : r[T]);
596
- if (M(E - x) >= 0.5) {
597
- b.reInit(), t.emit("resize");
598
- break;
599
- }
600
- }
601
- }
602
- a = new ResizeObserver((g) => {
603
- (Ee(c) || c(b, g)) && f(g);
604
- }), n.requestAnimationFrame(() => {
605
- l.forEach((g) => a.observe(g));
606
- });
607
- }
608
- function p() {
609
- i = !0, a && a.disconnect();
610
- }
611
- return {
612
- init: C,
613
- destroy: p
614
- };
615
- }
616
- function Yt(e, t, n, r, s, c) {
617
- let o = 0, l = 0, a = s, u = c, S = e.get(), i = 0;
618
- function m() {
619
- const x = r.get() - e.get(), E = !a;
620
- let L = 0;
621
- return E ? (o = 0, n.set(r), e.set(r), L = x) : (n.set(e), o += x / a, o *= u, S += o, e.add(o), L = S - i), l = Be(L), i = S, T;
622
- }
623
- function C() {
624
- const x = r.get() - t.get();
625
- return M(x) < 1e-3;
626
- }
627
- function p() {
628
- return a;
629
- }
630
- function h() {
631
- return l;
632
- }
633
- function b() {
634
- return o;
635
- }
636
- function f() {
637
- return N(s);
638
- }
639
- function g() {
640
- return I(c);
641
- }
642
- function N(x) {
643
- return a = x, T;
644
- }
645
- function I(x) {
646
- return u = x, T;
647
- }
648
- const T = {
649
- direction: h,
650
- duration: p,
651
- velocity: b,
652
- seek: m,
653
- settled: C,
654
- useBaseFriction: g,
655
- useBaseDuration: f,
656
- useFriction: I,
657
- useDuration: N
658
- };
659
- return T;
660
- }
661
- function Qt(e, t, n, r, s) {
662
- const c = s.measure(10), o = s.measure(50), l = se(0.1, 0.99);
663
- let a = !1;
664
- function u() {
665
- return !(a || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
666
- }
667
- function S(C) {
668
- if (!u()) return;
669
- const p = e.reachedMin(t.get()) ? "min" : "max", h = M(e[p] - t.get()), b = n.get() - t.get(), f = l.constrain(h / o);
670
- n.subtract(b * f), !C && M(b) < c && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
671
- }
672
- function i(C) {
673
- a = !C;
674
- }
675
- return {
676
- shouldConstrain: u,
677
- constrain: S,
678
- toggleActive: i
679
- };
680
- }
681
- function Jt(e, t, n, r, s) {
682
- const c = se(-t + e, 0), o = i(), l = S(), a = m();
683
- function u(p, h) {
684
- return pe(p, h) <= 1;
685
- }
686
- function S() {
687
- const p = o[0], h = K(o), b = o.lastIndexOf(p), f = o.indexOf(h) + 1;
688
- return se(b, f);
689
- }
690
- function i() {
691
- return n.map((p, h) => {
692
- const {
693
- min: b,
694
- max: f
695
- } = c, g = c.constrain(p), N = !h, I = Fe(n, h);
696
- return N ? f : I || u(b, g) ? b : u(f, g) ? f : g;
697
- }).map((p) => parseFloat(p.toFixed(3)));
698
- }
699
- function m() {
700
- if (t <= e + s) return [c.max];
701
- if (r === "keepSnaps") return o;
702
- const {
703
- min: p,
704
- max: h
705
- } = l;
706
- return o.slice(p, h);
707
- }
708
- return {
709
- snapsContained: a,
710
- scrollContainLimit: l
711
- };
712
- }
713
- function Wt(e, t, n) {
714
- const r = t[0], s = n ? r - e : K(t);
715
- return {
716
- limit: se(s, r)
717
- };
718
- }
719
- function en(e, t, n, r) {
720
- const c = t.min + 0.1, o = t.max + 0.1, {
721
- reachedMin: l,
722
- reachedMax: a
723
- } = se(c, o);
724
- function u(m) {
725
- return m === 1 ? a(n.get()) : m === -1 ? l(n.get()) : !1;
726
- }
727
- function S(m) {
728
- if (!u(m)) return;
729
- const C = e * (m * -1);
730
- r.forEach((p) => p.add(C));
731
- }
732
- return {
733
- loop: S
734
- };
735
- }
736
- function tn(e) {
737
- const {
738
- max: t,
739
- length: n
740
- } = e;
741
- function r(c) {
742
- const o = c - t;
743
- return n ? o / -n : 0;
744
- }
745
- return {
746
- get: r
747
- };
748
- }
749
- function nn(e, t, n, r, s) {
750
- const {
751
- startEdge: c,
752
- endEdge: o
753
- } = e, {
754
- groupSlides: l
755
- } = s, a = i().map(t.measure), u = m(), S = C();
756
- function i() {
757
- return l(r).map((h) => K(h)[o] - h[0][c]).map(M);
758
- }
759
- function m() {
760
- return r.map((h) => n[c] - h[c]).map((h) => -M(h));
761
- }
762
- function C() {
763
- return l(u).map((h) => h[0]).map((h, b) => h + a[b]);
764
- }
765
- return {
766
- snaps: u,
767
- snapsAligned: S
768
- };
769
- }
770
- function rn(e, t, n, r, s, c) {
771
- const {
772
- groupSlides: o
773
- } = s, {
774
- min: l,
775
- max: a
776
- } = r, u = S();
777
- function S() {
778
- const m = o(c), C = !e || t === "keepSnaps";
779
- return n.length === 1 ? [c] : C ? m : m.slice(l, a).map((p, h, b) => {
780
- const f = !h, g = Fe(b, h);
781
- if (f) {
782
- const N = K(b[0]) + 1;
783
- return ot(N);
784
- }
785
- if (g) {
786
- const N = Se(c) - K(b)[0] + 1;
787
- return ot(N, K(b)[0]);
788
- }
789
- return p;
790
- });
791
- }
792
- return {
793
- slideRegistry: u
794
- };
795
- }
796
- function on(e, t, n, r, s) {
797
- const {
798
- reachedAny: c,
799
- removeOffset: o,
800
- constrain: l
801
- } = r;
802
- function a(p) {
803
- return p.concat().sort((h, b) => M(h) - M(b))[0];
804
- }
805
- function u(p) {
806
- const h = e ? o(p) : l(p), b = t.map((g, N) => ({
807
- diff: S(g - h, 0),
808
- index: N
809
- })).sort((g, N) => M(g.diff) - M(N.diff)), {
810
- index: f
811
- } = b[0];
812
- return {
813
- index: f,
814
- distance: h
815
- };
816
- }
817
- function S(p, h) {
818
- const b = [p, p + n, p - n];
819
- if (!e) return p;
820
- if (!h) return a(b);
821
- const f = b.filter((g) => Be(g) === h);
822
- return f.length ? a(f) : K(b) - n;
823
- }
824
- function i(p, h) {
825
- const b = t[p] - s.get(), f = S(b, h);
826
- return {
827
- index: p,
828
- distance: f
829
- };
830
- }
831
- function m(p, h) {
832
- const b = s.get() + p, {
833
- index: f,
834
- distance: g
835
- } = u(b), N = !e && c(b);
836
- if (!h || N) return {
837
- index: f,
838
- distance: p
839
- };
840
- const I = t[f] - g, T = p + S(I, 0);
841
- return {
842
- index: f,
843
- distance: T
844
- };
845
- }
846
- return {
847
- byDistance: m,
848
- byIndex: i,
849
- shortcut: S
850
- };
851
- }
852
- function sn(e, t, n, r, s, c, o) {
853
- function l(i) {
854
- const m = i.distance, C = i.index !== t.get();
855
- c.add(m), m && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), C && (n.set(t.get()), t.set(i.index), o.emit("select"));
856
- }
857
- function a(i, m) {
858
- const C = s.byDistance(i, m);
859
- l(C);
860
- }
861
- function u(i, m) {
862
- const C = t.clone().set(i), p = s.byIndex(C.get(), m);
863
- l(p);
864
- }
865
- return {
866
- distance: a,
867
- index: u
868
- };
200
+ G.displayName = "KuatHeader";
201
+ function de(a) {
202
+ const r = (a == null ? void 0 : a.variant) ?? "default";
203
+ return s("kuat-header", `kuat-header--${r}`);
869
204
  }
870
- function cn(e, t, n, r, s, c, o, l) {
871
- const a = {
872
- passive: !0,
873
- capture: !0
874
- };
875
- let u = 0;
876
- function S(C) {
877
- if (!l) return;
878
- function p(h) {
879
- if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
880
- o.emit("slideFocusStart"), e.scrollLeft = 0;
881
- const g = n.findIndex((N) => N.includes(h));
882
- Pe(g) && (s.useDuration(0), r.index(g, 0), o.emit("slideFocus"));
883
- }
884
- c.add(document, "keydown", i, !1), t.forEach((h, b) => {
885
- c.add(h, "focus", (f) => {
886
- (Ee(l) || l(C, f)) && p(b);
887
- }, a);
888
- });
889
- }
890
- function i(C) {
891
- C.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
892
- }
893
- return {
894
- init: S
895
- };
896
- }
897
- function me(e) {
898
- let t = e;
899
- function n() {
900
- return t;
901
- }
902
- function r(a) {
903
- t = o(a);
904
- }
905
- function s(a) {
906
- t += o(a);
907
- }
908
- function c(a) {
909
- t -= o(a);
910
- }
911
- function o(a) {
912
- return Pe(a) ? a : a.get();
913
- }
914
- return {
915
- get: n,
916
- set: r,
917
- add: s,
918
- subtract: c
919
- };
920
- }
921
- function it(e, t) {
922
- const n = e.scroll === "x" ? o : l, r = t.style;
923
- let s = null, c = !1;
924
- function o(m) {
925
- return `translate3d(${m}px,0px,0px)`;
926
- }
927
- function l(m) {
928
- return `translate3d(0px,${m}px,0px)`;
929
- }
930
- function a(m) {
931
- if (c) return;
932
- const C = Gt(e.direction(m));
933
- C !== s && (r.transform = n(C), s = C);
934
- }
935
- function u(m) {
936
- c = !m;
937
- }
938
- function S() {
939
- c || (r.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
940
- }
941
- return {
942
- clear: S,
943
- to: a,
944
- toggleActive: u
945
- };
946
- }
947
- function an(e, t, n, r, s, c, o, l, a) {
948
- const S = he(s), i = he(s).reverse(), m = f().concat(g());
949
- function C(E, L) {
950
- return E.reduce((w, V) => w - s[V], L);
951
- }
952
- function p(E, L) {
953
- return E.reduce((w, V) => C(w, L) > 0 ? w.concat([V]) : w, []);
954
- }
955
- function h(E) {
956
- return c.map((L, w) => ({
957
- start: L - r[w] + 0.5 + E,
958
- end: L + t - 0.5 + E
959
- }));
960
- }
961
- function b(E, L, w) {
962
- const V = h(L);
963
- return E.map((k) => {
964
- const F = w ? 0 : -n, U = w ? n : 0, j = w ? "end" : "start", z = V[k][j];
965
- return {
966
- index: k,
967
- loopPoint: z,
968
- slideLocation: me(-1),
969
- translate: it(e, a[k]),
970
- target: () => l.get() > z ? F : U
971
- };
972
- });
973
- }
974
- function f() {
975
- const E = o[0], L = p(i, E);
976
- return b(L, n, !1);
977
- }
978
- function g() {
979
- const E = t - o[0] - 1, L = p(S, E);
980
- return b(L, -n, !0);
981
- }
982
- function N() {
983
- return m.every(({
984
- index: E
985
- }) => {
986
- const L = S.filter((w) => w !== E);
987
- return C(L, t) <= 0.1;
988
- });
989
- }
990
- function I() {
991
- m.forEach((E) => {
992
- const {
993
- target: L,
994
- translate: w,
995
- slideLocation: V
996
- } = E, k = L();
997
- k !== V.get() && (w.to(k), V.set(k));
998
- });
999
- }
1000
- function T() {
1001
- m.forEach((E) => E.translate.clear());
1002
- }
1003
- return {
1004
- canLoop: N,
1005
- clear: T,
1006
- loop: I,
1007
- loopPoints: m
1008
- };
1009
- }
1010
- function ln(e, t, n) {
1011
- let r, s = !1;
1012
- function c(a) {
1013
- if (!n) return;
1014
- function u(S) {
1015
- for (const i of S)
1016
- if (i.type === "childList") {
1017
- a.reInit(), t.emit("slidesChanged");
1018
- break;
1019
- }
1020
- }
1021
- r = new MutationObserver((S) => {
1022
- s || (Ee(n) || n(a, S)) && u(S);
1023
- }), r.observe(e, {
1024
- childList: !0
1025
- });
1026
- }
1027
- function o() {
1028
- r && r.disconnect(), s = !0;
1029
- }
1030
- return {
1031
- init: c,
1032
- destroy: o
1033
- };
1034
- }
1035
- function un(e, t, n, r) {
1036
- const s = {};
1037
- let c = null, o = null, l, a = !1;
1038
- function u() {
1039
- l = new IntersectionObserver((p) => {
1040
- a || (p.forEach((h) => {
1041
- const b = t.indexOf(h.target);
1042
- s[b] = h;
1043
- }), c = null, o = null, n.emit("slidesInView"));
1044
- }, {
1045
- root: e.parentElement,
1046
- threshold: r
1047
- }), t.forEach((p) => l.observe(p));
1048
- }
1049
- function S() {
1050
- l && l.disconnect(), a = !0;
1051
- }
1052
- function i(p) {
1053
- return ge(s).reduce((h, b) => {
1054
- const f = parseInt(b), {
1055
- isIntersecting: g
1056
- } = s[f];
1057
- return (p && g || !p && !g) && h.push(f), h;
1058
- }, []);
1059
- }
1060
- function m(p = !0) {
1061
- if (p && c) return c;
1062
- if (!p && o) return o;
1063
- const h = i(p);
1064
- return p && (c = h), p || (o = h), h;
1065
- }
1066
- return {
1067
- init: u,
1068
- destroy: S,
1069
- get: m
1070
- };
1071
- }
1072
- function dn(e, t, n, r, s, c) {
1073
- const {
1074
- measureSize: o,
1075
- startEdge: l,
1076
- endEdge: a
1077
- } = e, u = n[0] && s, S = p(), i = h(), m = n.map(o), C = b();
1078
- function p() {
1079
- if (!u) return 0;
1080
- const g = n[0];
1081
- return M(t[l] - g[l]);
1082
- }
1083
- function h() {
1084
- if (!u) return 0;
1085
- const g = c.getComputedStyle(K(r));
1086
- return parseFloat(g.getPropertyValue(`margin-${a}`));
1087
- }
1088
- function b() {
1089
- return n.map((g, N, I) => {
1090
- const T = !N, x = Fe(I, N);
1091
- return T ? m[N] + S : x ? m[N] + i : I[N + 1][l] - g[l];
1092
- }).map(M);
1093
- }
1094
- return {
1095
- slideSizes: m,
1096
- slideSizesWithGaps: C,
1097
- startGap: S,
1098
- endGap: i
1099
- };
1100
- }
1101
- function fn(e, t, n, r, s, c, o, l, a) {
1102
- const {
1103
- startEdge: u,
1104
- endEdge: S,
1105
- direction: i
1106
- } = e, m = Pe(n);
1107
- function C(f, g) {
1108
- return he(f).filter((N) => N % g === 0).map((N) => f.slice(N, N + g));
1109
- }
1110
- function p(f) {
1111
- return f.length ? he(f).reduce((g, N, I) => {
1112
- const T = K(g) || 0, x = T === 0, E = N === Se(f), L = s[u] - c[T][u], w = s[u] - c[N][S], V = !r && x ? i(o) : 0, k = !r && E ? i(l) : 0, F = M(w - k - (L + V));
1113
- return I && F > t + a && g.push(N), E && g.push(f.length), g;
1114
- }, []).map((g, N, I) => {
1115
- const T = Math.max(I[N - 1] || 0);
1116
- return f.slice(T, g);
1117
- }) : [];
1118
- }
1119
- function h(f) {
1120
- return m ? C(f, n) : p(f);
1121
- }
1122
- return {
1123
- groupSlides: h
1124
- };
1125
- }
1126
- function mn(e, t, n, r, s, c, o) {
1127
- const {
1128
- align: l,
1129
- axis: a,
1130
- direction: u,
1131
- startIndex: S,
1132
- loop: i,
1133
- duration: m,
1134
- dragFree: C,
1135
- dragThreshold: p,
1136
- inViewThreshold: h,
1137
- slidesToScroll: b,
1138
- skipSnaps: f,
1139
- containScroll: g,
1140
- watchResize: N,
1141
- watchSlides: I,
1142
- watchDrag: T,
1143
- watchFocus: x
1144
- } = c, E = 2, L = $t(), w = L.measure(t), V = n.map(L.measure), k = Ut(a, u), F = k.measureSize(w), U = qt(F), j = Zt(l, F), z = !i && !!g, ne = i || !!g, {
1145
- slideSizes: ee,
1146
- slideSizesWithGaps: X,
1147
- startGap: Y,
1148
- endGap: le
1149
- } = dn(k, w, V, n, ne, s), $ = fn(k, F, b, i, w, V, Y, le, E), {
1150
- snaps: ce,
1151
- snapsAligned: ae
1152
- } = nn(k, j, w, V, $), Q = -K(ce) + K(X), {
1153
- snapsContained: ue,
1154
- scrollContainLimit: de
1155
- } = Jt(F, Q, ae, g, E), G = z ? ue : ae, {
1156
- limit: P
1157
- } = Wt(Q, G, i), J = at(Se(G), S, i), Z = J.clone(), D = he(n), y = ({
1158
- dragHandler: ie,
1159
- scrollBody: ve,
1160
- scrollBounds: Ie,
1161
- options: {
1162
- loop: Ne
1163
- }
1164
- }) => {
1165
- Ne || Ie.constrain(ie.pointerDown()), ve.seek();
1166
- }, A = ({
1167
- scrollBody: ie,
1168
- translate: ve,
1169
- location: Ie,
1170
- offsetLocation: Ne,
1171
- previousLocation: Lt,
1172
- scrollLooper: wt,
1173
- slideLooper: xt,
1174
- dragHandler: vt,
1175
- animation: It,
1176
- eventHandler: $e,
1177
- scrollBounds: Ht,
1178
- options: {
1179
- loop: qe
1180
- }
1181
- }, Xe) => {
1182
- const Ye = ie.settled(), Tt = !Ht.shouldConstrain(), Qe = qe ? Ye : Ye && Tt, Je = Qe && !vt.pointerDown();
1183
- Je && It.stop();
1184
- const kt = Ie.get() * Xe + Lt.get() * (1 - Xe);
1185
- Ne.set(kt), qe && (wt.loop(ie.direction()), xt.loop()), ve.to(Ne.get()), Je && $e.emit("settle"), Qe || $e.emit("scroll");
1186
- }, O = Kt(r, s, () => y(xe), (ie) => A(xe, ie)), B = 0.68, q = G[J.get()], W = me(q), re = me(q), te = me(q), oe = me(q), fe = Yt(W, te, re, oe, m, B), Le = on(i, G, Q, P, oe), we = sn(O, J, Z, fe, Le, oe, o), Ue = tn(P), je = be(), _t = un(t, n, o, h), {
1187
- slideRegistry: ze
1188
- } = rn(z, g, G, de, $, D), Et = cn(e, n, ze, we, fe, je, o, x), xe = {
1189
- ownerDocument: r,
1190
- ownerWindow: s,
1191
- eventHandler: o,
1192
- containerRect: w,
1193
- slideRects: V,
1194
- animation: O,
1195
- axis: k,
1196
- dragHandler: jt(k, e, r, s, oe, zt(k, s), W, O, we, fe, Le, J, o, U, C, p, f, B, T),
1197
- eventStore: je,
1198
- percentOfView: U,
1199
- index: J,
1200
- indexPrevious: Z,
1201
- limit: P,
1202
- location: W,
1203
- offsetLocation: te,
1204
- previousLocation: re,
1205
- options: c,
1206
- resizeHandler: Xt(t, o, s, n, k, N, L),
1207
- scrollBody: fe,
1208
- scrollBounds: Qt(P, te, oe, fe, U),
1209
- scrollLooper: en(Q, P, te, [W, te, re, oe]),
1210
- scrollProgress: Ue,
1211
- scrollSnapList: G.map(Ue.get),
1212
- scrollSnaps: G,
1213
- scrollTarget: Le,
1214
- scrollTo: we,
1215
- slideLooper: an(k, F, Q, ee, X, ce, G, te, n),
1216
- slideFocus: Et,
1217
- slidesHandler: ln(t, o, I),
1218
- slidesInView: _t,
1219
- slideIndexes: D,
1220
- slideRegistry: ze,
1221
- slidesToScroll: $,
1222
- target: oe,
1223
- translate: it(k, t)
1224
- };
1225
- return xe;
1226
- }
1227
- function pn() {
1228
- let e = {}, t;
1229
- function n(u) {
1230
- t = u;
1231
- }
1232
- function r(u) {
1233
- return e[u] || [];
1234
- }
1235
- function s(u) {
1236
- return r(u).forEach((S) => S(t, u)), a;
1237
- }
1238
- function c(u, S) {
1239
- return e[u] = r(u).concat([S]), a;
1240
- }
1241
- function o(u, S) {
1242
- return e[u] = r(u).filter((i) => i !== S), a;
1243
- }
1244
- function l() {
1245
- e = {};
1246
- }
1247
- const a = {
1248
- init: n,
1249
- emit: s,
1250
- off: o,
1251
- on: c,
1252
- clear: l
1253
- };
1254
- return a;
1255
- }
1256
- const hn = {
1257
- align: "center",
1258
- axis: "x",
1259
- container: null,
1260
- slides: null,
1261
- containScroll: "trimSnaps",
1262
- direction: "ltr",
1263
- slidesToScroll: 1,
1264
- inViewThreshold: 0,
1265
- breakpoints: {},
1266
- dragFree: !1,
1267
- dragThreshold: 10,
1268
- loop: !1,
1269
- skipSnaps: !1,
1270
- duration: 25,
1271
- startIndex: 0,
1272
- active: !0,
1273
- watchDrag: !0,
1274
- watchResize: !0,
1275
- watchSlides: !0,
1276
- watchFocus: !0
1277
- };
1278
- function gn(e) {
1279
- function t(c, o) {
1280
- return ct(c, o || {});
1281
- }
1282
- function n(c) {
1283
- const o = c.breakpoints || {}, l = ge(o).filter((a) => e.matchMedia(a).matches).map((a) => o[a]).reduce((a, u) => t(a, u), {});
1284
- return t(c, l);
1285
- }
1286
- function r(c) {
1287
- return c.map((o) => ge(o.breakpoints || {})).reduce((o, l) => o.concat(l), []).map(e.matchMedia);
1288
- }
1289
- return {
1290
- mergeOptions: t,
1291
- optionsAtMedia: n,
1292
- optionsMediaQueries: r
1293
- };
1294
- }
1295
- function bn(e) {
1296
- let t = [];
1297
- function n(c, o) {
1298
- return t = o.filter(({
1299
- options: l
1300
- }) => e.optionsAtMedia(l).active !== !1), t.forEach((l) => l.init(c, e)), o.reduce((l, a) => Object.assign(l, {
1301
- [a.name]: a
1302
- }), {});
1303
- }
1304
- function r() {
1305
- t = t.filter((c) => c.destroy());
1306
- }
1307
- return {
1308
- init: n,
1309
- destroy: r
1310
- };
1311
- }
1312
- function ye(e, t, n) {
1313
- const r = e.ownerDocument, s = r.defaultView, c = gn(s), o = bn(c), l = be(), a = pn(), {
1314
- mergeOptions: u,
1315
- optionsAtMedia: S,
1316
- optionsMediaQueries: i
1317
- } = c, {
1318
- on: m,
1319
- off: C,
1320
- emit: p
1321
- } = a, h = k;
1322
- let b = !1, f, g = u(hn, ye.globalOptions), N = u(g), I = [], T, x, E;
1323
- function L() {
1324
- const {
1325
- container: D,
1326
- slides: y
1327
- } = N;
1328
- x = (ke(D) ? e.querySelector(D) : D) || e.children[0];
1329
- const O = ke(y) ? x.querySelectorAll(y) : y;
1330
- E = [].slice.call(O || x.children);
1331
- }
1332
- function w(D) {
1333
- const y = mn(e, x, E, r, s, D, a);
1334
- if (D.loop && !y.slideLooper.canLoop()) {
1335
- const A = Object.assign({}, D, {
1336
- loop: !1
1337
- });
1338
- return w(A);
1339
- }
1340
- return y;
1341
- }
1342
- function V(D, y) {
1343
- b || (g = u(g, D), N = S(g), I = y || I, L(), f = w(N), i([g, ...I.map(({
1344
- options: A
1345
- }) => A)]).forEach((A) => l.add(A, "change", k)), N.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(Z), f.eventHandler.init(Z), f.resizeHandler.init(Z), f.slidesHandler.init(Z), f.options.loop && f.slideLooper.loop(), x.offsetParent && E.length && f.dragHandler.init(Z), T = o.init(Z, I)));
1346
- }
1347
- function k(D, y) {
1348
- const A = $();
1349
- F(), V(u({
1350
- startIndex: A
1351
- }, D), y), a.emit("reInit");
1352
- }
1353
- function F() {
1354
- f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), o.destroy(), l.clear();
1355
- }
1356
- function U() {
1357
- b || (b = !0, l.clear(), F(), a.emit("destroy"), a.clear());
1358
- }
1359
- function j(D, y, A) {
1360
- !N.active || b || (f.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : N.duration), f.scrollTo.index(D, A || 0));
1361
- }
1362
- function z(D) {
1363
- const y = f.index.add(1).get();
1364
- j(y, D, -1);
1365
- }
1366
- function ne(D) {
1367
- const y = f.index.add(-1).get();
1368
- j(y, D, 1);
1369
- }
1370
- function ee() {
1371
- return f.index.add(1).get() !== $();
1372
- }
1373
- function X() {
1374
- return f.index.add(-1).get() !== $();
1375
- }
1376
- function Y() {
1377
- return f.scrollSnapList;
1378
- }
1379
- function le() {
1380
- return f.scrollProgress.get(f.offsetLocation.get());
1381
- }
1382
- function $() {
1383
- return f.index.get();
1384
- }
1385
- function ce() {
1386
- return f.indexPrevious.get();
1387
- }
1388
- function ae() {
1389
- return f.slidesInView.get();
1390
- }
1391
- function Q() {
1392
- return f.slidesInView.get(!1);
1393
- }
1394
- function ue() {
1395
- return T;
1396
- }
1397
- function de() {
1398
- return f;
1399
- }
1400
- function G() {
1401
- return e;
1402
- }
1403
- function P() {
1404
- return x;
1405
- }
1406
- function J() {
1407
- return E;
1408
- }
1409
- const Z = {
1410
- canScrollNext: ee,
1411
- canScrollPrev: X,
1412
- containerNode: P,
1413
- internalEngine: de,
1414
- destroy: U,
1415
- off: C,
1416
- on: m,
1417
- emit: p,
1418
- plugins: ue,
1419
- previousScrollSnap: ce,
1420
- reInit: h,
1421
- rootNode: G,
1422
- scrollNext: z,
1423
- scrollPrev: ne,
1424
- scrollProgress: le,
1425
- scrollSnapList: Y,
1426
- scrollTo: j,
1427
- selectedScrollSnap: $,
1428
- slideNodes: J,
1429
- slidesInView: ae,
1430
- slidesNotInView: Q
1431
- };
1432
- return V(t, n), setTimeout(() => a.emit("init"), 0), Z;
1433
- }
1434
- ye.globalOptions = void 0;
1435
- function Ge(e = {}, t = []) {
1436
- const n = We(e), r = We(t), [s, c] = et(), [o, l] = et(), a = At(() => {
1437
- s && s.reInit(n.current, r.current);
1438
- }, [s]);
1439
- return He(() => {
1440
- Re(n.current, e) || (n.current = e, a());
1441
- }, [e, a]), He(() => {
1442
- Bt(r.current, t) || (r.current = t, a());
1443
- }, [t, a]), He(() => {
1444
- if (Pt() && o) {
1445
- ye.globalOptions = Ge.globalOptions;
1446
- const u = ye(o, n.current, r.current);
1447
- return c(u), () => u.destroy();
1448
- } else
1449
- c(void 0);
1450
- }, [o, c]), [l, s];
1451
- }
1452
- Ge.globalOptions = void 0;
1453
- const lt = _.createContext(void 0);
1454
- function Ce() {
1455
- const e = _.useContext(lt);
1456
- if (!e)
1457
- throw new Error("Carousel components must be used within a Carousel.");
1458
- return e;
1459
- }
1460
- const ut = _.forwardRef(
205
+ const ce = ["service", "demo"], ie = ["light", "dark"], U = t.forwardRef(
1461
206
  ({
1462
- opts: e,
1463
- basis: t = 1,
1464
- orientation: n = "horizontal",
1465
- plugins: r,
1466
- setApi: s,
1467
- events: c,
1468
- className: o,
1469
- children: l,
1470
- ...a
1471
- }, u) => {
1472
- const [S, i] = Ge(
1473
- {
1474
- ...e,
1475
- axis: n === "horizontal" ? "x" : "y"
1476
- },
1477
- r
1478
- ), [m, C] = _.useState(!1), [p, h] = _.useState(!1), b = _.useCallback(() => {
1479
- i == null || i.scrollPrev();
1480
- }, [i]), f = _.useCallback(() => {
1481
- i == null || i.scrollNext();
1482
- }, [i]), g = _.useCallback((E) => {
1483
- E && (C(E.canScrollPrev()), h(E.canScrollNext()));
1484
- }, []);
1485
- _.useEffect(() => {
1486
- if (i)
1487
- return s == null || s(i), g(i), i.on("reInit", g).on("select", g), () => {
1488
- i.off("reInit", g).off("select", g);
1489
- };
1490
- }, [i, g, s]), _.useEffect(() => {
1491
- if (!i || !c) return;
1492
- const E = Object.entries(c).flatMap(([L, w]) => {
1493
- if (!w) return [];
1494
- const V = () => w(i, L);
1495
- return i.on(L, V), [[L, V]];
1496
- });
1497
- return () => {
1498
- E.forEach(([L, w]) => {
1499
- i.off(L, w);
1500
- });
1501
- };
1502
- }, [i, c]);
1503
- const N = _.useMemo(
1504
- () => ({
1505
- api: i,
1506
- basis: t,
1507
- orientation: n,
1508
- scrollPrev: b,
1509
- scrollNext: f,
1510
- canScrollPrev: m,
1511
- canScrollNext: p
1512
- }),
1513
- [i, t, n, b, f, m, p]
1514
- ), I = _.Children.toArray(l), [T, ...x] = I;
1515
- return /* @__PURE__ */ d(lt.Provider, { value: N, children: /* @__PURE__ */ H("div", { ref: u, className: v("carousel", o), ...a, children: [
1516
- x.length > 0 ? /* @__PURE__ */ d("div", { className: "carousel__controls", "data-slot": "carousel-controls", children: x }) : null,
1517
- /* @__PURE__ */ d("div", { ref: S, className: "carousel__viewport", children: T })
1518
- ] }) });
1519
- }
1520
- );
1521
- ut.displayName = "Carousel";
1522
- const dt = _.forwardRef(
1523
- ({ className: e, ...t }, n) => {
1524
- const { orientation: r } = Ce();
1525
- return /* @__PURE__ */ d(
1526
- "div",
1527
- {
1528
- ref: n,
1529
- className: v("carousel__content", `carousel__content--${r}`, e),
1530
- ...t
1531
- }
1532
- );
1533
- }
1534
- );
1535
- dt.displayName = "CarouselContent";
1536
- const ft = _.forwardRef(
1537
- ({ basis: e, className: t, ...n }, r) => {
1538
- const { basis: s, orientation: c } = Ce(), o = e ?? s;
1539
- return /* @__PURE__ */ d(
1540
- "div",
1541
- {
1542
- ref: r,
1543
- className: v(
1544
- "carousel__item",
1545
- `carousel__item--${c}`,
1546
- `carousel__item--basis-${o}`,
1547
- t
1548
- ),
1549
- ...n
1550
- }
1551
- );
1552
- }
1553
- );
1554
- ft.displayName = "CarouselItem";
1555
- const mt = _.forwardRef(
1556
- ({ className: e, ...t }, n) => {
1557
- const { scrollPrev: r, canScrollPrev: s } = Ce();
1558
- return /* @__PURE__ */ d(
1559
- "button",
1560
- {
1561
- ref: n,
1562
- type: "button",
1563
- className: v("carousel__prev", e),
1564
- disabled: !s,
1565
- onClick: r,
1566
- "aria-label": "Previous slide",
1567
- ...t,
1568
- children: /* @__PURE__ */ d(Vt, {})
1569
- }
1570
- );
1571
- }
1572
- );
1573
- mt.displayName = "CarouselPrevious";
1574
- const pt = _.forwardRef(
1575
- ({ className: e, ...t }, n) => {
1576
- const { scrollNext: r, canScrollNext: s } = Ce();
1577
- return /* @__PURE__ */ d(
1578
- "button",
1579
- {
1580
- ref: n,
1581
- type: "button",
1582
- className: v("carousel__next", e),
1583
- disabled: !s,
1584
- onClick: r,
1585
- "aria-label": "Next slide",
1586
- ...t,
1587
- children: /* @__PURE__ */ d(Oe, {})
1588
- }
1589
- );
1590
- }
1591
- );
1592
- pt.displayName = "CarouselNext";
1593
- const Sn = _.forwardRef(
1594
- ({ slidesPerView: e = 1, ...t }, n) => /* @__PURE__ */ d(ut, { ref: n, basis: e, ...t })
1595
- );
1596
- Sn.displayName = "KuatCarousel";
1597
- const Fn = dt, Gn = ft, Zn = mt, Kn = pt, Un = Ce, jn = ["service", "demo"], zn = ["light", "dark"], Cn = _.forwardRef(
1598
- ({
1599
- className: e,
1600
- title: t,
1601
- use: n = "service",
1602
- mode: r = "light",
1603
- forceDark: s = !1,
1604
- ...c
1605
- }, o) => {
1606
- const l = s ? "dark" : r, a = /* @__PURE__ */ d(
1607
- Te,
207
+ className: a,
208
+ title: r,
209
+ use: l = "service",
210
+ mode: o = "light",
211
+ forceDark: d = !1,
212
+ ...u
213
+ }, i) => {
214
+ const C = d ? "dark" : o, p = /* @__PURE__ */ e(
215
+ V,
1608
216
  {
1609
- className: v(
217
+ className: s(
1610
218
  "kuat-logo-lockup__logo",
1611
- n === "demo" && "kuat-logo-lockup__logo--demo"
219
+ l === "demo" && "kuat-logo-lockup__logo--demo"
1612
220
  ),
1613
- textColor: l === "dark" ? "white" : "grey"
221
+ textColor: C === "dark" ? "white" : "grey"
1614
222
  }
1615
223
  );
1616
- return /* @__PURE__ */ d(
224
+ return /* @__PURE__ */ e(
1617
225
  "div",
1618
226
  {
1619
- ref: o,
1620
- className: v(
227
+ ref: i,
228
+ className: s(
1621
229
  "kuat-logo-lockup",
230
+ `kuat-logo-lockup--${C}`,
1622
231
  `kuat-logo-lockup--${l}`,
1623
- `kuat-logo-lockup--${n}`,
1624
- e
232
+ a
1625
233
  ),
1626
- ...c,
1627
- children: n === "service" ? /* @__PURE__ */ H("div", { className: "kuat-logo-lockup__service-inner", children: [
1628
- /* @__PURE__ */ d("div", { className: "kuat-logo-lockup__logo-wrap", children: a }),
1629
- /* @__PURE__ */ d(
1630
- st,
234
+ ...u,
235
+ children: l === "service" ? /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__service-inner", children: [
236
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: p }),
237
+ /* @__PURE__ */ e(
238
+ T,
1631
239
  {
1632
240
  orientation: "vertical",
1633
241
  className: "kuat-logo-lockup__separator"
1634
242
  }
1635
243
  ),
1636
- /* @__PURE__ */ d("span", { className: "kuat-logo-lockup__service-name", children: t })
1637
- ] }) : /* @__PURE__ */ H(_e, { children: [
1638
- /* @__PURE__ */ d("h2", { className: "kuat-logo-lockup__demo-title", children: t }),
1639
- /* @__PURE__ */ H("div", { className: "kuat-logo-lockup__demo-attribution", children: [
1640
- /* @__PURE__ */ d("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
1641
- /* @__PURE__ */ d("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: a })
244
+ /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__service-name", children: r })
245
+ ] }) : /* @__PURE__ */ n(w, { children: [
246
+ /* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: r }),
247
+ /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__demo-attribution", children: [
248
+ /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
249
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: p })
1642
250
  ] })
1643
251
  ] })
1644
252
  }
1645
253
  );
1646
254
  }
1647
255
  );
1648
- Cn.displayName = "KuatLogoLockup";
1649
- function $n({ className: e }) {
1650
- return /* @__PURE__ */ H(
256
+ U.displayName = "KuatLogoLockup";
257
+ function ue({ className: a }) {
258
+ return /* @__PURE__ */ n(
1651
259
  "svg",
1652
260
  {
1653
- className: v("ee-logo-icon", e),
261
+ className: s("ee-logo-icon", a),
1654
262
  viewBox: "0 0 143 133",
1655
263
  fill: "none",
1656
264
  xmlns: "http://www.w3.org/2000/svg",
1657
265
  "aria-label": "Equal Experts",
1658
266
  children: [
1659
- /* @__PURE__ */ d(
267
+ /* @__PURE__ */ e(
1660
268
  "path",
1661
269
  {
1662
270
  d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z",
1663
271
  fill: "currentColor"
1664
272
  }
1665
273
  ),
1666
- /* @__PURE__ */ d(
274
+ /* @__PURE__ */ e(
1667
275
  "path",
1668
276
  {
1669
277
  d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z",
1670
278
  fill: "currentColor"
1671
279
  }
1672
280
  ),
1673
- /* @__PURE__ */ d(
281
+ /* @__PURE__ */ e(
1674
282
  "path",
1675
283
  {
1676
284
  d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z",
1677
285
  fill: "currentColor"
1678
286
  }
1679
287
  ),
1680
- /* @__PURE__ */ d(
288
+ /* @__PURE__ */ e(
1681
289
  "path",
1682
290
  {
1683
291
  d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z",
@@ -1688,385 +296,385 @@ function $n({ className: e }) {
1688
296
  }
1689
297
  );
1690
298
  }
1691
- const ht = _.forwardRef(({ className: e, "aria-label": t = "Breadcrumb", ...n }, r) => /* @__PURE__ */ d(
299
+ const y = t.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l }, o) => /* @__PURE__ */ e(
1692
300
  "nav",
1693
301
  {
1694
- ref: r,
1695
- "aria-label": t,
1696
- className: v("breadcrumb", e),
1697
- ...n
302
+ ref: o,
303
+ "aria-label": r,
304
+ className: s("breadcrumb", a),
305
+ ...l
1698
306
  }
1699
307
  ));
1700
- ht.displayName = "BreadcrumbRoot";
1701
- const gt = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d("ol", { ref: n, className: v("breadcrumb-list", e), ...t }));
1702
- gt.displayName = "BreadcrumbList";
1703
- const Ve = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d("li", { ref: n, className: v("breadcrumb-item", e), ...t }));
1704
- Ve.displayName = "BreadcrumbItem";
1705
- const bt = _.forwardRef(({ className: e, render: t, asChild: n = !1, ...r }, s) => {
1706
- var c;
1707
- if (t) {
1708
- const o = t.props;
1709
- return _.cloneElement(t, {
1710
- ...r,
1711
- ref: s,
1712
- className: v("breadcrumb-link", o == null ? void 0 : o.className, e)
308
+ y.displayName = "BreadcrumbRoot";
309
+ const x = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("ol", { ref: l, className: s("breadcrumb-list", a), ...r }));
310
+ x.displayName = "BreadcrumbList";
311
+ const k = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("li", { ref: l, className: s("breadcrumb-item", a), ...r }));
312
+ k.displayName = "BreadcrumbItem";
313
+ const M = t.forwardRef(({ className: a, render: r, asChild: l = !1, ...o }, d) => {
314
+ var u;
315
+ if (r) {
316
+ const i = r.props;
317
+ return t.cloneElement(r, {
318
+ ...o,
319
+ ref: d,
320
+ className: s("breadcrumb-link", i == null ? void 0 : i.className, a)
1713
321
  });
1714
322
  }
1715
- if (n && _.Children.only(r.children)) {
1716
- const o = _.Children.only(r.children);
1717
- return _.cloneElement(o, {
1718
- ref: s,
1719
- className: v("breadcrumb-link", (c = o.props) == null ? void 0 : c.className, e),
1720
- ...r
323
+ if (l && t.Children.only(o.children)) {
324
+ const i = t.Children.only(o.children);
325
+ return t.cloneElement(i, {
326
+ ref: d,
327
+ className: s("breadcrumb-link", (u = i.props) == null ? void 0 : u.className, a),
328
+ ...o
1721
329
  });
1722
330
  }
1723
- return /* @__PURE__ */ d(
331
+ return /* @__PURE__ */ e(
1724
332
  "a",
1725
333
  {
1726
- ref: s,
1727
- className: v("breadcrumb-link", e),
1728
- ...r
334
+ ref: d,
335
+ className: s("breadcrumb-link", a),
336
+ ...o
1729
337
  }
1730
338
  );
1731
339
  });
1732
- bt.displayName = "BreadcrumbLink";
1733
- const De = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
340
+ M.displayName = "BreadcrumbLink";
341
+ const E = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
1734
342
  "span",
1735
343
  {
1736
- ref: n,
344
+ ref: l,
1737
345
  role: "link",
1738
346
  "aria-disabled": "true",
1739
347
  "aria-current": "page",
1740
- className: v("breadcrumb-page", e),
1741
- ...t
348
+ className: s("breadcrumb-page", a),
349
+ ...r
1742
350
  }
1743
351
  ));
1744
- De.displayName = "BreadcrumbPage";
1745
- const Me = _.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
352
+ E.displayName = "BreadcrumbPage";
353
+ const R = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
1746
354
  "span",
1747
355
  {
1748
- ref: r,
356
+ ref: o,
1749
357
  role: "presentation",
1750
358
  "aria-hidden": "true",
1751
- className: v("breadcrumb-separator", e),
1752
- ...n,
1753
- children: t ?? /* @__PURE__ */ d(Oe, { className: "breadcrumb-separator__icon" })
359
+ className: s("breadcrumb-separator", a),
360
+ ...l,
361
+ children: r ?? /* @__PURE__ */ e(D, { className: "breadcrumb-separator__icon" })
1754
362
  }
1755
363
  ));
1756
- Me.displayName = "BreadcrumbSeparator";
1757
- const St = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
364
+ R.displayName = "BreadcrumbSeparator";
365
+ const B = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
1758
366
  "span",
1759
367
  {
1760
- ref: n,
368
+ ref: l,
1761
369
  role: "presentation",
1762
370
  "aria-hidden": "true",
1763
- className: v("breadcrumb-ellipsis", e),
1764
- ...t,
1765
- children: /* @__PURE__ */ d(Dt, { className: "breadcrumb-ellipsis__icon" })
371
+ className: s("breadcrumb-ellipsis", a),
372
+ ...r,
373
+ children: /* @__PURE__ */ e(F, { className: "breadcrumb-ellipsis__icon" })
1766
374
  }
1767
375
  ));
1768
- St.displayName = "BreadcrumbEllipsis";
1769
- const Ct = R.Root, Nt = R.Trigger, yt = R.Group, Nn = _.forwardRef(({ className: e, inset: t, children: n, ...r }, s) => /* @__PURE__ */ H(
1770
- R.SubTrigger,
376
+ B.displayName = "BreadcrumbEllipsis";
377
+ const O = c.Root, Z = c.Trigger, K = c.Group, $ = t.forwardRef(({ className: a, inset: r, children: l, ...o }, d) => /* @__PURE__ */ n(
378
+ c.SubTrigger,
1771
379
  {
1772
- ref: s,
1773
- className: v(
380
+ ref: d,
381
+ className: s(
1774
382
  "dropdown-menu-sub-trigger",
1775
- t && "dropdown-menu-sub-trigger--inset",
1776
- e
383
+ r && "dropdown-menu-sub-trigger--inset",
384
+ a
1777
385
  ),
1778
- ...r,
386
+ ...o,
1779
387
  children: [
1780
- n,
1781
- /* @__PURE__ */ d(Oe, { className: "dropdown-menu-sub-trigger__icon" })
388
+ l,
389
+ /* @__PURE__ */ e(D, { className: "dropdown-menu-sub-trigger__icon" })
1782
390
  ]
1783
391
  }
1784
392
  ));
1785
- Nn.displayName = R.SubTrigger.displayName;
1786
- const yn = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
1787
- R.SubContent,
393
+ $.displayName = c.SubTrigger.displayName;
394
+ const j = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
395
+ c.SubContent,
1788
396
  {
1789
- ref: n,
1790
- className: v("dropdown-menu-content", "dropdown-menu-sub-content", e),
1791
- ...t
397
+ ref: l,
398
+ className: s("dropdown-menu-content", "dropdown-menu-sub-content", a),
399
+ ...r
1792
400
  }
1793
401
  ));
1794
- yn.displayName = R.SubContent.displayName;
1795
- const Ze = _.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ d(R.Portal, { children: /* @__PURE__ */ d(
1796
- R.Content,
402
+ j.displayName = c.SubContent.displayName;
403
+ const A = t.forwardRef(({ className: a, sideOffset: r = 4, ...l }, o) => /* @__PURE__ */ e(c.Portal, { children: /* @__PURE__ */ e(
404
+ c.Content,
1797
405
  {
1798
- ref: r,
1799
- sideOffset: t,
1800
- className: v("dropdown-menu-content", e),
1801
- ...n
406
+ ref: o,
407
+ sideOffset: r,
408
+ className: s("dropdown-menu-content", a),
409
+ ...l
1802
410
  }
1803
411
  ) }));
1804
- Ze.displayName = R.Content.displayName;
1805
- const Ke = _.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d(
1806
- R.Item,
412
+ A.displayName = c.Content.displayName;
413
+ const I = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
414
+ c.Item,
1807
415
  {
1808
- ref: r,
1809
- className: v(
416
+ ref: o,
417
+ className: s(
1810
418
  "dropdown-menu-item",
1811
- t && "dropdown-menu-item--inset",
1812
- e
419
+ r && "dropdown-menu-item--inset",
420
+ a
1813
421
  ),
1814
- ...n
422
+ ...l
1815
423
  }
1816
424
  ));
1817
- Ke.displayName = R.Item.displayName;
1818
- const _n = _.forwardRef(({ className: e, children: t, checked: n, ...r }, s) => /* @__PURE__ */ d(
1819
- R.CheckboxItem,
425
+ I.displayName = c.Item.displayName;
426
+ const X = t.forwardRef(({ className: a, children: r, checked: l, ...o }, d) => /* @__PURE__ */ e(
427
+ c.CheckboxItem,
1820
428
  {
1821
- ref: s,
1822
- className: v("dropdown-menu-item", "dropdown-menu-checkbox-item", e),
1823
- checked: n,
1824
- ...r,
1825
- children: t
429
+ ref: d,
430
+ className: s("dropdown-menu-item", "dropdown-menu-checkbox-item", a),
431
+ checked: l,
432
+ ...o,
433
+ children: r
1826
434
  }
1827
435
  ));
1828
- _n.displayName = R.CheckboxItem.displayName;
1829
- const En = _.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
1830
- R.RadioItem,
436
+ X.displayName = c.CheckboxItem.displayName;
437
+ const Y = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
438
+ c.RadioItem,
1831
439
  {
1832
- ref: r,
1833
- className: v("dropdown-menu-item", "dropdown-menu-radio-item", e),
1834
- ...n,
1835
- children: t
440
+ ref: o,
441
+ className: s("dropdown-menu-item", "dropdown-menu-radio-item", a),
442
+ ...l,
443
+ children: r
1836
444
  }
1837
445
  ));
1838
- En.displayName = R.RadioItem.displayName;
1839
- const Ln = _.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d(
1840
- R.Label,
446
+ Y.displayName = c.RadioItem.displayName;
447
+ const q = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
448
+ c.Label,
1841
449
  {
1842
- ref: r,
1843
- className: v(
450
+ ref: o,
451
+ className: s(
1844
452
  "dropdown-menu-label",
1845
- t && "dropdown-menu-label--inset",
1846
- e
453
+ r && "dropdown-menu-label--inset",
454
+ a
1847
455
  ),
1848
- ...n
456
+ ...l
1849
457
  }
1850
458
  ));
1851
- Ln.displayName = R.Label.displayName;
1852
- const wn = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
1853
- R.Separator,
459
+ q.displayName = c.Label.displayName;
460
+ const W = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
461
+ c.Separator,
1854
462
  {
1855
- ref: n,
1856
- className: v("dropdown-menu-separator", e),
1857
- ...t
463
+ ref: l,
464
+ className: s("dropdown-menu-separator", a),
465
+ ...r
1858
466
  }
1859
467
  ));
1860
- wn.displayName = R.Separator.displayName;
1861
- const xn = 640;
1862
- function vn(e = xn) {
1863
- const [t, n] = _.useState(!1);
1864
- return _.useEffect(() => {
468
+ W.displayName = c.Separator.displayName;
469
+ const z = 640;
470
+ function J(a = z) {
471
+ const [r, l] = t.useState(!1);
472
+ return t.useEffect(() => {
1865
473
  if (typeof window > "u" || typeof window.matchMedia != "function")
1866
474
  return;
1867
- const r = window.matchMedia(`(max-width: ${e}px)`), s = () => n(r.matches);
1868
- return s(), r.addEventListener("change", s), () => r.removeEventListener("change", s);
1869
- }, [e]), t;
1870
- }
1871
- const In = ({ href: e, children: t, className: n }) => /* @__PURE__ */ d("a", { href: e, className: n, children: t });
1872
- function Hn(e, t, n, r) {
1873
- return e.children && e.children.length > 0 ? /* @__PURE__ */ H(Ct, { children: [
1874
- /* @__PURE__ */ d(Nt, { asChild: !0, children: /* @__PURE__ */ H(
475
+ const o = window.matchMedia(`(max-width: ${a}px)`), d = () => l(o.matches);
476
+ return d(), o.addEventListener("change", d), () => o.removeEventListener("change", d);
477
+ }, [a]), r;
478
+ }
479
+ const Q = ({ href: a, children: r, className: l }) => /* @__PURE__ */ e("a", { href: a, className: l, children: r });
480
+ function ee(a, r, l, o) {
481
+ return a.children && a.children.length > 0 ? /* @__PURE__ */ n(O, { children: [
482
+ /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ n(
1875
483
  "button",
1876
484
  {
1877
485
  type: "button",
1878
- className: v(
486
+ className: s(
1879
487
  "breadcrumb-dropdown-trigger",
1880
488
  "inline-flex items-center gap-1 font-medium"
1881
489
  ),
1882
490
  "aria-haspopup": "menu",
1883
491
  children: [
1884
- e.label,
1885
- /* @__PURE__ */ d(
1886
- Mt,
492
+ a.label,
493
+ /* @__PURE__ */ e(
494
+ P,
1887
495
  {
1888
496
  className: "breadcrumb-dropdown-trigger__icon",
1889
497
  "aria-hidden": !0
1890
498
  }
1891
499
  ),
1892
- /* @__PURE__ */ d("span", { className: "sr-only", children: "Toggle menu" })
500
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle menu" })
1893
501
  ]
1894
502
  }
1895
503
  ) }),
1896
- /* @__PURE__ */ d(Ze, { align: "start", children: /* @__PURE__ */ d(yt, { children: e.children.map((c, o) => /* @__PURE__ */ d(Ke, { asChild: !0, children: /* @__PURE__ */ d("a", { href: c.href, children: c.label }) }, o)) }) })
1897
- ] }) : t ? /* @__PURE__ */ d(De, { children: e.label }) : e.href ? /* @__PURE__ */ d(
1898
- bt,
504
+ /* @__PURE__ */ e(A, { align: "start", children: /* @__PURE__ */ e(K, { children: a.children.map((u, i) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: u.href, children: u.label }) }, i)) }) })
505
+ ] }) : r ? /* @__PURE__ */ e(E, { children: a.label }) : a.href ? /* @__PURE__ */ e(
506
+ M,
1899
507
  {
1900
- render: /* @__PURE__ */ d(n, { href: e.href, children: e.label })
508
+ render: /* @__PURE__ */ e(l, { href: a.href, children: a.label })
1901
509
  }
1902
- ) : /* @__PURE__ */ d(De, { children: e.label });
1903
- }
1904
- function Tn({
1905
- items: e,
1906
- linkComponent: t = In,
1907
- separator: n,
1908
- className: r,
1909
- "aria-label": s = "Breadcrumb",
1910
- ...c
1911
- }, o) {
1912
- const l = vn();
1913
- if (!e.length) return null;
1914
- const a = l && e.length > 2, u = a ? [e[0], e[e.length - 1]] : e, i = (a ? e.slice(1, -1) : []).flatMap(
1915
- (m) => m.href ? [{ label: m.label, href: m.href }] : (m.children ?? []).map((C) => ({ label: C.label, href: C.href }))
510
+ ) : /* @__PURE__ */ e(E, { children: a.label });
511
+ }
512
+ function ae({
513
+ items: a,
514
+ linkComponent: r = Q,
515
+ separator: l,
516
+ className: o,
517
+ "aria-label": d = "Breadcrumb",
518
+ ...u
519
+ }, i) {
520
+ const C = J();
521
+ if (!a.length) return null;
522
+ const p = C && a.length > 2, g = p ? [a[0], a[a.length - 1]] : a, f = (p ? a.slice(1, -1) : []).flatMap(
523
+ (m) => m.href ? [{ label: m.label, href: m.href }] : (m.children ?? []).map((h) => ({ label: h.label, href: h.href }))
1916
524
  );
1917
- return /* @__PURE__ */ d(
1918
- ht,
525
+ return /* @__PURE__ */ e(
526
+ y,
1919
527
  {
1920
- ref: o,
1921
- "aria-label": s,
1922
- className: r,
1923
- ...c,
1924
- children: /* @__PURE__ */ d(gt, { children: u.map((m, C) => {
1925
- const p = a ? C === 0 ? 0 : e.length - 1 : C, b = C === u.length - 1 && !m.href && !m.children;
1926
- return /* @__PURE__ */ H(_.Fragment, { children: [
1927
- C > 0 && /* @__PURE__ */ d(Me, { children: n }),
1928
- a && C === 1 && i.length > 0 && /* @__PURE__ */ H(_e, { children: [
1929
- /* @__PURE__ */ d(Ve, { children: /* @__PURE__ */ H(Ct, { children: [
1930
- /* @__PURE__ */ d(Nt, { asChild: !0, children: /* @__PURE__ */ H(
528
+ ref: i,
529
+ "aria-label": d,
530
+ className: o,
531
+ ...u,
532
+ children: /* @__PURE__ */ e(x, { children: g.map((m, h) => {
533
+ const _ = p ? h === 0 ? 0 : a.length - 1 : h, L = h === g.length - 1 && !m.href && !m.children;
534
+ return /* @__PURE__ */ n(t.Fragment, { children: [
535
+ h > 0 && /* @__PURE__ */ e(R, { children: l }),
536
+ p && h === 1 && f.length > 0 && /* @__PURE__ */ n(w, { children: [
537
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ n(O, { children: [
538
+ /* @__PURE__ */ e(Z, { asChild: !0, children: /* @__PURE__ */ n(
1931
539
  "button",
1932
540
  {
1933
541
  type: "button",
1934
- className: v(
542
+ className: s(
1935
543
  "breadcrumb-dropdown-trigger",
1936
544
  "breadcrumb-ellipsis-trigger",
1937
545
  "inline-flex items-center"
1938
546
  ),
1939
547
  "aria-haspopup": "menu",
1940
548
  children: [
1941
- /* @__PURE__ */ d(St, {}),
1942
- /* @__PURE__ */ d("span", { className: "sr-only", children: "Show more pages" })
549
+ /* @__PURE__ */ e(B, {}),
550
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Show more pages" })
1943
551
  ]
1944
552
  }
1945
553
  ) }),
1946
- /* @__PURE__ */ d(Ze, { align: "start", children: /* @__PURE__ */ d(yt, { children: i.map((f, g) => /* @__PURE__ */ d(Ke, { asChild: !0, children: /* @__PURE__ */ d("a", { href: f.href, children: f.label }) }, g)) }) })
554
+ /* @__PURE__ */ e(A, { align: "start", children: /* @__PURE__ */ e(K, { children: f.map((b, H) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: b.href, children: b.label }) }, H)) }) })
1947
555
  ] }) }),
1948
- /* @__PURE__ */ d(Me, { children: n })
556
+ /* @__PURE__ */ e(R, { children: l })
1949
557
  ] }),
1950
- /* @__PURE__ */ d(Ve, { children: Hn(m, b, t) })
1951
- ] }, p);
558
+ /* @__PURE__ */ e(k, { children: ee(m, L, r) })
559
+ ] }, _);
1952
560
  }) })
1953
561
  }
1954
562
  );
1955
563
  }
1956
- const kn = _.forwardRef(
1957
- Tn
564
+ const re = t.forwardRef(
565
+ ae
1958
566
  );
1959
- kn.displayName = "Breadcrumb";
567
+ re.displayName = "Breadcrumb";
1960
568
  export {
1961
- cr as Accordion,
1962
- ar as AccordionContent,
1963
- ir as AccordionItem,
1964
- lr as AccordionTrigger,
1965
- dr as AlertDialog,
1966
- fr as AlertDialogAction,
1967
- mr as AlertDialogCancel,
1968
- pr as AlertDialogContent,
1969
- hr as AlertDialogDescription,
1970
- gr as AlertDialogFooter,
1971
- br as AlertDialogHeader,
1972
- Sr as AlertDialogOverlay,
1973
- Cr as AlertDialogPortal,
1974
- Nr as AlertDialogTitle,
1975
- yr as AlertDialogTrigger,
1976
- Er as BADGE_ROUNDNESS,
1977
- Lr as BADGE_VARIANTS,
1978
- Ir as BUTTON_COLORS,
1979
- Yn as BUTTON_GROUP_ORIENTATIONS,
1980
- Hr as BUTTON_SIZES,
1981
- Tr as BUTTON_VARIANTS,
1982
- wr as Badge,
1983
- kn as Breadcrumb,
1984
- St as BreadcrumbEllipsis,
1985
- Ve as BreadcrumbItem,
1986
- bt as BreadcrumbLink,
1987
- gt as BreadcrumbList,
1988
- De as BreadcrumbPage,
1989
- ht as BreadcrumbRoot,
1990
- Me as BreadcrumbSeparator,
1991
- kr as Button,
1992
- Qn as ButtonGroup,
1993
- Jn as ButtonGroupSeparator,
1994
- Wn as ButtonGroupText,
1995
- mo as CHECKBOX_FIELD_APPEARANCES,
1996
- po as CHECKBOX_FIELD_LAYOUTS,
1997
- ut as Carousel,
1998
- dt as CarouselContent,
1999
- ft as CarouselItem,
2000
- pt as CarouselNext,
2001
- mt as CarouselPrevious,
2002
- ho as Checkbox,
2003
- go as CheckboxField,
2004
- Pn as ContentCard,
2005
- Te as EELogo,
2006
- $n as EELogoIcon,
2007
- Fr as FIELD_ORIENTATIONS,
2008
- Gr as Field,
2009
- Zr as FieldContent,
2010
- Kr as FieldDescription,
2011
- Ur as FieldError,
2012
- jr as FieldGroup,
2013
- zr as FieldLabel,
2014
- $r as FieldLegend,
2015
- qr as FieldSeparator,
2016
- Xr as FieldSet,
2017
- Yr as FieldTitle,
2018
- Rr as INPUT_SIZES,
2019
- Pr as Input,
2020
- zn as KUAT_LOGO_LOCKUP_MODE,
2021
- jn as KUAT_LOGO_LOCKUP_USE,
2022
- nr as KUAT_RADIAL_PROGRESS_COLORS,
2023
- rr as KUAT_RADIAL_PROGRESS_SIZES,
2024
- Sn as KuatCarousel,
2025
- Fn as KuatCarouselContent,
2026
- Gn as KuatCarouselItem,
2027
- Kn as KuatCarouselNext,
2028
- Zn as KuatCarouselPrevious,
2029
- Ot as KuatHeader,
2030
- Cn as KuatLogoLockup,
2031
- or as KuatRadialProgress,
2032
- Jr as KuatSelect,
2033
- So as RADIO_FIELD_APPEARANCES,
2034
- Co as RADIO_FIELD_LAYOUTS,
2035
- No as RadioField,
2036
- yo as RadioGroup,
2037
- _o as RadioGroupItem,
2038
- Wr as SELECT_LINES,
2039
- eo as SELECT_SIZES,
2040
- Mo as SONNER_POSITIONS,
2041
- Lo as SWITCH_FIELD_APPEARANCES,
2042
- wo as SWITCH_FIELD_LAYOUTS,
2043
- to as Select,
2044
- no as SelectContent,
2045
- ro as SelectGroup,
2046
- oo as SelectItem,
2047
- so as SelectLabel,
2048
- co as SelectScrollDownButton,
2049
- ao as SelectScrollUpButton,
2050
- io as SelectSeparator,
2051
- lo as SelectTrigger,
2052
- uo as SelectValue,
2053
- Oo as Sonner,
2054
- Ro as SonnerContent,
2055
- xo as Switch,
2056
- vo as SwitchField,
2057
- Dr as TEXTAREA_RESIZE,
2058
- Ho as TOGGLE_SIZES,
2059
- To as TOGGLE_SKINS,
2060
- Mr as Textarea,
2061
- ko as Toggle,
2062
- Ao as ToggleGroup,
2063
- Vo as ToggleGroupItem,
2064
- xr as badgeVariants,
2065
- er as buttonGroupVariants,
2066
- Ar as buttonVariants,
2067
- v as cn,
2068
- Bn as kuatHeaderVariants,
2069
- Po as toast,
2070
- Ce as useCarousel,
2071
- Un as useKuatCarousel
569
+ Oe as Accordion,
570
+ Ze as AccordionContent,
571
+ Ke as AccordionItem,
572
+ Fe as AccordionTrigger,
573
+ Ge as AlertDialog,
574
+ Ue as AlertDialogAction,
575
+ $e as AlertDialogCancel,
576
+ je as AlertDialogContent,
577
+ Xe as AlertDialogDescription,
578
+ Ye as AlertDialogFooter,
579
+ qe as AlertDialogHeader,
580
+ We as AlertDialogOverlay,
581
+ ze as AlertDialogPortal,
582
+ Je as AlertDialogTitle,
583
+ Qe as AlertDialogTrigger,
584
+ aa as BADGE_ROUNDNESS,
585
+ ra as BADGE_VARIANTS,
586
+ na as BUTTON_COLORS,
587
+ pe as BUTTON_GROUP_ORIENTATIONS,
588
+ sa as BUTTON_SIZES,
589
+ da as BUTTON_VARIANTS,
590
+ la as Badge,
591
+ re as Breadcrumb,
592
+ B as BreadcrumbEllipsis,
593
+ k as BreadcrumbItem,
594
+ M as BreadcrumbLink,
595
+ x as BreadcrumbList,
596
+ E as BreadcrumbPage,
597
+ y as BreadcrumbRoot,
598
+ R as BreadcrumbSeparator,
599
+ ca as Button,
600
+ Ce as ButtonGroup,
601
+ ge as ButtonGroupSeparator,
602
+ fe as ButtonGroupText,
603
+ Ua as CHECKBOX_FIELD_APPEARANCES,
604
+ $a as CHECKBOX_FIELD_LAYOUTS,
605
+ _e as Carousel,
606
+ He as CarouselContent,
607
+ we as CarouselItem,
608
+ Se as CarouselNext,
609
+ Le as CarouselPrevious,
610
+ ja as Checkbox,
611
+ Xa as CheckboxField,
612
+ se as ContentCard,
613
+ V as EELogo,
614
+ ue as EELogoIcon,
615
+ ba as FIELD_ORIENTATIONS,
616
+ Na as Field,
617
+ _a as FieldContent,
618
+ Ha as FieldDescription,
619
+ wa as FieldError,
620
+ Sa as FieldGroup,
621
+ La as FieldLabel,
622
+ Va as FieldLegend,
623
+ ka as FieldSeparator,
624
+ Ea as FieldSet,
625
+ Ra as FieldTitle,
626
+ Ca as INPUT_SIZES,
627
+ ga as Input,
628
+ ie as KUAT_LOGO_LOCKUP_MODE,
629
+ ce as KUAT_LOGO_LOCKUP_USE,
630
+ ye as KUAT_RADIAL_PROGRESS_COLORS,
631
+ xe as KUAT_RADIAL_PROGRESS_SIZES,
632
+ Ee as KuatCarousel,
633
+ Re as KuatCarouselContent,
634
+ Ae as KuatCarouselItem,
635
+ Ie as KuatCarouselNext,
636
+ ve as KuatCarouselPrevious,
637
+ G as KuatHeader,
638
+ U as KuatLogoLockup,
639
+ Me as KuatRadialProgress,
640
+ Ia as KuatSelect,
641
+ qa as RADIO_FIELD_APPEARANCES,
642
+ Wa as RADIO_FIELD_LAYOUTS,
643
+ za as RadioField,
644
+ Ja as RadioGroup,
645
+ Qa as RadioGroupItem,
646
+ va as SELECT_LINES,
647
+ Ta as SELECT_SIZES,
648
+ mr as SONNER_POSITIONS,
649
+ ar as SWITCH_FIELD_APPEARANCES,
650
+ rr as SWITCH_FIELD_LAYOUTS,
651
+ Da as Select,
652
+ ya as SelectContent,
653
+ xa as SelectGroup,
654
+ Ma as SelectItem,
655
+ Ba as SelectLabel,
656
+ Oa as SelectScrollDownButton,
657
+ Za as SelectScrollUpButton,
658
+ Ka as SelectSeparator,
659
+ Fa as SelectTrigger,
660
+ Pa as SelectValue,
661
+ hr as Sonner,
662
+ pr as SonnerContent,
663
+ lr as Switch,
664
+ or as SwitchField,
665
+ ma as TEXTAREA_RESIZE,
666
+ nr as TOGGLE_SIZES,
667
+ sr as TOGGLE_SKINS,
668
+ ha as Textarea,
669
+ dr as Toggle,
670
+ cr as ToggleGroup,
671
+ ir as ToggleGroupItem,
672
+ oa as badgeVariants,
673
+ be as buttonGroupVariants,
674
+ ia as buttonVariants,
675
+ s as cn,
676
+ de as kuatHeaderVariants,
677
+ Cr as toast,
678
+ Ve as useCarousel,
679
+ Te as useKuatCarousel
2072
680
  };