{"version":3,"file":"smartsoft001-mobilems-angular-bootstrap-server.mjs","names":[],"sources":["../../../../../packages/shared/angular/bootstrap/server/src/lib/bootstrap-server-application.ts"],"sourcesContent":["import { ApplicationConfig, ApplicationRef, Type } from '@angular/core';\nimport {\n  BootstrapContext,\n  bootstrapApplication,\n} from '@angular/platform-browser';\n\n/** Shape of the default export Angular SSR expects from `main.server.ts`. */\nexport type ServerBootstrap = (\n  context: BootstrapContext,\n) => Promise<ApplicationRef>;\n\n/**\n * Builds the `main.server.ts` default export for Angular SSR.\n *\n * Kept in its own entry point (no `masonry-layout` import) so the server bundle\n * stays free of browser-only code. Anything that must run before the app\n * modules are evaluated (e.g. environment initialisation from `process.env`)\n * still has to be imported first in `main.server.ts`.\n */\nexport function bootstrapServerApplication(\n  rootComponent: Type<unknown>,\n  options: ApplicationConfig,\n): ServerBootstrap {\n  return (context) => bootstrapApplication(rootComponent, options, context);\n}\n"],"mappings":";AAmBA,SAAgB,2BACd,eACA,SAA0B;CAE1B,QAAQ,YAAY,qBAAqB,eAAe,SAAS,OAAO;AAC1E"}