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B,CACT,GAIA,OAAO,CAEN","file":"/npm/swapcard-react-ui@1.1.1/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/swapcard-react-ui@1.1.1/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('prop-types')) :\n\ttypeof define === 'function' && define.amd ? define(['react', 'prop-types'], factory) :\n\t(global.main = factory(global.React,global.PropTypes));\n}(this, (function (React,PropTypes) { 'use strict';\n\nvar React__default = 'default' in React ? React['default'] : React;\nPropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes;\n\nvar DEFAULT_THEME = {\n  fonts: {\n    main: \"Open Sans, sans-serif\"\n  },\n  colors: {\n    primary: \"#123456\",\n    secondary: \"#58b570\",\n    actionsPrimary: \"#58b570\",\n    actionsSecondary: \"#678098\",\n    white: \"#ffffff\",\n    textPrimary: \"#123456\",\n    borders: \"#dddddd\"\n  },\n  radius: {\n    sm: \"3px\",\n    lg: \"30px\",\n    circle: \"50%\"\n  },\n  shadow: {\n    sm: \"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)\",\n    md: \"0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)\"\n  }\n};\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n  return typeof obj;\n} : function (obj) {\n  return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar _createClass = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n    }\n  }return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n  };\n}();\n\nfunction _classCallCheck(instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n  if (!self) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }return call && ((typeof call === \"undefined\" ? \"undefined\" : _typeof(call)) === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n  if (typeof superClass !== \"function\" && superClass !== null) {\n    throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : _typeof(superClass)));\n  }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar ThemeProvider = function (_React$Component) {\n  _inherits(ThemeProvider, _React$Component);\n\n  function ThemeProvider() {\n    _classCallCheck(this, ThemeProvider);\n\n    return _possibleConstructorReturn(this, (ThemeProvider.__proto__ || Object.getPrototypeOf(ThemeProvider)).apply(this, arguments));\n  }\n\n  _createClass(ThemeProvider, [{\n    key: \"getChildContext\",\n    value: function getChildContext() {\n      return {\n        theme: this.props.theme\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return this.props.children;\n    }\n  }]);\n\n  return ThemeProvider;\n}(React__default.Component);\n\nThemeProvider.defaultProps = {\n  theme: DEFAULT_THEME\n};\n\nThemeProvider.childContextTypes = {\n  theme: PropTypes.object.isRequired\n};\n\nvar _extends$1 = Object.assign || function (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];for (var key in source) {\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\n        target[key] = source[key];\n      }\n    }\n  }return target;\n};\n\nvar _createClass$1 = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n    }\n  }return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n  };\n}();\n\nfunction _classCallCheck$1(instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n}\n\nfunction _possibleConstructorReturn$1(self, call) {\n  if (!self) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }return call && ((typeof call === \"undefined\" ? \"undefined\" : _typeof(call)) === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits$1(subClass, superClass) {\n  if (typeof superClass !== \"function\" && superClass !== null) {\n    throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : _typeof(superClass)));\n  }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar withTheme = function withTheme(WrappedComponent) {\n  var ThemedComponent = function (_Component) {\n    _inherits$1(ThemedComponent, _Component);\n\n    function ThemedComponent() {\n      _classCallCheck$1(this, ThemedComponent);\n\n      return _possibleConstructorReturn$1(this, (ThemedComponent.__proto__ || Object.getPrototypeOf(ThemedComponent)).apply(this, arguments));\n    }\n\n    _createClass$1(ThemedComponent, [{\n      key: \"render\",\n      value: function render() {\n        var theme = this.context.theme;\n\n        return React__default.createElement(WrappedComponent, _extends$1({}, this.props, { theme: theme }));\n      }\n    }]);\n\n    return ThemedComponent;\n  }(React.Component);\n\n  ThemedComponent.contextTypes = {\n    theme: PropTypes.object.isRequired\n  };\n  return ThemedComponent;\n};\n\nvar index = { ThemeProvider: ThemeProvider, withTheme: withTheme };\n\nreturn index;\n\n})));\n"]}