MD5 校验值:2a432003868ccf5f53c7a8e745fc59ec
k.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package z8; import bm.m0; import com.elmo.rta.breathe.data.dto.hr.CancelBookedLeaveRequestDtoApi; import com.elmo.rta.breathe.data.dto.hr.CreateLeaveRequestDtoApi; import com.elmo.rta.breathe.data.dto.hr.LeaveAbsenceDtoApi; import com.elmo.rta.breathe.data.dto.hr.LeaveReasonDtoApi; import com.elmo.rta.breathe.data.dto.hr.LeaveRequestDtoApi; import com.elmo.rta.breathe.data.dto.hr.LeavesSummaryDtoApi; import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor; import j$.time.LocalDate; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Locale; import r9.c; import r9.p; public final class k implements j { public final h8.b f18348a; public final m8.g f18349b; public final m8.e f18350c; public final m8.h f18351d; public final y9.c f18352e; public final m8.j f18353f; @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {47}, m = "addLeaveRequest") public static final class a extends vp.c { public k D; public Object E; public int G; public a(tp.d<? super a> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.h(null, this); } } @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {71}, m = "fetchBookedLeaves") public static final class b extends vp.c { public k D; public Object E; public int G; public b(tp.d<? super b> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.d(this); } } @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {42}, m = "fetchLeaveReasons") public static final class c extends vp.c { public k D; public Object E; public int G; public c(tp.d<? super c> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.e(this); } } @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {ModuleDescriptor.MODULE_VERSION}, m = "fetchLeavesSummary") public static final class d extends vp.c { public k D; public Object E; public int G; public d(tp.d<? super d> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.a(this); } } @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {81}, m = "fetchRequestedLeaves") public static final class e extends vp.c { public k D; public Object E; public int G; public e(tp.d<? super e> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.g(this); } } @vp.e(c = "com.elmo.rta.breathe.data.repository.hr.HrLeaveApiDataSourceImpl", f = "HrLeaveApiDataSource.kt", l = {76}, m = "fetchTakenLeaves") public static final class f extends vp.c { public k D; public Object E; public int G; public f(tp.d<? super f> dVar) { super(dVar); } @Override public final Object m(Object obj) { this.E = obj; this.G |= Integer.MIN_VALUE; return k.this.c(this); } } public k(h8.b bVar, m8.g gVar, m8.e eVar, m8.h hVar, y9.c cVar, m8.j jVar) { cq.l.f(bVar, "service"); cq.l.f(gVar, "mapper"); cq.l.f(eVar, "leaveAbsenceMapper"); cq.l.f(hVar, "leaveRequestMapper"); cq.l.f(cVar, "environmentConfigProvider"); cq.l.f(jVar, "leavesSummaryMapper"); this.f18348a = bVar; this.f18349b = gVar; this.f18350c = eVar; this.f18351d = hVar; this.f18352e = cVar; this.f18353f = jVar; } @Override public final Object a(tp.d<? super wi.c<r9.u, ? extends x9.b>> dVar) { d dVar2; int i10; k kVar; wi.c cVar; String str; BigDecimal bigDecimal; LocalDate localDate; BigDecimal bigDecimal2; if (dVar instanceof d) { dVar2 = (d) dVar; int i11 = dVar2.G; if ((i11 & Integer.MIN_VALUE) != 0) { dVar2.G = i11 - Integer.MIN_VALUE; Object obj = dVar2.E; up.a aVar = up.a.COROUTINE_SUSPENDED; i10 = dVar2.G; if (i10 == 0) { if (i10 == 1) { kVar = dVar2.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); dVar2.D = this; dVar2.G = 1; obj = this.f18348a.d("https://hr.breathehr.com", dVar2); if (obj == aVar) { return aVar; } kVar = this; } cVar = (wi.c) obj; m8.j jVar = kVar.f18353f; if (!(cVar instanceof wi.b)) { LeavesSummaryDtoApi leavesSummaryDtoApi = (LeavesSummaryDtoApi) ((wi.b) cVar).f16948a; jVar.getClass(); cq.l.f(leavesSummaryDtoApi, "dto"); String str2 = leavesSummaryDtoApi.f4061r; if (str2 != null) { str = str2.toLowerCase(Locale.ROOT); cq.l.e(str, "this as java.lang.String).toLowerCase(Locale.ROOT)"); } else { str = null; } boolean a10 = cq.l.a(str, "positive"); String str3 = leavesSummaryDtoApi.f4062s; if (a10) { bigDecimal = m8.j.a(str3); } else if (cq.l.a(str, "negative")) { bigDecimal = m8.j.a(str3).negate(); } else { bigDecimal = BigDecimal.ZERO; } BigDecimal bigDecimal3 = bigDecimal; BigDecimal a11 = m8.j.a(leavesSummaryDtoApi.f4045b); BigDecimal a12 = m8.j.a(leavesSummaryDtoApi.f4044a); BigDecimal a13 = m8.j.a(leavesSummaryDtoApi.f4058o); cq.l.e(a11, "allowance"); cq.l.e(a12, "adjustment"); cq.l.e(a13, "used"); cq.l.e(bigDecimal3, "carryOver"); LocalDate localDate2 = leavesSummaryDtoApi.f4048e; Integer num = leavesSummaryDtoApi.f4047d; if (num != null) { num.intValue(); localDate = localDate2; } else { localDate = null; } BigDecimal a14 = m8.j.a(leavesSummaryDtoApi.f4060q); cq.l.e(a14, "dto.availableLeave.tryToBigDecimal()"); BigDecimal a15 = m8.j.a(leavesSummaryDtoApi.f4046c); cq.l.e(a15, "dto.allowanceFromLastYear.tryToBigDecimal()"); BigDecimal a16 = m8.j.a(leavesSummaryDtoApi.f4055l); cq.l.e(a16, "dto.usedFromLastYear.tryToBigDecimal()"); BigDecimal subtract = a15.subtract(a16); cq.l.e(subtract, "this.subtract(other)"); BigDecimal bigDecimal4 = (BigDecimal) androidx.activity.o.m(subtract, BigDecimal.ZERO); BigDecimal add = a11.add(a12); cq.l.e(add, "this.add(other)"); BigDecimal add2 = add.add(bigDecimal3); cq.l.e(add2, "this.add(other)"); if (!cq.l.a(add2, BigDecimal.ZERO)) { try { BigDecimal multiply = a13.multiply(new BigDecimal(100)); cq.l.e(multiply, "this.multiply(other)"); BigDecimal add3 = a11.add(a12); cq.l.e(add3, "this.add(other)"); BigDecimal add4 = add3.add(bigDecimal3); cq.l.e(add4, "this.add(other)"); bigDecimal2 = multiply.divide(add4, RoundingMode.HALF_EVEN); cq.l.e(bigDecimal2, "this.divide(other, RoundingMode.HALF_EVEN)"); } catch (Exception unused) { bigDecimal2 = BigDecimal.ZERO; } return new wi.b(new r9.u(a11, a12, a13, bigDecimal3, localDate, a14, bigDecimal4, (BigDecimal) androidx.activity.o.s(bigDecimal2, BigDecimal.ZERO, new BigDecimal(100)), localDate2.isBefore(LocalDate.now()), leavesSummaryDtoApi.f4053j, leavesSummaryDtoApi.f4051h)); } bigDecimal2 = BigDecimal.ZERO; return new wi.b(new r9.u(a11, a12, a13, bigDecimal3, localDate, a14, bigDecimal4, (BigDecimal) androidx.activity.o.s(bigDecimal2, BigDecimal.ZERO, new BigDecimal(100)), localDate2.isBefore(LocalDate.now()), leavesSummaryDtoApi.f4053j, leavesSummaryDtoApi.f4051h)); } if (cVar instanceof wi.a) { return cVar; } throw new com.airbnb.epoxy.b0(); } } dVar2 = new d(dVar); Object obj2 = dVar2.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = dVar2.G; if (i10 == 0) { } cVar = (wi.c) obj2; m8.j jVar2 = kVar.f18353f; if (!(cVar instanceof wi.b)) { } } @Override public final Object b(long j5, tp.d<? super wi.c<pp.n, ? extends x9.b>> dVar) { i(); return this.f18348a.f("https://hr.breathehr.com", j5, dVar); } @Override public final Object c(tp.d<? super wi.c<? extends List<r9.p>, ? extends x9.b>> dVar) { f fVar; int i10; k kVar; wi.c cVar; if (dVar instanceof f) { fVar = (f) dVar; int i11 = fVar.G; if ((i11 & Integer.MIN_VALUE) != 0) { fVar.G = i11 - Integer.MIN_VALUE; Object obj = fVar.E; up.a aVar = up.a.COROUTINE_SUSPENDED; i10 = fVar.G; if (i10 == 0) { if (i10 == 1) { kVar = fVar.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); fVar.D = this; fVar.G = 1; obj = this.f18348a.c("https://hr.breathehr.com", fVar); if (obj == aVar) { return aVar; } kVar = this; } cVar = (wi.c) obj; if (!(cVar instanceof wi.b)) { List list = (List) ((wi.b) cVar).f16948a; ArrayList arrayList = new ArrayList(qp.q.J(list, 10)); Iterator it = list.iterator(); while (it.hasNext()) { arrayList.add(kVar.f18350c.a((LeaveAbsenceDtoApi) it.next(), p.a.TAKEN)); } return new wi.b(arrayList); } if (cVar instanceof wi.a) { return cVar; } throw new com.airbnb.epoxy.b0(); } } fVar = new f(dVar); Object obj2 = fVar.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = fVar.G; if (i10 == 0) { } cVar = (wi.c) obj2; if (!(cVar instanceof wi.b)) { } } @Override public final Object d(tp.d<? super wi.c<? extends List<r9.p>, ? extends x9.b>> dVar) { b bVar; int i10; k kVar; wi.c cVar; if (dVar instanceof b) { bVar = (b) dVar; int i11 = bVar.G; if ((i11 & Integer.MIN_VALUE) != 0) { bVar.G = i11 - Integer.MIN_VALUE; Object obj = bVar.E; up.a aVar = up.a.COROUTINE_SUSPENDED; i10 = bVar.G; if (i10 == 0) { if (i10 == 1) { kVar = bVar.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); bVar.D = this; bVar.G = 1; obj = this.f18348a.e("https://hr.breathehr.com", bVar); if (obj == aVar) { return aVar; } kVar = this; } cVar = (wi.c) obj; if (!(cVar instanceof wi.b)) { List list = (List) ((wi.b) cVar).f16948a; ArrayList arrayList = new ArrayList(qp.q.J(list, 10)); Iterator it = list.iterator(); while (it.hasNext()) { arrayList.add(kVar.f18350c.a((LeaveAbsenceDtoApi) it.next(), p.a.BOOKED)); } return new wi.b(arrayList); } if (cVar instanceof wi.a) { return cVar; } throw new com.airbnb.epoxy.b0(); } } bVar = new b(dVar); Object obj2 = bVar.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = bVar.G; if (i10 == 0) { } cVar = (wi.c) obj2; if (!(cVar instanceof wi.b)) { } } @Override public final Object e(tp.d<? super wi.c<? extends List<r9.r>, ? extends x9.b>> dVar) { c cVar; int i10; k kVar; wi.c cVar2; if (dVar instanceof c) { cVar = (c) dVar; int i11 = cVar.G; if ((i11 & Integer.MIN_VALUE) != 0) { cVar.G = i11 - Integer.MIN_VALUE; Object obj = cVar.E; up.a aVar = up.a.COROUTINE_SUSPENDED; i10 = cVar.G; if (i10 == 0) { if (i10 == 1) { kVar = cVar.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); cVar.D = this; cVar.G = 1; obj = this.f18348a.h("https://hr.breathehr.com", cVar); if (obj == aVar) { return aVar; } kVar = this; } cVar2 = (wi.c) obj; if (!(cVar2 instanceof wi.b)) { List<LeaveReasonDtoApi> list = (List) ((wi.b) cVar2).f16948a; m8.g gVar = kVar.f18349b; ArrayList arrayList = new ArrayList(qp.q.J(list, 10)); for (LeaveReasonDtoApi leaveReasonDtoApi : list) { gVar.getClass(); cq.l.f(leaveReasonDtoApi, "dto"); arrayList.add(new r9.r(leaveReasonDtoApi.f4008a, leaveReasonDtoApi.f4009b)); } return new wi.b(arrayList); } if (cVar2 instanceof wi.a) { return cVar2; } throw new com.airbnb.epoxy.b0(); } } cVar = new c(dVar); Object obj2 = cVar.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = cVar.G; if (i10 == 0) { } cVar2 = (wi.c) obj2; if (!(cVar2 instanceof wi.b)) { } } @Override public final Object f(String str, long j5, tp.d dVar) { h8.b bVar = this.f18348a; i(); return bVar.b("https://hr.breathehr.com", j5, new CancelBookedLeaveRequestDtoApi(str), dVar); } @Override public final Object g(tp.d<? super wi.c<? extends List<r9.s>, ? extends x9.b>> dVar) { e eVar; int i10; k kVar; wi.c cVar; if (dVar instanceof e) { eVar = (e) dVar; int i11 = eVar.G; if ((i11 & Integer.MIN_VALUE) != 0) { eVar.G = i11 - Integer.MIN_VALUE; Object obj = eVar.E; up.a aVar = up.a.COROUTINE_SUSPENDED; i10 = eVar.G; if (i10 == 0) { if (i10 == 1) { kVar = eVar.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); eVar.D = this; eVar.G = 1; obj = this.f18348a.a("https://hr.breathehr.com", eVar); if (obj == aVar) { return aVar; } kVar = this; } cVar = (wi.c) obj; if (!(cVar instanceof wi.b)) { List list = (List) ((wi.b) cVar).f16948a; m8.h hVar = kVar.f18351d; ArrayList arrayList = new ArrayList(qp.q.J(list, 10)); Iterator it = list.iterator(); while (it.hasNext()) { arrayList.add(hVar.b((LeaveRequestDtoApi) it.next())); } return new wi.b(arrayList); } if (cVar instanceof wi.a) { return cVar; } throw new com.airbnb.epoxy.b0(); } } eVar = new e(dVar); Object obj2 = eVar.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = eVar.G; if (i10 == 0) { } cVar = (wi.c) obj2; if (!(cVar instanceof wi.b)) { } } @Override public final Object h(r9.c cVar, tp.d<? super wi.c<r9.s, ? extends x9.b>> dVar) { a aVar; int i10; Long l10; String str; CreateLeaveRequestDtoApi createLeaveRequestDtoApi; Long l11; String str2; Long l12; String str3; String str4; k kVar; Long l13; String str5; wi.c cVar2; if (dVar instanceof a) { aVar = (a) dVar; int i11 = aVar.G; if ((i11 & Integer.MIN_VALUE) != 0) { aVar.G = i11 - Integer.MIN_VALUE; Object obj = aVar.E; up.a aVar2 = up.a.COROUTINE_SUSPENDED; i10 = aVar.G; if (i10 == 0) { if (i10 == 1) { kVar = aVar.D; m0.r(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } } else { m0.r(obj); i(); m8.h hVar = this.f18351d; hVar.getClass(); cq.l.f(cVar, "request"); boolean z10 = cVar instanceof c.b; String str6 = null; m8.b bVar = hVar.f10781a; m8.i iVar = hVar.f10784d; if (z10) { c.b bVar2 = (c.b) cVar; iVar.getClass(); String a10 = m8.i.a(bVar2.f13507a); r9.r rVar = bVar2.f13508b; if (rVar != null) { l13 = Long.valueOf(rVar.A); } else { l13 = null; } LocalDate localDate = bVar2.f13509c; LocalDate localDate2 = bVar2.f13510d; boolean z11 = bVar2.f13511e; boolean z12 = bVar2.f13512f; String str7 = bVar2.f13513g; r9.g gVar = bVar2.f13514h; if (gVar != null) { bVar.getClass(); str5 = m8.b.a(gVar); } else { str5 = null; } r9.g gVar2 = bVar2.f13515i; if (gVar2 != null) { bVar.getClass(); str6 = m8.b.a(gVar2); } createLeaveRequestDtoApi = new CreateLeaveRequestDtoApi(a10, l13, localDate, localDate2, z11, z12, str7, str5, str6, null, null, null, null, null, null, null, 65024, null); } else if (cVar instanceof c.a) { c.a aVar3 = (c.a) cVar; iVar.getClass(); String a11 = m8.i.a(aVar3.f13497a); r9.r rVar2 = aVar3.f13498b; if (rVar2 != null) { l12 = Long.valueOf(rVar2.A); } else { l12 = null; } LocalDate localDate3 = aVar3.f13499c; LocalDate localDate4 = aVar3.f13500d; boolean z13 = aVar3.f13501e; boolean z14 = aVar3.f13502f; String str8 = aVar3.f13503g; r9.g gVar3 = aVar3.f13505i; if (gVar3 != null) { bVar.getClass(); str3 = m8.b.a(gVar3); } else { str3 = null; } r9.g gVar4 = aVar3.f13506j; if (gVar4 != null) { bVar.getClass(); str4 = m8.b.a(gVar4); } else { str4 = null; } Double d10 = aVar3.f13504h; if (d10 != null) { str6 = d10.toString(); } createLeaveRequestDtoApi = new CreateLeaveRequestDtoApi(a11, l12, localDate3, localDate4, z13, z14, str8, str3, str4, null, null, null, null, str6, null, null, 56832, null); } else if (cVar instanceof c.d) { c.d dVar2 = (c.d) cVar; iVar.getClass(); String a12 = m8.i.a(dVar2.f13527a); r9.r rVar3 = dVar2.f13528b; if (rVar3 != null) { l11 = Long.valueOf(rVar3.A); } else { l11 = null; } LocalDate localDate5 = dVar2.f13529c; LocalDate localDate6 = dVar2.f13530d; boolean z15 = dVar2.f13531e; boolean z16 = dVar2.f13532f; String str9 = dVar2.f13533g; r9.g gVar5 = dVar2.f13538l; if (gVar5 != null) { bVar.getClass(); str2 = m8.b.a(gVar5); } else { str2 = null; } r9.g gVar6 = dVar2.f13539m; if (gVar6 != null) { bVar.getClass(); str6 = m8.b.a(gVar6); } createLeaveRequestDtoApi = new CreateLeaveRequestDtoApi(a12, l11, localDate5, localDate6, z15, z16, str9, str2, str6, Integer.valueOf(dVar2.f13534h), Double.valueOf(m8.h.a(dVar2.f13535i)), Integer.valueOf(dVar2.f13536j), Double.valueOf(m8.h.a(dVar2.f13537k)), null, null, null, 57344, null); } else if (cVar instanceof c.C0540c) { c.C0540c c0540c = (c.C0540c) cVar; iVar.getClass(); String a13 = m8.i.a(c0540c.f13516a); r9.r rVar4 = c0540c.f13517b; if (rVar4 != null) { l10 = Long.valueOf(rVar4.A); } else { l10 = null; } LocalDate localDate7 = c0540c.f13518c; LocalDate localDate8 = c0540c.f13519d; boolean z17 = c0540c.f13520e; boolean z18 = c0540c.f13521f; String str10 = c0540c.f13522g; r9.g gVar7 = c0540c.f13525j; if (gVar7 != null) { bVar.getClass(); str = m8.b.a(gVar7); } else { str = null; } r9.g gVar8 = c0540c.f13526k; if (gVar8 != null) { bVar.getClass(); str6 = m8.b.a(gVar8); } createLeaveRequestDtoApi = new CreateLeaveRequestDtoApi(a13, l10, localDate7, localDate8, z17, z18, str10, str, str6, null, null, null, null, null, String.valueOf(c0540c.f13523h), String.valueOf(m8.h.a(c0540c.f13524i)), 15872, null); } else { throw new com.airbnb.epoxy.b0(); } aVar.D = this; aVar.G = 1; obj = this.f18348a.g("https://hr.breathehr.com", createLeaveRequestDtoApi, aVar); if (obj == aVar2) { return aVar2; } kVar = this; } cVar2 = (wi.c) obj; m8.h hVar2 = kVar.f18351d; if (!(cVar2 instanceof wi.b)) { return new wi.b(hVar2.b((LeaveRequestDtoApi) ((wi.b) cVar2).f16948a)); } if (cVar2 instanceof wi.a) { return cVar2; } throw new com.airbnb.epoxy.b0(); } } aVar = new a(dVar); Object obj2 = aVar.E; up.a aVar22 = up.a.COROUTINE_SUSPENDED; i10 = aVar.G; if (i10 == 0) { } cVar2 = (wi.c) obj2; m8.h hVar22 = kVar.f18351d; if (!(cVar2 instanceof wi.b)) { } } public final String i() { this.f18352e.e(); return "https://hr.breathehr.com"; } }