@seamapi/react 1.47.0 → 1.48.0
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/README.md +1 -1
- package/dist/elements.js +422 -424
- package/dist/elements.js.map +1 -1
- package/dist/index.css +65 -0
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/icons/Info.d.ts +2 -0
- package/lib/icons/Info.js +7 -0
- package/lib/icons/Info.js.map +1 -0
- package/lib/icons/InfoDark.d.ts +2 -0
- package/lib/icons/InfoDark.js +7 -0
- package/lib/icons/InfoDark.js.map +1 -0
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js.map +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDevice.js +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDevice.js.map +1 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.d.ts +6 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js +21 -4
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js.map +1 -1
- package/lib/seam/components/DeviceTable/DeviceTable.js +2 -2
- package/lib/seam/components/DeviceTable/DeviceTable.js.map +1 -1
- package/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedule.d.ts +5 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedule.js +24 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedule.js.map +1 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedules.js +1 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedules.js.map +1 -1
- package/lib/seam/thermostats/climate-setting-schedules/use-create-climate-setting-schedule.d.ts +5 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-create-climate-setting-schedule.js +21 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-create-climate-setting-schedule.js.map +1 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-delete-climate-setting-schedule.d.ts +5 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-delete-climate-setting-schedule.js +27 -0
- package/lib/seam/thermostats/climate-setting-schedules/use-delete-climate-setting-schedule.js.map +1 -0
- package/lib/ui/Tooltip/Tooltip.d.ts +2 -0
- package/lib/ui/Tooltip/Tooltip.js +33 -0
- package/lib/ui/Tooltip/Tooltip.js.map +1 -0
- package/lib/ui/thermostat/ClimateSettingStatus.js +10 -3
- package/lib/ui/thermostat/ClimateSettingStatus.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/icons/Info.tsx +36 -0
- package/src/lib/icons/InfoDark.tsx +37 -0
- package/src/lib/seam/components/AccessCodeDetails/AccessCodeDetails.tsx +0 -2
- package/src/lib/seam/components/AccessCodeDetails/AccessCodeDevice.tsx +1 -4
- package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.element.ts +4 -0
- package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.tsx +59 -6
- package/src/lib/seam/components/DeviceTable/DeviceTable.tsx +2 -2
- package/src/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedule.ts +47 -0
- package/src/lib/seam/thermostats/climate-setting-schedules/use-climate-setting-schedules.ts +1 -0
- package/src/lib/seam/thermostats/climate-setting-schedules/use-create-climate-setting-schedule.ts +48 -0
- package/src/lib/seam/thermostats/climate-setting-schedules/use-delete-climate-setting-schedule.ts +53 -0
- package/src/lib/ui/Tooltip/Tooltip.tsx +64 -0
- package/src/lib/ui/thermostat/ClimateSettingStatus.tsx +12 -10
- package/src/lib/version.ts +1 -1
- package/src/styles/_main.scss +2 -0
- package/src/styles/_tooltip.scss +83 -0
package/dist/elements.js
CHANGED
|
@@ -1315,7 +1315,7 @@ function NA(t) {
|
|
|
1315
1315
|
} catch {
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1318
|
+
var Rt = Math.clz32 ? Math.clz32 : VA, DA = Math.log, HA = Math.LN2;
|
|
1319
1319
|
function VA(t) {
|
|
1320
1320
|
return t >>>= 0, t === 0 ? 32 : 31 - (DA(t) / HA | 0) | 0;
|
|
1321
1321
|
}
|
|
@@ -1385,7 +1385,7 @@ function vu(t, e) {
|
|
|
1385
1385
|
return e;
|
|
1386
1386
|
if (r & 4 && (r |= n & 16), e = t.entangledLanes, e !== 0)
|
|
1387
1387
|
for (t = t.entanglements, e &= r; 0 < e; )
|
|
1388
|
-
n = 31 -
|
|
1388
|
+
n = 31 - Rt(e), i = 1 << n, r |= t[n], e &= ~i;
|
|
1389
1389
|
return r;
|
|
1390
1390
|
}
|
|
1391
1391
|
function qA(t, e) {
|
|
@@ -1431,7 +1431,7 @@ function qA(t, e) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
function FA(t, e) {
|
|
1433
1433
|
for (var n = t.suspendedLanes, r = t.pingedLanes, i = t.expirationTimes, o = t.pendingLanes; 0 < o; ) {
|
|
1434
|
-
var s = 31 -
|
|
1434
|
+
var s = 31 - Rt(o), l = 1 << s, c = i[s];
|
|
1435
1435
|
c === -1 ? (!(l & n) || l & r) && (i[s] = qA(l, e)) : c <= e && (t.expiredLanes |= l), o &= ~l;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
@@ -1448,21 +1448,21 @@ function Hd(t) {
|
|
|
1448
1448
|
return e;
|
|
1449
1449
|
}
|
|
1450
1450
|
function Ua(t, e, n) {
|
|
1451
|
-
t.pendingLanes |= e, e !== 536870912 && (t.suspendedLanes = 0, t.pingedLanes = 0), t = t.eventTimes, e = 31 -
|
|
1451
|
+
t.pendingLanes |= e, e !== 536870912 && (t.suspendedLanes = 0, t.pingedLanes = 0), t = t.eventTimes, e = 31 - Rt(e), t[e] = n;
|
|
1452
1452
|
}
|
|
1453
1453
|
function LA(t, e) {
|
|
1454
1454
|
var n = t.pendingLanes & ~e;
|
|
1455
1455
|
t.pendingLanes = e, t.suspendedLanes = 0, t.pingedLanes = 0, t.expiredLanes &= e, t.mutableReadLanes &= e, t.entangledLanes &= e, e = t.entanglements;
|
|
1456
1456
|
var r = t.eventTimes;
|
|
1457
1457
|
for (t = t.expirationTimes; 0 < n; ) {
|
|
1458
|
-
var i = 31 -
|
|
1458
|
+
var i = 31 - Rt(n), o = 1 << i;
|
|
1459
1459
|
e[i] = 0, r[i] = -1, t[i] = -1, n &= ~o;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
function lf(t, e) {
|
|
1463
1463
|
var n = t.entangledLanes |= e;
|
|
1464
1464
|
for (t = t.entanglements; n; ) {
|
|
1465
|
-
var r = 31 -
|
|
1465
|
+
var r = 31 - Rt(n), i = 1 << r;
|
|
1466
1466
|
i & e | t[r] & e && (t[r] |= e), n &= ~i;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
@@ -1964,9 +1964,9 @@ function Cw(t, e) {
|
|
|
1964
1964
|
function Iw(t, e) {
|
|
1965
1965
|
return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
|
|
1966
1966
|
}
|
|
1967
|
-
var
|
|
1967
|
+
var Nt = typeof Object.is == "function" ? Object.is : Iw;
|
|
1968
1968
|
function Ma(t, e) {
|
|
1969
|
-
if (
|
|
1969
|
+
if (Nt(t, e))
|
|
1970
1970
|
return !0;
|
|
1971
1971
|
if (typeof t != "object" || t === null || typeof e != "object" || e === null)
|
|
1972
1972
|
return !1;
|
|
@@ -1975,7 +1975,7 @@ function Ma(t, e) {
|
|
|
1975
1975
|
return !1;
|
|
1976
1976
|
for (r = 0; r < n.length; r++) {
|
|
1977
1977
|
var i = n[r];
|
|
1978
|
-
if (!Dc.call(e, i) || !
|
|
1978
|
+
if (!Dc.call(e, i) || !Nt(t[i], e[i]))
|
|
1979
1979
|
return !1;
|
|
1980
1980
|
}
|
|
1981
1981
|
return !0;
|
|
@@ -2593,12 +2593,12 @@ function qv(t, e, n) {
|
|
|
2593
2593
|
ht[mt++] = ln, ht[mt++] = un, ht[mt++] = Sr, Sr = t;
|
|
2594
2594
|
var r = ln;
|
|
2595
2595
|
t = un;
|
|
2596
|
-
var i = 32 -
|
|
2596
|
+
var i = 32 - Rt(r) - 1;
|
|
2597
2597
|
r &= ~(1 << i), n += 1;
|
|
2598
|
-
var o = 32 -
|
|
2598
|
+
var o = 32 - Rt(e) + i;
|
|
2599
2599
|
if (30 < o) {
|
|
2600
2600
|
var s = i - i % 5;
|
|
2601
|
-
o = (r & (1 << s) - 1).toString(32), r >>= s, i -= s, ln = 1 << 32 -
|
|
2601
|
+
o = (r & (1 << s) - 1).toString(32), r >>= s, i -= s, ln = 1 << 32 - Rt(e) + i | n << i | r, un = o + t;
|
|
2602
2602
|
} else
|
|
2603
2603
|
ln = 1 << o | n << i | r, un = t;
|
|
2604
2604
|
}
|
|
@@ -2611,7 +2611,7 @@ function gf(t) {
|
|
|
2611
2611
|
for (; t === Sr; )
|
|
2612
2612
|
Sr = ht[--mt], ht[mt] = null, un = ht[--mt], ht[mt] = null, ln = ht[--mt], ht[mt] = null;
|
|
2613
2613
|
}
|
|
2614
|
-
var st = null, at = null, ae = !1,
|
|
2614
|
+
var st = null, at = null, ae = !1, Pt = null;
|
|
2615
2615
|
function Fv(t, e) {
|
|
2616
2616
|
var n = gt(5, null, null, 0);
|
|
2617
2617
|
n.elementType = "DELETED", n.stateNode = e, n.return = t, e = t.deletions, e === null ? (t.deletions = [n], t.flags |= 16) : e.push(n);
|
|
@@ -2700,7 +2700,7 @@ function ci() {
|
|
|
2700
2700
|
at = st = null, ae = !1;
|
|
2701
2701
|
}
|
|
2702
2702
|
function vf(t) {
|
|
2703
|
-
|
|
2703
|
+
Pt === null ? Pt = [t] : Pt.push(t);
|
|
2704
2704
|
}
|
|
2705
2705
|
var Fw = yn.ReactCurrentBatchConfig;
|
|
2706
2706
|
function Tt(t, e) {
|
|
@@ -2885,15 +2885,15 @@ var ad = { isMounted: function(t) {
|
|
|
2885
2885
|
}, enqueueSetState: function(t, e, n) {
|
|
2886
2886
|
t = t._reactInternals;
|
|
2887
2887
|
var r = $e(), i = Hn(t), o = cn(r, i);
|
|
2888
|
-
o.payload = e, n != null && (o.callback = n), e = Nn(t, o, i), e !== null && (
|
|
2888
|
+
o.payload = e, n != null && (o.callback = n), e = Nn(t, o, i), e !== null && (kt(e, t, i, r), eu(e, t, i));
|
|
2889
2889
|
}, enqueueReplaceState: function(t, e, n) {
|
|
2890
2890
|
t = t._reactInternals;
|
|
2891
2891
|
var r = $e(), i = Hn(t), o = cn(r, i);
|
|
2892
|
-
o.tag = 1, o.payload = e, n != null && (o.callback = n), e = Nn(t, o, i), e !== null && (
|
|
2892
|
+
o.tag = 1, o.payload = e, n != null && (o.callback = n), e = Nn(t, o, i), e !== null && (kt(e, t, i, r), eu(e, t, i));
|
|
2893
2893
|
}, enqueueForceUpdate: function(t, e) {
|
|
2894
2894
|
t = t._reactInternals;
|
|
2895
2895
|
var n = $e(), r = Hn(t), i = cn(n, r);
|
|
2896
|
-
i.tag = 2, e != null && (i.callback = e), e = Nn(t, i, r), e !== null && (
|
|
2896
|
+
i.tag = 2, e != null && (i.callback = e), e = Nn(t, i, r), e !== null && (kt(e, t, r, n), eu(e, t, r));
|
|
2897
2897
|
} };
|
|
2898
2898
|
function lm(t, e, n, r, i, o, s) {
|
|
2899
2899
|
return t = t.stateNode, typeof t.shouldComponentUpdate == "function" ? t.shouldComponentUpdate(r, o, s) : e.prototype && e.prototype.isPureReactComponent ? !Ma(n, r) || !Ma(i, o) : !0;
|
|
@@ -3221,7 +3221,7 @@ function If(t, e) {
|
|
|
3221
3221
|
if (e === null)
|
|
3222
3222
|
return !1;
|
|
3223
3223
|
for (var n = 0; n < e.length && n < t.length; n++)
|
|
3224
|
-
if (!
|
|
3224
|
+
if (!Nt(t[n], e[n]))
|
|
3225
3225
|
return !1;
|
|
3226
3226
|
return !0;
|
|
3227
3227
|
}
|
|
@@ -3242,7 +3242,7 @@ function Tf() {
|
|
|
3242
3242
|
var t = Na !== 0;
|
|
3243
3243
|
return Na = 0, t;
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3245
|
+
function Lt() {
|
|
3246
3246
|
var t = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
|
|
3247
3247
|
return xe === null ? le.memoizedState = xe = t : xe = xe.next = t, xe;
|
|
3248
3248
|
}
|
|
@@ -3297,7 +3297,7 @@ function Xd(t) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
a = a.next;
|
|
3299
3299
|
} while (a !== null && a !== o);
|
|
3300
|
-
c === null ? s = r : c.next = l,
|
|
3300
|
+
c === null ? s = r : c.next = l, Nt(r, e.memoizedState) || (Ze = !0), e.memoizedState = r, e.baseState = s, e.baseQueue = c, n.lastRenderedState = r;
|
|
3301
3301
|
}
|
|
3302
3302
|
if (t = n.interleaved, t !== null) {
|
|
3303
3303
|
i = t;
|
|
@@ -3320,14 +3320,14 @@ function ec(t) {
|
|
|
3320
3320
|
do
|
|
3321
3321
|
o = t(o, s.action), s = s.next;
|
|
3322
3322
|
while (s !== i);
|
|
3323
|
-
|
|
3323
|
+
Nt(o, e.memoizedState) || (Ze = !0), e.memoizedState = o, e.baseQueue === null && (e.baseState = o), n.lastRenderedState = o;
|
|
3324
3324
|
}
|
|
3325
3325
|
return [o, r];
|
|
3326
3326
|
}
|
|
3327
3327
|
function Kv() {
|
|
3328
3328
|
}
|
|
3329
3329
|
function Yv(t, e) {
|
|
3330
|
-
var n = le, r = At(), i = e(), o = !
|
|
3330
|
+
var n = le, r = At(), i = e(), o = !Nt(r.memoizedState, i);
|
|
3331
3331
|
if (o && (r.memoizedState = i, Ze = !0), r = r.queue, Mf(e0.bind(null, n, r, t), [t]), r.getSnapshot !== e || o || xe !== null && xe.memoizedState.tag & 1) {
|
|
3332
3332
|
if (n.flags |= 2048, Ha(9, Xv.bind(null, n, r, i, e), void 0, null), Ce === null)
|
|
3333
3333
|
throw Error(T(349));
|
|
@@ -3351,17 +3351,17 @@ function t0(t) {
|
|
|
3351
3351
|
t = t.value;
|
|
3352
3352
|
try {
|
|
3353
3353
|
var n = e();
|
|
3354
|
-
return !
|
|
3354
|
+
return !Nt(t, n);
|
|
3355
3355
|
} catch {
|
|
3356
3356
|
return !0;
|
|
3357
3357
|
}
|
|
3358
3358
|
}
|
|
3359
3359
|
function n0(t) {
|
|
3360
3360
|
var e = hn(t, 1);
|
|
3361
|
-
e !== null &&
|
|
3361
|
+
e !== null && kt(e, t, 1, -1);
|
|
3362
3362
|
}
|
|
3363
3363
|
function cm(t) {
|
|
3364
|
-
var e =
|
|
3364
|
+
var e = Lt();
|
|
3365
3365
|
return typeof t == "function" && (t = t()), e.memoizedState = e.baseState = t, t = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Da, lastRenderedState: t }, e.queue = t, t = t.dispatch = $w.bind(null, le, t), [e.memoizedState, t];
|
|
3366
3366
|
}
|
|
3367
3367
|
function Ha(t, e, n, r) {
|
|
@@ -3371,7 +3371,7 @@ function r0() {
|
|
|
3371
3371
|
return At().memoizedState;
|
|
3372
3372
|
}
|
|
3373
3373
|
function nu(t, e, n, r) {
|
|
3374
|
-
var i =
|
|
3374
|
+
var i = Lt();
|
|
3375
3375
|
le.flags |= t, i.memoizedState = Ha(1 | e, n, void 0, r === void 0 ? null : r);
|
|
3376
3376
|
}
|
|
3377
3377
|
function sd(t, e, n, r) {
|
|
@@ -3427,7 +3427,7 @@ function u0(t, e) {
|
|
|
3427
3427
|
return r !== null && e !== null && If(e, r[1]) ? r[0] : (t = t(), n.memoizedState = [t, e], t);
|
|
3428
3428
|
}
|
|
3429
3429
|
function d0(t, e, n) {
|
|
3430
|
-
return Ar & 21 ? (
|
|
3430
|
+
return Ar & 21 ? (Nt(n, e) || (n = fv(), le.lanes |= n, wr |= n, t.baseState = !0), e) : (t.baseState && (t.baseState = !1, Ze = !0), t.memoizedState = n);
|
|
3431
3431
|
}
|
|
3432
3432
|
function Uw(t, e) {
|
|
3433
3433
|
var n = Y;
|
|
@@ -3449,7 +3449,7 @@ function Bw(t, e, n) {
|
|
|
3449
3449
|
f0(e, n);
|
|
3450
3450
|
else if (n = Uv(t, e, n, r), n !== null) {
|
|
3451
3451
|
var i = $e();
|
|
3452
|
-
|
|
3452
|
+
kt(n, t, r, i), h0(n, e, r);
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
function $w(t, e, n) {
|
|
@@ -3461,7 +3461,7 @@ function $w(t, e, n) {
|
|
|
3461
3461
|
if (t.lanes === 0 && (o === null || o.lanes === 0) && (o = e.lastRenderedReducer, o !== null))
|
|
3462
3462
|
try {
|
|
3463
3463
|
var s = e.lastRenderedState, l = o(s, n);
|
|
3464
|
-
if (i.hasEagerState = !0, i.eagerState = l,
|
|
3464
|
+
if (i.hasEagerState = !0, i.eagerState = l, Nt(l, s)) {
|
|
3465
3465
|
var c = e.interleaved;
|
|
3466
3466
|
c === null ? (i.next = i, wf(e)) : (i.next = c.next, c.next = i), e.interleaved = i;
|
|
3467
3467
|
return;
|
|
@@ -3469,7 +3469,7 @@ function $w(t, e, n) {
|
|
|
3469
3469
|
} catch {
|
|
3470
3470
|
} finally {
|
|
3471
3471
|
}
|
|
3472
|
-
n = Uv(t, e, i, r), n !== null && (i = $e(),
|
|
3472
|
+
n = Uv(t, e, i, r), n !== null && (i = $e(), kt(n, t, r, i), h0(n, e, r));
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
3475
|
function p0(t) {
|
|
@@ -3488,7 +3488,7 @@ function h0(t, e, n) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
3490
|
var Pu = { readContext: St, useCallback: ke, useContext: ke, useEffect: ke, useImperativeHandle: ke, useInsertionEffect: ke, useLayoutEffect: ke, useMemo: ke, useReducer: ke, useRef: ke, useState: ke, useDebugValue: ke, useDeferredValue: ke, useTransition: ke, useMutableSource: ke, useSyncExternalStore: ke, useId: ke, unstable_isNewReconciler: !1 }, Gw = { readContext: St, useCallback: function(t, e) {
|
|
3491
|
-
return
|
|
3491
|
+
return Lt().memoizedState = [t, e === void 0 ? null : e], t;
|
|
3492
3492
|
}, useContext: St, useEffect: pm, useImperativeHandle: function(t, e, n) {
|
|
3493
3493
|
return n = n != null ? n.concat([t]) : null, nu(
|
|
3494
3494
|
4194308,
|
|
@@ -3501,22 +3501,22 @@ var Pu = { readContext: St, useCallback: ke, useContext: ke, useEffect: ke, useI
|
|
|
3501
3501
|
}, useInsertionEffect: function(t, e) {
|
|
3502
3502
|
return nu(4, 2, t, e);
|
|
3503
3503
|
}, useMemo: function(t, e) {
|
|
3504
|
-
var n =
|
|
3504
|
+
var n = Lt();
|
|
3505
3505
|
return e = e === void 0 ? null : e, t = t(), n.memoizedState = [t, e], t;
|
|
3506
3506
|
}, useReducer: function(t, e, n) {
|
|
3507
|
-
var r =
|
|
3507
|
+
var r = Lt();
|
|
3508
3508
|
return e = n !== void 0 ? n(e) : e, r.memoizedState = r.baseState = e, t = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: t, lastRenderedState: e }, r.queue = t, t = t.dispatch = Bw.bind(null, le, t), [r.memoizedState, t];
|
|
3509
3509
|
}, useRef: function(t) {
|
|
3510
|
-
var e =
|
|
3510
|
+
var e = Lt();
|
|
3511
3511
|
return t = { current: t }, e.memoizedState = t;
|
|
3512
3512
|
}, useState: cm, useDebugValue: zf, useDeferredValue: function(t) {
|
|
3513
|
-
return
|
|
3513
|
+
return Lt().memoizedState = t;
|
|
3514
3514
|
}, useTransition: function() {
|
|
3515
3515
|
var t = cm(!1), e = t[0];
|
|
3516
|
-
return t = Uw.bind(null, t[1]),
|
|
3516
|
+
return t = Uw.bind(null, t[1]), Lt().memoizedState = t, [e, t];
|
|
3517
3517
|
}, useMutableSource: function() {
|
|
3518
3518
|
}, useSyncExternalStore: function(t, e, n) {
|
|
3519
|
-
var r = le, i =
|
|
3519
|
+
var r = le, i = Lt();
|
|
3520
3520
|
if (ae) {
|
|
3521
3521
|
if (n === void 0)
|
|
3522
3522
|
throw Error(T(407));
|
|
@@ -3535,10 +3535,10 @@ var Pu = { readContext: St, useCallback: ke, useContext: ke, useEffect: ke, useI
|
|
|
3535
3535
|
t
|
|
3536
3536
|
), [t]), r.flags |= 2048, Ha(9, Xv.bind(null, r, o, n, e), void 0, null), n;
|
|
3537
3537
|
}, useId: function() {
|
|
3538
|
-
var t =
|
|
3538
|
+
var t = Lt(), e = Ce.identifierPrefix;
|
|
3539
3539
|
if (ae) {
|
|
3540
3540
|
var n = un, r = ln;
|
|
3541
|
-
n = (r & ~(1 << 32 -
|
|
3541
|
+
n = (r & ~(1 << 32 - Rt(r) - 1)).toString(32) + n, e = ":" + e + "R" + n, n = Na++, 0 < n && (e += "H" + n.toString(32)), e += ":";
|
|
3542
3542
|
} else
|
|
3543
3543
|
n = Lw++, e = ":" + e + "r" + n.toString(32) + ":";
|
|
3544
3544
|
return t.memoizedState = e;
|
|
@@ -3819,11 +3819,11 @@ function Yw(t, e, n, r, i, o, s) {
|
|
|
3819
3819
|
default:
|
|
3820
3820
|
i = 0;
|
|
3821
3821
|
}
|
|
3822
|
-
i = i & (r.suspendedLanes | s) ? 0 : i, i !== 0 && i !== o.retryLane && (o.retryLane = i, hn(t, i),
|
|
3822
|
+
i = i & (r.suspendedLanes | s) ? 0 : i, i !== 0 && i !== o.retryLane && (o.retryLane = i, hn(t, i), kt(r, t, i, -1));
|
|
3823
3823
|
}
|
|
3824
3824
|
return Hf(), r = tc(Error(T(421))), Ml(t, e, s, r);
|
|
3825
3825
|
}
|
|
3826
|
-
return i.data === "$?" ? (e.flags |= 128, e.child = t.child, e = dE.bind(null, t), i._reactRetry = e, null) : (t = o.treeContext, at = kn(i.nextSibling), st = e, ae = !0,
|
|
3826
|
+
return i.data === "$?" ? (e.flags |= 128, e.child = t.child, e = dE.bind(null, t), i._reactRetry = e, null) : (t = o.treeContext, at = kn(i.nextSibling), st = e, ae = !0, Pt = null, t !== null && (ht[mt++] = ln, ht[mt++] = un, ht[mt++] = Sr, ln = t.id, un = t.overflow, Sr = e), e = Pf(e, r.children), e.flags |= 4096, e);
|
|
3827
3827
|
}
|
|
3828
3828
|
function Sm(t, e, n) {
|
|
3829
3829
|
t.lanes |= e;
|
|
@@ -4059,7 +4059,7 @@ function Xw(t, e, n) {
|
|
|
4059
4059
|
case 1:
|
|
4060
4060
|
return Ye(e.type) && Eu(), Ne(e), null;
|
|
4061
4061
|
case 3:
|
|
4062
|
-
return r = e.stateNode, fi(), re(Ke), re(qe), Cf(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (t === null || t.child === null) && (jl(e) ? e.flags |= 4 : t === null || t.memoizedState.isDehydrated && !(e.flags & 256) || (e.flags |= 1024,
|
|
4062
|
+
return r = e.stateNode, fi(), re(Ke), re(qe), Cf(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (t === null || t.child === null) && (jl(e) ? e.flags |= 4 : t === null || t.memoizedState.isDehydrated && !(e.flags & 256) || (e.flags |= 1024, Pt !== null && (jp(Pt), Pt = null))), Sp(t, e), Ne(e), null;
|
|
4063
4063
|
case 5:
|
|
4064
4064
|
xf(e);
|
|
4065
4065
|
var i = hr(ka.current);
|
|
@@ -4263,7 +4263,7 @@ function Xw(t, e, n) {
|
|
|
4263
4263
|
ci(), !(e.flags & 128) && (e.memoizedState = null), e.flags |= 4;
|
|
4264
4264
|
Ne(e), o = !1;
|
|
4265
4265
|
} else
|
|
4266
|
-
|
|
4266
|
+
Pt !== null && (jp(Pt), Pt = null), o = !0;
|
|
4267
4267
|
if (!o)
|
|
4268
4268
|
return e.flags & 65536 ? e : null;
|
|
4269
4269
|
}
|
|
@@ -4524,7 +4524,7 @@ function Op(t, e, n) {
|
|
|
4524
4524
|
for (Op(t, e, n), t = t.sibling; t !== null; )
|
|
4525
4525
|
Op(t, e, n), t = t.sibling;
|
|
4526
4526
|
}
|
|
4527
|
-
var Me = null,
|
|
4527
|
+
var Me = null, zt = !1;
|
|
4528
4528
|
function bn(t, e, n) {
|
|
4529
4529
|
for (n = n.child; n !== null; )
|
|
4530
4530
|
j0(t, e, n), n = n.sibling;
|
|
@@ -4539,14 +4539,14 @@ function j0(t, e, n) {
|
|
|
4539
4539
|
case 5:
|
|
4540
4540
|
De || Jr(n, e);
|
|
4541
4541
|
case 6:
|
|
4542
|
-
var r = Me, i =
|
|
4543
|
-
Me = null, bn(t, e, n), Me = r,
|
|
4542
|
+
var r = Me, i = zt;
|
|
4543
|
+
Me = null, bn(t, e, n), Me = r, zt = i, Me !== null && (zt ? (t = Me, n = n.stateNode, t.nodeType === 8 ? t.parentNode.removeChild(n) : t.removeChild(n)) : Me.removeChild(n.stateNode));
|
|
4544
4544
|
break;
|
|
4545
4545
|
case 18:
|
|
4546
|
-
Me !== null && (
|
|
4546
|
+
Me !== null && (zt ? (t = Me, n = n.stateNode, t.nodeType === 8 ? Zd(t.parentNode, n) : t.nodeType === 1 && Zd(t, n), ja(t)) : Zd(Me, n.stateNode));
|
|
4547
4547
|
break;
|
|
4548
4548
|
case 4:
|
|
4549
|
-
r = Me, i =
|
|
4549
|
+
r = Me, i = zt, Me = n.stateNode.containerInfo, zt = !0, bn(t, e, n), Me = r, zt = i;
|
|
4550
4550
|
break;
|
|
4551
4551
|
case 0:
|
|
4552
4552
|
case 11:
|
|
@@ -4602,20 +4602,20 @@ function xt(t, e) {
|
|
|
4602
4602
|
for (; l !== null; ) {
|
|
4603
4603
|
switch (l.tag) {
|
|
4604
4604
|
case 5:
|
|
4605
|
-
Me = l.stateNode,
|
|
4605
|
+
Me = l.stateNode, zt = !1;
|
|
4606
4606
|
break e;
|
|
4607
4607
|
case 3:
|
|
4608
|
-
Me = l.stateNode.containerInfo,
|
|
4608
|
+
Me = l.stateNode.containerInfo, zt = !0;
|
|
4609
4609
|
break e;
|
|
4610
4610
|
case 4:
|
|
4611
|
-
Me = l.stateNode.containerInfo,
|
|
4611
|
+
Me = l.stateNode.containerInfo, zt = !0;
|
|
4612
4612
|
break e;
|
|
4613
4613
|
}
|
|
4614
4614
|
l = l.return;
|
|
4615
4615
|
}
|
|
4616
4616
|
if (Me === null)
|
|
4617
4617
|
throw Error(T(160));
|
|
4618
|
-
j0(o, s, i), Me = null,
|
|
4618
|
+
j0(o, s, i), Me = null, zt = !1;
|
|
4619
4619
|
var c = i.alternate;
|
|
4620
4620
|
c !== null && (c.return = null), i.return = null;
|
|
4621
4621
|
} catch (a) {
|
|
@@ -4633,7 +4633,7 @@ function T0(t, e) {
|
|
|
4633
4633
|
case 11:
|
|
4634
4634
|
case 14:
|
|
4635
4635
|
case 15:
|
|
4636
|
-
if (xt(e, t),
|
|
4636
|
+
if (xt(e, t), Ft(t), r & 4) {
|
|
4637
4637
|
try {
|
|
4638
4638
|
ya(3, t, t.return), ld(3, t);
|
|
4639
4639
|
} catch (v) {
|
|
@@ -4647,10 +4647,10 @@ function T0(t, e) {
|
|
|
4647
4647
|
}
|
|
4648
4648
|
break;
|
|
4649
4649
|
case 1:
|
|
4650
|
-
xt(e, t),
|
|
4650
|
+
xt(e, t), Ft(t), r & 512 && n !== null && Jr(n, n.return);
|
|
4651
4651
|
break;
|
|
4652
4652
|
case 5:
|
|
4653
|
-
if (xt(e, t),
|
|
4653
|
+
if (xt(e, t), Ft(t), r & 512 && n !== null && Jr(n, n.return), t.flags & 32) {
|
|
4654
4654
|
var i = t.stateNode;
|
|
4655
4655
|
try {
|
|
4656
4656
|
Oa(i, "");
|
|
@@ -4693,7 +4693,7 @@ function T0(t, e) {
|
|
|
4693
4693
|
}
|
|
4694
4694
|
break;
|
|
4695
4695
|
case 6:
|
|
4696
|
-
if (xt(e, t),
|
|
4696
|
+
if (xt(e, t), Ft(t), r & 4) {
|
|
4697
4697
|
if (t.stateNode === null)
|
|
4698
4698
|
throw Error(T(162));
|
|
4699
4699
|
i = t.stateNode, o = t.memoizedProps;
|
|
@@ -4705,7 +4705,7 @@ function T0(t, e) {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
break;
|
|
4707
4707
|
case 3:
|
|
4708
|
-
if (xt(e, t),
|
|
4708
|
+
if (xt(e, t), Ft(t), r & 4 && n !== null && n.memoizedState.isDehydrated)
|
|
4709
4709
|
try {
|
|
4710
4710
|
ja(e.containerInfo);
|
|
4711
4711
|
} catch (v) {
|
|
@@ -4713,13 +4713,13 @@ function T0(t, e) {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
break;
|
|
4715
4715
|
case 4:
|
|
4716
|
-
xt(e, t),
|
|
4716
|
+
xt(e, t), Ft(t);
|
|
4717
4717
|
break;
|
|
4718
4718
|
case 13:
|
|
4719
|
-
xt(e, t),
|
|
4719
|
+
xt(e, t), Ft(t), i = t.child, i.flags & 8192 && (o = i.memoizedState !== null, i.stateNode.isHidden = o, !o || i.alternate !== null && i.alternate.memoizedState !== null || (kf = me())), r & 4 && Em(t);
|
|
4720
4720
|
break;
|
|
4721
4721
|
case 22:
|
|
4722
|
-
if (u = n !== null && n.memoizedState !== null, t.mode & 1 ? (De = (a = De) || u, xt(e, t), De = a) : xt(e, t),
|
|
4722
|
+
if (u = n !== null && n.memoizedState !== null, t.mode & 1 ? (De = (a = De) || u, xt(e, t), De = a) : xt(e, t), Ft(t), r & 8192) {
|
|
4723
4723
|
if (a = t.memoizedState !== null, (t.stateNode.isHidden = a) && !u && t.mode & 1)
|
|
4724
4724
|
for (k = t, u = t.child; u !== null; ) {
|
|
4725
4725
|
for (p = k = u; k !== null; ) {
|
|
@@ -4789,7 +4789,7 @@ function T0(t, e) {
|
|
|
4789
4789
|
}
|
|
4790
4790
|
break;
|
|
4791
4791
|
case 19:
|
|
4792
|
-
xt(e, t),
|
|
4792
|
+
xt(e, t), Ft(t), r & 4 && Em(t);
|
|
4793
4793
|
break;
|
|
4794
4794
|
case 21:
|
|
4795
4795
|
break;
|
|
@@ -4797,10 +4797,10 @@ function T0(t, e) {
|
|
|
4797
4797
|
xt(
|
|
4798
4798
|
e,
|
|
4799
4799
|
t
|
|
4800
|
-
),
|
|
4800
|
+
), Ft(t);
|
|
4801
4801
|
}
|
|
4802
4802
|
}
|
|
4803
|
-
function
|
|
4803
|
+
function Ft(t) {
|
|
4804
4804
|
var e = t.flags;
|
|
4805
4805
|
if (e & 2) {
|
|
4806
4806
|
try {
|
|
@@ -5037,7 +5037,7 @@ function $e() {
|
|
|
5037
5037
|
function Hn(t) {
|
|
5038
5038
|
return t.mode & 1 ? Q & 2 && _e !== 0 ? _e & -_e : Fw.transition !== null ? (ou === 0 && (ou = fv()), ou) : (t = Y, t !== 0 || (t = window.event, t = t === void 0 ? 16 : Sv(t.type)), t) : 1;
|
|
5039
5039
|
}
|
|
5040
|
-
function
|
|
5040
|
+
function kt(t, e, n, r) {
|
|
5041
5041
|
if (50 < va)
|
|
5042
5042
|
throw va = 0, Cp = null, Error(T(185));
|
|
5043
5043
|
Ua(t, n, r), (!(Q & 2) || t !== Ce) && (t === Ce && (!(Q & 2) && (ud |= n), Ee === 4 && jn(t, _e)), Je(t, r), n === 1 && Q === 0 && !(e.mode & 1) && (mi = me() + 500, od && $n()));
|
|
@@ -5134,7 +5134,7 @@ function z0(t, e) {
|
|
|
5134
5134
|
if (jn(t, r), (r & 4194240) === r)
|
|
5135
5135
|
break;
|
|
5136
5136
|
for (e = t.eventTimes, i = -1; 0 < r; ) {
|
|
5137
|
-
var s = 31 -
|
|
5137
|
+
var s = 31 - Rt(r);
|
|
5138
5138
|
o = 1 << s, s = e[s], s > i && (i = s), r &= ~o;
|
|
5139
5139
|
}
|
|
5140
5140
|
if (r = i, r = me() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * iE(r / 1960)) - r, 10 < r) {
|
|
@@ -5169,7 +5169,7 @@ function oE(t) {
|
|
|
5169
5169
|
var i = n[r], o = i.getSnapshot;
|
|
5170
5170
|
i = i.value;
|
|
5171
5171
|
try {
|
|
5172
|
-
if (!
|
|
5172
|
+
if (!Nt(o(), i))
|
|
5173
5173
|
return !1;
|
|
5174
5174
|
} catch {
|
|
5175
5175
|
return !1;
|
|
@@ -5193,7 +5193,7 @@ function oE(t) {
|
|
|
5193
5193
|
}
|
|
5194
5194
|
function jn(t, e) {
|
|
5195
5195
|
for (e &= ~Rf, e &= ~ud, t.suspendedLanes |= e, t.pingedLanes &= ~e, t = t.expirationTimes; 0 < e; ) {
|
|
5196
|
-
var n = 31 -
|
|
5196
|
+
var n = 31 - Rt(e), r = 1 << n;
|
|
5197
5197
|
t[n] = -1, e &= ~r;
|
|
5198
5198
|
}
|
|
5199
5199
|
}
|
|
@@ -5702,7 +5702,7 @@ D0 = function(t, e, n) {
|
|
|
5702
5702
|
i = hi(Error(T(424)), e), e = bm(t, e, r, n, i);
|
|
5703
5703
|
break e;
|
|
5704
5704
|
} else
|
|
5705
|
-
for (at = kn(e.stateNode.containerInfo.firstChild), st = e, ae = !0,
|
|
5705
|
+
for (at = kn(e.stateNode.containerInfo.firstChild), st = e, ae = !0, Pt = null, n = Wv(e, null, r, n), e.child = n; n; )
|
|
5706
5706
|
n.flags = n.flags & -3 | 4096, n = n.sibling;
|
|
5707
5707
|
else {
|
|
5708
5708
|
if (ci(), r === i) {
|
|
@@ -5733,7 +5733,7 @@ D0 = function(t, e, n) {
|
|
|
5733
5733
|
case 10:
|
|
5734
5734
|
e: {
|
|
5735
5735
|
if (r = e.type._context, i = e.pendingProps, o = e.memoizedProps, s = i.value, ee(Iu, r._currentValue), r._currentValue = s, o !== null)
|
|
5736
|
-
if (
|
|
5736
|
+
if (Nt(o.value, s)) {
|
|
5737
5737
|
if (o.children === i.children && !Ke.current) {
|
|
5738
5738
|
e = mn(t, e, n);
|
|
5739
5739
|
break e;
|
|
@@ -5934,7 +5934,7 @@ function q0(t, e, n, r, i, o, s, l, c) {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
function cd(t, e, n, r) {
|
|
5936
5936
|
var i = e.current, o = $e(), s = Hn(i);
|
|
5937
|
-
return n = V0(n), e.context === null ? e.context = n : e.pendingContext = n, e = cn(o, s), e.payload = { element: t }, r = r === void 0 ? null : r, r !== null && (e.callback = r), t = Nn(i, e, s), t !== null && (
|
|
5937
|
+
return n = V0(n), e.context === null ? e.context = n : e.pendingContext = n, e = cn(o, s), e.payload = { element: t }, r = r === void 0 ? null : r, r !== null && (e.callback = r), t = Nn(i, e, s), t !== null && (kt(t, i, s, o), eu(t, i, s)), s;
|
|
5938
5938
|
}
|
|
5939
5939
|
function Du(t) {
|
|
5940
5940
|
if (t = t.current, !t.child)
|
|
@@ -6056,7 +6056,7 @@ mv = function(t) {
|
|
|
6056
6056
|
var r = hn(t, 1);
|
|
6057
6057
|
if (r !== null) {
|
|
6058
6058
|
var i = $e();
|
|
6059
|
-
|
|
6059
|
+
kt(r, t, 1, i);
|
|
6060
6060
|
}
|
|
6061
6061
|
}), Ff(t, 1);
|
|
6062
6062
|
}
|
|
@@ -6066,7 +6066,7 @@ uf = function(t) {
|
|
|
6066
6066
|
var e = hn(t, 134217728);
|
|
6067
6067
|
if (e !== null) {
|
|
6068
6068
|
var n = $e();
|
|
6069
|
-
|
|
6069
|
+
kt(e, t, 134217728, n);
|
|
6070
6070
|
}
|
|
6071
6071
|
Ff(t, 134217728);
|
|
6072
6072
|
}
|
|
@@ -6076,7 +6076,7 @@ yv = function(t) {
|
|
|
6076
6076
|
var e = Hn(t), n = hn(t, e);
|
|
6077
6077
|
if (n !== null) {
|
|
6078
6078
|
var r = $e();
|
|
6079
|
-
|
|
6079
|
+
kt(n, t, e, r);
|
|
6080
6080
|
}
|
|
6081
6081
|
Ff(t, e);
|
|
6082
6082
|
}
|
|
@@ -8098,7 +8098,7 @@ const Lm = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
|
|
|
8098
8098
|
const n = globalThis.document.createElement("link");
|
|
8099
8099
|
n.rel = "stylesheet", n.type = "text/css", n.href = Lm, globalThis.document.head.appendChild(n);
|
|
8100
8100
|
}, [t]);
|
|
8101
|
-
}, CO = "1.
|
|
8101
|
+
}, CO = "1.48.0", IO = "https://react.seam.co", jO = ({
|
|
8102
8102
|
disabled: t = !1,
|
|
8103
8103
|
unminified: e = !1
|
|
8104
8104
|
}) => {
|
|
@@ -8338,19 +8338,19 @@ class An extends Mr {
|
|
|
8338
8338
|
super("Zone is an abstract class");
|
|
8339
8339
|
}
|
|
8340
8340
|
}
|
|
8341
|
-
const _ = "numeric",
|
|
8341
|
+
const _ = "numeric", Dt = "short", lt = "long", Lu = {
|
|
8342
8342
|
year: _,
|
|
8343
8343
|
month: _,
|
|
8344
8344
|
day: _
|
|
8345
8345
|
}, cb = {
|
|
8346
8346
|
year: _,
|
|
8347
|
-
month:
|
|
8347
|
+
month: Dt,
|
|
8348
8348
|
day: _
|
|
8349
8349
|
}, UO = {
|
|
8350
8350
|
year: _,
|
|
8351
|
-
month:
|
|
8351
|
+
month: Dt,
|
|
8352
8352
|
day: _,
|
|
8353
|
-
weekday:
|
|
8353
|
+
weekday: Dt
|
|
8354
8354
|
}, pb = {
|
|
8355
8355
|
year: _,
|
|
8356
8356
|
month: lt,
|
|
@@ -8371,7 +8371,7 @@ const _ = "numeric", Nt = "short", lt = "long", Lu = {
|
|
|
8371
8371
|
hour: _,
|
|
8372
8372
|
minute: _,
|
|
8373
8373
|
second: _,
|
|
8374
|
-
timeZoneName:
|
|
8374
|
+
timeZoneName: Dt
|
|
8375
8375
|
}, gb = {
|
|
8376
8376
|
hour: _,
|
|
8377
8377
|
minute: _,
|
|
@@ -8391,7 +8391,7 @@ const _ = "numeric", Nt = "short", lt = "long", Lu = {
|
|
|
8391
8391
|
minute: _,
|
|
8392
8392
|
second: _,
|
|
8393
8393
|
hourCycle: "h23",
|
|
8394
|
-
timeZoneName:
|
|
8394
|
+
timeZoneName: Dt
|
|
8395
8395
|
}, Ab = {
|
|
8396
8396
|
hour: _,
|
|
8397
8397
|
minute: _,
|
|
@@ -8413,22 +8413,22 @@ const _ = "numeric", Nt = "short", lt = "long", Lu = {
|
|
|
8413
8413
|
second: _
|
|
8414
8414
|
}, Ob = {
|
|
8415
8415
|
year: _,
|
|
8416
|
-
month:
|
|
8416
|
+
month: Dt,
|
|
8417
8417
|
day: _,
|
|
8418
8418
|
hour: _,
|
|
8419
8419
|
minute: _
|
|
8420
8420
|
}, xb = {
|
|
8421
8421
|
year: _,
|
|
8422
|
-
month:
|
|
8422
|
+
month: Dt,
|
|
8423
8423
|
day: _,
|
|
8424
8424
|
hour: _,
|
|
8425
8425
|
minute: _,
|
|
8426
8426
|
second: _
|
|
8427
8427
|
}, BO = {
|
|
8428
8428
|
year: _,
|
|
8429
|
-
month:
|
|
8429
|
+
month: Dt,
|
|
8430
8430
|
day: _,
|
|
8431
|
-
weekday:
|
|
8431
|
+
weekday: Dt,
|
|
8432
8432
|
hour: _,
|
|
8433
8433
|
minute: _
|
|
8434
8434
|
}, Cb = {
|
|
@@ -8437,7 +8437,7 @@ const _ = "numeric", Nt = "short", lt = "long", Lu = {
|
|
|
8437
8437
|
day: _,
|
|
8438
8438
|
hour: _,
|
|
8439
8439
|
minute: _,
|
|
8440
|
-
timeZoneName:
|
|
8440
|
+
timeZoneName: Dt
|
|
8441
8441
|
}, Ib = {
|
|
8442
8442
|
year: _,
|
|
8443
8443
|
month: lt,
|
|
@@ -8445,7 +8445,7 @@ const _ = "numeric", Nt = "short", lt = "long", Lu = {
|
|
|
8445
8445
|
hour: _,
|
|
8446
8446
|
minute: _,
|
|
8447
8447
|
second: _,
|
|
8448
|
-
timeZoneName:
|
|
8448
|
+
timeZoneName: Dt
|
|
8449
8449
|
}, jb = {
|
|
8450
8450
|
year: _,
|
|
8451
8451
|
month: lt,
|
|
@@ -9687,7 +9687,7 @@ class He {
|
|
|
9687
9687
|
return Jm(o, i(l));
|
|
9688
9688
|
}
|
|
9689
9689
|
}
|
|
9690
|
-
class
|
|
9690
|
+
class _t {
|
|
9691
9691
|
constructor(e, n) {
|
|
9692
9692
|
this.reason = e, this.explanation = n;
|
|
9693
9693
|
}
|
|
@@ -10117,7 +10117,7 @@ let ze = class je {
|
|
|
10117
10117
|
static invalid(e, n = null) {
|
|
10118
10118
|
if (!e)
|
|
10119
10119
|
throw new yt("need to specify a reason the Duration is invalid");
|
|
10120
|
-
const r = e instanceof
|
|
10120
|
+
const r = e instanceof _t ? e : new _t(e, n);
|
|
10121
10121
|
if (ve.throwOnInvalid)
|
|
10122
10122
|
throw new LO(r);
|
|
10123
10123
|
return new je({ invalid: r });
|
|
@@ -10599,7 +10599,7 @@ class ce {
|
|
|
10599
10599
|
static invalid(e, n = null) {
|
|
10600
10600
|
if (!e)
|
|
10601
10601
|
throw new yt("need to specify a reason the Interval is invalid");
|
|
10602
|
-
const r = e instanceof
|
|
10602
|
+
const r = e instanceof _t ? e : new _t(e, n);
|
|
10603
10603
|
if (ve.throwOnInvalid)
|
|
10604
10604
|
throw new FO(r);
|
|
10605
10605
|
return new ce({ invalid: r });
|
|
@@ -11554,7 +11554,7 @@ function Xb(t, e) {
|
|
|
11554
11554
|
}
|
|
11555
11555
|
const e1 = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], t1 = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
|
|
11556
11556
|
function vt(t, e) {
|
|
11557
|
-
return new
|
|
11557
|
+
return new _t(
|
|
11558
11558
|
"unit out of range",
|
|
11559
11559
|
`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
|
|
11560
11560
|
);
|
|
@@ -11610,7 +11610,7 @@ function a1(t) {
|
|
|
11610
11610
|
}
|
|
11611
11611
|
const cc = "Invalid DateTime", sy = 864e13;
|
|
11612
11612
|
function Fl(t) {
|
|
11613
|
-
return new
|
|
11613
|
+
return new _t("unsupported zone", `the zone "${t.name}" is not supported`);
|
|
11614
11614
|
}
|
|
11615
11615
|
function pc(t) {
|
|
11616
11616
|
return t.weekData === null && (t.weekData = Hp(t.c)), t.weekData;
|
|
@@ -11682,7 +11682,7 @@ function Zo(t, e, n, r, i, o) {
|
|
|
11682
11682
|
return s ? a : a.setZone(l);
|
|
11683
11683
|
} else
|
|
11684
11684
|
return D.invalid(
|
|
11685
|
-
new
|
|
11685
|
+
new _t("unparsable", `the input "${i}" can't be parsed as ${r}`)
|
|
11686
11686
|
);
|
|
11687
11687
|
}
|
|
11688
11688
|
function Ul(t, e, n = !0) {
|
|
@@ -11797,7 +11797,7 @@ class D {
|
|
|
11797
11797
|
*/
|
|
11798
11798
|
constructor(e) {
|
|
11799
11799
|
const n = e.zone || ve.defaultZone;
|
|
11800
|
-
let r = e.invalid || (Number.isNaN(e.ts) ? new
|
|
11800
|
+
let r = e.invalid || (Number.isNaN(e.ts) ? new _t("invalid input") : null) || (n.isValid ? null : Fl(n));
|
|
11801
11801
|
this.ts = $(e.ts) ? ve.now() : e.ts;
|
|
11802
11802
|
let i = null, o = null;
|
|
11803
11803
|
if (!r)
|
|
@@ -11805,7 +11805,7 @@ class D {
|
|
|
11805
11805
|
[i, o] = [e.old.c, e.old.o];
|
|
11806
11806
|
else {
|
|
11807
11807
|
const l = n.offset(this.ts);
|
|
11808
|
-
i = Ll(this.ts, l), r = Number.isNaN(i.year) ? new
|
|
11808
|
+
i = Ll(this.ts, l), r = Number.isNaN(i.year) ? new _t("invalid input") : null, i = r ? null : i, o = r ? null : l;
|
|
11809
11809
|
}
|
|
11810
11810
|
this._zone = n, this.loc = e.loc || ne.create(), this.invalid = r, this.weekData = null, this.c = i, this.o = o, this.isLuxonDateTime = !0;
|
|
11811
11811
|
}
|
|
@@ -12112,7 +12112,7 @@ class D {
|
|
|
12112
12112
|
static invalid(e, n = null) {
|
|
12113
12113
|
if (!e)
|
|
12114
12114
|
throw new yt("need to specify a reason the DateTime is invalid");
|
|
12115
|
-
const r = e instanceof
|
|
12115
|
+
const r = e instanceof _t ? e : new _t(e, n);
|
|
12116
12116
|
if (ve.throwOnInvalid)
|
|
12117
12117
|
throw new qO(r);
|
|
12118
12118
|
return new D({ invalid: r });
|
|
@@ -21799,7 +21799,7 @@ function Ij(t) {
|
|
|
21799
21799
|
return e.join("");
|
|
21800
21800
|
}
|
|
21801
21801
|
cl.decode = Ij;
|
|
21802
|
-
var
|
|
21802
|
+
var Vt = {}, jj = H && H.__extends || function() {
|
|
21803
21803
|
var t = function(e, n) {
|
|
21804
21804
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
21805
21805
|
r.__proto__ = i;
|
|
@@ -21816,7 +21816,7 @@ var Ht = {}, jj = H && H.__extends || function() {
|
|
|
21816
21816
|
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
21817
21817
|
};
|
|
21818
21818
|
}();
|
|
21819
|
-
Object.defineProperty(
|
|
21819
|
+
Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
21820
21820
|
var ge = 256, mh = (
|
|
21821
21821
|
/** @class */
|
|
21822
21822
|
function() {
|
|
@@ -21866,16 +21866,16 @@ var ge = 256, mh = (
|
|
|
21866
21866
|
}, t;
|
|
21867
21867
|
}()
|
|
21868
21868
|
);
|
|
21869
|
-
|
|
21869
|
+
Vt.Coder = mh;
|
|
21870
21870
|
var pl = new mh();
|
|
21871
21871
|
function Tj(t) {
|
|
21872
21872
|
return pl.encode(t);
|
|
21873
21873
|
}
|
|
21874
|
-
|
|
21874
|
+
Vt.encode = Tj;
|
|
21875
21875
|
function Mj(t) {
|
|
21876
21876
|
return pl.decode(t);
|
|
21877
21877
|
}
|
|
21878
|
-
|
|
21878
|
+
Vt.decode = Mj;
|
|
21879
21879
|
var U1 = (
|
|
21880
21880
|
/** @class */
|
|
21881
21881
|
function(t) {
|
|
@@ -21892,23 +21892,23 @@ var U1 = (
|
|
|
21892
21892
|
}, e;
|
|
21893
21893
|
}(mh)
|
|
21894
21894
|
);
|
|
21895
|
-
|
|
21895
|
+
Vt.URLSafeCoder = U1;
|
|
21896
21896
|
var B1 = new U1();
|
|
21897
21897
|
function zj(t) {
|
|
21898
21898
|
return B1.encode(t);
|
|
21899
21899
|
}
|
|
21900
|
-
|
|
21900
|
+
Vt.encodeURLSafe = zj;
|
|
21901
21901
|
function Pj(t) {
|
|
21902
21902
|
return B1.decode(t);
|
|
21903
21903
|
}
|
|
21904
|
-
|
|
21905
|
-
|
|
21904
|
+
Vt.decodeURLSafe = Pj;
|
|
21905
|
+
Vt.encodedLength = function(t) {
|
|
21906
21906
|
return pl.encodedLength(t);
|
|
21907
21907
|
};
|
|
21908
|
-
|
|
21908
|
+
Vt.maxDecodedLength = function(t) {
|
|
21909
21909
|
return pl.maxDecodedLength(t);
|
|
21910
21910
|
};
|
|
21911
|
-
|
|
21911
|
+
Vt.decodedLength = function(t) {
|
|
21912
21912
|
return pl.decodedLength(t);
|
|
21913
21913
|
};
|
|
21914
21914
|
var $1 = { exports: {} };
|
|
@@ -22150,7 +22150,7 @@ var _j = $1.exports;
|
|
|
22150
22150
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.Webhook = t.WebhookVerificationError = t.Svix = void 0;
|
|
22151
22151
|
const r = z1;
|
|
22152
22152
|
n(lh, t), n(Fe, t);
|
|
22153
|
-
const i = cl, o =
|
|
22153
|
+
const i = cl, o = Vt, s = _j, l = 5 * 60, c = "0.54.2";
|
|
22154
22154
|
class a {
|
|
22155
22155
|
pre(A) {
|
|
22156
22156
|
return A.setHeaderParam("User-Agent", `svix-libs/${c}/javascript`), Promise.resolve(A);
|
|
@@ -22471,7 +22471,7 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22471
22471
|
for (var r of Gu(t))
|
|
22472
22472
|
e.indexOf(r) < 0 && Q1.call(t, r) && (n[r] = t[r]);
|
|
22473
22473
|
return n;
|
|
22474
|
-
},
|
|
22474
|
+
}, Mt = (t, e, n) => new Promise((r, i) => {
|
|
22475
22475
|
var o = (c) => {
|
|
22476
22476
|
try {
|
|
22477
22477
|
l(n.next(c));
|
|
@@ -22671,14 +22671,14 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22671
22671
|
url: "/access_codes/get",
|
|
22672
22672
|
params: t
|
|
22673
22673
|
}),
|
|
22674
|
-
create: (t) =>
|
|
22674
|
+
create: (t) => Mt(this, null, function* () {
|
|
22675
22675
|
return this.makeRequestAndFormat("access_code", {
|
|
22676
22676
|
url: "/access_codes/create",
|
|
22677
22677
|
method: "POST",
|
|
22678
22678
|
data: t
|
|
22679
22679
|
});
|
|
22680
22680
|
}),
|
|
22681
|
-
createMultiple: (t) =>
|
|
22681
|
+
createMultiple: (t) => Mt(this, null, function* () {
|
|
22682
22682
|
return this.makeRequestAndFormat(
|
|
22683
22683
|
"access_codes",
|
|
22684
22684
|
{
|
|
@@ -22689,7 +22689,7 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22689
22689
|
);
|
|
22690
22690
|
}),
|
|
22691
22691
|
// We can't narrow the return type here like we do with create because we're given partial input
|
|
22692
|
-
update: (t, e) =>
|
|
22692
|
+
update: (t, e) => Mt(this, null, function* () {
|
|
22693
22693
|
const n = yield this.makeRequestAndFormat(
|
|
22694
22694
|
"action_attempt",
|
|
22695
22695
|
{
|
|
@@ -22882,19 +22882,21 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22882
22882
|
data: t
|
|
22883
22883
|
}
|
|
22884
22884
|
),
|
|
22885
|
-
delete: (t) => this
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22885
|
+
delete: (t) => Mt(this, null, function* () {
|
|
22886
|
+
yield this.makeRequest({
|
|
22887
|
+
url: "/thermostats/climate_setting_schedules/delete",
|
|
22888
|
+
method: "DELETE",
|
|
22889
|
+
params: t
|
|
22890
|
+
});
|
|
22889
22891
|
})
|
|
22890
22892
|
}
|
|
22891
22893
|
};
|
|
22892
22894
|
}
|
|
22893
22895
|
awaitActionAttempt(t) {
|
|
22894
|
-
return
|
|
22896
|
+
return Mt(this, null, function* () {
|
|
22895
22897
|
let e = t;
|
|
22896
22898
|
if (e.status === "pending" && (yield QC(
|
|
22897
|
-
() =>
|
|
22899
|
+
() => Mt(this, null, function* () {
|
|
22898
22900
|
if (e = yield this.actionAttempts.get(
|
|
22899
22901
|
e.action_attempt_id
|
|
22900
22902
|
), e.status === "pending")
|
|
@@ -22912,19 +22914,19 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22912
22914
|
});
|
|
22913
22915
|
}
|
|
22914
22916
|
makeRequestAndFormat(t, e) {
|
|
22915
|
-
return
|
|
22917
|
+
return Mt(this, null, function* () {
|
|
22916
22918
|
return (yield this.makeRequest(e))[t];
|
|
22917
22919
|
});
|
|
22918
22920
|
}
|
|
22919
22921
|
createActionAttemptAndWait(t) {
|
|
22920
|
-
return
|
|
22922
|
+
return Mt(this, null, function* () {
|
|
22921
22923
|
const e = yield this.makeRequestAndFormat("action_attempt", t), n = yield this.awaitActionAttempt(e);
|
|
22922
22924
|
return Qu(on({}, n.result), {
|
|
22923
22925
|
actionAttempt: n
|
|
22924
22926
|
});
|
|
22925
22927
|
});
|
|
22926
22928
|
}
|
|
22927
|
-
}, Lj = "8.6.
|
|
22929
|
+
}, Lj = "8.6.3", gg = (t) => {
|
|
22928
22930
|
var e, n, r, i, o, s, l, c, a, u, p, d, h, m;
|
|
22929
22931
|
const v = typeof t == "string" ? { apiKey: t } : t ?? {};
|
|
22930
22932
|
return {
|
|
@@ -22953,12 +22955,12 @@ var Rj = Object.defineProperty, kj = Object.defineProperties, Nj = Object.getOwn
|
|
|
22953
22955
|
});
|
|
22954
22956
|
}
|
|
22955
22957
|
makeRequest(t) {
|
|
22956
|
-
return
|
|
22958
|
+
return Mt(this, null, function* () {
|
|
22957
22959
|
return vg(this.client, t);
|
|
22958
22960
|
});
|
|
22959
22961
|
}
|
|
22960
22962
|
static getClientSessionToken(t) {
|
|
22961
|
-
return
|
|
22963
|
+
return Mt(this, null, function* () {
|
|
22962
22964
|
const { apiKey: e, endpoint: n, axiosOptions: r } = gg(t);
|
|
22963
22965
|
if (!t.userIdentifierKey)
|
|
22964
22966
|
throw new Error("userIdentifierKey is required");
|
|
@@ -22990,7 +22992,7 @@ Use something with sufficient entropy known only to the owner of the client sess
|
|
|
22990
22992
|
});
|
|
22991
22993
|
}
|
|
22992
22994
|
}, Uj = (t) => t.startsWith("seam_at") || /** Exclude JWT tokens as well */
|
|
22993
|
-
t.startsWith("ey"), vg = (t, e) =>
|
|
22995
|
+
t.startsWith("ey"), vg = (t, e) => Mt(void 0, null, function* () {
|
|
22994
22996
|
var n;
|
|
22995
22997
|
try {
|
|
22996
22998
|
return (yield t.request(e)).data;
|
|
@@ -23053,44 +23055,44 @@ t.startsWith("ey"), vg = (t, e) => Lt(void 0, null, function* () {
|
|
|
23053
23055
|
"ttlock_lock",
|
|
23054
23056
|
"igloohome_lock",
|
|
23055
23057
|
"hubitat_lock"
|
|
23056
|
-
], fl = (t) => Gj.includes(t.device_type);
|
|
23058
|
+
], Qj = ["nest_thermostat", "ecobee_thermostat"], fl = (t) => Gj.includes(t.device_type), Wj = (t) => Qj.includes(t.device_type);
|
|
23057
23059
|
let Bl;
|
|
23058
|
-
const
|
|
23059
|
-
function
|
|
23060
|
+
const Zj = new Uint8Array(16);
|
|
23061
|
+
function Kj() {
|
|
23060
23062
|
if (!Bl && (Bl = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Bl))
|
|
23061
23063
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
23062
|
-
return Bl(
|
|
23064
|
+
return Bl(Zj);
|
|
23063
23065
|
}
|
|
23064
23066
|
const Te = [];
|
|
23065
23067
|
for (let t = 0; t < 256; ++t)
|
|
23066
23068
|
Te.push((t + 256).toString(16).slice(1));
|
|
23067
|
-
function
|
|
23069
|
+
function Yj(t, e = 0) {
|
|
23068
23070
|
return (Te[t[e + 0]] + Te[t[e + 1]] + Te[t[e + 2]] + Te[t[e + 3]] + "-" + Te[t[e + 4]] + Te[t[e + 5]] + "-" + Te[t[e + 6]] + Te[t[e + 7]] + "-" + Te[t[e + 8]] + Te[t[e + 9]] + "-" + Te[t[e + 10]] + Te[t[e + 11]] + Te[t[e + 12]] + Te[t[e + 13]] + Te[t[e + 14]] + Te[t[e + 15]]).toLowerCase();
|
|
23069
23071
|
}
|
|
23070
|
-
const
|
|
23071
|
-
randomUUID:
|
|
23072
|
+
const Jj = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), bg = {
|
|
23073
|
+
randomUUID: Jj
|
|
23072
23074
|
};
|
|
23073
|
-
function
|
|
23075
|
+
function Xj(t, e, n) {
|
|
23074
23076
|
if (bg.randomUUID && !e && !t)
|
|
23075
23077
|
return bg.randomUUID();
|
|
23076
23078
|
t = t || {};
|
|
23077
|
-
const r = t.random || (t.rng ||
|
|
23079
|
+
const r = t.random || (t.rng || Kj)();
|
|
23078
23080
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
23079
23081
|
n = n || 0;
|
|
23080
23082
|
for (let i = 0; i < 16; ++i)
|
|
23081
23083
|
e[n + i] = r[i];
|
|
23082
23084
|
return e;
|
|
23083
23085
|
}
|
|
23084
|
-
return
|
|
23086
|
+
return Yj(r);
|
|
23085
23087
|
}
|
|
23086
|
-
function
|
|
23088
|
+
function qt() {
|
|
23087
23089
|
const {
|
|
23088
23090
|
client: t,
|
|
23089
23091
|
clientOptions: e,
|
|
23090
23092
|
publishableKey: n,
|
|
23091
23093
|
clientSessionToken: r,
|
|
23092
23094
|
...i
|
|
23093
|
-
} = PO(), o =
|
|
23095
|
+
} = PO(), o = eT(
|
|
23094
23096
|
r != null ? "" : i.userIdentifierKey
|
|
23095
23097
|
), { isLoading: s, isError: l, error: c, data: a } = Tr({
|
|
23096
23098
|
queryKey: [
|
|
@@ -23145,7 +23147,7 @@ class hl extends Error {
|
|
|
23145
23147
|
), this.name = this.constructor.name, Error.captureStackTrace(this, this.constructor);
|
|
23146
23148
|
}
|
|
23147
23149
|
}
|
|
23148
|
-
function
|
|
23150
|
+
function eT(t) {
|
|
23149
23151
|
var n, r;
|
|
23150
23152
|
if (P.useEffect(() => {
|
|
23151
23153
|
t == null && console.warn(`Using an automatically generated fingerprint for the SeamProvider userIdentifierKey!
|
|
@@ -23153,11 +23155,11 @@ The user interface will show warnings when using a fingerprint.
|
|
|
23153
23155
|
This is not recommended because the client session is now bound to this machine and is effectively ephemeral.`);
|
|
23154
23156
|
}, [t]), t != null)
|
|
23155
23157
|
return t;
|
|
23156
|
-
const e = ((n = globalThis == null ? void 0 : globalThis.localStorage) == null ? void 0 : n.getItem("seam_user_fingerprint")) ?? `fingerprint_${
|
|
23158
|
+
const e = ((n = globalThis == null ? void 0 : globalThis.localStorage) == null ? void 0 : n.getItem("seam_user_fingerprint")) ?? `fingerprint_${Xj()}`;
|
|
23157
23159
|
return (r = globalThis == null ? void 0 : globalThis.localStorage) == null || r.setItem("seam_user_fingerprint", e), e;
|
|
23158
23160
|
}
|
|
23159
23161
|
function W1(t) {
|
|
23160
|
-
const e = typeof t == "string" ? { access_code_id: t } : t, { client: n } =
|
|
23162
|
+
const e = typeof t == "string" ? { access_code_id: t } : t, { client: n } = qt(), { data: r, ...i } = Tr({
|
|
23161
23163
|
enabled: n != null,
|
|
23162
23164
|
queryKey: ["access_codes", "get", e],
|
|
23163
23165
|
queryFn: async () => n == null ? null : await n.accessCodes.get(e)
|
|
@@ -23165,7 +23167,7 @@ function W1(t) {
|
|
|
23165
23167
|
return { ...i, accessCode: r };
|
|
23166
23168
|
}
|
|
23167
23169
|
function Z1() {
|
|
23168
|
-
const { client: t } =
|
|
23170
|
+
const { client: t } = qt(), e = jr();
|
|
23169
23171
|
return Wa({
|
|
23170
23172
|
mutationFn: async (n) => {
|
|
23171
23173
|
if (t === null)
|
|
@@ -23182,7 +23184,7 @@ function Z1() {
|
|
|
23182
23184
|
});
|
|
23183
23185
|
}
|
|
23184
23186
|
function ml(t) {
|
|
23185
|
-
const e = typeof t == "string" ? { device_id: t } : t, { client: n } =
|
|
23187
|
+
const e = typeof t == "string" ? { device_id: t } : t, { client: n } = qt(), { data: r, ...i } = Tr({
|
|
23186
23188
|
enabled: n != null,
|
|
23187
23189
|
queryKey: ["devices", "get", e],
|
|
23188
23190
|
queryFn: async () => n == null ? null : await n.devices.get(e)
|
|
@@ -23193,7 +23195,7 @@ function K1({
|
|
|
23193
23195
|
device_id: t,
|
|
23194
23196
|
properties: { locked: e }
|
|
23195
23197
|
}) {
|
|
23196
|
-
const { client: n } =
|
|
23198
|
+
const { client: n } = qt(), r = jr();
|
|
23197
23199
|
return Wa({
|
|
23198
23200
|
mutationFn: async () => {
|
|
23199
23201
|
if (n === null)
|
|
@@ -23236,7 +23238,7 @@ function K1({
|
|
|
23236
23238
|
}
|
|
23237
23239
|
});
|
|
23238
23240
|
}
|
|
23239
|
-
function
|
|
23241
|
+
function Ht({
|
|
23240
23242
|
variant: t = "outline",
|
|
23241
23243
|
children: e,
|
|
23242
23244
|
size: n = "medium",
|
|
@@ -23263,17 +23265,17 @@ function Dt({
|
|
|
23263
23265
|
);
|
|
23264
23266
|
}
|
|
23265
23267
|
function yh(t) {
|
|
23266
|
-
const { device: e, ...n } = t, r = e.properties.image_url ??
|
|
23268
|
+
const { device: e, ...n } = t, r = e.properties.image_url ?? tT;
|
|
23267
23269
|
return /* @__PURE__ */ f.jsx("img", { src: r, alt: e.properties.name, ...n });
|
|
23268
23270
|
}
|
|
23269
|
-
const
|
|
23270
|
-
function
|
|
23271
|
+
const tT = "https://connect.getseam.com/assets/images/devices/unknown-lock.png";
|
|
23272
|
+
function nT({
|
|
23271
23273
|
color: t = "primary",
|
|
23272
23274
|
...e
|
|
23273
23275
|
}) {
|
|
23274
23276
|
return /* @__PURE__ */ f.jsx("button", { className: `seam-text-btn seam-color-${t}`, ...e });
|
|
23275
23277
|
}
|
|
23276
|
-
function
|
|
23278
|
+
function rT({
|
|
23277
23279
|
deviceId: t,
|
|
23278
23280
|
disableLockUnlock: e,
|
|
23279
23281
|
onSelectDevice: n
|
|
@@ -23282,7 +23284,7 @@ function tT({
|
|
|
23282
23284
|
device_id: t
|
|
23283
23285
|
});
|
|
23284
23286
|
return r || i == null || !fl(i) ? null : /* @__PURE__ */ f.jsx(
|
|
23285
|
-
|
|
23287
|
+
iT,
|
|
23286
23288
|
{
|
|
23287
23289
|
device: i,
|
|
23288
23290
|
disableLockUnlock: e,
|
|
@@ -23290,18 +23292,14 @@ function tT({
|
|
|
23290
23292
|
}
|
|
23291
23293
|
);
|
|
23292
23294
|
}
|
|
23293
|
-
function
|
|
23295
|
+
function iT(t) {
|
|
23294
23296
|
const { device: e, disableLockUnlock: n, onSelectDevice: r } = t, i = K1(e), o = e.properties.locked ? kc.unlock : kc.lock;
|
|
23295
23297
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-access-code-device", children: [
|
|
23296
23298
|
/* @__PURE__ */ f.jsx("div", { className: "seam-device-image", children: /* @__PURE__ */ f.jsx(yh, { device: e }) }),
|
|
23297
23299
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-body", children: [
|
|
23298
|
-
/* @__PURE__ */ f.
|
|
23299
|
-
e.properties.model.manufacturer_display_name,
|
|
23300
|
-
" ",
|
|
23301
|
-
e.properties.model.display_name
|
|
23302
|
-
] }),
|
|
23300
|
+
/* @__PURE__ */ f.jsx("div", { children: e.properties.name }),
|
|
23303
23301
|
/* @__PURE__ */ f.jsx(
|
|
23304
|
-
|
|
23302
|
+
nT,
|
|
23305
23303
|
{
|
|
23306
23304
|
onClick: () => {
|
|
23307
23305
|
r(e.device_id);
|
|
@@ -23311,7 +23309,7 @@ function nT(t) {
|
|
|
23311
23309
|
)
|
|
23312
23310
|
] }),
|
|
23313
23311
|
!n && /* @__PURE__ */ f.jsx(
|
|
23314
|
-
|
|
23312
|
+
Ht,
|
|
23315
23313
|
{
|
|
23316
23314
|
onClick: () => {
|
|
23317
23315
|
i.mutate();
|
|
@@ -23363,7 +23361,7 @@ function Td(t) {
|
|
|
23363
23361
|
);
|
|
23364
23362
|
}
|
|
23365
23363
|
function Y1(t) {
|
|
23366
|
-
const e = typeof t == "string" ? { device_id: t } : t, { client: n } =
|
|
23364
|
+
const e = typeof t == "string" ? { device_id: t } : t, { client: n } = qt(), { data: r, ...i } = Tr({
|
|
23367
23365
|
enabled: n != null,
|
|
23368
23366
|
queryKey: ["access_codes", "list", e],
|
|
23369
23367
|
queryFn: async () => n == null ? [] : await n.accessCodes.list(e)
|
|
@@ -23374,7 +23372,7 @@ const J1 = (t, e) => {
|
|
|
23374
23372
|
const n = D.fromISO(t.created_at), r = D.fromISO(e.created_at);
|
|
23375
23373
|
return !n.isValid || !r.isValid ? 0 : n.toMillis() - r.toMillis();
|
|
23376
23374
|
};
|
|
23377
|
-
function
|
|
23375
|
+
function oT() {
|
|
23378
23376
|
return Intl.supportedValuesOf("timeZone");
|
|
23379
23377
|
}
|
|
23380
23378
|
function $p() {
|
|
@@ -23387,16 +23385,16 @@ function X1(t) {
|
|
|
23387
23385
|
function eS(t) {
|
|
23388
23386
|
return Wt.create(t).formatOffset(Date.now(), "short");
|
|
23389
23387
|
}
|
|
23390
|
-
const
|
|
23388
|
+
const aT = (t, e = {}) => {
|
|
23391
23389
|
const { showWeekday: n = !0 } = e, r = n ? "EEE MMM d, yyyy" : "MMM d, yyyy";
|
|
23392
23390
|
return D.fromFormat(t, "yyyy-MM-dd").toFormat(r);
|
|
23393
|
-
},
|
|
23391
|
+
}, sT = (t) => {
|
|
23394
23392
|
const e = D.fromFormat(t, "HH:mm:ss");
|
|
23395
23393
|
return e.isValid ? e.toFormat("h:mm a") : null;
|
|
23396
23394
|
}, Sg = (t) => {
|
|
23397
23395
|
const [e = "", n = ""] = t.split("T");
|
|
23398
|
-
return `${
|
|
23399
|
-
},
|
|
23396
|
+
return `${aT(e, { showWeekday: !1 })} at ${sT(n) ?? ""}`;
|
|
23397
|
+
}, lT = () => tS(D.now()), uT = () => tS(D.now().plus({ days: 1 }));
|
|
23400
23398
|
function tS(t) {
|
|
23401
23399
|
const e = t.toFormat("yyyy-MM-dd"), n = t.toFormat("HH:mm:ss");
|
|
23402
23400
|
return `${e}T${n}`;
|
|
@@ -23404,7 +23402,7 @@ function tS(t) {
|
|
|
23404
23402
|
const Wu = (t, e) => {
|
|
23405
23403
|
const n = eS(e);
|
|
23406
23404
|
return `${t}.000${n}`;
|
|
23407
|
-
},
|
|
23405
|
+
}, dT = (t) => D.fromISO(t).zoneName;
|
|
23408
23406
|
function nS(t) {
|
|
23409
23407
|
return /* @__PURE__ */ f.jsx(
|
|
23410
23408
|
"svg",
|
|
@@ -23460,7 +23458,7 @@ function gh(t) {
|
|
|
23460
23458
|
}
|
|
23461
23459
|
);
|
|
23462
23460
|
}
|
|
23463
|
-
function
|
|
23461
|
+
function cT(t) {
|
|
23464
23462
|
return /* @__PURE__ */ f.jsxs(
|
|
23465
23463
|
"svg",
|
|
23466
23464
|
{
|
|
@@ -23508,11 +23506,11 @@ function Zu({
|
|
|
23508
23506
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-table-filter-bar", ...r, children: [
|
|
23509
23507
|
n,
|
|
23510
23508
|
" ",
|
|
23511
|
-
!t && /* @__PURE__ */ f.jsx(
|
|
23509
|
+
!t && /* @__PURE__ */ f.jsx(pT, { onClick: e })
|
|
23512
23510
|
] });
|
|
23513
23511
|
}
|
|
23514
|
-
function
|
|
23515
|
-
return /* @__PURE__ */ f.jsx(vh, { ...t, className: "seam-clear-filters-button", children: /* @__PURE__ */ f.jsx(
|
|
23512
|
+
function pT(t) {
|
|
23513
|
+
return /* @__PURE__ */ f.jsx(vh, { ...t, className: "seam-clear-filters-button", children: /* @__PURE__ */ f.jsx(cT, {}) });
|
|
23516
23514
|
}
|
|
23517
23515
|
function Aa({
|
|
23518
23516
|
onClick: t,
|
|
@@ -23531,7 +23529,7 @@ function Aa({
|
|
|
23531
23529
|
}
|
|
23532
23530
|
);
|
|
23533
23531
|
}
|
|
23534
|
-
function
|
|
23532
|
+
function fT({
|
|
23535
23533
|
accessCodes: t,
|
|
23536
23534
|
filter: e,
|
|
23537
23535
|
onFilterSelect: n
|
|
@@ -23570,7 +23568,7 @@ const Nc = {
|
|
|
23570
23568
|
accessCodeIssue: "access code issue",
|
|
23571
23569
|
accessCodeIssues: "access code issues"
|
|
23572
23570
|
};
|
|
23573
|
-
function
|
|
23571
|
+
function hT(t) {
|
|
23574
23572
|
return /* @__PURE__ */ f.jsx(
|
|
23575
23573
|
"svg",
|
|
23576
23574
|
{
|
|
@@ -23591,7 +23589,7 @@ function pT(t) {
|
|
|
23591
23589
|
}
|
|
23592
23590
|
);
|
|
23593
23591
|
}
|
|
23594
|
-
function
|
|
23592
|
+
function mT(t) {
|
|
23595
23593
|
return /* @__PURE__ */ f.jsxs(
|
|
23596
23594
|
"svg",
|
|
23597
23595
|
{
|
|
@@ -23613,7 +23611,7 @@ function fT(t) {
|
|
|
23613
23611
|
}
|
|
23614
23612
|
);
|
|
23615
23613
|
}
|
|
23616
|
-
function
|
|
23614
|
+
function yT(t) {
|
|
23617
23615
|
return /* @__PURE__ */ f.jsxs(
|
|
23618
23616
|
"svg",
|
|
23619
23617
|
{
|
|
@@ -23649,7 +23647,7 @@ function hT(t) {
|
|
|
23649
23647
|
}
|
|
23650
23648
|
);
|
|
23651
23649
|
}
|
|
23652
|
-
async function
|
|
23650
|
+
async function gT(t) {
|
|
23653
23651
|
var e, n;
|
|
23654
23652
|
await ((n = (e = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : e.clipboard) == null ? void 0 : n.writeText(t));
|
|
23655
23653
|
}
|
|
@@ -23741,7 +23739,7 @@ function bh({
|
|
|
23741
23739
|
}
|
|
23742
23740
|
);
|
|
23743
23741
|
}
|
|
23744
|
-
function
|
|
23742
|
+
function vT() {
|
|
23745
23743
|
return P.useContext(rS);
|
|
23746
23744
|
}
|
|
23747
23745
|
function la({
|
|
@@ -23750,7 +23748,7 @@ function la({
|
|
|
23750
23748
|
className: n,
|
|
23751
23749
|
preventDefaultOnClick: r = !1
|
|
23752
23750
|
}) {
|
|
23753
|
-
const { close: i } =
|
|
23751
|
+
const { close: i } = vT();
|
|
23754
23752
|
return /* @__PURE__ */ f.jsx(
|
|
23755
23753
|
"div",
|
|
23756
23754
|
{
|
|
@@ -23762,7 +23760,7 @@ function la({
|
|
|
23762
23760
|
}
|
|
23763
23761
|
);
|
|
23764
23762
|
}
|
|
23765
|
-
function
|
|
23763
|
+
function bT(t) {
|
|
23766
23764
|
return /* @__PURE__ */ f.jsxs(
|
|
23767
23765
|
"svg",
|
|
23768
23766
|
{
|
|
@@ -23798,7 +23796,7 @@ function gT(t) {
|
|
|
23798
23796
|
}
|
|
23799
23797
|
);
|
|
23800
23798
|
}
|
|
23801
|
-
function
|
|
23799
|
+
function ST({
|
|
23802
23800
|
children: t,
|
|
23803
23801
|
menuProps: e
|
|
23804
23802
|
}) {
|
|
@@ -23811,7 +23809,7 @@ function vT({
|
|
|
23811
23809
|
onClick: (r) => {
|
|
23812
23810
|
r.stopPropagation(), n(r);
|
|
23813
23811
|
},
|
|
23814
|
-
children: /* @__PURE__ */ f.jsx(
|
|
23812
|
+
children: /* @__PURE__ */ f.jsx(bT, {})
|
|
23815
23813
|
}
|
|
23816
23814
|
),
|
|
23817
23815
|
...e,
|
|
@@ -23825,20 +23823,20 @@ const yl = (t = !1) => {
|
|
|
23825
23823
|
}, [n]);
|
|
23826
23824
|
return [e, r];
|
|
23827
23825
|
};
|
|
23828
|
-
function
|
|
23826
|
+
function AT(t) {
|
|
23829
23827
|
return /* @__PURE__ */ f.jsx(
|
|
23830
|
-
|
|
23828
|
+
ST,
|
|
23831
23829
|
{
|
|
23832
23830
|
menuProps: {
|
|
23833
23831
|
backgroundProps: {
|
|
23834
23832
|
className: "seam-table-action-menu"
|
|
23835
23833
|
}
|
|
23836
23834
|
},
|
|
23837
|
-
children: /* @__PURE__ */ f.jsx(
|
|
23835
|
+
children: /* @__PURE__ */ f.jsx(wT, { ...t })
|
|
23838
23836
|
}
|
|
23839
23837
|
);
|
|
23840
23838
|
}
|
|
23841
|
-
function
|
|
23839
|
+
function wT({
|
|
23842
23840
|
accessCode: t,
|
|
23843
23841
|
onViewDetails: e,
|
|
23844
23842
|
disableEditAccessCode: n,
|
|
@@ -23850,7 +23848,7 @@ function ST({
|
|
|
23850
23848
|
/* @__PURE__ */ f.jsx("span", { children: sr.deleteCodeConfirmation }),
|
|
23851
23849
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-actions", children: [
|
|
23852
23850
|
/* @__PURE__ */ f.jsx(
|
|
23853
|
-
|
|
23851
|
+
Ht,
|
|
23854
23852
|
{
|
|
23855
23853
|
onClick: s,
|
|
23856
23854
|
disabled: l.isLoading,
|
|
@@ -23858,7 +23856,7 @@ function ST({
|
|
|
23858
23856
|
}
|
|
23859
23857
|
),
|
|
23860
23858
|
/* @__PURE__ */ f.jsx(
|
|
23861
|
-
|
|
23859
|
+
Ht,
|
|
23862
23860
|
{
|
|
23863
23861
|
variant: "solid",
|
|
23864
23862
|
disabled: l.isLoading,
|
|
@@ -23876,7 +23874,7 @@ function ST({
|
|
|
23876
23874
|
la,
|
|
23877
23875
|
{
|
|
23878
23876
|
onClick: () => {
|
|
23879
|
-
|
|
23877
|
+
gT(t.code ?? "");
|
|
23880
23878
|
},
|
|
23881
23879
|
children: /* @__PURE__ */ f.jsxs("div", { className: "seam-menu-item-copy", children: [
|
|
23882
23880
|
/* @__PURE__ */ f.jsxs("span", { children: [
|
|
@@ -23884,7 +23882,7 @@ function ST({
|
|
|
23884
23882
|
" - ",
|
|
23885
23883
|
t.code
|
|
23886
23884
|
] }),
|
|
23887
|
-
/* @__PURE__ */ f.jsx(
|
|
23885
|
+
/* @__PURE__ */ f.jsx(yT, {})
|
|
23888
23886
|
] })
|
|
23889
23887
|
}
|
|
23890
23888
|
),
|
|
@@ -23921,8 +23919,8 @@ const sr = {
|
|
|
23921
23919
|
function Ku() {
|
|
23922
23920
|
return /* @__PURE__ */ f.jsx("span", { className: "seam-dot-divider", children: "•" });
|
|
23923
23921
|
}
|
|
23924
|
-
const
|
|
23925
|
-
function
|
|
23922
|
+
const ET = ze.fromObject({ minutes: 1 }).as("milliseconds");
|
|
23923
|
+
function OT(t, e = ET) {
|
|
23926
23924
|
const n = P.useCallback(() => {
|
|
23927
23925
|
t();
|
|
23928
23926
|
}, [t]);
|
|
@@ -23935,24 +23933,24 @@ function wT(t, e = AT) {
|
|
|
23935
23933
|
}
|
|
23936
23934
|
function iS(t) {
|
|
23937
23935
|
const [e, n] = P.useState(null), r = P.useCallback(() => {
|
|
23938
|
-
t != null && n(
|
|
23936
|
+
t != null && n(xT(D.fromISO(t)));
|
|
23939
23937
|
}, [t]);
|
|
23940
|
-
return P.useEffect(r, [r]),
|
|
23938
|
+
return P.useEffect(r, [r]), OT(r), e;
|
|
23941
23939
|
}
|
|
23942
|
-
const
|
|
23943
|
-
function
|
|
23940
|
+
const xT = (t) => t.isValid ? t.diffNow().milliseconds < 0 : null;
|
|
23941
|
+
function CT(t) {
|
|
23944
23942
|
const { accessCode: e } = t, { device: n } = ml({ device_id: e.device_id });
|
|
23945
23943
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-details", children: [
|
|
23946
23944
|
/* @__PURE__ */ f.jsx("span", { className: "seam-device-name seam-truncated-text", children: n == null ? void 0 : n.properties.name }),
|
|
23947
23945
|
/* @__PURE__ */ f.jsx(Ku, {}),
|
|
23948
|
-
/* @__PURE__ */ f.jsx(
|
|
23946
|
+
/* @__PURE__ */ f.jsx(IT, { accessCode: e }),
|
|
23949
23947
|
/* @__PURE__ */ f.jsx(Ku, {}),
|
|
23950
23948
|
ua.code,
|
|
23951
23949
|
": ",
|
|
23952
23950
|
e.code
|
|
23953
23951
|
] });
|
|
23954
23952
|
}
|
|
23955
|
-
function
|
|
23953
|
+
function IT(t) {
|
|
23956
23954
|
const { accessCode: e } = t, n = iS("starts_at" in e ? e == null ? void 0 : e.starts_at : null) ?? !1;
|
|
23957
23955
|
return e.type === "ongoing" ? /* @__PURE__ */ f.jsxs("span", { children: [
|
|
23958
23956
|
ua.ends,
|
|
@@ -23994,7 +23992,7 @@ function aS({
|
|
|
23994
23992
|
}) {
|
|
23995
23993
|
return /* @__PURE__ */ f.jsx("span", { className: J("seam-title", e), ...n, children: t });
|
|
23996
23994
|
}
|
|
23997
|
-
function
|
|
23995
|
+
function jT({
|
|
23998
23996
|
onClick: t,
|
|
23999
23997
|
accessCode: e,
|
|
24000
23998
|
onEdit: n,
|
|
@@ -24003,16 +24001,16 @@ function CT({
|
|
|
24003
24001
|
}) {
|
|
24004
24002
|
const o = e.errors.length, s = e.warnings.length, l = o === 0 || o > 1, c = l ? `${o} ${$l.codeIssues}` : `${o} ${$l.codeIssue}`, a = l ? `${s} ${$l.codeIssues}` : `${s} ${$l.codeIssue}`;
|
|
24005
24003
|
return /* @__PURE__ */ f.jsxs(oS, { onClick: t, children: [
|
|
24006
|
-
/* @__PURE__ */ f.jsx(wa, { className: "seam-icon-cell", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
24004
|
+
/* @__PURE__ */ f.jsx(wa, { className: "seam-icon-cell", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(hT, {}) }) }),
|
|
24007
24005
|
/* @__PURE__ */ f.jsxs(wa, { className: "seam-name-cell", children: [
|
|
24008
24006
|
/* @__PURE__ */ f.jsx(aS, { className: "seam-truncated-text", children: e.name }),
|
|
24009
|
-
/* @__PURE__ */ f.jsx(
|
|
24007
|
+
/* @__PURE__ */ f.jsx(CT, { accessCode: e })
|
|
24010
24008
|
] }),
|
|
24011
24009
|
/* @__PURE__ */ f.jsxs(wa, { className: "seam-action-cell", children: [
|
|
24012
24010
|
o > 0 && /* @__PURE__ */ f.jsx("div", { className: "seam-issue-icon-wrap", title: c, children: /* @__PURE__ */ f.jsx(gh, {}) }),
|
|
24013
|
-
o === 0 && s > 0 && /* @__PURE__ */ f.jsx("div", { className: "seam-issue-icon-wrap", title: a, children: /* @__PURE__ */ f.jsx(
|
|
24011
|
+
o === 0 && s > 0 && /* @__PURE__ */ f.jsx("div", { className: "seam-issue-icon-wrap", title: a, children: /* @__PURE__ */ f.jsx(mT, {}) }),
|
|
24014
24012
|
/* @__PURE__ */ f.jsx(
|
|
24015
|
-
|
|
24013
|
+
AT,
|
|
24016
24014
|
{
|
|
24017
24015
|
accessCode: e,
|
|
24018
24016
|
onEdit: n,
|
|
@@ -24028,8 +24026,8 @@ const $l = {
|
|
|
24028
24026
|
codeIssue: "code issue",
|
|
24029
24027
|
codeIssues: "code issues"
|
|
24030
24028
|
};
|
|
24031
|
-
function
|
|
24032
|
-
const { client: t } =
|
|
24029
|
+
function TT() {
|
|
24030
|
+
const { client: t } = qt(), e = jr();
|
|
24033
24031
|
return Wa({
|
|
24034
24032
|
mutationFn: async (n) => {
|
|
24035
24033
|
if (t === null)
|
|
@@ -24041,7 +24039,7 @@ function IT() {
|
|
|
24041
24039
|
}
|
|
24042
24040
|
});
|
|
24043
24041
|
}
|
|
24044
|
-
function
|
|
24042
|
+
function MT(t) {
|
|
24045
24043
|
return /* @__PURE__ */ f.jsxs(
|
|
24046
24044
|
"svg",
|
|
24047
24045
|
{
|
|
@@ -24094,7 +24092,7 @@ const Md = P.forwardRef(function({
|
|
|
24094
24092
|
helperText: m,
|
|
24095
24093
|
type: v = "text"
|
|
24096
24094
|
}, b) {
|
|
24097
|
-
const [y, g] = P.useState(null), S =
|
|
24095
|
+
const [y, g] = P.useState(null), S = zT(e, y), E = () => {
|
|
24098
24096
|
if (n != null) {
|
|
24099
24097
|
n("");
|
|
24100
24098
|
return;
|
|
@@ -24138,7 +24136,7 @@ const Md = P.forwardRef(function({
|
|
|
24138
24136
|
"seam-hidden": S
|
|
24139
24137
|
}),
|
|
24140
24138
|
onClick: E,
|
|
24141
|
-
children: /* @__PURE__ */ f.jsx(
|
|
24139
|
+
children: /* @__PURE__ */ f.jsx(MT, {})
|
|
24142
24140
|
}
|
|
24143
24141
|
),
|
|
24144
24142
|
o
|
|
@@ -24151,7 +24149,7 @@ const Md = P.forwardRef(function({
|
|
|
24151
24149
|
}), sS = (t) => (e) => {
|
|
24152
24150
|
t(e.currentTarget.value);
|
|
24153
24151
|
};
|
|
24154
|
-
function
|
|
24152
|
+
function zT(t, e) {
|
|
24155
24153
|
const [n, r] = P.useState(!0);
|
|
24156
24154
|
return P.useEffect(() => {
|
|
24157
24155
|
r(t == null || t === "");
|
|
@@ -24215,7 +24213,7 @@ function Yu({
|
|
|
24215
24213
|
});
|
|
24216
24214
|
return /* @__PURE__ */ f.jsx("div", { className: J("seam-form-field", e), children: o });
|
|
24217
24215
|
}
|
|
24218
|
-
function
|
|
24216
|
+
function PT(t) {
|
|
24219
24217
|
return /* @__PURE__ */ f.jsxs(
|
|
24220
24218
|
"svg",
|
|
24221
24219
|
{
|
|
@@ -24254,17 +24252,17 @@ function MT(t) {
|
|
|
24254
24252
|
function zr(t) {
|
|
24255
24253
|
const { title: e, onBack: n, subheading: r } = t;
|
|
24256
24254
|
return e == null && n == null ? null : /* @__PURE__ */ f.jsxs("div", { className: "seam-content-header", children: [
|
|
24257
|
-
/* @__PURE__ */ f.jsx(
|
|
24255
|
+
/* @__PURE__ */ f.jsx(_T, { onClick: n }),
|
|
24258
24256
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
24259
24257
|
/* @__PURE__ */ f.jsx("span", { className: "seam-title", children: e }),
|
|
24260
24258
|
r != null && /* @__PURE__ */ f.jsx("span", { className: "seam-subheading", children: r })
|
|
24261
24259
|
] })
|
|
24262
24260
|
] });
|
|
24263
24261
|
}
|
|
24264
|
-
function
|
|
24265
|
-
return t.onClick == null ? null : /* @__PURE__ */ f.jsx(
|
|
24262
|
+
function _T(t) {
|
|
24263
|
+
return t.onClick == null ? null : /* @__PURE__ */ f.jsx(PT, { className: "seam-back-icon", onClick: t.onClick });
|
|
24266
24264
|
}
|
|
24267
|
-
function
|
|
24265
|
+
function RT({
|
|
24268
24266
|
timezone: t,
|
|
24269
24267
|
onBack: e,
|
|
24270
24268
|
className: n,
|
|
@@ -24315,7 +24313,7 @@ const Gl = {
|
|
|
24315
24313
|
startTimeLabel: "Start",
|
|
24316
24314
|
endTimeLabel: "End"
|
|
24317
24315
|
};
|
|
24318
|
-
function
|
|
24316
|
+
function kT(t) {
|
|
24319
24317
|
return /* @__PURE__ */ f.jsxs(
|
|
24320
24318
|
"svg",
|
|
24321
24319
|
{
|
|
@@ -24351,7 +24349,7 @@ function _T(t) {
|
|
|
24351
24349
|
}
|
|
24352
24350
|
);
|
|
24353
24351
|
}
|
|
24354
|
-
function
|
|
24352
|
+
function NT({
|
|
24355
24353
|
startDate: t,
|
|
24356
24354
|
endDate: e,
|
|
24357
24355
|
onEdit: n
|
|
@@ -24363,14 +24361,14 @@ function RT({
|
|
|
24363
24361
|
/* @__PURE__ */ f.jsx("span", { className: "seam-label", children: wg.endTimeLabel }),
|
|
24364
24362
|
/* @__PURE__ */ f.jsx("span", { className: "seam-time", children: Sg(e) })
|
|
24365
24363
|
] }),
|
|
24366
|
-
/* @__PURE__ */ f.jsx(vh, { onClick: n, className: "seam-show-date-picker-btn", children: /* @__PURE__ */ f.jsx(
|
|
24364
|
+
/* @__PURE__ */ f.jsx(vh, { onClick: n, className: "seam-show-date-picker-btn", children: /* @__PURE__ */ f.jsx(kT, {}) })
|
|
24367
24365
|
] });
|
|
24368
24366
|
}
|
|
24369
24367
|
const wg = {
|
|
24370
24368
|
startTimeLabel: "Start",
|
|
24371
24369
|
endTimeLabel: "End"
|
|
24372
24370
|
};
|
|
24373
|
-
function
|
|
24371
|
+
function DT(t) {
|
|
24374
24372
|
return /* @__PURE__ */ f.jsx(
|
|
24375
24373
|
"svg",
|
|
24376
24374
|
{
|
|
@@ -24390,7 +24388,7 @@ function kT(t) {
|
|
|
24390
24388
|
}
|
|
24391
24389
|
);
|
|
24392
24390
|
}
|
|
24393
|
-
function
|
|
24391
|
+
function HT(t) {
|
|
24394
24392
|
return /* @__PURE__ */ f.jsx(
|
|
24395
24393
|
"svg",
|
|
24396
24394
|
{
|
|
@@ -24409,7 +24407,7 @@ function NT(t) {
|
|
|
24409
24407
|
}
|
|
24410
24408
|
);
|
|
24411
24409
|
}
|
|
24412
|
-
function
|
|
24410
|
+
function VT({
|
|
24413
24411
|
label: t,
|
|
24414
24412
|
checked: e,
|
|
24415
24413
|
onChange: n,
|
|
@@ -24419,7 +24417,7 @@ function DT({
|
|
|
24419
24417
|
i.current != null && i.current.click();
|
|
24420
24418
|
};
|
|
24421
24419
|
return /* @__PURE__ */ f.jsxs("div", { className: J("seam-checkbox", r), onClick: o, children: [
|
|
24422
|
-
/* @__PURE__ */ f.jsx("span", { className: "seam-checkbox-icon", children: e === !0 ? /* @__PURE__ */ f.jsx(
|
|
24420
|
+
/* @__PURE__ */ f.jsx("span", { className: "seam-checkbox-icon", children: e === !0 ? /* @__PURE__ */ f.jsx(HT, {}) : /* @__PURE__ */ f.jsx(DT, {}) }),
|
|
24423
24421
|
/* @__PURE__ */ f.jsx(
|
|
24424
24422
|
"input",
|
|
24425
24423
|
{
|
|
@@ -24434,7 +24432,7 @@ function DT({
|
|
|
24434
24432
|
/* @__PURE__ */ f.jsx("span", { className: " seam-checkbox-label", children: t })
|
|
24435
24433
|
] });
|
|
24436
24434
|
}
|
|
24437
|
-
function
|
|
24435
|
+
function qT({
|
|
24438
24436
|
onChange: t,
|
|
24439
24437
|
value: e,
|
|
24440
24438
|
onClose: n
|
|
@@ -24446,7 +24444,7 @@ function HT({
|
|
|
24446
24444
|
/* @__PURE__ */ f.jsx(zr, { title: c, onBack: n }),
|
|
24447
24445
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-content", children: [
|
|
24448
24446
|
/* @__PURE__ */ f.jsx(
|
|
24449
|
-
|
|
24447
|
+
VT,
|
|
24450
24448
|
{
|
|
24451
24449
|
label: Ql.setTimezoneManuallyLabel,
|
|
24452
24450
|
checked: !s,
|
|
@@ -24462,7 +24460,7 @@ function HT({
|
|
|
24462
24460
|
value: e,
|
|
24463
24461
|
onChange: sS(t),
|
|
24464
24462
|
className: "seam-timezone-select",
|
|
24465
|
-
children:
|
|
24463
|
+
children: oT().map((a) => /* @__PURE__ */ f.jsxs("option", { value: a, children: [
|
|
24466
24464
|
Ql.utc,
|
|
24467
24465
|
" ",
|
|
24468
24466
|
eS(a),
|
|
@@ -24480,7 +24478,7 @@ const Ql = {
|
|
|
24480
24478
|
utc: "UTC",
|
|
24481
24479
|
setTimezoneManuallyLabel: "Use local time zone"
|
|
24482
24480
|
};
|
|
24483
|
-
function
|
|
24481
|
+
function FT(t) {
|
|
24484
24482
|
return /* @__PURE__ */ f.jsx(
|
|
24485
24483
|
"svg",
|
|
24486
24484
|
{
|
|
@@ -24499,7 +24497,7 @@ function VT(t) {
|
|
|
24499
24497
|
}
|
|
24500
24498
|
);
|
|
24501
24499
|
}
|
|
24502
|
-
function
|
|
24500
|
+
function LT(t) {
|
|
24503
24501
|
return /* @__PURE__ */ f.jsx(
|
|
24504
24502
|
"svg",
|
|
24505
24503
|
{
|
|
@@ -24518,15 +24516,15 @@ function qT(t) {
|
|
|
24518
24516
|
}
|
|
24519
24517
|
);
|
|
24520
24518
|
}
|
|
24521
|
-
function
|
|
24519
|
+
function UT({
|
|
24522
24520
|
value: t,
|
|
24523
24521
|
label: e
|
|
24524
24522
|
}) {
|
|
24525
|
-
const { value: n, onChange: r, name: i } =
|
|
24523
|
+
const { value: n, onChange: r, name: i } = $T(), o = n === t, s = P.useRef(), l = () => {
|
|
24526
24524
|
s.current != null && s.current.click();
|
|
24527
24525
|
};
|
|
24528
24526
|
return /* @__PURE__ */ f.jsxs("label", { className: "seam-radio", onClick: l, children: [
|
|
24529
|
-
/* @__PURE__ */ f.jsx("span", { className: "seam-radio-icon", children: o ? /* @__PURE__ */ f.jsx(
|
|
24527
|
+
/* @__PURE__ */ f.jsx("span", { className: "seam-radio-icon", children: o ? /* @__PURE__ */ f.jsx(FT, {}) : /* @__PURE__ */ f.jsx(LT, {}) }),
|
|
24530
24528
|
/* @__PURE__ */ f.jsx(
|
|
24531
24529
|
"input",
|
|
24532
24530
|
{
|
|
@@ -24543,7 +24541,7 @@ function FT({
|
|
|
24543
24541
|
] });
|
|
24544
24542
|
}
|
|
24545
24543
|
const lS = P.createContext(null);
|
|
24546
|
-
function
|
|
24544
|
+
function BT({
|
|
24547
24545
|
value: t,
|
|
24548
24546
|
onChange: e,
|
|
24549
24547
|
name: n,
|
|
@@ -24558,11 +24556,11 @@ function LT({
|
|
|
24558
24556
|
onChange: e,
|
|
24559
24557
|
name: n
|
|
24560
24558
|
},
|
|
24561
|
-
children: /* @__PURE__ */ f.jsx("div", { className: "seam-radio-field", children: r.map(({ value: o, label: s }, l) => /* @__PURE__ */ f.jsx(
|
|
24559
|
+
children: /* @__PURE__ */ f.jsx("div", { className: "seam-radio-field", children: r.map(({ value: o, label: s }, l) => /* @__PURE__ */ f.jsx(UT, { value: o, label: s }, l)) })
|
|
24562
24560
|
}
|
|
24563
24561
|
);
|
|
24564
24562
|
}
|
|
24565
|
-
function
|
|
24563
|
+
function $T() {
|
|
24566
24564
|
const t = P.useContext(lS);
|
|
24567
24565
|
if (t === null)
|
|
24568
24566
|
throw new Error("useRadioField must be used within a <RadioField/>");
|
|
@@ -24572,9 +24570,9 @@ function uS({
|
|
|
24572
24570
|
className: t,
|
|
24573
24571
|
...e
|
|
24574
24572
|
}) {
|
|
24575
|
-
return /* @__PURE__ */ f.jsx("div", { className: J("seam-access-code-form", t), children: /* @__PURE__ */ f.jsx(
|
|
24573
|
+
return /* @__PURE__ */ f.jsx("div", { className: J("seam-access-code-form", t), children: /* @__PURE__ */ f.jsx(GT, { ...e }) });
|
|
24576
24574
|
}
|
|
24577
|
-
function
|
|
24575
|
+
function GT({
|
|
24578
24576
|
onBack: t,
|
|
24579
24577
|
accessCode: e,
|
|
24580
24578
|
device: n,
|
|
@@ -24584,11 +24582,11 @@ function BT({
|
|
|
24584
24582
|
const [o, s] = P.useState((e == null ? void 0 : e.name) ?? ""), [l, c] = P.useState(
|
|
24585
24583
|
(e == null ? void 0 : e.type) ?? "ongoing"
|
|
24586
24584
|
), [a, u] = P.useState(!1), [p, d] = P.useState(
|
|
24587
|
-
|
|
24585
|
+
QT(e) ?? $p()
|
|
24588
24586
|
), [h, m] = P.useState(
|
|
24589
|
-
Eg("starts_at", e) ??
|
|
24587
|
+
Eg("starts_at", e) ?? lT()
|
|
24590
24588
|
), [v, b] = P.useState(
|
|
24591
|
-
Eg("ends_at", e) ??
|
|
24589
|
+
Eg("ends_at", e) ?? uT()
|
|
24592
24590
|
), [y, g] = yl(), S = () => {
|
|
24593
24591
|
i || r({
|
|
24594
24592
|
name: o,
|
|
@@ -24601,7 +24599,7 @@ function BT({
|
|
|
24601
24599
|
};
|
|
24602
24600
|
if (y)
|
|
24603
24601
|
return /* @__PURE__ */ f.jsx(
|
|
24604
|
-
|
|
24602
|
+
qT,
|
|
24605
24603
|
{
|
|
24606
24604
|
value: p,
|
|
24607
24605
|
onChange: d,
|
|
@@ -24610,7 +24608,7 @@ function BT({
|
|
|
24610
24608
|
);
|
|
24611
24609
|
if (a)
|
|
24612
24610
|
return /* @__PURE__ */ f.jsx(
|
|
24613
|
-
|
|
24611
|
+
RT,
|
|
24614
24612
|
{
|
|
24615
24613
|
startDate: h,
|
|
24616
24614
|
setStartDate: m,
|
|
@@ -24651,7 +24649,7 @@ function BT({
|
|
|
24651
24649
|
/* @__PURE__ */ f.jsxs(Yu, { children: [
|
|
24652
24650
|
/* @__PURE__ */ f.jsx(Fa, { children: nn.timingInputLabel }),
|
|
24653
24651
|
/* @__PURE__ */ f.jsx(
|
|
24654
|
-
|
|
24652
|
+
BT,
|
|
24655
24653
|
{
|
|
24656
24654
|
value: l,
|
|
24657
24655
|
onChange: c,
|
|
@@ -24669,7 +24667,7 @@ function BT({
|
|
|
24669
24667
|
}
|
|
24670
24668
|
),
|
|
24671
24669
|
/* @__PURE__ */ f.jsx(f.Fragment, { children: l === "time_bound" && /* @__PURE__ */ f.jsx(
|
|
24672
|
-
|
|
24670
|
+
NT,
|
|
24673
24671
|
{
|
|
24674
24672
|
startDate: h,
|
|
24675
24673
|
endDate: v,
|
|
@@ -24680,16 +24678,16 @@ function BT({
|
|
|
24680
24678
|
) })
|
|
24681
24679
|
] }),
|
|
24682
24680
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-actions", children: [
|
|
24683
|
-
/* @__PURE__ */ f.jsx(
|
|
24684
|
-
/* @__PURE__ */ f.jsx(
|
|
24681
|
+
/* @__PURE__ */ f.jsx(Ht, { onClick: t, children: nn.cancel }),
|
|
24682
|
+
/* @__PURE__ */ f.jsx(Ht, { variant: "solid", disabled: !C, onMouseDown: S, children: nn.save })
|
|
24685
24683
|
] })
|
|
24686
24684
|
] })
|
|
24687
24685
|
] });
|
|
24688
24686
|
}
|
|
24689
|
-
function
|
|
24687
|
+
function QT(t) {
|
|
24690
24688
|
if (t == null || t.type === "ongoing")
|
|
24691
24689
|
return;
|
|
24692
|
-
const e = t.starts_at, n =
|
|
24690
|
+
const e = t.starts_at, n = dT(e);
|
|
24693
24691
|
if (n != null)
|
|
24694
24692
|
return n;
|
|
24695
24693
|
}
|
|
@@ -24708,7 +24706,7 @@ const nn = {
|
|
|
24708
24706
|
typeOngoingLabel: "Ongoing",
|
|
24709
24707
|
typeTimeBoundLabel: "Start/end times"
|
|
24710
24708
|
};
|
|
24711
|
-
function
|
|
24709
|
+
function WT({
|
|
24712
24710
|
className: t,
|
|
24713
24711
|
onBack: e,
|
|
24714
24712
|
deviceId: n
|
|
@@ -24716,14 +24714,14 @@ function GT({
|
|
|
24716
24714
|
const { device: r } = ml({
|
|
24717
24715
|
device_id: n
|
|
24718
24716
|
});
|
|
24719
|
-
return r == null ? null : /* @__PURE__ */ f.jsx(
|
|
24717
|
+
return r == null ? null : /* @__PURE__ */ f.jsx(ZT, { device: r, className: t, onBack: e });
|
|
24720
24718
|
}
|
|
24721
|
-
function
|
|
24719
|
+
function ZT({
|
|
24722
24720
|
device: t,
|
|
24723
24721
|
className: e,
|
|
24724
24722
|
onBack: n
|
|
24725
24723
|
}) {
|
|
24726
|
-
const { submit: r, isSubmitting: i } =
|
|
24724
|
+
const { submit: r, isSubmitting: i } = KT(n);
|
|
24727
24725
|
return /* @__PURE__ */ f.jsx(
|
|
24728
24726
|
uS,
|
|
24729
24727
|
{
|
|
@@ -24735,8 +24733,8 @@ function QT({
|
|
|
24735
24733
|
}
|
|
24736
24734
|
);
|
|
24737
24735
|
}
|
|
24738
|
-
function
|
|
24739
|
-
const { mutate: e, isLoading: n } =
|
|
24736
|
+
function KT(t) {
|
|
24737
|
+
const { mutate: e, isLoading: n } = TT();
|
|
24740
24738
|
return { submit: (i) => {
|
|
24741
24739
|
const { name: o, type: s, device: l, startDate: c, endDate: a, timezone: u } = i;
|
|
24742
24740
|
if (o !== "" && !n) {
|
|
@@ -24766,8 +24764,8 @@ function WT(t) {
|
|
|
24766
24764
|
}
|
|
24767
24765
|
}, isSubmitting: n };
|
|
24768
24766
|
}
|
|
24769
|
-
function
|
|
24770
|
-
const { client: t } =
|
|
24767
|
+
function YT() {
|
|
24768
|
+
const { client: t } = qt(), e = jr();
|
|
24771
24769
|
return Wa({
|
|
24772
24770
|
mutationFn: async (n) => {
|
|
24773
24771
|
if (t === null)
|
|
@@ -24783,7 +24781,7 @@ function ZT() {
|
|
|
24783
24781
|
}
|
|
24784
24782
|
});
|
|
24785
24783
|
}
|
|
24786
|
-
function
|
|
24784
|
+
function JT({
|
|
24787
24785
|
accessCodeId: t,
|
|
24788
24786
|
onBack: e,
|
|
24789
24787
|
className: n
|
|
@@ -24791,16 +24789,16 @@ function KT({
|
|
|
24791
24789
|
const { accessCode: r } = W1({
|
|
24792
24790
|
access_code_id: t
|
|
24793
24791
|
});
|
|
24794
|
-
return r == null ? null : /* @__PURE__ */ f.jsx(
|
|
24792
|
+
return r == null ? null : /* @__PURE__ */ f.jsx(XT, { accessCode: r, className: n, onBack: e });
|
|
24795
24793
|
}
|
|
24796
|
-
function
|
|
24794
|
+
function XT({
|
|
24797
24795
|
className: t,
|
|
24798
24796
|
onBack: e,
|
|
24799
24797
|
accessCode: n
|
|
24800
24798
|
}) {
|
|
24801
24799
|
const { device: r } = ml({
|
|
24802
24800
|
device_id: n.device_id
|
|
24803
|
-
}), { submit: i, isSubmitting: o } =
|
|
24801
|
+
}), { submit: i, isSubmitting: o } = eM(n, e);
|
|
24804
24802
|
return r == null ? null : /* @__PURE__ */ f.jsx(
|
|
24805
24803
|
uS,
|
|
24806
24804
|
{
|
|
@@ -24813,8 +24811,8 @@ function YT({
|
|
|
24813
24811
|
}
|
|
24814
24812
|
);
|
|
24815
24813
|
}
|
|
24816
|
-
function
|
|
24817
|
-
const { mutate: n, isLoading: r } =
|
|
24814
|
+
function eM(t, e) {
|
|
24815
|
+
const { mutate: n, isLoading: r } = YT();
|
|
24818
24816
|
return { submit: (o) => {
|
|
24819
24817
|
const { name: s, type: l, device: c, startDate: a, endDate: u, timezone: p } = o;
|
|
24820
24818
|
if (s !== "" && !r) {
|
|
@@ -24863,7 +24861,7 @@ function pS({ children: t }) {
|
|
|
24863
24861
|
function fS({ children: t }) {
|
|
24864
24862
|
return /* @__PURE__ */ f.jsx("h5", { className: "seam-table-title", children: t });
|
|
24865
24863
|
}
|
|
24866
|
-
function
|
|
24864
|
+
function tM(t) {
|
|
24867
24865
|
return /* @__PURE__ */ f.jsxs(
|
|
24868
24866
|
"svg",
|
|
24869
24867
|
{
|
|
@@ -24912,7 +24910,7 @@ function Sh({
|
|
|
24912
24910
|
onChange: n,
|
|
24913
24911
|
...r,
|
|
24914
24912
|
className: J(t, "seam-search-text-field"),
|
|
24915
|
-
startAdornment: /* @__PURE__ */ f.jsx(
|
|
24913
|
+
startAdornment: /* @__PURE__ */ f.jsx(tM, {}),
|
|
24916
24914
|
inputProps: {
|
|
24917
24915
|
placeholder: "Search"
|
|
24918
24916
|
},
|
|
@@ -24923,7 +24921,7 @@ function Sh({
|
|
|
24923
24921
|
function hS({ children: t }) {
|
|
24924
24922
|
return /* @__PURE__ */ f.jsx("span", { className: "seam-caption", children: t });
|
|
24925
24923
|
}
|
|
24926
|
-
const
|
|
24924
|
+
const nM = !0, rM = !0, iM = (t, e) => {
|
|
24927
24925
|
const n = e.trim().toLowerCase();
|
|
24928
24926
|
if (n === "")
|
|
24929
24927
|
return !0;
|
|
@@ -24938,7 +24936,7 @@ function mS({
|
|
|
24938
24936
|
},
|
|
24939
24937
|
preventDefaultOnAccessCodeClick: i = !1,
|
|
24940
24938
|
onBack: o,
|
|
24941
|
-
accessCodeFilter: s =
|
|
24939
|
+
accessCodeFilter: s = iM,
|
|
24942
24940
|
accessCodeComparator: l = J1,
|
|
24943
24941
|
heading: c = pu.accessCodes,
|
|
24944
24942
|
title: a = pu.accessCodes,
|
|
@@ -24969,7 +24967,7 @@ function mS({
|
|
|
24969
24967
|
[E]
|
|
24970
24968
|
);
|
|
24971
24969
|
return S != null ? /* @__PURE__ */ f.jsx(
|
|
24972
|
-
|
|
24970
|
+
JT,
|
|
24973
24971
|
{
|
|
24974
24972
|
accessCodeId: S,
|
|
24975
24973
|
className: u,
|
|
@@ -24992,7 +24990,7 @@ function mS({
|
|
|
24992
24990
|
disableDeleteAccessCode: p
|
|
24993
24991
|
}
|
|
24994
24992
|
) : y ? /* @__PURE__ */ f.jsx(
|
|
24995
|
-
|
|
24993
|
+
WT,
|
|
24996
24994
|
{
|
|
24997
24995
|
className: u,
|
|
24998
24996
|
onBack: g,
|
|
@@ -25011,7 +25009,7 @@ function mS({
|
|
|
25011
25009
|
")"
|
|
25012
25010
|
] })
|
|
25013
25011
|
] }) : /* @__PURE__ */ f.jsx("div", { className: "seam-fragment" }),
|
|
25014
|
-
!
|
|
25012
|
+
!nM
|
|
25015
25013
|
] }),
|
|
25016
25014
|
!n && /* @__PURE__ */ f.jsx(
|
|
25017
25015
|
Sh,
|
|
@@ -25023,18 +25021,18 @@ function mS({
|
|
|
25023
25021
|
)
|
|
25024
25022
|
] }),
|
|
25025
25023
|
/* @__PURE__ */ f.jsx(cS, { children: /* @__PURE__ */ f.jsx(
|
|
25026
|
-
|
|
25024
|
+
oM,
|
|
25027
25025
|
{
|
|
25028
25026
|
accessCodes: C,
|
|
25029
25027
|
onAccessCodeClick: A,
|
|
25030
25028
|
onAccessCodeEdit: w,
|
|
25031
|
-
disableEditAccessCode:
|
|
25029
|
+
disableEditAccessCode: rM,
|
|
25032
25030
|
disableDeleteAccessCode: p
|
|
25033
25031
|
}
|
|
25034
25032
|
) })
|
|
25035
25033
|
] });
|
|
25036
25034
|
}
|
|
25037
|
-
function
|
|
25035
|
+
function oM(t) {
|
|
25038
25036
|
const {
|
|
25039
25037
|
accessCodes: e,
|
|
25040
25038
|
onAccessCodeClick: n,
|
|
@@ -25044,7 +25042,7 @@ function rM(t) {
|
|
|
25044
25042
|
} = t, [s, l] = P.useState(null), c = P.useMemo(() => s === null ? e : s === "access_code_issues" ? e.filter((a) => a.errors.length > 0 || a.warnings.length > 0) : e, [e, s]);
|
|
25045
25043
|
return e.length === 0 ? /* @__PURE__ */ f.jsx(dS, { children: pu.noAccessCodesMessage }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25046
25044
|
/* @__PURE__ */ f.jsx(
|
|
25047
|
-
|
|
25045
|
+
fT,
|
|
25048
25046
|
{
|
|
25049
25047
|
accessCodes: e,
|
|
25050
25048
|
filter: s,
|
|
@@ -25052,7 +25050,7 @@ function rM(t) {
|
|
|
25052
25050
|
}
|
|
25053
25051
|
),
|
|
25054
25052
|
c.map((a) => /* @__PURE__ */ f.jsx(
|
|
25055
|
-
|
|
25053
|
+
jT,
|
|
25056
25054
|
{
|
|
25057
25055
|
accessCode: a,
|
|
25058
25056
|
onClick: () => {
|
|
@@ -25072,10 +25070,10 @@ const pu = {
|
|
|
25072
25070
|
accessCodes: "Access Codes",
|
|
25073
25071
|
noAccessCodesMessage: "Sorry, no access codes were found"
|
|
25074
25072
|
};
|
|
25075
|
-
function
|
|
25073
|
+
function aM({ device: t }) {
|
|
25076
25074
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25077
25075
|
/* @__PURE__ */ f.jsxs("span", { className: "seam-label", children: [
|
|
25078
|
-
|
|
25076
|
+
sM.model,
|
|
25079
25077
|
":"
|
|
25080
25078
|
] }),
|
|
25081
25079
|
" ",
|
|
@@ -25086,10 +25084,10 @@ function iM({ device: t }) {
|
|
|
25086
25084
|
] })
|
|
25087
25085
|
] });
|
|
25088
25086
|
}
|
|
25089
|
-
const
|
|
25087
|
+
const sM = {
|
|
25090
25088
|
model: "Model"
|
|
25091
25089
|
};
|
|
25092
|
-
function
|
|
25090
|
+
function lM(t) {
|
|
25093
25091
|
return /* @__PURE__ */ f.jsxs(
|
|
25094
25092
|
"svg",
|
|
25095
25093
|
{
|
|
@@ -25125,7 +25123,7 @@ function aM(t) {
|
|
|
25125
25123
|
}
|
|
25126
25124
|
);
|
|
25127
25125
|
}
|
|
25128
|
-
function
|
|
25126
|
+
function uM(t) {
|
|
25129
25127
|
return /* @__PURE__ */ f.jsxs(
|
|
25130
25128
|
"svg",
|
|
25131
25129
|
{
|
|
@@ -25161,7 +25159,7 @@ function sM(t) {
|
|
|
25161
25159
|
}
|
|
25162
25160
|
);
|
|
25163
25161
|
}
|
|
25164
|
-
function
|
|
25162
|
+
function dM(t) {
|
|
25165
25163
|
const { variant: e, message: n, className: r } = t;
|
|
25166
25164
|
return /* @__PURE__ */ f.jsxs(
|
|
25167
25165
|
"div",
|
|
@@ -25169,15 +25167,15 @@ function lM(t) {
|
|
|
25169
25167
|
className: J("seam-alert", `seam-${e}-alert`, r),
|
|
25170
25168
|
children: [
|
|
25171
25169
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-alert-content", children: [
|
|
25172
|
-
/* @__PURE__ */ f.jsx("div", { className: "seam-alert-icon-wrap", children: /* @__PURE__ */ f.jsx("div", { className: "seam-alert-icon", children: e === "warning" ? /* @__PURE__ */ f.jsx(
|
|
25170
|
+
/* @__PURE__ */ f.jsx("div", { className: "seam-alert-icon-wrap", children: /* @__PURE__ */ f.jsx("div", { className: "seam-alert-icon", children: e === "warning" ? /* @__PURE__ */ f.jsx(uM, {}) : /* @__PURE__ */ f.jsx(lM, {}) }) }),
|
|
25173
25171
|
/* @__PURE__ */ f.jsx("div", { className: "seam-alert-message-wrap", children: /* @__PURE__ */ f.jsx("p", { className: "seam-alert-message", children: n }) })
|
|
25174
25172
|
] }),
|
|
25175
|
-
t.action != null && /* @__PURE__ */ f.jsx(
|
|
25173
|
+
t.action != null && /* @__PURE__ */ f.jsx(cM, { ...t.action })
|
|
25176
25174
|
]
|
|
25177
25175
|
}
|
|
25178
25176
|
);
|
|
25179
25177
|
}
|
|
25180
|
-
function
|
|
25178
|
+
function cM(t) {
|
|
25181
25179
|
const e = (n) => {
|
|
25182
25180
|
t.onClick(n);
|
|
25183
25181
|
};
|
|
@@ -25186,11 +25184,11 @@ function uM(t) {
|
|
|
25186
25184
|
function yS(t) {
|
|
25187
25185
|
const { alerts: e, children: n, className: r } = t;
|
|
25188
25186
|
return (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ f.jsxs("div", { className: J("seam-alerts", r), children: [
|
|
25189
|
-
e == null ? void 0 : e.map((i, o) => /* @__PURE__ */ f.jsx(
|
|
25187
|
+
e == null ? void 0 : e.map((i, o) => /* @__PURE__ */ f.jsx(dM, { ...i }, `${o}:${i.message}`)),
|
|
25190
25188
|
n
|
|
25191
25189
|
] });
|
|
25192
25190
|
}
|
|
25193
|
-
function
|
|
25191
|
+
function pM(t) {
|
|
25194
25192
|
return /* @__PURE__ */ f.jsxs(
|
|
25195
25193
|
"svg",
|
|
25196
25194
|
{
|
|
@@ -25224,7 +25222,7 @@ function dM(t) {
|
|
|
25224
25222
|
}
|
|
25225
25223
|
);
|
|
25226
25224
|
}
|
|
25227
|
-
function
|
|
25225
|
+
function fM(t) {
|
|
25228
25226
|
return /* @__PURE__ */ f.jsxs(
|
|
25229
25227
|
"svg",
|
|
25230
25228
|
{
|
|
@@ -25258,7 +25256,7 @@ function cM(t) {
|
|
|
25258
25256
|
}
|
|
25259
25257
|
);
|
|
25260
25258
|
}
|
|
25261
|
-
function
|
|
25259
|
+
function hM(t) {
|
|
25262
25260
|
return /* @__PURE__ */ f.jsxs(
|
|
25263
25261
|
"svg",
|
|
25264
25262
|
{
|
|
@@ -25292,7 +25290,7 @@ function pM(t) {
|
|
|
25292
25290
|
}
|
|
25293
25291
|
);
|
|
25294
25292
|
}
|
|
25295
|
-
function
|
|
25293
|
+
function mM(t) {
|
|
25296
25294
|
return /* @__PURE__ */ f.jsxs(
|
|
25297
25295
|
"svg",
|
|
25298
25296
|
{
|
|
@@ -25329,26 +25327,26 @@ function fM(t) {
|
|
|
25329
25327
|
function gS(t) {
|
|
25330
25328
|
var e, n;
|
|
25331
25329
|
return /* @__PURE__ */ f.jsx("div", { className: "seam-battery-status", children: /* @__PURE__ */ f.jsx(
|
|
25332
|
-
|
|
25330
|
+
yM,
|
|
25333
25331
|
{
|
|
25334
25332
|
status: (e = t.device.properties.battery) == null ? void 0 : e.status,
|
|
25335
25333
|
level: (n = t.device.properties.battery) == null ? void 0 : n.level
|
|
25336
25334
|
}
|
|
25337
25335
|
) });
|
|
25338
25336
|
}
|
|
25339
|
-
function
|
|
25337
|
+
function yM(t) {
|
|
25340
25338
|
const { status: e, level: n } = t, r = n != null ? ` (${Math.floor(n * 100)}%)` : null;
|
|
25341
25339
|
return e === "full" ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25342
|
-
/* @__PURE__ */ f.jsx(
|
|
25340
|
+
/* @__PURE__ */ f.jsx(fM, {}),
|
|
25343
25341
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: `${Wl.full}${r ?? ""}` })
|
|
25344
25342
|
] }) : e === "good" ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25345
|
-
/* @__PURE__ */ f.jsx(
|
|
25343
|
+
/* @__PURE__ */ f.jsx(hM, {}),
|
|
25346
25344
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: `${Wl.high}${r ?? ""}` })
|
|
25347
25345
|
] }) : e === "low" ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25348
|
-
/* @__PURE__ */ f.jsx(
|
|
25346
|
+
/* @__PURE__ */ f.jsx(mM, {}),
|
|
25349
25347
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: `${Wl.low}${r ?? ""}` })
|
|
25350
25348
|
] }) : e === "critical" ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25351
|
-
/* @__PURE__ */ f.jsx(
|
|
25349
|
+
/* @__PURE__ */ f.jsx(pM, {}),
|
|
25352
25350
|
/* @__PURE__ */ f.jsx("span", { className: "seam-text-danger", children: `${Wl.critical}${r ?? ""}` })
|
|
25353
25351
|
] }) : null;
|
|
25354
25352
|
}
|
|
@@ -25394,7 +25392,7 @@ function vS(t) {
|
|
|
25394
25392
|
}
|
|
25395
25393
|
);
|
|
25396
25394
|
}
|
|
25397
|
-
function
|
|
25395
|
+
function gM(t) {
|
|
25398
25396
|
return /* @__PURE__ */ f.jsxs(
|
|
25399
25397
|
"svg",
|
|
25400
25398
|
{
|
|
@@ -25424,7 +25422,7 @@ function mM(t) {
|
|
|
25424
25422
|
}
|
|
25425
25423
|
);
|
|
25426
25424
|
}
|
|
25427
|
-
function
|
|
25425
|
+
function vM(t) {
|
|
25428
25426
|
return /* @__PURE__ */ f.jsxs(
|
|
25429
25427
|
"svg",
|
|
25430
25428
|
{
|
|
@@ -25454,21 +25452,21 @@ function yM(t) {
|
|
|
25454
25452
|
}
|
|
25455
25453
|
function bS(t) {
|
|
25456
25454
|
const { device: e } = t;
|
|
25457
|
-
return /* @__PURE__ */ f.jsx("div", { className: "seam-online-status", children: SS(e) ? /* @__PURE__ */ f.jsx(
|
|
25455
|
+
return /* @__PURE__ */ f.jsx("div", { className: "seam-online-status", children: SS(e) ? /* @__PURE__ */ f.jsx(bM, {}) : /* @__PURE__ */ f.jsx(SM, { isOnline: e.properties.online }) });
|
|
25458
25456
|
}
|
|
25459
|
-
function
|
|
25457
|
+
function bM() {
|
|
25460
25458
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25461
25459
|
/* @__PURE__ */ f.jsx(vS, {}),
|
|
25462
25460
|
/* @__PURE__ */ f.jsx("span", { className: "seam-text-danger", children: Qp.accountOffline })
|
|
25463
25461
|
] });
|
|
25464
25462
|
}
|
|
25465
|
-
function
|
|
25463
|
+
function SM(t) {
|
|
25466
25464
|
const { isOnline: e } = t;
|
|
25467
25465
|
return e ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25468
|
-
/* @__PURE__ */ f.jsx(
|
|
25466
|
+
/* @__PURE__ */ f.jsx(vM, {}),
|
|
25469
25467
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: Qp.online })
|
|
25470
25468
|
] }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
25471
|
-
/* @__PURE__ */ f.jsx(
|
|
25469
|
+
/* @__PURE__ */ f.jsx(gM, {}),
|
|
25472
25470
|
/* @__PURE__ */ f.jsx("span", { className: "seam-text-danger", children: Qp.deviceOffline })
|
|
25473
25471
|
] });
|
|
25474
25472
|
}
|
|
@@ -25477,7 +25475,7 @@ const SS = (t) => t.errors.filter((e) => e.error_code === "account_disconnected"
|
|
|
25477
25475
|
accountOffline: "Account Offline",
|
|
25478
25476
|
deviceOffline: "Device Offline"
|
|
25479
25477
|
};
|
|
25480
|
-
function
|
|
25478
|
+
function AM(t) {
|
|
25481
25479
|
var h;
|
|
25482
25480
|
const { device: e, disableLockUnlock: n, onBack: r, className: i } = t, [o, s] = yl(), l = K1(e), { accessCodes: c } = Y1({
|
|
25483
25481
|
device_id: e.device_id
|
|
@@ -25526,7 +25524,7 @@ function bM(t) {
|
|
|
25526
25524
|
] }),
|
|
25527
25525
|
" ",
|
|
25528
25526
|
/* @__PURE__ */ f.jsx(gS, { device: e }),
|
|
25529
|
-
/* @__PURE__ */ f.jsx(
|
|
25527
|
+
/* @__PURE__ */ f.jsx(aM, { device: e })
|
|
25530
25528
|
] })
|
|
25531
25529
|
] })
|
|
25532
25530
|
] }),
|
|
@@ -25554,7 +25552,7 @@ function bM(t) {
|
|
|
25554
25552
|
/* @__PURE__ */ f.jsx("span", { className: "seam-value", children: a })
|
|
25555
25553
|
] }),
|
|
25556
25554
|
/* @__PURE__ */ f.jsx("div", { className: "seam-right", children: !n && /* @__PURE__ */ f.jsx(
|
|
25557
|
-
|
|
25555
|
+
Ht,
|
|
25558
25556
|
{
|
|
25559
25557
|
size: "small",
|
|
25560
25558
|
onClick: () => {
|
|
@@ -25565,7 +25563,7 @@ function bM(t) {
|
|
|
25565
25563
|
) })
|
|
25566
25564
|
] }),
|
|
25567
25565
|
/* @__PURE__ */ f.jsx(
|
|
25568
|
-
|
|
25566
|
+
wM,
|
|
25569
25567
|
{
|
|
25570
25568
|
supportedCodeLengths: ((h = e.properties) == null ? void 0 : h.supported_code_lengths) ?? []
|
|
25571
25569
|
}
|
|
@@ -25574,7 +25572,7 @@ function bM(t) {
|
|
|
25574
25572
|
] })
|
|
25575
25573
|
] });
|
|
25576
25574
|
}
|
|
25577
|
-
function
|
|
25575
|
+
function wM(t) {
|
|
25578
25576
|
const { supportedCodeLengths: e } = t;
|
|
25579
25577
|
if (e.length === 0)
|
|
25580
25578
|
return null;
|
|
@@ -25611,7 +25609,7 @@ function Ah({
|
|
|
25611
25609
|
device_id: t
|
|
25612
25610
|
});
|
|
25613
25611
|
return i == null ? null : fl(i) ? /* @__PURE__ */ f.jsx(
|
|
25614
|
-
|
|
25612
|
+
AM,
|
|
25615
25613
|
{
|
|
25616
25614
|
className: r,
|
|
25617
25615
|
device: i,
|
|
@@ -25620,7 +25618,7 @@ function Ah({
|
|
|
25620
25618
|
}
|
|
25621
25619
|
) : null;
|
|
25622
25620
|
}
|
|
25623
|
-
const
|
|
25621
|
+
const EM = !0;
|
|
25624
25622
|
function AS({
|
|
25625
25623
|
accessCodeId: t,
|
|
25626
25624
|
disableLockUnlock: e = !1,
|
|
@@ -25646,7 +25644,7 @@ function AS({
|
|
|
25646
25644
|
}
|
|
25647
25645
|
);
|
|
25648
25646
|
const d = [
|
|
25649
|
-
...s.errors.filter(
|
|
25647
|
+
...s.errors.filter(CM).map((h) => ({
|
|
25650
25648
|
variant: "error",
|
|
25651
25649
|
message: h.message
|
|
25652
25650
|
})),
|
|
@@ -25669,13 +25667,13 @@ function AS({
|
|
|
25669
25667
|
/* @__PURE__ */ f.jsx("span", { className: "seam-label", children: sn.accessCode }),
|
|
25670
25668
|
/* @__PURE__ */ f.jsx("h5", { className: "seam-access-code-name", children: p }),
|
|
25671
25669
|
/* @__PURE__ */ f.jsx("div", { className: "seam-code", children: s.code }),
|
|
25672
|
-
/* @__PURE__ */ f.jsx("div", { className: "seam-duration", children: /* @__PURE__ */ f.jsx(
|
|
25670
|
+
/* @__PURE__ */ f.jsx("div", { className: "seam-duration", children: /* @__PURE__ */ f.jsx(xM, { accessCode: s }) })
|
|
25673
25671
|
]
|
|
25674
25672
|
}
|
|
25675
25673
|
),
|
|
25676
25674
|
/* @__PURE__ */ f.jsx(yS, { alerts: d, className: "seam-alerts-padded" }),
|
|
25677
25675
|
/* @__PURE__ */ f.jsx(
|
|
25678
|
-
|
|
25676
|
+
rT,
|
|
25679
25677
|
{
|
|
25680
25678
|
deviceId: s.device_id,
|
|
25681
25679
|
disableLockUnlock: e,
|
|
@@ -25684,9 +25682,9 @@ function AS({
|
|
|
25684
25682
|
)
|
|
25685
25683
|
] }),
|
|
25686
25684
|
!o && /* @__PURE__ */ f.jsxs("div", { className: "seam-actions", children: [
|
|
25687
|
-
!
|
|
25685
|
+
!EM,
|
|
25688
25686
|
!o && /* @__PURE__ */ f.jsx(
|
|
25689
|
-
|
|
25687
|
+
Ht,
|
|
25690
25688
|
{
|
|
25691
25689
|
size: "small",
|
|
25692
25690
|
onClick: () => {
|
|
@@ -25717,12 +25715,12 @@ function AS({
|
|
|
25717
25715
|
sn.timing,
|
|
25718
25716
|
":"
|
|
25719
25717
|
] }),
|
|
25720
|
-
/* @__PURE__ */ f.jsx("div", { className: "seam-content", children: /* @__PURE__ */ f.jsx(
|
|
25718
|
+
/* @__PURE__ */ f.jsx("div", { className: "seam-content", children: /* @__PURE__ */ f.jsx(OM, { accessCode: s }) })
|
|
25721
25719
|
] })
|
|
25722
25720
|
] })
|
|
25723
25721
|
] });
|
|
25724
25722
|
}
|
|
25725
|
-
function
|
|
25723
|
+
function OM({ accessCode: t }) {
|
|
25726
25724
|
return t.type === "ongoing" ? /* @__PURE__ */ f.jsx("span", { children: sn.ongoing }) : /* @__PURE__ */ f.jsxs("div", { className: "seam-times", children: [
|
|
25727
25725
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
25728
25726
|
/* @__PURE__ */ f.jsx("div", { className: "seam-label", children: sn.start }),
|
|
@@ -25736,7 +25734,7 @@ function wM({ accessCode: t }) {
|
|
|
25736
25734
|
] })
|
|
25737
25735
|
] });
|
|
25738
25736
|
}
|
|
25739
|
-
function
|
|
25737
|
+
function xM(t) {
|
|
25740
25738
|
const { accessCode: e } = t, n = iS("starts_at" in e ? e == null ? void 0 : e.starts_at : null) ?? !1;
|
|
25741
25739
|
return e.type === "ongoing" ? /* @__PURE__ */ f.jsxs("span", { children: [
|
|
25742
25740
|
/* @__PURE__ */ f.jsx("span", { className: "seam-label", children: "Active" }),
|
|
@@ -25777,7 +25775,7 @@ function Wp(t) {
|
|
|
25777
25775
|
year: "numeric"
|
|
25778
25776
|
});
|
|
25779
25777
|
}
|
|
25780
|
-
const
|
|
25778
|
+
const CM = (t) => "is_access_code_error" in t && !t.is_access_code_error || t.error_code === "failed_to_set_on_device" || t.error_code === "failed_to_remove_on_device", sn = {
|
|
25781
25779
|
accessCode: "Access code",
|
|
25782
25780
|
fallbackName: "Code",
|
|
25783
25781
|
id: "ID",
|
|
@@ -25788,19 +25786,19 @@ const OM = (t) => "is_access_code_error" in t && !t.is_access_code_error || t.er
|
|
|
25788
25786
|
end: "End",
|
|
25789
25787
|
editCode: "Edit code",
|
|
25790
25788
|
deleteCode: "Delete code"
|
|
25791
|
-
},
|
|
25789
|
+
}, IM = "seam-access-code-details", jM = {
|
|
25792
25790
|
accessCodeId: "string",
|
|
25793
25791
|
disableLockUnlock: "boolean",
|
|
25794
25792
|
disableDeleteAccessCode: "boolean",
|
|
25795
25793
|
onBack: "object",
|
|
25796
25794
|
onEdit: "object",
|
|
25797
25795
|
className: "string"
|
|
25798
|
-
},
|
|
25796
|
+
}, TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25799
25797
|
__proto__: null,
|
|
25800
25798
|
Component: AS,
|
|
25801
|
-
name:
|
|
25802
|
-
props:
|
|
25803
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
25799
|
+
name: IM,
|
|
25800
|
+
props: jM
|
|
25801
|
+
}, Symbol.toStringTag, { value: "Module" })), MM = "seam-access-code-table", zM = {
|
|
25804
25802
|
deviceId: "string",
|
|
25805
25803
|
disableLockUnlock: "boolean",
|
|
25806
25804
|
disableDeleteAccessCode: "boolean",
|
|
@@ -25812,16 +25810,16 @@ const OM = (t) => "is_access_code_error" in t && !t.is_access_code_error || t.er
|
|
|
25812
25810
|
onBack: "object",
|
|
25813
25811
|
heading: "string",
|
|
25814
25812
|
className: "string"
|
|
25815
|
-
},
|
|
25813
|
+
}, PM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25816
25814
|
__proto__: null,
|
|
25817
25815
|
Component: mS,
|
|
25818
|
-
name:
|
|
25819
|
-
props:
|
|
25816
|
+
name: MM,
|
|
25817
|
+
props: zM
|
|
25820
25818
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25821
|
-
function
|
|
25819
|
+
function _M({
|
|
25822
25820
|
willNavigateToWebview: t = !1
|
|
25823
25821
|
} = {}) {
|
|
25824
|
-
const { client: e } =
|
|
25822
|
+
const { client: e } = qt();
|
|
25825
25823
|
return Wa({
|
|
25826
25824
|
mutationFn: async (n) => {
|
|
25827
25825
|
if (e === null)
|
|
@@ -25833,10 +25831,10 @@ function zM({
|
|
|
25833
25831
|
}
|
|
25834
25832
|
});
|
|
25835
25833
|
}
|
|
25836
|
-
function
|
|
25834
|
+
function RM({
|
|
25837
25835
|
className: t
|
|
25838
25836
|
} = {}) {
|
|
25839
|
-
const { isLoading: e, mutate: n } =
|
|
25837
|
+
const { isLoading: e, mutate: n } = _M({
|
|
25840
25838
|
willNavigateToWebview: !0
|
|
25841
25839
|
}), r = P.useCallback(() => {
|
|
25842
25840
|
var i;
|
|
@@ -25845,37 +25843,37 @@ function PM({
|
|
|
25845
25843
|
});
|
|
25846
25844
|
}, [n]);
|
|
25847
25845
|
return /* @__PURE__ */ f.jsx(
|
|
25848
|
-
|
|
25846
|
+
Ht,
|
|
25849
25847
|
{
|
|
25850
25848
|
size: "small",
|
|
25851
25849
|
onClick: r,
|
|
25852
25850
|
className: t,
|
|
25853
25851
|
disabled: e,
|
|
25854
|
-
children:
|
|
25852
|
+
children: kM.connectAccount
|
|
25855
25853
|
}
|
|
25856
25854
|
);
|
|
25857
25855
|
}
|
|
25858
|
-
const
|
|
25856
|
+
const kM = {
|
|
25859
25857
|
connectAccount: "Connect Account"
|
|
25860
|
-
},
|
|
25858
|
+
}, NM = "seam-connect-account-button", DM = {
|
|
25861
25859
|
className: "string"
|
|
25862
|
-
},
|
|
25860
|
+
}, HM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25863
25861
|
__proto__: null,
|
|
25864
|
-
Component:
|
|
25865
|
-
name:
|
|
25866
|
-
props:
|
|
25867
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
25862
|
+
Component: RM,
|
|
25863
|
+
name: NM,
|
|
25864
|
+
props: DM
|
|
25865
|
+
}, Symbol.toStringTag, { value: "Module" })), VM = "seam-device-details", qM = {
|
|
25868
25866
|
deviceId: "string",
|
|
25869
25867
|
disableLockUnlock: "boolean",
|
|
25870
25868
|
onBack: "object",
|
|
25871
25869
|
className: "string"
|
|
25872
|
-
},
|
|
25870
|
+
}, FM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25873
25871
|
__proto__: null,
|
|
25874
25872
|
Component: Ah,
|
|
25875
|
-
name:
|
|
25876
|
-
props:
|
|
25873
|
+
name: VM,
|
|
25874
|
+
props: qM
|
|
25877
25875
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25878
|
-
function
|
|
25876
|
+
function LM({
|
|
25879
25877
|
devices: t,
|
|
25880
25878
|
filter: e,
|
|
25881
25879
|
onFilterSelect: n
|
|
@@ -25927,7 +25925,7 @@ const Xo = {
|
|
|
25927
25925
|
deviceIssue: "device issue",
|
|
25928
25926
|
deviceIssues: "device issues"
|
|
25929
25927
|
};
|
|
25930
|
-
function
|
|
25928
|
+
function UM(t) {
|
|
25931
25929
|
return /* @__PURE__ */ f.jsxs(
|
|
25932
25930
|
"svg",
|
|
25933
25931
|
{
|
|
@@ -25967,7 +25965,7 @@ function FM(t) {
|
|
|
25967
25965
|
}
|
|
25968
25966
|
);
|
|
25969
25967
|
}
|
|
25970
|
-
function
|
|
25968
|
+
function BM(t) {
|
|
25971
25969
|
return /* @__PURE__ */ f.jsxs(
|
|
25972
25970
|
"svg",
|
|
25973
25971
|
{
|
|
@@ -26005,7 +26003,7 @@ function LM(t) {
|
|
|
26005
26003
|
}
|
|
26006
26004
|
);
|
|
26007
26005
|
}
|
|
26008
|
-
function
|
|
26006
|
+
function $M(t) {
|
|
26009
26007
|
if (!fl(t.device))
|
|
26010
26008
|
return null;
|
|
26011
26009
|
const {
|
|
@@ -26013,15 +26011,15 @@ function UM(t) {
|
|
|
26013
26011
|
properties: { locked: e }
|
|
26014
26012
|
}
|
|
26015
26013
|
} = t;
|
|
26016
|
-
return /* @__PURE__ */ f.jsx("div", { className: "seam-lock-status", children: /* @__PURE__ */ f.jsx(
|
|
26014
|
+
return /* @__PURE__ */ f.jsx("div", { className: "seam-lock-status", children: /* @__PURE__ */ f.jsx(GM, { isLocked: e }) });
|
|
26017
26015
|
}
|
|
26018
|
-
function
|
|
26016
|
+
function GM(t) {
|
|
26019
26017
|
const { isLocked: e } = t;
|
|
26020
26018
|
return e ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
26021
|
-
/* @__PURE__ */ f.jsx(
|
|
26019
|
+
/* @__PURE__ */ f.jsx(UM, { className: "seam-lock-icon" }),
|
|
26022
26020
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: xg.locked })
|
|
26023
26021
|
] }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
26024
|
-
/* @__PURE__ */ f.jsx(
|
|
26022
|
+
/* @__PURE__ */ f.jsx(BM, { className: "seam-lock-icon" }),
|
|
26025
26023
|
/* @__PURE__ */ f.jsx("span", { className: "seam-status-text", children: xg.unlocked })
|
|
26026
26024
|
] });
|
|
26027
26025
|
}
|
|
@@ -26029,7 +26027,7 @@ const xg = {
|
|
|
26029
26027
|
locked: "Locked",
|
|
26030
26028
|
unlocked: "Unlocked"
|
|
26031
26029
|
};
|
|
26032
|
-
function
|
|
26030
|
+
function QM({
|
|
26033
26031
|
device: t,
|
|
26034
26032
|
onClick: e
|
|
26035
26033
|
}) {
|
|
@@ -26071,14 +26069,14 @@ function $M({
|
|
|
26071
26069
|
/* @__PURE__ */ f.jsxs("div", { className: "seam-device-statuses", children: [
|
|
26072
26070
|
/* @__PURE__ */ f.jsx(bS, { device: t }),
|
|
26073
26071
|
i && /* @__PURE__ */ f.jsx(gS, { device: t }),
|
|
26074
|
-
i && /* @__PURE__ */ f.jsx(
|
|
26072
|
+
i && /* @__PURE__ */ f.jsx($M, { device: t })
|
|
26075
26073
|
] })
|
|
26076
26074
|
] })
|
|
26077
26075
|
] })
|
|
26078
26076
|
] });
|
|
26079
26077
|
}
|
|
26080
|
-
function
|
|
26081
|
-
const { client: e } =
|
|
26078
|
+
function WM(t) {
|
|
26079
|
+
const { client: e } = qt(), n = jr(), { data: r, ...i } = Tr(
|
|
26082
26080
|
{
|
|
26083
26081
|
enabled: e != null,
|
|
26084
26082
|
queryKey: ["devices", "list", t],
|
|
@@ -26094,11 +26092,11 @@ function GM(t) {
|
|
|
26094
26092
|
);
|
|
26095
26093
|
return { ...i, devices: r };
|
|
26096
26094
|
}
|
|
26097
|
-
const
|
|
26095
|
+
const ZM = (t, e) => {
|
|
26098
26096
|
const n = e.trim();
|
|
26099
26097
|
return n === "" ? !0 : t.properties.name.toLowerCase().includes(n);
|
|
26100
26098
|
};
|
|
26101
|
-
function
|
|
26099
|
+
function KM({
|
|
26102
26100
|
deviceIds: t,
|
|
26103
26101
|
connectedAccountIds: e,
|
|
26104
26102
|
disableLockUnlock: n = !1,
|
|
@@ -26107,19 +26105,19 @@ function WM({
|
|
|
26107
26105
|
},
|
|
26108
26106
|
preventDefaultOnDeviceClick: o = !1,
|
|
26109
26107
|
onBack: s,
|
|
26110
|
-
deviceFilter: l =
|
|
26108
|
+
deviceFilter: l = ZM,
|
|
26111
26109
|
deviceComparator: c = J1,
|
|
26112
26110
|
heading: a = fu.devices,
|
|
26113
26111
|
title: u = fu.devices,
|
|
26114
26112
|
className: p
|
|
26115
26113
|
} = {}) {
|
|
26116
|
-
const { devices: d, isLoading: h, isError: m, error: v } =
|
|
26114
|
+
const { devices: d, isLoading: h, isError: m, error: v } = WM({
|
|
26117
26115
|
device_ids: t,
|
|
26118
26116
|
connected_account_ids: e
|
|
26119
26117
|
}), [b, y] = P.useState(null), [g, S] = P.useState(""), E = P.useMemo(
|
|
26120
26118
|
() => {
|
|
26121
26119
|
var A, w;
|
|
26122
|
-
return ((w = (A = d == null ? void 0 : d.filter(fl)) == null ? void 0 : A.filter((x) => l(x, g))) == null ? void 0 : w.sort(c)) ?? [];
|
|
26120
|
+
return ((w = (A = d == null ? void 0 : d.filter((x) => fl(x) || Wj(x))) == null ? void 0 : A.filter((x) => l(x, g))) == null ? void 0 : w.sort(c)) ?? [];
|
|
26123
26121
|
},
|
|
26124
26122
|
[d, g, l, c]
|
|
26125
26123
|
), C = P.useCallback(
|
|
@@ -26159,10 +26157,10 @@ function WM({
|
|
|
26159
26157
|
}
|
|
26160
26158
|
)
|
|
26161
26159
|
] }),
|
|
26162
|
-
/* @__PURE__ */ f.jsx(cS, { children: /* @__PURE__ */ f.jsx(
|
|
26160
|
+
/* @__PURE__ */ f.jsx(cS, { children: /* @__PURE__ */ f.jsx(YM, { devices: E, onDeviceClick: C }) })
|
|
26163
26161
|
] });
|
|
26164
26162
|
}
|
|
26165
|
-
function
|
|
26163
|
+
function YM(t) {
|
|
26166
26164
|
const { devices: e, onDeviceClick: n } = t, [r, i] = P.useState(
|
|
26167
26165
|
null
|
|
26168
26166
|
);
|
|
@@ -26171,7 +26169,7 @@ function ZM(t) {
|
|
|
26171
26169
|
const o = e.filter((s) => r === null ? !0 : r === "account_issues" ? s.errors.filter((l) => "is_connected_account_error" in l).length > 0 : r === "device_issues" ? s.errors.filter((l) => "is_device_error" in l).length > 0 : !0);
|
|
26172
26170
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
26173
26171
|
/* @__PURE__ */ f.jsx(
|
|
26174
|
-
|
|
26172
|
+
LM,
|
|
26175
26173
|
{
|
|
26176
26174
|
devices: e,
|
|
26177
26175
|
filter: r,
|
|
@@ -26179,7 +26177,7 @@ function ZM(t) {
|
|
|
26179
26177
|
}
|
|
26180
26178
|
),
|
|
26181
26179
|
o.map((s) => /* @__PURE__ */ f.jsx(
|
|
26182
|
-
|
|
26180
|
+
QM,
|
|
26183
26181
|
{
|
|
26184
26182
|
device: s,
|
|
26185
26183
|
onClick: () => {
|
|
@@ -26193,7 +26191,7 @@ function ZM(t) {
|
|
|
26193
26191
|
const fu = {
|
|
26194
26192
|
devices: "Devices",
|
|
26195
26193
|
noDevicesMessage: "Sorry, no devices were found"
|
|
26196
|
-
},
|
|
26194
|
+
}, JM = "seam-device-table", XM = {
|
|
26197
26195
|
deviceIds: "array",
|
|
26198
26196
|
connectedAccountIds: "array",
|
|
26199
26197
|
disableLockUnlock: "boolean",
|
|
@@ -26205,18 +26203,18 @@ const fu = {
|
|
|
26205
26203
|
onBack: "object",
|
|
26206
26204
|
heading: "string",
|
|
26207
26205
|
className: "string"
|
|
26208
|
-
},
|
|
26206
|
+
}, ez = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26209
26207
|
__proto__: null,
|
|
26210
|
-
Component:
|
|
26211
|
-
name:
|
|
26212
|
-
props:
|
|
26208
|
+
Component: KM,
|
|
26209
|
+
name: JM,
|
|
26210
|
+
props: XM
|
|
26213
26211
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26214
|
-
function
|
|
26212
|
+
function tz({
|
|
26215
26213
|
visible: t
|
|
26216
26214
|
}) {
|
|
26217
26215
|
return t ? /* @__PURE__ */ f.jsx("div", { className: "hidden-devices-overlay" }) : null;
|
|
26218
26216
|
}
|
|
26219
|
-
function
|
|
26217
|
+
function nz({
|
|
26220
26218
|
onClick: t,
|
|
26221
26219
|
visible: e,
|
|
26222
26220
|
expanded: n,
|
|
@@ -26235,12 +26233,12 @@ const Cg = {
|
|
|
26235
26233
|
showLess: "Show less",
|
|
26236
26234
|
showAll: (t) => `See all ${t} devices`
|
|
26237
26235
|
};
|
|
26238
|
-
function
|
|
26236
|
+
function rz({
|
|
26239
26237
|
deviceModel: t
|
|
26240
26238
|
}) {
|
|
26241
26239
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-row", children: [
|
|
26242
26240
|
/* @__PURE__ */ f.jsx(wS, { deviceModel: t }),
|
|
26243
|
-
/* @__PURE__ */ f.jsx(
|
|
26241
|
+
/* @__PURE__ */ f.jsx(iz, { deviceModel: t }),
|
|
26244
26242
|
/* @__PURE__ */ f.jsx(ES, { deviceModel: t })
|
|
26245
26243
|
] });
|
|
26246
26244
|
}
|
|
@@ -26249,7 +26247,7 @@ function wS({
|
|
|
26249
26247
|
}) {
|
|
26250
26248
|
return /* @__PURE__ */ f.jsx("div", { className: "seam-col seam-device-image-col", children: /* @__PURE__ */ f.jsx("div", { className: "seam-image-box", children: /* @__PURE__ */ f.jsx("img", { width: 40, src: t.icon_url }) }) });
|
|
26251
26249
|
}
|
|
26252
|
-
function
|
|
26250
|
+
function iz({
|
|
26253
26251
|
deviceModel: t
|
|
26254
26252
|
}) {
|
|
26255
26253
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-col seam-model-col", children: [
|
|
@@ -26264,14 +26262,14 @@ function nz({
|
|
|
26264
26262
|
function ES({
|
|
26265
26263
|
deviceModel: t
|
|
26266
26264
|
}) {
|
|
26267
|
-
const e =
|
|
26268
|
-
return /* @__PURE__ */ f.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ f.jsx("div", { className: J("seam-status-pill", `status-${e}`), children: /* @__PURE__ */ f.jsx("span", { children:
|
|
26265
|
+
const e = oz[t.support_level] ?? "unknown";
|
|
26266
|
+
return /* @__PURE__ */ f.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ f.jsx("div", { className: J("seam-status-pill", `status-${e}`), children: /* @__PURE__ */ f.jsx("span", { children: az[t.support_level] }) }) });
|
|
26269
26267
|
}
|
|
26270
|
-
const
|
|
26268
|
+
const oz = {
|
|
26271
26269
|
live: "green",
|
|
26272
26270
|
beta: "blue",
|
|
26273
26271
|
unsupported: "unknown"
|
|
26274
|
-
},
|
|
26272
|
+
}, az = {
|
|
26275
26273
|
live: "LIVE",
|
|
26276
26274
|
beta: "BETA",
|
|
26277
26275
|
unsupported: "Inquire"
|
|
@@ -26281,8 +26279,8 @@ const rz = {
|
|
|
26281
26279
|
zigbee: "Zigbee",
|
|
26282
26280
|
unknown: "Unknown"
|
|
26283
26281
|
};
|
|
26284
|
-
function
|
|
26285
|
-
const { client: e } =
|
|
26282
|
+
function sz(t) {
|
|
26283
|
+
const { client: e } = qt(), { data: n, ...r } = Tr({
|
|
26286
26284
|
enabled: e != null,
|
|
26287
26285
|
queryKey: ["devices", "list_device_providers", t],
|
|
26288
26286
|
queryFn: async () => e == null ? [] : await e.devices.listDeviceProviders(t)
|
|
@@ -26290,16 +26288,16 @@ function oz(t) {
|
|
|
26290
26288
|
return { ...r, deviceProviders: n };
|
|
26291
26289
|
}
|
|
26292
26290
|
function xS(t) {
|
|
26293
|
-
const { deviceProviders: e } =
|
|
26294
|
-
return (e == null ? void 0 : e.find((r) => r.device_provider_name === t)) ??
|
|
26291
|
+
const { deviceProviders: e } = sz();
|
|
26292
|
+
return (e == null ? void 0 : e.find((r) => r.device_provider_name === t)) ?? lz;
|
|
26295
26293
|
}
|
|
26296
|
-
const
|
|
26294
|
+
const lz = {
|
|
26297
26295
|
device_provider_name: "unknown",
|
|
26298
26296
|
display_name: "Unknown",
|
|
26299
26297
|
image_url: "https://connect.getseam.com/assets/images/logos/seam.png",
|
|
26300
26298
|
provider_categories: []
|
|
26301
26299
|
}, Ig = 3;
|
|
26302
|
-
function
|
|
26300
|
+
function uz({
|
|
26303
26301
|
brand: t,
|
|
26304
26302
|
deviceModels: e
|
|
26305
26303
|
}) {
|
|
@@ -26328,12 +26326,12 @@ function sz({
|
|
|
26328
26326
|
/* @__PURE__ */ f.jsxs("h5", { className: "seam-brand-name", children: [
|
|
26329
26327
|
n.display_name,
|
|
26330
26328
|
" ",
|
|
26331
|
-
|
|
26329
|
+
dz.devices
|
|
26332
26330
|
] }),
|
|
26333
26331
|
o && /* @__PURE__ */ f.jsx(Td, { className: "chevron" })
|
|
26334
26332
|
] }),
|
|
26335
26333
|
/* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content", children: s.map((c, a) => /* @__PURE__ */ f.jsx(
|
|
26336
|
-
|
|
26334
|
+
rz,
|
|
26337
26335
|
{
|
|
26338
26336
|
deviceModel: c
|
|
26339
26337
|
},
|
|
@@ -26346,7 +26344,7 @@ function sz({
|
|
|
26346
26344
|
].join(":")
|
|
26347
26345
|
)) }),
|
|
26348
26346
|
/* @__PURE__ */ f.jsx(
|
|
26349
|
-
|
|
26347
|
+
nz,
|
|
26350
26348
|
{
|
|
26351
26349
|
visible: o,
|
|
26352
26350
|
onClick: i,
|
|
@@ -26354,24 +26352,24 @@ function sz({
|
|
|
26354
26352
|
totalDeviceCount: e.length
|
|
26355
26353
|
}
|
|
26356
26354
|
),
|
|
26357
|
-
/* @__PURE__ */ f.jsx(
|
|
26355
|
+
/* @__PURE__ */ f.jsx(tz, { visible: o && !r })
|
|
26358
26356
|
]
|
|
26359
26357
|
}
|
|
26360
26358
|
);
|
|
26361
26359
|
}
|
|
26362
|
-
const
|
|
26360
|
+
const dz = {
|
|
26363
26361
|
devices: "Devices"
|
|
26364
26362
|
};
|
|
26365
|
-
function
|
|
26363
|
+
function cz({
|
|
26366
26364
|
deviceModel: t
|
|
26367
26365
|
}) {
|
|
26368
26366
|
return /* @__PURE__ */ f.jsxs("div", { className: "seam-row filter-result-row", children: [
|
|
26369
26367
|
/* @__PURE__ */ f.jsx(wS, { deviceModel: t }),
|
|
26370
|
-
/* @__PURE__ */ f.jsx(
|
|
26368
|
+
/* @__PURE__ */ f.jsx(pz, { deviceModel: t }),
|
|
26371
26369
|
/* @__PURE__ */ f.jsx(ES, { deviceModel: t })
|
|
26372
26370
|
] });
|
|
26373
26371
|
}
|
|
26374
|
-
function
|
|
26372
|
+
function pz({
|
|
26375
26373
|
deviceModel: t
|
|
26376
26374
|
}) {
|
|
26377
26375
|
const e = xS(t.brand);
|
|
@@ -26396,7 +26394,7 @@ function dz({
|
|
|
26396
26394
|
] });
|
|
26397
26395
|
}
|
|
26398
26396
|
function CS(t) {
|
|
26399
|
-
const { client: e } =
|
|
26397
|
+
const { client: e } = qt(), { data: n, ...r } = Tr({
|
|
26400
26398
|
enabled: e != null,
|
|
26401
26399
|
queryKey: ["device_models", "list", t],
|
|
26402
26400
|
queryFn: async () => e == null ? [] : await e.deviceModels.list({
|
|
@@ -26406,7 +26404,7 @@ function CS(t) {
|
|
|
26406
26404
|
});
|
|
26407
26405
|
return { ...r, deviceModels: n };
|
|
26408
26406
|
}
|
|
26409
|
-
const
|
|
26407
|
+
const fz = ({
|
|
26410
26408
|
filterValue: t,
|
|
26411
26409
|
filters: e,
|
|
26412
26410
|
brands: n,
|
|
@@ -26421,14 +26419,14 @@ const cz = ({
|
|
|
26421
26419
|
deviceModels: (s = o.deviceModels) == null ? void 0 : s.filter(({ brand: l }) => n === null ? !0 : n.includes(l)).filter(({ brand: l }) => !r.includes(l))
|
|
26422
26420
|
};
|
|
26423
26421
|
};
|
|
26424
|
-
function
|
|
26422
|
+
function hz({
|
|
26425
26423
|
resetFilterValue: t,
|
|
26426
26424
|
filterValue: e,
|
|
26427
26425
|
filters: n,
|
|
26428
26426
|
brands: r,
|
|
26429
26427
|
excludedBrands: i
|
|
26430
26428
|
}) {
|
|
26431
|
-
const { deviceModels: o, isLoading: s, isError: l, refetch: c } =
|
|
26429
|
+
const { deviceModels: o, isLoading: s, isError: l, refetch: c } = fz(
|
|
26432
26430
|
{
|
|
26433
26431
|
filterValue: e,
|
|
26434
26432
|
filters: n,
|
|
@@ -26439,7 +26437,7 @@ function pz({
|
|
|
26439
26437
|
return s ? /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content-state-block", children: /* @__PURE__ */ f.jsx("p", { children: li.loading }) }) : l ? /* @__PURE__ */ f.jsxs("div", { className: "seam-supported-device-table-content-state-block", children: [
|
|
26440
26438
|
/* @__PURE__ */ f.jsx("p", { children: li.error }),
|
|
26441
26439
|
/* @__PURE__ */ f.jsx(
|
|
26442
|
-
|
|
26440
|
+
Ht,
|
|
26443
26441
|
{
|
|
26444
26442
|
variant: "solid",
|
|
26445
26443
|
size: "small",
|
|
@@ -26450,13 +26448,13 @@ function pz({
|
|
|
26450
26448
|
}
|
|
26451
26449
|
)
|
|
26452
26450
|
] }) : o == null ? null : o.length === 0 ? /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content", children: /* @__PURE__ */ f.jsx(
|
|
26453
|
-
|
|
26451
|
+
mz,
|
|
26454
26452
|
{
|
|
26455
26453
|
filterValue: e,
|
|
26456
26454
|
resetFilterValue: t
|
|
26457
26455
|
}
|
|
26458
26456
|
) }) : e.trim() !== "" || n.brand !== null ? /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content", children: o.map((p, d) => /* @__PURE__ */ f.jsx(
|
|
26459
|
-
|
|
26457
|
+
cz,
|
|
26460
26458
|
{
|
|
26461
26459
|
deviceModel: p
|
|
26462
26460
|
},
|
|
@@ -26467,9 +26465,9 @@ function pz({
|
|
|
26467
26465
|
p.manufacturer_model_id,
|
|
26468
26466
|
d
|
|
26469
26467
|
].join(":")
|
|
26470
|
-
)) }) : /* @__PURE__ */ f.jsx(f.Fragment, { children: Object.entries(
|
|
26468
|
+
)) }) : /* @__PURE__ */ f.jsx(f.Fragment, { children: Object.entries(yz(o)).map(
|
|
26471
26469
|
([p, d]) => /* @__PURE__ */ f.jsx(
|
|
26472
|
-
|
|
26470
|
+
uz,
|
|
26473
26471
|
{
|
|
26474
26472
|
brand: p,
|
|
26475
26473
|
deviceModels: d
|
|
@@ -26478,14 +26476,14 @@ function pz({
|
|
|
26478
26476
|
)
|
|
26479
26477
|
) });
|
|
26480
26478
|
}
|
|
26481
|
-
function
|
|
26479
|
+
function mz({
|
|
26482
26480
|
filterValue: t,
|
|
26483
26481
|
resetFilterValue: e
|
|
26484
26482
|
}) {
|
|
26485
26483
|
const n = /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
26486
26484
|
/* @__PURE__ */ f.jsx("p", { children: li.noMatch }),
|
|
26487
26485
|
/* @__PURE__ */ f.jsx(
|
|
26488
|
-
|
|
26486
|
+
Ht,
|
|
26489
26487
|
{
|
|
26490
26488
|
variant: "outline",
|
|
26491
26489
|
size: "small",
|
|
@@ -26497,7 +26495,7 @@ function fz({
|
|
|
26497
26495
|
] });
|
|
26498
26496
|
return /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content-message-row", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content-message", children: t.length === 0 ? /* @__PURE__ */ f.jsx("p", { children: li.noneFound }) : n }) }) });
|
|
26499
26497
|
}
|
|
26500
|
-
function
|
|
26498
|
+
function yz(t) {
|
|
26501
26499
|
const e = {};
|
|
26502
26500
|
for (const n of t) {
|
|
26503
26501
|
const { brand: r } = n, i = e[r] ?? [];
|
|
@@ -26513,7 +26511,7 @@ const li = {
|
|
|
26513
26511
|
noMatch: "No device models matched your search.",
|
|
26514
26512
|
clear: "Clear search terms"
|
|
26515
26513
|
};
|
|
26516
|
-
function
|
|
26514
|
+
function gz(t) {
|
|
26517
26515
|
return /* @__PURE__ */ f.jsx(
|
|
26518
26516
|
"svg",
|
|
26519
26517
|
{
|
|
@@ -26532,8 +26530,8 @@ function mz(t) {
|
|
|
26532
26530
|
}
|
|
26533
26531
|
);
|
|
26534
26532
|
}
|
|
26535
|
-
function
|
|
26536
|
-
label: t =
|
|
26533
|
+
function vz({
|
|
26534
|
+
label: t = bz.filter,
|
|
26537
26535
|
allLabel: e,
|
|
26538
26536
|
options: n,
|
|
26539
26537
|
hideAllOption: r = !1,
|
|
@@ -26549,7 +26547,7 @@ function yz({
|
|
|
26549
26547
|
{
|
|
26550
26548
|
renderButton: ({ onOpen: c }) => /* @__PURE__ */ f.jsxs("button", { onClick: c, children: [
|
|
26551
26549
|
/* @__PURE__ */ f.jsx("span", { children: s }),
|
|
26552
|
-
/* @__PURE__ */ f.jsx(
|
|
26550
|
+
/* @__PURE__ */ f.jsx(gz, {})
|
|
26553
26551
|
] }),
|
|
26554
26552
|
children: l.map((c, a) => /* @__PURE__ */ f.jsx(
|
|
26555
26553
|
la,
|
|
@@ -26565,13 +26563,13 @@ function yz({
|
|
|
26565
26563
|
)
|
|
26566
26564
|
] });
|
|
26567
26565
|
}
|
|
26568
|
-
const
|
|
26566
|
+
const bz = {
|
|
26569
26567
|
filter: "Filter"
|
|
26570
26568
|
};
|
|
26571
|
-
function
|
|
26569
|
+
function Sz(t) {
|
|
26572
26570
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
26573
26571
|
}
|
|
26574
|
-
function
|
|
26572
|
+
function Az({
|
|
26575
26573
|
filterValue: t,
|
|
26576
26574
|
setFilterValue: e,
|
|
26577
26575
|
filters: n,
|
|
@@ -26579,7 +26577,7 @@ function bz({
|
|
|
26579
26577
|
brands: i,
|
|
26580
26578
|
excludedBrands: o
|
|
26581
26579
|
}) {
|
|
26582
|
-
const s =
|
|
26580
|
+
const s = wz(n), l = Ez(i, o), c = (p) => {
|
|
26583
26581
|
r((d) => ({
|
|
26584
26582
|
...d,
|
|
26585
26583
|
[p]: null
|
|
@@ -26592,7 +26590,7 @@ function bz({
|
|
|
26592
26590
|
bh,
|
|
26593
26591
|
{
|
|
26594
26592
|
renderButton: ({ onOpen: p }) => /* @__PURE__ */ f.jsx(
|
|
26595
|
-
|
|
26593
|
+
Ht,
|
|
26596
26594
|
{
|
|
26597
26595
|
variant: "outline",
|
|
26598
26596
|
className: "seam-filters-button",
|
|
@@ -26609,7 +26607,7 @@ function bz({
|
|
|
26609
26607
|
},
|
|
26610
26608
|
children: [
|
|
26611
26609
|
/* @__PURE__ */ f.jsx("div", { className: "seam-filter-menu-row", children: /* @__PURE__ */ f.jsx(
|
|
26612
|
-
|
|
26610
|
+
vz,
|
|
26613
26611
|
{
|
|
26614
26612
|
label: ea.brand,
|
|
26615
26613
|
allLabel: u,
|
|
@@ -26670,14 +26668,14 @@ function bz({
|
|
|
26670
26668
|
] })
|
|
26671
26669
|
] });
|
|
26672
26670
|
}
|
|
26673
|
-
const
|
|
26671
|
+
const wz = (t) => {
|
|
26674
26672
|
let e = 0;
|
|
26675
26673
|
return t.brand !== null && e++, t.supportedOnly || e++, e;
|
|
26676
|
-
},
|
|
26674
|
+
}, Ez = (t, e) => {
|
|
26677
26675
|
const { deviceModels: n } = CS();
|
|
26678
26676
|
if (n == null)
|
|
26679
26677
|
return [];
|
|
26680
|
-
const r = n.map(({ brand: i }) => i.trim()).filter((i) => i !== "").filter((i) => t === null ? !0 : t.includes(i)).filter((i) => !e.includes(i)).map((i) =>
|
|
26678
|
+
const r = n.map(({ brand: i }) => i.trim()).filter((i) => i !== "").filter((i) => t === null ? !0 : t.includes(i)).filter((i) => !e.includes(i)).map((i) => Sz(i));
|
|
26681
26679
|
return Array.from(new Set(r));
|
|
26682
26680
|
}, ea = {
|
|
26683
26681
|
all: "All",
|
|
@@ -26686,7 +26684,7 @@ const Sz = (t) => {
|
|
|
26686
26684
|
filter: "Filter",
|
|
26687
26685
|
filters: "Filters"
|
|
26688
26686
|
};
|
|
26689
|
-
function
|
|
26687
|
+
function Oz({
|
|
26690
26688
|
disableFilter: t = !1,
|
|
26691
26689
|
cannotFilter: e,
|
|
26692
26690
|
brands: n = null,
|
|
@@ -26706,7 +26704,7 @@ function wz({
|
|
|
26706
26704
|
),
|
|
26707
26705
|
children: [
|
|
26708
26706
|
!a && /* @__PURE__ */ f.jsx(
|
|
26709
|
-
|
|
26707
|
+
Az,
|
|
26710
26708
|
{
|
|
26711
26709
|
filterValue: o,
|
|
26712
26710
|
setFilterValue: s,
|
|
@@ -26717,7 +26715,7 @@ function wz({
|
|
|
26717
26715
|
}
|
|
26718
26716
|
),
|
|
26719
26717
|
/* @__PURE__ */ f.jsx(
|
|
26720
|
-
|
|
26718
|
+
hz,
|
|
26721
26719
|
{
|
|
26722
26720
|
resetFilterValue: () => {
|
|
26723
26721
|
s("");
|
|
@@ -26732,26 +26730,26 @@ function wz({
|
|
|
26732
26730
|
}
|
|
26733
26731
|
);
|
|
26734
26732
|
}
|
|
26735
|
-
const
|
|
26733
|
+
const xz = "seam-supported-device-table", Cz = {
|
|
26736
26734
|
cannotFilter: "boolean",
|
|
26737
26735
|
disableFilter: "boolean",
|
|
26738
26736
|
brands: "array",
|
|
26739
26737
|
excludedBrands: "array",
|
|
26740
26738
|
className: "string"
|
|
26741
|
-
},
|
|
26739
|
+
}, Iz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26742
26740
|
__proto__: null,
|
|
26743
|
-
Component:
|
|
26744
|
-
name:
|
|
26745
|
-
props:
|
|
26746
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26741
|
+
Component: Oz,
|
|
26742
|
+
name: xz,
|
|
26743
|
+
props: Cz
|
|
26744
|
+
}, Symbol.toStringTag, { value: "Module" })), jz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26747
26745
|
__proto__: null,
|
|
26748
|
-
AccessCodeDetails:
|
|
26749
|
-
AccessCodeTable:
|
|
26750
|
-
ConnectAccountButton:
|
|
26751
|
-
DeviceDetails:
|
|
26752
|
-
DeviceTable:
|
|
26753
|
-
SupportedDeviceTable:
|
|
26754
|
-
}, Symbol.toStringTag, { value: "Module" })), jg =
|
|
26746
|
+
AccessCodeDetails: TM,
|
|
26747
|
+
AccessCodeTable: PM,
|
|
26748
|
+
ConnectAccountButton: HM,
|
|
26749
|
+
DeviceDetails: FM,
|
|
26750
|
+
DeviceTable: ez,
|
|
26751
|
+
SupportedDeviceTable: Iz
|
|
26752
|
+
}, Symbol.toStringTag, { value: "Module" })), jg = jz, Tz = [];
|
|
26755
26753
|
for (const t of Object.keys(jg)) {
|
|
26756
26754
|
const e = jg[t];
|
|
26757
26755
|
if (e == null)
|
|
@@ -26761,9 +26759,9 @@ for (const t of Object.keys(jg)) {
|
|
|
26761
26759
|
throw new Error(`Missing element name for ${t}`);
|
|
26762
26760
|
if (r == null)
|
|
26763
26761
|
throw new Error(`Missing element Component for ${t}`);
|
|
26764
|
-
|
|
26762
|
+
Tz.push(n), DO({ name: n, Component: r, props: i });
|
|
26765
26763
|
}
|
|
26766
26764
|
export {
|
|
26767
|
-
|
|
26765
|
+
Tz as default
|
|
26768
26766
|
};
|
|
26769
26767
|
//# sourceMappingURL=elements.js.map
|