/**
 * Created through mkmodule
 */

import { NgModule } from '@angular/core'
import { MatIconModule } from '@angular/material/icon'

import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog'
import { LayoutModule } from '@angular/cdk/layout'

// ---- Router
import { ConfiguratorRouting }        from './rte.configurator'


// ---- Shared Modules
import { SharedModule }                 from '@k-core/modules/shared/mod.shared'
import { CookieService }                from 'ng2-cookies'


// ---- Components
import { ParentSelectorComponent }      from '@k-core/modules/configurator/components/parent-selector/cmp.parent-selector'
import { ChildSelectorComponent }       from '@k-core/modules/configurator/components/child-selector/cmp.child-selector'
import { MeasurementsComponent }        from '@k-core/modules/configurator/components/measurements/cmp.measurements'
import { MountheightComponent }         from '@k-core/modules/configurator/components/mount-height/cmp.mount-height'
import { DetailsComponent }             from '@k-core/modules/configurator/components/details/cmp.details'
import { MarkingComponent }             from '@k-core/modules/configurator/components/marking/cmp.marking'
import { ConfiguratorBannerComponent }  from '@k-core/modules/configurator/components/banner/cmp.banner'
import { ConfiguratorModalComponent }   from '@k-core/modules/configurator/components/modal/cmp.modal'
import { StepNavigationComponent }      from '@k-core/modules/configurator/components/step-navigation/cmp.step-navigation'
import { PlatoConfiguratorModule }      from '@k-core/modules/plato-configurator/mod.plato-configurator'

// Site
import { Gardinbuscom_ColorSelectorComponent }       from '@k-sites/gardinbuscom/modules/configurator/components/color-selector/cmp.color-selector'
import { Gardinbuscom_PriceComponent }               from '@k-sites/nyegardinerdk/modules/configurator/components/price/cmp.price'


// ---- Views
import { Gardinbuscom_ConfiguratorPartial }          from '@k-sites/nyegardinerdk/modules/configurator/partial/cmp.configurator-partial'


// ---- Services
import { ConfiguratorService }                  from '@k-core/modules/configurator/services/svc.configurator'
import { ConfiguratorProductLoaderService }     from '@k-core/modules/configurator/services/svc.configurator-product-reloader'
import { StepNavigationService }                from '@k-core/modules/configurator/services/svc.step-navigation'


@NgModule({
    imports: [ 
        SharedModule,
        MatIconModule,
        MatDialogModule,
        LayoutModule,
        PlatoConfiguratorModule,
        ConfiguratorRouting,
    ],
    exports: [
        // *Add your exports here*
    ],
    declarations: [
        // Components
        ParentSelectorComponent,
        ChildSelectorComponent,
        MeasurementsComponent,
        MountheightComponent,
        Gardinbuscom_ColorSelectorComponent,
        DetailsComponent,
        MarkingComponent,
        Gardinbuscom_PriceComponent,
        ConfiguratorBannerComponent,
        ConfiguratorModalComponent,
        StepNavigationComponent,

        // Views
        Gardinbuscom_ConfiguratorPartial,
    ],
    providers: [
        ConfiguratorProductLoaderService,
        CookieService,
        StepNavigationService,
        {provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: {hasBackdrop: true}}
    ]
})

export class ConfiguratorModule {}
