import { CUSTOM_ELEMENTS_SCHEMA, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';

import { ComponentType, RuntimeBaseModule } from '@wm/runtime/base';

import { ComponentRefProviderService } from '../framework/services/component-ref-provider.service';

{{PrefabComponentsImportStmts prefabConfigMap}}

import initPrefabConfig from './prefabs/prefab-config';

const components = [
    {{ComponentDeclarations wmProjectProperties pagesConfig prefabConfigMap}}
];

export const xsrfHeaderName = '{{xsrfTokenHeaderName}}';

@NgModule({
    declarations: components,
    imports: [
        RuntimeBaseModule
    ],
    exports: [components, RuntimeBaseModule],
    entryComponents: components,
    schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
})
export class AppPrefabsModule {

}

{{RegisterComponents wmProjectProperties pagesConfig prefabConfigMap}}

initPrefabConfig();
