"use strict";

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

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _styles = require("@vincent_za/styles");

var _Modal = require("../../Modal");

var _constants = require("./constants");

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

function _templateObject3() {
  var data = _taggedTemplateLiteral(["\n  cursor: pointer;\n  width: ", ";\n  height: ", ";\n\n  .", " {\n    width: 14px;\n    height: 14px;\n  };\n\n  &:hover {\n    .", " {\n      fill: ", ";\n    };\n  };\n"]);

  _templateObject3 = function _templateObject3() {
    return data;
  };

  return data;
}

function _templateObject2() {
  var data = _taggedTemplateLiteral(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: ", ";\n  height: ", ";\n  cursor: pointer;\n\n  ", ";\n"]);

  _templateObject2 = function _templateObject2() {
    return data;
  };

  return data;
}

function _templateObject() {
  var data = _taggedTemplateLiteral(["\n  z-index: 1;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  padding: ", " 0;\n  width: ", ";\n  background-color: ", ";\n"]);

  _templateObject = function _templateObject() {
    return data;
  };

  return data;
}

function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

var Controls = _styledComponents.default.div(_templateObject(), _styles.REM_UNIT_XSM, _constants.STYLE_CONTROLS_WIDTH, _styles.CHARLESTON_GREEN);

exports.Controls = Controls;

var Control = _styledComponents.default.div(_templateObject2(), _constants.STYLE_CONTROLS_WIDTH, _constants.STYLE_CONTROLS_WIDTH, function (props) {
  return props.isDisabled && "\n    pointer-events: none;\n    opacity: 0.4;\n  ";
});

exports.Control = Control;
var PageControlTriggerTemplate = (0, _styledComponents.default)(_Modal.TriggerTemplate)(_templateObject3(), _constants.STYLE_CONTROLS_WIDTH, _constants.STYLE_CONTROLS_WIDTH, _Modal.CLASSNAME_TRIGGER_TEMPLATE_ICON, _Modal.CLASSNAME_TRIGGER_TEMPLATE_ICON, _styles.ISABELLINE);
exports.PageControlTriggerTemplate = PageControlTriggerTemplate;