@bigbinary/neeto-image-uploader-frontend 1.2.17 → 1.3.1
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/dist/index.cjs.js +1041 -945
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1042 -946
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { noop as noop$2, isNotEmpty, keysToCamelCase, findBy } from '@bigbinary/
|
|
|
4
4
|
import { Checkbox, Typography, Input, Button, Toastr, Spinner, Modal as Modal$1, Tab } from '@bigbinary/neetoui';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { LeftArrow, ImageUpload as ImageUpload$1 } from '@bigbinary/neeto-icons';
|
|
7
|
-
import { useMutation, useQuery } from 'react-query';
|
|
7
|
+
import { useMutation, useQueryClient, useQuery } from 'react-query';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { withEventTargetValue } from '@bigbinary/neeto-commons-frontend/utils';
|
|
10
10
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
@@ -430,7 +430,7 @@ function looksLikeObjectPath(key, nsSeparator, keySeparator) {
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
function ownKeys$5$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
433
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5$1(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
433
|
+
function _objectSpread$5$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5$1(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
434
434
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
435
435
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
436
436
|
function deepFind(obj, path) {
|
|
@@ -572,7 +572,7 @@ var ResourceStore = function (_EventEmitter) {
|
|
|
572
572
|
if (deep) {
|
|
573
573
|
deepExtend(pack, resources, overwrite);
|
|
574
574
|
} else {
|
|
575
|
-
pack = _objectSpread$5(_objectSpread$5({}, pack), resources);
|
|
575
|
+
pack = _objectSpread$5$1(_objectSpread$5$1({}, pack), resources);
|
|
576
576
|
}
|
|
577
577
|
setPath(this.data, path, pack);
|
|
578
578
|
if (!options.silent) this.emit('added', lng, ns, resources);
|
|
@@ -595,7 +595,7 @@ var ResourceStore = function (_EventEmitter) {
|
|
|
595
595
|
key: "getResourceBundle",
|
|
596
596
|
value: function getResourceBundle(lng, ns) {
|
|
597
597
|
if (!ns) ns = this.options.defaultNS;
|
|
598
|
-
if (this.options.compatibilityAPI === 'v1') return _objectSpread$5(_objectSpread$5({}, {}), this.getResource(lng, ns));
|
|
598
|
+
if (this.options.compatibilityAPI === 'v1') return _objectSpread$5$1(_objectSpread$5$1({}, {}), this.getResource(lng, ns));
|
|
599
599
|
return this.getResource(lng, ns);
|
|
600
600
|
}
|
|
601
601
|
}, {
|
|
@@ -2112,8 +2112,8 @@ function transformOptions(options) {
|
|
|
2112
2112
|
return options;
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
function ownKeys$
|
|
2116
|
-
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$
|
|
2115
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2116
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2117
2117
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
2118
2118
|
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2119
2119
|
function noop$1() {}
|
|
@@ -2779,9 +2779,9 @@ function cape(m) {
|
|
|
2779
2779
|
return unes[m];
|
|
2780
2780
|
}
|
|
2781
2781
|
|
|
2782
|
-
function ownKeys$
|
|
2782
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2783
2783
|
|
|
2784
|
-
function _objectSpread$
|
|
2784
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$7(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2785
2785
|
var defaultOptions = {
|
|
2786
2786
|
bindI18n: 'languageChanged',
|
|
2787
2787
|
bindI18nStore: '',
|
|
@@ -2795,7 +2795,7 @@ var i18nInstance;
|
|
|
2795
2795
|
var I18nContext = React.createContext();
|
|
2796
2796
|
function setDefaults() {
|
|
2797
2797
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2798
|
-
defaultOptions = _objectSpread$
|
|
2798
|
+
defaultOptions = _objectSpread$5(_objectSpread$5({}, defaultOptions), options);
|
|
2799
2799
|
}
|
|
2800
2800
|
function getDefaults() {
|
|
2801
2801
|
return defaultOptions;
|
|
@@ -2922,9 +2922,9 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
2922
2922
|
var _excluded$1 = ["format"],
|
|
2923
2923
|
_excluded2$1 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
2924
2924
|
|
|
2925
|
-
function ownKeys$
|
|
2925
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2926
2926
|
|
|
2927
|
-
function _objectSpread$
|
|
2927
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2928
2928
|
|
|
2929
2929
|
function hasChildren(node, checkLength) {
|
|
2930
2930
|
if (!node) return false;
|
|
@@ -2950,7 +2950,7 @@ function getAsArray(data) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
|
|
2952
2952
|
function mergeProps(source, target) {
|
|
2953
|
-
var newTarget = _objectSpread$
|
|
2953
|
+
var newTarget = _objectSpread$4({}, target);
|
|
2954
2954
|
|
|
2955
2955
|
newTarget.props = Object.assign(source.props, target.props);
|
|
2956
2956
|
return newTarget;
|
|
@@ -3020,7 +3020,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3020
3020
|
getData(children);
|
|
3021
3021
|
var ast = c.parse("<0>".concat(targetString, "</0>"));
|
|
3022
3022
|
|
|
3023
|
-
var opts = _objectSpread$
|
|
3023
|
+
var opts = _objectSpread$4(_objectSpread$4({}, data), combinedTOpts);
|
|
3024
3024
|
|
|
3025
3025
|
function renderInner(child, node, rootReactNode) {
|
|
3026
3026
|
var childs = getChildren(child);
|
|
@@ -3030,7 +3030,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3030
3030
|
|
|
3031
3031
|
function pushTranslatedJSX(child, inner, mem, i, isVoid) {
|
|
3032
3032
|
if (child.dummy) child.children = inner;
|
|
3033
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3033
|
+
mem.push(React.cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3034
3034
|
key: i
|
|
3035
3035
|
}), isVoid ? undefined : inner));
|
|
3036
3036
|
}
|
|
@@ -3062,7 +3062,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3062
3062
|
} else if (isEmptyTransWithHTML) {
|
|
3063
3063
|
var _inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
3064
3064
|
|
|
3065
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3065
|
+
mem.push(React.cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3066
3066
|
key: i
|
|
3067
3067
|
}), _inner));
|
|
3068
3068
|
} else if (Number.isNaN(parseFloat(node.name))) {
|
|
@@ -3093,11 +3093,11 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3093
3093
|
var content = node.children[0] ? translationContent : null;
|
|
3094
3094
|
if (content) mem.push(content);
|
|
3095
3095
|
} else if (node.children.length === 1 && translationContent) {
|
|
3096
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3096
|
+
mem.push(React.cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3097
3097
|
key: i
|
|
3098
3098
|
}), translationContent));
|
|
3099
3099
|
} else {
|
|
3100
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3100
|
+
mem.push(React.cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3101
3101
|
key: i
|
|
3102
3102
|
})));
|
|
3103
3103
|
}
|
|
@@ -3160,7 +3160,7 @@ function Trans(_ref) {
|
|
|
3160
3160
|
|
|
3161
3161
|
if (context) tOptions.context = context;
|
|
3162
3162
|
|
|
3163
|
-
var reactI18nextOptions = _objectSpread$
|
|
3163
|
+
var reactI18nextOptions = _objectSpread$4(_objectSpread$4({}, getDefaults()), i18n.options && i18n.options.react);
|
|
3164
3164
|
|
|
3165
3165
|
var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
3166
3166
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
@@ -3168,13 +3168,13 @@ function Trans(_ref) {
|
|
|
3168
3168
|
var hashTransKey = reactI18nextOptions.hashTransKey;
|
|
3169
3169
|
var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);
|
|
3170
3170
|
var interpolationOverride = values ? tOptions.interpolation : {
|
|
3171
|
-
interpolation: _objectSpread$
|
|
3171
|
+
interpolation: _objectSpread$4(_objectSpread$4({}, tOptions.interpolation), {}, {
|
|
3172
3172
|
prefix: '#$?',
|
|
3173
3173
|
suffix: '?$#'
|
|
3174
3174
|
})
|
|
3175
3175
|
};
|
|
3176
3176
|
|
|
3177
|
-
var combinedTOpts = _objectSpread$
|
|
3177
|
+
var combinedTOpts = _objectSpread$4(_objectSpread$4(_objectSpread$4(_objectSpread$4({}, tOptions), {}, {
|
|
3178
3178
|
count: count
|
|
3179
3179
|
}, values), interpolationOverride), {}, {
|
|
3180
3180
|
defaultValue: defaultValue,
|
|
@@ -3219,9 +3219,9 @@ function _slicedToArray$2(arr, i) {
|
|
|
3219
3219
|
return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2();
|
|
3220
3220
|
}
|
|
3221
3221
|
|
|
3222
|
-
function ownKeys$
|
|
3222
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3223
3223
|
|
|
3224
|
-
function _objectSpread$
|
|
3224
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3225
3225
|
function useTranslation(ns) {
|
|
3226
3226
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3227
3227
|
var i18nFromProps = props.i18n;
|
|
@@ -3249,7 +3249,7 @@ function useTranslation(ns) {
|
|
|
3249
3249
|
|
|
3250
3250
|
if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
3251
3251
|
|
|
3252
|
-
var i18nOptions = _objectSpread$
|
|
3252
|
+
var i18nOptions = _objectSpread$3(_objectSpread$3(_objectSpread$3({}, getDefaults()), i18n.options.react), props);
|
|
3253
3253
|
|
|
3254
3254
|
var useSuspense = i18nOptions.useSuspense,
|
|
3255
3255
|
keyPrefix = i18nOptions.keyPrefix;
|
|
@@ -3580,7 +3580,7 @@ function _defineProperty$3(obj, key, value) {
|
|
|
3580
3580
|
return obj;
|
|
3581
3581
|
}
|
|
3582
3582
|
|
|
3583
|
-
function ownKeys$
|
|
3583
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
3584
3584
|
var keys = Object.keys(object);
|
|
3585
3585
|
|
|
3586
3586
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -3599,13 +3599,13 @@ function _objectSpread2$1(target) {
|
|
|
3599
3599
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3600
3600
|
|
|
3601
3601
|
if (i % 2) {
|
|
3602
|
-
ownKeys$
|
|
3602
|
+
ownKeys$4(Object(source), true).forEach(function (key) {
|
|
3603
3603
|
_defineProperty$3(target, key, source[key]);
|
|
3604
3604
|
});
|
|
3605
3605
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
3606
3606
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3607
3607
|
} else {
|
|
3608
|
-
ownKeys$
|
|
3608
|
+
ownKeys$4(Object(source)).forEach(function (key) {
|
|
3609
3609
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3610
3610
|
});
|
|
3611
3611
|
}
|
|
@@ -7367,7 +7367,7 @@ function _defineProperty$2(obj, key, value) {
|
|
|
7367
7367
|
return obj;
|
|
7368
7368
|
}
|
|
7369
7369
|
|
|
7370
|
-
function ownKeys$
|
|
7370
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
7371
7371
|
var keys = Object.keys(object);
|
|
7372
7372
|
|
|
7373
7373
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -7386,13 +7386,13 @@ function _objectSpread2(target) {
|
|
|
7386
7386
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7387
7387
|
|
|
7388
7388
|
if (i % 2) {
|
|
7389
|
-
ownKeys$
|
|
7389
|
+
ownKeys$3(Object(source), true).forEach(function (key) {
|
|
7390
7390
|
_defineProperty$2(target, key, source[key]);
|
|
7391
7391
|
});
|
|
7392
7392
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
7393
7393
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7394
7394
|
} else {
|
|
7395
|
-
ownKeys$
|
|
7395
|
+
ownKeys$3(Object(source)).forEach(function (key) {
|
|
7396
7396
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7397
7397
|
});
|
|
7398
7398
|
}
|
|
@@ -9111,7 +9111,7 @@ var ASSETS_FETCH_URL = (cov_l0ywmw7at().s[11]++, IS_DEVELOPMENT_OR_HEROKU_ENV ?
|
|
|
9111
9111
|
|
|
9112
9112
|
function cov_8ssccub0() {
|
|
9113
9113
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageEditor/index.jsx";
|
|
9114
|
-
var hash = "
|
|
9114
|
+
var hash = "3cb03c9e73348f1bf4fb721796541b497a55f472";
|
|
9115
9115
|
var global = new Function("return this")();
|
|
9116
9116
|
var gcv = "__coverage__";
|
|
9117
9117
|
var coverageData = {
|
|
@@ -9274,7 +9274,7 @@ function cov_8ssccub0() {
|
|
|
9274
9274
|
},
|
|
9275
9275
|
end: {
|
|
9276
9276
|
line: 58,
|
|
9277
|
-
column:
|
|
9277
|
+
column: 64
|
|
9278
9278
|
}
|
|
9279
9279
|
},
|
|
9280
9280
|
"16": {
|
|
@@ -9405,18 +9405,18 @@ function cov_8ssccub0() {
|
|
|
9405
9405
|
},
|
|
9406
9406
|
end: {
|
|
9407
9407
|
line: 27,
|
|
9408
|
-
column:
|
|
9408
|
+
column: 32
|
|
9409
9409
|
}
|
|
9410
9410
|
},
|
|
9411
9411
|
type: "default-arg",
|
|
9412
9412
|
locations: [{
|
|
9413
9413
|
start: {
|
|
9414
9414
|
line: 27,
|
|
9415
|
-
column:
|
|
9415
|
+
column: 28
|
|
9416
9416
|
},
|
|
9417
9417
|
end: {
|
|
9418
9418
|
line: 27,
|
|
9419
|
-
column:
|
|
9419
|
+
column: 32
|
|
9420
9420
|
}
|
|
9421
9421
|
}],
|
|
9422
9422
|
line: 27
|
|
@@ -9545,7 +9545,7 @@ function cov_8ssccub0() {
|
|
|
9545
9545
|
"3": [0, 0]
|
|
9546
9546
|
},
|
|
9547
9547
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9548
|
-
hash: "
|
|
9548
|
+
hash: "3cb03c9e73348f1bf4fb721796541b497a55f472"
|
|
9549
9549
|
};
|
|
9550
9550
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
9551
9551
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -9565,8 +9565,8 @@ cov_8ssccub0().s[0]++;
|
|
|
9565
9565
|
var ImageEditor = function ImageEditor(_ref) {
|
|
9566
9566
|
var image = _ref.image,
|
|
9567
9567
|
handleReset = _ref.handleReset,
|
|
9568
|
-
_ref$
|
|
9569
|
-
|
|
9568
|
+
_ref$handleImageEditC = _ref.handleImageEditComplete,
|
|
9569
|
+
handleImageEditComplete = _ref$handleImageEditC === void 0 ? (cov_8ssccub0().b[0][0]++, noop$2) : _ref$handleImageEditC,
|
|
9570
9570
|
_ref$signedId = _ref.signedId,
|
|
9571
9571
|
signedId = _ref$signedId === void 0 ? (cov_8ssccub0().b[1][0]++, "") : _ref$signedId;
|
|
9572
9572
|
cov_8ssccub0().f[0]++;
|
|
@@ -9602,7 +9602,7 @@ var ImageEditor = function ImageEditor(_ref) {
|
|
|
9602
9602
|
}),
|
|
9603
9603
|
signedId: signedId
|
|
9604
9604
|
}, {
|
|
9605
|
-
onSuccess:
|
|
9605
|
+
onSuccess: handleImageEditComplete
|
|
9606
9606
|
});
|
|
9607
9607
|
};
|
|
9608
9608
|
cov_8ssccub0().s[10]++;
|
|
@@ -9624,7 +9624,7 @@ var ImageEditor = function ImageEditor(_ref) {
|
|
|
9624
9624
|
imageRef: imageRef
|
|
9625
9625
|
}));
|
|
9626
9626
|
cov_8ssccub0().s[15]++;
|
|
9627
|
-
|
|
9627
|
+
handleImageEditComplete(mergeRight(image, {
|
|
9628
9628
|
url: newURL
|
|
9629
9629
|
}));
|
|
9630
9630
|
};
|
|
@@ -9859,9 +9859,94 @@ var directUploadsApi = (cov_1ukp3guhfu().s[4]++, {
|
|
|
9859
9859
|
update: update
|
|
9860
9860
|
});
|
|
9861
9861
|
|
|
9862
|
+
function cov_1ukzvmo2ut() {
|
|
9863
|
+
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/constants/query.js";
|
|
9864
|
+
var hash = "84dca07a5663f77afbdfe2e01ab5dc61ad289828";
|
|
9865
|
+
var global = new Function("return this")();
|
|
9866
|
+
var gcv = "__coverage__";
|
|
9867
|
+
var coverageData = {
|
|
9868
|
+
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/constants/query.js",
|
|
9869
|
+
statementMap: {
|
|
9870
|
+
"0": {
|
|
9871
|
+
start: {
|
|
9872
|
+
line: 1,
|
|
9873
|
+
column: 26
|
|
9874
|
+
},
|
|
9875
|
+
end: {
|
|
9876
|
+
line: 4,
|
|
9877
|
+
column: 1
|
|
9878
|
+
}
|
|
9879
|
+
},
|
|
9880
|
+
"1": {
|
|
9881
|
+
start: {
|
|
9882
|
+
line: 6,
|
|
9883
|
+
column: 33
|
|
9884
|
+
},
|
|
9885
|
+
end: {
|
|
9886
|
+
line: 6,
|
|
9887
|
+
column: 40
|
|
9888
|
+
}
|
|
9889
|
+
},
|
|
9890
|
+
"2": {
|
|
9891
|
+
start: {
|
|
9892
|
+
line: 8,
|
|
9893
|
+
column: 35
|
|
9894
|
+
},
|
|
9895
|
+
end: {
|
|
9896
|
+
line: 8,
|
|
9897
|
+
column: 42
|
|
9898
|
+
}
|
|
9899
|
+
},
|
|
9900
|
+
"3": {
|
|
9901
|
+
start: {
|
|
9902
|
+
line: 10,
|
|
9903
|
+
column: 34
|
|
9904
|
+
},
|
|
9905
|
+
end: {
|
|
9906
|
+
line: 10,
|
|
9907
|
+
column: 41
|
|
9908
|
+
}
|
|
9909
|
+
}
|
|
9910
|
+
},
|
|
9911
|
+
fnMap: {},
|
|
9912
|
+
branchMap: {},
|
|
9913
|
+
s: {
|
|
9914
|
+
"0": 0,
|
|
9915
|
+
"1": 0,
|
|
9916
|
+
"2": 0,
|
|
9917
|
+
"3": 0
|
|
9918
|
+
},
|
|
9919
|
+
f: {},
|
|
9920
|
+
b: {},
|
|
9921
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9922
|
+
hash: "84dca07a5663f77afbdfe2e01ab5dc61ad289828"
|
|
9923
|
+
};
|
|
9924
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
9925
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
9926
|
+
coverage[path] = coverageData;
|
|
9927
|
+
}
|
|
9928
|
+
var actualCoverage = coverage[path];
|
|
9929
|
+
{
|
|
9930
|
+
// @ts-ignore
|
|
9931
|
+
cov_1ukzvmo2ut = function () {
|
|
9932
|
+
return actualCoverage;
|
|
9933
|
+
};
|
|
9934
|
+
}
|
|
9935
|
+
return actualCoverage;
|
|
9936
|
+
}
|
|
9937
|
+
cov_1ukzvmo2ut();
|
|
9938
|
+
var QUERY_KEYS = (cov_1ukzvmo2ut().s[0]++, {
|
|
9939
|
+
ASSETS_LSIT: "assets-list",
|
|
9940
|
+
UNSPLASH_LIST: "unsplash-list"
|
|
9941
|
+
});
|
|
9942
|
+
var ASSETS_STALE_TIME = (cov_1ukzvmo2ut().s[1]++, 900000); // 15 mins
|
|
9943
|
+
|
|
9944
|
+
var UNSPLASH_STALE_TIME = (cov_1ukzvmo2ut().s[2]++, 900000);
|
|
9945
|
+
(cov_1ukzvmo2ut().s[3]++, 100000);
|
|
9946
|
+
|
|
9862
9947
|
function cov_20wespd2q6() {
|
|
9863
9948
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useDirectUploads.js";
|
|
9864
|
-
var hash = "
|
|
9949
|
+
var hash = "d9726001d441435c253e8bfbfa160531de06fce6";
|
|
9865
9950
|
var global = new Function("return this")();
|
|
9866
9951
|
var gcv = "__coverage__";
|
|
9867
9952
|
var coverageData = {
|
|
@@ -9869,41 +9954,61 @@ function cov_20wespd2q6() {
|
|
|
9869
9954
|
statementMap: {
|
|
9870
9955
|
"0": {
|
|
9871
9956
|
start: {
|
|
9872
|
-
line:
|
|
9957
|
+
line: 6,
|
|
9873
9958
|
column: 22
|
|
9874
9959
|
},
|
|
9875
9960
|
end: {
|
|
9876
|
-
line:
|
|
9877
|
-
column:
|
|
9961
|
+
line: 15,
|
|
9962
|
+
column: 1
|
|
9878
9963
|
}
|
|
9879
9964
|
},
|
|
9880
9965
|
"1": {
|
|
9881
9966
|
start: {
|
|
9882
|
-
line:
|
|
9883
|
-
column:
|
|
9967
|
+
line: 7,
|
|
9968
|
+
column: 22
|
|
9884
9969
|
},
|
|
9885
9970
|
end: {
|
|
9886
|
-
line:
|
|
9887
|
-
column:
|
|
9971
|
+
line: 7,
|
|
9972
|
+
column: 38
|
|
9888
9973
|
}
|
|
9889
9974
|
},
|
|
9890
9975
|
"2": {
|
|
9891
9976
|
start: {
|
|
9892
|
-
line:
|
|
9977
|
+
line: 9,
|
|
9978
|
+
column: 2
|
|
9979
|
+
},
|
|
9980
|
+
end: {
|
|
9981
|
+
line: 14,
|
|
9982
|
+
column: 5
|
|
9983
|
+
}
|
|
9984
|
+
},
|
|
9985
|
+
"3": {
|
|
9986
|
+
start: {
|
|
9987
|
+
line: 12,
|
|
9988
|
+
column: 6
|
|
9989
|
+
},
|
|
9990
|
+
end: {
|
|
9991
|
+
line: 12,
|
|
9992
|
+
column: 60
|
|
9993
|
+
}
|
|
9994
|
+
},
|
|
9995
|
+
"4": {
|
|
9996
|
+
start: {
|
|
9997
|
+
line: 17,
|
|
9893
9998
|
column: 22
|
|
9894
9999
|
},
|
|
9895
10000
|
end: {
|
|
9896
|
-
line:
|
|
10001
|
+
line: 17,
|
|
9897
10002
|
column: 78
|
|
9898
10003
|
}
|
|
9899
10004
|
},
|
|
9900
|
-
"
|
|
10005
|
+
"5": {
|
|
9901
10006
|
start: {
|
|
9902
|
-
line:
|
|
10007
|
+
line: 17,
|
|
9903
10008
|
column: 33
|
|
9904
10009
|
},
|
|
9905
10010
|
end: {
|
|
9906
|
-
line:
|
|
10011
|
+
line: 17,
|
|
9907
10012
|
column: 78
|
|
9908
10013
|
}
|
|
9909
10014
|
}
|
|
@@ -9913,49 +10018,73 @@ function cov_20wespd2q6() {
|
|
|
9913
10018
|
name: "(anonymous_0)",
|
|
9914
10019
|
decl: {
|
|
9915
10020
|
start: {
|
|
9916
|
-
line:
|
|
10021
|
+
line: 6,
|
|
9917
10022
|
column: 22
|
|
9918
10023
|
},
|
|
9919
10024
|
end: {
|
|
9920
|
-
line:
|
|
10025
|
+
line: 6,
|
|
9921
10026
|
column: 23
|
|
9922
10027
|
}
|
|
9923
10028
|
},
|
|
9924
10029
|
loc: {
|
|
9925
10030
|
start: {
|
|
9926
|
-
line:
|
|
10031
|
+
line: 6,
|
|
9927
10032
|
column: 33
|
|
9928
10033
|
},
|
|
9929
10034
|
end: {
|
|
9930
|
-
line:
|
|
9931
|
-
column:
|
|
10035
|
+
line: 15,
|
|
10036
|
+
column: 1
|
|
9932
10037
|
}
|
|
9933
10038
|
},
|
|
9934
|
-
line:
|
|
10039
|
+
line: 6
|
|
9935
10040
|
},
|
|
9936
10041
|
"1": {
|
|
9937
10042
|
name: "(anonymous_1)",
|
|
9938
10043
|
decl: {
|
|
9939
10044
|
start: {
|
|
9940
|
-
line:
|
|
10045
|
+
line: 11,
|
|
10046
|
+
column: 15
|
|
10047
|
+
},
|
|
10048
|
+
end: {
|
|
10049
|
+
line: 11,
|
|
10050
|
+
column: 16
|
|
10051
|
+
}
|
|
10052
|
+
},
|
|
10053
|
+
loc: {
|
|
10054
|
+
start: {
|
|
10055
|
+
line: 11,
|
|
10056
|
+
column: 21
|
|
10057
|
+
},
|
|
10058
|
+
end: {
|
|
10059
|
+
line: 13,
|
|
10060
|
+
column: 5
|
|
10061
|
+
}
|
|
10062
|
+
},
|
|
10063
|
+
line: 11
|
|
10064
|
+
},
|
|
10065
|
+
"2": {
|
|
10066
|
+
name: "(anonymous_2)",
|
|
10067
|
+
decl: {
|
|
10068
|
+
start: {
|
|
10069
|
+
line: 17,
|
|
9941
10070
|
column: 22
|
|
9942
10071
|
},
|
|
9943
10072
|
end: {
|
|
9944
|
-
line:
|
|
10073
|
+
line: 17,
|
|
9945
10074
|
column: 23
|
|
9946
10075
|
}
|
|
9947
10076
|
},
|
|
9948
10077
|
loc: {
|
|
9949
10078
|
start: {
|
|
9950
|
-
line:
|
|
10079
|
+
line: 17,
|
|
9951
10080
|
column: 33
|
|
9952
10081
|
},
|
|
9953
10082
|
end: {
|
|
9954
|
-
line:
|
|
10083
|
+
line: 17,
|
|
9955
10084
|
column: 78
|
|
9956
10085
|
}
|
|
9957
10086
|
},
|
|
9958
|
-
line:
|
|
10087
|
+
line: 17
|
|
9959
10088
|
}
|
|
9960
10089
|
},
|
|
9961
10090
|
branchMap: {},
|
|
@@ -9963,15 +10092,18 @@ function cov_20wespd2q6() {
|
|
|
9963
10092
|
"0": 0,
|
|
9964
10093
|
"1": 0,
|
|
9965
10094
|
"2": 0,
|
|
9966
|
-
"3": 0
|
|
10095
|
+
"3": 0,
|
|
10096
|
+
"4": 0,
|
|
10097
|
+
"5": 0
|
|
9967
10098
|
},
|
|
9968
10099
|
f: {
|
|
9969
10100
|
"0": 0,
|
|
9970
|
-
"1": 0
|
|
10101
|
+
"1": 0,
|
|
10102
|
+
"2": 0
|
|
9971
10103
|
},
|
|
9972
10104
|
b: {},
|
|
9973
10105
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
9974
|
-
hash: "
|
|
10106
|
+
hash: "d9726001d441435c253e8bfbfa160531de06fce6"
|
|
9975
10107
|
};
|
|
9976
10108
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
9977
10109
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -9987,16 +10119,25 @@ function cov_20wespd2q6() {
|
|
|
9987
10119
|
return actualCoverage;
|
|
9988
10120
|
}
|
|
9989
10121
|
cov_20wespd2q6();
|
|
10122
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10123
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9990
10124
|
cov_20wespd2q6().s[0]++;
|
|
9991
10125
|
var useCreateBlob = function useCreateBlob(options) {
|
|
9992
10126
|
cov_20wespd2q6().f[0]++;
|
|
9993
|
-
cov_20wespd2q6().s[1]
|
|
9994
|
-
|
|
10127
|
+
var queryClient = (cov_20wespd2q6().s[1]++, useQueryClient());
|
|
10128
|
+
cov_20wespd2q6().s[2]++;
|
|
10129
|
+
return useMutation(directUploadsApi.create, _objectSpread$2(_objectSpread$2({}, options), {}, {
|
|
10130
|
+
onSuccess: function onSuccess() {
|
|
10131
|
+
cov_20wespd2q6().f[1]++;
|
|
10132
|
+
cov_20wespd2q6().s[3]++;
|
|
10133
|
+
queryClient.invalidateQueries(QUERY_KEYS.ASSETS_LIST);
|
|
10134
|
+
}
|
|
10135
|
+
}));
|
|
9995
10136
|
};
|
|
9996
|
-
cov_20wespd2q6().s[
|
|
10137
|
+
cov_20wespd2q6().s[4]++;
|
|
9997
10138
|
var useUpdateBlob = function useUpdateBlob(options) {
|
|
9998
|
-
cov_20wespd2q6().f[
|
|
9999
|
-
cov_20wespd2q6().s[
|
|
10139
|
+
cov_20wespd2q6().f[2]++;
|
|
10140
|
+
cov_20wespd2q6().s[5]++;
|
|
10000
10141
|
return useMutation(directUploadsApi.update, options);
|
|
10001
10142
|
};
|
|
10002
10143
|
|
|
@@ -12795,7 +12936,7 @@ var useDropzoneWithValidation = function useDropzoneWithValidation(_ref) {
|
|
|
12795
12936
|
id: blob.signed_id,
|
|
12796
12937
|
payload: {
|
|
12797
12938
|
metadata: {
|
|
12798
|
-
|
|
12939
|
+
organizationKey: globalProps.organization.publicApiKey,
|
|
12799
12940
|
url: blob.blob_url,
|
|
12800
12941
|
height: 200,
|
|
12801
12942
|
width: 200
|
|
@@ -12848,7 +12989,7 @@ var useDropzoneWithValidation = function useDropzoneWithValidation(_ref) {
|
|
|
12848
12989
|
fileName: file.name,
|
|
12849
12990
|
folder: (cov_sedvezotl().b[4][0]++, globalProps.imageKit.folder) || (cov_sedvezotl().b[4][1]++, IMAGE_KIT_DEFAULT_FOLDER),
|
|
12850
12991
|
customMetadata: {
|
|
12851
|
-
organizationKey: globalProps.organization.
|
|
12992
|
+
organizationKey: globalProps.organization.publicApiKey,
|
|
12852
12993
|
appName: globalProps.appName
|
|
12853
12994
|
}
|
|
12854
12995
|
});
|
|
@@ -13236,137 +13377,52 @@ var assetsApi = (cov_2os1rrqd86().s[2]++, {
|
|
|
13236
13377
|
fetch: fetch
|
|
13237
13378
|
});
|
|
13238
13379
|
|
|
13239
|
-
function
|
|
13240
|
-
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/
|
|
13241
|
-
var hash = "
|
|
13380
|
+
function cov_1j8zq3as6y() {
|
|
13381
|
+
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useAssetsApi.js";
|
|
13382
|
+
var hash = "1a577ae8afd7cf5d4a6396d31f43383c0cf2c21f";
|
|
13242
13383
|
var global = new Function("return this")();
|
|
13243
13384
|
var gcv = "__coverage__";
|
|
13244
13385
|
var coverageData = {
|
|
13245
|
-
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/
|
|
13386
|
+
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useAssetsApi.js",
|
|
13246
13387
|
statementMap: {
|
|
13247
13388
|
"0": {
|
|
13248
13389
|
start: {
|
|
13249
|
-
line:
|
|
13250
|
-
column:
|
|
13390
|
+
line: 7,
|
|
13391
|
+
column: 24
|
|
13251
13392
|
},
|
|
13252
13393
|
end: {
|
|
13253
|
-
line:
|
|
13254
|
-
column:
|
|
13394
|
+
line: 7,
|
|
13395
|
+
column: 34
|
|
13255
13396
|
}
|
|
13256
13397
|
},
|
|
13257
13398
|
"1": {
|
|
13258
13399
|
start: {
|
|
13259
|
-
line:
|
|
13260
|
-
column:
|
|
13400
|
+
line: 9,
|
|
13401
|
+
column: 23
|
|
13261
13402
|
},
|
|
13262
13403
|
end: {
|
|
13263
|
-
line:
|
|
13264
|
-
column:
|
|
13404
|
+
line: 14,
|
|
13405
|
+
column: 3
|
|
13265
13406
|
}
|
|
13266
13407
|
},
|
|
13267
13408
|
"2": {
|
|
13268
13409
|
start: {
|
|
13269
|
-
line:
|
|
13270
|
-
column:
|
|
13410
|
+
line: 10,
|
|
13411
|
+
column: 2
|
|
13271
13412
|
},
|
|
13272
13413
|
end: {
|
|
13273
|
-
line:
|
|
13274
|
-
column:
|
|
13414
|
+
line: 14,
|
|
13415
|
+
column: 3
|
|
13275
13416
|
}
|
|
13276
13417
|
},
|
|
13277
13418
|
"3": {
|
|
13278
13419
|
start: {
|
|
13279
|
-
line:
|
|
13280
|
-
column:
|
|
13420
|
+
line: 12,
|
|
13421
|
+
column: 10
|
|
13281
13422
|
},
|
|
13282
13423
|
end: {
|
|
13283
|
-
line:
|
|
13284
|
-
column:
|
|
13285
|
-
}
|
|
13286
|
-
}
|
|
13287
|
-
},
|
|
13288
|
-
fnMap: {},
|
|
13289
|
-
branchMap: {},
|
|
13290
|
-
s: {
|
|
13291
|
-
"0": 0,
|
|
13292
|
-
"1": 0,
|
|
13293
|
-
"2": 0,
|
|
13294
|
-
"3": 0
|
|
13295
|
-
},
|
|
13296
|
-
f: {},
|
|
13297
|
-
b: {},
|
|
13298
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
13299
|
-
hash: "84dca07a5663f77afbdfe2e01ab5dc61ad289828"
|
|
13300
|
-
};
|
|
13301
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
13302
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
13303
|
-
coverage[path] = coverageData;
|
|
13304
|
-
}
|
|
13305
|
-
var actualCoverage = coverage[path];
|
|
13306
|
-
{
|
|
13307
|
-
// @ts-ignore
|
|
13308
|
-
cov_1ukzvmo2ut = function () {
|
|
13309
|
-
return actualCoverage;
|
|
13310
|
-
};
|
|
13311
|
-
}
|
|
13312
|
-
return actualCoverage;
|
|
13313
|
-
}
|
|
13314
|
-
cov_1ukzvmo2ut();
|
|
13315
|
-
var QUERY_KEYS = (cov_1ukzvmo2ut().s[0]++, {
|
|
13316
|
-
ASSETS_LSIT: "assets-list",
|
|
13317
|
-
UNSPLASH_LIST: "unsplash-list"
|
|
13318
|
-
});
|
|
13319
|
-
var ASSETS_STALE_TIME = (cov_1ukzvmo2ut().s[1]++, 900000); // 15 mins
|
|
13320
|
-
|
|
13321
|
-
var UNSPLASH_STALE_TIME = (cov_1ukzvmo2ut().s[2]++, 900000);
|
|
13322
|
-
(cov_1ukzvmo2ut().s[3]++, 100000);
|
|
13323
|
-
|
|
13324
|
-
function cov_1j8zq3as6y() {
|
|
13325
|
-
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useAssetsApi.js";
|
|
13326
|
-
var hash = "1a577ae8afd7cf5d4a6396d31f43383c0cf2c21f";
|
|
13327
|
-
var global = new Function("return this")();
|
|
13328
|
-
var gcv = "__coverage__";
|
|
13329
|
-
var coverageData = {
|
|
13330
|
-
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/hooks/useAssetsApi.js",
|
|
13331
|
-
statementMap: {
|
|
13332
|
-
"0": {
|
|
13333
|
-
start: {
|
|
13334
|
-
line: 7,
|
|
13335
|
-
column: 24
|
|
13336
|
-
},
|
|
13337
|
-
end: {
|
|
13338
|
-
line: 7,
|
|
13339
|
-
column: 34
|
|
13340
|
-
}
|
|
13341
|
-
},
|
|
13342
|
-
"1": {
|
|
13343
|
-
start: {
|
|
13344
|
-
line: 9,
|
|
13345
|
-
column: 23
|
|
13346
|
-
},
|
|
13347
|
-
end: {
|
|
13348
|
-
line: 14,
|
|
13349
|
-
column: 3
|
|
13350
|
-
}
|
|
13351
|
-
},
|
|
13352
|
-
"2": {
|
|
13353
|
-
start: {
|
|
13354
|
-
line: 10,
|
|
13355
|
-
column: 2
|
|
13356
|
-
},
|
|
13357
|
-
end: {
|
|
13358
|
-
line: 14,
|
|
13359
|
-
column: 3
|
|
13360
|
-
}
|
|
13361
|
-
},
|
|
13362
|
-
"3": {
|
|
13363
|
-
start: {
|
|
13364
|
-
line: 12,
|
|
13365
|
-
column: 10
|
|
13366
|
-
},
|
|
13367
|
-
end: {
|
|
13368
|
-
line: 12,
|
|
13369
|
-
column: 42
|
|
13424
|
+
line: 12,
|
|
13425
|
+
column: 42
|
|
13370
13426
|
}
|
|
13371
13427
|
}
|
|
13372
13428
|
},
|
|
@@ -14257,7 +14313,7 @@ _default = lib.default = MasonryInfiniteScroller;
|
|
|
14257
14313
|
|
|
14258
14314
|
function cov_2pomp2sey4() {
|
|
14259
14315
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/InfiniteScroller.jsx";
|
|
14260
|
-
var hash = "
|
|
14316
|
+
var hash = "c473cb3866c3f7dc827cf95f47e8e5075c178fe5";
|
|
14261
14317
|
var global = new Function("return this")();
|
|
14262
14318
|
var gcv = "__coverage__";
|
|
14263
14319
|
var coverageData = {
|
|
@@ -14269,7 +14325,7 @@ function cov_2pomp2sey4() {
|
|
|
14269
14325
|
column: 25
|
|
14270
14326
|
},
|
|
14271
14327
|
end: {
|
|
14272
|
-
line:
|
|
14328
|
+
line: 84,
|
|
14273
14329
|
column: 1
|
|
14274
14330
|
}
|
|
14275
14331
|
},
|
|
@@ -14289,7 +14345,7 @@ function cov_2pomp2sey4() {
|
|
|
14289
14345
|
column: 2
|
|
14290
14346
|
},
|
|
14291
14347
|
end: {
|
|
14292
|
-
line:
|
|
14348
|
+
line: 83,
|
|
14293
14349
|
column: 4
|
|
14294
14350
|
}
|
|
14295
14351
|
},
|
|
@@ -14299,7 +14355,7 @@ function cov_2pomp2sey4() {
|
|
|
14299
14355
|
column: 10
|
|
14300
14356
|
},
|
|
14301
14357
|
end: {
|
|
14302
|
-
line:
|
|
14358
|
+
line: 79,
|
|
14303
14359
|
column: 16
|
|
14304
14360
|
}
|
|
14305
14361
|
},
|
|
@@ -14315,12 +14371,12 @@ function cov_2pomp2sey4() {
|
|
|
14315
14371
|
},
|
|
14316
14372
|
"5": {
|
|
14317
14373
|
start: {
|
|
14318
|
-
line:
|
|
14319
|
-
column:
|
|
14374
|
+
line: 74,
|
|
14375
|
+
column: 35
|
|
14320
14376
|
},
|
|
14321
14377
|
end: {
|
|
14322
|
-
line:
|
|
14323
|
-
column:
|
|
14378
|
+
line: 74,
|
|
14379
|
+
column: 58
|
|
14324
14380
|
}
|
|
14325
14381
|
}
|
|
14326
14382
|
},
|
|
@@ -14343,7 +14399,7 @@ function cov_2pomp2sey4() {
|
|
|
14343
14399
|
column: 6
|
|
14344
14400
|
},
|
|
14345
14401
|
end: {
|
|
14346
|
-
line:
|
|
14402
|
+
line: 84,
|
|
14347
14403
|
column: 1
|
|
14348
14404
|
}
|
|
14349
14405
|
},
|
|
@@ -14367,7 +14423,7 @@ function cov_2pomp2sey4() {
|
|
|
14367
14423
|
column: 10
|
|
14368
14424
|
},
|
|
14369
14425
|
end: {
|
|
14370
|
-
line:
|
|
14426
|
+
line: 79,
|
|
14371
14427
|
column: 16
|
|
14372
14428
|
}
|
|
14373
14429
|
},
|
|
@@ -14401,25 +14457,25 @@ function cov_2pomp2sey4() {
|
|
|
14401
14457
|
name: "(anonymous_3)",
|
|
14402
14458
|
decl: {
|
|
14403
14459
|
start: {
|
|
14404
|
-
line:
|
|
14405
|
-
column:
|
|
14460
|
+
line: 74,
|
|
14461
|
+
column: 29
|
|
14406
14462
|
},
|
|
14407
14463
|
end: {
|
|
14408
|
-
line:
|
|
14409
|
-
column:
|
|
14464
|
+
line: 74,
|
|
14465
|
+
column: 30
|
|
14410
14466
|
}
|
|
14411
14467
|
},
|
|
14412
14468
|
loc: {
|
|
14413
14469
|
start: {
|
|
14414
|
-
line:
|
|
14415
|
-
column:
|
|
14470
|
+
line: 74,
|
|
14471
|
+
column: 35
|
|
14416
14472
|
},
|
|
14417
14473
|
end: {
|
|
14418
|
-
line:
|
|
14419
|
-
column:
|
|
14474
|
+
line: 74,
|
|
14475
|
+
column: 58
|
|
14420
14476
|
}
|
|
14421
14477
|
},
|
|
14422
|
-
line:
|
|
14478
|
+
line: 74
|
|
14423
14479
|
}
|
|
14424
14480
|
},
|
|
14425
14481
|
branchMap: {
|
|
@@ -14479,18 +14535,18 @@ function cov_2pomp2sey4() {
|
|
|
14479
14535
|
},
|
|
14480
14536
|
end: {
|
|
14481
14537
|
line: 18,
|
|
14482
|
-
column:
|
|
14538
|
+
column: 25
|
|
14483
14539
|
}
|
|
14484
14540
|
},
|
|
14485
14541
|
type: "default-arg",
|
|
14486
14542
|
locations: [{
|
|
14487
14543
|
start: {
|
|
14488
14544
|
line: 18,
|
|
14489
|
-
column:
|
|
14545
|
+
column: 21
|
|
14490
14546
|
},
|
|
14491
14547
|
end: {
|
|
14492
14548
|
line: 18,
|
|
14493
|
-
column:
|
|
14549
|
+
column: 25
|
|
14494
14550
|
}
|
|
14495
14551
|
}],
|
|
14496
14552
|
line: 18
|
|
@@ -14559,7 +14615,7 @@ function cov_2pomp2sey4() {
|
|
|
14559
14615
|
column: 17
|
|
14560
14616
|
},
|
|
14561
14617
|
end: {
|
|
14562
|
-
line:
|
|
14618
|
+
line: 76,
|
|
14563
14619
|
column: 17
|
|
14564
14620
|
}
|
|
14565
14621
|
},
|
|
@@ -14579,8 +14635,8 @@ function cov_2pomp2sey4() {
|
|
|
14579
14635
|
column: 18
|
|
14580
14636
|
},
|
|
14581
14637
|
end: {
|
|
14582
|
-
line:
|
|
14583
|
-
column:
|
|
14638
|
+
line: 75,
|
|
14639
|
+
column: 20
|
|
14584
14640
|
}
|
|
14585
14641
|
}],
|
|
14586
14642
|
line: 71
|
|
@@ -14609,7 +14665,7 @@ function cov_2pomp2sey4() {
|
|
|
14609
14665
|
"5": [0, 0]
|
|
14610
14666
|
},
|
|
14611
14667
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
14612
|
-
hash: "
|
|
14668
|
+
hash: "c473cb3866c3f7dc827cf95f47e8e5075c178fe5"
|
|
14613
14669
|
};
|
|
14614
14670
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
14615
14671
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -14633,8 +14689,8 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
14633
14689
|
loadMore = _ref$loadMore === void 0 ? (cov_2pomp2sey4().b[1][0]++, noop$2) : _ref$loadMore,
|
|
14634
14690
|
tab = _ref.tab,
|
|
14635
14691
|
images = _ref.images,
|
|
14636
|
-
_ref$
|
|
14637
|
-
|
|
14692
|
+
_ref$setSelectedImage = _ref.setSelectedImage,
|
|
14693
|
+
setSelectedImage = _ref$setSelectedImage === void 0 ? (cov_2pomp2sey4().b[2][0]++, noop$2) : _ref$setSelectedImage,
|
|
14638
14694
|
_ref$handleUnsplashIm = _ref.handleUnsplashImageSelect,
|
|
14639
14695
|
handleUnsplashImageSelect = _ref$handleUnsplashIm === void 0 ? (cov_2pomp2sey4().b[3][0]++, noop$2) : _ref$handleUnsplashIm;
|
|
14640
14696
|
cov_2pomp2sey4().f[0]++;
|
|
@@ -14686,7 +14742,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
14686
14742
|
onClick: function onClick() {
|
|
14687
14743
|
cov_2pomp2sey4().f[3]++;
|
|
14688
14744
|
cov_2pomp2sey4().s[5]++;
|
|
14689
|
-
return
|
|
14745
|
+
return setSelectedImage(image);
|
|
14690
14746
|
}
|
|
14691
14747
|
})))));
|
|
14692
14748
|
})));
|
|
@@ -14694,7 +14750,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
14694
14750
|
|
|
14695
14751
|
function cov_10brjehl2r() {
|
|
14696
14752
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/Assets.jsx";
|
|
14697
|
-
var hash = "
|
|
14753
|
+
var hash = "a71ba387ca16e5ae7c32643d4ef9f02583072e0c";
|
|
14698
14754
|
var global = new Function("return this")();
|
|
14699
14755
|
var gcv = "__coverage__";
|
|
14700
14756
|
var coverageData = {
|
|
@@ -14706,7 +14762,7 @@ function cov_10brjehl2r() {
|
|
|
14706
14762
|
column: 15
|
|
14707
14763
|
},
|
|
14708
14764
|
end: {
|
|
14709
|
-
line:
|
|
14765
|
+
line: 40,
|
|
14710
14766
|
column: 1
|
|
14711
14767
|
}
|
|
14712
14768
|
},
|
|
@@ -14723,7 +14779,7 @@ function cov_10brjehl2r() {
|
|
|
14723
14779
|
"2": {
|
|
14724
14780
|
start: {
|
|
14725
14781
|
line: 16,
|
|
14726
|
-
column:
|
|
14782
|
+
column: 44
|
|
14727
14783
|
},
|
|
14728
14784
|
end: {
|
|
14729
14785
|
line: 19,
|
|
@@ -14756,7 +14812,7 @@ function cov_10brjehl2r() {
|
|
|
14756
14812
|
column: 2
|
|
14757
14813
|
},
|
|
14758
14814
|
end: {
|
|
14759
|
-
line:
|
|
14815
|
+
line: 39,
|
|
14760
14816
|
column: 4
|
|
14761
14817
|
}
|
|
14762
14818
|
}
|
|
@@ -14777,10 +14833,10 @@ function cov_10brjehl2r() {
|
|
|
14777
14833
|
loc: {
|
|
14778
14834
|
start: {
|
|
14779
14835
|
line: 13,
|
|
14780
|
-
column:
|
|
14836
|
+
column: 57
|
|
14781
14837
|
},
|
|
14782
14838
|
end: {
|
|
14783
|
-
line:
|
|
14839
|
+
line: 40,
|
|
14784
14840
|
column: 1
|
|
14785
14841
|
}
|
|
14786
14842
|
},
|
|
@@ -14852,7 +14908,7 @@ function cov_10brjehl2r() {
|
|
|
14852
14908
|
column: 9
|
|
14853
14909
|
},
|
|
14854
14910
|
end: {
|
|
14855
|
-
line:
|
|
14911
|
+
line: 39,
|
|
14856
14912
|
column: 3
|
|
14857
14913
|
}
|
|
14858
14914
|
},
|
|
@@ -14863,16 +14919,16 @@ function cov_10brjehl2r() {
|
|
|
14863
14919
|
column: 4
|
|
14864
14920
|
},
|
|
14865
14921
|
end: {
|
|
14866
|
-
line:
|
|
14867
|
-
column:
|
|
14922
|
+
line: 34,
|
|
14923
|
+
column: 6
|
|
14868
14924
|
}
|
|
14869
14925
|
}, {
|
|
14870
14926
|
start: {
|
|
14871
|
-
line:
|
|
14927
|
+
line: 36,
|
|
14872
14928
|
column: 4
|
|
14873
14929
|
},
|
|
14874
14930
|
end: {
|
|
14875
|
-
line:
|
|
14931
|
+
line: 38,
|
|
14876
14932
|
column: 10
|
|
14877
14933
|
}
|
|
14878
14934
|
}],
|
|
@@ -14896,7 +14952,7 @@ function cov_10brjehl2r() {
|
|
|
14896
14952
|
"2": [0, 0]
|
|
14897
14953
|
},
|
|
14898
14954
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
14899
|
-
hash: "
|
|
14955
|
+
hash: "a71ba387ca16e5ae7c32643d4ef9f02583072e0c"
|
|
14900
14956
|
};
|
|
14901
14957
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
14902
14958
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -14914,7 +14970,7 @@ function cov_10brjehl2r() {
|
|
|
14914
14970
|
cov_10brjehl2r();
|
|
14915
14971
|
cov_10brjehl2r().s[0]++;
|
|
14916
14972
|
var Assets = function Assets(_ref) {
|
|
14917
|
-
var
|
|
14973
|
+
var setSelectedImage = _ref.setSelectedImage,
|
|
14918
14974
|
debouncedQuery = _ref.debouncedQuery;
|
|
14919
14975
|
cov_10brjehl2r().f[0]++;
|
|
14920
14976
|
var _ref2 = (cov_10brjehl2r().s[1]++, useTranslation()),
|
|
@@ -14925,9 +14981,9 @@ var Assets = function Assets(_ref) {
|
|
|
14925
14981
|
})),
|
|
14926
14982
|
_ref3$data = _ref3.data,
|
|
14927
14983
|
images = _ref3$data === void 0 ? (cov_10brjehl2r().b[0][0]++, []) : _ref3$data,
|
|
14928
|
-
|
|
14984
|
+
isFetching = _ref3.isFetching;
|
|
14929
14985
|
cov_10brjehl2r().s[3]++;
|
|
14930
|
-
if (
|
|
14986
|
+
if (isFetching) {
|
|
14931
14987
|
cov_10brjehl2r().b[1][0]++;
|
|
14932
14988
|
cov_10brjehl2r().s[4]++;
|
|
14933
14989
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -14939,7 +14995,7 @@ var Assets = function Assets(_ref) {
|
|
|
14939
14995
|
cov_10brjehl2r().s[5]++;
|
|
14940
14996
|
return isNotEmpty(images) ? (cov_10brjehl2r().b[2][0]++, /*#__PURE__*/React.createElement(InfiniteScroller, {
|
|
14941
14997
|
images: images,
|
|
14942
|
-
|
|
14998
|
+
setSelectedImage: setSelectedImage,
|
|
14943
14999
|
tab: TABS[0].key
|
|
14944
15000
|
})) : (cov_10brjehl2r().b[2][1]++, /*#__PURE__*/React.createElement("div", {
|
|
14945
15001
|
className: "flex items-center justify-center"
|
|
@@ -15362,13 +15418,13 @@ var useFetchUnsplashImages = function useFetchUnsplashImages(_ref2) {
|
|
|
15362
15418
|
}, options));
|
|
15363
15419
|
};
|
|
15364
15420
|
|
|
15365
|
-
function
|
|
15366
|
-
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/
|
|
15367
|
-
var hash = "
|
|
15421
|
+
function cov_1hbj0u25oo() {
|
|
15422
|
+
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/utils.js";
|
|
15423
|
+
var hash = "870cb6de5c05330de38467ffa73657cf7d079c56";
|
|
15368
15424
|
var global = new Function("return this")();
|
|
15369
15425
|
var gcv = "__coverage__";
|
|
15370
15426
|
var coverageData = {
|
|
15371
|
-
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/
|
|
15427
|
+
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/utils.js",
|
|
15372
15428
|
statementMap: {
|
|
15373
15429
|
"0": {
|
|
15374
15430
|
start: {
|
|
@@ -15693,7 +15749,7 @@ function cov_1wbab1h362() {
|
|
|
15693
15749
|
"1": [0, 0]
|
|
15694
15750
|
},
|
|
15695
15751
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
15696
|
-
hash: "
|
|
15752
|
+
hash: "870cb6de5c05330de38467ffa73657cf7d079c56"
|
|
15697
15753
|
};
|
|
15698
15754
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
15699
15755
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -15702,69 +15758,69 @@ function cov_1wbab1h362() {
|
|
|
15702
15758
|
var actualCoverage = coverage[path];
|
|
15703
15759
|
{
|
|
15704
15760
|
// @ts-ignore
|
|
15705
|
-
|
|
15761
|
+
cov_1hbj0u25oo = function () {
|
|
15706
15762
|
return actualCoverage;
|
|
15707
15763
|
};
|
|
15708
15764
|
}
|
|
15709
15765
|
return actualCoverage;
|
|
15710
15766
|
}
|
|
15711
|
-
|
|
15712
|
-
|
|
15767
|
+
cov_1hbj0u25oo();
|
|
15768
|
+
cov_1hbj0u25oo().s[0]++;
|
|
15713
15769
|
var uploadWithDirectUpload = function uploadWithDirectUpload(file) {
|
|
15714
|
-
|
|
15715
|
-
|
|
15770
|
+
cov_1hbj0u25oo().f[0]++;
|
|
15771
|
+
cov_1hbj0u25oo().s[1]++;
|
|
15716
15772
|
return new Promise(function (resolve, reject) {
|
|
15717
|
-
|
|
15718
|
-
var upload = (
|
|
15719
|
-
|
|
15773
|
+
cov_1hbj0u25oo().f[1]++;
|
|
15774
|
+
var upload = (cov_1hbj0u25oo().s[2]++, new DirectUpload(file, "/api/direct_uploads"));
|
|
15775
|
+
cov_1hbj0u25oo().s[3]++;
|
|
15720
15776
|
upload.create(function (error, blob) {
|
|
15721
|
-
|
|
15722
|
-
|
|
15777
|
+
cov_1hbj0u25oo().f[2]++;
|
|
15778
|
+
cov_1hbj0u25oo().s[4]++;
|
|
15723
15779
|
if (error) {
|
|
15724
|
-
|
|
15725
|
-
|
|
15780
|
+
cov_1hbj0u25oo().b[0][0]++;
|
|
15781
|
+
cov_1hbj0u25oo().s[5]++;
|
|
15726
15782
|
reject(error);
|
|
15727
|
-
|
|
15783
|
+
cov_1hbj0u25oo().s[6]++;
|
|
15728
15784
|
return;
|
|
15729
15785
|
} else {
|
|
15730
|
-
|
|
15786
|
+
cov_1hbj0u25oo().b[0][1]++;
|
|
15731
15787
|
}
|
|
15732
|
-
var payload = (
|
|
15788
|
+
var payload = (cov_1hbj0u25oo().s[7]++, {
|
|
15733
15789
|
id: blob.signed_id,
|
|
15734
15790
|
payload: {
|
|
15735
15791
|
metadata: {
|
|
15736
|
-
|
|
15792
|
+
organizationKey: globalProps.organization.publicApiKey,
|
|
15737
15793
|
url: blob.blob_url,
|
|
15738
15794
|
height: 200,
|
|
15739
15795
|
width: 200
|
|
15740
15796
|
}
|
|
15741
15797
|
}
|
|
15742
15798
|
});
|
|
15743
|
-
|
|
15799
|
+
cov_1hbj0u25oo().s[8]++;
|
|
15744
15800
|
directUploadsApi.update(payload);
|
|
15745
|
-
|
|
15801
|
+
cov_1hbj0u25oo().s[9]++;
|
|
15746
15802
|
resolve(mergeRight(keysToCamelCase(blob), {
|
|
15747
15803
|
url: blob.blob_url
|
|
15748
15804
|
}));
|
|
15749
15805
|
});
|
|
15750
15806
|
});
|
|
15751
15807
|
};
|
|
15752
|
-
|
|
15808
|
+
cov_1hbj0u25oo().s[10]++;
|
|
15753
15809
|
var uploadWithImageKit = /*#__PURE__*/function () {
|
|
15754
15810
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
15755
15811
|
var imagekit;
|
|
15756
15812
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15757
15813
|
while (1) switch (_context.prev = _context.next) {
|
|
15758
15814
|
case 0:
|
|
15759
|
-
|
|
15760
|
-
imagekit = (
|
|
15761
|
-
|
|
15815
|
+
cov_1hbj0u25oo().f[3]++;
|
|
15816
|
+
imagekit = (cov_1hbj0u25oo().s[11]++, new ImageKit(globalProps.imageKit));
|
|
15817
|
+
cov_1hbj0u25oo().s[12]++;
|
|
15762
15818
|
return _context.abrupt("return", imagekit.upload({
|
|
15763
15819
|
file: file,
|
|
15764
15820
|
fileName: UNSPLASH_DEFAULT_NAME,
|
|
15765
|
-
folder: (
|
|
15821
|
+
folder: (cov_1hbj0u25oo().b[1][0]++, globalProps.imageKit.folder) || (cov_1hbj0u25oo().b[1][1]++, IMAGE_KIT_DEFAULT_FOLDER),
|
|
15766
15822
|
customMetadata: {
|
|
15767
|
-
|
|
15823
|
+
organizationKey: globalProps.organization.publicApiKey,
|
|
15768
15824
|
appName: globalProps.appName
|
|
15769
15825
|
}
|
|
15770
15826
|
}));
|
|
@@ -15781,7 +15837,7 @@ var uploadWithImageKit = /*#__PURE__*/function () {
|
|
|
15781
15837
|
|
|
15782
15838
|
function cov_28odpwq50i() {
|
|
15783
15839
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/Unsplash.jsx";
|
|
15784
|
-
var hash = "
|
|
15840
|
+
var hash = "e056be1757669955145c1d0219959ffac38ce998";
|
|
15785
15841
|
var global = new Function("return this")();
|
|
15786
15842
|
var gcv = "__coverage__";
|
|
15787
15843
|
var coverageData = {
|
|
@@ -15789,351 +15845,351 @@ function cov_28odpwq50i() {
|
|
|
15789
15845
|
statementMap: {
|
|
15790
15846
|
"0": {
|
|
15791
15847
|
start: {
|
|
15792
|
-
line:
|
|
15848
|
+
line: 21,
|
|
15793
15849
|
column: 24
|
|
15794
15850
|
},
|
|
15795
15851
|
end: {
|
|
15796
|
-
line:
|
|
15852
|
+
line: 109,
|
|
15797
15853
|
column: 1
|
|
15798
15854
|
}
|
|
15799
15855
|
},
|
|
15800
15856
|
"1": {
|
|
15801
15857
|
start: {
|
|
15802
|
-
line:
|
|
15858
|
+
line: 26,
|
|
15803
15859
|
column: 32
|
|
15804
15860
|
},
|
|
15805
15861
|
end: {
|
|
15806
|
-
line:
|
|
15862
|
+
line: 26,
|
|
15807
15863
|
column: 46
|
|
15808
15864
|
}
|
|
15809
15865
|
},
|
|
15810
15866
|
"2": {
|
|
15811
15867
|
start: {
|
|
15812
|
-
line:
|
|
15868
|
+
line: 27,
|
|
15813
15869
|
column: 30
|
|
15814
15870
|
},
|
|
15815
15871
|
end: {
|
|
15816
|
-
line:
|
|
15872
|
+
line: 27,
|
|
15817
15873
|
column: 42
|
|
15818
15874
|
}
|
|
15819
15875
|
},
|
|
15820
15876
|
"3": {
|
|
15821
15877
|
start: {
|
|
15822
|
-
line:
|
|
15878
|
+
line: 28,
|
|
15823
15879
|
column: 30
|
|
15824
15880
|
},
|
|
15825
15881
|
end: {
|
|
15826
|
-
line:
|
|
15882
|
+
line: 28,
|
|
15827
15883
|
column: 41
|
|
15828
15884
|
}
|
|
15829
15885
|
},
|
|
15830
15886
|
"4": {
|
|
15831
15887
|
start: {
|
|
15832
|
-
line:
|
|
15888
|
+
line: 29,
|
|
15833
15889
|
column: 28
|
|
15834
15890
|
},
|
|
15835
15891
|
end: {
|
|
15836
|
-
line:
|
|
15892
|
+
line: 29,
|
|
15837
15893
|
column: 43
|
|
15838
15894
|
}
|
|
15839
15895
|
},
|
|
15840
15896
|
"5": {
|
|
15841
15897
|
start: {
|
|
15842
|
-
line:
|
|
15898
|
+
line: 31,
|
|
15843
15899
|
column: 20
|
|
15844
15900
|
},
|
|
15845
15901
|
end: {
|
|
15846
|
-
line:
|
|
15902
|
+
line: 36,
|
|
15847
15903
|
column: 3
|
|
15848
15904
|
}
|
|
15849
15905
|
},
|
|
15850
15906
|
"6": {
|
|
15851
15907
|
start: {
|
|
15852
|
-
line:
|
|
15908
|
+
line: 32,
|
|
15853
15909
|
column: 4
|
|
15854
15910
|
},
|
|
15855
15911
|
end: {
|
|
15856
|
-
line:
|
|
15912
|
+
line: 32,
|
|
15857
15913
|
column: 76
|
|
15858
15914
|
}
|
|
15859
15915
|
},
|
|
15860
15916
|
"7": {
|
|
15861
15917
|
start: {
|
|
15862
|
-
line:
|
|
15918
|
+
line: 34,
|
|
15863
15919
|
column: 4
|
|
15864
15920
|
},
|
|
15865
15921
|
end: {
|
|
15866
|
-
line:
|
|
15922
|
+
line: 34,
|
|
15867
15923
|
column: 19
|
|
15868
15924
|
}
|
|
15869
15925
|
},
|
|
15870
15926
|
"8": {
|
|
15871
15927
|
start: {
|
|
15872
|
-
line:
|
|
15928
|
+
line: 35,
|
|
15873
15929
|
column: 4
|
|
15874
15930
|
},
|
|
15875
15931
|
end: {
|
|
15876
|
-
line:
|
|
15932
|
+
line: 35,
|
|
15877
15933
|
column: 36
|
|
15878
15934
|
}
|
|
15879
15935
|
},
|
|
15880
15936
|
"9": {
|
|
15881
15937
|
start: {
|
|
15882
|
-
line:
|
|
15938
|
+
line: 38,
|
|
15883
15939
|
column: 36
|
|
15884
15940
|
},
|
|
15885
15941
|
end: {
|
|
15886
|
-
line:
|
|
15942
|
+
line: 60,
|
|
15887
15943
|
column: 3
|
|
15888
15944
|
}
|
|
15889
15945
|
},
|
|
15890
15946
|
"10": {
|
|
15891
15947
|
start: {
|
|
15892
|
-
line:
|
|
15948
|
+
line: 39,
|
|
15893
15949
|
column: 4
|
|
15894
15950
|
},
|
|
15895
15951
|
end: {
|
|
15896
|
-
line:
|
|
15952
|
+
line: 59,
|
|
15897
15953
|
column: 5
|
|
15898
15954
|
}
|
|
15899
15955
|
},
|
|
15900
15956
|
"11": {
|
|
15901
15957
|
start: {
|
|
15902
|
-
line:
|
|
15958
|
+
line: 40,
|
|
15903
15959
|
column: 6
|
|
15904
15960
|
},
|
|
15905
15961
|
end: {
|
|
15906
|
-
line:
|
|
15962
|
+
line: 40,
|
|
15907
15963
|
column: 27
|
|
15908
15964
|
}
|
|
15909
15965
|
},
|
|
15910
15966
|
"12": {
|
|
15911
15967
|
start: {
|
|
15912
|
-
line:
|
|
15968
|
+
line: 41,
|
|
15913
15969
|
column: 23
|
|
15914
15970
|
},
|
|
15915
15971
|
end: {
|
|
15916
|
-
line:
|
|
15972
|
+
line: 44,
|
|
15917
15973
|
column: 7
|
|
15918
15974
|
}
|
|
15919
15975
|
},
|
|
15920
15976
|
"13": {
|
|
15921
15977
|
start: {
|
|
15922
|
-
line:
|
|
15978
|
+
line: 46,
|
|
15923
15979
|
column: 19
|
|
15924
15980
|
},
|
|
15925
15981
|
end: {
|
|
15926
|
-
line:
|
|
15982
|
+
line: 48,
|
|
15927
15983
|
column: 8
|
|
15928
15984
|
}
|
|
15929
15985
|
},
|
|
15930
15986
|
"14": {
|
|
15931
15987
|
start: {
|
|
15932
|
-
line:
|
|
15988
|
+
line: 50,
|
|
15933
15989
|
column: 21
|
|
15934
15990
|
},
|
|
15935
15991
|
end: {
|
|
15936
|
-
line:
|
|
15992
|
+
line: 52,
|
|
15937
15993
|
column: 40
|
|
15938
15994
|
}
|
|
15939
15995
|
},
|
|
15940
15996
|
"15": {
|
|
15941
15997
|
start: {
|
|
15942
|
-
line:
|
|
15998
|
+
line: 54,
|
|
15943
15999
|
column: 6
|
|
15944
16000
|
},
|
|
15945
16001
|
end: {
|
|
15946
|
-
line:
|
|
15947
|
-
column:
|
|
16002
|
+
line: 54,
|
|
16003
|
+
column: 31
|
|
15948
16004
|
}
|
|
15949
16005
|
},
|
|
15950
16006
|
"16": {
|
|
15951
16007
|
start: {
|
|
15952
|
-
line:
|
|
16008
|
+
line: 56,
|
|
15953
16009
|
column: 6
|
|
15954
16010
|
},
|
|
15955
16011
|
end: {
|
|
15956
|
-
line:
|
|
16012
|
+
line: 56,
|
|
15957
16013
|
column: 26
|
|
15958
16014
|
}
|
|
15959
16015
|
},
|
|
15960
16016
|
"17": {
|
|
15961
16017
|
start: {
|
|
15962
|
-
line:
|
|
16018
|
+
line: 58,
|
|
15963
16019
|
column: 6
|
|
15964
16020
|
},
|
|
15965
16021
|
end: {
|
|
15966
|
-
line:
|
|
16022
|
+
line: 58,
|
|
15967
16023
|
column: 28
|
|
15968
16024
|
}
|
|
15969
16025
|
},
|
|
15970
16026
|
"18": {
|
|
15971
16027
|
start: {
|
|
15972
|
-
line:
|
|
16028
|
+
line: 62,
|
|
15973
16029
|
column: 18
|
|
15974
16030
|
},
|
|
15975
16031
|
end: {
|
|
15976
|
-
line:
|
|
16032
|
+
line: 62,
|
|
15977
16033
|
column: 38
|
|
15978
16034
|
}
|
|
15979
16035
|
},
|
|
15980
16036
|
"19": {
|
|
15981
16037
|
start: {
|
|
15982
|
-
line:
|
|
16038
|
+
line: 62,
|
|
15983
16039
|
column: 24
|
|
15984
16040
|
},
|
|
15985
16041
|
end: {
|
|
15986
|
-
line:
|
|
16042
|
+
line: 62,
|
|
15987
16043
|
column: 38
|
|
15988
16044
|
}
|
|
15989
16045
|
},
|
|
15990
16046
|
"20": {
|
|
15991
16047
|
start: {
|
|
15992
|
-
line:
|
|
16048
|
+
line: 64,
|
|
15993
16049
|
column: 16
|
|
15994
16050
|
},
|
|
15995
16051
|
end: {
|
|
15996
|
-
line:
|
|
16052
|
+
line: 64,
|
|
15997
16053
|
column: 32
|
|
15998
16054
|
}
|
|
15999
16055
|
},
|
|
16000
16056
|
"21": {
|
|
16001
16057
|
start: {
|
|
16002
|
-
line:
|
|
16058
|
+
line: 66,
|
|
16003
16059
|
column: 34
|
|
16004
16060
|
},
|
|
16005
16061
|
end: {
|
|
16006
|
-
line:
|
|
16062
|
+
line: 75,
|
|
16007
16063
|
column: 3
|
|
16008
16064
|
}
|
|
16009
16065
|
},
|
|
16010
16066
|
"22": {
|
|
16011
16067
|
start: {
|
|
16012
|
-
line:
|
|
16068
|
+
line: 77,
|
|
16013
16069
|
column: 19
|
|
16014
16070
|
},
|
|
16015
16071
|
end: {
|
|
16016
|
-
line:
|
|
16072
|
+
line: 84,
|
|
16017
16073
|
column: 9
|
|
16018
16074
|
}
|
|
16019
16075
|
},
|
|
16020
16076
|
"23": {
|
|
16021
16077
|
start: {
|
|
16022
|
-
line:
|
|
16078
|
+
line: 78,
|
|
16023
16079
|
column: 4
|
|
16024
16080
|
},
|
|
16025
16081
|
end: {
|
|
16026
|
-
line:
|
|
16082
|
+
line: 78,
|
|
16027
16083
|
column: 39
|
|
16028
16084
|
}
|
|
16029
16085
|
},
|
|
16030
16086
|
"24": {
|
|
16031
16087
|
start: {
|
|
16032
|
-
line:
|
|
16088
|
+
line: 78,
|
|
16033
16089
|
column: 32
|
|
16034
16090
|
},
|
|
16035
16091
|
end: {
|
|
16036
|
-
line:
|
|
16092
|
+
line: 78,
|
|
16037
16093
|
column: 39
|
|
16038
16094
|
}
|
|
16039
16095
|
},
|
|
16040
16096
|
"25": {
|
|
16041
16097
|
start: {
|
|
16042
|
-
line:
|
|
16098
|
+
line: 80,
|
|
16043
16099
|
column: 4
|
|
16044
16100
|
},
|
|
16045
16101
|
end: {
|
|
16046
|
-
line:
|
|
16102
|
+
line: 83,
|
|
16047
16103
|
column: 5
|
|
16048
16104
|
}
|
|
16049
16105
|
},
|
|
16050
16106
|
"26": {
|
|
16051
16107
|
start: {
|
|
16052
|
-
line:
|
|
16108
|
+
line: 81,
|
|
16053
16109
|
column: 6
|
|
16054
16110
|
},
|
|
16055
16111
|
end: {
|
|
16056
|
-
line:
|
|
16112
|
+
line: 81,
|
|
16057
16113
|
column: 22
|
|
16058
16114
|
}
|
|
16059
16115
|
},
|
|
16060
16116
|
"27": {
|
|
16061
16117
|
start: {
|
|
16062
|
-
line:
|
|
16118
|
+
line: 82,
|
|
16063
16119
|
column: 6
|
|
16064
16120
|
},
|
|
16065
16121
|
end: {
|
|
16066
|
-
line:
|
|
16122
|
+
line: 82,
|
|
16067
16123
|
column: 16
|
|
16068
16124
|
}
|
|
16069
16125
|
},
|
|
16070
16126
|
"28": {
|
|
16071
16127
|
start: {
|
|
16072
|
-
line:
|
|
16128
|
+
line: 86,
|
|
16073
16129
|
column: 2
|
|
16074
16130
|
},
|
|
16075
16131
|
end: {
|
|
16076
|
-
line:
|
|
16132
|
+
line: 90,
|
|
16077
16133
|
column: 23
|
|
16078
16134
|
}
|
|
16079
16135
|
},
|
|
16080
16136
|
"29": {
|
|
16081
16137
|
start: {
|
|
16082
|
-
line:
|
|
16138
|
+
line: 87,
|
|
16083
16139
|
column: 4
|
|
16084
16140
|
},
|
|
16085
16141
|
end: {
|
|
16086
|
-
line:
|
|
16142
|
+
line: 87,
|
|
16087
16143
|
column: 17
|
|
16088
16144
|
}
|
|
16089
16145
|
},
|
|
16090
16146
|
"30": {
|
|
16091
16147
|
start: {
|
|
16092
|
-
line:
|
|
16148
|
+
line: 88,
|
|
16093
16149
|
column: 4
|
|
16094
16150
|
},
|
|
16095
16151
|
end: {
|
|
16096
|
-
line:
|
|
16152
|
+
line: 88,
|
|
16097
16153
|
column: 18
|
|
16098
16154
|
}
|
|
16099
16155
|
},
|
|
16100
16156
|
"31": {
|
|
16101
16157
|
start: {
|
|
16102
|
-
line:
|
|
16158
|
+
line: 89,
|
|
16103
16159
|
column: 4
|
|
16104
16160
|
},
|
|
16105
16161
|
end: {
|
|
16106
|
-
line:
|
|
16162
|
+
line: 89,
|
|
16107
16163
|
column: 14
|
|
16108
16164
|
}
|
|
16109
16165
|
},
|
|
16110
16166
|
"32": {
|
|
16111
16167
|
start: {
|
|
16112
|
-
line:
|
|
16168
|
+
line: 92,
|
|
16113
16169
|
column: 2
|
|
16114
16170
|
},
|
|
16115
16171
|
end: {
|
|
16116
|
-
line:
|
|
16172
|
+
line: 98,
|
|
16117
16173
|
column: 3
|
|
16118
16174
|
}
|
|
16119
16175
|
},
|
|
16120
16176
|
"33": {
|
|
16121
16177
|
start: {
|
|
16122
|
-
line:
|
|
16178
|
+
line: 93,
|
|
16123
16179
|
column: 4
|
|
16124
16180
|
},
|
|
16125
16181
|
end: {
|
|
16126
|
-
line:
|
|
16182
|
+
line: 97,
|
|
16127
16183
|
column: 6
|
|
16128
16184
|
}
|
|
16129
16185
|
},
|
|
16130
16186
|
"34": {
|
|
16131
16187
|
start: {
|
|
16132
|
-
line:
|
|
16188
|
+
line: 100,
|
|
16133
16189
|
column: 2
|
|
16134
16190
|
},
|
|
16135
16191
|
end: {
|
|
16136
|
-
line:
|
|
16192
|
+
line: 108,
|
|
16137
16193
|
column: 4
|
|
16138
16194
|
}
|
|
16139
16195
|
}
|
|
@@ -16143,257 +16199,257 @@ function cov_28odpwq50i() {
|
|
|
16143
16199
|
name: "(anonymous_0)",
|
|
16144
16200
|
decl: {
|
|
16145
16201
|
start: {
|
|
16146
|
-
line:
|
|
16202
|
+
line: 21,
|
|
16147
16203
|
column: 24
|
|
16148
16204
|
},
|
|
16149
16205
|
end: {
|
|
16150
|
-
line:
|
|
16206
|
+
line: 21,
|
|
16151
16207
|
column: 25
|
|
16152
16208
|
}
|
|
16153
16209
|
},
|
|
16154
16210
|
loc: {
|
|
16155
16211
|
start: {
|
|
16156
|
-
line:
|
|
16157
|
-
column:
|
|
16212
|
+
line: 25,
|
|
16213
|
+
column: 6
|
|
16158
16214
|
},
|
|
16159
16215
|
end: {
|
|
16160
|
-
line:
|
|
16216
|
+
line: 109,
|
|
16161
16217
|
column: 1
|
|
16162
16218
|
}
|
|
16163
16219
|
},
|
|
16164
|
-
line:
|
|
16220
|
+
line: 25
|
|
16165
16221
|
},
|
|
16166
16222
|
"1": {
|
|
16167
16223
|
name: "(anonymous_1)",
|
|
16168
16224
|
decl: {
|
|
16169
16225
|
start: {
|
|
16170
|
-
line:
|
|
16226
|
+
line: 31,
|
|
16171
16227
|
column: 20
|
|
16172
16228
|
},
|
|
16173
16229
|
end: {
|
|
16174
|
-
line:
|
|
16230
|
+
line: 31,
|
|
16175
16231
|
column: 21
|
|
16176
16232
|
}
|
|
16177
16233
|
},
|
|
16178
16234
|
loc: {
|
|
16179
16235
|
start: {
|
|
16180
|
-
line:
|
|
16236
|
+
line: 31,
|
|
16181
16237
|
column: 54
|
|
16182
16238
|
},
|
|
16183
16239
|
end: {
|
|
16184
|
-
line:
|
|
16240
|
+
line: 36,
|
|
16185
16241
|
column: 3
|
|
16186
16242
|
}
|
|
16187
16243
|
},
|
|
16188
|
-
line:
|
|
16244
|
+
line: 31
|
|
16189
16245
|
},
|
|
16190
16246
|
"2": {
|
|
16191
16247
|
name: "(anonymous_2)",
|
|
16192
16248
|
decl: {
|
|
16193
16249
|
start: {
|
|
16194
|
-
line:
|
|
16250
|
+
line: 38,
|
|
16195
16251
|
column: 36
|
|
16196
16252
|
},
|
|
16197
16253
|
end: {
|
|
16198
|
-
line:
|
|
16254
|
+
line: 38,
|
|
16199
16255
|
column: 37
|
|
16200
16256
|
}
|
|
16201
16257
|
},
|
|
16202
16258
|
loc: {
|
|
16203
16259
|
start: {
|
|
16204
|
-
line:
|
|
16260
|
+
line: 38,
|
|
16205
16261
|
column: 51
|
|
16206
16262
|
},
|
|
16207
16263
|
end: {
|
|
16208
|
-
line:
|
|
16264
|
+
line: 60,
|
|
16209
16265
|
column: 3
|
|
16210
16266
|
}
|
|
16211
16267
|
},
|
|
16212
|
-
line:
|
|
16268
|
+
line: 38
|
|
16213
16269
|
},
|
|
16214
16270
|
"3": {
|
|
16215
16271
|
name: "(anonymous_3)",
|
|
16216
16272
|
decl: {
|
|
16217
16273
|
start: {
|
|
16218
|
-
line:
|
|
16274
|
+
line: 62,
|
|
16219
16275
|
column: 18
|
|
16220
16276
|
},
|
|
16221
16277
|
end: {
|
|
16222
|
-
line:
|
|
16278
|
+
line: 62,
|
|
16223
16279
|
column: 19
|
|
16224
16280
|
}
|
|
16225
16281
|
},
|
|
16226
16282
|
loc: {
|
|
16227
16283
|
start: {
|
|
16228
|
-
line:
|
|
16284
|
+
line: 62,
|
|
16229
16285
|
column: 24
|
|
16230
16286
|
},
|
|
16231
16287
|
end: {
|
|
16232
|
-
line:
|
|
16288
|
+
line: 62,
|
|
16233
16289
|
column: 38
|
|
16234
16290
|
}
|
|
16235
16291
|
},
|
|
16236
|
-
line:
|
|
16292
|
+
line: 62
|
|
16237
16293
|
},
|
|
16238
16294
|
"4": {
|
|
16239
16295
|
name: "(anonymous_4)",
|
|
16240
16296
|
decl: {
|
|
16241
16297
|
start: {
|
|
16242
|
-
line:
|
|
16298
|
+
line: 77,
|
|
16243
16299
|
column: 35
|
|
16244
16300
|
},
|
|
16245
16301
|
end: {
|
|
16246
|
-
line:
|
|
16302
|
+
line: 77,
|
|
16247
16303
|
column: 36
|
|
16248
16304
|
}
|
|
16249
16305
|
},
|
|
16250
16306
|
loc: {
|
|
16251
16307
|
start: {
|
|
16252
|
-
line:
|
|
16308
|
+
line: 77,
|
|
16253
16309
|
column: 41
|
|
16254
16310
|
},
|
|
16255
16311
|
end: {
|
|
16256
|
-
line:
|
|
16312
|
+
line: 84,
|
|
16257
16313
|
column: 3
|
|
16258
16314
|
}
|
|
16259
16315
|
},
|
|
16260
|
-
line:
|
|
16316
|
+
line: 77
|
|
16261
16317
|
},
|
|
16262
16318
|
"5": {
|
|
16263
16319
|
name: "(anonymous_5)",
|
|
16264
16320
|
decl: {
|
|
16265
16321
|
start: {
|
|
16266
|
-
line:
|
|
16322
|
+
line: 86,
|
|
16267
16323
|
column: 12
|
|
16268
16324
|
},
|
|
16269
16325
|
end: {
|
|
16270
|
-
line:
|
|
16326
|
+
line: 86,
|
|
16271
16327
|
column: 13
|
|
16272
16328
|
}
|
|
16273
16329
|
},
|
|
16274
16330
|
loc: {
|
|
16275
16331
|
start: {
|
|
16276
|
-
line:
|
|
16332
|
+
line: 86,
|
|
16277
16333
|
column: 18
|
|
16278
16334
|
},
|
|
16279
16335
|
end: {
|
|
16280
|
-
line:
|
|
16336
|
+
line: 90,
|
|
16281
16337
|
column: 3
|
|
16282
16338
|
}
|
|
16283
16339
|
},
|
|
16284
|
-
line:
|
|
16340
|
+
line: 86
|
|
16285
16341
|
}
|
|
16286
16342
|
},
|
|
16287
16343
|
branchMap: {
|
|
16288
16344
|
"0": {
|
|
16289
16345
|
loc: {
|
|
16290
16346
|
start: {
|
|
16291
|
-
line:
|
|
16347
|
+
line: 31,
|
|
16292
16348
|
column: 23
|
|
16293
16349
|
},
|
|
16294
16350
|
end: {
|
|
16295
|
-
line:
|
|
16351
|
+
line: 31,
|
|
16296
16352
|
column: 35
|
|
16297
16353
|
}
|
|
16298
16354
|
},
|
|
16299
16355
|
type: "default-arg",
|
|
16300
16356
|
locations: [{
|
|
16301
16357
|
start: {
|
|
16302
|
-
line:
|
|
16358
|
+
line: 31,
|
|
16303
16359
|
column: 33
|
|
16304
16360
|
},
|
|
16305
16361
|
end: {
|
|
16306
|
-
line:
|
|
16362
|
+
line: 31,
|
|
16307
16363
|
column: 35
|
|
16308
16364
|
}
|
|
16309
16365
|
}],
|
|
16310
|
-
line:
|
|
16366
|
+
line: 31
|
|
16311
16367
|
},
|
|
16312
16368
|
"1": {
|
|
16313
16369
|
loc: {
|
|
16314
16370
|
start: {
|
|
16315
|
-
line:
|
|
16371
|
+
line: 32,
|
|
16316
16372
|
column: 4
|
|
16317
16373
|
},
|
|
16318
16374
|
end: {
|
|
16319
|
-
line:
|
|
16375
|
+
line: 32,
|
|
16320
16376
|
column: 75
|
|
16321
16377
|
}
|
|
16322
16378
|
},
|
|
16323
16379
|
type: "cond-expr",
|
|
16324
16380
|
locations: [{
|
|
16325
16381
|
start: {
|
|
16326
|
-
line:
|
|
16382
|
+
line: 32,
|
|
16327
16383
|
column: 24
|
|
16328
16384
|
},
|
|
16329
16385
|
end: {
|
|
16330
|
-
line:
|
|
16386
|
+
line: 32,
|
|
16331
16387
|
column: 42
|
|
16332
16388
|
}
|
|
16333
16389
|
}, {
|
|
16334
16390
|
start: {
|
|
16335
|
-
line:
|
|
16391
|
+
line: 32,
|
|
16336
16392
|
column: 45
|
|
16337
16393
|
},
|
|
16338
16394
|
end: {
|
|
16339
|
-
line:
|
|
16395
|
+
line: 32,
|
|
16340
16396
|
column: 75
|
|
16341
16397
|
}
|
|
16342
16398
|
}],
|
|
16343
|
-
line:
|
|
16399
|
+
line: 32
|
|
16344
16400
|
},
|
|
16345
16401
|
"2": {
|
|
16346
16402
|
loc: {
|
|
16347
16403
|
start: {
|
|
16348
|
-
line:
|
|
16404
|
+
line: 50,
|
|
16349
16405
|
column: 21
|
|
16350
16406
|
},
|
|
16351
16407
|
end: {
|
|
16352
|
-
line:
|
|
16408
|
+
line: 52,
|
|
16353
16409
|
column: 40
|
|
16354
16410
|
}
|
|
16355
16411
|
},
|
|
16356
16412
|
type: "cond-expr",
|
|
16357
16413
|
locations: [{
|
|
16358
16414
|
start: {
|
|
16359
|
-
line:
|
|
16415
|
+
line: 51,
|
|
16360
16416
|
column: 10
|
|
16361
16417
|
},
|
|
16362
16418
|
end: {
|
|
16363
|
-
line:
|
|
16419
|
+
line: 51,
|
|
16364
16420
|
column: 44
|
|
16365
16421
|
}
|
|
16366
16422
|
}, {
|
|
16367
16423
|
start: {
|
|
16368
|
-
line:
|
|
16424
|
+
line: 52,
|
|
16369
16425
|
column: 10
|
|
16370
16426
|
},
|
|
16371
16427
|
end: {
|
|
16372
|
-
line:
|
|
16428
|
+
line: 52,
|
|
16373
16429
|
column: 40
|
|
16374
16430
|
}
|
|
16375
16431
|
}],
|
|
16376
|
-
line:
|
|
16432
|
+
line: 50
|
|
16377
16433
|
},
|
|
16378
16434
|
"3": {
|
|
16379
16435
|
loc: {
|
|
16380
16436
|
start: {
|
|
16381
|
-
line:
|
|
16437
|
+
line: 78,
|
|
16382
16438
|
column: 4
|
|
16383
16439
|
},
|
|
16384
16440
|
end: {
|
|
16385
|
-
line:
|
|
16441
|
+
line: 78,
|
|
16386
16442
|
column: 39
|
|
16387
16443
|
}
|
|
16388
16444
|
},
|
|
16389
16445
|
type: "if",
|
|
16390
16446
|
locations: [{
|
|
16391
16447
|
start: {
|
|
16392
|
-
line:
|
|
16448
|
+
line: 78,
|
|
16393
16449
|
column: 4
|
|
16394
16450
|
},
|
|
16395
16451
|
end: {
|
|
16396
|
-
line:
|
|
16452
|
+
line: 78,
|
|
16397
16453
|
column: 39
|
|
16398
16454
|
}
|
|
16399
16455
|
}, {
|
|
@@ -16406,60 +16462,60 @@ function cov_28odpwq50i() {
|
|
|
16406
16462
|
column: undefined
|
|
16407
16463
|
}
|
|
16408
16464
|
}],
|
|
16409
|
-
line:
|
|
16465
|
+
line: 78
|
|
16410
16466
|
},
|
|
16411
16467
|
"4": {
|
|
16412
16468
|
loc: {
|
|
16413
16469
|
start: {
|
|
16414
|
-
line:
|
|
16470
|
+
line: 78,
|
|
16415
16471
|
column: 8
|
|
16416
16472
|
},
|
|
16417
16473
|
end: {
|
|
16418
|
-
line:
|
|
16474
|
+
line: 78,
|
|
16419
16475
|
column: 30
|
|
16420
16476
|
}
|
|
16421
16477
|
},
|
|
16422
16478
|
type: "binary-expr",
|
|
16423
16479
|
locations: [{
|
|
16424
16480
|
start: {
|
|
16425
|
-
line:
|
|
16481
|
+
line: 78,
|
|
16426
16482
|
column: 8
|
|
16427
16483
|
},
|
|
16428
16484
|
end: {
|
|
16429
|
-
line:
|
|
16485
|
+
line: 78,
|
|
16430
16486
|
column: 18
|
|
16431
16487
|
}
|
|
16432
16488
|
}, {
|
|
16433
16489
|
start: {
|
|
16434
|
-
line:
|
|
16490
|
+
line: 78,
|
|
16435
16491
|
column: 22
|
|
16436
16492
|
},
|
|
16437
16493
|
end: {
|
|
16438
|
-
line:
|
|
16494
|
+
line: 78,
|
|
16439
16495
|
column: 30
|
|
16440
16496
|
}
|
|
16441
16497
|
}],
|
|
16442
|
-
line:
|
|
16498
|
+
line: 78
|
|
16443
16499
|
},
|
|
16444
16500
|
"5": {
|
|
16445
16501
|
loc: {
|
|
16446
16502
|
start: {
|
|
16447
|
-
line:
|
|
16503
|
+
line: 80,
|
|
16448
16504
|
column: 4
|
|
16449
16505
|
},
|
|
16450
16506
|
end: {
|
|
16451
|
-
line:
|
|
16507
|
+
line: 83,
|
|
16452
16508
|
column: 5
|
|
16453
16509
|
}
|
|
16454
16510
|
},
|
|
16455
16511
|
type: "if",
|
|
16456
16512
|
locations: [{
|
|
16457
16513
|
start: {
|
|
16458
|
-
line:
|
|
16514
|
+
line: 80,
|
|
16459
16515
|
column: 4
|
|
16460
16516
|
},
|
|
16461
16517
|
end: {
|
|
16462
|
-
line:
|
|
16518
|
+
line: 83,
|
|
16463
16519
|
column: 5
|
|
16464
16520
|
}
|
|
16465
16521
|
}, {
|
|
@@ -16472,27 +16528,27 @@ function cov_28odpwq50i() {
|
|
|
16472
16528
|
column: undefined
|
|
16473
16529
|
}
|
|
16474
16530
|
}],
|
|
16475
|
-
line:
|
|
16531
|
+
line: 80
|
|
16476
16532
|
},
|
|
16477
16533
|
"6": {
|
|
16478
16534
|
loc: {
|
|
16479
16535
|
start: {
|
|
16480
|
-
line:
|
|
16536
|
+
line: 92,
|
|
16481
16537
|
column: 2
|
|
16482
16538
|
},
|
|
16483
16539
|
end: {
|
|
16484
|
-
line:
|
|
16540
|
+
line: 98,
|
|
16485
16541
|
column: 3
|
|
16486
16542
|
}
|
|
16487
16543
|
},
|
|
16488
16544
|
type: "if",
|
|
16489
16545
|
locations: [{
|
|
16490
16546
|
start: {
|
|
16491
|
-
line:
|
|
16547
|
+
line: 92,
|
|
16492
16548
|
column: 2
|
|
16493
16549
|
},
|
|
16494
16550
|
end: {
|
|
16495
|
-
line:
|
|
16551
|
+
line: 98,
|
|
16496
16552
|
column: 3
|
|
16497
16553
|
}
|
|
16498
16554
|
}, {
|
|
@@ -16505,7 +16561,7 @@ function cov_28odpwq50i() {
|
|
|
16505
16561
|
column: undefined
|
|
16506
16562
|
}
|
|
16507
16563
|
}],
|
|
16508
|
-
line:
|
|
16564
|
+
line: 92
|
|
16509
16565
|
}
|
|
16510
16566
|
},
|
|
16511
16567
|
s: {
|
|
@@ -16563,7 +16619,7 @@ function cov_28odpwq50i() {
|
|
|
16563
16619
|
"6": [0, 0]
|
|
16564
16620
|
},
|
|
16565
16621
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
16566
|
-
hash: "
|
|
16622
|
+
hash: "e056be1757669955145c1d0219959ffac38ce998"
|
|
16567
16623
|
};
|
|
16568
16624
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
16569
16625
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -16582,7 +16638,7 @@ cov_28odpwq50i();
|
|
|
16582
16638
|
cov_28odpwq50i().s[0]++;
|
|
16583
16639
|
var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
16584
16640
|
var debouncedQuery = _ref.debouncedQuery,
|
|
16585
|
-
|
|
16641
|
+
setSelectedImage = _ref.setSelectedImage,
|
|
16586
16642
|
setIsUploading = _ref.setIsUploading;
|
|
16587
16643
|
cov_28odpwq50i().f[0]++;
|
|
16588
16644
|
var _ref2 = (cov_28odpwq50i().s[1]++, useState(true)),
|
|
@@ -16655,7 +16711,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16655
16711
|
case 22:
|
|
16656
16712
|
result = _context.t0;
|
|
16657
16713
|
cov_28odpwq50i().s[15]++;
|
|
16658
|
-
|
|
16714
|
+
setSelectedImage(result);
|
|
16659
16715
|
_context.next = 31;
|
|
16660
16716
|
break;
|
|
16661
16717
|
case 27:
|
|
@@ -16749,7 +16805,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
16749
16805
|
|
|
16750
16806
|
function cov_zqbvekg8p() {
|
|
16751
16807
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/index.jsx";
|
|
16752
|
-
var hash = "
|
|
16808
|
+
var hash = "370d6ac3f98e926f9b8f68980aa94664d3ea239d";
|
|
16753
16809
|
var global = new Function("return this")();
|
|
16754
16810
|
var gcv = "__coverage__";
|
|
16755
16811
|
var coverageData = {
|
|
@@ -16761,7 +16817,7 @@ function cov_zqbvekg8p() {
|
|
|
16761
16817
|
column: 21
|
|
16762
16818
|
},
|
|
16763
16819
|
end: {
|
|
16764
|
-
line:
|
|
16820
|
+
line: 48,
|
|
16765
16821
|
column: 1
|
|
16766
16822
|
}
|
|
16767
16823
|
},
|
|
@@ -16821,7 +16877,7 @@ function cov_zqbvekg8p() {
|
|
|
16821
16877
|
column: 2
|
|
16822
16878
|
},
|
|
16823
16879
|
end: {
|
|
16824
|
-
line:
|
|
16880
|
+
line: 47,
|
|
16825
16881
|
column: 4
|
|
16826
16882
|
}
|
|
16827
16883
|
},
|
|
@@ -16852,10 +16908,10 @@ function cov_zqbvekg8p() {
|
|
|
16852
16908
|
loc: {
|
|
16853
16909
|
start: {
|
|
16854
16910
|
line: 12,
|
|
16855
|
-
column:
|
|
16911
|
+
column: 68
|
|
16856
16912
|
},
|
|
16857
16913
|
end: {
|
|
16858
|
-
line:
|
|
16914
|
+
line: 48,
|
|
16859
16915
|
column: 1
|
|
16860
16916
|
}
|
|
16861
16917
|
},
|
|
@@ -16918,7 +16974,7 @@ function cov_zqbvekg8p() {
|
|
|
16918
16974
|
column: 7
|
|
16919
16975
|
},
|
|
16920
16976
|
end: {
|
|
16921
|
-
line:
|
|
16977
|
+
line: 45,
|
|
16922
16978
|
column: 7
|
|
16923
16979
|
}
|
|
16924
16980
|
},
|
|
@@ -16929,16 +16985,16 @@ function cov_zqbvekg8p() {
|
|
|
16929
16985
|
column: 8
|
|
16930
16986
|
},
|
|
16931
16987
|
end: {
|
|
16932
|
-
line:
|
|
16933
|
-
column:
|
|
16988
|
+
line: 38,
|
|
16989
|
+
column: 10
|
|
16934
16990
|
}
|
|
16935
16991
|
}, {
|
|
16936
16992
|
start: {
|
|
16937
|
-
line:
|
|
16993
|
+
line: 40,
|
|
16938
16994
|
column: 8
|
|
16939
16995
|
},
|
|
16940
16996
|
end: {
|
|
16941
|
-
line:
|
|
16997
|
+
line: 44,
|
|
16942
16998
|
column: 10
|
|
16943
16999
|
}
|
|
16944
17000
|
}],
|
|
@@ -16964,7 +17020,7 @@ function cov_zqbvekg8p() {
|
|
|
16964
17020
|
"0": [0, 0]
|
|
16965
17021
|
},
|
|
16966
17022
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
16967
|
-
hash: "
|
|
17023
|
+
hash: "370d6ac3f98e926f9b8f68980aa94664d3ea239d"
|
|
16968
17024
|
};
|
|
16969
17025
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
16970
17026
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -16982,7 +17038,7 @@ function cov_zqbvekg8p() {
|
|
|
16982
17038
|
cov_zqbvekg8p();
|
|
16983
17039
|
cov_zqbvekg8p().s[0]++;
|
|
16984
17040
|
var ImageLibrary = function ImageLibrary(_ref) {
|
|
16985
|
-
var
|
|
17041
|
+
var setSelectedImage = _ref.setSelectedImage,
|
|
16986
17042
|
tab = _ref.tab,
|
|
16987
17043
|
setIsUploading = _ref.setIsUploading;
|
|
16988
17044
|
cov_zqbvekg8p().f[0]++;
|
|
@@ -17017,17 +17073,17 @@ var ImageLibrary = function ImageLibrary(_ref) {
|
|
|
17017
17073
|
}
|
|
17018
17074
|
}), tab === TABS[0].key ? (cov_zqbvekg8p().b[0][0]++, /*#__PURE__*/React.createElement(Assets, {
|
|
17019
17075
|
debouncedQuery: debouncedQuery,
|
|
17020
|
-
|
|
17076
|
+
setSelectedImage: setSelectedImage
|
|
17021
17077
|
})) : (cov_zqbvekg8p().b[0][1]++, /*#__PURE__*/React.createElement(UnsplashLibrary, {
|
|
17022
17078
|
debouncedQuery: debouncedQuery,
|
|
17023
|
-
|
|
17024
|
-
|
|
17079
|
+
setIsUploading: setIsUploading,
|
|
17080
|
+
setSelectedImage: setSelectedImage
|
|
17025
17081
|
})));
|
|
17026
17082
|
};
|
|
17027
17083
|
|
|
17028
17084
|
function cov_2my1w2udyi() {
|
|
17029
17085
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/Modal/index.jsx";
|
|
17030
|
-
var hash = "
|
|
17086
|
+
var hash = "ed194744e65faee4db8cb2231a84321ffef530ba";
|
|
17031
17087
|
var global = new Function("return this")();
|
|
17032
17088
|
var gcv = "__coverage__";
|
|
17033
17089
|
var coverageData = {
|
|
@@ -17039,7 +17095,7 @@ function cov_2my1w2udyi() {
|
|
|
17039
17095
|
column: 14
|
|
17040
17096
|
},
|
|
17041
17097
|
end: {
|
|
17042
|
-
line:
|
|
17098
|
+
line: 158,
|
|
17043
17099
|
column: 1
|
|
17044
17100
|
}
|
|
17045
17101
|
},
|
|
@@ -17056,11 +17112,11 @@ function cov_2my1w2udyi() {
|
|
|
17056
17112
|
"2": {
|
|
17057
17113
|
start: {
|
|
17058
17114
|
line: 27,
|
|
17059
|
-
column:
|
|
17115
|
+
column: 44
|
|
17060
17116
|
},
|
|
17061
17117
|
end: {
|
|
17062
17118
|
line: 27,
|
|
17063
|
-
column:
|
|
17119
|
+
column: 56
|
|
17064
17120
|
}
|
|
17065
17121
|
},
|
|
17066
17122
|
"3": {
|
|
@@ -17096,260 +17152,220 @@ function cov_2my1w2udyi() {
|
|
|
17096
17152
|
"6": {
|
|
17097
17153
|
start: {
|
|
17098
17154
|
line: 34,
|
|
17099
|
-
column:
|
|
17155
|
+
column: 27
|
|
17100
17156
|
},
|
|
17101
17157
|
end: {
|
|
17102
|
-
line:
|
|
17103
|
-
column:
|
|
17158
|
+
line: 37,
|
|
17159
|
+
column: 3
|
|
17104
17160
|
}
|
|
17105
17161
|
},
|
|
17106
17162
|
"7": {
|
|
17107
17163
|
start: {
|
|
17108
|
-
line:
|
|
17109
|
-
column:
|
|
17164
|
+
line: 35,
|
|
17165
|
+
column: 4
|
|
17110
17166
|
},
|
|
17111
17167
|
end: {
|
|
17112
|
-
line:
|
|
17113
|
-
column:
|
|
17168
|
+
line: 35,
|
|
17169
|
+
column: 14
|
|
17114
17170
|
}
|
|
17115
17171
|
},
|
|
17116
17172
|
"8": {
|
|
17117
17173
|
start: {
|
|
17118
17174
|
line: 36,
|
|
17119
|
-
column:
|
|
17175
|
+
column: 4
|
|
17120
17176
|
},
|
|
17121
17177
|
end: {
|
|
17122
|
-
line:
|
|
17123
|
-
column:
|
|
17178
|
+
line: 36,
|
|
17179
|
+
column: 25
|
|
17124
17180
|
}
|
|
17125
17181
|
},
|
|
17126
17182
|
"9": {
|
|
17127
17183
|
start: {
|
|
17128
|
-
line:
|
|
17129
|
-
column:
|
|
17184
|
+
line: 39,
|
|
17185
|
+
column: 34
|
|
17130
17186
|
},
|
|
17131
17187
|
end: {
|
|
17132
|
-
line:
|
|
17133
|
-
column:
|
|
17188
|
+
line: 66,
|
|
17189
|
+
column: 3
|
|
17134
17190
|
}
|
|
17135
17191
|
},
|
|
17136
17192
|
"10": {
|
|
17137
17193
|
start: {
|
|
17138
|
-
line:
|
|
17194
|
+
line: 40,
|
|
17139
17195
|
column: 4
|
|
17140
17196
|
},
|
|
17141
17197
|
end: {
|
|
17142
|
-
line:
|
|
17143
|
-
column:
|
|
17198
|
+
line: 64,
|
|
17199
|
+
column: 5
|
|
17144
17200
|
}
|
|
17145
17201
|
},
|
|
17146
17202
|
"11": {
|
|
17147
17203
|
start: {
|
|
17148
17204
|
line: 41,
|
|
17149
|
-
column:
|
|
17205
|
+
column: 6
|
|
17150
17206
|
},
|
|
17151
17207
|
end: {
|
|
17152
|
-
line:
|
|
17153
|
-
column:
|
|
17208
|
+
line: 44,
|
|
17209
|
+
column: 9
|
|
17154
17210
|
}
|
|
17155
17211
|
},
|
|
17156
17212
|
"12": {
|
|
17157
17213
|
start: {
|
|
17158
|
-
line:
|
|
17159
|
-
column:
|
|
17214
|
+
line: 46,
|
|
17215
|
+
column: 22
|
|
17160
17216
|
},
|
|
17161
17217
|
end: {
|
|
17162
|
-
line:
|
|
17163
|
-
column:
|
|
17218
|
+
line: 53,
|
|
17219
|
+
column: 7
|
|
17164
17220
|
}
|
|
17165
17221
|
},
|
|
17166
17222
|
"13": {
|
|
17167
17223
|
start: {
|
|
17168
|
-
line:
|
|
17224
|
+
line: 55,
|
|
17169
17225
|
column: 6
|
|
17170
17226
|
},
|
|
17171
17227
|
end: {
|
|
17172
|
-
line:
|
|
17173
|
-
column:
|
|
17228
|
+
line: 63,
|
|
17229
|
+
column: 9
|
|
17174
17230
|
}
|
|
17175
17231
|
},
|
|
17176
17232
|
"14": {
|
|
17177
17233
|
start: {
|
|
17178
|
-
line:
|
|
17179
|
-
column:
|
|
17234
|
+
line: 57,
|
|
17235
|
+
column: 10
|
|
17180
17236
|
},
|
|
17181
17237
|
end: {
|
|
17182
|
-
line:
|
|
17183
|
-
column:
|
|
17238
|
+
line: 60,
|
|
17239
|
+
column: 13
|
|
17184
17240
|
}
|
|
17185
17241
|
},
|
|
17186
17242
|
"15": {
|
|
17187
17243
|
start: {
|
|
17188
|
-
line:
|
|
17189
|
-
column:
|
|
17244
|
+
line: 65,
|
|
17245
|
+
column: 4
|
|
17190
17246
|
},
|
|
17191
17247
|
end: {
|
|
17192
|
-
line:
|
|
17193
|
-
column:
|
|
17248
|
+
line: 65,
|
|
17249
|
+
column: 23
|
|
17194
17250
|
}
|
|
17195
17251
|
},
|
|
17196
17252
|
"16": {
|
|
17197
17253
|
start: {
|
|
17198
|
-
line:
|
|
17199
|
-
column:
|
|
17254
|
+
line: 69,
|
|
17255
|
+
column: 4
|
|
17200
17256
|
},
|
|
17201
17257
|
end: {
|
|
17202
|
-
line:
|
|
17203
|
-
column:
|
|
17258
|
+
line: 74,
|
|
17259
|
+
column: 6
|
|
17204
17260
|
}
|
|
17205
17261
|
},
|
|
17206
17262
|
"17": {
|
|
17207
17263
|
start: {
|
|
17208
|
-
line:
|
|
17209
|
-
column:
|
|
17210
|
-
},
|
|
17264
|
+
line: 76,
|
|
17265
|
+
column: 31
|
|
17266
|
+
},
|
|
17211
17267
|
end: {
|
|
17212
|
-
line:
|
|
17213
|
-
column:
|
|
17268
|
+
line: 76,
|
|
17269
|
+
column: 62
|
|
17214
17270
|
}
|
|
17215
17271
|
},
|
|
17216
17272
|
"18": {
|
|
17217
17273
|
start: {
|
|
17218
|
-
line:
|
|
17219
|
-
column:
|
|
17274
|
+
line: 76,
|
|
17275
|
+
column: 37
|
|
17220
17276
|
},
|
|
17221
17277
|
end: {
|
|
17222
|
-
line:
|
|
17223
|
-
column:
|
|
17278
|
+
line: 76,
|
|
17279
|
+
column: 62
|
|
17224
17280
|
}
|
|
17225
17281
|
},
|
|
17226
17282
|
"19": {
|
|
17227
17283
|
start: {
|
|
17228
|
-
line:
|
|
17229
|
-
column: 4
|
|
17230
|
-
},
|
|
17231
|
-
end: {
|
|
17232
|
-
line: 63,
|
|
17233
|
-
column: 18
|
|
17234
|
-
}
|
|
17235
|
-
},
|
|
17236
|
-
"20": {
|
|
17237
|
-
start: {
|
|
17238
|
-
line: 67,
|
|
17239
|
-
column: 4
|
|
17240
|
-
},
|
|
17241
|
-
end: {
|
|
17242
|
-
line: 72,
|
|
17243
|
-
column: 6
|
|
17244
|
-
}
|
|
17245
|
-
},
|
|
17246
|
-
"21": {
|
|
17247
|
-
start: {
|
|
17248
|
-
line: 73,
|
|
17249
|
-
column: 25
|
|
17250
|
-
},
|
|
17251
|
-
end: {
|
|
17252
|
-
line: 73,
|
|
17253
|
-
column: 56
|
|
17254
|
-
}
|
|
17255
|
-
},
|
|
17256
|
-
"22": {
|
|
17257
|
-
start: {
|
|
17258
|
-
line: 73,
|
|
17259
|
-
column: 31
|
|
17260
|
-
},
|
|
17261
|
-
end: {
|
|
17262
|
-
line: 73,
|
|
17263
|
-
column: 56
|
|
17264
|
-
}
|
|
17265
|
-
},
|
|
17266
|
-
"23": {
|
|
17267
|
-
start: {
|
|
17268
|
-
line: 75,
|
|
17284
|
+
line: 77,
|
|
17269
17285
|
column: 18
|
|
17270
17286
|
},
|
|
17271
17287
|
end: {
|
|
17272
|
-
line:
|
|
17273
|
-
column:
|
|
17288
|
+
line: 79,
|
|
17289
|
+
column: 4
|
|
17274
17290
|
}
|
|
17275
17291
|
},
|
|
17276
|
-
"
|
|
17292
|
+
"20": {
|
|
17277
17293
|
start: {
|
|
17278
|
-
line:
|
|
17294
|
+
line: 81,
|
|
17279
17295
|
column: 2
|
|
17280
17296
|
},
|
|
17281
17297
|
end: {
|
|
17282
|
-
line:
|
|
17298
|
+
line: 83,
|
|
17283
17299
|
column: 15
|
|
17284
17300
|
}
|
|
17285
17301
|
},
|
|
17286
|
-
"
|
|
17302
|
+
"21": {
|
|
17287
17303
|
start: {
|
|
17288
|
-
line:
|
|
17304
|
+
line: 82,
|
|
17289
17305
|
column: 4
|
|
17290
17306
|
},
|
|
17291
17307
|
end: {
|
|
17292
|
-
line:
|
|
17308
|
+
line: 82,
|
|
17293
17309
|
column: 30
|
|
17294
17310
|
}
|
|
17295
17311
|
},
|
|
17296
|
-
"
|
|
17312
|
+
"22": {
|
|
17297
17313
|
start: {
|
|
17298
|
-
line:
|
|
17314
|
+
line: 85,
|
|
17299
17315
|
column: 2
|
|
17300
17316
|
},
|
|
17301
17317
|
end: {
|
|
17302
|
-
line:
|
|
17318
|
+
line: 157,
|
|
17303
17319
|
column: 4
|
|
17304
17320
|
}
|
|
17305
17321
|
},
|
|
17306
|
-
"
|
|
17322
|
+
"23": {
|
|
17307
17323
|
start: {
|
|
17308
|
-
line:
|
|
17324
|
+
line: 108,
|
|
17309
17325
|
column: 29
|
|
17310
17326
|
},
|
|
17311
17327
|
end: {
|
|
17312
|
-
line:
|
|
17313
|
-
column:
|
|
17328
|
+
line: 108,
|
|
17329
|
+
column: 49
|
|
17314
17330
|
}
|
|
17315
17331
|
},
|
|
17316
|
-
"
|
|
17332
|
+
"24": {
|
|
17317
17333
|
start: {
|
|
17318
|
-
line:
|
|
17334
|
+
line: 116,
|
|
17319
17335
|
column: 30
|
|
17320
17336
|
},
|
|
17321
17337
|
end: {
|
|
17322
|
-
line:
|
|
17338
|
+
line: 116,
|
|
17323
17339
|
column: 53
|
|
17324
17340
|
}
|
|
17325
17341
|
},
|
|
17326
|
-
"
|
|
17342
|
+
"25": {
|
|
17327
17343
|
start: {
|
|
17328
|
-
line:
|
|
17344
|
+
line: 126,
|
|
17329
17345
|
column: 18
|
|
17330
17346
|
},
|
|
17331
17347
|
end: {
|
|
17332
|
-
line:
|
|
17348
|
+
line: 132,
|
|
17333
17349
|
column: 29
|
|
17334
17350
|
}
|
|
17335
17351
|
},
|
|
17336
|
-
"
|
|
17352
|
+
"26": {
|
|
17337
17353
|
start: {
|
|
17338
|
-
line:
|
|
17339
|
-
column:
|
|
17354
|
+
line: 129,
|
|
17355
|
+
column: 35
|
|
17340
17356
|
},
|
|
17341
17357
|
end: {
|
|
17342
|
-
line:
|
|
17343
|
-
column:
|
|
17358
|
+
line: 129,
|
|
17359
|
+
column: 56
|
|
17344
17360
|
}
|
|
17345
17361
|
},
|
|
17346
|
-
"
|
|
17362
|
+
"27": {
|
|
17347
17363
|
start: {
|
|
17348
|
-
line:
|
|
17364
|
+
line: 138,
|
|
17349
17365
|
column: 16
|
|
17350
17366
|
},
|
|
17351
17367
|
end: {
|
|
17352
|
-
line:
|
|
17368
|
+
line: 144,
|
|
17353
17369
|
column: 18
|
|
17354
17370
|
}
|
|
17355
17371
|
}
|
|
@@ -17370,10 +17386,10 @@ function cov_2my1w2udyi() {
|
|
|
17370
17386
|
loc: {
|
|
17371
17387
|
start: {
|
|
17372
17388
|
line: 25,
|
|
17373
|
-
column:
|
|
17389
|
+
column: 71
|
|
17374
17390
|
},
|
|
17375
17391
|
end: {
|
|
17376
|
-
line:
|
|
17392
|
+
line: 158,
|
|
17377
17393
|
column: 1
|
|
17378
17394
|
}
|
|
17379
17395
|
},
|
|
@@ -17384,21 +17400,21 @@ function cov_2my1w2udyi() {
|
|
|
17384
17400
|
decl: {
|
|
17385
17401
|
start: {
|
|
17386
17402
|
line: 34,
|
|
17387
|
-
column:
|
|
17403
|
+
column: 27
|
|
17388
17404
|
},
|
|
17389
17405
|
end: {
|
|
17390
17406
|
line: 34,
|
|
17391
|
-
column:
|
|
17407
|
+
column: 28
|
|
17392
17408
|
}
|
|
17393
17409
|
},
|
|
17394
17410
|
loc: {
|
|
17395
17411
|
start: {
|
|
17396
17412
|
line: 34,
|
|
17397
|
-
column:
|
|
17413
|
+
column: 33
|
|
17398
17414
|
},
|
|
17399
17415
|
end: {
|
|
17400
|
-
line:
|
|
17401
|
-
column:
|
|
17416
|
+
line: 37,
|
|
17417
|
+
column: 3
|
|
17402
17418
|
}
|
|
17403
17419
|
},
|
|
17404
17420
|
line: 34
|
|
@@ -17407,241 +17423,217 @@ function cov_2my1w2udyi() {
|
|
|
17407
17423
|
name: "(anonymous_2)",
|
|
17408
17424
|
decl: {
|
|
17409
17425
|
start: {
|
|
17410
|
-
line:
|
|
17411
|
-
column:
|
|
17426
|
+
line: 39,
|
|
17427
|
+
column: 34
|
|
17412
17428
|
},
|
|
17413
17429
|
end: {
|
|
17414
|
-
line:
|
|
17415
|
-
column:
|
|
17430
|
+
line: 39,
|
|
17431
|
+
column: 35
|
|
17416
17432
|
}
|
|
17417
17433
|
},
|
|
17418
17434
|
loc: {
|
|
17419
17435
|
start: {
|
|
17420
|
-
line:
|
|
17421
|
-
column:
|
|
17436
|
+
line: 39,
|
|
17437
|
+
column: 49
|
|
17422
17438
|
},
|
|
17423
17439
|
end: {
|
|
17424
|
-
line:
|
|
17440
|
+
line: 66,
|
|
17425
17441
|
column: 3
|
|
17426
17442
|
}
|
|
17427
17443
|
},
|
|
17428
|
-
line:
|
|
17444
|
+
line: 39
|
|
17429
17445
|
},
|
|
17430
17446
|
"3": {
|
|
17431
17447
|
name: "(anonymous_3)",
|
|
17432
17448
|
decl: {
|
|
17433
17449
|
start: {
|
|
17434
|
-
line:
|
|
17435
|
-
column:
|
|
17450
|
+
line: 56,
|
|
17451
|
+
column: 19
|
|
17436
17452
|
},
|
|
17437
17453
|
end: {
|
|
17438
|
-
line:
|
|
17439
|
-
column:
|
|
17454
|
+
line: 56,
|
|
17455
|
+
column: 20
|
|
17440
17456
|
}
|
|
17441
17457
|
},
|
|
17442
17458
|
loc: {
|
|
17443
17459
|
start: {
|
|
17444
|
-
line:
|
|
17445
|
-
column:
|
|
17460
|
+
line: 56,
|
|
17461
|
+
column: 28
|
|
17446
17462
|
},
|
|
17447
17463
|
end: {
|
|
17448
|
-
line:
|
|
17449
|
-
column:
|
|
17464
|
+
line: 61,
|
|
17465
|
+
column: 9
|
|
17450
17466
|
}
|
|
17451
17467
|
},
|
|
17452
|
-
line:
|
|
17468
|
+
line: 56
|
|
17453
17469
|
},
|
|
17454
17470
|
"4": {
|
|
17455
17471
|
name: "(anonymous_4)",
|
|
17456
17472
|
decl: {
|
|
17457
17473
|
start: {
|
|
17458
|
-
line:
|
|
17459
|
-
column:
|
|
17474
|
+
line: 76,
|
|
17475
|
+
column: 31
|
|
17460
17476
|
},
|
|
17461
17477
|
end: {
|
|
17462
|
-
line:
|
|
17463
|
-
column:
|
|
17478
|
+
line: 76,
|
|
17479
|
+
column: 32
|
|
17464
17480
|
}
|
|
17465
17481
|
},
|
|
17466
17482
|
loc: {
|
|
17467
17483
|
start: {
|
|
17468
|
-
line:
|
|
17469
|
-
column:
|
|
17484
|
+
line: 76,
|
|
17485
|
+
column: 37
|
|
17470
17486
|
},
|
|
17471
17487
|
end: {
|
|
17472
|
-
line:
|
|
17473
|
-
column:
|
|
17488
|
+
line: 76,
|
|
17489
|
+
column: 62
|
|
17474
17490
|
}
|
|
17475
17491
|
},
|
|
17476
|
-
line:
|
|
17492
|
+
line: 76
|
|
17477
17493
|
},
|
|
17478
17494
|
"5": {
|
|
17479
17495
|
name: "(anonymous_5)",
|
|
17480
17496
|
decl: {
|
|
17481
17497
|
start: {
|
|
17482
|
-
line:
|
|
17483
|
-
column: 25
|
|
17484
|
-
},
|
|
17485
|
-
end: {
|
|
17486
|
-
line: 73,
|
|
17487
|
-
column: 26
|
|
17488
|
-
}
|
|
17489
|
-
},
|
|
17490
|
-
loc: {
|
|
17491
|
-
start: {
|
|
17492
|
-
line: 73,
|
|
17493
|
-
column: 31
|
|
17494
|
-
},
|
|
17495
|
-
end: {
|
|
17496
|
-
line: 73,
|
|
17497
|
-
column: 56
|
|
17498
|
-
}
|
|
17499
|
-
},
|
|
17500
|
-
line: 73
|
|
17501
|
-
},
|
|
17502
|
-
"6": {
|
|
17503
|
-
name: "(anonymous_6)",
|
|
17504
|
-
decl: {
|
|
17505
|
-
start: {
|
|
17506
|
-
line: 77,
|
|
17498
|
+
line: 81,
|
|
17507
17499
|
column: 12
|
|
17508
17500
|
},
|
|
17509
17501
|
end: {
|
|
17510
|
-
line:
|
|
17502
|
+
line: 81,
|
|
17511
17503
|
column: 13
|
|
17512
17504
|
}
|
|
17513
17505
|
},
|
|
17514
17506
|
loc: {
|
|
17515
17507
|
start: {
|
|
17516
|
-
line:
|
|
17508
|
+
line: 81,
|
|
17517
17509
|
column: 18
|
|
17518
17510
|
},
|
|
17519
17511
|
end: {
|
|
17520
|
-
line:
|
|
17512
|
+
line: 83,
|
|
17521
17513
|
column: 3
|
|
17522
17514
|
}
|
|
17523
17515
|
},
|
|
17524
|
-
line:
|
|
17516
|
+
line: 81
|
|
17525
17517
|
},
|
|
17526
|
-
"
|
|
17527
|
-
name: "(
|
|
17518
|
+
"6": {
|
|
17519
|
+
name: "(anonymous_6)",
|
|
17528
17520
|
decl: {
|
|
17529
17521
|
start: {
|
|
17530
|
-
line:
|
|
17522
|
+
line: 108,
|
|
17531
17523
|
column: 23
|
|
17532
17524
|
},
|
|
17533
17525
|
end: {
|
|
17534
|
-
line:
|
|
17526
|
+
line: 108,
|
|
17535
17527
|
column: 24
|
|
17536
17528
|
}
|
|
17537
17529
|
},
|
|
17538
17530
|
loc: {
|
|
17539
17531
|
start: {
|
|
17540
|
-
line:
|
|
17532
|
+
line: 108,
|
|
17541
17533
|
column: 29
|
|
17542
17534
|
},
|
|
17543
17535
|
end: {
|
|
17544
|
-
line:
|
|
17545
|
-
column:
|
|
17536
|
+
line: 108,
|
|
17537
|
+
column: 49
|
|
17546
17538
|
}
|
|
17547
17539
|
},
|
|
17548
|
-
line:
|
|
17540
|
+
line: 108
|
|
17549
17541
|
},
|
|
17550
|
-
"
|
|
17551
|
-
name: "(
|
|
17542
|
+
"7": {
|
|
17543
|
+
name: "(anonymous_7)",
|
|
17552
17544
|
decl: {
|
|
17553
17545
|
start: {
|
|
17554
|
-
line:
|
|
17546
|
+
line: 116,
|
|
17555
17547
|
column: 21
|
|
17556
17548
|
},
|
|
17557
17549
|
end: {
|
|
17558
|
-
line:
|
|
17550
|
+
line: 116,
|
|
17559
17551
|
column: 22
|
|
17560
17552
|
}
|
|
17561
17553
|
},
|
|
17562
17554
|
loc: {
|
|
17563
17555
|
start: {
|
|
17564
|
-
line:
|
|
17556
|
+
line: 116,
|
|
17565
17557
|
column: 30
|
|
17566
17558
|
},
|
|
17567
17559
|
end: {
|
|
17568
|
-
line:
|
|
17560
|
+
line: 116,
|
|
17569
17561
|
column: 53
|
|
17570
17562
|
}
|
|
17571
17563
|
},
|
|
17572
|
-
line:
|
|
17564
|
+
line: 116
|
|
17573
17565
|
},
|
|
17574
|
-
"
|
|
17575
|
-
name: "(
|
|
17566
|
+
"8": {
|
|
17567
|
+
name: "(anonymous_8)",
|
|
17576
17568
|
decl: {
|
|
17577
17569
|
start: {
|
|
17578
|
-
line:
|
|
17570
|
+
line: 125,
|
|
17579
17571
|
column: 26
|
|
17580
17572
|
},
|
|
17581
17573
|
end: {
|
|
17582
|
-
line:
|
|
17574
|
+
line: 125,
|
|
17583
17575
|
column: 27
|
|
17584
17576
|
}
|
|
17585
17577
|
},
|
|
17586
17578
|
loc: {
|
|
17587
17579
|
start: {
|
|
17588
|
-
line:
|
|
17580
|
+
line: 126,
|
|
17589
17581
|
column: 18
|
|
17590
17582
|
},
|
|
17591
17583
|
end: {
|
|
17592
|
-
line:
|
|
17584
|
+
line: 132,
|
|
17593
17585
|
column: 29
|
|
17594
17586
|
}
|
|
17595
17587
|
},
|
|
17596
|
-
line:
|
|
17588
|
+
line: 126
|
|
17597
17589
|
},
|
|
17598
|
-
"
|
|
17599
|
-
name: "(
|
|
17590
|
+
"9": {
|
|
17591
|
+
name: "(anonymous_9)",
|
|
17600
17592
|
decl: {
|
|
17601
17593
|
start: {
|
|
17602
|
-
line:
|
|
17594
|
+
line: 129,
|
|
17603
17595
|
column: 29
|
|
17604
17596
|
},
|
|
17605
17597
|
end: {
|
|
17606
|
-
line:
|
|
17598
|
+
line: 129,
|
|
17607
17599
|
column: 30
|
|
17608
17600
|
}
|
|
17609
17601
|
},
|
|
17610
17602
|
loc: {
|
|
17611
17603
|
start: {
|
|
17612
|
-
line:
|
|
17604
|
+
line: 129,
|
|
17613
17605
|
column: 35
|
|
17614
17606
|
},
|
|
17615
17607
|
end: {
|
|
17616
|
-
line:
|
|
17617
|
-
column:
|
|
17608
|
+
line: 129,
|
|
17609
|
+
column: 56
|
|
17618
17610
|
}
|
|
17619
17611
|
},
|
|
17620
|
-
line:
|
|
17612
|
+
line: 129
|
|
17621
17613
|
},
|
|
17622
|
-
"
|
|
17623
|
-
name: "(
|
|
17614
|
+
"10": {
|
|
17615
|
+
name: "(anonymous_10)",
|
|
17624
17616
|
decl: {
|
|
17625
17617
|
start: {
|
|
17626
|
-
line:
|
|
17618
|
+
line: 137,
|
|
17627
17619
|
column: 27
|
|
17628
17620
|
},
|
|
17629
17621
|
end: {
|
|
17630
|
-
line:
|
|
17622
|
+
line: 137,
|
|
17631
17623
|
column: 28
|
|
17632
17624
|
}
|
|
17633
17625
|
},
|
|
17634
17626
|
loc: {
|
|
17635
17627
|
start: {
|
|
17636
|
-
line:
|
|
17628
|
+
line: 138,
|
|
17637
17629
|
column: 16
|
|
17638
17630
|
},
|
|
17639
17631
|
end: {
|
|
17640
|
-
line:
|
|
17632
|
+
line: 144,
|
|
17641
17633
|
column: 18
|
|
17642
17634
|
}
|
|
17643
17635
|
},
|
|
17644
|
-
line:
|
|
17636
|
+
line: 138
|
|
17645
17637
|
}
|
|
17646
17638
|
},
|
|
17647
17639
|
branchMap: {
|
|
@@ -17649,22 +17641,22 @@ function cov_2my1w2udyi() {
|
|
|
17649
17641
|
loc: {
|
|
17650
17642
|
start: {
|
|
17651
17643
|
line: 25,
|
|
17652
|
-
column:
|
|
17644
|
+
column: 25
|
|
17653
17645
|
},
|
|
17654
17646
|
end: {
|
|
17655
17647
|
line: 25,
|
|
17656
|
-
column:
|
|
17648
|
+
column: 39
|
|
17657
17649
|
}
|
|
17658
17650
|
},
|
|
17659
17651
|
type: "default-arg",
|
|
17660
17652
|
locations: [{
|
|
17661
17653
|
start: {
|
|
17662
17654
|
line: 25,
|
|
17663
|
-
column:
|
|
17655
|
+
column: 35
|
|
17664
17656
|
},
|
|
17665
17657
|
end: {
|
|
17666
17658
|
line: 25,
|
|
17667
|
-
column:
|
|
17659
|
+
column: 39
|
|
17668
17660
|
}
|
|
17669
17661
|
}],
|
|
17670
17662
|
line: 25
|
|
@@ -17672,143 +17664,167 @@ function cov_2my1w2udyi() {
|
|
|
17672
17664
|
"1": {
|
|
17673
17665
|
loc: {
|
|
17674
17666
|
start: {
|
|
17675
|
-
line:
|
|
17667
|
+
line: 25,
|
|
17668
|
+
column: 41
|
|
17669
|
+
},
|
|
17670
|
+
end: {
|
|
17671
|
+
line: 25,
|
|
17672
|
+
column: 64
|
|
17673
|
+
}
|
|
17674
|
+
},
|
|
17675
|
+
type: "default-arg",
|
|
17676
|
+
locations: [{
|
|
17677
|
+
start: {
|
|
17678
|
+
line: 25,
|
|
17679
|
+
column: 60
|
|
17680
|
+
},
|
|
17681
|
+
end: {
|
|
17682
|
+
line: 25,
|
|
17683
|
+
column: 64
|
|
17684
|
+
}
|
|
17685
|
+
}],
|
|
17686
|
+
line: 25
|
|
17687
|
+
},
|
|
17688
|
+
"2": {
|
|
17689
|
+
loc: {
|
|
17690
|
+
start: {
|
|
17691
|
+
line: 40,
|
|
17676
17692
|
column: 4
|
|
17677
17693
|
},
|
|
17678
17694
|
end: {
|
|
17679
|
-
line:
|
|
17695
|
+
line: 64,
|
|
17680
17696
|
column: 5
|
|
17681
17697
|
}
|
|
17682
17698
|
},
|
|
17683
17699
|
type: "if",
|
|
17684
17700
|
locations: [{
|
|
17685
17701
|
start: {
|
|
17686
|
-
line:
|
|
17702
|
+
line: 40,
|
|
17687
17703
|
column: 4
|
|
17688
17704
|
},
|
|
17689
17705
|
end: {
|
|
17690
|
-
line:
|
|
17706
|
+
line: 64,
|
|
17691
17707
|
column: 5
|
|
17692
17708
|
}
|
|
17693
17709
|
}, {
|
|
17694
17710
|
start: {
|
|
17695
|
-
line:
|
|
17696
|
-
column:
|
|
17711
|
+
line: 45,
|
|
17712
|
+
column: 11
|
|
17697
17713
|
},
|
|
17698
17714
|
end: {
|
|
17699
|
-
line:
|
|
17700
|
-
column:
|
|
17715
|
+
line: 64,
|
|
17716
|
+
column: 5
|
|
17701
17717
|
}
|
|
17702
17718
|
}],
|
|
17703
|
-
line:
|
|
17719
|
+
line: 40
|
|
17704
17720
|
},
|
|
17705
|
-
"
|
|
17721
|
+
"3": {
|
|
17706
17722
|
loc: {
|
|
17707
17723
|
start: {
|
|
17708
|
-
line:
|
|
17724
|
+
line: 92,
|
|
17709
17725
|
column: 7
|
|
17710
17726
|
},
|
|
17711
17727
|
end: {
|
|
17712
|
-
line:
|
|
17728
|
+
line: 96,
|
|
17713
17729
|
column: 7
|
|
17714
17730
|
}
|
|
17715
17731
|
},
|
|
17716
17732
|
type: "binary-expr",
|
|
17717
17733
|
locations: [{
|
|
17718
17734
|
start: {
|
|
17719
|
-
line:
|
|
17735
|
+
line: 92,
|
|
17720
17736
|
column: 7
|
|
17721
17737
|
},
|
|
17722
17738
|
end: {
|
|
17723
|
-
line:
|
|
17739
|
+
line: 92,
|
|
17724
17740
|
column: 18
|
|
17725
17741
|
}
|
|
17726
17742
|
}, {
|
|
17727
17743
|
start: {
|
|
17728
|
-
line:
|
|
17744
|
+
line: 93,
|
|
17729
17745
|
column: 8
|
|
17730
17746
|
},
|
|
17731
17747
|
end: {
|
|
17732
|
-
line:
|
|
17748
|
+
line: 95,
|
|
17733
17749
|
column: 14
|
|
17734
17750
|
}
|
|
17735
17751
|
}],
|
|
17736
|
-
line:
|
|
17752
|
+
line: 92
|
|
17737
17753
|
},
|
|
17738
|
-
"
|
|
17754
|
+
"4": {
|
|
17739
17755
|
loc: {
|
|
17740
17756
|
start: {
|
|
17741
|
-
line:
|
|
17757
|
+
line: 97,
|
|
17742
17758
|
column: 7
|
|
17743
17759
|
},
|
|
17744
17760
|
end: {
|
|
17745
|
-
line:
|
|
17761
|
+
line: 104,
|
|
17746
17762
|
column: 7
|
|
17747
17763
|
}
|
|
17748
17764
|
},
|
|
17749
17765
|
type: "binary-expr",
|
|
17750
17766
|
locations: [{
|
|
17751
17767
|
start: {
|
|
17752
|
-
line:
|
|
17768
|
+
line: 97,
|
|
17753
17769
|
column: 7
|
|
17754
17770
|
},
|
|
17755
17771
|
end: {
|
|
17756
|
-
line:
|
|
17757
|
-
column:
|
|
17772
|
+
line: 97,
|
|
17773
|
+
column: 34
|
|
17758
17774
|
}
|
|
17759
17775
|
}, {
|
|
17760
17776
|
start: {
|
|
17761
|
-
line:
|
|
17762
|
-
column:
|
|
17777
|
+
line: 97,
|
|
17778
|
+
column: 38
|
|
17763
17779
|
},
|
|
17764
17780
|
end: {
|
|
17765
|
-
line:
|
|
17766
|
-
column:
|
|
17781
|
+
line: 97,
|
|
17782
|
+
column: 50
|
|
17767
17783
|
}
|
|
17768
17784
|
}, {
|
|
17769
17785
|
start: {
|
|
17770
|
-
line:
|
|
17786
|
+
line: 98,
|
|
17771
17787
|
column: 8
|
|
17772
17788
|
},
|
|
17773
17789
|
end: {
|
|
17774
|
-
line:
|
|
17790
|
+
line: 103,
|
|
17775
17791
|
column: 14
|
|
17776
17792
|
}
|
|
17777
17793
|
}],
|
|
17778
|
-
line:
|
|
17794
|
+
line: 97
|
|
17779
17795
|
},
|
|
17780
|
-
"
|
|
17796
|
+
"5": {
|
|
17781
17797
|
loc: {
|
|
17782
17798
|
start: {
|
|
17783
|
-
line:
|
|
17799
|
+
line: 105,
|
|
17784
17800
|
column: 7
|
|
17785
17801
|
},
|
|
17786
17802
|
end: {
|
|
17787
|
-
line:
|
|
17803
|
+
line: 154,
|
|
17788
17804
|
column: 7
|
|
17789
17805
|
}
|
|
17790
17806
|
},
|
|
17791
17807
|
type: "cond-expr",
|
|
17792
17808
|
locations: [{
|
|
17793
17809
|
start: {
|
|
17794
|
-
line:
|
|
17810
|
+
line: 106,
|
|
17795
17811
|
column: 8
|
|
17796
17812
|
},
|
|
17797
17813
|
end: {
|
|
17798
|
-
line:
|
|
17814
|
+
line: 111,
|
|
17799
17815
|
column: 10
|
|
17800
17816
|
}
|
|
17801
17817
|
}, {
|
|
17802
17818
|
start: {
|
|
17803
|
-
line:
|
|
17819
|
+
line: 113,
|
|
17804
17820
|
column: 8
|
|
17805
17821
|
},
|
|
17806
17822
|
end: {
|
|
17807
|
-
line:
|
|
17823
|
+
line: 153,
|
|
17808
17824
|
column: 14
|
|
17809
17825
|
}
|
|
17810
17826
|
}],
|
|
17811
|
-
line:
|
|
17827
|
+
line: 105
|
|
17812
17828
|
}
|
|
17813
17829
|
},
|
|
17814
17830
|
s: {
|
|
@@ -17839,11 +17855,7 @@ function cov_2my1w2udyi() {
|
|
|
17839
17855
|
"24": 0,
|
|
17840
17856
|
"25": 0,
|
|
17841
17857
|
"26": 0,
|
|
17842
|
-
"27": 0
|
|
17843
|
-
"28": 0,
|
|
17844
|
-
"29": 0,
|
|
17845
|
-
"30": 0,
|
|
17846
|
-
"31": 0
|
|
17858
|
+
"27": 0
|
|
17847
17859
|
},
|
|
17848
17860
|
f: {
|
|
17849
17861
|
"0": 0,
|
|
@@ -17856,18 +17868,18 @@ function cov_2my1w2udyi() {
|
|
|
17856
17868
|
"7": 0,
|
|
17857
17869
|
"8": 0,
|
|
17858
17870
|
"9": 0,
|
|
17859
|
-
"10": 0
|
|
17860
|
-
"11": 0
|
|
17871
|
+
"10": 0
|
|
17861
17872
|
},
|
|
17862
17873
|
b: {
|
|
17863
17874
|
"0": [0],
|
|
17864
|
-
"1": [0
|
|
17875
|
+
"1": [0],
|
|
17865
17876
|
"2": [0, 0],
|
|
17866
|
-
"3": [0, 0
|
|
17867
|
-
"4": [0, 0]
|
|
17877
|
+
"3": [0, 0],
|
|
17878
|
+
"4": [0, 0, 0],
|
|
17879
|
+
"5": [0, 0]
|
|
17868
17880
|
},
|
|
17869
17881
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
17870
|
-
hash: "
|
|
17882
|
+
hash: "ed194744e65faee4db8cb2231a84321ffef530ba"
|
|
17871
17883
|
};
|
|
17872
17884
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
17873
17885
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -17886,9 +17898,10 @@ cov_2my1w2udyi();
|
|
|
17886
17898
|
cov_2my1w2udyi().s[0]++;
|
|
17887
17899
|
var Modal = function Modal(_ref) {
|
|
17888
17900
|
var isOpen = _ref.isOpen,
|
|
17889
|
-
onClose = _ref.onClose,
|
|
17901
|
+
_ref$onClose = _ref.onClose,
|
|
17902
|
+
onClose = _ref$onClose === void 0 ? (cov_2my1w2udyi().b[0][0]++, noop$2) : _ref$onClose,
|
|
17890
17903
|
_ref$onUploadComplete = _ref.onUploadComplete,
|
|
17891
|
-
onUploadComplete = _ref$onUploadComplete === void 0 ? (cov_2my1w2udyi().b[
|
|
17904
|
+
onUploadComplete = _ref$onUploadComplete === void 0 ? (cov_2my1w2udyi().b[1][0]++, noop$2) : _ref$onUploadComplete;
|
|
17892
17905
|
cov_2my1w2udyi().f[0]++;
|
|
17893
17906
|
var _ref2 = (cov_2my1w2udyi().s[1]++, useState(TABS[0].key)),
|
|
17894
17907
|
_ref3 = _slicedToArray$2(_ref2, 2),
|
|
@@ -17896,8 +17909,8 @@ var Modal = function Modal(_ref) {
|
|
|
17896
17909
|
setActiveTab = _ref3[1];
|
|
17897
17910
|
var _ref4 = (cov_2my1w2udyi().s[2]++, useState({})),
|
|
17898
17911
|
_ref5 = _slicedToArray$2(_ref4, 2),
|
|
17899
|
-
|
|
17900
|
-
|
|
17912
|
+
selectedImage = _ref5[0],
|
|
17913
|
+
setSelectedImage = _ref5[1];
|
|
17901
17914
|
var _ref6 = (cov_2my1w2udyi().s[3]++, useState(false)),
|
|
17902
17915
|
_ref7 = _slicedToArray$2(_ref6, 2),
|
|
17903
17916
|
isUploading = _ref7[0],
|
|
@@ -17907,111 +17920,102 @@ var Modal = function Modal(_ref) {
|
|
|
17907
17920
|
var _ref9 = (cov_2my1w2udyi().s[5]++, useCreateBlob()),
|
|
17908
17921
|
createBlob = _ref9.mutate;
|
|
17909
17922
|
cov_2my1w2udyi().s[6]++;
|
|
17910
|
-
var
|
|
17923
|
+
var handleCloseModal = function handleCloseModal() {
|
|
17911
17924
|
cov_2my1w2udyi().f[1]++;
|
|
17912
17925
|
cov_2my1w2udyi().s[7]++;
|
|
17913
|
-
|
|
17926
|
+
onClose();
|
|
17927
|
+
cov_2my1w2udyi().s[8]++;
|
|
17928
|
+
setSelectedImage({});
|
|
17914
17929
|
};
|
|
17915
|
-
cov_2my1w2udyi().s[
|
|
17916
|
-
var
|
|
17930
|
+
cov_2my1w2udyi().s[9]++;
|
|
17931
|
+
var handleImageEditComplete = function handleImageEditComplete(editedImage) {
|
|
17917
17932
|
cov_2my1w2udyi().f[2]++;
|
|
17918
|
-
cov_2my1w2udyi().s[9]++;
|
|
17919
|
-
onClose();
|
|
17920
17933
|
cov_2my1w2udyi().s[10]++;
|
|
17921
|
-
setImage({});
|
|
17922
|
-
};
|
|
17923
|
-
cov_2my1w2udyi().s[11]++;
|
|
17924
|
-
var handleEditComplete = function handleEditComplete(image) {
|
|
17925
|
-
cov_2my1w2udyi().f[3]++;
|
|
17926
|
-
cov_2my1w2udyi().s[12]++;
|
|
17927
17934
|
if (IS_DEVELOPMENT_OR_HEROKU_ENV) {
|
|
17928
|
-
cov_2my1w2udyi().b[
|
|
17929
|
-
cov_2my1w2udyi().s[
|
|
17935
|
+
cov_2my1w2udyi().b[2][0]++;
|
|
17936
|
+
cov_2my1w2udyi().s[11]++;
|
|
17930
17937
|
onUploadComplete({
|
|
17931
|
-
url:
|
|
17932
|
-
signedId:
|
|
17938
|
+
url: editedImage.metadata.url,
|
|
17939
|
+
signedId: editedImage.signedId
|
|
17933
17940
|
});
|
|
17934
|
-
cov_2my1w2udyi().s[14]++;
|
|
17935
|
-
handleClose();
|
|
17936
|
-
cov_2my1w2udyi().s[15]++;
|
|
17937
|
-
return;
|
|
17938
17941
|
} else {
|
|
17939
|
-
cov_2my1w2udyi().b[
|
|
17942
|
+
cov_2my1w2udyi().b[2][1]++;
|
|
17943
|
+
var payload = (cov_2my1w2udyi().s[12]++, {
|
|
17944
|
+
filename: editedImage.name,
|
|
17945
|
+
byte_size: editedImage.size,
|
|
17946
|
+
content_type: editedImage.fileType,
|
|
17947
|
+
checksum: editedImage.fileId,
|
|
17948
|
+
metadata: editedImage,
|
|
17949
|
+
service_name: "imagekitio"
|
|
17950
|
+
});
|
|
17951
|
+
cov_2my1w2udyi().s[13]++;
|
|
17952
|
+
createBlob(payload, {
|
|
17953
|
+
onSuccess: function onSuccess(image) {
|
|
17954
|
+
cov_2my1w2udyi().f[3]++;
|
|
17955
|
+
cov_2my1w2udyi().s[14]++;
|
|
17956
|
+
onUploadComplete({
|
|
17957
|
+
url: image.metadata.url,
|
|
17958
|
+
signedId: image.signedId
|
|
17959
|
+
});
|
|
17960
|
+
},
|
|
17961
|
+
onError: Toastr.error
|
|
17962
|
+
});
|
|
17940
17963
|
}
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
byte_size: image.size,
|
|
17944
|
-
content_type: image.mime,
|
|
17945
|
-
checksum: image.fileId,
|
|
17946
|
-
metadata: image
|
|
17947
|
-
});
|
|
17948
|
-
cov_2my1w2udyi().s[17]++;
|
|
17949
|
-
createBlob(payload, {
|
|
17950
|
-
onSuccess: function onSuccess(image) {
|
|
17951
|
-
cov_2my1w2udyi().f[4]++;
|
|
17952
|
-
cov_2my1w2udyi().s[18]++;
|
|
17953
|
-
onUploadComplete({
|
|
17954
|
-
url: image.metadata.url,
|
|
17955
|
-
signedId: image.signedId
|
|
17956
|
-
});
|
|
17957
|
-
},
|
|
17958
|
-
onError: Toastr.error
|
|
17959
|
-
});
|
|
17960
|
-
cov_2my1w2udyi().s[19]++;
|
|
17961
|
-
handleClose();
|
|
17964
|
+
cov_2my1w2udyi().s[15]++;
|
|
17965
|
+
handleCloseModal();
|
|
17962
17966
|
};
|
|
17963
|
-
var _ref10 = (cov_2my1w2udyi().s[
|
|
17967
|
+
var _ref10 = (cov_2my1w2udyi().s[16]++, useDropzoneWithValidation({
|
|
17964
17968
|
maxSize: MAX_IMAGE_SIZE$1,
|
|
17965
17969
|
acceptedTypes: ALLOWED_IMAGE_TYPES$1,
|
|
17966
|
-
onUploadComplete:
|
|
17970
|
+
onUploadComplete: setSelectedImage,
|
|
17967
17971
|
setIsUploading: setIsUploading
|
|
17968
17972
|
})),
|
|
17969
17973
|
getRootProps = _ref10.getRootProps,
|
|
17970
17974
|
getInputProps = _ref10.getInputProps,
|
|
17971
17975
|
isDragActive = _ref10.isDragActive,
|
|
17972
17976
|
inputRef = _ref10.inputRef;
|
|
17973
|
-
cov_2my1w2udyi().s[
|
|
17974
|
-
var
|
|
17977
|
+
cov_2my1w2udyi().s[17]++;
|
|
17978
|
+
var openFileUploadDialog = function openFileUploadDialog() {
|
|
17975
17979
|
var _inputRef$current;
|
|
17976
|
-
cov_2my1w2udyi().f[
|
|
17977
|
-
cov_2my1w2udyi().s[
|
|
17980
|
+
cov_2my1w2udyi().f[4]++;
|
|
17981
|
+
cov_2my1w2udyi().s[18]++;
|
|
17978
17982
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
17979
17983
|
};
|
|
17980
|
-
var options = (cov_2my1w2udyi().s[
|
|
17984
|
+
var options = (cov_2my1w2udyi().s[19]++, createOptions([{
|
|
17981
17985
|
key: "local",
|
|
17982
|
-
onClick:
|
|
17986
|
+
onClick: openFileUploadDialog
|
|
17983
17987
|
}]));
|
|
17984
|
-
cov_2my1w2udyi().s[
|
|
17988
|
+
cov_2my1w2udyi().s[20]++;
|
|
17985
17989
|
useEffect(function () {
|
|
17986
|
-
cov_2my1w2udyi().f[
|
|
17987
|
-
cov_2my1w2udyi().s[
|
|
17990
|
+
cov_2my1w2udyi().f[5]++;
|
|
17991
|
+
cov_2my1w2udyi().s[21]++;
|
|
17988
17992
|
setActiveTab(TABS[0].key);
|
|
17989
17993
|
}, [isOpen]);
|
|
17990
|
-
cov_2my1w2udyi().s[
|
|
17994
|
+
cov_2my1w2udyi().s[22]++;
|
|
17991
17995
|
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
17992
17996
|
className: "niu-modal",
|
|
17993
17997
|
isOpen: isOpen,
|
|
17994
17998
|
size: "large",
|
|
17995
|
-
onClose:
|
|
17996
|
-
}, (cov_2my1w2udyi().b[
|
|
17999
|
+
onClose: handleCloseModal
|
|
18000
|
+
}, (cov_2my1w2udyi().b[3][0]++, isUploading) && (cov_2my1w2udyi().b[3][1]++, /*#__PURE__*/React.createElement("div", {
|
|
17997
18001
|
className: "absolute inset-0 z-50 flex h-full items-center justify-center bg-gray-400 opacity-50"
|
|
17998
|
-
}, /*#__PURE__*/React.createElement(Spinner, null))), (cov_2my1w2udyi().b[
|
|
18002
|
+
}, /*#__PURE__*/React.createElement(Spinner, null))), (cov_2my1w2udyi().b[4][0]++, isNilOrEmpty(selectedImage)) && (cov_2my1w2udyi().b[4][1]++, isDragActive) && (cov_2my1w2udyi().b[4][2]++, /*#__PURE__*/React.createElement("div", _extends$1({
|
|
17999
18003
|
className: "absolute flex h-full w-full flex-col items-center justify-around rounded-xl border-4 border-dashed border-gray-900 bg-gray-400 opacity-40"
|
|
18000
|
-
}, getRootProps()), /*#__PURE__*/React.createElement(Typography, null, t("common.dropHere")))),
|
|
18001
|
-
|
|
18004
|
+
}, getRootProps()), /*#__PURE__*/React.createElement(Typography, null, t("common.dropHere")))), !isNilOrEmpty(selectedImage) ? (cov_2my1w2udyi().b[5][0]++, /*#__PURE__*/React.createElement(ImageEditor, {
|
|
18005
|
+
handleImageEditComplete: handleImageEditComplete,
|
|
18002
18006
|
handleReset: function handleReset() {
|
|
18003
|
-
cov_2my1w2udyi().f[
|
|
18004
|
-
cov_2my1w2udyi().s[
|
|
18005
|
-
return
|
|
18007
|
+
cov_2my1w2udyi().f[6]++;
|
|
18008
|
+
cov_2my1w2udyi().s[23]++;
|
|
18009
|
+
return setSelectedImage({});
|
|
18006
18010
|
},
|
|
18007
|
-
image:
|
|
18008
|
-
signedId:
|
|
18009
|
-
})) : (cov_2my1w2udyi().b[
|
|
18011
|
+
image: selectedImage,
|
|
18012
|
+
signedId: selectedImage === null || selectedImage === void 0 ? void 0 : selectedImage.signedId
|
|
18013
|
+
})) : (cov_2my1w2udyi().b[5][1]++, /*#__PURE__*/React.createElement("div", _extends$1({
|
|
18010
18014
|
className: "h-full flex-col"
|
|
18011
18015
|
}, getRootProps({
|
|
18012
18016
|
onClick: function onClick(event) {
|
|
18013
|
-
cov_2my1w2udyi().f[
|
|
18014
|
-
cov_2my1w2udyi().s[
|
|
18017
|
+
cov_2my1w2udyi().f[7]++;
|
|
18018
|
+
cov_2my1w2udyi().s[24]++;
|
|
18015
18019
|
return event.stopPropagation();
|
|
18016
18020
|
}
|
|
18017
18021
|
})), /*#__PURE__*/React.createElement(Modal$1.Header, null, /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -18023,15 +18027,15 @@ var Modal = function Modal(_ref) {
|
|
|
18023
18027
|
}, /*#__PURE__*/React.createElement(Tab, {
|
|
18024
18028
|
size: "small"
|
|
18025
18029
|
}, TABS.map(function (tab) {
|
|
18026
|
-
cov_2my1w2udyi().f[
|
|
18027
|
-
cov_2my1w2udyi().s[
|
|
18030
|
+
cov_2my1w2udyi().f[8]++;
|
|
18031
|
+
cov_2my1w2udyi().s[25]++;
|
|
18028
18032
|
return /*#__PURE__*/React.createElement(Tab.Item, {
|
|
18029
18033
|
active: activeTab === tab.key,
|
|
18030
18034
|
key: tab.key,
|
|
18031
18035
|
onClick: function onClick() {
|
|
18032
|
-
cov_2my1w2udyi().f[
|
|
18033
|
-
cov_2my1w2udyi().s[
|
|
18034
|
-
setActiveTab(tab.key);
|
|
18036
|
+
cov_2my1w2udyi().f[9]++;
|
|
18037
|
+
cov_2my1w2udyi().s[26]++;
|
|
18038
|
+
return setActiveTab(tab.key);
|
|
18035
18039
|
}
|
|
18036
18040
|
}, tab.label);
|
|
18037
18041
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -18041,8 +18045,8 @@ var Modal = function Modal(_ref) {
|
|
|
18041
18045
|
label = _ref11.label,
|
|
18042
18046
|
onClick = _ref11.onClick,
|
|
18043
18047
|
style = _ref11.style;
|
|
18044
|
-
cov_2my1w2udyi().f[
|
|
18045
|
-
cov_2my1w2udyi().s[
|
|
18048
|
+
cov_2my1w2udyi().f[10]++;
|
|
18049
|
+
cov_2my1w2udyi().s[27]++;
|
|
18046
18050
|
return /*#__PURE__*/React.createElement(Button, {
|
|
18047
18051
|
key: key,
|
|
18048
18052
|
label: label,
|
|
@@ -18051,8 +18055,8 @@ var Modal = function Modal(_ref) {
|
|
|
18051
18055
|
onClick: onClick
|
|
18052
18056
|
});
|
|
18053
18057
|
}))), /*#__PURE__*/React.createElement(ImageLibrary, {
|
|
18054
|
-
setImage: setImage,
|
|
18055
18058
|
setIsUploading: setIsUploading,
|
|
18059
|
+
setSelectedImage: setSelectedImage,
|
|
18056
18060
|
tab: activeTab
|
|
18057
18061
|
}))), /*#__PURE__*/React.createElement("input", getInputProps()));
|
|
18058
18062
|
};
|
|
@@ -18423,7 +18427,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
18423
18427
|
|
|
18424
18428
|
function cov_1avu3clziw() {
|
|
18425
18429
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/index.jsx";
|
|
18426
|
-
var hash = "
|
|
18430
|
+
var hash = "dfb1bddf6ad2d106cc08375435d345426efb0acc";
|
|
18427
18431
|
var global = new Function("return this")();
|
|
18428
18432
|
var gcv = "__coverage__";
|
|
18429
18433
|
var coverageData = {
|
|
@@ -18435,7 +18439,7 @@ function cov_1avu3clziw() {
|
|
|
18435
18439
|
column: 22
|
|
18436
18440
|
},
|
|
18437
18441
|
end: {
|
|
18438
|
-
line:
|
|
18442
|
+
line: 183,
|
|
18439
18443
|
column: 1
|
|
18440
18444
|
}
|
|
18441
18445
|
},
|
|
@@ -18599,213 +18603,263 @@ function cov_1avu3clziw() {
|
|
|
18599
18603
|
column: 69
|
|
18600
18604
|
}
|
|
18601
18605
|
},
|
|
18602
|
-
"17": {
|
|
18606
|
+
"17": {
|
|
18607
|
+
start: {
|
|
18608
|
+
line: 41,
|
|
18609
|
+
column: 4
|
|
18610
|
+
},
|
|
18611
|
+
end: {
|
|
18612
|
+
line: 44,
|
|
18613
|
+
column: 7
|
|
18614
|
+
}
|
|
18615
|
+
},
|
|
18616
|
+
"18": {
|
|
18617
|
+
start: {
|
|
18618
|
+
line: 45,
|
|
18619
|
+
column: 4
|
|
18620
|
+
},
|
|
18621
|
+
end: {
|
|
18622
|
+
line: 45,
|
|
18623
|
+
column: 40
|
|
18624
|
+
}
|
|
18625
|
+
},
|
|
18626
|
+
"19": {
|
|
18627
|
+
start: {
|
|
18628
|
+
line: 46,
|
|
18629
|
+
column: 4
|
|
18630
|
+
},
|
|
18631
|
+
end: {
|
|
18632
|
+
line: 46,
|
|
18633
|
+
column: 27
|
|
18634
|
+
}
|
|
18635
|
+
},
|
|
18636
|
+
"20": {
|
|
18637
|
+
start: {
|
|
18638
|
+
line: 49,
|
|
18639
|
+
column: 42
|
|
18640
|
+
},
|
|
18641
|
+
end: {
|
|
18642
|
+
line: 54,
|
|
18643
|
+
column: 3
|
|
18644
|
+
}
|
|
18645
|
+
},
|
|
18646
|
+
"21": {
|
|
18647
|
+
start: {
|
|
18648
|
+
line: 50,
|
|
18649
|
+
column: 4
|
|
18650
|
+
},
|
|
18651
|
+
end: {
|
|
18652
|
+
line: 50,
|
|
18653
|
+
column: 20
|
|
18654
|
+
}
|
|
18655
|
+
},
|
|
18656
|
+
"22": {
|
|
18603
18657
|
start: {
|
|
18604
|
-
line:
|
|
18658
|
+
line: 51,
|
|
18605
18659
|
column: 4
|
|
18606
18660
|
},
|
|
18607
18661
|
end: {
|
|
18608
|
-
line:
|
|
18609
|
-
column:
|
|
18662
|
+
line: 51,
|
|
18663
|
+
column: 20
|
|
18610
18664
|
}
|
|
18611
18665
|
},
|
|
18612
|
-
"
|
|
18666
|
+
"23": {
|
|
18613
18667
|
start: {
|
|
18614
|
-
line:
|
|
18668
|
+
line: 52,
|
|
18615
18669
|
column: 4
|
|
18616
18670
|
},
|
|
18617
18671
|
end: {
|
|
18618
|
-
line:
|
|
18619
|
-
column:
|
|
18672
|
+
line: 52,
|
|
18673
|
+
column: 32
|
|
18620
18674
|
}
|
|
18621
18675
|
},
|
|
18622
|
-
"
|
|
18676
|
+
"24": {
|
|
18623
18677
|
start: {
|
|
18624
|
-
line:
|
|
18678
|
+
line: 53,
|
|
18625
18679
|
column: 4
|
|
18626
18680
|
},
|
|
18627
18681
|
end: {
|
|
18628
|
-
line:
|
|
18682
|
+
line: 53,
|
|
18629
18683
|
column: 27
|
|
18630
18684
|
}
|
|
18631
18685
|
},
|
|
18632
|
-
"
|
|
18686
|
+
"25": {
|
|
18633
18687
|
start: {
|
|
18634
|
-
line:
|
|
18635
|
-
column:
|
|
18688
|
+
line: 56,
|
|
18689
|
+
column: 31
|
|
18636
18690
|
},
|
|
18637
18691
|
end: {
|
|
18638
|
-
line:
|
|
18692
|
+
line: 76,
|
|
18639
18693
|
column: 3
|
|
18640
18694
|
}
|
|
18641
18695
|
},
|
|
18642
|
-
"
|
|
18696
|
+
"26": {
|
|
18643
18697
|
start: {
|
|
18644
|
-
line:
|
|
18698
|
+
line: 57,
|
|
18645
18699
|
column: 4
|
|
18646
18700
|
},
|
|
18647
18701
|
end: {
|
|
18648
|
-
line:
|
|
18702
|
+
line: 61,
|
|
18649
18703
|
column: 5
|
|
18650
18704
|
}
|
|
18651
18705
|
},
|
|
18652
|
-
"
|
|
18706
|
+
"27": {
|
|
18653
18707
|
start: {
|
|
18654
|
-
line:
|
|
18708
|
+
line: 58,
|
|
18655
18709
|
column: 6
|
|
18656
18710
|
},
|
|
18657
18711
|
end: {
|
|
18658
|
-
line:
|
|
18712
|
+
line: 58,
|
|
18659
18713
|
column: 73
|
|
18660
18714
|
}
|
|
18661
18715
|
},
|
|
18662
|
-
"
|
|
18716
|
+
"28": {
|
|
18663
18717
|
start: {
|
|
18664
|
-
line:
|
|
18718
|
+
line: 60,
|
|
18665
18719
|
column: 6
|
|
18666
18720
|
},
|
|
18667
18721
|
end: {
|
|
18668
|
-
line:
|
|
18722
|
+
line: 60,
|
|
18669
18723
|
column: 13
|
|
18670
18724
|
}
|
|
18671
18725
|
},
|
|
18672
|
-
"
|
|
18726
|
+
"29": {
|
|
18673
18727
|
start: {
|
|
18674
|
-
line:
|
|
18728
|
+
line: 63,
|
|
18675
18729
|
column: 20
|
|
18676
18730
|
},
|
|
18677
18731
|
end: {
|
|
18678
|
-
line:
|
|
18732
|
+
line: 70,
|
|
18679
18733
|
column: 5
|
|
18680
18734
|
}
|
|
18681
18735
|
},
|
|
18682
|
-
"
|
|
18736
|
+
"30": {
|
|
18683
18737
|
start: {
|
|
18684
|
-
line:
|
|
18738
|
+
line: 72,
|
|
18685
18739
|
column: 4
|
|
18686
18740
|
},
|
|
18687
18741
|
end: {
|
|
18688
|
-
line:
|
|
18742
|
+
line: 75,
|
|
18689
18743
|
column: 7
|
|
18690
18744
|
}
|
|
18691
18745
|
},
|
|
18692
|
-
"
|
|
18746
|
+
"31": {
|
|
18693
18747
|
start: {
|
|
18694
|
-
line:
|
|
18748
|
+
line: 78,
|
|
18695
18749
|
column: 21
|
|
18696
18750
|
},
|
|
18697
18751
|
end: {
|
|
18698
|
-
line:
|
|
18752
|
+
line: 89,
|
|
18699
18753
|
column: 3
|
|
18700
18754
|
}
|
|
18701
18755
|
},
|
|
18702
|
-
"
|
|
18756
|
+
"32": {
|
|
18703
18757
|
start: {
|
|
18704
|
-
line:
|
|
18758
|
+
line: 79,
|
|
18705
18759
|
column: 20
|
|
18706
18760
|
},
|
|
18707
18761
|
end: {
|
|
18708
|
-
line:
|
|
18762
|
+
line: 82,
|
|
18709
18763
|
column: 5
|
|
18710
18764
|
}
|
|
18711
18765
|
},
|
|
18712
|
-
"
|
|
18766
|
+
"33": {
|
|
18713
18767
|
start: {
|
|
18714
|
-
line:
|
|
18768
|
+
line: 84,
|
|
18715
18769
|
column: 4
|
|
18716
18770
|
},
|
|
18717
18771
|
end: {
|
|
18718
|
-
line:
|
|
18772
|
+
line: 87,
|
|
18719
18773
|
column: 7
|
|
18720
18774
|
}
|
|
18721
18775
|
},
|
|
18722
|
-
"
|
|
18776
|
+
"34": {
|
|
18723
18777
|
start: {
|
|
18724
|
-
line:
|
|
18778
|
+
line: 88,
|
|
18725
18779
|
column: 4
|
|
18726
18780
|
},
|
|
18727
18781
|
end: {
|
|
18728
|
-
line:
|
|
18782
|
+
line: 88,
|
|
18729
18783
|
column: 27
|
|
18730
18784
|
}
|
|
18731
18785
|
},
|
|
18732
|
-
"
|
|
18786
|
+
"35": {
|
|
18733
18787
|
start: {
|
|
18734
|
-
line:
|
|
18788
|
+
line: 92,
|
|
18735
18789
|
column: 4
|
|
18736
18790
|
},
|
|
18737
18791
|
end: {
|
|
18738
|
-
line:
|
|
18792
|
+
line: 97,
|
|
18739
18793
|
column: 6
|
|
18740
18794
|
}
|
|
18741
18795
|
},
|
|
18742
|
-
"
|
|
18796
|
+
"36": {
|
|
18743
18797
|
start: {
|
|
18744
|
-
line:
|
|
18798
|
+
line: 99,
|
|
18745
18799
|
column: 2
|
|
18746
18800
|
},
|
|
18747
18801
|
end: {
|
|
18748
|
-
line:
|
|
18802
|
+
line: 116,
|
|
18749
18803
|
column: 3
|
|
18750
18804
|
}
|
|
18751
18805
|
},
|
|
18752
|
-
"
|
|
18806
|
+
"37": {
|
|
18753
18807
|
start: {
|
|
18754
|
-
line:
|
|
18808
|
+
line: 100,
|
|
18755
18809
|
column: 4
|
|
18756
18810
|
},
|
|
18757
18811
|
end: {
|
|
18758
|
-
line:
|
|
18812
|
+
line: 115,
|
|
18759
18813
|
column: 6
|
|
18760
18814
|
}
|
|
18761
18815
|
},
|
|
18762
|
-
"
|
|
18816
|
+
"38": {
|
|
18763
18817
|
start: {
|
|
18764
|
-
line:
|
|
18818
|
+
line: 118,
|
|
18765
18819
|
column: 2
|
|
18766
18820
|
},
|
|
18767
18821
|
end: {
|
|
18768
|
-
line:
|
|
18822
|
+
line: 182,
|
|
18769
18823
|
column: 4
|
|
18770
18824
|
}
|
|
18771
18825
|
},
|
|
18772
|
-
"
|
|
18826
|
+
"39": {
|
|
18773
18827
|
start: {
|
|
18774
|
-
line:
|
|
18828
|
+
line: 129,
|
|
18775
18829
|
column: 29
|
|
18776
18830
|
},
|
|
18777
18831
|
end: {
|
|
18778
|
-
line:
|
|
18832
|
+
line: 129,
|
|
18779
18833
|
column: 54
|
|
18780
18834
|
}
|
|
18781
18835
|
},
|
|
18782
|
-
"
|
|
18836
|
+
"40": {
|
|
18783
18837
|
start: {
|
|
18784
|
-
line:
|
|
18838
|
+
line: 157,
|
|
18785
18839
|
column: 27
|
|
18786
18840
|
},
|
|
18787
18841
|
end: {
|
|
18788
|
-
line:
|
|
18842
|
+
line: 157,
|
|
18789
18843
|
column: 49
|
|
18790
18844
|
}
|
|
18791
18845
|
},
|
|
18792
|
-
"
|
|
18846
|
+
"41": {
|
|
18793
18847
|
start: {
|
|
18794
|
-
line:
|
|
18848
|
+
line: 160,
|
|
18795
18849
|
column: 33
|
|
18796
18850
|
},
|
|
18797
18851
|
end: {
|
|
18798
|
-
line:
|
|
18852
|
+
line: 160,
|
|
18799
18853
|
column: 55
|
|
18800
18854
|
}
|
|
18801
18855
|
},
|
|
18802
|
-
"
|
|
18856
|
+
"42": {
|
|
18803
18857
|
start: {
|
|
18804
|
-
line:
|
|
18858
|
+
line: 178,
|
|
18805
18859
|
column: 23
|
|
18806
18860
|
},
|
|
18807
18861
|
end: {
|
|
18808
|
-
line:
|
|
18862
|
+
line: 178,
|
|
18809
18863
|
column: 51
|
|
18810
18864
|
}
|
|
18811
18865
|
}
|
|
@@ -18829,7 +18883,7 @@ function cov_1avu3clziw() {
|
|
|
18829
18883
|
column: 76
|
|
18830
18884
|
},
|
|
18831
18885
|
end: {
|
|
18832
|
-
line:
|
|
18886
|
+
line: 183,
|
|
18833
18887
|
column: 1
|
|
18834
18888
|
}
|
|
18835
18889
|
},
|
|
@@ -18912,20 +18966,20 @@ function cov_1avu3clziw() {
|
|
|
18912
18966
|
decl: {
|
|
18913
18967
|
start: {
|
|
18914
18968
|
line: 49,
|
|
18915
|
-
column:
|
|
18969
|
+
column: 42
|
|
18916
18970
|
},
|
|
18917
18971
|
end: {
|
|
18918
18972
|
line: 49,
|
|
18919
|
-
column:
|
|
18973
|
+
column: 43
|
|
18920
18974
|
}
|
|
18921
18975
|
},
|
|
18922
18976
|
loc: {
|
|
18923
18977
|
start: {
|
|
18924
18978
|
line: 49,
|
|
18925
|
-
column:
|
|
18979
|
+
column: 51
|
|
18926
18980
|
},
|
|
18927
18981
|
end: {
|
|
18928
|
-
line:
|
|
18982
|
+
line: 54,
|
|
18929
18983
|
column: 3
|
|
18930
18984
|
}
|
|
18931
18985
|
},
|
|
@@ -18935,121 +18989,145 @@ function cov_1avu3clziw() {
|
|
|
18935
18989
|
name: "(anonymous_5)",
|
|
18936
18990
|
decl: {
|
|
18937
18991
|
start: {
|
|
18938
|
-
line:
|
|
18939
|
-
column:
|
|
18992
|
+
line: 56,
|
|
18993
|
+
column: 31
|
|
18940
18994
|
},
|
|
18941
18995
|
end: {
|
|
18942
|
-
line:
|
|
18943
|
-
column:
|
|
18996
|
+
line: 56,
|
|
18997
|
+
column: 32
|
|
18944
18998
|
}
|
|
18945
18999
|
},
|
|
18946
19000
|
loc: {
|
|
18947
19001
|
start: {
|
|
18948
|
-
line:
|
|
19002
|
+
line: 56,
|
|
18949
19003
|
column: 40
|
|
18950
19004
|
},
|
|
18951
19005
|
end: {
|
|
18952
|
-
line:
|
|
19006
|
+
line: 76,
|
|
18953
19007
|
column: 3
|
|
18954
19008
|
}
|
|
18955
19009
|
},
|
|
18956
|
-
line:
|
|
19010
|
+
line: 56
|
|
18957
19011
|
},
|
|
18958
19012
|
"6": {
|
|
18959
19013
|
name: "(anonymous_6)",
|
|
18960
19014
|
decl: {
|
|
18961
19015
|
start: {
|
|
18962
|
-
line:
|
|
19016
|
+
line: 78,
|
|
19017
|
+
column: 21
|
|
19018
|
+
},
|
|
19019
|
+
end: {
|
|
19020
|
+
line: 78,
|
|
19021
|
+
column: 22
|
|
19022
|
+
}
|
|
19023
|
+
},
|
|
19024
|
+
loc: {
|
|
19025
|
+
start: {
|
|
19026
|
+
line: 78,
|
|
19027
|
+
column: 40
|
|
19028
|
+
},
|
|
19029
|
+
end: {
|
|
19030
|
+
line: 89,
|
|
19031
|
+
column: 3
|
|
19032
|
+
}
|
|
19033
|
+
},
|
|
19034
|
+
line: 78
|
|
19035
|
+
},
|
|
19036
|
+
"7": {
|
|
19037
|
+
name: "(anonymous_7)",
|
|
19038
|
+
decl: {
|
|
19039
|
+
start: {
|
|
19040
|
+
line: 129,
|
|
18963
19041
|
column: 23
|
|
18964
19042
|
},
|
|
18965
19043
|
end: {
|
|
18966
|
-
line:
|
|
19044
|
+
line: 129,
|
|
18967
19045
|
column: 24
|
|
18968
19046
|
}
|
|
18969
19047
|
},
|
|
18970
19048
|
loc: {
|
|
18971
19049
|
start: {
|
|
18972
|
-
line:
|
|
19050
|
+
line: 129,
|
|
18973
19051
|
column: 29
|
|
18974
19052
|
},
|
|
18975
19053
|
end: {
|
|
18976
|
-
line:
|
|
19054
|
+
line: 129,
|
|
18977
19055
|
column: 54
|
|
18978
19056
|
}
|
|
18979
19057
|
},
|
|
18980
|
-
line:
|
|
19058
|
+
line: 129
|
|
18981
19059
|
},
|
|
18982
|
-
"
|
|
18983
|
-
name: "(
|
|
19060
|
+
"8": {
|
|
19061
|
+
name: "(anonymous_8)",
|
|
18984
19062
|
decl: {
|
|
18985
19063
|
start: {
|
|
18986
|
-
line:
|
|
19064
|
+
line: 157,
|
|
18987
19065
|
column: 21
|
|
18988
19066
|
},
|
|
18989
19067
|
end: {
|
|
18990
|
-
line:
|
|
19068
|
+
line: 157,
|
|
18991
19069
|
column: 22
|
|
18992
19070
|
}
|
|
18993
19071
|
},
|
|
18994
19072
|
loc: {
|
|
18995
19073
|
start: {
|
|
18996
|
-
line:
|
|
19074
|
+
line: 157,
|
|
18997
19075
|
column: 27
|
|
18998
19076
|
},
|
|
18999
19077
|
end: {
|
|
19000
|
-
line:
|
|
19078
|
+
line: 157,
|
|
19001
19079
|
column: 49
|
|
19002
19080
|
}
|
|
19003
19081
|
},
|
|
19004
|
-
line:
|
|
19082
|
+
line: 157
|
|
19005
19083
|
},
|
|
19006
|
-
"
|
|
19007
|
-
name: "(
|
|
19084
|
+
"9": {
|
|
19085
|
+
name: "(anonymous_9)",
|
|
19008
19086
|
decl: {
|
|
19009
19087
|
start: {
|
|
19010
|
-
line:
|
|
19088
|
+
line: 160,
|
|
19011
19089
|
column: 27
|
|
19012
19090
|
},
|
|
19013
19091
|
end: {
|
|
19014
|
-
line:
|
|
19092
|
+
line: 160,
|
|
19015
19093
|
column: 28
|
|
19016
19094
|
}
|
|
19017
19095
|
},
|
|
19018
19096
|
loc: {
|
|
19019
19097
|
start: {
|
|
19020
|
-
line:
|
|
19098
|
+
line: 160,
|
|
19021
19099
|
column: 33
|
|
19022
19100
|
},
|
|
19023
19101
|
end: {
|
|
19024
|
-
line:
|
|
19102
|
+
line: 160,
|
|
19025
19103
|
column: 55
|
|
19026
19104
|
}
|
|
19027
19105
|
},
|
|
19028
|
-
line:
|
|
19106
|
+
line: 160
|
|
19029
19107
|
},
|
|
19030
|
-
"
|
|
19031
|
-
name: "(
|
|
19108
|
+
"10": {
|
|
19109
|
+
name: "(anonymous_10)",
|
|
19032
19110
|
decl: {
|
|
19033
19111
|
start: {
|
|
19034
|
-
line:
|
|
19112
|
+
line: 178,
|
|
19035
19113
|
column: 17
|
|
19036
19114
|
},
|
|
19037
19115
|
end: {
|
|
19038
|
-
line:
|
|
19116
|
+
line: 178,
|
|
19039
19117
|
column: 18
|
|
19040
19118
|
}
|
|
19041
19119
|
},
|
|
19042
19120
|
loc: {
|
|
19043
19121
|
start: {
|
|
19044
|
-
line:
|
|
19122
|
+
line: 178,
|
|
19045
19123
|
column: 23
|
|
19046
19124
|
},
|
|
19047
19125
|
end: {
|
|
19048
|
-
line:
|
|
19126
|
+
line: 178,
|
|
19049
19127
|
column: 51
|
|
19050
19128
|
}
|
|
19051
19129
|
},
|
|
19052
|
-
line:
|
|
19130
|
+
line: 178
|
|
19053
19131
|
}
|
|
19054
19132
|
},
|
|
19055
19133
|
branchMap: {
|
|
@@ -19104,22 +19182,22 @@ function cov_1avu3clziw() {
|
|
|
19104
19182
|
"2": {
|
|
19105
19183
|
loc: {
|
|
19106
19184
|
start: {
|
|
19107
|
-
line:
|
|
19185
|
+
line: 57,
|
|
19108
19186
|
column: 4
|
|
19109
19187
|
},
|
|
19110
19188
|
end: {
|
|
19111
|
-
line:
|
|
19189
|
+
line: 61,
|
|
19112
19190
|
column: 5
|
|
19113
19191
|
}
|
|
19114
19192
|
},
|
|
19115
19193
|
type: "if",
|
|
19116
19194
|
locations: [{
|
|
19117
19195
|
start: {
|
|
19118
|
-
line:
|
|
19196
|
+
line: 57,
|
|
19119
19197
|
column: 4
|
|
19120
19198
|
},
|
|
19121
19199
|
end: {
|
|
19122
|
-
line:
|
|
19200
|
+
line: 61,
|
|
19123
19201
|
column: 5
|
|
19124
19202
|
}
|
|
19125
19203
|
}, {
|
|
@@ -19132,27 +19210,27 @@ function cov_1avu3clziw() {
|
|
|
19132
19210
|
column: undefined
|
|
19133
19211
|
}
|
|
19134
19212
|
}],
|
|
19135
|
-
line:
|
|
19213
|
+
line: 57
|
|
19136
19214
|
},
|
|
19137
19215
|
"3": {
|
|
19138
19216
|
loc: {
|
|
19139
19217
|
start: {
|
|
19140
|
-
line:
|
|
19218
|
+
line: 99,
|
|
19141
19219
|
column: 2
|
|
19142
19220
|
},
|
|
19143
19221
|
end: {
|
|
19144
|
-
line:
|
|
19222
|
+
line: 116,
|
|
19145
19223
|
column: 3
|
|
19146
19224
|
}
|
|
19147
19225
|
},
|
|
19148
19226
|
type: "if",
|
|
19149
19227
|
locations: [{
|
|
19150
19228
|
start: {
|
|
19151
|
-
line:
|
|
19229
|
+
line: 99,
|
|
19152
19230
|
column: 2
|
|
19153
19231
|
},
|
|
19154
19232
|
end: {
|
|
19155
|
-
line:
|
|
19233
|
+
line: 116,
|
|
19156
19234
|
column: 3
|
|
19157
19235
|
}
|
|
19158
19236
|
}, {
|
|
@@ -19165,172 +19243,172 @@ function cov_1avu3clziw() {
|
|
|
19165
19243
|
column: undefined
|
|
19166
19244
|
}
|
|
19167
19245
|
}],
|
|
19168
|
-
line:
|
|
19246
|
+
line: 99
|
|
19169
19247
|
},
|
|
19170
19248
|
"4": {
|
|
19171
19249
|
loc: {
|
|
19172
19250
|
start: {
|
|
19173
|
-
line:
|
|
19251
|
+
line: 102,
|
|
19174
19252
|
column: 9
|
|
19175
19253
|
},
|
|
19176
19254
|
end: {
|
|
19177
|
-
line:
|
|
19255
|
+
line: 113,
|
|
19178
19256
|
column: 9
|
|
19179
19257
|
}
|
|
19180
19258
|
},
|
|
19181
19259
|
type: "cond-expr",
|
|
19182
19260
|
locations: [{
|
|
19183
19261
|
start: {
|
|
19184
|
-
line:
|
|
19262
|
+
line: 103,
|
|
19185
19263
|
column: 10
|
|
19186
19264
|
},
|
|
19187
19265
|
end: {
|
|
19188
|
-
line:
|
|
19266
|
+
line: 108,
|
|
19189
19267
|
column: 16
|
|
19190
19268
|
}
|
|
19191
19269
|
}, {
|
|
19192
19270
|
start: {
|
|
19193
|
-
line:
|
|
19271
|
+
line: 110,
|
|
19194
19272
|
column: 10
|
|
19195
19273
|
},
|
|
19196
19274
|
end: {
|
|
19197
|
-
line:
|
|
19275
|
+
line: 112,
|
|
19198
19276
|
column: 16
|
|
19199
19277
|
}
|
|
19200
19278
|
}],
|
|
19201
|
-
line:
|
|
19279
|
+
line: 102
|
|
19202
19280
|
},
|
|
19203
19281
|
"5": {
|
|
19204
19282
|
loc: {
|
|
19205
19283
|
start: {
|
|
19206
|
-
line:
|
|
19284
|
+
line: 102,
|
|
19207
19285
|
column: 9
|
|
19208
19286
|
},
|
|
19209
19287
|
end: {
|
|
19210
|
-
line:
|
|
19288
|
+
line: 102,
|
|
19211
19289
|
column: 55
|
|
19212
19290
|
}
|
|
19213
19291
|
},
|
|
19214
19292
|
type: "binary-expr",
|
|
19215
19293
|
locations: [{
|
|
19216
19294
|
start: {
|
|
19217
|
-
line:
|
|
19295
|
+
line: 102,
|
|
19218
19296
|
column: 9
|
|
19219
19297
|
},
|
|
19220
19298
|
end: {
|
|
19221
|
-
line:
|
|
19299
|
+
line: 102,
|
|
19222
19300
|
column: 29
|
|
19223
19301
|
}
|
|
19224
19302
|
}, {
|
|
19225
19303
|
start: {
|
|
19226
|
-
line:
|
|
19304
|
+
line: 102,
|
|
19227
19305
|
column: 33
|
|
19228
19306
|
},
|
|
19229
19307
|
end: {
|
|
19230
|
-
line:
|
|
19308
|
+
line: 102,
|
|
19231
19309
|
column: 55
|
|
19232
19310
|
}
|
|
19233
19311
|
}],
|
|
19234
|
-
line:
|
|
19312
|
+
line: 102
|
|
19235
19313
|
},
|
|
19236
19314
|
"6": {
|
|
19237
19315
|
loc: {
|
|
19238
19316
|
start: {
|
|
19239
|
-
line:
|
|
19317
|
+
line: 120,
|
|
19240
19318
|
column: 7
|
|
19241
19319
|
},
|
|
19242
19320
|
end: {
|
|
19243
|
-
line:
|
|
19321
|
+
line: 175,
|
|
19244
19322
|
column: 7
|
|
19245
19323
|
}
|
|
19246
19324
|
},
|
|
19247
19325
|
type: "cond-expr",
|
|
19248
19326
|
locations: [{
|
|
19249
19327
|
start: {
|
|
19250
|
-
line:
|
|
19328
|
+
line: 121,
|
|
19251
19329
|
column: 8
|
|
19252
19330
|
},
|
|
19253
19331
|
end: {
|
|
19254
|
-
line:
|
|
19332
|
+
line: 168,
|
|
19255
19333
|
column: 14
|
|
19256
19334
|
}
|
|
19257
19335
|
}, {
|
|
19258
19336
|
start: {
|
|
19259
|
-
line:
|
|
19337
|
+
line: 170,
|
|
19260
19338
|
column: 8
|
|
19261
19339
|
},
|
|
19262
19340
|
end: {
|
|
19263
|
-
line:
|
|
19341
|
+
line: 174,
|
|
19264
19342
|
column: 10
|
|
19265
19343
|
}
|
|
19266
19344
|
}],
|
|
19267
|
-
line:
|
|
19345
|
+
line: 120
|
|
19268
19346
|
},
|
|
19269
19347
|
"7": {
|
|
19270
19348
|
loc: {
|
|
19271
19349
|
start: {
|
|
19272
|
-
line:
|
|
19350
|
+
line: 147,
|
|
19273
19351
|
column: 24
|
|
19274
19352
|
},
|
|
19275
19353
|
end: {
|
|
19276
|
-
line:
|
|
19354
|
+
line: 147,
|
|
19277
19355
|
column: 73
|
|
19278
19356
|
}
|
|
19279
19357
|
},
|
|
19280
19358
|
type: "binary-expr",
|
|
19281
19359
|
locations: [{
|
|
19282
19360
|
start: {
|
|
19283
|
-
line:
|
|
19361
|
+
line: 147,
|
|
19284
19362
|
column: 24
|
|
19285
19363
|
},
|
|
19286
19364
|
end: {
|
|
19287
|
-
line:
|
|
19365
|
+
line: 147,
|
|
19288
19366
|
column: 52
|
|
19289
19367
|
}
|
|
19290
19368
|
}, {
|
|
19291
19369
|
start: {
|
|
19292
|
-
line:
|
|
19370
|
+
line: 147,
|
|
19293
19371
|
column: 56
|
|
19294
19372
|
},
|
|
19295
19373
|
end: {
|
|
19296
|
-
line:
|
|
19374
|
+
line: 147,
|
|
19297
19375
|
column: 73
|
|
19298
19376
|
}
|
|
19299
19377
|
}],
|
|
19300
|
-
line:
|
|
19378
|
+
line: 147
|
|
19301
19379
|
},
|
|
19302
19380
|
"8": {
|
|
19303
19381
|
loc: {
|
|
19304
19382
|
start: {
|
|
19305
|
-
line:
|
|
19383
|
+
line: 164,
|
|
19306
19384
|
column: 16
|
|
19307
19385
|
},
|
|
19308
19386
|
end: {
|
|
19309
|
-
line:
|
|
19387
|
+
line: 164,
|
|
19310
19388
|
column: 73
|
|
19311
19389
|
}
|
|
19312
19390
|
},
|
|
19313
19391
|
type: "cond-expr",
|
|
19314
19392
|
locations: [{
|
|
19315
19393
|
start: {
|
|
19316
|
-
line:
|
|
19394
|
+
line: 164,
|
|
19317
19395
|
column: 47
|
|
19318
19396
|
},
|
|
19319
19397
|
end: {
|
|
19320
|
-
line:
|
|
19398
|
+
line: 164,
|
|
19321
19399
|
column: 60
|
|
19322
19400
|
}
|
|
19323
19401
|
}, {
|
|
19324
19402
|
start: {
|
|
19325
|
-
line:
|
|
19403
|
+
line: 164,
|
|
19326
19404
|
column: 63
|
|
19327
19405
|
},
|
|
19328
19406
|
end: {
|
|
19329
|
-
line:
|
|
19407
|
+
line: 164,
|
|
19330
19408
|
column: 73
|
|
19331
19409
|
}
|
|
19332
19410
|
}],
|
|
19333
|
-
line:
|
|
19411
|
+
line: 164
|
|
19334
19412
|
}
|
|
19335
19413
|
},
|
|
19336
19414
|
s: {
|
|
@@ -19371,7 +19449,12 @@ function cov_1avu3clziw() {
|
|
|
19371
19449
|
"34": 0,
|
|
19372
19450
|
"35": 0,
|
|
19373
19451
|
"36": 0,
|
|
19374
|
-
"37": 0
|
|
19452
|
+
"37": 0,
|
|
19453
|
+
"38": 0,
|
|
19454
|
+
"39": 0,
|
|
19455
|
+
"40": 0,
|
|
19456
|
+
"41": 0,
|
|
19457
|
+
"42": 0
|
|
19375
19458
|
},
|
|
19376
19459
|
f: {
|
|
19377
19460
|
"0": 0,
|
|
@@ -19383,7 +19466,8 @@ function cov_1avu3clziw() {
|
|
|
19383
19466
|
"6": 0,
|
|
19384
19467
|
"7": 0,
|
|
19385
19468
|
"8": 0,
|
|
19386
|
-
"9": 0
|
|
19469
|
+
"9": 0,
|
|
19470
|
+
"10": 0
|
|
19387
19471
|
},
|
|
19388
19472
|
b: {
|
|
19389
19473
|
"0": [0],
|
|
@@ -19397,7 +19481,7 @@ function cov_1avu3clziw() {
|
|
|
19397
19481
|
"8": [0, 0]
|
|
19398
19482
|
},
|
|
19399
19483
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
19400
|
-
hash: "
|
|
19484
|
+
hash: "dfb1bddf6ad2d106cc08375435d345426efb0acc"
|
|
19401
19485
|
};
|
|
19402
19486
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
19403
19487
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -19486,23 +19570,35 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19486
19570
|
setIsEditorOpen(false);
|
|
19487
19571
|
};
|
|
19488
19572
|
cov_1avu3clziw().s[20]++;
|
|
19489
|
-
var
|
|
19573
|
+
var handleImageSelectionFromLibrary = function handleImageSelectionFromLibrary(image) {
|
|
19490
19574
|
cov_1avu3clziw().f[4]++;
|
|
19491
19575
|
cov_1avu3clziw().s[21]++;
|
|
19576
|
+
setImage(image);
|
|
19577
|
+
cov_1avu3clziw().s[22]++;
|
|
19578
|
+
onChange(image);
|
|
19579
|
+
cov_1avu3clziw().s[23]++;
|
|
19580
|
+
setSignedId(image.signedId);
|
|
19581
|
+
cov_1avu3clziw().s[24]++;
|
|
19582
|
+
setIsEditorOpen(false);
|
|
19583
|
+
};
|
|
19584
|
+
cov_1avu3clziw().s[25]++;
|
|
19585
|
+
var handleUplaodComplete = function handleUplaodComplete(image) {
|
|
19586
|
+
cov_1avu3clziw().f[5]++;
|
|
19587
|
+
cov_1avu3clziw().s[26]++;
|
|
19492
19588
|
if (IS_DEVELOPMENT_OR_HEROKU_ENV) {
|
|
19493
19589
|
cov_1avu3clziw().b[2][0]++;
|
|
19494
|
-
cov_1avu3clziw().s[
|
|
19590
|
+
cov_1avu3clziw().s[27]++;
|
|
19495
19591
|
handleSuccess(mergeRight(image, {
|
|
19496
19592
|
metadata: {
|
|
19497
19593
|
url: image.url
|
|
19498
19594
|
}
|
|
19499
19595
|
}));
|
|
19500
|
-
cov_1avu3clziw().s[
|
|
19596
|
+
cov_1avu3clziw().s[28]++;
|
|
19501
19597
|
return;
|
|
19502
19598
|
} else {
|
|
19503
19599
|
cov_1avu3clziw().b[2][1]++;
|
|
19504
19600
|
}
|
|
19505
|
-
var payload = (cov_1avu3clziw().s[
|
|
19601
|
+
var payload = (cov_1avu3clziw().s[29]++, {
|
|
19506
19602
|
filename: image.name,
|
|
19507
19603
|
byte_size: image.size,
|
|
19508
19604
|
content_type: image.fileType,
|
|
@@ -19510,13 +19606,13 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19510
19606
|
metadata: image,
|
|
19511
19607
|
service_name: "imagekitio"
|
|
19512
19608
|
});
|
|
19513
|
-
cov_1avu3clziw().s[
|
|
19609
|
+
cov_1avu3clziw().s[30]++;
|
|
19514
19610
|
createBlob(payload, {
|
|
19515
19611
|
onSuccess: handleSuccess,
|
|
19516
19612
|
onError: Toastr.error
|
|
19517
19613
|
});
|
|
19518
19614
|
};
|
|
19519
|
-
cov_1avu3clziw().s[
|
|
19615
|
+
cov_1avu3clziw().s[31]++;
|
|
19520
19616
|
var handleEdit = /*#__PURE__*/function () {
|
|
19521
19617
|
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref15) {
|
|
19522
19618
|
var url, payload;
|
|
@@ -19524,8 +19620,8 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19524
19620
|
while (1) switch (_context.prev = _context.next) {
|
|
19525
19621
|
case 0:
|
|
19526
19622
|
url = _ref15.url;
|
|
19527
|
-
cov_1avu3clziw().f[
|
|
19528
|
-
payload = (cov_1avu3clziw().s[
|
|
19623
|
+
cov_1avu3clziw().f[6]++;
|
|
19624
|
+
payload = (cov_1avu3clziw().s[32]++, {
|
|
19529
19625
|
id: signedId,
|
|
19530
19626
|
payload: {
|
|
19531
19627
|
service_name: "imagekitio",
|
|
@@ -19534,12 +19630,12 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19534
19630
|
}
|
|
19535
19631
|
}
|
|
19536
19632
|
});
|
|
19537
|
-
cov_1avu3clziw().s[
|
|
19633
|
+
cov_1avu3clziw().s[33]++;
|
|
19538
19634
|
updateBlob(payload, {
|
|
19539
19635
|
onSuccess: handleSuccess,
|
|
19540
19636
|
onError: Toastr.error
|
|
19541
19637
|
});
|
|
19542
|
-
cov_1avu3clziw().s[
|
|
19638
|
+
cov_1avu3clziw().s[34]++;
|
|
19543
19639
|
setIsEditorOpen(false);
|
|
19544
19640
|
case 7:
|
|
19545
19641
|
case "end":
|
|
@@ -19551,20 +19647,20 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19551
19647
|
return _ref16.apply(this, arguments);
|
|
19552
19648
|
};
|
|
19553
19649
|
}();
|
|
19554
|
-
var _ref17 = (cov_1avu3clziw().s[
|
|
19650
|
+
var _ref17 = (cov_1avu3clziw().s[35]++, useDropzoneWithValidation({
|
|
19555
19651
|
maxSize: MAX_IMAGE_SIZE,
|
|
19556
19652
|
acceptedTypes: ALLOWED_IMAGE_TYPES,
|
|
19557
|
-
onUploadComplete:
|
|
19653
|
+
onUploadComplete: handleUplaodComplete,
|
|
19558
19654
|
setIsUploading: setIsUploading
|
|
19559
19655
|
})),
|
|
19560
19656
|
getRootProps = _ref17.getRootProps,
|
|
19561
19657
|
getInputProps = _ref17.getInputProps,
|
|
19562
19658
|
uploadProgress = _ref17.uploadProgress,
|
|
19563
19659
|
inputRef = _ref17.inputRef;
|
|
19564
|
-
cov_1avu3clziw().s[
|
|
19660
|
+
cov_1avu3clziw().s[36]++;
|
|
19565
19661
|
if (isUploading) {
|
|
19566
19662
|
cov_1avu3clziw().b[3][0]++;
|
|
19567
|
-
cov_1avu3clziw().s[
|
|
19663
|
+
cov_1avu3clziw().s[37]++;
|
|
19568
19664
|
return /*#__PURE__*/React.createElement("div", {
|
|
19569
19665
|
className: className
|
|
19570
19666
|
}, (cov_1avu3clziw().b[5][0]++, uploadProgress !== 0) && (cov_1avu3clziw().b[5][1]++, uploadProgress !== 100) ? (cov_1avu3clziw().b[4][0]++, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19578,7 +19674,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19578
19674
|
} else {
|
|
19579
19675
|
cov_1avu3clziw().b[3][1]++;
|
|
19580
19676
|
}
|
|
19581
|
-
cov_1avu3clziw().s[
|
|
19677
|
+
cov_1avu3clziw().s[38]++;
|
|
19582
19678
|
return /*#__PURE__*/React.createElement("div", {
|
|
19583
19679
|
className: className
|
|
19584
19680
|
}, isNotNilOrEmpty(image.url) ? (cov_1avu3clziw().b[6][0]++, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19595,8 +19691,8 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19595
19691
|
style: "link",
|
|
19596
19692
|
onClick: function onClick() {
|
|
19597
19693
|
var _inputRef$current;
|
|
19598
|
-
cov_1avu3clziw().f[
|
|
19599
|
-
cov_1avu3clziw().s[
|
|
19694
|
+
cov_1avu3clziw().f[7]++;
|
|
19695
|
+
cov_1avu3clziw().s[39]++;
|
|
19600
19696
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
19601
19697
|
}
|
|
19602
19698
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -19624,19 +19720,19 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19624
19720
|
isOpen: isEditorOpen,
|
|
19625
19721
|
size: "large",
|
|
19626
19722
|
onClose: function onClose() {
|
|
19627
|
-
cov_1avu3clziw().f[
|
|
19628
|
-
cov_1avu3clziw().s[
|
|
19723
|
+
cov_1avu3clziw().f[8]++;
|
|
19724
|
+
cov_1avu3clziw().s[40]++;
|
|
19629
19725
|
return setIsEditorOpen(false);
|
|
19630
19726
|
}
|
|
19631
19727
|
}, /*#__PURE__*/React.createElement(ImageEditor, {
|
|
19632
19728
|
handleReset: function handleReset() {
|
|
19633
|
-
cov_1avu3clziw().f[
|
|
19634
|
-
cov_1avu3clziw().s[
|
|
19729
|
+
cov_1avu3clziw().f[9]++;
|
|
19730
|
+
cov_1avu3clziw().s[41]++;
|
|
19635
19731
|
return setIsEditorOpen(false);
|
|
19636
19732
|
},
|
|
19637
19733
|
image: image,
|
|
19638
19734
|
signedId: signedId,
|
|
19639
|
-
|
|
19735
|
+
handleImageEditComplete: IS_DEVELOPMENT_OR_HEROKU_ENV ? (cov_1avu3clziw().b[8][0]++, handleSuccess) : (cov_1avu3clziw().b[8][1]++, handleEdit)
|
|
19640
19736
|
})))) : (cov_1avu3clziw().b[6][1]++, /*#__PURE__*/React.createElement(ImageUpload, {
|
|
19641
19737
|
getInputProps: getInputProps,
|
|
19642
19738
|
getRootProps: getRootProps,
|
|
@@ -19644,11 +19740,11 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19644
19740
|
})), /*#__PURE__*/React.createElement(Modal, {
|
|
19645
19741
|
isOpen: isAssetLibraryOpen,
|
|
19646
19742
|
onClose: function onClose() {
|
|
19647
|
-
cov_1avu3clziw().f[
|
|
19648
|
-
cov_1avu3clziw().s[
|
|
19743
|
+
cov_1avu3clziw().f[10]++;
|
|
19744
|
+
cov_1avu3clziw().s[42]++;
|
|
19649
19745
|
return setIsAssetLibraryOpen(false);
|
|
19650
19746
|
},
|
|
19651
|
-
onUploadComplete:
|
|
19747
|
+
onUploadComplete: handleImageSelectionFromLibrary
|
|
19652
19748
|
}));
|
|
19653
19749
|
};
|
|
19654
19750
|
|