import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { ReturnDetailsHeaderComponent } from '../return-details-header/return-details-header.component';
import { ReturnDetailsOrderGroupComponent } from '../return-details-order-group/return-details-order-group.component';
import { ReturnDetailsOrderGroupDataComponent } from '../return-details-order-group-data/return-details-order-group-data.component';
import { ReturnDetailsDataComponent } from '../return-details-data/return-details-data.component';
import { NgIcon, provideIcons } from '@ng-icons/core';
import { isaActionPlus, isaActionMinus } from '@isa/icons';
import { ReturnDetailsOrderGroupItemComponent } from '../return-details-order-group-item/return-details-order-group-item.component';
import { Receipt } from '@isa/oms/data-access';
import { ExpandableDirectives } from '@isa/ui/expandable';
import { TextButtonComponent } from '@isa/ui/buttons';

@Component({
  selector: 'oms-feature-return-details-static',
  templateUrl: './return-details-static.component.html',
  styleUrls: ['./return-details-static.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
  standalone: true,
  imports: [
    ReturnDetailsHeaderComponent,
    ReturnDetailsOrderGroupComponent,
    ReturnDetailsOrderGroupDataComponent,
    ReturnDetailsDataComponent,
    ReturnDetailsOrderGroupItemComponent,
    NgIcon,
    ExpandableDirectives,
    TextButtonComponent,
  ],
  providers: [provideIcons({ isaActionPlus, isaActionMinus })],
})
export class ReturnDetailsStaticComponent {
  receipt = input.required<Receipt>();
}
