(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../../../utils/theme/getTheme", "../Hue/styles", "../../theme", "../../../Pallette/themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.PointButton = exports.TransparencyLine = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var getTheme_1 = require("../../../utils/theme/getTheme");
    var styles_1 = require("../Hue/styles");
    var theme_1 = require("../../theme");
    var themes_1 = require("../../../Pallette/themes");
    exports.TransparencyLine = (0, styled_components_1.default)(styles_1.ColorLine).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: "colorPicker",
            defaultTheme: theme_1.defaultThemeColorPicker
        })
    }); })(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n  background-position-x: 9px;\n  position: relative;\n\n  &::after {\n    content: \"\";\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    border-radius: 8px;\n    ", "\n  }\n"], ["\n  ", "\n  background-position-x: 9px;\n  position: relative;\n\n  &::after {\n    content: \"\";\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    border-radius: 8px;\n    ", "\n  }\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n    background: repeating-conic-gradient(\n        ", " 0% 25%,\n        ", " 0% 50%\n      )\n      50% / 10px 10px;\n\n    & > button {\n      background: repeating-conic-gradient(\n          ", " 0% 25%,\n          ", " 0% 50%\n        )\n        50% / 8px 12px;\n    }\n  "], ["\n    background: repeating-conic-gradient(\n        ", " 0% 25%,\n        ", " 0% 50%\n      )\n      50% / 10px 10px;\n\n    & > button {\n      background: repeating-conic-gradient(\n          ", " 0% 25%,\n          ", " 0% 50%\n        )\n        50% / 8px 12px;\n    }\n  "])), theme.components.colorPicker.transparencyChess, theme.components.colorPicker.background, theme.components.colorPicker.transparencyChess, theme.components.colorPicker.background);
    }, function (_a) {
        var colorRgb = _a.colorRgb;
        return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      background: linear-gradient(\n        90deg,\n        rgba(255, 33, 2, 0) 0%,\n        rgb(", ") 100%\n      );\n    "], ["\n      background: linear-gradient(\n        90deg,\n        rgba(255, 33, 2, 0) 0%,\n        rgb(", ") 100%\n      );\n    "])), Object.values(colorRgb).join(","));
    });
    exports.PointButton = styled_components_1.default.button(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n  z-index: 1;\n"], ["\n  ", "\n  z-index: 1;\n"])), function (_a) {
        var colorRgb = _a.colorRgb, alpha = _a.alpha;
        return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n    box-shadow: inset 0 0 20px 0\n      rgba(", ", ", ");\n    left: calc(", "% - 4px);\n  "], ["\n    box-shadow: inset 0 0 20px 0\n      rgba(", ", ", ");\n    left: calc(", "% - 4px);\n  "])), Object.values(colorRgb).join(","), alpha, alpha * 100);
    });
    exports.TransparencyLine.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
});
