801 lines
58 KiB
Java
801 lines
58 KiB
Java
package com.google.maps.android.compose;
|
||
|
||
import android.content.ComponentCallbacks;
|
||
import android.content.Context;
|
||
import android.content.res.Configuration;
|
||
import android.os.Bundle;
|
||
import androidx.compose.foundation.layout.PaddingValues;
|
||
import androidx.compose.runtime.Applier;
|
||
import androidx.compose.runtime.ComposablesKt;
|
||
import androidx.compose.runtime.Composer;
|
||
import androidx.compose.runtime.ComposerKt;
|
||
import androidx.compose.runtime.Composition;
|
||
import androidx.compose.runtime.CompositionContext;
|
||
import androidx.compose.runtime.CompositionKt;
|
||
import androidx.compose.runtime.CompositionLocalKt;
|
||
import androidx.compose.runtime.DisposableEffectResult;
|
||
import androidx.compose.runtime.DisposableEffectScope;
|
||
import androidx.compose.runtime.EffectsKt;
|
||
import androidx.compose.runtime.MutableState;
|
||
import androidx.compose.runtime.ProvidableCompositionLocal;
|
||
import androidx.compose.runtime.ProvidedValue;
|
||
import androidx.compose.runtime.RecomposeScopeImplKt;
|
||
import androidx.compose.runtime.ScopeUpdateScope;
|
||
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
||
import androidx.compose.runtime.State;
|
||
import androidx.compose.runtime.Updater;
|
||
import androidx.compose.runtime.internal.ComposableLambda;
|
||
import androidx.compose.runtime.internal.ComposableLambdaKt;
|
||
import androidx.compose.runtime.saveable.RememberSaveableKt;
|
||
import androidx.compose.runtime.saveable.Saver;
|
||
import androidx.compose.ui.Modifier;
|
||
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
|
||
import androidx.compose.ui.platform.CompositionLocalsKt;
|
||
import androidx.compose.ui.unit.Density;
|
||
import androidx.compose.ui.unit.LayoutDirection;
|
||
import androidx.lifecycle.Lifecycle;
|
||
import androidx.lifecycle.LifecycleEventObserver;
|
||
import androidx.lifecycle.LifecycleOwner;
|
||
import com.google.android.gms.maps.GoogleMap;
|
||
import com.google.android.gms.maps.GoogleMapOptions;
|
||
import com.google.android.gms.maps.LocationSource;
|
||
import com.google.android.gms.maps.MapView;
|
||
import com.google.maps.android.compose.CameraPositionStateKt;
|
||
import com.google.maps.android.compose.MapUpdaterKt;
|
||
import kotlin.KotlinNothingValueException;
|
||
import kotlin.Metadata;
|
||
import kotlin.ResultKt;
|
||
import kotlin.Unit;
|
||
import kotlin.coroutines.Continuation;
|
||
import kotlin.coroutines.SafeContinuation;
|
||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||
import kotlin.coroutines.jvm.internal.DebugProbesKt;
|
||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||
import kotlin.jvm.functions.Function0;
|
||
import kotlin.jvm.functions.Function1;
|
||
import kotlin.jvm.functions.Function2;
|
||
import kotlin.jvm.internal.InlineMarker;
|
||
import kotlin.jvm.internal.Intrinsics;
|
||
import kotlinx.coroutines.CoroutineScope;
|
||
import kotlinx.coroutines.DelayKt;
|
||
|
||
/* JADX INFO: compiled from: GoogleMap.kt */
|
||
/* JADX INFO: loaded from: classes2.dex */
|
||
@Metadata(d1 = {"\u0000 \u0001\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\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\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\u001a\u0099\u0002\u0010\u0000\u001a\u00020\u00012\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\t2\u000e\b\u0002\u0010\n\u001a\b\u0012\u0004\u0012\u00020\f0\u000b2\b\b\u0002\u0010\r\u001a\u00020\u000e2\n\b\u0002\u0010\u000f\u001a\u0004\u0018\u00010\u00102\b\b\u0002\u0010\u0011\u001a\u00020\u00122\b\b\u0002\u0010\u0013\u001a\u00020\u00142\u0016\b\u0002\u0010\u0015\u001a\u0010\u0012\u0004\u0012\u00020\u0017\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u00162\u0016\b\u0002\u0010\u0018\u001a\u0010\u0012\u0004\u0012\u00020\u0017\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u00162\u0010\b\u0002\u0010\u0019\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u000b2\u0010\b\u0002\u0010\u001a\u001a\n\u0012\u0004\u0012\u00020\u0003\u0018\u00010\u000b2\u0016\b\u0002\u0010\u001b\u001a\u0010\u0012\u0004\u0012\u00020\u001c\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u00162\u0016\b\u0002\u0010\u001d\u001a\u0010\u0012\u0004\u0012\u00020\u001e\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u00162\b\b\u0002\u0010\u001f\u001a\u00020 2\u0018\b\u0002\u0010!\u001a\u0012\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"¢\u0006\u0002\b#H\u0007¢\u0006\u0002\u0010$\u001a\u001c\u0010%\u001a\u00020\u00012\f\u0010&\u001a\b\u0012\u0004\u0012\u00020'0\u000bH\u0080H¢\u0006\u0002\u0010(\u001a7\u0010)\u001a\u00020'*\u00020*2\u0006\u0010+\u001a\u00020,2\u0006\u0010-\u001a\u00020.2\u0013\b\b\u0010!\u001a\r\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"H\u0082H¢\u0006\u0002\u0010/\u001a\u0015\u00100\u001a\u00020\u00012\u0006\u00101\u001a\u00020*H\u0003¢\u0006\u0002\u00102\u001a\u001a\u00103\u001a\u000204*\u00020*2\f\u00105\u001a\b\u0012\u0004\u0012\u00020706H\u0002\u001a\f\u00108\u001a\u000209*\u00020*H\u0002\u001a`\u0010;\u001a\u001c\u0012\u0004\u0012\u00020\u00010\u000bj\r\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"¢\u0006\u0002\b\"2\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\u000e\b\u0002\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00010\u000b2\u0013\b\u0002\u0010!\u001a\r\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"H\u0007¢\u0006\u0002\u0010<* \u0010:\"\r\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"2\r\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"¨\u0006=²\u0006\f\u0010>\u001a\u0004\u0018\u00010\tX\u008a\u0084\u0002²\u0006\f\u0010?\u001a\u0004\u0018\u00010\u0010X\u008a\u0084\u0002²\u0006\n\u0010@\u001a\u00020\u0007X\u008a\u0084\u0002²\u0006\n\u0010A\u001a\u00020 X\u008a\u0084\u0002²\u0006\n\u0010B\u001a\u00020\u0012X\u008a\u0084\u0002²\u0006\n\u0010C\u001a\u00020\u000eX\u008a\u0084\u0002²\u0006\u001a\u0010D\u001a\u0012\u0012\u0004\u0012\u00020\u00010\u000b¢\u0006\u0002\b\"¢\u0006\u0002\b#X\u008a\u0084\u0002²\u0006\n\u0010\u0011\u001a\u00020\u0012X\u008a\u0084\u0002²\u0006\n\u0010E\u001a\u00020\u000eX\u008a\u0084\u0002²\u0006\n\u0010F\u001a\u00020\u0003X\u008a\u0084\u0002"}, d2 = {"GoogleMap", "", "mergeDescendants", "", "modifier", "Landroidx/compose/ui/Modifier;", "cameraPositionState", "Lcom/google/maps/android/compose/CameraPositionState;", "contentDescription", "", "googleMapOptionsFactory", "Lkotlin/Function0;", "Lcom/google/android/gms/maps/GoogleMapOptions;", "properties", "Lcom/google/maps/android/compose/MapProperties;", "locationSource", "Lcom/google/android/gms/maps/LocationSource;", "uiSettings", "Lcom/google/maps/android/compose/MapUiSettings;", "indoorStateChangeListener", "Lcom/google/maps/android/compose/IndoorStateChangeListener;", "onMapClick", "Lkotlin/Function1;", "Lcom/google/android/gms/maps/model/LatLng;", "onMapLongClick", "onMapLoaded", "onMyLocationButtonClick", "onMyLocationClick", "Landroid/location/Location;", "onPOIClick", "Lcom/google/android/gms/maps/model/PointOfInterest;", "contentPadding", "Landroidx/compose/foundation/layout/PaddingValues;", "content", "Landroidx/compose/runtime/Composable;", "Lcom/google/maps/android/compose/GoogleMapComposable;", "(ZLandroidx/compose/ui/Modifier;Lcom/google/maps/android/compose/CameraPositionState;Ljava/lang/String;Lkotlin/jvm/functions/Function0;Lcom/google/maps/android/compose/MapProperties;Lcom/google/android/gms/maps/LocationSource;Lcom/google/maps/android/compose/MapUiSettings;Lcom/google/maps/android/compose/IndoorStateChangeListener;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;III)V", "disposingComposition", "factory", "Landroidx/compose/runtime/Composition;", "(Lkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "newComposition", "Lcom/google/android/gms/maps/MapView;", "parent", "Landroidx/compose/runtime/CompositionContext;", "mapClickListeners", "Lcom/google/maps/android/compose/MapClickListeners;", "(Lcom/google/android/gms/maps/MapView;Landroidx/compose/runtime/CompositionContext;Lcom/google/maps/android/compose/MapClickListeners;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "MapLifecycle", "mapView", "(Lcom/google/android/gms/maps/MapView;Landroidx/compose/runtime/Composer;I)V", "lifecycleObserver", "Landroidx/lifecycle/LifecycleEventObserver;", "previousState", "Landroidx/compose/runtime/MutableState;", "Landroidx/lifecycle/Lifecycle$Event;", "componentCallbacks", "Landroid/content/ComponentCallbacks;", "GoogleMapFactory", "googleMapFactory", "(Landroidx/compose/ui/Modifier;Lcom/google/maps/android/compose/CameraPositionState;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)Lkotlin/jvm/functions/Function2;", "maps-compose_release", "currentContentDescription", "currentLocationSource", "currentCameraPositionState", "currentContentPadding", "currentUiSettings", "currentMapProperties", "currentContent", "mapProperties", "mapVisible"}, k = 2, mv = {2, 0, 0}, xi = 48)
|
||
public final class GoogleMapKt {
|
||
|
||
/* JADX INFO: compiled from: GoogleMap.kt */
|
||
@Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
|
||
public /* synthetic */ class WhenMappings {
|
||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||
|
||
static {
|
||
int[] iArr = new int[Lifecycle.Event.values().length];
|
||
try {
|
||
iArr[Lifecycle.Event.ON_CREATE.ordinal()] = 1;
|
||
} catch (NoSuchFieldError unused) {
|
||
}
|
||
try {
|
||
iArr[Lifecycle.Event.ON_START.ordinal()] = 2;
|
||
} catch (NoSuchFieldError unused2) {
|
||
}
|
||
try {
|
||
iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 3;
|
||
} catch (NoSuchFieldError unused3) {
|
||
}
|
||
try {
|
||
iArr[Lifecycle.Event.ON_PAUSE.ordinal()] = 4;
|
||
} catch (NoSuchFieldError unused4) {
|
||
}
|
||
try {
|
||
iArr[Lifecycle.Event.ON_STOP.ordinal()] = 5;
|
||
} catch (NoSuchFieldError unused5) {
|
||
}
|
||
try {
|
||
iArr[Lifecycle.Event.ON_DESTROY.ordinal()] = 6;
|
||
} catch (NoSuchFieldError unused6) {
|
||
}
|
||
$EnumSwitchMapping$0 = iArr;
|
||
}
|
||
}
|
||
|
||
/* JADX INFO: renamed from: com.google.maps.android.compose.GoogleMapKt$disposingComposition$1, reason: invalid class name and case insensitive filesystem */
|
||
/* JADX INFO: compiled from: GoogleMap.kt */
|
||
@Metadata(k = 3, mv = {2, 0, 0}, xi = 176)
|
||
@DebugMetadata(c = "com.google.maps.android.compose.GoogleMapKt", f = "GoogleMap.kt", i = {0}, l = {153}, m = "disposingComposition", n = {"composition"}, s = {"L$0"})
|
||
static final class C06001 extends ContinuationImpl {
|
||
Object L$0;
|
||
int label;
|
||
/* synthetic */ Object result;
|
||
|
||
C06001(Continuation<? super C06001> continuation) {
|
||
super(continuation);
|
||
}
|
||
|
||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||
public final Object invokeSuspend(Object obj) {
|
||
this.result = obj;
|
||
this.label |= Integer.MIN_VALUE;
|
||
return GoogleMapKt.disposingComposition(null, this);
|
||
}
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final Unit GoogleMap$lambda$1(boolean z, Modifier modifier, CameraPositionState cameraPositionState, String str, Function0 function0, MapProperties mapProperties, LocationSource locationSource, MapUiSettings mapUiSettings, IndoorStateChangeListener indoorStateChangeListener, Function1 function1, Function1 function12, Function0 function02, Function0 function03, Function1 function13, Function1 function14, PaddingValues paddingValues, Function2 function2, int i, int i2, int i3, Composer composer, int i4) {
|
||
GoogleMap(z, modifier, cameraPositionState, str, function0, mapProperties, locationSource, mapUiSettings, indoorStateChangeListener, function1, function12, function02, function03, function13, function14, paddingValues, function2, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1), RecomposeScopeImplKt.updateChangedFlags(i2), i3);
|
||
return Unit.INSTANCE;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final Unit GoogleMap$lambda$13(boolean z, Modifier modifier, CameraPositionState cameraPositionState, String str, Function0 function0, MapProperties mapProperties, LocationSource locationSource, MapUiSettings mapUiSettings, IndoorStateChangeListener indoorStateChangeListener, Function1 function1, Function1 function12, Function0 function02, Function0 function03, Function1 function13, Function1 function14, PaddingValues paddingValues, Function2 function2, int i, int i2, int i3, Composer composer, int i4) {
|
||
GoogleMap(z, modifier, cameraPositionState, str, function0, mapProperties, locationSource, mapUiSettings, indoorStateChangeListener, function1, function12, function02, function03, function13, function14, paddingValues, function2, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1), RecomposeScopeImplKt.updateChangedFlags(i2), i3);
|
||
return Unit.INSTANCE;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final MapView GoogleMap$lambda$3(MapView mapView, Context it) {
|
||
Intrinsics.checkNotNullParameter(mapView, "$mapView");
|
||
Intrinsics.checkNotNullParameter(it, "it");
|
||
return mapView;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final Unit MapLifecycle$lambda$20(MapView mapView, int i, Composer composer, int i2) {
|
||
Intrinsics.checkNotNullParameter(mapView, "$mapView");
|
||
MapLifecycle(mapView, composer, RecomposeScopeImplKt.updateChangedFlags(i | 1));
|
||
return Unit.INSTANCE;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final GoogleMapOptions GoogleMap$lambda$0() {
|
||
return new GoogleMapOptions();
|
||
}
|
||
|
||
/* JADX WARN: Removed duplicated region for block: B:104:0x0147 */
|
||
/* JADX WARN: Removed duplicated region for block: B:105:0x014e */
|
||
/* JADX WARN: Removed duplicated region for block: B:115:0x0169 */
|
||
/* JADX WARN: Removed duplicated region for block: B:116:0x016c */
|
||
/* JADX WARN: Removed duplicated region for block: B:126:0x018a */
|
||
/* JADX WARN: Removed duplicated region for block: B:127:0x018d */
|
||
/* JADX WARN: Removed duplicated region for block: B:137:0x01a9 */
|
||
/* JADX WARN: Removed duplicated region for block: B:138:0x01ac */
|
||
/* JADX WARN: Removed duplicated region for block: B:148:0x01c6 */
|
||
/* JADX WARN: Removed duplicated region for block: B:149:0x01c9 */
|
||
/* JADX WARN: Removed duplicated region for block: B:159:0x01eb */
|
||
/* JADX WARN: Removed duplicated region for block: B:160:0x01f2 */
|
||
/* JADX WARN: Removed duplicated region for block: B:169:0x020b */
|
||
/* JADX WARN: Removed duplicated region for block: B:170:0x0212 */
|
||
/* JADX WARN: Removed duplicated region for block: B:179:0x022d */
|
||
/* JADX WARN: Removed duplicated region for block: B:187:0x0269 */
|
||
/* JADX WARN: Removed duplicated region for block: B:196:0x029f */
|
||
/* JADX WARN: Removed duplicated region for block: B:197:0x02a1 */
|
||
/* JADX WARN: Removed duplicated region for block: B:198:0x02a4 */
|
||
/* JADX WARN: Removed duplicated region for block: B:200:0x02a8 */
|
||
/* JADX WARN: Removed duplicated region for block: B:203:0x02b1 */
|
||
/* JADX WARN: Removed duplicated region for block: B:204:0x02fa */
|
||
/* JADX WARN: Removed duplicated region for block: B:207:0x030e */
|
||
/* JADX WARN: Removed duplicated region for block: B:208:0x0310 */
|
||
/* JADX WARN: Removed duplicated region for block: B:210:0x0314 */
|
||
/* JADX WARN: Removed duplicated region for block: B:211:0x031a */
|
||
/* JADX WARN: Removed duplicated region for block: B:213:0x031d */
|
||
/* JADX WARN: Removed duplicated region for block: B:215:0x0324 */
|
||
/* JADX WARN: Removed duplicated region for block: B:216:0x0326 */
|
||
/* JADX WARN: Removed duplicated region for block: B:218:0x032a */
|
||
/* JADX WARN: Removed duplicated region for block: B:219:0x032f */
|
||
/* JADX WARN: Removed duplicated region for block: B:221:0x0333 */
|
||
/* JADX WARN: Removed duplicated region for block: B:222:0x0338 */
|
||
/* JADX WARN: Removed duplicated region for block: B:224:0x033c */
|
||
/* JADX WARN: Removed duplicated region for block: B:225:0x033e */
|
||
/* JADX WARN: Removed duplicated region for block: B:227:0x0342 */
|
||
/* JADX WARN: Removed duplicated region for block: B:228:0x0344 */
|
||
/* JADX WARN: Removed duplicated region for block: B:230:0x0348 */
|
||
/* JADX WARN: Removed duplicated region for block: B:231:0x034b */
|
||
/* JADX WARN: Removed duplicated region for block: B:233:0x034f */
|
||
/* JADX WARN: Removed duplicated region for block: B:234:0x0352 */
|
||
/* JADX WARN: Removed duplicated region for block: B:236:0x0356 */
|
||
/* JADX WARN: Removed duplicated region for block: B:237:0x0359 */
|
||
/* JADX WARN: Removed duplicated region for block: B:240:0x035e */
|
||
/* JADX WARN: Removed duplicated region for block: B:242:0x0362 */
|
||
/* JADX WARN: Removed duplicated region for block: B:243:0x0367 */
|
||
/* JADX WARN: Removed duplicated region for block: B:245:0x036b */
|
||
/* JADX WARN: Removed duplicated region for block: B:246:0x037f */
|
||
/* JADX WARN: Removed duplicated region for block: B:250:0x03bc */
|
||
/* JADX WARN: Removed duplicated region for block: B:254:0x03f3 */
|
||
/* JADX WARN: Removed duplicated region for block: B:263:0x0533 */
|
||
/* JADX WARN: Removed duplicated region for block: B:266:? A[RETURN, SYNTHETIC] */
|
||
/* JADX WARN: Removed duplicated region for block: B:26:0x004e */
|
||
/* JADX WARN: Removed duplicated region for block: B:34:0x0064 */
|
||
/* JADX WARN: Removed duplicated region for block: B:37:0x006e */
|
||
/* JADX WARN: Removed duplicated region for block: B:38:0x0071 */
|
||
/* JADX WARN: Removed duplicated region for block: B:48:0x008f */
|
||
/* JADX WARN: Removed duplicated region for block: B:49:0x0094 */
|
||
/* JADX WARN: Removed duplicated region for block: B:58:0x00b0 */
|
||
/* JADX WARN: Removed duplicated region for block: B:59:0x00b7 */
|
||
/* JADX WARN: Removed duplicated region for block: B:68:0x00d0 */
|
||
/* JADX WARN: Removed duplicated region for block: B:71:0x00d8 */
|
||
/* JADX WARN: Removed duplicated region for block: B:72:0x00dd */
|
||
/* JADX WARN: Removed duplicated region for block: B:82:0x00fd */
|
||
/* JADX WARN: Removed duplicated region for block: B:83:0x0102 */
|
||
/* JADX WARN: Removed duplicated region for block: B:93:0x0122 */
|
||
/* JADX WARN: Removed duplicated region for block: B:94:0x0127 */
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||
*/
|
||
public static final void GoogleMap(boolean r39, androidx.compose.ui.Modifier r40, com.google.maps.android.compose.CameraPositionState r41, java.lang.String r42, kotlin.jvm.functions.Function0<com.google.android.gms.maps.GoogleMapOptions> r43, com.google.maps.android.compose.MapProperties r44, com.google.android.gms.maps.LocationSource r45, com.google.maps.android.compose.MapUiSettings r46, com.google.maps.android.compose.IndoorStateChangeListener r47, kotlin.jvm.functions.Function1<? super com.google.android.gms.maps.model.LatLng, kotlin.Unit> r48, kotlin.jvm.functions.Function1<? super com.google.android.gms.maps.model.LatLng, kotlin.Unit> r49, kotlin.jvm.functions.Function0<kotlin.Unit> r50, kotlin.jvm.functions.Function0<java.lang.Boolean> r51, kotlin.jvm.functions.Function1<? super android.location.Location, kotlin.Unit> r52, kotlin.jvm.functions.Function1<? super com.google.android.gms.maps.model.PointOfInterest, kotlin.Unit> r53, androidx.compose.foundation.layout.PaddingValues r54, kotlin.jvm.functions.Function2<? super androidx.compose.runtime.Composer, ? super java.lang.Integer, kotlin.Unit> r55, androidx.compose.runtime.Composer r56, final int r57, final int r58, final int r59) {
|
||
/*
|
||
Method dump skipped, instruction units count: 1359
|
||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.google.maps.android.compose.GoogleMapKt.GoogleMap(boolean, androidx.compose.ui.Modifier, com.google.maps.android.compose.CameraPositionState, java.lang.String, kotlin.jvm.functions.Function0, com.google.maps.android.compose.MapProperties, com.google.android.gms.maps.LocationSource, com.google.maps.android.compose.MapUiSettings, com.google.maps.android.compose.IndoorStateChangeListener, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function0, kotlin.jvm.functions.Function0, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1, androidx.compose.foundation.layout.PaddingValues, kotlin.jvm.functions.Function2, androidx.compose.runtime.Composer, int, int, int):void");
|
||
}
|
||
|
||
/* JADX INFO: renamed from: com.google.maps.android.compose.GoogleMapKt$GoogleMap$4, reason: invalid class name */
|
||
/* JADX INFO: compiled from: GoogleMap.kt */
|
||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 0, 0}, xi = 48)
|
||
@DebugMetadata(c = "com.google.maps.android.compose.GoogleMapKt$GoogleMap$4", f = "GoogleMap.kt", i = {0, 0, 0, 0, 1}, l = {277, 289}, m = "invokeSuspend", n = {"$this$newComposition$iv", "content$iv", "$completion$iv", "$this$awaitMap$iv$iv", "composition$iv"}, s = {"L$2", "L$3", "L$4", "L$5", "L$0"})
|
||
static final class AnonymousClass4 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||
final /* synthetic */ State<CameraPositionState> $currentCameraPositionState$delegate;
|
||
final /* synthetic */ State<Function2<Composer, Integer, Unit>> $currentContent$delegate;
|
||
final /* synthetic */ State<String> $currentContentDescription$delegate;
|
||
final /* synthetic */ State<PaddingValues> $currentContentPadding$delegate;
|
||
final /* synthetic */ State<LocationSource> $currentLocationSource$delegate;
|
||
final /* synthetic */ State<MapProperties> $currentMapProperties$delegate;
|
||
final /* synthetic */ State<MapUiSettings> $currentUiSettings$delegate;
|
||
final /* synthetic */ MapClickListeners $mapClickListeners;
|
||
final /* synthetic */ MapView $mapView;
|
||
final /* synthetic */ boolean $mergeDescendants;
|
||
final /* synthetic */ CompositionContext $parentComposition;
|
||
Object L$0;
|
||
Object L$1;
|
||
Object L$2;
|
||
Object L$3;
|
||
Object L$4;
|
||
Object L$5;
|
||
int label;
|
||
|
||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
/* JADX WARN: Multi-variable type inference failed */
|
||
AnonymousClass4(MapView mapView, CompositionContext compositionContext, MapClickListeners mapClickListeners, boolean z, State<String> state, State<CameraPositionState> state2, State<? extends PaddingValues> state3, State<? extends LocationSource> state4, State<MapProperties> state5, State<MapUiSettings> state6, State<? extends Function2<? super Composer, ? super Integer, Unit>> state7, Continuation<? super AnonymousClass4> continuation) {
|
||
super(2, continuation);
|
||
this.$mapView = mapView;
|
||
this.$parentComposition = compositionContext;
|
||
this.$mapClickListeners = mapClickListeners;
|
||
this.$mergeDescendants = z;
|
||
this.$currentContentDescription$delegate = state;
|
||
this.$currentCameraPositionState$delegate = state2;
|
||
this.$currentContentPadding$delegate = state3;
|
||
this.$currentLocationSource$delegate = state4;
|
||
this.$currentMapProperties$delegate = state5;
|
||
this.$currentUiSettings$delegate = state6;
|
||
this.$currentContent$delegate = state7;
|
||
}
|
||
|
||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||
return new AnonymousClass4(this.$mapView, this.$parentComposition, this.$mapClickListeners, this.$mergeDescendants, this.$currentContentDescription$delegate, this.$currentCameraPositionState$delegate, this.$currentContentPadding$delegate, this.$currentLocationSource$delegate, this.$currentMapProperties$delegate, this.$currentUiSettings$delegate, this.$currentContent$delegate, continuation);
|
||
}
|
||
|
||
@Override // kotlin.jvm.functions.Function2
|
||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||
return ((AnonymousClass4) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||
}
|
||
|
||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||
public final Object invokeSuspend(Object obj) throws Throwable {
|
||
CompositionContext compositionContext;
|
||
MapClickListeners mapClickListeners;
|
||
Object orThrow;
|
||
MapView mapView;
|
||
Function2<? super Composer, ? super Integer, Unit> function2;
|
||
Composition Composition;
|
||
Composition composition;
|
||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||
int i = this.label;
|
||
try {
|
||
if (i == 0) {
|
||
ResultKt.throwOnFailure(obj);
|
||
MapView mapView2 = this.$mapView;
|
||
compositionContext = this.$parentComposition;
|
||
mapClickListeners = this.$mapClickListeners;
|
||
final boolean z = this.$mergeDescendants;
|
||
final State<String> state = this.$currentContentDescription$delegate;
|
||
final State<CameraPositionState> state2 = this.$currentCameraPositionState$delegate;
|
||
final State<PaddingValues> state3 = this.$currentContentPadding$delegate;
|
||
final State<LocationSource> state4 = this.$currentLocationSource$delegate;
|
||
final State<MapProperties> state5 = this.$currentMapProperties$delegate;
|
||
final State<MapUiSettings> state6 = this.$currentUiSettings$delegate;
|
||
final State<Function2<Composer, Integer, Unit>> state7 = this.$currentContent$delegate;
|
||
ComposableLambda composableLambdaComposableLambdaInstance = ComposableLambdaKt.composableLambdaInstance(-177996990, true, new Function2<Composer, Integer, Unit>() { // from class: com.google.maps.android.compose.GoogleMapKt$GoogleMap$4$1$1
|
||
@Override // kotlin.jvm.functions.Function2
|
||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer, Integer num) {
|
||
invoke(composer, num.intValue());
|
||
return Unit.INSTANCE;
|
||
}
|
||
|
||
public final void invoke(Composer composer, int i2) {
|
||
if ((i2 & 11) != 2 || !composer.getSkipping()) {
|
||
boolean z2 = z;
|
||
String strGoogleMap$lambda$6 = GoogleMapKt.GoogleMap$lambda$6(state);
|
||
CameraPositionState cameraPositionStateGoogleMap$lambda$8 = GoogleMapKt.GoogleMap$lambda$8(state2);
|
||
PaddingValues paddingValuesGoogleMap$lambda$9 = GoogleMapKt.GoogleMap$lambda$9(state3);
|
||
LocationSource locationSourceGoogleMap$lambda$7 = GoogleMapKt.GoogleMap$lambda$7(state4);
|
||
MapProperties mapPropertiesGoogleMap$lambda$11 = GoogleMapKt.GoogleMap$lambda$11(state5);
|
||
MapUiSettings mapUiSettingsGoogleMap$lambda$10 = GoogleMapKt.GoogleMap$lambda$10(state6);
|
||
composer.startReplaceableGroup(1782787885);
|
||
Applier<?> applier = composer.getApplier();
|
||
Intrinsics.checkNotNull(applier, "null cannot be cast to non-null type com.google.maps.android.compose.MapApplier");
|
||
GoogleMap map = ((MapApplier) applier).getMap();
|
||
Applier<?> applier2 = composer.getApplier();
|
||
Intrinsics.checkNotNull(applier2, "null cannot be cast to non-null type com.google.maps.android.compose.MapApplier");
|
||
MapView mapView3 = ((MapApplier) applier2).getMapView();
|
||
if (z2) {
|
||
mapView3.setImportantForAccessibility(4);
|
||
}
|
||
ProvidableCompositionLocal<Density> localDensity = CompositionLocalsKt.getLocalDensity();
|
||
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
||
Object objConsume = composer.consume(localDensity);
|
||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||
Density density = (Density) objConsume;
|
||
ProvidableCompositionLocal<LayoutDirection> localLayoutDirection = CompositionLocalsKt.getLocalLayoutDirection();
|
||
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
||
Object objConsume2 = composer.consume(localLayoutDirection);
|
||
ComposerKt.sourceInformationMarkerEnd(composer);
|
||
LayoutDirection layoutDirection = (LayoutDirection) objConsume2;
|
||
MapUpdaterKt.AnonymousClass1 anonymousClass1 = new MapUpdaterKt.AnonymousClass1(map, cameraPositionStateGoogleMap$lambda$8, strGoogleMap$lambda$6, density, layoutDirection);
|
||
composer.startReplaceableGroup(1886828752);
|
||
ComposerKt.sourceInformation(composer, "CC(ComposeNode):Composables.kt#9igjgp");
|
||
if (!(composer.getApplier() instanceof MapApplier)) {
|
||
ComposablesKt.invalidApplier();
|
||
}
|
||
composer.startNode();
|
||
if (composer.getInserting()) {
|
||
composer.createNode(new MapUpdaterKt$MapUpdater$$inlined$ComposeNode$1(anonymousClass1));
|
||
} else {
|
||
composer.useNode();
|
||
}
|
||
Composer composerM3820constructorimpl = Updater.m3820constructorimpl(composer);
|
||
Updater.m3830updateimpl(composerM3820constructorimpl, density, MapUpdaterKt$MapUpdater$2$1.INSTANCE);
|
||
Updater.m3830updateimpl(composerM3820constructorimpl, layoutDirection, MapUpdaterKt$MapUpdater$2$2.INSTANCE);
|
||
Updater.m3830updateimpl(composerM3820constructorimpl, strGoogleMap$lambda$6, MapUpdaterKt$MapUpdater$2$3.INSTANCE);
|
||
Updater.m3827setimpl(composerM3820constructorimpl, locationSourceGoogleMap$lambda$7, new MapUpdaterKt$MapUpdater$2$4(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapPropertiesGoogleMap$lambda$11.getIsBuildingEnabled()), new MapUpdaterKt$MapUpdater$2$5(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapPropertiesGoogleMap$lambda$11.getIsIndoorEnabled()), new MapUpdaterKt$MapUpdater$2$6(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapPropertiesGoogleMap$lambda$11.getIsMyLocationEnabled()), new MapUpdaterKt$MapUpdater$2$7(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapPropertiesGoogleMap$lambda$11.getIsTrafficEnabled()), new MapUpdaterKt$MapUpdater$2$8(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, mapPropertiesGoogleMap$lambda$11.getLatLngBoundsForCameraTarget(), new MapUpdaterKt$MapUpdater$2$9(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, mapPropertiesGoogleMap$lambda$11.getMapStyleOptions(), new MapUpdaterKt$MapUpdater$2$10(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, mapPropertiesGoogleMap$lambda$11.getMapType(), new MapUpdaterKt$MapUpdater$2$11(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Float.valueOf(mapPropertiesGoogleMap$lambda$11.getMaxZoomPreference()), new MapUpdaterKt$MapUpdater$2$12(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Float.valueOf(mapPropertiesGoogleMap$lambda$11.getMinZoomPreference()), new MapUpdaterKt$MapUpdater$2$13(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, paddingValuesGoogleMap$lambda$9, new MapUpdaterKt$MapUpdater$2$14(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getCompassEnabled()), new MapUpdaterKt$MapUpdater$2$15(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getIndoorLevelPickerEnabled()), new MapUpdaterKt$MapUpdater$2$16(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getMapToolbarEnabled()), new MapUpdaterKt$MapUpdater$2$17(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getMyLocationButtonEnabled()), new MapUpdaterKt$MapUpdater$2$18(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getRotationGesturesEnabled()), new MapUpdaterKt$MapUpdater$2$19(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getScrollGesturesEnabled()), new MapUpdaterKt$MapUpdater$2$20(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getScrollGesturesEnabledDuringRotateOrZoom()), new MapUpdaterKt$MapUpdater$2$21(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getTiltGesturesEnabled()), new MapUpdaterKt$MapUpdater$2$22(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getZoomControlsEnabled()), new MapUpdaterKt$MapUpdater$2$23(map));
|
||
Updater.m3827setimpl(composerM3820constructorimpl, Boolean.valueOf(mapUiSettingsGoogleMap$lambda$10.getZoomGesturesEnabled()), new MapUpdaterKt$MapUpdater$2$24(map));
|
||
Updater.m3830updateimpl(composerM3820constructorimpl, cameraPositionStateGoogleMap$lambda$8, MapUpdaterKt$MapUpdater$2$25.INSTANCE);
|
||
composer.endNode();
|
||
composer.endReplaceableGroup();
|
||
composer.endReplaceableGroup();
|
||
MapClickListenersKt.MapClickListenerUpdater(composer, 0);
|
||
CompositionLocalKt.CompositionLocalProvider(CameraPositionStateKt.getLocalCameraPositionState().provides(GoogleMapKt.GoogleMap$lambda$8(state2)), (Function2<? super Composer, ? super Integer, Unit>) GoogleMapKt.GoogleMap$lambda$12(state7), composer, ProvidedValue.$stable);
|
||
return;
|
||
}
|
||
composer.skipToGroupEnd();
|
||
}
|
||
});
|
||
this.L$0 = compositionContext;
|
||
this.L$1 = mapClickListeners;
|
||
this.L$2 = mapView2;
|
||
this.L$3 = composableLambdaComposableLambdaInstance;
|
||
this.L$4 = this;
|
||
this.L$5 = mapView2;
|
||
this.label = 1;
|
||
AnonymousClass4 anonymousClass4 = this;
|
||
SafeContinuation safeContinuation = new SafeContinuation(IntrinsicsKt.intercepted(anonymousClass4));
|
||
mapView2.getMapAsync(new GoogleMapKt$newComposition$$inlined$awaitMap$1(safeContinuation));
|
||
orThrow = safeContinuation.getOrThrow();
|
||
if (orThrow == IntrinsicsKt.getCOROUTINE_SUSPENDED()) {
|
||
DebugProbesKt.probeCoroutineSuspended(anonymousClass4);
|
||
}
|
||
if (orThrow == coroutine_suspended) {
|
||
return coroutine_suspended;
|
||
}
|
||
mapView = mapView2;
|
||
function2 = composableLambdaComposableLambdaInstance;
|
||
} else {
|
||
if (i != 1) {
|
||
if (i != 2) {
|
||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||
}
|
||
composition = (Composition) this.L$0;
|
||
try {
|
||
ResultKt.throwOnFailure(obj);
|
||
throw new KotlinNothingValueException();
|
||
} catch (Throwable th) {
|
||
th = th;
|
||
composition.dispose();
|
||
throw th;
|
||
}
|
||
}
|
||
function2 = (Function2) this.L$3;
|
||
mapView = (MapView) this.L$2;
|
||
mapClickListeners = (MapClickListeners) this.L$1;
|
||
compositionContext = (CompositionContext) this.L$0;
|
||
ResultKt.throwOnFailure(obj);
|
||
orThrow = obj;
|
||
}
|
||
this.L$0 = Composition;
|
||
this.L$1 = null;
|
||
this.L$2 = null;
|
||
this.L$3 = null;
|
||
this.L$4 = null;
|
||
this.L$5 = null;
|
||
this.label = 2;
|
||
if (DelayKt.awaitCancellation(this) == coroutine_suspended) {
|
||
return coroutine_suspended;
|
||
}
|
||
composition = Composition;
|
||
throw new KotlinNothingValueException();
|
||
} catch (Throwable th2) {
|
||
th = th2;
|
||
composition = Composition;
|
||
composition.dispose();
|
||
throw th;
|
||
}
|
||
Composition = CompositionKt.Composition(new MapApplier((GoogleMap) orThrow, mapView, mapClickListeners), compositionContext);
|
||
Composition.setContent(function2);
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Multi-variable type inference failed */
|
||
/* JADX WARN: Removed duplicated region for block: B:7:0x0014 */
|
||
/* JADX WARN: Type inference failed for: r4v0, types: [kotlin.jvm.functions.Function0, kotlin.jvm.functions.Function0<? extends androidx.compose.runtime.Composition>] */
|
||
/* JADX WARN: Type inference failed for: r4v1, types: [androidx.compose.runtime.Composition] */
|
||
/* JADX WARN: Type inference failed for: r4v4 */
|
||
/* JADX WARN: Type inference failed for: r4v8 */
|
||
/* JADX WARN: Type inference failed for: r4v9 */
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||
*/
|
||
public static final java.lang.Object disposingComposition(kotlin.jvm.functions.Function0<? extends androidx.compose.runtime.Composition> r4, kotlin.coroutines.Continuation<? super kotlin.Unit> r5) throws java.lang.Throwable {
|
||
/*
|
||
boolean r0 = r5 instanceof com.google.maps.android.compose.GoogleMapKt.C06001
|
||
if (r0 == 0) goto L14
|
||
r0 = r5
|
||
com.google.maps.android.compose.GoogleMapKt$disposingComposition$1 r0 = (com.google.maps.android.compose.GoogleMapKt.C06001) r0
|
||
int r1 = r0.label
|
||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||
r1 = r1 & r2
|
||
if (r1 == 0) goto L14
|
||
int r5 = r0.label
|
||
int r5 = r5 - r2
|
||
r0.label = r5
|
||
goto L19
|
||
L14:
|
||
com.google.maps.android.compose.GoogleMapKt$disposingComposition$1 r0 = new com.google.maps.android.compose.GoogleMapKt$disposingComposition$1
|
||
r0.<init>(r5)
|
||
L19:
|
||
java.lang.Object r5 = r0.result
|
||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||
int r2 = r0.label
|
||
r3 = 1
|
||
if (r2 == 0) goto L36
|
||
if (r2 == r3) goto L2e
|
||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||
r4.<init>(r5)
|
||
throw r4
|
||
L2e:
|
||
java.lang.Object r4 = r0.L$0
|
||
androidx.compose.runtime.Composition r4 = (androidx.compose.runtime.Composition) r4
|
||
kotlin.ResultKt.throwOnFailure(r5) // Catch: java.lang.Throwable -> L50
|
||
goto L4a
|
||
L36:
|
||
kotlin.ResultKt.throwOnFailure(r5)
|
||
java.lang.Object r4 = r4.invoke()
|
||
androidx.compose.runtime.Composition r4 = (androidx.compose.runtime.Composition) r4
|
||
r0.L$0 = r4 // Catch: java.lang.Throwable -> L50
|
||
r0.label = r3 // Catch: java.lang.Throwable -> L50
|
||
java.lang.Object r5 = kotlinx.coroutines.DelayKt.awaitCancellation(r0) // Catch: java.lang.Throwable -> L50
|
||
if (r5 != r1) goto L4a
|
||
return r1
|
||
L4a:
|
||
kotlin.KotlinNothingValueException r5 = new kotlin.KotlinNothingValueException // Catch: java.lang.Throwable -> L50
|
||
r5.<init>() // Catch: java.lang.Throwable -> L50
|
||
throw r5 // Catch: java.lang.Throwable -> L50
|
||
L50:
|
||
r5 = move-exception
|
||
kotlin.jvm.internal.InlineMarker.finallyStart(r3)
|
||
r4.dispose()
|
||
kotlin.jvm.internal.InlineMarker.finallyEnd(r3)
|
||
throw r5
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.google.maps.android.compose.GoogleMapKt.disposingComposition(kotlin.jvm.functions.Function0, kotlin.coroutines.Continuation):java.lang.Object");
|
||
}
|
||
|
||
private static final Object disposingComposition$$forInline(Function0<? extends Composition> function0, Continuation<? super Unit> continuation) {
|
||
Composition compositionInvoke = function0.invoke();
|
||
try {
|
||
InlineMarker.mark(0);
|
||
DelayKt.awaitCancellation(continuation);
|
||
InlineMarker.mark(1);
|
||
throw new KotlinNothingValueException();
|
||
} catch (Throwable th) {
|
||
InlineMarker.finallyStart(1);
|
||
compositionInvoke.dispose();
|
||
InlineMarker.finallyEnd(1);
|
||
throw th;
|
||
}
|
||
}
|
||
|
||
private static final void MapLifecycle(final MapView mapView, Composer composer, final int i) {
|
||
Composer composerStartRestartGroup = composer.startRestartGroup(-1013003870);
|
||
ProvidableCompositionLocal<Context> localContext = AndroidCompositionLocals_androidKt.getLocalContext();
|
||
ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
||
Object objConsume = composerStartRestartGroup.consume(localContext);
|
||
ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
|
||
final Context context = (Context) objConsume;
|
||
ProvidableCompositionLocal<LifecycleOwner> localLifecycleOwner = AndroidCompositionLocals_androidKt.getLocalLifecycleOwner();
|
||
ComposerKt.sourceInformationMarkerStart(composerStartRestartGroup, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
||
Object objConsume2 = composerStartRestartGroup.consume(localLifecycleOwner);
|
||
ComposerKt.sourceInformationMarkerEnd(composerStartRestartGroup);
|
||
final Lifecycle lifecycle = ((LifecycleOwner) objConsume2).getLifecycle();
|
||
composerStartRestartGroup.startReplaceableGroup(-1275165618);
|
||
Object objRememberedValue = composerStartRestartGroup.rememberedValue();
|
||
if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||
objRememberedValue = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(Lifecycle.Event.ON_CREATE, null, 2, null);
|
||
composerStartRestartGroup.updateRememberedValue(objRememberedValue);
|
||
}
|
||
final MutableState mutableState = (MutableState) objRememberedValue;
|
||
composerStartRestartGroup.endReplaceableGroup();
|
||
EffectsKt.DisposableEffect(context, lifecycle, mapView, new Function1() { // from class: com.google.maps.android.compose.GoogleMapKt$$ExternalSyntheticLambda1
|
||
@Override // kotlin.jvm.functions.Function1
|
||
public final Object invoke(Object obj) {
|
||
return GoogleMapKt.MapLifecycle$lambda$17(mapView, mutableState, lifecycle, context, (DisposableEffectScope) obj);
|
||
}
|
||
}, composerStartRestartGroup, 584);
|
||
EffectsKt.DisposableEffect(mapView, (Function1<? super DisposableEffectScope, ? extends DisposableEffectResult>) new Function1() { // from class: com.google.maps.android.compose.GoogleMapKt$$ExternalSyntheticLambda2
|
||
@Override // kotlin.jvm.functions.Function1
|
||
public final Object invoke(Object obj) {
|
||
return GoogleMapKt.MapLifecycle$lambda$19(mapView, (DisposableEffectScope) obj);
|
||
}
|
||
}, composerStartRestartGroup, 8);
|
||
ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
|
||
if (scopeUpdateScopeEndRestartGroup != null) {
|
||
scopeUpdateScopeEndRestartGroup.updateScope(new Function2() { // from class: com.google.maps.android.compose.GoogleMapKt$$ExternalSyntheticLambda3
|
||
@Override // kotlin.jvm.functions.Function2
|
||
public final Object invoke(Object obj, Object obj2) {
|
||
return GoogleMapKt.MapLifecycle$lambda$20(mapView, i, (Composer) obj, ((Integer) obj2).intValue());
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final DisposableEffectResult MapLifecycle$lambda$17(MapView mapView, MutableState previousState, final Lifecycle lifecycle, final Context context, DisposableEffectScope DisposableEffect) {
|
||
Intrinsics.checkNotNullParameter(mapView, "$mapView");
|
||
Intrinsics.checkNotNullParameter(previousState, "$previousState");
|
||
Intrinsics.checkNotNullParameter(lifecycle, "$lifecycle");
|
||
Intrinsics.checkNotNullParameter(context, "$context");
|
||
Intrinsics.checkNotNullParameter(DisposableEffect, "$this$DisposableEffect");
|
||
final LifecycleEventObserver lifecycleEventObserverLifecycleObserver = lifecycleObserver(mapView, previousState);
|
||
final ComponentCallbacks componentCallbacks = componentCallbacks(mapView);
|
||
lifecycle.addObserver(lifecycleEventObserverLifecycleObserver);
|
||
context.registerComponentCallbacks(componentCallbacks);
|
||
return new DisposableEffectResult() { // from class: com.google.maps.android.compose.GoogleMapKt$MapLifecycle$lambda$17$$inlined$onDispose$1
|
||
@Override // androidx.compose.runtime.DisposableEffectResult
|
||
public void dispose() {
|
||
lifecycle.removeObserver(lifecycleEventObserverLifecycleObserver);
|
||
context.unregisterComponentCallbacks(componentCallbacks);
|
||
}
|
||
};
|
||
}
|
||
|
||
private static final LifecycleEventObserver lifecycleObserver(final MapView mapView, final MutableState<Lifecycle.Event> mutableState) {
|
||
return new LifecycleEventObserver() { // from class: com.google.maps.android.compose.GoogleMapKt$$ExternalSyntheticLambda4
|
||
@Override // androidx.lifecycle.LifecycleEventObserver
|
||
public final void onStateChanged(LifecycleOwner lifecycleOwner, Lifecycle.Event event) {
|
||
GoogleMapKt.lifecycleObserver$lambda$21(mutableState, mapView, lifecycleOwner, event);
|
||
}
|
||
};
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final void lifecycleObserver$lambda$21(MutableState previousState, MapView this_lifecycleObserver, LifecycleOwner lifecycleOwner, Lifecycle.Event event) {
|
||
Intrinsics.checkNotNullParameter(previousState, "$previousState");
|
||
Intrinsics.checkNotNullParameter(this_lifecycleObserver, "$this_lifecycleObserver");
|
||
Intrinsics.checkNotNullParameter(lifecycleOwner, "<unused var>");
|
||
Intrinsics.checkNotNullParameter(event, "event");
|
||
event.getTargetState();
|
||
switch (WhenMappings.$EnumSwitchMapping$0[event.ordinal()]) {
|
||
case 1:
|
||
if (previousState.getValue() != Lifecycle.Event.ON_STOP) {
|
||
this_lifecycleObserver.onCreate(new Bundle());
|
||
}
|
||
break;
|
||
case 2:
|
||
this_lifecycleObserver.onStart();
|
||
break;
|
||
case 3:
|
||
this_lifecycleObserver.onResume();
|
||
break;
|
||
case 4:
|
||
this_lifecycleObserver.onPause();
|
||
break;
|
||
case 5:
|
||
this_lifecycleObserver.onStop();
|
||
break;
|
||
case 6:
|
||
break;
|
||
default:
|
||
throw new IllegalStateException();
|
||
}
|
||
previousState.setValue(event);
|
||
}
|
||
|
||
private static final ComponentCallbacks componentCallbacks(final MapView mapView) {
|
||
return new ComponentCallbacks() { // from class: com.google.maps.android.compose.GoogleMapKt.componentCallbacks.1
|
||
@Override // android.content.ComponentCallbacks
|
||
public void onConfigurationChanged(Configuration config) {
|
||
Intrinsics.checkNotNullParameter(config, "config");
|
||
}
|
||
|
||
@Override // android.content.ComponentCallbacks
|
||
public void onLowMemory() {
|
||
mapView.onLowMemory();
|
||
}
|
||
};
|
||
}
|
||
|
||
public static final Function2<Composer, Integer, Unit> googleMapFactory(final Modifier modifier, final CameraPositionState cameraPositionState, final Function0<Unit> function0, final Function2<? super Composer, ? super Integer, Unit> function2, Composer composer, int i, int i2) {
|
||
composer.startReplaceableGroup(2117450840);
|
||
if ((i2 & 1) != 0) {
|
||
modifier = Modifier.INSTANCE;
|
||
}
|
||
if ((i2 & 2) != 0) {
|
||
composer.startReplaceableGroup(-1911106014);
|
||
Object[] objArr = new Object[0];
|
||
cameraPositionState = (CameraPositionState) RememberSaveableKt.m3946rememberSaveable(objArr, (Saver) CameraPositionState.INSTANCE.getSaver(), (String) null, (Function0) new CameraPositionStateKt.AnonymousClass2(CameraPositionStateKt.AnonymousClass1.INSTANCE), composer, 72, 0);
|
||
composer.endReplaceableGroup();
|
||
}
|
||
if ((i2 & 4) != 0) {
|
||
function0 = new Function0() { // from class: com.google.maps.android.compose.GoogleMapKt$$ExternalSyntheticLambda0
|
||
@Override // kotlin.jvm.functions.Function0
|
||
public final Object invoke() {
|
||
return Unit.INSTANCE;
|
||
}
|
||
};
|
||
}
|
||
if ((i2 & 8) != 0) {
|
||
function2 = ComposableSingletons$GoogleMapKt.INSTANCE.m7772getLambda2$maps_compose_release();
|
||
}
|
||
ComposableLambda composableLambda = ComposableLambdaKt.composableLambda(composer, 893077019, true, new Function2<Composer, Integer, Unit>() { // from class: com.google.maps.android.compose.GoogleMapKt.googleMapFactory.2
|
||
@Override // kotlin.jvm.functions.Function2
|
||
public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
|
||
invoke(composer2, num.intValue());
|
||
return Unit.INSTANCE;
|
||
}
|
||
|
||
private static final MapUiSettings invoke$lambda$1(MutableState<MapUiSettings> mutableState) {
|
||
return mutableState.getValue();
|
||
}
|
||
|
||
public final void invoke(Composer composer2, int i3) {
|
||
if ((i3 & 11) == 2 && composer2.getSkipping()) {
|
||
composer2.skipToGroupEnd();
|
||
return;
|
||
}
|
||
composer2.startReplaceableGroup(-1385132270);
|
||
Object objRememberedValue = composer2.rememberedValue();
|
||
if (objRememberedValue == Composer.INSTANCE.getEmpty()) {
|
||
objRememberedValue = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(new MapUiSettings(false, false, false, false, false, false, false, false, false, false, 1022, null), null, 2, null);
|
||
composer2.updateRememberedValue(objRememberedValue);
|
||
}
|
||
MutableState mutableState = (MutableState) objRememberedValue;
|
||
composer2.endReplaceableGroup();
|
||
composer2.startReplaceableGroup(-1385129176);
|
||
Object objRememberedValue2 = composer2.rememberedValue();
|
||
if (objRememberedValue2 == Composer.INSTANCE.getEmpty()) {
|
||
objRememberedValue2 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(new MapProperties(false, false, false, false, null, null, MapType.NORMAL, 0.0f, 0.0f, 447, null), null, 2, null);
|
||
composer2.updateRememberedValue(objRememberedValue2);
|
||
}
|
||
MutableState mutableState2 = (MutableState) objRememberedValue2;
|
||
composer2.endReplaceableGroup();
|
||
composer2.startReplaceableGroup(-1385125519);
|
||
Object objRememberedValue3 = composer2.rememberedValue();
|
||
if (objRememberedValue3 == Composer.INSTANCE.getEmpty()) {
|
||
objRememberedValue3 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(true, null, 2, null);
|
||
composer2.updateRememberedValue(objRememberedValue3);
|
||
}
|
||
composer2.endReplaceableGroup();
|
||
if (invoke$lambda$5((MutableState) objRememberedValue3)) {
|
||
GoogleMapKt.GoogleMap(false, modifier, cameraPositionState, null, null, invoke$lambda$3(mutableState2), null, invoke$lambda$1(mutableState), null, null, null, function0, null, null, null, null, function2, composer2, 0, 0, 63321);
|
||
}
|
||
}
|
||
|
||
private static final MapProperties invoke$lambda$3(MutableState<MapProperties> mutableState) {
|
||
return mutableState.getValue();
|
||
}
|
||
|
||
private static final boolean invoke$lambda$5(MutableState<Boolean> mutableState) {
|
||
return mutableState.getValue().booleanValue();
|
||
}
|
||
});
|
||
composer.endReplaceableGroup();
|
||
return composableLambda;
|
||
}
|
||
|
||
private static final Object newComposition(MapView mapView, CompositionContext compositionContext, MapClickListeners mapClickListeners, Function2<? super Composer, ? super Integer, Unit> function2, Continuation<? super Composition> continuation) throws Throwable {
|
||
InlineMarker.mark(0);
|
||
SafeContinuation safeContinuation = new SafeContinuation(IntrinsicsKt.intercepted(continuation));
|
||
mapView.getMapAsync(new GoogleMapKt$newComposition$$inlined$awaitMap$1(safeContinuation));
|
||
Unit unit = Unit.INSTANCE;
|
||
Object orThrow = safeContinuation.getOrThrow();
|
||
if (orThrow == IntrinsicsKt.getCOROUTINE_SUSPENDED()) {
|
||
DebugProbesKt.probeCoroutineSuspended(continuation);
|
||
}
|
||
InlineMarker.mark(1);
|
||
Composition Composition = CompositionKt.Composition(new MapApplier((GoogleMap) orThrow, mapView, mapClickListeners), compositionContext);
|
||
Composition.setContent(function2);
|
||
Unit unit2 = Unit.INSTANCE;
|
||
return Composition;
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final String GoogleMap$lambda$6(State<String> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final LocationSource GoogleMap$lambda$7(State<? extends LocationSource> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final CameraPositionState GoogleMap$lambda$8(State<CameraPositionState> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final PaddingValues GoogleMap$lambda$9(State<? extends PaddingValues> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final MapUiSettings GoogleMap$lambda$10(State<MapUiSettings> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final MapProperties GoogleMap$lambda$11(State<MapProperties> state) {
|
||
return state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final Function2<Composer, Integer, Unit> GoogleMap$lambda$12(State<? extends Function2<? super Composer, ? super Integer, Unit>> state) {
|
||
return (Function2) state.getValue();
|
||
}
|
||
|
||
/* JADX INFO: Access modifiers changed from: private */
|
||
public static final DisposableEffectResult MapLifecycle$lambda$19(final MapView mapView, DisposableEffectScope DisposableEffect) {
|
||
Intrinsics.checkNotNullParameter(mapView, "$mapView");
|
||
Intrinsics.checkNotNullParameter(DisposableEffect, "$this$DisposableEffect");
|
||
return new DisposableEffectResult() { // from class: com.google.maps.android.compose.GoogleMapKt$MapLifecycle$lambda$19$$inlined$onDispose$1
|
||
@Override // androidx.compose.runtime.DisposableEffectResult
|
||
public void dispose() {
|
||
mapView.onDestroy();
|
||
mapView.removeAllViews();
|
||
}
|
||
};
|
||
}
|
||
} |