"use strict";

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

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

var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/lib/format-message"));

var _constants = require("@instructure/quiz-common/lib/constants");

var _default = function _default(val, options) {
  var limit = options.limit || _constants.BUILD_CHAR_LIMIT;

  if (val && JSON.stringify(val).length > limit) {
    return "Prese\u017Eena je najve\u010Dja vsebina.";
  }
};

exports.default = _default;