正在查看: Mint v5.7.3 应用的 LefMenuRevampFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 LefMenuRevampFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.htmedia.mint.ui.fragments.leftmenudrawer;
import android.app.ActivityOptions;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.content.res.ResourcesCompat;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.ViewModelProvider;
import com.comscore.Analytics;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.ump.ConsentForm;
import com.google.android.ump.FormError;
import com.google.gson.JsonSyntaxException;
import com.htmedia.mint.AppController;
import com.htmedia.mint.dialycapsule.ui.DailyCapsuleContentActivity;
import com.htmedia.mint.htsubscription.CheckSubscriptionFromLocal;
import com.htmedia.mint.htsubscription.SubscriptionConverter;
import com.htmedia.mint.htsubscription.SubscriptionPlanSingleton;
import com.htmedia.mint.htsubscription.SubscriptionTrigger;
import com.htmedia.mint.htsubscription.WebEngageAnalytices;
import com.htmedia.mint.onboarding.fragments.OnboardingFirstPartyActivity;
import com.htmedia.mint.pojo.Content;
import com.htmedia.mint.pojo.NotificationPojo;
import com.htmedia.mint.pojo.Podcast;
import com.htmedia.mint.pojo.Result;
import com.htmedia.mint.pojo.SectionData;
import com.htmedia.mint.pojo.SocialResponsePojo;
import com.htmedia.mint.pojo.config.AdsAndroidNew;
import com.htmedia.mint.pojo.config.BottomStickyAd;
import com.htmedia.mint.pojo.config.Config;
import com.htmedia.mint.pojo.config.Freemium;
import com.htmedia.mint.pojo.config.Gold;
import com.htmedia.mint.pojo.config.HomeMarketCollection;
import com.htmedia.mint.pojo.config.MoengageNotification;
import com.htmedia.mint.pojo.config.Section;
import com.htmedia.mint.pojo.config.Silver;
import com.htmedia.mint.ui.activity.HomeActivity;
import com.htmedia.mint.ui.activity.NewsLetterActivityNew;
import com.htmedia.mint.ui.activity.SettingsActivity;
import com.htmedia.mint.ui.activity.SubscriptionOffersActivity;
import com.htmedia.mint.ui.activity.WebViewActivityWithHeader;
import com.htmedia.mint.ui.activity.WebViewActivityWithoutHeader;
import com.htmedia.mint.ui.fragments.ExploreAppsFragment;
import com.htmedia.mint.ui.fragments.HomeFragment;
import com.htmedia.mint.ui.fragments.MutualFundListingFragment;
import com.htmedia.mint.ui.fragments.MyReadsFragment;
import com.htmedia.mint.ui.fragments.NewsLatestAndTrendingFragment;
import com.htmedia.mint.ui.fragments.NightModeCallBack;
import com.htmedia.mint.ui.fragments.NotificationCenterFragment;
import com.htmedia.mint.ui.fragments.PodcastFragment;
import com.htmedia.mint.ui.fragments.QuickReadFragment;
import com.htmedia.mint.ui.fragments.VideoListFragment;
import com.htmedia.mint.ui.fragments.WebFragment;
import com.htmedia.mint.ui.fragments.leftmenudrawer.model.LeftDrawerResponseParent;
import com.htmedia.mint.ui.fragments.leftmenudrawer.model.Listing;
import com.htmedia.mint.utils.f0;
import com.htmedia.mint.utils.h0;
import com.htmedia.mint.utils.j1;
import com.htmedia.mint.utils.k1;
import com.htmedia.mint.utils.m0;
import com.htmedia.mint.utils.n;
import com.htmedia.mint.utils.o0;
import com.htmedia.mint.utils.o1;
import com.htmedia.mint.utils.q;
import com.htmedia.mint.utils.q1;
import com.htmedia.mint.utils.s0;
import com.htmedia.mint.utils.t0;
import com.htmedia.mint.whymintsubscribe.ui.activities.WhyMintSubscribeActivity;
import com.htmedia.sso.activities.LoginRegisterActivity;
import com.htmedia.sso.helpers.SSOSingleton;
import com.htmedia.sso.helpers.WebEngageNewSSOEvents;
import com.snowplowanalytics.snowplow.tracker.Tracker;
import com.snowplowanalytics.snowplow.tracker.constants.Parameters;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import in.juspay.hypersdk.core.PaymentConstants;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Timer;
import java.util.TimerTask;
import k6.l1;
import k6.u1;
import k6.v1;
import kotlin.Metadata;
import oh.m;
import q7.b7;
import x4.k4;
import x4.w50;
import x4.y0;
@Metadata(d1 = {"\u0000ê\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b5\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u0000 \u00ad\u00012\u00020\u00012\u00020\u00022\n\u0012\u0006\u0012\u0004\u0018\u00010\u00040\u00032\u00020\u00052\u00020\u0006:\u0002\u00ad\u0001B\u0005¢\u0006\u0002\u0010\u0007J\b\u0010E\u001a\u00020FH\u0002J\b\u0010G\u001a\u00020FH\u0002J\u0012\u0010H\u001a\u0004\u0018\u00010\u00162\u0006\u0010\u0010\u001a\u00020\u0011H\u0002J\u0010\u0010I\u001a\u00020\u00162\b\u0010J\u001a\u0004\u0018\u00010\u0016J\u0006\u0010K\u001a\u00020FJ\u0010\u0010L\u001a\u00020F2\u0006\u0010M\u001a\u00020NH\u0016J\b\u0010O\u001a\u00020FH\u0002J\u001a\u0010P\u001a\u0016\u0012\u0004\u0012\u000209\u0018\u000108j\n\u0012\u0004\u0012\u000209\u0018\u0001`:J\u0010\u0010Q\u001a\u00020F2\u0006\u0010R\u001a\u00020SH\u0016J\u0012\u0010T\u001a\u00020F2\b\u0010U\u001a\u0004\u0018\u000100H\u0016J\b\u0010V\u001a\u00020FH\u0002J \u0010W\u001a\u00020F2\u0006\u0010X\u001a\u00020\u00192\u0006\u0010Y\u001a\u00020\u00162\u0006\u0010Z\u001a\u00020=H\u0002J\b\u0010[\u001a\u00020FH\u0002J\u0012\u0010\\\u001a\u00020\u00192\b\u0010]\u001a\u0004\u0018\u00010(H\u0002J\"\u0010^\u001a\u00020F2\u0006\u0010_\u001a\u00020\t2\u0006\u0010`\u001a\u00020\t2\b\u0010R\u001a\u0004\u0018\u00010aH\u0016J\u0012\u0010b\u001a\u00020F2\b\u0010\u0010\u001a\u0004\u0018\u00010cH\u0016J$\u0010d\u001a\u00020e2\u0006\u0010f\u001a\u00020g2\b\u0010h\u001a\u0004\u0018\u00010\u00132\b\u0010i\u001a\u0004\u0018\u00010jH\u0016J\b\u0010k\u001a\u00020FH\u0016J\b\u0010l\u001a\u00020FH\u0016J\u0012\u0010m\u001a\u00020F2\b\u0010n\u001a\u0004\u0018\u00010oH\u0016J\u0012\u0010m\u001a\u00020F2\b\u0010p\u001a\u0004\u0018\u00010\u0016H\u0016J&\u0010m\u001a\u00020F2\b\u0010p\u001a\u0004\u0018\u00010\u00162\b\u0010q\u001a\u0004\u0018\u00010\u00162\b\u0010r\u001a\u0004\u0018\u00010\u0016H\u0016J\u001c\u0010s\u001a\u00020F2\b\u0010t\u001a\u0004\u0018\u00010u2\b\u0010v\u001a\u0004\u0018\u00010\u0004H\u0016J\u0010\u0010w\u001a\u00020F2\u0006\u0010x\u001a\u00020\tH\u0016J\u001a\u0010y\u001a\u00020F2\u0006\u0010x\u001a\u00020\t2\b\u0010Z\u001a\u0004\u0018\u00010=H\u0016J\b\u0010z\u001a\u00020FH\u0016J\b\u0010{\u001a\u00020FH\u0016J\u001a\u0010|\u001a\u00020F2\u0006\u0010}\u001a\u00020e2\b\u0010i\u001a\u0004\u0018\u00010jH\u0016J\b\u0010~\u001a\u00020FH\u0002J\u0010\u0010\u007f\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002J\u0011\u0010\u0080\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002J\t\u0010\u0081\u0001\u001a\u00020FH\u0002J\t\u0010\u0082\u0001\u001a\u00020FH\u0002J\u0011\u0010\u0083\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002J\t\u0010\u0084\u0001\u001a\u00020FH\u0002J\u000f\u0010\u0085\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=J\t\u0010\u0086\u0001\u001a\u00020FH\u0002J\t\u0010\u0087\u0001\u001a\u00020FH\u0002J\u0010\u0010\u0088\u0001\u001a\u00020\u00012\u0007\u0010\u0089\u0001\u001a\u00020=J\u001c\u0010\u008a\u0001\u001a\u00020F2\u0007\u0010\u008b\u0001\u001a\u00020\u00162\b\u0010\u0010\u001a\u0004\u0018\u00010\u0011H\u0002J\t\u0010\u008c\u0001\u001a\u00020\u0019H\u0002J\u001c\u0010\u008d\u0001\u001a\u00020F2\b\u0010Z\u001a\u0004\u0018\u00010=2\u0007\u0010\u008e\u0001\u001a\u00020\tH\u0002J\u0011\u0010\u008f\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002J\t\u0010\u0090\u0001\u001a\u00020FH\u0002J\t\u0010\u0091\u0001\u001a\u00020FH\u0002J\u001b\u0010\u0092\u0001\u001a\u00020F2\u0007\u0010\u0093\u0001\u001a\u00020\u00162\u0007\u0010\u0094\u0001\u001a\u00020\tH\u0002J\t\u0010\u0095\u0001\u001a\u00020FH\u0002J\t\u0010\u0096\u0001\u001a\u00020FH\u0002J\u001a\u0010\u0097\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=2\t\b\u0002\u0010\u0098\u0001\u001a\u00020\u0019J\t\u0010\u0099\u0001\u001a\u00020FH\u0002J\t\u0010\u009a\u0001\u001a\u00020FH\u0002J\t\u0010\u009b\u0001\u001a\u00020FH\u0002J\t\u0010\u009c\u0001\u001a\u00020FH\u0002J\u000f\u0010\u009d\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=J\u0011\u0010\u009e\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002J\u001b\u0010\u009e\u0001\u001a\u00020F2\u0007\u0010\u009f\u0001\u001a\u00020\u00162\u0007\u0010 \u0001\u001a\u00020\u0016H\u0002J\t\u0010¡\u0001\u001a\u00020FH\u0002J\t\u0010¢\u0001\u001a\u00020FH\u0002J\t\u0010£\u0001\u001a\u00020FH\u0002J\u0011\u0010¤\u0001\u001a\u00020F2\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013J\u0007\u0010¥\u0001\u001a\u00020FJ\"\u0010¦\u0001\u001a\u00020F2\u0017\u0010§\u0001\u001a\u0012\u0012\u0004\u0012\u00020(08j\b\u0012\u0004\u0012\u00020(`:H\u0002J\u0007\u0010¨\u0001\u001a\u00020FJ\u0015\u0010©\u0001\u001a\u00020F2\n\u0010ª\u0001\u001a\u0005\u0018\u00010«\u0001H\u0002J\u0011\u0010¬\u0001\u001a\u00020F2\u0006\u0010Z\u001a\u00020=H\u0002R\u000e\u0010\b\u001a\u00020\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u001a\u0010\n\u001a\u00020\u000bX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0013X\u0082\u000e¢\u0006\u0002\n\u0000R.\u0010\u0014\u001a\"\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020\u0016\u0018\u00010\u0015j\u0010\u0012\u0004\u0012\u00020\u0016\u0012\u0004\u0012\u00020\u0016\u0018\u0001`\u0017X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\u0019X\u0082\u000e¢\u0006\u0002\n\u0000R\u001a\u0010\u001a\u001a\u00020\u001bX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u001c\u0010\u001d\"\u0004\b\u001e\u0010\u001fR\u001c\u0010 \u001a\u0004\u0018\u00010!X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R \u0010&\u001a\b\u0012\u0004\u0012\u00020(0'X\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b)\u0010*\"\u0004\b+\u0010,R\u0010\u0010-\u001a\u0004\u0018\u00010.X\u0082\u000e¢\u0006\u0002\n\u0000R\u001a\u0010/\u001a\u000200X\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b1\u00102\"\u0004\b3\u00104R\u0010\u00105\u001a\u0004\u0018\u00010\u0016X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u00106\u001a\u0004\u0018\u00010\u0016X\u0082\u000e¢\u0006\u0002\n\u0000R\"\u00107\u001a\u0016\u0012\u0004\u0012\u000209\u0018\u000108j\n\u0012\u0004\u0012\u000209\u0018\u0001`:X\u0082\u000e¢\u0006\u0002\n\u0000R\u0016\u0010;\u001a\n\u0012\u0004\u0012\u00020=\u0018\u00010<X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u0010>\u001a\u0004\u0018\u00010?X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b@\u0010A\"\u0004\bB\u0010CR\u000e\u0010D\u001a\u00020\u0016X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006®\u0001"}, d2 = {"Lcom/htmedia/mint/ui/fragments/leftmenudrawer/LefMenuRevampFragment;", "Landroidx/fragment/app/Fragment;", "Lcom/htmedia/mint/presenter/SectionViewInterface;", "Lcom/htmedia/mint/socialhelper/SocialAuthListener;", BuildConfig.FLAVOR, "Lcom/htmedia/mint/ui/adapters/SideMenuRevampAdapter$OnLeftNavMenuItemClick;", "Lcom/htmedia/mint/presenter/NotificationViewInterface;", "()V", "badgeCount", BuildConfig.FLAVOR, "binding", "Lcom/htmedia/mint/databinding/ListRevampViewBinding;", "getBinding", "()Lcom/htmedia/mint/databinding/ListRevampViewBinding;", "setBinding", "(Lcom/htmedia/mint/databinding/ListRevampViewBinding;)V", PaymentConstants.Category.CONFIG, "Lcom/htmedia/mint/pojo/config/Config;", "footer", "Landroid/view/ViewGroup;", "headers", "Ljava/util/HashMap;", BuildConfig.FLAVOR, "Lkotlin/collections/HashMap;", "isPodcast", BuildConfig.FLAVOR, "leftMenuRevampViewModel", "Lcom/htmedia/mint/ui/fragments/leftmenudrawer/LeftMenuRevampViewModel;", "getLeftMenuRevampViewModel", "()Lcom/htmedia/mint/ui/fragments/leftmenudrawer/LeftMenuRevampViewModel;", "setLeftMenuRevampViewModel", "(Lcom/htmedia/mint/ui/fragments/leftmenudrawer/LeftMenuRevampViewModel;)V", "listAdapter", "Lcom/htmedia/mint/ui/adapters/SideMenuRevampAdapter;", "getListAdapter", "()Lcom/htmedia/mint/ui/adapters/SideMenuRevampAdapter;", "setListAdapter", "(Lcom/htmedia/mint/ui/adapters/SideMenuRevampAdapter;)V", "listingItemsForLeftMenu", BuildConfig.FLAVOR, "Lcom/htmedia/mint/ui/fragments/leftmenudrawer/model/Listing;", "getListingItemsForLeftMenu", "()Ljava/util/List;", "setListingItemsForLeftMenu", "(Ljava/util/List;)V", "lotameClass", "Lcom/htmedia/mint/utils/LotameClass;", "parentLeftMenu", "Lcom/htmedia/mint/ui/fragments/leftmenudrawer/model/LeftDrawerResponseParent;", "getParentLeftMenu", "()Lcom/htmedia/mint/ui/fragments/leftmenudrawer/model/LeftDrawerResponseParent;", "setParentLeftMenu", "(Lcom/htmedia/mint/ui/fragments/leftmenudrawer/model/LeftDrawerResponseParent;)V", "podcastName", "podcastUrl", "results", "Ljava/util/ArrayList;", "Lcom/htmedia/mint/pojo/Result;", "Lkotlin/collections/ArrayList;", "sectionArrayList", BuildConfig.FLAVOR, "Lcom/htmedia/mint/pojo/config/Section;", "sectionPresenter", "Lcom/htmedia/mint/presenter/SectionPresenter;", "getSectionPresenter", "()Lcom/htmedia/mint/presenter/SectionPresenter;", "setSectionPresenter", "(Lcom/htmedia/mint/presenter/SectionPresenter;)V", "serverUrl", "checkSubscriptionStatus", BuildConfig.FLAVOR, "explorerAllApp", "findNotificationCenterURL", "getFirstName", "name", "getJson", "getNotificationResponse", "notificationPojo", "Lcom/htmedia/mint/pojo/NotificationPojo;", "getPrivacyPolicy", "getResults", "getSection", Parameters.DATA, "Lcom/htmedia/mint/pojo/SectionData;", "getSectionAAndC", "leftDrawerResponseParent", "goToAuthorSearchFragment", "goToMyMint", "isPrimaryPage", "primarySelectedPage", "section", "gotoNewsLetter", "isGDPRItemRemove", "item", "onActivityResult", "requestCode", "resultCode", "Landroid/content/Intent;", "onAppleLogin", "Lcom/htmedia/mint/pojo/SocialResponsePojo;", "onCreateView", "Landroid/view/View;", "inflater", "Landroid/view/LayoutInflater;", "container", "savedInstanceState", "Landroid/os/Bundle;", "onDestroy", "onDestroyView", "onError", Parameters.EVENT, "Lcom/htmedia/mint/socialhelper/SocialAuthError;", "message", "tag", "url", "onExecute", "provider", "Lcom/htmedia/mint/socialhelper/SocialType;", "o", "onExpandViewClick", "position", "onGroupNameClick", "onPause", "onResume", "onViewCreated", "view", "openDashboard", "openExternalBrower", "openInsideWebViewPage", "openLoginActivity", "openLoginFlowSection", "openMintAboutSectionPages", "openMintEPaper", "openMintLoungeNative", "openMintPremium", "openMutualFund", "openMyMint", "_section", "openMyReedSection", "myReadsView", "openNotificationSection", "openPageWRTTamplate", "groupPosition", "openPodCast", "openPodCastNavtive", "openPodcastSectionAView", "openQuickReadFragment", "from", "pos", "openRateUsSection", "openSearchViewSection", "openSection", "isMarketInsight", "openSettingSection", "openShareUsSection", "openSubscription", "openUnlockPremiumStoryForYou", "openVideoListing", "openWebPage", "gold", "title", "openWhyMint", "openWsj", "openYourDailyDigest", "refreshFooterView", "refreshHeaderView", "removeItems", "myModel", "setExpListViewAdapterAndData", "setSubscribeText", "subscribeText", "Landroid/widget/TextView;", "testWhenCondition", "Companion", "app_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class LefMenuRevampFragment extends Fragment implements v1, e7.c<Object>, b7.a, l1 {
private static final String EXPLORE = "Explore";
private int badgeCount;
public w50 binding;
private Config config;
private ViewGroup footer;
private HashMap<String, String> headers;
private boolean isPodcast;
public LeftMenuRevampViewModel leftMenuRevampViewModel;
private b7 listAdapter;
public List<Listing> listingItemsForLeftMenu;
private q1 lotameClass;
public LeftDrawerResponseParent parentLeftMenu;
private String podcastName;
private String podcastUrl;
private ArrayList<Result> results;
private u1 sectionPresenter;
private String serverUrl = BuildConfig.FLAVOR;
private List<Section> sectionArrayList = new ArrayList();
private final void checkSubscriptionStatus() {
if (!((AppController.j().g() == null || AppController.j().g().getSubscription() == null) ? false : AppController.j().g().getSubscription().isSubscriptionEnable())) {
getBinding().g.setVisibility(8);
} else if (CheckSubscriptionFromLocal.isSubscribedUser(getActivity())) {
getBinding().g.setVisibility(8);
} else {
getBinding().g.setVisibility(0);
setSubscribeText(getBinding().g);
}
}
private final void explorerAllApp() {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
k1.x(k1.l(getContext()), '/' + m.B("EXPLORE APPS", ' ', '-', false, 4, (Object) null));
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Explore Apps");
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
ExploreAppsFragment exploreAppsFragment = new ExploreAppsFragment();
if (supportFragmentManager == null || (beginTransaction = supportFragmentManager.beginTransaction()) == null || (add = beginTransaction.add(2131429286, exploreAppsFragment, "EXPLORE APPS")) == null || (addToBackStack = add.addToBackStack("EXPLORE APPS")) == null) {
return;
}
addToBackStack.commitAllowingStateLoss();
}
private final String findNotificationCenterURL(Config config) {
List<Section> others = config.getOthers();
int size = others.size();
for (int i = 0; i < size; i++) {
Section section = others.get(i);
String id2 = section.getId();
kotlin.jvm.internal.m.f(id2, "getId(...)");
int length = id2.length() - 1;
int i2 = 0;
boolean z = false;
while (i2 <= length) {
boolean z2 = kotlin.jvm.internal.m.h(id2.charAt(!z ? i2 : length), 32) <= 0;
if (z) {
if (!z2) {
break;
}
length--;
} else if (z2) {
i2++;
} else {
z = true;
}
}
if (m.t(id2.subSequence(i2, length + 1).toString(), q.z.NOTIFICATION.getId(), true)) {
return section.getUrl();
}
}
return null;
}
private final void getPrivacyPolicy() {
AppController j = AppController.j();
if (j == null || getActivity() == null) {
return;
}
h4.d f = h4.d.f(j);
if (f.i()) {
f.n(getActivity(), new ConsentForm.OnConsentFormDismissedListener() {
public final void onConsentFormDismissed(FormError formError) {
LefMenuRevampFragment.getPrivacyPolicy$lambda$23(formError);
}
});
}
}
public static final void getPrivacyPolicy$lambda$23(FormError formError) {
}
private final void goToAuthorSearchFragment() {
Log.d("tag", "goToMyMint: ");
AppCompatActivity context = getContext();
kotlin.jvm.internal.m.e(context, "null cannot be cast to non-null type androidx.appcompat.app.AppCompatActivity");
FragmentManager supportFragmentManager = context.getSupportFragmentManager();
kotlin.jvm.internal.m.f(supportFragmentManager, "getSupportFragmentManager(...)");
AppController.L = "explore";
u4.i.a.a(supportFragmentManager, getActivity());
}
private final void goToMyMint(boolean isPrimaryPage, String primarySelectedPage, Section section) {
Log.d("HomeActivity", "goToMyMint: ");
if (getActivity() == null || !(getActivity() instanceof HomeActivity)) {
return;
}
HomeActivity activity = getActivity();
kotlin.jvm.internal.m.e(activity, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
if (activity.X0(1003)) {
return;
}
section.setUrl("https://www.livemint.com/mymint");
goToMyMint(true, BuildConfig.FLAVOR, section);
}
private final void gotoNewsLetter() {
Bundle bundle = new Bundle();
bundle.putString(n.X, EXPLORE);
bundle.putBoolean("is_masthead_show", true);
Intent intent = new Intent((Context) getActivity(), (Class<?>) NewsLetterActivityNew.class);
intent.putExtra(n.X, EXPLORE);
Bundle bundle2 = ActivityOptions.makeCustomAnimation(getActivity(), 2130772024, 2130772030).toBundle();
FragmentActivity activity = getActivity();
if (activity != null) {
activity.startActivity(intent, bundle2);
}
}
private final boolean isGDPRItemRemove(Listing item) {
if (item != null) {
String template = LeftMenuTemplateType.GDPR_PRIVACY_SETTINGS.getTemplate();
String template2 = item.getTemplate();
if (template2 == null) {
template2 = BuildConfig.FLAVOR;
}
if (m.t(template, template2, true)) {
if (this.config == null) {
this.config = AppController.j().g();
}
Config config = this.config;
boolean isGdprAlertEnabled = config != null ? config.isGdprAlertEnabled() : false;
if (!isGdprAlertEnabled) {
return true;
}
if (isGdprAlertEnabled && item.getShowItem()) {
h4.d f = h4.d.f(AppController.j());
if (!(f != null && f.i())) {
return true;
}
}
}
}
return false;
}
public static final void onCreateView$lambda$0(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openSearchViewSection();
}
public static final void onCreateView$lambda$1(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openLoginFlowSection();
}
public static final void onCreateView$lambda$2(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openSubscription();
}
public static final void onCreateView$lambda$3(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openSettingSection();
}
public static final void onCreateView$lambda$4(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openNotificationSection();
}
public static final void onCreateView$lambda$5(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openMintEPaper();
}
public static final void onCreateView$lambda$6(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
FragmentActivity activity = lefMenuRevampFragment.getActivity();
if (activity != null) {
activity.onBackPressed();
}
}
private final void openDashboard() {
y0 y0Var;
k4 k4Var;
FragmentManager supportFragmentManager;
y0 y0Var2;
k4 k4Var2;
HomeActivity activity = getActivity();
BottomNavigationView bottomNavigationView = null;
BottomNavigationView bottomNavigationView2 = (activity == null || (y0Var2 = activity.i0) == null || (k4Var2 = y0Var2.a) == null) ? null : k4Var2.b;
if (bottomNavigationView2 != null) {
bottomNavigationView2.setVisibility(0);
}
FragmentActivity activity2 = getActivity();
if (activity2 != null && (supportFragmentManager = activity2.getSupportFragmentManager()) != null) {
supportFragmentManager.popBackStack();
}
HomeActivity activity3 = getActivity();
if (activity3 != null && (y0Var = activity3.i0) != null && (k4Var = y0Var.a) != null) {
bottomNavigationView = k4Var.b;
}
if (bottomNavigationView == null) {
return;
}
bottomNavigationView.setSelectedItemId(401);
}
private final void openExternalBrower(Section section) {
String url = section.getUrl();
if (TextUtils.isEmpty(url)) {
return;
}
kotlin.jvm.internal.m.d(url);
if (!m.G(url, "http", false, 2, (Object) null)) {
url = AppController.j().g().getServerUrl() + url;
}
kotlin.jvm.internal.m.d(url);
int length = url.length() - 1;
int i = 0;
boolean z = false;
while (i <= length) {
boolean z2 = kotlin.jvm.internal.m.h(url.charAt(!z ? i : length), 32) <= 0;
if (z) {
if (!z2) {
break;
} else {
length--;
}
} else if (z2) {
i++;
} else {
z = true;
}
}
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(url.subSequence(i, length + 1).toString())));
}
private final void openInsideWebViewPage(Section section) {
String str;
String url = section.getUrl();
kotlin.jvm.internal.m.f(url, "getUrl(...)");
if (m.L(url, "http", false, 2, (Object) null)) {
o1.a("WebPage Url", BuildConfig.FLAVOR);
str = section.getUrl();
} else {
str = this.serverUrl + section.getUrl();
o1.a("WebPage Url", str);
}
Intent intent = new Intent((Context) getActivity(), (Class<?>) WebViewActivityWithoutHeader.class);
intent.putExtra("url", str);
startActivity(intent);
}
private final void openLoginActivity() {
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Login");
WebEngageNewSSOEvents.trackSSOLinkClicked("Login", EXPLORE);
if (!m0.a(getActivity())) {
Toast.makeText((Context) getActivity(), (CharSequence) "Can't login, Network not available", 1).show();
return;
}
n.a aVar = n.a.EXPLORE;
n.g0(null, null, aVar.a(), aVar.a());
Intent intent = new Intent((Context) getActivity(), (Class<?>) LoginRegisterActivity.class);
intent.putExtra("origin", EXPLORE);
intent.putExtra("referer", EXPLORE);
intent.putExtra("ssoReason", "explore");
intent.setFlags(603979776);
startActivityForResult(intent, 102);
}
private final void openLoginFlowSection() {
if (TextUtils.isEmpty(f0.G1(getActivity(), "userToken"))) {
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Login");
openLoginActivity();
} else {
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "My Account");
WebEngageAnalytices.trackClickEvents((String) null, (String) null, "My Account Viewed", (Content) null, EXPLORE, BuildConfig.FLAVOR, BuildConfig.FLAVOR);
startActivity(SubscriptionTrigger.openProfileActivity(getActivity()));
}
}
private final void openMintAboutSectionPages(Section section) {
Intent intent = new Intent((Context) getActivity(), (Class<?>) WebViewActivityWithHeader.class);
intent.addFlags(67108864);
if (AppController.j().E()) {
intent.putExtra("url", section.getNightmodeurl());
} else {
intent.putExtra("url", section.getUrl());
}
intent.putExtra("Title", section.getDisplayName());
startActivity(intent);
if (m.t(section.getDisplayName(), "Newspaper Subscription", true)) {
k1.x(k1.l(getContext()), '/' + m.B("Newspaper Subscription", ' ', '-', false, 4, (Object) null));
}
}
private final void openMintEPaper() {
String url = AppController.j().g().getEpaper().getUrl();
if (TextUtils.isEmpty(url)) {
return;
}
kotlin.jvm.internal.m.d(url);
if (!m.G(url, "http", false, 2, (Object) null)) {
url = AppController.j().g().getServerUrl() + url;
}
SSOSingleton.getInstance().setPreviousScreenReferrer(n.a.EXPLORE.a());
Bundle bundle = new Bundle();
bundle.putString(n.X, "explore_menu");
n.l0(getContext(), n.s1, bundle);
f0.e = "Paywall";
f0.A2(getActivity(), url + "?utm_source=androidapp&utm_medium=topnav&utm_campaign=promo");
k1.x(k1.l(getContext()), "/Mint e-paper");
}
private final void openMintPremium() {
y0 y0Var;
k4 k4Var;
y0 y0Var2;
k4 k4Var2;
HomeActivity activity = getActivity();
BottomNavigationView bottomNavigationView = null;
BottomNavigationView bottomNavigationView2 = (activity == null || (y0Var2 = activity.i0) == null || (k4Var2 = y0Var2.a) == null) ? null : k4Var2.b;
if (bottomNavigationView2 != null) {
bottomNavigationView2.setVisibility(0);
}
HomeActivity activity2 = getActivity();
if (activity2 != null && (y0Var = activity2.i0) != null && (k4Var = y0Var.a) != null) {
bottomNavigationView = k4Var.b;
}
if (bottomNavigationView == null) {
return;
}
bottomNavigationView.setSelectedItemId(801);
}
private final void openMutualFund() {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
MutualFundListingFragment mutualFundListingFragment = new MutualFundListingFragment();
mutualFundListingFragment.setArguments(new Bundle());
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, mutualFundListingFragment, "quickreads")) != null && (addToBackStack = add.addToBackStack("quickreads")) != null) {
addToBackStack.commit();
}
HomeActivity activity2 = getActivity();
if (activity2 != null) {
activity2.f4(false, "MUTUAL FUND");
}
}
private final void openMyReedSection(String myReadsView, Config config) {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
HomeActivity activity;
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, myReadsView);
FragmentActivity activity2 = getActivity();
FragmentManager supportFragmentManager = activity2 != null ? activity2.getSupportFragmentManager() : null;
if ((getActivity() instanceof HomeActivity) && (activity = getActivity()) != null) {
activity.j4("MY READS", false);
}
q1 q1Var = this.lotameClass;
if (q1Var != null) {
q1Var.c(null, BuildConfig.FLAVOR, BuildConfig.FLAVOR, "My Read");
}
MyReadsFragment myReadsFragment = new MyReadsFragment();
Bundle bundle = new Bundle();
bundle.putString(n.X, EXPLORE);
bundle.putBoolean("is_masthead_show", true);
myReadsFragment.setArguments(bundle);
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, myReadsFragment, "MY READS")) != null && (addToBackStack = add.addToBackStack("MY READS")) != null) {
addToBackStack.commitAllowingStateLoss();
}
if (config == null || !config.isShowPremiumSection()) {
HomeActivity activity3 = getActivity();
if (activity3 != null) {
activity3.j4("MY READS", false);
return;
}
return;
}
HomeActivity activity4 = getActivity();
if (activity4 != null) {
activity4.f4(false, "MY READS");
}
}
private final boolean openNotificationSection() {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
NotificationCenterFragment notificationCenterFragment = new NotificationCenterFragment();
if (this.badgeCount > 0) {
f0.i3(getActivity(), "notofication_click", new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss+SSSS").format(Calendar.getInstance().getTime()));
this.badgeCount = 0;
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("list", this.results);
notificationCenterFragment.setArguments(bundle);
}
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
if (supportFragmentManager == null || (beginTransaction = supportFragmentManager.beginTransaction()) == null || (add = beginTransaction.add(2131429286, notificationCenterFragment, "NotificationCenter")) == null || (addToBackStack = add.addToBackStack("NotificationCenter")) == null) {
return true;
}
addToBackStack.commitAllowingStateLoss();
return true;
}
private final void openPageWRTTamplate(Section section, int groupPosition) {
if (section != null) {
String template = section.getTemplate();
if (template != null) {
int length = template.length() - 1;
int i = 0;
boolean z = false;
while (i <= length) {
boolean z2 = kotlin.jvm.internal.m.h(template.charAt(!z ? i : length), 32) <= 0;
if (z) {
if (!z2) {
break;
} else {
length--;
}
} else if (z2) {
i++;
} else {
z = true;
}
}
if (!m.t(template.subSequence(i, length + 1).toString(), LeftMenuTemplateType.CHROME_CUSTOM_TAB.getTemplate(), true)) {
int length2 = template.length() - 1;
int i2 = 0;
boolean z3 = false;
while (i2 <= length2) {
boolean z4 = kotlin.jvm.internal.m.h(template.charAt(!z3 ? i2 : length2), 32) <= 0;
if (z3) {
if (!z4) {
break;
} else {
length2--;
}
} else if (z4) {
i2++;
} else {
z3 = true;
}
}
if (m.t(template.subSequence(i2, length2 + 1).toString(), q.c[5], true)) {
openExternalBrower(section);
} else {
int length3 = template.length() - 1;
int i3 = 0;
boolean z5 = false;
while (i3 <= length3) {
boolean z10 = kotlin.jvm.internal.m.h(template.charAt(!z5 ? i3 : length3), 32) <= 0;
if (z5) {
if (!z10) {
break;
} else {
length3--;
}
} else if (z10) {
i3++;
} else {
z5 = true;
}
}
if (m.t(template.subSequence(i3, length3 + 1).toString(), q.c[6], true)) {
openMintAboutSectionPages(section);
} else {
int length4 = template.length() - 1;
int i4 = 0;
boolean z11 = false;
while (i4 <= length4) {
boolean z12 = kotlin.jvm.internal.m.h(template.charAt(!z11 ? i4 : length4), 32) <= 0;
if (z11) {
if (!z12) {
break;
} else {
length4--;
}
} else if (z12) {
i4++;
} else {
z11 = true;
}
}
if (m.t(template.subSequence(i4, length4 + 1).toString(), LeftMenuTemplateType.GDPR_PRIVACY_SETTINGS.getTemplate(), true)) {
getPrivacyPolicy();
} else {
int length5 = template.length() - 1;
int i5 = 0;
boolean z13 = false;
while (i5 <= length5) {
boolean z14 = kotlin.jvm.internal.m.h(template.charAt(!z13 ? i5 : length5), 32) <= 0;
if (z13) {
if (!z14) {
break;
} else {
length5--;
}
} else if (z14) {
i5++;
} else {
z13 = true;
}
}
if (m.t(template.subSequence(i5, length5 + 1).toString(), LeftMenuTemplateType.AUTHOR.getTemplate(), true)) {
goToAuthorSearchFragment();
} else {
int length6 = template.length() - 1;
int i6 = 0;
boolean z15 = false;
while (i6 <= length6) {
boolean z16 = kotlin.jvm.internal.m.h(template.charAt(!z15 ? i6 : length6), 32) <= 0;
if (z15) {
if (!z16) {
break;
} else {
length6--;
}
} else if (z16) {
i6++;
} else {
z15 = true;
}
}
if (m.t(template.subSequence(i6, length6 + 1).toString(), LeftMenuTemplateType.FIRST_PARTY.getTemplate(), true)) {
Bundle bundle = new Bundle();
bundle.putString("pageTitle", section.getDisplayName());
Intent intent = new Intent((Context) getActivity(), (Class<?>) OnboardingFirstPartyActivity.class);
intent.putExtras(bundle);
startActivity(intent);
} else if (section.getDeeplinkType() == null || !section.getDeeplinkType().equals("internal") || section.getUrl() == null) {
String url = section.getUrl();
kotlin.jvm.internal.m.f(url, "getUrl(...)");
String b = s0.MINT_LOUNGE.b();
kotlin.jvm.internal.m.f(b, "getName(...)");
if (m.L(url, b, false, 2, (Object) null)) {
openMintLoungeNative(section);
} else {
String url2 = section.getUrl();
kotlin.jvm.internal.m.f(url2, "getUrl(...)");
if (m.L(url2, "/quickread", false, 2, (Object) null)) {
openQuickReadFragment("Topic clouds", groupPosition);
} else if (section.getTemplate() == null || !section.getTemplate().equals("unlocked_premium_stories_for_you")) {
testWhenCondition(section);
} else {
openUnlockPremiumStoryForYou();
}
}
} else {
if ("My Mint".equals(section.getDisplayName())) {
String url3 = section.getUrl();
kotlin.jvm.internal.m.f(url3, "getUrl(...)");
if (m.L(url3, "/recommended-for-you", false, 2, (Object) null)) {
section.setUrl("https://www.livemint.com/default/mymint");
HomeActivity activity = getActivity();
kotlin.jvm.internal.m.e(activity, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
t0.a(activity, section.getUrl());
}
}
HomeActivity activity2 = getActivity();
kotlin.jvm.internal.m.e(activity2, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
t0.a(activity2, section.getUrl());
}
}
}
}
}
} else if (getActivity() != null && !TextUtils.isEmpty(section.getUrl())) {
f0.z2(getActivity(), f0.v(section.getUrl(), getActivity()));
String url4 = section.getUrl();
kotlin.jvm.internal.m.f(url4, "getUrl(...)");
if (m.L(url4, "credit-card", false, 2, (Object) null)) {
n4.b.L(getActivity(), "cc_hamburger");
} else {
String url5 = section.getUrl();
kotlin.jvm.internal.m.f(url5, "getUrl(...)");
if (m.L(url5, "personal-loan", false, 2, (Object) null)) {
n4.b.L(getActivity(), "pl_hamburger");
}
}
}
} else {
String url6 = section.getUrl();
kotlin.jvm.internal.m.f(url6, "getUrl(...)");
if (m.L(url6, "/podcasts", false, 2, (Object) null)) {
openPodCastNavtive();
} else {
String url7 = section.getUrl();
kotlin.jvm.internal.m.f(url7, "getUrl(...)");
String b2 = s0.MINT_LOUNGE_BUSINESS.b();
kotlin.jvm.internal.m.f(b2, "getName(...)");
if (m.L(url7, b2, false, 2, (Object) null)) {
openMintLoungeNative(section);
} else {
String url8 = section.getUrl();
kotlin.jvm.internal.m.f(url8, "getUrl(...)");
String b3 = s0.MINT_LOUNGE_FEATURE.b();
kotlin.jvm.internal.m.f(b3, "getName(...)");
if (m.L(url8, b3, false, 2, (Object) null)) {
openMintLoungeNative(section);
} else {
String url9 = section.getUrl();
kotlin.jvm.internal.m.f(url9, "getUrl(...)");
String b4 = s0.MINT_LOUNGE_INDULGE.b();
kotlin.jvm.internal.m.f(b4, "getName(...)");
if (m.L(url9, b4, false, 2, (Object) null)) {
openMintLoungeNative(section);
} else {
String url10 = section.getUrl();
kotlin.jvm.internal.m.f(url10, "getUrl(...)");
String b5 = s0.MINT_LOUNGE_ON_SUNDAY.b();
kotlin.jvm.internal.m.f(b5, "getName(...)");
if (m.L(url10, b5, false, 2, (Object) null)) {
openMintLoungeNative(section);
} else {
String url11 = section.getUrl();
kotlin.jvm.internal.m.f(url11, "getUrl(...)");
if (m.L(url11, "/quickread", false, 2, (Object) null)) {
openQuickReadFragment("Topic clouds", groupPosition);
} else {
String url12 = section.getUrl();
kotlin.jvm.internal.m.f(url12, "getUrl(...)");
if (!m.L(url12, "/video", false, 2, (Object) null)) {
String url13 = section.getUrl();
kotlin.jvm.internal.m.f(url13, "getUrl(...)");
if (!m.L(url13, "/videos", false, 2, (Object) null)) {
String url14 = section.getUrl();
kotlin.jvm.internal.m.f(url14, "getUrl(...)");
if (!m.L(url14, "/gold", false, 2, (Object) null)) {
String url15 = section.getUrl();
kotlin.jvm.internal.m.f(url15, "getUrl(...)");
if (!m.L(url15, "/silver", false, 2, (Object) null)) {
String url16 = section.getUrl();
kotlin.jvm.internal.m.f(url16, "getUrl(...)");
if (!m.L(url16, "/livedata", false, 2, (Object) null)) {
String url17 = section.getUrl();
kotlin.jvm.internal.m.f(url17, "getUrl(...)");
if (!m.L(url17, "/Stocks", false, 2, (Object) null)) {
String url18 = section.getUrl();
kotlin.jvm.internal.m.f(url18, "getUrl(...)");
if (!m.L(url18, "/mutualfunds", false, 2, (Object) null)) {
String url19 = section.getUrl();
kotlin.jvm.internal.m.f(url19, "getUrl(...)");
if (!m.L(url19, "/commodities", false, 2, (Object) null)) {
String url20 = section.getUrl();
kotlin.jvm.internal.m.f(url20, "getUrl(...)");
if (!m.L(url20, "/mint-specials", false, 2, (Object) null)) {
openSection$default(this, section, false, 2, null);
}
}
}
}
}
}
}
testWhenCondition(section);
}
}
openVideoListing(section);
}
}
}
}
}
}
}
if (m.t(section.getDisplayName(), "Privacy Policy", true)) {
k1.x(k1.l(getContext()), '/' + m.B("Privacy Policy", ' ', '-', false, 4, (Object) null));
return;
}
String displayName = section.getDisplayName();
String[] strArr = q.f;
if (m.t(displayName, strArr[0], true)) {
Tracker l = k1.l(getContext());
StringBuilder sb2 = new StringBuilder();
sb2.append('/');
String str = strArr[0];
kotlin.jvm.internal.m.f(str, "get(...)");
sb2.append(m.B(str, ' ', '-', false, 4, (Object) null));
k1.x(l, sb2.toString());
return;
}
if (m.t(section.getDisplayName(), strArr[2], true)) {
Tracker l2 = k1.l(getContext());
StringBuilder sb3 = new StringBuilder();
sb3.append('/');
String str2 = strArr[2];
kotlin.jvm.internal.m.f(str2, "get(...)");
sb3.append(m.B(str2, ' ', '-', false, 4, (Object) null));
k1.x(l2, sb3.toString());
return;
}
if (m.t(section.getDisplayName(), strArr[1], true)) {
Tracker l3 = k1.l(getContext());
StringBuilder sb4 = new StringBuilder();
sb4.append('/');
String str3 = strArr[1];
kotlin.jvm.internal.m.f(str3, "get(...)");
sb4.append(m.B(str3, ' ', '-', false, 4, (Object) null));
k1.x(l3, sb4.toString());
return;
}
if (m.t(section.getDisplayName(), "Contact Us", true)) {
k1.x(k1.l(getContext()), '/' + m.B("Contact Us", ' ', '-', false, 4, (Object) null));
return;
}
if (m.t(section.getDisplayName(), "Mint Offers", true)) {
k1.x(k1.l(getContext()), '/' + m.B("Mint Offers", ' ', '-', false, 4, (Object) null));
}
}
}
private final void openPodCast(Section section) {
j1.x0(2, getActivity());
openWebPage(section);
new Timer().schedule(new TimerTask() {
@Override
public void run() {
j1.x0(1, LefMenuRevampFragment.this.getActivity());
}
}, 300L);
}
private final void openPodCastNavtive() {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
PodcastFragment podcastFragment = new PodcastFragment();
Bundle bundle = new Bundle();
bundle.putBoolean("is_masthead_show", true);
bundle.putString("origin", "explore");
podcastFragment.setArguments(bundle);
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, podcastFragment, "Podcast")) != null && (addToBackStack = add.addToBackStack("Podcast")) != null) {
addToBackStack.commit();
}
HomeActivity activity2 = getActivity();
if (activity2 != null) {
activity2.f4(false, "PODCAST");
}
}
private final void openPodcastSectionAView() {
String str = this.podcastUrl;
kotlin.jvm.internal.m.d(str);
if (m.L(str, "/podcasts", false, 2, (Object) null)) {
openPodCastNavtive();
}
}
private final void openQuickReadFragment(String from, int pos) {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
q1 q1Var = this.lotameClass;
if (q1Var != null) {
q1Var.c(null, BuildConfig.FLAVOR, BuildConfig.FLAVOR, "Quick Read");
}
QuickReadFragment quickReadFragment = new QuickReadFragment();
Bundle bundle = new Bundle();
bundle.putString("explore", from);
bundle.putBoolean("is_masthead_show", true);
bundle.putInt("pos", pos);
quickReadFragment.setArguments(bundle);
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, quickReadFragment, "quickreads")) != null && (addToBackStack = add.addToBackStack("quickreads")) != null) {
addToBackStack.commit();
}
HomeActivity activity2 = getActivity();
if (activity2 != null) {
activity2.f4(false, "QUICK READS");
}
}
private final void openRateUsSection() {
new v7.g(getActivity()).show();
k1.x(k1.l(getContext()), '/' + getString(2131952457));
}
private final void openSearchViewSection() {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Search");
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
y6.c cVar = new y6.c();
Bundle bundle = new Bundle();
y6.c.t = "explore";
cVar.setArguments(bundle);
if (supportFragmentManager == null || (beginTransaction = supportFragmentManager.beginTransaction()) == null || (add = beginTransaction.add(2131429286, cVar, "Search_Revamp")) == null || (addToBackStack = add.addToBackStack("Search_Revamp")) == null) {
return;
}
addToBackStack.commit();
}
public static void openSection$default(LefMenuRevampFragment lefMenuRevampFragment, Section section, boolean z, int i, Object obj) {
if ((i & 2) != 0) {
z = false;
}
lefMenuRevampFragment.openSection(section, z);
}
private final void openSettingSection() {
k1.x(k1.l(getContext()), '/' + m.B("Settings", ' ', '-', false, 4, (Object) null));
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Settings");
Intent intent = new Intent((Context) getActivity(), (Class<?>) SettingsActivity.class);
Bundle bundle = ActivityOptions.makeCustomAnimation(getActivity(), 2130772024, 2130772030).toBundle();
FragmentActivity activity = getActivity();
if (activity != null) {
activity.startActivityForResult(intent, 90078, bundle);
}
}
private final void openShareUsSection() {
String str;
Resources resources;
try {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
FragmentActivity activity = getActivity();
if (activity == null || (resources = activity.getResources()) == null || (str = resources.getString(2131951702)) == null) {
str = "Live Mint";
}
intent.putExtra("android.intent.extra.SUBJECT", str);
intent.putExtra("android.intent.extra.TEXT", "Stay connected with latest Business and markets news, download Mint App https://play.google.com/store/apps/details?id=com.htmedia.mint");
startActivity(Intent.createChooser(intent, BuildConfig.FLAVOR));
k1.x(k1.l(getContext()), "/Share App");
} catch (Exception e) {
e.printStackTrace();
}
}
private final void openSubscription() {
WebEngageAnalytices.trackClickEvents("Hamburger_Subscribe", (String) null, (String) null, (Content) null, EXPLORE, BuildConfig.FLAVOR, BuildConfig.FLAVOR);
Bundle bundle = new Bundle();
bundle.putString(n.X, "explore_menu");
n.l0(getActivity(), n.t1, bundle);
Intent openPlanPageIntent = SubscriptionTrigger.openPlanPageIntent(getActivity(), "explore_menu", false);
openPlanPageIntent.putExtra("planpagecta", q.x.EXPLORE.ordinal());
openPlanPageIntent.putExtra("urlkey", "https://accounts.hindustantimes.com/lm/userplan");
openPlanPageIntent.putExtra("keybuttonName", "Subscribe_Explore");
openPlanPageIntent.putExtra("funnelName", EXPLORE);
SubscriptionPlanSingleton.getInstance().setContent((Content) null);
SSOSingleton.getInstance().setPlanPageReason("explore");
SSOSingleton.getInstance().setPaywallReson(BuildConfig.FLAVOR);
SubscriptionPlanSingleton.getInstance().setPianoExpName(BuildConfig.FLAVOR);
FragmentActivity activity = getActivity();
if (activity != null) {
activity.startActivityForResult(openPlanPageIntent, 1009);
}
}
private final void openUnlockPremiumStoryForYou() {
Freemium freemium;
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, getString(2131952016));
Section section = new Section();
section.setDisplayName(getString(2131952016));
section.setId("freemium");
Config config = this.config;
section.setUrl((config == null || (freemium = config.getFreemium()) == null) ? null : freemium.getUrl());
openSection$default(this, section, false, 2, null);
}
private final void openWebPage(Section section) {
String str;
String url = section.getUrl();
kotlin.jvm.internal.m.f(url, "getUrl(...)");
if (m.L(url, "http", false, 2, (Object) null)) {
o1.a("WebPage Url", BuildConfig.FLAVOR);
str = section.getUrl();
} else {
str = this.serverUrl + section.getUrl();
o1.a("WebPage Url", str);
}
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
}
private final void openWebPage(String gold, String title) {
HomeMarketCollection homeMarketCollection;
Silver silver;
HomeMarketCollection homeMarketCollection2;
Silver silver2;
HomeMarketCollection homeMarketCollection3;
Gold gold2;
HomeMarketCollection homeMarketCollection4;
Gold gold3;
Section section = new Section();
String str = null;
if (m.t(gold, "Gold", true)) {
Config config = this.config;
section.setUrl((config == null || (homeMarketCollection4 = config.getHomeMarketCollection()) == null || (gold3 = homeMarketCollection4.getGold()) == null) ? null : gold3.getWeblink());
Config config2 = this.config;
if (config2 != null && (homeMarketCollection3 = config2.getHomeMarketCollection()) != null && (gold2 = homeMarketCollection3.getGold()) != null) {
str = gold2.getWeblink();
}
section.setNightmodeurl(str);
} else {
Config config3 = this.config;
section.setUrl((config3 == null || (homeMarketCollection2 = config3.getHomeMarketCollection()) == null || (silver2 = homeMarketCollection2.getSilver()) == null) ? null : silver2.getWeblink());
Config config4 = this.config;
if (config4 != null && (homeMarketCollection = config4.getHomeMarketCollection()) != null && (silver = homeMarketCollection.getSilver()) != null) {
str = silver.getWeblink();
}
section.setNightmodeurl(str);
}
AppCompatActivity context = getContext();
kotlin.jvm.internal.m.e(context, "null cannot be cast to non-null type androidx.appcompat.app.AppCompatActivity");
FragmentManager supportFragmentManager = context.getSupportFragmentManager();
kotlin.jvm.internal.m.f(supportFragmentManager, "getSupportFragmentManager(...)");
WebFragment webFragment = new WebFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("top_section_section", section);
webFragment.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, webFragment, title).addToBackStack(title).commit();
HomeActivity context2 = getContext();
kotlin.jvm.internal.m.e(context2, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
context2.f4(false, title);
HomeActivity context3 = getContext();
kotlin.jvm.internal.m.e(context3, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
context3.i0.a.q.setExpanded(true, true);
}
private final void openWhyMint() {
startActivity(new Intent((Context) getActivity(), (Class<?>) WhyMintSubscribeActivity.class));
}
private final void openWsj() {
Config config = this.config;
Section wsjSection = config != null ? config.getWsjSection() : null;
if (wsjSection != null) {
wsjSection.setWsj(true);
}
n.M(getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "The wall street journal");
openPageWRTTamplate(wsjSection, 0);
}
private final void openYourDailyDigest() {
String b;
if (f0.G1(getActivity(), "userName") != null) {
b = f0.G1(getActivity(), "userClient");
kotlin.jvm.internal.m.d(b);
} else {
b = f6.d.b(getActivity());
kotlin.jvm.internal.m.d(b);
}
Section section = new Section();
section.setDisplayName(getString(2131951858));
section.setId("DAILY_DIGEST");
StringBuilder sb2 = new StringBuilder();
Config config = this.config;
sb2.append(config != null ? config.getDailyDigestURL() : null);
sb2.append("htfpId=");
sb2.append(b);
sb2.append("&propertyId=lm&platformId=app&numStories=50");
section.setUrl(sb2.toString());
openSection$default(this, section, false, 2, null);
}
public static final void refreshFooterView$lambda$10(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openShareUsSection();
}
public static final void refreshFooterView$lambda$11(int i, int i2, LefMenuRevampFragment lefMenuRevampFragment, View view) {
Section section;
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
try {
if (i == i2 - 3) {
lefMenuRevampFragment.explorerAllApp();
} else if (i == i2 - 2) {
k1.x(k1.l(lefMenuRevampFragment.getContext()), '/' + m.B("Settings", ' ', '-', false, 4, (Object) null));
n.M(lefMenuRevampFragment.getContext(), n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Settings");
Intent intent = new Intent((Context) lefMenuRevampFragment.getActivity(), (Class<?>) SettingsActivity.class);
Bundle bundle = ActivityOptions.makeCustomAnimation(lefMenuRevampFragment.getActivity(), 2130772024, 2130772030).toBundle();
FragmentActivity activity = lefMenuRevampFragment.getActivity();
if (activity != null) {
activity.startActivityForResult(intent, 90078, bundle);
}
} else if (i != i2 - 1 && (section = AppController.j().g().getSettings().get(i)) != null) {
n.M(lefMenuRevampFragment.getContext(), n.U1, BuildConfig.FLAVOR, null, section.getUrl(), section.getDisplayName());
if (m.t(section.getDisplayName(), "feedback", true)) {
f0.j3(lefMenuRevampFragment.getActivity(), "[email protected]", lefMenuRevampFragment.getString(2131951827), f0.t1());
} else {
lefMenuRevampFragment.openPageWRTTamplate(section, i);
}
}
} catch (Exception e) {
e.printStackTrace();
o0.g(e, "LeftMenuFragment");
}
}
public static final void refreshFooterView$lambda$9(LefMenuRevampFragment lefMenuRevampFragment, View view) {
kotlin.jvm.internal.m.g(lefMenuRevampFragment, "this$0");
lefMenuRevampFragment.openRateUsSection();
}
public final void removeItems(ArrayList<Listing> myModel) {
Iterator<Listing> it = myModel.iterator();
kotlin.jvm.internal.m.f(it, "iterator(...)");
while (it.hasNext()) {
Listing next = it.next();
if (!next.getShowItem()) {
it.remove();
} else if (isGDPRItemRemove(next)) {
it.remove();
} else if (next.getSubSection() != null) {
List<Listing> subSection = next.getSubSection();
kotlin.jvm.internal.m.e(subSection, "null cannot be cast to non-null type java.util.ArrayList<com.htmedia.mint.ui.fragments.leftmenudrawer.model.Listing>{ kotlin.collections.TypeAliasesKt.ArrayList<com.htmedia.mint.ui.fragments.leftmenudrawer.model.Listing> }");
Iterator it2 = ((ArrayList) subSection).iterator();
kotlin.jvm.internal.m.f(it2, "iterator(...)");
while (it2.hasNext()) {
if (!((Listing) it2.next()).getShowItem()) {
it2.remove();
} else if (isGDPRItemRemove(next)) {
it.remove();
}
}
}
}
}
public static final boolean setExpListViewAdapterAndData$lambda$8(com.htmedia.mint.ui.fragments.leftmenudrawer.LefMenuRevampFragment r7, android.widget.ExpandableListView r8, android.view.View r9, int r10, int r11, long r12) {
throw new UnsupportedOperationException("Method not decompiled: com.htmedia.mint.ui.fragments.leftmenudrawer.LefMenuRevampFragment.setExpListViewAdapterAndData$lambda$8(com.htmedia.mint.ui.fragments.leftmenudrawer.LefMenuRevampFragment, android.widget.ExpandableListView, android.view.View, int, int, long):boolean");
}
private final void setSubscribeText(TextView subscribeText) {
if (subscribeText != null) {
if (SubscriptionConverter.isSKUPlanActive(AppController.j().l())) {
subscribeText.setText("Upgrade Now");
} else {
subscribeText.setText("Subscribe Now");
}
}
}
private final void testWhenCondition(Section section) {
k4 k4Var;
if (kotlin.jvm.internal.m.b(section.getUrl(), "/home")) {
FragmentActivity activity = getActivity();
if (activity != null) {
activity.onBackPressed();
}
try {
HomeActivity activity2 = getActivity();
kotlin.jvm.internal.m.e(activity2, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
y0 y0Var = activity2.i0;
if (y0Var != null && (k4Var = y0Var.a) != null) {
r1 = k4Var.b;
}
if (r1 == null) {
return;
}
r1.setSelectedItemId(101);
return;
} catch (Exception e) {
e.printStackTrace();
return;
}
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "http://livemint.com/foryou")) {
goToAuthorSearchFragment();
return;
}
String url = section.getUrl();
kotlin.jvm.internal.m.f(url, "getUrl(...)");
if (m.L(url, "/recommended-for-you", false, 2, (Object) null)) {
openMyMint(section);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/dailycapsule")) {
HomeActivity activity3 = getActivity();
kotlin.jvm.internal.m.e(activity3, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
startActivity(new Intent((Context) activity3, (Class<?>) DailyCapsuleContentActivity.class));
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "https://www.livemint.com/lm/subscription-offers")) {
HomeActivity activity4 = getActivity();
kotlin.jvm.internal.m.e(activity4, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
Intent intent = new Intent((Context) activity4, (Class<?>) SubscriptionOffersActivity.class);
intent.putExtra(n.X, EXPLORE);
startActivity(intent);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/dailydigest")) {
openYourDailyDigest();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mysubscription")) {
openSubscription();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/myreads")) {
String displayName = section.getDisplayName();
kotlin.jvm.internal.m.f(displayName, "getDisplayName(...)");
openMyReedSection(displayName, this.config);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/myaccount")) {
HomeActivity activity5 = getActivity();
kotlin.jvm.internal.m.e(activity5, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity5.c1();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/epaper")) {
openMintEPaper();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mintshorts")) {
FragmentActivity activity6 = getActivity();
if (activity6 != null) {
activity6.onBackPressed();
}
HomeActivity activity7 = getActivity();
kotlin.jvm.internal.m.e(activity7, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
HomeActivity homeActivity = activity7;
FragmentActivity activity8 = getActivity();
homeActivity.j1(activity8 != null ? activity8.getSupportFragmentManager() : null);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mint-specials")) {
HomeActivity activity9 = getActivity();
kotlin.jvm.internal.m.e(activity9, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity9.Q2();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/newsinnumbers")) {
HomeActivity activity10 = getActivity();
kotlin.jvm.internal.m.e(activity10, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity10.e1((Bundle) null);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mintpremium")) {
openMintPremium();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/marketdata")) {
openDashboard();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/livedata")) {
openDashboard();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/Stocks")) {
FragmentActivity activity11 = getActivity();
if (activity11 != null) {
activity11.onBackPressed();
}
Bundle bundle = new Bundle();
bundle.putString("url", "https://www.livemint.com/" + s0.MOST_ACTIVE_BY_VOLUME.name());
bundle.putBoolean("most_active_by_volume_bse", true);
HomeActivity activity12 = getActivity();
kotlin.jvm.internal.m.e(activity12, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity12.s1(bundle, q.m.DEEPLINK);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mutualfunds")) {
FragmentActivity activity13 = getActivity();
if (activity13 != null) {
activity13.onBackPressed();
}
Bundle bundle2 = new Bundle();
bundle2.putString("url", "https://www.livemint.com/mutual-funds");
bundle2.putBoolean("market_mutual_fund_tab", true);
HomeActivity.G0.getIntent().putExtras(bundle2);
HomeActivity activity14 = getActivity();
kotlin.jvm.internal.m.e(activity14, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
HomeActivity activity15 = getActivity();
kotlin.jvm.internal.m.e(activity15, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity14.a1(activity15.getSupportFragmentManager());
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/calculators")) {
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/gold")) {
FragmentActivity activity16 = getActivity();
if (activity16 != null) {
activity16.onBackPressed();
}
openWebPage("Gold", "GOLD PRICES");
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/silver")) {
openWebPage("Silver", "SILVER PRICES");
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/commodities") || kotlin.jvm.internal.m.b(section.getUrl(), "/primer") || kotlin.jvm.internal.m.b(section.getUrl(), "/plainfacts") || kotlin.jvm.internal.m.b(section.getUrl(), "/snapview") || kotlin.jvm.internal.m.b(section.getUrl(), "/longstory") || kotlin.jvm.internal.m.b(section.getUrl(), "/mintexplainer") || kotlin.jvm.internal.m.b(section.getUrl(), "/mintopinion")) {
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/thewallstreetjournal")) {
openWsj();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/theeconomist")) {
HomeActivity activity17 = getActivity();
kotlin.jvm.internal.m.e(activity17, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
HomeActivity homeActivity2 = activity17;
FragmentActivity activity18 = getActivity();
homeActivity2.g1(activity18 != null ? activity18.getSupportFragmentManager() : null);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/specialreports")) {
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/videos")) {
openVideoListing(section);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/podcasts")) {
openPodCastNavtive();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/webstories")) {
openSection$default(this, section, false, 2, null);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/newsletters")) {
gotoNewsLetter();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "https://www.livemint.com/Object/141EnEHrj3MSsNLtT8BEaK/aboutus.html")) {
openSection$default(this, section, false, 2, null);
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/ratetheapp")) {
openRateUsSection();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/sharetheapp")) {
openShareUsSection();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/exploreallapps")) {
explorerAllApp();
return;
}
if (kotlin.jvm.internal.m.b(section.getUrl(), "/mintoffers") || kotlin.jvm.internal.m.b(section.getUrl(), "/newspapersubscription")) {
return;
}
if (!kotlin.jvm.internal.m.b(section.getUrl(), "/marketinsights")) {
openSection$default(this, section, false, 2, null);
} else {
section.setTemplate("listing_page");
openSection(section, true);
}
}
public final w50 getBinding() {
w50 w50Var = this.binding;
if (w50Var != null) {
return w50Var;
}
kotlin.jvm.internal.m.w("binding");
return null;
}
public final String getFirstName(String name) {
if (name == null || m.t(name, "null", true)) {
return "User";
}
if (!m.L(name, " ", false, 2, (Object) null)) {
return name;
}
String substring = name.substring(0, m.V(name, " ", 0, false, 6, (Object) null));
kotlin.jvm.internal.m.f(substring, "substring(...)");
StringBuilder sb2 = new StringBuilder(substring);
sb2.setCharAt(0, Character.toUpperCase(sb2.charAt(0)));
String sb3 = sb2.toString();
kotlin.jvm.internal.m.f(sb3, "toString(...)");
return sb3;
}
public final void getJson() {
if (getActivity() == null || !isAdded()) {
return;
}
getLeftMenuRevampViewModel().getParentLiveData().observe(getViewLifecycleOwner(), new LefMenuRevampFragment$sam$androidx_lifecycle_Observer$0(new LefMenuRevampFragment$getJson$1(this)));
}
public final LeftMenuRevampViewModel getLeftMenuRevampViewModel() {
LeftMenuRevampViewModel leftMenuRevampViewModel = this.leftMenuRevampViewModel;
if (leftMenuRevampViewModel != null) {
return leftMenuRevampViewModel;
}
kotlin.jvm.internal.m.w("leftMenuRevampViewModel");
return null;
}
public final b7 getListAdapter() {
return this.listAdapter;
}
public final List<Listing> getListingItemsForLeftMenu() {
List<Listing> list = this.listingItemsForLeftMenu;
if (list != null) {
return list;
}
kotlin.jvm.internal.m.w("listingItemsForLeftMenu");
return null;
}
@Override
public void getNotificationResponse(NotificationPojo notificationPojo) {
kotlin.jvm.internal.m.g(notificationPojo, "notificationPojo");
int size = notificationPojo.getResult().size();
for (int i = 0; i < size; i++) {
if (kotlin.jvm.internal.m.b(notificationPojo.getResult().get(i).getDateType(), "new")) {
this.badgeCount++;
}
}
List<Result> result = notificationPojo.getResult();
kotlin.jvm.internal.m.e(result, "null cannot be cast to non-null type java.util.ArrayList<com.htmedia.mint.pojo.Result>{ kotlin.collections.TypeAliasesKt.ArrayList<com.htmedia.mint.pojo.Result> }");
this.results = (ArrayList) result;
}
public final LeftDrawerResponseParent getParentLeftMenu() {
LeftDrawerResponseParent leftDrawerResponseParent = this.parentLeftMenu;
if (leftDrawerResponseParent != null) {
return leftDrawerResponseParent;
}
kotlin.jvm.internal.m.w("parentLeftMenu");
return null;
}
public final ArrayList<Result> getResults() {
return this.results;
}
@Override
public void getSection(SectionData data) {
kotlin.jvm.internal.m.g(data, Parameters.DATA);
AppController.j().a0(data);
getLeftMenuRevampViewModel().setSectionData(data);
u1 u1Var = this.sectionPresenter;
if (u1Var != null) {
Config config = this.config;
u1Var.b(0, "LeftMenuSectionBP", config != null ? config.getExploreSectionURL() : null, this.headers, false, false);
}
}
@Override
public void getSectionAAndC(LeftDrawerResponseParent leftDrawerResponseParent) {
AppController.j().U(leftDrawerResponseParent);
LeftMenuRevampViewModel leftMenuRevampViewModel = getLeftMenuRevampViewModel();
LeftDrawerResponseParent k = AppController.j().k();
kotlin.jvm.internal.m.f(k, "getLeftDrawerResponseParent(...)");
leftMenuRevampViewModel.setParentItem(k);
}
public final u1 getSectionPresenter() {
return this.sectionPresenter;
}
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == -1 && requestCode == 102) {
refreshHeaderView();
}
}
@Override
public void onAppleLogin(SocialResponsePojo config) {
}
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
kotlin.jvm.internal.m.g(inflater, "inflater");
ViewDataBinding inflate = DataBindingUtil.inflate(inflater, 2131624772, container, false);
kotlin.jvm.internal.m.f(inflate, "inflate(...)");
setBinding((w50) inflate);
getBinding().c(Boolean.valueOf(AppController.j().E()));
HashMap<String, String> hashMap = new HashMap<>();
this.headers = hashMap;
kotlin.jvm.internal.m.d(hashMap);
String str = q.a;
kotlin.jvm.internal.m.f(str, "AUTHORIZATION_VALUE");
hashMap.put("Authorization", str);
getBinding().c.setGroupIndicator(null);
getBinding().a.c.setText(h0.c(getActivity()));
this.sectionPresenter = new u1(getActivity(), this);
this.lotameClass = new q1(getActivity());
if (AppController.j().g() != null) {
String serverUrl = AppController.j().g().getServerUrl();
kotlin.jvm.internal.m.f(serverUrl, "getServerUrl(...)");
this.serverUrl = serverUrl;
}
this.config = AppController.j().g();
setLeftMenuRevampViewModel((LeftMenuRevampViewModel) new ViewModelProvider(this).get(LeftMenuRevampViewModel.class));
getBinding().e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$0(LefMenuRevampFragment.this, view);
}
});
getBinding().f.f.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$1(LefMenuRevampFragment.this, view);
}
});
getBinding().g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$2(LefMenuRevampFragment.this, view);
}
});
getBinding().f.e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$3(LefMenuRevampFragment.this, view);
}
});
getBinding().f.d.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$4(LefMenuRevampFragment.this, view);
}
});
getBinding().f.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$5(LefMenuRevampFragment.this, view);
}
});
getBinding().f.b.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.onCreateView$lambda$6(LefMenuRevampFragment.this, view);
}
});
HomeActivity activity = getActivity();
kotlin.jvm.internal.m.e(activity, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity.y1(true);
View root = getBinding().getRoot();
kotlin.jvm.internal.m.f(root, "getRoot(...)");
return root;
}
public void onDestroy() {
NightModeCallBack nightModeCallBack;
y0 y0Var;
k4 k4Var;
HomeActivity activity = getActivity();
BottomNavigationView bottomNavigationView = (activity == null || (y0Var = activity.i0) == null || (k4Var = y0Var.a) == null) ? null : k4Var.b;
if (bottomNavigationView != null) {
bottomNavigationView.setVisibility(0);
}
HomeActivity activity2 = getActivity();
if (activity2 != null && (nightModeCallBack = activity2.C) != null) {
nightModeCallBack.onNightModeCallback();
}
super.onDestroy();
}
public void onDestroyView() {
super.onDestroyView();
HomeActivity activity = getActivity();
kotlin.jvm.internal.m.e(activity, "null cannot be cast to non-null type com.htmedia.mint.ui.activity.HomeActivity");
activity.y1(false);
}
@Override
public void onError(e7.b bVar) {
}
@Override
public void onError(String message) {
}
@Override
public void onError(String message, String tag, String url) {
u1 u1Var;
if (!"LeftMenuSectionBP".equals(tag) || (u1Var = this.sectionPresenter) == null) {
return;
}
Config config = this.config;
u1Var.b(0, "LeftMenuSectionBP", config != null ? config.getExploreSectionURL() : null, this.headers, false, false);
}
@Override
public void onExecute(e7.h hVar, Object obj) {
}
@Override
public void onExpandViewClick(int position) {
if (getBinding().c.isGroupExpanded(position)) {
getBinding().c.collapseGroup(position);
} else {
getBinding().c.expandGroup(position);
}
}
@Override
public void onGroupNameClick(int position, Section section) {
Context context = getContext();
String str = n.U1;
String url = section != null ? section.getUrl() : null;
String[] strArr = new String[1];
strArr[0] = section != null ? section.getDisplayName() : null;
n.M(context, str, "topic_page", null, url, strArr);
openPageWRTTamplate(section, position);
}
public void onPause() {
super.onPause();
Analytics.notifyExitForeground();
}
public void onResume() {
y0 y0Var;
k4 k4Var;
HomeActivity activity;
y0 y0Var2;
k4 k4Var2;
AppBarLayout appBarLayout;
y0 y0Var3;
k4 k4Var3;
String string;
String valueOf;
super.onResume();
if (TextUtils.isEmpty(f0.G1(getContext(), "userToken"))) {
getBinding().f.f.setVisibility(0);
getBinding().f.g.setText(getString(2131952065));
} else {
int hours = Calendar.getInstance().getTime().getHours();
if (hours >= 0 && hours < 12) {
string = getString(2131952053);
} else {
if (12 <= hours && hours < 17) {
string = getString(2131952051);
} else {
string = 17 <= hours && hours < 21 ? getString(2131952052) : getString(2131952054);
}
}
kotlin.jvm.internal.m.d(string);
getBinding().f.f.setVisibility(8);
AppCompatTextView appCompatTextView = getBinding().f.g;
StringBuilder sb2 = new StringBuilder();
sb2.append(string);
sb2.append('\n');
String G1 = f0.G1(getContext(), "userName");
kotlin.jvm.internal.m.f(G1, "getUserInfo(...)");
if (G1.length() > 0) {
StringBuilder sb3 = new StringBuilder();
char charAt = G1.charAt(0);
if (Character.isLowerCase(charAt)) {
Locale locale = Locale.getDefault();
kotlin.jvm.internal.m.f(locale, "getDefault(...)");
valueOf = oh.a.d(charAt, locale);
} else {
valueOf = String.valueOf(charAt);
}
sb3.append((Object) valueOf);
String substring = G1.substring(1);
kotlin.jvm.internal.m.f(substring, "substring(...)");
sb3.append(substring);
G1 = sb3.toString();
}
sb2.append(G1);
appCompatTextView.setText(sb2.toString());
}
getBinding().c(Boolean.valueOf(AppController.j().E()));
checkSubscriptionStatus();
Analytics.notifyEnterForeground();
if (getActivity() != null) {
HomeActivity activity2 = getActivity();
if (activity2 != null) {
activity2.B1();
}
HomeActivity activity3 = getActivity();
if (activity3 != null) {
activity3.z1(true);
}
HomeActivity activity4 = getActivity();
BottomNavigationView bottomNavigationView = null;
if (((activity4 == null || (y0Var3 = activity4.i0) == null || (k4Var3 = y0Var3.a) == null) ? null : k4Var3.q) != null && (activity = getActivity()) != null && (y0Var2 = activity.i0) != null && (k4Var2 = y0Var2.a) != null && (appBarLayout = k4Var2.q) != null) {
appBarLayout.setExpanded(true, true);
}
HomeActivity activity5 = getActivity();
if (activity5 != null) {
activity5.F3(false);
}
if (getTag() != null && m.t(getTag(), "EXPLORE", true)) {
HomeActivity activity6 = getActivity();
if (activity6 != null) {
activity6.z1(false);
}
HomeActivity activity7 = getActivity();
if (activity7 != null && (y0Var = activity7.i0) != null && (k4Var = y0Var.a) != null) {
bottomNavigationView = k4Var.b;
}
if (bottomNavigationView != null) {
bottomNavigationView.setVisibility(8);
}
}
}
refreshHeaderView();
ViewGroup viewGroup = this.footer;
if (viewGroup != null) {
refreshFooterView(viewGroup);
}
b7 b7Var = this.listAdapter;
if (b7Var != null && b7Var != null) {
b7Var.notifyDataSetChanged();
}
if (AppController.j().C()) {
f0.C();
}
n.q0(getActivity(), EXPLORE);
if (AppController.j().E()) {
ConstraintLayout constraintLayout = getBinding().e;
AppController activity8 = getActivity();
if (activity8 == null) {
activity8 = AppController.j();
}
constraintLayout.setBackground(ContextCompat.getDrawable(activity8, 2131234042));
TextView textView = getBinding().h;
AppController activity9 = getActivity();
if (activity9 == null) {
activity9 = AppController.j();
}
textView.setTextColor(ContextCompat.getColor(activity9, 2131100234));
AppCompatTextView appCompatTextView2 = getBinding().f.g;
AppController activity10 = getActivity();
if (activity10 == null) {
activity10 = AppController.j();
}
appCompatTextView2.setTextColor(ContextCompat.getColor(activity10, 2131100968));
AppCompatTextView appCompatTextView3 = getBinding().f.f;
AppController activity11 = getActivity();
if (activity11 == null) {
activity11 = AppController.j();
}
appCompatTextView3.setTextColor(ContextCompat.getColor(activity11, 2131100968));
AppCompatImageView appCompatImageView = getBinding().f.d;
AppController activity12 = getActivity();
if (activity12 == null) {
activity12 = AppController.j();
}
appCompatImageView.setBackground(ContextCompat.getDrawable(activity12, 2131232701));
return;
}
ConstraintLayout constraintLayout2 = getBinding().e;
AppController activity13 = getActivity();
if (activity13 == null) {
activity13 = AppController.j();
}
constraintLayout2.setBackground(ContextCompat.getDrawable(activity13, 2131234041));
TextView textView2 = getBinding().h;
AppController activity14 = getActivity();
if (activity14 == null) {
activity14 = AppController.j();
}
textView2.setTextColor(ContextCompat.getColor(activity14, 2131100234));
AppCompatTextView appCompatTextView4 = getBinding().f.g;
AppController activity15 = getActivity();
if (activity15 == null) {
activity15 = AppController.j();
}
appCompatTextView4.setTextColor(ContextCompat.getColor(activity15, 2131099992));
AppCompatTextView appCompatTextView5 = getBinding().f.f;
AppController activity16 = getActivity();
if (activity16 == null) {
activity16 = AppController.j();
}
appCompatTextView5.setTextColor(ContextCompat.getColor(activity16, 2131099992));
AppCompatImageView appCompatImageView2 = getBinding().f.d;
AppController activity17 = getActivity();
if (activity17 == null) {
activity17 = AppController.j();
}
appCompatImageView2.setBackground(ContextCompat.getDrawable(activity17, 2131232699));
}
public void onViewCreated(View view, Bundle savedInstanceState) {
String str;
MoengageNotification moengageNotification;
Section section;
kotlin.jvm.internal.m.g(view, "view");
super.onViewCreated(view, savedInstanceState);
getJson();
if (AppController.j().r() != null && AppController.j().k() != null) {
try {
LeftMenuRevampViewModel leftMenuRevampViewModel = getLeftMenuRevampViewModel();
SectionData r = AppController.j().r();
kotlin.jvm.internal.m.f(r, "getSectionPojo(...)");
leftMenuRevampViewModel.setSectionData(r);
LeftMenuRevampViewModel leftMenuRevampViewModel2 = getLeftMenuRevampViewModel();
LeftDrawerResponseParent k = AppController.j().k();
kotlin.jvm.internal.m.f(k, "getLeftDrawerResponseParent(...)");
leftMenuRevampViewModel2.setParentItem(k);
} catch (JsonSyntaxException e) {
e.printStackTrace();
}
List<Section> result = AppController.j().r().getResult();
this.sectionArrayList = result;
if (result != null) {
kotlin.jvm.internal.m.d(result);
if (result.size() > 0) {
List<Section> list = this.sectionArrayList;
kotlin.jvm.internal.m.d(list);
kotlin.jvm.internal.m.d(this.sectionArrayList);
section = list.get(r0.size() - 1);
} else {
section = null;
}
if (section != null) {
section.getDisplayName();
Config g = AppController.j().g();
Podcast podcast = g != null ? g.getPodcast() : null;
if (podcast != null) {
boolean isPodcastExploreUrlEnabled = podcast.isPodcastExploreUrlEnabled();
this.isPodcast = isPodcastExploreUrlEnabled;
if (isPodcastExploreUrlEnabled) {
this.podcastUrl = podcast.getPodcastExploreUrl();
this.podcastName = podcast.getSectionName();
}
}
}
}
} else if (AppController.j().g() != null) {
String url = AppController.j().g().getLeftNav().getUrl();
kotlin.jvm.internal.m.f(url, "getUrl(...)");
if (m.L(url, "http", false, 2, (Object) null)) {
str = AppController.j().g().getLeftNav().getUrl();
} else {
str = this.serverUrl + AppController.j().g().getLeftNav().getUrl();
}
String str2 = str;
u1 u1Var = this.sectionPresenter;
if (u1Var != null) {
u1Var.a(0, "LeftMenuFragment", str2, this.headers, false, true);
}
}
setExpListViewAdapterAndData();
Config config = this.config;
String url2 = (config == null || (moengageNotification = config.getMoengageNotification()) == null) ? null : moengageNotification.getUrl();
if (url2 != null) {
o1.a("Notification center Url", url2);
k6.k1 k1Var = new k6.k1(getActivity(), this);
Config config2 = this.config;
k1Var.a(0, "Notification", config2 != null ? config2.getMoengageNotification() : null, false, false);
}
AppController.L = EXPLORE;
}
public final void openMintLoungeNative(Section section) {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
kotlin.jvm.internal.m.g(section, "section");
Config g = AppController.j().g();
if (g == null || g.getMintLounge() == null) {
return;
}
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
String listUrl = g.getMintLounge().getListUrl();
HomeFragment homeFragment = new HomeFragment();
Bundle bundle = new Bundle();
section.setUrl(listUrl);
section.setType("mintLounge");
section.setTemplate("list");
section.setDisplayName("Mint Lounge");
bundle.putParcelable("top_section_section", section);
bundle.putBoolean("is_masthead_show", true);
homeFragment.setArguments(bundle);
HomeActivity activity2 = getActivity();
if (activity2 != null) {
String displayName = section.getDisplayName();
kotlin.jvm.internal.m.f(displayName, "getDisplayName(...)");
Locale locale = Locale.getDefault();
kotlin.jvm.internal.m.f(locale, "getDefault(...)");
String upperCase = displayName.toUpperCase(locale);
kotlin.jvm.internal.m.f(upperCase, "toUpperCase(...)");
activity2.f4(false, upperCase);
}
if (supportFragmentManager == null || (beginTransaction = supportFragmentManager.beginTransaction()) == null || (add = beginTransaction.add(2131429286, homeFragment, "mintLounge")) == null || (addToBackStack = add.addToBackStack("mintLounge")) == null) {
return;
}
addToBackStack.commit();
}
public final Fragment openMyMint(Section _section) {
kotlin.jvm.internal.m.g(_section, "_section");
FragmentActivity activity = getActivity();
Application application = activity != null ? activity.getApplication() : null;
kotlin.jvm.internal.m.e(application, "null cannot be cast to non-null type com.htmedia.mint.AppController");
Config g = ((AppController) application).g();
if (g != null) {
_section = f0.p1("foryou_page_analytics", g, getActivity());
kotlin.jvm.internal.m.f(_section, "getSectionBySectionId(...)");
_section.setId("foryou_tab");
_section.setTemplate("listing_page");
_section.setDisplayName("My Mint");
_section.setUrl(g.getRevisedForYouUrl() + "?htfpId=" + f0.I0(getContext()) + "&propertyId=lm§ion=all&numStories=40");
_section.setWebsiteUrl(g.getRevisedForYouUrl() + "?htfpId=" + f0.I0(getContext()) + "&propertyId=lm§ion=all&numStories=40");
_section.setListUrl(g.getRevisedForYouUrl() + "?htfpId=" + f0.I0(getContext()) + "&propertyId=lm§ion=all&numStories=40");
}
HomeFragment homeFragment = new HomeFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("top_section_section", _section);
bundle.putParcelable("home_menu_section", _section);
bundle.putBoolean("is_from_left_nav", true);
try {
bundle.putString(n.X, "home - " + _section.getDisplayName());
bundle.putString(n.Y, "home");
} catch (Exception e) {
e.printStackTrace();
}
homeFragment.setArguments(bundle);
AppCompatActivity context = getContext();
kotlin.jvm.internal.m.e(context, "null cannot be cast to non-null type androidx.appcompat.app.AppCompatActivity");
FragmentManager supportFragmentManager = context.getSupportFragmentManager();
kotlin.jvm.internal.m.f(supportFragmentManager, "getSupportFragmentManager(...)");
supportFragmentManager.beginTransaction().add(2131429286, homeFragment, "FOR YOU").addToBackStack("FOR YOU").commitAllowingStateLoss();
return homeFragment;
}
public final void openSection(Section section, boolean isMarketInsight) {
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
kotlin.jvm.internal.m.g(section, "section");
FragmentActivity activity = getActivity();
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
Fragment homeFragment = new HomeFragment();
Bundle bundle = new Bundle();
if (section.getDisplayName() == null || !m.t(section.getDisplayName(), "NEWS", true)) {
bundle.putParcelable("top_section_section", section);
} else {
homeFragment = new NewsLatestAndTrendingFragment();
}
if (isMarketInsight) {
bundle.putString("on_market_widget_tab_type", "on_market_details_listing");
}
bundle.putBoolean("is_from_left_nav", true);
bundle.putBoolean("is_masthead_show", true);
try {
bundle.putString(n.X, EXPLORE);
} catch (Exception e) {
e.printStackTrace();
}
homeFragment.setArguments(bundle);
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, homeFragment, "Tag_Section")) != null && (addToBackStack = add.addToBackStack("Tag_Section")) != null) {
addToBackStack.commit();
}
HomeActivity activity2 = getActivity();
if (activity2 != null) {
String displayName = section.getDisplayName();
kotlin.jvm.internal.m.f(displayName, "getDisplayName(...)");
Locale locale = Locale.getDefault();
kotlin.jvm.internal.m.f(locale, "getDefault(...)");
String upperCase = displayName.toUpperCase(locale);
kotlin.jvm.internal.m.f(upperCase, "toUpperCase(...)");
activity2.f4(false, upperCase);
}
}
public final void openVideoListing(Section section) {
AdsAndroidNew adsAndroidNew;
BottomStickyAd bottomStickyAd;
y0 y0Var;
k4 k4Var;
y0 y0Var2;
k4 k4Var2;
BottomNavigationView bottomNavigationView;
Menu menu;
FragmentTransaction beginTransaction;
FragmentTransaction add;
FragmentTransaction addToBackStack;
kotlin.jvm.internal.m.g(section, "section");
if (getActivity() != null) {
FragmentActivity activity = getActivity();
String str = null;
FragmentManager supportFragmentManager = activity != null ? activity.getSupportFragmentManager() : null;
VideoListFragment newInstance = VideoListFragment.INSTANCE.newInstance(false);
Bundle bundle = new Bundle();
bundle.putParcelable("top_section_section", section);
newInstance.setArguments(bundle);
if (supportFragmentManager != null && (beginTransaction = supportFragmentManager.beginTransaction()) != null && (add = beginTransaction.add(2131429286, newInstance, "VIDEOS")) != null && (addToBackStack = add.addToBackStack("VIDEOS")) != null) {
addToBackStack.commitAllowingStateLoss();
}
AppController.L = AppController.K;
AppController.K = section.getDisplayName();
HomeActivity activity2 = getActivity();
if (((activity2 == null || (y0Var2 = activity2.i0) == null || (k4Var2 = y0Var2.a) == null || (bottomNavigationView = k4Var2.b) == null || (menu = bottomNavigationView.getMenu()) == null) ? null : menu.findItem(1000)) != null) {
HomeActivity activity3 = getActivity();
BottomNavigationView bottomNavigationView2 = (activity3 == null || (y0Var = activity3.i0) == null || (k4Var = y0Var.a) == null) ? null : k4Var.b;
if (bottomNavigationView2 != null) {
bottomNavigationView2.setVisibility(0);
}
n.M(getActivity(), n.p1, AppController.L, null, BuildConfig.FLAVOR, section.getDisplayName());
}
HomeActivity activity4 = getActivity();
if (activity4 != null) {
Config config = this.config;
if (config != null && (adsAndroidNew = config.getAdsAndroidNew()) != null && (bottomStickyAd = adsAndroidNew.getBottomStickyAd()) != null) {
str = bottomStickyAd.getSectionAdId();
}
activity4.e4(false, str, section);
}
}
}
public final void refreshFooterView(ViewGroup footer) {
View findViewById = footer != null ? footer.findViewById(2131427673) : null;
kotlin.jvm.internal.m.e(findViewById, "null cannot be cast to non-null type android.widget.LinearLayout");
LinearLayout linearLayout = (LinearLayout) findViewById;
View findViewById2 = footer.findViewById(2131429261);
kotlin.jvm.internal.m.e(findViewById2, "null cannot be cast to non-null type android.widget.LinearLayout");
LinearLayout linearLayout2 = (LinearLayout) findViewById2;
View findViewById3 = footer.findViewById(2131431523);
kotlin.jvm.internal.m.e(findViewById3, "null cannot be cast to non-null type android.widget.TextView");
TextView textView = (TextView) findViewById3;
View findViewById4 = footer.findViewById(2131431763);
kotlin.jvm.internal.m.e(findViewById4, "null cannot be cast to non-null type android.widget.TextView");
TextView textView2 = (TextView) findViewById4;
View findViewById5 = footer.findViewById(2131432075);
kotlin.jvm.internal.m.e(findViewById5, "null cannot be cast to non-null type android.view.View");
View findViewById6 = footer.findViewById(2131431764);
kotlin.jvm.internal.m.e(findViewById6, "null cannot be cast to non-null type android.widget.TextView");
TextView textView3 = (TextView) findViewById6;
View findViewById7 = footer.findViewById(2131432076);
kotlin.jvm.internal.m.e(findViewById7, "null cannot be cast to non-null type android.view.View");
char c = 1275;
if (AppController.j().E()) {
linearLayout2.setBackgroundColor(getResources().getColor(2131101012));
textView.setTextColor(getResources().getColor(2131100599));
textView2.setTextColor(getResources().getColor(2131100924));
findViewById5.setBackgroundColor(getResources().getColor(2131100352));
textView3.setTextColor(getResources().getColor(2131100924));
findViewById7.setBackgroundColor(getResources().getColor(2131100352));
} else {
linearLayout2.setBackgroundColor(getResources().getColor(2131101002));
textView.setTextColor(getResources().getColor(2131100598));
textView2.setTextColor(getResources().getColor(2131100923));
findViewById5.setBackgroundColor(getResources().getColor(2131100351));
textView3.setTextColor(getResources().getColor(2131100923));
findViewById7.setBackgroundColor(getResources().getColor(2131100351));
}
textView2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.refreshFooterView$lambda$9(LefMenuRevampFragment.this, view);
}
});
textView3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.refreshFooterView$lambda$10(LefMenuRevampFragment.this, view);
}
});
linearLayout.removeAllViews();
final int size = AppController.j().g().getSettings().size() + 3;
?? r62 = 0;
final int i = 0;
while (i < size) {
View inflate = getLayoutInflater().inflate(2131624402, footer, (boolean) r62);
kotlin.jvm.internal.m.e(inflate, "null cannot be cast to non-null type android.widget.LinearLayout");
LinearLayout linearLayout3 = (LinearLayout) inflate;
View findViewById8 = linearLayout3.findViewById(2131429302);
kotlin.jvm.internal.m.e(findViewById8, "null cannot be cast to non-null type android.widget.LinearLayout");
LinearLayout linearLayout4 = (LinearLayout) findViewById8;
View findViewById9 = linearLayout3.findViewById(2131428585);
kotlin.jvm.internal.m.e(findViewById9, "null cannot be cast to non-null type android.widget.ImageView");
ImageView imageView = (ImageView) findViewById9;
View findViewById10 = linearLayout3.findViewById(2131427673);
kotlin.jvm.internal.m.e(findViewById10, "null cannot be cast to non-null type android.view.View");
View findViewById11 = linearLayout3.findViewById(2131429425);
kotlin.jvm.internal.m.e(findViewById11, "null cannot be cast to non-null type android.widget.TextView");
TextView textView4 = (TextView) findViewById11;
if (i == size - 1) {
View inflate2 = getLayoutInflater().inflate(2131625305, footer, (boolean) r62);
kotlin.jvm.internal.m.e(inflate2, "null cannot be cast to non-null type android.widget.LinearLayout");
linearLayout3 = (LinearLayout) inflate2;
View findViewById12 = linearLayout3.findViewById(2131431001);
kotlin.jvm.internal.m.e(findViewById12, "null cannot be cast to non-null type android.widget.TextView");
((TextView) findViewById12).setText("App Version 5.7.3");
} else if (i == size - 3) {
imageView.setVisibility(r62);
if (AppController.j().E()) {
imageView.setBackground(getResources().getDrawable(2131232080));
} else {
imageView.setBackground(getResources().getDrawable(2131232076));
}
findViewById10.setVisibility(r62);
textView4.setTextSize(16.0f);
textView4.setTextColor(getResources().getColor(2131100923));
AppController activity = getActivity();
if (activity == null) {
activity = AppController.j();
}
textView4.setTypeface(ResourcesCompat.getFont(activity, 2131296265));
textView4.setText("Explore Apps");
} else if (i == size - 2) {
imageView.setVisibility(r62);
if (AppController.j().E()) {
imageView.setBackground(getResources().getDrawable(2131232080));
} else {
imageView.setBackground(getResources().getDrawable(2131232076));
}
findViewById10.setVisibility(8);
textView4.setTextSize(16.0f);
textView4.setTextColor(getResources().getColor(2131100923));
AppController activity2 = getActivity();
if (activity2 == null) {
activity2 = AppController.j();
}
textView4.setTypeface(ResourcesCompat.getFont(activity2, 2131296265));
textView4.setText("Settings");
} else {
imageView.setVisibility(8);
if (i == size - 4) {
findViewById10.setVisibility(8);
} else {
findViewById10.setVisibility(0);
}
AppController activity3 = getActivity();
if (activity3 == null) {
activity3 = AppController.j();
}
textView4.setTypeface(ResourcesCompat.getFont(activity3, 2131296270));
textView4.setText(AppController.j().g().getSettings().get(i).getDisplayName());
}
if (AppController.j().E()) {
linearLayout4.setBackgroundColor(getResources().getColor(2131101012));
textView4.setTextColor(getResources().getColor(2131100599));
findViewById10.setBackgroundColor(getResources().getColor(2131100352));
} else {
linearLayout4.setBackgroundColor(getResources().getColor(2131101002));
textView4.setTextColor(getResources().getColor(2131100598));
findViewById10.setBackgroundColor(getResources().getColor(2131100351));
}
linearLayout.addView(linearLayout3);
linearLayout3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LefMenuRevampFragment.refreshFooterView$lambda$11(i, size, this, view);
}
});
i++;
c = 1275;
r62 = 0;
}
}
public final void refreshHeaderView() {
}
public final void setBinding(w50 w50Var) {
kotlin.jvm.internal.m.g(w50Var, "<set-?>");
this.binding = w50Var;
}
public final void setExpListViewAdapterAndData() {
try {
getBinding().c.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
@Override
public final boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i2, long j) {
boolean expListViewAdapterAndData$lambda$8;
expListViewAdapterAndData$lambda$8 = LefMenuRevampFragment.setExpListViewAdapterAndData$lambda$8(LefMenuRevampFragment.this, expandableListView, view, i, i2, j);
return expListViewAdapterAndData$lambda$8;
}
});
} catch (Exception e) {
e.printStackTrace();
o0.g(e, LefMenuRevampFragment.class.getSimpleName());
}
}
public final void setLeftMenuRevampViewModel(LeftMenuRevampViewModel leftMenuRevampViewModel) {
kotlin.jvm.internal.m.g(leftMenuRevampViewModel, "<set-?>");
this.leftMenuRevampViewModel = leftMenuRevampViewModel;
}
public final void setListAdapter(b7 b7Var) {
this.listAdapter = b7Var;
}
public final void setListingItemsForLeftMenu(List<Listing> list) {
kotlin.jvm.internal.m.g(list, "<set-?>");
this.listingItemsForLeftMenu = list;
}
public final void setParentLeftMenu(LeftDrawerResponseParent leftDrawerResponseParent) {
kotlin.jvm.internal.m.g(leftDrawerResponseParent, "<set-?>");
this.parentLeftMenu = leftDrawerResponseParent;
}
public final void setSectionPresenter(u1 u1Var) {
this.sectionPresenter = u1Var;
}
}