No Description

index-c9837619.js 1.1KB

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