@tdacorp/hyle-sdk 0.24.0 → 0.26.1

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.
Files changed (46) hide show
  1. package/README.md +7 -5
  2. package/dist/{embed-B7T--kTT.d.cts → brand-CwXvdSkk.d.ts} +14 -2
  3. package/dist/{embed-DavTgSU4.d.ts → brand-IuZSB9UX.d.cts} +14 -2
  4. package/dist/check-routes-bin.js +10 -5
  5. package/dist/{chunk-4REU4HJI.js → chunk-3UQGU62T.js} +22 -5
  6. package/dist/{chunk-SY2FMIRZ.js → chunk-IDBQSMWT.js} +1 -1
  7. package/dist/{chunk-5TKJH2XC.js → chunk-NUQQ6VHH.js} +267 -43
  8. package/dist/{chunk-Y3BACEWA.js → chunk-T4EZAQFU.js} +129 -3
  9. package/dist/chunk-VAR2B7S6.js +82 -0
  10. package/dist/{chunk-U74B7AUG.js → chunk-ZWKAEWEW.js} +22 -74
  11. package/dist/{client-BErei7cE.d.ts → client-B2zi_BGq.d.ts} +11 -4
  12. package/dist/{client-DrB2vcTi.d.cts → client-DBZTvcCh.d.cts} +11 -4
  13. package/dist/comments.cjs +25 -1
  14. package/dist/comments.js +4 -2
  15. package/dist/html.cjs +129 -3
  16. package/dist/html.js +1 -1
  17. package/dist/index.cjs +22 -5
  18. package/dist/index.d.cts +4 -4
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +1 -1
  21. package/dist/next.cjs +674 -211
  22. package/dist/next.d.cts +44 -18
  23. package/dist/next.d.ts +44 -18
  24. package/dist/next.js +241 -135
  25. package/dist/react.cjs +401 -46
  26. package/dist/react.d.cts +114 -4
  27. package/dist/react.d.ts +114 -4
  28. package/dist/react.js +14 -4
  29. package/dist/reactions.cjs +25 -1
  30. package/dist/reactions.js +4 -2
  31. package/dist/{resolve-03IVloXU.d.cts → resolve-0nGnsIHo.d.cts} +1 -1
  32. package/dist/{resolve-BseM68oy.d.ts → resolve-CguSaZLa.d.ts} +1 -1
  33. package/dist/{revalidation-callback-BQl77tQR.d.cts → revalidation-callback-FT9ik1dh.d.cts} +11 -0
  34. package/dist/{revalidation-callback-BQl77tQR.d.ts → revalidation-callback-FT9ik1dh.d.ts} +11 -0
  35. package/dist/share-client.cjs +498 -0
  36. package/dist/share-client.d.cts +99 -0
  37. package/dist/share-client.d.ts +99 -0
  38. package/dist/share-client.js +390 -0
  39. package/dist/styles.css +176 -1
  40. package/dist/{types-Dx-fEiZd.d.cts → types-CdaIzSjg.d.cts} +10 -3
  41. package/dist/{types-Dx-fEiZd.d.ts → types-CdaIzSjg.d.ts} +10 -3
  42. package/dist/use-cache.cjs +10 -5
  43. package/dist/use-cache.d.cts +3 -3
  44. package/dist/use-cache.d.ts +3 -3
  45. package/dist/use-cache.js +2 -2
  46. package/package.json +1 -1
