package com.google.maps.android.ktx.utils.collection;

import com.google.android.gms.maps.model.Polygon;
import com.google.android.gms.maps.model.PolygonOptions;
import com.google.maps.android.collections.PolygonManager;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: PolygonManager.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\"\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\u001a-\u0010\u0000\u001a\u00020\u0001*\u00060\u0002R\u00020\u00032\u0017\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\bH\u0086\bø\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\t"}, d2 = {"addPolygon", "Lcom/google/android/gms/maps/model/Polygon;", "Lcom/google/maps/android/collections/PolygonManager$Collection;", "Lcom/google/maps/android/collections/PolygonManager;", "optionsActions", "Lkotlin/Function1;", "Lcom/google/android/gms/maps/model/PolygonOptions;", "", "Lkotlin/ExtensionFunctionType;", "maps-utils-ktx_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
public final class PolygonManagerKt {
    public static final Polygon addPolygon(PolygonManager.Collection collection, Function1<? super PolygonOptions, Unit> optionsActions) {
        Intrinsics.checkNotNullParameter(collection, "<this>");
        Intrinsics.checkNotNullParameter(optionsActions, "optionsActions");
        PolygonOptions polygonOptions = new PolygonOptions();
        optionsActions.invoke(polygonOptions);
        Polygon polygonAddPolygon = collection.addPolygon(polygonOptions);
        Intrinsics.checkNotNullExpressionValue(polygonAddPolygon, "this.addPolygon(\n       …ply(optionsActions)\n    )");
        return polygonAddPolygon;
    }
}