package com.vinfast.companion.core.utils.notification;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0016\n\u0002\u0010\t\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010$\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u0006\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0016\u0018\u0000 t2\u00020\u0001:\u0001tB\t\b\u0016¢\u0006\u0004\b\u0002\u0010\u0003B\u0011\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0002\u0010\u0006J!\u0010\f\u001a\u0004\u0018\u00010\u000b2\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t¢\u0006\u0004\b\f\u0010\rJ\u0019\u0010\u000e\u001a\u0004\u0018\u00010\u000b2\b\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\u0004\b\u000e\u0010\u000fJ\u001a\u0010\u0013\u001a\u00020\u00122\b\u0010\u0011\u001a\u0004\u0018\u00010\u0010H\u0096\u0002¢\u0006\u0004\b\u0013\u0010\u0014J\u000f\u0010\u0016\u001a\u00020\u0015H\u0016¢\u0006\u0004\b\u0016\u0010\u0017J\u001f\u0010\u001a\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0018\u001a\u00020\u0015H\u0016¢\u0006\u0004\b\u001a\u0010\u001bJ\u000f\u0010\u001c\u001a\u00020\u0015H\u0016¢\u0006\u0004\b\u001c\u0010\u0017R$\u0010#\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 \"\u0004\b!\u0010\"R$\u0010+\u001a\u0004\u0018\u00010$8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b%\u0010&\u001a\u0004\b'\u0010(\"\u0004\b)\u0010*R$\u0010.\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b,\u0010\u001e\u001a\u0004\b%\u0010 \"\u0004\b-\u0010\"R$\u00100\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b'\u0010\u001e\u001a\u0004\b,\u0010 \"\u0004\b/\u0010\"R\"\u00107\u001a\u00020\u00128\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\"\u00109\u001a\u00020\u00128\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b8\u00102\u001a\u0004\b9\u00104\"\u0004\b:\u00106R$\u0010A\u001a\u0004\u0018\u00010;8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b<\u0010=\u001a\u0004\b8\u0010>\"\u0004\b?\u0010@R$\u0010E\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bB\u0010\u001e\u001a\u0004\bC\u0010 \"\u0004\bD\u0010\"R\"\u0010I\u001a\u00020\u00128\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bF\u00102\u001a\u0004\bG\u00104\"\u0004\bH\u00106R$\u0010M\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bJ\u0010\u001e\u001a\u0004\bK\u0010 \"\u0004\bL\u0010\"R$\u0010U\u001a\u0004\u0018\u00010N8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bO\u0010P\u001a\u0004\bQ\u0010R\"\u0004\bS\u0010TR$\u0010X\u001a\u0004\u0018\u00010\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bV\u0010\u001e\u001a\u0004\bB\u0010 \"\u0004\bW\u0010\"R0\u0010_\u001a\u0010\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\u000b\u0018\u00010Y8\u0006@\u0006X\u0087\u000e¢\u0006\u0012\n\u0004\bG\u0010Z\u001a\u0004\b[\u0010\\\"\u0004\b]\u0010^R\u0011\u0010c\u001a\u00020`8F¢\u0006\u0006\u001a\u0004\ba\u0010bR\u0011\u0010e\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\bd\u00104R\u0011\u0010g\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\bf\u00104R\u0013\u0010i\u001a\u0004\u0018\u00010\u000b8F¢\u0006\u0006\u001a\u0004\bh\u0010 R\u0013\u0010k\u001a\u0004\u0018\u00010\u000b8F¢\u0006\u0006\u001a\u0004\bj\u0010 R\u0013\u0010n\u001a\u0004\u0018\u00010l8F¢\u0006\u0006\u001a\u0004\bJ\u0010mR\u0013\u0010o\u001a\u0004\u0018\u00010l8F¢\u0006\u0006\u001a\u0004\bV\u0010mR\u0013\u0010r\u001a\u0004\u0018\u00010p8F¢\u0006\u0006\u001a\u0004\b<\u0010qR\u0013\u0010s\u001a\u0004\u0018\u00010\u000b8F¢\u0006\u0006\u001a\u0004\bO\u0010 ¨\u0006u"}, d2 = {"Lcom/vinfast/companion/core/utils/notification/Notification;", "Landroid/os/Parcelable;", "<init>", "()V", "Landroid/os/Parcel;", "parcel", "(Landroid/os/Parcel;)V", "Landroid/content/Context;", "context", "Lcom/vinfast/companion/core/managers/MarketEnum;", "currentMarket", "", "n", "(Landroid/content/Context;Lcom/vinfast/companion/core/managers/MarketEnum;)Ljava/lang/String;", "v", "(Landroid/content/Context;)Ljava/lang/String;", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "", "hashCode", "()I", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "describeContents", "a", "Ljava/lang/String;", "q", "()Ljava/lang/String;", "M", "(Ljava/lang/String;)V", "notificationID", "Lcom/vinfast/companion/core/utils/notification/ContentType;", "b", "Lcom/vinfast/companion/core/utils/notification/ContentType;", "d", "()Lcom/vinfast/companion/core/utils/notification/ContentType;", "D", "(Lcom/vinfast/companion/core/utils/notification/ContentType;)V", "contentType", "c", "A", "body", "B", "content", "e", "Z", "y", "()Z", "N", "(Z)V", "isSilent", "f", "isHistory", "I", "", "g", "Ljava/lang/Long;", "()Ljava/lang/Long;", "F", "(Ljava/lang/Long;)V", "createdDate", "h", "getCreatedBy", "E", "createdBy", "i", "m", "J", "markAsRead", "j", "getSoundName", "O", "soundName", "Lcom/vinfast/companion/core/utils/notification/NotificationCategory;", "k", "Lcom/vinfast/companion/core/utils/notification/NotificationCategory;", "p", "()Lcom/vinfast/companion/core/utils/notification/NotificationCategory;", "L", "(Lcom/vinfast/companion/core/utils/notification/NotificationCategory;)V", "notificationCategory", "l", "H", "groupId", "", "Ljava/util/Map;", "o", "()Ljava/util/Map;", "K", "(Ljava/util/Map;)V", "metadata", "Lcom/vinfast/companion/core/utils/notification/TheftAlertState;", "t", "()Lcom/vinfast/companion/core/utils/notification/TheftAlertState;", "theftAlertState", "x", "isActivated", "z", "isUpdate", "w", "vinCode", "s", "subId", "", "()Ljava/lang/Double;", "lat", "lng", "Ljava/util/Date;", "()Ljava/util/Date;", "createdTimeMetadata", "licencePlate", "CREATOR", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public class Notification implements android.os.Parcelable {

    /* JADX INFO: renamed from: CREATOR, reason: from kotlin metadata */
    @org.jetbrains.annotations.NotNull
    public static final com.vinfast.companion.core.utils.notification.Notification.Companion INSTANCE = new com.vinfast.companion.core.utils.notification.Notification.Companion(null);

    /* JADX INFO: renamed from: a, reason: from kotlin metadata */
    private java.lang.String notificationID;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata */
    private com.vinfast.companion.core.utils.notification.ContentType contentType;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata */
    private java.lang.String body;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata */
    private java.lang.String content;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata */
    private boolean isSilent;

    /* JADX INFO: renamed from: f, reason: from kotlin metadata */
    private boolean isHistory;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata */
    private java.lang.Long createdDate;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata */
    private java.lang.String createdBy;

    /* JADX INFO: renamed from: i, reason: from kotlin metadata */
    private boolean markAsRead;

    /* JADX INFO: renamed from: j, reason: from kotlin metadata */
    private java.lang.String soundName;

    /* JADX INFO: renamed from: k, reason: from kotlin metadata */
    private com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory;

    /* JADX INFO: renamed from: l, reason: from kotlin metadata */
    private java.lang.String groupId;

    /* JADX INFO: renamed from: m, reason: from kotlin metadata */
    @com.google.gson.annotations.SerializedName("metadata")
    @org.jetbrains.annotations.Nullable
    private java.util.Map<java.lang.String, java.lang.String> metadata;

    /* JADX INFO: renamed from: com.vinfast.companion.core.utils.notification.Notification$CREATOR, reason: from kotlin metadata */
    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0086\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0003\u0010\u0004J5\u0010\u000b\u001a\u00020\u00062\u0012\u0010\u0007\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00060\u00052\u0006\u0010\t\u001a\u00020\b2\b\b\u0002\u0010\n\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\u000f\u001a\u00020\u00022\u0006\u0010\u000e\u001a\u00020\rH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0014\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00132\u0006\u0010\u0012\u001a\u00020\u0011H\u0016¢\u0006\u0004\b\u0014\u0010\u0015J)\u0010\u001a\u001a\u00020\u00022\b\u0010\t\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u0018H\u0007¢\u0006\u0004\b\u001a\u0010\u001bJC\u0010\u001e\u001a\u0004\u0018\u00010\u00062\b\u0010\t\u001a\u0004\u0018\u00010\b2\b\u0010\u001c\u001a\u0004\u0018\u00010\u00062\b\u0010\u001d\u001a\u0004\u0018\u00010\u00062\u0014\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0004\b\u001e\u0010\u001fJK\u0010!\u001a\u0004\u0018\u00010\u00062\b\u0010\t\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0017\u001a\u00020\u00162\b\u0010 \u001a\u0004\u0018\u00010\u00062\b\u0010\u001d\u001a\u0004\u0018\u00010\u00062\u0014\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0004\b!\u0010\"¨\u0006#"}, d2 = {"Lcom/vinfast/companion/core/utils/notification/Notification$CREATOR;", "Landroid/os/Parcelable$Creator;", "Lcom/vinfast/companion/core/utils/notification/Notification;", "<init>", "()V", "", "", "metadataMap", "Landroid/content/Context;", "context", "key", "e", "(Ljava/util/Map;Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;", "Landroid/os/Parcel;", "parcel", "b", "(Landroid/os/Parcel;)Lcom/vinfast/companion/core/utils/notification/Notification;", "", "size", "", "g", "(I)[Lcom/vinfast/companion/core/utils/notification/Notification;", "Lcom/vinfast/companion/core/managers/MarketEnum;", "currentMarket", "Lcom/vinfast/companion/core/utils/notification/NotificationDto;", "notificationDto", "a", "(Landroid/content/Context;Lcom/vinfast/companion/core/managers/MarketEnum;Lcom/vinfast/companion/core/utils/notification/NotificationDto;)Lcom/vinfast/companion/core/utils/notification/Notification;", "title", "categoryID", "d", "(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;", "body", "c", "(Landroid/content/Context;Lcom/vinfast/companion/core/managers/MarketEnum;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    @kotlin.jvm.internal.SourceDebugExtension
    public static final class Companion implements android.os.Parcelable.Creator<com.vinfast.companion.core.utils.notification.Notification> {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private final java.lang.String e(java.util.Map metadataMap, android.content.Context context, java.lang.String key) {
            java.lang.Long lZ;
            java.lang.String str = (java.lang.String) metadataMap.get(key);
            if (str != null && (lZ = kotlin.text.StringsKt.z(str)) != null) {
                long jLongValue = lZ.longValue();
                com.vinfast.companion.core.utils.unitconvert.CAppUnitConverter cAppUnitConverter = com.vinfast.companion.core.utils.unitconvert.CAppUnitConverter.a;
                java.util.Calendar calendar = java.util.Calendar.getInstance();
                calendar.setTimeInMillis(jLongValue);
                java.util.Date time = calendar.getTime();
                kotlin.jvm.internal.Intrinsics.k(time, "getTime(...)");
                java.lang.String strC = com.vinfast.companion.core.utils.unitconvert.CAppUnitConverter.c(cAppUnitConverter, time, null, 2, null);
                if (strC != null) {
                    return strC;
                }
            }
            java.lang.String string = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
            kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
            return string;
        }

        static /* synthetic */ java.lang.String f(com.vinfast.companion.core.utils.notification.Notification.Companion companion, java.util.Map map, android.content.Context context, java.lang.String str, int i, java.lang.Object obj) {
            if ((i & 4) != 0) {
                str = "startTime";
            }
            return companion.e(map, context, str);
        }

        public final com.vinfast.companion.core.utils.notification.Notification a(android.content.Context context, com.vinfast.companion.core.managers.MarketEnum currentMarket, com.vinfast.companion.core.utils.notification.NotificationDto notificationDto) {
            kotlin.jvm.internal.Intrinsics.l(currentMarket, "currentMarket");
            kotlin.jvm.internal.Intrinsics.l(notificationDto, "notificationDto");
            com.vinfast.companion.core.utils.notification.Notification notification = new com.vinfast.companion.core.utils.notification.Notification();
            notification.M(notificationDto.getNotificationID());
            notification.D(com.vinfast.companion.core.utils.notification.ContentType.INSTANCE.a(java.lang.Integer.valueOf(notificationDto.getContentType())));
            com.vinfast.companion.core.utils.notification.Notification.Companion companion = com.vinfast.companion.core.utils.notification.Notification.INSTANCE;
            notification.A(companion.c(context, currentMarket, notificationDto.getBody(), notificationDto.getNotificationCategory(), notificationDto.getMetadata()));
            notification.B(companion.d(context, notificationDto.getContent(), notificationDto.getNotificationCategory(), notificationDto.getMetadata()));
            notification.N(notificationDto.getIsSilent());
            java.lang.Boolean isHistory = notificationDto.getIsHistory();
            notification.I(isHistory != null ? isHistory.booleanValue() : false);
            notification.F(notificationDto.getCreatedDate());
            notification.E(notificationDto.getCreatedBy());
            notification.J(notificationDto.getStatus());
            notification.O(notificationDto.getSoundName());
            notification.L(com.vinfast.companion.core.utils.notification.NotificationCategory.INSTANCE.a(notificationDto.getNotificationCategory()));
            notification.H(notificationDto.getGroupId());
            notification.K(notificationDto.getMetadata());
            return notification;
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public com.vinfast.companion.core.utils.notification.Notification createFromParcel(android.os.Parcel parcel) {
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            return new com.vinfast.companion.core.utils.notification.Notification(parcel);
        }

        /* JADX INFO: Thrown type has an unknown type hierarchy: kotlin.NoWhenBranchMatchedException */
        /* JADX WARN: Code duplicated, block: B:104:0x02db  */
        /* JADX WARN: Code duplicated, block: B:92:0x0298 A[Catch: Exception -> 0x0870, TryCatch #0 {Exception -> 0x0870, blocks: (B:10:0x0031, B:12:0x003b, B:13:0x0044, B:27:0x00ae, B:42:0x0110, B:68:0x01e2, B:80:0x024d, B:82:0x0272, B:86:0x027c, B:88:0x0284, B:90:0x028a, B:93:0x02a1, B:92:0x0298, B:116:0x032b, B:136:0x03a4, B:140:0x03b4, B:238:0x05e1, B:242:0x05f1, B:246:0x0612, B:250:0x061e, B:254:0x063d, B:258:0x0649, B:262:0x0668, B:295:0x074d, B:299:0x0759, B:324:0x0805, B:334:0x0859), top: B:342:0x002f }] */
        /* JADX WARN: Type inference fix 'apply assigned field type' failed
        java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
        	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:596)
        	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
        	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
        	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
         */
        public final java.lang.String c(android.content.Context context, com.vinfast.companion.core.managers.MarketEnum currentMarket, java.lang.String body, java.lang.String categoryID, java.util.Map metadataMap) throws kotlin.NoWhenBranchMatchedException {
            java.lang.String str;
            java.lang.Long lZ;
            java.lang.String string;
            java.lang.Long lZ2;
            java.lang.String string2;
            java.lang.Long lZ3;
            kotlin.jvm.internal.Intrinsics.l(currentMarket, "currentMarket");
            if (context == null || body == null || categoryID == null || metadataMap == null) {
                return body;
            }
            com.vinfast.companion.core.utils.TimeUtils timeUtils = com.vinfast.companion.core.utils.TimeUtils.a;
            java.lang.String strT = timeUtils.t(context, body);
            try {
                if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceReminder.getValue())) {
                    java.lang.String string3 = (java.lang.String) metadataMap.get("reasonDistance");
                    if (string3 == null) {
                        string3 = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
                        kotlin.jvm.internal.Intrinsics.k(string3, "getString(...)");
                    }
                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject = kotlin.jvm.internal.StringCompanionObject.a;
                    str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{string3}, 1));
                    kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceChanged.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceConfirmed.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceCancelled.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceQuotationApproved2.getValue())) {
                    java.lang.String strF = f(this, metadataMap, context, null, 4, null);
                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject2 = kotlin.jvm.internal.StringCompanionObject.a;
                    str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strF}, 1));
                    kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceChanged2.getValue())) {
                    java.lang.String strF2 = f(this, metadataMap, context, null, 4, null);
                    java.lang.String strE = e(metadataMap, context, "newStartTime");
                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject3 = kotlin.jvm.internal.StringCompanionObject.a;
                    str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strF2, strE}, 2));
                    kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                } else {
                    try {
                        if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceNewQuotation.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceNewQuotationMbs.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceSettlementOfflineApproved.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceSettlementOfflineRejected.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceWithoutBooking.getValue())) {
                            java.lang.String str2 = (java.lang.String) metadataMap.get("quotaionFee");
                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject4 = kotlin.jvm.internal.StringCompanionObject.a;
                            java.lang.String str3 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(str2 != null ? java.lang.Double.valueOf(java.lang.Double.parseDouble(str2)) : null, context, null, null, false, 14, null)}, 1));
                            kotlin.jvm.internal.Intrinsics.k(str3, "format(...)");
                            return str3;
                        }
                        if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceQuotationApproved.getValue())) {
                            java.lang.String str4 = (java.lang.String) metadataMap.get("quotationNo");
                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject5 = kotlin.jvm.internal.StringCompanionObject.a;
                            str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str4}, 1));
                            kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                        } else {
                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDepositSuccess.getValue())) {
                                java.lang.String strF3 = com.vinfast.companion.core.utils.UtilsKt.f(metadataMap);
                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject6 = kotlin.jvm.internal.StringCompanionObject.a;
                                java.lang.String str5 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strF3}, 1));
                                kotlin.jvm.internal.Intrinsics.k(str5, "format(...)");
                                return str5;
                            }
                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDepositSuccess2.getValue())) {
                                java.lang.String str6 = (java.lang.String) metadataMap.get("depositFee");
                                java.lang.String strB = com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(str6 != null ? java.lang.Double.valueOf(java.lang.Double.parseDouble(str6)) : null, context, null, null, false, 14, null);
                                java.lang.String strF4 = f(this, metadataMap, context, null, 4, null);
                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject7 = kotlin.jvm.internal.StringCompanionObject.a;
                                java.lang.String str7 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strB, strF4}, 2));
                                kotlin.jvm.internal.Intrinsics.k(str7, "format(...)");
                                return str7;
                            }
                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceRequestToAcceptDeposit.getValue())) {
                                java.lang.String str8 = (java.lang.String) metadataMap.get("depositFee");
                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject8 = kotlin.jvm.internal.StringCompanionObject.a;
                                java.lang.String str9 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(str8 != null ? java.lang.Double.valueOf(java.lang.Double.parseDouble(str8)) : null, context, null, null, false, 14, null)}, 1));
                                kotlin.jvm.internal.Intrinsics.k(str9, "format(...)");
                                return str9;
                            }
                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServicePaymentSuccess.getValue())) {
                                java.lang.String str10 = (java.lang.String) metadataMap.get("billNo");
                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject9 = kotlin.jvm.internal.StringCompanionObject.a;
                                str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str10}, 1));
                                kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                            } else {
                                if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServicePaymentSuccess2.getValue())) {
                                    java.lang.String str11 = (java.lang.String) metadataMap.get("billNo");
                                    java.lang.String str12 = (java.lang.String) metadataMap.get("paymentAmount");
                                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject10 = kotlin.jvm.internal.StringCompanionObject.a;
                                    java.lang.String str13 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(str12 != null ? java.lang.Double.valueOf(java.lang.Double.parseDouble(str12)) : null, context, null, null, false, 14, null), str11}, 2));
                                    kotlin.jvm.internal.Intrinsics.k(str13, "format(...)");
                                    return str13;
                                }
                                java.lang.String str14 = "";
                                if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceUpComing.getValue())) {
                                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject11 = kotlin.jvm.internal.StringCompanionObject.a;
                                    java.lang.String str15 = java.lang.String.format("srName_%s", java.util.Arrays.copyOf(new java.lang.Object[]{com.vinfast.companion.core.managers.VFLocale.INSTANCE.a().f()}, 1));
                                    kotlin.jvm.internal.Intrinsics.k(str15, "format(...)");
                                    java.lang.String str16 = (java.lang.String) metadataMap.get(str15);
                                    if (str16 != null || (str16 = (java.lang.String) metadataMap.get("srName")) != null) {
                                        str14 = str16;
                                    }
                                    java.lang.String str17 = (java.lang.String) metadataMap.get("startTime");
                                    if (str17 == null || (lZ3 = kotlin.text.StringsKt.z(str17)) == null) {
                                        string2 = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
                                        kotlin.jvm.internal.Intrinsics.k(string2, "getString(...)");
                                    } else {
                                        string2 = timeUtils.U(com.vinfast.companion.core.managers.VFLocaleKt.a(context), lZ3.longValue());
                                        if (string2 == null) {
                                            string2 = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
                                            kotlin.jvm.internal.Intrinsics.k(string2, "getString(...)");
                                        }
                                    }
                                    str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str14, string2}, 2));
                                    kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                } else {
                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceMbsUpcoming.getValue())) {
                                        java.lang.String str18 = (java.lang.String) metadataMap.get("startTime");
                                        if (str18 == null || (lZ2 = kotlin.text.StringsKt.z(str18)) == null) {
                                            string = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
                                            kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
                                        } else {
                                            string = timeUtils.U(com.vinfast.companion.core.managers.VFLocaleKt.a(context), lZ2.longValue());
                                            if (string == null) {
                                                string = context.getString(com.vinfast.companion.core.R.string.common_value_unknown);
                                                kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
                                            }
                                        }
                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject12 = kotlin.jvm.internal.StringCompanionObject.a;
                                        java.lang.String str19 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{string}, 1));
                                        kotlin.jvm.internal.Intrinsics.k(str19, "format(...)");
                                        return str19;
                                    }
                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceReminderApproveQuotationMbs.getValue())) {
                                        java.lang.String str20 = (java.lang.String) metadataMap.get("reminderApproveQuotation");
                                        java.lang.String strO0 = com.vinfast.companion.core.utils.TimeUtils.o0(timeUtils, context, java.lang.Long.valueOf(((str20 == null || (lZ = kotlin.text.StringsKt.z(str20)) == null) ? 15L : lZ.longValue()) * ((long) 60)), false, 4, null);
                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject13 = kotlin.jvm.internal.StringCompanionObject.a;
                                        str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strO0}, 1));
                                        kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                    } else {
                                        if (!kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceScheduleSuccessfully.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceRescheduleSuccessfully.getValue())) {
                                            if (!kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorPickUpChangeInfo.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorPickupReminder.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorConfirmByDealer.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorPickupDeliverToSC.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorReadyForReturn.getValue())) {
                                                if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceDoorToDoorReturnCompletely.getValue())) {
                                                    java.lang.String strO = com.vinfast.companion.core.extensions.StringExtensionKt.o((java.lang.String) metadataMap.get("hotline"), currentMarket, com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL);
                                                    if (strO != null) {
                                                        str14 = strO;
                                                    }
                                                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject14 = kotlin.jvm.internal.StringCompanionObject.a;
                                                    str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str14}, 1));
                                                    kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                } else if (!kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceRentCar.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceLoanRequestConfirmation.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceLoanRequestExpired.getValue()) && !kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceLoanCarReturnConfirmed.getValue())) {
                                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.CCarBookingUpcoming.getValue())) {
                                                        java.lang.String str21 = (java.lang.String) metadataMap.get("location");
                                                        java.lang.String str22 = (java.lang.String) metadataMap.get("bookingTime");
                                                        java.lang.String strA = timeUtils.A(str22 != null ? kotlin.text.StringsKt.z(str22) : null);
                                                        if (str21 == null || strA.length() == 0) {
                                                            return strT;
                                                        }
                                                        try {
                                                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject15 = kotlin.jvm.internal.StringCompanionObject.a;
                                                            java.lang.String str23 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strA, str21}, 2));
                                                            kotlin.jvm.internal.Intrinsics.k(str23, "format(...)");
                                                            return str23;
                                                        } catch (java.lang.Exception unused) {
                                                            return strT;
                                                        }
                                                    }
                                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.CCarChargingLimitTime.getValue())) {
                                                        java.lang.String str24 = (java.lang.String) metadataMap.get("stopTime");
                                                        java.lang.String strA2 = timeUtils.A(str24 != null ? kotlin.text.StringsKt.z(str24) : null);
                                                        if (strA2.length() == 0) {
                                                            return strT;
                                                        }
                                                        try {
                                                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject16 = kotlin.jvm.internal.StringCompanionObject.a;
                                                            java.lang.String str25 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strA2}, 1));
                                                            kotlin.jvm.internal.Intrinsics.k(str25, "format(...)");
                                                            return str25;
                                                        } catch (java.lang.Exception unused2) {
                                                            return strT;
                                                        }
                                                    }
                                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.TestDriveReminder24Hour.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.TestDriveReminder1Hour.getValue())) {
                                                        java.lang.String str26 = (java.lang.String) metadataMap.get("startTime");
                                                        java.lang.String strA3 = timeUtils.A(str26 != null ? kotlin.text.StringsKt.z(str26) : null);
                                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject17 = kotlin.jvm.internal.StringCompanionObject.a;
                                                        com.vinfast.companion.core.managers.VFLocale.Companion companion = com.vinfast.companion.core.managers.VFLocale.INSTANCE;
                                                        java.lang.String str27 = java.lang.String.format("showroomName_%s", java.util.Arrays.copyOf(new java.lang.Object[]{companion.a().f()}, 1));
                                                        kotlin.jvm.internal.Intrinsics.k(str27, "format(...)");
                                                        java.lang.String str28 = (java.lang.String) metadataMap.get(str27);
                                                        if (str28 == null && (str28 = (java.lang.String) metadataMap.get("srName")) == null) {
                                                            str28 = "";
                                                        }
                                                        java.lang.String str29 = java.lang.String.format("showroomAddress_%s", java.util.Arrays.copyOf(new java.lang.Object[]{companion.a().f()}, 1));
                                                        kotlin.jvm.internal.Intrinsics.k(str29, "format(...)");
                                                        java.lang.String str30 = (java.lang.String) metadataMap.get(str29);
                                                        if (str30 == null) {
                                                            java.lang.String str31 = (java.lang.String) metadataMap.get("showroomAddress");
                                                            if (str31 != null) {
                                                                str14 = str31;
                                                            }
                                                        } else {
                                                            str14 = str30;
                                                        }
                                                        if (str14.length() > 0) {
                                                            java.lang.String str32 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strA3, str28, str14}, 3));
                                                            kotlin.jvm.internal.Intrinsics.k(str32, "format(...)");
                                                            return str32;
                                                        }
                                                        java.lang.String str33 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strA3, str28}, 2));
                                                        kotlin.jvm.internal.Intrinsics.k(str33, "format(...)");
                                                        return str33;
                                                    }
                                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.GlTestDriveReminder24Hour.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.GlTestDriveEncourageRescheduling.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.GlTestDriveReminder1Hour.getValue())) {
                                                        return timeUtils.t(context, strT);
                                                    }
                                                    if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyRSAOld.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyTestDriveOld.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyBookingService.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyMobileSurvey.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyChargingService.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyRSA.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyTestDrive.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsTestDrive.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsTestDriveAttempt2.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsTestDriveAttempt3.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsRSA.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsRSARemind1.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsRSARemind2.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsServiceBooking.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsServiceBookingRemind1.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsServiceBookingRemind2.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsMobileService.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsMobileServiceRemind1.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsMobileServiceRemind2.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsComplaint.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsCharging.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsChargingRemind1.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsChargingRemind2.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyQualtricsVehicleDelivery.getValue())) {
                                                        java.lang.String str34 = (java.lang.String) metadataMap.get("customerId");
                                                        if (str34 != null) {
                                                            str14 = str34;
                                                        }
                                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject18 = kotlin.jvm.internal.StringCompanionObject.a;
                                                        str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str14}, 1));
                                                        kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                    } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyComplaint.getValue())) {
                                                        java.lang.String strO2 = com.vinfast.companion.core.extensions.StringExtensionKt.o((java.lang.String) metadataMap.get("hotline"), currentMarket, com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL);
                                                        if (strO2 != null) {
                                                            str14 = strO2;
                                                        }
                                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject19 = kotlin.jvm.internal.StringCompanionObject.a;
                                                        str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str14}, 1));
                                                        kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                    } else {
                                                        java.lang.String str35 = "--";
                                                        if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.ESIMBasicWillExpire.getValue())) {
                                                            java.lang.String str36 = (java.lang.String) metadataMap.get("day");
                                                            if (str36 != null) {
                                                                str35 = str36;
                                                            }
                                                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject20 = kotlin.jvm.internal.StringCompanionObject.a;
                                                            str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str35}, 1));
                                                            kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                        } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.ESIMVoiceAboutRunOut.getValue())) {
                                                            java.lang.String str37 = (java.lang.String) metadataMap.get("minute");
                                                            if (str37 != null) {
                                                                str35 = str37;
                                                            }
                                                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject21 = kotlin.jvm.internal.StringCompanionObject.a;
                                                            str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str35}, 1));
                                                            kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                        } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SmartTimerHomeCharging.getValue())) {
                                                            java.lang.String strP = com.vinfast.companion.core.utils.TimeUtils.a.p((java.lang.String) metadataMap.get("settingTime"), context);
                                                            kotlin.jvm.internal.StringCompanionObject stringCompanionObject22 = kotlin.jvm.internal.StringCompanionObject.a;
                                                            str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strP}, 1));
                                                            kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                                        } else {
                                                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.ChargingCreditReceived.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.ChargingCreditLowCredit.getValue())) {
                                                                java.lang.String str38 = (java.lang.String) metadataMap.get("credits");
                                                                java.lang.String strB2 = com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(str38 != null ? kotlin.text.StringsKt.u(str38) : null, context, null, (java.lang.String) metadataMap.get("unit"), true, 2, null);
                                                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject23 = kotlin.jvm.internal.StringCompanionObject.a;
                                                                java.lang.String str39 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{strB2}, 1));
                                                                kotlin.jvm.internal.Intrinsics.k(str39, "format(...)");
                                                                return str39;
                                                            }
                                                            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.ChargingCreditUsed.getValue())) {
                                                                java.lang.String str40 = (java.lang.String) metadataMap.get("transactionId");
                                                                str14 = str40 != null ? str40 : "";
                                                                java.lang.String str41 = (java.lang.String) metadataMap.get("totalAmountInclTax");
                                                                java.lang.Double dU = str41 != null ? kotlin.text.StringsKt.u(str41) : null;
                                                                java.lang.String str42 = (java.lang.String) metadataMap.get("creditsUsed");
                                                                java.lang.Double dU2 = str42 != null ? kotlin.text.StringsKt.u(str42) : null;
                                                                java.lang.String str43 = (java.lang.String) metadataMap.get("remainingCredits");
                                                                java.lang.Double dU3 = str43 != null ? kotlin.text.StringsKt.u(str43) : null;
                                                                java.lang.String str44 = (java.lang.String) metadataMap.get("unit");
                                                                java.lang.String strB3 = com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(dU, context, null, str44, true, 2, null);
                                                                java.lang.String strB4 = com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(dU2, context, null, str44, true, 2, null);
                                                                java.lang.String strB5 = com.vinfast.companion.core.utils.currency.CurrencyFormatterExtensionKt.b(dU3, context, null, str44, true, 2, null);
                                                                kotlin.jvm.internal.StringCompanionObject stringCompanionObject24 = kotlin.jvm.internal.StringCompanionObject.a;
                                                                java.lang.String str45 = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str14, strB3, strB4, strB5}, 4));
                                                                kotlin.jvm.internal.Intrinsics.k(str45, "format(...)");
                                                                return str45;
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            return strT;
                                        }
                                        java.lang.String str46 = (java.lang.String) metadataMap.get("reservationNumber");
                                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject25 = kotlin.jvm.internal.StringCompanionObject.a;
                                        str = java.lang.String.format(strT, java.util.Arrays.copyOf(new java.lang.Object[]{str46}, 1));
                                        kotlin.jvm.internal.Intrinsics.k(str, "format(...)");
                                    }
                                }
                            }
                        }
                    } catch (java.lang.Exception unused3) {
                    }
                }
                return str;
            } catch (java.lang.Exception unused4) {
                return strT;
            }
        }

        public final java.lang.String d(android.content.Context context, java.lang.String title, java.lang.String categoryID, java.util.Map metadataMap) {
            java.lang.String strO0;
            if (title == null || categoryID == null || metadataMap == null) {
                return title;
            }
            if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.CCarChargingComplete.getValue()) || kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.CCarChargingCompleteAtHome.getValue())) {
                java.lang.String str = (java.lang.String) metadataMap.get("currentTime");
                java.lang.String strA = com.vinfast.companion.core.utils.TimeUtils.a.A(str != null ? kotlin.text.StringsKt.z(str) : null);
                if (strA.length() == 0) {
                    return title;
                }
                try {
                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject = kotlin.jvm.internal.StringCompanionObject.a;
                    java.lang.String str2 = java.lang.String.format(title, java.util.Arrays.copyOf(new java.lang.Object[]{strA}, 1));
                    kotlin.jvm.internal.Intrinsics.k(str2, "format(...)");
                    return str2;
                } catch (java.lang.Exception unused) {
                    return title;
                }
            }
            java.lang.String str3 = "";
            try {
                if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.BookingServiceReminderApproveQuotationMbs.getValue())) {
                    if (context != null) {
                        java.lang.String str4 = (java.lang.String) metadataMap.get("reminderApproveQuotation");
                        java.lang.Long lZ = str4 != null ? kotlin.text.StringsKt.z(str4) : null;
                        if (lZ != null && (strO0 = com.vinfast.companion.core.utils.TimeUtils.o0(com.vinfast.companion.core.utils.TimeUtils.a, context, java.lang.Long.valueOf(lZ.longValue() * ((long) 60)), false, 4, null)) != null) {
                            str3 = strO0;
                        }
                        kotlin.jvm.internal.StringCompanionObject stringCompanionObject2 = kotlin.jvm.internal.StringCompanionObject.a;
                        java.lang.String str5 = java.lang.String.format(title, java.util.Arrays.copyOf(new java.lang.Object[]{str3}, 1));
                        kotlin.jvm.internal.Intrinsics.k(str5, "format(...)");
                        return str5;
                    }
                } else if (kotlin.jvm.internal.Intrinsics.g(categoryID, com.vinfast.companion.core.utils.notification.NotificationCategory.SurveyComplaint.getValue())) {
                    java.lang.String str6 = (java.lang.String) metadataMap.get("requestId");
                    if (str6 != null) {
                        str3 = str6;
                    }
                    kotlin.jvm.internal.StringCompanionObject stringCompanionObject3 = kotlin.jvm.internal.StringCompanionObject.a;
                    java.lang.String str7 = java.lang.String.format(title, java.util.Arrays.copyOf(new java.lang.Object[]{str3}, 1));
                    kotlin.jvm.internal.Intrinsics.k(str7, "format(...)");
                    return str7;
                }
            } catch (java.lang.Exception unused2) {
            }
            return title;
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: g, reason: merged with bridge method [inline-methods] */
        public com.vinfast.companion.core.utils.notification.Notification[] newArray(int size) {
            return new com.vinfast.companion.core.utils.notification.Notification[size];
        }

        private Companion() {
        }
    }

    public Notification() {
    }

    public final void A(java.lang.String str) {
        this.body = str;
    }

    public final void B(java.lang.String str) {
        this.content = str;
    }

    public final void D(com.vinfast.companion.core.utils.notification.ContentType contentType) {
        this.contentType = contentType;
    }

    public final void E(java.lang.String str) {
        this.createdBy = str;
    }

    public final void F(java.lang.Long l) {
        this.createdDate = l;
    }

    public final void H(java.lang.String str) {
        this.groupId = str;
    }

    public final void I(boolean z) {
        this.isHistory = z;
    }

    public final void J(boolean z) {
        this.markAsRead = z;
    }

    public final void K(java.util.Map map) {
        this.metadata = map;
    }

    public final void L(com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory) {
        this.notificationCategory = notificationCategory;
    }

    public final void M(java.lang.String str) {
        this.notificationID = str;
    }

    public final void N(boolean z) {
        this.isSilent = z;
    }

    public final void O(java.lang.String str) {
        this.soundName = str;
    }

    /* JADX INFO: renamed from: b, reason: from getter */
    public final java.lang.String getBody() {
        return this.body;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final java.lang.String getContent() {
        return this.content;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final com.vinfast.companion.core.utils.notification.ContentType getContentType() {
        return this.contentType;
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(java.lang.Object other) {
        if (!(other instanceof com.vinfast.companion.core.utils.notification.Notification)) {
            return super.equals(other);
        }
        com.vinfast.companion.core.utils.notification.Notification notification = (com.vinfast.companion.core.utils.notification.Notification) other;
        return kotlin.jvm.internal.Intrinsics.g(this.notificationID, notification.notificationID) && kotlin.jvm.internal.Intrinsics.g(this.contentType, notification.contentType) && kotlin.jvm.internal.Intrinsics.g(this.body, notification.body) && kotlin.jvm.internal.Intrinsics.g(this.content, notification.content) && this.isSilent == notification.isSilent && this.isHistory == notification.isHistory && kotlin.jvm.internal.Intrinsics.g(this.createdDate, notification.createdDate) && kotlin.jvm.internal.Intrinsics.g(this.createdBy, notification.createdBy) && this.markAsRead == notification.markAsRead && kotlin.jvm.internal.Intrinsics.g(this.soundName, notification.soundName) && this.notificationCategory == notification.notificationCategory && kotlin.jvm.internal.Intrinsics.g(this.groupId, notification.groupId) && kotlin.jvm.internal.Intrinsics.g(this.metadata, notification.metadata);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final java.lang.Long getCreatedDate() {
        return this.createdDate;
    }

    public final java.util.Date g() {
        java.lang.String str;
        java.lang.Long lZ;
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map == null || (str = map.get("createdTime")) == null || (lZ = kotlin.text.StringsKt.z(str)) == null) {
            return null;
        }
        return new java.util.Date(lZ.longValue());
    }

    /* JADX INFO: renamed from: h, reason: from getter */
    public final java.lang.String getGroupId() {
        return this.groupId;
    }

    public int hashCode() {
        java.lang.String str = this.notificationID;
        int iHashCode = (str != null ? str.hashCode() : 0) * 31;
        com.vinfast.companion.core.utils.notification.ContentType contentType = this.contentType;
        int iHashCode2 = (iHashCode + (contentType != null ? contentType.hashCode() : 0)) * 31;
        java.lang.String str2 = this.body;
        int iHashCode3 = (iHashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
        java.lang.String str3 = this.content;
        int iHashCode4 = (((((iHashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31) + java.lang.Boolean.hashCode(this.isSilent)) * 31) + java.lang.Boolean.hashCode(this.isHistory)) * 31;
        java.lang.Long l = this.createdDate;
        int iHashCode5 = (iHashCode4 + (l != null ? java.lang.Long.hashCode(l.longValue()) : 0)) * 31;
        java.lang.String str4 = this.createdBy;
        int iHashCode6 = (((iHashCode5 + (str4 != null ? str4.hashCode() : 0)) * 31) + java.lang.Boolean.hashCode(this.markAsRead)) * 31;
        java.lang.String str5 = this.soundName;
        int iHashCode7 = (iHashCode6 + (str5 != null ? str5.hashCode() : 0)) * 31;
        com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory = this.notificationCategory;
        int iHashCode8 = (iHashCode7 + (notificationCategory != null ? notificationCategory.hashCode() : 0)) * 31;
        java.lang.String str6 = this.groupId;
        int iHashCode9 = (iHashCode8 + (str6 != null ? str6.hashCode() : 0)) * 31;
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        return iHashCode9 + (map != null ? map.hashCode() : 0);
    }

    public final java.lang.Double j() {
        java.lang.String str;
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map == null || (str = map.get("latitude")) == null) {
            return null;
        }
        return java.lang.Double.valueOf(java.lang.Double.parseDouble(str));
    }

    public final java.lang.String k() {
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map != null) {
            return map.get("licencePlate");
        }
        return null;
    }

    public final java.lang.Double l() {
        java.lang.String str;
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map == null || (str = map.get("longitude")) == null) {
            return null;
        }
        return java.lang.Double.valueOf(java.lang.Double.parseDouble(str));
    }

    /* JADX INFO: renamed from: m, reason: from getter */
    public final boolean getMarkAsRead() {
        return this.markAsRead;
    }

    public final java.lang.String n(android.content.Context context, com.vinfast.companion.core.managers.MarketEnum currentMarket) {
        kotlin.jvm.internal.Intrinsics.l(currentMarket, "currentMarket");
        com.vinfast.companion.core.utils.notification.Notification.Companion companion = INSTANCE;
        java.lang.String str = this.body;
        com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory = this.notificationCategory;
        return companion.c(context, currentMarket, str, notificationCategory != null ? notificationCategory.getValue() : null, this.metadata);
    }

    /* JADX INFO: renamed from: o, reason: from getter */
    public final java.util.Map getMetadata() {
        return this.metadata;
    }

    /* JADX INFO: renamed from: p, reason: from getter */
    public final com.vinfast.companion.core.utils.notification.NotificationCategory getNotificationCategory() {
        return this.notificationCategory;
    }

    /* JADX INFO: renamed from: q, reason: from getter */
    public final java.lang.String getNotificationID() {
        return this.notificationID;
    }

    public final java.lang.String s() {
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map != null) {
            return map.get("subId");
        }
        return null;
    }

    public final com.vinfast.companion.core.utils.notification.TheftAlertState t() {
        com.vinfast.companion.core.utils.notification.TheftAlertState.Companion companion = com.vinfast.companion.core.utils.notification.TheftAlertState.INSTANCE;
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        return companion.a(map != null ? map.get("state") : null);
    }

    public final java.lang.String v(android.content.Context context) {
        com.vinfast.companion.core.utils.notification.Notification.Companion companion = INSTANCE;
        java.lang.String str = this.content;
        com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory = this.notificationCategory;
        return companion.d(context, str, notificationCategory != null ? notificationCategory.getValue() : null, this.metadata);
    }

    public final java.lang.String w() {
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map != null) {
            return map.get("vinCode");
        }
        return null;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(android.os.Parcel parcel, int flags) {
        kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
        parcel.writeString(this.notificationID);
        com.vinfast.companion.core.utils.notification.ContentType contentType = this.contentType;
        parcel.writeValue(contentType != null ? java.lang.Integer.valueOf(contentType.getValue()) : null);
        parcel.writeString(this.body);
        parcel.writeString(this.content);
        parcel.writeByte(this.isSilent ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.isHistory ? (byte) 1 : (byte) 0);
        java.lang.Long l = this.createdDate;
        parcel.writeLong(l != null ? l.longValue() : 0L);
        parcel.writeString(this.createdBy);
        parcel.writeByte(this.markAsRead ? (byte) 1 : (byte) 0);
        parcel.writeString(this.soundName);
        com.vinfast.companion.core.utils.notification.NotificationCategory notificationCategory = this.notificationCategory;
        parcel.writeString(notificationCategory != null ? notificationCategory.getValue() : null);
        parcel.writeString(this.groupId);
        java.util.Map<java.lang.String, java.lang.String> map = this.metadata;
        if (map == null) {
            parcel.writeInt(-1);
            return;
        }
        kotlin.jvm.internal.Intrinsics.i(map);
        parcel.writeInt(map.size());
        java.util.Map<java.lang.String, java.lang.String> map2 = this.metadata;
        kotlin.jvm.internal.Intrinsics.i(map2);
        for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : map2.entrySet()) {
            java.lang.String key = entry.getKey();
            java.lang.String value = entry.getValue();
            parcel.writeString(key);
            parcel.writeString(value);
        }
    }

    public final boolean x() {
        return t() instanceof com.vinfast.companion.core.utils.notification.TheftAlertState.Activated;
    }

    /* JADX INFO: renamed from: y, reason: from getter */
    public final boolean getIsSilent() {
        return this.isSilent;
    }

    public final boolean z() {
        return t() instanceof com.vinfast.companion.core.utils.notification.TheftAlertState.Update;
    }

    public Notification(android.os.Parcel parcel) {
        kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
        this.notificationID = parcel.readString();
        com.vinfast.companion.core.utils.notification.ContentType.Companion companion = com.vinfast.companion.core.utils.notification.ContentType.INSTANCE;
        java.lang.Object value = parcel.readValue(java.lang.Integer.TYPE.getClassLoader());
        this.contentType = companion.a(value instanceof java.lang.Integer ? (java.lang.Integer) value : null);
        this.body = parcel.readString();
        this.content = parcel.readString();
        this.isSilent = parcel.readByte() != 0;
        this.isHistory = parcel.readByte() != 0;
        this.createdDate = java.lang.Long.valueOf(parcel.readLong());
        this.createdBy = parcel.readString();
        this.markAsRead = parcel.readByte() != 0;
        this.soundName = parcel.readString();
        this.notificationCategory = com.vinfast.companion.core.utils.notification.NotificationCategory.INSTANCE.a(parcel.readString());
        this.groupId = parcel.readString();
        int i = parcel.readInt();
        if (i != -1) {
            android.util.ArrayMap arrayMap = new android.util.ArrayMap();
            for (int i2 = 0; i2 < i; i2++) {
                arrayMap.put(parcel.readString(), parcel.readString());
            }
            this.metadata = arrayMap;
        }
    }
}