package/dist/react.cjs CHANGED
@@ -35,6 +35,10 @@ __export(react_exports, {
35
35
  MermaidDiagram: () => import_mermaid_diagram2.MermaidDiagram,
36
36
  NotFound: () => NotFound,
37
37
  Redirecting: () => Redirecting,
38
+ SIDE_COOKIE: () => SIDE_COOKIE,
39
+ ShareChrome: () => ShareChrome,
40
+ ShareGate: () => ShareGate,
41
+ THEME_COOKIE: () => THEME_COOKIE,
38
42
  TrustedServerHtml: () => TrustedServerHtml,
39
43
  Unavailable: () => Unavailable,
40
44
  VIEWER_LABELS_EN: () => VIEWER_LABELS_EN,
@@ -46,7 +50,8 @@ __export(react_exports, {
46
50
  sanitizeHast: () => sanitizeHast,
47
51
  scopeId: () => scopeId,
48
52
  stringsFor: () => stringsFor,
49
- stripMermaidConfig: () => stripMermaidConfig
53
+ stripMermaidConfig: () => stripMermaidConfig,
54
+ themeFromCookie: () => themeFromCookie
50
55
  });
51
56
  module.exports = __toCommonJS(react_exports);
52
57
 
@@ -135,7 +140,31 @@ var SHAPES = {
135
140
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "8", cy: "8", r: "6" }),
136
141
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3.8 12.2 8.4-8.4" })
137
142
  ] }),
138
- refresh: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 8a5 5 0 1 1-1.6-3.7M13 2.5v2.8h-2.8" })
143
+ refresh: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 8a5 5 0 1 1-1.6-3.7M13 2.5v2.8h-2.8" }),
144
+ lock: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
145
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "7", width: "10", height: "7", rx: "1.3" }),
146
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5.2 7V5a2.8 2.8 0 0 1 5.6 0v2" })
147
+ ] }),
148
+ search: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
149
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "7", cy: "7", r: "4.5" }),
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m10.5 10.5 3.5 3.5" })
151
+ ] }),
152
+ sun: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
153
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "8", cy: "8", r: "2.8" }),
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 1.5v1.8M8 12.7v1.8M1.5 8h1.8M12.7 8h1.8M3.4 3.4l1.3 1.3M11.3 11.3l1.3 1.3M3.4 12.6l1.3-1.3M11.3 4.7l1.3-1.3" })
155
+ ] }),
156
+ moon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 9.4A5.6 5.6 0 0 1 6.6 3a5.6 5.6 0 1 0 6.4 6.4z" }),
157
+ monitor: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
158
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "2", y: "3", width: "12", height: "8", rx: "1.3" }),
159
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 14h4M8 11v3" })
160
+ ] }),
161
+ sidebar: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "2", y: "3", width: "12", height: "10", rx: "1.3" }),
163
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6.5 3v10" })
164
+ ] }),
165
+ shield: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 1.5 2.5 3.6v4c0 3.2 2.3 5.4 5.5 6.9 3.2-1.5 5.5-3.7 5.5-6.9v-4z" }),
166
+ "arrow-left": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13 8H3M7 4 3 8l4 4" }),
167
+ menu: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M2.5 4.5h11M2.5 8h11M2.5 11.5h11" })
139
168
  };
140
169
  function Icon({ name, className }) {
141
170
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: className ? `hyle-ic ${className}` : "hyle-ic", viewBox: "0 0 16 16", "aria-hidden": "true", children: SHAPES[name] });
@@ -827,7 +856,49 @@ var en = {
827
856
  unTitle: "This page is temporarily unavailable",
828
857
  unBody: "The content could not be loaded. Please try again in a moment.",
829
858
  viewer: VIEWER_LABELS_EN,
830
- comments: COMMENT_LABELS_EN
859
+ comments: COMMENT_LABELS_EN,
860
+ share: {
861
+ protectedTag: "Protected",
862
+ lock: "Lock",
863
+ lockTitle: "Lock this share and return to the password page",
864
+ searchLabel: "Search this share",
865
+ searchHint: "Finds words in the titles and descriptions of its documents. Nothing outside the share is searched.",
866
+ searchNone: "No documents match",
867
+ searchScope: "Search covers the titles and descriptions of this share's documents.",
868
+ searchCount: "{n} results",
869
+ searchOne: "1 result",
870
+ open: "Open",
871
+ close: "Close",
872
+ documents: "Documents",
873
+ documentCount: "{n} documents",
874
+ documentPosition: "Document {i} of {n}",
875
+ privateCopy: "Private copy. Never listed or indexed.",
876
+ noExpiry: "No expiry",
877
+ expires: "Expires {when}",
878
+ expiresSoon: "Expires soon",
879
+ expired: "Expired",
880
+ endedNotice: "This share has ended. You can finish this page, but the next one will not open.",
881
+ soonNotice: "This share expires within 24 hours.",
882
+ gateTitle: "Password required",
883
+ gateBody: "Enter the password you were given to open this page.",
884
+ gateWrong: "Wrong or expired password.",
885
+ gatePassword: "Password",
886
+ gateOpen: "Open",
887
+ locked: "Locked",
888
+ attemptsTitle: "Too many attempts",
889
+ attemptsBody: "Try again in {n} seconds.",
890
+ attemptsOne: "Try again in {n} second.",
891
+ unavailableTitle: "This page is not available",
892
+ unavailableBody: "The address may be wrong, or the share may have ended. Ask the person who sent it.",
893
+ theme: "Theme",
894
+ themeLight: "Light",
895
+ themeDark: "Dark",
896
+ themeSystem: "System",
897
+ showDocuments: "Show documents",
898
+ hideDocuments: "Hide documents",
899
+ closeDocuments: "Close documents",
900
+ skip: "Skip to content"
901
+ }
831
902
  };
