@copart/ops-tool-kit 1.6.1-alpha.1 → 1.6.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.
@@ -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.6.1-alpha.1";
36
+ const version$3 = "1.6.1";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -2584,11 +2584,13 @@ function set$1(target, path, value, options) {
2584
2584
 
2585
2585
  let opts = options || {};
2586
2586
  const isArray = Array.isArray(path);
2587
+
2587
2588
  if (!isArray && typeof path !== 'string') {
2588
2589
  return target;
2589
2590
  }
2590
2591
 
2591
2592
  let merge = opts.merge;
2593
+
2592
2594
  if (merge && typeof merge !== 'function') {
2593
2595
  merge = Object.assign;
2594
2596
  }
@@ -2631,8 +2633,7 @@ function result(target, path, value, merge) {
2631
2633
  function split(path, options) {
2632
2634
  const id = createKey(path, options);
2633
2635
  if (set$1.memo[id]) return set$1.memo[id];
2634
-
2635
- const char = (options && options.separator) ? options.separator : '.';
2636
+ const char = options && options.separator ? options.separator : '.';
2636
2637
  let keys = [];
2637
2638
  let res = [];
2638
2639
 
@@ -2644,25 +2645,32 @@ function split(path, options) {
2644
2645
 
2645
2646
  for (let i = 0; i < keys.length; i++) {
2646
2647
  let prop = keys[i];
2648
+
2647
2649
  while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
2648
2650
  prop = prop.slice(0, -1) + char + keys[++i];
2649
2651
  }
2652
+
2650
2653
  res.push(prop);
2651
2654
  }
2655
+
2652
2656
  set$1.memo[id] = res;
2653
2657
  return res;
2654
2658
  }
2655
2659
 
2656
2660
  function createKey(pattern, options) {
2657
2661
  let id = pattern;
2662
+
2658
2663
  if (typeof options === 'undefined') {
2659
2664
  return id + '';
2660
2665
  }
2666
+
2661
2667
  const keys = Object.keys(options);
2668
+
2662
2669
  for (let i = 0; i < keys.length; i++) {
2663
2670
  const key = keys[i];
2664
2671
  id += ';' + key + '=' + String(options[key]);
2665
2672
  }
2673
+
2666
2674
  return id;
2667
2675
  }
2668
2676
 
@@ -6658,8 +6666,12 @@ exports.all = function () {
6658
6666
  };
6659
6667
  });
6660
6668
 
6669
+ var stack$1 = process.env.STACK;
6670
+
6661
6671
  var getDefaultYard = function getDefaultYard(country) {
6662
- switch (country) {
6672
+ var userCountryCode = country || (stack$1 === c ? 'US' : 'GB');
6673
+
6674
+ switch (userCountryCode) {
6663
6675
  case 'IN':
6664
6676
  return {
6665
6677
  name: "CITC",
@@ -6676,7 +6688,23 @@ var getDefaultYard = function getDefaultYard(country) {
6676
6688
  }
6677
6689
  };
6678
6690
 
6691
+ case 'US':
6692
+ return {
6693
+ name: "CORPORATE",
6694
+ number: 700,
6695
+ address: {
6696
+ city: "DALLAS",
6697
+ country: "USA",
6698
+ line1: "14185 DALLAS PARKWAY #300",
6699
+ state: "TX",
6700
+ zip: {
6701
+ zip1: "75254"
6702
+ }
6703
+ }
6704
+ };
6705
+
6679
6706
  case 'UK':
6707
+ case 'GB':
6680
6708
  return {
6681
6709
  name: "COPART UK",
6682
6710
  number: 400,
@@ -25815,7 +25843,7 @@ var IconComponent = function IconComponent(_ref) {
25815
25843
  */
25816
25844
 
25817
25845
  var b = "function" === typeof Symbol && Symbol.for,
25818
- c = b ? Symbol.for("react.element") : 60103,
25846
+ c$1 = b ? Symbol.for("react.element") : 60103,
25819
25847
  d = b ? Symbol.for("react.portal") : 60106,
25820
25848
  e = b ? Symbol.for("react.fragment") : 60107,
25821
25849
  f = b ? Symbol.for("react.strict_mode") : 60108,
@@ -25839,7 +25867,7 @@ function z(a) {
25839
25867
  var u = a.$$typeof;
25840
25868
 
25841
25869
  switch (u) {
25842
- case c:
25870
+ case c$1:
25843
25871
  switch (a = a.type, a) {
25844
25872
  case l:
25845
25873
  case m:
@@ -25878,7 +25906,7 @@ var AsyncMode = l;
25878
25906
  var ConcurrentMode = m;
25879
25907
  var ContextConsumer = k;
25880
25908
  var ContextProvider = h;
25881
- var Element$1 = c;
25909
+ var Element$1 = c$1;
25882
25910
  var ForwardRef = n;
25883
25911
  var Fragment = e;
25884
25912
  var Lazy = t;
@@ -25903,7 +25931,7 @@ var isContextProvider = function (a) {
25903
25931
  };
25904
25932
 
25905
25933
  var isElement = function (a) {
25906
- return "object" === typeof a && null !== a && a.$$typeof === c;
25934
+ return "object" === typeof a && null !== a && a.$$typeof === c$1;
25907
25935
  };
25908
25936
 
25909
25937
  var isForwardRef = function (a) {