slippers-ui 3.1.17 → 3.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/slippers-ui.es.js +395 -392
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/slippers-ui.es.js
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as I, computed as k, openBlock as s, createElementBlock as r, mergeProps as j, renderSlot as b, normalizeClass as g, createElementVNode as v, createBlock as R, resolveDynamicComponent as K, normalizeStyle as Q, withCtx as N, createCommentVNode as B, ref as w, onMounted as D, nextTick as se, onUnmounted as X, createVNode as $, unref as G, Fragment as T, renderList as z, withModifiers as Z, toDisplayString as S, createTextVNode as V, resolveComponent as le, withDirectives as P, vShow as H, normalizeProps as ie, guardReactiveProps as re, onBeforeUnmount as Y, onBeforeMount as x, watch as J, vModelSelect as de } from "vue";
|
|
2
|
+
import { _ as C, C as ee, a as te, b as ae, c as ce } from "./chunks/ChevronLgUp-EczI5oF8.js";
|
|
3
|
+
const ue = ["href"], pe = /* @__PURE__ */ I({
|
|
4
4
|
__name: "SlpButton",
|
|
5
5
|
props: {
|
|
6
6
|
disabled: { type: Boolean },
|
|
7
7
|
variant: {},
|
|
8
8
|
href: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
12
|
-
|
|
13
|
-
const a =
|
|
14
|
-
let n = [`slp-btn-${
|
|
10
|
+
setup(u) {
|
|
11
|
+
const e = u, o = k(() => e.disabled ?? !1), l = k(() => e.variant ?? "primary");
|
|
12
|
+
k(() => e.href ?? "");
|
|
13
|
+
const a = k(() => {
|
|
14
|
+
let n = [`slp-btn-${l.value}`];
|
|
15
15
|
return o.value && n.push("slp-btn-disabled"), n.join(" ");
|
|
16
16
|
});
|
|
17
|
-
return (n, d) => e.href ? (s(), r("a",
|
|
17
|
+
return (n, d) => e.href ? (s(), r("a", j({ key: 0 }, n.$attrs, {
|
|
18
18
|
class: ["slp-btn", a.value],
|
|
19
19
|
href: e.href
|
|
20
20
|
}), [
|
|
21
21
|
b(n.$slots, "default", {}, void 0, !0)
|
|
22
|
-
], 16,
|
|
22
|
+
], 16, ue)) : (s(), r("button", j({ key: 1 }, n.$attrs, {
|
|
23
23
|
class: ["slp-btn", a.value],
|
|
24
24
|
type: "button"
|
|
25
25
|
}), [
|
|
26
26
|
b(n.$slots, "default", {}, void 0, !0)
|
|
27
27
|
], 16));
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), U = /* @__PURE__ */ C(pe, [["__scopeId", "data-v-56e2df5f"]]), fe = /* @__PURE__ */ I({
|
|
30
30
|
__name: "SlpColumn",
|
|
31
31
|
props: {
|
|
32
32
|
cols: {},
|
|
33
33
|
size: {}
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const e =
|
|
35
|
+
setup(u) {
|
|
36
|
+
const e = u, o = k(() => e.cols ?? null), l = k(() => e.size ?? "md"), a = k(() => o.value ? `slp-col-${l.value}-${o.value}` : `slp-col-${l.value}`);
|
|
37
37
|
return (n, d) => (s(), r("div", {
|
|
38
|
-
class:
|
|
38
|
+
class: g(a.value)
|
|
39
39
|
}, [
|
|
40
40
|
b(n.$slots, "default", {}, void 0, !0)
|
|
41
41
|
], 2));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), Tt = /* @__PURE__ */ C(fe, [["__scopeId", "data-v-00b68f22"]]), ve = {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "slp-full-light-purple-background"
|
|
46
|
-
},
|
|
46
|
+
}, he = {
|
|
47
47
|
key: 1,
|
|
48
48
|
class: "slp-charcoal-grey-background"
|
|
49
|
-
},
|
|
49
|
+
}, me = {
|
|
50
50
|
key: 2,
|
|
51
51
|
class: "slp-gradient-background"
|
|
52
|
-
},
|
|
52
|
+
}, ge = {
|
|
53
53
|
key: 3,
|
|
54
54
|
class: "slp-full-gradient-background"
|
|
55
|
-
},
|
|
55
|
+
}, _e = {
|
|
56
56
|
key: 4,
|
|
57
57
|
class: "slp-full-charcoal-background"
|
|
58
|
-
},
|
|
58
|
+
}, be = {
|
|
59
59
|
key: 5,
|
|
60
60
|
class: "slp-partial-charcoal-background"
|
|
61
|
-
},
|
|
61
|
+
}, ye = {
|
|
62
62
|
key: 6,
|
|
63
63
|
class: "slp-half-grey-background"
|
|
64
|
-
},
|
|
64
|
+
}, $e = {
|
|
65
65
|
key: 7,
|
|
66
66
|
class: "slp-partial-white-background"
|
|
67
|
-
},
|
|
67
|
+
}, ke = {
|
|
68
68
|
key: 8,
|
|
69
69
|
class: "slp-partial-grey-background"
|
|
70
|
-
},
|
|
70
|
+
}, we = /* @__PURE__ */ I({
|
|
71
71
|
__name: "SlpContainer",
|
|
72
72
|
props: {
|
|
73
73
|
fluid: { type: Boolean },
|
|
74
74
|
variant: {}
|
|
75
75
|
},
|
|
76
|
-
setup(
|
|
77
|
-
const e =
|
|
78
|
-
return (n, d) =>
|
|
76
|
+
setup(u) {
|
|
77
|
+
const e = u, o = k(() => e.fluid ?? !1), l = k(() => e.variant ?? "white"), a = k(() => o.value ? "fluid" : "");
|
|
78
|
+
return (n, d) => l.value === "light-purple-100" ? (s(), r("div", ve, [
|
|
79
79
|
v("div", {
|
|
80
|
-
class:
|
|
80
|
+
class: g(["slp-container", a.value])
|
|
81
81
|
}, [
|
|
82
82
|
b(n.$slots, "default", {}, void 0, !0)
|
|
83
83
|
], 2)
|
|
84
|
-
])) :
|
|
84
|
+
])) : l.value === "grey-100" ? (s(), r("div", he, [
|
|
85
85
|
v("div", {
|
|
86
|
-
class:
|
|
86
|
+
class: g(["slp-container", a.value])
|
|
87
87
|
}, [
|
|
88
88
|
b(n.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2)
|
|
90
|
-
])) :
|
|
90
|
+
])) : l.value === "gradient" ? (s(), r("div", me, [
|
|
91
91
|
v("div", {
|
|
92
|
-
class:
|
|
92
|
+
class: g(["slp-container", a.value])
|
|
93
93
|
}, [
|
|
94
94
|
b(n.$slots, "default", {}, void 0, !0)
|
|
95
95
|
], 2)
|
|
96
|
-
])) :
|
|
96
|
+
])) : l.value === "gradient-full" ? (s(), r("div", ge, [
|
|
97
97
|
v("div", {
|
|
98
|
-
class:
|
|
98
|
+
class: g(["slp-container", a.value])
|
|
99
99
|
}, [
|
|
100
100
|
b(n.$slots, "default", {}, void 0, !0)
|
|
101
101
|
], 2)
|
|
102
|
-
])) :
|
|
102
|
+
])) : l.value === "charcoal-100" ? (s(), r("div", _e, [
|
|
103
103
|
v("div", {
|
|
104
|
-
class:
|
|
104
|
+
class: g(["slp-container", a.value])
|
|
105
105
|
}, [
|
|
106
106
|
b(n.$slots, "default", {}, void 0, !0)
|
|
107
107
|
], 2)
|
|
108
|
-
])) :
|
|
108
|
+
])) : l.value === "charcoal-75" ? (s(), r("div", be, [
|
|
109
109
|
v("div", {
|
|
110
|
-
class:
|
|
110
|
+
class: g(["slp-container", a.value])
|
|
111
111
|
}, [
|
|
112
112
|
b(n.$slots, "default", {}, void 0, !0)
|
|
113
113
|
], 2)
|
|
114
|
-
])) :
|
|
114
|
+
])) : l.value === "grey-50" ? (s(), r("div", ye, [
|
|
115
115
|
v("div", {
|
|
116
|
-
class:
|
|
116
|
+
class: g(["slp-container", a.value])
|
|
117
117
|
}, [
|
|
118
118
|
b(n.$slots, "default", {}, void 0, !0)
|
|
119
119
|
], 2)
|
|
120
|
-
])) :
|
|
120
|
+
])) : l.value === "white-75" ? (s(), r("div", $e, [
|
|
121
121
|
v("div", {
|
|
122
|
-
class:
|
|
122
|
+
class: g(["slp-container", a.value])
|
|
123
123
|
}, [
|
|
124
124
|
b(n.$slots, "default", {}, void 0, !0)
|
|
125
125
|
], 2)
|
|
126
|
-
])) :
|
|
126
|
+
])) : l.value === "grey-75" ? (s(), r("div", ke, [
|
|
127
127
|
v("div", {
|
|
128
|
-
class:
|
|
128
|
+
class: g(["slp-container", a.value])
|
|
129
129
|
}, [
|
|
130
130
|
b(n.$slots, "default", {}, void 0, !0)
|
|
131
131
|
], 2)
|
|
132
132
|
])) : (s(), r("div", {
|
|
133
133
|
key: 9,
|
|
134
|
-
class:
|
|
134
|
+
class: g(["slp-container", a.value])
|
|
135
135
|
}, [
|
|
136
136
|
b(n.$slots, "default", {}, void 0, !0)
|
|
137
137
|
], 2));
|
|
138
138
|
}
|
|
139
|
-
}),
|
|
139
|
+
}), oe = /* @__PURE__ */ C(we, [["__scopeId", "data-v-67a0761e"]]), Se = /* @__PURE__ */ I({
|
|
140
140
|
__name: "SlpIcon",
|
|
141
141
|
props: {
|
|
142
142
|
size: {
|
|
@@ -155,11 +155,11 @@ const de = ["href"], ce = /* @__PURE__ */ L({
|
|
|
155
155
|
required: !0
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
-
setup(
|
|
159
|
-
const e =
|
|
158
|
+
setup(u) {
|
|
159
|
+
const e = u, o = k(() => {
|
|
160
160
|
const a = ["slp-icon"];
|
|
161
161
|
return typeof e.size == "string" && isNaN(Number(e.size)) && a.push(`slp-icon--size-${e.size}`), e.color && !e.color.startsWith("#") && a.push(`slp-icon--color-${e.color}`), a;
|
|
162
|
-
}),
|
|
162
|
+
}), l = k(() => {
|
|
163
163
|
var n;
|
|
164
164
|
const a = {};
|
|
165
165
|
if ((n = e.color) != null && n.startsWith("#") && (a.color = e.color, a.fill = e.color), typeof e.size == "number" || !isNaN(Number(e.size))) {
|
|
@@ -169,32 +169,32 @@ const de = ["href"], ce = /* @__PURE__ */ L({
|
|
|
169
169
|
return a;
|
|
170
170
|
});
|
|
171
171
|
return (a, n) => {
|
|
172
|
-
var d,
|
|
173
|
-
return s(),
|
|
174
|
-
class:
|
|
175
|
-
style:
|
|
172
|
+
var d, i;
|
|
173
|
+
return s(), R(K(u.icon), {
|
|
174
|
+
class: g(["slp-icon", o.value]),
|
|
175
|
+
style: Q(l.value),
|
|
176
176
|
role: "img",
|
|
177
177
|
"aria-hidden": "true",
|
|
178
|
-
"data-icon-name": ((
|
|
178
|
+
"data-icon-name": ((i = (d = u.icon) == null ? void 0 : d.__docgenInfo) == null ? void 0 : i.displayName) || ""
|
|
179
179
|
}, null, 8, ["class", "style", "data-icon-name"]);
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
}),
|
|
183
|
-
function
|
|
184
|
-
return s(), r("div",
|
|
185
|
-
b(
|
|
182
|
+
}), A = /* @__PURE__ */ C(Se, [["__scopeId", "data-v-b82aeda9"]]), Ce = {}, Le = { class: "slp-row" };
|
|
183
|
+
function Ie(u, e) {
|
|
184
|
+
return s(), r("div", Le, [
|
|
185
|
+
b(u.$slots, "default", {}, void 0, !0)
|
|
186
186
|
]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const zt = /* @__PURE__ */ C(Ce, [["render", Ie], ["__scopeId", "data-v-adc8d02f"]]), Ne = {
|
|
189
189
|
key: 0,
|
|
190
190
|
class: "arrow-symbol"
|
|
191
|
-
},
|
|
191
|
+
}, Te = /* @__PURE__ */ I({
|
|
192
192
|
__name: "SlpTypography",
|
|
193
193
|
props: {
|
|
194
194
|
variant: {},
|
|
195
195
|
tag: {}
|
|
196
196
|
},
|
|
197
|
-
setup(
|
|
197
|
+
setup(u) {
|
|
198
198
|
const e = [
|
|
199
199
|
"display1",
|
|
200
200
|
"heading1",
|
|
@@ -217,21 +217,21 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
217
217
|
"arrow",
|
|
218
218
|
"quotes",
|
|
219
219
|
"emphasis"
|
|
220
|
-
], o = ["span", "h1", "h2", "h3", "h4", "p", "div"],
|
|
221
|
-
return (
|
|
222
|
-
class:
|
|
220
|
+
], o = ["span", "h1", "h2", "h3", "h4", "h5", "p", "div"], l = u, a = k(() => e.includes(l.variant || "") ? l.variant : "body1"), n = k(() => o.includes(l.tag || "") ? l.tag : "span"), d = k(() => `slp-text-${a.value}`);
|
|
221
|
+
return (i, c) => (s(), R(K(n.value), {
|
|
222
|
+
class: g(d.value)
|
|
223
223
|
}, {
|
|
224
224
|
default: N(() => [
|
|
225
|
-
b(
|
|
226
|
-
a.value === "arrow" ? (s(), r("span",
|
|
225
|
+
b(i.$slots, "default", {}, void 0, !0),
|
|
226
|
+
a.value === "arrow" ? (s(), r("span", Ne, "→")) : B("", !0)
|
|
227
227
|
]),
|
|
228
228
|
_: 3
|
|
229
229
|
}, 8, ["class"]));
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), F = /* @__PURE__ */ C(Te, [["__scopeId", "data-v-f601c702"]]), ze = {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "dropdown-menu"
|
|
234
|
-
},
|
|
234
|
+
}, Ee = ["onClick"], Me = { class: "side-navigation" }, Be = ["data-ga-name", "onClick"], Ge = /* @__PURE__ */ I({
|
|
235
235
|
__name: "SlpSideNavigation",
|
|
236
236
|
props: {
|
|
237
237
|
position: {
|
|
@@ -247,38 +247,41 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
247
247
|
required: !0
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
|
-
setup(
|
|
251
|
-
const e =
|
|
252
|
-
o.value && !o.value.contains(
|
|
253
|
-
}, a =
|
|
250
|
+
setup(u) {
|
|
251
|
+
const e = u, o = w(null), l = (p) => {
|
|
252
|
+
o.value && !o.value.contains(p.target) && (i.value = !1);
|
|
253
|
+
}, a = w(null), n = w(null);
|
|
254
254
|
let d = null;
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
|
|
255
|
+
const i = w(!1), c = (p) => {
|
|
256
|
+
const h = document.getElementById(p);
|
|
257
|
+
h && h.scrollIntoView({ behavior: "smooth" }), i.value = !1;
|
|
258
258
|
}, t = () => {
|
|
259
259
|
if (!n.value) return;
|
|
260
|
-
const
|
|
260
|
+
const p = e.navigationItems.map((h) => document.getElementById(h.id)).filter((h) => h !== null);
|
|
261
261
|
d = new IntersectionObserver(
|
|
262
262
|
(h) => {
|
|
263
|
-
h.forEach((
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
|
|
263
|
+
h.forEach((m) => {
|
|
264
|
+
if (m.isIntersecting) {
|
|
265
|
+
const f = m.target.getAttribute("id");
|
|
266
|
+
f && (a.value = f);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
|
-
rootMargin:
|
|
272
|
-
|
|
271
|
+
rootMargin: "0px 0px -40% 0px",
|
|
272
|
+
// When the 40% of the content is in the viewport the menu will be highlighted
|
|
273
|
+
threshold: Array.from({ length: 99 }, (h, m) => (m + 2) / 100)
|
|
273
274
|
}
|
|
274
|
-
),
|
|
275
|
+
), p.forEach((h) => d == null ? void 0 : d.observe(h));
|
|
275
276
|
};
|
|
276
|
-
return
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}), (
|
|
281
|
-
|
|
277
|
+
return D(() => {
|
|
278
|
+
document.addEventListener("click", l), se(() => {
|
|
279
|
+
t();
|
|
280
|
+
});
|
|
281
|
+
}), X(() => {
|
|
282
|
+
d && d.disconnect(), document.removeEventListener("click", l);
|
|
283
|
+
}), (p, h) => (s(), r("div", {
|
|
284
|
+
class: g([
|
|
282
285
|
"side-navigation-layout",
|
|
283
286
|
`side-navigation-layout--${e.position}`,
|
|
284
287
|
{ "side-navigation--dark": e.darkMode }
|
|
@@ -291,41 +294,41 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
291
294
|
}, [
|
|
292
295
|
v("button", {
|
|
293
296
|
class: "dropdown-toggle",
|
|
294
|
-
onClick:
|
|
297
|
+
onClick: h[0] || (h[0] = (m) => i.value = !i.value)
|
|
295
298
|
}, [
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
icon:
|
|
299
|
+
h[1] || (h[1] = v("span", null, "Jump to a section", -1)),
|
|
300
|
+
$(A, {
|
|
301
|
+
icon: i.value ? G(ee) : G(te),
|
|
299
302
|
color: "black",
|
|
300
303
|
size: "sm"
|
|
301
304
|
}, null, 8, ["icon"])
|
|
302
305
|
]),
|
|
303
|
-
|
|
304
|
-
(s(!0), r(T, null, z(e.navigationItems, (
|
|
305
|
-
key:
|
|
306
|
+
i.value ? (s(), r("ul", ze, [
|
|
307
|
+
(s(!0), r(T, null, z(e.navigationItems, (m) => (s(), r("li", {
|
|
308
|
+
key: m.id,
|
|
306
309
|
class: "dropdown-item"
|
|
307
310
|
}, [
|
|
308
311
|
v("a", {
|
|
309
312
|
href: "#",
|
|
310
313
|
class: "dropdown-link",
|
|
311
|
-
onClick:
|
|
312
|
-
},
|
|
314
|
+
onClick: Z((f) => c(m.id), ["prevent"])
|
|
315
|
+
}, S(m.text), 9, Ee)
|
|
313
316
|
]))), 128))
|
|
314
|
-
])) :
|
|
317
|
+
])) : B("", !0)
|
|
315
318
|
], 512),
|
|
316
|
-
v("nav",
|
|
319
|
+
v("nav", Me, [
|
|
317
320
|
v("ul", null, [
|
|
318
|
-
(s(!0), r(T, null, z(e.navigationItems, (
|
|
319
|
-
key:
|
|
321
|
+
(s(!0), r(T, null, z(e.navigationItems, (m) => (s(), r("li", {
|
|
322
|
+
key: m.id,
|
|
320
323
|
class: "side-navigation__item"
|
|
321
324
|
}, [
|
|
322
325
|
v("a", {
|
|
323
326
|
href: "#",
|
|
324
|
-
class:
|
|
325
|
-
"data-ga-name":
|
|
327
|
+
class: g(["side-navigation__link", { "side-navigation__link--active": a.value === m.id }]),
|
|
328
|
+
"data-ga-name": m.text,
|
|
326
329
|
"data-ga-location": "side anchor",
|
|
327
|
-
onClick:
|
|
328
|
-
},
|
|
330
|
+
onClick: Z((f) => c(m.id), ["prevent"])
|
|
331
|
+
}, S(m.text), 11, Be)
|
|
329
332
|
]))), 128))
|
|
330
333
|
])
|
|
331
334
|
]),
|
|
@@ -334,11 +337,11 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
334
337
|
ref: n,
|
|
335
338
|
class: "side-navigation-content"
|
|
336
339
|
}, [
|
|
337
|
-
b(
|
|
340
|
+
b(p.$slots, "default", {}, void 0, !0)
|
|
338
341
|
], 512)
|
|
339
342
|
], 2));
|
|
340
343
|
}
|
|
341
|
-
}),
|
|
344
|
+
}), Et = /* @__PURE__ */ C(Ge, [["__scopeId", "data-v-68f8d83f"]]), Ve = ["for"], Oe = ["name", "value", "id", "checked", "disabled"], Re = /* @__PURE__ */ I({
|
|
342
345
|
__name: "SlpRadioButton",
|
|
343
346
|
props: {
|
|
344
347
|
option: {},
|
|
@@ -346,32 +349,32 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
346
349
|
config: {}
|
|
347
350
|
},
|
|
348
351
|
emits: ["update:modelValue"],
|
|
349
|
-
setup(
|
|
350
|
-
const o = e,
|
|
352
|
+
setup(u, { emit: e }) {
|
|
353
|
+
const o = e, l = (a) => {
|
|
351
354
|
const n = a.target;
|
|
352
355
|
o("update:modelValue", n.value);
|
|
353
356
|
};
|
|
354
357
|
return (a, n) => {
|
|
355
|
-
var d,
|
|
358
|
+
var d, i, c;
|
|
356
359
|
return s(), r("label", {
|
|
357
360
|
for: a.option,
|
|
358
|
-
class:
|
|
361
|
+
class: g(["slp-radio", { disabled: (d = a.config) == null ? void 0 : d.disabled }])
|
|
359
362
|
}, [
|
|
360
|
-
|
|
363
|
+
V(S(a.option) + " ", 1),
|
|
361
364
|
v("input", {
|
|
362
365
|
type: "radio",
|
|
363
366
|
name: a.name,
|
|
364
367
|
value: a.option,
|
|
365
368
|
id: a.option,
|
|
366
|
-
onInput:
|
|
367
|
-
checked: (
|
|
369
|
+
onInput: l,
|
|
370
|
+
checked: (i = a.config) == null ? void 0 : i.checked,
|
|
368
371
|
disabled: (c = a.config) == null ? void 0 : c.disabled
|
|
369
|
-
}, null, 40,
|
|
372
|
+
}, null, 40, Oe),
|
|
370
373
|
n[0] || (n[0] = v("span", { class: "slp-radio__checkmark" }, null, -1))
|
|
371
|
-
], 10,
|
|
374
|
+
], 10, Ve);
|
|
372
375
|
};
|
|
373
376
|
}
|
|
374
|
-
}),
|
|
377
|
+
}), Ae = /* @__PURE__ */ C(Re, [["__scopeId", "data-v-f37e970e"]]), Fe = /* @__PURE__ */ I({
|
|
375
378
|
__name: "SlpRadioButtonGroup",
|
|
376
379
|
props: {
|
|
377
380
|
options: {},
|
|
@@ -382,23 +385,23 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
382
385
|
} }
|
|
383
386
|
},
|
|
384
387
|
emits: ["update:modelValue"],
|
|
385
|
-
setup(
|
|
388
|
+
setup(u, { emit: e }) {
|
|
386
389
|
const o = {
|
|
387
390
|
VERTICAL: "vertical",
|
|
388
391
|
HORIZONTAL: "horizontal"
|
|
389
|
-
},
|
|
390
|
-
|
|
392
|
+
}, l = e, a = (n) => {
|
|
393
|
+
l("update:modelValue", n);
|
|
391
394
|
};
|
|
392
395
|
return (n, d) => {
|
|
393
|
-
var
|
|
394
|
-
return s(),
|
|
395
|
-
class:
|
|
396
|
-
"slp-radio-group--vertical": ((
|
|
396
|
+
var i, c;
|
|
397
|
+
return s(), R(oe, {
|
|
398
|
+
class: g(["slp-radio-group", {
|
|
399
|
+
"slp-radio-group--vertical": ((i = n.config) == null ? void 0 : i.orientation) === o.VERTICAL,
|
|
397
400
|
"slp-radio-group--horizontal": ((c = n.config) == null ? void 0 : c.orientation) === o.HORIZONTAL
|
|
398
401
|
}])
|
|
399
402
|
}, {
|
|
400
403
|
default: N(() => [
|
|
401
|
-
(s(!0), r(T, null, z(n.options, (t) => (s(),
|
|
404
|
+
(s(!0), r(T, null, z(n.options, (t) => (s(), R(Ae, {
|
|
402
405
|
key: t.value,
|
|
403
406
|
option: t.value,
|
|
404
407
|
name: n.name,
|
|
@@ -413,26 +416,26 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
413
416
|
}, 8, ["class"]);
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
|
-
}),
|
|
419
|
+
}), Mt = /* @__PURE__ */ C(Fe, [["__scopeId", "data-v-ae31ec89"]]), Pe = {
|
|
417
420
|
key: 0,
|
|
418
421
|
class: "slp-loading-round"
|
|
419
|
-
},
|
|
422
|
+
}, De = {
|
|
420
423
|
key: 1,
|
|
421
424
|
class: "slp-loading-linear"
|
|
422
|
-
},
|
|
425
|
+
}, We = /* @__PURE__ */ I({
|
|
423
426
|
name: "SlpLoader",
|
|
424
427
|
__name: "SlpLoader",
|
|
425
428
|
props: {
|
|
426
429
|
config: {}
|
|
427
430
|
},
|
|
428
|
-
setup(
|
|
429
|
-
const e =
|
|
430
|
-
return (o,
|
|
431
|
+
setup(u) {
|
|
432
|
+
const e = u;
|
|
433
|
+
return (o, l) => {
|
|
431
434
|
var a;
|
|
432
|
-
return ((a = e.config) == null ? void 0 : a.variant) === "round" ? (s(), r("div",
|
|
435
|
+
return ((a = e.config) == null ? void 0 : a.variant) === "round" ? (s(), r("div", Pe)) : (s(), r("div", De));
|
|
433
436
|
};
|
|
434
437
|
}
|
|
435
|
-
}),
|
|
438
|
+
}), Bt = /* @__PURE__ */ C(We, [["__scopeId", "data-v-ee32411b"]]), qe = ["href", "data-ga-name", "data-ga-location"], He = /* @__PURE__ */ I({
|
|
436
439
|
__name: "Tree",
|
|
437
440
|
props: {
|
|
438
441
|
text: { default: "" },
|
|
@@ -446,90 +449,90 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
446
449
|
mobile: !1
|
|
447
450
|
}) }
|
|
448
451
|
},
|
|
449
|
-
setup(
|
|
452
|
+
setup(u) {
|
|
450
453
|
return (e, o) => {
|
|
451
|
-
var a, n, d,
|
|
452
|
-
const
|
|
454
|
+
var a, n, d, i, c, t;
|
|
455
|
+
const l = le("Tree", !0);
|
|
453
456
|
return s(), r("div", {
|
|
454
|
-
class:
|
|
457
|
+
class: g([`depth-${(a = e.config) == null ? void 0 : a.depth}`, { mobile: (n = e.config) == null ? void 0 : n.mobile }])
|
|
455
458
|
}, [
|
|
456
459
|
e.text ? (s(), r("a", {
|
|
457
460
|
key: 0,
|
|
458
|
-
class:
|
|
459
|
-
href: (
|
|
461
|
+
class: g(["anchor", { selected: (d = e.config) == null ? void 0 : d.isSelected }]),
|
|
462
|
+
href: (i = e.config) == null ? void 0 : i.href,
|
|
460
463
|
"data-ga-name": (c = e.config) == null ? void 0 : c.dataGaName,
|
|
461
464
|
"data-ga-location": (t = e.config) == null ? void 0 : t.dataGaLocation
|
|
462
|
-
},
|
|
463
|
-
(s(!0), r(T, null, z(e.nodes, (
|
|
464
|
-
var
|
|
465
|
-
return s(),
|
|
466
|
-
key:
|
|
467
|
-
nodes:
|
|
468
|
-
text:
|
|
465
|
+
}, S(e.text), 11, qe)) : B("", !0),
|
|
466
|
+
(s(!0), r(T, null, z(e.nodes, (p) => {
|
|
467
|
+
var h, m, f, _, L, y;
|
|
468
|
+
return s(), R(l, {
|
|
469
|
+
key: p.text,
|
|
470
|
+
nodes: p.nodes,
|
|
471
|
+
text: p.text,
|
|
469
472
|
config: {
|
|
470
|
-
href: ((
|
|
471
|
-
dataGaName: (
|
|
472
|
-
dataGaLocation: (
|
|
473
|
-
depth: (((
|
|
474
|
-
isSelected: (
|
|
475
|
-
mobile: (
|
|
473
|
+
href: ((h = p.config) == null ? void 0 : h.href) ?? "",
|
|
474
|
+
dataGaName: (m = p.config) == null ? void 0 : m.dataGaName,
|
|
475
|
+
dataGaLocation: (f = p.config) == null ? void 0 : f.dataGaLocation,
|
|
476
|
+
depth: (((_ = e.config) == null ? void 0 : _.depth) ?? 0) + 1,
|
|
477
|
+
isSelected: (L = p.config) == null ? void 0 : L.isSelected,
|
|
478
|
+
mobile: (y = e.config) == null ? void 0 : y.mobile
|
|
476
479
|
}
|
|
477
480
|
}, null, 8, ["nodes", "text", "config"]);
|
|
478
481
|
}), 128))
|
|
479
482
|
], 2);
|
|
480
483
|
};
|
|
481
484
|
}
|
|
482
|
-
}),
|
|
485
|
+
}), ne = /* @__PURE__ */ C(He, [["__scopeId", "data-v-c3be63ed"]]), Ue = { class: "dropdown__list" }, je = { class: "horizontal-rule slp-my-16" }, Ze = /* @__PURE__ */ I({
|
|
483
486
|
__name: "SlpAnchorDropdown",
|
|
484
487
|
props: {
|
|
485
488
|
dropdownLabel: { default: "Jump to a section" },
|
|
486
489
|
anchors: {},
|
|
487
490
|
hyperlinks: {}
|
|
488
491
|
},
|
|
489
|
-
setup(
|
|
490
|
-
const e =
|
|
492
|
+
setup(u) {
|
|
493
|
+
const e = w(!1), o = () => {
|
|
491
494
|
e.value = !e.value;
|
|
492
495
|
};
|
|
493
|
-
return (
|
|
494
|
-
var n, d,
|
|
496
|
+
return (l, a) => {
|
|
497
|
+
var n, d, i;
|
|
495
498
|
return s(), r("div", {
|
|
496
|
-
class:
|
|
499
|
+
class: g(["dropdown", { hide: !e.value }])
|
|
497
500
|
}, [
|
|
498
|
-
|
|
501
|
+
$(U, {
|
|
499
502
|
class: "dropdown__button",
|
|
500
503
|
variant: "ghost",
|
|
501
504
|
onClick: o
|
|
502
505
|
}, {
|
|
503
506
|
default: N(() => [
|
|
504
|
-
v("span", null,
|
|
505
|
-
|
|
506
|
-
icon: e.value ? G(
|
|
507
|
+
v("span", null, S(l.dropdownLabel), 1),
|
|
508
|
+
$(A, {
|
|
509
|
+
icon: e.value ? G(ee) : G(te)
|
|
507
510
|
}, null, 8, ["icon"])
|
|
508
511
|
]),
|
|
509
512
|
_: 1
|
|
510
513
|
}),
|
|
511
|
-
v("div",
|
|
512
|
-
|
|
514
|
+
v("div", Ue, [
|
|
515
|
+
P($(F, {
|
|
513
516
|
tag: "div",
|
|
514
517
|
variant: "body3-bold",
|
|
515
518
|
class: "nav-heading"
|
|
516
519
|
}, {
|
|
517
520
|
default: N(() => [
|
|
518
|
-
|
|
521
|
+
V(S(l.anchors.text), 1)
|
|
519
522
|
]),
|
|
520
523
|
_: 1
|
|
521
524
|
}, 512), [
|
|
522
|
-
[
|
|
525
|
+
[H, l.anchors.text]
|
|
523
526
|
]),
|
|
524
|
-
|
|
527
|
+
$(ne, {
|
|
525
528
|
mobile: "",
|
|
526
|
-
nodes:
|
|
529
|
+
nodes: l.anchors.data,
|
|
527
530
|
onClick: o
|
|
528
531
|
}, null, 8, ["nodes"]),
|
|
529
|
-
|
|
530
|
-
[
|
|
532
|
+
P(v("div", je, null, 512), [
|
|
533
|
+
[H, (n = l.hyperlinks) == null ? void 0 : n.data.length]
|
|
531
534
|
]),
|
|
532
|
-
|
|
535
|
+
P($(F, {
|
|
533
536
|
tag: "div",
|
|
534
537
|
variant: "body3-bold",
|
|
535
538
|
class: "nav-heading"
|
|
@@ -537,28 +540,28 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
537
540
|
default: N(() => {
|
|
538
541
|
var c;
|
|
539
542
|
return [
|
|
540
|
-
|
|
543
|
+
V(S((c = l.hyperlinks) == null ? void 0 : c.text), 1)
|
|
541
544
|
];
|
|
542
545
|
}),
|
|
543
546
|
_: 1
|
|
544
547
|
}, 512), [
|
|
545
|
-
[
|
|
548
|
+
[H, (d = l.hyperlinks) == null ? void 0 : d.text]
|
|
546
549
|
]),
|
|
547
550
|
v("ul", null, [
|
|
548
|
-
(s(!0), r(T, null, z((
|
|
551
|
+
(s(!0), r(T, null, z((i = l.hyperlinks) == null ? void 0 : i.data, (c) => (s(), r("li", {
|
|
549
552
|
key: c.text
|
|
550
553
|
}, [
|
|
551
|
-
|
|
554
|
+
$(U, {
|
|
552
555
|
class: "dropdown__link",
|
|
553
556
|
variant: "ghost",
|
|
554
557
|
href: c.config.href
|
|
555
558
|
}, {
|
|
556
559
|
default: N(() => [
|
|
557
|
-
v("span", null,
|
|
558
|
-
|
|
560
|
+
v("span", null, S(c.text), 1),
|
|
561
|
+
$(U, { variant: "icon" }, {
|
|
559
562
|
default: N(() => [
|
|
560
|
-
|
|
561
|
-
icon: G(
|
|
563
|
+
$(A, {
|
|
564
|
+
icon: G(ae),
|
|
562
565
|
size: "xs"
|
|
563
566
|
}, null, 8, ["icon"])
|
|
564
567
|
]),
|
|
@@ -573,107 +576,107 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
573
576
|
], 2);
|
|
574
577
|
};
|
|
575
578
|
}
|
|
576
|
-
}),
|
|
579
|
+
}), Je = /* @__PURE__ */ C(Ze, [["__scopeId", "data-v-9b690a76"]]), Ke = { key: 0 }, Qe = {
|
|
577
580
|
key: 1,
|
|
578
581
|
id: "collapsible-sidebar-wrapper"
|
|
579
|
-
},
|
|
582
|
+
}, Xe = { id: "collapsible-sidebar-content" }, Ye = { id: "collapsible-sidebar" }, xe = { class: "anchors" }, et = /* @__PURE__ */ I({
|
|
580
583
|
__name: "SlpSideNavigationWithTree",
|
|
581
584
|
props: {
|
|
582
585
|
anchors: {},
|
|
583
|
-
hyperlinks: {}
|
|
586
|
+
hyperlinks: {},
|
|
587
|
+
alwaysExpanded: { type: Boolean }
|
|
584
588
|
},
|
|
585
|
-
setup(
|
|
586
|
-
const e =
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
589
|
+
setup(u) {
|
|
590
|
+
const e = u, o = w([]), l = w(
|
|
591
|
+
e.anchors.data.map((f) => ({
|
|
592
|
+
text: f.text,
|
|
593
|
+
nodes: f.nodes,
|
|
594
|
+
config: {
|
|
595
|
+
href: f.config.href,
|
|
596
|
+
dataGaName: f.config.dataGaName,
|
|
597
|
+
dataGaLocation: f.config.dataGaLocation,
|
|
598
|
+
depth: 0,
|
|
599
|
+
mobile: !1
|
|
600
|
+
}
|
|
601
|
+
}))
|
|
602
|
+
), a = w(!1), n = w(!0);
|
|
597
603
|
let d = null;
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
}),
|
|
601
|
-
const
|
|
602
|
-
return
|
|
603
|
-
}, t = (
|
|
604
|
-
let
|
|
605
|
-
const
|
|
606
|
-
const
|
|
607
|
-
text:
|
|
604
|
+
const i = (f, _ = []) => (f.forEach((L) => {
|
|
605
|
+
L.config.href && _.push(L.config.href), L.nodes && i(L.nodes, _);
|
|
606
|
+
}), _), c = (f) => {
|
|
607
|
+
const _ = [], L = (y) => y.some((E, M) => (_.push(M), E.config.href === f || E.nodes && L(E.nodes) ? !0 : (_.pop(), !1)));
|
|
608
|
+
return L(e.anchors.data), _;
|
|
609
|
+
}, t = (f) => {
|
|
610
|
+
let _ = 0;
|
|
611
|
+
const L = (y, E, M) => {
|
|
612
|
+
const O = {
|
|
613
|
+
text: y.text,
|
|
608
614
|
config: {
|
|
609
|
-
href:
|
|
610
|
-
dataGaName:
|
|
611
|
-
dataGaLocation:
|
|
615
|
+
href: y.config.href,
|
|
616
|
+
dataGaName: y.config.dataGaName,
|
|
617
|
+
dataGaLocation: y.config.dataGaLocation
|
|
612
618
|
}
|
|
613
619
|
};
|
|
614
|
-
return
|
|
615
|
-
(
|
|
616
|
-
)
|
|
620
|
+
return f && E === 0 && (O.config.isSelected = !0), e.alwaysExpanded ? (o.value[M] === E && (O.config.isSelected = !0), y.nodes && (O.nodes = y.nodes.map(
|
|
621
|
+
(W, q) => L(W, q, M + 1)
|
|
622
|
+
))) : o.value[M] === E && (y.nodes && (M += 1, O.nodes = y.nodes.map(
|
|
623
|
+
(W, q) => L(W, q, M)
|
|
624
|
+
), M -= 1), M + 1 === o.value.length && (O.config.isSelected = !0)), O;
|
|
617
625
|
};
|
|
618
|
-
return e.anchors.data.map(
|
|
619
|
-
|
|
620
|
-
)
|
|
621
|
-
|
|
622
|
-
u.forEach((m) => {
|
|
623
|
-
m.isIntersecting ? (o.value = c(`#${m.target.id}`), i.value = t(!1)) : n.value && (i.value = t(!0), n.value = !1);
|
|
626
|
+
return e.anchors.data.map((y, E) => L(y, E, _));
|
|
627
|
+
}, p = (f) => {
|
|
628
|
+
f.forEach((_) => {
|
|
629
|
+
_.isIntersecting ? (o.value = c(`#${_.target.id}`), e.alwaysExpanded || (l.value = t(!1))) : n.value && !e.alwaysExpanded && (l.value = t(!0), n.value = !1), e.alwaysExpanded && (l.value = t(!1));
|
|
624
630
|
});
|
|
625
|
-
}, g = () => {
|
|
626
|
-
a.value = window.innerWidth < 768;
|
|
627
631
|
}, h = () => {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
C && (d == null || d.observe(C));
|
|
632
|
+
a.value = window.innerWidth < 768;
|
|
633
|
+
}, m = () => {
|
|
634
|
+
l.value = t(!0), n.value = !1;
|
|
635
|
+
const f = (window.innerHeight - 120 - 48) * -1;
|
|
636
|
+
d = new IntersectionObserver(p, {
|
|
637
|
+
rootMargin: `-120px 0px ${f}px 0px`,
|
|
638
|
+
threshold: 0
|
|
639
|
+
}), setTimeout(() => {
|
|
640
|
+
i(e.anchors.data).forEach((L) => {
|
|
641
|
+
const y = document.querySelector(L);
|
|
642
|
+
y && (d == null || d.observe(y));
|
|
640
643
|
});
|
|
641
644
|
}, 0);
|
|
642
645
|
};
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
-
}),
|
|
646
|
-
window.removeEventListener("resize",
|
|
647
|
-
}), (
|
|
648
|
-
a.value ? (s(), r("div",
|
|
649
|
-
|
|
650
|
-
b(
|
|
651
|
-
])) : (s(), r("div",
|
|
652
|
-
v("div",
|
|
653
|
-
b(
|
|
646
|
+
return D(() => {
|
|
647
|
+
h(), window.addEventListener("resize", h), m();
|
|
648
|
+
}), X(() => {
|
|
649
|
+
window.removeEventListener("resize", h), d && d.disconnect();
|
|
650
|
+
}), (f, _) => (s(), r("div", null, [
|
|
651
|
+
a.value ? (s(), r("div", Ke, [
|
|
652
|
+
$(Je, ie(re({ anchors: f.anchors, hyperlinks: f.hyperlinks })), null, 16),
|
|
653
|
+
b(f.$slots, "default", {}, void 0, !0)
|
|
654
|
+
])) : (s(), r("div", Qe, [
|
|
655
|
+
v("div", Xe, [
|
|
656
|
+
b(f.$slots, "default", {}, void 0, !0)
|
|
654
657
|
]),
|
|
655
|
-
v("nav",
|
|
656
|
-
b(
|
|
657
|
-
v("div",
|
|
658
|
-
|
|
658
|
+
v("nav", Ye, [
|
|
659
|
+
b(f.$slots, "header", {}, void 0, !0),
|
|
660
|
+
v("div", xe, [
|
|
661
|
+
f.anchors.text ? (s(), R(F, {
|
|
659
662
|
key: 0,
|
|
660
663
|
tag: "div",
|
|
661
664
|
variant: "body3-bold",
|
|
662
665
|
class: "nav-heading"
|
|
663
666
|
}, {
|
|
664
667
|
default: N(() => [
|
|
665
|
-
|
|
668
|
+
V(S(f.anchors.text), 1)
|
|
666
669
|
]),
|
|
667
670
|
_: 1
|
|
668
|
-
})) :
|
|
669
|
-
|
|
671
|
+
})) : B("", !0),
|
|
672
|
+
$(ne, { nodes: l.value }, null, 8, ["nodes"])
|
|
670
673
|
]),
|
|
671
|
-
b(
|
|
674
|
+
b(f.$slots, "footer", {}, void 0, !0)
|
|
672
675
|
])
|
|
673
676
|
]))
|
|
674
677
|
]));
|
|
675
678
|
}
|
|
676
|
-
}),
|
|
679
|
+
}), Gt = /* @__PURE__ */ C(et, [["__scopeId", "data-v-47e57dda"]]), tt = ["id", "aria-describedby"], at = { class: "slp-tooltip__wrapper" }, ot = ["id", "data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"], nt = ["id"], st = ["id", "aria-describedby"], lt = { class: "slp-tooltip__wrapper" }, it = ["id", "innerHTML"], rt = ["id"], dt = /* @__PURE__ */ I({
|
|
677
680
|
__name: "SlpTooltip",
|
|
678
681
|
props: {
|
|
679
682
|
text: { default: "" },
|
|
@@ -683,23 +686,23 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
683
686
|
id: { default: "" },
|
|
684
687
|
dataProperties: { default: null }
|
|
685
688
|
},
|
|
686
|
-
setup(
|
|
687
|
-
const e =
|
|
689
|
+
setup(u) {
|
|
690
|
+
const e = u, o = w(!1), l = w(""), a = w(""), n = w(""), d = (t) => {
|
|
688
691
|
e.mode === "hover" && (o.value = t.type === "mouseenter");
|
|
689
|
-
},
|
|
692
|
+
}, i = () => {
|
|
690
693
|
o.value = e.mode === "click";
|
|
691
694
|
}, c = (t) => {
|
|
692
695
|
t.target.id !== e.id && (o.value = !1);
|
|
693
696
|
};
|
|
694
|
-
return
|
|
697
|
+
return D(() => {
|
|
695
698
|
if (e.mode === "click" && document.addEventListener("click", c), e.text) {
|
|
696
|
-
const t = e.text.match(/\[(.*?)\]/),
|
|
697
|
-
|
|
699
|
+
const t = e.text.match(/\[(.*?)\]/), p = e.text.match(/\((.*?)\)/);
|
|
700
|
+
l.value = t ? t[1] : "", a.value = p ? p[1] : "", n.value = e.text.replace(`(${a.value})`, "").replace(`[${l.value}]`, "").trim();
|
|
698
701
|
}
|
|
699
|
-
}),
|
|
702
|
+
}), Y(() => {
|
|
700
703
|
document.removeEventListener("click", c);
|
|
701
|
-
}), (t,
|
|
702
|
-
var
|
|
704
|
+
}), (t, p) => {
|
|
705
|
+
var h, m, f;
|
|
703
706
|
return t.mode === "hover" ? (s(), r("div", {
|
|
704
707
|
key: 0,
|
|
705
708
|
id: t.id,
|
|
@@ -708,134 +711,134 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
708
711
|
class: "slp-tooltip",
|
|
709
712
|
onMouseenter: d,
|
|
710
713
|
onMouseleave: d,
|
|
711
|
-
onClick:
|
|
714
|
+
onClick: i
|
|
712
715
|
}, [
|
|
713
|
-
v("div",
|
|
716
|
+
v("div", at, [
|
|
714
717
|
b(t.$slots, "default", {}, void 0, !0),
|
|
715
718
|
o.value ? (s(), r("div", {
|
|
716
719
|
key: 0,
|
|
717
|
-
class:
|
|
720
|
+
class: g(["slp-tooltip__content", `${t.position} ${t.mode === "hover" ? "hover-mode" : ""}`])
|
|
718
721
|
}, [
|
|
719
|
-
|
|
722
|
+
V(S(n.value) + " ", 1),
|
|
720
723
|
t.text ? (s(), r("a", {
|
|
721
724
|
key: 0,
|
|
722
725
|
id: `${t.id}-content`,
|
|
723
726
|
"data-ga-features": t.dataProperties && t.dataProperties.features.toLowerCase() || null,
|
|
724
|
-
"data-ga-features-sub": (
|
|
725
|
-
"data-ga-features-sub-card": (
|
|
726
|
-
"data-ga-name": (
|
|
727
|
+
"data-ga-features-sub": (h = t.dataProperties) == null ? void 0 : h.sub,
|
|
728
|
+
"data-ga-features-sub-card": (m = t.dataProperties) == null ? void 0 : m.card,
|
|
729
|
+
"data-ga-name": (f = t.dataProperties) == null ? void 0 : f.plan,
|
|
727
730
|
"data-ga-location": t.dataProperties ? "features content" : null,
|
|
728
731
|
role: "tooltip",
|
|
729
732
|
href: a.value
|
|
730
|
-
},
|
|
733
|
+
}, S(l.value), 9, ot)) : t.list ? (s(), r("ul", {
|
|
731
734
|
key: 1,
|
|
732
735
|
id: `${t.id}-content`,
|
|
733
736
|
role: "tooltip",
|
|
734
737
|
class: "slp-tooltip__list"
|
|
735
738
|
}, [
|
|
736
|
-
(s(!0), r(T, null, z(t.list, (
|
|
737
|
-
key:
|
|
738
|
-
},
|
|
739
|
-
], 8,
|
|
740
|
-
], 2)) :
|
|
739
|
+
(s(!0), r(T, null, z(t.list, (_) => (s(), r("li", {
|
|
740
|
+
key: _.text
|
|
741
|
+
}, S(_.text), 1))), 128))
|
|
742
|
+
], 8, nt)) : B("", !0)
|
|
743
|
+
], 2)) : B("", !0)
|
|
741
744
|
])
|
|
742
|
-
], 40,
|
|
745
|
+
], 40, tt)) : (s(), r("button", {
|
|
743
746
|
key: 1,
|
|
744
747
|
id: t.id,
|
|
745
748
|
"aria-label": "Click to open tooltip with more information.",
|
|
746
749
|
"aria-describedby": `${t.id}-content`,
|
|
747
|
-
class:
|
|
748
|
-
onClick:
|
|
750
|
+
class: g(`slp-tooltip ${t.mode === "click" ? "button-mode" : ""}`),
|
|
751
|
+
onClick: i
|
|
749
752
|
}, [
|
|
750
|
-
v("div",
|
|
753
|
+
v("div", lt, [
|
|
751
754
|
b(t.$slots, "default", {}, void 0, !0),
|
|
752
755
|
o.value ? (s(), r("div", {
|
|
753
756
|
key: 0,
|
|
754
|
-
class:
|
|
757
|
+
class: g(["slp-tooltip__content", `${t.position} ${t.mode === "hover" ? "hover-mode" : ""}`])
|
|
755
758
|
}, [
|
|
756
759
|
t.text ? (s(), r("span", {
|
|
757
760
|
key: 0,
|
|
758
761
|
id: `${t.id}-content`,
|
|
759
762
|
role: "tooltip",
|
|
760
763
|
innerHTML: t.text
|
|
761
|
-
}, null, 8,
|
|
764
|
+
}, null, 8, it)) : (s(), r("ul", {
|
|
762
765
|
key: 1,
|
|
763
766
|
id: `${t.id}-content`,
|
|
764
767
|
role: "tooltip",
|
|
765
768
|
class: "slp-tooltip__list"
|
|
766
769
|
}, [
|
|
767
|
-
(s(!0), r(T, null, z(t.list, (
|
|
768
|
-
key:
|
|
769
|
-
},
|
|
770
|
-
], 8,
|
|
771
|
-
], 2)) :
|
|
770
|
+
(s(!0), r(T, null, z(t.list, (_) => (s(), r("li", {
|
|
771
|
+
key: _.text
|
|
772
|
+
}, S(_.text), 1))), 128))
|
|
773
|
+
], 8, rt))
|
|
774
|
+
], 2)) : B("", !0)
|
|
772
775
|
])
|
|
773
|
-
], 10,
|
|
776
|
+
], 10, st));
|
|
774
777
|
};
|
|
775
778
|
}
|
|
776
|
-
}),
|
|
779
|
+
}), ct = /* @__PURE__ */ C(dt, [["__scopeId", "data-v-a2668f04"]]), ut = {
|
|
777
780
|
key: 0,
|
|
778
781
|
class: "breadcrumb",
|
|
779
782
|
vocab: "https://schema.org/",
|
|
780
783
|
typeof: "BreadcrumbList"
|
|
781
|
-
},
|
|
784
|
+
}, pt = ["onMouseenter", "onMouseleave"], ft = ["data-ga-name", "data-ga-location", "href"], vt = {
|
|
782
785
|
key: 0,
|
|
783
786
|
class: "breadcrumb__chevron"
|
|
784
|
-
},
|
|
787
|
+
}, ht = ["content"], mt = {
|
|
785
788
|
key: 1,
|
|
786
789
|
class: "breadcrumb",
|
|
787
790
|
vocab: "https://schema.org/",
|
|
788
791
|
typeof: "BreadcrumbList"
|
|
789
|
-
},
|
|
792
|
+
}, gt = ["href", "data-ga-name", "data-ga-location"], _t = ["content"], bt = /* @__PURE__ */ I({
|
|
790
793
|
__name: "SlpBreadcrumb",
|
|
791
794
|
props: {
|
|
792
795
|
crumbs: { default: () => [] },
|
|
793
796
|
router: {}
|
|
794
797
|
},
|
|
795
|
-
setup(
|
|
796
|
-
const e =
|
|
797
|
-
const c =
|
|
798
|
+
setup(u) {
|
|
799
|
+
const e = u, o = w(e.crumbs), l = w(!1), a = (i) => {
|
|
800
|
+
const c = i.split(" ");
|
|
798
801
|
for (let t = 0; t < c.length; t++)
|
|
799
802
|
c[t] = c[t][0].toUpperCase() + c[t].substr(1);
|
|
800
803
|
return c.join(" ");
|
|
801
804
|
}, n = () => {
|
|
802
|
-
|
|
803
|
-
}, d = (
|
|
804
|
-
o.value[
|
|
805
|
-
...o.value[
|
|
806
|
-
hover: !o.value[
|
|
805
|
+
l.value = window.innerWidth < 768;
|
|
806
|
+
}, d = (i) => {
|
|
807
|
+
o.value[i] && (o.value[i] = {
|
|
808
|
+
...o.value[i],
|
|
809
|
+
hover: !o.value[i].hover
|
|
807
810
|
});
|
|
808
811
|
};
|
|
809
|
-
return
|
|
812
|
+
return x(() => {
|
|
810
813
|
if (e.router) {
|
|
811
|
-
const
|
|
812
|
-
let
|
|
813
|
-
c.forEach((
|
|
814
|
-
|
|
815
|
-
const
|
|
816
|
-
|
|
817
|
-
title: a(
|
|
814
|
+
const i = e.router.currentRoute.path, c = i.startsWith("/") ? i.substring(1).split("/") : i.split("/"), t = [];
|
|
815
|
+
let p = "";
|
|
816
|
+
c.forEach((h) => {
|
|
817
|
+
p = `${p}/${h}`;
|
|
818
|
+
const m = e.router.match(p);
|
|
819
|
+
m.params.slug !== null && h.length && t.push({
|
|
820
|
+
title: a(h.replace(/-/g, " ")),
|
|
818
821
|
hover: !1,
|
|
819
|
-
...
|
|
822
|
+
...m
|
|
820
823
|
});
|
|
821
824
|
}), o.value = t;
|
|
822
825
|
}
|
|
823
|
-
}),
|
|
826
|
+
}), D(() => {
|
|
824
827
|
n(), window.addEventListener("resize", n);
|
|
825
|
-
}),
|
|
828
|
+
}), Y(() => {
|
|
826
829
|
window.removeEventListener("resize", n);
|
|
827
|
-
}), (
|
|
828
|
-
(s(!0), r(T, null, z(o.value, (t,
|
|
830
|
+
}), (i, c) => o.value && !l.value ? (s(), r("ol", ut, [
|
|
831
|
+
(s(!0), r(T, null, z(o.value, (t, p) => (s(), r("li", {
|
|
829
832
|
key: t.title,
|
|
830
|
-
class:
|
|
831
|
-
"breadcrumb__crumb--disabled":
|
|
833
|
+
class: g(["breadcrumb__crumb", {
|
|
834
|
+
"breadcrumb__crumb--disabled": p === o.value.length - 1
|
|
832
835
|
}]),
|
|
833
836
|
property: "itemListElement",
|
|
834
837
|
typeof: "ListItem",
|
|
835
|
-
onMouseenter: (
|
|
836
|
-
onMouseleave: (
|
|
838
|
+
onMouseenter: (h) => d(p),
|
|
839
|
+
onMouseleave: (h) => d(p)
|
|
837
840
|
}, [
|
|
838
|
-
|
|
841
|
+
$(ct, {
|
|
839
842
|
text: t.title,
|
|
840
843
|
class: "breadcrumb__crumb__tooltip",
|
|
841
844
|
position: "top"
|
|
@@ -846,35 +849,35 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
846
849
|
typeof: "WebPage",
|
|
847
850
|
"data-ga-name": t.dataGaName || t.title.toLowerCase(),
|
|
848
851
|
"data-ga-location": t.dataGaLocation || "breadcrumb",
|
|
849
|
-
href:
|
|
852
|
+
href: p !== o.value.length - 1 ? t.path : void 0
|
|
850
853
|
}, [
|
|
851
|
-
|
|
854
|
+
$(F, {
|
|
852
855
|
tag: "span",
|
|
853
856
|
variant: "body3",
|
|
854
857
|
property: "name"
|
|
855
858
|
}, {
|
|
856
859
|
default: N(() => [
|
|
857
|
-
|
|
860
|
+
V(S(t.title.length > 18 ? t.title.substring(0, 18).concat("...") : t.title), 1)
|
|
858
861
|
]),
|
|
859
862
|
_: 2
|
|
860
863
|
}, 1024)
|
|
861
|
-
], 8,
|
|
864
|
+
], 8, ft)
|
|
862
865
|
]),
|
|
863
866
|
_: 2
|
|
864
867
|
}, 1032, ["text"]),
|
|
865
|
-
|
|
866
|
-
|
|
868
|
+
p !== o.value.length - 1 ? (s(), r("span", vt, [
|
|
869
|
+
$(A, {
|
|
867
870
|
color: "accent-500",
|
|
868
871
|
size: "xs",
|
|
869
|
-
icon: G(
|
|
872
|
+
icon: G(ae)
|
|
870
873
|
}, null, 8, ["icon"])
|
|
871
|
-
])) :
|
|
874
|
+
])) : B("", !0),
|
|
872
875
|
v("meta", {
|
|
873
876
|
property: "position",
|
|
874
|
-
content:
|
|
875
|
-
}, null, 8,
|
|
876
|
-
], 42,
|
|
877
|
-
])) : o.value &&
|
|
877
|
+
content: p + 1
|
|
878
|
+
}, null, 8, ht)
|
|
879
|
+
], 42, pt))), 128))
|
|
880
|
+
])) : o.value && l.value ? (s(), r("ol", mt, [
|
|
878
881
|
(s(!0), r(T, null, z(o.value, (t) => (s(), r("li", {
|
|
879
882
|
key: t.title,
|
|
880
883
|
class: "breadcrumb__crumb breadcrumb__crumb--mobile",
|
|
@@ -890,32 +893,32 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
890
893
|
typeof: "WebPage"
|
|
891
894
|
}, [
|
|
892
895
|
v("span", null, [
|
|
893
|
-
|
|
896
|
+
$(A, {
|
|
894
897
|
color: "accent-500",
|
|
895
898
|
size: "xs",
|
|
896
|
-
icon: G(
|
|
899
|
+
icon: G(ce)
|
|
897
900
|
}, null, 8, ["icon"])
|
|
898
901
|
]),
|
|
899
|
-
|
|
902
|
+
$(F, {
|
|
900
903
|
class: "slp-ml-8",
|
|
901
904
|
tag: "span",
|
|
902
905
|
variant: "body2",
|
|
903
906
|
property: "name"
|
|
904
907
|
}, {
|
|
905
908
|
default: N(() => [
|
|
906
|
-
|
|
909
|
+
V(S(o.value[o.value.length - 2].title), 1)
|
|
907
910
|
]),
|
|
908
911
|
_: 1
|
|
909
912
|
})
|
|
910
|
-
], 8,
|
|
913
|
+
], 8, gt),
|
|
911
914
|
v("meta", {
|
|
912
915
|
property: "position",
|
|
913
916
|
content: o.value.length - 1
|
|
914
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, _t)
|
|
915
918
|
]))), 128))
|
|
916
|
-
])) :
|
|
919
|
+
])) : B("", !0);
|
|
917
920
|
}
|
|
918
|
-
}),
|
|
921
|
+
}), Vt = /* @__PURE__ */ C(bt, [["__scopeId", "data-v-fd412793"]]), yt = { class: "dropdown" }, $t = ["aria-label", "name"], kt = ["value", "name"], wt = ["value", "name"], St = /* @__PURE__ */ I({
|
|
919
922
|
__name: "SlpDropdown",
|
|
920
923
|
props: {
|
|
921
924
|
name: {},
|
|
@@ -929,10 +932,10 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
929
932
|
} }
|
|
930
933
|
},
|
|
931
934
|
emits: ["input"],
|
|
932
|
-
setup(
|
|
933
|
-
const o =
|
|
934
|
-
|
|
935
|
-
var
|
|
935
|
+
setup(u, { emit: e }) {
|
|
936
|
+
const o = u, l = e, a = w(o.value), n = w(!0);
|
|
937
|
+
x(() => {
|
|
938
|
+
var i;
|
|
936
939
|
if (n.value = !o.options.every(
|
|
937
940
|
(c) => typeof c == "object"
|
|
938
941
|
), !n.value && !(o.textField && o.valueField))
|
|
@@ -941,60 +944,60 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
941
944
|
);
|
|
942
945
|
if (o.value === void 0 && o.options.length > 0)
|
|
943
946
|
if (n.value)
|
|
944
|
-
a.value = o.options[0],
|
|
947
|
+
a.value = o.options[0], l("input", a.value);
|
|
945
948
|
else {
|
|
946
949
|
const c = o.options[0];
|
|
947
|
-
a.value = (
|
|
950
|
+
a.value = (i = o.config) != null && i.primitive ? c[o.valueField] : c, l("input", a.value);
|
|
948
951
|
}
|
|
949
|
-
}),
|
|
952
|
+
}), J(
|
|
950
953
|
() => a.value,
|
|
951
|
-
(
|
|
952
|
-
|
|
954
|
+
(i) => {
|
|
955
|
+
l("input", i);
|
|
953
956
|
}
|
|
954
|
-
),
|
|
957
|
+
), J(
|
|
955
958
|
() => o.value,
|
|
956
|
-
(
|
|
957
|
-
a.value =
|
|
959
|
+
(i) => {
|
|
960
|
+
a.value = i;
|
|
958
961
|
}
|
|
959
962
|
);
|
|
960
|
-
const d = (
|
|
961
|
-
const c =
|
|
962
|
-
|
|
963
|
+
const d = (i) => {
|
|
964
|
+
const c = i.target;
|
|
965
|
+
l(o.name, c.value);
|
|
963
966
|
};
|
|
964
|
-
return (
|
|
965
|
-
|
|
966
|
-
"aria-label":
|
|
967
|
+
return (i, c) => (s(), r("div", yt, [
|
|
968
|
+
P(v("select", {
|
|
969
|
+
"aria-label": i.dropdownLabel || `${i.name} dropdown`,
|
|
967
970
|
class: "dropdown__select",
|
|
968
|
-
name:
|
|
971
|
+
name: i.name,
|
|
969
972
|
onChange: d,
|
|
970
973
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => a.value = t)
|
|
971
974
|
}, [
|
|
972
|
-
n.value ? (s(!0), r(T, { key: 0 }, z(
|
|
975
|
+
n.value ? (s(!0), r(T, { key: 0 }, z(i.options, (t) => (s(), r("option", {
|
|
973
976
|
key: t,
|
|
974
977
|
value: t,
|
|
975
978
|
name: t
|
|
976
|
-
},
|
|
977
|
-
var
|
|
979
|
+
}, S(t), 9, kt))), 128)) : (s(!0), r(T, { key: 1 }, z(i.options, (t) => {
|
|
980
|
+
var p;
|
|
978
981
|
return s(), r("option", {
|
|
979
|
-
key: t[
|
|
980
|
-
value: (
|
|
981
|
-
name: t[
|
|
982
|
-
},
|
|
982
|
+
key: t[i.valueField],
|
|
983
|
+
value: (p = i.config) != null && p.primitive ? t[i.valueField] : t,
|
|
984
|
+
name: t[i.textField]
|
|
985
|
+
}, S(t[i.textField]), 9, wt);
|
|
983
986
|
}), 128))
|
|
984
|
-
], 40,
|
|
985
|
-
[
|
|
987
|
+
], 40, $t), [
|
|
988
|
+
[de, a.value]
|
|
986
989
|
])
|
|
987
990
|
]));
|
|
988
991
|
}
|
|
989
|
-
}),
|
|
992
|
+
}), Ot = /* @__PURE__ */ C(St, [["__scopeId", "data-v-9c71f7b0"]]), Ct = ["id"], Lt = /* @__PURE__ */ I({
|
|
990
993
|
__name: "SlpSection",
|
|
991
994
|
props: {
|
|
992
995
|
backgroundColor: {
|
|
993
996
|
type: String,
|
|
994
997
|
required: !1,
|
|
995
|
-
validator(
|
|
996
|
-
const e = /^#([A-Fa-f0-9]{3}){1,2}$/.test(
|
|
997
|
-
return
|
|
998
|
+
validator(u) {
|
|
999
|
+
const e = /^#([A-Fa-f0-9]{3}){1,2}$/.test(u), o = /^\$color-[a-zA-Z0-9-]+$/.test(u);
|
|
1000
|
+
return u ? e || o : !0;
|
|
998
1001
|
}
|
|
999
1002
|
},
|
|
1000
1003
|
id: {
|
|
@@ -1002,43 +1005,43 @@ const Nt = /* @__PURE__ */ S(we, [["render", Ce], ["__scopeId", "data-v-adc8d02f
|
|
|
1002
1005
|
required: !1
|
|
1003
1006
|
}
|
|
1004
1007
|
},
|
|
1005
|
-
setup(
|
|
1006
|
-
const e =
|
|
1008
|
+
setup(u) {
|
|
1009
|
+
const e = u, o = k(() => {
|
|
1007
1010
|
var a;
|
|
1008
1011
|
return !e.backgroundColor || (a = e.backgroundColor) != null && a.startsWith("$") ? {} : { backgroundColor: e.backgroundColor };
|
|
1009
|
-
}),
|
|
1012
|
+
}), l = k(() => {
|
|
1010
1013
|
var a, n;
|
|
1011
1014
|
return (a = e.backgroundColor) != null && a.startsWith("$") ? `slp-background-${(n = e.backgroundColor) == null ? void 0 : n.slice(1)}` : null;
|
|
1012
1015
|
});
|
|
1013
1016
|
return (a, n) => (s(), r("section", {
|
|
1014
|
-
style:
|
|
1015
|
-
class:
|
|
1016
|
-
id:
|
|
1017
|
+
style: Q(o.value),
|
|
1018
|
+
class: g(l.value),
|
|
1019
|
+
id: u.id || void 0
|
|
1017
1020
|
}, [
|
|
1018
|
-
|
|
1021
|
+
$(oe, null, {
|
|
1019
1022
|
default: N(() => [
|
|
1020
1023
|
b(a.$slots, "default", {}, void 0, !0)
|
|
1021
1024
|
]),
|
|
1022
1025
|
_: 3
|
|
1023
1026
|
})
|
|
1024
|
-
], 14,
|
|
1027
|
+
], 14, Ct));
|
|
1025
1028
|
}
|
|
1026
|
-
}),
|
|
1029
|
+
}), Rt = /* @__PURE__ */ C(Lt, [["__scopeId", "data-v-2b3ad016"]]);
|
|
1027
1030
|
export {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1031
|
+
Vt as SlpBreadcrumb,
|
|
1032
|
+
U as SlpButton,
|
|
1033
|
+
Tt as SlpColumn,
|
|
1034
|
+
oe as SlpContainer,
|
|
1035
|
+
Ot as SlpCustomDropdown,
|
|
1036
|
+
Ot as SlpDropdown,
|
|
1037
|
+
A as SlpIcon,
|
|
1038
|
+
Bt as SlpLoader,
|
|
1039
|
+
Ae as SlpRadioButton,
|
|
1040
|
+
Mt as SlpRadioButtonGroup,
|
|
1041
|
+
zt as SlpRow,
|
|
1042
|
+
Rt as SlpSection,
|
|
1043
|
+
Et as SlpSideNavigation,
|
|
1044
|
+
Gt as SlpSideNavigationWithTree,
|
|
1045
|
+
ct as SlpTooltip,
|
|
1046
|
+
F as SlpTypography
|
|
1044
1047
|
};
|