@copart/ops-tool-kit 1.13.6-alpha.0 → 1.13.6-alpha.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.
@@ -49,7 +49,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
49
49
  var ReactRouterDOM__namespace = /*#__PURE__*/_interopNamespace(ReactRouterDOM);
50
50
 
51
51
  const name$1 = "@copart/ops-tool-kit";
52
- const version$3 = "1.13.6-alpha.0";
52
+ const version$3 = "1.13.6-alpha.1";
53
53
  const main$1 = "dist/ops-tool-kit.js";
54
54
  const style = "dist/ops-tool-kit.css";
55
55
  const files = [
@@ -21459,11 +21459,6 @@ var moment = createCommonjsModule(function (module, exports) {
21459
21459
  });
21460
21460
  });
21461
21461
 
21462
- var isSelfManagedFlag = function isSelfManagedFlag(flag) {
21463
- if (flag == null || flag === '') return true;
21464
- if (typeof flag === 'boolean') return flag;
21465
- return !['false', 'n', 'no', '0'].includes(String(flag).trim().toLowerCase());
21466
- };
21467
21462
  var toNameList = function toNameList(value) {
21468
21463
  if (Array.isArray(value)) {
21469
21464
  return value.map(function (item) {
@@ -21626,9 +21621,9 @@ var fetchUserStatus = /*#__PURE__*/function () {
21626
21621
  doc = docs[0] || {};
21627
21622
  return _context3.a(2, {
21628
21623
  status: doc.user_availability || null,
21629
- appNames: toNameList(doc.user_availability_status_apps),
21624
+ appNames: toNameList(doc.user_availability_checked_apps),
21630
21625
  copartId: doc.copart_id || null,
21631
- selfManaged: isSelfManagedFlag(doc.self_managed_flag)
21626
+ selfManaged: doc.self_managed_flag === true
21632
21627
  });
21633
21628
  case 3:
21634
21629
  _context3.p = 3;
@@ -32113,7 +32108,7 @@ var AppBar = function AppBar(_ref) {
32113
32108
  userStatus = statusValue == null ? null : statusValue;
32114
32109
  resolvedAppNames = appsHidden ? undefined : resolveSelectedAppNames(apps, userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.appNames);
32115
32110
  setSelectedAppNames(resolvedAppNames || []);
32116
- setSelfManaged((userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.selfManaged) !== false);
32111
+ setSelfManaged((userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.selfManaged) === true);
32117
32112
  if (!(userStatus === null)) {
32118
32113
  _context6.n = 5;
32119
32114
  break;