package com.ss.android.ugc.aweme.shortvideo.widget;

import X.C4109Nrk;
import X.C4304Nut;
import X.C4308Nux;
import android.view.View;
import com.bytedance.covode.number.Covode;

public class LighteningRecordLayout$3 implements View.OnClickListener {
    public final /* synthetic */ C4304Nut LIZ;

    static {
        Covode.recordClassIndex(113840);
    }

    public LighteningRecordLayout$3(C4304Nut nut) {
        this.LIZ = nut;
    }

    public final void onClick(View view) {
        if (this.LIZ.LJ == 1) {
            if (!new C4109Nrk().LIZ(view) || this.LIZ.LJJIIJZLJL.LIZ()) {
                return;
            }
            if (this.LIZ.LJIL) {
                if (this.LIZ.LJJII != null && (this.LIZ.LJJI == C4308Nux.PLAN_B || this.LIZ.LJJI == C4308Nux.PLAN_C)) {
                    this.LIZ.LJJII.animate().scaleX(1.2f).scaleY(1.2f).setDuration(100).withEndAction(new Runnable() {
                        static {
                            Covode.recordClassIndex(113841);
                        }

                        public final void run() {
                            LighteningRecordLayout$3.this.LIZ.LJJII.animate().scaleX(1.0f).scaleY(1.0f).setDuration(100).start();
                        }
                    }).start();
                }
                if (this.LIZ.LJJIFFI != null && this.LIZ.LJJI == C4308Nux.PLAN_C) {
                    this.LIZ.LJJIFFI.animate().scaleX(1.2f).scaleY(1.2f).setDuration(100).withEndAction(new Runnable() {
                        static {
                            Covode.recordClassIndex(113842);
                        }

                        public final void run() {
                            LighteningRecordLayout$3.this.LIZ.LJJIFFI.animate().scaleX(1.0f).scaleY(1.0f).setDuration(100).start();
                        }
                    }).start();
                }
                this.LIZ.LIZ(13);
                this.LIZ.invalidate();
                this.LIZ.LJJIIJZLJL.LIZJ();
                return;
            }
            this.LIZ.LIZ(2);
            this.LIZ.invalidate();
            this.LIZ.LJJIIJZLJL.LIZIZ();
        } else if ((this.LIZ.LJ == 3 || this.LIZ.LJ == 2) && this.LIZ.LJJ) {
            this.LIZ.LIZ(9);
            this.LIZ.LJJIIJZLJL.LIZ(false);
        }
    }
}
