导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - r.java 源代码

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

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


package z8;

import a0.g0;
import a9.h;
import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.widget.PopupWindow;
import androidx.health.platform.client.proto.z;
import aq.b;
import aq.e;
import aq.g;
import aq.i;
import be.l;
import com.appsamurai.storyly.StorylyView;
import com.appsamurai.storyly.data.managers.product.STRCart;
import com.appsamurai.storyly.data.managers.product.STRCartItem;
import com.appsamurai.storyly.data.managers.product.STRProductItem;
import com.bettertogether.BetterTogetherApp;
import com.bettertogether.cache.preferences.PreferenceData;
import com.bettertogether.remote.model.common.GroupData;
import com.bettertogether.remote.model.common.SendMessageData;
import com.bettertogether.remote.model.common.UserData;
import com.bettertogether.remote.model.request.GroupRequest;
import com.bettertogether.remote.model.request.UpdateUserProfileRequest;
import com.bettertogether.remote.model.request.WaterReminderRequest;
import com.bettertogether.remote.model.response.BaseResponse;
import com.bettertogether.remote.model.response.CreateGroupResponse;
import com.bettertogether.screens.account.create.OnBoardAccountActivity;
import com.bettertogether.screens.account.create.OnBoardAccountInteractor;
import com.bettertogether.screens.account.create.OnBoardAccountPresenter;
import com.bettertogether.screens.chat.view.ChatActivity;
import com.bettertogether.screens.dashboard.DashboardFragment;
import com.bettertogether.screens.group.details.GroupDetailsActivity;
import com.bettertogether.screens.sign_up.createChallenge.CreateChallengeActivity;
import com.bettertogether.socialLogin.SocialLoginRequest;
import com.google.android.gms.fitness.request.uOle.UrBgMnP;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.onesignal.y3;
import e9.y;
import en.w;
import fe.q;
import i8.f;
import java.io.File;
import java.net.ProtocolException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.regex.Pattern;
import jh.j;
import kc.n1;
import kc.x1;
import ke.c;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.o;
import me.i0;
import mp.a0;
import mp.e0;
import o9.l0;
import pe.k;
import pe.m;
import pl.c1;
import qf.d;
import s6.s;
import wr.b0;
import wr.c0;
import wr.d0;
import wr.h0;
import wr.k0;
import xc.a;
import yb.o0;

public final class r extends kotlin.jvm.internal.p implements Function1 {

    public final int f1071d;

    public final Object f1072e;
    public final Object i;

    public r(int i, Object obj, Object obj2) {
        super(1);
        this.f1071d = i;
        this.f1072e = obj;
        this.i = obj2;
    }

    public final e0 a(w wVar) {
        int i = this.f1071d;
        Object obj = this.i;
        Object obj2 = this.f1072e;
        switch (i) {
            case z.SUB_TYPE_DATA_LISTS_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(wVar, "it");
                me.p pVar = ((i0) obj2).c;
                Context context = (Context) obj;
                pVar.getClass();
                Intrinsics.checkNotNullParameter(context, "context");
                b b = pVar.j.a.p().a().b(new g(new f(2, pVar, context), 1));
                Intrinsics.checkNotNullExpressionValue(b, "usersRepository.clearAll…arPreferences(context) })");
                return b;
            default:
                Intrinsics.checkNotNullParameter(wVar, "it");
                ze.g gVar = (ze.g) obj2;
                b b4 = gVar.f1094d.a.p().a().b(new g(new f(3, gVar, (Context) obj), 1));
                Intrinsics.checkNotNullExpressionValue(b4, "usersRepository.clearAll…arPreferences(context) })");
                return b4;
        }
    }

