Нет описания

index-1143667e.js 1.6KB

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