832
903
  var fr = {
833
904
  toc: "Sur cette page",
@@ -887,7 +958,49 @@ var fr = {
887
958
  unTitle: "Cette page est momentan\xE9ment indisponible",
888
959
  unBody: "Le contenu n'a pas pu \xEAtre charg\xE9. R\xE9essayez dans un instant.",
889
960
  viewer: VIEWER_LABELS_FR,
890
- comments: COMMENT_LABELS_FR
961
+ comments: COMMENT_LABELS_FR,
962
+ share: {
963
+ protectedTag: "Prot\xE9g\xE9",
964
+ lock: "Verrouiller",
965
+ lockTitle: "Verrouiller ce partage et revenir \xE0 la page du mot de passe",
966
+ searchLabel: "Rechercher dans ce partage",
967
+ searchHint: "Recherche des mots dans les titres et descriptions de ses documents. Rien hors du partage n'est recherch\xE9.",
968
+ searchNone: "Aucun document ne correspond",
969
+ searchScope: "La recherche porte sur les titres et descriptions des documents de ce partage.",
970
+ searchCount: "{n} r\xE9sultats",
971
+ searchOne: "1 r\xE9sultat",
972
+ open: "Ouvrir",
973
+ close: "Fermer",
974
+ documents: "Documents",
975
+ documentCount: "{n} documents",
976
+ documentPosition: "Document {i} sur {n}",
977
+ privateCopy: "Copie priv\xE9e. Jamais list\xE9e ni index\xE9e.",
978
+ noExpiry: "Sans expiration",
979
+ expires: "Expire le {when}",
980
+ expiresSoon: "Expire bient\xF4t",
981
+ expired: "Expir\xE9",
982
+ endedNotice: "Ce partage a pris fin. Vous pouvez terminer cette page, mais la suivante ne s'ouvrira pas.",
983
+ soonNotice: "Ce partage expire dans les 24 heures.",
984
+ gateTitle: "Mot de passe requis",
985
+ gateBody: "Saisissez le mot de passe qui vous a \xE9t\xE9 donn\xE9 pour ouvrir cette page.",
986
+ gateWrong: "Mot de passe incorrect ou expir\xE9.",
987
+ gatePassword: "Mot de passe",
988
+ gateOpen: "Ouvrir",
989
+ locked: "Verrouill\xE9",
990
+ attemptsTitle: "Trop de tentatives",
991
+ attemptsBody: "R\xE9essayez dans {n} secondes.",
992
+ attemptsOne: "R\xE9essayez dans {n} seconde.",
993
+ unavailableTitle: "Cette page n'est pas disponible",
994
+ unavailableBody: "L'adresse est peut-\xEAtre erron\xE9e, ou le partage a pris fin. Demandez \xE0 la personne qui vous l'a envoy\xE9.",
995
+ theme: "Th\xE8me",
996
+ themeLight: "Clair",
997
+ themeDark: "Sombre",
998
+ themeSystem: "Syst\xE8me",
999
+ showDocuments: "Afficher les documents",
1000
+ hideDocuments: "Masquer les documents",
1001
+ closeDocuments: "Fermer les documents",
1002
+ skip: "Aller au contenu"
1003
+ }
891
1004
  };
892
1005
  var es = {
893
1006
  toc: "En esta p\xE1gina",
@@ -947,7 +1060,49 @@ var es = {
947
1060
  unTitle: "Esta p\xE1gina no est\xE1 disponible por el momento",
948
1061
  unBody: "No se pudo cargar el contenido. Int\xE9ntalo de nuevo en un momento.",
949
1062
  viewer: VIEWER_LABELS_ES,
950
- comments: COMMENT_LABELS_ES
1063
+ comments: COMMENT_LABELS_ES,
1064
+ share: {
1065
+ protectedTag: "Protegido",
1066
+ lock: "Bloquear",
1067
+ lockTitle: "Bloquear este enlace compartido y volver a la p\xE1gina de contrase\xF1a",
1068
+ searchLabel: "Buscar en este enlace compartido",
1069
+ searchHint: "Busca palabras en los t\xEDtulos y descripciones de sus documentos. No se busca nada fuera del enlace compartido.",
1070
+ searchNone: "Ning\xFAn documento coincide",
1071
+ searchScope: "La b\xFAsqueda abarca los t\xEDtulos y descripciones de los documentos de este enlace compartido.",
1072
+ searchCount: "{n} resultados",
1073
+ searchOne: "1 resultado",
1074
+ open: "Abrir",
1075
+ close: "Cerrar",
1076
+ documents: "Documentos",
1077
+ documentCount: "{n} documentos",
1078
+ documentPosition: "Documento {i} de {n}",
1079
+ privateCopy: "Copia privada. Nunca se lista ni se indexa.",
1080
+ noExpiry: "Sin caducidad",
1081
+ expires: "Caduca el {when}",
1082
+ expiresSoon: "Caduca pronto",
1083
+ expired: "Caducado",
1084
+ endedNotice: "Este enlace compartido ha terminado. Puedes terminar esta p\xE1gina, pero la siguiente no se abrir\xE1.",
1085
+ soonNotice: "Este enlace compartido caduca en menos de 24 horas.",
1086
+ gateTitle: "Se requiere contrase\xF1a",
1087
+ gateBody: "Escribe la contrase\xF1a que te han dado para abrir esta p\xE1gina.",
1088
+ gateWrong: "Contrase\xF1a incorrecta o caducada.",
1089
+ gatePassword: "Contrase\xF1a",
1090
+ gateOpen: "Abrir",
1091
+ locked: "Bloqueado",
1092
+ attemptsTitle: "Demasiados intentos",
1093
+ attemptsBody: "Vuelve a intentarlo en {n} segundos.",
1094
+ attemptsOne: "Vuelve a intentarlo en {n} segundo.",
1095
+ unavailableTitle: "Esta p\xE1gina no est\xE1 disponible",
1096
+ unavailableBody: "La direcci\xF3n puede estar mal, o el enlace compartido ha terminado. Pregunta a quien te lo envi\xF3.",
1097
+ theme: "Tema",
1098
+ themeLight: "Claro",
1099
+ themeDark: "Oscuro",
1100
+ themeSystem: "Sistema",
1101
+ showDocuments: "Mostrar los documentos",
1102
+ hideDocuments: "Ocultar los documentos",
1103
+ closeDocuments: "Cerrar los documentos",
1104
+ skip: "Ir al contenido"
1105
+ }
951
1106
  };
952
1107
  var TABLE = { en, fr, es };
953
1108
  function stringsFor(locale) {
@@ -1621,7 +1776,30 @@ var import_reactions = require("./reactions.cjs");
1621
1776
 
1622
1777
  // src/react/docs.tsx
1623
1778
  var import_docs_enhance = require("./docs-enhance.cjs");
1779
+
1780
+ // src/react/docs-main.tsx
1624
1781
  var import_jsx_runtime8 = require("react/jsx-runtime");
1782
+ function DocsMain({ article, c, components, narrowToc, prev, next, eyebrow }) {
1783
+ const { publication: pub } = article;
1784
+ const { s } = c;
1785
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1786
+ eyebrow,
1787
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h1", { className: "hyle-title", children: pub.title }),
1788
+ pub.description ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1789
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "hyle-updated", children: [
1790
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "calendar" }),
1791
+ s.updated,
1792
+ " ",
1793
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1794
+ ] }),
1795
+ narrowToc,
1796
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Body, { article, components, locale: c.locale }),
1797
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Pager, { prev, next, c })
1798
+ ] });
1799
+ }
1800
+
1801
+ // src/react/docs.tsx
1802
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1625
1803
  var ROOT_ID = "hyle-docs";
