Nessuna descrizione

index-c9837619.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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