package ca.canadapost.module.track.model;

import dn.a;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import sm.u;

/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "", "invoke", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public final class PackageItemModel$hasPhotoEvent$2 extends v implements a {
    final /* synthetic */ PackageItemModel this$0;

    /* JADX INFO: Access modifiers changed from: package-private */
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public PackageItemModel$hasPhotoEvent$2(PackageItemModel packageItemModel) {
        super(0);
        this.this$0 = packageItemModel;
    }

    @Override // dn.a
    public final Boolean invoke() {
        PackageDetailsDTO details = this.this$0.getDetails();
        List<Event> events = details != null ? details.getEvents() : null;
        if (events == null) {
            events = u.k();
        }
        Iterator<Event> it = events.iterator();
        while (it.hasNext()) {
            if (t.b(it.next().getCd(), "2001")) {
                return Boolean.TRUE;
            }
        }
        return Boolean.FALSE;
    }
}
