导航菜单

页面标题

页面副标题

FanCode v7.24.0 - h.java 源代码

正在查看: FanCode v7.24.0 应用的 h.java JAVA 源代码文件

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


package yc;

import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uimanager.events.RCTEventEmitter;
import com.fancode.shop.component.productrail.WebViewActivity;
import com.google.android.gms.common.internal.ImagesContract;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.newrelic.agent.android.instrumentation.LogInstrumentation;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import jm.c1;
import jm.j0;
import jm.m0;
import jm.n0;
import jm.o0;
import jm.r1;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.jvm.internal.l;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.text.StringsKt;
import org.jetbrains.annotations.NotNull;
import rl.n;
import tc.a;
import tc.b;

@Metadata
@SourceDebugExtension({"SMAP\nProductRailView.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ProductRailView.kt\ncom/fancode/shop/component/productrail/ProductRailView\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 CoroutineExceptionHandler.kt\nkotlinx/coroutines/CoroutineExceptionHandlerKt\n*L\n1#1,284:1\n1#2:285\n48#3,4:286\n*S KotlinDebug\n*F\n+ 1 ProductRailView.kt\ncom/fancode/shop/component/productrail/ProductRailView\n*L\n156#1:286,4\n*E\n"})
public final class h extends FrameLayout {

    @NotNull
    private final ReactContext a;
    private RecyclerView b;
    private TextView c;
    private ImageView d;
    private String e;
    private String i;

    @NotNull
    private final Function2<String, Map<String, ? extends Object>, Unit> k;

    @NotNull
    private final Function1<b.d, Unit> n;

    @NotNull
    private final yc.b o;

    @NotNull
    private final ad.a p;

    @Metadata
    static final class a extends Lambda implements Function2<String, Map<String, ? extends Object>, Unit> {

        @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$emitEvent$1$1", f = "ProductRailView.kt", l = {}, m = "invokeSuspend")
        @Metadata
        @SourceDebugExtension({"SMAP\nProductRailView.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ProductRailView.kt\ncom/fancode/shop/component/productrail/ProductRailView$emitEvent$1$1\n+ 2 _Maps.kt\nkotlin/collections/MapsKt___MapsKt\n*L\n1#1,284:1\n215#2,2:285\n*S KotlinDebug\n*F\n+ 1 ProductRailView.kt\ncom/fancode/shop/component/productrail/ProductRailView$emitEvent$1$1\n*L\n54#1:285,2\n*E\n"})
        static final class C0171a extends l implements Function2<m0, kotlin.coroutines.d<? super Unit>, Object> {
            int b;
            final h c;
            final String d;
            final Map<String, Object> e;

            C0171a(h hVar, String str, Map<String, ? extends Object> map, kotlin.coroutines.d<? super C0171a> dVar) {
                super(2, dVar);
                this.c = hVar;
                this.d = str;
                this.e = map;
            }

            public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super Unit> dVar) {
                return create(m0Var, dVar).invokeSuspend(Unit.a);
            }

            @NotNull
            public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
                return new C0171a(this.c, this.d, this.e, dVar);
            }

            public final Object invokeSuspend(@NotNull Object obj) {
                ul.b.c();
                if (this.b != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
                WritableMap createMap = Arguments.createMap();
                for (Map.Entry<String, Object> entry : this.e.entrySet()) {
                    String key = entry.getKey();
                    Object value = entry.getValue();
                    if (value instanceof String) {
                        createMap.putString(key, (String) value);
                    } else if (value instanceof Integer) {
                        createMap.putInt(key, ((Number) value).intValue());
                    } else if (value instanceof Double) {
                        createMap.putDouble(key, ((Number) value).doubleValue());
                    } else if (value instanceof Boolean) {
                        createMap.putBoolean(key, ((Boolean) value).booleanValue());
                    } else {
                        createMap.putNull(key);
                    }
                }
                Intrinsics.checkNotNullExpressionValue(createMap, "createMap().apply {\n    …  }\n          }\n        }");
                ((RCTEventEmitter) this.c.a.getJSModule(RCTEventEmitter.class)).receiveEvent(this.c.getId(), this.d, createMap);
                return Unit.a;
            }
        }

        a() {
            super(2);
        }

