GoScrobble/web/node_modules/.cache/babel-loader/9eb82cb7efed626c8e6427f5c3d5ee2c.json

1 line
14 KiB
JSON
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"\"use strict\";\n\nvar __makeTemplateObject = this && this.__makeTemplateObject || function (cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n\n return cooked;\n};\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/** @jsx jsx */\n\nvar React = __importStar(require(\"react\"));\n\nvar core_1 = require(\"@emotion/core\");\n\nvar helpers_1 = require(\"./helpers\");\n\nvar scale = core_1.keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n 0% {transform: scaley(1.0)}\\n 50% {transform: scaley(0.4)}\\n 100% {transform: scaley(1.0)}\\n\"], [\"\\n 0% {transform: scaley(1.0)}\\n 50% {transform: scaley(0.4)}\\n 100% {transform: scaley(1.0)}\\n\"])));\n\nvar Loader = function (_super) {\n __extends(Loader, _super);\n\n function Loader() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.style = function (i) {\n var _a = _this.props,\n color = _a.color,\n width = _a.width,\n height = _a.height,\n margin = _a.margin,\n radius = _a.radius;\n return core_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject([\"\\n background-color: \", \";\\n width: \", \";\\n height: \", \";\\n margin: \", \";\\n border-radius: \", \";\\n display: inline-block;\\n animation: \", \" 1s \", \"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\\n animation-fill-mode: both;\\n \"], [\"\\n background-color: \", \";\\n width: \", \";\\n height: \", \";\\n margin: \", \";\\n border-radius: \", \";\\n display: inline-block;\\n animation: \", \" 1s \", \"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08);\\n animation-fill-mode: both;\\n \"])), color, helpers_1.cssValue(width || Loader.defaultProps.width), helpers_1.cssValue(height || Loader.defaultProps.height), helpers_1.cssValue(margin || Loader.defaultProps.margin), helpers_1.cssValue(radius || Loader.defaultProps.radius), scale, i * 0.1);\n };\n\n return _this;\n }\n\n Loader.prototype.render = function () {\n var _a = this.props,\n loading = _a.loading,\n css = _a.css;\n return loading ? core_1.jsx(\"span\", {\n css: [css]\n }, core_1.jsx(\"span\", {\n css: this.style(1)\n }), core_1.jsx(\"span\", {\n css: this.style(2)\n }), core_1.jsx(\"span\", {\n css: this.style(3)\n }), core_1