"use strict";

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); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useStyles = void 0;
var _antdStyle = require("antd-style");
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var useStyles = exports.useStyles = (0, _antdStyle.createStyles)(function (_ref) {
  var token = _ref.token,
    css = _ref.css,
    prefixCls = _ref.prefixCls;
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'specicon' + prefixCls, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n    color: ", ";\n    display: inline-block;\n    color: inherit;\n    font-size: 16px;\n    font-style: normal;\n    //line-height: 0;\n    text-align: center;\n    text-transform: none;\n    vertical-align: -0.125em;\n    text-rendering: optimizeLegibility;\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n  "])), token.colorText)), 'spec-icon-CSS', css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n    color: ", ";\n    display: inline-block;\n    font-size: 16px;\n    font-style: normal;\n    //line-height: 0;\n    text-align: center;\n    text-transform: none;\n    vertical-align: -0.125em;\n    text-rendering: optimizeLegibility;\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n  "])), token.colorText)), "SpecButtonGroupCSS", css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n    display: inline-block;\n    vertical-align: middle;\n    .ant-btn + .ant-btn {\n      margin-left: ", "px;\n    }\n  "])), token.paddingSM)), "SpecButtonGroupTextCSS", css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n    position: relative;\n    display: inline-block;\n    cursor: pointer;\n    color: ", ";\n\n    &[disabled] { \n      cursor: not-allowed;\n      color: ", ";\n    }\n\n    & + .spec-button-group-text {\n      position: relative;\n      margin-left: ", "px;\n\n      &:before {\n        position: absolute;\n        content: '';\n        top: 50%;\n        left: calc(-", "px / 2);\n        transform: translate(0, -50%);\n        display: inline-block;\n        height: .9em;\n        vertical-align: middle;\n        border-left: 1px solid ", ";\n\n      }\n    }\n  "])), token.colorPrimary, token.colorTextDisabled, token.paddingSM, token.paddingSM, token.colorBorder));
});