APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Соседи
版本号:3.1.3
包名称:by.imlab.sosedi.kupilka

MD5 校验值:52ffe34fa08a87a6cc4bc36d7eb3dad1

反编译源代码说明

c.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package g8;

import a1.t;
import am.p;
import bk.a;
import bm.m;
import by.imlab.sosedi.kupilka.data.dataLocal.product.model.PromotionProductLocal;
import by.imlab.sosedi.kupilka.data.dataLocal.promotions.model.PromotionCategoryLocal;
import by.imlab.sosedi.kupilka.data.dataRemote.promotion.ProductRemote;
import by.imlab.sosedi.kupilka.data.dataRemote.promotion.PromotionProductRespRemote;
import dg.z;
import eg.qb;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import qo.f0;

@ul.e(c = "by.imlab.sosedi.kupilka.domain.repository.product.ProductRepositoryImpl$getProductsByPromotion$2", f = "ProductRepositoryImpl.kt", l = {124, 134}, m = "invokeSuspend")
public final class c extends ul.i implements p<f0, sl.d<? super bk.a<? extends List<? extends PromotionProductLocal>, ? extends ol.l>>, Object> {

    public bk.a f15550e;

    public int f15551f;

    public final a f15552g;

    public final List<String> f15553h;

    public final List<PromotionCategoryLocal> f15554i;

    public c(a aVar, List<String> list, List<PromotionCategoryLocal> list2, sl.d<? super c> dVar) {
        super(2, dVar);
        this.f15552g = aVar;
        this.f15553h = list;
        this.f15554i = list2;
    }

    @Override
    public final sl.d<ol.l> a(Object obj, sl.d<?> dVar) {
        return new c(this.f15552g, this.f15553h, this.f15554i, dVar);
    }

    @Override
    public final Object h0(f0 f0Var, sl.d<? super bk.a<? extends List<? extends PromotionProductLocal>, ? extends ol.l>> dVar) {
        return ((c) a(f0Var, dVar)).l(ol.l.f28027a);
    }

