package yo0; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import androidx.fragment.app.Fragment; import ch0.m0; import com.alibaba.baichuan.trade.biz.applink.adapter.AppLinkConstants; import com.google.common.collect.b0; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.reflect.TypeToken; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.tencent.thumbplayer.api.TPPlayerMgr; import com.tencent.thumbplayer.core.common.TPMediaCodecProfileLevel; import com.tencent.ugc.UGCTransitionRules; import com.tencent.wcdb.database.SQLiteDatabase; import com.xingin.android.xhscomm.router.Routers; import com.xingin.capa.lib.R$string; import com.xingin.capa.lib.entrance.CapaEntranceActivity; import com.xingin.capa.lib.entrance.album.ui.preview.AlbumPreviewActivity; import com.xingin.capa.lib.newcapa.filter.view.CapaFilterLibActivity; import com.xingin.capa.lib.newcapa.selectvideo.SelectVideoActivity; import com.xingin.capa.lib.newcapa.selectvideo.VideoCutActivity; import com.xingin.capa.lib.newcapa.session.CapaImageModel; import com.xingin.capa.lib.newcapa.videoedit.data.Slice; import com.xingin.capa.lib.post.draft.DraftListActivity; import com.xingin.capa.lib.video.entity.OneKeyGenerate2; import com.xingin.capa.lib.video.entity.VideoTemplate; import com.xingin.capa.lib.widget.CapaTitleDialog; import com.xingin.capa.v2.feature.imageedit.CapaEditImageActivityV2; import com.xingin.capa.v2.feature.ordernote.activity.OrderNotePostActivity; import com.xingin.capa.v2.feature.post.lcb.activity.CapaLCBPostNoteActivity; import com.xingin.capa.v2.feature.post.ui.VideoPreviewActivity; import com.xingin.capa.v2.feature.slice.TemplateSliceActivity; import com.xingin.capa.v2.feature.template.model.TemplateReplaceModel; import com.xingin.capa.v2.feature.template.model.cloud.CloudTemplateModel; import com.xingin.capa.v2.feature.template.upload.TemplateUploadActivity; import com.xingin.capa.v2.feature.templatecover.TemplateCoverChooseActivity; import com.xingin.capa.v2.feature.templatecreate.TemplateCreateActivity; import com.xingin.capa.v2.feature.templateedit.TemplateEditActivity; import com.xingin.capa.v2.feature.videocover.choose.VideoCoverChooseActivity; import com.xingin.capa.v2.feature.videocover.edit.VideoCoverEditActivity; import com.xingin.capa.v2.feature.videoedit.VideoEditActivityV3; import com.xingin.capa.v2.feature.videoedit.modules.timecrop.CropVideoTimeActivity; import com.xingin.capa.v2.feature.videotemplate.container.v2.detail.TemplateDetailActivity; import com.xingin.capa.v2.feature.videotemplate.crop.VideoTemplateCropActivity; import com.xingin.capa.v2.feature.videotemplate.entity.VideoTemplateModel; import com.xingin.capa.v2.framework.deeplink.base.bean.VideoThemeInfo; import com.xingin.capa.v2.session2.impl.ImageEditorImpl; import com.xingin.capa.v2.session2.impl.NoteEditorImpl; import com.xingin.capa.v2.session2.impl.TemplateEditorImpl; import com.xingin.capa.v2.session2.impl.VideoEditorImpl; import com.xingin.capa.v2.session2.internal.IImageEditor; import com.xingin.capa.v2.session2.internal.IVideoEditor; import com.xingin.capa.v2.session2.model.EditableVideo2; import com.xingin.capa.v2.session2.model.GuideInfo; import com.xingin.capa.v2.utils.n0; import com.xingin.entities.db.CapaDraftModel; import com.xingin.pages.CapaDeeplinkUtils; import com.xingin.pages.Pages; import com.xingin.uploader.api.FileType; import com.xingin.utils.core.c1; import ij0.c0; import ja.b1; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import kotlin.Metadata; import kotlin.Pair; import kotlin.TuplesKt; import kotlin.Unit; import kotlin.collections.CollectionsKt__CollectionsKt; import kotlin.jvm.JvmOverloads; import kotlin.jvm.JvmStatic; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import md0.g2; @Metadata(bv = {}, d1 = {"\u0000\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0007\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\bÀ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b~\u0010J8\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\u0010\u0004\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\b\u001a\u00020\u00072\b\b\u0002\u0010\t\u001a\u00020\u0005H\u0007Jz\u0010\u001a\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\u0010\r\u001a\u0004\u0018\u00010\f2\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\u000f\u001a\u00020\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00072\u0014\b\u0002\u0010\u0013\u001a\u000e\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00120\u00112\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u0010\u0017\u001a\u0004\u0018\u00010\u00162\b\b\u0002\u0010\u0018\u001a\u00020\u000e2\b\b\u0002\u0010\u0019\u001a\u00020\u0007H\u0007JX\u0010\u001c\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\u0010\r\u001a\u0004\u0018\u00010\f2\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\u000f\u001a\u00020\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00072\u0014\b\u0002\u0010\u0013\u001a\u000e\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00120\u00112\b\b\u0002\u0010\u001b\u001a\u00020\u0005H\u0007J\u001a\u0010\u001d\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u0005H\u0007J$\u0010\u001e\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\u001b\u001a\u00020\u0005H\u0007J\"\u0010 \u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u001f\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0005H\u0007J\u001a\u0010!\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u0005H\u0007J<\u0010\"\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\u0010\r\u001a\u0004\u0018\u00010\f2\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u0010\u0017\u001a\u0004\u0018\u00010\u00162\b\b\u0002\u0010\u0010\u001a\u00020\u0007H\u0007JL\u0010&\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u00052\n\b\u0002\u0010#\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010$\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010%\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0003H\u0007J\"\u0010)\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010'\u001a\u00020\u00072\b\b\u0002\u0010#\u001a\u00020(H\u0007J\"\u0010+\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010*\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0005H\u0007J\"\u0010,\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010*\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0005H\u0007J\u001a\u0010.\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\b\u0002\u0010-\u001a\u00020\u0005H\u0007J\u0018\u00101\u001a\u00020\n2\u0006\u00100\u001a\u00020/2\u0006\u0010\u0004\u001a\u00020\u0003H\u0007Je\u00107\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u00102\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u00103\u001a\u0004\u0018\u00010\u00052\b\b\u0002\u00104\u001a\u00020\u000e2\b\b\u0002\u0010\u0006\u001a\u00020\u00052\n\b\u0002\u00105\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u00106\u001a\u00020\u0007H\u0007¢\u0006\u0004\b7\u00108J\u001a\u00109\u001a\u00020\n2\u0006\u00100\u001a\u00020/2\b\u0010%\u001a\u0004\u0018\u00010\u0007H\u0007J(\u0010>\u001a\u00020\n2\u0006\u00100\u001a\u00020/2\u0006\u0010;\u001a\u00020:2\u0006\u0010<\u001a\u00020\u00032\b\b\u0002\u0010=\u001a\u00020\u0012J$\u0010A\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\u0012\u0010@\u001a\u000e\u0012\u0004\u0012\u00020/\u0012\u0004\u0012\u00020\n0?J\"\u0010B\u001a\u00020\n2\u0006\u00100\u001a\u00020\u00012\b\u0010\u0004\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u0005J}\u0010J\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010-\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010C\u001a\u00020\u000e2\b\b\u0002\u0010D\u001a\u00020\u000e2\b\b\u0002\u0010E\u001a\u00020\u000e2\b\b\u0002\u0010F\u001a\u00020\u00072\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\n\b\u0002\u0010G\u001a\u0004\u0018\u00010\u000e2\n\b\u0002\u0010H\u001a\u0004\u0018\u00010\u000e2\b\b\u0002\u0010I\u001a\u00020\u000e¢\u0006\u0004\bJ\u0010KJZ\u0010S\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\f\u0010N\u001a\b\u0012\u0004\u0012\u00020M0L2\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010O\u001a\u00020\u000e2\b\b\u0002\u0010P\u001a\u00020\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00072\b\b\u0002\u0010Q\u001a\u00020\u000e2\b\b\u0002\u0010R\u001a\u00020\u000eJ\u0002\u0010j\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\u0006\u0010T\u001a\u00020\u00052\u0006\u0010V\u001a\u00020U2\u0006\u0010W\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00052\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u00142\b\b\u0002\u0010X\u001a\u00020\u000e2\b\b\u0002\u0010Y\u001a\u00020\u000e2\b\b\u0002\u0010Z\u001a\u00020\u00052\b\b\u0002\u0010[\u001a\u00020\u000e2\b\b\u0002\u0010\\\u001a\u00020\u000e2\b\b\u0002\u0010E\u001a\u00020\u000e2\b\b\u0002\u0010]\u001a\u00020\u000e2\n\b\u0002\u0010_\u001a\u0004\u0018\u00010^2\b\b\u0002\u0010\b\u001a\u00020\u00072\b\b\u0002\u0010`\u001a\u00020\u00052\b\b\u0002\u0010a\u001a\u00020\u00052\n\b\u0002\u0010c\u001a\u0004\u0018\u00010b2\b\b\u0002\u00106\u001a\u00020\u00072\b\b\u0002\u0010d\u001a\u00020\u00122\b\b\u0002\u0010e\u001a\u00020U2\b\b\u0002\u0010f\u001a\u00020\u00072\b\b\u0002\u0010\u0019\u001a\u00020\u00072\b\b\u0002\u0010g\u001a\u00020\u00072\b\b\u0002\u0010h\u001a\u00020\u000e2\b\b\u0002\u0010i\u001a\u00020\u0007J\u000e\u0010k\u001a\u00020\n2\u0006\u00100\u001a\u00020/J\u001a\u0010l\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u0005J\u000e\u0010m\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u0001J\u0018\u0010n\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003J&\u0010q\u001a\u00020\n2\b\u0010\u0002\u001a\u0004\u0018\u00010\u00012\n\b\u0002\u0010o\u001a\u0004\u0018\u00010:2\b\b\u0002\u0010p\u001a\u00020\u0012J\u0016\u0010r\u001a\u00020\n2\u0006\u00100\u001a\u00020\u00012\u0006\u0010\u0004\u001a\u00020\u0003J*\u0010s\u001a\u00020\n2\u0006\u00100\u001a\u00020/2\u0006\u0010;\u001a\u00020:2\u0006\u0010<\u001a\u00020\u00032\b\b\u0002\u0010=\u001a\u00020\u0012H\u0002J*\u0010t\u001a\u00020\n2\u0006\u00100\u001a\u00020/2\u0006\u0010;\u001a\u00020:2\u0006\u0010<\u001a\u00020\u00032\b\b\u0002\u0010=\u001a\u00020\u0012H\u0002J0\u0010w\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0010\b\u0002\u0010v\u001a\n\u0012\u0004\u0012\u00020\n\u0018\u00010u2\f\u0010@\u001a\b\u0012\u0004\u0012\u00020\n0uH\u0002J\u0018\u0010x\u001a\u00020\n2\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010;\u001a\u00020:H\u0002J\"\u0010{\u001a\u00020\n2\b\u00100\u001a\u0004\u0018\u00010\u00012\u0006\u0010z\u001a\u00020y2\u0006\u0010\u0006\u001a\u00020\u0005H\u0002J,\u0010|\u001a\u00020\n2\b\u00100\u001a\u0004\u0018\u00010\u00012\u0006\u0010z\u001a\u00020y2\u0006\u0010\u0006\u001a\u00020\u00052\b\u00105\u001a\u0004\u0018\u00010\u0003H\u0002J\u0018\u0010}\u001a\u00020\n2\u0006\u0010z\u001a\u00020y2\u0006\u0010\u0004\u001a\u00020\u0003H\u0002¨\u0006\u0001"}, d2 = {"Lyo0/k;", "", "asContext", "Landroid/os/Bundle;", "bundle", "", AppLinkConstants.REQUESTCODE, "", "albumSource", "maxExtractTime", "", "q", "Lcom/xingin/capa/v2/session2/model/EditableVideo2;", "video", "", "canGoBack", "editPageSource", "Lkotlin/Pair;", "", "templateCropData", "Lcom/xingin/capa/lib/video/entity/VideoTemplate;", "videoTemplate", "Lcom/xingin/capa/lib/video/entity/OneKeyGenerate2;", "oneKeyGenerate", "isFromDeeplink", "capaEditPageSource", "a0", "animType", "Q", "M", "T", "type", "K", "V", "v", "noteType", "editNoteId", "source", "C", "videoBeanJson", "Lut0/b;", "Y", "pageStatue", "t", "u", "index", "c0", "Landroid/content/Context;", "context", "X", "currTemplate", "categoryId", "showMoreRecommend", "options", "templatePageSource", "O", "(Ljava/lang/Object;Lcom/xingin/capa/lib/video/entity/VideoTemplate;Ljava/lang/Integer;Ljava/lang/Integer;ZILandroid/os/Bundle;Ljava/lang/String;)V", "S", "Lwp0/e;", "session", "jumpBundle", "startTime", z60.h.f160753a, "Lkotlin/Function1;", "action", "d0", "s", "showSelectBtn", "onlyCanOneSelect", "isVideoCover", "currentType", "fromPostAddPic", "fromMusicImportVideoAudio", "showSelectedItems", "o", "(Ljava/lang/Object;IIZZZLjava/lang/String;Lcom/xingin/capa/lib/video/entity/VideoTemplate;Ljava/lang/Boolean;Ljava/lang/Boolean;Z)V", "", "Lcom/xingin/capa/lib/newcapa/session/CapaImageModel;", "imageList", "canBack", "isFromNotePostPage", "postAddMore", "clearTempData", "y", "selectVideoSum", "", "videoRatio", "videoWidth", "showSelectList", "needCheckMaxCount", "maxTipCount", "isWaterColorMode", "isLocalStickerMode", "isTemplateEdit", "Lcom/xingin/capa/v2/feature/template/model/cloud/CloudTemplateModel;", "customTemplate", "resSelectAction", "templateReplaceIdx", "Lcom/xingin/capa/v2/feature/template/model/TemplateReplaceModel;", "templateReplaceModel", "singleVideoDurationLimit", "appointCropScale", "templateSessionSource", "capaAlbumPageSource", "isCustomSticker", "customStickerResourceUrl", "I", "E", "A", "H", "w", "draftSession", "draftId", "F", "x", "k", "l", "Lkotlin/Function0;", "deniedAction", "m", "j", "Landroid/content/Intent;", "intent", "e0", "f0", "g", "<init>", "()V", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public final class k { /* renamed from: a reason: collision with root package name */ public static final k f158769a = new k(); @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CapaPageJumper.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public static final a f158770a = new a(); public a() { super(0); } @Override // kotlin.jvm.functions.Function0 public final void invoke() { al2.e.f(R$string.b66); } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class b extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ int f158771a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ boolean f158772b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ boolean f158773c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f158774d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ VideoTemplate f158775e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Boolean f158776f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ Boolean f158777g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ boolean f158778h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ boolean f158779i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ Object f158780j; /* renamed from: k reason: collision with root package name */ public final /* synthetic */ int f158781k; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(int i10, boolean z14, boolean z15, String str, VideoTemplate videoTemplate, Boolean bool, Boolean bool2, boolean z16, boolean z17, Object obj, int i14) { super(1); this.f158771a = i10; this.f158772b = z14; this.f158773c = z15; this.f158774d = str; this.f158775e = videoTemplate; this.f158776f = bool; this.f158777g = bool2; this.f158778h = z16; this.f158779i = z17; this.f158780j = obj; this.f158781k = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158780j, p13.a.a(context, AlbumPreviewActivity.class, new Pair[]{TuplesKt.to("key_start_index", Integer.valueOf(this.f158771a)), TuplesKt.to("key_show_select_btn", Boolean.valueOf(this.f158772b)), TuplesKt.to("key_only_can_one_select", Boolean.valueOf(this.f158773c)), TuplesKt.to("key_album_data_type", this.f158774d), TuplesKt.to("key_video_template", this.f158775e), TuplesKt.to("key_from_post_add_pic", this.f158776f), TuplesKt.to("key_from_music_import_video_audio", this.f158777g), TuplesKt.to("key_is_video_cover", Boolean.valueOf(this.f158778h)), TuplesKt.to("key_show_selected_items", Boolean.valueOf(this.f158779i))}), this.f158781k); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CapaPageJumper.kt */ public static final class c extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158782a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Bundle f158783b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ String f158784c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ int f158785d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f158786e; @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class a extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Bundle f158787a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ String f158788b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158789c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Object f158790d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f158791e; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(Bundle bundle, String str, int i10, Object obj, int i14) { super(1); this.f158787a = bundle; this.f158788b = str; this.f158789c = i10; this.f158790d = obj; this.f158791e = i14; } public final void a(Context context) { String str; Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); h.f158761a.b(context, this.f158787a); e22.u.f70848a.o(context, 200, 0); Intent a14 = p13.a.a(context, CapaEntranceActivity.class, new Pair[0]); Bundle bundle = this.f158787a; if (bundle != null) { a14.putExtras(bundle); k.f158769a.g(a14, this.f158787a); } a14.putExtra("key_album_source", this.f158788b); a14.putExtra("audio_extract_limit", this.f158789c); if (!i80.d.f89172a.f()) { i80.d.j(ut0.b.CAPA_NOTE_UNKNOWN); } Bundle bundle2 = this.f158787a; if (bundle2 == null || (str = bundle2.getString("camera_type")) == null) { str = ""; } if (Intrinsics.areEqual(str, "0")) { m0.f12248a.o0("album_start_jump", "album"); } k.f158769a.e0(this.f158790d, a14, this.f158791e); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(Object obj, Bundle bundle, String str, int i10, int i14) { super(0); this.f158782a = obj; this.f158783b = bundle; this.f158784c = str; this.f158785d = i10; this.f158786e = i14; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { k kVar = k.f158769a; Object obj = this.f158782a; kVar.d0(obj, new a(this.f158783b, this.f158784c, this.f158785d, obj, this.f158786e)); } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CapaPageJumper.kt */ public static final class d extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158792a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Bundle f158793b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158794c; @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class a extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Bundle f158795a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Object f158796b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158797c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(Bundle bundle, Object obj, int i10) { super(1); this.f158795a = bundle; this.f158796b = obj; this.f158797c = i10; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); Intent a14 = p13.a.a(context, CapaFilterLibActivity.class, new Pair[0]); Bundle bundle = this.f158795a; if (bundle != null) { a14.putExtras(bundle); } k.f158769a.e0(this.f158796b, a14, this.f158797c); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(Object obj, Bundle bundle, int i10) { super(0); this.f158792a = obj; this.f158793b = bundle; this.f158794c = i10; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { k kVar = k.f158769a; Object obj = this.f158792a; kVar.d0(obj, new a(this.f158793b, obj, this.f158794c)); } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class e extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158798a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158799b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158800c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(Object obj, int i10, int i14) { super(1); this.f158798a = obj; this.f158799b = i10; this.f158800c = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158798a, p13.a.a(context, VideoCoverChooseActivity.class, new Pair[]{TuplesKt.to("tag_recompile", Integer.valueOf(this.f158799b))}), this.f158800c); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class f extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158801a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158802b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158803c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f(Object obj, int i10, int i14) { super(1); this.f158801a = obj; this.f158802b = i10; this.f158803c = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158801a, p13.a.a(context, VideoCoverEditActivity.class, new Pair[]{TuplesKt.to("tag_recompile", Integer.valueOf(this.f158802b))}), this.f158803c); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class g extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ EditableVideo2 f158804a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ String f158805b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Object f158806c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(EditableVideo2 editableVideo2, String str, Object obj) { super(1); this.f158804a = editableVideo2; this.f158805b = str; this.f158806c = obj; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); m0.f12248a.R0(System.currentTimeMillis()); i80.d dVar = i80.d.f89172a; if (!dVar.g(ut0.b.CAPA_NOTE_VIDEO) && !dVar.g(ut0.b.CAPA_NOTE_LONG_VIDEO)) { i80.d.q(null, 1, null); } wp0.e b14 = dVar.b(); b14.I(new VideoEditorImpl()); i80.d.p(b14); IVideoEditor n14 = b14.n(); if (n14 != null) { n14.setEditableVideo(this.f158804a); } n.f158929a.d(); Intent a14 = p13.a.a(context, CropVideoTimeActivity.class, new Pair[0]); a14.putExtra("key_edit_page_source", this.f158805b); k.f158769a.e0(this.f158806c, a14, -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class h extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158807a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Bundle f158808b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h(Object obj, Bundle bundle) { super(1); this.f158807a = obj; this.f158808b = bundle; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k kVar = k.f158769a; Object obj = this.f158807a; Pair[] pairArr = new Pair[1]; Bundle bundle = this.f158808b; pairArr[0] = TuplesKt.to("source", bundle != null ? bundle.getString("source") : null); kVar.e0(obj, p13.a.a(context, DraftListActivity.class, pairArr), -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class i extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ List<CapaImageModel> f158809a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ boolean f158810b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ boolean f158811c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ boolean f158812d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ boolean f158813e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f158814f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ Object f158815g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ int f158816h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(List<CapaImageModel> list, boolean z14, boolean z15, boolean z16, boolean z17, String str, Object obj, int i10) { super(1); this.f158809a = list; this.f158810b = z14; this.f158811c = z15; this.f158812d = z16; this.f158813e = z17; this.f158814f = str; this.f158815g = obj; this.f158816h = i10; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); wp0.e b14 = i80.d.f89172a.b(); b14.J(ut0.b.CAPA_NOTE_IMAGE); if (b14.g() == null) { k kVar = k.f158769a; b14.A(new ImageEditorImpl(b14.k())); Unit unit = Unit.INSTANCE; } IImageEditor g10 = b14.g(); if (g10 != null) { g10.addImageModelList(b14.i().isFirstFlow(), this.f158809a, this.f158810b); } b14.i().setGuideInfo(null); n.f158929a.d(); k.f158769a.e0(this.f158815g, p13.a.a(context, CapaEditImageActivityV2.class, new Pair[]{TuplesKt.to("need_show_index", 0), TuplesKt.to("can_back", Boolean.valueOf(this.f158811c)), TuplesKt.to("is_from_postpage", Boolean.valueOf(this.f158812d)), TuplesKt.to("post_add_more_edit", Boolean.valueOf(this.f158813e)), TuplesKt.to("key_edit_page_source", this.f158814f)}), this.f158816h); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class j extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ List<CapaImageModel> f158817a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j(List<CapaImageModel> list) { super(1); this.f158817a = list; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); m0.q0(m0.f12248a, "router", "photo_edit", 0, 4, null); k kVar = k.f158769a; List<CapaImageModel> list = this.f158817a; Intrinsics.checkNotNullExpressionValue(list, "imageArray"); k.z(kVar, context, list, 0, false, false, "Router", false, false, 220, null); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u00020\u0001¨\u0006\u0004"}, d2 = {"yo0/k$k", "Lcom/google/gson/reflect/TypeToken;", "", "Lcom/xingin/capa/lib/newcapa/session/CapaImageModel;", "capa_library_release"}, k = 1, mv = {1, 6, 0}) /* renamed from: yo0.k$k reason: collision with other inner class name */ /* compiled from: CapaPageJumper.kt */ public static final class C2580k extends TypeToken<List<? extends CapaImageModel>> { } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class l extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158818a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158819b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l(Object obj, int i10) { super(1); this.f158818a = obj; this.f158819b = i10; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); Intent a14 = p13.a.a(context, CapaLCBPostNoteActivity.class, new Pair[0]); n.f158929a.e(); k.f158769a.e0(this.f158818a, a14, this.f158819b); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class m extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ String f158820a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ String f158821b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Bundle f158822c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Object f158823d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f158824e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f158825f; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(String str, String str2, Bundle bundle, Object obj, int i10, String str3) { super(1); this.f158820a = str; this.f158821b = str2; this.f158822c = bundle; this.f158823d = obj; this.f158824e = i10; this.f158825f = str3; } public final void a(Context context) { Intent intent; wp0.e eVar; Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); String str = this.f158820a; if (str != null) { String str2 = this.f158825f; if (Intrinsics.areEqual("video", str2)) { eVar = i80.d.q(null, 1, null); } else { eVar = i80.d.i(null, 1, null); } if (Intrinsics.areEqual("video", str2)) { if (eVar.n() == null) { k kVar = k.f158769a; eVar.I(new VideoEditorImpl()); Unit unit = Unit.INSTANCE; } } else if (eVar.g() == null) { k kVar2 = k.f158769a; eVar.A(new ImageEditorImpl(eVar.k())); Unit unit2 = Unit.INSTANCE; } eVar.i().setNoteSource(2); eVar.i().setNoteId(str); } String str3 = this.f158821b; if (str3 != null) { if (i80.d.f89172a.b().o()) { m0.q0(m0.f12248a, str3, "photo_publish", 0, 4, null); } else { m0.q0(m0.f12248a, str3, "video_publish", 0, 4, null); } } n.f158929a.e(); if (this.f158822c != null) { qb0.a aVar = qb0.a.f121024a; if (aVar.d()) { aVar.c(this.f158822c); } } i80.d dVar = i80.d.f89172a; boolean isFromDraft = dVar.b().i().isFromDraft(); if (!dVar.b().q() || Intrinsics.areEqual(this.f158821b, "draft") || isFromDraft) { intent = p13.a.a(context, CapaLCBPostNoteActivity.class, new Pair[0]); } else { intent = p13.a.a(context, OrderNotePostActivity.class, new Pair[0]); } k.f158769a.e0(this.f158823d, intent, this.f158824e); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class n extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Context f158826a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n(Context context) { super(1); this.f158826a = context; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158826a, p13.a.a(context, OrderNotePostActivity.class, new Pair[0]), -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class o extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ wp0.e f158827a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Object f158828b; @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CapaPageJumper.kt */ public static final class a extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ wp0.e f158829a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Object f158830b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(wp0.e eVar, Object obj) { super(0); this.f158829a = eVar; this.f158830b = obj; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { k kVar = k.f158769a; wp0.e eVar = this.f158829a; Object obj = this.f158830b; uo0.f.f138203a.a(eVar); kVar.j(obj, eVar); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o(wp0.e eVar, Object obj) { super(1); this.f158827a = eVar; this.f158828b = obj; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); CapaTitleDialog.a aVar = new CapaTitleDialog.a(context); String string = context.getString(R$string.bp_); Intrinsics.checkNotNullExpressionValue(string, "it.getString(R.string.ca…_draft_update_dialog_msg)"); CapaTitleDialog.a e14 = aVar.e(string); String string2 = context.getString(R$string.b3c); Intrinsics.checkNotNullExpressionValue(string2, "it.getString(R.string.capa_common_i_know)"); CapaTitleDialog.a.i(e14.c(string2).d(new ea0.l(new a(this.f158827a, this.f158828b))), null, 1, null); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class p extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158831a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public p(Object obj) { super(1); this.f158831a = obj; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158831a, p13.a.a(context, VideoPreviewActivity.class, new Pair[0]), -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CapaPageJumper.kt */ public static final class q extends Lambda implements Function0<Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158832a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ boolean f158833b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ String f158834c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f158835d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f158836e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ float f158837f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ int f158838g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ VideoTemplate f158839h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ boolean f158840i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ boolean f158841j; /* renamed from: k reason: collision with root package name */ public final /* synthetic */ int f158842k; /* renamed from: l reason: collision with root package name */ public final /* synthetic */ boolean f158843l; /* renamed from: m reason: collision with root package name */ public final /* synthetic */ boolean f158844m; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ boolean f158845n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ int f158846o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ CloudTemplateModel f158847p; /* renamed from: q reason: collision with root package name */ public final /* synthetic */ String f158848q; /* renamed from: r reason: collision with root package name */ public final /* synthetic */ TemplateReplaceModel f158849r; /* renamed from: s reason: collision with root package name */ public final /* synthetic */ int f158850s; /* renamed from: t reason: collision with root package name */ public final /* synthetic */ String f158851t; /* renamed from: u reason: collision with root package name */ public final /* synthetic */ long f158852u; /* renamed from: v reason: collision with root package name */ public final /* synthetic */ float f158853v; /* renamed from: w reason: collision with root package name */ public final /* synthetic */ boolean f158854w; /* renamed from: x reason: collision with root package name */ public final /* synthetic */ String f158855x; /* renamed from: y reason: collision with root package name */ public final /* synthetic */ int f158856y; @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class a extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ boolean f158857a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ String f158858b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ String f158859c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Object f158860d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f158861e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ float f158862f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ int f158863g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ VideoTemplate f158864h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ boolean f158865i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ boolean f158866j; /* renamed from: k reason: collision with root package name */ public final /* synthetic */ int f158867k; /* renamed from: l reason: collision with root package name */ public final /* synthetic */ boolean f158868l; /* renamed from: m reason: collision with root package name */ public final /* synthetic */ boolean f158869m; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ boolean f158870n; /* renamed from: o reason: collision with root package name */ public final /* synthetic */ int f158871o; /* renamed from: p reason: collision with root package name */ public final /* synthetic */ CloudTemplateModel f158872p; /* renamed from: q reason: collision with root package name */ public final /* synthetic */ String f158873q; /* renamed from: r reason: collision with root package name */ public final /* synthetic */ TemplateReplaceModel f158874r; /* renamed from: s reason: collision with root package name */ public final /* synthetic */ int f158875s; /* renamed from: t reason: collision with root package name */ public final /* synthetic */ String f158876t; /* renamed from: u reason: collision with root package name */ public final /* synthetic */ long f158877u; /* renamed from: v reason: collision with root package name */ public final /* synthetic */ float f158878v; /* renamed from: w reason: collision with root package name */ public final /* synthetic */ boolean f158879w; /* renamed from: x reason: collision with root package name */ public final /* synthetic */ String f158880x; /* renamed from: y reason: collision with root package name */ public final /* synthetic */ int f158881y; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(boolean z14, String str, String str2, Object obj, int i10, float f14, int i14, VideoTemplate videoTemplate, boolean z15, boolean z16, int i15, boolean z17, boolean z18, boolean z19, int i16, CloudTemplateModel cloudTemplateModel, String str3, TemplateReplaceModel templateReplaceModel, int i17, String str4, long j14, float f15, boolean z23, String str5, int i18) { super(1); this.f158857a = z14; this.f158858b = str; this.f158859c = str2; this.f158860d = obj; this.f158861e = i10; this.f158862f = f14; this.f158863g = i14; this.f158864h = videoTemplate; this.f158865i = z15; this.f158866j = z16; this.f158867k = i15; this.f158868l = z17; this.f158869m = z18; this.f158870n = z19; this.f158871o = i16; this.f158872p = cloudTemplateModel; this.f158873q = str3; this.f158874r = templateReplaceModel; this.f158875s = i17; this.f158876t = str4; this.f158877u = j14; this.f158878v = f15; this.f158879w = z23; this.f158880x = str5; this.f158881y = i18; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); i80.d dVar = i80.d.f89172a; if (!dVar.f()) { i80.d.j(ut0.b.CAPA_NOTE_UNKNOWN); } if (this.f158857a) { dVar.b().b(ij0.t.CAPA_TEMPLATE_ENTRY); } if (Intrinsics.areEqual(this.f158858b, ij0.w.TEMPLATE_DETAIL_PAGE.getSource())) { dVar.b().c(ij0.t.TEMPLATE_DETAIL_ENTRY); } if (Intrinsics.areEqual(this.f158858b, ij0.y.CREATE_USER_PAGE_TEMPLATE_USE.getSource())) { dVar.b().c(ij0.t.USER_ENTRY); } if (Intrinsics.areEqual(this.f158859c, ij0.s.CAPA_TEMPLATE_NNS_ALBUM_EDIT_SOURCE.getSource())) { dVar.b().c(ij0.t.NNS_ENTRY); } k.f158769a.e0(this.f158860d, p13.a.a(context, SelectVideoActivity.class, new Pair[]{TuplesKt.to("select_video_page_sum", Integer.valueOf(this.f158861e)), TuplesKt.to("bundle_video_ratio", Float.valueOf(this.f158862f)), TuplesKt.to("bundle_video_width", Integer.valueOf(this.f158863g)), TuplesKt.to("video_template", this.f158864h), TuplesKt.to("show_template_list", Boolean.valueOf(this.f158865i)), TuplesKt.to("need_check_max_count", Boolean.valueOf(this.f158866j)), TuplesKt.to("max_tip_select_count", Integer.valueOf(this.f158867k)), TuplesKt.to("is_water_color_mode", Boolean.valueOf(this.f158868l)), TuplesKt.to("is_local_sticker_mode", Boolean.valueOf(this.f158869m)), TuplesKt.to("is_video_cover", Boolean.valueOf(this.f158870n)), TuplesKt.to("template_replace_item_idx", Integer.valueOf(this.f158871o)), TuplesKt.to("is_template_edit", Boolean.valueOf(this.f158857a)), TuplesKt.to("custom_template_model", this.f158872p), TuplesKt.to("key_album_source", this.f158873q), TuplesKt.to("template_replace_model", this.f158874r), TuplesKt.to("select_res_action", Integer.valueOf(this.f158875s)), TuplesKt.to("template_page_source", this.f158876t), TuplesKt.to("select_single_video_duration_limit", Long.valueOf(this.f158877u)), TuplesKt.to("appoint_crop_scale", Float.valueOf(this.f158878v)), TuplesKt.to("template_edit_page_from_source", this.f158859c), TuplesKt.to("is_custom_sticker", Boolean.valueOf(this.f158879w)), TuplesKt.to("custom_sticker_resource_url", this.f158880x)}), this.f158881y); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q(Object obj, boolean z14, String str, String str2, int i10, float f14, int i14, VideoTemplate videoTemplate, boolean z15, boolean z16, int i15, boolean z17, boolean z18, boolean z19, int i16, CloudTemplateModel cloudTemplateModel, String str3, TemplateReplaceModel templateReplaceModel, int i17, String str4, long j14, float f15, boolean z23, String str5, int i18) { super(0); this.f158832a = obj; this.f158833b = z14; this.f158834c = str; this.f158835d = str2; this.f158836e = i10; this.f158837f = f14; this.f158838g = i14; this.f158839h = videoTemplate; this.f158840i = z15; this.f158841j = z16; this.f158842k = i15; this.f158843l = z17; this.f158844m = z18; this.f158845n = z19; this.f158846o = i16; this.f158847p = cloudTemplateModel; this.f158848q = str3; this.f158849r = templateReplaceModel; this.f158850s = i17; this.f158851t = str4; this.f158852u = j14; this.f158853v = f15; this.f158854w = z23; this.f158855x = str5; this.f158856y = i18; } @Override // kotlin.jvm.functions.Function0 public final void invoke() { k kVar = k.f158769a; Object obj = this.f158832a; kVar.d0(obj, new a(this.f158833b, this.f158834c, this.f158835d, obj, this.f158836e, this.f158837f, this.f158838g, this.f158839h, this.f158840i, this.f158841j, this.f158842k, this.f158843l, this.f158844m, this.f158845n, this.f158846o, this.f158847p, this.f158848q, this.f158849r, this.f158850s, this.f158851t, this.f158852u, this.f158853v, this.f158854w, this.f158855x, this.f158856y)); } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class r extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158882a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158883b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158884c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r(Object obj, int i10, int i14) { super(1); this.f158882a = obj; this.f158883b = i10; this.f158884c = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158882a, p13.a.a(context, TemplateCoverChooseActivity.class, new Pair[]{TuplesKt.to("param_type", Integer.valueOf(this.f158883b))}), this.f158884c); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class s extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158885a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158886b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public s(Object obj, int i10) { super(1); this.f158885a = obj; this.f158886b = i10; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158885a, p13.a.a(context, TemplateCreateActivity.class, new Pair[0]), this.f158886b); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class t extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158887a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ VideoTemplate f158888b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ Integer f158889c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ Integer f158890d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ boolean f158891e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ String f158892f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ int f158893g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ Bundle f158894h; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(Object obj, VideoTemplate videoTemplate, Integer num, Integer num2, boolean z14, String str, int i10, Bundle bundle) { super(1); this.f158887a = obj; this.f158888b = videoTemplate; this.f158889c = num; this.f158890d = num2; this.f158891e = z14; this.f158892f = str; this.f158893g = i10; this.f158894h = bundle; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.f0(this.f158887a, p13.a.a(context, TemplateDetailActivity.class, new Pair[]{TuplesKt.to("video_template", this.f158888b), TuplesKt.to(VideoTemplateModel.CATEGORY_ID, this.f158889c), TuplesKt.to("curr_template", this.f158890d), TuplesKt.to("show_more_recommend", Boolean.valueOf(this.f158891e)), TuplesKt.to("template_page_source", this.f158892f)}), this.f158893g, this.f158894h); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class u extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ EditableVideo2 f158895a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ boolean f158896b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158897c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f158898d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Pair<Integer, Long> f158899e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ Object f158900f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ int f158901g; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u(EditableVideo2 editableVideo2, boolean z14, int i10, String str, Pair<Integer, Long> pair, Object obj, int i14) { super(1); this.f158895a = editableVideo2; this.f158896b = z14; this.f158897c = i10; this.f158898d = str; this.f158899e = pair; this.f158900f = obj; this.f158901g = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); m0.f12248a.R0(System.currentTimeMillis()); i80.d dVar = i80.d.f89172a; ut0.b bVar = ut0.b.CAPA_TEMPLATE_EDITOR; if (!dVar.g(bVar)) { i80.d.o(null, 1, null); } wp0.e b14 = dVar.b(); if (!(b14.n() instanceof TemplateEditorImpl) || !b14.s()) { b14.J(bVar); b14.I(new TemplateEditorImpl()); zp0.a.I(b14.n(), new VideoTemplate(0, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, 0.0d, null, null, null, null, 0.0d, null, null, false, 0, 0, null, null, null, null, false, null, false, 0, null, 0, null, 0, null, 0, 0, null, null, null, null, null, 0, 0, false, null, -1, 262143, null)); IVideoEditor n14 = b14.n(); if (n14 != null) { n14.setEditableVideo(this.f158895a); } } String l14 = b14.l(); if (!(l14 == null || l14.length() == 0)) { NoteEditorImpl i10 = b14.i(); dp0.c cVar = dp0.c.f69545a; i10.setSessionFolderPath(cVar.f(cVar.e(b14.k(), b14.l()))); } b14.i().setGuideInfo(null); n.f158929a.d(); k.f158769a.e0(this.f158900f, p13.a.a(context, TemplateEditActivity.class, new Pair[]{TuplesKt.to("can_back", Boolean.valueOf(this.f158896b)), TuplesKt.to("aty_anim_type", Integer.valueOf(this.f158897c)), TuplesKt.to("key_edit_page_source", this.f158898d), TuplesKt.to("DefaultSliceIndex", this.f158899e.getFirst()), TuplesKt.to("DefaultPlayerPos", this.f158899e.getSecond())}), this.f158901g); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class v extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158902a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158903b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ int f158904c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public v(Object obj, int i10, int i14) { super(1); this.f158902a = obj; this.f158903b = i10; this.f158904c = i14; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158902a, p13.a.a(context, TemplateSliceActivity.class, new Pair[]{TuplesKt.to("aty_anim_type", Integer.valueOf(this.f158903b))}), this.f158904c); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class w extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158905a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ int f158906b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public w(Object obj, int i10) { super(1); this.f158905a = obj; this.f158906b = i10; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158905a, p13.a.a(context, TemplateUploadActivity.class, new Pair[0]), this.f158906b); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class x extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ Object f158907a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ String f158908b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public x(Object obj, String str) { super(1); this.f158907a = obj; this.f158908b = str; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158907a, p13.a.a(context, VideoCutActivity.class, new Pair[]{TuplesKt.to("video_info_param", this.f158908b)}), -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class y extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ VideoTemplate f158909a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ EditableVideo2 f158910b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ boolean f158911c; /* renamed from: d reason: collision with root package name */ public final /* synthetic */ String f158912d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ Pair<Integer, Long> f158913e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ boolean f158914f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ String f158915g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ Object f158916h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ int f158917i; /* renamed from: j reason: collision with root package name */ public final /* synthetic */ OneKeyGenerate2 f158918j; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public y(VideoTemplate videoTemplate, EditableVideo2 editableVideo2, boolean z14, String str, Pair<Integer, Long> pair, boolean z15, String str2, Object obj, int i10, OneKeyGenerate2 oneKeyGenerate2) { super(1); this.f158909a = videoTemplate; this.f158910b = editableVideo2; this.f158911c = z14; this.f158912d = str; this.f158913e = pair; this.f158914f = z15; this.f158915g = str2; this.f158916h = obj; this.f158917i = i10; this.f158918j = oneKeyGenerate2; } public final void a(Context context) { IVideoEditor n14; Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); m0.f12248a.R0(System.currentTimeMillis()); i80.d dVar = i80.d.f89172a; ut0.b bVar = ut0.b.CAPA_NOTE_VIDEO; if (!dVar.g(bVar) && !dVar.g(ut0.b.CAPA_NOTE_LONG_VIDEO)) { i80.d.q(null, 1, null); } wp0.e b14 = dVar.b(); b14.J(bVar); if (b14.n() == null) { k kVar = k.f158769a; VideoTemplate videoTemplate = this.f158909a; OneKeyGenerate2 oneKeyGenerate2 = this.f158918j; if (videoTemplate != null) { b14.I(new TemplateEditorImpl()); zp0.a.I(b14.n(), videoTemplate); } else { b14.I(new VideoEditorImpl()); IVideoEditor n15 = b14.n(); if (n15 != null) { n15.setOneKeyGenerate2(oneKeyGenerate2); } } Unit unit = Unit.INSTANCE; } VideoTemplate videoTemplate2 = this.f158909a; if (!(videoTemplate2 == null || (n14 = b14.n()) == null)) { n14.setTemplateToPublishSource(videoTemplate2.getTemplateToPublishSource()); } VideoTemplate videoTemplate3 = this.f158909a; int i10 = -1; int id3 = videoTemplate3 != null ? videoTemplate3.getId() : -1; GuideInfo guideInfo = b14.i().getGuideInfo(); if (guideInfo != null) { i10 = guideInfo.getMaterialId(); } if (id3 != i10) { b14.i().setGuideInfo(null); } IVideoEditor n16 = b14.n(); if (n16 != null) { n16.setEditableVideo(this.f158910b); } n.f158929a.d(); k.f158769a.e0(this.f158916h, p13.a.a(context, VideoEditActivityV3.class, new Pair[]{TuplesKt.to("can_back", Boolean.valueOf(this.f158911c)), TuplesKt.to("key_edit_page_source", this.f158912d), TuplesKt.to("DefaultSliceIndex", this.f158913e.getFirst()), TuplesKt.to("DefaultPlayerPos", this.f158913e.getSecond()), TuplesKt.to("is_from_deeplink", Boolean.valueOf(this.f158914f)), TuplesKt.to("capa_edit_page_source", this.f158915g)}), this.f158917i); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroid/content/Context;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Landroid/content/Context;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CapaPageJumper.kt */ public static final class z extends Lambda implements Function1<Context, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ int f158919a; /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Object f158920b; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public z(int i10, Object obj) { super(1); this.f158919a = i10; this.f158920b = obj; } public final void a(Context context) { Intrinsics.checkNotNullParameter(context, AdvanceSetting.NETWORK_TYPE); k.f158769a.e0(this.f158920b, p13.a.a(context, VideoTemplateCropActivity.class, new Pair[]{TuplesKt.to("DefaultSliceIndex", Integer.valueOf(this.f158919a))}), -1); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Context context) { a(context); return Unit.INSTANCE; } } public static /* synthetic */ void B(k kVar, Object obj, int i10, int i14, Object obj2) { if ((i14 & 2) != 0) { i10 = -1; } kVar.A(obj, i10); } @JvmStatic public static final void C(Object obj, int i10, String str, String str2, String str3, Bundle bundle) { f158769a.d0(obj, new m(str2, str3, bundle, obj, i10, str)); } public static /* synthetic */ void D(Object obj, int i10, String str, String str2, String str3, Bundle bundle, int i14, Object obj2) { if ((i14 & 2) != 0) { i10 = -1; } Bundle bundle2 = null; String str4 = (i14 & 4) != 0 ? null : str; String str5 = (i14 & 8) != 0 ? null : str2; String str6 = (i14 & 16) != 0 ? null : str3; if ((i14 & 32) == 0) { bundle2 = bundle; } C(obj, i10, str4, str5, str6, bundle2); } public static /* synthetic */ void G(k kVar, Object obj, wp0.e eVar, long j14, int i10, Object obj2) { if ((i10 & 2) != 0) { eVar = null; } if ((i10 & 4) != 0) { j14 = 0; } kVar.F(obj, eVar, j14); } public static /* synthetic */ void J(k kVar, Object obj, int i10, float f14, int i14, int i15, VideoTemplate videoTemplate, boolean z14, boolean z15, int i16, boolean z16, boolean z17, boolean z18, boolean z19, CloudTemplateModel cloudTemplateModel, String str, int i17, int i18, TemplateReplaceModel templateReplaceModel, String str2, long j14, float f15, String str3, String str4, String str5, boolean z23, String str6, int i19, Object obj2) { kVar.I(obj, i10, f14, i14, (i19 & 16) != 0 ? -1 : i15, (i19 & 32) != 0 ? null : videoTemplate, (i19 & 64) != 0 ? false : z14, (i19 & 128) != 0 ? true : z15, (i19 & 256) != 0 ? -1 : i16, (i19 & 512) != 0 ? false : z16, (i19 & 1024) != 0 ? false : z17, (i19 & 2048) != 0 ? false : z18, (i19 & 4096) != 0 ? false : z19, (i19 & 8192) != 0 ? null : cloudTemplateModel, (i19 & 16384) != 0 ? "" : str, (32768 & i19) != 0 ? 0 : i17, (65536 & i19) != 0 ? -1 : i18, (131072 & i19) != 0 ? null : templateReplaceModel, (262144 & i19) != 0 ? "" : str2, (524288 & i19) != 0 ? -1 : j14, (1048576 & i19) != 0 ? -1.0f : f15, (2097152 & i19) != 0 ? "" : str3, (4194304 & i19) != 0 ? "" : str4, (8388608 & i19) != 0 ? "" : str5, (16777216 & i19) != 0 ? false : z23, (i19 & TPMediaCodecProfileLevel.HEVCHighTierLevel62) != 0 ? "" : str6); } @JvmStatic public static final void K(Object obj, int i10, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new r(obj, i10, i14)); } public static /* synthetic */ void L(Object obj, int i10, int i14, int i15, Object obj2) { if ((i15 & 4) != 0) { i14 = -1; } K(obj, i10, i14); } @JvmStatic public static final void M(Object obj, int i10) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new s(obj, i10)); } public static /* synthetic */ void N(Object obj, int i10, int i14, Object obj2) { if ((i14 & 2) != 0) { i10 = -1; } M(obj, i10); } @JvmStatic public static final void O(Object obj, VideoTemplate videoTemplate, Integer num, Integer num2, boolean z14, int i10, Bundle bundle, String str) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "templatePageSource"); if (videoTemplate != null) { ij0.p.f91386a.H(String.valueOf(videoTemplate.getId()), videoTemplate.getProducer() == 1 ? c0.TEMPLATE_TYPE_PERSONAL : c0.TEMPLATE_TYPE_OFFICIAL); } f158769a.d0(obj, new t(obj, videoTemplate, num2, num, z14, str, i10, bundle)); } public static /* synthetic */ void P(Object obj, VideoTemplate videoTemplate, Integer num, Integer num2, boolean z14, int i10, Bundle bundle, String str, int i14, Object obj2) { if ((i14 & 2) != 0) { videoTemplate = null; } if ((i14 & 4) != 0) { num = 0; } if ((i14 & 8) != 0) { num2 = 0; } if ((i14 & 16) != 0) { z14 = false; } if ((i14 & 32) != 0) { i10 = -1; } if ((i14 & 64) != 0) { bundle = null; } if ((i14 & 128) != 0) { str = ""; } O(obj, videoTemplate, num, num2, z14, i10, bundle, str); } @JvmStatic @JvmOverloads public static final void Q(Object obj, EditableVideo2 editableVideo2, int i10, boolean z14, String str, Pair<Integer, Long> pair, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "editPageSource"); Intrinsics.checkNotNullParameter(pair, "templateCropData"); if (editableVideo2 != null) { f158769a.d0(obj, new u(editableVideo2, z14, i14, str, pair, obj, i10)); } } public static /* synthetic */ void R(Object obj, EditableVideo2 editableVideo2, int i10, boolean z14, String str, Pair pair, int i14, int i15, Object obj2) { Q(obj, editableVideo2, (i15 & 4) != 0 ? -1 : i10, (i15 & 8) != 0 ? true : z14, (i15 & 16) != 0 ? ij0.s.CREATE_MAIN_PAGE_ALBUM.getSource() : str, (i15 & 32) != 0 ? new Pair(-1, 0L) : pair, (i15 & 64) != 0 ? 0 : i14); } @JvmStatic public static final void S(Context context, String str) { Intrinsics.checkNotNullParameter(context, "context"); String str2 = "xhsdiscover://post_new_note?page={\"page_type\":\"video_theme\"}"; if (!(str == null || str.length() == 0)) { str2 = str2 + "&source=" + str; } Routers.build(str2).open(context); } @JvmStatic public static final void T(Object obj, int i10, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new v(obj, i14, i10)); } public static /* synthetic */ void U(Object obj, int i10, int i14, int i15, Object obj2) { if ((i15 & 2) != 0) { i10 = -1; } if ((i15 & 4) != 0) { i14 = 0; } T(obj, i10, i14); } @JvmStatic public static final void V(Object obj, int i10) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new w(obj, i10)); } public static /* synthetic */ void W(Object obj, int i10, int i14, Object obj2) { if ((i14 & 2) != 0) { i10 = -1; } V(obj, i10); } @JvmStatic public static final void X(Context context, Bundle bundle) { Intrinsics.checkNotNullParameter(context, "context"); Intrinsics.checkNotNullParameter(bundle, "bundle"); Routers.build(Pages.PAGE_TEMPLATE_USER).with(bundle).open(context); } @JvmStatic public static final void Y(Object obj, String str, ut0.b bVar) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "videoBeanJson"); Intrinsics.checkNotNullParameter(bVar, "noteType"); if (!i80.d.f89172a.g(bVar)) { i80.d.j(bVar); } f158769a.d0(obj, new x(obj, str)); } public static /* synthetic */ void Z(Object obj, String str, ut0.b bVar, int i10, Object obj2) { if ((i10 & 4) != 0) { bVar = ut0.b.CAPA_NOTE_VIDEO; } Y(obj, str, bVar); } @JvmStatic @JvmOverloads public static final void a0(Object obj, EditableVideo2 editableVideo2, int i10, boolean z14, String str, Pair<Integer, Long> pair, VideoTemplate videoTemplate, OneKeyGenerate2 oneKeyGenerate2, boolean z15, String str2) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "editPageSource"); Intrinsics.checkNotNullParameter(pair, "templateCropData"); Intrinsics.checkNotNullParameter(str2, "capaEditPageSource"); if (editableVideo2 != null) { f158769a.d0(obj, new y(videoTemplate, editableVideo2, z14, str, pair, z15, str2, obj, i10, oneKeyGenerate2)); } } public static /* synthetic */ void b0(Object obj, EditableVideo2 editableVideo2, int i10, boolean z14, String str, Pair pair, VideoTemplate videoTemplate, OneKeyGenerate2 oneKeyGenerate2, boolean z15, String str2, int i14, Object obj2) { int i15 = (i14 & 4) != 0 ? -1 : i10; boolean z16 = (i14 & 8) != 0 ? true : z14; String str3 = (i14 & 16) != 0 ? "Album" : str; Pair pair2 = (i14 & 32) != 0 ? new Pair(-1, 0L) : pair; OneKeyGenerate2 oneKeyGenerate22 = null; VideoTemplate videoTemplate2 = (i14 & 64) != 0 ? null : videoTemplate; if ((i14 & 128) == 0) { oneKeyGenerate22 = oneKeyGenerate2; } a0(obj, editableVideo2, i15, z16, str3, pair2, videoTemplate2, oneKeyGenerate22, (i14 & 256) != 0 ? false : z15, (i14 & 512) != 0 ? "" : str2); } @JvmStatic @JvmOverloads public static final void c0(Object obj, int i10) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new z(i10, obj)); } public static final void g0(Object obj, Intent intent, int i10, Bundle bundle) { Intrinsics.checkNotNullParameter(intent, "$intent"); if (obj == null) { return; } if (obj instanceof Fragment) { Fragment fragment = (Fragment) obj; if (fragment.isAdded()) { fragment.startActivityForResult(intent, i10, bundle); } } else if (obj instanceof android.app.Fragment) { android.app.Fragment fragment2 = (android.app.Fragment) obj; if (fragment2.isAdded()) { fragment2.startActivityForResult(intent, i10, bundle); } } else if (obj instanceof Activity) { ((Activity) obj).startActivityForResult(intent, i10, bundle); } else if (obj instanceof Context) { intent.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY); ((Context) obj).startActivity(intent, bundle); } } public static final void h0(Object obj, Intent intent, int i10) { Intrinsics.checkNotNullParameter(intent, "$intent"); if (obj == null) { return; } if (obj instanceof Fragment) { Fragment fragment = (Fragment) obj; if (fragment.isAdded()) { fragment.startActivityForResult(intent, i10); } } else if (obj instanceof android.app.Fragment) { android.app.Fragment fragment2 = (android.app.Fragment) obj; if (fragment2.isAdded()) { fragment2.startActivityForResult(intent, i10); } } else if (obj instanceof Activity) { ((Activity) obj).startActivityForResult(intent, i10); } else if (obj instanceof Context) { intent.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY); ((Context) obj).startActivity(intent); } } public static /* synthetic */ void i(k kVar, Context context, wp0.e eVar, Bundle bundle, long j14, int i10, Object obj) { if ((i10 & 8) != 0) { j14 = 0; } kVar.h(context, eVar, bundle, j14); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: yo0.k */ /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void n(k kVar, Object obj, Function0 function0, Function0 function02, int i10, Object obj2) { if ((i10 & 2) != 0) { function0 = null; } kVar.m(obj, function0, function02); } public static /* synthetic */ void p(k kVar, Object obj, int i10, int i14, boolean z14, boolean z15, boolean z16, String str, VideoTemplate videoTemplate, Boolean bool, Boolean bool2, boolean z17, int i15, Object obj2) { kVar.o(obj, i10, (i15 & 4) != 0 ? -1 : i14, (i15 & 8) != 0 ? true : z14, (i15 & 16) != 0 ? false : z15, (i15 & 32) != 0 ? false : z16, (i15 & 64) != 0 ? "all" : str, (i15 & 128) != 0 ? null : videoTemplate, (i15 & 256) != 0 ? Boolean.FALSE : bool, (i15 & 512) != 0 ? Boolean.FALSE : bool2, (i15 & 1024) != 0 ? false : z17); } @JvmStatic public static final void q(Object obj, Bundle bundle, int i10, String str, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "albumSource"); new c(obj, bundle, str, i14, i10).invoke(); } public static /* synthetic */ void r(Object obj, Bundle bundle, int i10, String str, int i14, int i15, Object obj2) { if ((i15 & 4) != 0) { i10 = -1; } if ((i15 & 8) != 0) { str = "router"; } if ((i15 & 16) != 0) { i14 = 8; } q(obj, bundle, i10, str, i14); } @JvmStatic public static final void t(Object obj, int i10, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new e(obj, i10, i14)); } @JvmStatic public static final void u(Object obj, int i10, int i14) { Intrinsics.checkNotNullParameter(obj, "asContext"); f158769a.d0(obj, new f(obj, i10, i14)); } @JvmStatic @JvmOverloads public static final void v(Object obj, EditableVideo2 editableVideo2, VideoTemplate videoTemplate, OneKeyGenerate2 oneKeyGenerate2, String str) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "editPageSource"); if (editableVideo2 != null) { f158769a.d0(obj, new g(editableVideo2, str, obj)); } } public static /* synthetic */ void z(k kVar, Object obj, List list, int i10, boolean z14, boolean z15, String str, boolean z16, boolean z17, int i14, Object obj2) { kVar.y(obj, list, (i14 & 4) != 0 ? -1 : i10, (i14 & 8) != 0 ? true : z14, (i14 & 16) != 0 ? false : z15, (i14 & 32) != 0 ? "" : str, (i14 & 64) != 0 ? false : z16, (i14 & 128) != 0 ? false : z17); } public final void A(Object obj, int i10) { if (i80.d.f89172a.b().o()) { m0.q0(m0.f12248a, "reedit", "photo_publish", 0, 4, null); } else { m0.q0(m0.f12248a, "reedit", "video_publish", 0, 4, null); } d0(obj, new l(obj, i10)); } public final void E(Context context) { Intrinsics.checkNotNullParameter(context, "context"); d0(context, new n(context)); } public final void F(Object obj, wp0.e eVar, long j14) { if (obj != null) { if (eVar == null) { CapaDraftModel B = uo0.e.B(j14); eVar = B != null ? xp0.a.f155456a.g(B) : null; if (eVar == null) { return; } } if (!eVar.t() || eVar.i().getLastEditVersionCode() >= 6340000) { j(obj, eVar); } else { d0(obj, new o(eVar, obj)); } } } public final void H(Object obj) { Intrinsics.checkNotNullParameter(obj, "asContext"); d0(obj, new p(obj)); } public final void I(Object obj, int i10, float f14, int i14, int i15, VideoTemplate videoTemplate, boolean z14, boolean z15, int i16, boolean z16, boolean z17, boolean z18, boolean z19, CloudTemplateModel cloudTemplateModel, String str, int i17, int i18, TemplateReplaceModel templateReplaceModel, String str2, long j14, float f15, String str3, String str4, String str5, boolean z23, String str6) { Intrinsics.checkNotNullParameter(str, "albumSource"); Intrinsics.checkNotNullParameter(str2, "templatePageSource"); Intrinsics.checkNotNullParameter(str3, "templateSessionSource"); Intrinsics.checkNotNullParameter(str4, "capaEditPageSource"); Intrinsics.checkNotNullParameter(str5, "capaAlbumPageSource"); Intrinsics.checkNotNullParameter(str6, "customStickerResourceUrl"); if (obj != null) { n(this, obj, null, new q(obj, z19, str5, str4, i10, f14, i14, videoTemplate, z14, z15, i16, z16, z17, z18, i18, cloudTemplateModel, str, templateReplaceModel, i17, str2, j14, f15, z23, str6, i15), 2, null); } } public final void d0(Object obj, Function1<? super Context, Unit> function1) { Context context; Intrinsics.checkNotNullParameter(function1, "action"); if (!f.f158740a.g()) { if (obj instanceof Fragment) { context = ((Fragment) obj).getContext(); } else if (obj instanceof android.app.Fragment) { context = ((android.app.Fragment) obj).getActivity(); } else if (obj instanceof Activity) { context = (Context) obj; } else { context = obj instanceof Context ? (Context) obj : null; } if (context != null) { function1.invoke(context); } } } public final void e0(Object obj, Intent intent, int i10) { c1.c(new i(obj, intent, i10)); } public final void f0(Object obj, Intent intent, int i10, Bundle bundle) { c1.c(new j(obj, intent, i10, bundle)); } public final void g(Intent intent, Bundle bundle) { if (!TextUtils.isEmpty(bundle.getString("key_raw_url"))) { intent.setData(Uri.parse(bundle.getString("key_raw_url"))); } } /* JADX WARNING: Code restructure failed: missing block: B:10:0x0042, code lost: if (r0 == null) goto L_0x0044; */ public final void h(Context context, wp0.e eVar, Bundle bundle, long j14) { String str; EditableVideo2 editableVideo; EditableVideo2 editableVideo2; List<Slice> sliceList; boolean z14; boolean z15; boolean z16; JsonElement jsonElement; Intrinsics.checkNotNullParameter(context, "context"); Intrinsics.checkNotNullParameter(eVar, "session"); Intrinsics.checkNotNullParameter(bundle, "jumpBundle"); try { JsonElement parse = new JsonParser().parse(bundle.getString(CapaDeeplinkUtils.DEEPLINK_PAGE, "")); if (parse.isJsonObject()) { JsonObject asJsonObject = parse.getAsJsonObject(); str = (asJsonObject == null || (jsonElement = asJsonObject.get(CapaDeeplinkUtils.DEEPLINK_PAGE_TYPE)) == null) ? null : jsonElement.getAsString(); } } catch (Exception unused) { } str = ""; boolean z17 = false; switch (str.hashCode()) { case -2111623166: if (str.equals("photo_publish")) { h60.c cVar = h60.c.f85022a; if (cVar.q()) { k(context, eVar, bundle, j14); return; } pq0.y yVar = pq0.y.f119509a; if (!yVar.h()) { cVar.i(); yVar.e(); yVar.a(); k(context, eVar, bundle, j14); return; } al2.e.f(R$string.beq); return; } break; case -1618303154: if (str.equals("video_edit")) { m0.q0(m0.f12248a, "router", "video_edit", 0, 4, null); IVideoEditor n14 = i80.d.f89172a.b().n(); b0(context, n14 != null ? n14.getEditableVideo() : null, 0, false, "Router", null, null, null, false, null, 1004, null); return; } break; case -1415163932: if (str.equals("albums")) { m0 m0Var = m0.f12248a; m0Var.p0("router", "album", j14); m0Var.R0(System.currentTimeMillis()); m0Var.Y("album"); bundle.putString("camera_type", "0"); r(context, bundle, 0, null, 0, 28, null); return; } break; case -778038150: if (str.equals(CapaDeeplinkUtils.DEEPLINK_TAKE_PHOTO)) { bundle.putString("camera_type", "1"); r(context, bundle, 0, null, 0, 28, null); return; } break; case -772478269: if (str.equals("take_video")) { bundle.putString("camera_type", "2"); r(context, bundle, 0, null, 0, 28, null); return; } break; case -508037129: if (str.equals("photo_edit")) { return; } break; case -285734639: if (str.equals("template_create_album")) { if (yn0.e.f158599d.a().m()) { J(this, context, Integer.MAX_VALUE, b00.a.f5877d.f().f(), UGCTransitionRules.DEFAULT_IMAGE_WIDTH, 0, null, false, false, 0, false, false, false, true, null, null, 0, 0, null, ij0.w.CAPA_CREATE_MAIN_PAGE.getSource(), 0, 0.0f, null, null, null, false, null, 66842608, null); return; } return; } break; case -180480337: if (str.equals("template_edit")) { VideoTemplate videoTemplate = (VideoTemplate) bundle.getParcelable("video_template"); IVideoEditor n15 = eVar.n(); if (!(n15 == null || (editableVideo2 = n15.getEditableVideo()) == null || (sliceList = editableVideo2.getSliceList()) == null || !(!sliceList.isEmpty()))) { z17 = true; } if (z17) { IVideoEditor n16 = eVar.n(); if (n16 != null && (editableVideo = n16.getEditableVideo()) != null) { if (videoTemplate != null) { videoTemplate.buildCapaVideoTextModel(editableVideo); } b0(context, editableVideo, 0, true, "theme_album", null, videoTemplate, null, true, null, 676, null); return; } return; } m0 m0Var2 = m0.f12248a; m0Var2.p0("router", CapaDeeplinkUtils.PAGE_TYPE_VIDEO_THEME, j14); m0Var2.R0(System.currentTimeMillis()); bundle.putString("camera_type", "4"); r(context, bundle, 0, null, 0, 28, null); return; } break; case -179989392: if (str.equals("template_user")) { ij0.p.f91386a.T(ij0.u.ROUTER, Intrinsics.areEqual(bundle.getString("userId", ""), b1.f94179a.S0().getUserid())); X(context, bundle); return; } break; case -170779527: if (str.equals("theme_album")) { m0.q0(m0.f12248a, "router", "album", 0, 4, null); VideoTemplate videoTemplate2 = (VideoTemplate) bundle.getParcelable("video_template"); if (videoTemplate2 != null) { J(f158769a, context, videoTemplate2.isWaterColorMode() ? 1 : videoTemplate2.getSectionSize(), b00.a.f5877d.f().f(), UGCTransitionRules.DEFAULT_IMAGE_WIDTH, 0, videoTemplate2, true, !videoTemplate2.isHowToTemplate(), 0, videoTemplate2.isWaterColorMode(), false, false, false, null, CapaDeeplinkUtils.PAGE_TYPE_VIDEO_THEME, 0, 0, null, null, 0, 0.0f, null, null, null, false, null, 67091728, null); return; } return; } break; case 92909918: if (str.equals(FileType.alpha)) { bundle.putString("camera_type", "3"); r(context, bundle, 0, null, 0, 28, null); return; } break; case 1386177797: if (str.equals(CapaDeeplinkUtils.PAGE_TYPE_VIDEO_THEME)) { VideoThemeInfo videoThemeInfo = (VideoThemeInfo) bundle.getParcelable("param_select_template_info"); VideoTemplate videoTemplate3 = (VideoTemplate) bundle.getParcelable("video_template"); if (videoThemeInfo != null && videoThemeInfo.isBelow739Link()) { z14 = true; } else { z14 = videoThemeInfo != null ? videoThemeInfo.isToTemplateDetail() : false; } if (!z14 || videoTemplate3 == null) { m0 m0Var3 = m0.f12248a; m0Var3.p0("router", CapaDeeplinkUtils.PAGE_TYPE_VIDEO_THEME, j14); m0Var3.R0(System.currentTimeMillis()); bundle.putString("camera_type", "4"); r(context, bundle, 0, null, 0, 28, null); return; } if (videoThemeInfo != null && videoThemeInfo.isBelow739Link()) { z15 = eVar.i().isFromPopup(); } else { z15 = videoThemeInfo != null ? videoThemeInfo.getBackToTemplateHome() : false; } if (z15) { bundle.putString("camera_type", "5"); r(context, bundle, 0, null, 0, 28, null); return; } if (videoThemeInfo != null && videoThemeInfo.isBelow739Link()) { if (!eVar.i().isFromPopup()) { z16 = true; P(context, videoTemplate3, null, null, z16, 0, null, null, 236, null); return; } } else if (videoThemeInfo != null) { z16 = videoThemeInfo.getTemplateDetailShowMore(); P(context, videoTemplate3, null, null, z16, 0, null, null, 236, null); return; } z16 = false; P(context, videoTemplate3, null, null, z16, 0, null, null, 236, null); return; } break; case 1791339851: if (str.equals("video_publish")) { h60.c cVar2 = h60.c.f85022a; if (cVar2.q()) { l(context, eVar, bundle, j14); return; } pq0.y yVar2 = pq0.y.f119509a; if (!yVar2.h()) { cVar2.i(); yVar2.e(); yVar2.a(); l(context, eVar, bundle, j14); return; } al2.e.f(R$string.beq); return; } break; } if (x50.a.f152450a.e("key_entrance_type_config", 0) != 2) { m0 m0Var4 = m0.f12248a; m0Var4.p0("router", "album", j14); m0Var4.R0(System.currentTimeMillis()); m0Var4.Y("album"); } bundle.putString("camera_type", "0"); bundle.putString("camera_type_str", "invalid"); r(context, bundle, 0, null, 0, 28, null); } public final void j(Object obj, wp0.e eVar) { EditableVideo2 editableVideo; List<Slice> sliceList; ArrayList<CapaImageModel> imageInfoList; boolean z14; EditableVideo2 editableVideo2; List<Slice> sliceList2; eVar.F(false); boolean z15 = true; if (eVar.s() || eVar.t() || eVar.p()) { IVideoEditor n14 = eVar.n(); if (n14 == null || (editableVideo2 = n14.getEditableVideo()) == null || (sliceList2 = editableVideo2.getSliceList()) == null) { z14 = true; } else { Iterator<T> it3 = sliceList2.iterator(); z14 = true; while (it3.hasNext()) { String videoPath = it3.next().getVideoSource().getVideoPath(); if (!(videoPath == null || videoPath.length() == 0)) { File file = new File(videoPath); if (!file.exists() || !file.isFile()) { z14 = false; } } } } if (!z14) { al2.e.f(R$string.b4z); return; } } i80.d.l(eVar); of0.v.f114200a.l(eVar); EditableVideo2 editableVideo22 = null; if (eVar.s()) { IVideoEditor n15 = eVar.n(); EditableVideo2 editableVideo3 = n15 != null ? n15.getEditableVideo() : null; if (editableVideo3 != null) { editableVideo3.setFromPostPage(Boolean.TRUE); } m0.q0(m0.f12248a, "template_profile_root", "template_edit", 0, 4, null); IVideoEditor n16 = eVar.n(); if (n16 != null) { editableVideo22 = n16.getEditableVideo(); } R(obj, editableVideo22, 0, false, "Draft", null, 0, 108, null); return; } int pageId = eVar.i().getPageId(); if (pageId == zt0.b.PAGE_IMAGE_EDIT.ordinal()) { IImageEditor g10 = eVar.g(); if (g10 == null || (imageInfoList = g10.getImageInfoList()) == null || !(!imageInfoList.isEmpty())) { z15 = false; } if (z15) { eVar.i().updateFlowStatus(false); } m0.q0(m0.f12248a, "draft", "photo_edit", 0, 4, null); z(this, obj, CollectionsKt__CollectionsKt.emptyList(), -1, true, true, "draft", false, false, 192, null); } else if (pageId == zt0.b.PAGE_VIDEO_EDIT.ordinal()) { m0.q0(m0.f12248a, "draft", "video_edit", 0, 4, null); IVideoEditor n17 = eVar.n(); EditableVideo2 editableVideo4 = n17 != null ? n17.getEditableVideo() : null; if (editableVideo4 != null) { editableVideo4.setFromPostPage(Boolean.TRUE); } IVideoEditor n18 = eVar.n(); if (n18 != null) { editableVideo22 = n18.getEditableVideo(); } b0(obj, editableVideo22, 0, false, "Draft", null, null, null, false, null, 1004, null); } else { IImageEditor g14 = eVar.g(); if (g14 != null) { g2 g2Var = g2.f105875a; if (!g2Var.q(g14.getImageInfoList())) { if (!g14.getImageInfoList().isEmpty()) { g14.getTempImageInfoList().clear(); } g2.P(g2Var, g14.getImageInfoList(), eVar.i(), false, 4, null); } } IVideoEditor n19 = eVar.n(); if (!(n19 == null || (editableVideo = n19.getEditableVideo()) == null || (sliceList = editableVideo.getSliceList()) == null || !(!sliceList.isEmpty()))) { of0.l a14 = of0.l.f114176d.a(); b0<Slice> l14 = b0.l(sliceList); String originTrueVideoPath = sliceList.get(0).getOriginTrueVideoPath(); if (originTrueVideoPath == null) { originTrueVideoPath = ""; } a14.p(l14, originTrueVideoPath); } D(obj, -1, null, null, "draft", null, 32, null); } } public final void k(Context context, wp0.e eVar, Bundle bundle, long j14) { ArrayList<CapaImageModel> tempImageInfoList; IImageEditor g10 = eVar.g(); if (((g10 == null || (tempImageInfoList = g10.getTempImageInfoList()) == null) ? 0 : tempImageInfoList.size()) != 0 || eVar.i().isFromServer()) { eVar.J(ut0.b.CAPA_NOTE_IMAGE); D(context, 0, null, null, "router", null, 46, null); return; } m0 m0Var = m0.f12248a; m0Var.p0("router", "album", j14); m0Var.R0(System.currentTimeMillis()); m0Var.Y("album"); bundle.putString("camera_type", "0"); r(context, bundle, 0, null, 0, 28, null); al2.e.f(R$string.bne); } public final void l(Context context, wp0.e eVar, Bundle bundle, long j14) { IVideoEditor n14 = eVar.n(); if ((n14 != null ? n14.getEditableVideo() : null) != null || eVar.i().isFromServer() || eVar.i().isTemplateToNote()) { eVar.J(ut0.b.CAPA_NOTE_VIDEO); D(context, 0, null, null, "router", bundle, 14, null); return; } m0 m0Var = m0.f12248a; m0Var.p0("router", "album", j14); m0Var.R0(System.currentTimeMillis()); m0Var.Y("album"); bundle.putString("camera_type", "0"); r(context, bundle, 0, null, 0, 28, null); al2.e.f(R$string.bnf); } public final void m(Object obj, Function0<Unit> function0, Function0<Unit> function02) { if (function0 == null) { function0 = a.f158770a; } n0.f51460a.b(obj, function02, function0); } public final void o(Object obj, int i10, int i14, boolean z14, boolean z15, boolean z16, String str, VideoTemplate videoTemplate, Boolean bool, Boolean bool2, boolean z17) { Intrinsics.checkNotNullParameter(obj, "asContext"); Intrinsics.checkNotNullParameter(str, "currentType"); d0(obj, new b(i10, z14, z15, str, videoTemplate, bool, bool2, z16, z17, obj, i14)); } public final void s(Object obj, Bundle bundle, int i10) { Intrinsics.checkNotNullParameter(obj, "context"); new d(obj, bundle, i10).invoke(); } public final void w(Object obj, Bundle bundle) { Intrinsics.checkNotNullParameter(obj, "asContext"); d0(obj, new h(obj, bundle)); } public final void x(Object obj, Bundle bundle) { Intrinsics.checkNotNullParameter(obj, "context"); Intrinsics.checkNotNullParameter(bundle, "bundle"); try { String string = bundle.getString("share_image_path"); if (string != null) { d0(obj, new j((List) new Gson().fromJson(string, new C2580k().getType()))); } } catch (Exception e14) { m0 m0Var = m0.f12248a; String localizedMessage = e14.getLocalizedMessage(); if (localizedMessage == null) { localizedMessage = "Error"; } m0Var.u0("photo_edit", TPPlayerMgr.EVENT_ID_APP_ENTER_BACKGROUND, localizedMessage); } } public final void y(Object obj, List<CapaImageModel> list, int i10, boolean z14, boolean z15, String str, boolean z16, boolean z17) { Intrinsics.checkNotNullParameter(list, "imageList"); Intrinsics.checkNotNullParameter(str, "editPageSource"); d0(obj, new i(list, z17, z14, z15, z16, str, obj, i10)); } }