"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getResizeDirections", {
    enumerable: true,
    get: function() {
        return getResizeDirections;
    }
});
var getResizeDirections = function getResizeDirections(directions) {
    if (!directions) {
        return {
            top: true,
            right: true,
            bottom: true,
            left: true,
            topRight: true,
            bottomRight: true,
            bottomLeft: true,
            topLeft: true
        };
    }
    var result = {
        top: false,
        right: false,
        bottom: false,
        left: false,
        topRight: false,
        bottomRight: false,
        bottomLeft: false,
        topLeft: false
    };
    var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
    try {
        for(var _iterator = directions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
            var dir = _step.value;
            switch(dir){
                case 'top':
                    result.top = true;
                    break;
                case 'right':
                    result.right = true;
                    break;
                case 'bottom':
                    result.bottom = true;
                    break;
                case 'left':
                    result.left = true;
                    break;
                case 'top-right':
                    result.topRight = true;
                    break;
                case 'top-left':
                    result.topLeft = true;
                    break;
                case 'bottom-right':
                    result.bottomRight = true;
                    break;
                case 'bottom-left':
                    result.bottomLeft = true;
                    break;
                default:
                    break;
            }
        }
    } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
    } finally{
        try {
            if (!_iteratorNormalCompletion && _iterator.return != null) {
                _iterator.return();
            }
        } finally{
            if (_didIteratorError) {
                throw _iteratorError;
            }
        }
    }
    return result;
};
