package com.vinfast.companion.main.ui.rsa.global.makerequest;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@dagger.hilt.android.lifecycle.HiltViewModel
@kotlin.Metadata(d1 = {"\u0000Ò\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b$\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u00002\u00020\u0001BI\b\u0007\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\b\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\u0006\u0010\r\u001a\u00020\f\u0012\u0006\u0010\u000f\u001a\u00020\u000e\u0012\u0006\u0010\u0011\u001a\u00020\u0010¢\u0006\u0004\b\u0012\u0010\u0013J\u0015\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u0017\u0010\u0018J\r\u0010\u0019\u001a\u00020\u0016¢\u0006\u0004\b\u0019\u0010\u001aJ\u0015\u0010\u001d\u001a\u00020\u00162\u0006\u0010\u001c\u001a\u00020\u001b¢\u0006\u0004\b\u001d\u0010\u001eJ\u0015\u0010\u001f\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b\u001f\u0010\u0018J\u0019\u0010\"\u001a\u00020\u00162\n\b\u0002\u0010!\u001a\u0004\u0018\u00010 ¢\u0006\u0004\b\"\u0010#J\u000f\u0010$\u001a\u0004\u0018\u00010 ¢\u0006\u0004\b$\u0010%J\u0015\u0010&\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u0014¢\u0006\u0004\b&\u0010\u0018J\r\u0010'\u001a\u00020\u0016¢\u0006\u0004\b'\u0010\u001aJ\u0017\u0010*\u001a\u00020\u00162\b\u0010)\u001a\u0004\u0018\u00010(¢\u0006\u0004\b*\u0010+J\u000f\u0010-\u001a\u0004\u0018\u00010,¢\u0006\u0004\b-\u0010.J\u001d\u00100\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u00142\u0006\u0010/\u001a\u00020,¢\u0006\u0004\b0\u00101J\u000f\u00102\u001a\u0004\u0018\u00010 ¢\u0006\u0004\b2\u0010%J\u000f\u00103\u001a\u0004\u0018\u00010 ¢\u0006\u0004\b3\u0010%J\u001d\u00104\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u00142\u0006\u0010!\u001a\u00020 ¢\u0006\u0004\b4\u00105J\u0017\u00107\u001a\u00020 2\b\u00106\u001a\u0004\u0018\u00010 ¢\u0006\u0004\b7\u00108J\r\u00109\u001a\u00020\u0016¢\u0006\u0004\b9\u0010\u001aJ\u0015\u0010<\u001a\u00020\u00162\u0006\u0010;\u001a\u00020:¢\u0006\u0004\b<\u0010=J!\u0010A\u001a\u00020\u00162\b\u0010>\u001a\u0004\u0018\u00010 2\b\u0010@\u001a\u0004\u0018\u00010?¢\u0006\u0004\bA\u0010BJ\r\u0010C\u001a\u00020\u0016¢\u0006\u0004\bC\u0010\u001aJ\u001f\u0010E\u001a\u00020\u00162\u0006\u0010\u0015\u001a\u00020\u00142\b\b\u0002\u0010D\u001a\u00020:¢\u0006\u0004\bE\u0010FJ\r\u0010G\u001a\u00020\u0016¢\u0006\u0004\bG\u0010\u001aJ\r\u0010H\u001a\u00020\u0016¢\u0006\u0004\bH\u0010\u001aJ\u0015\u0010J\u001a\u00020:2\u0006\u0010I\u001a\u00020 ¢\u0006\u0004\bJ\u0010KJ\r\u0010L\u001a\u00020\u0016¢\u0006\u0004\bL\u0010\u001aJ\u000f\u0010M\u001a\u00020\u0016H\u0002¢\u0006\u0004\bM\u0010\u001aJ\u000f\u0010N\u001a\u00020\u0016H\u0002¢\u0006\u0004\bN\u0010\u001aJ\u000f\u0010O\u001a\u00020\u0016H\u0002¢\u0006\u0004\bO\u0010\u001aJ\u000f\u0010P\u001a\u00020\u0016H\u0002¢\u0006\u0004\bP\u0010\u001aJ\u000f\u0010Q\u001a\u00020\u0016H\u0002¢\u0006\u0004\bQ\u0010\u001aJ\u0017\u0010T\u001a\u00020S2\u0006\u0010R\u001a\u00020(H\u0002¢\u0006\u0004\bT\u0010UJ'\u0010X\u001a\b\u0012\u0004\u0012\u00020(0V2\u0010\b\u0002\u0010W\u001a\n\u0012\u0004\u0012\u00020\u001b\u0018\u00010VH\u0002¢\u0006\u0004\bX\u0010YR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bZ\u0010[R\u0014\u0010\u0005\u001a\u00020\u00048\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\\\u0010]R\u0014\u0010\u0007\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b^\u0010_R\u0014\u0010\t\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b`\u0010aR\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bb\u0010cR\u0014\u0010\r\u001a\u00020\f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bd\u0010eR\u0016\u0010\u000f\u001a\u00020\u000e8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bf\u0010gR\u001a\u0010j\u001a\b\u0012\u0004\u0012\u00020(0V8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bh\u0010iR\u001c\u0010l\u001a\b\u0012\u0004\u0012\u00020(0V8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bk\u0010iR,\u0010r\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020S0nj\b\u0012\u0004\u0012\u00020S`o0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bp\u0010qR-\u0010x\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020S0nj\b\u0012\u0004\u0012\u00020S`o0s8\u0006¢\u0006\f\n\u0004\bt\u0010u\u001a\u0004\bv\u0010wR\"\u0010z\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0V0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\by\u0010qR#\u0010}\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0V0s8\u0006¢\u0006\f\n\u0004\b{\u0010u\u001a\u0004\b|\u0010wR\u001c\u0010\u007f\u001a\b\u0012\u0004\u0012\u00020S0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b~\u0010qR \u0010\u0082\u0001\u001a\b\u0012\u0004\u0012\u00020S0s8\u0006¢\u0006\u000e\n\u0005\b\u0080\u0001\u0010u\u001a\u0005\b\u0081\u0001\u0010wR\u001e\u0010\u0084\u0001\u001a\b\u0012\u0004\u0012\u00020S0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0083\u0001\u0010qR \u0010\u0087\u0001\u001a\b\u0012\u0004\u0012\u00020S0s8\u0006¢\u0006\u000e\n\u0005\b\u0085\u0001\u0010u\u001a\u0005\b\u0086\u0001\u0010wR.\u0010\u0089\u0001\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020S0nj\b\u0012\u0004\u0012\u00020S`o0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0088\u0001\u0010qR0\u0010\u008c\u0001\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020S0nj\b\u0012\u0004\u0012\u00020S`o0s8\u0006¢\u0006\u000e\n\u0005\b\u008a\u0001\u0010u\u001a\u0005\b\u008b\u0001\u0010wR\u001e\u0010\u008e\u0001\u001a\b\u0012\u0004\u0012\u00020S0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u008d\u0001\u0010qR \u0010\u0091\u0001\u001a\b\u0012\u0004\u0012\u00020S0s8\u0006¢\u0006\u000e\n\u0005\b\u008f\u0001\u0010u\u001a\u0005\b\u0090\u0001\u0010wR'\u0010\u0094\u0001\u001a\u0011\u0012\r\u0012\u000b \u0092\u0001*\u0004\u0018\u00010:0:0m8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0093\u0001\u0010qR \u0010\u0097\u0001\u001a\b\u0012\u0004\u0012\u00020:0s8\u0006¢\u0006\u000e\n\u0005\b\u0095\u0001\u0010u\u001a\u0005\b\u0096\u0001\u0010wR#\u0010\u009d\u0001\u001a\t\u0012\u0004\u0012\u00020(0\u0098\u00018\u0006¢\u0006\u0010\n\u0006\b\u0099\u0001\u0010\u009a\u0001\u001a\u0006\b\u009b\u0001\u0010\u009c\u0001R%\u0010 \u0001\u001a\u000b\u0012\u0006\u0012\u0004\u0018\u00010(0\u0098\u00018\u0006¢\u0006\u0010\n\u0006\b\u009e\u0001\u0010\u009a\u0001\u001a\u0006\b\u009f\u0001\u0010\u009c\u0001R1\u0010¥\u0001\u001a\u0017\u0012\u0012\u0012\u0010\u0012\u0005\u0012\u00030¢\u0001\u0012\u0004\u0012\u00020:0¡\u00010\u0098\u00018\u0006¢\u0006\u0010\n\u0006\b£\u0001\u0010\u009a\u0001\u001a\u0006\b¤\u0001\u0010\u009c\u0001R\u001b\u0010¨\u0001\u001a\u0004\u0018\u00010,8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b¦\u0001\u0010§\u0001R\u001a\u0010ª\u0001\u001a\u0004\u0018\u00010 8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b<\u0010©\u0001R\u001a\u0010«\u0001\u001a\u0004\u0018\u00010 8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bC\u0010©\u0001R\u001a\u0010¬\u0001\u001a\u0004\u0018\u00010 8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bH\u0010©\u0001R8\u0010±\u0001\u001a\"\u0012\u0004\u0012\u00020(\u0012\u0005\u0012\u00030®\u00010\u00ad\u0001j\u0010\u0012\u0004\u0012\u00020(\u0012\u0005\u0012\u00030®\u0001`¯\u00018\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\bG\u0010°\u0001R\u0019\u0010@\u001a\u0004\u0018\u00010?8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b\u0019\u0010²\u0001R\u001b\u0010µ\u0001\u001a\u0004\u0018\u00010(8\u0002@\u0002X\u0082\u000e¢\u0006\b\n\u0006\b³\u0001\u0010´\u0001R\u0018\u0010·\u0001\u001a\u00020:8\u0002@\u0002X\u0082\u000e¢\u0006\u0007\n\u0005\b-\u0010¶\u0001R\u001d\u0010¹\u0001\u001a\t\u0012\u0005\u0012\u00030¸\u00010V8\u0002X\u0082\u0004¢\u0006\u0007\n\u0005\b¶\u0001\u0010iR\u0015\u0010¼\u0001\u001a\u00030º\u00018F¢\u0006\b\u001a\u0006\b¶\u0001\u0010»\u0001R\u0014\u0010¿\u0001\u001a\u00020:8F¢\u0006\b\u001a\u0006\b½\u0001\u0010¾\u0001R\u0014\u0010Á\u0001\u001a\u00020:8F¢\u0006\b\u001a\u0006\bÀ\u0001\u0010¾\u0001R\u0017\u0010Ã\u0001\u001a\u00020:8BX\u0082\u0004¢\u0006\b\u001a\u0006\bÂ\u0001\u0010¾\u0001¨\u0006Ä\u0001"}, d2 = {"Lcom/vinfast/companion/main/ui/rsa/global/makerequest/GLRsaMakeRequestViewModel;", "Lcom/vinfast/companion/core/base/BaseViewModel;", "Lcom/vinfast/companion/serviceskit/data/repository/RsaRepository;", "repository", "Lcom/vinfast/companion/authenticationkit/data/manager/IUserManager;", "userManager", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "vehicleManager", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleComponentManager;", "vehicleComponentManager", "Lcom/vinfast/companion/map/manager/HEREManager;", "hereManager", "Lcom/vinfast/companion/serviceskit/manager/IRsaServiceManager;", "rsaServiceManager", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "buildConfigManager", "Lcom/vinfast/companion/notificationkit/manager/INotificationManager;", "notificationManager", "<init>", "(Lcom/vinfast/companion/serviceskit/data/repository/RsaRepository;Lcom/vinfast/companion/authenticationkit/data/manager/IUserManager;Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleComponentManager;Lcom/vinfast/companion/map/manager/HEREManager;Lcom/vinfast/companion/serviceskit/manager/IRsaServiceManager;Lcom/vinfast/companion/core/managers/BuildConfigManager;Lcom/vinfast/companion/notificationkit/manager/INotificationManager;)V", "Landroid/content/Context;", "context", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "w0", "(Landroid/content/Context;)V", "V", "()V", "Lcom/vinfast/companion/main/ui/rsa/request/RsaCarStatusItem;", "item", "K0", "(Lcom/vinfast/companion/main/ui/rsa/request/RsaCarStatusItem;)V", "y0", "Lcom/vinfast/companion/map/model/MapLocation;", "mapLocation", "J0", "(Lcom/vinfast/companion/map/model/MapLocation;)V", "k0", "()Lcom/vinfast/companion/map/model/MapLocation;", "B0", "O", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "detailContent", "H0", "(Ljava/lang/String;)V", "Lcom/vinfast/companion/core/base/ui/widget/dialog/editcontact/Contact;", "Y", "()Lcom/vinfast/companion/core/base/ui/widget/dialog/editcontact/Contact;", "contact", "F0", "(Landroid/content/Context;Lcom/vinfast/companion/core/base/ui/widget/dialog/editcontact/Contact;)V", "i0", "m0", "I0", "(Landroid/content/Context;Lcom/vinfast/companion/map/model/MapLocation;)V", "deviceLocation", "U", "(Lcom/vinfast/companion/map/model/MapLocation;)Lcom/vinfast/companion/map/model/MapLocation;", "z0", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "isChecked", "N", "(Z)V", "toLocation", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "passengersNumber", "G0", "(Lcom/vinfast/companion/map/model/MapLocation;Ljava/lang/Integer;)V", "P", "isEditLocation", "S", "(Landroid/content/Context;Z)V", "R", "Q", "newLocation", "q0", "(Lcom/vinfast/companion/map/model/MapLocation;)Z", "A0", "b0", "t0", "u0", "v0", "C0", "defaultValue", "Lcom/vinfast/companion/core/base/ui/model/ItemCustom;", "x0", "(Ljava/lang/String;)Lcom/vinfast/companion/core/base/ui/model/ItemCustom;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "listItemDefault", "W", "(Ljava/util/List;)Ljava/util/List;", "m", "Lcom/vinfast/companion/serviceskit/data/repository/RsaRepository;", "n", "Lcom/vinfast/companion/authenticationkit/data/manager/IUserManager;", "o", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleManager;", "p", "Lcom/vinfast/companion/vehiclekit/data/manager/IVehicleComponentManager;", "q", "Lcom/vinfast/companion/map/manager/HEREManager;", "r", "Lcom/vinfast/companion/serviceskit/manager/IRsaServiceManager;", "s", "Lcom/vinfast/companion/core/managers/BuildConfigManager;", "t", "Ljava/util/List;", "listServiceEnableDropOffUS", "u", "listServiceEnableDropOff", "Landroidx/lifecycle/MutableLiveData;", "Ljava/util/ArrayList;", "Lkotlin/collections/ArrayList;", "v", "Landroidx/lifecycle/MutableLiveData;", "_listItem", "Landroidx/lifecycle/LiveData;", "w", "Landroidx/lifecycle/LiveData;", "g0", "()Landroidx/lifecycle/LiveData;", "listItem", "x", "_listCarService", "y", "f0", "listCarServiceType", "z", "_itemDropOff", "A", "d0", "itemDropOff", "B", "_itemRequestRideShare", "C", "e0", "itemRequestRideShare", "D", "_listItemRideShareInfo", "E", "h0", "listItemRideShareInfo", "F", "_itemDetail", "G", "c0", "itemDetail", "kotlin.jvm.PlatformType", "H", "_isEnableSendButton", "I", "o0", "isEnableSendButton", "Lcom/vinfast/companion/core/extensions/SingleLiveData;", "J", "Lcom/vinfast/companion/core/extensions/SingleLiveData;", "j0", "()Lcom/vinfast/companion/core/extensions/SingleLiveData;", "makeRequestResult", "K", "l0", "receiveNotyCreated", "Lkotlin/Pair;", "Lcom/vinfast/companion/main/ui/rsa/global/makerequest/DataRideShareInfo;", "L", "a0", "dataRideShareToEdit", "M", "Lcom/vinfast/companion/core/base/ui/widget/dialog/editcontact/Contact;", "contactInfo", "Lcom/vinfast/companion/map/model/MapLocation;", "dropOffLocation", "pickUpLocation", "rideShareToLocation", "Ljava/util/HashMap;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "Lkotlin/collections/HashMap;", "Ljava/util/HashMap;", "objectSaveData", "Ljava/lang/Integer;", "X", "Ljava/lang/String;", "oldServiceSelected", "Z", "canUpdateVehicleLocation", "Lcom/vinfast/companion/core/utils/notification/NotificationCategory;", "listCategoryRsa", "Lcom/vinfast/companion/core/managers/MarketEnum;", "()Lcom/vinfast/companion/core/managers/MarketEnum;", "currentMarket", "p0", "()Z", "isEuMarket", "r0", "isSupportRideShare", "s0", "isSupportSalutation", "services_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class GLRsaMakeRequestViewModel extends com.vinfast.companion.core.base.BaseViewModel {

    /* JADX INFO: renamed from: A, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData itemDropOff;

    /* JADX INFO: renamed from: B, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _itemRequestRideShare;

    /* JADX INFO: renamed from: C, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData itemRequestRideShare;

    /* JADX INFO: renamed from: D, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _listItemRideShareInfo;

    /* JADX INFO: renamed from: E, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData listItemRideShareInfo;

    /* JADX INFO: renamed from: F, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _itemDetail;

    /* JADX INFO: renamed from: G, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData itemDetail;

    /* JADX INFO: renamed from: H, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _isEnableSendButton;

    /* JADX INFO: renamed from: I, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData isEnableSendButton;

    /* JADX INFO: renamed from: J, reason: from kotlin metadata */
    private final com.vinfast.companion.core.extensions.SingleLiveData makeRequestResult;

    /* JADX INFO: renamed from: K, reason: from kotlin metadata */
    private final com.vinfast.companion.core.extensions.SingleLiveData receiveNotyCreated;

    /* JADX INFO: renamed from: L, reason: from kotlin metadata */
    private final com.vinfast.companion.core.extensions.SingleLiveData dataRideShareToEdit;

    /* JADX INFO: renamed from: M, reason: from kotlin metadata */
    private com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contactInfo;

    /* JADX INFO: renamed from: N, reason: from kotlin metadata */
    private com.vinfast.companion.map.model.MapLocation dropOffLocation;

    /* JADX INFO: renamed from: P, reason: from kotlin metadata */
    private com.vinfast.companion.map.model.MapLocation pickUpLocation;

    /* JADX INFO: renamed from: Q, reason: from kotlin metadata */
    private com.vinfast.companion.map.model.MapLocation rideShareToLocation;

    /* JADX INFO: renamed from: R, reason: from kotlin metadata */
    private java.util.HashMap objectSaveData;

    /* JADX INFO: renamed from: V, reason: from kotlin metadata */
    private java.lang.Integer passengersNumber;

    /* JADX INFO: renamed from: X, reason: from kotlin metadata */
    private java.lang.String oldServiceSelected;

    /* JADX INFO: renamed from: Y, reason: from kotlin metadata */
    private boolean canUpdateVehicleLocation;

    /* JADX INFO: renamed from: Z, reason: from kotlin metadata */
    private final java.util.List listCategoryRsa;

    /* JADX INFO: renamed from: m, reason: from kotlin metadata */
    private final com.vinfast.companion.serviceskit.data.repository.RsaRepository repository;

    /* JADX INFO: renamed from: n, reason: from kotlin metadata */
    private final com.vinfast.companion.authenticationkit.data.manager.IUserManager userManager;

    /* JADX INFO: renamed from: o, reason: from kotlin metadata */
    private final com.vinfast.companion.vehiclekit.data.manager.IVehicleManager vehicleManager;

    /* JADX INFO: renamed from: p, reason: from kotlin metadata */
    private final com.vinfast.companion.vehiclekit.data.manager.IVehicleComponentManager vehicleComponentManager;

    /* JADX INFO: renamed from: q, reason: from kotlin metadata */
    private final com.vinfast.companion.map.manager.HEREManager hereManager;

    /* JADX INFO: renamed from: r, reason: from kotlin metadata */
    private final com.vinfast.companion.serviceskit.manager.IRsaServiceManager rsaServiceManager;

    /* JADX INFO: renamed from: s, reason: from kotlin metadata */
    private com.vinfast.companion.core.managers.BuildConfigManager buildConfigManager;

    /* JADX INFO: renamed from: t, reason: from kotlin metadata */
    private final java.util.List listServiceEnableDropOffUS;

    /* JADX INFO: renamed from: u, reason: from kotlin metadata */
    private java.util.List listServiceEnableDropOff;

    /* JADX INFO: renamed from: v, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _listItem;

    /* JADX INFO: renamed from: w, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData listItem;

    /* JADX INFO: renamed from: x, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _listCarService;

    /* JADX INFO: renamed from: y, reason: from kotlin metadata */
    private final androidx.lifecycle.LiveData listCarServiceType;

    /* JADX INFO: renamed from: z, reason: from kotlin metadata */
    private androidx.lifecycle.MutableLiveData _itemDropOff;

    public GLRsaMakeRequestViewModel(com.vinfast.companion.serviceskit.data.repository.RsaRepository rsaRepository, com.vinfast.companion.authenticationkit.data.manager.IUserManager iUserManager, com.vinfast.companion.vehiclekit.data.manager.IVehicleManager iVehicleManager, com.vinfast.companion.vehiclekit.data.manager.IVehicleComponentManager iVehicleComponentManager, com.vinfast.companion.map.manager.HEREManager hEREManager, com.vinfast.companion.serviceskit.manager.IRsaServiceManager iRsaServiceManager, com.vinfast.companion.core.managers.BuildConfigManager buildConfigManager, com.vinfast.companion.notificationkit.manager.INotificationManager iNotificationManager) {
        kotlin.jvm.internal.Intrinsics.l(rsaRepository, "repository");
        kotlin.jvm.internal.Intrinsics.l(iUserManager, "userManager");
        kotlin.jvm.internal.Intrinsics.l(iVehicleManager, "vehicleManager");
        kotlin.jvm.internal.Intrinsics.l(iVehicleComponentManager, "vehicleComponentManager");
        kotlin.jvm.internal.Intrinsics.l(hEREManager, "hereManager");
        kotlin.jvm.internal.Intrinsics.l(iRsaServiceManager, "rsaServiceManager");
        kotlin.jvm.internal.Intrinsics.l(buildConfigManager, "buildConfigManager");
        kotlin.jvm.internal.Intrinsics.l(iNotificationManager, "notificationManager");
        this.repository = rsaRepository;
        this.userManager = iUserManager;
        this.vehicleManager = iVehicleManager;
        this.vehicleComponentManager = iVehicleComponentManager;
        this.hereManager = hEREManager;
        this.rsaServiceManager = iRsaServiceManager;
        this.buildConfigManager = buildConfigManager;
        java.util.List listR = kotlin.collections.CollectionsKt.r(new java.lang.String[]{"2001", "2024"});
        this.listServiceEnableDropOffUS = listR;
        this.listServiceEnableDropOff = listR;
        androidx.lifecycle.MutableLiveData mutableLiveData = new androidx.lifecycle.MutableLiveData();
        this._listItem = mutableLiveData;
        this.listItem = mutableLiveData;
        androidx.lifecycle.MutableLiveData mutableLiveData2 = new androidx.lifecycle.MutableLiveData();
        this._listCarService = mutableLiveData2;
        this.listCarServiceType = mutableLiveData2;
        androidx.lifecycle.MutableLiveData mutableLiveData3 = new androidx.lifecycle.MutableLiveData();
        this._itemDropOff = mutableLiveData3;
        this.itemDropOff = mutableLiveData3;
        androidx.lifecycle.MutableLiveData mutableLiveData4 = new androidx.lifecycle.MutableLiveData();
        this._itemRequestRideShare = mutableLiveData4;
        this.itemRequestRideShare = mutableLiveData4;
        androidx.lifecycle.MutableLiveData mutableLiveData5 = new androidx.lifecycle.MutableLiveData();
        this._listItemRideShareInfo = mutableLiveData5;
        this.listItemRideShareInfo = mutableLiveData5;
        androidx.lifecycle.MutableLiveData mutableLiveData6 = new androidx.lifecycle.MutableLiveData();
        this._itemDetail = mutableLiveData6;
        this.itemDetail = mutableLiveData6;
        androidx.lifecycle.MutableLiveData mutableLiveData7 = new androidx.lifecycle.MutableLiveData(java.lang.Boolean.FALSE);
        this._isEnableSendButton = mutableLiveData7;
        this.isEnableSendButton = mutableLiveData7;
        this.makeRequestResult = new com.vinfast.companion.core.extensions.SingleLiveData();
        this.receiveNotyCreated = new com.vinfast.companion.core.extensions.SingleLiveData();
        this.dataRideShareToEdit = new com.vinfast.companion.core.extensions.SingleLiveData();
        this.objectSaveData = new java.util.HashMap();
        this.canUpdateVehicleLocation = true;
        this.listCategoryRsa = kotlin.collections.CollectionsKt.r(new com.vinfast.companion.core.utils.notification.NotificationCategory[]{com.vinfast.companion.core.utils.notification.NotificationCategory.RsaTowing, com.vinfast.companion.core.utils.notification.NotificationCategory.RsaConfirmed, com.vinfast.companion.core.utils.notification.NotificationCategory.RsaRequest});
        C0();
        io.reactivex.rxjava3.disposables.Disposable disposableSubscribe = com.vinfast.companion.notificationkit.manager.INotificationManager.l(iNotificationManager, (com.trello.rxlifecycle4.LifecycleProvider) null, 1, (java.lang.Object) null).filter(new io.reactivex.rxjava3.functions.Predicate() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.1
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final boolean test(com.vinfast.companion.core.utils.notification.FcmNotification fcmNotification) {
                kotlin.jvm.internal.Intrinsics.l(fcmNotification, "it");
                return kotlin.collections.CollectionsKt.e0(com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.this.listCategoryRsa, fcmNotification.p());
            }
        }).subscribe(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.2
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(com.vinfast.companion.core.utils.notification.FcmNotification fcmNotification) {
                kotlin.jvm.internal.Intrinsics.l(fcmNotification, "fcmNoty");
                com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.this.getReceiveNotyCreated().n(fcmNotification.s());
                com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.this.rsaServiceManager.a(251);
            }
        });
        kotlin.jvm.internal.Intrinsics.k(disposableSubscribe, "subscribe(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(disposableSubscribe, s());
        u0();
        t0();
        b0();
        v0();
    }

    private final void C0() {
        io.reactivex.rxjava3.core.Observable observableZip = io.reactivex.rxjava3.core.Observable.zip(com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.c(this.vehicleComponentManager.B0(com.vinfast.companion.vehiclekit.data.persistent.model.alias.VehicleDeviceKeyAlias.LOCATION_LATITUDE.INSTANCE)), com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.c(this.vehicleComponentManager.B0(com.vinfast.companion.vehiclekit.data.persistent.model.alias.VehicleDeviceKeyAlias.LOCATION_LONGITUDE.INSTANCE)), new io.reactivex.rxjava3.functions.BiFunction() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$subscribeVehicleResource$1
            public final com.here.sdk.core.GeoCoordinates a(double d, double d2) {
                return new com.here.sdk.core.GeoCoordinates(d, d2);
            }

            public /* bridge */ /* synthetic */ java.lang.Object apply(java.lang.Object obj, java.lang.Object obj2) {
                return a(((java.lang.Number) obj).doubleValue(), ((java.lang.Number) obj2).doubleValue());
            }
        });
        final com.here.sdk.search.SearchEngine searchEngineC = this.hereManager.c();
        io.reactivex.rxjava3.core.Observable observableSwitchMapSingle = observableZip.switchMapSingle(new io.reactivex.rxjava3.functions.Function() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$subscribeVehicleResource$2
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final io.reactivex.rxjava3.core.Single apply(com.here.sdk.core.GeoCoordinates geoCoordinates) {
                return com.vinfast.companion.map.extensions.SearchEngineExtensionsKt.L(searchEngineC, geoCoordinates);
            }
        });
        kotlin.jvm.internal.Intrinsics.k(observableSwitchMapSingle, "switchMapSingle(...)");
        com.vinfast.companion.core.extensions.RxExtensionKt.k(com.vinfast.companion.core.extensions.RxExtensionKt.o(observableSwitchMapSingle, new kotlin.jvm.functions.Function1() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.m0
            public final java.lang.Object invoke(java.lang.Object obj) {
                return com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.D0(this.a, (com.vinfast.companion.map.wrapper.searching.SearchResult) obj);
            }
        }), s());
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.Unit D0(com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel gLRsaMakeRequestViewModel, com.vinfast.companion.map.wrapper.searching.SearchResult searchResult) {
        kotlin.jvm.internal.Intrinsics.l(searchResult, "searchResult");
        java.util.List listE = searchResult.e();
        com.vinfast.companion.map.model.MapLocation mapLocation = listE != null ? (com.vinfast.companion.map.model.MapLocation) kotlin.collections.CollectionsKt.s0(listE) : null;
        if (gLRsaMakeRequestViewModel.canUpdateVehicleLocation && mapLocation != null) {
            gLRsaMakeRequestViewModel.J0(mapLocation);
        }
        return kotlin.Unit.a;
    }

    public static /* synthetic */ void T(com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel gLRsaMakeRequestViewModel, android.content.Context context, boolean z, int i, java.lang.Object obj) {
        if ((i & 2) != 0) {
            z = false;
        }
        gLRsaMakeRequestViewModel.S(context, z);
    }

    private final java.util.List W(java.util.List listItemDefault) {
        java.lang.String str;
        java.lang.String str2;
        if (listItemDefault == null) {
            listItemDefault = (java.util.List) this._listCarService.f();
        }
        if (listItemDefault == null) {
            return kotlin.collections.CollectionsKt.o();
        }
        java.util.ArrayList<com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem> arrayList = new java.util.ArrayList();
        for (java.lang.Object obj : listItemDefault) {
            com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem rsaCarStatusItem = (com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) obj;
            if (rsaCarStatusItem.getIsSelected()) {
                java.util.Map.Entry item = rsaCarStatusItem.getItem();
                if ((item != null ? (java.lang.String) item.getKey() : null) != null) {
                    arrayList.add(obj);
                }
            }
        }
        java.util.ArrayList arrayList2 = new java.util.ArrayList();
        java.lang.String str3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
        for (com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem rsaCarStatusItem2 : arrayList) {
            java.util.Map.Entry item2 = rsaCarStatusItem2.getItem();
            if (item2 != null && (str2 = (java.lang.String) item2.getKey()) != null) {
                arrayList2.add(str2);
            }
            java.util.Map.Entry item3 = rsaCarStatusItem2.getItem();
            if (item3 != null && (str = (java.lang.String) item3.getValue()) != null) {
                str3 = str3.length() == 0 ? ((java.lang.Object) str3) + str : ((java.lang.Object) str3) + ", " + str;
            }
        }
        return arrayList2;
    }

    static /* synthetic */ java.util.List X(com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel gLRsaMakeRequestViewModel, java.util.List list, int i, java.lang.Object obj) {
        if ((i & 1) != 0) {
            list = null;
        }
        return gLRsaMakeRequestViewModel.W(list);
    }

    private final void b0() {
        com.vinfast.companion.authenticationkit.data.persistent.model.User user = (com.vinfast.companion.authenticationkit.data.persistent.model.User) com.vinfast.companion.core.extensions.validity.ValidityExtensionKt.d(this.userManager.e0());
        if (user != null) {
            this.contactInfo = new com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact(user.h(), user.p(), com.vinfast.companion.core.base.ui.model.Gender.Companion.a(user.l()), user.q(), user.t(), user.f());
        }
    }

    private final boolean s0() {
        return com.vinfast.companion.core.managers.BuildConfigManager.f(this.buildConfigManager, com.vinfast.companion.core.managers.MarketFeatures.ACCOUNT_SALUTATION, (com.vinfast.companion.core.uiPrototype.base.VehicleType) null, 2, (java.lang.Object) null);
    }

    private final void t0() {
        androidx.lifecycle.MutableLiveData mutableLiveData = this._itemDetail;
        int i = com.vinfast.companion.services.R.string.CA70402_add_more_details;
        int i2 = com.vinfast.companion.services.R.color.secondary_blue;
        int i5 = com.vinfast.companion.services.R.dimen.text_size_16;
        mutableLiveData.n(new com.vinfast.companion.core.base.ui.model.ItemCustom("tag_item_details", (java.lang.String) null, java.lang.Integer.valueOf(i), java.lang.Integer.valueOf(i2), java.lang.Integer.valueOf(i5), (java.lang.Integer) null, (java.lang.String) null, (android.text.SpannableString) null, (java.lang.Integer) null, java.lang.Integer.valueOf(i5), (java.lang.String) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.String) null, (java.lang.Integer) null, java.lang.Boolean.FALSE, (java.lang.Boolean) null, (java.lang.Integer) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.attr.defaultCustomItemFullBackground), (java.lang.Integer) null, (java.lang.Integer) null, 101, (java.lang.Integer) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, false, false, false, false, 0, 0, false, (java.lang.Integer) null, false, 2, (java.lang.Long) null, -306184734, 12287, (kotlin.jvm.internal.DefaultConstructorMarker) null));
    }

    private final void u0() {
        androidx.lifecycle.MutableLiveData mutableLiveData = this._itemDropOff;
        int i = com.vinfast.companion.services.R.string.CA70402_select_location;
        int i2 = com.vinfast.companion.services.R.color.secondary_blue;
        int i5 = com.vinfast.companion.services.R.dimen.text_size_16;
        int i6 = com.vinfast.companion.services.R.attr.defaultCustomItemFullBackground;
        int i7 = com.vinfast.companion.services.R.drawable.ic_next_white;
        java.lang.Integer numValueOf = java.lang.Integer.valueOf(i);
        java.lang.Integer numValueOf2 = java.lang.Integer.valueOf(i2);
        java.lang.Integer numValueOf3 = java.lang.Integer.valueOf(i5);
        java.lang.Integer numValueOf4 = java.lang.Integer.valueOf(i7);
        java.lang.Boolean bool = java.lang.Boolean.FALSE;
        mutableLiveData.n(new com.vinfast.companion.core.base.ui.model.ItemCustom("tag_item_short_term", (java.lang.String) null, numValueOf, numValueOf2, numValueOf3, (java.lang.Integer) null, (java.lang.String) null, (android.text.SpannableString) null, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, (java.lang.String) null, numValueOf4, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.String) null, (java.lang.Integer) null, bool, (java.lang.Boolean) null, (java.lang.Integer) null, java.lang.Integer.valueOf(i6), (java.lang.Integer) null, (java.lang.Integer) null, 101, (java.lang.Integer) null, (java.lang.Boolean) null, bool, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, false, false, false, false, 0, 0, false, (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Long) null, 1841291234, 16383, (kotlin.jvm.internal.DefaultConstructorMarker) null));
    }

    private final void v0() {
        this._itemRequestRideShare.n(new com.vinfast.companion.core.base.ui.model.ItemCustom("tag_item_ride_share", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70421_rideshare_request), (java.lang.Integer) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.dimen.text_size_16), (java.lang.Integer) null, (java.lang.String) null, (android.text.SpannableString) null, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, java.lang.Boolean.TRUE, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Integer) null, (java.lang.String) null, (java.lang.String) null, (java.lang.Integer) null, java.lang.Boolean.FALSE, (java.lang.Boolean) null, (java.lang.Integer) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.attr.defaultCustomItemFullBackground), (java.lang.Integer) null, (java.lang.Integer) null, 101, (java.lang.Integer) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, (java.lang.Boolean) null, false, false, false, false, 0, 0, false, (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Long) null, -306208790, 16383, (kotlin.jvm.internal.DefaultConstructorMarker) null));
    }

    private final com.vinfast.companion.core.base.ui.model.ItemCustom x0(java.lang.String defaultValue) {
        java.lang.String str;
        java.lang.String strD;
        int i = com.vinfast.companion.services.R.color.secondary_blue;
        com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
        if (mapLocation == null || (strD = mapLocation.d()) == null) {
            str = defaultValue;
        } else {
            i = com.vinfast.companion.services.R.color.white;
            str = strD;
        }
        return com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(com.vinfast.companion.core.utils.ItemCustomUtils.a, "tag_location", str, (java.lang.Integer) null, false, true, (java.lang.String) null, (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, java.lang.Integer.valueOf(i), (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -16777236, 7, (java.lang.Object) null);
    }

    public final void A0() {
        this.dropOffLocation = null;
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemDropOff.f();
        if (itemCustom != null) {
            itemCustom.o0(java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70402_select_location));
            itemCustom.m0((java.lang.String) null);
            itemCustom.n0(java.lang.Integer.valueOf(com.vinfast.companion.services.R.color.secondary_blue));
            this._itemDropOff.n(itemCustom);
        }
    }

    public final void B0(android.content.Context context) {
        com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle vehicle;
        com.vinfast.companion.map.model.MapLocation mapLocation;
        com.vinfast.companion.map.model.MapLocation mapLocation2;
        com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest rsaLocationRequest;
        java.lang.String strC;
        java.lang.String strF;
        java.lang.String str;
        java.lang.String str2;
        java.lang.String strD;
        java.lang.String strD2;
        java.lang.String strM;
        java.lang.String strH;
        java.lang.String strY;
        java.lang.String strK;
        java.lang.String strZ;
        java.lang.String strH2;
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        timber.log.Timber.Forest forest = timber.log.Timber.a;
        com.vinfast.companion.map.model.MapLocation mapLocation3 = this.pickUpLocation;
        java.lang.Double dValueOf = mapLocation3 != null ? java.lang.Double.valueOf(mapLocation3.t()) : null;
        com.vinfast.companion.map.model.MapLocation mapLocation4 = this.pickUpLocation;
        forest.a("latitude.value: " + dValueOf + " longitude.value: " + (mapLocation4 != null ? java.lang.Double.valueOf(mapLocation4.w()) : null), new java.lang.Object[0]);
        java.util.List listX = X(this, null, 1, null);
        com.vinfast.companion.core.extensions.validity.Validity validity = (com.vinfast.companion.core.extensions.validity.Validity) this.vehicleManager.o1().f();
        if (validity == null || (vehicle = (com.vinfast.companion.vehiclekit.data.persistent.model.Vehicle) validity.a()) == null || (mapLocation = this.pickUpLocation) == null) {
            return;
        }
        com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact = this.contactInfo;
        kotlin.Pair pairV = (contact == null || (strH2 = contact.h()) == null) ? null : com.vinfast.companion.core.extensions.StringExtensionKt.V(strH2, Z());
        java.lang.String strZ2 = mapLocation.z();
        java.lang.String str3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
        java.lang.String str4 = strZ2 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strZ2;
        java.lang.String strK2 = mapLocation.k();
        java.lang.String str5 = strK2 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strK2;
        java.lang.String strY2 = mapLocation.y();
        java.lang.String str6 = strY2 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strY2;
        java.lang.String strH3 = mapLocation.H();
        java.lang.String str7 = strH3 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strH3;
        java.lang.String strM2 = mapLocation.m();
        java.lang.String str8 = strM2 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strM2;
        double dW = mapLocation.w();
        double dT = mapLocation.t();
        java.lang.String strD3 = mapLocation.d();
        java.lang.String str9 = strD3 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD3;
        java.lang.String strD4 = mapLocation.D();
        java.lang.String str10 = strD4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD4;
        java.lang.String strB = mapLocation.B();
        com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest rsaLocationRequest2 = new com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest(str4, str5, str6, str7, str8, dW, dT, strB == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strB, str9, str10, (java.lang.Integer) null, (java.lang.String) null, 3072, (kotlin.jvm.internal.DefaultConstructorMarker) null);
        com.vinfast.companion.map.model.MapLocation mapLocation5 = this.dropOffLocation;
        if (mapLocation5 != null) {
            java.lang.String strZ3 = mapLocation5.z();
            if (strZ3 == null) {
                strZ3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strK3 = mapLocation5.k();
            if (strK3 == null) {
                strK3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strY3 = mapLocation5.y();
            if (strY3 == null) {
                strY3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strH4 = mapLocation5.H();
            if (strH4 == null) {
                strH4 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strM3 = mapLocation5.m();
            if (strM3 == null) {
                strM3 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String str11 = strZ3;
            java.lang.String str12 = strY3;
            java.lang.String str13 = strH4;
            double dW2 = mapLocation5.w();
            java.lang.String str14 = strK3;
            java.lang.String str15 = strM3;
            double dT2 = mapLocation5.t();
            java.lang.String strD5 = mapLocation5.d();
            if (strD5 == null) {
                strD5 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strD6 = mapLocation5.D();
            if (strD6 == null) {
                strD6 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            java.lang.String strB2 = mapLocation5.B();
            if (strB2 == null) {
                strB2 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
            }
            mapLocation2 = mapLocation;
            rsaLocationRequest = new com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest(str11, str14, str12, str13, str15, dW2, dT2, strB2, strD5, strD6, 9, "261565");
        } else {
            mapLocation2 = mapLocation;
            java.lang.String strZ4 = mapLocation2.z();
            java.lang.String str16 = strZ4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strZ4;
            java.lang.String strK4 = mapLocation2.k();
            java.lang.String str17 = strK4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strK4;
            java.lang.String strY4 = mapLocation2.y();
            java.lang.String str18 = strY4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strY4;
            java.lang.String strH5 = mapLocation2.H();
            java.lang.String str19 = strH5 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strH5;
            java.lang.String strM4 = mapLocation2.m();
            java.lang.String str20 = strM4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strM4;
            double dW3 = mapLocation2.w();
            double dT3 = mapLocation2.t();
            java.lang.String strD7 = mapLocation2.d();
            java.lang.String str21 = strD7 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD7;
            java.lang.String strD8 = mapLocation2.D();
            java.lang.String str22 = strD8 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD8;
            java.lang.String strB3 = mapLocation2.B();
            rsaLocationRequest = new com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest(str16, str17, str18, str19, str20, dW3, dT3, strB3 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strB3, str21, str22, 9, "261565");
        }
        com.vinfast.companion.map.model.MapLocation mapLocation6 = this.rideShareToLocation;
        java.lang.String str23 = (mapLocation6 == null || (strZ = mapLocation6.z()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strZ;
        com.vinfast.companion.map.model.MapLocation mapLocation7 = this.rideShareToLocation;
        java.lang.String str24 = (mapLocation7 == null || (strK = mapLocation7.k()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strK;
        com.vinfast.companion.map.model.MapLocation mapLocation8 = this.rideShareToLocation;
        java.lang.String str25 = (mapLocation8 == null || (strY = mapLocation8.y()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strY;
        com.vinfast.companion.map.model.MapLocation mapLocation9 = this.rideShareToLocation;
        java.lang.String str26 = (mapLocation9 == null || (strH = mapLocation9.H()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strH;
        com.vinfast.companion.map.model.MapLocation mapLocation10 = this.rideShareToLocation;
        java.lang.String str27 = (mapLocation10 == null || (strM = mapLocation10.m()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strM;
        com.vinfast.companion.map.model.MapLocation mapLocation11 = this.rideShareToLocation;
        double dW4 = mapLocation11 != null ? mapLocation11.w() : 0.0d;
        com.vinfast.companion.map.model.MapLocation mapLocation12 = this.rideShareToLocation;
        double dT4 = mapLocation12 != null ? mapLocation12.t() : 0.0d;
        com.vinfast.companion.map.model.MapLocation mapLocation13 = this.rideShareToLocation;
        java.lang.String str28 = (mapLocation13 == null || (strD2 = mapLocation13.d()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD2;
        com.vinfast.companion.map.model.MapLocation mapLocation14 = this.rideShareToLocation;
        java.lang.String str29 = (mapLocation14 == null || (strD = mapLocation14.D()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strD;
        java.lang.String strB4 = mapLocation2.B();
        com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest rsaLocationRequest3 = new com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest(str23, str24, str25, str26, str27, dW4, dT4, strB4 == null ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : strB4, str28, str29, (java.lang.Integer) null, (java.lang.String) null, 3072, (kotlin.jvm.internal.DefaultConstructorMarker) null);
        java.lang.Integer num = this.passengersNumber;
        boolean z = false;
        com.vinfast.companion.serviceskit.domain.request.RideShareRequest rideShareRequest = new com.vinfast.companion.serviceskit.domain.request.RideShareRequest(false, num != null ? num.intValue() : 1, (java.lang.Integer) null, (java.lang.String) null, com.vinfast.companion.core.extensions.ContextExtensionKt.r(context, false, this.contactInfo, 1, (java.lang.Object) null), rsaLocationRequest2, rsaLocationRequest3);
        com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact2 = this.contactInfo;
        if (contact2 == null || (strC = contact2.c()) == null) {
            strC = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
        }
        com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact3 = this.contactInfo;
        if (contact3 == null || (strF = contact3.f()) == null) {
            strF = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
        }
        java.lang.String str30 = (pairV == null || (str2 = (java.lang.String) pairV.e()) == null) ? okhttp3.HttpUrl.FRAGMENT_ENCODE_SET : str2;
        java.lang.String strJ = vehicle.J();
        if (pairV != null && (str = (java.lang.String) pairV.f()) != null) {
            str3 = str;
        }
        java.lang.String strP = vehicle.p();
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemDetail.f();
        com.vinfast.companion.serviceskit.domain.request.GLMakeRsaRequest gLMakeRsaRequest = new com.vinfast.companion.serviceskit.domain.request.GLMakeRsaRequest(strC, strF, str3, str30, strJ, listX, strP, rsaLocationRequest2, (com.vinfast.companion.serviceskit.domain.request.RsaLocationRequest) null, itemCustom != null ? itemCustom.i() : null, (com.vinfast.companion.serviceskit.domain.request.RideShareRequest) null, 1280, (kotlin.jvm.internal.DefaultConstructorMarker) null);
        java.util.ArrayList arrayList = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(listX, 10));
        java.util.Iterator it = listX.iterator();
        while (it.hasNext()) {
            if (this.listServiceEnableDropOff.contains((java.lang.String) it.next())) {
                z = true;
            }
            arrayList.add(kotlin.Unit.a);
        }
        if (z) {
            gLMakeRsaRequest.a(rsaLocationRequest);
            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom2 = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemRequestRideShare.f();
            if (itemCustom2 != null && itemCustom2.E()) {
                gLMakeRsaRequest.b(rideShareRequest);
            }
        }
        io.reactivex.rxjava3.core.Single singleK = this.repository.l(gLMakeRsaRequest).m(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$sendRsaRequest$1$1$4
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(com.vinfast.companion.core.base.BaseResponse baseResponse) {
                kotlin.jvm.internal.Intrinsics.l(baseResponse, "response");
                com.vinfast.companion.serviceskit.domain.request.RsaSendDto rsaSendDto = (com.vinfast.companion.serviceskit.domain.request.RsaSendDto) baseResponse.a();
                if (rsaSendDto == null) {
                    this.a.getMakeRequestResult().n("make_request_error");
                    return;
                }
                com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel gLRsaMakeRequestViewModel = this.a;
                com.vinfast.companion.core.extensions.SingleLiveData makeRequestResult = gLRsaMakeRequestViewModel.getMakeRequestResult();
                java.lang.String strB5 = rsaSendDto.b();
                if (strB5 == null) {
                    strB5 = okhttp3.HttpUrl.FRAGMENT_ENCODE_SET;
                }
                makeRequestResult.n(strB5);
                gLRsaMakeRequestViewModel.rsaServiceManager.a(251);
            }
        }).k(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$sendRsaRequest$1$1$5
            /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
            public final void accept(java.lang.Throwable th) {
                kotlin.jvm.internal.Intrinsics.l(th, "it");
                this.a.getMakeRequestResult().n("make_request_error");
            }
        });
        kotlin.jvm.internal.Intrinsics.k(singleK, "doOnError(...)");
        com.vinfast.companion.core.base.BaseViewModel.E(this, singleK, (com.vinfast.companion.core.base.ProgressType) null, (kotlin.jvm.functions.Function1) null, 6, (java.lang.Object) null);
    }

    public final void F0(android.content.Context context, com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact) {
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        kotlin.jvm.internal.Intrinsics.l(contact, "contact");
        java.lang.String string = context.getString(com.vinfast.companion.services.R.string.common_unknown);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        this.contactInfo = contact;
        java.util.ArrayList arrayList = (java.util.ArrayList) this._listItem.f();
        if (arrayList != null) {
            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_user_name");
            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA2 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_user_phone_number");
            java.lang.String strQ = com.vinfast.companion.core.extensions.ContextExtensionKt.q(context, s0(), this.contactInfo);
            if (strQ.length() != 0) {
                string = strQ;
            }
            if (itemCustomA != null) {
                itemCustomA.Y(string);
            }
            java.lang.String strP = com.vinfast.companion.core.extensions.StringExtensionKt.p(contact.h(), this.buildConfigManager.c(), (com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat) null, 2, (java.lang.Object) null);
            int i = com.vinfast.companion.services.R.string.CA70402_best_contact_number;
            int i2 = com.vinfast.companion.services.R.color.white;
            if (strP == null || strP.length() == 0) {
                i = com.vinfast.companion.services.R.string.common_add_phone_number;
                i2 = com.vinfast.companion.services.R.color.colorButtonBlue;
            }
            if (itemCustomA2 != null) {
                itemCustomA2.Y(strP);
                itemCustomA2.o0(java.lang.Integer.valueOf(i));
                itemCustomA2.n0(java.lang.Integer.valueOf(i2));
            }
            this._listItem.n(arrayList);
            java.util.ArrayList arrayList2 = (java.util.ArrayList) this._listItemRideShareInfo.f();
            if (arrayList2 != null) {
                com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA3 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList2, "tag_item_ride_share_name");
                com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA4 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList2, "tag_item_ride_share_phone");
                if (itemCustomA3 != null) {
                    itemCustomA3.Y(string);
                }
                if (itemCustomA4 != null) {
                    itemCustomA4.Y(strP);
                }
                this._listItemRideShareInfo.n(arrayList2);
            }
        }
    }

    public final void G0(com.vinfast.companion.map.model.MapLocation toLocation, java.lang.Integer passengersNumber) {
        this.rideShareToLocation = toLocation;
        this.passengersNumber = passengersNumber;
        java.util.ArrayList arrayList = (java.util.ArrayList) this._listItemRideShareInfo.f();
        if (arrayList != null) {
            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_item_ride_share_to");
            if (itemCustomA != null) {
                itemCustomA.W(java.lang.Integer.valueOf(com.vinfast.companion.services.R.color.white));
                itemCustomA.Y(toLocation != null ? toLocation.d() : null);
            }
            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA2 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_item_ride_share_passenger");
            if (itemCustomA2 != null) {
                itemCustomA2.Y(passengersNumber != null ? java.lang.String.valueOf(passengersNumber.intValue()) : null);
                itemCustomA2.W(java.lang.Integer.valueOf(com.vinfast.companion.services.R.color.white));
            }
            this._listItemRideShareInfo.n(arrayList);
        }
    }

    public final void H0(java.lang.String detailContent) {
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemDetail.f();
        if (itemCustom != null) {
            if (detailContent == null || detailContent.length() == 0) {
                t0();
                return;
            }
            itemCustom.Y(detailContent);
            itemCustom.o0((java.lang.Integer) null);
            this._itemDetail.n(itemCustom);
        }
    }

    public final void I0(android.content.Context context, com.vinfast.companion.map.model.MapLocation mapLocation) {
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        kotlin.jvm.internal.Intrinsics.l(mapLocation, "mapLocation");
        timber.log.Timber.a.a("Location select to drop off is: " + mapLocation.d(), new java.lang.Object[0]);
        java.lang.String strD = mapLocation.d();
        if (strD == null || strD.length() == 0) {
            u0();
            return;
        }
        this.dropOffLocation = mapLocation;
        java.lang.String strD2 = mapLocation.D();
        if (strD2 == null) {
            strD2 = context.getString(com.vinfast.companion.services.R.string.CA70101_booking_service_center);
            kotlin.jvm.internal.Intrinsics.k(strD2, "getString(...)");
        }
        java.lang.String strD3 = mapLocation.d();
        if (strD3 != null) {
            strD2 = ((java.lang.Object) strD2) + ", " + strD3;
        }
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemDropOff.f();
        if (itemCustom != null) {
            itemCustom.o0((java.lang.Integer) null);
            itemCustom.m0(strD2);
            itemCustom.n0(java.lang.Integer.valueOf(com.vinfast.companion.services.R.color.white));
            this._itemDropOff.n(itemCustom);
        }
    }

    public final void J0(com.vinfast.companion.map.model.MapLocation mapLocation) {
        int i;
        if (mapLocation != null) {
            this.pickUpLocation = mapLocation;
            java.util.ArrayList arrayList = (java.util.ArrayList) this._listItem.f();
            if (arrayList != null) {
                java.lang.String strD = mapLocation.d();
                com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_location");
                com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA2 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_header_location");
                java.lang.Integer numValueOf = java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.common_btn_edit);
                int i2 = com.vinfast.companion.services.R.color.white;
                if (strD == null || strD.length() == 0) {
                    i = com.vinfast.companion.services.R.color.secondary_blue;
                    numValueOf = null;
                } else {
                    i = i2;
                }
                if (itemCustomA != null) {
                    if (strD == null || strD.length() == 0) {
                        itemCustomA.o0(java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70402_select_location));
                        itemCustomA.m0((java.lang.String) null);
                    } else {
                        itemCustomA.o0((java.lang.Integer) null);
                        itemCustomA.m0(strD);
                        java.util.ArrayList arrayList2 = (java.util.ArrayList) this._listItemRideShareInfo.f();
                        if (arrayList2 != null) {
                            com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA3 = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList2, "tag_item_ride_share_from");
                            if (itemCustomA3 != null) {
                                itemCustomA3.W(java.lang.Integer.valueOf(i2));
                                itemCustomA3.Y(strD);
                            }
                            this._listItemRideShareInfo.n(arrayList2);
                        } else {
                            this.objectSaveData.put("tag_item_ride_share_from", mapLocation);
                        }
                    }
                    itemCustomA.n0(java.lang.Integer.valueOf(i));
                } else {
                    this.objectSaveData.put("tag_location", mapLocation);
                }
                if (itemCustomA2 != null) {
                    itemCustomA2.X(numValueOf);
                }
                this._listItem.n(arrayList);
            }
        }
    }

    public final void K0(com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem item) {
        kotlin.jvm.internal.Intrinsics.l(item, "item");
        java.util.List list = (java.util.List) this._listCarService.f();
        if (list != null) {
            java.util.ArrayList arrayList = new java.util.ArrayList();
            java.util.Iterator it = list.iterator();
            while (true) {
                if (!it.hasNext()) {
                    break;
                }
                java.lang.Object next = it.next();
                java.util.Map.Entry item2 = ((com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) next).getItem();
                java.lang.String str = item2 != null ? (java.lang.String) item2.getKey() : null;
                java.util.Map.Entry item3 = item.getItem();
                if (kotlin.jvm.internal.Intrinsics.g(str, item3 != null ? (java.lang.String) item3.getKey() : null)) {
                    arrayList.add(next);
                }
            }
            java.util.Iterator it2 = arrayList.iterator();
            while (it2.hasNext()) {
                ((com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) it2.next()).e(true);
            }
            java.lang.String str2 = this.oldServiceSelected;
            if (str2 != null) {
                java.util.ArrayList arrayList2 = new java.util.ArrayList();
                for (java.lang.Object obj : list) {
                    java.util.Map.Entry item4 = ((com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) obj).getItem();
                    if (kotlin.jvm.internal.Intrinsics.g(item4 != null ? (java.lang.String) item4.getKey() : null, str2)) {
                        arrayList2.add(obj);
                    }
                }
                java.util.Iterator it3 = arrayList2.iterator();
                while (it3.hasNext()) {
                    ((com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) it3.next()).e(false);
                }
            }
            java.util.Map.Entry item5 = item.getItem();
            this.oldServiceSelected = item5 != null ? (java.lang.String) item5.getKey() : null;
            this._listCarService.n(list);
        }
    }

    public final void N(boolean isChecked) {
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemRequestRideShare.f();
        if (itemCustom != null) {
            itemCustom.l0(isChecked);
            this._itemRequestRideShare.n(itemCustom);
        }
    }

    public final void O() {
        java.util.List list = (java.util.List) this._listCarService.f();
        if (list == null || this.listServiceEnableDropOff.isEmpty()) {
            return;
        }
        java.util.ArrayList arrayList = new java.util.ArrayList();
        for (java.lang.Object obj : list) {
            com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem rsaCarStatusItem = (com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem) obj;
            java.util.List list2 = this.listServiceEnableDropOff;
            java.util.Map.Entry item = rsaCarStatusItem.getItem();
            if (kotlin.collections.CollectionsKt.e0(list2, item != null ? (java.lang.String) item.getKey() : null) && rsaCarStatusItem.getIsSelected()) {
                arrayList.add(obj);
            }
        }
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustom = (com.vinfast.companion.core.base.ui.model.ItemCustom) this._itemDropOff.f();
        if (itemCustom != null) {
            itemCustom.Z(!arrayList.isEmpty());
            itemCustom.V(!arrayList.isEmpty());
            this._itemDropOff.n(itemCustom);
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:60:0x00cc, code lost:
    
        if (r6.rideShareToLocation != null) goto L63;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void P() {
        /*
            Method dump skipped, instruction units count: 230
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel.P():void");
    }

    public final void Q() {
        java.lang.String strD;
        java.util.ArrayList arrayList;
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA;
        if (this.objectSaveData.keySet().contains("tag_item_ride_share_from")) {
            timber.log.Timber.a.a("Update old data pickup location to ride share info", new java.lang.Object[0]);
            com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
            if (mapLocation == null || (strD = mapLocation.d()) == null || (arrayList = (java.util.ArrayList) this._listItemRideShareInfo.f()) == null || (itemCustomA = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_item_ride_share_from")) == null) {
                return;
            }
            itemCustomA.W(java.lang.Integer.valueOf(com.vinfast.companion.services.R.color.white));
            itemCustomA.Y(strD);
            this.objectSaveData.remove("tag_item_ride_share_from");
            this._listItemRideShareInfo.n(arrayList);
        }
    }

    public final void R() {
        java.lang.String strD;
        java.util.ArrayList arrayList;
        com.vinfast.companion.core.base.ui.model.ItemCustom itemCustomA;
        if (this.objectSaveData.keySet().contains("tag_location")) {
            timber.log.Timber.a.a("Update old data pickup location", new java.lang.Object[0]);
            com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
            if (mapLocation == null || (strD = mapLocation.d()) == null || (arrayList = (java.util.ArrayList) this._listItem.f()) == null || (itemCustomA = com.vinfast.companion.core.extensions.ObjectExtensionKt.a(arrayList, "tag_location")) == null) {
                return;
            }
            itemCustomA.o0((java.lang.Integer) null);
            itemCustomA.m0(strD);
            this.objectSaveData.remove("tag_location");
            this._listItem.n(arrayList);
        }
    }

    public final void S(android.content.Context context, boolean isEditLocation) {
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        java.lang.String strR = com.vinfast.companion.core.extensions.ContextExtensionKt.r(context, false, this.contactInfo, 1, (java.lang.Object) null);
        com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact = this.contactInfo;
        this.dataRideShareToEdit.n(new kotlin.Pair(new com.vinfast.companion.main.ui.rsa.global.makerequest.DataRideShareInfo(strR, contact != null ? contact.h() : null, this.passengersNumber, this.pickUpLocation, this.rideShareToLocation), java.lang.Boolean.valueOf(isEditLocation)));
    }

    public final com.vinfast.companion.map.model.MapLocation U(com.vinfast.companion.map.model.MapLocation deviceLocation) {
        com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
        if (mapLocation == null) {
            return deviceLocation == null ? com.vinfast.companion.map.MapLocaleHelper.a.g(this.buildConfigManager.c()) : deviceLocation;
        }
        return mapLocation;
    }

    public final void V() {
        java.util.Collection collection = (java.util.Collection) this._listCarService.f();
        if (collection == null || collection.isEmpty()) {
            io.reactivex.rxjava3.core.Observable observableDoOnError = this.repository.k().doOnNext(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$getCarStatusList$1
                /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
                public final void accept(retrofit2.Response response) {
                    java.util.Map map;
                    kotlin.jvm.internal.Intrinsics.l(response, "it");
                    com.vinfast.companion.core.base.BaseResponse baseResponse = (com.vinfast.companion.core.base.BaseResponse) response.a();
                    if (baseResponse == null || (map = (java.util.Map) baseResponse.a()) == null) {
                        return;
                    }
                    com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel gLRsaMakeRequestViewModel = this.a;
                    java.util.Set<java.util.Map.Entry> setEntrySet = map.entrySet();
                    java.util.ArrayList arrayList = new java.util.ArrayList(kotlin.collections.CollectionsKt.z(setEntrySet, 10));
                    for (java.util.Map.Entry entry : setEntrySet) {
                        com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem rsaCarStatusItem = new com.vinfast.companion.main.ui.rsa.request.RsaCarStatusItem();
                        rsaCarStatusItem.d(entry);
                        rsaCarStatusItem.e(false);
                        arrayList.add(rsaCarStatusItem);
                    }
                    gLRsaMakeRequestViewModel._listCarService.n(arrayList);
                }
            }).doOnError(new io.reactivex.rxjava3.functions.Consumer() { // from class: com.vinfast.companion.main.ui.rsa.global.makerequest.GLRsaMakeRequestViewModel$getCarStatusList$2
                /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
                public final void accept(java.lang.Throwable th) {
                    kotlin.jvm.internal.Intrinsics.l(th, "it");
                    timber.log.Timber.a.a("get Car status error: " + th.getMessage(), new java.lang.Object[0]);
                }
            });
            kotlin.jvm.internal.Intrinsics.k(observableDoOnError, "doOnError(...)");
            com.vinfast.companion.core.base.BaseViewModel.D(this, observableDoOnError, (com.vinfast.companion.core.base.ProgressType) null, (kotlin.jvm.functions.Function1) null, 6, (java.lang.Object) null);
        }
    }

    public final com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact Y() {
        if (this.contactInfo == null) {
            b0();
        }
        return this.contactInfo;
    }

    public final com.vinfast.companion.core.managers.MarketEnum Z() {
        return this.buildConfigManager.c();
    }

    /* JADX INFO: renamed from: a0, reason: from getter */
    public final com.vinfast.companion.core.extensions.SingleLiveData getDataRideShareToEdit() {
        return this.dataRideShareToEdit;
    }

    /* JADX INFO: renamed from: c0, reason: from getter */
    public final androidx.lifecycle.LiveData getItemDetail() {
        return this.itemDetail;
    }

    /* JADX INFO: renamed from: d0, reason: from getter */
    public final androidx.lifecycle.LiveData getItemDropOff() {
        return this.itemDropOff;
    }

    /* JADX INFO: renamed from: e0, reason: from getter */
    public final androidx.lifecycle.LiveData getItemRequestRideShare() {
        return this.itemRequestRideShare;
    }

    /* JADX INFO: renamed from: f0, reason: from getter */
    public final androidx.lifecycle.LiveData getListCarServiceType() {
        return this.listCarServiceType;
    }

    /* JADX INFO: renamed from: g0, reason: from getter */
    public final androidx.lifecycle.LiveData getListItem() {
        return this.listItem;
    }

    /* JADX INFO: renamed from: h0, reason: from getter */
    public final androidx.lifecycle.LiveData getListItemRideShareInfo() {
        return this.listItemRideShareInfo;
    }

    /* JADX INFO: renamed from: i0, reason: from getter */
    public final com.vinfast.companion.map.model.MapLocation getDropOffLocation() {
        return this.dropOffLocation;
    }

    /* JADX INFO: renamed from: j0, reason: from getter */
    public final com.vinfast.companion.core.extensions.SingleLiveData getMakeRequestResult() {
        return this.makeRequestResult;
    }

    /* JADX INFO: renamed from: k0, reason: from getter */
    public final com.vinfast.companion.map.model.MapLocation getPickUpLocation() {
        return this.pickUpLocation;
    }

    /* JADX INFO: renamed from: l0, reason: from getter */
    public final com.vinfast.companion.core.extensions.SingleLiveData getReceiveNotyCreated() {
        return this.receiveNotyCreated;
    }

    /* JADX INFO: renamed from: m0, reason: from getter */
    public final com.vinfast.companion.map.model.MapLocation getRideShareToLocation() {
        return this.rideShareToLocation;
    }

    /* JADX INFO: renamed from: o0, reason: from getter */
    public final androidx.lifecycle.LiveData getIsEnableSendButton() {
        return this.isEnableSendButton;
    }

    public final boolean p0() {
        return this.buildConfigManager.r();
    }

    public final boolean q0(com.vinfast.companion.map.model.MapLocation newLocation) {
        kotlin.jvm.internal.Intrinsics.l(newLocation, "newLocation");
        double dT = newLocation.t();
        com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
        if (!kotlin.jvm.internal.Intrinsics.a(dT, mapLocation != null ? java.lang.Double.valueOf(mapLocation.t()) : null)) {
            return true;
        }
        double dW = newLocation.w();
        com.vinfast.companion.map.model.MapLocation mapLocation2 = this.pickUpLocation;
        return !kotlin.jvm.internal.Intrinsics.a(dW, mapLocation2 != null ? java.lang.Double.valueOf(mapLocation2.w()) : null);
    }

    public final boolean r0() {
        return com.vinfast.companion.core.managers.BuildConfigManager.f(this.buildConfigManager, com.vinfast.companion.core.managers.MarketFeatures.RSA_RIDE_SHARE, (com.vinfast.companion.core.uiPrototype.base.VehicleType) null, 2, (java.lang.Object) null);
    }

    public final void w0(android.content.Context context) {
        com.vinfast.companion.authenticationkit.data.persistent.model.User user;
        java.lang.String strT;
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        int i = com.vinfast.companion.services.R.color.white_op_60;
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.lang.String strQ = com.vinfast.companion.core.extensions.ContextExtensionKt.q(context, s0(), this.contactInfo);
        if (strQ.length() == 0) {
            strQ = context.getString(com.vinfast.companion.services.R.string.common_value_unknown);
            kotlin.jvm.internal.Intrinsics.k(strQ, "getString(...)");
        }
        com.vinfast.companion.core.utils.ItemCustomUtils.Companion companion = com.vinfast.companion.core.utils.ItemCustomUtils.a;
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_item_ride_share_name", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.common_name_require), false, false, strQ, (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -10485806, 7, (java.lang.Object) null));
        int i2 = com.vinfast.companion.services.R.string.common_phone_number_required;
        com.vinfast.companion.core.extensions.validity.Validity validity = (com.vinfast.companion.core.extensions.validity.Validity) this.userManager.e0().f();
        java.lang.String string = null;
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_item_ride_share_phone", (java.lang.String) null, java.lang.Integer.valueOf(i2), false, false, (validity == null || (user = (com.vinfast.companion.authenticationkit.data.persistent.model.User) validity.a()) == null || (strT = user.t()) == null) ? null : com.vinfast.companion.core.extensions.StringExtensionKt.p(strT, this.buildConfigManager.c(), (com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat) null, 2, (java.lang.Object) null), (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -10485806, 7, (java.lang.Object) null));
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_item_ride_share_passenger", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70402_passengers_up_to), false, false, context.getString(com.vinfast.companion.services.R.string.CA70402_enter_passengers), (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, java.lang.Integer.valueOf(i), false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -35651630, 7, (java.lang.Object) null));
        int i5 = com.vinfast.companion.services.R.color.white;
        com.vinfast.companion.map.model.MapLocation mapLocation = this.pickUpLocation;
        java.lang.String strD = mapLocation != null ? mapLocation.d() : null;
        if (strD == null || strD.length() == 0) {
            string = context.getString(com.vinfast.companion.services.R.string.CA70402_select_location);
            i5 = i;
        } else {
            com.vinfast.companion.map.model.MapLocation mapLocation2 = this.pickUpLocation;
            if (mapLocation2 != null) {
                string = mapLocation2.d();
            }
        }
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_item_ride_share_from", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70421_from), false, false, string, (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, java.lang.Integer.valueOf(i5), false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -44040238, 7, (java.lang.Object) null));
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_item_ride_share_to", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.CA70421_to), false, false, context.getString(com.vinfast.companion.services.R.string.CA70402_select_location), (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 0, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, java.lang.Integer.valueOf(i), false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -35651630, 7, (java.lang.Object) null));
        this._listItemRideShareInfo.n(arrayList);
    }

    public final void y0(android.content.Context context) {
        kotlin.jvm.internal.Intrinsics.l(context, "context");
        java.util.ArrayList arrayList = new java.util.ArrayList();
        java.lang.String string = context.getString(com.vinfast.companion.services.R.string.common_unknown);
        kotlin.jvm.internal.Intrinsics.k(string, "getString(...)");
        java.lang.String string2 = context.getString(com.vinfast.companion.services.R.string.common_contact_require);
        kotlin.jvm.internal.Intrinsics.k(string2, "getString(...)");
        arrayList.add(new com.vinfast.companion.core.base.ui.model.ItemHeader(string2, 0, false, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.common_btn_edit), (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, "tag_header_contact", 114, (kotlin.jvm.internal.DefaultConstructorMarker) null));
        if (this.contactInfo == null) {
            b0();
        }
        java.lang.String strQ = com.vinfast.companion.core.extensions.ContextExtensionKt.q(context, s0(), this.contactInfo);
        java.lang.String str = strQ.length() == 0 ? string : strQ;
        com.vinfast.companion.core.utils.ItemCustomUtils.Companion companion = com.vinfast.companion.core.utils.ItemCustomUtils.a;
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_user_name", (java.lang.String) null, java.lang.Integer.valueOf(com.vinfast.companion.services.R.string.common_name), false, false, str, (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 101, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, (java.lang.Integer) null, (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -2170926, 7, (java.lang.Object) null));
        int i = com.vinfast.companion.services.R.string.CA70402_best_contact_number;
        int i2 = com.vinfast.companion.services.R.color.white;
        com.vinfast.companion.core.base.ui.widget.dialog.editcontact.Contact contact = this.contactInfo;
        java.lang.String strP = com.vinfast.companion.core.extensions.StringExtensionKt.p(contact != null ? contact.h() : null, this.buildConfigManager.c(), (com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat) null, 2, (java.lang.Object) null);
        if (strP == null || strP.length() == 0) {
            i = com.vinfast.companion.services.R.string.common_add_phone_number;
            i2 = com.vinfast.companion.services.R.color.colorButtonBlue;
        }
        arrayList.add(com.vinfast.companion.core.utils.ItemCustomUtils.Companion.b(companion, "tag_user_phone_number", (java.lang.String) null, java.lang.Integer.valueOf(i), false, false, strP, (java.lang.Integer) null, (android.text.SpannableString) null, false, false, 0, 0, 0, 103, false, false, false, false, false, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, java.lang.Integer.valueOf(i2), (java.lang.Integer) null, false, (java.lang.Integer) null, (java.lang.Integer) null, (java.lang.Integer) null, false, false, false, false, (java.lang.Integer) null, -18898990, 7, (java.lang.Object) null));
        java.lang.String string3 = context.getString(com.vinfast.companion.services.R.string.CA70402_pickup_location_required);
        kotlin.jvm.internal.Intrinsics.k(string3, "getString(...)");
        arrayList.add(new com.vinfast.companion.core.base.ui.model.ItemHeader(string3, 0, false, (java.lang.Integer) null, (java.lang.String) null, (java.lang.Integer) null, (java.lang.Integer) null, "tag_header_location", 126, (kotlin.jvm.internal.DefaultConstructorMarker) null));
        java.lang.String string4 = context.getString(com.vinfast.companion.services.R.string.CA70402_select_location);
        kotlin.jvm.internal.Intrinsics.k(string4, "getString(...)");
        arrayList.add(x0(string4));
        this._listItem.n(arrayList);
    }

    public final void z0() {
        this.canUpdateVehicleLocation = false;
    }
}
