400 lines
12 KiB
Java
400 lines
12 KiB
Java
package o;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Calendar;
|
|
import java.util.Locale;
|
|
import o.C0690Mh;
|
|
import o.C12457eya;
|
|
import o.C15641hP;
|
|
import o.FOr;
|
|
import o.InterfaceC9040dcH;
|
|
import o.ZI;
|
|
|
|
/* renamed from: o.art */
|
|
/* loaded from: classes4.dex */
|
|
public final class C3142art extends ZI<InterfaceC9040dcH.LWm> {
|
|
private final C15641hP e;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C3142art(C16903sI c16903sI, C15641hP c15641hP) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c16903sI, "");
|
|
C14957gcv.e(c15641hP, "");
|
|
this.e = c15641hP;
|
|
}
|
|
|
|
/* renamed from: o.art$LWm */
|
|
/* loaded from: classes4.dex */
|
|
public static final class LWm {
|
|
private LWm() {
|
|
}
|
|
|
|
public /* synthetic */ LWm(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.art$RVV */
|
|
/* loaded from: classes4.dex */
|
|
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C0485Hq, C14866gag> {
|
|
private C3142art e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(C0485Hq c0485Hq) {
|
|
C0485Hq c0485Hq2 = c0485Hq;
|
|
C14957gcv.e(c0485Hq2, "");
|
|
C3142art.e(this.e, c0485Hq2);
|
|
C3142art.b(this.e, c0485Hq2);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
RVV(C3142art c3142art) {
|
|
super(1);
|
|
this.e = c3142art;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.art$Sts */
|
|
/* loaded from: classes4.dex */
|
|
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
private C3142art c;
|
|
private InterfaceC9040dcH.LWm d;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
Throwable th2 = th;
|
|
C14957gcv.e(th2, "");
|
|
this.d.ar_();
|
|
this.d.c(false);
|
|
this.d.e(this.c.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
Sts(InterfaceC9040dcH.LWm lWm, C3142art c3142art) {
|
|
super(1);
|
|
this.d = lWm;
|
|
this.c = c3142art;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.art$HBt */
|
|
/* loaded from: classes4.dex */
|
|
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<C0473Hi, C14866gag> {
|
|
private boolean d;
|
|
private C3142art e;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(C0473Hi c0473Hi) {
|
|
C14957gcv.e(c0473Hi, "");
|
|
C3142art.a(this.e, this.d);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
HBt(C3142art c3142art, boolean z) {
|
|
super(1);
|
|
this.e = c3142art;
|
|
this.d = z;
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.art$IeS */
|
|
/* loaded from: classes4.dex */
|
|
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
private C3142art a;
|
|
private InterfaceC9040dcH.LWm b;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
Throwable th2 = th;
|
|
C14957gcv.e(th2, "");
|
|
this.b.ar_();
|
|
this.b.e(this.a.j.d(th2, C0690Mh.IeS.JUST_DISMISS));
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
IeS(InterfaceC9040dcH.LWm lWm, C3142art c3142art) {
|
|
super(1);
|
|
this.b = lWm;
|
|
this.a = c3142art;
|
|
}
|
|
}
|
|
|
|
private static String b() {
|
|
String format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.getDefault()).format(Calendar.getInstance().getTime());
|
|
C14957gcv.c((Object) format, "");
|
|
return format;
|
|
}
|
|
|
|
public static /* synthetic */ void a(C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c0485Hq, "");
|
|
lWm.ar_();
|
|
lWm.c(true);
|
|
lWm.f(c0485Hq.j);
|
|
lWm.b(c0485Hq.i);
|
|
lWm.d(c0485Hq.g);
|
|
lWm.a(c0485Hq.f);
|
|
}
|
|
|
|
public static /* synthetic */ void b(C3142art c3142art, C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(c0485Hq, "");
|
|
C3103arG c3103arG = new C3103arG(c0485Hq.d, c3142art);
|
|
if (c3142art.f != 0) {
|
|
c3103arG.e(c3142art.f);
|
|
}
|
|
lWm.i();
|
|
lWm.j();
|
|
lWm.h(c0485Hq.e);
|
|
}
|
|
|
|
public static /* synthetic */ void a(String str, C3142art c3142art, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(c3142art, "");
|
|
lWm.c(str);
|
|
lWm.e(str);
|
|
lWm.a(!(str == null || str.equals("")));
|
|
}
|
|
|
|
public static /* synthetic */ void a(C3142art c3142art, C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(c0485Hq, "");
|
|
C3103arG c3103arG = new C3103arG(c0485Hq.d, c3142art);
|
|
if (c3142art.f != 0) {
|
|
c3103arG.e(c3142art.f);
|
|
}
|
|
lWm.d(c0485Hq.h);
|
|
lWm.f();
|
|
ZI.IeS ieS = new ZI.IeS(c0485Hq) { // from class: o.arz
|
|
private C0485Hq a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.c(this.a, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.a = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS.e(c3142art.f);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void a(boolean z, InterfaceC9040dcH.LWm lWm) {
|
|
lWm.ar_();
|
|
lWm.b();
|
|
if (z) {
|
|
lWm.a();
|
|
} else {
|
|
lWm.e();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(C3142art c3142art, String str, int i, String str2, String str3, boolean z, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
C14957gcv.e(str3, "");
|
|
lWm.y();
|
|
C15641hP c15641hP = c3142art.e;
|
|
bQQ bqq = new bQQ(str, i, str2, str3);
|
|
HBt hBt = new HBt(c3142art, z);
|
|
IeS ieS = new IeS(lWm, c3142art);
|
|
C14957gcv.e(bqq, "");
|
|
C14957gcv.e(hBt, "");
|
|
C14957gcv.e(ieS, "");
|
|
c15641hP.b.e(hBt, ieS, new C12457eya.LWm(bqq), new C15641hP.Sts(c15641hP), c15641hP.a);
|
|
}
|
|
|
|
public static /* synthetic */ void e(C3142art c3142art, C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(c0485Hq, "");
|
|
if (c(c0485Hq.c) > 0.0d) {
|
|
lWm.c(c(c0485Hq.c));
|
|
lWm.c(1.0f);
|
|
} else {
|
|
lWm.i();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void d(C3142art c3142art, String str, int i, String str2, String str3, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
C14957gcv.e(str3, "");
|
|
lWm.y();
|
|
C15641hP c15641hP = c3142art.e;
|
|
bQQ bqq = new bQQ(str, i, str2, str3);
|
|
RVV rvv = new RVV(c3142art);
|
|
Sts sts = new Sts(lWm, c3142art);
|
|
C14957gcv.e(bqq, "");
|
|
C14957gcv.e(rvv, "");
|
|
C14957gcv.e(sts, "");
|
|
c15641hP.e.e(rvv, sts, new FOr.Sts(bqq), new C15641hP.RVV(c15641hP), c15641hP.a);
|
|
}
|
|
|
|
public static /* synthetic */ void c(C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c0485Hq, "");
|
|
if (c0485Hq.h) {
|
|
lWm.h(c0485Hq.b);
|
|
} else {
|
|
lWm.h(c0485Hq.e);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(C3142art c3142art, C0485Hq c0485Hq, InterfaceC9040dcH.LWm lWm) {
|
|
C14957gcv.e(c3142art, "");
|
|
C14957gcv.e(c0485Hq, "");
|
|
C3103arG c3103arG = new C3103arG(c0485Hq.d, c3142art);
|
|
if (c3142art.f != 0) {
|
|
c3103arG.e(c3142art.f);
|
|
}
|
|
lWm.d(false);
|
|
lWm.k();
|
|
lWm.g();
|
|
lWm.c();
|
|
lWm.h();
|
|
lWm.h(c0485Hq.k);
|
|
}
|
|
|
|
public static final /* synthetic */ void b(C3142art c3142art, C0485Hq c0485Hq) {
|
|
String str = c0485Hq.a;
|
|
int hashCode = str.hashCode();
|
|
if (hashCode == -591252731) {
|
|
if (str.equals("EXPIRED")) {
|
|
ZI.IeS ieS = new ZI.IeS(c3142art, c0485Hq) { // from class: o.aru
|
|
private C3142art d;
|
|
private C0485Hq e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.b(this.d, this.e, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.d = c3142art;
|
|
this.e = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS.e(c3142art.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (hashCode != 2408251) {
|
|
if (hashCode == 2614205 && str.equals("USED")) {
|
|
ZI.IeS ieS2 = new ZI.IeS(c3142art, c0485Hq) { // from class: o.arr
|
|
private C0485Hq b;
|
|
private C3142art d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.c(this.d, this.b, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.d = c3142art;
|
|
this.b = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS2.e(c3142art.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str.equals("REDEEMED")) {
|
|
ZI.IeS ieS3 = new ZI.IeS(c3142art, c0485Hq) { // from class: o.arE
|
|
private C0485Hq a;
|
|
private C3142art c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.a(this.c, this.a, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.c = c3142art;
|
|
this.a = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS3.e(c3142art.f);
|
|
}
|
|
ZI.IeS ieS4 = new ZI.IeS(c3142art, c0485Hq) { // from class: o.arH
|
|
private C3142art b;
|
|
private C0485Hq c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.e(this.b, this.c, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.b = c3142art;
|
|
this.c = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS4.e(c3142art.f);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ void a(C3142art c3142art, boolean z) {
|
|
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.arF
|
|
private boolean b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.a(this.b, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.b = z;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS.e(c3142art.f);
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ void e(C3142art c3142art, C0485Hq c0485Hq) {
|
|
ZI.IeS ieS = new ZI.IeS(c0485Hq) { // from class: o.arw
|
|
private C0485Hq b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3142art.a(this.b, (InterfaceC9040dcH.LWm) obj);
|
|
}
|
|
|
|
{
|
|
this.b = c0485Hq;
|
|
}
|
|
};
|
|
if (c3142art.f != 0) {
|
|
ieS.e(c3142art.f);
|
|
}
|
|
}
|
|
|
|
private static double c(String str) {
|
|
long time = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.getDefault()).parse(str).getTime() - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.getDefault()).parse(b()).getTime();
|
|
return (((time / 60000) % 60) + (((time / 1000) % 60) / 60.0d)) * 60.0d * 1000.0d;
|
|
}
|
|
|
|
static {
|
|
new LWm((byte) 0);
|
|
}
|
|
}
|