@equal-experts/kuat-react 0.9.1 → 0.10.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,1683 +1,302 @@
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,
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 })
1
+ import { c as s } from "./utils-DLUjLwnh.js";
2
+ import { S as M } from "./button-group-enIzvVeN.js";
3
+ import { d as Ne, B as _e, a as He, b as we, c as Se } from "./button-group-enIzvVeN.js";
4
+ import { jsxs as n, jsx as e, Fragment as S } from "react/jsx-runtime";
5
+ import * as t from "react";
6
+ import { C as Ve, a as ke, b as Ee, d as Re, c as Ae, u as ve } from "./carousel-vRCoMeVE.js";
7
+ import { K as ye, a as Te, b as De, d as xe, c as Me, u as Be } from "./kuat-carousel-DsHwXGpb.js";
8
+ import { b as Ze, a as Ke, K as Fe } from "./kuat-radial-progress-YcpYzHjk.js";
9
+ import { A as Ge, c as Ue, a as $e, b as je } from "./accordion-CUlVo4uo.js";
10
+ import { A as Ye, i as qe, j as ze, d as Je, h as Qe, f as We, e as ea, b as aa, a as ra, g as la, c as oa } from "./alert-dialog-yHaNWLGX.js";
11
+ import { c as na, a as sa, B as da, b as ca } from "./badge-BZgdEQSD.js";
12
+ import { ChevronRight as B, MoreHorizontal as j, ChevronDown as X } from "lucide-react";
13
+ import * as c from "@radix-ui/react-dropdown-menu";
14
+ import { d as ua, c as ma, a as ha, B as pa, b as fa } from "./button-C0a1gFoV.js";
15
+ import { a as ga, T as ba } from "./textarea-B0irOcAM.js";
16
+ import { a as _a, I as Ha } from "./input-DmkHok33.js";
17
+ import { j as Sa, F as La, a as Va, b as ka, c as Ea, d as Ra, e as Aa, f as va, g as Ia, h as ya, i as Ta } from "./field-CpIBifwy.js";
18
+ import { K as xa, j as Ma, k as Ba, S as Oa, a as Za, b as Ka, c as Fa, d as Pa, e as Ga, f as Ua, g as $a, h as ja, i as Xa } from "./select-CkwcI4vN.js";
19
+ import { b as qa, c as za, C as Ja, a as Qa } from "./checkbox-field-7OmstdY0.js";
20
+ import { c as er, d as ar, b as rr, R as lr, a as or } from "./radio-field-BD77QCpO.js";
21
+ import { b as nr, c as sr, S as dr, a as cr } from "./switch-field-xn_CPJH7.js";
22
+ import { a as ur, b as mr, T as hr, c as pr, d as fr } from "./constants-Cfitvm6L.js";
23
+ import { a as gr, S as br, b as Nr, t as _r } from "./sonner-content-CXBD6jNn.js";
24
+ const me = t.forwardRef(function({
25
+ className: r,
26
+ asChild: l = !1,
27
+ width: o = "default",
28
+ maxWidth: d = "373px",
29
+ imageSrc: u = null,
30
+ imageAlt: i = "",
31
+ contentText: f = null,
32
+ headerAccessory: p = null,
33
+ customContent: C = null,
34
+ footer: N = null,
35
+ badge: g,
36
+ category: m,
37
+ title: h,
38
+ titleHeadingLevel: L = 3,
39
+ children: y,
40
+ style: _,
41
+ ...b
42
+ }, H) {
43
+ const $ = `h${L}`, T = o === "fluid" ? "content-card--width-fluid" : o === "custom" ? "content-card--width-custom" : "content-card--width-default", V = o === "custom" ? {
44
+ ..._ ?? {},
45
+ "--content-card-max-width": typeof d == "number" ? `${d}px` : d ?? "373px"
46
+ } : _, D = /* @__PURE__ */ n(S, { children: [
47
+ u !== null ? /* @__PURE__ */ e("div", { className: "content-card__media", children: /* @__PURE__ */ e("img", { className: "content-card__media-img", alt: i, src: u }) }) : null,
48
+ /* @__PURE__ */ n("div", { className: "content-card__body", children: [
49
+ /* @__PURE__ */ n("div", { className: "content-card__heading-row", children: [
50
+ /* @__PURE__ */ n("div", { className: "content-card__heading-left", children: [
51
+ /* @__PURE__ */ n("div", { className: "content-card__heading-meta", children: [
52
+ /* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: g }),
53
+ /* @__PURE__ */ e("p", { className: "content-card__category", children: m })
48
54
  ] }),
49
- /* @__PURE__ */ d(b, { className: "content-card__title", children: i })
55
+ /* @__PURE__ */ e($, { className: "content-card__title", children: h })
50
56
  ] }),
51
- /* @__PURE__ */ d(
57
+ /* @__PURE__ */ e(
52
58
  "div",
53
59
  {
54
60
  "data-slot": "header-accessory",
55
61
  className: "content-card__header-accessory",
56
- children: o ?? null
62
+ children: p ?? null
57
63
  }
58
64
  )
59
65
  ] }),
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 })
66
+ f != null ? /* @__PURE__ */ e("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ e("p", { className: "content-card__content-text", children: f }) }) : null,
67
+ /* @__PURE__ */ e("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: C ?? null }),
68
+ /* @__PURE__ */ e("div", { "data-slot": "footer", className: "content-card__footer", children: N ?? null })
63
69
  ] })
64
70
  ] });
65
- if (n) {
66
- const g = _.Children.only(C);
67
- if (!_.isValidElement(g))
71
+ if (l) {
72
+ const x = t.Children.only(y);
73
+ if (!t.isValidElement(x))
68
74
  throw new Error("ContentCard: when `asChild` is true, provide a single React element child.");
69
- const N = g;
70
- return _.cloneElement(
71
- N,
75
+ const w = x;
76
+ return t.cloneElement(
77
+ w,
72
78
  {
73
- ...p,
74
- ref: h,
79
+ ...b,
80
+ ref: H,
75
81
  "data-slot": "content-card",
76
- className: v("content-card", N.props.className, t)
82
+ className: s("content-card", T, w.props.className, r),
83
+ style: o === "custom" ? {
84
+ ...w.props.style ?? {},
85
+ ...V
86
+ } : V ?? w.props.style
77
87
  },
78
- f
88
+ D
79
89
  );
80
90
  }
81
- return /* @__PURE__ */ d(
91
+ return /* @__PURE__ */ e(
82
92
  "div",
83
93
  {
84
- ref: h,
94
+ ref: H,
85
95
  "data-slot": "content-card",
86
- className: v("content-card", t),
87
- ...p,
88
- children: f
96
+ className: s("content-card", T, r),
97
+ style: V,
98
+ ...b,
99
+ children: D
89
100
  }
90
101
  );
91
102
  });
92
- function Te({ className: e, textColor: t = "grey" }) {
93
- return /* @__PURE__ */ H(
103
+ function k({ className: a, textColor: r = "grey" }) {
104
+ return /* @__PURE__ */ n(
94
105
  "svg",
95
106
  {
96
- className: v("ee-logo", `ee-logo--${t}`, e),
107
+ className: s("ee-logo", `ee-logo--${r}`, a),
97
108
  viewBox: "0 0 500 133",
98
109
  fill: "none",
99
110
  xmlns: "http://www.w3.org/2000/svg",
100
111
  "aria-label": "Equal Experts logo",
101
112
  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" })
113
+ /* @__PURE__ */ n("g", { clipPath: "url(#ee-logo-clip)", children: [
114
+ /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
115
+ /* @__PURE__ */ e("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
116
+ /* @__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" }),
117
+ /* @__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" }),
118
+ /* @__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" }),
119
+ /* @__PURE__ */ e("path", { d: "M399.139 1.45712V45.3862H421.076V57.0237H386.106V1.45712H399.139Z" })
109
120
  ] }),
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" })
121
+ /* @__PURE__ */ e("path", { d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z", fill: "#1795D4" }),
122
+ /* @__PURE__ */ e("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
123
+ /* @__PURE__ */ e("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
124
+ /* @__PURE__ */ e("path", { d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z", fill: "#1795D4" }),
125
+ /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
126
+ /* @__PURE__ */ e("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
127
+ /* @__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" }),
128
+ /* @__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" }),
129
+ /* @__PURE__ */ e("path", { d: "M363.924 75.2819L363.092 86.9096H341.399V97.1291H360.538V108.679H341.399V119.231H363.346V130.849H328.366V75.2819H363.924Z" }),
130
+ /* @__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" }),
131
+ /* @__PURE__ */ e("path", { d: "M456.957 75.2819L456.135 86.9096H442.857V130.849H429.824V86.9096H416.213V75.2819H456.957Z" }),
132
+ /* @__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
133
  ] })
123
134
  ] }),
124
- /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("clipPath", { id: "ee-logo-clip", children: /* @__PURE__ */ d("rect", { width: "500", height: "133", fill: "white" }) }) })
135
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: "ee-logo-clip", children: /* @__PURE__ */ e("rect", { width: "500", height: "133", fill: "white" }) }) })
125
136
  ]
126
137
  }
127
138
  );
128
139
  }
129
- const Ot = _.forwardRef(
140
+ const Y = t.forwardRef(
130
141
  ({
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,
142
+ className: a,
143
+ variant: r = "default",
144
+ logo: l,
145
+ title: o,
146
+ navigation: d,
147
+ actions: u,
148
+ mobileMenuTrigger: i,
149
+ mobileMenu: f,
150
+ hideLogo: p,
151
+ children: C,
152
+ ...N
153
+ }, g) => {
154
+ const m = l !== void 0 ? l : !p && /* @__PURE__ */ e(
155
+ k,
145
156
  {
146
157
  className: "ee-logo--desktop shrink-0",
147
- textColor: t === "bold" ? "white" : "grey"
158
+ textColor: r === "bold" ? "white" : "grey"
148
159
  }
149
- ), C = n !== void 0 ? n : !a && /* @__PURE__ */ d(
150
- Te,
160
+ ), h = l !== void 0 ? l : !p && /* @__PURE__ */ e(
161
+ k,
151
162
  {
152
163
  className: "ee-logo--mobile shrink-0",
153
- textColor: t === "bold" ? "white" : "grey"
164
+ textColor: r === "bold" ? "white" : "grey"
154
165
  }
155
166
  );
156
- return /* @__PURE__ */ H(
167
+ return /* @__PURE__ */ n(
157
168
  "header",
158
169
  {
159
- ref: i,
160
- className: v(
170
+ ref: g,
171
+ className: s(
161
172
  "kuat-header",
162
- `kuat-header--${t}`,
163
- e
173
+ `kuat-header--${r}`,
174
+ a
164
175
  ),
165
- ...S,
176
+ ...N,
166
177
  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,
178
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop", children: [
179
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop-left", children: [
180
+ m && /* @__PURE__ */ n(S, { children: [
181
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: m }),
182
+ /* @__PURE__ */ e(
183
+ M,
173
184
  {
174
185
  orientation: "vertical",
175
186
  className: "kuat-header__separator"
176
187
  }
177
188
  )
178
189
  ] }),
179
- r && /* @__PURE__ */ d("h1", { className: "kuat-header__desktop-title", children: r })
190
+ o && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: o })
180
191
  ] }),
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 })
192
+ /* @__PURE__ */ n("div", { className: "kuat-header__desktop-right", children: [
193
+ d && /* @__PURE__ */ e("nav", { className: "flex items-center", children: d }),
194
+ u && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: u })
184
195
  ] })
185
196
  ] }),
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 })
197
+ /* @__PURE__ */ n("div", { className: "kuat-header__mobile", children: [
198
+ /* @__PURE__ */ n("div", { className: "kuat-header__mobile-left", children: [
199
+ h && /* @__PURE__ */ e("div", { className: "shrink-0", children: h }),
200
+ o && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: o })
190
201
  ] }),
191
- o && /* @__PURE__ */ d("div", { className: "shrink-0", children: o })
202
+ i && /* @__PURE__ */ e("div", { className: "shrink-0", children: i })
192
203
  ] }),
