import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { CitiesSearchService } from '@components/city-autocomplete/cities-search-service/cities-search.service';
import { CityAutocompleteItemComponent } from '@components/city-autocomplete/city-autocomplete-item/city-autocomplete-item.component';
import { CitySelectComponent } from '@components/city-autocomplete/city-select/city-select.component';
import { AutoCompleteModule } from 'primeng/autocomplete';
import { ToolkitModule } from '@toolkit/toolkit.module';
import { ScrollPanelModule } from 'primeng/scrollpanel';
import { CityAutocompleteComponent } from './city-autocomplete.component';

@NgModule({
    declarations: [
        CityAutocompleteComponent,
        CityAutocompleteItemComponent,
        CitySelectComponent,
    ],
    providers: [CitiesSearchService],
    exports: [CityAutocompleteComponent],
    imports: [
        CommonModule,
        FormsModule,
        AutoCompleteModule,
        ToolkitModule,
        ScrollPanelModule,
    ],
})
export class CityAutocompleteModule {}
