import styled from "styled-components";
import { TestingConstants } from "../../CommonUI/Testing/TestingConstants";
export const RuleEditorDiv = styled.div `
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
`;
export const RuleDesignerRender = styled.div `
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
    background: #f7f8fc;
    position: relative;
`;
export const RuleToolbarRender = styled.div `
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px 8px;
    border-bottom: 3px solid rgba(96, 104, 129, 0.1);

    .RuleHeader-button {
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        line-height: 17px;
        letter-spacing: 0em;
        font-weight: 500;
        text-align: center;
        color: #4050a6;

        padding: 0;

        margin-left: 16px;

        &:first-child {
            margin-left: 0;
        }
    }
`;
export const RuleEditorRender = styled.div `
    display: grid;
    padding: 16px 24px;
    justify-items: stretch;

    grid-template-columns: repeat(${(props) => props.columnCount + 3}, [col-start] max-content [col-end]);
    column-gap: ${(props) => props.columnsGap || 2}px;
    row-gap: ${(props) => props.rowsGap || 2}px;
`;
export const RuleTableIndexColumn = styled.div `
    width: 24px;
    min-height: ${(props) => props.height || 24}px;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 0px;

    ${(props) => (props.isTestPassed ? "background: rgba(53, 182, 135);" : "")}

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(64, 80, 166, 0.5);

    position: relative;

    ${(props) => props.x !== undefined
    ? `
                grid-column-start: ${props.x + 1};
                grid-column-end: ${props.x + 2};
            `
    : ``}
    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}

    img {
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
    }
`;
export const RuleTableHeaderActionColumn = styled.div `
    display: flex;
    background: rgba(64, 80, 166, 0.1);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    width: 24px;

    ${(props) => (props.disabled ? "pointer-events: none;" : "")}
    cursor: pointer;
    ${(props) => props.x !== undefined
    ? `
                grid-column-start: ${props.x + 1};
                grid-column-end: ${props.x + 2};
            `
    : ``}
    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}
`;
export const RuleTableRuleColumn = styled.div `
    background: ${(props) => props.backgroundColor || "#fff"};
    border-radius: 2px;

    position: relative;

    transition: border-color 0.1s ease-in;

    //styleName: text/Inter Regular 12px;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0px;
    text-align: left;

    color: #272932;

    &:hover {
        border: 1px solid #3e9bde;
    }

    ${(props) => props.selected
    ? `border: 1px solid ${props.borderColor || "#3E9BDE"};`
    : `border: 1px solid ${props.borderColor || "#F1F1F6"};`}

    ${(props) => props.x !== undefined
    ? `
                grid-column-start: ${props.x + 1};
                grid-column-end: ${props.x + 2};
                    `
    : ``}
    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}
`;
export const RuleTableEmptyColumn = styled.div `
    background: rgba(64, 80, 166, 0.05);
    min-width: 120px;
    border-radius: 2px;
    min-height: 24px;

    ${(props) => props.colSpan
    ? `
                grid-column-start: ${(props.colStart || 0) + 1};
                grid-column-end: ${(props.colStart || 0) + 1 + props.colSpan}`
    : ``}
`;
export const RuleLabelColumn = styled.div `
    min-width: 120px;
    border-radius: 2px;
    min-height: 24px;

    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    -webkit-letter-spacing: 0px;
    -moz-letter-spacing: 0px;
    -ms-letter-spacing: 0px;
    letter-spacing: 0px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    color: rgba(39, 41, 50, 0.3);

    padding: 5px 10px;

    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}

    ${(props) => props.colSpan
    ? `
                grid-column-start: ${(props.colStart || 0) + 1};
                grid-column-end: ${(props.colStart || 0) + 1 + props.colSpan}`
    : ``}
`;
export const RuleTableEmptyAddColumn = styled.div `
    ${(props) => (props.isTestPassed ? "background: rgba(53, 182, 135);" : "background: rgba(64, 80, 166, 0.1);")}

    width: 24px;
    border-radius: 2px;
    min-height: 24px;
    ${(props) => props.x !== undefined
    ? `
                grid-column-start: ${props.x + 1};
                grid-column-end: ${props.x + 2};
            `
    : ``}
    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}
`;
export const RuleTableEmptyIndexColumn = styled.div `
    background: rgba(64, 80, 166, 0.1);
    min-width: 24px;
    border-radius: 2px;
    min-height: 24px;

    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 0px;

    display: flex;
    align-items: center;
    justify-content: center;

    ${(props) => (props.onClick ? (props.disabled ? "pointer-events: none;" : "cursor: pointer;") : "")}
`;
export const RuleTableHeaderSplit = styled.div `
    min-width: ${(props) => props.width || 120}px;
    min-height: ${(props) => props.height || 1}px;
    background: rgba(64, 80, 166, 0.1);
    border-radius: 1px;

    ${(props) => props.x !== undefined
    ? `
                grid-column-start: ${props.x + 1};
                grid-column-end: ${props.x + 2};
            `
    : ``}
    ${(props) => props.y !== undefined
    ? `
                grid-row-start: ${props.y + 1};
                grid-row-end: ${props.y + 2};
            `
    : ``}
`;
export const RuleEditorInTester = styled.div `
    display: flex;
    flex-direction: column;

    .RuleEditorRender {
        overflow: auto;
    }
`;
export const CellValuesRenderInTester = styled.div `
    padding: 6px 12px;
    display: flex;
    flex-direction: column;

    position: relative;
    width: 100%;
    height: 100%;

    ${(props) => (props.isError ? `background: ${TestingConstants.BACKGROUND_FAIL};` : "")}
`;
export const CellValueLine = styled.div `
    margin-bottom: 5px;
    ${(props) => props.testResult === "true"
    ? `color: rgba(53, 182, 135);`
    : props.testResult === "false"
        ? `
                color: rgb(238, 62, 84);
                text-decoration: line-through;
            `
        : ``};
`;
export const CellTestResultError = styled.div `
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
`;
//# sourceMappingURL=CommonStyles.js.map