小红书.apk(点击下载) / n.java


package qb1;

import al2.e;
import android.app.Activity;
import com.xingin.android.xhscomm.router.Routers;
import com.xingin.matrix.detail.feed.R$string;
import com.xingin.matrix.followfeed.entities.NoteFeed;
import com.xingin.utils.XYUtilsCenter;
import g61.h;
import kotlin.Metadata;
import kotlin.Triple;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsKt;
import mb1.i;
import ob1.b;
import qb1.z;
import vt2.f;

@Metadata(bv = {}, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\r\u0010\u000eJ0\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\u00022 \u0010\t\u001a\u001c\u0012\u0018\u0012\u0016\u0012\u0004\u0012\u00020\u0006\u0012\u0006\u0012\u0004\u0018\u00010\u0007\u0012\u0004\u0012\u00020\b0\u00050\u0004J\u0006\u0010\f\u001a\u00020\n¨\u0006\u000f"}, d2 = {"Lqb1/n;", "", "Landroid/app/Activity;", "activity", "Lkotlin/Function0;", "Lkotlin/Triple;", "Lob1/b;", "Lcom/xingin/matrix/followfeed/entities/NoteFeed;", "", "openFreeAccountAction", "", "b", "d", "<init>", "()V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: UnicomKingHelper.kt */
public final class n {

    /* renamed from: a  reason: collision with root package name */
    public static final n f121065a = new n();

    @Metadata(bv = {}, d1 = {"\u0000\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\b\u0010\u0003\u001a\u00020\u0002H\u0016J\b\u0010\u0004\u001a\u00020\u0002H\u0016¨\u0006\u0005"}, d2 = {"qb1/n$a", "Lqb1/z$a;", "", "a", "b", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: UnicomKingHelper.kt */
    public static final class a implements z.a {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ Activity f121066a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ Function0<Triple<b, NoteFeed, Integer>> f121067b;

        /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.jvm.functions.Function0<? extends kotlin.Triple<? extends ob1.b, com.xingin.matrix.followfeed.entities.NoteFeed, java.lang.Integer>> */
        /* JADX WARN: Multi-variable type inference failed */
        public a(Activity activity, Function0<? extends Triple<? extends b, NoteFeed, Integer>> function0) {
            this.f121066a = activity;
            this.f121067b = function0;
        }

        @Override // qb1.z.a
        public void a() {
        }

        @Override // qb1.z.a
        public void b() {
            Routers.build("https://pages.xiaohongshu.com/activity/wk_promotion").open(this.f121066a);
            Triple<b, NoteFeed, Integer> invoke = this.f121067b.invoke();
            i iVar = i.f105119a;
            b first = invoke.getFirst();
            NoteFeed second = invoke.getSecond();
            if (second == null) {
                second = new NoteFeed(null, null, null, null, null, null, 0, null, null, null, null, null, false, null, null, null, null, null, false, false, 0, null, 0, 0, 0, 0, false, false, null, null, 0, null, null, null, null, false, null, false, null, null, 0.0f, null, null, null, null, false, false, 0, null, null, false, null, false, null, null, null, null, null, null, 0, null, null, null, null, null, null, false, 0, null, false, null, false, null, null, null, null, null, false, false, 0, null, null, null, null, null, null, null, null, null, null, null, null, false, false, null, -1, -1, Integer.MAX_VALUE, null);
            }
            iVar.e(first, second, invoke.getThird().intValue(), "wk_promotion");
        }
    }

    public static final void c(Activity activity, Function0 function0) {
        Intrinsics.checkNotNullParameter(activity, "$activity");
        Intrinsics.checkNotNullParameter(function0, "$openFreeAccountAction");
        boolean f14 = f.g().f("isUnicomWo", false);
        v vVar = v.f121135a;
        if (vVar.c()) {
            if (vVar.b()) {
                e.o(R$string.f56807matrix_wang_card_playing);
            } else if (f14) {
                f121065a.d();
            }
            vVar.e(false);
        }
        if (!f14 && !vVar.b() && com.xingin.utils.core.f.s(activity) && vVar.a() && !h.f81068a.h()) {
            new z(activity).c(new a(activity, function0)).show();
            vVar.d(false);
        }
    }

    public final void b(Activity activity, Function0<? extends Triple<? extends b, NoteFeed, Integer>> function0) {
        Intrinsics.checkNotNullParameter(activity, "activity");
        Intrinsics.checkNotNullParameter(function0, "openFreeAccountAction");
        mi2.a.R(new m(activity, function0));
    }

    public final void d() {
        String str = "";
        String n14 = f.g().n("isUnicomWo_phone", str);
        if (n14.length() == 11) {
            Intrinsics.checkNotNullExpressionValue(n14, "subscibePhone");
            str = StringsKt__StringsKt.replaceRange((CharSequence) n14, 3, 7, (CharSequence) "****").toString();
        }
        e.g(XYUtilsCenter.e().getResources().getString(R$string.dcl, str));
    }
}