package com.ss.android.ugc.aweme.story.edit.canvas;

import X.2HN;
import X.C04865Fs;
import X.C04875Ft;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.ui_component.UiState;
import kotlin.h.b.n;

public final class EditPhotoCanvasState extends UiState {
    public final C04875Ft ui;

    static {
        Covode.recordClassIndex(117542);
    }

    public EditPhotoCanvasState() {
        this((C04875Ft) null, 1, (2HN) null);
    }

    public static /* synthetic */ EditPhotoCanvasState copy$default(EditPhotoCanvasState editPhotoCanvasState, C04875Ft r2, int i, Object obj) {
        if ((i & 1) != 0) {
            r2 = editPhotoCanvasState.getUi();
        }
        return editPhotoCanvasState.copy(r2);
    }

    public final C04875Ft component1() {
        return getUi();
    }

    public final EditPhotoCanvasState copy(C04875Ft r2) {
        M12.LIZ(r2);
        return new EditPhotoCanvasState(r2);
    }

    public final boolean equals(Object obj) {
        if (this != obj) {
            return (obj instanceof EditPhotoCanvasState) && n.LIZ(getUi(), ((UiState) obj).getUi());
        }
        return true;
    }

    public final int hashCode() {
        C04875Ft ui2 = getUi();
        if (ui2 != null) {
            return ui2.hashCode();
        }
        return 0;
    }

    public final String toString() {
        return "EditPhotoCanvasState(ui=" + getUi() + ")";
    }

    public final C04875Ft getUi() {
        return this.ui;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public EditPhotoCanvasState(C04875Ft r1) {
        super(r1);
        M12.LIZ(r1);
        this.ui = r1;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ EditPhotoCanvasState(C04875Ft r2, int i, 2HN r4) {
        this((i & 1) != 0 ? new C04865Fs() : r2);
    }
}
