Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 PinterestModuleKt.java 源代码,内容仅作参考
package com.picsart.pinterest;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.picsart.coroutine.CoroutinesWrappersKt;
import com.picsart.pinterest.api.PinterestApiService;
import com.picsart.pinterest.api.PinterestAuthService;
import com.picsart.pinterest.model.PinterestData;
import com.picsart.search.mvi.Store;
import com.picsart.sharesheet.api.ShareTargetData;
import com.picsart.studio.R;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.EmptyList;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.an2.r;
import org.jetbrains.annotations.NotNull;
import org.koin.core.definition.BeanDefinition;
import org.koin.core.definition.Kind;
import org.koin.core.scope.Scope;
import retrofit2.Converter;
public final class PinterestModuleKt {
@NotNull
public static final myobfuscated.wp2.a a = r.J(new Function1<myobfuscated.wp2.a, Unit>() {
@Override
public Unit invoke(myobfuscated.wp2.a aVar) {
invoke2(aVar);
return Unit.a;
}
public final void invoke2(@NotNull myobfuscated.wp2.a module) {
Intrinsics.checkNotNullParameter(module, "$this$module");
AnonymousClass1 anonymousClass1 = new Function2<Scope, myobfuscated.xp2.a, myobfuscated.y81.a>() {
@Override
@NotNull
public final myobfuscated.y81.a invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.yp2.c a2 = myobfuscated.yp2.b.a("default");
String string = myobfuscated.kp2.a.b(single).getString(R.string.pinterest_id);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
String string2 = myobfuscated.kp2.a.b(single).getString(R.string.pinterest_secret);
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
return new h((myobfuscated.zg1.a) single.b(null, myobfuscated.xk2.q.a.b(myobfuscated.zg1.a.class), a2), string, string2);
}
};
myobfuscated.yp2.c cVar = myobfuscated.zp2.b.e;
Kind kind = Kind.Singleton;
EmptyList emptyList = EmptyList.INSTANCE;
myobfuscated.xk2.r rVar = myobfuscated.xk2.q.a;
BeanDefinition beanDefinition = new BeanDefinition(cVar, rVar.b(myobfuscated.y81.a.class), null, anonymousClass1, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition, "beanDefinition");
?? factory = new myobfuscated.up2.c(beanDefinition);
module.b(factory);
boolean z = module.a;
if (z) {
module.c(factory);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory, "factory");
BeanDefinition beanDefinition2 = new BeanDefinition(cVar, rVar.b(myobfuscated.z81.b.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.z81.b>() {
@Override
@NotNull
public final myobfuscated.z81.b invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
return new myobfuscated.z81.b((myobfuscated.y81.d) single.b(null, rVar2.b(myobfuscated.y81.d.class), null), (myobfuscated.y81.a) single.b(null, rVar2.b(myobfuscated.y81.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition2, "beanDefinition");
?? factory2 = new myobfuscated.up2.c(beanDefinition2);
module.b(factory2);
if (z) {
module.c(factory2);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory2, "factory");
BeanDefinition beanDefinition3 = new BeanDefinition(cVar, rVar.b(myobfuscated.z81.a.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.z81.a>() {
@Override
@NotNull
public final myobfuscated.z81.a invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
return new myobfuscated.z81.a((myobfuscated.y81.a) single.b(null, myobfuscated.xk2.q.a.b(myobfuscated.y81.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition3, "beanDefinition");
?? factory3 = new myobfuscated.up2.c(beanDefinition3);
module.b(factory3);
if (z) {
module.c(factory3);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory3, "factory");
BeanDefinition beanDefinition4 = new BeanDefinition(cVar, rVar.b(myobfuscated.z81.c.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.z81.c>() {
@Override
@NotNull
public final myobfuscated.z81.c invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
return new myobfuscated.z81.c((myobfuscated.y81.a) single.b(null, myobfuscated.xk2.q.a.b(myobfuscated.y81.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition4, "beanDefinition");
?? factory4 = new myobfuscated.up2.c(beanDefinition4);
module.b(factory4);
if (z) {
module.c(factory4);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory4, "factory");
myobfuscated.yp2.c cVar2 = myobfuscated.y81.f.b;
AnonymousClass5 anonymousClass5 = new Function2<Scope, myobfuscated.xp2.a, PinterestApiService>() {
@Override
@NotNull
public final PinterestApiService invoke(@NotNull Scope factory5, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(factory5, "$this$factory");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
return (PinterestApiService) ((myobfuscated.z31.d) factory5.b(null, rVar2.b(myobfuscated.z31.d.class), null)).b(PinterestApiService.class, new myobfuscated.z31.a(new myobfuscated.a41.e("https://api.pinterest.com/v3/", (Converter.Factory) null, 6), new myobfuscated.a41.b(null, null, new myobfuscated.a41.d(2, myobfuscated.jk2.o.i(factory5.b(null, rVar2.b(myobfuscated.z81.c.class), null))), (myobfuscated.ko2.b) factory5.b(null, rVar2.b(myobfuscated.z81.b.class), null), null, 51)));
}
};
Kind kind2 = Kind.Factory;
BeanDefinition beanDefinition5 = new BeanDefinition(cVar, rVar.b(PinterestApiService.class), cVar2, anonymousClass5, kind2, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition5, "beanDefinition");
myobfuscated.up2.c factory5 = new myobfuscated.up2.c(beanDefinition5);
module.b(factory5);
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory5, "factory");
BeanDefinition beanDefinition6 = new BeanDefinition(cVar, rVar.b(PinterestAuthService.class), myobfuscated.y81.f.c, new Function2<Scope, myobfuscated.xp2.a, PinterestAuthService>() {
@Override
@NotNull
public final PinterestAuthService invoke(@NotNull Scope factory6, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(factory6, "$this$factory");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
return (PinterestAuthService) ((myobfuscated.z31.d) factory6.b(null, rVar2.b(myobfuscated.z31.d.class), null)).b(PinterestAuthService.class, new myobfuscated.z31.a(new myobfuscated.a41.e("https://api.pinterest.com/v3/", (Converter.Factory) null, 6), new myobfuscated.a41.b(null, null, new myobfuscated.a41.d(2, myobfuscated.jk2.n.b(factory6.b(null, rVar2.b(myobfuscated.z81.a.class), null))), null, null, 59)));
}
}, kind2, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition6, "beanDefinition");
myobfuscated.up2.c factory6 = new myobfuscated.up2.c(beanDefinition6);
module.b(factory6);
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory6, "factory");
BeanDefinition beanDefinition7 = new BeanDefinition(cVar, rVar.b(myobfuscated.y81.g.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.y81.g>() {
@Override
@NotNull
public final myobfuscated.y81.g invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.yp2.c cVar3 = myobfuscated.y81.f.a;
return new PinterestRepoImpl((PinterestApiService) single.b(null, myobfuscated.xk2.q.a.b(PinterestApiService.class), myobfuscated.y81.f.b));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition7, "beanDefinition");
?? factory7 = new myobfuscated.up2.c(beanDefinition7);
module.b(factory7);
if (z) {
module.c(factory7);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory7, "factory");
BeanDefinition beanDefinition8 = new BeanDefinition(cVar, rVar.b(myobfuscated.y81.d.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.y81.d>() {
@Override
@NotNull
public final myobfuscated.y81.d invoke(@NotNull Scope single, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
myobfuscated.yp2.c cVar3 = myobfuscated.y81.f.a;
myobfuscated.yp2.c cVar4 = myobfuscated.y81.f.c;
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
return new myobfuscated.y81.e((PinterestAuthService) single.b(null, rVar2.b(PinterestAuthService.class), cVar4), (myobfuscated.y81.a) single.b(null, rVar2.b(myobfuscated.y81.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition8, "beanDefinition");
?? cVar3 = new myobfuscated.up2.c(beanDefinition8);
module.b(cVar3);
if (z) {
module.c(cVar3);
}
BeanDefinition beanDefinition9 = new BeanDefinition(cVar, rVar.b(Function2.class), myobfuscated.b0.b.z(module, "module", cVar3, "factory", "fragment_pinterest"), new Function2<Scope, myobfuscated.xp2.a, Function2<? super androidx.fragment.app.h, ? super ShareTargetData, ? extends Unit>>() {
@Override
@NotNull
public final Function2<androidx.fragment.app.h, ShareTargetData, Unit> invoke(@NotNull Scope factory8, @NotNull myobfuscated.xp2.a it) {
Intrinsics.checkNotNullParameter(factory8, "$this$factory");
Intrinsics.checkNotNullParameter(it, "it");
return new Function2<androidx.fragment.app.h, ShareTargetData, Unit>() {
@Override
public Unit invoke(androidx.fragment.app.h hVar, ShareTargetData shareTargetData) {
invoke2(hVar, shareTargetData);
return Unit.a;
}
public final void invoke2(@NotNull androidx.fragment.app.h activity, @NotNull ShareTargetData data2) {
Intrinsics.checkNotNullParameter(activity, "activity");
Intrinsics.checkNotNullParameter(data2, "shareTargetData");
int i = ShareToPinterestBottomSheetFragment.h;
FragmentManager fragmentManager = activity.getSupportFragmentManager();
Intrinsics.checkNotNullExpressionValue(fragmentManager, "getSupportFragmentManager(...)");
Intrinsics.checkNotNullParameter(fragmentManager, "fragmentManager");
Intrinsics.checkNotNullParameter(data2, "data");
if (fragmentManager.S()) {
return;
}
Fragment F = fragmentManager.F("content_filter_dialog_fragment");
ShareToPinterestBottomSheetFragment shareToPinterestBottomSheetFragment = F instanceof ShareToPinterestBottomSheetFragment ? (ShareToPinterestBottomSheetFragment) F : null;
if (shareToPinterestBottomSheetFragment == null || !shareToPinterestBottomSheetFragment.isAdded()) {
if (shareToPinterestBottomSheetFragment != null) {
shareToPinterestBottomSheetFragment.show(fragmentManager, "content_filter_dialog_fragment");
return;
}
ShareToPinterestBottomSheetFragment shareToPinterestBottomSheetFragment2 = new ShareToPinterestBottomSheetFragment();
shareToPinterestBottomSheetFragment2.setArguments(myobfuscated.i3.g.b(new Pair("pinterest_item_data", data2)));
shareToPinterestBottomSheetFragment2.show(fragmentManager, "content_filter_dialog_fragment");
}
}
};
}
}, kind2, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition9, "beanDefinition");
myobfuscated.up2.c factory8 = new myobfuscated.up2.c(beanDefinition9);
module.b(factory8);
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory8, "factory");
BeanDefinition beanDefinition10 = new BeanDefinition(cVar, rVar.b(Store.class), myobfuscated.y81.f.a, new Function2<Scope, myobfuscated.xp2.a, Store<myobfuscated.rd1.a, ShareToPinterestFragmentState>>() {
@Override
@NotNull
public final Store<myobfuscated.rd1.a, ShareToPinterestFragmentState> invoke(@NotNull Scope factory9, @NotNull myobfuscated.xp2.a aVar) {
Intrinsics.checkNotNullParameter(factory9, "$this$factory");
Intrinsics.checkNotNullParameter(aVar, "<name for destructuring parameter 0>");
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
?? obj = new Object();
myobfuscated.wn2.a aVar2 = CoroutinesWrappersKt.b;
return new Store<>(obj, myobfuscated.jk2.o.h(new e(aVar2, (myobfuscated.y81.d) factory9.b(null, rVar2.b(myobfuscated.y81.d.class), null), (myobfuscated.y81.a) factory9.b(null, rVar2.b(myobfuscated.y81.a.class), null)), new q((myobfuscated.y81.a) factory9.b(null, rVar2.b(myobfuscated.y81.a.class), null)), new i((myobfuscated.y81.a) factory9.b(null, rVar2.b(myobfuscated.y81.a.class), null)), new p(aVar2, (myobfuscated.y81.g) factory9.b(null, rVar2.b(myobfuscated.y81.g.class), null)), new j(aVar2, (myobfuscated.y81.g) factory9.b(null, rVar2.b(myobfuscated.y81.g.class), null)), new l(aVar2, (myobfuscated.y81.g) factory9.b(null, rVar2.b(myobfuscated.y81.g.class), null)), new Object(), new k(aVar2, (myobfuscated.y81.a) factory9.b(null, rVar2.b(myobfuscated.y81.a.class), null)), new f(aVar2, (myobfuscated.tw.b) factory9.b(null, rVar2.b(myobfuscated.tw.b.class), null), (PinterestData) aVar.a(0, rVar2.b(PinterestData.class)))), (ShareToPinterestFragmentState) aVar.a(1, rVar2.b(ShareToPinterestFragmentState.class)));
}
}, kind2, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition10, "beanDefinition");
myobfuscated.up2.c factory9 = new myobfuscated.up2.c(beanDefinition10);
module.b(factory9);
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory9, "factory");
BeanDefinition beanDefinition11 = new BeanDefinition(cVar, rVar.b(myobfuscated.y81.h.class), null, new Function2<Scope, myobfuscated.xp2.a, myobfuscated.y81.h>() {
@Override
@NotNull
public final myobfuscated.y81.h invoke(@NotNull Scope factory10, @NotNull myobfuscated.xp2.a aVar) {
Intrinsics.checkNotNullParameter(factory10, "$this$factory");
Intrinsics.checkNotNullParameter(aVar, "<name for destructuring parameter 0>");
myobfuscated.xk2.r rVar2 = myobfuscated.xk2.q.a;
final ShareToPinterestFragmentState shareToPinterestFragmentState = (ShareToPinterestFragmentState) aVar.a(0, rVar2.b(ShareToPinterestFragmentState.class));
myobfuscated.yp2.c cVar4 = myobfuscated.y81.f.a;
return new myobfuscated.y81.h((myobfuscated.ee0.d) factory10.b(null, rVar2.b(myobfuscated.ee0.d.class), null), (com.picsart.sharesheet.api.b) factory10.b(null, rVar2.b(com.picsart.sharesheet.api.b.class), null), (Store) factory10.b(new Function0<myobfuscated.xp2.a>() {
{
super(0);
}
@Override
@NotNull
public final myobfuscated.xp2.a invoke() {
ShareToPinterestFragmentState shareToPinterestFragmentState2 = ShareToPinterestFragmentState.this;
return myobfuscated.xp2.b.a(shareToPinterestFragmentState2.a, shareToPinterestFragmentState2);
}
}, rVar2.b(Store.class), myobfuscated.y81.f.a));
}
}, kind2, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition11, "beanDefinition");
myobfuscated.up2.c factory10 = new myobfuscated.up2.c(beanDefinition11);
module.b(factory10);
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory10, "factory");
}
});
}