// Angular
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
// Partials
import { PartialsModule } from '../partials/partials.module';
// Pages
import { CoreModule } from '../../core/core.module';
import {UrlInterceptorService} from "../../core/api/url-interceptor.service";
import {MatNativeDateModule, MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';

@NgModule({
	declarations: [],
	exports: [],
	imports: [
		CommonModule,
		HttpClientModule,
		FormsModule,
		CoreModule,
		PartialsModule,
		MatNativeDateModule
	],
	providers: [
		{provide: HTTP_INTERCEPTORS, useClass: UrlInterceptorService, multi: true},
		{
			provide: MatDialogRef,
			useValue: {}
		},
		{
			provide: MAT_DIALOG_DATA,
			useValue: {}
		},
	],
})
export class PagesModule {
}