    public final e0 b(Unit unit) {
        int i = this.f1071d;
        Object obj = this.i;
        Object obj2 = this.f1072e;
        switch (i) {
            case z.CLIENT_ID_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(unit, "it");
                OnBoardAccountInteractor onBoardAccountInteractor = ((OnBoardAccountPresenter) obj2).c;
                WaterReminderRequest waterReminderRequest = (WaterReminderRequest) obj;
                onBoardAccountInteractor.getClass();
                Intrinsics.checkNotNullParameter(waterReminderRequest, "request");
                e eVar = new e(new i(o.S0(onBoardAccountInteractor.g.I(waterReminderRequest)), new m(4, sd.f.x), 1), new a(22, sd.f.y), 2);
                Intrinsics.checkNotNullExpressionValue(eVar, "authorizedService.update…Json(it)}\")\n            }");
                return eVar;
            case z.CLIENT_VERSION_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(unit, "it");
                be.m mVar = ((be.p) obj2).c;
                UpdateUserProfileRequest updateUserProfileRequest = (UpdateUserProfileRequest) obj;
                mVar.getClass();
                Intrinsics.checkNotNullParameter(updateUserProfileRequest, "request");
                if (!updateUserProfileRequest.hasChangedAvatar() || !updateUserProfileRequest.hasChangedBasicInfo()) {
                    if (!updateUserProfileRequest.hasChangedAvatar()) {
                        return mVar.l(updateUserProfileRequest);
                    }
                    File userAvatar = updateUserProfileRequest.getUserAvatar();
                    Intrinsics.e(userAvatar);
                    return mVar.k(userAvatar);
                }
                File userAvatar2 = updateUserProfileRequest.getUserAvatar();
                Intrinsics.e(userAvatar2);
                b j = a0.j(mVar.k(userAvatar2), mVar.l(updateUserProfileRequest), new l0(12));
                Intrinsics.checkNotNullExpressionValue(j, "zip(\n                upd…          }\n            )");
                e eVar2 = new e(new i(o.S0(j), new m(15, sd.f.S), 1), new h(3, new l(mVar, 3)), 2);
                Intrinsics.checkNotNullExpressionValue(eVar2, "private fun updateProfil…ails)\n            }\n    }");
                return eVar2;
            case z.DEVICE_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(unit, "it");
                be.m mVar2 = ((be.p) obj2).c;
                WaterReminderRequest waterReminderRequest2 = (WaterReminderRequest) obj;
                mVar2.getClass();
                Intrinsics.checkNotNullParameter(waterReminderRequest2, "request");
                e eVar3 = new e(new i(o.S0(mVar2.g.I(waterReminderRequest2)), new m(14, sd.f.T), 1), new h(2, sd.f.U), 2);
                Intrinsics.checkNotNullExpressionValue(eVar3, "authorizedService.update…oJson(it)}\")\n           }");
                return eVar3;
            case z.MIN_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(unit, "it");
                q qVar = (q) obj2;
                fe.i iVar = qVar.c;
                File file = (File) obj;
                GroupData groupData = qVar.f;
                if (groupData == null) {
                    Intrinsics.m("group");
                    throw null;
                }
                Integer id = groupData.getId();
                Intrinsics.e(id);
                int intValue = id.intValue();
                iVar.getClass();
                Intrinsics.checkNotNullParameter(file, "image");
                Pattern pattern = wr.w.d;
                wr.w C = c1.C("image/*");
                wr.i0.Companion.getClass();
                return iVar.i.D(intValue, d.f("photo", file.getName(), h0.a(file, C)));
            case z.START_ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                Intrinsics.checkNotNullParameter(unit, "it");
                ke.d dVar = ((ke.f) obj2).c;
                String str = (String) obj;
                dVar.getClass();
                Intrinsics.checkNotNullParameter(str, "confirmationCode");
                a0 g = dVar.g.g(str);
                h hVar = new h(4, sd.f.g0);
                g.getClass();
                e eVar4 = new e(new e(new i(g, hVar, 1), new fe.l(6, new c(dVar, 0)), 2), new fe.l(7, new c(dVar, 1)), 0);
                Intrinsics.checkNotNullExpressionValue(eVar4, "fun confirmEmail(confirm…    }\n            }\n    }");
                return eVar4;
            case 26:
                Intrinsics.checkNotNullParameter(unit, "it");
                re.i iVar2 = ((re.m) obj2).c;
                Integer id2 = ((GroupData) obj).getId();
                Intrinsics.e(id2);
                return iVar2.g.r(id2.intValue());
            default:
                Intrinsics.checkNotNullParameter(unit, "it");
                xe.e eVar5 = ((xe.i) obj2).c;
                SocialLoginRequest socialLoginRequest = (SocialLoginRequest) obj;
                eVar5.getClass();
                Intrinsics.checkNotNullParameter(socialLoginRequest, "request");
                a0 b = eVar5.g.b(socialLoginRequest.getProvider(), socialLoginRequest);
                me.r rVar = new me.r(5, k.Q);
                b.getClass();
                e eVar6 = new e(new e(new i(b, rVar, 1), new m(18, new xe.d(eVar5, 2)), 2), new m(19, new xe.d(eVar5, 3)), 0);
                Intrinsics.checkNotNullExpressionValue(eVar6, "fun socialSignUp(request…    }\n            }\n    }");
                return eVar6;
        }
    }

