import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { OverlayModule } from '@angular/cdk/overlay';

import { UiIconModule } from '@ui/icon';

import {
  B2BDeliveryOptionComponent,
  TakeAwayOptionComponent,
  PickUpOptionComponent,
  DeliveryOptionComponent,
  DigDeliveryOptionComponent,
} from './options';

import { PurchasingOptionsModalComponent } from './purchasing-options-modal.component';
import { PageCheckoutPipeModule } from '../../pipes/page-checkout-pipe.module';
import { ProductImageModule } from 'apps/cdn/product-image/src/public-api';
import { UiSpinnerModule } from 'apps/ui/spinner/src/lib/ui-spinner.module';
import { KeyNavigationModule } from '../../shared/key-navigation/key-navigation.module';
import { RouterModule } from '@angular/router';
import { UiQuantityDropdownModule } from '@ui/quantity-dropdown';
import { PurchasingOptionsModalPriceInputModule } from './price-input/purchasing-options-modal-price-input.module';
import { UiTooltipModule } from '@ui/tooltip';
import { UiCommonModule } from '@ui/common';
import { UiBranchDropdownModule } from '@ui/branch-dropdown';

@NgModule({
  imports: [
    CommonModule,
    UiCommonModule,
    FormsModule,
    UiIconModule,
    OverlayModule,
    PageCheckoutPipeModule,
    ProductImageModule,
    UiQuantityDropdownModule,
    UiSpinnerModule,
    KeyNavigationModule,
    RouterModule,
    PurchasingOptionsModalPriceInputModule,
    UiTooltipModule,
    UiBranchDropdownModule,
  ],
  exports: [PurchasingOptionsModalComponent],
  declarations: [
    PurchasingOptionsModalComponent,
    B2BDeliveryOptionComponent,
    TakeAwayOptionComponent,
    PickUpOptionComponent,
    DeliveryOptionComponent,
    DigDeliveryOptionComponent,
  ],
})
export class PurchasingOptionsModalModule {}
