package com.google.maps.android.compose;

import com.google.android.gms.maps.model.Circle;
import com.google.maps.android.compose.MapNode;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: Circle.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\n\b\u0001\u0018\u00002\u00020\u0001B#\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0004\b\u0007\u0010\bJ\b\u0010\u000f\u001a\u00020\u0006H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR&\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00060\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000e¨\u0006\u0010"}, d2 = {"Lcom/google/maps/android/compose/CircleNode;", "Lcom/google/maps/android/compose/MapNode;", "circle", "Lcom/google/android/gms/maps/model/Circle;", "onCircleClick", "Lkotlin/Function1;", "", "<init>", "(Lcom/google/android/gms/maps/model/Circle;Lkotlin/jvm/functions/Function1;)V", "getCircle", "()Lcom/google/android/gms/maps/model/Circle;", "getOnCircleClick", "()Lkotlin/jvm/functions/Function1;", "setOnCircleClick", "(Lkotlin/jvm/functions/Function1;)V", "onRemoved", "maps-compose_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class CircleNode implements MapNode {
    public static final int $stable = 8;
    private final Circle circle;
    private Function1<? super Circle, Unit> onCircleClick;

    public CircleNode(Circle circle, Function1<? super Circle, Unit> onCircleClick) {
        Intrinsics.checkNotNullParameter(circle, "circle");
        Intrinsics.checkNotNullParameter(onCircleClick, "onCircleClick");
        this.circle = circle;
        this.onCircleClick = onCircleClick;
    }

    @Override // com.google.maps.android.compose.MapNode
    public void onAttached() {
        MapNode.DefaultImpls.onAttached(this);
    }

    @Override // com.google.maps.android.compose.MapNode
    public void onCleared() {
        MapNode.DefaultImpls.onCleared(this);
    }

    public final Circle getCircle() {
        return this.circle;
    }

    public final Function1<Circle, Unit> getOnCircleClick() {
        return this.onCircleClick;
    }

    public final void setOnCircleClick(Function1<? super Circle, Unit> function1) {
        Intrinsics.checkNotNullParameter(function1, "<set-?>");
        this.onCircleClick = function1;
    }

    @Override // com.google.maps.android.compose.MapNode
    public void onRemoved() {
        this.circle.remove();
    }
}