/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { RowPath } from "./RowPath";
import { markType } from "igniteui-webcomponents-core";
/**
 * @hidden
 */
export let CellPath = /*@__PURE__*/ (() => {
    class CellPath extends RowPath {
        constructor(a, ..._rest) {
            a = (a == void 0) ? 0 : a;
            switch (a) {
                case 0:
                    {
                        let c = _rest[0];
                        let d = _rest[1];
                        let e = _rest[2];
                        let f = _rest[3];
                        let g = [d, e, f];
                        {
                            let i = g[0];
                            let j = g[1];
                            let k = g[2];
                            super(j, k);
                            this.ay = 0;
                            this.az = 0;
                            this.ax = -1;
                            this.as = false;
                            this.ae = false;
                            this.ad = false;
                            this.ap = false;
                            this.af = false;
                            this.ay = i;
                            this.ac();
                        }
                        this.b = c;
                        this.ac();
                    }
                    break;
                case 1:
                    {
                        let c = _rest[0];
                        let d = _rest[1];
                        let e = _rest[2];
                        super(d, e);
                        this.ay = 0;
                        this.az = 0;
                        this.ax = -1;
                        this.as = false;
                        this.ae = false;
                        this.ad = false;
                        this.ap = false;
                        this.af = false;
                        this.ay = c;
                        this.ac();
                    }
                    break;
            }
        }
        get a0() {
            return this.ay;
        }
        set a0(a) {
            this.ay = a;
            this.ac();
        }
        get a6() {
            return this.az;
        }
        set a6(a) {
            this.az = a;
        }
        ac() {
            super.ac();
            this.ax = (this.a0 * 100000000) + super.getHashCode();
        }
        getHashCode() {
            return this.ax;
        }
        equals(a) {
            if (!super.equals(a)) {
                return false;
            }
            let b = a;
            if (a == null) {
                return false;
            }
            if (this.ay != b.ay) {
                return false;
            }
            if (this.au != b.au) {
                return false;
            }
            if (this.ar != b.ar) {
                return false;
            }
            return true;
        }
        toString() {
            return this.ay + "." + super.toString();
        }
        aa() {
            let a = new CellPath(0, this.b, this.ay, this.x, this.w);
            a.a6 = this.a6;
            a.au = this.au;
            a.ar = this.ar;
            a.i = this.i;
            a.o = this.o;
            a.d = this.d;
            a.ap = this.ap;
            a.af = this.af;
            a.as = this.as;
            return a;
        }
        get at() {
            return (this.ay == -300);
        }
        get ag() {
            return ((this.ay >= 0 || this.ay == -800 || this.ay == -400) && this.w >= 0 && this.w >= 0);
        }
        get av() {
            return this.ay == -400 || this.ay == -401 || this.ay == -402;
        }
        get aj() {
            return this.g && !this.at;
        }
        get aq() {
            return this.w == -102 && this.ay == -400;
        }
        get al() {
            return (this.w == -103 || this.w == -104) && this.a0 == -500;
        }
        get an() {
            return (this.w == -103 || this.w == -104) && this.a0 == -501;
        }
        get ak() {
            return this.w == -100 && this.a0 == -500;
        }
        get am() {
            return this.w == -100 && this.a0 == -501;
        }
        get ao() {
            return this.w == -104;
        }
        get au() {
            return this.ae;
        }
        set au(a) {
            this.ae = a;
        }
        get ar() {
            return this.ad;
        }
        set ar(a) {
            this.ad = a;
        }
        get aw() {
            return this.au || this.ar;
        }
        get ah() {
            return this.a0 == -1000 && this.w == -1000;
        }
        get ai() {
            return this.a0 == -1001 && this.w == -1001;
        }
    }
    CellPath.$t = /*@__PURE__*/ markType(CellPath, 'CellPath', RowPath.$);
    return CellPath;
})();
//# sourceMappingURL=CellPath.js.map
