{"version":3,"file":"ScriptOnce.cjs","names":["<script\n      nonce={router.options.ssr?.nonce}\n      class=\"$tsr\"\n      innerHTML={children + ';document.currentScript.remove()'}\n    />"],"sources":["../../src/ScriptOnce.tsx"],"sourcesContent":["import { isServer } from '@tanstack/router-core/isServer'\nimport { useRouter } from './useRouter'\n\nexport function ScriptOnce({\n  children,\n}: {\n  children: string\n  log?: boolean\n  sync?: boolean\n}) {\n  const router = useRouter()\n  if (!(isServer ?? router.isServer)) {\n    return null\n  }\n  return (\n    <script\n      nonce={router.options.ssr?.nonce}\n      class=\"$tsr\"\n      innerHTML={children + ';document.currentScript.remove()'}\n    />\n  )\n}\n"],"mappings":";;;;;AAGA,SAAgB,WAAW,EACzB,YAKC;CACD,MAAM,SAAS,kBAAA,UAAU;CACzB,IAAI,EAAE,+BAAA,YAAY,OAAO,WACvB,OAAO;CAGP,IAAA,OAAA,OAIC;CADC,KAAA,YAAW,WAAW;CAFtB,CAAA,GAAA,aAAA,cAAO,OAAO,QAAQ,KAAK,QAA3B,QAAA;mDAAgC;;CAFpC,OACEA;AAMJ"}