193
- l,
194
- u
204
+ f,
205
+ C
195
206
  ]
196
207
  }
197
208
  );
198
209
  }
199
210
  );
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
- };
211
+ Y.displayName = "KuatHeader";
212
+ function he(a) {
213
+ const r = (a == null ? void 0 : a.variant) ?? "default";
214
+ return s("kuat-header", `kuat-header--${r}`);
869
215
  }
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(
216
+ const pe = ["service", "demo"], fe = ["light", "dark"], q = t.forwardRef(
1461
217
  ({
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,
218
+ className: a,
219
+ title: r,
220
+ use: l = "service",
221
+ mode: o = "light",
222
+ forceDark: d = !1,
223
+ ...u
224
+ }, i) => {
225
+ const f = d ? "dark" : o, p = /* @__PURE__ */ e(
226
+ k,
1608
227
  {
1609
- className: v(
228
+ className: s(
1610
229
  "kuat-logo-lockup__logo",
1611
- n === "demo" && "kuat-logo-lockup__logo--demo"
230
+ l === "demo" && "kuat-logo-lockup__logo--demo"
1612
231
  ),
1613
- textColor: l === "dark" ? "white" : "grey"
232
+ textColor: f === "dark" ? "white" : "grey"
1614
233
  }
1615
234
  );
1616
- return /* @__PURE__ */ d(
235
+ return /* @__PURE__ */ e(
1617
236
  "div",
1618
237
  {
1619
- ref: o,
1620
- className: v(
238
+ ref: i,
239
+ className: s(
1621
240
  "kuat-logo-lockup",
241
+ `kuat-logo-lockup--${f}`,
1622
242
  `kuat-logo-lockup--${l}`,
1623
- `kuat-logo-lockup--${n}`,
1624
- e
243
+ a
1625
244
  ),
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,
245
+ ...u,
246
+ children: l === "service" ? /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__service-inner", children: [
247
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: p }),
248
+ /* @__PURE__ */ e(
249
+ M,
1631
250
  {
1632
251
  orientation: "vertical",
1633
252
  className: "kuat-logo-lockup__separator"
1634
253
  }
1635
254
  ),
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 })
255
+ /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__service-name", children: r })
256
+ ] }) : /* @__PURE__ */ n(S, { children: [
257
+ /* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: r }),
258
+ /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__demo-attribution", children: [
259
+ /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
260
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: p })
1642
261
  ] })
1643
262
  ] })
1644
263
  }
1645
264
  );
1646
265
  }
1647
266
  );
1648
- Cn.displayName = "KuatLogoLockup";
1649
- function $n({ className: e }) {
1650
- return /* @__PURE__ */ H(
267
+ q.displayName = "KuatLogoLockup";
268
+ function Ce({ className: a }) {
269
+ return /* @__PURE__ */ n(
1651
270
  "svg",
1652
271
  {
1653
- className: v("ee-logo-icon", e),
272
+ className: s("ee-logo-icon", a),
1654
273
  viewBox: "0 0 143 133",
1655
274
  fill: "none",
1656
275
  xmlns: "http://www.w3.org/2000/svg",
1657
276
  "aria-label": "Equal Experts",
1658
277
  children: [
1659
- /* @__PURE__ */ d(
278
+ /* @__PURE__ */ e(
1660
279
  "path",
1661
280
  {
1662
281
  d: "M102.74 38.8927H40.5969V57.5323H102.74V38.8927Z",
1663
282
  fill: "currentColor"
1664
283
  }
1665
284
  ),
1666
- /* @__PURE__ */ d(
285
+ /* @__PURE__ */ e(
1667
286
  "path",
1668
287
  {
1669
288
  d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z",
1670
289
  fill: "currentColor"
1671
290
  }
1672
291
  ),
1673
- /* @__PURE__ */ d(
292
+ /* @__PURE__ */ e(
1674
293
  "path",
1675
294
  {
1676
295
  d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z",
1677
296
  fill: "currentColor"
1678
297
  }
1679
298
  ),
1680
- /* @__PURE__ */ d(
299
+ /* @__PURE__ */ e(
1681
300
  "path",
1682
301
  {
1683
302
  d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z",
@@ -1688,385 +307,385 @@ function $n({ className: e }) {
1688
307
  }
1689
308
  );
1690
309
  }
1691
- const ht = _.forwardRef(({ className: e, "aria-label": t = "Breadcrumb", ...n }, r) => /* @__PURE__ */ d(
310
+ const O = t.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l }, o) => /* @__PURE__ */ e(
1692
311
  "nav",
1693
312
  {
1694
- ref: r,
1695
- "aria-label": t,
1696
- className: v("breadcrumb", e),
1697
- ...n
313
+ ref: o,
314
+ "aria-label": r,
315
+ className: s("breadcrumb", a),
316
+ ...l
1698
317
  }
1699
318
  ));
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)
319
+ O.displayName = "BreadcrumbRoot";
320
+ const Z = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("ol", { ref: l, className: s("breadcrumb-list", a), ...r }));
321
+ Z.displayName = "BreadcrumbList";
322
+ const E = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("li", { ref: l, className: s("breadcrumb-item", a), ...r }));
323
+ E.displayName = "BreadcrumbItem";
324
+ const K = t.forwardRef(({ className: a, render: r, asChild: l = !1, ...o }, d) => {
325
+ var u;
326
+ if (r) {
327
+ const i = r.props;
328
+ return t.cloneElement(r, {
329
+ ...o,
330
+ ref: d,
331
+ className: s("breadcrumb-link", i == null ? void 0 : i.className, a)
1713
332
  });
1714
333
  }
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
334
+ if (l && t.Children.only(o.children)) {
335
+ const i = t.Children.only(o.children);
336
+ return t.cloneElement(i, {
337
+ ref: d,
338
+ className: s("breadcrumb-link", (u = i.props) == null ? void 0 : u.className, a),
339
+ ...o
1721
340
  });
1722
341
  }
1723
- return /* @__PURE__ */ d(
342
+ return /* @__PURE__ */ e(
1724
343
  "a",
1725
344
  {
1726
- ref: s,
1727
- className: v("breadcrumb-link", e),
1728
- ...r
345
+ ref: d,
346
+ className: s("breadcrumb-link", a),
347
+ ...o
1729
348
  }
1730
349
  );
1731
350
  });
1732
- bt.displayName = "BreadcrumbLink";
1733
- const De = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
351
+ K.displayName = "BreadcrumbLink";
352
+ const R = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
1734
353
  "span",
1735
354
  {
1736
- ref: n,
355
+ ref: l,
1737
356
  role: "link",
1738
357
  "aria-disabled": "true",
1739
358
  "aria-current": "page",
1740
- className: v("breadcrumb-page", e),
1741
- ...t
359
+ className: s("breadcrumb-page", a),
360
+ ...r
1742
361
  }
1743
362
  ));
1744
- De.displayName = "BreadcrumbPage";
1745
- const Me = _.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
363
+ R.displayName = "BreadcrumbPage";
364
+ const A = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
1746
365
  "span",
1747
366
  {
1748
- ref: r,
367
+ ref: o,
1749
368
  role: "presentation",
1750
369
  "aria-hidden": "true",
1751
- className: v("breadcrumb-separator", e),
1752
- ...n,
1753
- children: t ?? /* @__PURE__ */ d(Oe, { className: "breadcrumb-separator__icon" })
370
+ className: s("breadcrumb-separator", a),
371
+ ...l,
372
+ children: r ?? /* @__PURE__ */ e(B, { className: "breadcrumb-separator__icon" })
1754
373
  }
1755
374
  ));
1756
- Me.displayName = "BreadcrumbSeparator";
1757
- const St = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
375
+ A.displayName = "BreadcrumbSeparator";
376
+ const F = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
1758
377
  "span",
1759
378
  {
1760
- ref: n,
379
+ ref: l,
1761
380
  role: "presentation",
1762
381
  "aria-hidden": "true",
1763
- className: v("breadcrumb-ellipsis", e),
1764
- ...t,
1765
- children: /* @__PURE__ */ d(Dt, { className: "breadcrumb-ellipsis__icon" })
382
+ className: s("breadcrumb-ellipsis", a),
383
+ ...r,
384
+ children: /* @__PURE__ */ e(j, { className: "breadcrumb-ellipsis__icon" })
1766
385
  }
1767
386
  ));
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,
387
+ F.displayName = "BreadcrumbEllipsis";
388
+ const P = c.Root, G = c.Trigger, U = c.Group, z = t.forwardRef(({ className: a, inset: r, children: l, ...o }, d) => /* @__PURE__ */ n(
389
+ c.SubTrigger,
1771
390
  {
1772
- ref: s,
1773
- className: v(
391
+ ref: d,
392
+ className: s(
1774
393
  "dropdown-menu-sub-trigger",
1775
- t && "dropdown-menu-sub-trigger--inset",
1776
- e
394
+ r && "dropdown-menu-sub-trigger--inset",
395
+ a
1777
396
  ),
1778
- ...r,
397
+ ...o,
1779
398
  children: [
1780
- n,
1781
- /* @__PURE__ */ d(Oe, { className: "dropdown-menu-sub-trigger__icon" })
399
+ l,
400
+ /* @__PURE__ */ e(B, { className: "dropdown-menu-sub-trigger__icon" })
1782
401
  ]
1783
402
  }
1784
403
  ));
1785
- Nn.displayName = R.SubTrigger.displayName;
1786
- const yn = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
1787
- R.SubContent,
404
+ z.displayName = c.SubTrigger.displayName;
405
+ const J = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
406
+ c.SubContent,
1788
407
  {
1789
- ref: n,
1790
- className: v("dropdown-menu-content", "dropdown-menu-sub-content", e),
1791
- ...t
408
+ ref: l,
409
+ className: s("dropdown-menu-content", "dropdown-menu-sub-content", a),
410
+ ...r
1792
411
  }
1793
412
  ));
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,
413
+ J.displayName = c.SubContent.displayName;
414
+ const v = t.forwardRef(({ className: a, sideOffset: r = 4, ...l }, o) => /* @__PURE__ */ e(c.Portal, { children: /* @__PURE__ */ e(
415
+ c.Content,
1797
416
  {
1798
- ref: r,
1799
- sideOffset: t,
1800
- className: v("dropdown-menu-content", e),
1801
- ...n
417
+ ref: o,
418
+ sideOffset: r,
419
+ className: s("dropdown-menu-content", a),
420
+ ...l
1802
421
  }
1803
422
  ) }));
1804
- Ze.displayName = R.Content.displayName;
1805
- const Ke = _.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d(
1806
- R.Item,
423
+ v.displayName = c.Content.displayName;
424
+ const I = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
425
+ c.Item,
1807
426
  {
1808
- ref: r,
1809
- className: v(
427
+ ref: o,
428
+ className: s(
1810
429
  "dropdown-menu-item",
1811
- t && "dropdown-menu-item--inset",
1812
- e
430
+ r && "dropdown-menu-item--inset",
431
+ a
1813
432
  ),
1814
- ...n
433
+ ...l
1815
434
  }
1816
435
  ));
1817
- Ke.displayName = R.Item.displayName;
1818
- const _n = _.forwardRef(({ className: e, children: t, checked: n, ...r }, s) => /* @__PURE__ */ d(
1819
- R.CheckboxItem,
436
+ I.displayName = c.Item.displayName;
437
+ const Q = t.forwardRef(({ className: a, children: r, checked: l, ...o }, d) => /* @__PURE__ */ e(
438
+ c.CheckboxItem,
1820
439
  {
1821
- ref: s,
1822
- className: v("dropdown-menu-item", "dropdown-menu-checkbox-item", e),
1823
- checked: n,
1824
- ...r,
1825
- children: t
440
+ ref: d,
441
+ className: s("dropdown-menu-item", "dropdown-menu-checkbox-item", a),
442
+ checked: l,
443
+ ...o,
444
+ children: r
1826
445
  }
1827
446
  ));
1828
- _n.displayName = R.CheckboxItem.displayName;
1829
- const En = _.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
1830
- R.RadioItem,
447
+ Q.displayName = c.CheckboxItem.displayName;
448
+ const W = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
449
+ c.RadioItem,
1831
450
  {
1832
- ref: r,
1833
- className: v("dropdown-menu-item", "dropdown-menu-radio-item", e),
1834
- ...n,
1835
- children: t
451
+ ref: o,
452
+ className: s("dropdown-menu-item", "dropdown-menu-radio-item", a),
453
+ ...l,
454
+ children: r
1836
455
  }
1837
456
  ));
1838
- En.displayName = R.RadioItem.displayName;
1839
- const Ln = _.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d(
1840
- R.Label,
457
+ W.displayName = c.RadioItem.displayName;
458
+ const ee = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
459
+ c.Label,
1841
460
  {
1842
- ref: r,
1843
- className: v(
461
+ ref: o,
462
+ className: s(
1844
463
  "dropdown-menu-label",
1845
- t && "dropdown-menu-label--inset",
1846
- e
464
+ r && "dropdown-menu-label--inset",
465
+ a
1847
466
  ),
1848
- ...n
467
+ ...l
1849
468
  }
1850
469
  ));
1851
- Ln.displayName = R.Label.displayName;
1852
- const wn = _.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d(
1853
- R.Separator,
470
+ ee.displayName = c.Label.displayName;
471
+ const ae = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
472
+ c.Separator,
1854
473
  {
1855
- ref: n,
1856
- className: v("dropdown-menu-separator", e),
1857
- ...t
474
+ ref: l,
475
+ className: s("dropdown-menu-separator", a),
476
+ ...r
1858
477
  }
1859
478
  ));
1860
- wn.displayName = R.Separator.displayName;
1861
- const xn = 640;
1862
- function vn(e = xn) {
1863
- const [t, n] = _.useState(!1);
1864
- return _.useEffect(() => {
479
+ ae.displayName = c.Separator.displayName;
480
+ const re = 640;
481
+ function le(a = re) {
482
+ const [r, l] = t.useState(!1);
483
+ return t.useEffect(() => {
1865
484
  if (typeof window > "u" || typeof window.matchMedia != "function")
1866
485
  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(
486
+ const o = window.matchMedia(`(max-width: ${a}px)`), d = () => l(o.matches);
487
+ return d(), o.addEventListener("change", d), () => o.removeEventListener("change", d);
488
+ }, [a]), r;
489
+ }
490
+ const oe = ({ href: a, children: r, className: l }) => /* @__PURE__ */ e("a", { href: a, className: l, children: r });
491
+ function te(a, r, l, o) {
492
+ return a.children && a.children.length > 0 ? /* @__PURE__ */ n(P, { children: [
493
+ /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ n(
1875
494
  "button",
1876
495
  {
1877
496
  type: "button",
1878
- className: v(
497
+ className: s(
1879
498
  "breadcrumb-dropdown-trigger",
1880
499
  "inline-flex items-center gap-1 font-medium"
1881
500
  ),
1882
501
  "aria-haspopup": "menu",
1883
502
  children: [
1884
- e.label,
1885
- /* @__PURE__ */ d(
1886
- Mt,
503
+ a.label,
504
+ /* @__PURE__ */ e(
505
+ X,
1887
506
  {
1888
507
  className: "breadcrumb-dropdown-trigger__icon",
1889
508
  "aria-hidden": !0
1890
509
  }
1891
510
  ),
1892
- /* @__PURE__ */ d("span", { className: "sr-only", children: "Toggle menu" })
511
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle menu" })
1893
512
  ]
1894
513
  }
1895
514
  ) }),
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,
515
+ /* @__PURE__ */ e(v, { align: "start", children: /* @__PURE__ */ e(U, { children: a.children.map((u, i) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: u.href, children: u.label }) }, i)) }) })
516
+ ] }) : r ? /* @__PURE__ */ e(R, { children: a.label }) : a.href ? /* @__PURE__ */ e(
517
+ K,
1899
518
  {
1900
- render: /* @__PURE__ */ d(n, { href: e.href, children: e.label })
519
+ render: /* @__PURE__ */ e(l, { href: a.href, children: a.label })
1901
520
  }
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 }))
521
+ ) : /* @__PURE__ */ e(R, { children: a.label });
522
+ }
523
+ function ne({
524
+ items: a,
525
+ linkComponent: r = oe,
526
+ separator: l,
527
+ className: o,
528
+ "aria-label": d = "Breadcrumb",
529
+ ...u
530
+ }, i) {
531
+ const f = le();
532
+ if (!a.length) return null;
533
+ const p = f && a.length > 2, C = p ? [a[0], a[a.length - 1]] : a, g = (p ? a.slice(1, -1) : []).flatMap(
534
+ (m) => m.href ? [{ label: m.label, href: m.href }] : (m.children ?? []).map((h) => ({ label: h.label, href: h.href }))
1916
535
  );
1917
- return /* @__PURE__ */ d(
1918
- ht,
536
+ return /* @__PURE__ */ e(
537
+ O,
1919
538
  {
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(
539
+ ref: i,
540
+ "aria-label": d,
541
+ className: o,
542
+ ...u,
543
+ children: /* @__PURE__ */ e(Z, { children: C.map((m, h) => {
544
+ const L = p ? h === 0 ? 0 : a.length - 1 : h, _ = h === C.length - 1 && !m.href && !m.children;
545
+ return /* @__PURE__ */ n(t.Fragment, { children: [
546
+ h > 0 && /* @__PURE__ */ e(A, { children: l }),
547
+ p && h === 1 && g.length > 0 && /* @__PURE__ */ n(S, { children: [
548
+ /* @__PURE__ */ e(E, { children: /* @__PURE__ */ n(P, { children: [
549
+ /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ n(
1931
550
  "button",
1932
551
  {
1933
552
  type: "button",
1934
- className: v(
553
+ className: s(
1935
554
  "breadcrumb-dropdown-trigger",
1936
555
  "breadcrumb-ellipsis-trigger",
1937
556
  "inline-flex items-center"
1938
557
  ),
1939
558
  "aria-haspopup": "menu",
1940
559
  children: [
1941
- /* @__PURE__ */ d(St, {}),
1942
- /* @__PURE__ */ d("span", { className: "sr-only", children: "Show more pages" })
560
+ /* @__PURE__ */ e(F, {}),
561
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Show more pages" })
1943
562
  ]
1944
563
  }
1945
564
  ) }),
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)) }) })
565
+ /* @__PURE__ */ e(v, { align: "start", children: /* @__PURE__ */ e(U, { children: g.map((b, H) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: b.href, children: b.label }) }, H)) }) })
1947
566
  ] }) }),
1948
- /* @__PURE__ */ d(Me, { children: n })
567
+ /* @__PURE__ */ e(A, { children: l })
1949
568
  ] }),
1950
- /* @__PURE__ */ d(Ve, { children: Hn(m, b, t) })
1951
- ] }, p);
569
+ /* @__PURE__ */ e(E, { children: te(m, _, r) })
570
+ ] }, L);
1952
571
  }) })