1626
1804
  var NAV_ID = "hyle-docs-nav";
1627
1805
  function navTreeOf(article) {
@@ -1645,15 +1823,15 @@ function pathTo(nodes, path) {
1645
1823
  }
1646
1824
  function Branch({ nodes, current, onPath, c }) {
1647
1825
  const { Link } = c;
1648
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ul", { children: nodes.map((node) => {
1649
- const link = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1650
- if (node.children.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: link }, node.canonical_path);
1651
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1652
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("summary", { children: [
1653
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chev" }),
1826
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ul", { children: nodes.map((node) => {
1827
+ const link = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1828
+ if (node.children.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: link }, node.canonical_path);
1829
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1830
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("summary", { children: [
1831
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chev" }),
1654
1832
  link
1655
1833
  ] }),
1656
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Branch, { nodes: node.children, current, onPath, c })
1834
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Branch, { nodes: node.children, current, onPath, c })
1657
1835
  ] }) }, node.canonical_path);
1658
1836
  }) });
1659
1837
  }
@@ -1667,51 +1845,223 @@ function DocsPage({ article, ...base }) {
1667
1845
  const siteName = article.breadcrumbs[0]?.title ?? "";
1668
1846
  const headingIds = article.toc.filter((t) => t.depth === 2 || t.depth === 3).map((t) => scopeId(t.id));
1669
1847
  const notTranslated = article.fallback ? s.fallbackTitle.replace("{language}", languageName(article.fallback.requested_locale, c.locale)) : void 0;
1670
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Shell, { theme: article.theme, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1671
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_docs_enhance.DocsEnhance, { headingIds, rootId: ROOT_ID }),
1672
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1673
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "file" }),
1848
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Shell, { theme: article.theme, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1849
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_docs_enhance.DocsEnhance, { headingIds, rootId: ROOT_ID }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1851
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "file" }),
1674
1852
  s.menu,
