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 kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreGifting.kt */ public final class StoreGifting$generateGiftCode$3 extends o implements Function1 { public final /* synthetic */ String $comboId; public final /* synthetic */ Function1 $onSuccess; public final /* synthetic */ StoreGifting this$0; /* compiled from: StoreGifting.kt */ /* renamed from: com.discord.stores.StoreGifting$generateGiftCode$3$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ ModelGift $newGift; public final /* synthetic */ StoreGifting$generateGiftCode$3 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreGifting$generateGiftCode$3 storeGifting$generateGiftCode$3, ModelGift modelGift) { super(0); this.this$0 = storeGifting$generateGiftCode$3; this.$newGift = modelGift; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreGifting$generateGiftCode$3 storeGifting$generateGiftCode$3 = this.this$0; StoreGifting.access$removeGiftCode(storeGifting$generateGiftCode$3.this$0, storeGifting$generateGiftCode$3.$comboId); StoreGifting.access$setGifts(this.this$0.this$0, this.$newGift.getCode(), new StoreGifting.GiftState.Resolved(this.$newGift)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreGifting$generateGiftCode$3(StoreGifting storeGifting, String str, Function1 function1) { super(1); this.this$0 = storeGifting; this.$comboId = str; this.$onSuccess = function1; } /* 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(ModelGift modelGift) { invoke(modelGift); return Unit.a; } public final void invoke(ModelGift modelGift) { m.checkNotNullParameter(modelGift, "newGift"); this.this$0.getDispatcher().schedule(new AnonymousClass1(this, modelGift)); Function1 function1 = this.$onSuccess; if (function1 != null) { Unit unit = (Unit) function1.invoke(modelGift); } } }