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