PhotoRoom v4.8.2版本的 MD5 值为:c40a01bb3380c0f75c0cb6ac6760f295

以下内容为反编译后的 b.java 源代码,内容仅作参考


package cp;

import android.graphics.Bitmap;
import android.net.Uri;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.cardview.widget.CardView;
import b10.e1;
import b10.k;
import b10.o0;
import b10.p0;
import com.google.android.gms.tasks.Task;
import com.google.firebase.storage.l;
import com.sun.jna.Function;
import cp.b;
import hy.p;
import hy.q;
import java.util.Arrays;
import kotlin.coroutines.jvm.internal.m;
import kotlin.jvm.internal.t;
import kotlin.jvm.internal.v;
import kotlin.jvm.internal.v0;
import lu.u0;
import lu.x0;
import px.f1;
import px.n0;
import ux.d;
import vm.c1;
public final class b extends eu.b {
    private final c1 f38822m;

    static final class a extends m implements p {
        int f38823h;
        final l f38824i;
        final du.a f38825j;
        final b f38826k;

        public static final class C0660a extends m implements p {
            int f38827h;
            final b f38828i;
            final String f38829j;
            final du.a f38830k;
            final Uri f38831l;

            public static final class C0661a extends v implements p {
                final b f38832g;
                final du.a f38833h;
                final Uri f38834i;

                public static final class C0662a extends v implements hy.a {
                    final du.a f38835g;
                    final Uri f38836h;
                    final b f38837i;
                    final Bitmap f38838j;

                    C0662a(du.a aVar, Uri uri, b bVar, Bitmap bitmap) {
                        super(0);
                        this.f38835g = aVar;
                        this.f38836h = uri;
                        this.f38837i = bVar;
                        this.f38838j = bitmap;
                    }

                    @Override
                    public Object invoke() {
                        m3674invoke();
                        return f1.f64673a;
                    }

                    public final void m3674invoke() {
                        q s11 = ((ap.a) this.f38835g).s();
                        if (s11 != null) {
                            Uri url = this.f38836h;
                            t.h(url, "$url");
                            CardView helpCenterVideoCardView = this.f38837i.p().f76604b;
                            t.h(helpCenterVideoCardView, "helpCenterVideoCardView");
                            s11.invoke(url, helpCenterVideoCardView, this.f38838j);
                        }
                    }
                }

                C0661a(b bVar, du.a aVar, Uri uri) {
                    super(2);
                    this.f38832g = bVar;
                    this.f38833h = aVar;
                    this.f38834i = uri;
                }

                public static final void c(b this$0, du.a cell, Uri uri, Bitmap bitmap, View view) {
                    t.i(this$0, "this$0");
                    t.i(cell, "$cell");
                    AppCompatTextView helpCenterVideoDuration = this$0.p().f76605c;
                    t.h(helpCenterVideoDuration, "helpCenterVideoDuration");
                    u0.A(helpCenterVideoDuration, (r19 & 1) != 0 ? 0.0f : 0.0f, (r19 & 2) != 0 ? 0L : 0L, (r19 & 4) != 0 ? 250L : 150L, (r19 & 8) != 0, (r19 & 16) != 0 ? false : false, (r19 & 32) != 0 ? new h4.b() : null, (r19 & 64) != 0 ? null : null);
                    AppCompatTextView helpCenterVideoTitle = this$0.p().f76609g;
                    t.h(helpCenterVideoTitle, "helpCenterVideoTitle");
                    u0.A(helpCenterVideoTitle, (r19 & 1) != 0 ? 0.0f : 0.0f, (r19 & 2) != 0 ? 0L : 0L, (r19 & 4) != 0 ? 250L : 150L, (r19 & 8) != 0, (r19 & 16) != 0 ? false : false, (r19 & 32) != 0 ? new h4.b() : null, (r19 & 64) != 0 ? null : new C0662a(cell, uri, this$0, bitmap));
                }

                public final void b(boolean z11, final Bitmap bitmap) {
                    View view = this.f38832g.p().f76606d;
                    final b bVar = this.f38832g;
                    final du.a aVar = this.f38833h;
                    final Uri uri = this.f38834i;
                    view.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public final void onClick(View view2) {
                            b.a.C0660a.C0661a.c(b.this, aVar, uri, bitmap, view2);
                        }
                    });
                }

                @Override
                public Object invoke(Object obj, Object obj2) {
                    b(((Boolean) obj).booleanValue(), (Bitmap) obj2);
                    return f1.f64673a;
                }
            }

            C0660a(b bVar, String str, du.a aVar, Uri uri, d dVar) {
                super(2, dVar);
                this.f38828i = bVar;
                this.f38829j = str;
                this.f38830k = aVar;
                this.f38831l = uri;
            }

