导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - CreateGroupActivity.java 源代码

正在查看: BetterTogether v3.0.0 应用的 CreateGroupActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bettertogether.screens.group.create;

import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.emoji2.text.HPE.gudG;
import androidx.health.platform.client.proto.z;
import aq.i;
import cd.f;
import cn.b;
import com.bettertogether.remote.model.request.GroupRequest;
import com.bettertogether.screens.group.create.CreateGroupActivity;
import com.bettertogether.screens.sign_up.createChallenge.CreateChallengeActivity;
import com.google.firebase.messaging.e;
import dd.g;
import dd.w;
import hd.c;
import java.io.File;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.g0;
import kr.Cc.YzboWgFC;
import lq.m;
import lq.n;
import lq.o;
import lq.x;
import mc.d;
import md.l;
import oe.j;
import oe.k;
import s6.s;
import s8.h;
import w1.v2;
import z8.r;
import zc.u;
import zs.a;

@Metadata
public final class CreateGroupActivity extends u implements k, c {

    public final String f205e = "create_group_android";
    public final m i;

    public final m f206v;
    public final x w;
    public final GroupRequest x;
    public static final s y = new s(25, 0);
    public static final int M = xh.k.p();
    public static final int N = (int) b.e().f("floor_default");
    public static final int O = (int) b.e().f("water_default");
    public static final String[] P = {"4", "6", "8", "10", "12", "14", "16", gudG.WxjhlVlGnBWALgk, "20", "22", "24", "26", "28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52"};

    public CreateGroupActivity() {
        h s3 = e.s(this);
        a a = ((ys.a) s3.a).a(e.o(), new xs.c(g0.a(CreateGroupActivity.class)));
        oe.b bVar = new oe.b(this, 1);
        o oVar = o.d;
        this.i = n.a(oVar, new l(a, bVar, 9));
        this.f206v = n.a(oVar, new dd.s(this, 14));
        this.w = n.b(new oe.b(this, 0));
        this.x = new GroupRequest((File) null, (String) null, (Integer) null, (Integer) null, (Integer) null, (Integer) null, (Integer) null, (Integer) null, (String) null, (String) null, (String) null, (String) null, 4095, (DefaultConstructorMarker) null);
    }

    public final String getAnalyticsScreenName() {
        return this.f205e;
    }

    public final View getView() {
        ConstraintLayout constraintLayout = t().a;
        Intrinsics.checkNotNullExpressionValue(constraintLayout, "binding.root");
        return constraintLayout;
    }

    public final void hideLoadingDialog() {
        t().h.a();
        enableViews();
    }