    public final void c(vl.c cVar) {
        int i = this.f1071d;
        Object obj = this.i;
        Object obj2 = this.f1072e;
        switch (i) {
            case 21:
                Intrinsics.checkNotNullParameter(cVar, "$this$shortLinkAsync");
                cVar.c.putParcelable("link", jh.h.c("https://luz2win.com/getstarted", (String) obj2));
                cVar.a();
                c1.t(cVar, sd.f.i0);
                c1.B(cVar, me.m.f647e);
                c1.G(cVar, new me.e((DashboardFragment) obj, 16));
                return;
            case 25:
                Intrinsics.checkNotNullParameter(cVar, "$this$shortLinkAsync");
                String inviteUrl = ((GroupData) obj2).getInviteUrl();
                GroupDetailsActivity groupDetailsActivity = (GroupDetailsActivity) obj;
                s6.t tVar = GroupDetailsActivity.Y;
                UserData userData = groupDetailsActivity.u().f731d;
                Intrinsics.e(userData);
                cVar.c.putParcelable("link", jh.h.c(inviteUrl, userData.getSource()));
                cVar.a();
                c1.f(cVar, me.m.h0);
                c1.t(cVar, me.m.i0);
                c1.G(cVar, new pe.e(groupDetailsActivity, 3));
                c1.B(cVar, me.m.j0);
                Bundle bundle = cVar.b;
                wl.g.a(bundle);
                String uri = new vl.e(bundle, 0).f().toString();
                Intrinsics.checkNotNullExpressionValue(uri, "this.buildDynamicLink().uri.toString()");
                bundle.putParcelable("dynamicLink", Uri.parse(uri + "&ofl=https://www.bettertogether-app.com/mobile-link/"));
                if (bundle.getString("apiKey") == null) {
                    throw new IllegalArgumentException("Missing API key. Set with setApiKey().");
                }
                wl.g gVar = cVar.a;
                gVar.getClass();
                wl.g.a(bundle);
                gVar.a.doWrite(new wl.f(bundle));
                return;
            default:
                Intrinsics.checkNotNullParameter(cVar, "$this$shortLinkAsync");
                cVar.c.putParcelable("link", jh.h.c("https://luz2win.com/getstarted", (String) obj2));
                Uri uri2 = (Uri) cVar.c.getParcelable("link");
                if (uri2 == null) {
                    uri2 = Uri.EMPTY;
                }
                et.d.a(g0.h("more_link>>> ", uri2), new Object[0]);
                cVar.a();
                c1.f(cVar, k.U);
                c1.t(cVar, k.V);
                c1.B(cVar, k.W);
                ze.d dVar = (ze.d) obj;
                c1.G(cVar, new ze.b(dVar, 1));
                int i2 = ze.d.w;
                dVar.getClass();
                Bundle bundle2 = cVar.b;
                wl.g.a(bundle2);
                String uri3 = new vl.e(bundle2, 0).f().toString();
                Intrinsics.checkNotNullExpressionValue(uri3, "this.buildDynamicLink().uri.toString()");
                bundle2.putParcelable("dynamicLink", Uri.parse(uri3 + "&ofl=https://www.bettertogether-app.com/"));
                return;
        }
    }

