package com.tencent.mm.plugin.story.model.f;

import a.f.a.a;
import a.f.b.k;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ab.b;
import com.tencent.mm.plugin.story.h.f;
import com.tencent.mm.plugin.story.model.j;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
final class b$d extends k implements a<y> {
    final /* synthetic */ b rXg;

    @l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
    /* renamed from: com.tencent.mm.plugin.story.model.f.b$d$1 */
    static final class AnonymousClass1 extends k implements a<y> {
        final /* synthetic */ b$d rXh;

        AnonymousClass1(b$d b_d) {
            this.rXh = b_d;
            super(0);
        }

        public final /* synthetic */ Object invoke() {
            AppMethodBeat.i(109382);
            com.tencent.mm.plugin.story.api.k.a f = b.f(this.rXh.rXg);
            if (f != null) {
                f.bs(b.b(this.rXh.rXg), b.d(this.rXh.rXg));
            }
            y yVar = y.AUy;
            AppMethodBeat.o(109382);
            return yVar;
        }
    }

    b$d(b bVar) {
        this.rXg = bVar;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        b bVar;
        boolean z = false;
        AppMethodBeat.i(109383);
        b.a(this.rXg, com.tencent.mm.plugin.sns.e.a.Xv(b.b(this.rXg)));
        if (b.a(this.rXg)) {
            b.b(this.rXg, false);
            bVar = this.rXg;
        } else {
            boolean isValid;
            bVar = this.rXg;
            j.a aVar = j.rST;
            b.a(bVar, j.a.cxU().aaX(b.b(this.rXg)));
            b bVar2 = this.rXg;
            f e = b.e(this.rXg);
            if (e != null) {
                isValid = e.isValid();
            } else {
                isValid = false;
            }
            b.b(bVar2, isValid);
            bVar = this.rXg;
            f e2 = b.e(this.rXg);
            if (e2 != null) {
                z = e2.cBN();
            }
        }
        b.c(bVar, z);
        b.a((a) new AnonymousClass1(this));
        b.g(this.rXg);
        y yVar = y.AUy;
        AppMethodBeat.o(109383);
        return yVar;
    }
}
