define(["require", "exports", "tslib", "react", "../../utilities/utilities"], function (require, exports, tslib_1, React, utilities_1) {
    "use strict";
    var _a;
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.Shape = void 0;
    var pointPath = (_a = {},
        _a["".concat(utilities_1.Points[utilities_1.Points.circle])] = 'M1 6 A5 5 0 1 0  12 6 M1 6 A5 5 0 0 1  12 6',
        _a["".concat(utilities_1.Points[utilities_1.Points.square])] = 'M1 1 L12 1 L12 12  L1 12 L1 1 Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.triangle])] = 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.pyramid])] = 'M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.diamond])] = 'M2 2 L10 2 L10 10  L2 10 L2 2 Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.hexagon])] = 'M9 0H3L0 5L3 10H9L12 5L9 0Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.pentagon])] = 'M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z',
        _a["".concat(utilities_1.Points[utilities_1.Points.octagon])] = 'M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z',
        _a["".concat(utilities_1.CustomPoints[utilities_1.CustomPoints.dottedLine])] = 'M0 6 H3 M5 6 H8 M10 6 H13',
        _a);
    var Shape = function (_a) {
        var svgProps = _a.svgProps, pathProps = _a.pathProps, shape = _a.shape, classNameForNonSvg = _a.classNameForNonSvg;
        if (Object.keys(pointPath).indexOf(shape) === -1) {
            return React.createElement("div", { className: classNameForNonSvg });
        }
        return (React.createElement("svg", tslib_1.__assign({ width: 14, height: 14, viewBox: '-1 -1 14 14' }, (0, utilities_1.getSecureProps)(svgProps), { transform: "rotate(".concat(shape === utilities_1.Points[utilities_1.Points.diamond] ? 45 : shape === utilities_1.Points[utilities_1.Points.pyramid] ? 180 : 0, ", 0, 0)") }),
            React.createElement("path", tslib_1.__assign({ d: pointPath[shape] }, (0, utilities_1.getSecureProps)(pathProps)))));
    };
    exports.Shape = Shape;
});
//# sourceMappingURL=shape.js.map