@devslab/site-kit 0.12.0 → 0.13.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/dist/solid.js CHANGED
@@ -1,5 +1,5 @@
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, createSignal as _, createUniqueId as v, onMount as y, sharedConfig as b } from "solid-js";
2
+ import { For as h, Show as g, createMemo as _, createSignal as v, createUniqueId as y, onMount as b } from "solid-js";
3
3
  import { Button as x, Field as S, Icon as C, IconButton as w } from "@devslab/dds-solid";
4
4
  //#region src/core/locales.mjs
5
5
  var T = Object.freeze([
@@ -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 A = D(), { canonicalLocale: j, localeAttributes: ee, resolveLocale: M } = A, N = Object.freeze({
183
+ var A = D(), { canonicalLocale: j, localeAttributes: M, resolveLocale: ee } = A, N = Object.freeze({
184
184
  ko: "kr",
185
185
  en: "us",
186
186
  ja: "jp",
@@ -208,8 +208,8 @@ function I(e, t) {
208
208
  }
209
209
  //#endregion
210
210
  //#region src/solid/flag-bodies.ts
211
- var te = () => void 0, ne = () => import("./flag-bodies.js").then((e) => e.FLAGS_BY_COUNTRY), L = /*#__PURE__*/ p("<svg class=site-flag-sprite aria-hidden=true>"), R = /*#__PURE__*/ p("<svg aria-hidden=true><use>"), z = /*#__PURE__*/ p("<label><span class=dds-sr-only></span><span class=\"dds-select site-locale\"><select class=dds-select__input>"), re = /*#__PURE__*/ p("<option>"), ie = /*#__PURE__*/ p("<details class=site-locale-flag><summary class=site-locale-flag__trigger><!$><!/><!$><!/></summary><ul class=site-locale-flag__list role=list>"), ae = /*#__PURE__*/ p("<li><a class=site-locale-flag__option><!$><!/><span>");
212
- function oe(e, t) {
211
+ var L = () => void 0, R = () => import("./flag-bodies.js").then((e) => e.FLAGS_BY_COUNTRY), z = /*#__PURE__*/ p("<svg class=site-flag-sprite aria-hidden=true>"), B = /*#__PURE__*/ p("<svg aria-hidden=true><use>"), V = /*#__PURE__*/ p("<label><span class=dds-sr-only></span><span class=\"dds-select site-locale\"><select class=dds-select__input>"), H = /*#__PURE__*/ p("<option>"), te = /*#__PURE__*/ p("<details class=site-locale-flag><summary class=site-locale-flag__trigger><!$><!/><!$><!/></summary><ul class=site-locale-flag__list role=list>"), ne = /*#__PURE__*/ p("<li><a class=site-locale-flag__option><!$><!/><span>");
212
+ function re(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 oe(e, t) {
219
219
  }
220
220
  return r;
221
221
  }
222
- var B = (e) => e.registry ?? A, V = (e, t) => `site-flag-${e}-${t}`;
223
- function H(e, t, n) {
222
+ var U = (e) => e.registry ?? A, W = (e, t) => `site-flag-${e}-${t}`;
223
+ function G(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="${V(e, n)}" viewBox="${r.viewBox}">${oe(r.body, n)}</symbol>`;
227
+ return `<symbol id="${W(e, n)}" viewBox="${r.viewBox}">${re(r.body, n)}</symbol>`;
228
228
  }).join("");
229
229
  }
230
- function U(e) {
231
- let t = te();
230
+ function ie(e) {
231
+ let t = L();
232
232
  return t ? (() => {
233
- var n = i(L);
234
- return r(() => d(n, "innerHTML", H(e.countries, t, e.uid))), n;
233
+ var n = i(z);
234
+ return r(() => d(n, "innerHTML", G(e.countries, t, e.uid))), n;
235
235
  })() : (() => {
236
- var t = i(L);
236
+ var t = i(z);
237
237
  return m((t) => {
238
- b.context || ne().then((n) => {
239
- t.innerHTML = H(e.countries, n, e.uid);
238
+ t.childElementCount > 0 || R().then((n) => {
239
+ t.innerHTML = G(e.countries, n, e.uid);
240
240
  });
241
241
  }, t), t;
242
242
  })();
243
243
  }
244
- function W(e) {
244
+ function K(e) {
245
245
  let t = () => I(e.locale, e.registry);
246
246
  return (() => {
247
- var n = i(R), a = n.firstChild;
247
+ var n = i(B), a = n.firstChild;
248
248
  return u(n, "viewBox", P), r((r) => {
249
- var i = e.class, o = `#${V(t(), e.uid)}`;
249
+ var i = e.class, o = `#${W(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 W(e) {
254
254
  }), n;
255
255
  })();
256
256
  }
257
- function G(e) {
258
- let n = () => B(e);
257
+ function ae(e) {
258
+ let n = () => U(e);
259
259
  return (() => {
260
- var a = i(z), s = a.firstChild, c = s.nextSibling.firstChild;
260
+ var a = i(V), 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 G(e) {
266
266
  return n().LOCALES;
267
267
  },
268
268
  children: (t) => (() => {
269
- var n = i(re);
269
+ var n = i(H);
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,27 +279,27 @@ function G(e) {
279
279
  })), r(() => u(c, "aria-label", e.messages.localeLabel)), a;
280
280
  })();
281
281
  }
282
- function K(e) {
283
- let n, s, c = v(), d = () => B(e), f = () => [...new Set(d().LOCALES.map((e) => I(e.code, d())))], p = () => d().LOCALES.find((t) => t.code === e.state.locale), g = () => {
282
+ function oe(e) {
283
+ let n, s, c = y(), d = () => U(e), f = () => [...new Set(d().LOCALES.map((e) => I(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());
287
- }, y = () => {
287
+ }, v = () => {
288
288
  let t = p()?.nativeName;
289
289
  return t ? `${e.messages.localeLabel}: ${t}` : e.messages.localeLabel;
290
290
  };
291
291
  return (() => {
292
- var p = i(ie), v = p.firstChild, b = v.firstChild, [x, S] = a(b.nextSibling), C = x.nextSibling, [w, T] = a(C.nextSibling), E = v.nextSibling;
292
+ var p = i(te), 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, v) : s = v, o(v, t(U, {
297
+ return typeof O == "function" ? m(O, y) : s = y, o(y, t(ie, {
298
298
  get countries() {
299
299
  return f();
300
300
  },
301
301
  uid: c
302
- }), x, S), o(v, t(W, {
302
+ }), x, S), o(y, t(K, {
303
303
  get locale() {
304
304
  return e.state.locale;
305
305
  },
@@ -313,10 +313,10 @@ function K(e) {
313
313
  return d().LOCALES;
314
314
  },
315
315
  children: (n) => (() => {
316
- var s = i(ae), f = s.firstChild, p = f.firstChild, [m, h] = a(p.nextSibling), _ = m.nextSibling;
316
+ var s = i(ne), 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(W, {
319
+ }, o(f, t(K, {
320
320
  get locale() {
321
321
  return n.code;
322
322
  },
@@ -337,8 +337,8 @@ function K(e) {
337
337
  }), l(), s;
338
338
  })()
339
339
  })), r((t) => {
340
- var n = y(), r = e.messages.localeLabel;
341
- return n !== t.e && u(v, "aria-label", t.e = n), r !== t.t && u(v, "title", t.t = r), t;
340
+ var n = v(), r = e.messages.localeLabel;
341
+ return n !== t.e && u(y, "aria-label", t.e = n), r !== t.t && u(y, "title", t.t = r), t;
342
342
  }, {
343
343
  e: void 0,
344
344
  t: void 0
@@ -346,24 +346,24 @@ function K(e) {
346
346
  })();
347
347
  }
348
348
  function q(e) {
349
- return e.variant === "flag" ? t(K, e) : t(G, e);
349
+ return e.variant === "flag" ? t(oe, e) : t(ae, e);
350
350
  }
351
351
  n(["keydown", "click"]);
352
352
  //#endregion
353
353
  //#region src/solid/chrome.tsx
354
- var se = /*#__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><!$><!/><!$><!/><!$><!/>"), J = /*#__PURE__*/ p("<li><a>"), ce = /*#__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>"), le = /*#__PURE__*/ p("<footer class=site-footer><div class=site-footer__inner><!$><!/><div class=site-footer__row><p class=site-footer__brand><!$><!/><strong></strong><!$><!/></p><ul class=site-footer__links><!$><!/><li>"), ue = /*#__PURE__*/ p("<span aria-hidden=true>·"), de = /*#__PURE__*/ p("<a>"), fe = /*#__PURE__*/ p("<bdi>"), pe = /*#__PURE__*/ p("<a><bdi>");
354
+ var se = /*#__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><!$><!/><!$><!/><!$><!/>"), J = /*#__PURE__*/ p("<li><a>"), ce = /*#__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>"), le = /*#__PURE__*/ p("<p class=site-footer__brand><!$><!/><!$><!/><!$><!/>"), ue = /*#__PURE__*/ p("<strong>"), de = /*#__PURE__*/ p("<span aria-hidden=true>·"), fe = /*#__PURE__*/ p("<a>"), pe = /*#__PURE__*/ p("<ul class=site-footer__links><!$><!/><li>"), me = /*#__PURE__*/ p("<bdi>"), he = /*#__PURE__*/ p("<a><bdi>"), ge = /*#__PURE__*/ p("<footer class=site-footer><div class=site-footer__inner><!$><!/><div class=site-footer__row><!$><!/><!$><!/>"), _e = /*#__PURE__*/ p("<div class=site-footer__identity><!$><!/><div class=site-footer__details>"), ve = /*#__PURE__*/ p("<nav class=site-footer__nav>");
355
355
  function Y(e) {
356
356
  let n = [
357
357
  "system",
358
358
  "light",
359
359
  "dark"
360
- ], [r, i] = _(e.defaultValue ?? "system"), [a, o] = _("light"), s = () => a() === "dark" ? "light" : "dark", c = () => s() === "dark" ? e.messages.themeDark : e.messages.themeLight, l = (e) => {
360
+ ], [r, i] = v(e.defaultValue ?? "system"), [a, o] = v("light"), s = () => a() === "dark" ? "light" : "dark", c = () => s() === "dark" ? e.messages.themeDark : e.messages.themeLight, l = (e) => {
361
361
  let t = e === "system" ? matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
362
362
  o(t), document.documentElement.dataset.theme = t, document.documentElement.dataset.themePreference = e;
363
363
  }, u = (t) => {
364
364
  e.value === void 0 && i(t), e.onValueChange?.(t), l(t), localStorage.setItem(e.storageKey ?? "site-theme", t);
365
365
  };
366
- return y(() => {
366
+ return b(() => {
367
367
  let t = localStorage.getItem(e.storageKey ?? "site-theme");
368
368
  e.value === void 0 && t && n.includes(t) && i(t), l(e.value ?? t ?? r());
369
369
  }), t(w, {
@@ -390,60 +390,73 @@ function Y(e) {
390
390
  }
391
391
  });
392
392
  }
393
- function X(e) {
394
- let [n, l] = _(!1);
393
+ var X = (e) => e.emphasis ? "site-link--emphasis" : void 0;
394
+ function Z(n) {
395
+ let [d, f] = v(!1), p = _(() => n.brand), m = (e) => {
396
+ e.key !== "Escape" || e.defaultPrevented || !d() || e.target?.closest("[aria-modal=\"true\"]") || (e.preventDefault(), f(!1), e.currentTarget.querySelector(".site-menu-button")?.focus());
397
+ }, y = (e) => {
398
+ let t = e.target?.closest("a");
399
+ !d() || !t || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || t.target && t.target !== "_self" || f(!1);
400
+ };
395
401
  return (() => {
396
- var d = i(se), f = d.firstChild, p = f.nextSibling, m = p.firstChild, g = m.firstChild, [_, v] = a(g.nextSibling), y = _.nextSibling, [b, S] = a(y.nextSibling), C = m.nextSibling, [w, T] = a(C.nextSibling), E = w.nextSibling, D = E.firstChild, O = E.nextSibling, k = O.firstChild, [A, j] = a(k.nextSibling), ee = A.nextSibling, [M, N] = a(ee.nextSibling), P = M.nextSibling, [F, I] = a(P.nextSibling);
397
- return o(f, () => e.messages.skipToContent), o(m, () => e.brand.logo, _, v), o(m, () => e.brand.name, b, S), o(p, t(x, {
402
+ var _ = i(se), v = _.firstChild, b = v.nextSibling, S = b.firstChild, C = S.firstChild, [w, T] = a(C.nextSibling), E = w.nextSibling, [D, O] = a(E.nextSibling), k = S.nextSibling, [A, j] = a(k.nextSibling), M = A.nextSibling, ee = M.firstChild, N = M.nextSibling, P = N.firstChild, [F, I] = a(P.nextSibling), L = F.nextSibling, [R, z] = a(L.nextSibling), B = R.nextSibling, [V, H] = a(B.nextSibling);
403
+ return _.$$keydown = m, o(v, () => n.messages.skipToContent), o(S, () => p().logo, w, T), o(S, () => p().name, D, O), o(b, t(x, {
398
404
  class: "site-menu-button",
399
405
  tone: "ghost",
400
406
  get "aria-expanded"() {
401
- return n();
407
+ return d();
402
408
  },
403
409
  "aria-controls": "site-navigation",
404
- onClick: () => l((e) => !e),
410
+ onClick: () => f((e) => !e),
405
411
  get children() {
406
- return s(() => !!n())() ? e.messages.menuClose : e.messages.menuOpen;
412
+ return s(() => !!d())() ? n.messages.menuClose : n.messages.menuOpen;
407
413
  }
408
- }), w, T), o(D, t(h, {
414
+ }), A, j), M.$$click = y, o(ee, t(h, {
409
415
  get each() {
410
- return e.navigation;
416
+ return n.navigation;
411
417
  },
412
- children: (e) => (() => {
413
- var t = i(J), n = t.firstChild;
414
- return o(n, () => e.label), r((t) => {
415
- var r = e.href, i = e.external ? "_blank" : void 0, a = e.external ? "noreferrer" : void 0;
416
- return r !== t.e && u(n, "href", t.e = r), i !== t.t && u(n, "target", t.t = i), a !== t.a && u(n, "rel", t.a = a), t;
418
+ children: (t) => (() => {
419
+ var n = i(J), a = n.firstChild;
420
+ return o(a, () => t.label), r((n) => {
421
+ var r = X(t), i = t.href, o = t.external ? "_blank" : void 0, s = t.external ? "noreferrer" : void 0;
422
+ 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;
417
423
  }, {
418
424
  e: void 0,
419
425
  t: void 0,
420
- a: void 0
421
- }), t;
426
+ a: void 0,
427
+ o: void 0
428
+ }), n;
422
429
  })()
423
- })), o(O, t(q, c({
424
- get state() {
425
- return e.locale;
430
+ })), N.$$click = y, o(N, t(g, {
431
+ get when() {
432
+ return n.locale;
426
433
  },
427
- get messages() {
428
- return e.messages;
429
- }
430
- }, () => e.localeVariant ? { variant: e.localeVariant } : {}, () => e.localeRegistry ? { registry: e.localeRegistry } : {}, () => e.onLocaleChange ? { onLocaleChange: e.onLocaleChange } : {})), A, j), o(O, (() => {
431
- var n = s(() => !!e.theme);
432
- return () => n() && t(Y, c(() => e.theme, { get messages() {
433
- return e.messages;
434
+ children: (e) => t(q, c({
435
+ get state() {
436
+ return e();
437
+ },
438
+ get messages() {
439
+ return n.messages;
440
+ }
441
+ }, () => n.localeVariant ? { variant: n.localeVariant } : {}, () => n.localeRegistry ? { registry: n.localeRegistry } : {}, () => n.onLocaleChange ? { onLocaleChange: n.onLocaleChange } : {}))
442
+ }), F, I), o(N, (() => {
443
+ var e = s(() => !!n.theme);
444
+ return () => e() && t(Y, c(() => n.theme, { get messages() {
445
+ return n.messages;
434
446
  } }));
435
- })(), M, N), o(O, () => e.actions, F, I), r((t) => {
436
- var r = e.brand.href, i = String(n()), a = e.messages.navigationLabel, o = String(n());
437
- return r !== t.e && u(m, "href", t.e = r), i !== t.t && u(E, "data-open", t.t = i), a !== t.a && u(E, "aria-label", t.a = a), o !== t.o && u(O, "data-open", t.o = o), t;
447
+ })(), R, z), o(N, () => n.actions, V, H), r((e) => {
448
+ var t = p().href, r = p().label, i = String(d()), a = n.messages.navigationLabel, o = String(d());
449
+ return t !== e.e && u(S, "href", e.e = t), r !== e.t && u(S, "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(N, "data-open", e.i = o), e;
438
450
  }, {
439
451
  e: void 0,
440
452
  t: void 0,
441
453
  a: void 0,
442
- o: void 0
443
- }), d;
454
+ o: void 0,
455
+ i: void 0
456
+ }), l(), _;
444
457
  })();
445
458
  }
446
- function me(e) {
459
+ function ye(e) {
447
460
  let n, a, s = () => e.registry.LOCALES.find((t) => t.code === e.state.locale), c = () => {
448
461
  n && (n.open = !1);
449
462
  }, d = (e) => {
@@ -483,88 +496,137 @@ function me(e) {
483
496
  }), l(), c;
484
497
  })();
485
498
  }
486
- function Z(e) {
487
- let n = () => e.localeRegistry ?? A;
499
+ function Q(n) {
500
+ let s = () => n.localeRegistry ?? A, c = _(() => n.brand), l = _(() => n.details), d = () => (() => {
501
+ var s = i(le), l = s.firstChild, [d, f] = a(l.nextSibling), p = d.nextSibling, [m, _] = a(p.nextSibling), v = m.nextSibling, [y, b] = a(v.nextSibling);
502
+ return o(s, () => c().logo, d, f), o(s, t(g, {
503
+ get when() {
504
+ return c().name;
505
+ },
506
+ children: (e) => (() => {
507
+ var t = i(ue);
508
+ return o(t, e), t;
509
+ })()
510
+ }), m, _), o(s, t(h, {
511
+ get each() {
512
+ return n.family ?? [];
513
+ },
514
+ children: (t) => [i(de), (() => {
515
+ var n = i(fe);
516
+ return o(n, () => t.label), r((r) => {
517
+ var i = X(t), a = t.href;
518
+ return i !== r.e && e(n, r.e = i), a !== r.t && u(n, "href", r.t = a), r;
519
+ }, {
520
+ e: void 0,
521
+ t: void 0
522
+ }), n;
523
+ })()]
524
+ }), y, b), s;
525
+ })(), f = () => (() => {
526
+ var s = i(pe), c = s.firstChild, [l, d] = a(c.nextSibling), f = l.nextSibling;
527
+ return o(s, t(h, {
528
+ get each() {
529
+ return n.links;
530
+ },
531
+ children: (t) => (() => {
532
+ var n = i(J), a = n.firstChild;
533
+ return o(a, () => t.label), r((n) => {
534
+ var r = X(t), i = t.href;
535
+ return r !== n.e && e(a, n.e = r), i !== n.t && u(a, "href", n.t = i), n;
536
+ }, {
537
+ e: void 0,
538
+ t: void 0
539
+ }), n;
540
+ })()
541
+ }), l, d), o(f, t(g, {
542
+ get when() {
543
+ return n.copyrightHref;
544
+ },
545
+ get fallback() {
546
+ return (() => {
547
+ var e = i(me);
548
+ return o(e, () => n.copyright), e;
549
+ })();
550
+ },
551
+ children: (e) => (() => {
552
+ var t = i(he), a = t.firstChild;
553
+ return o(a, () => n.copyright), r(() => u(t, "href", e())), t;
554
+ })()
555
+ })), s;
556
+ })();
488
557
  return (() => {
489
- var s = i(le), c = s.firstChild, l = c.firstChild, [d, f] = a(l.nextSibling), p = d.nextSibling.firstChild, m = p.firstChild, [_, v] = a(m.nextSibling), y = _.nextSibling, b = y.nextSibling, [x, S] = a(b.nextSibling), C = p.nextSibling, w = C.firstChild, [T, E] = a(w.nextSibling), D = T.nextSibling;
558
+ var e = i(ge), 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);
490
559
  return o(c, t(g, {
491
560
  get when() {
492
- return e.locale;
561
+ return n.locale;
493
562
  },
494
- children: (r) => t(me, {
563
+ children: (e) => t(ye, {
495
564
  get state() {
496
- return r();
565
+ return e();
497
566
  },
498
567
  get registry() {
499
- return n();
568
+ return s();
500
569
  },
501
570
  get label() {
502
- return e.messages.localeLabel;
571
+ return n.messages.localeLabel;
503
572
  },
504
573
  get onSelect() {
505
- return e.onLocaleSelect;
574
+ return n.onLocaleSelect;
506
575
  }
507
576
  })
508
- }), d, f), o(p, () => e.brand.logo, _, v), o(y, () => e.brand.name), o(p, t(h, {
509
- get each() {
510
- return e.family ?? [];
577
+ }), m, h), o(_, t(g, {
578
+ get when() {
579
+ return l();
511
580
  },
512
- children: (e) => [i(ue), (() => {
513
- var t = i(de);
514
- return o(t, () => e.label), r(() => u(t, "href", e.href)), t;
515
- })()]
516
- }), x, S), o(C, t(h, {
517
- get each() {
518
- return e.links;
581
+ get fallback() {
582
+ return d();
519
583
  },
520
584
  children: (e) => (() => {
521
- var t = i(J), n = t.firstChild;
522
- return o(n, () => e.label), r(() => u(n, "href", e.href)), t;
585
+ var t = i(_e), n = t.firstChild, [r, s] = a(n.nextSibling), c = r.nextSibling;
586
+ return o(t, d, r, s), o(c, e), t;
523
587
  })()
524
- }), T, E), o(D, t(g, {
588
+ }), y, b), o(_, t(g, {
525
589
  get when() {
526
- return e.copyrightHref;
590
+ return n.linksLabel;
527
591
  },
528
592
  get fallback() {
529
- return (() => {
530
- var t = i(fe);
531
- return o(t, () => e.copyright), t;
532
- })();
593
+ return f();
533
594
  },
534
- children: (t) => (() => {
535
- var n = i(pe), a = n.firstChild;
536
- return o(a, () => e.copyright), r(() => u(n, "href", t())), n;
595
+ children: (e) => (() => {
596
+ var t = i(ve);
597
+ return o(t, f), r(() => u(t, "aria-label", e())), t;
537
598
  })()
538
- })), r(() => u(s, "aria-label", e.messages.footerLabel)), s;
599
+ }), S, C), r(() => u(e, "aria-label", n.messages.footerLabel)), e;
539
600
  })();
540
601
  }
541
602
  n(["keydown", "click"]);
542
603
  //#endregion
543
604
  //#region src/solid/layouts.tsx
544
- var he = /*#__PURE__*/ p("<div class=site-shell><!$><!/><main id=main-content tabindex=-1></main><!$><!/>"), ge = /*#__PURE__*/ p("<article class=site-legal><header><h1></h1><p><!$><!/>: <time></time></p></header><!$><!/>"), _e = /*#__PURE__*/ p("<section><strong></strong><!$><!/><!$><!/>"), ve = /*#__PURE__*/ p("<div>"), ye = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><a class=\"dds-btn dds-btn--primary\">"), be = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><!$><!/><!$><!/>"), xe = /*#__PURE__*/ p("<code>");
545
- function Se(n) {
546
- let s = () => n.mainWidth === "bleed" ? "site-main site-main--bleed" : "site-main";
605
+ var be = /*#__PURE__*/ p("<div class=site-shell><!$><!/><main id=main-content tabindex=-1></main><!$><!/>"), xe = /*#__PURE__*/ p("<article class=site-legal><header><h1></h1><p><!$><!/>: <time></time></p></header><!$><!/>"), Se = /*#__PURE__*/ p("<section><strong></strong><!$><!/><!$><!/>"), Ce = /*#__PURE__*/ p("<div>"), we = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><a class=\"dds-btn dds-btn--primary\">"), Te = /*#__PURE__*/ p("<main class=\"site-main site-centered-layout\"><h1></h1><p></p><!$><!/><!$><!/><!$><!/>"), Ee = /*#__PURE__*/ p("<code>");
606
+ function De(n) {
607
+ let s = () => n.mainWidth === "bleed" ? "site-main site-main--bleed" : "site-main", l = _(() => n.header), u = _(() => n.footer);
547
608
  return (() => {
548
- var l = i(he), u = l.firstChild, [d, f] = a(u.nextSibling), p = d.nextSibling, m = p.nextSibling, [h, g] = a(m.nextSibling);
549
- return o(l, t(X, c(() => n.header)), d, f), o(p, () => n.children), o(l, t(Z, c(() => n.footer)), h, g), r(() => e(p, s())), l;
609
+ var d = i(be), f = d.firstChild, [p, m] = a(f.nextSibling), h = p.nextSibling, g = h.nextSibling, [_, v] = a(g.nextSibling);
610
+ return o(d, t(Z, c(l)), p, m), o(h, () => n.children), o(d, t(Q, c(u)), _, v), r(() => e(h, s())), d;
550
611
  })();
551
612
  }
552
- function Ce(e) {
613
+ function Oe(e) {
553
614
  return (() => {
554
- var t = i(ge), 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);
615
+ var t = i(xe), 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);
555
616
  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;
556
617
  })();
557
618
  }
558
- function we(n) {
619
+ function ke(n) {
620
+ let c = _(() => n.children);
559
621
  return (() => {
560
- var c = i(_e), l = c.firstChild, d = l.nextSibling, [f, p] = a(d.nextSibling), m = f.nextSibling, [h, g] = a(m.nextSibling);
561
- return o(l, () => n.title), o(c, (() => {
562
- var e = s(() => !!n.children);
622
+ var l = i(Se), d = l.firstChild, f = d.nextSibling, [p, m] = a(f.nextSibling), h = p.nextSibling, [g, _] = a(h.nextSibling);
623
+ return o(d, () => n.title), o(l, (() => {
624
+ var e = s(() => !!c());
563
625
  return () => e() && (() => {
564
- var e = i(ve);
565
- return o(e, () => n.children), e;
626
+ var e = i(Ce);
627
+ return o(e, c), e;
566
628
  })();
567
- })(), f, p), o(c, (() => {
629
+ })(), p, m), o(l, (() => {
568
630
  var e = s(() => !!n.action);
569
631
  return () => e() && t(x, {
570
632
  get tone() {
@@ -577,29 +639,29 @@ function we(n) {
577
639
  return n.action.label;
578
640
  }
579
641
  });
580
- })(), h, g), r((t) => {
642
+ })(), g, _), r((t) => {
581
643
  var r = `site-status site-status--${n.tone}`, i = n.tone === "danger" ? "alert" : "status", a = n.tone === "danger" ? "assertive" : "polite";
582
- return r !== t.e && e(c, t.e = r), i !== t.t && u(c, "role", t.t = i), a !== t.a && u(c, "aria-live", t.a = a), t;
644
+ return r !== t.e && e(l, t.e = r), i !== t.t && u(l, "role", t.t = i), a !== t.a && u(l, "aria-live", t.a = a), t;
583
645
  }, {
584
646
  e: void 0,
585
647
  t: void 0,
586
648
  a: void 0
587
- }), c;
649
+ }), l;
588
650
  })();
589
651
  }
590
- function Te(e) {
652
+ function Ae(e) {
591
653
  return (() => {
592
- var t = i(ye), n = t.firstChild, s = n.nextSibling, c = s.nextSibling, [l, d] = a(c.nextSibling), f = l.nextSibling;
654
+ var t = i(we), n = t.firstChild, s = n.nextSibling, c = s.nextSibling, [l, d] = a(c.nextSibling), f = l.nextSibling;
593
655
  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;
594
656
  })();
595
657
  }
596
- function Ee(e) {
658
+ function je(e) {
597
659
  return (() => {
598
- var n = i(be), 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);
660
+ var n = i(Te), 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);
599
661
  return o(r, () => e.messages.errorTitle), o(c, () => e.messages.errorDescription), o(n, (() => {
600
662
  var t = s(() => !!e.errorId);
601
663
  return () => t() && (() => {
602
- var t = i(xe);
664
+ var t = i(Ee);
603
665
  return o(t, () => e.errorId), t;
604
666
  })();
605
667
  })(), u, d), o(n, () => e.children, p, m), o(n, t(x, {
@@ -615,9 +677,9 @@ function Ee(e) {
615
677
  }
616
678
  //#endregion
617
679
  //#region src/solid/request-access.tsx
618
- var De = /*#__PURE__*/ p("<form><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><div aria-live=polite aria-atomic=true>"), Q = /*#__PURE__*/ p("<input>"), Oe = /*#__PURE__*/ p("<textarea>");
619
- function ke(n) {
620
- let [u, d] = _("idle"), p = async (e) => {
680
+ var Me = /*#__PURE__*/ p("<form><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><div aria-live=polite aria-atomic=true>"), $ = /*#__PURE__*/ p("<input>"), Ne = /*#__PURE__*/ p("<textarea>");
681
+ function Pe(n) {
682
+ let [u, d] = v("idle"), p = async (e) => {
621
683
  if (e.preventDefault(), u() !== "submitting") {
622
684
  d("submitting");
623
685
  try {
@@ -628,14 +690,14 @@ function ke(n) {
628
690
  }
629
691
  };
630
692
  return (() => {
631
- var d = i(De), m = d.firstChild, [h, g] = a(m.nextSibling), _ = h.nextSibling, [v, y] = a(_.nextSibling), b = v.nextSibling, [C, w] = a(b.nextSibling), T = C.nextSibling, [E, D] = a(T.nextSibling), O = E.nextSibling, [k, A] = a(O.nextSibling), j = k.nextSibling;
693
+ var d = i(Me), m = d.firstChild, [h, g] = a(m.nextSibling), _ = h.nextSibling, [v, y] = a(_.nextSibling), b = v.nextSibling, [C, w] = a(b.nextSibling), T = C.nextSibling, [E, D] = a(T.nextSibling), O = E.nextSibling, [k, A] = a(O.nextSibling), j = k.nextSibling;
632
694
  return d.addEventListener("submit", p), o(d, t(S, {
633
695
  get label() {
634
696
  return n.messages.nameLabel;
635
697
  },
636
698
  required: !0,
637
699
  children: (e) => (() => {
638
- var t = i(Q);
700
+ var t = i($);
639
701
  return f(t, c(e, {
640
702
  class: "dds-input",
641
703
  name: "name",
@@ -649,7 +711,7 @@ function ke(n) {
649
711
  },
650
712
  required: !0,
651
713
  children: (e) => (() => {
652
- var t = i(Q);
714
+ var t = i($);
653
715
  return f(t, c(e, {
654
716
  class: "dds-input",
655
717
  type: "email",
@@ -663,7 +725,7 @@ function ke(n) {
663
725
  return n.messages.organizationLabel;
664
726
  },
665
727
  children: (e) => (() => {
666
- var t = i(Q);
728
+ var t = i($);
667
729
  return f(t, c(e, {
668
730
  class: "dds-input",
669
731
  name: "organization",
@@ -675,7 +737,7 @@ function ke(n) {
675
737
  return n.messages.useCaseLabel;
676
738
  },
677
739
  children: (e) => (() => {
678
- var t = i(Oe);
740
+ var t = i(Ne);
679
741
  return f(t, c(e, {
680
742
  class: "dds-textarea",
681
743
  name: "useCase",
@@ -698,15 +760,15 @@ function ke(n) {
698
760
  }
699
761
  //#endregion
700
762
  //#region src/solid/oss-product-mark.tsx
701
- var Ae = /*#__PURE__*/ p("<img decoding=async>"), je = {
763
+ var Fe = /*#__PURE__*/ p("<img decoding=async>"), Ie = {
702
764
  sm: 24,
703
765
  md: 32,
704
766
  lg: 48
705
767
  };
706
- function Me(t) {
707
- let n = () => t.size ?? "md", a = () => je[n()];
768
+ function Le(t) {
769
+ let n = () => t.size ?? "md", a = () => Ie[n()];
708
770
  return (() => {
709
- var o = i(Ae);
771
+ var o = i(Fe);
710
772
  return r((r) => {
711
773
  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();
712
774
  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;
@@ -722,10 +784,10 @@ function Me(t) {
722
784
  }
723
785
  //#endregion
724
786
  //#region src/solid/sections.tsx
725
- var Ne = /*#__PURE__*/ p("<section class=site-section><div class=site-section__shell>"), Pe = /*#__PURE__*/ p("<header class=site-section__head><p class=site-section__index aria-hidden=true></p><h2></h2><!$><!/>"), $ = /*#__PURE__*/ p("<p class=site-section__lede>"), Fe = /*#__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>"), Ie = /*#__PURE__*/ p("<p class=site-hero__eyebrow>"), Le = /*#__PURE__*/ p("<ol class=site-steps>"), Re = /*#__PURE__*/ p("<li class=site-steps__step><span class=site-steps__marker aria-hidden=true></span><h3></h3><p>"), ze = /*#__PURE__*/ p("<ul class=site-rows>"), Be = /*#__PURE__*/ p("<li class=site-rows__row><div class=site-rows__title><h3></h3><!$><!/></div><p class=site-rows__body>"), Ve = /*#__PURE__*/ p("<span class=\"dds-badge dds-badge--brand\">"), He = /*#__PURE__*/ p("<div class=site-pricing><div class=site-pricing__note></div><div class=site-pricing__action>");
726
- function Ue(e) {
787
+ var Re = /*#__PURE__*/ p("<section class=site-section><div class=site-section__shell>"), ze = /*#__PURE__*/ p("<header class=site-section__head><p class=site-section__index aria-hidden=true></p><h2></h2><!$><!/>"), Be = /*#__PURE__*/ p("<p class=site-section__lede>"), Ve = /*#__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>"), He = /*#__PURE__*/ p("<p class=site-hero__eyebrow>"), Ue = /*#__PURE__*/ p("<ol class=site-steps>"), We = /*#__PURE__*/ p("<li class=site-steps__step><span class=site-steps__marker aria-hidden=true></span><h3></h3><p>"), Ge = /*#__PURE__*/ p("<ul class=site-rows>"), Ke = /*#__PURE__*/ p("<li class=site-rows__row><div class=site-rows__title><h3></h3><!$><!/></div><p class=site-rows__body>"), qe = /*#__PURE__*/ p("<span class=\"dds-badge dds-badge--brand\">"), Je = /*#__PURE__*/ p("<div class=site-pricing><div class=site-pricing__note></div><div class=site-pricing__action>");
788
+ function Ye(e) {
727
789
  return (() => {
728
- var t = i(Ne), n = t.firstChild;
790
+ var t = i(Re), n = t.firstChild;
729
791
  return o(n, () => e.children), r((n) => {
730
792
  var r = e.id, i = e.tone ?? "default", a = e.labelledBy;
731
793
  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;
@@ -736,29 +798,29 @@ function Ue(e) {
736
798
  }), t;
737
799
  })();
738
800
  }
739
- function We(e) {
801
+ function Xe(e) {
740
802
  return (() => {
741
- var n = i(Pe), s = n.firstChild, c = s.nextSibling, l = c.nextSibling, [d, f] = a(l.nextSibling);
803
+ var n = i(ze), s = n.firstChild, c = s.nextSibling, l = c.nextSibling, [d, f] = a(l.nextSibling);
742
804
  return o(s, () => e.index), o(c, () => e.title), o(n, t(g, {
743
805
  get when() {
744
806
  return e.lede;
745
807
  },
746
808
  children: (e) => (() => {
747
- var t = i($);
809
+ var t = i(Be);
748
810
  return o(t, e), t;
749
811
  })()
750
812
  }), d, f), r(() => u(c, "id", e.titleId)), n;
751
813
  })();
752
814
  }
753
- function Ge(e) {
815
+ function Ze(e) {
754
816
  return (() => {
755
- var n = i(Fe), s = n.firstChild.firstChild, c = s.firstChild, [l, d] = a(c.nextSibling), f = l.nextSibling, p = f.nextSibling, m = p.nextSibling, h = s.nextSibling;
817
+ var n = i(Ve), s = n.firstChild.firstChild, c = s.firstChild, [l, d] = a(c.nextSibling), f = l.nextSibling, p = f.nextSibling, m = p.nextSibling, h = s.nextSibling;
756
818
  return o(s, t(g, {
757
819
  get when() {
758
820
  return e.eyebrow;
759
821
  },
760
822
  children: (e) => (() => {
761
- var t = i(Ie);
823
+ var t = i(He);
762
824
  return o(t, e), t;
763
825
  })()
764
826
  }), l, d), o(f, () => e.title), o(p, () => e.lede), o(m, () => e.actions), o(h, () => e.aside), r((t) => {
@@ -772,35 +834,35 @@ function Ge(e) {
772
834
  }), n;
773
835
  })();
774
836
  }
775
- function Ke(e) {
837
+ function Qe(e) {
776
838
  return (() => {
777
- var n = i(Le);
839
+ var n = i(Ue);
778
840
  return o(n, t(h, {
779
841
  get each() {
780
842
  return e.steps;
781
843
  },
782
844
  children: (e, t) => (() => {
783
- var n = i(Re), r = n.firstChild, a = r.nextSibling, s = a.nextSibling;
845
+ var n = i(We), r = n.firstChild, a = r.nextSibling, s = a.nextSibling;
784
846
  return o(r, () => t() + 1), o(a, () => e.title), o(s, () => e.body), n;
785
847
  })()
786
848
  })), r(() => u(n, "aria-label", e.label)), n;
787
849
  })();
788
850
  }
789
- function qe(e) {
851
+ function $e(e) {
790
852
  return (() => {
791
- var n = i(ze);
853
+ var n = i(Ge);
792
854
  return o(n, t(h, {
793
855
  get each() {
794
856
  return e.rows;
795
857
  },
796
858
  children: (e) => (() => {
797
- var n = i(Be), r = n.firstChild, s = r.firstChild, c = s.nextSibling, [l, u] = a(c.nextSibling), d = r.nextSibling;
859
+ var n = i(Ke), r = n.firstChild, s = r.firstChild, c = s.nextSibling, [l, u] = a(c.nextSibling), d = r.nextSibling;
798
860
  return o(s, () => e.title), o(r, t(g, {
799
861
  get when() {
800
862
  return e.badge;
801
863
  },
802
864
  children: (e) => (() => {
803
- var t = i(Ve);
865
+ var t = i(qe);
804
866
  return o(t, e), t;
805
867
  })()
806
868
  }), l, u), o(d, () => e.body), n;
@@ -808,13 +870,13 @@ function qe(e) {
808
870
  })), r(() => u(n, "aria-label", e.label)), n;
809
871
  })();
810
872
  }
811
- function Je(e) {
873
+ function et(e) {
812
874
  return (() => {
813
- var t = i(He), n = t.firstChild, r = n.nextSibling;
875
+ var t = i(Je), n = t.firstChild, r = n.nextSibling;
814
876
  return o(n, () => e.children), o(r, () => e.action), t;
815
877
  })();
816
878
  }
817
879
  //#endregion
818
- export { Ee as ErrorLayout, qe as FeatureRows, Ge as HeroSplit, Ce as LegalLayout, q as LocaleMenu, Se as MarketingShell, Te as NotFoundLayout, Me as OssProductMark, Je as PricingNote, ke as RequestAccessForm, Ue as SectionBlock, We as SectionHead, Z as SiteFooter, X as SiteHeader, we as StatusBanner, Ke as StepFlow, Y as ThemeToggle };
880
+ export { je as ErrorLayout, $e as FeatureRows, Ze as HeroSplit, Oe as LegalLayout, q as LocaleMenu, De as MarketingShell, Ae as NotFoundLayout, Le as OssProductMark, et as PricingNote, Pe as RequestAccessForm, Ye as SectionBlock, Xe as SectionHead, Q as SiteFooter, Z as SiteHeader, ke as StatusBanner, Qe as StepFlow, Y as ThemeToggle };
819
881
 
820
882
  //# sourceMappingURL=solid.js.map