暫無描述

index-b8d80d39.js 1.5KB

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