package com.google.maps.android.compose;

import com.google.android.gms.maps.model.TileOverlay;
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: TileOverlay.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\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\u0002\u0010\u0002\n\u0002\b\u0011\b\u0002\u0018\u00002\u00020\u0001B+\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0012\u0010\u0006\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\u0004\b\t\u0010\nJ\b\u0010\u0017\u001a\u00020\bH\u0016J\b\u0010\u0018\u001a\u00020\bH\u0016R\u001a\u0010\u0002\u001a\u00020\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR\u001a\u0010\u0004\u001a\u00020\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R&\u0010\u0006\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\b0\u0007X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016¨\u0006\u0019"}, d2 = {"Lcom/google/maps/android/compose/TileOverlayNode;", "Lcom/google/maps/android/compose/MapNode;", "tileOverlay", "Lcom/google/android/gms/maps/model/TileOverlay;", "tileOverlayState", "Lcom/google/maps/android/compose/TileOverlayState;", "onTileOverlayClick", "Lkotlin/Function1;", "", "<init>", "(Lcom/google/android/gms/maps/model/TileOverlay;Lcom/google/maps/android/compose/TileOverlayState;Lkotlin/jvm/functions/Function1;)V", "getTileOverlay", "()Lcom/google/android/gms/maps/model/TileOverlay;", "setTileOverlay", "(Lcom/google/android/gms/maps/model/TileOverlay;)V", "getTileOverlayState", "()Lcom/google/maps/android/compose/TileOverlayState;", "setTileOverlayState", "(Lcom/google/maps/android/compose/TileOverlayState;)V", "getOnTileOverlayClick", "()Lkotlin/jvm/functions/Function1;", "setOnTileOverlayClick", "(Lkotlin/jvm/functions/Function1;)V", "onAttached", "onRemoved", "maps-compose_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
final class TileOverlayNode implements MapNode {
    private Function1<? super TileOverlay, Unit> onTileOverlayClick;
    private TileOverlay tileOverlay;
    private TileOverlayState tileOverlayState;

    public TileOverlayNode(TileOverlay tileOverlay, TileOverlayState tileOverlayState, Function1<? super TileOverlay, Unit> onTileOverlayClick) {
        Intrinsics.checkNotNullParameter(tileOverlay, "tileOverlay");
        Intrinsics.checkNotNullParameter(tileOverlayState, "tileOverlayState");
        Intrinsics.checkNotNullParameter(onTileOverlayClick, "onTileOverlayClick");
        this.tileOverlay = tileOverlay;
        this.tileOverlayState = tileOverlayState;
        this.onTileOverlayClick = onTileOverlayClick;
    }

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

    public final TileOverlay getTileOverlay() {
        return this.tileOverlay;
    }

    public final void setTileOverlay(TileOverlay tileOverlay) {
        Intrinsics.checkNotNullParameter(tileOverlay, "<set-?>");
        this.tileOverlay = tileOverlay;
    }

    public final TileOverlayState getTileOverlayState() {
        return this.tileOverlayState;
    }

    public final void setTileOverlayState(TileOverlayState tileOverlayState) {
        Intrinsics.checkNotNullParameter(tileOverlayState, "<set-?>");
        this.tileOverlayState = tileOverlayState;
    }

    public final Function1<TileOverlay, Unit> getOnTileOverlayClick() {
        return this.onTileOverlayClick;
    }

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

    @Override // com.google.maps.android.compose.MapNode
    public void onAttached() {
        this.tileOverlayState.setTileOverlay$maps_compose_release(this.tileOverlay);
    }

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