@sunggang/ui-lib 0.3.39 → 0.3.40
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/index.esm2.js +86 -68
- package/package.json +1 -1
package/index.esm2.js
CHANGED
|
@@ -440,7 +440,7 @@ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
|
440
440
|
* This source code is licensed under the MIT license found in the
|
|
441
441
|
* LICENSE file in the root directory of this source tree.
|
|
442
442
|
*/
|
|
443
|
-
function _instanceof$
|
|
443
|
+
function _instanceof$i(left, right) {
|
|
444
444
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
445
445
|
return !!right[Symbol.hasInstance](left);
|
|
446
446
|
} else {
|
|
@@ -499,10 +499,10 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
499
499
|
} catch (ex) {
|
|
500
500
|
error = ex;
|
|
501
501
|
}
|
|
502
|
-
if (error && !_instanceof$
|
|
502
|
+
if (error && !_instanceof$i(error, Error)) {
|
|
503
503
|
printWarning$2((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker " + "function must return `null` or an `Error` but returned a " + (typeof error === "undefined" ? "undefined" : _type_of$e(error)) + ". " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).");
|
|
504
504
|
}
|
|
505
|
-
if (_instanceof$
|
|
505
|
+
if (_instanceof$i(error, Error) && !(error.message in loggedTypeFailures)) {
|
|
506
506
|
// Only monitor this failure once because there tends to be a lot of the
|
|
507
507
|
// same error.
|
|
508
508
|
loggedTypeFailures[error.message] = true;
|
|
@@ -530,7 +530,7 @@ var checkPropTypes_1 = checkPropTypes$1;
|
|
|
530
530
|
* This source code is licensed under the MIT license found in the
|
|
531
531
|
* LICENSE file in the root directory of this source tree.
|
|
532
532
|
*/
|
|
533
|
-
function _instanceof$
|
|
533
|
+
function _instanceof$h(left, right) {
|
|
534
534
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
535
535
|
return !!right[Symbol.hasInstance](left);
|
|
536
536
|
} else {
|
|
@@ -755,7 +755,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
755
755
|
}
|
|
756
756
|
for(var i = 0; i < propValue.length; i++){
|
|
757
757
|
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret$1);
|
|
758
|
-
if (_instanceof$
|
|
758
|
+
if (_instanceof$h(error, Error)) {
|
|
759
759
|
return error;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
@@ -787,7 +787,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
787
787
|
}
|
|
788
788
|
function createInstanceTypeChecker(expectedClass) {
|
|
789
789
|
function validate(props, propName, componentName, location, propFullName) {
|
|
790
|
-
if (!_instanceof$
|
|
790
|
+
if (!_instanceof$h(props[propName], expectedClass)) {
|
|
791
791
|
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
792
792
|
var actualClassName = getClassName(props[propName]);
|
|
793
793
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
@@ -838,7 +838,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
838
838
|
for(var key in propValue){
|
|
839
839
|
if (has(propValue, key)) {
|
|
840
840
|
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret$1);
|
|
841
|
-
if (_instanceof$
|
|
841
|
+
if (_instanceof$h(error, Error)) {
|
|
842
842
|
return error;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
@@ -993,7 +993,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
993
993
|
return true;
|
|
994
994
|
}
|
|
995
995
|
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
996
|
-
if (typeof Symbol === "function" && _instanceof$
|
|
996
|
+
if (typeof Symbol === "function" && _instanceof$h(propValue, Symbol)) {
|
|
997
997
|
return true;
|
|
998
998
|
}
|
|
999
999
|
return false;
|
|
@@ -1004,7 +1004,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1004
1004
|
if (Array.isArray(propValue)) {
|
|
1005
1005
|
return "array";
|
|
1006
1006
|
}
|
|
1007
|
-
if (_instanceof$
|
|
1007
|
+
if (_instanceof$h(propValue, RegExp)) {
|
|
1008
1008
|
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1009
1009
|
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1010
1010
|
// passes PropTypes.object.
|
|
@@ -1023,9 +1023,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
var propType = getPropType(propValue);
|
|
1025
1025
|
if (propType === "object") {
|
|
1026
|
-
if (_instanceof$
|
|
1026
|
+
if (_instanceof$h(propValue, Date)) {
|
|
1027
1027
|
return "date";
|
|
1028
|
-
} else if (_instanceof$
|
|
1028
|
+
} else if (_instanceof$h(propValue, RegExp)) {
|
|
1029
1029
|
return "regexp";
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
@@ -1147,7 +1147,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
1147
1147
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1148
1148
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1149
1149
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1150
|
-
***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ function _instanceof$
|
|
1150
|
+
***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ function _instanceof$g(left, right) {
|
|
1151
1151
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
1152
1152
|
return !!right[Symbol.hasInstance](left);
|
|
1153
1153
|
} else {
|
|
@@ -1155,7 +1155,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
var extendStatics = function extendStatics1(d, b) {
|
|
1158
|
-
extendStatics = Object.setPrototypeOf || _instanceof$
|
|
1158
|
+
extendStatics = Object.setPrototypeOf || _instanceof$g({
|
|
1159
1159
|
__proto__: []
|
|
1160
1160
|
}, Array) && function(d, b) {
|
|
1161
1161
|
d.__proto__ = b;
|
|
@@ -1184,7 +1184,7 @@ var __assign = function __assign1() {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1186
1186
|
function adopt(value) {
|
|
1187
|
-
return _instanceof$
|
|
1187
|
+
return _instanceof$g(value, P) ? value : new P(function(resolve) {
|
|
1188
1188
|
resolve(value);
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
@@ -6658,7 +6658,7 @@ var _default = function(file, acceptedFiles) {
|
|
|
6658
6658
|
return true;
|
|
6659
6659
|
};
|
|
6660
6660
|
|
|
6661
|
-
function _instanceof$
|
|
6661
|
+
function _instanceof$f(left, right) {
|
|
6662
6662
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
6663
6663
|
return !!right[Symbol.hasInstance](left);
|
|
6664
6664
|
} else {
|
|
@@ -6984,7 +6984,7 @@ function isIeOrEdge() {
|
|
|
6984
6984
|
* @param {any} v
|
|
6985
6985
|
* @returns {boolean} True if v is an abort exception.
|
|
6986
6986
|
*/ function isAbort(v) {
|
|
6987
|
-
return _instanceof$
|
|
6987
|
+
return _instanceof$f(v, DOMException) && (v.name === "AbortError" || v.code === v.ABORT_ERR);
|
|
6988
6988
|
}
|
|
6989
6989
|
/**
|
|
6990
6990
|
* Check if v is a security error.
|
|
@@ -6993,7 +6993,7 @@ function isIeOrEdge() {
|
|
|
6993
6993
|
* @param {any} v
|
|
6994
6994
|
* @returns {boolean} True if v is a security error.
|
|
6995
6995
|
*/ function isSecurityError(v) {
|
|
6996
|
-
return _instanceof$
|
|
6996
|
+
return _instanceof$f(v, DOMException) && (v.name === "SecurityError" || v.code === v.SECURITY_ERR);
|
|
6997
6997
|
}
|
|
6998
6998
|
/**
|
|
6999
6999
|
* Check if v is a MIME type string.
|
|
@@ -8138,7 +8138,7 @@ function _objectSpread2$7(e) {
|
|
|
8138
8138
|
return e;
|
|
8139
8139
|
}
|
|
8140
8140
|
|
|
8141
|
-
function _instanceof$
|
|
8141
|
+
function _instanceof$e(left, right) {
|
|
8142
8142
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
8143
8143
|
return !!right[Symbol.hasInstance](left);
|
|
8144
8144
|
} else {
|
|
@@ -8222,10 +8222,10 @@ function ctorName(val) {
|
|
|
8222
8222
|
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
8223
8223
|
}
|
|
8224
8224
|
function isError(val) {
|
|
8225
|
-
return _instanceof$
|
|
8225
|
+
return _instanceof$e(val, Error) || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
8226
8226
|
}
|
|
8227
8227
|
function isDate(val) {
|
|
8228
|
-
if (_instanceof$
|
|
8228
|
+
if (_instanceof$e(val, Date)) return true;
|
|
8229
8229
|
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
8230
8230
|
}
|
|
8231
8231
|
function kindOf(val) {
|
|
@@ -10152,7 +10152,7 @@ var rafSchd = function rafSchd(fn) {
|
|
|
10152
10152
|
};
|
|
10153
10153
|
var rafSchd$1 = rafSchd;
|
|
10154
10154
|
|
|
10155
|
-
function _instanceof$
|
|
10155
|
+
function _instanceof$d(left, right) {
|
|
10156
10156
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
10157
10157
|
return !!right[Symbol.hasInstance](left);
|
|
10158
10158
|
} else {
|
|
@@ -10248,7 +10248,7 @@ var ErrorBoundary = function(_React$Component) {
|
|
|
10248
10248
|
process.env.NODE_ENV !== "production" ? warning$1("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") : void 0;
|
|
10249
10249
|
}
|
|
10250
10250
|
var err = event.error;
|
|
10251
|
-
if (_instanceof$
|
|
10251
|
+
if (_instanceof$d(err, RbdInvariant)) {
|
|
10252
10252
|
event.preventDefault();
|
|
10253
10253
|
if (process.env.NODE_ENV !== "production") {
|
|
10254
10254
|
error(err.message);
|
|
@@ -10276,7 +10276,7 @@ var ErrorBoundary = function(_React$Component) {
|
|
|
10276
10276
|
]);
|
|
10277
10277
|
};
|
|
10278
10278
|
_proto.componentDidCatch = function componentDidCatch(err) {
|
|
10279
|
-
if (_instanceof$
|
|
10279
|
+
if (_instanceof$d(err, RbdInvariant)) {
|
|
10280
10280
|
if (process.env.NODE_ENV !== "production") {
|
|
10281
10281
|
error(err.message);
|
|
10282
10282
|
}
|
|
@@ -14290,7 +14290,7 @@ var getWindowFromEl = function getWindowFromEl(el) {
|
|
|
14290
14290
|
return el && el.ownerDocument ? el.ownerDocument.defaultView : window;
|
|
14291
14291
|
};
|
|
14292
14292
|
function isHtmlElement(el) {
|
|
14293
|
-
return _instanceof$
|
|
14293
|
+
return _instanceof$d(el, getWindowFromEl(el).HTMLElement);
|
|
14294
14294
|
}
|
|
14295
14295
|
function findDragHandle(contextId, draggableId) {
|
|
14296
14296
|
var selector = "[" + dragHandle.contextId + '="' + contextId + '"]';
|
|
@@ -15531,7 +15531,7 @@ var getBorderBoxCenterPosition = function getBorderBoxCenterPosition(el) {
|
|
|
15531
15531
|
return getRect(el.getBoundingClientRect()).center;
|
|
15532
15532
|
};
|
|
15533
15533
|
function isElement$2(el) {
|
|
15534
|
-
return _instanceof$
|
|
15534
|
+
return _instanceof$d(el, getWindowFromEl(el).Element);
|
|
15535
15535
|
}
|
|
15536
15536
|
var supportedMatchesName = function() {
|
|
15537
15537
|
var base = "matches";
|
|
@@ -20009,7 +20009,7 @@ function _define_property$m(obj, key, value1) {
|
|
|
20009
20009
|
}
|
|
20010
20010
|
return obj;
|
|
20011
20011
|
}
|
|
20012
|
-
function _instanceof$
|
|
20012
|
+
function _instanceof$c(left, right) {
|
|
20013
20013
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
20014
20014
|
return !!right[Symbol.hasInstance](left);
|
|
20015
20015
|
} else {
|
|
@@ -20228,7 +20228,7 @@ var isCheckBoxInput = function(element) {
|
|
|
20228
20228
|
return element.type === "checkbox";
|
|
20229
20229
|
};
|
|
20230
20230
|
var isDateObject = function(value1) {
|
|
20231
|
-
return _instanceof$
|
|
20231
|
+
return _instanceof$c(value1, Date);
|
|
20232
20232
|
};
|
|
20233
20233
|
var isNullOrUndefined = function(value1) {
|
|
20234
20234
|
return value1 == null;
|
|
@@ -20256,12 +20256,12 @@ var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "unde
|
|
|
20256
20256
|
function cloneObject(data) {
|
|
20257
20257
|
var copy;
|
|
20258
20258
|
var isArray = Array.isArray(data);
|
|
20259
|
-
var isFileListInstance = typeof FileList !== "undefined" ? _instanceof$
|
|
20260
|
-
if (_instanceof$
|
|
20259
|
+
var isFileListInstance = typeof FileList !== "undefined" ? _instanceof$c(data, FileList) : false;
|
|
20260
|
+
if (_instanceof$c(data, Date)) {
|
|
20261
20261
|
copy = new Date(data);
|
|
20262
|
-
} else if (_instanceof$
|
|
20262
|
+
} else if (_instanceof$c(data, Set)) {
|
|
20263
20263
|
copy = new Set(data);
|
|
20264
|
-
} else if (!(isWeb && (_instanceof$
|
|
20264
|
+
} else if (!(isWeb && (_instanceof$c(data, Blob) || isFileListInstance)) && (isArray || isObject$a(data))) {
|
|
20265
20265
|
copy = isArray ? [] : {};
|
|
20266
20266
|
if (!isArray && !isPlainObject$2(data)) {
|
|
20267
20267
|
copy = data;
|
|
@@ -20918,7 +20918,7 @@ var isHTMLElement$3 = function(value1) {
|
|
|
20918
20918
|
return false;
|
|
20919
20919
|
}
|
|
20920
20920
|
var owner = value1 ? value1.ownerDocument : 0;
|
|
20921
|
-
return _instanceof$
|
|
20921
|
+
return _instanceof$c(value1, owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement);
|
|
20922
20922
|
};
|
|
20923
20923
|
var isMultipleSelect = function(element) {
|
|
20924
20924
|
return element.type === "select-multiple";
|
|
@@ -21100,7 +21100,7 @@ var getResolverOptions = function(fieldsNames, _fields, criteriaMode, shouldUseN
|
|
|
21100
21100
|
};
|
|
21101
21101
|
};
|
|
21102
21102
|
var isRegex = function(value1) {
|
|
21103
|
-
return _instanceof$
|
|
21103
|
+
return _instanceof$c(value1, RegExp);
|
|
21104
21104
|
};
|
|
21105
21105
|
var getRuleValue = function(rule) {
|
|
21106
21106
|
return isUndefined(rule) ? rule : isRegex(rule) ? rule.source : isObject$a(rule) ? isRegex(rule.value) ? rule.value.source : rule.value : rule;
|
|
@@ -24314,7 +24314,7 @@ function useStateManager(_ref) {
|
|
|
24314
24314
|
});
|
|
24315
24315
|
}
|
|
24316
24316
|
|
|
24317
|
-
function _instanceof$
|
|
24317
|
+
function _instanceof$b(left, right) {
|
|
24318
24318
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
24319
24319
|
return !!right[Symbol.hasInstance](left);
|
|
24320
24320
|
} else {
|
|
@@ -24322,7 +24322,7 @@ function _instanceof$a(left, right) {
|
|
|
24322
24322
|
}
|
|
24323
24323
|
}
|
|
24324
24324
|
function _classCallCheck(a, n) {
|
|
24325
|
-
if (!_instanceof$
|
|
24325
|
+
if (!_instanceof$b(a, n)) throw new TypeError("Cannot call a class as a function");
|
|
24326
24326
|
}
|
|
24327
24327
|
|
|
24328
24328
|
function _defineProperties$4(e, r) {
|
|
@@ -24436,7 +24436,7 @@ function rectToClientRect$1(rect) {
|
|
|
24436
24436
|
};
|
|
24437
24437
|
}
|
|
24438
24438
|
|
|
24439
|
-
function _instanceof$
|
|
24439
|
+
function _instanceof$a(left, right) {
|
|
24440
24440
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
24441
24441
|
return !!right[Symbol.hasInstance](left);
|
|
24442
24442
|
} else {
|
|
@@ -24467,25 +24467,25 @@ function isNode(value) {
|
|
|
24467
24467
|
if (!hasWindow()) {
|
|
24468
24468
|
return false;
|
|
24469
24469
|
}
|
|
24470
|
-
return _instanceof$
|
|
24470
|
+
return _instanceof$a(value, Node) || _instanceof$a(value, getWindow$1(value).Node);
|
|
24471
24471
|
}
|
|
24472
24472
|
function isElement$1(value) {
|
|
24473
24473
|
if (!hasWindow()) {
|
|
24474
24474
|
return false;
|
|
24475
24475
|
}
|
|
24476
|
-
return _instanceof$
|
|
24476
|
+
return _instanceof$a(value, Element) || _instanceof$a(value, getWindow$1(value).Element);
|
|
24477
24477
|
}
|
|
24478
24478
|
function isHTMLElement$2(value) {
|
|
24479
24479
|
if (!hasWindow()) {
|
|
24480
24480
|
return false;
|
|
24481
24481
|
}
|
|
24482
|
-
return _instanceof$
|
|
24482
|
+
return _instanceof$a(value, HTMLElement) || _instanceof$a(value, getWindow$1(value).HTMLElement);
|
|
24483
24483
|
}
|
|
24484
24484
|
function isShadowRoot$1(value) {
|
|
24485
24485
|
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
24486
24486
|
return false;
|
|
24487
24487
|
}
|
|
24488
|
-
return _instanceof$
|
|
24488
|
+
return _instanceof$a(value, ShadowRoot) || _instanceof$a(value, getWindow$1(value).ShadowRoot);
|
|
24489
24489
|
}
|
|
24490
24490
|
function isOverflowElement(element) {
|
|
24491
24491
|
var _getComputedStyle = getComputedStyle$3(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY, display = _getComputedStyle.display;
|
|
@@ -26184,7 +26184,7 @@ function memoizeOne$1(resultFn, isEqual) {
|
|
|
26184
26184
|
return memoized;
|
|
26185
26185
|
}
|
|
26186
26186
|
|
|
26187
|
-
function _instanceof$
|
|
26187
|
+
function _instanceof$9(left, right) {
|
|
26188
26188
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
26189
26189
|
return !!right[Symbol.hasInstance](left);
|
|
26190
26190
|
} else {
|
|
@@ -27668,7 +27668,7 @@ var Select$1 = /*#__PURE__*/ function(_Component) {
|
|
|
27668
27668
|
};
|
|
27669
27669
|
_this.onScroll = function(event) {
|
|
27670
27670
|
if (typeof _this.props.closeMenuOnScroll === "boolean") {
|
|
27671
|
-
if (_instanceof$
|
|
27671
|
+
if (_instanceof$9(event.target, HTMLElement) && isDocumentElement(event.target)) {
|
|
27672
27672
|
_this.props.onMenuClose();
|
|
27673
27673
|
}
|
|
27674
27674
|
} else if (typeof _this.props.closeMenuOnScroll === "function") {
|
|
@@ -31246,7 +31246,7 @@ var unitlessKeys = {
|
|
|
31246
31246
|
strokeWidth: 1
|
|
31247
31247
|
};
|
|
31248
31248
|
|
|
31249
|
-
function _instanceof$
|
|
31249
|
+
function _instanceof$8(left, right) {
|
|
31250
31250
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
31251
31251
|
return !!right[Symbol.hasInstance](left);
|
|
31252
31252
|
} else {
|
|
@@ -31809,10 +31809,10 @@ function Xe(e, t, n, o) {
|
|
|
31809
31809
|
e
|
|
31810
31810
|
];
|
|
31811
31811
|
var r = e(t);
|
|
31812
|
-
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || _instanceof$
|
|
31812
|
+
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || _instanceof$8(r, qe) || ce(r) || null === r || console.error("".concat(B(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Xe(r, t, n, o);
|
|
31813
31813
|
}
|
|
31814
31814
|
var s;
|
|
31815
|
-
return _instanceof$
|
|
31815
|
+
return _instanceof$8(e, qe) ? n ? (e.inject(n, o), [
|
|
31816
31816
|
e.getName(o)
|
|
31817
31817
|
]) : [
|
|
31818
31818
|
e
|
|
@@ -47682,7 +47682,7 @@ function _array_like_to_array$d(arr, len) {
|
|
|
47682
47682
|
function _array_with_holes$a(arr) {
|
|
47683
47683
|
if (Array.isArray(arr)) return arr;
|
|
47684
47684
|
}
|
|
47685
|
-
function _instanceof$
|
|
47685
|
+
function _instanceof$7(left, right) {
|
|
47686
47686
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
47687
47687
|
return !!right[Symbol.hasInstance](left);
|
|
47688
47688
|
} else {
|
|
@@ -47784,7 +47784,7 @@ var CustomUpload = function(param) {
|
|
|
47784
47784
|
}
|
|
47785
47785
|
field.onChange(currentFile);
|
|
47786
47786
|
};
|
|
47787
|
-
var previewUrl = _instanceof$
|
|
47787
|
+
var previewUrl = _instanceof$7(field.value, File) ? URL.createObjectURL(field.value) : typeof field.value === "string" ? field.value : null;
|
|
47788
47788
|
return /*#__PURE__*/ jsxs(Fragment$1, {
|
|
47789
47789
|
children: [
|
|
47790
47790
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -47797,7 +47797,7 @@ var CustomUpload = function(param) {
|
|
|
47797
47797
|
onClick: handleImageClick,
|
|
47798
47798
|
children: [
|
|
47799
47799
|
/*#__PURE__*/ jsx(BaseTemplate, {
|
|
47800
|
-
file: _instanceof$
|
|
47800
|
+
file: _instanceof$7(field.value, File) ? field.value : undefined,
|
|
47801
47801
|
imageUrl: previewUrl,
|
|
47802
47802
|
item: item,
|
|
47803
47803
|
field: field
|
|
@@ -51202,7 +51202,7 @@ function _inherits$1(subClass, superClass) {
|
|
|
51202
51202
|
});
|
|
51203
51203
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
51204
51204
|
}
|
|
51205
|
-
function _instanceof$
|
|
51205
|
+
function _instanceof$6(left, right) {
|
|
51206
51206
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
51207
51207
|
return !!right[Symbol.hasInstance](left);
|
|
51208
51208
|
} else {
|
|
@@ -52031,9 +52031,9 @@ function runAsync(to2, props, state, target) {
|
|
|
52031
52031
|
];
|
|
52032
52032
|
case 3:
|
|
52033
52033
|
err1 = _state.sent();
|
|
52034
|
-
if (_instanceof$
|
|
52034
|
+
if (_instanceof$6(err1, BailSignal)) {
|
|
52035
52035
|
result = err1.result;
|
|
52036
|
-
} else if (_instanceof$
|
|
52036
|
+
} else if (_instanceof$6(err1, SkipAnimationSignal)) {
|
|
52037
52037
|
result = err1.result;
|
|
52038
52038
|
} else {
|
|
52039
52039
|
throw err1;
|
|
@@ -52093,7 +52093,7 @@ var SkipAnimationSignal = /*#__PURE__*/ function(Error1) {
|
|
|
52093
52093
|
return SkipAnimationSignal;
|
|
52094
52094
|
}(_wrap_native_super(Error));
|
|
52095
52095
|
var isFrameValue = function(value) {
|
|
52096
|
-
return _instanceof$
|
|
52096
|
+
return _instanceof$6(value, FrameValue);
|
|
52097
52097
|
};
|
|
52098
52098
|
var nextId = 1;
|
|
52099
52099
|
var FrameValue = /*#__PURE__*/ function(FluidValue2) {
|
|
@@ -52271,7 +52271,7 @@ var SpringValue = /*#__PURE__*/ function(FrameValue) {
|
|
|
52271
52271
|
key: "velocity",
|
|
52272
52272
|
get: function get() {
|
|
52273
52273
|
var node = getAnimated(this);
|
|
52274
|
-
return _instanceof$
|
|
52274
|
+
return _instanceof$6(node, AnimatedValue) ? node.lastVelocity || 0 : node.getPayload().map(function(node2) {
|
|
52275
52275
|
return node2.lastVelocity || 0;
|
|
52276
52276
|
});
|
|
52277
52277
|
}
|
|
@@ -54341,7 +54341,7 @@ var host = createHost(primitives, {
|
|
|
54341
54341
|
});
|
|
54342
54342
|
var animated = host.animated;
|
|
54343
54343
|
|
|
54344
|
-
function _instanceof$
|
|
54344
|
+
function _instanceof$5(left, right) {
|
|
54345
54345
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
54346
54346
|
return !!right[Symbol.hasInstance](left);
|
|
54347
54347
|
} else {
|
|
@@ -55823,7 +55823,7 @@ var DragRecognizer = /*#__PURE__*/ function(_CoordinatesRecognize) {
|
|
|
55823
55823
|
return true;
|
|
55824
55824
|
}
|
|
55825
55825
|
var it;
|
|
55826
|
-
if (typeof Map === "function" && _instanceof$
|
|
55826
|
+
if (typeof Map === "function" && _instanceof$5(a, Map) && _instanceof$5(b, Map)) {
|
|
55827
55827
|
if (a.size !== b.size) return false;
|
|
55828
55828
|
it = a.entries();
|
|
55829
55829
|
while(!(i = it.next()).done){
|
|
@@ -55835,7 +55835,7 @@ var DragRecognizer = /*#__PURE__*/ function(_CoordinatesRecognize) {
|
|
|
55835
55835
|
}
|
|
55836
55836
|
return true;
|
|
55837
55837
|
}
|
|
55838
|
-
if (typeof Set === "function" && _instanceof$
|
|
55838
|
+
if (typeof Set === "function" && _instanceof$5(a, Set) && _instanceof$5(b, Set)) {
|
|
55839
55839
|
if (a.size !== b.size) return false;
|
|
55840
55840
|
it = a.entries();
|
|
55841
55841
|
while(!(i = it.next()).done){
|
|
@@ -55852,7 +55852,7 @@ var DragRecognizer = /*#__PURE__*/ function(_CoordinatesRecognize) {
|
|
|
55852
55852
|
for(i = length; i-- !== 0;){
|
|
55853
55853
|
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
55854
55854
|
}
|
|
55855
|
-
if (typeof Element !== "undefined" && _instanceof$
|
|
55855
|
+
if (typeof Element !== "undefined" && _instanceof$5(a, Element)) return false;
|
|
55856
55856
|
for(i = length; i-- !== 0;){
|
|
55857
55857
|
if (keys[i] === "_owner" && a.$$typeof) continue;
|
|
55858
55858
|
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
@@ -59090,7 +59090,7 @@ function getWindow(node) {
|
|
|
59090
59090
|
return node;
|
|
59091
59091
|
}
|
|
59092
59092
|
|
|
59093
|
-
function _instanceof$
|
|
59093
|
+
function _instanceof$4(left, right) {
|
|
59094
59094
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
59095
59095
|
return !!right[Symbol.hasInstance](left);
|
|
59096
59096
|
} else {
|
|
@@ -59099,11 +59099,11 @@ function _instanceof$3(left, right) {
|
|
|
59099
59099
|
}
|
|
59100
59100
|
function isElement(node) {
|
|
59101
59101
|
var OwnElement = getWindow(node).Element;
|
|
59102
|
-
return _instanceof$
|
|
59102
|
+
return _instanceof$4(node, OwnElement) || _instanceof$4(node, Element);
|
|
59103
59103
|
}
|
|
59104
59104
|
function isHTMLElement(node) {
|
|
59105
59105
|
var OwnElement = getWindow(node).HTMLElement;
|
|
59106
|
-
return _instanceof$
|
|
59106
|
+
return _instanceof$4(node, OwnElement) || _instanceof$4(node, HTMLElement);
|
|
59107
59107
|
}
|
|
59108
59108
|
function isShadowRoot(node) {
|
|
59109
59109
|
// IE 11 has no ShadowRoot
|
|
@@ -59111,7 +59111,7 @@ function isShadowRoot(node) {
|
|
|
59111
59111
|
return false;
|
|
59112
59112
|
}
|
|
59113
59113
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
59114
|
-
return _instanceof$
|
|
59114
|
+
return _instanceof$4(node, OwnElement) || _instanceof$4(node, ShadowRoot);
|
|
59115
59115
|
}
|
|
59116
59116
|
|
|
59117
59117
|
var max = Math.max;
|
|
@@ -61790,7 +61790,7 @@ MapCache$3.prototype.has = mapCacheHas;
|
|
|
61790
61790
|
MapCache$3.prototype.set = mapCacheSet;
|
|
61791
61791
|
var _MapCache = MapCache$3;
|
|
61792
61792
|
|
|
61793
|
-
function _instanceof$
|
|
61793
|
+
function _instanceof$3(left, right) {
|
|
61794
61794
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
61795
61795
|
return !!right[Symbol.hasInstance](left);
|
|
61796
61796
|
} else {
|
|
@@ -61810,7 +61810,7 @@ var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache;
|
|
|
61810
61810
|
* @returns {Object} Returns the stack cache instance.
|
|
61811
61811
|
*/ function stackSet$1(key, value) {
|
|
61812
61812
|
var data = this.__data__;
|
|
61813
|
-
if (_instanceof$
|
|
61813
|
+
if (_instanceof$3(data, ListCache$1)) {
|
|
61814
61814
|
var pairs = data.__data__;
|
|
61815
61815
|
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
61816
61816
|
pairs.push([
|
|
@@ -62559,7 +62559,7 @@ var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols$2 = _getSymbols, keys$4 = key
|
|
|
62559
62559
|
}
|
|
62560
62560
|
var _getAllKeys = getAllKeys$2;
|
|
62561
62561
|
|
|
62562
|
-
function _instanceof$
|
|
62562
|
+
function _instanceof$2(left, right) {
|
|
62563
62563
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
62564
62564
|
return !!right[Symbol.hasInstance](left);
|
|
62565
62565
|
} else {
|
|
@@ -62620,7 +62620,7 @@ var getAllKeys$1 = _getAllKeys;
|
|
|
62620
62620
|
if (result && !skipCtor) {
|
|
62621
62621
|
var objCtor = object.constructor, othCtor = other.constructor;
|
|
62622
62622
|
// Non `Object` object instances with different constructors are not equal.
|
|
62623
|
-
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && _instanceof$
|
|
62623
|
+
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && _instanceof$2(objCtor, objCtor) && typeof othCtor == "function" && _instanceof$2(othCtor, othCtor))) {
|
|
62624
62624
|
result = false;
|
|
62625
62625
|
}
|
|
62626
62626
|
}
|
|
@@ -64844,7 +64844,7 @@ var castPath$1 = _castPath, last = last_1, parent = _parent, toKey = _toKey;
|
|
|
64844
64844
|
}
|
|
64845
64845
|
var _baseUnset = baseUnset$1;
|
|
64846
64846
|
|
|
64847
|
-
function _instanceof(left, right) {
|
|
64847
|
+
function _instanceof$1(left, right) {
|
|
64848
64848
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
64849
64849
|
return !!right[Symbol.hasInstance](left);
|
|
64850
64850
|
} else {
|
|
@@ -64893,7 +64893,7 @@ var baseGetTag = _baseGetTag, getPrototype$1 = _getPrototype, isObjectLike = isO
|
|
|
64893
64893
|
return true;
|
|
64894
64894
|
}
|
|
64895
64895
|
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
64896
|
-
return typeof Ctor == "function" && _instanceof(Ctor, Ctor) && funcToString.call(Ctor) == objectCtorString;
|
|
64896
|
+
return typeof Ctor == "function" && _instanceof$1(Ctor, Ctor) && funcToString.call(Ctor) == objectCtorString;
|
|
64897
64897
|
}
|
|
64898
64898
|
var isPlainObject_1 = isPlainObject$1;
|
|
64899
64899
|
|
|
@@ -77981,6 +77981,13 @@ function _define_property$1(obj, key, value) {
|
|
|
77981
77981
|
}
|
|
77982
77982
|
return obj;
|
|
77983
77983
|
}
|
|
77984
|
+
function _instanceof(left, right) {
|
|
77985
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
77986
|
+
return !!right[Symbol.hasInstance](left);
|
|
77987
|
+
} else {
|
|
77988
|
+
return left instanceof right;
|
|
77989
|
+
}
|
|
77990
|
+
}
|
|
77984
77991
|
function _object_spread$1(target) {
|
|
77985
77992
|
for(var i = 1; i < arguments.length; i++){
|
|
77986
77993
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -78154,9 +78161,20 @@ var fetchAPI = function() {
|
|
|
78154
78161
|
case 6:
|
|
78155
78162
|
error = _state.sent();
|
|
78156
78163
|
console.warn("API call failed:", error);
|
|
78164
|
+
if (_instanceof(error, Error)) {
|
|
78165
|
+
return [
|
|
78166
|
+
2,
|
|
78167
|
+
{
|
|
78168
|
+
raw: error,
|
|
78169
|
+
message: error.message
|
|
78170
|
+
}
|
|
78171
|
+
];
|
|
78172
|
+
}
|
|
78157
78173
|
return [
|
|
78158
78174
|
2,
|
|
78159
|
-
|
|
78175
|
+
{
|
|
78176
|
+
message: "Unknown error"
|
|
78177
|
+
}
|
|
78160
78178
|
];
|
|
78161
78179
|
case 7:
|
|
78162
78180
|
return [
|