{"version":3,"file":"nonRouteComponentContext.cjs","names":["Solid","NonRouteComponent","nonRouteComponentContext","process","env","NODE_ENV","createContext","undefined","renderInNonRouteComponentContext","render","JSX","Element","component","Context","_$createComponent","Provider","value","children"],"sources":["../../src/nonRouteComponentContext.tsx"],"sourcesContent":["import * as Solid from 'solid-js'\n\nexport type NonRouteComponent =\n  | 'pendingComponent'\n  | 'errorComponent'\n  | 'notFoundComponent'\n\nexport const nonRouteComponentContext =\n  process.env.NODE_ENV !== 'production'\n    ? /* @__PURE__ */ Solid.createContext<NonRouteComponent>()\n    : undefined\n\nexport function renderInNonRouteComponentContext(\n  render: () => Solid.JSX.Element,\n  component: NonRouteComponent,\n) {\n  const Context = nonRouteComponentContext!\n  return <Context.Provider value={component}>{render()}</Context.Provider>\n}\n"],"mappings":";;;;;AAOA,IAAaE,2BAAAA,QAAAA,IAAAA,aACc,eACLF,yBAAMM,cAAiC,IACvDC,KAAAA;AAEN,SAAgBC,iCACdC,QACAG,WACA;CAEA,QAAA,GAAA,aAAA,iBAAQC,yBAAQE,UAAQ;EAACC,OAAOJ;EAAS,IAAAK,WAAA;GAAA,OAAGR,OAAO;EAAC;CAAA,CAAA;AACtD"}