@wise/dynamic-flow-client 2.8.8 → 2.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -47,43 +47,52 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
47
47
  ));
48
48
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
49
49
 
50
- // ../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js
50
+ // ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
51
51
  var require_classnames = __commonJS({
52
- "../../node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js"(exports, module2) {
52
+ "../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(exports, module2) {
53
53
  "use strict";
54
54
  (function() {
55
55
  "use strict";
56
56
  var hasOwn = {}.hasOwnProperty;
57
- var nativeCodeString = "[native code]";
58
57
  function classNames8() {
59
- var classes = [];
58
+ var classes = "";
60
59
  for (var i = 0; i < arguments.length; i++) {
61
60
  var arg = arguments[i];
62
- if (!arg)
63
- continue;
64
- var argType = typeof arg;
65
- if (argType === "string" || argType === "number") {
66
- classes.push(arg);
67
- } else if (Array.isArray(arg)) {
68
- if (arg.length) {
69
- var inner = classNames8.apply(null, arg);
70
- if (inner) {
71
- classes.push(inner);
72
- }
73
- }
74
- } else if (argType === "object") {
75
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
76
- classes.push(arg.toString());
77
- continue;
78
- }
79
- for (var key in arg) {
80
- if (hasOwn.call(arg, key) && arg[key]) {
81
- classes.push(key);
82
- }
83
- }
61
+ if (arg) {
62
+ classes = appendClass(classes, parseValue(arg));
84
63
  }
85
64
  }
86
- return classes.join(" ");
65
+ return classes;
66
+ }
67
+ function parseValue(arg) {
68
+ if (typeof arg === "string" || typeof arg === "number") {
69
+ return arg;
70
+ }
71
+ if (typeof arg !== "object") {
72
+ return "";
73
+ }
74
+ if (Array.isArray(arg)) {
75
+ return classNames8.apply(null, arg);
76
+ }
77
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
78
+ return arg.toString();
79
+ }
80
+ var classes = "";
81
+ for (var key in arg) {
82
+ if (hasOwn.call(arg, key) && arg[key]) {
83
+ classes = appendClass(classes, key);
84
+ }
85
+ }
86
+ return classes;
87
+ }
88
+ function appendClass(value, newClass) {
89
+ if (!newClass) {
90
+ return value;
91
+ }
92
+ if (value) {
93
+ return value + " " + newClass;
94
+ }
95
+ return value + newClass;
87
96
  }
88
97
  if (typeof module2 !== "undefined" && module2.exports) {
89
98
  classNames8.default = classNames8;
@@ -200,7 +209,7 @@ var require_react_webcam = __commonJS({
200
209
  "react"
201
210
  );
202
211
  var react__WEBPACK_IMPORTED_MODULE_0___default = /* @__PURE__ */ __webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
203
- var __extends = function() {
212
+ var __extends = /* @__PURE__ */ function() {
204
213
  var extendStatics = function(d, b) {
205
214
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
206
215
  d2.__proto__ = b2;