package com.tencent.mm.plugin.game.luggage;

import android.os.Bundle;
import com.tencent.luggage.d.e;
import com.tencent.luggage.d.j;
import com.tencent.luggage.d.k;
import com.tencent.luggage.d.m;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.game.report.api.GameWebPerformanceInfo;
import com.tencent.mm.plugin.game.luggage.d.a;
import com.tencent.mm.plugin.game.luggage.d.f;
import com.tencent.mm.plugin.webview.luggage.s;
import com.tencent.mm.plugin.webview.ui.tools.game.g;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class LuggageGameWebViewUI$1 implements j {
    final /* synthetic */ LuggageGameWebViewUI mTM;

    LuggageGameWebViewUI$1(LuggageGameWebViewUI luggageGameWebViewUI) {
        this.mTM = luggageGameWebViewUI;
    }

    public final e j(String str, Bundle bundle) {
        GameWebPerformanceInfo kU;
        AppMethodBeat.i(135809);
        long currentTimeMillis = System.currentTimeMillis();
        ab.i("MicroMsg.LuggageGameWebViewUI", "getPage, __Time__，time = %d", new Object[]{Long.valueOf(currentTimeMillis)});
        bundle.putInt("minimize_secene", 3);
        boolean z = bundle.getBoolean("from_bag", false);
        boolean z2 = bundle.getBoolean("float_layer_page", false);
        if (LuggageGameWebViewUI.a(this.mTM) || z2 || z || LuggageGameWebViewUI.NM(str)) {
            kU = GameWebPerformanceInfo.kU(str);
        } else {
            g.agg(str);
            g.az(str, currentTimeMillis);
            kU = GameWebPerformanceInfo.kV(str);
        }
        if (bo.isNullOrNil(kU.url)) {
            ab.i("MicroMsg.LuggageGameWebViewUI", "new page, url: %s", new Object[]{str});
            kU.url = str;
            kU.eBZ = currentTimeMillis;
            kU.eBU = currentTimeMillis;
            kU.startTime = currentTimeMillis;
            kU.eBK = 1;
        }
        kU.eCb = currentTimeMillis;
        if (!z2) {
            LuggageGameWebViewUI.b(this.mTM);
        }
        e aVar;
        if (z) {
            com.tencent.mm.plugin.game.luggage.d.e eVar = new com.tencent.mm.plugin.game.luggage.d.e(LuggageGameWebViewUI.c(this.mTM).bPq, m.a(this.mTM.mController.ylL, Integer.valueOf(s.ujF)), bundle);
            AppMethodBeat.o(135809);
            return eVar;
        } else if (z2) {
            aVar = new a(LuggageGameWebViewUI.c(this.mTM).bPq, bundle);
            AppMethodBeat.o(135809);
            return aVar;
        } else {
            k aq = d.aq(this.mTM.mController.ylL, str);
            if (aq != null) {
                aVar = new f(LuggageGameWebViewUI.c(this.mTM).bPq, aq, bundle);
                AppMethodBeat.o(135809);
                return aVar;
            }
            aVar = new com.tencent.mm.plugin.game.luggage.d.e(LuggageGameWebViewUI.c(this.mTM).bPq, null, bundle);
            AppMethodBeat.o(135809);
            return aVar;
        }
    }
}
