"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.LineScaleNearRightEdgeWithBiggerLabel = exports.LineScaleNearRightEdge = exports.LineScaleNearLeftEdgeWithBiggerLabel = exports.LineScaleNearLeftEdge = exports.LineScaleInTheMiddle = exports.LineScaleAtRightEdge = exports.LineScaleAtLeftEdge = exports.LineScaleAlmostAtRightEdge = exports.LineScaleAlmostAtLeftEdge = void 0;
var _LineScale = _interopRequireDefault(require("./LineScale.mdx"));
var _ = _interopRequireDefault(require("."));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var meta = {
  component: _.default,
  title: 'Molecules / LineScale',
  parameters: {
    docs: {
      page: _LineScale.default
    }
  }
};
var _default = exports.default = meta;
var LineScaleAtLeftEdge = exports.LineScaleAtLeftEdge = {
  args: {
    value: 0,
    valueLabel: '0.00',
    averageValue: 0,
    averageValueLabel: 'Average for category 0.00',
    minLabel: '0',
    maxLabel: '100'
  }
};
var LineScaleAlmostAtLeftEdge = exports.LineScaleAlmostAtLeftEdge = {
  args: {
    value: 1,
    valueLabel: '1.00',
    averageValue: 1,
    averageValueLabel: 'Average for category 1.00',
    minLabel: '0',
    maxLabel: '100'
  }
};
var LineScaleNearLeftEdge = exports.LineScaleNearLeftEdge = {
  args: {
    value: 5,
    valueLabel: '5.00',
    averageValue: 5,
    averageValueLabel: 'Average for category 5.00',
    minLabel: 'Lowest value',
    maxLabel: 'Highest value'
  }
};
var LineScaleNearLeftEdgeWithBiggerLabel = exports.LineScaleNearLeftEdgeWithBiggerLabel = {
  args: {
    value: 5,
    valueLabel: '5.00',
    averageValue: 5,
    averageValueLabel: 'Average for category 5.00',
    minLabel: '0',
    maxLabel: '100'
  }
};
var LineScaleInTheMiddle = exports.LineScaleInTheMiddle = {
  args: {
    value: 50,
    valueLabel: '50',
    valueColor: '#FF0000',
    averageValue: 50,
    averageValueLabel: 'Average for category 50.00',
    minLabel: '0',
    maxLabel: '100'
  }
};
var LineScaleNearRightEdge = exports.LineScaleNearRightEdge = {
  args: {
    value: 95,
    valueLabel: '95.00',
    averageValue: 95,
    averageValueLabel: 'Average for category 95.00',
    minLabel: '0',
    maxLabel: '100'
  }
};
var LineScaleNearRightEdgeWithBiggerLabel = exports.LineScaleNearRightEdgeWithBiggerLabel = {
  args: _objectSpread(_objectSpread({}, LineScaleNearRightEdge.args), {}, {
    valueLabel: 'Latest 95.00'
  })
};
var LineScaleAlmostAtRightEdge = exports.LineScaleAlmostAtRightEdge = {
  args: {
    value: 99,
    valueLabel: '99.00',
    averageValue: 99,
    averageValueLabel: 'Average for category 99.00',
    minLabel: 'Lowest value',
    maxLabel: 'Highest value'
  }
};
var LineScaleAtRightEdge = exports.LineScaleAtRightEdge = {
  args: {
    value: 100,
    valueLabel: '100.00',
    averageValue: 100,
    averageValueLabel: 'Average for category 100.00',
    minLabel: '0',
    maxLabel: '100'
  }
};