internal.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. import { r as root } from "./root.js";
  2. import "./environment.js";
  3. let public_env = {};
  4. function set_private_env(environment) {
  5. }
  6. function set_public_env(environment) {
  7. public_env = environment;
  8. }
  9. let read_implementation = null;
  10. function set_read_implementation(fn) {
  11. read_implementation = fn;
  12. }
  13. function set_manifest(_) {
  14. }
  15. const options = {
  16. app_template_contains_nonce: false,
  17. async: false,
  18. csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
  19. csrf_check_origin: true,
  20. csrf_trusted_origins: [],
  21. embedded: false,
  22. env_public_prefix: "PUBLIC_",
  23. env_private_prefix: "",
  24. hash_routing: false,
  25. hooks: null,
  26. // added lazily, via `get_hooks`
  27. preload_strategy: "modulepreload",
  28. root,
  29. service_worker: false,
  30. service_worker_options: void 0,
  31. server_error_boundaries: false,
  32. templates: {
  33. app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="es">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" type="image/svg+xml" href="' + assets + '/favicon.svg" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n <meta name="description" content="Empresa especializada en servicio técnico y mantenimiento de montacargas y apiladores eléctricos de diversas marcas industriales. Con 8 años de experiencia, ofrece soluciones técnicas confiables para el sector industrial y de bodegas en Costa Rica." />\n <meta property="og:title" content="Seidoor" />\n <meta property="og:description" content="Empresa especializada en servicio técnico y mantenimiento de montacargas y apiladores eléctricos de diversas marcas industriales. Con 8 años de experiencia, ofrece soluciones técnicas confiables para el sector industrial y de bodegas en Costa Rica." />\n <meta property="og:type" content="website" />\n <meta name="twitter:card" content="summary_large_image" />\n <meta name="twitter:title" content="Seidoor" />\n <meta name="twitter:description" content="Empresa especializada en servicio técnico y mantenimiento de montacargas y apiladores eléctricos de diversas marcas industriales. Con 8 años de experiencia, ofrece soluciones técnicas confiables para el sector industrial y de bodegas en Costa Rica." />\n <title>Seidoor</title>\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
  34. error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
  35. <style>
  36. body {
  37. --bg: white;
  38. --fg: #222;
  39. --divider: #ccc;
  40. background: var(--bg);
  41. color: var(--fg);
  42. font-family:
  43. system-ui,
  44. -apple-system,
  45. BlinkMacSystemFont,
  46. 'Segoe UI',
  47. Roboto,
  48. Oxygen,
  49. Ubuntu,
  50. Cantarell,
  51. 'Open Sans',
  52. 'Helvetica Neue',
  53. sans-serif;
  54. display: flex;
  55. align-items: center;
  56. justify-content: center;
  57. height: 100vh;
  58. margin: 0;
  59. }
  60. .error {
  61. display: flex;
  62. align-items: center;
  63. max-width: 32rem;
  64. margin: 0 1rem;
  65. }
  66. .status {
  67. font-weight: 200;
  68. font-size: 3rem;
  69. line-height: 1;
  70. position: relative;
  71. top: -0.05rem;
  72. }
  73. .message {
  74. border-left: 1px solid var(--divider);
  75. padding: 0 0 0 1rem;
  76. margin: 0 0 0 1rem;
  77. min-height: 2.5rem;
  78. display: flex;
  79. align-items: center;
  80. }
  81. .message h1 {
  82. font-weight: 400;
  83. font-size: 1em;
  84. margin: 0;
  85. }
  86. @media (prefers-color-scheme: dark) {
  87. body {
  88. --bg: #222;
  89. --fg: #ddd;
  90. --divider: #666;
  91. }
  92. }
  93. </style>
  94. </head>
  95. <body>
  96. <div class="error">
  97. <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
  98. },
  99. version_hash: "tdx9xw"
  100. };
  101. async function get_hooks() {
  102. let handle;
  103. let handleFetch;
  104. let handleError;
  105. let handleValidationError;
  106. let init;
  107. let reroute;
  108. let transport;
  109. return {
  110. handle,
  111. handleFetch,
  112. handleError,
  113. handleValidationError,
  114. init,
  115. reroute,
  116. transport
  117. };
  118. }
  119. export {
  120. set_public_env as a,
  121. set_read_implementation as b,
  122. set_manifest as c,
  123. get_hooks as g,
  124. options as o,
  125. public_env as p,
  126. read_implementation as r,
  127. set_private_env as s
  128. };