Нема описа

index-4c407188.js 1.2KB

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