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