package i8; import android.os.Bundle; /* loaded from: classes2.dex */ public class a implements e { /* renamed from: b, reason: collision with root package name */ public static final String f10934b = "a"; /* renamed from: a, reason: collision with root package name */ private final y7.a f10935a; public a(y7.a aVar) { this.f10935a = aVar; } public static g b(int i10, String str, String[] strArr, int i11) { Bundle bundle = new Bundle(); bundle.putInt("action_extra", i10); bundle.putString("extra_body", str); bundle.putStringArray("extra_urls", strArr); return new g(f10934b).o(false).k(bundle).n(2000L, 1).m(i11).l(5); } @Override // i8.e public int a(Bundle bundle, h hVar) { String[] stringArray; int i10 = bundle.getInt("action_extra", -1); if (i10 == 0) { this.f10935a.a(((z4.h) new z4.e().i(bundle.getString("extra_body"), z4.h.class)).g()); return 0; } if (i10 == 1) { String[] stringArray2 = bundle.getStringArray("extra_urls"); if (stringArray2 == null) { return 0; } String[] c10 = this.f10935a.c(stringArray2); if (c10.length == 0) { return 0; } bundle.putStringArray("extra_urls", c10); return 2; } if (i10 == 2) { String[] b10 = this.f10935a.b(); if (b10.length == 0) { return 0; } bundle.putStringArray("extra_urls", b10); return 2; } if (i10 != 3 || (stringArray = bundle.getStringArray("extra_urls")) == null) { return 0; } this.f10935a.d(stringArray); return 0; } }