1675
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cur", children: pub.title }),
1676
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1853
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cur", children: pub.title }),
1854
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1677
1855
  ] }),
1678
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1679
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-side-head", children: [
1680
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: siteName }),
1681
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1682
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "x" }) })
1856
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1857
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "hyle-side-head", children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: siteName }),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1860
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "x" }) })
1683
1861
  ] }),
1684
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1685
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1686
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1862
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1863
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1864
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1687
1865
  ] }),
1688
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1689
- notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1690
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "alert" }),
1691
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
1692
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: notTranslated }),
1866
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1867
+ notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1868
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "alert" }),
1869
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
1870
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: notTranslated }),
1693
1871
  " ",
1694
1872
  s.fallbackBody
1695
1873
  ] })
1696
1874
  ] }) : null,
1697
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1698
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h1", { className: "hyle-title", children: pub.title }),
1699
- pub.description ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1700
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "hyle-updated", children: [
1701
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "calendar" }),
1702
- s.updated,
1703
- " ",
1704
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1705
- ] }),
1706
- toc.narrow,
1707
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Body, { article, components: base.components, locale: c.locale }),
1708
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Pager, { prev: article.prev, next: article.next, c }),
1709
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1710
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1875
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DocsMain, { article, c, components: base.components, narrowToc: toc.narrow, prev: article.prev, next: article.next }),
1877
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1878
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1711
1879
  ] }),
