import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/taggedTemplateLiteralLoose";

var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;

import React from 'react';
import styled from 'styled-components';
import { IconStore, IconDelivery } from '../../../../../Common/Icons';
import { Orders } from '../../../../../Common';
export var ProgressBar = (_ref) => {
  var {
    status
  } = _ref;
  return /*#__PURE__*/React.createElement(Progress, null, /*#__PURE__*/React.createElement(Bar, null, /*#__PURE__*/React.createElement(Progress1, {
    status: status
  }), /*#__PURE__*/React.createElement(Progress2, {
    status: status
  }), /*#__PURE__*/React.createElement(Progress3, {
    status: status
  }), /*#__PURE__*/React.createElement(Orders, null), /*#__PURE__*/React.createElement(IconDelivery, null), /*#__PURE__*/React.createElement(IconStore, null)), /*#__PURE__*/React.createElement(Status, null, status));
};
var Progress = styled.div.attrs({
  className: 'd-flex '
})(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n  & svg {\n    height: 3rem;\n    position: absolute;\n  }\n  & svg:first-of-type {\n    left: 1.1rem;\n  }\n  & svg:nth-of-type(2) {\n    left: 8.6rem;\n  }\n  & svg:last-of-type {\n    height: 2.6rem;\n    left: 16.3rem;\n    top: 0.2rem;\n  }\n"])));
var Bar = styled.div.attrs({
  className: 'd-flex my-2'
})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n  width: 100%;\n  position: relative;\n"])));
var Progress1 = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n  width: 4.5rem;\n  height: 4.5rem;\n  position: absolute;\n  border-radius: 50%;\n  border: 2px solid\n    ", ";\n  left: 0rem;\n  top: -0.8rem;\n\n  &::after {\n    content: '';\n    width: 80%;\n    border: 2px solid\n      ", ";\n    position: absolute;\n    top: 50%;\n    right: -80%;\n  }\n"])), props => props.status === 'Confirmed' ? '#000' : '#ccc', props => props.status === 'Confirmed' ? '#000' : '#ccc');
var Progress2 = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n  width: 4.5rem;\n  height: 4.5rem;\n  position: absolute;\n  border-radius: 50%;\n  border: 2px solid\n    ", ";\n  left: 7.4rem;\n  top: -0.8rem;\n  &::after {\n    content: '';\n    width: 90%;\n    border: 2px solid\n      ", ";\n    position: absolute;\n    top: 50%;\n    right: -90%;\n  }\n"])), props => props.status === 'Confirmed' ? '#000' : '#ccc', props => props.status === 'Confirmed' ? '#000' : '#ccc');
var Progress3 = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n  width: 4.5rem;\n  height: 4.5rem;\n  position: absolute;\n  border-radius: 50%;\n  border: 2px solid\n    ", ";\n  left: 15.3rem;\n  top: -0.8rem;\n"])), props => props.status === 'Complete' ? '#000' : '#ccc');
var Status = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n  line-height: 4.5rem;\n  font-size: 1.8rem;\n  font-weight: 550;\n  margin-left: 21rem;\n  @media (max-width: ", ") {\n    margin: 5rem 0 0 0;\n  }\n"])), (_ref2) => {
  var {
    theme
  } = _ref2;
  return theme.breakpoints.xs.max;
});
//# sourceMappingURL=index.js.map