            @Override
            public final d create(Object obj, d dVar) {
                return new C0660a(this.f38828i, this.f38829j, this.f38830k, this.f38831l, dVar);
            }

            @Override
            public final Object invoke(o0 o0Var, d dVar) {
                return ((C0660a) create(o0Var, dVar)).invokeSuspend(f1.f64673a);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                vx.d.e();
                if (this.f38827h == 0) {
                    n0.b(obj);
                    AppCompatImageView helpCenterVideoImage = this.f38828i.p().f76607e;
                    t.h(helpCenterVideoImage, "helpCenterVideoImage");
                    x0.g(helpCenterVideoImage, this.f38829j, (r28 & 2) != 0 ? false : false, (r28 & 4) != 0 ? false : false, (r28 & 8) != 0 ? false : false, (r28 & 16) != 0 ? false : false, (r28 & 32) != 0 ? false : false, (r28 & 64) != 0 ? null : null, (r28 & 128) != 0 ? false : true, (r28 & Function.MAX_NARGS) != 0 ? 1 : 0, (r28 & 512) != 0 ? -1 : 0, (r28 & 1024) != 0 ? null : null, (r28 & 2048) == 0, (r28 & 4096) == 0 ? new C0661a(this.f38828i, this.f38830k, this.f38831l) : null);
                    return f1.f64673a;
                }
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
        }

        a(l lVar, du.a aVar, b bVar, d dVar) {
            super(2, dVar);
            this.f38824i = lVar;
            this.f38825j = aVar;
            this.f38826k = bVar;
        }

        @Override
        public final d create(Object obj, d dVar) {
            return new a(this.f38824i, this.f38825j, this.f38826k, dVar);
        }

        @Override
        public final Object invoke(o0 o0Var, d dVar) {
            return ((a) create(o0Var, dVar)).invokeSuspend(f1.f64673a);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object e11;
            Uri parse;
            e11 = vx.d.e();
            int i11 = this.f38823h;
            try {
                if (i11 == 0) {
                    n0.b(obj);
                    Task i12 = this.f38824i.i();
                    t.h(i12, "getDownloadUrl(...)");
                    this.f38823h = 1;
                    obj = m10.b.a(i12, this);
                    if (obj == e11) {
                        return e11;
                    }
                } else if (i11 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                } else {
                    n0.b(obj);
                }
                parse = (Uri) obj;
            } catch (Exception unused) {
                parse = Uri.parse("");
            }
            Uri uri = parse;
            v0 v0Var = v0.f55813a;
            String format = String.format("https://cdn.photoroom.com/v1/assets-cached.jpg?path=%s", Arrays.copyOf(new Object[]{((ap.a) this.f38825j).p().getThumbImage()}, 1));
            t.h(format, "format(format, *args)");
            k.d(p0.b(), e1.c(), null, new C0660a(this.f38826k, format, this.f38825j, uri, null), 2, null);
            return f1.f64673a;
        }
    }

    static final class C0663b extends v implements hy.a {
        C0663b() {
            super(0);
        }

        @Override
        public Object invoke() {
            m3675invoke();
            return f1.f64673a;
        }

        public final void m3675invoke() {
            AppCompatTextView helpCenterVideoDuration = b.this.p().f76605c;
            t.h(helpCenterVideoDuration, "helpCenterVideoDuration");
            u0.M(helpCenterVideoDuration, null, 0.0f, 0L, 150L, null, null, 55, null);
            AppCompatTextView helpCenterVideoTitle = b.this.p().f76609g;
            t.h(helpCenterVideoTitle, "helpCenterVideoTitle");
            u0.M(helpCenterVideoTitle, null, 0.0f, 0L, 150L, null, null, 55, null);
        }
    }

    public b(c1 binding) {
        super(binding);
        t.i(binding, "binding");
        this.f38822m = binding;
    }

    @Override
    public void m(du.a cell) {
        t.i(cell, "cell");
        super.m(cell);
        if (cell instanceof ap.a) {
            ap.a aVar = (ap.a) cell;
            this.f38822m.f76609g.setText(aVar.p().getLocalizedTitle());
            this.f38822m.f76605c.setText(aVar.p().m3515getDuration());
            k.d(p0.b(), e1.b(), null, new a(aVar.p().getFirebasePathReference(), cell, this, null), 2, null);
            aVar.u(new C0663b());
            if (aVar.q()) {
                ViewGroup.LayoutParams layoutParams = this.f38822m.getRoot().getLayoutParams();
                layoutParams.width = -2;
                layoutParams.height = -1;
                return;
            }
            ViewGroup.LayoutParams layoutParams2 = this.f38822m.getRoot().getLayoutParams();
            layoutParams2.width = -1;
            layoutParams2.height = -2;
        }
    }

    public final c1 p() {
        return this.f38822m;
    }
}