import { ScrollingModule } from '@angular/cdk/scrolling';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { DomainCatalogModule } from '@domain/catalog';
import { UiCommonModule } from '@ui/common';
import { UiIconModule } from '@ui/icon';
import { UiSelectBulletModule } from '@ui/select-bullet';
import { UiOrderByFilterModule } from 'apps/ui/filter/src/lib/next/order-by-filter/order-by-filter.module';
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
import { AddedToCartModalComponent } from './added-to-cart-modal/added-to-cart-modal.component';
import { StockInfosPipe } from './order-by-filter/stick-infos.pipe';
import { SearchResultItemLoadingComponent } from './search-result-item-loading.component';
import { SearchResultItemComponent } from './search-result-item.component';
import { ArticleSearchResultsComponent } from './search-results.component';
import { SearchResultSelectedPipe } from './selected/search-result-selected.pipe';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    RouterModule,
    DomainCatalogModule,
    UiCommonModule,
    UiIconModule,
    UiSelectBulletModule,
    UiSpinnerModule,
    UiOrderByFilterModule,
    ScrollingModule,
  ],
  exports: [ArticleSearchResultsComponent, SearchResultItemComponent],
  declarations: [
    ArticleSearchResultsComponent,
    SearchResultItemComponent,
    StockInfosPipe,
    SearchResultItemLoadingComponent,
    SearchResultSelectedPipe,
    AddedToCartModalComponent,
  ],
  providers: [],
})
export class SearchResultsModule {}
