import { t as trpc } from './trpc-client-Bucti7HD.js';
import '@trpc/client';

const load = async ({ params, url }) => {
  const { agent, type, id } = params;
  const ts = url.searchParams.get("ts") || void 0;
  const runParam = Number(url.searchParams.get("run")) || void 0;
  const content = trpc.tests.resultEntry.query({
    agent,
    testId: id,
    resultKey: type,
    timestamp: ts,
    index: runParam
  });
  return {
    title: type?.replace(/-/g, " ") ?? "Details",
    id,
    content
  };
};

var _page_ts = /*#__PURE__*/Object.freeze({
  __proto__: null,
  load: load
});

const index = 7;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-VvyCh50W.js')).default;
const universal_id = "src/routes/tests/[agent]/view/[type]/[id]/+page.ts";
const imports = ["_app/immutable/nodes/7.Bw71Qfm6.js","_app/immutable/chunks/BEJ5fU19.js","_app/immutable/chunks/CWj6FrbW.js","_app/immutable/chunks/DOPisAOl.js","_app/immutable/chunks/Xc3_nZLd.js","_app/immutable/chunks/CGcWBEH0.js","_app/immutable/chunks/eylS3834.js","_app/immutable/chunks/D-PR_7HR.js"];
const stylesheets = [];
const fonts = [];

export { component, fonts, imports, index, stylesheets, _page_ts as universal, universal_id };
//# sourceMappingURL=7-G_SP_QOW.js.map
