"use strict";

var _style = require("styled-jsx/style");

var _style2 = _interopRequireDefault(_style);

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

Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var ageOfDate_1 = require("./util/ageOfDate");
var ResultViewer_1 = require("./ResultViewer");
var cn = require("classnames");
var Results = function Results(_a) {
  var disableResize = _a.disableResize,
      setRef = _a.setRef,
      hideGutters = _a.hideGutters,
      responses = _a.responses;
  return React.createElement(
    "div",
    { className: cn('result-window', {
        disableResize: disableResize,
        isSubscription: responses.length > 1
      }), ref: setRef, "data-jsx": 409432309
    },
    React.createElement(_style2.default, {
      styleId: 409432309,
      css: ".result-window.disableResize[data-jsx=\"409432309\"] .CodeMirror-gutters {cursor: default !important;}.subscription-time[data-jsx=\"409432309\"] {height: 17px;margin-top: 12px;margin-bottom: 4px}.subscription-time[data-jsx=\"409432309\"][data-jsx=\"409432309\"]:before {content: '';top: 9px;left: 95px;border-top: 1px solid rgba(255, 255, 255, .2);}.subscription-time-text[data-jsx=\"409432309\"] {padding-left: 15px;}.result-viewer-wrapper[data-jsx=\"409432309\"] {position: absolute;top: 0;left: 0;right: 0;bottom: 0;overflow: auto;}.isSubscription[data-jsx=\"409432309\"] .result-viewer-wrapper[data-jsx=\"409432309\"] {position: relative;}.bgDarkBlue,\n.result-window[data-jsx=\"409432309\"],\n.subscription-time-text[data-jsx=\"409432309\"] {background-color: #172a3a;}.nosb,\n.result-window[data-jsx=\"409432309\"] {-ms-overflow-style: none;}.nosb::-webkit-scrollbar,\n.result-window[data-jsx=\"409432309\"]::-webkit-scrollbar {display: none;}.relative,\n.result-window[data-jsx=\"409432309\"],\n.subscription-time[data-jsx=\"409432309\"] {position: relative;}.relative,\n.result-window[data-jsx=\"409432309\"],\n.subscription-time[data-jsx=\"409432309\"] {position: relative;}.absolute,\n.subscription-time[data-jsx=\"409432309\"][data-jsx=\"409432309\"]:before {position: absolute;}.w100,\n.subscription-time[data-jsx=\"409432309\"][data-jsx=\"409432309\"]:before {width: 100%;}.bgDarkBlue,\n.result-window[data-jsx=\"409432309\"],\n.subscription-time-text[data-jsx=\"409432309\"] {background-color: #172a3a;}.white50,\n.subscription-time-text[data-jsx=\"409432309\"] {color: hsla(0,0%,100%,.5);}.f12,\n.subscription-time-text[data-jsx=\"409432309\"] {font-size: 12px;}"
    }),
    responses.map(function (response) {
      return React.createElement(
        "div",
        { key: response.resultID || String(response.time), "data-jsx": 409432309
        },
        responses.length > 1 && response.time && React.createElement(
          "div",
          { className: "subscription-time", "data-jsx": 409432309
          },
          React.createElement(
            "div",
            { className: "subscription-time-text", "data-jsx": 409432309
            },
            ageOfDate_1.default(response.time)
          )
        ),
        React.createElement(
          "div",
          { className: "result-viewer-wrapper", "data-jsx": 409432309
          },
          React.createElement(ResultViewer_1.ResultViewer, { value: response.date, hideGutters: hideGutters })
        )
      );
    })
  );
};
exports.default = Results;
//# sourceMappingURL=Results.jsx.map