        public final void a(@NotNull String str, @NotNull Map<String, ? extends Object> map) {
            Intrinsics.checkNotNullParameter(str, "event");
            Intrinsics.checkNotNullParameter(map, "props");
            jm.i.d(r1.a, (CoroutineContext) null, (o0) null, new C0171a(h.this, str, map, null), 3, (Object) null);
        }

        public Object invoke(Object obj, Object obj2) {
            a((String) obj, (Map) obj2);
            return Unit.a;
        }
    }

    @Metadata
    @Instrumented
    @SourceDebugExtension({"SMAP\nCoroutineExceptionHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CoroutineExceptionHandler.kt\nkotlinx/coroutines/CoroutineExceptionHandlerKt$CoroutineExceptionHandler$1\n+ 2 ProductRailView.kt\ncom/fancode/shop/component/productrail/ProductRailView\n*L\n1#1,110:1\n157#2,2:111\n*E\n"})
    public static final class b extends kotlin.coroutines.a implements j0 {
        public b(j0.a aVar) {
            super(aVar);
        }

        public void Z(@NotNull CoroutineContext coroutineContext, @NotNull Throwable th) {
            String message = th.getMessage();
            if (message == null) {
                message = "CoroutineExceptionHandler";
            }
            LogInstrumentation.d("coroutineException", message);
        }
    }

    @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$fetchProducts$1", f = "ProductRailView.kt", l = {167, 168, 169, 174}, m = "invokeSuspend")
    @Metadata
    @Instrumented
    static final class c extends l implements Function2<m0, kotlin.coroutines.d<? super Unit>, Object> {
        int b;
        private Object c;
        final int e;
        final String i;
        final int k;

        @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$fetchProducts$1$1", f = "ProductRailView.kt", l = {}, m = "invokeSuspend")
        @Metadata
        static final class a extends l implements Function2<m0, kotlin.coroutines.d<? super Unit>, Object> {
            int b;
            final i4.g<a.b> c;
            final h d;

            a(i4.g<a.b> gVar, h hVar, kotlin.coroutines.d<? super a> dVar) {
                super(2, dVar);
                this.c = gVar;
                this.d = hVar;
            }

            public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super Unit> dVar) {
                return create(m0Var, dVar).invokeSuspend(Unit.a);
            }

            @NotNull
            public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
                return new a(this.c, this.d, dVar);
            }

            public final Object invokeSuspend(@NotNull Object obj) {
                ul.b.c();
                if (this.b != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
                i4.g<a.b> gVar = this.c;
                if (gVar == null) {
                    return null;
                }
                this.d.o(gVar);
                return Unit.a;
            }
        }

        @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$fetchProducts$1$2", f = "ProductRailView.kt", l = {}, m = "invokeSuspend")
        @Metadata
        static final class b extends l implements Function2<m0, kotlin.coroutines.d<? super Unit>, Object> {
            int b;
            final i4.g<b.c> c;
            final h d;

            b(i4.g<b.c> gVar, h hVar, kotlin.coroutines.d<? super b> dVar) {
                super(2, dVar);
                this.c = gVar;
                this.d = hVar;
            }

            public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super Unit> dVar) {
                return create(m0Var, dVar).invokeSuspend(Unit.a);
            }

            @NotNull
            public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
                return new b(this.c, this.d, dVar);
            }

            public final Object invokeSuspend(@NotNull Object obj) {
                ul.b.c();
                if (this.b != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
                i4.g<b.c> gVar = this.c;
                if (gVar == null) {
                    return null;
                }
                this.d.m(gVar);
                return Unit.a;
            }
        }

        @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$fetchProducts$1$productsDeferred$1", f = "ProductRailView.kt", l = {165}, m = "invokeSuspend")
        @Metadata
        static final class C0172c extends l implements Function2<m0, kotlin.coroutines.d<? super i4.g<b.c>>, Object> {
            int b;
            final h c;
            final String d;
            final int e;

            C0172c(h hVar, String str, int i, kotlin.coroutines.d<? super C0172c> dVar) {
                super(2, dVar);
                this.c = hVar;
                this.d = str;
                this.e = i;
            }

            public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super i4.g<b.c>> dVar) {
                return create(m0Var, dVar).invokeSuspend(Unit.a);
            }

            @NotNull
            public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
                return new C0172c(this.c, this.d, this.e, dVar);
            }

            public final Object invokeSuspend(@NotNull Object obj) {
                Object c = ul.b.c();
                int i = this.b;
                if (i == 0) {
                    n.b(obj);
                    ad.a aVar = this.c.p;
                    vc.a aVar2 = new vc.a(this.d, this.e);
                    this.b = 1;
                    obj = aVar.s(aVar2, this);
                    if (obj == c) {
                        return c;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    n.b(obj);
                }
                return obj;
            }
        }

        @kotlin.coroutines.jvm.internal.f(c = "com.fancode.shop.component.productrail.ProductRailView$fetchProducts$1$titleDeferred$1", f = "ProductRailView.kt", l = {162}, m = "invokeSuspend")
        @Metadata
        static final class d extends l implements Function2<m0, kotlin.coroutines.d<? super i4.g<a.b>>, Object> {
            int b;
            final h c;
            final int d;

            d(h hVar, int i, kotlin.coroutines.d<? super d> dVar) {
                super(2, dVar);
                this.c = hVar;
                this.d = i;
            }

            public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super i4.g<a.b>> dVar) {
                return create(m0Var, dVar).invokeSuspend(Unit.a);
            }

            @NotNull
            public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
                return new d(this.c, this.d, dVar);
            }

            public final Object invokeSuspend(@NotNull Object obj) {
                Object c = ul.b.c();
                int i = this.b;
                if (i == 0) {
                    n.b(obj);
                    ad.a aVar = this.c.p;
                    int i2 = this.d;
                    this.b = 1;
                    obj = aVar.t(i2, this);
                    if (obj == c) {
                        return c;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    n.b(obj);
                }
                return obj;
            }
        }

        c(int i, String str, int i2, kotlin.coroutines.d<? super c> dVar) {
            super(2, dVar);
            this.e = i;
            this.i = str;
            this.k = i2;
        }

        public final Object invoke(@NotNull m0 m0Var, kotlin.coroutines.d<? super Unit> dVar) {
            return create(m0Var, dVar).invokeSuspend(Unit.a);
        }

        @NotNull
        public final kotlin.coroutines.d<Unit> create(Object obj, @NotNull kotlin.coroutines.d<?> dVar) {
            c cVar = h.this.new c(this.e, this.i, this.k, dVar);
            cVar.c = obj;
            return cVar;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r15) {
            throw new UnsupportedOperationException("Method not decompiled: yc.h.c.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @Metadata
    static final class d extends Lambda implements Function1<b.d, Unit> {
        d() {
            super(1);
        }

        public final void a(@NotNull b.d dVar) {
            Intrinsics.checkNotNullParameter(dVar, "product");
            Function2 function2 = h.this.k;
            Map<String, Object> a = yc.c.a(dVar);
            a.put("eventName", zc.a.PRODUCT_CLICKED.i());
            Unit unit = Unit.a;
            function2.invoke("onAnalyticsEvent", a);
        }

        public Object invoke(Object obj) {
            a((b.d) obj);
            return Unit.a;
        }
    }

    public h(Context context, AttributeSet attributeSet, int i, ReactContext reactContext, int i2, DefaultConstructorMarker defaultConstructorMarker) {
        this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i, reactContext);
    }

    public h(@NotNull Context context, @NotNull ReactContext reactContext) {
        this(context, null, 0, reactContext, 6, null);
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(reactContext, "reactContext");
    }

    public static final void k(String str, h hVar, View view) {
        Intrinsics.checkNotNullParameter(hVar, "this$0");
        String C = StringsKt.C("https://www.fancode.com/shop/" + str + "?trafficSource=FCAndroid&webviewIntentSupported=true", "shop//", "shop/", false, 4, (Object) null);
        Intent intent = new Intent(hVar.getContext(), (Class<?>) WebViewActivity.class);
        intent.putExtra(ImagesContract.URL, C);
        intent.putExtra("refreshToken", hVar.e);
        hVar.getContext().startActivity(intent);
    }

    private final void l(int i, String str, int i2) {
        jm.i.d(n0.a(c1.b().g0(new b(j0.h))), (CoroutineContext) null, (o0) null, new c(i2, str, i, null), 3, (Object) null);
    }

    public final void m(final i4.g<b.c> gVar) {
        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public final void run() {
                h.n(gVar, this);
            }
        });
    }

    public static final void n(i4.g gVar, h hVar) {
        Intrinsics.checkNotNullParameter(gVar, "$response");
        Intrinsics.checkNotNullParameter(hVar, "this$0");
        b.c cVar = (b.c) gVar.c;
        if (cVar == null || !(!cVar.a().a().isEmpty())) {
            return;
        }
        hVar.z(cVar.a().a());
        hVar.u();
    }

    public final void o(final i4.g<a.b> gVar) {
        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public final void run() {
                h.p(gVar, this);
            }
        });
    }

    public static final void p(i4.g gVar, h hVar) {
        String c2;
        Intrinsics.checkNotNullParameter(gVar, "$response");
        Intrinsics.checkNotNullParameter(hVar, "this$0");
        a.b bVar = (a.b) gVar.c;
        if (bVar != null) {
            a.c a2 = bVar.a();
            boolean z = false;
            if (a2 != null && (c2 = a2.c()) != null) {
                if (c2.length() > 0) {
                    z = true;
                }
            }
            if (z) {
                String c3 = bVar.a().c();
                String b2 = bVar.a().b();
                hVar.x(c3, b2);
                hVar.j(c3, b2);
                hVar.setTheme(hVar.i);
                hVar.s();
            }
        }
        ImageView imageView = hVar.d;
        if (imageView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("chevronIcon");
            imageView = null;
        }
        imageView.setImageResource(xc.c.c);
        hVar.s();
    }

    private final void q() {
        LinearLayout linearLayout = new LinearLayout(getContext());
        TextView textView = new TextView(getContext());
        this.c = textView;
        textView.setTextSize(16.0f);
        Typeface h = androidx.core.content.res.h.h(getContext(), xc.d.a);
        TextView textView2 = this.c;
        ImageView imageView = null;
        if (textView2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("header");
            textView2 = null;
        }
        textView2.setTypeface(h);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
        layoutParams.setMargins(75, 0, 8, 0);
        TextView textView3 = this.c;
        if (textView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("header");
            textView3 = null;
        }
        linearLayout.addView(textView3, layoutParams);
        ImageView imageView2 = new ImageView(getContext());
        this.d = imageView2;
        imageView2.setImageResource(xc.c.a);
        LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-2, -2);
        layoutParams2.topMargin = 12;
        ImageView imageView3 = this.d;
        if (imageView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("chevronIcon");
        } else {
            imageView = imageView3;
        }
        linearLayout.addView(imageView, layoutParams2);
        addView(linearLayout);
    }

    private final void r() {
        RecyclerView recyclerView = new RecyclerView(getContext());
        recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext(), 0, false));
        recyclerView.setPadding(recyclerView.getResources().getDimensionPixelSize(xc.b.a), 80, 50, 0);
        recyclerView.setAdapter(this.o);
        this.b = recyclerView;
        addView(recyclerView);
    }

    private final void s() {
        measure(View.MeasureSpec.makeMeasureSpec(getWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getHeight(), 1073741824));
        requestLayout();
        int childCount = getChildCount();
        for (int i = 0; i < childCount; i++) {
            View childAt = getChildAt(i);
            childAt.measure(View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredHeight(), 1073741824));
            childAt.layout(childAt.getLeft(), childAt.getTop(), childAt.getMeasuredWidth(), childAt.getMeasuredHeight());
        }
    }

    private final void setTheme(String str) {
        TextView textView = null;
        if (Intrinsics.areEqual(str, "dark")) {
            androidx.appcompat.app.g.N(2);
            ImageView imageView = this.d;
            if (imageView == null) {
                Intrinsics.throwUninitializedPropertyAccessException("chevronIcon");
                imageView = null;
            }
            imageView.setImageResource(xc.c.b);
        } else {
            androidx.appcompat.app.g.N(1);
            ImageView imageView2 = this.d;
            if (imageView2 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("chevronIcon");
                imageView2 = null;
            }
            imageView2.setImageResource(xc.c.a);
        }
        int color = androidx.core.content.a.getColor(getContext(), xc.a.a);
        TextView textView2 = this.c;
        if (textView2 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("header");
        } else {
            textView = textView2;
        }
        textView.setTextColor(color);
        v();
    }

    private final void t(String str, String str2) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("title", str);
        linkedHashMap.put("targetUrl", str2);
        Function2<String, Map<String, ? extends Object>, Unit> function2 = this.k;
        linkedHashMap.put("eventName", zc.a.VIEW_ALL_CLICKED.i());
        Unit unit = Unit.a;
        function2.invoke("onAnalyticsEvent", linkedHashMap);
    }

    private final void u() {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("source", "FCHomePage");
        Function2<String, Map<String, ? extends Object>, Unit> function2 = this.k;
        linkedHashMap.put("eventName", zc.a.PRODUCT_LISTING_LOADED.i());
        Unit unit = Unit.a;
        function2.invoke("onAnalyticsEvent", linkedHashMap);
    }

    private final void v() {
        RecyclerView recyclerView = this.b;
        RecyclerView recyclerView2 = null;
        if (recyclerView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("recyclerView");
            recyclerView = null;
        }
        RecyclerView.h adapter = recyclerView.getAdapter();
        RecyclerView recyclerView3 = this.b;
        if (recyclerView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("recyclerView");
        } else {
            recyclerView2 = recyclerView3;
        }
        recyclerView2.setAdapter(adapter);
    }

    public static final void y(String str, h hVar, String str2, View view) {
        Intrinsics.checkNotNullParameter(hVar, "this$0");
        Intrinsics.checkNotNullParameter(str2, "$newText");
        String C = StringsKt.C("https://www.fancode.com/shop/" + str + "?trafficSource=FCAndroid&webviewIntentSupported=true", "shop//", "shop/", false, 4, (Object) null);
        Intent intent = new Intent(hVar.getContext(), (Class<?>) WebViewActivity.class);
        intent.putExtra(ImagesContract.URL, C);
        intent.putExtra("refreshToken", hVar.e);
        hVar.t(str2, str);
        hVar.getContext().startActivity(intent);
    }

    private final void z(List<b.d> list) {
        this.o.f(list, this.e);
        s();
    }

    public final String getAppTheme() {
        return this.i;
    }

    public final String getRefreshToken() {
        return this.e;
    }

    public final void j(@NotNull String str, final String str2) {
        Intrinsics.checkNotNullParameter(str, "newText");
        if (str2 == null || str2.length() == 0) {
            return;
        }
        ImageView imageView = this.d;
        if (imageView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("chevronIcon");
            imageView = null;
        }
        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                h.k(str2, this, view);
            }
        });
    }

    public final void setAppTheme(String str) {
        this.i = str;
    }

    public final void setRefreshToken(String str) {
        this.e = str;
    }

    public final void w(int i, @NotNull String str, int i2, @NotNull String str2, String str3) {
        Intrinsics.checkNotNullParameter(str, "placement");
        Intrinsics.checkNotNullParameter(str2, "railTheme");
        l(i, str, i2);
        this.e = str3;
        this.i = str2;
    }

    public final void x(@NotNull final String str, final String str2) {
        Intrinsics.checkNotNullParameter(str, "newText");
        TextView textView = this.c;
        TextView textView2 = null;
        if (textView == null) {
            Intrinsics.throwUninitializedPropertyAccessException("header");
            textView = null;
        }
        textView.setText(str);
        if (str2 == null || str2.length() == 0) {
            return;
        }
        TextView textView3 = this.c;
        if (textView3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("header");
        } else {
            textView2 = textView3;
        }
        textView2.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                h.y(str2, this, str, view);
            }
        });
    }

    public h(@NotNull Context context, AttributeSet attributeSet, int i, @NotNull ReactContext reactContext) {
        super(context, attributeSet, i);
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(reactContext, "reactContext");
        this.a = reactContext;
        this.k = new a();
        d dVar = new d();
        this.n = dVar;
        this.o = new yc.b(context, new ArrayList(), "", dVar);
        ad.a aVar = new ad.a();
        aVar.p(context, "", false);
        this.p = aVar;
        setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
        r();
        q();
    }
}