1953
572
  }
1954
573
  );
1955
574
  }
1956
- const kn = _.forwardRef(
1957
- Tn
575
+ const se = t.forwardRef(
576
+ ne
1958
577
  );
1959
- kn.displayName = "Breadcrumb";
578
+ se.displayName = "Breadcrumb";
1960
579
  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
580
+ Ge as Accordion,
581
+ Ue as AccordionContent,
582
+ $e as AccordionItem,
583
+ je as AccordionTrigger,
584
+ Ye as AlertDialog,
585
+ qe as AlertDialogAction,
586
+ ze as AlertDialogCancel,
587
+ Je as AlertDialogContent,
588
+ Qe as AlertDialogDescription,
589
+ We as AlertDialogFooter,
590
+ ea as AlertDialogHeader,
591
+ aa as AlertDialogOverlay,
592
+ ra as AlertDialogPortal,
593
+ la as AlertDialogTitle,
594
+ oa as AlertDialogTrigger,
595
+ na as BADGE_ROUNDNESS,
596
+ sa as BADGE_VARIANTS,
597
+ ua as BUTTON_COLORS,
598
+ Ne as BUTTON_GROUP_ORIENTATIONS,
599
+ ma as BUTTON_SIZES,
600
+ ha as BUTTON_VARIANTS,
601
+ da as Badge,
602
+ se as Breadcrumb,
603
+ F as BreadcrumbEllipsis,
604
+ E as BreadcrumbItem,
605
+ K as BreadcrumbLink,
606
+ Z as BreadcrumbList,
607
+ R as BreadcrumbPage,
608
+ O as BreadcrumbRoot,
609
+ A as BreadcrumbSeparator,
610
+ pa as Button,
611
+ _e as ButtonGroup,
612
+ He as ButtonGroupSeparator,
613
+ we as ButtonGroupText,
614
+ qa as CHECKBOX_FIELD_APPEARANCES,
615
+ za as CHECKBOX_FIELD_LAYOUTS,
616
+ Ve as Carousel,
617
+ ke as CarouselContent,
618
+ Ee as CarouselItem,
619
+ Re as CarouselNext,
620
+ Ae as CarouselPrevious,
621
+ Ja as Checkbox,
622
+ Qa as CheckboxField,
623
+ me as ContentCard,
624
+ k as EELogo,
625
+ Ce as EELogoIcon,
626
+ Sa as FIELD_ORIENTATIONS,
627
+ La as Field,
628
+ Va as FieldContent,
629
+ ka as FieldDescription,
630
+ Ea as FieldError,
631
+ Ra as FieldGroup,
632
+ Aa as FieldLabel,
633
+ va as FieldLegend,
634
+ Ia as FieldSeparator,
635
+ ya as FieldSet,
636
+ Ta as FieldTitle,
637
+ _a as INPUT_SIZES,
638
+ Ha as Input,
639
+ fe as KUAT_LOGO_LOCKUP_MODE,
640
+ pe as KUAT_LOGO_LOCKUP_USE,
641
+ Ze as KUAT_RADIAL_PROGRESS_COLORS,
642
+ Ke as KUAT_RADIAL_PROGRESS_SIZES,
643
+ ye as KuatCarousel,
644
+ Te as KuatCarouselContent,
645
+ De as KuatCarouselItem,
646
+ xe as KuatCarouselNext,
647
+ Me as KuatCarouselPrevious,
648
+ Y as KuatHeader,
649
+ q as KuatLogoLockup,
650
+ Fe as KuatRadialProgress,
651
+ xa as KuatSelect,
652
+ er as RADIO_FIELD_APPEARANCES,
653
+ ar as RADIO_FIELD_LAYOUTS,
654
+ rr as RadioField,
655
+ lr as RadioGroup,
656
+ or as RadioGroupItem,
657
+ Ma as SELECT_LINES,
658
+ Ba as SELECT_SIZES,
659
+ gr as SONNER_POSITIONS,
660
+ nr as SWITCH_FIELD_APPEARANCES,
661
+ sr as SWITCH_FIELD_LAYOUTS,
662
+ Oa as Select,
663
+ Za as SelectContent,
664
+ Ka as SelectGroup,
665
+ Fa as SelectItem,
666
+ Pa as SelectLabel,
667
+ Ga as SelectScrollDownButton,
668
+ Ua as SelectScrollUpButton,
669
+ $a as SelectSeparator,
670
+ ja as SelectTrigger,
671
+ Xa as SelectValue,
672
+ br as Sonner,
673
+ Nr as SonnerContent,
674
+ dr as Switch,
675
+ cr as SwitchField,
676
+ ga as TEXTAREA_RESIZE,
677
+ ur as TOGGLE_SIZES,
678
+ mr as TOGGLE_SKINS,
679
+ ba as Textarea,
680
+ hr as Toggle,
681
+ pr as ToggleGroup,
682
+ fr as ToggleGroupItem,
683
+ ca as badgeVariants,
684
+ Se as buttonGroupVariants,
685
+ fa as buttonVariants,
686
+ s as cn,
687
+ he as kuatHeaderVariants,
688
+ _r as toast,
689
+ ve as useCarousel,
690
+ Be as useKuatCarousel
2072
691
  };