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