"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

var _rubric = require("@pie-lib/rubric");

var _rubrics, _configuration;

var multiTraitDefaultModel = {
  description: false,
  excludeZero: false,
  halfScoring: false,
  pointLabels: true,
  scales: [],
  standards: false,
  visibleToStudent: true
};
var rubricDefaultModel = {
  points: ['', '', '', ''],
  sampleAnswers: [null, null, null, null],
  maxPoints: 3,
  excludeZero: false
};
var rubriclessDefaultModel = {
  maxPoints: 100,
  excludeZero: false,
  rubriclessInstructionEnabled: true
};
var multiTraitDefaultConfiguration = {
  baseInputConfiguration: {
    audio: {
      disabled: false
    },
    video: {
      disabled: false
    },
    image: {
      disabled: false
    },
    textAlign: {
      disabled: true
    },
    showParagraphs: {
      disabled: false
    }
  },
  expandedInput: {
    inputConfiguration: {
      math: {
        disabled: true
      },
      audio: {
        disabled: false
      },
      video: {
        disabled: false
      },
      image: {
        disabled: false
      }
    }
  },
  labelInput: {
    inputConfiguration: {
      math: {
        disabled: true
      },
      audio: {
        disabled: true
      },
      video: {
        disabled: true
      },
      image: {
        disabled: true
      }
    }
  },
  settingsPanelDisabled: false,
  excludeZeroDialogBoxContent: {
    title: 'Exclude 0 (Zero) from Score Point Values.',
    text: "<div>\n        You are about to exclude 0 from score point values.\n        <br/>\n        Some of the existing data has to be changed.\n        <br/>\n        Please choose if you want to:\n        <ul>\n          <li>\n            shift Labels and Descriptions to the left\n          </li>\n          <li>\n            remove 0 column with its Label and Description\n          </li>\n        </ul>\n      </div>"
  },
  includeZeroDialogBoxContent: {
    title: 'Include 0 (Zero) in Score Point Values.',
    text: "<div>\n        You are about to include 0 in score point values.\n        <br/>\n        Some of the existing data has to be changed.\n        <br/>\n        Please choose if you want to:\n        <ul>\n          <li>\n            shift Labels and Descriptions to the right\n          </li>\n          <li>\n            add 0 column with empty Label and Descriptions\n          </li>\n        </ul>\n      </div>"
  },
  deleteScaleDialogBoxContent: {
    title: 'Delete Scale',
    text: 'Are you sure you want to delete this scale?'
  },
  maxPointsDialogBoxContent: {
    title: 'Decreasing Max Points.',
    text: " You are about to decrease max score point value.\n        <br/>\n        All the Labels and Descriptions for scores above Max Point will be deleted."
  },
  spellCheck: {
    label: 'Spellcheck',
    settings: false,
    enabled: true
  },
  showExcludeZero: {
    settings: true,
    label: 'Exclude Zero'
  },
  showScorePointLabels: {
    settings: true,
    label: 'Show Score Point Labels'
  },
  showDescription: {
    settings: true,
    label: 'Show Description'
  },
  showVisibleToStudent: {
    settings: true,
    label: 'Visible to Student'
  },
  showHalfScoring: {
    settings: true,
    label: 'Half Scoring'
  },
  // commenting this in order to use the dynamic width if the width was not set by the client (PD-3203)
  // width: '900px',
  // these should not be set to true (should not be used) for now
  showStandards: {
    settings: false,
    label: 'Show Standards'
  },
  showLevelTagInput: {
    settings: false,
    label: 'Show Level Tag Input',
    enabled: false
  },
  dragAndDrop: {
    settings: true,
    label: 'Enable Drag and Drop',
    enabled: false
  },
  maxMaxPoints: 9
};
var rubricDefaultConfiguration = {
  baseInputConfiguration: {
    audio: {
      disabled: false
    },
    video: {
      disabled: false
    },
    image: {
      disabled: false
    },
    textAlign: {
      disabled: true
    },
    showParagraphs: {
      disabled: false
    }
  },
  showExcludeZero: {
    settings: true,
    label: 'Ability to exclude zero'
  },
  showMaxPoint: {
    settings: true,
    label: 'Show max points dropdown'
  },
  settingsPanelDisabled: false,
  maxMaxPoints: 9
};
var rubriclessDefaultConfiguration = {
  baseInputConfiguration: {
    audio: {
      disabled: false
    },
    video: {
      disabled: false
    },
    image: {
      disabled: false
    },
    textAlign: {
      disabled: true
    },
    showParagraphs: {
      disabled: false
    }
  },
  showExcludeZero: {
    settings: true,
    label: 'Ability to exclude zero'
  },
  showMaxPoint: {
    settings: true,
    label: 'Show max points dropdown'
  },
  settingsPanelDisabled: false,
  // shows us if it simple rubric or rubricless(simple rubric with less structure)
  rubricless: true,
  // scoring instruction for rubricless
  rubriclessInstruction: {
    settings: true,
    label: 'Instruction',
    inputConfiguration: {
      audio: {
        disabled: false
      },
      video: {
        disabled: false
      },
      image: {
        disabled: false
      }
    }
  },
  maxMaxPoints: 100
};
var _default = {
  model: {
    rubricType: 'simpleRubric',
    rubrics: (_rubrics = {}, (0, _defineProperty2["default"])(_rubrics, _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC, rubricDefaultModel), (0, _defineProperty2["default"])(_rubrics, _rubric.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC, multiTraitDefaultModel), (0, _defineProperty2["default"])(_rubrics, _rubric.RUBRIC_TYPES.RUBRICLESS, rubriclessDefaultModel), _rubrics)
  },
  configuration: (_configuration = {
    // width: '770px',
    rubricOptions: ['simpleRubric', 'multiTraitRubric', 'rubricless']
  }, (0, _defineProperty2["default"])(_configuration, _rubric.RUBRIC_TYPES.MULTI_TRAIT_RUBRIC, multiTraitDefaultConfiguration), (0, _defineProperty2["default"])(_configuration, _rubric.RUBRIC_TYPES.SIMPLE_RUBRIC, rubricDefaultConfiguration), (0, _defineProperty2["default"])(_configuration, _rubric.RUBRIC_TYPES.RUBRICLESS, rubriclessDefaultConfiguration), _configuration)
};
exports["default"] = _default;
//# sourceMappingURL=defaults.js.map