    @Override
    public final Object l(Object obj) {
        Object o10;
        bk.a aVar;
        PromotionProductLocal promotionProductLocal;
        Iterator it;
        a aVar2;
        List<String> list;
        String str;
        String str2;
        String str3;
        String str4;
        String str5;
        String str6;
        String str7;
        String str8;
        String str9;
        Iterator it2;
        Object obj2;
        PromotionCategoryLocal promotionCategoryLocal;
        String str10;
        String str11;
        Iterator it3;
        boolean z10;
        tl.a aVar3 = tl.a.COROUTINE_SUSPENDED;
        int i10 = this.f15551f;
        if (i10 != 0) {
            if (i10 != 1) {
                if (i10 == 2) {
                    aVar = this.f15550e;
                    qb.I0(obj);
                    return aVar;
                }
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            qb.I0(obj);
            o10 = obj;
        } else {
            qb.I0(obj);
            q6.b bVar = this.f15552g.f15527b;
            this.f15551f = 1;
            o10 = bVar.o(this);
            if (o10 == aVar3) {
                return aVar3;
            }
        }
        bk.a aVar4 = (bk.a) o10;
        a aVar5 = this.f15552g;
        List<String> list2 = this.f15553h;
        List<PromotionCategoryLocal> list3 = this.f15554i;
        if (aVar4 instanceof a.c) {
            a.c cVar = (a.c) aVar4;
            int i11 = cVar.f4013a;
            List list4 = (List) cVar.f4014b;
            ArrayList arrayList = new ArrayList();
            Iterator it4 = list4.iterator();
            int i12 = 0;
            while (it4.hasNext()) {
                Object next = it4.next();
                int i13 = i12 + 1;
                if (i12 >= 0) {
                    PromotionProductRespRemote promotionProductRespRemote = (PromotionProductRespRemote) next;
                    aVar5.f15529d.getClass();
                    m.f(promotionProductRespRemote, "remote");
                    m.f(list2, "favoritesCodes");
                    m.f(list3, "promotions");
                    ProductRemote productRemote = promotionProductRespRemote.f4737i;
                    if (productRemote == null || productRemote.f4712i == null) {
                        promotionProductLocal = null;
                        it = it4;
                        aVar2 = aVar5;
                        list = list2;
                    } else {
                        String str12 = promotionProductRespRemote.f4729a;
                        String str13 = promotionProductRespRemote.f4730b;
                        String str14 = promotionProductRespRemote.f4731c;
                        String str15 = promotionProductRespRemote.f4732d;
                        if (str15 == null) {
                            str = "";
                        } else {
                            str = str15;
                        }
                        String str16 = promotionProductRespRemote.f4733e;
                        if (str16 == null) {
                            str2 = "";
                        } else {
                            str2 = str16;
                        }
                        double v10 = z.v(promotionProductRespRemote.f4734f);
                        double v11 = z.v(promotionProductRespRemote.f4735g);
                        double v12 = z.v(promotionProductRespRemote.f4736h);
                        boolean contains = list2.contains(promotionProductRespRemote.f4729a);
                        ProductRemote productRemote2 = promotionProductRespRemote.f4737i;
                        it = it4;
                        String str17 = productRemote2.f4704a;
                        aVar2 = aVar5;
                        String str18 = productRemote2.f4705b;
                        if (str18 == null) {
                            str3 = "";
                        } else {
                            str3 = str18;
                        }
                        String str19 = productRemote2.f4706c;
                        if (str19 == null) {
                            str4 = "";
                        } else {
                            str4 = str19;
                        }
                        b7.a b10 = h8.a.b(productRemote2.f4707d);
                        b7.a b11 = h8.a.b(productRemote2.f4708e);
                        b7.a b12 = h8.a.b(productRemote2.f4709f);
                        String str20 = productRemote2.f4710g;
                        if (str20 == null) {
                            str5 = "";
                        } else {
                            str5 = str20;
                        }
                        String str21 = productRemote2.f4711h;
                        if (str21 == null) {
                            str6 = "";
                        } else {
                            str6 = str21;
                        }
                        String str22 = productRemote2.f4712i;
                        if (str22 != null) {
                            if (str22.length() > 0) {
                                z10 = true;
                            } else {
                                z10 = false;
                            }
                            if (!z10) {
                                str22 = null;
                            }
                            if (str22 != null) {
                                str7 = bm.l.a("https://adminapp.sosedi.by", str22);
                                if (str7 != null) {
                                    str8 = "";
                                } else {
                                    str8 = str7;
                                }
                                b7.b bVar2 = new b7.b(str17, str3, str4, b10, b11, b12, str5, str6, str8);
                                str9 = promotionProductRespRemote.f4738j;
                                if (str9 == null) {
                                    str9 = "2";
                                }
                                it2 = list3.iterator();
                                while (true) {
                                    if (!it2.hasNext()) {
                                        obj2 = it2.next();
                                        it3 = it2;
                                        list = list2;
                                        if (m.a(((PromotionCategoryLocal) obj2).f4483a, promotionProductRespRemote.f4729a)) {
                                            break;
                                        }
                                        it2 = it3;
                                        list2 = list;
                                    } else {
                                        list = list2;
                                        obj2 = null;
                                        break;
                                    }
                                }
                                promotionCategoryLocal = (PromotionCategoryLocal) obj2;
                                if (promotionCategoryLocal == null) {
                                    str10 = promotionCategoryLocal.f4487e;
                                } else {
                                    str10 = null;
                                }
                                if (str10 != null) {
                                    str11 = "";
                                } else {
                                    str11 = str10;
                                }
                                promotionProductLocal = new PromotionProductLocal(str12, str13, str14, str, str2, v10, v11, v12, str9, str11, bVar2, contains, i12);
                            }
                        }
                        str7 = null;
                        if (str7 != null) {
                        }
                        b7.b bVar22 = new b7.b(str17, str3, str4, b10, b11, b12, str5, str6, str8);
                        str9 = promotionProductRespRemote.f4738j;
                        if (str9 == null) {
                        }
                        it2 = list3.iterator();
                        while (true) {
                            if (!it2.hasNext()) {
                            }
                            it2 = it3;
                            list2 = list;
                        }
                        promotionCategoryLocal = (PromotionCategoryLocal) obj2;
                        if (promotionCategoryLocal == null) {
                        }
                        if (str10 != null) {
                        }
                        promotionProductLocal = new PromotionProductLocal(str12, str13, str14, str, str2, v10, v11, v12, str9, str11, bVar22, contains, i12);
                    }
                    if (promotionProductLocal != null) {
                        arrayList.add(promotionProductLocal);
                    }
                    it4 = it;
                    i12 = i13;
                    list2 = list;
                    aVar5 = aVar2;
                } else {
                    t.H();
                    throw null;
                }
            }
            aVar4 = new a.c(i11, arrayList);
        } else if (!(aVar4 instanceof a.C0066a) && !(aVar4 instanceof a.b)) {
            throw new NoWhenBranchMatchedException();
        }
        a aVar6 = this.f15552g;
        if (aVar4 instanceof a.c) {
            a.c cVar2 = (a.c) aVar4;
            cVar2.getClass();
            List<PromotionProductLocal> list5 = (List) cVar2.f4014b;
            a7.a aVar7 = aVar6.f15530e;
            this.f15550e = aVar4;
            this.f15551f = 2;
            if (aVar7.f(list5, this) == aVar3) {
                return aVar3;
            }
            aVar = aVar4;
            return aVar;
        }
        return aVar4;
    }
}