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