import { NgModule } from '@angular/core';
import { AuthServicesRoutingModule } from './auth-services-routing.module';
import { AuthServicesComponent } from './auth-services.component';
import { LoginComponent } from './login/login.component';
import { RegesterComponent } from './regester/regester.component';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule, FormGroup } from '@angular/forms';
import { AlifeFileToBase64Module } from 'alife-file-to-base64';
import { FlatpickrModule } from 'angularx-flatpickr';
import { CalendarModule, DateAdapter } from 'angular-calendar';
// import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
// import { MomentModule } from 'ngx-moment';
import { NgxPaginationModule } from 'ngx-pagination';
import { NgxSpinnerModule } from 'ngx-spinner';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CollapsibleModule } from 'angular2-collapsible';
import { BootstrapModalModule } from 'ngx-modialog/plugins/bootstrap/public_api';
import { Ng2CarouselamosModule } from 'ng2-carouselamos';
import { ToastrModule } from 'ngx-toastr';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { CommonModule } from '@angular/common';
import { JwSocialButtonsModule } from 'jw-angular-social-buttons';
import { CarouselModule } from 'ngx-owl-carousel-o';
import { SharedModule } from '../shared/shared.module';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { ForgetPasswordComponent } from './forget-password/forget-password.component';



@NgModule({
  imports: [
    CommonModule,
    AuthServicesRoutingModule,
    CollapsibleModule,
    NgxPaginationModule,
    JwSocialButtonsModule,
    CarouselModule,
    NgxSpinnerModule,
    SharedModule,
    NgbModule.forRoot(),
    FlatpickrModule.forRoot(),
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    FormsModule,
    ReactiveFormsModule,
    AlifeFileToBase64Module,
  ],
    declarations: [
        AuthServicesComponent,
        LoginComponent,
        RegesterComponent,
        ForgetPasswordComponent,
  ],
  providers: [],
})
export class AuthServicesModule { }