package com.discord.stores; import com.discord.models.domain.ModelGift; import com.discord.stores.StoreGifting; import d0.z.d.m; import d0.z.d.o; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreGifting.kt */ public final class StoreGifting$fetchMyGiftsForSku$3 extends o implements Function1, Unit> { public final /* synthetic */ String $comboId; public final /* synthetic */ Long $planId; public final /* synthetic */ long $skuId; public final /* synthetic */ StoreGifting this$0; /* compiled from: StoreGifting.kt */ /* renamed from: com.discord.stores.StoreGifting$fetchMyGiftsForSku$3$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ List $gifts; public final /* synthetic */ StoreGifting$fetchMyGiftsForSku$3 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreGifting$fetchMyGiftsForSku$3 storeGifting$fetchMyGiftsForSku$3, List list) { super(0); this.this$0 = storeGifting$fetchMyGiftsForSku$3; this.$gifts = list; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreGifting$fetchMyGiftsForSku$3 storeGifting$fetchMyGiftsForSku$3 = this.this$0; StoreGifting.access$removeGiftCode(storeGifting$fetchMyGiftsForSku$3.this$0, storeGifting$fetchMyGiftsForSku$3.$comboId); StoreGifting$fetchMyGiftsForSku$3 storeGifting$fetchMyGiftsForSku$32 = this.this$0; StoreGifting.access$clearGiftsForSku(storeGifting$fetchMyGiftsForSku$32.this$0, storeGifting$fetchMyGiftsForSku$32.$skuId, storeGifting$fetchMyGiftsForSku$32.$planId); for (ModelGift modelGift : this.$gifts) { StoreGifting.access$setGifts(this.this$0.this$0, modelGift.getCode(), new StoreGifting.GiftState.Resolved(modelGift)); } } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreGifting$fetchMyGiftsForSku$3(StoreGifting storeGifting, String str, long j, Long l) { super(1); this.this$0 = storeGifting; this.$comboId = str; this.$skuId = j; this.$planId = l; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(List list) { invoke((List) list); return Unit.a; } public final void invoke(List list) { m.checkNotNullParameter(list, "gifts"); this.this$0.getDispatcher().schedule(new AnonymousClass1(this, list)); } }