"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _reactRouterDom = require("react-router-dom");

var _index = require("./index");

var _jsxRuntime = require("react/jsx-runtime");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = {
  title: "IncidentList",
  component: _index.IncidentList
};
exports.default = _default;
var incidents = [{
  id: "b398da27-7047-407f-a07d-80d0ba168bd0",
  title: "Incident from config",
  created_by: "017fb74a-9c90-2074-6b29-61d71507c231",
  commander_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  communicator_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  severity: 2,
  description: "",
  type: "issue",
  status: "open",
  created_at: "2022-04-10T11:32:37.285341",
  updated_at: "2022-04-10T11:32:37.285341"
}, {
  id: "749f6387-11a2-4b67-b6dd-625987e6dc60",
  title: "Test Incident 4",
  created_by: "017fb74a-9c90-2074-6b29-61d71507c231",
  commander_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  communicator_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  severity: 0,
  description: "test",
  type: "issue",
  status: "open",
  created_at: "2022-04-05T07:55:30.479768",
  updated_at: "2022-04-05T07:55:30.479768"
}, {
  id: "9419252b-aea4-4a49-8fff-e2d022fff588",
  title: "Test Incident with hunks",
  created_by: "017fb74a-9c90-2074-6b29-61d71507c231",
  commander_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  communicator_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  severity: 0,
  description: "test",
  type: "issue",
  status: "open",
  created_at: "2022-04-05T07:23:11.288297",
  updated_at: "2022-04-05T07:23:11.288297"
}, {
  id: "1aa1a99a-b487-495c-9cd9-a13cf717bc10",
  title: "Test incident 3",
  created_by: "017fb74a-9c90-2074-6b29-61d71507c231",
  commander_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  communicator_id: "017fb74a-9c90-2074-6b29-61d71507c231",
  severity: 0,
  description: "test",
  type: "issue",
  status: "open",
  created_at: "2022-04-05T07:19:03.546871",
  updated_at: "2022-04-05T07:19:03.546871"
}];

var Template = function Template(arg) {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.MemoryRouter, {
    initialEntries: ["/incidents"],
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Routes, {
      children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
        element: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.IncidentList, _objectSpread({}, arg)),
        path: "/incidents"
      })
    })
  });
};

var Variant1 = Template.bind({});
exports.Variant1 = Variant1;
Variant1.args = {
  list: incidents
};