    public final void initViews() {
        Bundle extras = getIntent().getExtras();
        final int i = 1;
        if (extras != null && extras.containsKey("IsFromChallengeScreen")) {
            u().c.h.r("from_challenge", true);
        }
        f t = t();
        GroupRequest groupRequest = this.x;
        groupRequest.setDefaultValues();
        Locale locale = Locale.getDefault();
        Intrinsics.checkNotNullExpressionValue(locale, "getDefault()");
        if (TextUtils.getLayoutDirectionFromLocale(locale) == 1) {
            t.b.c.setRotation(180.0f);
        } else {
            t.b.c.setRotation(0.0f);
        }
        t.k.setText(String.valueOf(groupRequest.getStepsTarget()));
        t.l.setText(String.valueOf(groupRequest.getWaterTarget()));
        t.j.setText(String.valueOf(groupRequest.getFloorsTarget()));
        m mVar = this.f206v;
        bg.b bVar = (bg.b) mVar.getValue();
        ImageView imageView = t.c;
        Intrinsics.checkNotNullExpressionValue(imageView, "btnAvatar");
        bVar.getClass();
        bg.b.a(this, imageView, 2131230983, 0.0f, -1);
        bg.b bVar2 = (bg.b) mVar.getValue();
        ImageView imageView2 = t.g;
        Intrinsics.checkNotNullExpressionValue(imageView2, "ivCamera");
        bVar2.getClass();
        bg.b.d(this, 2131231240, imageView2, (com.bumptech.glide.a) null);
        t.i.setText(getString(2131951728, groupRequest.getChallengeDuration()));
        f t2 = t();
        t2.b.h.setText(getString(2131951849));
        final int i2 = 0;
        t2.b.c.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i3 = i2;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i3) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        t2.g.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i3 = i;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i3) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        t2.f.addTextChangedListener(new oe.d(this, 0));
        final int i3 = 2;
        t2.m.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i3;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        final int i4 = 3;
        t2.k.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i4;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        final int i5 = 4;
        t2.j.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i5;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        final int i6 = 5;
        t2.l.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i6;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        final int i7 = 6;
        t2.i.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i7;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
        t2.e.addTextChangedListener(new oe.d(this, 1));
        final int i9 = 7;
        t2.d.setOnClickListener(new View.OnClickListener(this) {

            public final CreateGroupActivity f709e;

            {
                this.f709e = this;
            }

            @Override
            public final void onClick(View view) {
                int i32 = i9;
                CreateGroupActivity createGroupActivity = this.f709e;
                switch (i32) {
                    case 0:
                        s sVar = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.s();
                        break;
                    case 1:
                        s sVar2 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.showImageSelectDialog();
                        break;
                    case z.VALUES_FIELD_NUMBER:
                        s sVar3 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        GroupRequest groupRequest2 = createGroupActivity.x;
                        new w(new c(createGroupActivity, 4), 1, 2131952379, groupRequest2.getWeightTarget() != null ? groupRequest2.getWeightTarget() : 5).show(createGroupActivity.getSupportFragmentManager(), YzboWgFC.JFWvE);
                        break;
                    case 3:
                        s sVar4 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 2), 2131952525, CreateGroupActivity.M, 1000, createGroupActivity.x.getStepsTarget(), Boolean.TRUE, 1000).show(createGroupActivity.getSupportFragmentManager(), "stepsTarget");
                        break;
                    case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                        s sVar5 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 1), 2131952007, CreateGroupActivity.N, 1, createGroupActivity.x.getFloorsTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "floorsTarget");
                        break;
                    case z.DATA_ORIGIN_FIELD_NUMBER:
                        s sVar6 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new g(new c(createGroupActivity, 3), 2131952602, CreateGroupActivity.O, 1, createGroupActivity.x.getWaterTarget(), Boolean.TRUE).show(createGroupActivity.getSupportFragmentManager(), "waterTarget");
                        break;
                    case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                        s sVar7 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.getClass();
                        new dd.u(new c(createGroupActivity, 0), 2131952610, createGroupActivity.x.getChallengeDuration(), CreateGroupActivity.P).show(createGroupActivity.getSupportFragmentManager(), "challengeDuration");
                        break;
                    default:
                        s sVar8 = CreateGroupActivity.y;
                        Intrinsics.checkNotNullParameter(createGroupActivity, "this$0");
                        createGroupActivity.u().c.h.r("from_challenge", false);
                        j u4 = createGroupActivity.u();
                        u4.getClass();
                        GroupRequest groupRequest3 = createGroupActivity.x;
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        Intrinsics.checkNotNullParameter(groupRequest3, "request");
                        c3.f y3 = d.y(groupRequest3.getGroupName());
                        if (y3.d) {
                            y3 = groupRequest3.getWeightTarget() == null ? new c3.f(false, 2131952391) : new c3.f();
                            if (y3.d) {
                                y3 = groupRequest3.getStepsTarget() == null ? new c3.f(false, 2131952389) : new c3.f();
                                if (y3.d) {
                                    y3 = groupRequest3.getFloorsTarget() == null ? new c3.f(false, 2131952388) : new c3.f();
                                    if (y3.d) {
                                        y3 = groupRequest3.getWaterTarget() == null ? new c3.f(false, 2131952390) : new c3.f();
                                        if (y3.d) {
                                            y3 = d.C(groupRequest3.getChallengePrize());
                                            if (y3.d) {
                                                y3 = new c3.f();
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        boolean z = y3.d;
                        k kVar = ((ad.a) u4).a;
                        if (!z) {
                            kVar.showErrorMessageDialog(y3.e);
                            break;
                        } else {
                            kVar.showLoadingDialog();
                            i iVar = new i(new i(com.android.billingclient.api.a.h(Unit.a, "just(view.showLoadingDialog())"), new if.d(12, new g(0, groupRequest3)), 1), new if.d(13, new r(24, u4, groupRequest3)), 0);
                            Intrinsics.checkNotNullExpressionValue(iVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            aq.e eVar = new aq.e(new aq.e(new aq.b(1, kotlin.jvm.internal.o.D0(iVar), new v2(u4, 28)), new me.r(17, new h(u4, 0)), 2), new me.r(18, new h(u4, 1)), 0);
                            Intrinsics.checkNotNullExpressionValue(eVar, "fun createGroup(request:…   .addDisposable()\n    }");
                            com.bumptech.glide.d.m(u4, eVar);
                            break;
                        }
                }
            }
        });
    }

    public final void onBackPressed() {
        s();
    }

    public final void onImageFileReady(Pair pair) {
        Intrinsics.checkNotNullParameter(pair, "result");
        File file = (File) pair.e;
        if (file != null) {
            bg.b bVar = (bg.b) this.f206v.getValue();
            ImageView imageView = t().c;
            Intrinsics.checkNotNullExpressionValue(imageView, "binding.btnAvatar");
            bVar.getClass();
            bg.b.e(this, file, imageView, true);
            this.x.setGroupCover(file);
            v();
        }
    }

    public final ad.a providePresenter() {
        return u();
    }

    public final void s() {
        if (!this.x.hasAnyChanges()) {
            if (!u().c.h.b("from_challenge", false)) {
                super/*androidx.activity.o*/.onBackPressed();
                return;
            } else {
                startActivity(new Intent((Context) this, (Class<?>) CreateChallengeActivity.class));
                finishAffinity();
                return;
            }
        }
        h.k kVar = new h.k(this);
        kVar.u(2131951687);
        kVar.o(2131951894);
        kVar.s(2131951893, new dd.h(this, 5));
        kVar.q(2131951723, (DialogInterface.OnClickListener) null);
        kVar.f().show();
    }

    public final void showLoadingDialog() {
        disableViews();
        t().h.b();
    }

    public final f t() {
        return (f) this.w.getValue();
    }

    public final j u() {
        return (j) this.i.getValue();
    }

    public final void v() {
        if (this.x.hasCompletedAllMandatoryFields()) {
            t().d.setBackground(z2.h.getDrawable(this, 2131230928));
        } else {
            t().d.setBackground(z2.h.getDrawable(this, 2131231010));
        }
    }
}