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


package fx0;

import a23.o3;
import com.google.android.gms.common.GoogleApiAvailabilityLight;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.tencent.matrix.iocanary.config.SharePluginInfo;
import com.uber.autodispose.a0;
import com.uber.autodispose.d;
import com.uber.autodispose.y;
import com.xingin.entities.hey.HeyActivityBean;
import com.xingin.entities.hey.HeyDailyEmotionListBean;
import com.xingin.entities.hey.HeyDailyEmotionListItemBean;
import com.xingin.entities.hey.HeyDailyEmotionModuleBean;
import com.xingin.entities.hey.HeyDailyEmotionRecordBean;
import com.xingin.entities.hey.HeyViewLocationBean;
import com.xingin.hey.R$drawable;
import com.xingin.hey.heyshoot.bean.HeyCalendarDayBean;
import com.xingin.hey.ui.shoot.bean.HeyEmotionIconBean;
import com.xingin.hey.ui.shoot.bean.HeyEmotionIconListBean;
import dw2.r;
import dw2.w;
import fy0.q;
import ja.b1;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.TimeZone;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import u72.a;
import y7.f;
import z60.h;

@Metadata(bv = {}, d1 = {"\u0000”\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u001b\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u0001:\u0002bcB\u0007¢\u0006\u0004\b`\u0010aJ\b\u0010\u0003\u001a\u00020\u0002H\u0002J\u0010\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u0018\u0010\f\u001a\u00020\u000b2\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\bH\u0002J\b\u0010\r\u001a\u00020\bH\u0002J+\u0010\u0014\u001a\u00020\u00022#\u0010\u0013\u001a\u001f\u0012\u0015\u0012\u0013\u0018\u00010\u000f¢\u0006\f\b\u0010\u0012\b\b\u0011\u0012\u0004\b\b(\u0012\u0012\u0004\u0012\u00020\u00020\u000eJ\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u00172\u0006\u0010\u0016\u001a\u00020\u0015J\u000e\u0010\u001b\u001a\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0019J\u0006\u0010\u001d\u001a\u00020\u001cR$\u0010\u001f\u001a\u0004\u0018\u00010\u001e8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"\"\u0004\b#\u0010$R\"\u0010%\u001a\u00020\u00068\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b%\u0010&\u001a\u0004\b'\u0010(\"\u0004\b)\u0010*R\"\u0010+\u001a\u00020\u00068\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b+\u0010&\u001a\u0004\b,\u0010(\"\u0004\b-\u0010*R\"\u0010.\u001a\u00020\u00068\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b.\u0010&\u001a\u0004\b/\u0010(\"\u0004\b0\u0010*R\"\u00101\u001a\u00020\u00068\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b1\u0010&\u001a\u0004\b2\u0010(\"\u0004\b3\u0010*R$\u00104\u001a\u0004\u0018\u00010\u001c8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b6\u00107\"\u0004\b8\u00109R$\u0010;\u001a\u0004\u0018\u00010:8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b;\u0010<\u001a\u0004\b=\u0010>\"\u0004\b?\u0010@R2\u0010C\u001a\u0012\u0012\u0004\u0012\u00020\u000f0Aj\b\u0012\u0004\u0012\u00020\u000f`B8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\bC\u0010D\u001a\u0004\bE\u0010F\"\u0004\bG\u0010HR$\u0010J\u001a\u0004\u0018\u00010I8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\bJ\u0010K\u001a\u0004\bL\u0010M\"\u0004\bN\u0010OR>\u0010S\u001a\u001e\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020Q0Pj\u000e\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020Q`R8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\bS\u0010T\u001a\u0004\bU\u0010V\"\u0004\bW\u0010XR!\u0010_\u001a\b\u0012\u0004\u0012\u00020Z0Y8FX†„\u0002¢\u0006\f\n\u0004\b[\u0010\\\u001a\u0004\b]\u0010^¨\u0006d"}, d2 = {"Lfx0/v;", "", "", "e", "", "dayOfWeek", "", "F", "Ljava/util/Calendar;", "c1", "c2", "", "s", "E", "Lkotlin/Function1;", "Lcom/xingin/hey/heyshoot/bean/HeyCalendarDayBean;", "Lkotlin/ParameterName;", "name", "selectedDay", "loadSuccess", "t", "", "dateTm", "Lcom/xingin/entities/hey/HeyDailyEmotionListItemBean;", "j", "Lcom/xingin/entities/hey/HeyViewLocationBean;", "location", "w", "Lcom/xingin/entities/hey/HeyDailyEmotionModuleBean;", f.f156778k, "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "mCurEmotionIconBean", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "o", "()Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "A", "(Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;)V", "mCurEmotionContent", "Ljava/lang/String;", GoogleApiAvailabilityLight.TRACKING_SOURCE_NOTIFICATION, "()Ljava/lang/String;", "z", "(Ljava/lang/String;)V", "mCurBgPath", "l", "x", "mCurBgUrl", "m", "y", "mCurPressImg", "r", "D", "mCurEmotionModule", "Lcom/xingin/entities/hey/HeyDailyEmotionModuleBean;", com.igexin.push.core.d.c.f25536c, "()Lcom/xingin/entities/hey/HeyDailyEmotionModuleBean;", "B", "(Lcom/xingin/entities/hey/HeyDailyEmotionModuleBean;)V", "Lcom/xingin/entities/hey/HeyDailyEmotionRecordBean;", "mCurEmotionRecord", "Lcom/xingin/entities/hey/HeyDailyEmotionRecordBean;", "q", "()Lcom/xingin/entities/hey/HeyDailyEmotionRecordBean;", "C", "(Lcom/xingin/entities/hey/HeyDailyEmotionRecordBean;)V", "Ljava/util/ArrayList;", "Lkotlin/collections/ArrayList;", "calendarDayData", "Ljava/util/ArrayList;", "g", "()Ljava/util/ArrayList;", "setCalendarDayData", "(Ljava/util/ArrayList;)V", "Lcom/xingin/entities/hey/HeyActivityBean;", "dailyActivityBean", "Lcom/xingin/entities/hey/HeyActivityBean;", h.f160753a, "()Lcom/xingin/entities/hey/HeyActivityBean;", "setDailyActivityBean", "(Lcom/xingin/entities/hey/HeyActivityBean;)V", "Ljava/util/HashMap;", "Lfx0/v$b;", "Lkotlin/collections/HashMap;", "draftMap", "Ljava/util/HashMap;", "i", "()Ljava/util/HashMap;", "setDraftMap", "(Ljava/util/HashMap;)V", "Lu72/a;", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconListBean;", "iconDataStore$delegate", "Lkotlin/Lazy;", "k", "()Lu72/a;", "iconDataStore", "<init>", "()V", "a", "b", "hey_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: HeyDailyEmotionModel.kt */
public final class v {

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

    /* renamed from: o  reason: collision with root package name */
    public static final List<HeyEmotionIconBean> f78457o;

    /* renamed from: p  reason: collision with root package name */
    public static final List<HeyEmotionIconBean> f78458p;

    /* renamed from: a  reason: collision with root package name */
    public HeyEmotionIconBean f78459a;

    /* renamed from: b  reason: collision with root package name */
    public String f78460b = "";

    /* renamed from: c  reason: collision with root package name */
    public String f78461c = "";

    /* renamed from: d  reason: collision with root package name */
    public String f78462d = "";

    /* renamed from: e  reason: collision with root package name */
    public String f78463e = "";

    /* renamed from: f  reason: collision with root package name */
    public HeyDailyEmotionModuleBean f78464f;

    /* renamed from: g  reason: collision with root package name */
    public HeyDailyEmotionRecordBean f78465g;

    /* renamed from: h  reason: collision with root package name */
    public HeyCalendarDayBean f78466h;

    /* renamed from: i  reason: collision with root package name */
    public ArrayList<HeyCalendarDayBean> f78467i = new ArrayList<>();

    /* renamed from: j  reason: collision with root package name */
    public ArrayList<HeyDailyEmotionListItemBean> f78468j = new ArrayList<>();

    /* renamed from: k  reason: collision with root package name */
    public HeyActivityBean f78469k;

    /* renamed from: l  reason: collision with root package name */
    public HashMap<Long, b> f78470l = new HashMap<>();

    /* renamed from: m  reason: collision with root package name */
    public final Lazy f78471m = LazyKt__LazyJVMKt.lazy(c.f78479a);

    @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0005\b†\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\r\u0010\u000eR\u001d\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006¢\u0006\f\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007R\u001d\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028\u0006¢\u0006\f\n\u0004\b\b\u0010\u0005\u001a\u0004\b\t\u0010\u0007R\u0014\u0010\u000b\u001a\u00020\n8\u0006X†T¢\u0006\u0006\n\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lfx0/v$a;", "", "", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "oldEmotionIcons", "Ljava/util/List;", "b", "()Ljava/util/List;", "localEmotionIcons", "a", "", "MIN_DAY_SIZE", "I", "<init>", "()V", "hey_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: HeyDailyEmotionModel.kt */
    public static final class a {
        public a() {
        }

        public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final List<HeyEmotionIconBean> a() {
            return v.f78458p;
        }

        public final List<HeyEmotionIconBean> b() {
            return v.f78457o;
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lu72/a;", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconListBean;", "b", "()Lu72/a;"}, k = 3, mv = {1, 6, 0})
    /* compiled from: HeyDailyEmotionModel.kt */
    public static final class c extends Lambda implements Function0<u72.a<HeyEmotionIconListBean>> {

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

        public c() {
            super(0);
        }

        public static final w c(List list) {
            Intrinsics.checkNotNullParameter(list, AdvanceSetting.NETWORK_TYPE);
            return r.K0(new HeyEmotionIconListBean(list));
        }

        /* renamed from: b */
        public final u72.a<HeyEmotionIconListBean> invoke() {
            a.C2211a aVar = u72.a.f136161a;
            u72.b bVar = new u72.b(HeyEmotionIconListBean.class);
            bVar.d("hey_emotion_icons");
            r<R> x04 = jv0.a.f96714a.b().x0(w.f78480a);
            Intrinsics.checkNotNullExpressionValue(x04, "HeyGetApi.heyEmotionIcon…stBean(it))\n            }");
            bVar.e(x04);
            return bVar.a();
        }
    }

    static {
        q qVar = q.f80308a;
        f78457o = CollectionsKt__CollectionsKt.listOf((Object[]) new HeyEmotionIconBean[]{new HeyEmotionIconBean("tired", "疲惫", qVar.e(R$drawable.hey_emotion_tired), qVar.e(R$drawable.hey_emotion_tired_min)), new HeyEmotionIconBean("anxiety", "焦虑", qVar.e(R$drawable.hey_emotion_anxiety), qVar.e(R$drawable.hey_emotion_anxiety_min)), new HeyEmotionIconBean("sad", "难受", qVar.e(R$drawable.hey_emotion_sad), qVar.e(R$drawable.hey_emotion_sad_min))});
        f78458p = CollectionsKt__CollectionsKt.listOf((Object[]) new HeyEmotionIconBean[]{new HeyEmotionIconBean("happy", "开心", qVar.e(R$drawable.hey_emotion_happy), qVar.e(R$drawable.hey_emotion_happy_min)), new HeyEmotionIconBean("hope", "期待", qVar.e(R$drawable.hey_emotion_hope), qVar.e(R$drawable.hey_emotion_hope_min)), new HeyEmotionIconBean("split", "裂开", qVar.e(R$drawable.hey_emotion_split), qVar.e(R$drawable.hey_emotion_split_min)), new HeyEmotionIconBean("calm", "平静", qVar.e(R$drawable.hey_emotion_calm), qVar.e(R$drawable.hey_emotion_calm_min)), new HeyEmotionIconBean("crazy", "抓狂", qVar.e(R$drawable.hey_emotion_crazy), qVar.e(R$drawable.hey_emotion_crazy_min)), new HeyEmotionIconBean("bitter", "苦涩", qVar.e(R$drawable.hey_emotion_bitter), qVar.e(R$drawable.hey_emotion_bitter_min))});
    }

    public static final void u(v vVar, Function1 function1, HeyDailyEmotionListBean heyDailyEmotionListBean) {
        Intrinsics.checkNotNullParameter(vVar, "this$0");
        Intrinsics.checkNotNullParameter(function1, "$loadSuccess");
        vVar.f78469k = heyDailyEmotionListBean.getActivity();
        vVar.f78468j.clear();
        vVar.f78468j.addAll(heyDailyEmotionListBean.getDailyEmotions());
        vVar.e();
        function1.invoke(vVar.f78466h);
    }

    public static final void v(v vVar, Function1 function1, Throwable th3) {
        Intrinsics.checkNotNullParameter(vVar, "this$0");
        Intrinsics.checkNotNullParameter(function1, "$loadSuccess");
        vVar.e();
        function1.invoke(vVar.f78466h);
    }

    public final void A(HeyEmotionIconBean heyEmotionIconBean) {
        this.f78459a = heyEmotionIconBean;
    }

    public final void B(HeyDailyEmotionModuleBean heyDailyEmotionModuleBean) {
        this.f78464f = heyDailyEmotionModuleBean;
    }

    public final void C(HeyDailyEmotionRecordBean heyDailyEmotionRecordBean) {
        this.f78465g = heyDailyEmotionRecordBean;
    }

    public final void D(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.f78463e = str;
    }

    public final Calendar E() {
        Calendar instance = Calendar.getInstance();
        instance.setTimeZone(TimeZone.getDefault());
        instance.set(11, 12);
        instance.set(12, 0);
        instance.set(13, 0);
        instance.set(14, 0);
        Intrinsics.checkNotNullExpressionValue(instance, "tempC");
        return instance;
    }

    public final String F(int i10) {
        switch (i10) {
            case 1:
                return "日";
            case 2:
                return "一";
            case 3:
                return "二";
            case 4:
                return "三";
            case 5:
                return "四";
            case 6:
                return "五";
            case 7:
                return "六";
            default:
                return "";
        }
    }

    public final void e() {
        this.f78467i.clear();
        Calendar instance = Calendar.getInstance();
        instance.setTimeZone(TimeZone.getDefault());
        Iterator<T> it3 = this.f78468j.iterator();
        int i10 = 0;
        while (true) {
            boolean z14 = true;
            if (!it3.hasNext()) {
                break;
            }
            T next = it3.next();
            int i14 = i10 + 1;
            if (i10 < 0) {
                CollectionsKt__CollectionsKt.throwIndexOverflow();
            }
            T t14 = next;
            Calendar instance2 = Calendar.getInstance();
            instance2.setTimeZone(TimeZone.getDefault());
            instance2.setTime(new Date(t14.getDate()));
            ArrayList<HeyCalendarDayBean> arrayList = this.f78467i;
            HeyCalendarDayBean heyCalendarDayBean = new HeyCalendarDayBean(null, null, false, false, false, 0, 63, null);
            heyCalendarDayBean.g(instance2.getTimeInMillis());
            heyCalendarDayBean.h(true);
            if (t14.getRecords().size() <= 0) {
                z14 = false;
            }
            heyCalendarDayBean.i(z14);
            heyCalendarDayBean.j(String.valueOf(instance2.get(5)));
            heyCalendarDayBean.l(F(instance2.get(7)));
            Intrinsics.checkNotNullExpressionValue(instance, "today");
            Intrinsics.checkNotNullExpressionValue(instance2, "tempC");
            heyCalendarDayBean.k(s(instance, instance2));
            if (heyCalendarDayBean.f()) {
                this.f78466h = heyCalendarDayBean;
                this.f78464f = t14.getModules();
                this.f78465g = (HeyDailyEmotionRecordBean) CollectionsKt___CollectionsKt.firstOrNull((List) t14.getRecords());
            }
            arrayList.add(heyCalendarDayBean);
            i10 = i14;
        }
        Calendar E = E();
        if (this.f78467i.size() > 0) {
            E.setTime(new Date(((HeyCalendarDayBean) CollectionsKt___CollectionsKt.last((List) this.f78467i)).a()));
            E.add(5, 1);
        } else {
            E.add(5, -3);
            for (int i15 = 0; i15 < 4; i15++) {
                ArrayList<HeyCalendarDayBean> arrayList2 = this.f78467i;
                HeyCalendarDayBean heyCalendarDayBean2 = new HeyCalendarDayBean(null, null, false, false, false, 0, 63, null);
                heyCalendarDayBean2.g(E.getTimeInMillis());
                heyCalendarDayBean2.h(false);
                heyCalendarDayBean2.i(false);
                heyCalendarDayBean2.j(String.valueOf(E.get(5)));
                heyCalendarDayBean2.l(F(E.get(7)));
                Intrinsics.checkNotNullExpressionValue(instance, "today");
                heyCalendarDayBean2.k(s(instance, E));
                if (heyCalendarDayBean2.f()) {
                    this.f78466h = heyCalendarDayBean2;
                }
                arrayList2.add(heyCalendarDayBean2);
                E.add(5, 1);
            }
            this.f78464f = f();
        }
        while (this.f78467i.size() < 7) {
            ArrayList<HeyCalendarDayBean> arrayList3 = this.f78467i;
            HeyCalendarDayBean heyCalendarDayBean3 = new HeyCalendarDayBean(null, null, false, false, false, 0, 63, null);
            heyCalendarDayBean3.g(E.getTimeInMillis());
            heyCalendarDayBean3.h(false);
            heyCalendarDayBean3.i(false);
            heyCalendarDayBean3.j(String.valueOf(E.get(5)));
            heyCalendarDayBean3.l(F(E.get(7)));
            heyCalendarDayBean3.k(false);
            arrayList3.add(heyCalendarDayBean3);
            E.add(5, 1);
        }
    }

    public final HeyDailyEmotionModuleBean f() {
        HeyDailyEmotionModuleBean heyDailyEmotionModuleBean = new HeyDailyEmotionModuleBean(null, 0, 0, null, null, null, 0, null, null, null, null, o3.wechatpay_verify_page_VALUE, null);
        heyDailyEmotionModuleBean.setDate(E().getTimeInMillis());
        heyDailyEmotionModuleBean.setContent("心情好的时候,感觉自己拥有了全世界。");
        heyDailyEmotionModuleBean.setBackgroundUrl("https://fe-img-qc.xhscdn.com/917b4e55c2521cdbc381f4c88df60527a7b5865b");
        return heyDailyEmotionModuleBean;
    }

    public final ArrayList<HeyCalendarDayBean> g() {
        return this.f78467i;
    }

    public final HeyActivityBean h() {
        return this.f78469k;
    }

    public final HashMap<Long, b> i() {
        return this.f78470l;
    }

    public final HeyDailyEmotionListItemBean j(long j14) {
        ArrayList<HeyDailyEmotionListItemBean> arrayList = this.f78468j;
        ArrayList arrayList2 = new ArrayList();
        for (T t14 : arrayList) {
            if (t14.getDate() == j14) {
                arrayList2.add(t14);
            }
        }
        return (HeyDailyEmotionListItemBean) CollectionsKt___CollectionsKt.firstOrNull((List) arrayList2);
    }

    public final u72.a<HeyEmotionIconListBean> k() {
        return (u72.a) this.f78471m.getValue();
    }

    public final String l() {
        return this.f78461c;
    }

    public final String m() {
        return this.f78462d;
    }

    public final String n() {
        return this.f78460b;
    }

    public final HeyEmotionIconBean o() {
        return this.f78459a;
    }

    public final HeyDailyEmotionModuleBean p() {
        return this.f78464f;
    }

    public final HeyDailyEmotionRecordBean q() {
        return this.f78465g;
    }

    public final String r() {
        return this.f78463e;
    }

    public final boolean s(Calendar calendar, Calendar calendar2) {
        int i10 = calendar.get(1);
        int i14 = calendar2.get(1);
        int i15 = calendar.get(2);
        int i16 = calendar2.get(2);
        int i17 = calendar.get(5);
        int i18 = calendar2.get(5);
        if (i10 == i14 && i15 == i16 && i17 == i18) {
            return true;
        }
        return false;
    }

    public final void t(Function1<? super HeyCalendarDayBean, Unit> function1) {
        int i10;
        Intrinsics.checkNotNullParameter(function1, "loadSuccess");
        Calendar instance = Calendar.getInstance();
        instance.setTimeZone(TimeZone.getDefault());
        instance.set(11, 12);
        instance.set(12, 0);
        instance.set(13, 0);
        instance.set(14, 0);
        r<HeyDailyEmotionListBean> W0 = new kw0.c().f(instance.getTimeInMillis(), b1.f94179a.S0().getUserid(), 1, (instance.get(1) == 2021 && instance.get(2) == 0 && (i10 = instance.get(6)) <= 3) ? i10 : 4).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "HeyModel().getDailyEmoti…dSchedulers.mainThread())");
        a0 a0Var = a0.D;
        Intrinsics.checkNotNullExpressionValue(a0Var, "UNBOUND");
        Object n14 = W0.n(d.b(a0Var));
        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n14).a(new t(this, function1), new u(this, function1));
    }

    public final void w(HeyViewLocationBean heyViewLocationBean) {
        long j14;
        Intrinsics.checkNotNullParameter(heyViewLocationBean, "location");
        boolean z14 = true;
        if (!(heyViewLocationBean.getHeight_ratio() == 0.0f) && !Float.isNaN(heyViewLocationBean.getHeight_ratio())) {
            if (heyViewLocationBean.getWidth_ratio() != 0.0f) {
                z14 = false;
            }
            if (!z14 && !Float.isNaN(heyViewLocationBean.getWidth_ratio())) {
                HashMap<Long, b> hashMap = this.f78470l;
                HeyDailyEmotionModuleBean heyDailyEmotionModuleBean = this.f78464f;
                if (heyDailyEmotionModuleBean != null) {
                    j14 = heyDailyEmotionModuleBean.getDate();
                } else {
                    j14 = E().getTimeInMillis();
                }
                Long valueOf = Long.valueOf(j14);
                b bVar = new b(null, null, null, 0, null, null, null, 127, null);
                bVar.i(this.f78461c);
                bVar.j(this.f78462d);
                bVar.f(this.f78460b);
                bVar.g(this.f78459a);
                bVar.h(heyViewLocationBean);
                hashMap.put(valueOf, bVar);
            }
        }
        this.f78459a = null;
        this.f78460b = "";
        this.f78461c = "";
        this.f78462d = "";
        this.f78464f = null;
        this.f78465g = null;
    }

    public final void x(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.f78461c = str;
    }

    public final void y(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.f78462d = str;
    }

    public final void z(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.f78460b = str;
    }

    @Metadata(bv = {}, d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000b\b†\b\u0018\u00002\u00020\u0001BQ\u0012\b\b\u0002\u0010\t\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u000f\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u0012\u001a\u00020\u0002\u0012\b\b\u0002\u0010#\u001a\u00020\u0004\u0012\n\b\u0002\u0010\u0016\u001a\u0004\u0018\u00010\u0015\u0012\b\b\u0002\u0010$\u001a\u00020\u0002\u0012\n\b\u0002\u0010\u001d\u001a\u0004\u0018\u00010\u001c¢\u0006\u0004\b%\u0010&J\t\u0010\u0003\u001a\u00020\u0002HÖ\u0001J\t\u0010\u0005\u001a\u00020\u0004HÖ\u0001J\u0013\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0001HÖ\u0003R\"\u0010\t\u001a\u00020\u00028\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR\"\u0010\u000f\u001a\u00020\u00028\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010\n\u001a\u0004\b\u0010\u0010\f\"\u0004\b\u0011\u0010\u000eR\"\u0010\u0012\u001a\u00020\u00028\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\n\u001a\u0004\b\u0013\u0010\f\"\u0004\b\u0014\u0010\u000eR$\u0010\u0016\u001a\u0004\u0018\u00010\u00158\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR$\u0010\u001d\u001a\u0004\u0018\u00010\u001c8\u0006@\u0006X†\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 \"\u0004\b!\u0010\"¨\u0006'"}, d2 = {"Lfx0/v$b;", "", "", "toString", "", "hashCode", "other", "", "equals", "url", "Ljava/lang/String;", "e", "()Ljava/lang/String;", "j", "(Ljava/lang/String;)V", SharePluginInfo.ISSUE_FILE_PATH, "d", "i", "content", "a", f.f156778k, "Lcom/xingin/entities/hey/HeyViewLocationBean;", "location", "Lcom/xingin/entities/hey/HeyViewLocationBean;", "c", "()Lcom/xingin/entities/hey/HeyViewLocationBean;", h.f160753a, "(Lcom/xingin/entities/hey/HeyViewLocationBean;)V", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "emoticons", "Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "b", "()Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;", "g", "(Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;)V", "emoticonsType", "pressImgUrl", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILcom/xingin/entities/hey/HeyViewLocationBean;Ljava/lang/String;Lcom/xingin/hey/ui/shoot/bean/HeyEmotionIconBean;)V", "hey_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: HeyDailyEmotionModel.kt */
    public static final class b {

        /* renamed from: a  reason: collision with root package name */
        public String f78472a;

        /* renamed from: b  reason: collision with root package name */
        public String f78473b;

        /* renamed from: c  reason: collision with root package name */
        public String f78474c;

        /* renamed from: d  reason: collision with root package name */
        public int f78475d;

        /* renamed from: e  reason: collision with root package name */
        public HeyViewLocationBean f78476e;

        /* renamed from: f  reason: collision with root package name */
        public String f78477f;

        /* renamed from: g  reason: collision with root package name */
        public HeyEmotionIconBean f78478g;

        public b() {
            this(null, null, null, 0, null, null, null, 127, null);
        }

        public b(String str, String str2, String str3, int i10, HeyViewLocationBean heyViewLocationBean, String str4, HeyEmotionIconBean heyEmotionIconBean) {
            Intrinsics.checkNotNullParameter(str, "url");
            Intrinsics.checkNotNullParameter(str2, SharePluginInfo.ISSUE_FILE_PATH);
            Intrinsics.checkNotNullParameter(str3, "content");
            Intrinsics.checkNotNullParameter(str4, "pressImgUrl");
            this.f78472a = str;
            this.f78473b = str2;
            this.f78474c = str3;
            this.f78475d = i10;
            this.f78476e = heyViewLocationBean;
            this.f78477f = str4;
            this.f78478g = heyEmotionIconBean;
        }

        public final String a() {
            return this.f78474c;
        }

        public final HeyEmotionIconBean b() {
            return this.f78478g;
        }

        public final HeyViewLocationBean c() {
            return this.f78476e;
        }

        public final String d() {
            return this.f78473b;
        }

        public final String e() {
            return this.f78472a;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof b)) {
                return false;
            }
            b bVar = (b) obj;
            return Intrinsics.areEqual(this.f78472a, bVar.f78472a) && Intrinsics.areEqual(this.f78473b, bVar.f78473b) && Intrinsics.areEqual(this.f78474c, bVar.f78474c) && this.f78475d == bVar.f78475d && Intrinsics.areEqual(this.f78476e, bVar.f78476e) && Intrinsics.areEqual(this.f78477f, bVar.f78477f) && Intrinsics.areEqual(this.f78478g, bVar.f78478g);
        }

        public final void f(String str) {
            Intrinsics.checkNotNullParameter(str, "<set-?>");
            this.f78474c = str;
        }

        public final void g(HeyEmotionIconBean heyEmotionIconBean) {
            this.f78478g = heyEmotionIconBean;
        }

        public final void h(HeyViewLocationBean heyViewLocationBean) {
            this.f78476e = heyViewLocationBean;
        }

        public int hashCode() {
            int hashCode = ((((((this.f78472a.hashCode() * 31) + this.f78473b.hashCode()) * 31) + this.f78474c.hashCode()) * 31) + this.f78475d) * 31;
            HeyViewLocationBean heyViewLocationBean = this.f78476e;
            int i10 = 0;
            int hashCode2 = (((hashCode + (heyViewLocationBean == null ? 0 : heyViewLocationBean.hashCode())) * 31) + this.f78477f.hashCode()) * 31;
            HeyEmotionIconBean heyEmotionIconBean = this.f78478g;
            if (heyEmotionIconBean != null) {
                i10 = heyEmotionIconBean.hashCode();
            }
            return hashCode2 + i10;
        }

        public final void i(String str) {
            Intrinsics.checkNotNullParameter(str, "<set-?>");
            this.f78473b = str;
        }

        public final void j(String str) {
            Intrinsics.checkNotNullParameter(str, "<set-?>");
            this.f78472a = str;
        }

        public String toString() {
            return "EmotionDraftInfo(url=" + this.f78472a + ", path=" + this.f78473b + ", content=" + this.f78474c + ", emoticonsType=" + this.f78475d + ", location=" + this.f78476e + ", pressImgUrl=" + this.f78477f + ", emoticons=" + this.f78478g + ')';
        }

        /* JADX WARNING: Illegal instructions before constructor call */
        public /* synthetic */ b(String str, String str2, String str3, int i10, HeyViewLocationBean heyViewLocationBean, String str4, HeyEmotionIconBean heyEmotionIconBean, int i14, DefaultConstructorMarker defaultConstructorMarker) {
            this((i14 & 1) != 0 ? r0 : str, (i14 & 2) != 0 ? r0 : str2, (i14 & 4) != 0 ? r0 : str3, (i14 & 8) != 0 ? 0 : i10, (i14 & 16) != 0 ? null : heyViewLocationBean, (i14 & 32) == 0 ? str4 : r0, (i14 & 64) != 0 ? null : heyEmotionIconBean);
            String str5 = "";
        }
    }
}