All files / src/app/shared/components/product/product-shipment product-shipment.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 314x                                                            
@if (visible$ | async) {
  @if (
    { readyForShipmentMin: readyForShipmentMin$ | async, readyForShipmentMax: readyForShipmentMax$ | async };
    as product
  ) {
    <div class="ready-for-shipment" data-testing-id="section-productshipping-shortinfo">
      @if (product.readyForShipmentMin === 0) {
        {{
          (product.readyForShipmentMax === 1
            ? 'product.ready_for_shipment.within24'
            : 'product.ready_for_shipment.within'
          ) | translate: { '0': product.readyForShipmentMax }
        }}
      } @else {
        {{
          'product.ready_for_shipment.minmax'
            | translate: { '0': product.readyForShipmentMin, '1': product.readyForShipmentMax }
        }}
      }
      <!-- details link and dialog -->
      <ish-modal-dialog-link
        linkText="product.ready_for_shipment.detail.text"
        [ngClass]="'details-link'"
        [options]="{ titleText: 'shopping.product.readyforshipment.details.title' | translate, size: 'lg' }"
      >
        <ish-content-include *ishLazyLoadingContent includeId="include.dialog.readyForShipment.pagelet2-Include" />
      </ish-modal-dialog-link>
    </div>
  }
}