{"version":3,"file":"ngbracket-ngx-layout.mjs","sources":["../../../../projects/libs/flex-layout/provider.ts","../../../../projects/libs/flex-layout/module.ts","../../../../projects/libs/flex-layout/version.ts","../../../../projects/libs/flex-layout/public-api.ts","../../../../projects/libs/flex-layout/ngbracket-ngx-layout.ts"],"sourcesContent":["import { Provider } from '@angular/core';\nimport {\n  BreakPoint,\n  BREAKPOINT,\n  DEFAULT_CONFIG,\n  LAYOUT_CONFIG,\n  LayoutConfigOptions,\n  SERVER_TOKEN,\n} from '@ngbracket/ngx-layout/core';\n\nexport function provideFlexLayout(\n  configOptions: LayoutConfigOptions,\n  breakpoints: BreakPoint | BreakPoint[] = [],\n): Provider[] {\n  const providers: Provider[] = [\n    {\n      provide: LAYOUT_CONFIG,\n      useValue: { ...DEFAULT_CONFIG, ...configOptions },\n    },\n    { provide: BREAKPOINT, useValue: breakpoints, multi: true },\n  ];\n\n  if (configOptions.serverLoaded) {\n    providers.push({ provide: SERVER_TOKEN, useValue: true });\n  }\n\n  return providers;\n}\n","import { isPlatformServer } from '@angular/common';\nimport {\n  Inject,\n  ModuleWithProviders,\n  NgModule,\n  PLATFORM_ID,\n} from '@angular/core';\n\nimport {\n  BreakPoint,\n  LayoutConfigOptions,\n  SERVER_TOKEN,\n} from '@ngbracket/ngx-layout/core';\nimport { ExtendedModule } from '@ngbracket/ngx-layout/extended';\nimport { FlexModule } from '@ngbracket/ngx-layout/flex';\nimport { GridModule } from '@ngbracket/ngx-layout/grid';\nimport { provideFlexLayout } from './provider';\n\n/**\n * FlexLayoutModule -- the main import for all utilities in the Angular Layout library\n * * Will automatically provide Flex, Grid, and Extended modules for use in the application\n * * Can be configured using the static withConfig method, options viewable on the Wiki's\n *   Configuration page\n */\n@NgModule({\n  imports: [FlexModule, ExtendedModule, GridModule],\n  exports: [FlexModule, ExtendedModule, GridModule],\n})\nexport class FlexLayoutModule {\n  /**\n   * Initialize the FlexLayoutModule with a set of config options,\n   * which sets the corresponding tokens accordingly\n   */\n  static withConfig(\n    configOptions: LayoutConfigOptions,\n    breakpoints: BreakPoint | BreakPoint[] = [],\n  ): ModuleWithProviders<FlexLayoutModule> {\n    return {\n      ngModule: FlexLayoutModule,\n      providers: provideFlexLayout(configOptions, breakpoints),\n    };\n  }\n\n  constructor(\n    @Inject(SERVER_TOKEN) serverModuleLoaded: boolean,\n    @Inject(PLATFORM_ID) platformId: object,\n  ) {\n    if (isPlatformServer(platformId) && !serverModuleLoaded) {\n      console.warn(\n        'Warning: Flex Layout loaded on the server without FlexLayoutServerModule',\n      );\n    }\n  }\n}\n","import { Version } from '@angular/core';\n\n/** Current version of Angular Flex-Layout. */\nexport const VERSION = new Version('21.0.0');\n","/**\n * @module\n * @description\n * Entry point for all public APIs of Angular Flex-Layout.\n */\nexport * from '@ngbracket/ngx-layout/core';\nexport * from '@ngbracket/ngx-layout/extended';\nexport * from '@ngbracket/ngx-layout/flex';\nexport * from '@ngbracket/ngx-layout/grid';\n// Flex-Layout Module\nexport * from './module';\nexport * from './version';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;SAUgB,iBAAiB,CAC/B,aAAkC,EAClC,cAAyC,EAAE,EAAA;AAE3C,IAAA,MAAM,SAAS,GAAe;AAC5B,QAAA;AACE,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,QAAQ,EAAE,EAAE,GAAG,cAAc,EAAE,GAAG,aAAa,EAAE;AAClD,SAAA;QACD,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;KAC5D;AAED,IAAA,IAAI,aAAa,CAAC,YAAY,EAAE;AAC9B,QAAA,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D;AAEA,IAAA,OAAO,SAAS;AAClB;;ACTA;;;;;AAKG;MAKU,gBAAgB,CAAA;AAC3B;;;AAGG;AACH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