1712
1880
  toc.wide
1713
1881
  ] }) });
1714
1882
  }
1883
+
1884
+ // src/react/share/chrome.tsx
1885
+ var import_share_client = require("./share-client.cjs");
1886
+
1887
+ // src/react/share/model.ts
1888
+ var THEME_COOKIE = "hyle_theme";
1889
+ var SIDE_COOKIE = "hyle_share_side";
1890
+ var SOON_MS = 24 * 60 * 60 * 1e3;
1891
+ function expiryState(expiresAt, now) {
1892
+ if (expiresAt === null) return "none";
1893
+ const end = Date.parse(expiresAt);
1894
+ if (Number.isNaN(end) || now >= end) return "expired";
1895
+ return end - now <= SOON_MS ? "soon" : "ok";
1896
+ }
1897
+ function shareDate(iso, locale) {
1898
+ const date = new Date(iso);
1899
+ const text = new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short", timeZone: "UTC" }).format(date);
1900
+ return `${text} UTC`;
1901
+ }
1902
+ function themeFromCookie(value) {
1903
+ return value === "light" || value === "dark" ? value : "system";
1904
+ }
1905
+ function actFor(choice) {
1906
+ return choice === "system" ? void 0 : choice;
1907
+ }
1908
+
1909
+ // src/react/share/brand.tsx
1910
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1911
+ function brandFor(host, fill) {
1912
+ if (fill) return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "hyle-brand", "data-slot": "chrome.brand", children: fill });
1913
+ if (!host) return null;
1914
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("a", { className: "hyle-brand", href: host.href ?? "/", children: [
1915
+ host.logo,
1916
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "nm", children: host.name })
1917
+ ] });
1918
+ }
1919
+
1920
+ // src/react/share/chrome.tsx
1921
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1922
+ function ShareChrome(props) {
1923
+ const { name, expiresAt, documents, article, docSlug, host, theme = "system", sidebarOpen = true, htmlTheme = false, hrefFor, lockAction, slug, now = Date.now(), ...base } = props;
1924
+ const { publication: pub } = article;
1925
+ const c = ctx(base, pub.locale);
1926
+ const s = c.s.share;
1927
+ const list = [...documents].sort((a, b) => a.position - b.position || (a.doc_slug < b.doc_slug ? -1 : 1));
1928
+ const index = list.findIndex((d) => d.doc_slug === docSlug);
1929
+ const single = list.length <= 1;
1930
+ const initial = expiryState(expiresAt, now);
1931
+ const labels = {
1932
+ protectedTag: s.protectedTag,
1933
+ noExpiry: s.noExpiry,
1934
+ expires: s.expires,
1935
+ expiresSoon: s.expiresSoon,
1936
+ expired: s.expired,
1937
+ soonNotice: s.soonNotice,
1938
+ endedNotice: s.endedNotice
1939
+ };
1940
+ const navItem = (d) => ({ slug: d.doc_slug, title: d.title, description: d.description ?? null, canonical_path: hrefFor(d.doc_slug) });
1941
+ const prev = index > 0 ? navItem(list[index - 1]) : null;
1942
+ const next = index >= 0 && index < list.length - 1 ? navItem(list[index + 1]) : null;
1943
+ const searchDocs = list.map((d) => ({ slug: d.doc_slug, title: d.title, description: d.description ?? null, href: hrefFor(d.doc_slug) }));
1944
+ const when = expiresAt === null ? s.noExpiry : s.expires.replace("{when}", shareDate(expiresAt, c.locale));
1945
+ const toc = Toc({ toc: article.toc, c });
1946
+ const side = single ? "none" : sidebarOpen ? "open" : "closed";
1947
+ const eyebrow = single || index < 0 ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "hyle-eyebrow", children: s.documentPosition.replace("{i}", String(index + 1)).replace("{n}", String(list.length)) });
1948
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1949
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(HyleTheme, { theme: article.theme }),
1950
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_share_client.ShareFrame, { sidebarOpen, single, act: actFor(theme), lang: c.locale, children: [
1951
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("a", { className: "hyle-skip", href: "#hyle-main", children: s.skip }),
1952
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("header", { className: "hyle-bar", children: [
1953
+ single ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareMenuButton, { label: s.showDocuments }),
1954
+ single ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareFoldButton, { show: s.showDocuments, hide: s.hideDocuments }),
1955
+ brandFor(host, base.slots?.["chrome.brand"]),
1956
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "hyle-bar-title", children: [
1957
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "share", children: name }),
1958
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sep", "aria-hidden": "true", children: "/" }),
1959
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "doc", children: pub.title })
1960
+ ] }),
1961
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sp" }),
1962
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareSearch, { docs: searchDocs, labels: { label: s.searchLabel, hint: s.searchHint, none: s.searchNone, scope: s.searchScope, count: s.searchCount, one: s.searchOne, close: s.close } }),
1963
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareThemeMenu, { choice: theme, htmlTheme, labels: { label: s.theme, light: s.themeLight, dark: s.themeDark, system: s.themeSystem } }),
1964
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareExpiryChip, { expiresAt, initial, locale: c.locale, labels }),
1965
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("form", { className: "hyle-lock-form", method: "post", action: lockAction, children: [
1966
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "hidden", name: "slug", value: slug }),
1967
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", { type: "hidden", name: "lock", value: "1" }),
1968
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("button", { className: "hyle-lock", type: "submit", "aria-label": s.lock, title: s.lockTitle, children: [
1969
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "lock" }),
1970
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: s.lock })
1971
+ ] })
1972
+ ] })
1973
+ ] }),
1974
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareExpiryNotice, { expiresAt, initial, labels }),
1975
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "hyle-statusrow", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareExpiryChip, { expiresAt, initial, locale: c.locale, labels }) }),
1976
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "hyle-share-body", "data-side": side, children: [
1977
+ single ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("aside", { className: "hyle-side", id: "hyle-side", popover: "auto", "aria-label": s.documents, children: [
1978
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "hyle-side-head", children: [
1979
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
1980
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "nm", children: name }),
1981
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "n", children: s.documentCount.replace("{n}", String(list.length)) })
1982
+ ] }),
1983
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_share_client.ShareDrawerClose, { label: s.closeDocuments })
1984
+ ] }),
1985
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("nav", { className: "hyle-side-list", "aria-label": s.documents, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ol", { children: list.map((d) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(c.Link, { href: hrefFor(d.doc_slug), title: d.title, ...d.doc_slug === docSlug ? { "aria-current": "page" } : {}, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: d.title }) }) }, d.doc_slug)) }) }),
1986
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "hyle-side-foot", children: [
1987
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("p", { children: [
1988
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "clock" }),
1989
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: when })
1990
+ ] }),
1991
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("p", { children: [
1992
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "lock" }),
1993
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: s.privateCopy })
1994
+ ] }),
1995
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Slot, { name: "chrome.sidebar-footer", slots: base.slots })
1996
+ ] })
1997
+ ] }) }),
1998
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("main", { className: "hyle-share-main", id: "hyle-main", tabIndex: -1, children: [
1999
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("article", { className: "hyle-doc", "data-hyle-page": "docs", lang: pub.locale, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DocsMain, { article, c, components: base.components, narrowToc: toc.narrow, prev, next, eyebrow }) }),
2000
+ toc.wide
2001
+ ] })
2002
+ ] })
2003
+ ] })
2004
+ ] });
2005
+ }
2006
+
2007
+ // src/react/share/gate.tsx
2008
+ var import_share_client2 = require("./share-client.cjs");
2009
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2010
+ var PASSWORD_FIELD = "hyle-share-password";
2011
+ var ERROR_ID = "hyle-share-error";
2012
+ function ShareGate({ state, slug, unlockAction, docSlug, retryAfterSeconds = 0, host, theme = "system", htmlTheme = false, ...base }) {
2013
+ const c = ctx(base, "en");
2014
+ const s = c.s.share;
2015
+ const act = actFor(theme);
2016
+ const wrong = state === "wrong";
2017
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "hyle hyle-share", lang: c.locale, "data-hyle-chrome": "gate", ...act ? { "data-act": act } : {}, children: [
2018
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("a", { className: "hyle-skip", href: "#hyle-main", children: s.skip }),
2019
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("header", { className: "hyle-bar", children: [
2020
+ brandFor(host, base.slots?.["chrome.brand"]),
2021
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sp" }),
2022
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_share_client2.ShareThemeMenu, { choice: theme, htmlTheme, labels: { label: s.theme, light: s.themeLight, dark: s.themeDark, system: s.themeSystem } })
2023
+ ] }),
2024
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("main", { className: "hyle-gate", id: "hyle-main", tabIndex: -1, children: state === "attempts" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { className: "hyle-card", "data-kind": "warn", children: [
2025
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "glyph", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "clock" }) }),
2026
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", { children: s.attemptsTitle }),
2027
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { role: "alert", children: (retryAfterSeconds === 1 ? s.attemptsOne : s.attemptsBody).replace("{n}", String(retryAfterSeconds)) })
2028
+ ] }) : state === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { className: "hyle-card", children: [
2029
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "glyph", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "x-circle" }) }),
2030
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", { children: s.unavailableTitle }),
2031
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: s.unavailableBody })
2032
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { className: "hyle-card", children: [
2033
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "glyph", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "lock" }) }),
2034
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", { children: s.gateTitle }),
2035
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: s.gateBody }),
2036
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("form", { method: "post", action: unlockAction, autoComplete: "off", children: [
2037
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("input", { type: "hidden", name: "slug", value: slug }),
2038
+ docSlug !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("input", { type: "hidden", name: "docSlug", value: docSlug }),
2039
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: PASSWORD_FIELD, children: s.gatePassword }),
2040
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2041
+ "input",
2042
+ {
2043
+ id: PASSWORD_FIELD,
2044
+ name: "password",
2045
+ type: "password",
2046
+ autoComplete: "off",
2047
+ spellCheck: false,
2048
+ required: true,
2049
+ minLength: 12,
2050
+ maxLength: 128,
2051
+ "aria-invalid": wrong || void 0,
2052
+ "aria-describedby": wrong ? ERROR_ID : void 0
2053
+ }
2054
+ ),
2055
+ wrong ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "err", id: ERROR_ID, role: "alert", children: s.gateWrong }) : null,
2056
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { className: "hyle-btn primary", type: "submit", children: s.gateOpen })
2057
+ ] })
2058
+ ] }) }),
2059
+ state === "locked" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "hyle-toast", role: "status", children: [
2060
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "check-circle" }),
2061
+ s.locked
2062
+ ] }) : null
2063
+ ] });
2064
+ }
1715
2065
  // Annotate the CommonJS export names for ESM import in node:
1716
2066
  0 && (module.exports = {
1717
2067
  ArticlePage,
@@ -1729,6 +2079,10 @@ function DocsPage({ article, ...base }) {
1729
2079
  MermaidDiagram,
1730
2080
  NotFound,
1731
2081
  Redirecting,
2082
+ SIDE_COOKIE,
2083
+ ShareChrome,
2084
+ ShareGate,
2085
+ THEME_COOKIE,
1732
2086
  TrustedServerHtml,
1733
2087
  Unavailable,
1734
2088
  VIEWER_LABELS_EN,
@@ -1740,5 +2094,6 @@ function DocsPage({ article, ...base }) {
1740
2094
  sanitizeHast,
1741
2095
  scopeId,
1742
2096
  stringsFor,
1743
- stripMermaidConfig
2097
+ stripMermaidConfig,
2098
+ themeFromCookie
1744
2099
  });