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