"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpressionLogicStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const ExpressionBuilder_1 = require("../ExpressionBuilder");
const ExpressionData_1 = require("../Testing/ExpressionData");
const LogicData_1 = require("../Testing/LogicData");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const StoryData_1 = require("../../CommonUI/StoryBook/StoryData");
exports.ExpressionLogicStories = [
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpression)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpression)();
        exp.expression.showElseAsDefault = true;
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Default"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Default"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression.thenText = "Bonus Paid Is";
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If (Replaced)"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression.showElseAsDefault = true;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If (Default)"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIf)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression.showElseAsDefault = true;
        exp.expression.thenText = "company pays";
        exp.expression.defaultText = "everyone else gets";
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If (Default - Changed Text)"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIfElseWithSub)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If Else With Sub"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionElseIfElseWithSubWithBlanks)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Else If Else With Sub With Blanks"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionResultAtEnd)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Results At End"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getLogicExpressionResultElseIfAtEnd)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Then Results Else At End"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getIfSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Simple Rule"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getIfSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression.showSimpleReturn = false;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Simple Rule - No Return"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getIfElseSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Else Simple Rule"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getIfElseSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        exp.expression.showSimpleReturn = false;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "If Else Simple Rule No Return"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getExistsSimpleRule)();
        exp.inputData = () => {
            return (0, DataTestData_1.getFilledDataDefinition)();
        };
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Exists Read Only"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.getExistsSimpleRule)();
        exp.inputData = (0, DataTestData_1.getFilledDataDefinition)();
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Exists Writable"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.isFalseSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Is False"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.isTrueSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Is True"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.lessThanSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Less Than"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.lessThanEqualToSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Less Than Equal To"),
    new StoryData_1.StoryNode(() => {
        let exp = (0, LogicData_1.notSimpleRule)();
        exp.inputData = ExpressionData_1.expressionStoryData;
        return (0, jsx_runtime_1.jsx)(ExpressionBuilder_1.ExpressionBuilder, { expression: exp });
    }, "Expression Builder", "Logic", "Not"),
];
//# sourceMappingURL=ExpressionLogic-stories.js.map