You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
4.4 KiB
101 lines
4.4 KiB
"use strict";
|
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _react = _interopRequireDefault(require("react"));
|
|
|
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
|
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function _templateObject4() {
|
|
var data = _taggedTemplateLiteral(["\n width: 60px;\n height: 60px;\n position: absolute;\n top: 0;\n left: 0;\n"]);
|
|
|
|
_templateObject4 = function _templateObject4() {
|
|
return data;
|
|
};
|
|
|
|
return data;
|
|
}
|
|
|
|
function _templateObject3() {
|
|
var data = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #1890ff;\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n animation-delay: -1s;\n animation: ", " 2s infinite ease-in-out;\n"]);
|
|
|
|
_templateObject3 = function _templateObject3() {
|
|
return data;
|
|
};
|
|
|
|
return data;
|
|
}
|
|
|
|
function _templateObject2() {
|
|
var data = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #1890ff;\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n animation: ", " 2s infinite ease-in-out;\n"]);
|
|
|
|
_templateObject2 = function _templateObject2() {
|
|
return data;
|
|
};
|
|
|
|
return data;
|
|
}
|
|
|
|
function _templateObject() {
|
|
var data = _taggedTemplateLiteral(["{\n 0%, 100% { \n transform: scale(0.4);\n } 50% { \n transform: scale(1.0);\n }\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 bounceTransform = (0, _styledComponents.keyframes)(_templateObject());
|
|
|
|
var Bounce = _styledComponents.default.div(_templateObject2(), bounceTransform);
|
|
|
|
var BounceTwo = _styledComponents.default.div(_templateObject3(), bounceTransform);
|
|
|
|
var Spinning = _styledComponents.default.div(_templateObject4());
|
|
|
|
var _default = function _default() {
|
|
return /*#__PURE__*/_react.default.createElement(Spinning, null, /*#__PURE__*/_react.default.createElement("svg", {
|
|
version: "1.1",
|
|
id: "dc-spinner",
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
x: "0px",
|
|
y: "0px",
|
|
width: "60px",
|
|
height: "60px",
|
|
viewBox: "3 3 34 34",
|
|
preserveAspectRatio: "xMinYMin meet"
|
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
fill: "#1890ff",
|
|
stroke: "#1890ff",
|
|
strokeWidth: "1",
|
|
strokeMiterlimit: "10",
|
|
d: "M5.203,20 c0-8.159,6.638-14.797,14.797-14.797V5C11.729,5,5,11.729,5,20s6.729,15,15,15v-0.203C11.841,34.797,5.203,28.159,5.203,20z",
|
|
transform: "rotate(278.217 20 20)"
|
|
}, /*#__PURE__*/_react.default.createElement("animateTransform", {
|
|
attributeName: "transform",
|
|
type: "rotate",
|
|
from: "0 20 20",
|
|
to: "360 20 20",
|
|
calcMode: "spline",
|
|
keySplines: "0.2, 0.2, 0.2, 0.2",
|
|
keyTimes: "0;1",
|
|
dur: "1.2s",
|
|
repeatCount: "indefinite"
|
|
}))));
|
|
};
|
|
|
|
exports.default = _default; |