@copart/ops-tool-kit 1.7.3 → 1.7.4
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/ops-tool-kit.js +17 -15
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
33
33
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$e = "@copart/ops-tool-kit";
|
|
36
|
-
const version$3 = "1.7.
|
|
36
|
+
const version$3 = "1.7.4";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2584,13 +2584,11 @@ function set$1(target, path, value, options) {
|
|
|
2584
2584
|
|
|
2585
2585
|
let opts = options || {};
|
|
2586
2586
|
const isArray = Array.isArray(path);
|
|
2587
|
-
|
|
2588
2587
|
if (!isArray && typeof path !== 'string') {
|
|
2589
2588
|
return target;
|
|
2590
2589
|
}
|
|
2591
2590
|
|
|
2592
2591
|
let merge = opts.merge;
|
|
2593
|
-
|
|
2594
2592
|
if (merge && typeof merge !== 'function') {
|
|
2595
2593
|
merge = Object.assign;
|
|
2596
2594
|
}
|
|
@@ -2633,7 +2631,8 @@ function result(target, path, value, merge) {
|
|
|
2633
2631
|
function split(path, options) {
|
|
2634
2632
|
const id = createKey(path, options);
|
|
2635
2633
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2636
|
-
|
|
2634
|
+
|
|
2635
|
+
const char = (options && options.separator) ? options.separator : '.';
|
|
2637
2636
|
let keys = [];
|
|
2638
2637
|
let res = [];
|
|
2639
2638
|
|
|
@@ -2645,32 +2644,25 @@ function split(path, options) {
|
|
|
2645
2644
|
|
|
2646
2645
|
for (let i = 0; i < keys.length; i++) {
|
|
2647
2646
|
let prop = keys[i];
|
|
2648
|
-
|
|
2649
2647
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2650
2648
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2651
2649
|
}
|
|
2652
|
-
|
|
2653
2650
|
res.push(prop);
|
|
2654
2651
|
}
|
|
2655
|
-
|
|
2656
2652
|
set$1.memo[id] = res;
|
|
2657
2653
|
return res;
|
|
2658
2654
|
}
|
|
2659
2655
|
|
|
2660
2656
|
function createKey(pattern, options) {
|
|
2661
2657
|
let id = pattern;
|
|
2662
|
-
|
|
2663
2658
|
if (typeof options === 'undefined') {
|
|
2664
2659
|
return id + '';
|
|
2665
2660
|
}
|
|
2666
|
-
|
|
2667
2661
|
const keys = Object.keys(options);
|
|
2668
|
-
|
|
2669
2662
|
for (let i = 0; i < keys.length; i++) {
|
|
2670
2663
|
const key = keys[i];
|
|
2671
2664
|
id += ';' + key + '=' + String(options[key]);
|
|
2672
2665
|
}
|
|
2673
|
-
|
|
2674
2666
|
return id;
|
|
2675
2667
|
}
|
|
2676
2668
|
|
|
@@ -11076,15 +11068,16 @@ function () {
|
|
|
11076
11068
|
windshield_label_printers = [];
|
|
11077
11069
|
country = countryA3code || storage$1.getSessionItem('dashboard', 'selectedCountryA3code'); // Fetch all printers from g2print-ws endpoint
|
|
11078
11070
|
|
|
11071
|
+
_context.prev = 8;
|
|
11079
11072
|
g2PrintersUrl = "".concat(endpoints.g2Printers, "&facility=").concat(yardNumber);
|
|
11080
|
-
_context.next =
|
|
11073
|
+
_context.next = 12;
|
|
11081
11074
|
return fetcher.get(g2PrintersUrl, {
|
|
11082
11075
|
headers: {
|
|
11083
11076
|
country: country
|
|
11084
11077
|
}
|
|
11085
11078
|
});
|
|
11086
11079
|
|
|
11087
|
-
case
|
|
11080
|
+
case 12:
|
|
11088
11081
|
g2Printers = _context.sent;
|
|
11089
11082
|
printersResponse = pathOr$1([], ['data'], g2Printers);
|
|
11090
11083
|
printersResponse.forEach(function (printer) {
|
|
@@ -11118,6 +11111,15 @@ function () {
|
|
|
11118
11111
|
standard_printers.push(obj);
|
|
11119
11112
|
}
|
|
11120
11113
|
});
|
|
11114
|
+
_context.next = 20;
|
|
11115
|
+
break;
|
|
11116
|
+
|
|
11117
|
+
case 17:
|
|
11118
|
+
_context.prev = 17;
|
|
11119
|
+
_context.t0 = _context["catch"](8);
|
|
11120
|
+
console.error(_context.t0);
|
|
11121
|
+
|
|
11122
|
+
case 20:
|
|
11121
11123
|
return _context.abrupt("return", _objectSpread2({}, allPrinters, {
|
|
11122
11124
|
check_printers: check_printers,
|
|
11123
11125
|
barcode_label_printers: barcode_label_printers,
|
|
@@ -11126,12 +11128,12 @@ function () {
|
|
|
11126
11128
|
text_printers: text_printers
|
|
11127
11129
|
}));
|
|
11128
11130
|
|
|
11129
|
-
case
|
|
11131
|
+
case 21:
|
|
11130
11132
|
case "end":
|
|
11131
11133
|
return _context.stop();
|
|
11132
11134
|
}
|
|
11133
11135
|
}
|
|
11134
|
-
}, _callee);
|
|
11136
|
+
}, _callee, null, [[8, 17]]);
|
|
11135
11137
|
}));
|
|
11136
11138
|
|
|
11137
11139
|
return function getPrintersForYard(_x, _x2) {
|