Brak opisu

index-e3cf212a.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. function createCommonjsModule(fn, module) {
  2. return module = { exports: {} }, fn(module, module.exports), module.exports;
  3. }
  4. var classnames = createCommonjsModule(function (module) {
  5. /*!
  6. Copyright (c) 2017 Jed Watson.
  7. Licensed under the MIT License (MIT), see
  8. http://jedwatson.github.io/classnames
  9. */
  10. /* global define */
  11. (function () {
  12. var hasOwn = {}.hasOwnProperty;
  13. function classNames () {
  14. var classes = [];
  15. for (var i = 0; i < arguments.length; i++) {
  16. var arg = arguments[i];
  17. if (!arg) continue;
  18. var argType = typeof arg;
  19. if (argType === 'string' || argType === 'number') {
  20. classes.push(arg);
  21. } else if (Array.isArray(arg) && arg.length) {
  22. var inner = classNames.apply(null, arg);
  23. if (inner) {
  24. classes.push(inner);
  25. }
  26. } else if (argType === 'object') {
  27. for (var key in arg) {
  28. if (hasOwn.call(arg, key) && arg[key]) {
  29. classes.push(key);
  30. }
  31. }
  32. }
  33. }
  34. return classes.join(' ');
  35. }
  36. if ( module.exports) {
  37. classNames.default = classNames;
  38. module.exports = classNames;
  39. } else {
  40. window.classNames = classNames;
  41. }
  42. }());
  43. });
  44. export { classnames as c };
  45. //# sourceMappingURL=index-e3cf212a.js.map