@devslab/site-kit 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +198 -3
- package/README.md +198 -3
- package/dist/chrome.d.ts +10 -0
- package/dist/chrome.d.ts.map +1 -1
- package/dist/consent.d.ts +44 -0
- package/dist/consent.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/solid.js +326 -135
- package/dist/solid.js.map +1 -1
- package/dist/solid.server.js +275 -25
- package/dist/solid.server.js.map +1 -1
- package/package.json +2 -2
- package/src/core/consent.d.mts +169 -0
- package/src/core/consent.mjs +577 -0
- package/src/core/index.d.mts +2 -0
- package/src/core/index.mjs +15 -7
- package/src/tanstack-start.d.mts +13 -2
- package/src/tanstack-start.mjs +35 -1
- package/styles.css +57 -2
package/dist/solid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { className as e, createComponent as t, delegateEvents as n, effect as r, getNextElement as i, getNextMarker as a, insert as o, memo as s, mergeProps as c, runHydrationEvents as l, setAttribute as u, setProperty as d, spread as f, template as p, use as m } from "solid-js/web";
|
|
2
|
-
import { For as h, Show as g, createMemo as _, createSignal as v, createUniqueId as y,
|
|
3
|
-
import { Button as
|
|
2
|
+
import { For as h, Show as g, createMemo as _, createSignal as v, createUniqueId as y, onCleanup as b, onMount as x } from "solid-js";
|
|
3
|
+
import { Button as S, Dialog as C, Field as w, Icon as T, IconButton as E, Switch as D } from "@devslab/dds-solid";
|
|
4
4
|
//#region src/core/locales.mjs
|
|
5
|
-
var
|
|
5
|
+
var O = Object.freeze([
|
|
6
6
|
{
|
|
7
7
|
code: "ko",
|
|
8
8
|
language: "Korean",
|
|
@@ -87,25 +87,25 @@ var T = Object.freeze([
|
|
|
87
87
|
nativeName: "العربية",
|
|
88
88
|
dir: "rtl"
|
|
89
89
|
}
|
|
90
|
-
]),
|
|
91
|
-
function
|
|
92
|
-
let t = e.extra ?? [], n =
|
|
90
|
+
]), k = Object.freeze([["zh", "zh-TW"], ["pt", "pt-BR"]]);
|
|
91
|
+
function A(e = {}) {
|
|
92
|
+
let t = e.extra ?? [], n = O;
|
|
93
93
|
if (e.only !== void 0) {
|
|
94
94
|
if (e.only.length === 0) throw RangeError("`only` needs at least one locale — a registry with none is a bug, not a choice");
|
|
95
95
|
let t = new Set(e.only);
|
|
96
|
-
for (let e of t) if (!
|
|
97
|
-
n = Object.freeze(
|
|
96
|
+
for (let e of t) if (!O.some((t) => t.code === e)) throw RangeError(`${e} is not a family locale — \`only\` selects from the family list; use \`extra\` for a product's own`);
|
|
97
|
+
n = Object.freeze(O.filter((e) => t.has(e.code)));
|
|
98
98
|
}
|
|
99
99
|
let r = new Set(n.map(({ code: e }) => e));
|
|
100
100
|
for (let e of t) {
|
|
101
101
|
if (!e?.code) throw TypeError("every extra locale needs a code");
|
|
102
|
-
if (
|
|
102
|
+
if (O.some((t) => t.code === e.code)) throw RangeError(`${e.code} is already a family locale — remove it from \`extra\``);
|
|
103
103
|
if (r.has(e.code)) throw RangeError(`${e.code} appears twice in \`extra\``);
|
|
104
104
|
if (!e.nativeName) throw TypeError(`${e.code} needs a nativeName — it is what the picker shows`);
|
|
105
105
|
if (e.dir !== "ltr" && e.dir !== "rtl") throw RangeError(`${e.code} needs dir "ltr" or "rtl"`);
|
|
106
106
|
r.add(e.code);
|
|
107
107
|
}
|
|
108
|
-
let i = Object.freeze([...n, ...t.map((e) => Object.freeze({ ...e }))]), a = new Map(i.map((e) => [e.code.toLowerCase(), e])), o = new Map([...
|
|
108
|
+
let i = Object.freeze([...n, ...t.map((e) => Object.freeze({ ...e }))]), a = new Map(i.map((e) => [e.code.toLowerCase(), e])), o = new Map([...k, ...e.aliases ?? []]);
|
|
109
109
|
function s(e) {
|
|
110
110
|
if (!e) return;
|
|
111
111
|
let t = a.get(String(e).trim().toLowerCase());
|
|
@@ -135,12 +135,12 @@ function D(e = {}) {
|
|
|
135
135
|
locale: i,
|
|
136
136
|
source: "route"
|
|
137
137
|
};
|
|
138
|
-
let a = s(
|
|
138
|
+
let a = s(j(t, "locale"));
|
|
139
139
|
if (a) return {
|
|
140
140
|
locale: a,
|
|
141
141
|
source: "cookie"
|
|
142
142
|
};
|
|
143
|
-
let o =
|
|
143
|
+
let o = M(n, s)[0]?.locale;
|
|
144
144
|
if (o) return {
|
|
145
145
|
locale: o,
|
|
146
146
|
source: "accept-language"
|
|
@@ -160,7 +160,7 @@ function D(e = {}) {
|
|
|
160
160
|
definitionFor: c
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function j(e, t) {
|
|
164
164
|
for (let n of String(e ?? "").split(";")) {
|
|
165
165
|
let e = n.indexOf("=");
|
|
166
166
|
if (!(e < 0) && n.slice(0, e).trim() === t) try {
|
|
@@ -170,7 +170,7 @@ function O(e, t) {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function M(e, t) {
|
|
174
174
|
return String(e ?? "").split(",").map((e, n) => {
|
|
175
175
|
let [r, ...i] = e.trim().split(";"), a = Number(i.find((e) => e.trim().startsWith("q="))?.split("=")[1] ?? 1);
|
|
176
176
|
return {
|
|
@@ -180,7 +180,7 @@ function k(e, t) {
|
|
|
180
180
|
};
|
|
181
181
|
}).filter(({ locale: e, q: t }) => e && t > 0).sort((e, t) => t.q - e.q || e.order - t.order);
|
|
182
182
|
}
|
|
183
|
-
var
|
|
183
|
+
var N = A(), { canonicalLocale: P, localeAttributes: F, resolveLocale: I } = N, L = Object.freeze({
|
|
184
184
|
ko: "kr",
|
|
185
185
|
en: "us",
|
|
186
186
|
ja: "jp",
|
|
@@ -195,21 +195,21 @@ var A = D(), { canonicalLocale: j, localeAttributes: M, resolveLocale: ee } = A,
|
|
|
195
195
|
de: "de",
|
|
196
196
|
es: "es",
|
|
197
197
|
ar: "sa"
|
|
198
|
-
}),
|
|
199
|
-
function
|
|
200
|
-
let n =
|
|
198
|
+
}), R = "0 0 640 480", z = new Set(Object.values(L));
|
|
199
|
+
function B(e, t) {
|
|
200
|
+
let n = L[e];
|
|
201
201
|
if (n) return n;
|
|
202
202
|
let r = t?.LOCALES?.find((t) => t.code === e);
|
|
203
203
|
if (r?.flagCountry) {
|
|
204
|
-
if (
|
|
204
|
+
if (z.has(r.flagCountry)) return r.flagCountry;
|
|
205
205
|
throw RangeError(`No vendored flag for country: ${r.flagCountry} (locale ${e})`);
|
|
206
206
|
}
|
|
207
207
|
throw RangeError(`No flag for locale: ${e}`);
|
|
208
208
|
}
|
|
209
209
|
//#endregion
|
|
210
210
|
//#region src/solid/flag-bodies.ts
|
|
211
|
-
var
|
|
212
|
-
function
|
|
211
|
+
var V = () => void 0, H = () => import("./flag-bodies.js").then((e) => e.FLAGS_BY_COUNTRY), U = /*#__PURE__*/ p("<svg class=site-flag-sprite aria-hidden=true>"), ee = /*#__PURE__*/ p("<svg aria-hidden=true><use>"), te = /*#__PURE__*/ p("<label><span class=dds-sr-only></span><span class=\"dds-select site-locale\"><select class=dds-select__input>"), ne = /*#__PURE__*/ p("<option>"), re = /*#__PURE__*/ p("<details class=site-locale-flag><summary class=site-locale-flag__trigger><!$><!/><!$><!/></summary><ul class=site-locale-flag__list role=list>"), ie = /*#__PURE__*/ p("<li><a class=site-locale-flag__option><!$><!/><span>");
|
|
212
|
+
function ae(e, t) {
|
|
213
213
|
let n = [...e.matchAll(/\bid="([^"]+)"/g)].map((e) => e[1]);
|
|
214
214
|
if (n.length === 0) return e;
|
|
215
215
|
let r = e;
|
|
@@ -219,34 +219,34 @@ function re(e, t) {
|
|
|
219
219
|
}
|
|
220
220
|
return r;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
function
|
|
222
|
+
var W = (e) => e.registry ?? N, G = (e, t) => `site-flag-${e}-${t}`;
|
|
223
|
+
function K(e, t, n) {
|
|
224
224
|
return e.map((e) => {
|
|
225
225
|
let r = t[e];
|
|
226
226
|
if (!r) throw RangeError(`No vendored flag for country: ${e}`);
|
|
227
|
-
return `<symbol id="${
|
|
227
|
+
return `<symbol id="${G(e, n)}" viewBox="${r.viewBox}">${ae(r.body, n)}</symbol>`;
|
|
228
228
|
}).join("");
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
let t =
|
|
230
|
+
function oe(e) {
|
|
231
|
+
let t = V();
|
|
232
232
|
return t ? (() => {
|
|
233
|
-
var n = i(
|
|
234
|
-
return r(() => d(n, "innerHTML",
|
|
233
|
+
var n = i(U);
|
|
234
|
+
return r(() => d(n, "innerHTML", K(e.countries, t, e.uid))), n;
|
|
235
235
|
})() : (() => {
|
|
236
|
-
var t = i(
|
|
236
|
+
var t = i(U);
|
|
237
237
|
return m((t) => {
|
|
238
|
-
t.childElementCount > 0 ||
|
|
239
|
-
t.innerHTML =
|
|
238
|
+
t.childElementCount > 0 || H().then((n) => {
|
|
239
|
+
t.innerHTML = K(e.countries, n, e.uid);
|
|
240
240
|
});
|
|
241
241
|
}, t), t;
|
|
242
242
|
})();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
let t = () =>
|
|
244
|
+
function q(e) {
|
|
245
|
+
let t = () => B(e.locale, e.registry);
|
|
246
246
|
return (() => {
|
|
247
|
-
var n = i(
|
|
248
|
-
return u(n, "viewBox",
|
|
249
|
-
var i = e.class, o = `#${
|
|
247
|
+
var n = i(ee), a = n.firstChild;
|
|
248
|
+
return u(n, "viewBox", R), r((r) => {
|
|
249
|
+
var i = e.class, o = `#${G(t(), e.uid)}`;
|
|
250
250
|
return i !== r.e && u(n, "class", r.e = i), o !== r.t && u(a, "href", r.t = o), r;
|
|
251
251
|
}, {
|
|
252
252
|
e: void 0,
|
|
@@ -254,10 +254,10 @@ function K(e) {
|
|
|
254
254
|
}), n;
|
|
255
255
|
})();
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
let n = () =>
|
|
257
|
+
function se(e) {
|
|
258
|
+
let n = () => W(e);
|
|
259
259
|
return (() => {
|
|
260
|
-
var a = i(
|
|
260
|
+
var a = i(te), s = a.firstChild, c = s.nextSibling.firstChild;
|
|
261
261
|
return o(s, () => e.messages.localeLabel), c.addEventListener("change", (t) => {
|
|
262
262
|
let n = t.currentTarget.value, r = e.state.hrefForLocale(n);
|
|
263
263
|
e.onLocaleChange ? e.onLocaleChange(n, r) : window.location.assign(r);
|
|
@@ -266,7 +266,7 @@ function ae(e) {
|
|
|
266
266
|
return n().LOCALES;
|
|
267
267
|
},
|
|
268
268
|
children: (t) => (() => {
|
|
269
|
-
var n = i(
|
|
269
|
+
var n = i(ne);
|
|
270
270
|
return o(n, () => t.nativeName), r((r) => {
|
|
271
271
|
var i = t.code, a = t.dir, o = t.code === e.state.locale;
|
|
272
272
|
return i !== r.e && u(n, "lang", r.e = i), a !== r.t && u(n, "dir", r.t = a), o !== r.a && d(n, "selected", r.a = o), r;
|
|
@@ -279,8 +279,8 @@ function ae(e) {
|
|
|
279
279
|
})), r(() => u(c, "aria-label", e.messages.localeLabel)), a;
|
|
280
280
|
})();
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
let n, s, c = y(), d = () =>
|
|
282
|
+
function ce(e) {
|
|
283
|
+
let n, s, c = y(), d = () => W(e), f = () => [...new Set(d().LOCALES.map((e) => B(e.code, d())))], p = () => d().LOCALES.find((t) => t.code === e.state.locale), g = () => {
|
|
284
284
|
n && (n.open = !1);
|
|
285
285
|
}, _ = (e) => {
|
|
286
286
|
e.key !== "Escape" || !n?.open || (e.preventDefault(), g(), s?.focus());
|
|
@@ -289,17 +289,17 @@ function oe(e) {
|
|
|
289
289
|
return t ? `${e.messages.localeLabel}: ${t}` : e.messages.localeLabel;
|
|
290
290
|
};
|
|
291
291
|
return (() => {
|
|
292
|
-
var p = i(
|
|
292
|
+
var p = i(re), y = p.firstChild, b = y.firstChild, [x, S] = a(b.nextSibling), C = x.nextSibling, [w, T] = a(C.nextSibling), E = y.nextSibling;
|
|
293
293
|
p.$$keydown = _;
|
|
294
294
|
var D = n;
|
|
295
295
|
typeof D == "function" ? m(D, p) : n = p;
|
|
296
296
|
var O = s;
|
|
297
|
-
return typeof O == "function" ? m(O, y) : s = y, o(y, t(
|
|
297
|
+
return typeof O == "function" ? m(O, y) : s = y, o(y, t(oe, {
|
|
298
298
|
get countries() {
|
|
299
299
|
return f();
|
|
300
300
|
},
|
|
301
301
|
uid: c
|
|
302
|
-
}), x, S), o(y, t(
|
|
302
|
+
}), x, S), o(y, t(q, {
|
|
303
303
|
get locale() {
|
|
304
304
|
return e.state.locale;
|
|
305
305
|
},
|
|
@@ -313,10 +313,10 @@ function oe(e) {
|
|
|
313
313
|
return d().LOCALES;
|
|
314
314
|
},
|
|
315
315
|
children: (n) => (() => {
|
|
316
|
-
var s = i(
|
|
316
|
+
var s = i(ie), f = s.firstChild, p = f.firstChild, [m, h] = a(p.nextSibling), _ = m.nextSibling;
|
|
317
317
|
return f.$$click = (t) => {
|
|
318
318
|
e.onLocaleChange && (t.preventDefault(), g(), e.onLocaleChange(n.code, e.state.hrefForLocale(n.code)));
|
|
319
|
-
}, o(f, t(
|
|
319
|
+
}, o(f, t(q, {
|
|
320
320
|
get locale() {
|
|
321
321
|
return n.code;
|
|
322
322
|
},
|
|
@@ -345,14 +345,190 @@ function oe(e) {
|
|
|
345
345
|
}), l(), p;
|
|
346
346
|
})();
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return e.variant === "flag" ? t(
|
|
348
|
+
function J(e) {
|
|
349
|
+
return e.variant === "flag" ? t(ce, e) : t(se, e);
|
|
350
|
+
}
|
|
351
|
+
n(["keydown", "click"]);
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region src/solid/consent.tsx
|
|
354
|
+
var le = /*#__PURE__*/ p("<section class=site-consent><div class=site-consent__inner><div class=site-consent__copy><h2 class=site-consent__title></h2><p class=site-consent__body><!$><!/> <a class=site-consent__link></a></p></div><div class=site-consent__actions><!$><!/><!$><!/><!$><!/></div><!$><!/>"), ue = /*#__PURE__*/ p("<ul class=site-consent-categories role=list><li class=site-consent-category><div class=site-consent-category__copy><h3 class=site-consent-category__title></h3><p class=site-consent-category__body></p></div><span class=\"dds-badge site-consent-category__status\"></span></li><li class=site-consent-category><div class=site-consent-category__copy><h3 class=site-consent-category__title></h3><p id=site-consent-analytics-body class=site-consent-category__body></p></div><!$><!/>"), de = /*#__PURE__*/ p("<p class=site-consent-dialog__policy><a class=site-consent__link>"), fe = /*#__PURE__*/ p("<p class=dds-sr-only role=status>"), pe = /*#__PURE__*/ p("<span class=dds-sr-only>"), me = /*#__PURE__*/ p("<button type=button aria-haspopup=dialog>"), he = /^[^#\s]*#[^#\s]+$/;
|
|
355
|
+
function ge(e) {
|
|
356
|
+
if (typeof e.learnMoreHref != "string" || !he.test(e.learnMoreHref)) throw RangeError(`ConsentBanner: learnMoreHref must link to the privacy policy's analytics section with its #anchor (e.g. /privacy#analytics), got ${JSON.stringify(e.learnMoreHref)}`);
|
|
357
|
+
let [n, c] = v(!1), [d, f] = v(!1), [p, h] = v(!1), [_, y] = v(!1), [w, O] = v(!1), [k, A] = v(""), j = () => {
|
|
358
|
+
f(e.controller.needsDecision()), h(e.controller.dismissed());
|
|
359
|
+
}, M = () => {
|
|
360
|
+
O(e.controller.analyticsGranted()), y(!0);
|
|
361
|
+
};
|
|
362
|
+
x(() => {
|
|
363
|
+
let t = e.controller;
|
|
364
|
+
t.start(), j(), b(t.subscribe((e) => {
|
|
365
|
+
e.type === "open-settings" ? M() : j();
|
|
366
|
+
})), c(!0);
|
|
367
|
+
});
|
|
368
|
+
let N = () => setTimeout(() => {
|
|
369
|
+
document.activeElement && document.activeElement !== document.body || document.getElementById("main-content")?.focus({ preventScroll: !0 });
|
|
370
|
+
}, 0), P = (t) => {
|
|
371
|
+
t(), y(!1), A(""), queueMicrotask(() => A(e.messages.saved)), N();
|
|
372
|
+
}, F = () => P(() => e.controller.acceptAll()), I = () => P(() => e.controller.rejectAll()), L = () => {
|
|
373
|
+
e.controller.dismiss(), N();
|
|
374
|
+
}, R = (e) => {
|
|
375
|
+
e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), L());
|
|
376
|
+
}, z = (e) => {
|
|
377
|
+
if (typeof ResizeObserver > "u") return;
|
|
378
|
+
let t = document.documentElement, n = new ResizeObserver(() => t.style.setProperty("--site-consent-block-size", `${e.offsetHeight}px`));
|
|
379
|
+
n.observe(e), b(() => {
|
|
380
|
+
n.disconnect(), t.style.removeProperty("--site-consent-block-size");
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
return t(g, {
|
|
384
|
+
get when() {
|
|
385
|
+
return n();
|
|
386
|
+
},
|
|
387
|
+
get children() {
|
|
388
|
+
return [
|
|
389
|
+
t(g, {
|
|
390
|
+
get when() {
|
|
391
|
+
return s(() => !!d())() && !p();
|
|
392
|
+
},
|
|
393
|
+
get children() {
|
|
394
|
+
var n = i(le), s = n.firstChild, c = s.firstChild, d = c.firstChild, f = d.nextSibling, p = f.firstChild, [h, g] = a(p.nextSibling), _ = h.nextSibling.nextSibling, v = c.nextSibling, y = v.firstChild, [b, x] = a(y.nextSibling), C = b.nextSibling, [w, D] = a(C.nextSibling), O = w.nextSibling, [k, A] = a(O.nextSibling), j = v.nextSibling, [N, P] = a(j.nextSibling);
|
|
395
|
+
return n.$$keydown = R, m(z, n), o(d, () => e.messages.title), o(f, () => e.messages.body, h, g), o(_, () => e.messages.learnMore), o(v, t(S, {
|
|
396
|
+
class: "site-consent__action",
|
|
397
|
+
tone: "secondary",
|
|
398
|
+
onClick: F,
|
|
399
|
+
get children() {
|
|
400
|
+
return e.messages.acceptAll;
|
|
401
|
+
}
|
|
402
|
+
}), b, x), o(v, t(S, {
|
|
403
|
+
class: "site-consent__action",
|
|
404
|
+
tone: "secondary",
|
|
405
|
+
onClick: I,
|
|
406
|
+
get children() {
|
|
407
|
+
return e.messages.rejectAll;
|
|
408
|
+
}
|
|
409
|
+
}), w, D), o(v, t(S, {
|
|
410
|
+
class: "site-consent__action",
|
|
411
|
+
tone: "secondary",
|
|
412
|
+
"aria-haspopup": "dialog",
|
|
413
|
+
onClick: M,
|
|
414
|
+
get children() {
|
|
415
|
+
return e.messages.settings;
|
|
416
|
+
}
|
|
417
|
+
}), k, A), o(s, t(E, {
|
|
418
|
+
class: "site-consent__dismiss",
|
|
419
|
+
get "aria-label"() {
|
|
420
|
+
return e.messages.dismiss;
|
|
421
|
+
},
|
|
422
|
+
get title() {
|
|
423
|
+
return e.messages.dismiss;
|
|
424
|
+
},
|
|
425
|
+
onClick: L,
|
|
426
|
+
get children() {
|
|
427
|
+
return t(T, {
|
|
428
|
+
name: "close",
|
|
429
|
+
size: 20
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
}), N, P), r((t) => {
|
|
433
|
+
var r = e.messages.regionLabel, i = e.learnMoreHref;
|
|
434
|
+
return r !== t.e && u(n, "aria-label", t.e = r), i !== t.t && u(_, "href", t.t = i), t;
|
|
435
|
+
}, {
|
|
436
|
+
e: void 0,
|
|
437
|
+
t: void 0
|
|
438
|
+
}), l(), n;
|
|
439
|
+
}
|
|
440
|
+
}),
|
|
441
|
+
t(C, {
|
|
442
|
+
id: "site-consent-settings",
|
|
443
|
+
class: "site-consent-dialog",
|
|
444
|
+
get open() {
|
|
445
|
+
return _();
|
|
446
|
+
},
|
|
447
|
+
onOpenChange: y,
|
|
448
|
+
get title() {
|
|
449
|
+
return e.messages.settingsTitle;
|
|
450
|
+
},
|
|
451
|
+
get description() {
|
|
452
|
+
return e.messages.settingsIntro;
|
|
453
|
+
},
|
|
454
|
+
get actions() {
|
|
455
|
+
return [t(S, {
|
|
456
|
+
class: "site-consent__action",
|
|
457
|
+
tone: "secondary",
|
|
458
|
+
onClick: () => y(!1),
|
|
459
|
+
get children() {
|
|
460
|
+
return e.messages.cancel;
|
|
461
|
+
}
|
|
462
|
+
}), t(S, {
|
|
463
|
+
class: "site-consent__action",
|
|
464
|
+
tone: "secondary",
|
|
465
|
+
onClick: () => P(() => e.controller.save({ analytics: w() })),
|
|
466
|
+
get children() {
|
|
467
|
+
return e.messages.save;
|
|
468
|
+
}
|
|
469
|
+
})];
|
|
470
|
+
},
|
|
471
|
+
get children() {
|
|
472
|
+
return [
|
|
473
|
+
t(E, {
|
|
474
|
+
class: "site-consent-dialog__close",
|
|
475
|
+
get "aria-label"() {
|
|
476
|
+
return e.messages.close;
|
|
477
|
+
},
|
|
478
|
+
get title() {
|
|
479
|
+
return e.messages.close;
|
|
480
|
+
},
|
|
481
|
+
onClick: () => y(!1),
|
|
482
|
+
get children() {
|
|
483
|
+
return t(T, {
|
|
484
|
+
name: "close",
|
|
485
|
+
size: 20
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
}),
|
|
489
|
+
(() => {
|
|
490
|
+
var n = i(ue), r = n.firstChild, s = r.firstChild, c = s.firstChild, l = c.nextSibling, u = s.nextSibling, d = r.nextSibling, f = d.firstChild, p = f.firstChild, m = p.nextSibling, h = f.nextSibling, [g, _] = a(h.nextSibling);
|
|
491
|
+
return o(c, () => e.messages.necessaryTitle), o(l, () => e.messages.necessaryBody), o(u, () => e.messages.necessaryStatus), o(p, () => e.messages.analyticsTitle), o(m, () => e.messages.analyticsBody), o(d, t(D, {
|
|
492
|
+
class: "site-consent-category__switch",
|
|
493
|
+
get checked() {
|
|
494
|
+
return w();
|
|
495
|
+
},
|
|
496
|
+
onCheckedChange: O,
|
|
497
|
+
"aria-describedby": "site-consent-analytics-body",
|
|
498
|
+
get label() {
|
|
499
|
+
return (() => {
|
|
500
|
+
var t = i(pe);
|
|
501
|
+
return o(t, () => e.messages.analyticsSwitch), t;
|
|
502
|
+
})();
|
|
503
|
+
}
|
|
504
|
+
}), g, _), n;
|
|
505
|
+
})(),
|
|
506
|
+
(() => {
|
|
507
|
+
var t = i(de), n = t.firstChild;
|
|
508
|
+
return o(n, () => e.messages.privacyLink), r(() => u(n, "href", e.privacyHref)), t;
|
|
509
|
+
})()
|
|
510
|
+
];
|
|
511
|
+
}
|
|
512
|
+
}),
|
|
513
|
+
(() => {
|
|
514
|
+
var e = i(fe);
|
|
515
|
+
return o(e, k), e;
|
|
516
|
+
})()
|
|
517
|
+
];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
function Y(t) {
|
|
522
|
+
return (() => {
|
|
523
|
+
var n = i(me);
|
|
524
|
+
return n.$$click = () => t.controller.openSettings(), o(n, () => t.children), r(() => e(n, t.class ? `site-consent-trigger ${t.class}` : "site-consent-trigger")), l(), n;
|
|
525
|
+
})();
|
|
350
526
|
}
|
|
351
527
|
n(["keydown", "click"]);
|
|
352
528
|
//#endregion
|
|
353
529
|
//#region src/solid/chrome.tsx
|
|
354
|
-
var
|
|
355
|
-
function
|
|
530
|
+
var _e = /*#__PURE__*/ p("<header class=site-header><a class=dds-sr-only href=#main-content></a><div class=site-header__inner><a class=site-brand><!$><!/><!$><!/></a><!$><!/><nav id=site-navigation class=site-nav><ul class=site-nav__list></ul></nav><div class=site-header__controls><!$><!/><!$><!/><!$><!/>"), X = /*#__PURE__*/ p("<li><a>"), ve = /*#__PURE__*/ p("<nav class=site-footer__langs><details class=site-footer__langs-menu><summary class=site-footer__langs-trigger><span></span></summary><ul class=site-footer__langs-list role=list>"), ye = /*#__PURE__*/ p("<p class=site-footer__brand><!$><!/><!$><!/><!$><!/>"), be = /*#__PURE__*/ p("<strong>"), xe = /*#__PURE__*/ p("<span aria-hidden=true>·"), Se = /*#__PURE__*/ p("<a>"), Ce = /*#__PURE__*/ p("<ul class=site-footer__links><!$><!/><!$><!/><li>"), we = /*#__PURE__*/ p("<li>"), Te = /*#__PURE__*/ p("<bdi>"), Ee = /*#__PURE__*/ p("<a><bdi>"), De = /*#__PURE__*/ p("<footer class=site-footer><div class=site-footer__inner><!$><!/><div class=site-footer__row><!$><!/><!$><!/>"), Oe = /*#__PURE__*/ p("<div class=site-footer__identity><!$><!/><div class=site-footer__details>"), ke = /*#__PURE__*/ p("<nav class=site-footer__nav>");
|
|
531
|
+
function Z(e) {
|
|
356
532
|
let n = [
|
|
357
533
|
"system",
|
|
358
534
|
"light",
|
|
@@ -363,10 +539,10 @@ function Y(e) {
|
|
|
363
539
|
}, u = (t) => {
|
|
364
540
|
e.value === void 0 && i(t), e.onValueChange?.(t), l(t), localStorage.setItem(e.storageKey ?? "site-theme", t);
|
|
365
541
|
};
|
|
366
|
-
return
|
|
542
|
+
return x(() => {
|
|
367
543
|
let t = localStorage.getItem(e.storageKey ?? "site-theme");
|
|
368
544
|
e.value === void 0 && t && n.includes(t) && i(t), l(e.value ?? t ?? r());
|
|
369
|
-
}), t(
|
|
545
|
+
}), t(E, {
|
|
370
546
|
class: "site-theme-toggle",
|
|
371
547
|
tone: "ghost",
|
|
372
548
|
get "aria-label"() {
|
|
@@ -377,7 +553,7 @@ function Y(e) {
|
|
|
377
553
|
},
|
|
378
554
|
onClick: () => u(s()),
|
|
379
555
|
get children() {
|
|
380
|
-
return t(
|
|
556
|
+
return t(T, {
|
|
381
557
|
class: "site-theme-toggle__icon",
|
|
382
558
|
get name() {
|
|
383
559
|
return s() === "dark" ? "site-moon" : "site-sun";
|
|
@@ -390,8 +566,8 @@ function Y(e) {
|
|
|
390
566
|
}
|
|
391
567
|
});
|
|
392
568
|
}
|
|
393
|
-
var
|
|
394
|
-
function
|
|
569
|
+
var Q = (e) => e.emphasis ? "site-link--emphasis" : void 0;
|
|
570
|
+
function Ae(n) {
|
|
395
571
|
let [d, f] = v(!1), p = _(() => n.brand), m = (e) => {
|
|
396
572
|
e.key !== "Escape" || e.defaultPrevented || !d() || e.target?.closest("[aria-modal=\"true\"]") || (e.preventDefault(), f(!1), e.currentTarget.querySelector(".site-menu-button")?.focus());
|
|
397
573
|
}, y = (e) => {
|
|
@@ -399,8 +575,8 @@ function Z(n) {
|
|
|
399
575
|
!d() || !t || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || t.target && t.target !== "_self" || f(!1);
|
|
400
576
|
};
|
|
401
577
|
return (() => {
|
|
402
|
-
var _ = i(
|
|
403
|
-
return _.$$keydown = m, o(v, () => n.messages.skipToContent), o(
|
|
578
|
+
var _ = i(_e), v = _.firstChild, b = v.nextSibling, x = b.firstChild, C = x.firstChild, [w, T] = a(C.nextSibling), E = w.nextSibling, [D, O] = a(E.nextSibling), k = x.nextSibling, [A, j] = a(k.nextSibling), M = A.nextSibling, N = M.firstChild, P = M.nextSibling, F = P.firstChild, [I, L] = a(F.nextSibling), R = I.nextSibling, [z, B] = a(R.nextSibling), V = z.nextSibling, [H, U] = a(V.nextSibling);
|
|
579
|
+
return _.$$keydown = m, o(v, () => n.messages.skipToContent), o(x, () => p().logo, w, T), o(x, () => p().name, D, O), o(b, t(S, {
|
|
404
580
|
class: "site-menu-button",
|
|
405
581
|
tone: "ghost",
|
|
406
582
|
get "aria-expanded"() {
|
|
@@ -411,14 +587,14 @@ function Z(n) {
|
|
|
411
587
|
get children() {
|
|
412
588
|
return s(() => !!d())() ? n.messages.menuClose : n.messages.menuOpen;
|
|
413
589
|
}
|
|
414
|
-
}), A, j), M.$$click = y, o(
|
|
590
|
+
}), A, j), M.$$click = y, o(N, t(h, {
|
|
415
591
|
get each() {
|
|
416
592
|
return n.navigation;
|
|
417
593
|
},
|
|
418
594
|
children: (t) => (() => {
|
|
419
|
-
var n = i(
|
|
595
|
+
var n = i(X), a = n.firstChild;
|
|
420
596
|
return o(a, () => t.label), r((n) => {
|
|
421
|
-
var r =
|
|
597
|
+
var r = Q(t), i = t.href, o = t.external ? "_blank" : void 0, s = t.external ? "noreferrer" : void 0;
|
|
422
598
|
return r !== n.e && e(a, n.e = r), i !== n.t && u(a, "href", n.t = i), o !== n.a && u(a, "target", n.a = o), s !== n.o && u(a, "rel", n.o = s), n;
|
|
423
599
|
}, {
|
|
424
600
|
e: void 0,
|
|
@@ -427,11 +603,11 @@ function Z(n) {
|
|
|
427
603
|
o: void 0
|
|
428
604
|
}), n;
|
|
429
605
|
})()
|
|
430
|
-
})),
|
|
606
|
+
})), P.$$click = y, o(P, t(g, {
|
|
431
607
|
get when() {
|
|
432
608
|
return n.locale;
|
|
433
609
|
},
|
|
434
|
-
children: (e) => t(
|
|
610
|
+
children: (e) => t(J, c({
|
|
435
611
|
get state() {
|
|
436
612
|
return e();
|
|
437
613
|
},
|
|
@@ -439,14 +615,14 @@ function Z(n) {
|
|
|
439
615
|
return n.messages;
|
|
440
616
|
}
|
|
441
617
|
}, () => n.localeVariant ? { variant: n.localeVariant } : {}, () => n.localeRegistry ? { registry: n.localeRegistry } : {}, () => n.onLocaleChange ? { onLocaleChange: n.onLocaleChange } : {}))
|
|
442
|
-
}),
|
|
618
|
+
}), I, L), o(P, (() => {
|
|
443
619
|
var e = s(() => !!n.theme);
|
|
444
|
-
return () => e() && t(
|
|
620
|
+
return () => e() && t(Z, c(() => n.theme, { get messages() {
|
|
445
621
|
return n.messages;
|
|
446
622
|
} }));
|
|
447
|
-
})(),
|
|
623
|
+
})(), z, B), o(P, () => n.actions, H, U), r((e) => {
|
|
448
624
|
var t = p().href, r = p().label, i = String(d()), a = n.messages.navigationLabel, o = String(d());
|
|
449
|
-
return t !== e.e && u(
|
|
625
|
+
return t !== e.e && u(x, "href", e.e = t), r !== e.t && u(x, "aria-label", e.t = r), i !== e.a && u(M, "data-open", e.a = i), a !== e.o && u(M, "aria-label", e.o = a), o !== e.i && u(P, "data-open", e.i = o), e;
|
|
450
626
|
}, {
|
|
451
627
|
e: void 0,
|
|
452
628
|
t: void 0,
|
|
@@ -456,14 +632,14 @@ function Z(n) {
|
|
|
456
632
|
}), l(), _;
|
|
457
633
|
})();
|
|
458
634
|
}
|
|
459
|
-
function
|
|
635
|
+
function je(e) {
|
|
460
636
|
let n, a, s = () => e.registry.LOCALES.find((t) => t.code === e.state.locale), c = () => {
|
|
461
637
|
n && (n.open = !1);
|
|
462
638
|
}, d = (e) => {
|
|
463
639
|
e.key !== "Escape" || !n?.open || (e.preventDefault(), c(), a?.focus());
|
|
464
640
|
};
|
|
465
641
|
return (() => {
|
|
466
|
-
var c = i(
|
|
642
|
+
var c = i(ve), f = c.firstChild, p = f.firstChild, g = p.firstChild, _ = p.nextSibling;
|
|
467
643
|
f.$$keydown = d;
|
|
468
644
|
var v = n;
|
|
469
645
|
typeof v == "function" ? m(v, f) : n = f;
|
|
@@ -473,7 +649,7 @@ function ye(e) {
|
|
|
473
649
|
return e.registry.LOCALES;
|
|
474
650
|
},
|
|
475
651
|
children: (t) => (() => {
|
|
476
|
-
var n = i(
|
|
652
|
+
var n = i(X), a = n.firstChild;
|
|
477
653
|
return a.$$click = () => e.onSelect?.(t.code), o(a, () => t.nativeName), r((n) => {
|
|
478
654
|
var r = e.state.hrefForLocale(t.code), i = t.code, o = t.code, s = t.dir, c = t.code === e.state.locale ? "page" : void 0;
|
|
479
655
|
return r !== n.e && u(a, "href", n.e = r), i !== n.t && u(a, "hreflang", n.t = i), o !== n.a && u(a, "lang", n.a = o), s !== n.o && u(a, "dir", n.o = s), c !== n.i && u(a, "aria-current", n.i = c), n;
|
|
@@ -496,25 +672,25 @@ function ye(e) {
|
|
|
496
672
|
}), l(), c;
|
|
497
673
|
})();
|
|
498
674
|
}
|
|
499
|
-
function
|
|
500
|
-
let s = () => n.localeRegistry ??
|
|
501
|
-
var s = i(
|
|
675
|
+
function Me(n) {
|
|
676
|
+
let s = () => n.localeRegistry ?? N, c = _(() => n.brand), l = _(() => n.details), d = () => (() => {
|
|
677
|
+
var s = i(ye), l = s.firstChild, [d, f] = a(l.nextSibling), p = d.nextSibling, [m, _] = a(p.nextSibling), v = m.nextSibling, [y, b] = a(v.nextSibling);
|
|
502
678
|
return o(s, () => c().logo, d, f), o(s, t(g, {
|
|
503
679
|
get when() {
|
|
504
680
|
return c().name;
|
|
505
681
|
},
|
|
506
682
|
children: (e) => (() => {
|
|
507
|
-
var t = i(
|
|
683
|
+
var t = i(be);
|
|
508
684
|
return o(t, e), t;
|
|
509
685
|
})()
|
|
510
686
|
}), m, _), o(s, t(h, {
|
|
511
687
|
get each() {
|
|
512
688
|
return n.family ?? [];
|
|
513
689
|
},
|
|
514
|
-
children: (t) => [i(
|
|
515
|
-
var n = i(
|
|
690
|
+
children: (t) => [i(xe), (() => {
|
|
691
|
+
var n = i(Se);
|
|
516
692
|
return o(n, () => t.label), r((r) => {
|
|
517
|
-
var i =
|
|
693
|
+
var i = Q(t), a = t.href;
|
|
518
694
|
return i !== r.e && e(n, r.e = i), a !== r.t && u(n, "href", r.t = a), r;
|
|
519
695
|
}, {
|
|
520
696
|
e: void 0,
|
|
@@ -523,44 +699,59 @@ function Q(n) {
|
|
|
523
699
|
})()]
|
|
524
700
|
}), y, b), s;
|
|
525
701
|
})(), f = () => (() => {
|
|
526
|
-
var s = i(
|
|
702
|
+
var s = i(Ce), c = s.firstChild, [l, d] = a(c.nextSibling), f = l.nextSibling, [p, m] = a(f.nextSibling), _ = p.nextSibling;
|
|
527
703
|
return o(s, t(h, {
|
|
528
704
|
get each() {
|
|
529
705
|
return n.links;
|
|
530
706
|
},
|
|
531
707
|
children: (t) => (() => {
|
|
532
|
-
var n = i(
|
|
708
|
+
var n = i(X), a = n.firstChild;
|
|
533
709
|
return o(a, () => t.label), r((n) => {
|
|
534
|
-
var r =
|
|
710
|
+
var r = Q(t), i = t.href;
|
|
535
711
|
return r !== n.e && e(a, n.e = r), i !== n.t && u(a, "href", n.t = i), n;
|
|
536
712
|
}, {
|
|
537
713
|
e: void 0,
|
|
538
714
|
t: void 0
|
|
539
715
|
}), n;
|
|
540
716
|
})()
|
|
541
|
-
}), l, d), o(
|
|
717
|
+
}), l, d), o(s, t(g, {
|
|
718
|
+
get when() {
|
|
719
|
+
return n.consentSettings;
|
|
720
|
+
},
|
|
721
|
+
children: (e) => (() => {
|
|
722
|
+
var n = i(we);
|
|
723
|
+
return o(n, t(Y, {
|
|
724
|
+
get controller() {
|
|
725
|
+
return e().controller;
|
|
726
|
+
},
|
|
727
|
+
get children() {
|
|
728
|
+
return e().label;
|
|
729
|
+
}
|
|
730
|
+
})), n;
|
|
731
|
+
})()
|
|
732
|
+
}), p, m), o(_, t(g, {
|
|
542
733
|
get when() {
|
|
543
734
|
return n.copyrightHref;
|
|
544
735
|
},
|
|
545
736
|
get fallback() {
|
|
546
737
|
return (() => {
|
|
547
|
-
var e = i(
|
|
738
|
+
var e = i(Te);
|
|
548
739
|
return o(e, () => n.copyright), e;
|
|
549
740
|
})();
|
|
550
741
|
},
|
|
551
742
|
children: (e) => (() => {
|
|
552
|
-
var t = i(
|
|
743
|
+
var t = i(Ee), a = t.firstChild;
|
|
553
744
|
return o(a, () => n.copyright), r(() => u(t, "href", e())), t;
|
|
554
745
|
})()
|
|
555
746
|
})), s;
|
|
556
747
|
})();
|
|
557
748
|
return (() => {
|
|
558
|
-
var e = i(
|
|
749
|
+
var e = i(De), c = e.firstChild, p = c.firstChild, [m, h] = a(p.nextSibling), _ = m.nextSibling, v = _.firstChild, [y, b] = a(v.nextSibling), x = y.nextSibling, [S, C] = a(x.nextSibling);
|
|
559
750
|
return o(c, t(g, {
|
|
560
751
|
get when() {
|
|
561
752
|
return n.locale;
|
|
562
753
|
},
|
|
563
|
-
children: (e) => t(
|
|
754
|
+
children: (e) => t(je, {
|
|
564
755
|
get state() {
|
|
565
756
|
return e();
|
|
566
757
|
},
|
|
@@ -582,7 +773,7 @@ function Q(n) {
|
|
|
582
773
|
return d();
|
|
583
774
|
},
|
|
584
775
|
children: (e) => (() => {
|
|
585
|
-
var t = i(
|
|
776
|
+
var t = i(Oe), n = t.firstChild, [r, s] = a(n.nextSibling), c = r.nextSibling;
|
|
586
777
|
return o(t, d, r, s), o(c, e), t;
|
|
587
778
|
})()
|
|
588
779
|
}), y, b), o(_, t(g, {
|
|
@@ -593,7 +784,7 @@ function Q(n) {
|
|
|
593
784
|
return f();
|
|
594
785
|
},
|
|
595
786
|
children: (e) => (() => {
|
|
596
|
-
var t = i(
|
|
787
|
+
var t = i(ke);
|
|
597
788
|
return o(t, f), r(() => u(t, "aria-label", e())), t;
|
|
598
789
|
})()
|
|
599
790
|
}), S, C), r(() => u(e, "aria-label", n.messages.footerLabel)), e;
|
|
@@ -602,33 +793,33 @@ function Q(n) {
|
|
|
602
793
|
n(["keydown", "click"]);
|
|
603
794
|
//#endregion
|
|
604
795
|
//#region src/solid/layouts.tsx
|
|
605
|
-
var
|
|
606
|
-
function
|
|
796
|
+
var Ne = /*#__PURE__*/ p("<div class=site-shell><!$><!/><main id=main-content tabindex=-1></main><!$><!/>"), Pe = /*#__PURE__*/ p("<article class=site-legal><header><h1></h1><p><!$><!/>: <time></time></p></header><!$><!/>"), Fe = /*#__PURE__*/ p("<section><strong></strong><!$><!/><!$><!/>"), Ie = /*#__PURE__*/ p("<div>"), Le = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><a class=\"dds-btn dds-btn--primary\">"), Re = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><!$><!/><!$><!/>"), ze = /*#__PURE__*/ p("<code>");
|
|
797
|
+
function Be(n) {
|
|
607
798
|
let s = () => n.mainWidth === "bleed" ? "site-main site-main--bleed" : "site-main", l = _(() => n.header), u = _(() => n.footer);
|
|
608
799
|
return (() => {
|
|
609
|
-
var d = i(
|
|
610
|
-
return o(d, t(
|
|
800
|
+
var d = i(Ne), f = d.firstChild, [p, m] = a(f.nextSibling), h = p.nextSibling, g = h.nextSibling, [_, v] = a(g.nextSibling);
|
|
801
|
+
return o(d, t(Ae, c(l)), p, m), o(h, () => n.children), o(d, t(Me, c(u)), _, v), r(() => e(h, s())), d;
|
|
611
802
|
})();
|
|
612
803
|
}
|
|
613
|
-
function
|
|
804
|
+
function Ve(e) {
|
|
614
805
|
return (() => {
|
|
615
|
-
var t = i(
|
|
806
|
+
var t = i(Pe), n = t.firstChild, s = n.firstChild, c = s.nextSibling, l = c.firstChild, [d, f] = a(l.nextSibling), p = d.nextSibling.nextSibling, m = n.nextSibling, [h, g] = a(m.nextSibling);
|
|
616
807
|
return o(s, () => e.title), o(c, () => e.messages.updatedLabel, d, f), o(p, () => e.updatedAt), o(t, () => e.children, h, g), r(() => u(p, "datetime", e.updatedAt)), t;
|
|
617
808
|
})();
|
|
618
809
|
}
|
|
619
|
-
function
|
|
810
|
+
function He(n) {
|
|
620
811
|
let c = _(() => n.children);
|
|
621
812
|
return (() => {
|
|
622
|
-
var l = i(
|
|
813
|
+
var l = i(Fe), d = l.firstChild, f = d.nextSibling, [p, m] = a(f.nextSibling), h = p.nextSibling, [g, _] = a(h.nextSibling);
|
|
623
814
|
return o(d, () => n.title), o(l, (() => {
|
|
624
815
|
var e = s(() => !!c());
|
|
625
816
|
return () => e() && (() => {
|
|
626
|
-
var e = i(
|
|
817
|
+
var e = i(Ie);
|
|
627
818
|
return o(e, c), e;
|
|
628
819
|
})();
|
|
629
820
|
})(), p, m), o(l, (() => {
|
|
630
821
|
var e = s(() => !!n.action);
|
|
631
|
-
return () => e() && t(
|
|
822
|
+
return () => e() && t(S, {
|
|
632
823
|
get tone() {
|
|
633
824
|
return n.action.tone ?? "secondary";
|
|
634
825
|
},
|
|
@@ -649,22 +840,22 @@ function ke(n) {
|
|
|
649
840
|
}), l;
|
|
650
841
|
})();
|
|
651
842
|
}
|
|
652
|
-
function
|
|
843
|
+
function Ue(e) {
|
|
653
844
|
return (() => {
|
|
654
|
-
var t = i(
|
|
845
|
+
var t = i(Le), n = t.firstChild, s = n.nextSibling, c = s.nextSibling, [l, d] = a(c.nextSibling), f = l.nextSibling;
|
|
655
846
|
return o(n, () => e.messages.notFoundTitle), o(s, () => e.messages.notFoundDescription), o(t, () => e.children, l, d), o(f, () => e.messages.backHome), r(() => u(f, "href", e.homeHref)), t;
|
|
656
847
|
})();
|
|
657
848
|
}
|
|
658
|
-
function
|
|
849
|
+
function We(e) {
|
|
659
850
|
return (() => {
|
|
660
|
-
var n = i(
|
|
851
|
+
var n = i(Re), r = n.firstChild, c = r.nextSibling, l = c.nextSibling, [u, d] = a(l.nextSibling), f = u.nextSibling, [p, m] = a(f.nextSibling), h = p.nextSibling, [g, _] = a(h.nextSibling);
|
|
661
852
|
return o(r, () => e.messages.errorTitle), o(c, () => e.messages.errorDescription), o(n, (() => {
|
|
662
853
|
var t = s(() => !!e.errorId);
|
|
663
854
|
return () => t() && (() => {
|
|
664
|
-
var t = i(
|
|
855
|
+
var t = i(ze);
|
|
665
856
|
return o(t, () => e.errorId), t;
|
|
666
857
|
})();
|
|
667
|
-
})(), u, d), o(n, () => e.children, p, m), o(n, t(
|
|
858
|
+
})(), u, d), o(n, () => e.children, p, m), o(n, t(S, {
|
|
668
859
|
tone: "primary",
|
|
669
860
|
get onClick() {
|
|
670
861
|
return e.onRetry;
|
|
@@ -677,8 +868,8 @@ function je(e) {
|
|
|
677
868
|
}
|
|
678
869
|
//#endregion
|
|
679
870
|
//#region src/solid/request-access.tsx
|
|
680
|
-
var
|
|
681
|
-
function
|
|
871
|
+
var Ge = /*#__PURE__*/ p("<form><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><div aria-live=polite aria-atomic=true>"), $ = /*#__PURE__*/ p("<input>"), Ke = /*#__PURE__*/ p("<textarea>");
|
|
872
|
+
function qe(n) {
|
|
682
873
|
let [u, d] = v("idle"), p = async (e) => {
|
|
683
874
|
if (e.preventDefault(), u() !== "submitting") {
|
|
684
875
|
d("submitting");
|
|
@@ -690,8 +881,8 @@ function Pe(n) {
|
|
|
690
881
|
}
|
|
691
882
|
};
|
|
692
883
|
return (() => {
|
|
693
|
-
var d = i(
|
|
694
|
-
return d.addEventListener("submit", p), o(d, t(
|
|
884
|
+
var d = i(Ge), m = d.firstChild, [h, g] = a(m.nextSibling), _ = h.nextSibling, [v, y] = a(_.nextSibling), b = v.nextSibling, [x, C] = a(b.nextSibling), T = x.nextSibling, [E, D] = a(T.nextSibling), O = E.nextSibling, [k, A] = a(O.nextSibling), j = k.nextSibling;
|
|
885
|
+
return d.addEventListener("submit", p), o(d, t(w, {
|
|
695
886
|
get label() {
|
|
696
887
|
return n.messages.nameLabel;
|
|
697
888
|
},
|
|
@@ -705,7 +896,7 @@ function Pe(n) {
|
|
|
705
896
|
required: !0
|
|
706
897
|
}), !1, !1), l(), t;
|
|
707
898
|
})()
|
|
708
|
-
}), h, g), o(d, t(
|
|
899
|
+
}), h, g), o(d, t(w, {
|
|
709
900
|
get label() {
|
|
710
901
|
return n.messages.emailLabel;
|
|
711
902
|
},
|
|
@@ -720,7 +911,7 @@ function Pe(n) {
|
|
|
720
911
|
required: !0
|
|
721
912
|
}), !1, !1), l(), t;
|
|
722
913
|
})()
|
|
723
|
-
}), v, y), o(d, t(
|
|
914
|
+
}), v, y), o(d, t(w, {
|
|
724
915
|
get label() {
|
|
725
916
|
return n.messages.organizationLabel;
|
|
726
917
|
},
|
|
@@ -732,19 +923,19 @@ function Pe(n) {
|
|
|
732
923
|
autocomplete: "organization"
|
|
733
924
|
}), !1, !1), l(), t;
|
|
734
925
|
})()
|
|
735
|
-
}),
|
|
926
|
+
}), x, C), o(d, t(w, {
|
|
736
927
|
get label() {
|
|
737
928
|
return n.messages.useCaseLabel;
|
|
738
929
|
},
|
|
739
930
|
children: (e) => (() => {
|
|
740
|
-
var t = i(
|
|
931
|
+
var t = i(Ke);
|
|
741
932
|
return f(t, c(e, {
|
|
742
933
|
class: "dds-textarea",
|
|
743
934
|
name: "useCase",
|
|
744
935
|
rows: "5"
|
|
745
936
|
}), !1, !1), l(), t;
|
|
746
937
|
})()
|
|
747
|
-
}), E, D), o(d, t(
|
|
938
|
+
}), E, D), o(d, t(S, {
|
|
748
939
|
type: "submit",
|
|
749
940
|
get loading() {
|
|
750
941
|
return u() === "submitting";
|
|
@@ -760,15 +951,15 @@ function Pe(n) {
|
|
|
760
951
|
}
|
|
761
952
|
//#endregion
|
|
762
953
|
//#region src/solid/oss-product-mark.tsx
|
|
763
|
-
var
|
|
954
|
+
var Je = /*#__PURE__*/ p("<img decoding=async>"), Ye = {
|
|
764
955
|
sm: 24,
|
|
765
956
|
md: 32,
|
|
766
957
|
lg: 48
|
|
767
958
|
};
|
|
768
|
-
function
|
|
769
|
-
let n = () => t.size ?? "md", a = () =>
|
|
959
|
+
function Xe(t) {
|
|
960
|
+
let n = () => t.size ?? "md", a = () => Ye[n()];
|
|
770
961
|
return (() => {
|
|
771
|
-
var o = i(
|
|
962
|
+
var o = i(Je);
|
|
772
963
|
return r((r) => {
|
|
773
964
|
var i = `oss-product-mark oss-product-mark--${n()}${t.class ? ` ${t.class}` : ""}`, s = t.src, c = t.decorative ? "" : t.name, l = t.decorative ? "true" : void 0, d = a(), f = a();
|
|
774
965
|
return i !== r.e && e(o, r.e = i), s !== r.t && u(o, "src", r.t = s), c !== r.a && u(o, "alt", r.a = c), l !== r.o && u(o, "aria-hidden", r.o = l), d !== r.i && u(o, "width", r.i = d), f !== r.n && u(o, "height", r.n = f), r;
|
|
@@ -784,10 +975,10 @@ function Le(t) {
|
|
|
784
975
|
}
|
|
785
976
|
//#endregion
|
|
786
977
|
//#region src/solid/sections.tsx
|
|
787
|
-
var
|
|
788
|
-
function
|
|
978
|
+
var Ze = /*#__PURE__*/ p("<section class=site-section><div class=site-section__shell>"), Qe = /*#__PURE__*/ p("<header class=site-section__head><p class=site-section__index aria-hidden=true></p><h2></h2><!$><!/>"), $e = /*#__PURE__*/ p("<p class=site-section__lede>"), et = /*#__PURE__*/ p("<section class=site-hero><div class=site-hero__shell><div class=site-hero__copy><!$><!/><h1></h1><p class=site-hero__lede></p><div class=site-hero__actions></div></div><figure class=site-hero__aside>"), tt = /*#__PURE__*/ p("<p class=site-hero__eyebrow>"), nt = /*#__PURE__*/ p("<ol class=site-steps>"), rt = /*#__PURE__*/ p("<li class=site-steps__step><span class=site-steps__marker aria-hidden=true></span><h3></h3><p>"), it = /*#__PURE__*/ p("<ul class=site-rows>"), at = /*#__PURE__*/ p("<li class=site-rows__row><div class=site-rows__title><h3></h3><!$><!/></div><p class=site-rows__body>"), ot = /*#__PURE__*/ p("<span class=\"dds-badge dds-badge--brand\">"), st = /*#__PURE__*/ p("<div class=site-pricing><div class=site-pricing__note></div><div class=site-pricing__action>");
|
|
979
|
+
function ct(e) {
|
|
789
980
|
return (() => {
|
|
790
|
-
var t = i(
|
|
981
|
+
var t = i(Ze), n = t.firstChild;
|
|
791
982
|
return o(n, () => e.children), r((n) => {
|
|
792
983
|
var r = e.id, i = e.tone ?? "default", a = e.labelledBy;
|
|
793
984
|
return r !== n.e && u(t, "id", n.e = r), i !== n.t && u(t, "data-tone", n.t = i), a !== n.a && u(t, "aria-labelledby", n.a = a), n;
|
|
@@ -798,29 +989,29 @@ function Ye(e) {
|
|
|
798
989
|
}), t;
|
|
799
990
|
})();
|
|
800
991
|
}
|
|
801
|
-
function
|
|
992
|
+
function lt(e) {
|
|
802
993
|
return (() => {
|
|
803
|
-
var n = i(
|
|
994
|
+
var n = i(Qe), s = n.firstChild, c = s.nextSibling, l = c.nextSibling, [d, f] = a(l.nextSibling);
|
|
804
995
|
return o(s, () => e.index), o(c, () => e.title), o(n, t(g, {
|
|
805
996
|
get when() {
|
|
806
997
|
return e.lede;
|
|
807
998
|
},
|
|
808
999
|
children: (e) => (() => {
|
|
809
|
-
var t = i(
|
|
1000
|
+
var t = i($e);
|
|
810
1001
|
return o(t, e), t;
|
|
811
1002
|
})()
|
|
812
1003
|
}), d, f), r(() => u(c, "id", e.titleId)), n;
|
|
813
1004
|
})();
|
|
814
1005
|
}
|
|
815
|
-
function
|
|
1006
|
+
function ut(e) {
|
|
816
1007
|
return (() => {
|
|
817
|
-
var n = i(
|
|
1008
|
+
var n = i(et), s = n.firstChild.firstChild, c = s.firstChild, [l, d] = a(c.nextSibling), f = l.nextSibling, p = f.nextSibling, m = p.nextSibling, h = s.nextSibling;
|
|
818
1009
|
return o(s, t(g, {
|
|
819
1010
|
get when() {
|
|
820
1011
|
return e.eyebrow;
|
|
821
1012
|
},
|
|
822
1013
|
children: (e) => (() => {
|
|
823
|
-
var t = i(
|
|
1014
|
+
var t = i(tt);
|
|
824
1015
|
return o(t, e), t;
|
|
825
1016
|
})()
|
|
826
1017
|
}), l, d), o(f, () => e.title), o(p, () => e.lede), o(m, () => e.actions), o(h, () => e.aside), r((t) => {
|
|
@@ -834,35 +1025,35 @@ function Ze(e) {
|
|
|
834
1025
|
}), n;
|
|
835
1026
|
})();
|
|
836
1027
|
}
|
|
837
|
-
function
|
|
1028
|
+
function dt(e) {
|
|
838
1029
|
return (() => {
|
|
839
|
-
var n = i(
|
|
1030
|
+
var n = i(nt);
|
|
840
1031
|
return o(n, t(h, {
|
|
841
1032
|
get each() {
|
|
842
1033
|
return e.steps;
|
|
843
1034
|
},
|
|
844
1035
|
children: (e, t) => (() => {
|
|
845
|
-
var n = i(
|
|
1036
|
+
var n = i(rt), r = n.firstChild, a = r.nextSibling, s = a.nextSibling;
|
|
846
1037
|
return o(r, () => t() + 1), o(a, () => e.title), o(s, () => e.body), n;
|
|
847
1038
|
})()
|
|
848
1039
|
})), r(() => u(n, "aria-label", e.label)), n;
|
|
849
1040
|
})();
|
|
850
1041
|
}
|
|
851
|
-
function
|
|
1042
|
+
function ft(e) {
|
|
852
1043
|
return (() => {
|
|
853
|
-
var n = i(
|
|
1044
|
+
var n = i(it);
|
|
854
1045
|
return o(n, t(h, {
|
|
855
1046
|
get each() {
|
|
856
1047
|
return e.rows;
|
|
857
1048
|
},
|
|
858
1049
|
children: (e) => (() => {
|
|
859
|
-
var n = i(
|
|
1050
|
+
var n = i(at), r = n.firstChild, s = r.firstChild, c = s.nextSibling, [l, u] = a(c.nextSibling), d = r.nextSibling;
|
|
860
1051
|
return o(s, () => e.title), o(r, t(g, {
|
|
861
1052
|
get when() {
|
|
862
1053
|
return e.badge;
|
|
863
1054
|
},
|
|
864
1055
|
children: (e) => (() => {
|
|
865
|
-
var t = i(
|
|
1056
|
+
var t = i(ot);
|
|
866
1057
|
return o(t, e), t;
|
|
867
1058
|
})()
|
|
868
1059
|
}), l, u), o(d, () => e.body), n;
|
|
@@ -870,13 +1061,13 @@ function $e(e) {
|
|
|
870
1061
|
})), r(() => u(n, "aria-label", e.label)), n;
|
|
871
1062
|
})();
|
|
872
1063
|
}
|
|
873
|
-
function
|
|
1064
|
+
function pt(e) {
|
|
874
1065
|
return (() => {
|
|
875
|
-
var t = i(
|
|
1066
|
+
var t = i(st), n = t.firstChild, r = n.nextSibling;
|
|
876
1067
|
return o(n, () => e.children), o(r, () => e.action), t;
|
|
877
1068
|
})();
|
|
878
1069
|
}
|
|
879
1070
|
//#endregion
|
|
880
|
-
export {
|
|
1071
|
+
export { ge as ConsentBanner, Y as ConsentSettingsButton, We as ErrorLayout, ft as FeatureRows, ut as HeroSplit, Ve as LegalLayout, J as LocaleMenu, Be as MarketingShell, Ue as NotFoundLayout, Xe as OssProductMark, pt as PricingNote, qe as RequestAccessForm, ct as SectionBlock, lt as SectionHead, Me as SiteFooter, Ae as SiteHeader, He as StatusBanner, dt as StepFlow, Z as ThemeToggle };
|
|
881
1072
|
|
|
882
1073
|
//# sourceMappingURL=solid.js.map
|