    public final Object invoke(Object obj) {
        STRProductItem item;
        int i = this.f1071d;
        Object obj2 = this.f1072e;
        Object obj3 = this.i;
        switch (i) {
            case 0:
                STRCart sTRCart = (STRCart) obj;
                if (sTRCart != null) {
                    ((StorylyView) obj2).o(sTRCart);
                }
                Function1 function1 = (Function1) obj3;
                if (function1 != null) {
                    function1.invoke(sTRCart);
                }
                return Unit.a;
            case 1:
                tr.f fVar = (tr.f) obj;
                Intrinsics.checkNotNullParameter(fVar, "$this$putJsonArray");
                STRCartItem sTRCartItem = (STRCartItem) obj2;
                o0 o0Var = (o0) obj3;
                tr.a0 a0Var = new tr.a0();
                if (sTRCartItem != null && (item = sTRCartItem.getItem()) != null) {
                    item.serialize$storyly_release(a0Var, (r13 & 2) != 0 ? null : o0Var.e.getLanguage$storyly_release(), (r13 & 4) != 0 ? null : o0Var.e.getCountry$storyly_release(), (r13 & 8) != 0 ? null : Integer.valueOf(sTRCartItem.getQuantity()), (r13 & 16) != 0 ? null : null);
                }
                Unit unit = Unit.a;
                fVar.a(a0Var.a());
                return Unit.a;
            case z.VALUES_FIELD_NUMBER:
                tr.f fVar2 = (tr.f) obj;
                Intrinsics.checkNotNullParameter(fVar2, "$this$putJsonArray");
                o0 o0Var2 = (o0) obj3;
                tr.a0 a0Var2 = new tr.a0();
                ((STRProductItem) obj2).serialize$storyly_release(a0Var2, (r13 & 2) != 0 ? null : o0Var2.e.getLanguage$storyly_release(), (r13 & 4) != 0 ? null : o0Var2.e.getCountry$storyly_release(), (r13 & 8) != 0 ? null : null, (r13 & 16) != 0 ? null : null);
                Unit unit2 = Unit.a;
                fVar2.a(a0Var2.a());
                return Unit.a;
            case 3:
                tr.f fVar3 = (tr.f) obj;
                Intrinsics.checkNotNullParameter(fVar3, "$this$putJsonArray");
                o0 o0Var3 = (o0) obj3;
                for (STRProductItem sTRProductItem : (List) obj2) {
                    tr.a0 a0Var3 = new tr.a0();
                    sTRProductItem.serialize$storyly_release(a0Var3, (r13 & 2) != 0 ? null : o0Var3.e.getLanguage$storyly_release(), (r13 & 4) != 0 ? null : o0Var3.e.getCountry$storyly_release(), (r13 & 8) != 0 ? null : null, (r13 & 16) != 0 ? null : null);
                    Unit unit3 = Unit.a;
                    fVar3.a(a0Var3.a());
                }
                return Unit.a;
            case z.ORIGIN_SERIES_UID_FIELD_NUMBER:
                Map map = (Map) obj;
                Intrinsics.checkNotNullParameter(map, "it");
                map.put(((y) obj2).i, (n1) obj3);
                return Unit.a;
            case z.DATA_ORIGIN_FIELD_NUMBER:
                ((kc.g) obj2).f((kc.l0) obj3, Integer.valueOf(((Number) obj).intValue()), Boolean.TRUE);
                return Unit.a;
            case z.ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                ((kc.g) obj2).f((x1) obj3, (Integer) obj, Boolean.TRUE);
                return Unit.a;
            case z.UPDATE_TIME_MILLIS_FIELD_NUMBER:
                Map map2 = (Map) obj;
                Intrinsics.checkNotNullParameter(map2, "it");
                y yVar = (y) obj2;
                n1 n1Var = (n1) map2.get(yVar.i);
                if (n1Var != null) {
                    kc.g gVar = (kc.g) obj3;
                    gVar.getClass();
                    n1Var.l();
                    gVar.b.removeView(n1Var);
                }
                map2.remove(yVar.i);
                return Unit.a;
            case 8:
                Typeface typeface = (Typeface) obj;
                Intrinsics.checkNotNullParameter(typeface, "typeface");
                ((sc.g) obj2).setTypeface(typeface);
                ((Function0) obj3).invoke();
                return Unit.a;
            case z.START_TIME_MILLIS_FIELD_NUMBER:
                PreferenceData preferenceData = ((sd.g) obj2).b;
                String str = (String) obj3;
                preferenceData.getClass();
                Intrinsics.checkNotNullParameter(str, "token");
                preferenceData.t("fcm_token", str);
                return Unit.a;
            case z.END_TIME_MILLIS_FIELD_NUMBER:
                UserData userData = (UserData) obj;
                xh.k.D(userData.getSource());
                BetterTogetherApp betterTogetherApp = BetterTogetherApp.f198d;
                FirebaseAnalytics.getInstance(s.j()).a(new Bundle(), "user_register");
                y3.T(String.valueOf(userData.getId()), (String) null);
                y3.S(userData.getEmail(), (String) null);
                yc.c.c(String.valueOf(userData.getId()));
                yc.c.e(userData.getEmail());
                OnBoardAccountPresenter onBoardAccountPresenter = (OnBoardAccountPresenter) obj2;
                ((ae.m) ((ad.a) onBoardAccountPresenter).a).userOneSignalTags(userData);
                String gender = ((UpdateUserProfileRequest) obj3).getGender();
                if (gender != null) {
                    int hashCode = gender.hashCode();
                    if (hashCode != -1278174388) {
                        if (hashCode != 3343885) {
                            if (hashCode == 106069776 && gender.equals("other")) {
                                u7.e.l(FirebaseAnalytics.getInstance(s.j()), UrBgMnP.oUXm);
                            }
                        } else if (gender.equals("male")) {
                            u7.e.l(FirebaseAnalytics.getInstance(s.j()), "user_gender_male");
                        }
                    } else if (gender.equals("female")) {
                        u7.e.l(FirebaseAnalytics.getInstance(s.j()), "user_gender_female");
                    }
                }
                OnBoardAccountActivity onBoardAccountActivity = (ae.m) ((ad.a) onBoardAccountPresenter).a;
                onBoardAccountActivity.getClass();
                OnBoardAccountInteractor onBoardAccountInteractor = onBoardAccountPresenter.c;
                PreferenceData preferenceData2 = onBoardAccountInteractor.i;
                Intrinsics.checkNotNullExpressionValue(userData, "it");
                j.o(onBoardAccountActivity, preferenceData2, userData);
                PreferenceData preferenceData3 = onBoardAccountInteractor.i;
                if (preferenceData3.b("enable_walkthrough_option", true)) {
                    onBoardAccountActivity.F();
                } else if (preferenceData3.q()) {
                    onBoardAccountActivity.E(true);
                } else if (!cn.b.e().d("showGroupOnboarding") || preferenceData3.q()) {
                    onBoardAccountActivity.E(false);
                } else {
                    onBoardAccountActivity.getClass();
                    int i2 = CreateChallengeActivity.v;
                    Intrinsics.checkNotNullParameter(onBoardAccountActivity, "context");
                    Intent intent = new Intent((Context) onBoardAccountActivity, (Class<?>) CreateChallengeActivity.class);
                    intent.addFlags(268468224);
                    onBoardAccountActivity.startActivity(intent);
                }
                return Unit.a;
            case z.CLIENT_ID_FIELD_NUMBER:
                return b((Unit) obj);
            case z.CLIENT_VERSION_FIELD_NUMBER:
                return b((Unit) obj);
            case z.DEVICE_FIELD_NUMBER:
                return b((Unit) obj);
            case z.ORIGIN_SAMPLE_UID_FIELD_NUMBER:
                he.a aVar = (he.a) obj;
                Intrinsics.checkNotNullParameter(aVar, "it");
                Integer id = ((GroupData) obj2).getId();
                if (id != null) {
                    int intValue = id.intValue();
                    s6.t tVar = ChatActivity.V;
                    q z = ((ChatActivity) obj3).z();
                    z.getClass();
                    Intrinsics.checkNotNullParameter(aVar, "messageModel");
                    i iVar = new i(o.S0(z.c.i.o(intValue, aVar.a)), new m(29, sd.f.Y), 1);
                    Intrinsics.checkNotNullExpressionValue(iVar, "authorizedService\n      …sponse.data\n            }");
                    e eVar = new e(new e(o.D0(o.S0(o.D0(iVar))), new fe.k(z, 0), 2), new h(29, sd.f.d0), 0);
                    Intrinsics.checkNotNullExpressionValue(eVar, "interactor.deleteMessage….message}\")\n            }");
                    com.bumptech.glide.d.m(z, eVar);
                }
                return Unit.a;
            case z.SERIES_VALUES_FIELD_NUMBER:
                String str2 = (String) obj;
                Intrinsics.checkNotNullParameter(str2, "it");
                ChatActivity chatActivity = (ChatActivity) obj2;
                he.a aVar2 = chatActivity.T;
                SendMessageData sendMessageData = new SendMessageData((String) null, (Long) null, 0, aVar2 != null ? Long.valueOf(aVar2.a) : null, str2, 3, (DefaultConstructorMarker) null);
                et.d.c(g0.j("SendMessageData : ", ChatActivity.v(sendMessageData)), new Object[0]);
                chatActivity.z().j(ChatActivity.v(sendMessageData));
                ((PopupWindow) obj3).dismiss();
                chatActivity.u();
                return Unit.a;
            case z.MIN_FIELD_NUMBER:
                return b((Unit) obj);
            case z.MAX_FIELD_NUMBER:
                Long l = (Long) obj;
                if (l != null) {
                    ge.f fVar4 = (ge.f) obj2;
                    l.longValue();
                    Intrinsics.e(((he.a) obj3).j.getRepliedTo());
                    int c = ge.f.c(fVar4, r1.getId());
                    et.d.c(g0.f("Check Reply View click position: ", c), new Object[0]);
                    fVar4.l.invoke(Integer.valueOf(c));
                }
                return Unit.a;
            case z.AVG_FIELD_NUMBER:
                bb.r rVar = (bb.r) obj2;
                et.d.a(g0.j("request_url>>> https://api.luz2win.com/v2", (String) rVar.f147e), new Object[0]);
                d0 d0Var = new d0();
                d0Var.f("https://api.luz2win.com/v2" + ((String) rVar.f147e));
                wr.e0 a = d0Var.a();
                b0 b0Var = (b0) rVar.i;
                je.a aVar3 = (je.a) obj3;
                b0Var.getClass();
                Intrinsics.checkNotNullParameter(a, "request");
                Intrinsics.checkNotNullParameter(aVar3, "listener");
                js.g gVar2 = new js.g(as.f.h, a, aVar3, new Random(), b0Var.f0, b0Var.g0);
                Intrinsics.checkNotNullParameter(b0Var, "client");
                wr.e0 e0Var = gVar2.r;
                if (e0Var.a("Sec-WebSocket-Extensions") != null) {
                    gVar2.c(new ProtocolException("Request header not permitted: 'Sec-WebSocket-Extensions'"), (k0) null);
                } else {
                    wr.a0 a0Var4 = new wr.a0(b0Var);
                    th.c cVar = th.c.f858v;
                    Intrinsics.checkNotNullParameter(cVar, "eventListener");
                    Intrinsics.checkNotNullParameter(cVar, "$this$asFactory");
                    a0Var4.e = new xr.a();
                    List list = js.g.x;
                    Intrinsics.checkNotNullParameter(list, "protocols");
                    ArrayList b0 = CollectionsKt.b0(list);
                    c0 c0Var = c0.x;
                    if (!(b0.contains(c0Var) || b0.contains(c0.i))) {
                        throw new IllegalArgumentException(("protocols must contain h2_prior_knowledge or http/1.1: " + b0).toString());
                    }
                    if (!(!b0.contains(c0Var) || b0.size() <= 1)) {
                        throw new IllegalArgumentException(("protocols containing h2_prior_knowledge cannot use other protocols: " + b0).toString());
                    }
                    if (!(!b0.contains(c0.e))) {
                        throw new IllegalArgumentException(("protocols must not contain http/1.0: " + b0).toString());
                    }
                    if (!(!b0.contains(null))) {
                        throw new IllegalArgumentException("protocols must not contain null".toString());
                    }
                    b0.remove(c0.v);
                    if (!Intrinsics.c(b0, a0Var4.s)) {
                        a0Var4.C = null;
                    }
                    List unmodifiableList = Collections.unmodifiableList(b0);
                    Intrinsics.checkNotNullExpressionValue(unmodifiableList, "Collections.unmodifiableList(protocolsCopy)");
                    a0Var4.s = unmodifiableList;
                    b0 b0Var2 = new b0(a0Var4);
                    d0 d0Var2 = new d0(e0Var);
                    d0Var2.b("Upgrade", "websocket");
                    d0Var2.b("Connection", "Upgrade");
                    d0Var2.b("Sec-WebSocket-Key", gVar2.a);
                    d0Var2.b("Sec-WebSocket-Version", "13");
                    d0Var2.b("Sec-WebSocket-Extensions", "permessage-deflate");
                    wr.e0 a3 = d0Var2.a();
                    bs.j jVar = new bs.j(b0Var2, a3, true);
                    gVar2.b = jVar;
                    jVar.d(new js.d(gVar2, a3));
                }
                rVar.f148v = gVar2;
                return Unit.a;
            case z.START_ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                return b((Unit) obj);
            case z.END_ZONE_OFFSET_SECONDS_FIELD_NUMBER:
                if (((Boolean) obj).booleanValue()) {
                    androidx.fragment.app.e0 e0Var2 = (androidx.fragment.app.e0) obj2;
                    Intrinsics.checkNotNullExpressionValue(e0Var2, "activity");
                    zc.m mVar = (DashboardFragment) obj3;
                    String string = mVar.getString(2131952350);
                    Intrinsics.checkNotNullExpressionValue(string, "getString(R.string.notification_title)");
                    String string2 = mVar.getString(2131952344);
                    Intrinsics.checkNotNullExpressionValue(string2, "getString(R.string.notification_message)");
                    String string3 = mVar.getString(2131952349);
                    Intrinsics.checkNotNullExpressionValue(string3, "getString(R.string.notification_positive)");
                    String string4 = mVar.getString(2131952346);
                    Intrinsics.checkNotNullExpressionValue(string4, "getString(R.string.notification_negative)");
                    nl.f.m0(e0Var2, string, string2, string3, string4, new ae.k(e0Var2, 6));
                }
                return Unit.a;
            case 21:
                c((vl.c) obj);
                return Unit.a;
            case z.SUB_TYPE_DATA_LISTS_FIELD_NUMBER:
                return a((w) obj);
            case z.RECORDING_METHOD_FIELD_NUMBER:
                BaseResponse baseResponse = (BaseResponse) obj;
                Intrinsics.checkNotNullParameter(baseResponse, "response");
                oe.e eVar2 = (oe.e) obj2;
                Integer id2 = ((CreateGroupResponse) baseResponse.getData()).getId();
                Intrinsics.e(id2);
                int intValue2 = id2.intValue();
                File groupCover = ((GroupRequest) obj3).getGroupCover();
                Intrinsics.e(groupCover);
                eVar2.getClass();
                Pattern pattern = wr.w.d;
                wr.w C = c1.C("image/*");
                wr.i0.Companion.getClass();
                return eVar2.g.q(intValue2, d.f("icon", groupCover.getName(), h0.a(groupCover, C)));
            case 24:
                Intrinsics.checkNotNullParameter((GroupRequest) obj, "it");
                oe.e eVar3 = ((oe.j) obj2).c;
                GroupRequest groupRequest = (GroupRequest) obj3;
                eVar3.getClass();
                Intrinsics.checkNotNullParameter(groupRequest, "createGroupRequest");
                boolean hasChangedGroupImage = groupRequest.hasChangedGroupImage();
                yd.a aVar4 = eVar3.g;
                if (!hasChangedGroupImage) {
                    return aVar4.u(groupRequest);
                }
                a0 u4 = aVar4.u(groupRequest);
                if.d dVar = new if.d(11, new r(23, eVar3, groupRequest));
                u4.getClass();
                i iVar2 = new i(u4, dVar, 0);
                Intrinsics.checkNotNullExpressionValue(iVar2, "fun createGroup(\n       …pRequest)\n        }\n    }");
                return iVar2;
            case 25:
                c((vl.c) obj);
                return Unit.a;
            case 26:
                return b((Unit) obj);
            case 27:
                return b((Unit) obj);
            case 28:
                c((vl.c) obj);
                return Unit.a;
            default:
                return a((w) obj);
        }
    }
}