@seamapi/react 1.62.0 → 1.63.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 +962 -941
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.d.ts +1 -1
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js +4 -4
- package/lib/seam/components/AccessCodeDetails/AccessCodeDetails.js.map +1 -1
- package/lib/seam/components/AccessCodeTable/AccessCodeTable.d.ts +1 -1
- package/lib/seam/components/AccessCodeTable/AccessCodeTable.js +4 -4
- package/lib/seam/components/AccessCodeTable/AccessCodeTable.js.map +1 -1
- package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.d.ts +1 -1
- package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js +2 -2
- package/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.js.map +1 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.d.ts +1 -1
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js +2 -2
- package/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.js.map +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.d.ts +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js +2 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js.map +1 -1
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.js +2 -2
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.js.map +1 -1
- package/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.d.ts +1 -1
- package/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.js +3 -4
- package/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.js.map +1 -1
- package/lib/seam/components/DeviceTable/DeviceTable.d.ts +1 -1
- package/lib/seam/components/DeviceTable/DeviceTable.js +2 -2
- package/lib/seam/components/DeviceTable/DeviceTable.js.map +1 -1
- package/lib/seam/components/common-props.d.ts +1 -0
- package/lib/seam/components/common-props.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/element.tsx +1 -0
- package/src/lib/seam/components/AccessCodeDetails/AccessCodeDetails.tsx +16 -12
- package/src/lib/seam/components/AccessCodeTable/AccessCodeTable.tsx +4 -0
- package/src/lib/seam/components/ClimateSettingScheduleDetails/ClimateSettingScheduleDetails.tsx +2 -0
- package/src/lib/seam/components/ClimateSettingScheduleTable/ClimateSettingScheduleTable.tsx +2 -0
- package/src/lib/seam/components/DeviceDetails/DeviceDetails.tsx +2 -0
- package/src/lib/seam/components/DeviceDetails/LockDeviceDetails.tsx +2 -0
- package/src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx +16 -14
- package/src/lib/seam/components/DeviceTable/DeviceTable.tsx +2 -0
- package/src/lib/seam/components/common-props.tsx +1 -0
- package/src/lib/version.ts +1 -1
package/dist/elements.js
CHANGED
|
@@ -2,7 +2,7 @@ var hy = (t, e, n) => {
|
|
|
2
2
|
if (!e.has(t))
|
|
3
3
|
throw TypeError("Cannot " + n);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var re = (t, e, n) => (hy(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Xt = (t, e, n) => {
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
@@ -11,7 +11,7 @@ var K = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
11
11
|
function za(t) {
|
|
12
12
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13
13
|
}
|
|
14
|
-
var H1 = { exports: {} }, Sc = {}, q1 = { exports: {} },
|
|
14
|
+
var H1 = { exports: {} }, Sc = {}, q1 = { exports: {} }, ne = {};
|
|
15
15
|
/**
|
|
16
16
|
* @license React
|
|
17
17
|
* react.production.min.js
|
|
@@ -146,7 +146,7 @@ function yE(t) {
|
|
|
146
146
|
throw t._result;
|
|
147
147
|
}
|
|
148
148
|
var gt = { current: null }, fd = { transition: null }, gE = { ReactCurrentDispatcher: gt, ReactCurrentBatchConfig: fd, ReactCurrentOwner: Th };
|
|
149
|
-
|
|
149
|
+
ne.Children = { map: Pu, forEach: function(t, e, n) {
|
|
150
150
|
Pu(t, function() {
|
|
151
151
|
e.apply(this, arguments);
|
|
152
152
|
}, n);
|
|
@@ -164,14 +164,14 @@ re.Children = { map: Pu, forEach: function(t, e, n) {
|
|
|
164
164
|
throw Error("React.Children.only expected to receive a single React element child.");
|
|
165
165
|
return t;
|
|
166
166
|
} };
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
ne.Component = Pa;
|
|
168
|
+
ne.Fragment = iE;
|
|
169
|
+
ne.Profiler = aE;
|
|
170
|
+
ne.PureComponent = Ih;
|
|
171
|
+
ne.StrictMode = sE;
|
|
172
|
+
ne.Suspense = dE;
|
|
173
|
+
ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = gE;
|
|
174
|
+
ne.cloneElement = function(t, e, n) {
|
|
175
175
|
if (t == null)
|
|
176
176
|
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + t + ".");
|
|
177
177
|
var r = L1({}, t.props), i = t.key, s = t.ref, o = t._owner;
|
|
@@ -192,28 +192,28 @@ re.cloneElement = function(t, e, n) {
|
|
|
192
192
|
}
|
|
193
193
|
return { $$typeof: el, type: t.type, key: i, ref: s, props: r, _owner: o };
|
|
194
194
|
};
|
|
195
|
-
|
|
195
|
+
ne.createContext = function(t) {
|
|
196
196
|
return t = { $$typeof: lE, _currentValue: t, _currentValue2: t, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, t.Provider = { $$typeof: oE, _context: t }, t.Consumer = t;
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
ne.createElement = Q1;
|
|
199
|
+
ne.createFactory = function(t) {
|
|
200
200
|
var e = Q1.bind(null, t);
|
|
201
201
|
return e.type = t, e;
|
|
202
202
|
};
|
|
203
|
-
|
|
203
|
+
ne.createRef = function() {
|
|
204
204
|
return { current: null };
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
ne.forwardRef = function(t) {
|
|
207
207
|
return { $$typeof: uE, render: t };
|
|
208
208
|
};
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
ne.isValidElement = _h;
|
|
210
|
+
ne.lazy = function(t) {
|
|
211
211
|
return { $$typeof: pE, _payload: { _status: -1, _result: t }, _init: yE };
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
ne.memo = function(t, e) {
|
|
214
214
|
return { $$typeof: cE, type: t, compare: e === void 0 ? null : e };
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
ne.startTransition = function(t) {
|
|
217
217
|
var e = fd.transition;
|
|
218
218
|
fd.transition = {};
|
|
219
219
|
try {
|
|
@@ -222,57 +222,57 @@ re.startTransition = function(t) {
|
|
|
222
222
|
fd.transition = e;
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
ne.unstable_act = function() {
|
|
226
226
|
throw Error("act(...) is not supported in production builds of React.");
|
|
227
227
|
};
|
|
228
|
-
|
|
228
|
+
ne.useCallback = function(t, e) {
|
|
229
229
|
return gt.current.useCallback(t, e);
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
ne.useContext = function(t) {
|
|
232
232
|
return gt.current.useContext(t);
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
ne.useDebugValue = function() {
|
|
235
235
|
};
|
|
236
|
-
|
|
236
|
+
ne.useDeferredValue = function(t) {
|
|
237
237
|
return gt.current.useDeferredValue(t);
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
ne.useEffect = function(t, e) {
|
|
240
240
|
return gt.current.useEffect(t, e);
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
ne.useId = function() {
|
|
243
243
|
return gt.current.useId();
|
|
244
244
|
};
|
|
245
|
-
|
|
245
|
+
ne.useImperativeHandle = function(t, e, n) {
|
|
246
246
|
return gt.current.useImperativeHandle(t, e, n);
|
|
247
247
|
};
|
|
248
|
-
|
|
248
|
+
ne.useInsertionEffect = function(t, e) {
|
|
249
249
|
return gt.current.useInsertionEffect(t, e);
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
ne.useLayoutEffect = function(t, e) {
|
|
252
252
|
return gt.current.useLayoutEffect(t, e);
|
|
253
253
|
};
|
|
254
|
-
|
|
254
|
+
ne.useMemo = function(t, e) {
|
|
255
255
|
return gt.current.useMemo(t, e);
|
|
256
256
|
};
|
|
257
|
-
|
|
257
|
+
ne.useReducer = function(t, e, n) {
|
|
258
258
|
return gt.current.useReducer(t, e, n);
|
|
259
259
|
};
|
|
260
|
-
|
|
260
|
+
ne.useRef = function(t) {
|
|
261
261
|
return gt.current.useRef(t);
|
|
262
262
|
};
|
|
263
|
-
|
|
263
|
+
ne.useState = function(t) {
|
|
264
264
|
return gt.current.useState(t);
|
|
265
265
|
};
|
|
266
|
-
|
|
266
|
+
ne.useSyncExternalStore = function(t, e, n) {
|
|
267
267
|
return gt.current.useSyncExternalStore(t, e, n);
|
|
268
268
|
};
|
|
269
|
-
|
|
269
|
+
ne.useTransition = function() {
|
|
270
270
|
return gt.current.useTransition();
|
|
271
271
|
};
|
|
272
|
-
|
|
273
|
-
q1.exports =
|
|
274
|
-
var
|
|
275
|
-
const On = /* @__PURE__ */ za(
|
|
272
|
+
ne.version = "18.2.0";
|
|
273
|
+
q1.exports = ne;
|
|
274
|
+
var z = q1.exports;
|
|
275
|
+
const On = /* @__PURE__ */ za(z);
|
|
276
276
|
/**
|
|
277
277
|
* @license React
|
|
278
278
|
* react-jsx-runtime.production.min.js
|
|
@@ -282,7 +282,7 @@ const On = /* @__PURE__ */ za(M);
|
|
|
282
282
|
* This source code is licensed under the MIT license found in the
|
|
283
283
|
* LICENSE file in the root directory of this source tree.
|
|
284
284
|
*/
|
|
285
|
-
var vE =
|
|
285
|
+
var vE = z, bE = Symbol.for("react.element"), SE = Symbol.for("react.fragment"), wE = Object.prototype.hasOwnProperty, AE = vE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, EE = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
286
286
|
function Z1(t, e, n) {
|
|
287
287
|
var r, i = {}, s = null, o = null;
|
|
288
288
|
n !== void 0 && (s = "" + n), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (o = e.ref);
|
|
@@ -373,10 +373,10 @@ var p = H1.exports, W1 = { exports: {} }, Nt = {}, K1 = { exports: {} }, Y1 = {}
|
|
|
373
373
|
function E(D) {
|
|
374
374
|
if (v = !1, S(D), !m)
|
|
375
375
|
if (n(c) !== null)
|
|
376
|
-
m = !0,
|
|
376
|
+
m = !0, oe(I);
|
|
377
377
|
else {
|
|
378
378
|
var Q = n(a);
|
|
379
|
-
Q !== null &&
|
|
379
|
+
Q !== null && X(E, Q.startTime - D);
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function I(D, Q) {
|
|
@@ -397,48 +397,48 @@ var p = H1.exports, W1 = { exports: {} }, Nt = {}, K1 = { exports: {} }, Y1 = {}
|
|
|
397
397
|
var vn = !0;
|
|
398
398
|
else {
|
|
399
399
|
var bt = n(a);
|
|
400
|
-
bt !== null &&
|
|
400
|
+
bt !== null && X(E, bt.startTime - Q), vn = !1;
|
|
401
401
|
}
|
|
402
402
|
return vn;
|
|
403
403
|
} finally {
|
|
404
404
|
f = null, d = Y, h = !1;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
var w = !1, A = null, O = -1, T = 5,
|
|
407
|
+
var w = !1, A = null, O = -1, T = 5, M = -1;
|
|
408
408
|
function G() {
|
|
409
|
-
return !(t.unstable_now() -
|
|
409
|
+
return !(t.unstable_now() - M < T);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function V() {
|
|
412
412
|
if (A !== null) {
|
|
413
413
|
var D = t.unstable_now();
|
|
414
|
-
|
|
414
|
+
M = D;
|
|
415
415
|
var Q = !0;
|
|
416
416
|
try {
|
|
417
417
|
Q = A(!0, D);
|
|
418
418
|
} finally {
|
|
419
|
-
Q ?
|
|
419
|
+
Q ? $() : (w = !1, A = null);
|
|
420
420
|
}
|
|
421
421
|
} else
|
|
422
422
|
w = !1;
|
|
423
423
|
}
|
|
424
|
-
var
|
|
424
|
+
var $;
|
|
425
425
|
if (typeof y == "function")
|
|
426
|
-
|
|
427
|
-
y(
|
|
426
|
+
$ = function() {
|
|
427
|
+
y(V);
|
|
428
428
|
};
|
|
429
429
|
else if (typeof MessageChannel < "u") {
|
|
430
|
-
var
|
|
431
|
-
|
|
432
|
-
|
|
430
|
+
var ee = new MessageChannel(), le = ee.port2;
|
|
431
|
+
ee.port1.onmessage = V, $ = function() {
|
|
432
|
+
le.postMessage(null);
|
|
433
433
|
};
|
|
434
434
|
} else
|
|
435
|
-
|
|
436
|
-
b(
|
|
435
|
+
$ = function() {
|
|
436
|
+
b(V, 0);
|
|
437
437
|
};
|
|
438
|
-
function
|
|
439
|
-
A = D, w || (w = !0,
|
|
438
|
+
function oe(D) {
|
|
439
|
+
A = D, w || (w = !0, $());
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function X(D, Q) {
|
|
442
442
|
O = b(function() {
|
|
443
443
|
D(t.unstable_now());
|
|
444
444
|
}, Q);
|
|
@@ -446,7 +446,7 @@ var p = H1.exports, W1 = { exports: {} }, Nt = {}, K1 = { exports: {} }, Y1 = {}
|
|
|
446
446
|
t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(D) {
|
|
447
447
|
D.callback = null;
|
|
448
448
|
}, t.unstable_continueExecution = function() {
|
|
449
|
-
m || h || (m = !0,
|
|
449
|
+
m || h || (m = !0, oe(I));
|
|
450
450
|
}, t.unstable_forceFrameRate = function(D) {
|
|
451
451
|
0 > D || 125 < D ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : T = 0 < D ? Math.floor(1e3 / D) : 5;
|
|
452
452
|
}, t.unstable_getCurrentPriorityLevel = function() {
|
|
@@ -508,7 +508,7 @@ var p = H1.exports, W1 = { exports: {} }, Nt = {}, K1 = { exports: {} }, Y1 = {}
|
|
|
508
508
|
default:
|
|
509
509
|
be = 5e3;
|
|
510
510
|
}
|
|
511
|
-
return be = Y + be, D = { id: u++, callback: Q, priorityLevel: D, startTime: Y, expirationTime: be, sortIndex: -1 }, Y > fe ? (D.sortIndex = Y, e(a, D), n(c) === null && D === n(a) && (v ? (g(O), O = -1) : v = !0,
|
|
511
|
+
return be = Y + be, D = { id: u++, callback: Q, priorityLevel: D, startTime: Y, expirationTime: be, sortIndex: -1 }, Y > fe ? (D.sortIndex = Y, e(a, D), n(c) === null && D === n(a) && (v ? (g(O), O = -1) : v = !0, X(E, Y - fe))) : (D.sortIndex = be, e(c, D), m || h || (m = !0, oe(I))), D;
|
|
512
512
|
}, t.unstable_shouldYield = G, t.unstable_wrapCallback = function(D) {
|
|
513
513
|
var Q = d;
|
|
514
514
|
return function() {
|
|
@@ -533,7 +533,7 @@ var xE = K1.exports;
|
|
|
533
533
|
* This source code is licensed under the MIT license found in the
|
|
534
534
|
* LICENSE file in the root directory of this source tree.
|
|
535
535
|
*/
|
|
536
|
-
var J1 =
|
|
536
|
+
var J1 = z, kt = xE;
|
|
537
537
|
function R(t) {
|
|
538
538
|
for (var e = "https://reactjs.org/docs/error-decoder.html?invariant=" + t, n = 1; n < arguments.length; n++)
|
|
539
539
|
e += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -2780,7 +2780,7 @@ function Or(t, e, n) {
|
|
|
2780
2780
|
var r = t.updateQueue;
|
|
2781
2781
|
if (r === null)
|
|
2782
2782
|
return null;
|
|
2783
|
-
if (r = r.shared,
|
|
2783
|
+
if (r = r.shared, ae & 2) {
|
|
2784
2784
|
var i = r.pending;
|
|
2785
2785
|
return i === null ? e.next = e : (e.next = i.next, i.next = e), r.pending = e, er(t, n);
|
|
2786
2786
|
}
|
|
@@ -3056,12 +3056,12 @@ function nb(t) {
|
|
|
3056
3056
|
function m(g, y, S, E) {
|
|
3057
3057
|
for (var I = null, w = null, A = y, O = y = 0, T = null; A !== null && O < S.length; O++) {
|
|
3058
3058
|
A.index > O ? (T = A, A = null) : T = A.sibling;
|
|
3059
|
-
var
|
|
3060
|
-
if (
|
|
3059
|
+
var M = d(g, A, S[O], E);
|
|
3060
|
+
if (M === null) {
|
|
3061
3061
|
A === null && (A = T);
|
|
3062
3062
|
break;
|
|
3063
3063
|
}
|
|
3064
|
-
t && A &&
|
|
3064
|
+
t && A && M.alternate === null && e(g, A), y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M, A = T;
|
|
3065
3065
|
}
|
|
3066
3066
|
if (O === S.length)
|
|
3067
3067
|
return n(g, A), Ee && Jr(g, O), I;
|
|
@@ -3082,29 +3082,29 @@ function nb(t) {
|
|
|
3082
3082
|
throw Error(R(150));
|
|
3083
3083
|
if (S = I.call(S), S == null)
|
|
3084
3084
|
throw Error(R(151));
|
|
3085
|
-
for (var w = I = null, A = y, O = y = 0, T = null,
|
|
3085
|
+
for (var w = I = null, A = y, O = y = 0, T = null, M = S.next(); A !== null && !M.done; O++, M = S.next()) {
|
|
3086
3086
|
A.index > O ? (T = A, A = null) : T = A.sibling;
|
|
3087
|
-
var G = d(g, A,
|
|
3087
|
+
var G = d(g, A, M.value, E);
|
|
3088
3088
|
if (G === null) {
|
|
3089
3089
|
A === null && (A = T);
|
|
3090
3090
|
break;
|
|
3091
3091
|
}
|
|
3092
3092
|
t && A && G.alternate === null && e(g, A), y = s(G, y, O), w === null ? I = G : w.sibling = G, w = G, A = T;
|
|
3093
3093
|
}
|
|
3094
|
-
if (
|
|
3094
|
+
if (M.done)
|
|
3095
3095
|
return n(
|
|
3096
3096
|
g,
|
|
3097
3097
|
A
|
|
3098
3098
|
), Ee && Jr(g, O), I;
|
|
3099
3099
|
if (A === null) {
|
|
3100
|
-
for (; !
|
|
3101
|
-
|
|
3100
|
+
for (; !M.done; O++, M = S.next())
|
|
3101
|
+
M = f(g, M.value, E), M !== null && (y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M);
|
|
3102
3102
|
return Ee && Jr(g, O), I;
|
|
3103
3103
|
}
|
|
3104
|
-
for (A = r(g, A); !
|
|
3105
|
-
|
|
3106
|
-
return t && A.forEach(function(
|
|
3107
|
-
return e(g,
|
|
3104
|
+
for (A = r(g, A); !M.done; O++, M = S.next())
|
|
3105
|
+
M = h(A, g, O, M.value, E), M !== null && (t && M.alternate !== null && A.delete(M.key === null ? O : M.key), y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M);
|
|
3106
|
+
return t && A.forEach(function(V) {
|
|
3107
|
+
return e(g, V);
|
|
3108
3108
|
}), Ee && Jr(g, O), I;
|
|
3109
3109
|
}
|
|
3110
3110
|
function b(g, y, S, E) {
|
|
@@ -5039,17 +5039,17 @@ function vg(t) {
|
|
|
5039
5039
|
F = e.return;
|
|
5040
5040
|
}
|
|
5041
5041
|
}
|
|
5042
|
-
var cx = Math.ceil, Jd = rr.ReactCurrentDispatcher, dm = rr.ReactCurrentOwner, Zt = rr.ReactCurrentBatchConfig,
|
|
5042
|
+
var cx = Math.ceil, Jd = rr.ReactCurrentDispatcher, dm = rr.ReactCurrentOwner, Zt = rr.ReactCurrentBatchConfig, ae = 0, $e = null, Ve = null, et = 0, _t = 0, Wi = Pr(0), Fe = 0, Yo = null, yi = 0, _c = 0, cm = 0, jo = null, St = null, pm = 0, gs = 1 / 0, Ln = null, Xd = !1, eh = null, Cr = null, Zu = !1, br = null, ec = 0, To = 0, th = null, wd = -1, Ad = 0;
|
|
5043
5043
|
function yt() {
|
|
5044
|
-
return
|
|
5044
|
+
return ae & 6 ? ze() : wd !== -1 ? wd : wd = ze();
|
|
5045
5045
|
}
|
|
5046
5046
|
function Ir(t) {
|
|
5047
|
-
return t.mode & 1 ?
|
|
5047
|
+
return t.mode & 1 ? ae & 2 && et !== 0 ? et & -et : Z2.transition !== null ? (Ad === 0 && (Ad = Av()), Ad) : (t = pe, t !== 0 || (t = window.event, t = t === void 0 ? 16 : Tv(t.type)), t) : 1;
|
|
5048
5048
|
}
|
|
5049
5049
|
function fn(t, e, n, r) {
|
|
5050
5050
|
if (50 < To)
|
|
5051
5051
|
throw To = 0, th = null, Error(R(185));
|
|
5052
|
-
tl(t, n, r), (!(
|
|
5052
|
+
tl(t, n, r), (!(ae & 2) || t !== $e) && (t === $e && (!(ae & 2) && (_c |= n), Fe === 4 && mr(t, et)), xt(t, r), n === 1 && ae === 0 && !(e.mode & 1) && (gs = ze() + 500, Cc && Rr()));
|
|
5053
5053
|
}
|
|
5054
5054
|
function xt(t, e) {
|
|
5055
5055
|
var n = t.callbackNode;
|
|
@@ -5060,7 +5060,7 @@ function xt(t, e) {
|
|
|
5060
5060
|
else if (e = r & -r, t.callbackPriority !== e) {
|
|
5061
5061
|
if (n != null && Iy(n), e === 1)
|
|
5062
5062
|
t.tag === 0 ? Q2(bg.bind(null, t)) : Zv(bg.bind(null, t)), U2(function() {
|
|
5063
|
-
!(
|
|
5063
|
+
!(ae & 6) && Rr();
|
|
5064
5064
|
}), n = null;
|
|
5065
5065
|
else {
|
|
5066
5066
|
switch (Ev(r)) {
|
|
@@ -5085,7 +5085,7 @@ function xt(t, e) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
function qb(t, e) {
|
|
5088
|
-
if (wd = -1, Ad = 0,
|
|
5088
|
+
if (wd = -1, Ad = 0, ae & 6)
|
|
5089
5089
|
throw Error(R(327));
|
|
5090
5090
|
var n = t.callbackNode;
|
|
5091
5091
|
if (rs() && t.callbackNode !== n)
|
|
@@ -5097,8 +5097,8 @@ function qb(t, e) {
|
|
|
5097
5097
|
e = tc(t, r);
|
|
5098
5098
|
else {
|
|
5099
5099
|
e = r;
|
|
5100
|
-
var i =
|
|
5101
|
-
|
|
5100
|
+
var i = ae;
|
|
5101
|
+
ae |= 2;
|
|
5102
5102
|
var s = Lb();
|
|
5103
5103
|
($e !== t || et !== e) && (Ln = null, gs = ze() + 500, ui(t, e));
|
|
5104
5104
|
do
|
|
@@ -5109,7 +5109,7 @@ function qb(t, e) {
|
|
|
5109
5109
|
Fb(t, l);
|
|
5110
5110
|
}
|
|
5111
5111
|
while (1);
|
|
5112
|
-
Yh(), Jd.current = s,
|
|
5112
|
+
Yh(), Jd.current = s, ae = i, Ve !== null ? e = 0 : ($e = null, et = 0, e = Fe);
|
|
5113
5113
|
}
|
|
5114
5114
|
if (e !== 0) {
|
|
5115
5115
|
if (e === 2 && (i = jf(t), i !== 0 && (r = i, e = nh(t, i))), e === 1)
|
|
@@ -5207,7 +5207,7 @@ function mr(t, e) {
|
|
|
5207
5207
|
}
|
|
5208
5208
|
}
|
|
5209
5209
|
function bg(t) {
|
|
5210
|
-
if (
|
|
5210
|
+
if (ae & 6)
|
|
5211
5211
|
throw Error(R(327));
|
|
5212
5212
|
rs();
|
|
5213
5213
|
var e = Dd(t, 0);
|
|
@@ -5225,24 +5225,24 @@ function bg(t) {
|
|
|
5225
5225
|
return t.finishedWork = t.current.alternate, t.finishedLanes = e, Xr(t, St, Ln), xt(t, ze()), null;
|
|
5226
5226
|
}
|
|
5227
5227
|
function fm(t, e) {
|
|
5228
|
-
var n =
|
|
5229
|
-
|
|
5228
|
+
var n = ae;
|
|
5229
|
+
ae |= 1;
|
|
5230
5230
|
try {
|
|
5231
5231
|
return t(e);
|
|
5232
5232
|
} finally {
|
|
5233
|
-
|
|
5233
|
+
ae = n, ae === 0 && (gs = ze() + 500, Cc && Rr());
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
5236
|
function gi(t) {
|
|
5237
|
-
br !== null && br.tag === 0 && !(
|
|
5238
|
-
var e =
|
|
5239
|
-
|
|
5237
|
+
br !== null && br.tag === 0 && !(ae & 6) && rs();
|
|
5238
|
+
var e = ae;
|
|
5239
|
+
ae |= 1;
|
|
5240
5240
|
var n = Zt.transition, r = pe;
|
|
5241
5241
|
try {
|
|
5242
5242
|
if (Zt.transition = null, pe = 1, t)
|
|
5243
5243
|
return t();
|
|
5244
5244
|
} finally {
|
|
5245
|
-
pe = r, Zt.transition = n,
|
|
5245
|
+
pe = r, Zt.transition = n, ae = e, !(ae & 6) && Rr();
|
|
5246
5246
|
}
|
|
5247
5247
|
}
|
|
5248
5248
|
function hm() {
|
|
@@ -5381,8 +5381,8 @@ function mm() {
|
|
|
5381
5381
|
(Fe === 0 || Fe === 3 || Fe === 2) && (Fe = 4), $e === null || !(yi & 268435455) && !(_c & 268435455) || mr($e, et);
|
|
5382
5382
|
}
|
|
5383
5383
|
function tc(t, e) {
|
|
5384
|
-
var n =
|
|
5385
|
-
|
|
5384
|
+
var n = ae;
|
|
5385
|
+
ae |= 2;
|
|
5386
5386
|
var r = Lb();
|
|
5387
5387
|
($e !== t || et !== e) && (Ln = null, ui(t, e));
|
|
5388
5388
|
do
|
|
@@ -5393,7 +5393,7 @@ function tc(t, e) {
|
|
|
5393
5393
|
Fb(t, i);
|
|
5394
5394
|
}
|
|
5395
5395
|
while (1);
|
|
5396
|
-
if (Yh(),
|
|
5396
|
+
if (Yh(), ae = n, Jd.current = r, Ve !== null)
|
|
5397
5397
|
throw Error(R(261));
|
|
5398
5398
|
return $e = null, et = 0, Fe;
|
|
5399
5399
|
}
|
|
@@ -5449,7 +5449,7 @@ function mx(t, e, n, r) {
|
|
|
5449
5449
|
do
|
|
5450
5450
|
rs();
|
|
5451
5451
|
while (br !== null);
|
|
5452
|
-
if (
|
|
5452
|
+
if (ae & 6)
|
|
5453
5453
|
throw Error(R(327));
|
|
5454
5454
|
n = t.finishedWork;
|
|
5455
5455
|
var i = t.finishedLanes;
|
|
@@ -5465,8 +5465,8 @@ function mx(t, e, n, r) {
|
|
|
5465
5465
|
s = Zt.transition, Zt.transition = null;
|
|
5466
5466
|
var o = pe;
|
|
5467
5467
|
pe = 1;
|
|
5468
|
-
var l =
|
|
5469
|
-
|
|
5468
|
+
var l = ae;
|
|
5469
|
+
ae |= 4, dm.current = null, ux(t, n), Vb(n, t), k2(Rf), Vd = !!Pf, Rf = Pf = null, t.current = n, dx(n), qE(), ae = l, pe = o, Zt.transition = s;
|
|
5470
5470
|
} else
|
|
5471
5471
|
t.current = n;
|
|
5472
5472
|
if (Zu && (Zu = !1, br = t, ec = i), s = t.pendingLanes, s === 0 && (Cr = null), UE(n.stateNode), xt(t, ze()), e !== null)
|
|
@@ -5483,10 +5483,10 @@ function rs() {
|
|
|
5483
5483
|
if (Zt.transition = null, pe = 16 > t ? 16 : t, br === null)
|
|
5484
5484
|
var r = !1;
|
|
5485
5485
|
else {
|
|
5486
|
-
if (t = br, br = null, ec = 0,
|
|
5486
|
+
if (t = br, br = null, ec = 0, ae & 6)
|
|
5487
5487
|
throw Error(R(331));
|
|
5488
|
-
var i =
|
|
5489
|
-
for (
|
|
5488
|
+
var i = ae;
|
|
5489
|
+
for (ae |= 4, F = t.current; F !== null; ) {
|
|
5490
5490
|
var s = F, o = s.child;
|
|
5491
5491
|
if (F.flags & 16) {
|
|
5492
5492
|
var l = s.deletions;
|
|
@@ -5586,7 +5586,7 @@ function rs() {
|
|
|
5586
5586
|
F = l.return;
|
|
5587
5587
|
}
|
|
5588
5588
|
}
|
|
5589
|
-
if (
|
|
5589
|
+
if (ae = i, Rr(), Tn && typeof Tn.onPostCommitFiberRoot == "function")
|
|
5590
5590
|
try {
|
|
5591
5591
|
Tn.onPostCommitFiberRoot(wc, t);
|
|
5592
5592
|
} catch {
|
|
@@ -6057,7 +6057,7 @@ xv = function(t) {
|
|
|
6057
6057
|
var e = t.stateNode;
|
|
6058
6058
|
if (e.current.memoizedState.isDehydrated) {
|
|
6059
6059
|
var n = po(e.pendingLanes);
|
|
6060
|
-
n !== 0 && (Hh(e, n | 1), xt(e, ze()), !(
|
|
6060
|
+
n !== 0 && (Hh(e, n | 1), xt(e, ze()), !(ae & 6) && (gs = ze() + 500, Rr()));
|
|
6061
6061
|
}
|
|
6062
6062
|
break;
|
|
6063
6063
|
case 13:
|
|
@@ -7367,14 +7367,14 @@ function tO() {
|
|
|
7367
7367
|
return Promise.reject("Cancelled");
|
|
7368
7368
|
if (typeof O > "u" && !A && w.length)
|
|
7369
7369
|
return Promise.resolve(w);
|
|
7370
|
-
const
|
|
7370
|
+
const M = {
|
|
7371
7371
|
queryKey: t.queryKey,
|
|
7372
7372
|
pageParam: O,
|
|
7373
7373
|
meta: t.options.meta
|
|
7374
7374
|
};
|
|
7375
|
-
b(
|
|
7376
|
-
const G = g(
|
|
7377
|
-
return Promise.resolve(G).then((
|
|
7375
|
+
b(M);
|
|
7376
|
+
const G = g(M);
|
|
7377
|
+
return Promise.resolve(G).then(($) => y(w, O, $, T));
|
|
7378
7378
|
};
|
|
7379
7379
|
let E;
|
|
7380
7380
|
if (!d.length)
|
|
@@ -7732,8 +7732,8 @@ class iO extends Na {
|
|
|
7732
7732
|
status: b
|
|
7733
7733
|
} = f, g = !1, y = !1, S;
|
|
7734
7734
|
if (n._optimisticResults) {
|
|
7735
|
-
const O = this.hasListeners(), T = !O && Mg(e, n),
|
|
7736
|
-
(T ||
|
|
7735
|
+
const O = this.hasListeners(), T = !O && Mg(e, n), M = O && zg(e, r, n, i);
|
|
7736
|
+
(T || M) && (v = Nc(e.options.networkMode) ? "fetching" : "paused", d || (b = "loading")), n._optimisticResults === "isRestoring" && (v = "idle");
|
|
7737
7737
|
}
|
|
7738
7738
|
if (n.keepPreviousData && !f.dataUpdatedAt && u != null && u.isSuccess && b !== "error")
|
|
7739
7739
|
S = u.data, d = u.dataUpdatedAt, b = u.status, g = !0;
|
|
@@ -7953,7 +7953,7 @@ var lS = { exports: {} }, uS = {};
|
|
|
7953
7953
|
* This source code is licensed under the MIT license found in the
|
|
7954
7954
|
* LICENSE file in the root directory of this source tree.
|
|
7955
7955
|
*/
|
|
7956
|
-
var vs =
|
|
7956
|
+
var vs = z;
|
|
7957
7957
|
function lO(t, e) {
|
|
7958
7958
|
return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
|
|
7959
7959
|
}
|
|
@@ -7985,14 +7985,14 @@ var yO = typeof window > "u" || typeof window.document > "u" || typeof window.do
|
|
|
7985
7985
|
uS.useSyncExternalStore = vs.useSyncExternalStore !== void 0 ? vs.useSyncExternalStore : yO;
|
|
7986
7986
|
lS.exports = uS;
|
|
7987
7987
|
var gO = lS.exports;
|
|
7988
|
-
const dS = gO.useSyncExternalStore, Pg = /* @__PURE__ */
|
|
7988
|
+
const dS = gO.useSyncExternalStore, Pg = /* @__PURE__ */ z.createContext(void 0), cS = /* @__PURE__ */ z.createContext(!1);
|
|
7989
7989
|
function pS(t, e) {
|
|
7990
7990
|
return t || (e && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Pg), window.ReactQueryClientContext) : Pg);
|
|
7991
7991
|
}
|
|
7992
7992
|
const kr = ({
|
|
7993
7993
|
context: t
|
|
7994
7994
|
} = {}) => {
|
|
7995
|
-
const e =
|
|
7995
|
+
const e = z.useContext(pS(t, z.useContext(cS)));
|
|
7996
7996
|
if (!e)
|
|
7997
7997
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
7998
7998
|
return e;
|
|
@@ -8002,16 +8002,16 @@ const kr = ({
|
|
|
8002
8002
|
context: n,
|
|
8003
8003
|
contextSharing: r = !1
|
|
8004
8004
|
}) => {
|
|
8005
|
-
|
|
8005
|
+
z.useEffect(() => (t.mount(), () => {
|
|
8006
8006
|
t.unmount();
|
|
8007
8007
|
}), [t]);
|
|
8008
8008
|
const i = pS(n, r);
|
|
8009
|
-
return /* @__PURE__ */
|
|
8009
|
+
return /* @__PURE__ */ z.createElement(cS.Provider, {
|
|
8010
8010
|
value: !n && r
|
|
8011
|
-
}, /* @__PURE__ */
|
|
8011
|
+
}, /* @__PURE__ */ z.createElement(i.Provider, {
|
|
8012
8012
|
value: t
|
|
8013
8013
|
}, e));
|
|
8014
|
-
}, fS = /* @__PURE__ */
|
|
8014
|
+
}, fS = /* @__PURE__ */ z.createContext(!1), bO = () => z.useContext(fS);
|
|
8015
8015
|
fS.Provider;
|
|
8016
8016
|
function SO() {
|
|
8017
8017
|
let t = !1;
|
|
@@ -8025,14 +8025,14 @@ function SO() {
|
|
|
8025
8025
|
isReset: () => t
|
|
8026
8026
|
};
|
|
8027
8027
|
}
|
|
8028
|
-
const wO = /* @__PURE__ */
|
|
8028
|
+
const wO = /* @__PURE__ */ z.createContext(SO()), AO = () => z.useContext(wO);
|
|
8029
8029
|
function hS(t, e) {
|
|
8030
8030
|
return typeof t == "function" ? t(...e) : !!t;
|
|
8031
8031
|
}
|
|
8032
8032
|
const EO = (t, e) => {
|
|
8033
8033
|
(t.suspense || t.useErrorBoundary) && (e.isReset() || (t.retryOnMount = !1));
|
|
8034
8034
|
}, xO = (t) => {
|
|
8035
|
-
|
|
8035
|
+
z.useEffect(() => {
|
|
8036
8036
|
t.clearReset();
|
|
8037
8037
|
}, [t]);
|
|
8038
8038
|
}, OO = ({
|
|
@@ -8054,12 +8054,12 @@ function _O(t, e) {
|
|
|
8054
8054
|
context: t.context
|
|
8055
8055
|
}), r = bO(), i = AO(), s = n.defaultQueryOptions(t);
|
|
8056
8056
|
s._optimisticResults = r ? "isRestoring" : "optimistic", s.onError && (s.onError = _e.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = _e.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = _e.batchCalls(s.onSettled)), CO(s), EO(s, i), xO(i);
|
|
8057
|
-
const [o] =
|
|
8058
|
-
if (dS(
|
|
8057
|
+
const [o] = z.useState(() => new e(n, s)), l = o.getOptimisticResult(s);
|
|
8058
|
+
if (dS(z.useCallback((c) => {
|
|
8059
8059
|
const a = r ? () => {
|
|
8060
8060
|
} : o.subscribe(_e.batchCalls(c));
|
|
8061
8061
|
return o.updateResult(), a;
|
|
8062
|
-
}, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()),
|
|
8062
|
+
}, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()), z.useEffect(() => {
|
|
8063
8063
|
o.setOptions(s, {
|
|
8064
8064
|
listeners: !1
|
|
8065
8065
|
});
|
|
@@ -8081,11 +8081,11 @@ function yn(t, e, n) {
|
|
|
8081
8081
|
function Da(t, e, n) {
|
|
8082
8082
|
const r = Bx(t, e, n), i = kr({
|
|
8083
8083
|
context: r.context
|
|
8084
|
-
}), [s] =
|
|
8085
|
-
|
|
8084
|
+
}), [s] = z.useState(() => new oO(i, r));
|
|
8085
|
+
z.useEffect(() => {
|
|
8086
8086
|
s.setOptions(r);
|
|
8087
8087
|
}, [s, r]);
|
|
8088
|
-
const o = dS(
|
|
8088
|
+
const o = dS(z.useCallback((c) => s.subscribe(_e.batchCalls(c)), [s]), () => s.getCurrentResult(), () => s.getCurrentResult()), l = z.useCallback((c, a) => {
|
|
8089
8089
|
s.mutate(c, a).catch(MO);
|
|
8090
8090
|
}, [s]);
|
|
8091
8091
|
if (o.error && hS(s.options.useErrorBoundary, [o.error]))
|
|
@@ -8228,7 +8228,7 @@ function Od(t, e, n) {
|
|
|
8228
8228
|
}
|
|
8229
8229
|
return NO(r);
|
|
8230
8230
|
}
|
|
8231
|
-
const mS = "1.
|
|
8231
|
+
const mS = "1.63.0";
|
|
8232
8232
|
var $n, gr, ls, Gn, us, ds, qt, bc, gS, Qn, an;
|
|
8233
8233
|
class yS {
|
|
8234
8234
|
constructor({
|
|
@@ -8245,16 +8245,16 @@ class yS {
|
|
|
8245
8245
|
Xt(this, ds, !1);
|
|
8246
8246
|
Xt(this, qt, null);
|
|
8247
8247
|
Xt(this, Qn, (e) => {
|
|
8248
|
-
|
|
8248
|
+
re(this, us) || re(this, $n).push(async () => {
|
|
8249
8249
|
var i;
|
|
8250
8250
|
const n = {
|
|
8251
|
-
userId: ((i =
|
|
8252
|
-
anonymousId:
|
|
8251
|
+
userId: ((i = re(this, qt)) == null ? void 0 : i.userId) ?? void 0,
|
|
8252
|
+
anonymousId: re(this, gr) ?? void 0,
|
|
8253
8253
|
...e,
|
|
8254
8254
|
messageId: Od(),
|
|
8255
8255
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8256
|
-
context:
|
|
8257
|
-
}, r = await fetch(`${
|
|
8256
|
+
context: re(this, bc, gS)
|
|
8257
|
+
}, r = await fetch(`${re(this, ls)}/internal/tlmtry`, {
|
|
8258
8258
|
method: "POST",
|
|
8259
8259
|
body: JSON.stringify(n),
|
|
8260
8260
|
headers: { "Content-Type": "application/json" }
|
|
@@ -8266,7 +8266,7 @@ class yS {
|
|
|
8266
8266
|
});
|
|
8267
8267
|
});
|
|
8268
8268
|
Xt(this, an, (e, ...n) => {
|
|
8269
|
-
if (!
|
|
8269
|
+
if (!re(this, Gn))
|
|
8270
8270
|
return;
|
|
8271
8271
|
const r = n.length > 0 ? n.map((i) => JSON.stringify(i)).join(", ") : "";
|
|
8272
8272
|
console.log(`TelemetryClient.${e}(${r})`);
|
|
@@ -8274,31 +8274,31 @@ class yS {
|
|
|
8274
8274
|
Qe(this, $n, new PO()), Qe(this, gr, Od()), Qe(this, ls, e), Qe(this, Gn, n), Qe(this, us, r);
|
|
8275
8275
|
}
|
|
8276
8276
|
load({ endpoint: e, debug: n, disabled: r } = {}) {
|
|
8277
|
-
if (
|
|
8277
|
+
if (re(this, an).call(this, "load", { endpoint: e, debug: n, disabled: r }), re(this, ds))
|
|
8278
8278
|
throw new Error(
|
|
8279
8279
|
"TelemetryClient already loaded. Call TelemetryClient.reset() first."
|
|
8280
8280
|
);
|
|
8281
|
-
e != null && Qe(this, ls, e), n != null && Qe(this, Gn, n), r != null && Qe(this, us, r),
|
|
8282
|
-
i != null &&
|
|
8281
|
+
e != null && Qe(this, ls, e), n != null && Qe(this, Gn, n), r != null && Qe(this, us, r), re(this, $n).autostart = !0, re(this, $n).start((i) => {
|
|
8282
|
+
i != null && re(this, Gn) && console.error(i);
|
|
8283
8283
|
}), Qe(this, ds, !0);
|
|
8284
8284
|
}
|
|
8285
8285
|
reset() {
|
|
8286
|
-
|
|
8286
|
+
re(this, an).call(this, "reset"), re(this, $n).autostart = !1, re(this, $n).end(), Qe(this, gr, Od()), Qe(this, qt, null), Qe(this, ds, !1);
|
|
8287
8287
|
}
|
|
8288
8288
|
debug(e) {
|
|
8289
|
-
return e != null && Qe(this, Gn, e),
|
|
8289
|
+
return e != null && Qe(this, Gn, e), re(this, Gn);
|
|
8290
8290
|
}
|
|
8291
8291
|
page(e, n = {}) {
|
|
8292
|
-
|
|
8292
|
+
re(this, an).call(this, "page", e, n), re(this, Qn).call(this, { type: "page", name: e, properties: n });
|
|
8293
8293
|
}
|
|
8294
8294
|
screen(e, n = {}) {
|
|
8295
|
-
|
|
8295
|
+
re(this, an).call(this, "screen", e, n), re(this, Qn).call(this, { type: "screen", name: e, properties: n });
|
|
8296
8296
|
}
|
|
8297
8297
|
track(e, n = {}) {
|
|
8298
|
-
|
|
8298
|
+
re(this, an).call(this, "track", e, n), re(this, Qn).call(this, { type: "track", event: e, properties: n });
|
|
8299
8299
|
}
|
|
8300
8300
|
group(e, n = {}) {
|
|
8301
|
-
|
|
8301
|
+
re(this, an).call(this, "group", e, n), re(this, Qn).call(this, {
|
|
8302
8302
|
type: "group",
|
|
8303
8303
|
groupId: e,
|
|
8304
8304
|
traits: n
|
|
@@ -8306,24 +8306,24 @@ class yS {
|
|
|
8306
8306
|
}
|
|
8307
8307
|
identify(e, n = {}) {
|
|
8308
8308
|
var r, i;
|
|
8309
|
-
|
|
8309
|
+
re(this, an).call(this, "identify", e, n), Qe(this, gr, null), ((r = re(this, qt)) == null ? void 0 : r.userId) !== e && Qe(this, qt, { userId: e, traits: {} }), Qe(this, qt, {
|
|
8310
8310
|
userId: e,
|
|
8311
8311
|
traits: {
|
|
8312
|
-
...((i =
|
|
8312
|
+
...((i = re(this, qt)) == null ? void 0 : i.traits) ?? {},
|
|
8313
8313
|
...n
|
|
8314
8314
|
}
|
|
8315
|
-
}),
|
|
8315
|
+
}), re(this, Qn).call(this, {
|
|
8316
8316
|
type: "identify",
|
|
8317
8317
|
userId: e,
|
|
8318
|
-
traits:
|
|
8318
|
+
traits: re(this, qt).traits
|
|
8319
8319
|
});
|
|
8320
8320
|
}
|
|
8321
8321
|
alias(e, n) {
|
|
8322
8322
|
var i;
|
|
8323
|
-
const r = n ?? ((i =
|
|
8323
|
+
const r = n ?? ((i = re(this, qt)) == null ? void 0 : i.userId) ?? re(this, gr);
|
|
8324
8324
|
if (r == null)
|
|
8325
8325
|
throw new Error("Cannot resolve previous id");
|
|
8326
|
-
|
|
8326
|
+
re(this, an).call(this, "alias", e, r), re(this, Qn).call(this, {
|
|
8327
8327
|
type: "alias",
|
|
8328
8328
|
userId: e,
|
|
8329
8329
|
previousId: r,
|
|
@@ -8334,7 +8334,7 @@ class yS {
|
|
|
8334
8334
|
$n = new WeakMap(), gr = new WeakMap(), ls = new WeakMap(), Gn = new WeakMap(), us = new WeakMap(), ds = new WeakMap(), qt = new WeakMap(), bc = new WeakSet(), gS = function() {
|
|
8335
8335
|
var e, n, r, i, s, o, l, c;
|
|
8336
8336
|
return {
|
|
8337
|
-
traits: ((e =
|
|
8337
|
+
traits: ((e = re(this, qt)) == null ? void 0 : e.traits) ?? void 0,
|
|
8338
8338
|
locale: ((n = globalThis.navigator) == null ? void 0 : n.language) ?? void 0,
|
|
8339
8339
|
timezone: ((i = (r = Intl == null ? void 0 : Intl.DateTimeFormat()) == null ? void 0 : r.resolvedOptions()) == null ? void 0 : i.timeZone) ?? void 0,
|
|
8340
8340
|
userAgent: ((s = globalThis.navigator) == null ? void 0 : s.userAgent) ?? void 0,
|
|
@@ -8734,19 +8734,19 @@ function Gg() {
|
|
|
8734
8734
|
E.open(f.method.toUpperCase(), r(A, f.params, f.paramsSerializer), !0), E.timeout = f.timeout;
|
|
8735
8735
|
function O() {
|
|
8736
8736
|
if (E) {
|
|
8737
|
-
var
|
|
8737
|
+
var M = "getAllResponseHeaders" in E ? s(E.getAllResponseHeaders()) : null, G = !g || g === "text" || g === "json" ? E.responseText : E.response, V = {
|
|
8738
8738
|
data: G,
|
|
8739
8739
|
status: E.status,
|
|
8740
8740
|
statusText: E.statusText,
|
|
8741
|
-
headers:
|
|
8741
|
+
headers: M,
|
|
8742
8742
|
config: f,
|
|
8743
8743
|
request: E
|
|
8744
8744
|
};
|
|
8745
|
-
e(function(
|
|
8746
|
-
h(
|
|
8747
|
-
}, function(
|
|
8748
|
-
m(
|
|
8749
|
-
},
|
|
8745
|
+
e(function(ee) {
|
|
8746
|
+
h(ee), S();
|
|
8747
|
+
}, function(ee) {
|
|
8748
|
+
m(ee), S();
|
|
8749
|
+
}, V), E = null;
|
|
8750
8750
|
}
|
|
8751
8751
|
}
|
|
8752
8752
|
if ("onloadend" in E ? E.onloadend = O : E.onreadystatechange = function() {
|
|
@@ -8756,21 +8756,21 @@ function Gg() {
|
|
|
8756
8756
|
}, E.onerror = function() {
|
|
8757
8757
|
m(l("Network Error", f, null, E)), E = null;
|
|
8758
8758
|
}, E.ontimeout = function() {
|
|
8759
|
-
var G = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded",
|
|
8759
|
+
var G = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", V = f.transitional || c.transitional;
|
|
8760
8760
|
f.timeoutErrorMessage && (G = f.timeoutErrorMessage), m(l(
|
|
8761
8761
|
G,
|
|
8762
8762
|
f,
|
|
8763
|
-
|
|
8763
|
+
V.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
8764
8764
|
E
|
|
8765
8765
|
)), E = null;
|
|
8766
8766
|
}, t.isStandardBrowserEnv()) {
|
|
8767
8767
|
var T = (f.withCredentials || o(A)) && f.xsrfCookieName ? n.read(f.xsrfCookieName) : void 0;
|
|
8768
8768
|
T && (b[f.xsrfHeaderName] = T);
|
|
8769
8769
|
}
|
|
8770
|
-
"setRequestHeader" in E && t.forEach(b, function(G,
|
|
8771
|
-
typeof v > "u" &&
|
|
8772
|
-
}), t.isUndefined(f.withCredentials) || (E.withCredentials = !!f.withCredentials), g && g !== "json" && (E.responseType = f.responseType), typeof f.onDownloadProgress == "function" && E.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && E.upload && E.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (y = function(
|
|
8773
|
-
E && (m(!
|
|
8770
|
+
"setRequestHeader" in E && t.forEach(b, function(G, V) {
|
|
8771
|
+
typeof v > "u" && V.toLowerCase() === "content-type" ? delete b[V] : E.setRequestHeader(V, G);
|
|
8772
|
+
}), t.isUndefined(f.withCredentials) || (E.withCredentials = !!f.withCredentials), g && g !== "json" && (E.responseType = f.responseType), typeof f.onDownloadProgress == "function" && E.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && E.upload && E.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (y = function(M) {
|
|
8773
|
+
E && (m(!M || M && M.type ? new a("canceled") : M), E.abort(), E = null);
|
|
8774
8774
|
}, f.cancelToken && f.cancelToken.subscribe(y), f.signal && (f.signal.aborted ? y() : f.signal.addEventListener("abort", y))), v || (v = null), E.send(v);
|
|
8775
8775
|
});
|
|
8776
8776
|
}, Vp;
|
|
@@ -12793,7 +12793,7 @@ Message: ` + JSON.stringify(n)), this.code = e, this.body = n;
|
|
|
12793
12793
|
}
|
|
12794
12794
|
}
|
|
12795
12795
|
ut.ApiException = z4;
|
|
12796
|
-
var Ae = {},
|
|
12796
|
+
var Ae = {}, se = {}, Ta = {}, Ge = {};
|
|
12797
12797
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
12798
12798
|
Ge.RequiredError = Ge.BaseAPIRequestFactory = Ge.COLLECTION_FORMATS = void 0;
|
|
12799
12799
|
Ge.COLLECTION_FORMATS = {
|
|
@@ -12827,7 +12827,7 @@ var Jt = {};
|
|
|
12827
12827
|
W !== "default" && !J.hasOwnProperty(W) && e(J, Ti, W);
|
|
12828
12828
|
};
|
|
12829
12829
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ObjectSerializer = void 0, n(bs, t), n(Ss, t), n(ws, t), n(As, t), n(Es, t), n(Rm, t), n(xs, t), n(Os, t), n(Cs, t), n(Is, t), n(js, t), n(Ts, t), n(_s, t), n(Ms, t), n(zs, t), n(Ps, t), n(Rs, t), n(ks, t), n(Ns, t), n(Ds, t), n(Vs, t), n(Hs, t), n(qs, t), n(Fs, t), n(Ls, t), n(Us, t), n(Bs, t), n($s, t), n(Gs, t), n(Qs, t), n(Zs, t), n(Ws, t), n(Ks, t), n(Ys, t), n(Js, t), n(Xs, t), n(ea, t), n(ta, t), n(na, t), n(ra, t), n(ia, t), n(sa, t), n(aa, t), n(oa, t), n(la, t), n(ua, t), n(da, t), n(ca, t), n(pa, t), n(fa, t), n(ha, t), n(ma, t), n(ya, t), n(ga, t), n(va, t), n(ba, t), n(Sa, t), n(km, t), n(wa, t), n(Aa, t), n(Ea, t), n(Nm, t), n(xa, t), n(Oa, t), n(Ca, t), n(Dm, t), n(Vm, t), n(Ia, t), n(ja, t);
|
|
12830
|
-
const r = bs, i = Ss, s = ws, o = As, l = Es, c = xs, a = Os, u = Cs, f = Is, d = js, h = Ts, m = _s, v = Ms, b = zs, g = Ps, y = Rs, S = ks, E = Ns, I = Ds, w = Vs, A = Hs, O = qs, T = Fs,
|
|
12830
|
+
const r = bs, i = Ss, s = ws, o = As, l = Es, c = xs, a = Os, u = Cs, f = Is, d = js, h = Ts, m = _s, v = Ms, b = zs, g = Ps, y = Rs, S = ks, E = Ns, I = Ds, w = Vs, A = Hs, O = qs, T = Fs, M = Ls, G = Us, V = Bs, $ = $s, ee = Gs, le = Qs, oe = Zs, X = Ws, D = Ks, Q = Ys, Y = Js, fe = Xs, be = ea, vn = ta, bt = na, bn = ra, ct = ia, Vn = sa, Ba = aa, ju = oa, Tu = la, Jc = ua, _u = da, Mu = ca, cy = pa, py = fa, fy = ha, C = ma, j = ya, _ = ga, L = va, q = ba, N = Sa, Z = wa, Se = Aa, xe = Ea, ir = xa, Xc = Oa, $a = Ca, Ga = Ia, ep = ja;
|
|
12831
12831
|
let Ii = [
|
|
12832
12832
|
"string",
|
|
12833
12833
|
"boolean",
|
|
@@ -12878,14 +12878,14 @@ var Jt = {};
|
|
|
12878
12878
|
EndpointStats: A.EndpointStats,
|
|
12879
12879
|
EndpointUpdate: O.EndpointUpdate,
|
|
12880
12880
|
EndpointUpdatedEvent: T.EndpointUpdatedEvent,
|
|
12881
|
-
EndpointUpdatedEventData:
|
|
12881
|
+
EndpointUpdatedEventData: M.EndpointUpdatedEventData,
|
|
12882
12882
|
EnvironmentIn: G.EnvironmentIn,
|
|
12883
|
-
EnvironmentOut:
|
|
12884
|
-
EnvironmentSettingsOut:
|
|
12885
|
-
EventExampleIn:
|
|
12886
|
-
EventTypeExampleOut:
|
|
12887
|
-
EventTypeIn:
|
|
12888
|
-
EventTypeOut:
|
|
12883
|
+
EnvironmentOut: V.EnvironmentOut,
|
|
12884
|
+
EnvironmentSettingsOut: $.EnvironmentSettingsOut,
|
|
12885
|
+
EventExampleIn: ee.EventExampleIn,
|
|
12886
|
+
EventTypeExampleOut: le.EventTypeExampleOut,
|
|
12887
|
+
EventTypeIn: oe.EventTypeIn,
|
|
12888
|
+
EventTypeOut: X.EventTypeOut,
|
|
12889
12889
|
EventTypeSchemaIn: D.EventTypeSchemaIn,
|
|
12890
12890
|
EventTypeUpdate: Q.EventTypeUpdate,
|
|
12891
12891
|
FontSizeConfig: Y.FontSizeConfig,
|
|
@@ -12908,8 +12908,8 @@ var Jt = {};
|
|
|
12908
12908
|
MessageAttemptExhaustedEvent: C.MessageAttemptExhaustedEvent,
|
|
12909
12909
|
MessageAttemptExhaustedEventData: j.MessageAttemptExhaustedEventData,
|
|
12910
12910
|
MessageAttemptFailedData: _.MessageAttemptFailedData,
|
|
12911
|
-
MessageAttemptFailingEvent:
|
|
12912
|
-
MessageAttemptFailingEventData:
|
|
12911
|
+
MessageAttemptFailingEvent: L.MessageAttemptFailingEvent,
|
|
12912
|
+
MessageAttemptFailingEventData: q.MessageAttemptFailingEventData,
|
|
12913
12913
|
MessageAttemptOut: N.MessageAttemptOut,
|
|
12914
12914
|
MessageEndpointOut: Z.MessageEndpointOut,
|
|
12915
12915
|
MessageIn: Se.MessageIn,
|
|
@@ -13080,7 +13080,7 @@ var In = K && K.__awaiter || function(t, e, n, r) {
|
|
|
13080
13080
|
};
|
|
13081
13081
|
Object.defineProperty(Ta, "__esModule", { value: !0 });
|
|
13082
13082
|
Ta.ApplicationApiResponseProcessor = Ta.ApplicationApiRequestFactory = void 0;
|
|
13083
|
-
const Ri = Ge, ro = Ct(), k = Jt,
|
|
13083
|
+
const Ri = Ge, ro = Ct(), k = Jt, ce = ut, ue = It;
|
|
13084
13084
|
class N4 extends Ri.BaseAPIRequestFactory {
|
|
13085
13085
|
createApplicationApiV1AppPost(e, n, r, i) {
|
|
13086
13086
|
return In(this, void 0, void 0, function* () {
|
|
@@ -13165,162 +13165,162 @@ class D4 {
|
|
|
13165
13165
|
createApplicationApiV1AppPost(e) {
|
|
13166
13166
|
return In(this, void 0, void 0, function* () {
|
|
13167
13167
|
const n = k.ObjectSerializer.normalizeMediaType(e.headers["content-type"]);
|
|
13168
|
-
if (
|
|
13168
|
+
if (ue.isCodeInRange("200", e.httpStatusCode))
|
|
13169
13169
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13170
|
-
if (
|
|
13170
|
+
if (ue.isCodeInRange("201", e.httpStatusCode))
|
|
13171
13171
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13172
|
-
if (
|
|
13172
|
+
if (ue.isCodeInRange("401", e.httpStatusCode)) {
|
|
13173
13173
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13174
|
-
throw new
|
|
13174
|
+
throw new ce.ApiException(401, i);
|
|
13175
13175
|
}
|
|
13176
|
-
if (
|
|
13176
|
+
if (ue.isCodeInRange("403", e.httpStatusCode)) {
|
|
13177
13177
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13178
|
-
throw new
|
|
13178
|
+
throw new ce.ApiException(403, i);
|
|
13179
13179
|
}
|
|
13180
|
-
if (
|
|
13180
|
+
if (ue.isCodeInRange("404", e.httpStatusCode)) {
|
|
13181
13181
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13182
|
-
throw new
|
|
13182
|
+
throw new ce.ApiException(404, i);
|
|
13183
13183
|
}
|
|
13184
|
-
if (
|
|
13184
|
+
if (ue.isCodeInRange("409", e.httpStatusCode)) {
|
|
13185
13185
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13186
|
-
throw new
|
|
13186
|
+
throw new ce.ApiException(409, i);
|
|
13187
13187
|
}
|
|
13188
|
-
if (
|
|
13188
|
+
if (ue.isCodeInRange("422", e.httpStatusCode)) {
|
|
13189
13189
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HTTPValidationError", "");
|
|
13190
|
-
throw new
|
|
13190
|
+
throw new ce.ApiException(422, i);
|
|
13191
13191
|
}
|
|
13192
13192
|
if (e.httpStatusCode >= 200 && e.httpStatusCode <= 299)
|
|
13193
13193
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13194
13194
|
let r = e.body || "";
|
|
13195
|
-
throw new
|
|
13195
|
+
throw new ce.ApiException(e.httpStatusCode, `Unknown API Status Code!
|
|
13196
13196
|
Body: "` + r + '"');
|
|
13197
13197
|
});
|
|
13198
13198
|
}
|
|
13199
13199
|
deleteApplicationApiV1AppAppIdDelete(e) {
|
|
13200
13200
|
return In(this, void 0, void 0, function* () {
|
|
13201
13201
|
const n = k.ObjectSerializer.normalizeMediaType(e.headers["content-type"]);
|
|
13202
|
-
if (
|
|
13202
|
+
if (ue.isCodeInRange("204", e.httpStatusCode))
|
|
13203
13203
|
return;
|
|
13204
|
-
if (
|
|
13204
|
+
if (ue.isCodeInRange("401", e.httpStatusCode)) {
|
|
13205
13205
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13206
|
-
throw new
|
|
13206
|
+
throw new ce.ApiException(401, i);
|
|
13207
13207
|
}
|
|
13208
|
-
if (
|
|
13208
|
+
if (ue.isCodeInRange("403", e.httpStatusCode)) {
|
|
13209
13209
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13210
|
-
throw new
|
|
13210
|
+
throw new ce.ApiException(403, i);
|
|
13211
13211
|
}
|
|
13212
|
-
if (
|
|
13212
|
+
if (ue.isCodeInRange("404", e.httpStatusCode)) {
|
|
13213
13213
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13214
|
-
throw new
|
|
13214
|
+
throw new ce.ApiException(404, i);
|
|
13215
13215
|
}
|
|
13216
|
-
if (
|
|
13216
|
+
if (ue.isCodeInRange("409", e.httpStatusCode)) {
|
|
13217
13217
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13218
|
-
throw new
|
|
13218
|
+
throw new ce.ApiException(409, i);
|
|
13219
13219
|
}
|
|
13220
|
-
if (
|
|
13220
|
+
if (ue.isCodeInRange("422", e.httpStatusCode)) {
|
|
13221
13221
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HTTPValidationError", "");
|
|
13222
|
-
throw new
|
|
13222
|
+
throw new ce.ApiException(422, i);
|
|
13223
13223
|
}
|
|
13224
13224
|
if (e.httpStatusCode >= 200 && e.httpStatusCode <= 299)
|
|
13225
13225
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "void", "");
|
|
13226
13226
|
let r = e.body || "";
|
|
13227
|
-
throw new
|
|
13227
|
+
throw new ce.ApiException(e.httpStatusCode, `Unknown API Status Code!
|
|
13228
13228
|
Body: "` + r + '"');
|
|
13229
13229
|
});
|
|
13230
13230
|
}
|
|
13231
13231
|
getApplicationApiV1AppAppIdGet(e) {
|
|
13232
13232
|
return In(this, void 0, void 0, function* () {
|
|
13233
13233
|
const n = k.ObjectSerializer.normalizeMediaType(e.headers["content-type"]);
|
|
13234
|
-
if (
|
|
13234
|
+
if (ue.isCodeInRange("200", e.httpStatusCode))
|
|
13235
13235
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13236
|
-
if (
|
|
13236
|
+
if (ue.isCodeInRange("401", e.httpStatusCode)) {
|
|
13237
13237
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13238
|
-
throw new
|
|
13238
|
+
throw new ce.ApiException(401, i);
|
|
13239
13239
|
}
|
|
13240
|
-
if (
|
|
13240
|
+
if (ue.isCodeInRange("403", e.httpStatusCode)) {
|
|
13241
13241
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13242
|
-
throw new
|
|
13242
|
+
throw new ce.ApiException(403, i);
|
|
13243
13243
|
}
|
|
13244
|
-
if (
|
|
13244
|
+
if (ue.isCodeInRange("404", e.httpStatusCode)) {
|
|
13245
13245
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13246
|
-
throw new
|
|
13246
|
+
throw new ce.ApiException(404, i);
|
|
13247
13247
|
}
|
|
13248
|
-
if (
|
|
13248
|
+
if (ue.isCodeInRange("409", e.httpStatusCode)) {
|
|
13249
13249
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13250
|
-
throw new
|
|
13250
|
+
throw new ce.ApiException(409, i);
|
|
13251
13251
|
}
|
|
13252
|
-
if (
|
|
13252
|
+
if (ue.isCodeInRange("422", e.httpStatusCode)) {
|
|
13253
13253
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HTTPValidationError", "");
|
|
13254
|
-
throw new
|
|
13254
|
+
throw new ce.ApiException(422, i);
|
|
13255
13255
|
}
|
|
13256
13256
|
if (e.httpStatusCode >= 200 && e.httpStatusCode <= 299)
|
|
13257
13257
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13258
13258
|
let r = e.body || "";
|
|
13259
|
-
throw new
|
|
13259
|
+
throw new ce.ApiException(e.httpStatusCode, `Unknown API Status Code!
|
|
13260
13260
|
Body: "` + r + '"');
|
|
13261
13261
|
});
|
|
13262
13262
|
}
|
|
13263
13263
|
listApplicationsApiV1AppGet(e) {
|
|
13264
13264
|
return In(this, void 0, void 0, function* () {
|
|
13265
13265
|
const n = k.ObjectSerializer.normalizeMediaType(e.headers["content-type"]);
|
|
13266
|
-
if (
|
|
13266
|
+
if (ue.isCodeInRange("200", e.httpStatusCode))
|
|
13267
13267
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ListResponseApplicationOut", "");
|
|
13268
|
-
if (
|
|
13268
|
+
if (ue.isCodeInRange("401", e.httpStatusCode)) {
|
|
13269
13269
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13270
|
-
throw new
|
|
13270
|
+
throw new ce.ApiException(401, i);
|
|
13271
13271
|
}
|
|
13272
|
-
if (
|
|
13272
|
+
if (ue.isCodeInRange("403", e.httpStatusCode)) {
|
|
13273
13273
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13274
|
-
throw new
|
|
13274
|
+
throw new ce.ApiException(403, i);
|
|
13275
13275
|
}
|
|
13276
|
-
if (
|
|
13276
|
+
if (ue.isCodeInRange("404", e.httpStatusCode)) {
|
|
13277
13277
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13278
|
-
throw new
|
|
13278
|
+
throw new ce.ApiException(404, i);
|
|
13279
13279
|
}
|
|
13280
|
-
if (
|
|
13280
|
+
if (ue.isCodeInRange("409", e.httpStatusCode)) {
|
|
13281
13281
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13282
|
-
throw new
|
|
13282
|
+
throw new ce.ApiException(409, i);
|
|
13283
13283
|
}
|
|
13284
|
-
if (
|
|
13284
|
+
if (ue.isCodeInRange("422", e.httpStatusCode)) {
|
|
13285
13285
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HTTPValidationError", "");
|
|
13286
|
-
throw new
|
|
13286
|
+
throw new ce.ApiException(422, i);
|
|
13287
13287
|
}
|
|
13288
13288
|
if (e.httpStatusCode >= 200 && e.httpStatusCode <= 299)
|
|
13289
13289
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ListResponseApplicationOut", "");
|
|
13290
13290
|
let r = e.body || "";
|
|
13291
|
-
throw new
|
|
13291
|
+
throw new ce.ApiException(e.httpStatusCode, `Unknown API Status Code!
|
|
13292
13292
|
Body: "` + r + '"');
|
|
13293
13293
|
});
|
|
13294
13294
|
}
|
|
13295
13295
|
updateApplicationApiV1AppAppIdPut(e) {
|
|
13296
13296
|
return In(this, void 0, void 0, function* () {
|
|
13297
13297
|
const n = k.ObjectSerializer.normalizeMediaType(e.headers["content-type"]);
|
|
13298
|
-
if (
|
|
13298
|
+
if (ue.isCodeInRange("200", e.httpStatusCode))
|
|
13299
13299
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13300
|
-
if (
|
|
13300
|
+
if (ue.isCodeInRange("401", e.httpStatusCode)) {
|
|
13301
13301
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13302
|
-
throw new
|
|
13302
|
+
throw new ce.ApiException(401, i);
|
|
13303
13303
|
}
|
|
13304
|
-
if (
|
|
13304
|
+
if (ue.isCodeInRange("403", e.httpStatusCode)) {
|
|
13305
13305
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13306
|
-
throw new
|
|
13306
|
+
throw new ce.ApiException(403, i);
|
|
13307
13307
|
}
|
|
13308
|
-
if (
|
|
13308
|
+
if (ue.isCodeInRange("404", e.httpStatusCode)) {
|
|
13309
13309
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13310
|
-
throw new
|
|
13310
|
+
throw new ce.ApiException(404, i);
|
|
13311
13311
|
}
|
|
13312
|
-
if (
|
|
13312
|
+
if (ue.isCodeInRange("409", e.httpStatusCode)) {
|
|
13313
13313
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HttpErrorOut", "");
|
|
13314
|
-
throw new
|
|
13314
|
+
throw new ce.ApiException(409, i);
|
|
13315
13315
|
}
|
|
13316
|
-
if (
|
|
13316
|
+
if (ue.isCodeInRange("422", e.httpStatusCode)) {
|
|
13317
13317
|
const i = k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "HTTPValidationError", "");
|
|
13318
|
-
throw new
|
|
13318
|
+
throw new ce.ApiException(422, i);
|
|
13319
13319
|
}
|
|
13320
13320
|
if (e.httpStatusCode >= 200 && e.httpStatusCode <= 299)
|
|
13321
13321
|
return k.ObjectSerializer.deserialize(k.ObjectSerializer.parse(yield e.body.text(), n), "ApplicationOut", "");
|
|
13322
13322
|
let r = e.body || "";
|
|
13323
|
-
throw new
|
|
13323
|
+
throw new ce.ApiException(e.httpStatusCode, `Unknown API Status Code!
|
|
13324
13324
|
Body: "` + r + '"');
|
|
13325
13325
|
});
|
|
13326
13326
|
}
|
|
@@ -15482,8 +15482,8 @@ function G4() {
|
|
|
15482
15482
|
O.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
15483
15483
|
const T = Math.floor(Math.random() * Math.pow(2, 32));
|
|
15484
15484
|
O.setHeaderParam("svix-req-id", T.toString()), f !== void 0 && O.setQueryParam("endpoint_id", r.ObjectSerializer.serialize(f, "string", "")), d !== void 0 && O.setQueryParam("iterator", r.ObjectSerializer.serialize(d, "string", "")), h !== void 0 && O.setQueryParam("limit", r.ObjectSerializer.serialize(h, "number", "")), m !== void 0 && O.setQueryParam("status", r.ObjectSerializer.serialize(m, "MessageStatus", "")), v !== void 0 && O.setQueryParam("status_code_class", r.ObjectSerializer.serialize(v, "StatusCodeClass", "")), b !== void 0 && O.setQueryParam("event_types", r.ObjectSerializer.serialize(b, "Array<string>", "")), g !== void 0 && O.setQueryParam("channel", r.ObjectSerializer.serialize(g, "string", "")), y !== void 0 && O.setQueryParam("before", r.ObjectSerializer.serialize(y, "Date", "date-time")), S !== void 0 && O.setQueryParam("after", r.ObjectSerializer.serialize(S, "Date", "date-time")), E !== void 0 && O.setHeaderParam("idempotency-key", r.ObjectSerializer.serialize(E, "string", ""));
|
|
15485
|
-
let
|
|
15486
|
-
return
|
|
15485
|
+
let M = null;
|
|
15486
|
+
return M = w.authMethods.HTTPBearer, M && (yield M.applySecurityAuthentication(O)), O;
|
|
15487
15487
|
});
|
|
15488
15488
|
}
|
|
15489
15489
|
listAttemptsForEndpointApiV1AppAppIdMsgMsgIdEndpointEndpointIdAttemptGet(a, u, f, d, h, m, v, b, g, y, S, E) {
|
|
@@ -15915,8 +15915,8 @@ Body: "` + f + '"');
|
|
|
15915
15915
|
}
|
|
15916
15916
|
return Zr.StatisticsApiResponseProcessor = l, Zr;
|
|
15917
15917
|
}
|
|
15918
|
-
Object.defineProperty(
|
|
15919
|
-
|
|
15918
|
+
Object.defineProperty(se, "__esModule", { value: !0 });
|
|
15919
|
+
se.ObservableStatisticsApi = se.ObservableMessageAttemptApi = se.ObservableMessageApi = se.ObservableIntegrationApi = se.ObservableHealthApi = se.ObservableEventTypeApi = se.ObservableEnvironmentSettingsApi = se.ObservableEnvironmentApi = se.ObservableEndpointApi = se.ObservableAuthenticationApi = se.ObservableApplicationApi = void 0;
|
|
15920
15920
|
const P = at, x = at, O0 = Ta;
|
|
15921
15921
|
class Z4 {
|
|
15922
15922
|
constructor(e, n, r) {
|
|
@@ -15983,7 +15983,7 @@ class Z4 {
|
|
|
15983
15983
|
}));
|
|
15984
15984
|
}
|
|
15985
15985
|
}
|
|
15986
|
-
|
|
15986
|
+
se.ObservableApplicationApi = Z4;
|
|
15987
15987
|
const C0 = V4();
|
|
15988
15988
|
class W4 {
|
|
15989
15989
|
constructor(e, n, r) {
|
|
@@ -16014,7 +16014,7 @@ class W4 {
|
|
|
16014
16014
|
}));
|
|
16015
16015
|
}
|
|
16016
16016
|
}
|
|
16017
|
-
|
|
16017
|
+
se.ObservableAuthenticationApi = W4;
|
|
16018
16018
|
const I0 = H4();
|
|
16019
16019
|
class K4 {
|
|
16020
16020
|
constructor(e, n, r) {
|
|
@@ -16177,7 +16177,7 @@ class K4 {
|
|
|
16177
16177
|
}));
|
|
16178
16178
|
}
|
|
16179
16179
|
}
|
|
16180
|
-
|
|
16180
|
+
se.ObservableEndpointApi = K4;
|
|
16181
16181
|
const j0 = q4();
|
|
16182
16182
|
class Y4 {
|
|
16183
16183
|
constructor(e, n, r) {
|
|
@@ -16208,7 +16208,7 @@ class Y4 {
|
|
|
16208
16208
|
}));
|
|
16209
16209
|
}
|
|
16210
16210
|
}
|
|
16211
|
-
|
|
16211
|
+
se.ObservableEnvironmentApi = Y4;
|
|
16212
16212
|
const T0 = F4();
|
|
16213
16213
|
class J4 {
|
|
16214
16214
|
constructor(e, n, r) {
|
|
@@ -16227,7 +16227,7 @@ class J4 {
|
|
|
16227
16227
|
}));
|
|
16228
16228
|
}
|
|
16229
16229
|
}
|
|
16230
|
-
|
|
16230
|
+
se.ObservableEnvironmentSettingsApi = J4;
|
|
16231
16231
|
const _0 = L4();
|
|
16232
16232
|
class X4 {
|
|
16233
16233
|
constructor(e, n, r) {
|
|
@@ -16306,7 +16306,7 @@ class X4 {
|
|
|
16306
16306
|
}));
|
|
16307
16307
|
}
|
|
16308
16308
|
}
|
|
16309
|
-
|
|
16309
|
+
se.ObservableEventTypeApi = X4;
|
|
16310
16310
|
const M0 = U4();
|
|
16311
16311
|
class eI {
|
|
16312
16312
|
constructor(e, n, r) {
|
|
@@ -16325,7 +16325,7 @@ class eI {
|
|
|
16325
16325
|
}));
|
|
16326
16326
|
}
|
|
16327
16327
|
}
|
|
16328
|
-
|
|
16328
|
+
se.ObservableHealthApi = eI;
|
|
16329
16329
|
const z0 = B4();
|
|
16330
16330
|
class tI {
|
|
16331
16331
|
constructor(e, n, r) {
|
|
@@ -16416,7 +16416,7 @@ class tI {
|
|
|
16416
16416
|
}));
|
|
16417
16417
|
}
|
|
16418
16418
|
}
|
|
16419
|
-
|
|
16419
|
+
se.ObservableIntegrationApi = tI;
|
|
16420
16420
|
const P0 = $4();
|
|
16421
16421
|
class nI {
|
|
16422
16422
|
constructor(e, n, r) {
|
|
@@ -16459,7 +16459,7 @@ class nI {
|
|
|
16459
16459
|
}));
|
|
16460
16460
|
}
|
|
16461
16461
|
}
|
|
16462
|
-
|
|
16462
|
+
se.ObservableMessageApi = nI;
|
|
16463
16463
|
const R0 = G4();
|
|
16464
16464
|
class rI {
|
|
16465
16465
|
constructor(e, n, r) {
|
|
@@ -16562,7 +16562,7 @@ class rI {
|
|
|
16562
16562
|
}));
|
|
16563
16563
|
}
|
|
16564
16564
|
}
|
|
16565
|
-
|
|
16565
|
+
se.ObservableMessageAttemptApi = rI;
|
|
16566
16566
|
const k0 = Q4();
|
|
16567
16567
|
class iI {
|
|
16568
16568
|
constructor(e, n, r) {
|
|
@@ -16593,10 +16593,10 @@ class iI {
|
|
|
16593
16593
|
}));
|
|
16594
16594
|
}
|
|
16595
16595
|
}
|
|
16596
|
-
|
|
16596
|
+
se.ObservableStatisticsApi = iI;
|
|
16597
16597
|
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
16598
16598
|
Ae.ObjectStatisticsApi = Ae.ObjectMessageAttemptApi = Ae.ObjectMessageApi = Ae.ObjectIntegrationApi = Ae.ObjectHealthApi = Ae.ObjectEventTypeApi = Ae.ObjectEnvironmentSettingsApi = Ae.ObjectEnvironmentApi = Ae.ObjectEndpointApi = Ae.ObjectAuthenticationApi = Ae.ObjectApplicationApi = void 0;
|
|
16599
|
-
const sI =
|
|
16599
|
+
const sI = se;
|
|
16600
16600
|
class aI {
|
|
16601
16601
|
constructor(e, n, r) {
|
|
16602
16602
|
this.api = new sI.ObservableApplicationApi(e, n, r);
|
|
@@ -16618,7 +16618,7 @@ class aI {
|
|
|
16618
16618
|
}
|
|
16619
16619
|
}
|
|
16620
16620
|
Ae.ObjectApplicationApi = aI;
|
|
16621
|
-
const oI =
|
|
16621
|
+
const oI = se;
|
|
16622
16622
|
class lI {
|
|
16623
16623
|
constructor(e, n, r) {
|
|
16624
16624
|
this.api = new oI.ObservableAuthenticationApi(e, n, r);
|
|
@@ -16631,7 +16631,7 @@ class lI {
|
|
|
16631
16631
|
}
|
|
16632
16632
|
}
|
|
16633
16633
|
Ae.ObjectAuthenticationApi = lI;
|
|
16634
|
-
const uI =
|
|
16634
|
+
const uI = se;
|
|
16635
16635
|
class dI {
|
|
16636
16636
|
constructor(e, n, r) {
|
|
16637
16637
|
this.api = new uI.ObservableEndpointApi(e, n, r);
|
|
@@ -16677,7 +16677,7 @@ class dI {
|
|
|
16677
16677
|
}
|
|
16678
16678
|
}
|
|
16679
16679
|
Ae.ObjectEndpointApi = dI;
|
|
16680
|
-
const cI =
|
|
16680
|
+
const cI = se;
|
|
16681
16681
|
class pI {
|
|
16682
16682
|
constructor(e, n, r) {
|
|
16683
16683
|
this.api = new cI.ObservableEnvironmentApi(e, n, r);
|
|
@@ -16690,7 +16690,7 @@ class pI {
|
|
|
16690
16690
|
}
|
|
16691
16691
|
}
|
|
16692
16692
|
Ae.ObjectEnvironmentApi = pI;
|
|
16693
|
-
const fI =
|
|
16693
|
+
const fI = se;
|
|
16694
16694
|
class hI {
|
|
16695
16695
|
constructor(e, n, r) {
|
|
16696
16696
|
this.api = new fI.ObservableEnvironmentSettingsApi(e, n, r);
|
|
@@ -16700,7 +16700,7 @@ class hI {
|
|
|
16700
16700
|
}
|
|
16701
16701
|
}
|
|
16702
16702
|
Ae.ObjectEnvironmentSettingsApi = hI;
|
|
16703
|
-
const mI =
|
|
16703
|
+
const mI = se;
|
|
16704
16704
|
class yI {
|
|
16705
16705
|
constructor(e, n, r) {
|
|
16706
16706
|
this.api = new mI.ObservableEventTypeApi(e, n, r);
|
|
@@ -16725,7 +16725,7 @@ class yI {
|
|
|
16725
16725
|
}
|
|
16726
16726
|
}
|
|
16727
16727
|
Ae.ObjectEventTypeApi = yI;
|
|
16728
|
-
const gI =
|
|
16728
|
+
const gI = se;
|
|
16729
16729
|
class vI {
|
|
16730
16730
|
constructor(e, n, r) {
|
|
16731
16731
|
this.api = new gI.ObservableHealthApi(e, n, r);
|
|
@@ -16735,7 +16735,7 @@ class vI {
|
|
|
16735
16735
|
}
|
|
16736
16736
|
}
|
|
16737
16737
|
Ae.ObjectHealthApi = vI;
|
|
16738
|
-
const bI =
|
|
16738
|
+
const bI = se;
|
|
16739
16739
|
class SI {
|
|
16740
16740
|
constructor(e, n, r) {
|
|
16741
16741
|
this.api = new bI.ObservableIntegrationApi(e, n, r);
|
|
@@ -16763,7 +16763,7 @@ class SI {
|
|
|
16763
16763
|
}
|
|
16764
16764
|
}
|
|
16765
16765
|
Ae.ObjectIntegrationApi = SI;
|
|
16766
|
-
const wI =
|
|
16766
|
+
const wI = se;
|
|
16767
16767
|
class AI {
|
|
16768
16768
|
constructor(e, n, r) {
|
|
16769
16769
|
this.api = new wI.ObservableMessageApi(e, n, r);
|
|
@@ -16779,7 +16779,7 @@ class AI {
|
|
|
16779
16779
|
}
|
|
16780
16780
|
}
|
|
16781
16781
|
Ae.ObjectMessageApi = AI;
|
|
16782
|
-
const EI =
|
|
16782
|
+
const EI = se;
|
|
16783
16783
|
class xI {
|
|
16784
16784
|
constructor(e, n, r) {
|
|
16785
16785
|
this.api = new EI.ObservableMessageAttemptApi(e, n, r);
|
|
@@ -16810,7 +16810,7 @@ class xI {
|
|
|
16810
16810
|
}
|
|
16811
16811
|
}
|
|
16812
16812
|
Ae.ObjectMessageAttemptApi = xI;
|
|
16813
|
-
const OI =
|
|
16813
|
+
const OI = se;
|
|
16814
16814
|
class CI {
|
|
16815
16815
|
constructor(e, n, r) {
|
|
16816
16816
|
this.api = new OI.ObservableStatisticsApi(e, n, r);
|
|
@@ -17125,13 +17125,13 @@ var XS = { exports: {} };
|
|
|
17125
17125
|
3329325298
|
|
17126
17126
|
]);
|
|
17127
17127
|
function r(d, h, m, v, b) {
|
|
17128
|
-
for (var g, y, S, E, I, w, A, O, T,
|
|
17129
|
-
for (g = h[0], y = h[1], S = h[2], E = h[3], I = h[4], w = h[5], A = h[6], O = h[7],
|
|
17130
|
-
G = v +
|
|
17131
|
-
for (
|
|
17132
|
-
T = d[
|
|
17133
|
-
for (
|
|
17134
|
-
|
|
17128
|
+
for (var g, y, S, E, I, w, A, O, T, M, G, V, $; b >= 64; ) {
|
|
17129
|
+
for (g = h[0], y = h[1], S = h[2], E = h[3], I = h[4], w = h[5], A = h[6], O = h[7], M = 0; M < 16; M++)
|
|
17130
|
+
G = v + M * 4, d[M] = (m[G] & 255) << 24 | (m[G + 1] & 255) << 16 | (m[G + 2] & 255) << 8 | m[G + 3] & 255;
|
|
17131
|
+
for (M = 16; M < 64; M++)
|
|
17132
|
+
T = d[M - 2], V = (T >>> 17 | T << 32 - 17) ^ (T >>> 19 | T << 32 - 19) ^ T >>> 10, T = d[M - 15], $ = (T >>> 7 | T << 32 - 7) ^ (T >>> 18 | T << 32 - 18) ^ T >>> 3, d[M] = (V + d[M - 7] | 0) + ($ + d[M - 16] | 0);
|
|
17133
|
+
for (M = 0; M < 64; M++)
|
|
17134
|
+
V = (((I >>> 6 | I << 32 - 6) ^ (I >>> 11 | I << 32 - 11) ^ (I >>> 25 | I << 32 - 25)) + (I & w ^ ~I & A) | 0) + (O + (n[M] + d[M] | 0) | 0) | 0, $ = ((g >>> 2 | g << 32 - 2) ^ (g >>> 13 | g << 32 - 13) ^ (g >>> 22 | g << 32 - 22)) + (g & y ^ g & S ^ y & S) | 0, O = A, A = w, w = I, I = E + V | 0, E = S, S = y, y = g, g = V + $ | 0;
|
|
17135
17135
|
h[0] += g, h[1] += y, h[2] += S, h[3] += E, h[4] += I, h[5] += w, h[6] += A, h[7] += O, v += 64, b -= 64;
|
|
17136
17136
|
}
|
|
17137
17137
|
return v;
|
|
@@ -17298,18 +17298,18 @@ var RI = XS.exports;
|
|
|
17298
17298
|
class u {
|
|
17299
17299
|
constructor(w, A = {}) {
|
|
17300
17300
|
var O;
|
|
17301
|
-
const T = (O = A.serverUrl) !== null && O !== void 0 ? O : "https://api.svix.com",
|
|
17301
|
+
const T = (O = A.serverUrl) !== null && O !== void 0 ? O : "https://api.svix.com", M = new r.ServerConfiguration(T, {}), G = {
|
|
17302
17302
|
tokenProvider: {
|
|
17303
17303
|
getToken: () => w
|
|
17304
17304
|
}
|
|
17305
|
-
},
|
|
17306
|
-
baseServer:
|
|
17305
|
+
}, V = r.createConfiguration({
|
|
17306
|
+
baseServer: M,
|
|
17307
17307
|
promiseMiddleware: [new a()],
|
|
17308
17308
|
authMethods: {
|
|
17309
17309
|
HTTPBearer: G
|
|
17310
17310
|
}
|
|
17311
17311
|
});
|
|
17312
|
-
this._configuration =
|
|
17312
|
+
this._configuration = V, this.authentication = new f(V), this.application = new d(V), this.endpoint = new h(V), this.eventType = new m(V), this.integration = new v(V), this.message = new b(V), this.messageAttempt = new g(V);
|
|
17313
17313
|
}
|
|
17314
17314
|
}
|
|
17315
17315
|
t.Svix = u;
|
|
@@ -17562,15 +17562,15 @@ var RI = XS.exports;
|
|
|
17562
17562
|
}
|
|
17563
17563
|
verify(w, A) {
|
|
17564
17564
|
const O = {};
|
|
17565
|
-
for (const
|
|
17566
|
-
O[
|
|
17567
|
-
let T = O["svix-id"],
|
|
17568
|
-
if ((!
|
|
17565
|
+
for (const oe of Object.keys(A))
|
|
17566
|
+
O[oe.toLowerCase()] = A[oe];
|
|
17567
|
+
let T = O["svix-id"], M = O["svix-signature"], G = O["svix-timestamp"];
|
|
17568
|
+
if ((!M || !T || !G) && (T = O["webhook-id"], M = O["webhook-signature"], G = O["webhook-timestamp"], !M || !T || !G))
|
|
17569
17569
|
throw new S("Missing required headers");
|
|
17570
|
-
const
|
|
17571
|
-
for (const
|
|
17572
|
-
const [
|
|
17573
|
-
if (
|
|
17570
|
+
const V = this.verifyTimestamp(G), ee = this.sign(T, V, w).split(",")[1], le = M.split(" ");
|
|
17571
|
+
for (const oe of le) {
|
|
17572
|
+
const [X, D] = oe.split(",");
|
|
17573
|
+
if (X === "v1" && D === ee)
|
|
17574
17574
|
return JSON.parse(w);
|
|
17575
17575
|
}
|
|
17576
17576
|
throw new S("No matching signature found");
|
|
@@ -18272,7 +18272,7 @@ class Ha extends Error {
|
|
|
18272
18272
|
}
|
|
18273
18273
|
function ZI(t) {
|
|
18274
18274
|
var n, r;
|
|
18275
|
-
if (
|
|
18275
|
+
if (z.useEffect(() => {
|
|
18276
18276
|
t == null && console.warn(`Using an automatically generated fingerprint for the SeamProvider userIdentifierKey!
|
|
18277
18277
|
The user interface will show warnings when using a fingerprint.
|
|
18278
18278
|
This is not recommended because the client session is now bound to this machine and is effectively ephemeral.`);
|
|
@@ -18294,19 +18294,19 @@ function WI({
|
|
|
18294
18294
|
client: e,
|
|
18295
18295
|
...n
|
|
18296
18296
|
}) {
|
|
18297
|
-
const r =
|
|
18298
|
-
if (
|
|
18297
|
+
const r = z.useMemo(() => ({ client: e ?? new yS(n) }), [e, n]);
|
|
18298
|
+
if (z.useEffect(() => (r.client.load(n), () => {
|
|
18299
18299
|
r.client.reset();
|
|
18300
18300
|
}), [n, r]), r.client == null)
|
|
18301
18301
|
throw new Error("Must provide a Telemetry client.");
|
|
18302
18302
|
const { Provider: i } = iw;
|
|
18303
18303
|
return /* @__PURE__ */ p.jsx(i, { value: r, children: t });
|
|
18304
18304
|
}
|
|
18305
|
-
const iw =
|
|
18305
|
+
const iw = z.createContext({
|
|
18306
18306
|
client: new yS()
|
|
18307
18307
|
});
|
|
18308
18308
|
function KI() {
|
|
18309
|
-
return
|
|
18309
|
+
return z.useContext(iw);
|
|
18310
18310
|
}
|
|
18311
18311
|
function sw() {
|
|
18312
18312
|
const { client: t } = KI();
|
|
@@ -18314,13 +18314,13 @@ function sw() {
|
|
|
18314
18314
|
}
|
|
18315
18315
|
function kn(t) {
|
|
18316
18316
|
const { clientSession: e } = rw(), n = sw();
|
|
18317
|
-
|
|
18317
|
+
z.useEffect(() => {
|
|
18318
18318
|
e != null && n.screen(t);
|
|
18319
18319
|
}, [t, n, e]);
|
|
18320
18320
|
}
|
|
18321
18321
|
function YI() {
|
|
18322
18322
|
const t = sw(), { publishableKey: e } = dw(), { clientSession: n } = rw();
|
|
18323
|
-
|
|
18323
|
+
z.useLayoutEffect(() => {
|
|
18324
18324
|
if (n == null)
|
|
18325
18325
|
return;
|
|
18326
18326
|
const r = [
|
|
@@ -18339,7 +18339,7 @@ function YI() {
|
|
|
18339
18339
|
const q0 = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap", JI = ({
|
|
18340
18340
|
disabled: t = !1
|
|
18341
18341
|
}) => {
|
|
18342
|
-
|
|
18342
|
+
z.useEffect(() => {
|
|
18343
18343
|
if (t || globalThis.document == null || globalThis.document.querySelector(`link[href="${q0}"]`) != null)
|
|
18344
18344
|
return;
|
|
18345
18345
|
const n = globalThis.document.createElement("link");
|
|
@@ -18350,7 +18350,7 @@ const q0 = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
|
|
|
18350
18350
|
unminified: e = !1
|
|
18351
18351
|
}) => {
|
|
18352
18352
|
const r = `${XI}/v/${mS}/dist/index.${`${e ? "" : "min."}css`}`;
|
|
18353
|
-
|
|
18353
|
+
z.useEffect(() => {
|
|
18354
18354
|
if (t || globalThis.document == null || globalThis.document.querySelector(`link[href="${r}"]`) != null)
|
|
18355
18355
|
return;
|
|
18356
18356
|
const s = globalThis.document.createElement("link");
|
|
@@ -18368,7 +18368,7 @@ function nj({
|
|
|
18368
18368
|
...l
|
|
18369
18369
|
}) {
|
|
18370
18370
|
ej({ disabled: n, unminified: i }), JI({ disabled: r });
|
|
18371
|
-
const c =
|
|
18371
|
+
const c = z.useMemo(() => {
|
|
18372
18372
|
const f = ow(l);
|
|
18373
18373
|
return f.client == null && f.publishableKey == null && f.clientSessionToken == null ? lw : f;
|
|
18374
18374
|
}, [l]);
|
|
@@ -18423,9 +18423,9 @@ const ij = () => {
|
|
|
18423
18423
|
};
|
|
18424
18424
|
}
|
|
18425
18425
|
return { client: null };
|
|
18426
|
-
}, lw = ij(), uw =
|
|
18426
|
+
}, lw = ij(), uw = z.createContext(lw);
|
|
18427
18427
|
function dw() {
|
|
18428
|
-
return
|
|
18428
|
+
return z.useContext(uw);
|
|
18429
18429
|
}
|
|
18430
18430
|
const sj = (t) => {
|
|
18431
18431
|
if (!("client" in t))
|
|
@@ -18484,6 +18484,7 @@ const lj = {
|
|
|
18484
18484
|
disableCreateAccessCode: "boolean",
|
|
18485
18485
|
disableEditAccessCode: "boolean",
|
|
18486
18486
|
disableDeleteAccessCode: "boolean",
|
|
18487
|
+
disableResourceIds: "boolean",
|
|
18487
18488
|
onBack: "object",
|
|
18488
18489
|
className: "string"
|
|
18489
18490
|
}, uj = {
|
|
@@ -18580,7 +18581,7 @@ var cw = { exports: {} };
|
|
|
18580
18581
|
})();
|
|
18581
18582
|
})(cw);
|
|
18582
18583
|
var pj = cw.exports;
|
|
18583
|
-
const
|
|
18584
|
+
const te = /* @__PURE__ */ za(pj);
|
|
18584
18585
|
class Oi extends Error {
|
|
18585
18586
|
}
|
|
18586
18587
|
class fj extends Oi {
|
|
@@ -18612,130 +18613,130 @@ class lr extends Oi {
|
|
|
18612
18613
|
super("Zone is an abstract class");
|
|
18613
18614
|
}
|
|
18614
18615
|
}
|
|
18615
|
-
const
|
|
18616
|
-
year:
|
|
18617
|
-
month:
|
|
18618
|
-
day:
|
|
18616
|
+
const H = "numeric", mn = "short", Pt = "long", uc = {
|
|
18617
|
+
year: H,
|
|
18618
|
+
month: H,
|
|
18619
|
+
day: H
|
|
18619
18620
|
}, fw = {
|
|
18620
|
-
year:
|
|
18621
|
+
year: H,
|
|
18621
18622
|
month: mn,
|
|
18622
|
-
day:
|
|
18623
|
+
day: H
|
|
18623
18624
|
}, yj = {
|
|
18624
|
-
year:
|
|
18625
|
+
year: H,
|
|
18625
18626
|
month: mn,
|
|
18626
|
-
day:
|
|
18627
|
+
day: H,
|
|
18627
18628
|
weekday: mn
|
|
18628
18629
|
}, hw = {
|
|
18629
|
-
year:
|
|
18630
|
+
year: H,
|
|
18630
18631
|
month: Pt,
|
|
18631
|
-
day:
|
|
18632
|
+
day: H
|
|
18632
18633
|
}, mw = {
|
|
18633
|
-
year:
|
|
18634
|
+
year: H,
|
|
18634
18635
|
month: Pt,
|
|
18635
|
-
day:
|
|
18636
|
+
day: H,
|
|
18636
18637
|
weekday: Pt
|
|
18637
18638
|
}, yw = {
|
|
18638
|
-
hour:
|
|
18639
|
-
minute:
|
|
18639
|
+
hour: H,
|
|
18640
|
+
minute: H
|
|
18640
18641
|
}, gw = {
|
|
18641
|
-
hour:
|
|
18642
|
-
minute:
|
|
18643
|
-
second:
|
|
18642
|
+
hour: H,
|
|
18643
|
+
minute: H,
|
|
18644
|
+
second: H
|
|
18644
18645
|
}, vw = {
|
|
18645
|
-
hour:
|
|
18646
|
-
minute:
|
|
18647
|
-
second:
|
|
18646
|
+
hour: H,
|
|
18647
|
+
minute: H,
|
|
18648
|
+
second: H,
|
|
18648
18649
|
timeZoneName: mn
|
|
18649
18650
|
}, bw = {
|
|
18650
|
-
hour:
|
|
18651
|
-
minute:
|
|
18652
|
-
second:
|
|
18651
|
+
hour: H,
|
|
18652
|
+
minute: H,
|
|
18653
|
+
second: H,
|
|
18653
18654
|
timeZoneName: Pt
|
|
18654
18655
|
}, Sw = {
|
|
18655
|
-
hour:
|
|
18656
|
-
minute:
|
|
18656
|
+
hour: H,
|
|
18657
|
+
minute: H,
|
|
18657
18658
|
hourCycle: "h23"
|
|
18658
18659
|
}, ww = {
|
|
18659
|
-
hour:
|
|
18660
|
-
minute:
|
|
18661
|
-
second:
|
|
18660
|
+
hour: H,
|
|
18661
|
+
minute: H,
|
|
18662
|
+
second: H,
|
|
18662
18663
|
hourCycle: "h23"
|
|
18663
18664
|
}, Aw = {
|
|
18664
|
-
hour:
|
|
18665
|
-
minute:
|
|
18666
|
-
second:
|
|
18665
|
+
hour: H,
|
|
18666
|
+
minute: H,
|
|
18667
|
+
second: H,
|
|
18667
18668
|
hourCycle: "h23",
|
|
18668
18669
|
timeZoneName: mn
|
|
18669
18670
|
}, Ew = {
|
|
18670
|
-
hour:
|
|
18671
|
-
minute:
|
|
18672
|
-
second:
|
|
18671
|
+
hour: H,
|
|
18672
|
+
minute: H,
|
|
18673
|
+
second: H,
|
|
18673
18674
|
hourCycle: "h23",
|
|
18674
18675
|
timeZoneName: Pt
|
|
18675
18676
|
}, xw = {
|
|
18676
|
-
year:
|
|
18677
|
-
month:
|
|
18678
|
-
day:
|
|
18679
|
-
hour:
|
|
18680
|
-
minute:
|
|
18677
|
+
year: H,
|
|
18678
|
+
month: H,
|
|
18679
|
+
day: H,
|
|
18680
|
+
hour: H,
|
|
18681
|
+
minute: H
|
|
18681
18682
|
}, Ow = {
|
|
18682
|
-
year:
|
|
18683
|
-
month:
|
|
18684
|
-
day:
|
|
18685
|
-
hour:
|
|
18686
|
-
minute:
|
|
18687
|
-
second:
|
|
18683
|
+
year: H,
|
|
18684
|
+
month: H,
|
|
18685
|
+
day: H,
|
|
18686
|
+
hour: H,
|
|
18687
|
+
minute: H,
|
|
18688
|
+
second: H
|
|
18688
18689
|
}, Cw = {
|
|
18689
|
-
year:
|
|
18690
|
+
year: H,
|
|
18690
18691
|
month: mn,
|
|
18691
|
-
day:
|
|
18692
|
-
hour:
|
|
18693
|
-
minute:
|
|
18692
|
+
day: H,
|
|
18693
|
+
hour: H,
|
|
18694
|
+
minute: H
|
|
18694
18695
|
}, Iw = {
|
|
18695
|
-
year:
|
|
18696
|
+
year: H,
|
|
18696
18697
|
month: mn,
|
|
18697
|
-
day:
|
|
18698
|
-
hour:
|
|
18699
|
-
minute:
|
|
18700
|
-
second:
|
|
18698
|
+
day: H,
|
|
18699
|
+
hour: H,
|
|
18700
|
+
minute: H,
|
|
18701
|
+
second: H
|
|
18701
18702
|
}, gj = {
|
|
18702
|
-
year:
|
|
18703
|
+
year: H,
|
|
18703
18704
|
month: mn,
|
|
18704
|
-
day:
|
|
18705
|
+
day: H,
|
|
18705
18706
|
weekday: mn,
|
|
18706
|
-
hour:
|
|
18707
|
-
minute:
|
|
18707
|
+
hour: H,
|
|
18708
|
+
minute: H
|
|
18708
18709
|
}, jw = {
|
|
18709
|
-
year:
|
|
18710
|
+
year: H,
|
|
18710
18711
|
month: Pt,
|
|
18711
|
-
day:
|
|
18712
|
-
hour:
|
|
18713
|
-
minute:
|
|
18712
|
+
day: H,
|
|
18713
|
+
hour: H,
|
|
18714
|
+
minute: H,
|
|
18714
18715
|
timeZoneName: mn
|
|
18715
18716
|
}, Tw = {
|
|
18716
|
-
year:
|
|
18717
|
+
year: H,
|
|
18717
18718
|
month: Pt,
|
|
18718
|
-
day:
|
|
18719
|
-
hour:
|
|
18720
|
-
minute:
|
|
18721
|
-
second:
|
|
18719
|
+
day: H,
|
|
18720
|
+
hour: H,
|
|
18721
|
+
minute: H,
|
|
18722
|
+
second: H,
|
|
18722
18723
|
timeZoneName: mn
|
|
18723
18724
|
}, _w = {
|
|
18724
|
-
year:
|
|
18725
|
+
year: H,
|
|
18725
18726
|
month: Pt,
|
|
18726
|
-
day:
|
|
18727
|
+
day: H,
|
|
18727
18728
|
weekday: Pt,
|
|
18728
|
-
hour:
|
|
18729
|
-
minute:
|
|
18729
|
+
hour: H,
|
|
18730
|
+
minute: H,
|
|
18730
18731
|
timeZoneName: Pt
|
|
18731
18732
|
}, Mw = {
|
|
18732
|
-
year:
|
|
18733
|
+
year: H,
|
|
18733
18734
|
month: Pt,
|
|
18734
|
-
day:
|
|
18735
|
+
day: H,
|
|
18735
18736
|
weekday: Pt,
|
|
18736
|
-
hour:
|
|
18737
|
-
minute:
|
|
18738
|
-
second:
|
|
18737
|
+
hour: H,
|
|
18738
|
+
minute: H,
|
|
18739
|
+
second: H,
|
|
18739
18740
|
timeZoneName: Pt
|
|
18740
18741
|
};
|
|
18741
18742
|
class Su {
|
|
@@ -18889,7 +18890,7 @@ function wj(t, e) {
|
|
|
18889
18890
|
const n = t.formatToParts(e), r = [];
|
|
18890
18891
|
for (let i = 0; i < n.length; i++) {
|
|
18891
18892
|
const { type: s, value: o } = n[i], l = bj[s];
|
|
18892
|
-
s === "era" ? r[l] = o :
|
|
18893
|
+
s === "era" ? r[l] = o : ie(l) || (r[l] = parseInt(o, 10));
|
|
18893
18894
|
}
|
|
18894
18895
|
return r;
|
|
18895
18896
|
}
|
|
@@ -19042,7 +19043,7 @@ function Ij(t, e, n) {
|
|
|
19042
19043
|
function jj(t) {
|
|
19043
19044
|
const e = [];
|
|
19044
19045
|
for (let n = 1; n <= 12; n++) {
|
|
19045
|
-
const r =
|
|
19046
|
+
const r = U.utc(2009, n, 1);
|
|
19046
19047
|
e.push(t(r));
|
|
19047
19048
|
}
|
|
19048
19049
|
return e;
|
|
@@ -19050,7 +19051,7 @@ function jj(t) {
|
|
|
19050
19051
|
function Tj(t) {
|
|
19051
19052
|
const e = [];
|
|
19052
19053
|
for (let n = 1; n <= 7; n++) {
|
|
19053
|
-
const r =
|
|
19054
|
+
const r = U.utc(2016, 11, 13 + n);
|
|
19054
19055
|
e.push(t(r));
|
|
19055
19056
|
}
|
|
19056
19057
|
return e;
|
|
@@ -19190,7 +19191,7 @@ class ge {
|
|
|
19190
19191
|
() => {
|
|
19191
19192
|
if (!this.meridiemCache) {
|
|
19192
19193
|
const e = { hour: "numeric", hourCycle: "h12" };
|
|
19193
|
-
this.meridiemCache = [
|
|
19194
|
+
this.meridiemCache = [U.utc(2016, 11, 13, 9), U.utc(2016, 11, 13, 19)].map(
|
|
19194
19195
|
(n) => this.extract(n, e, "dayperiod")
|
|
19195
19196
|
);
|
|
19196
19197
|
}
|
|
@@ -19201,7 +19202,7 @@ class ge {
|
|
|
19201
19202
|
eras(e) {
|
|
19202
19203
|
return td(this, e, Fw, () => {
|
|
19203
19204
|
const n = { era: e };
|
|
19204
|
-
return this.eraCache[e] || (this.eraCache[e] = [
|
|
19205
|
+
return this.eraCache[e] || (this.eraCache[e] = [U.utc(-40, 1, 1), U.utc(2017, 1, 1)].map(
|
|
19205
19206
|
(r) => this.extract(r, n, "era")
|
|
19206
19207
|
)), this.eraCache[e];
|
|
19207
19208
|
});
|
|
@@ -19339,7 +19340,7 @@ class Rj extends Su {
|
|
|
19339
19340
|
}
|
|
19340
19341
|
}
|
|
19341
19342
|
function yr(t, e) {
|
|
19342
|
-
if (
|
|
19343
|
+
if (ie(t) || t === null)
|
|
19343
19344
|
return e;
|
|
19344
19345
|
if (t instanceof Su)
|
|
19345
19346
|
return t;
|
|
@@ -19466,7 +19467,7 @@ class ke {
|
|
|
19466
19467
|
ge.resetCache(), nr.resetCache();
|
|
19467
19468
|
}
|
|
19468
19469
|
}
|
|
19469
|
-
function
|
|
19470
|
+
function ie(t) {
|
|
19470
19471
|
return typeof t > "u";
|
|
19471
19472
|
}
|
|
19472
19473
|
function ci(t) {
|
|
@@ -19516,15 +19517,15 @@ function Ne(t, e = 2) {
|
|
|
19516
19517
|
return n ? r = "-" + ("" + -t).padStart(e, "0") : r = ("" + t).padStart(e, "0"), r;
|
|
19517
19518
|
}
|
|
19518
19519
|
function fr(t) {
|
|
19519
|
-
if (!(
|
|
19520
|
+
if (!(ie(t) || t === null || t === ""))
|
|
19520
19521
|
return parseInt(t, 10);
|
|
19521
19522
|
}
|
|
19522
19523
|
function Wr(t) {
|
|
19523
|
-
if (!(
|
|
19524
|
+
if (!(ie(t) || t === null || t === ""))
|
|
19524
19525
|
return parseFloat(t);
|
|
19525
19526
|
}
|
|
19526
19527
|
function Lm(t) {
|
|
19527
|
-
if (!(
|
|
19528
|
+
if (!(ie(t) || t === null || t === "")) {
|
|
19528
19529
|
const e = parseFloat("0." + t) * 1e3;
|
|
19529
19530
|
return Math.floor(e);
|
|
19530
19531
|
}
|
|
@@ -20007,7 +20008,7 @@ const Bw = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Jj = `(?:${Bw.source}?(?:\\[(${Lw.
|
|
|
20007
20008
|
), s3 = RegExp(`(?: ${Gw.source})?`);
|
|
20008
20009
|
function ss(t, e, n) {
|
|
20009
20010
|
const r = t[e];
|
|
20010
|
-
return
|
|
20011
|
+
return ie(r) ? n : fr(r);
|
|
20011
20012
|
}
|
|
20012
20013
|
function a3(t, e) {
|
|
20013
20014
|
return [{
|
|
@@ -20263,7 +20264,7 @@ function Ww(t, e) {
|
|
|
20263
20264
|
function X0(t, e) {
|
|
20264
20265
|
const n = Ww(t, e) < 0 ? -1 : 1;
|
|
20265
20266
|
ai.reduceRight((r, i) => {
|
|
20266
|
-
if (
|
|
20267
|
+
if (ie(e[i]))
|
|
20267
20268
|
return r;
|
|
20268
20269
|
if (r) {
|
|
20269
20270
|
const s = e[r] * n, o = t[i][r], l = Math.floor(s / o);
|
|
@@ -20271,7 +20272,7 @@ function X0(t, e) {
|
|
|
20271
20272
|
}
|
|
20272
20273
|
return i;
|
|
20273
20274
|
}, null), ai.reduce((r, i) => {
|
|
20274
|
-
if (
|
|
20275
|
+
if (ie(e[i]))
|
|
20275
20276
|
return r;
|
|
20276
20277
|
if (r) {
|
|
20277
20278
|
const s = e[r] % 1;
|
|
@@ -20510,7 +20511,7 @@ let Xe = class We {
|
|
|
20510
20511
|
return J0;
|
|
20511
20512
|
const n = ai.map((r) => {
|
|
20512
20513
|
const i = this.values[r];
|
|
20513
|
-
return
|
|
20514
|
+
return ie(i) ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: r.slice(0, -1) }).format(i);
|
|
20514
20515
|
}).filter((r) => r);
|
|
20515
20516
|
return this.loc.listFormatter({ type: "conjunction", style: e.listStyle || "narrow", ...e }).format(n);
|
|
20516
20517
|
}
|
|
@@ -20565,7 +20566,7 @@ let Xe = class We {
|
|
|
20565
20566
|
format: "extended",
|
|
20566
20567
|
...e,
|
|
20567
20568
|
includeOffset: !1
|
|
20568
|
-
},
|
|
20569
|
+
}, U.fromMillis(n, { zone: "UTC" }).toISOTime(e));
|
|
20569
20570
|
}
|
|
20570
20571
|
/**
|
|
20571
20572
|
* Returns an ISO 8601 representation of this Duration appropriate for use in JSON.
|
|
@@ -20945,13 +20946,13 @@ class je {
|
|
|
20945
20946
|
if (r && i) {
|
|
20946
20947
|
let s, o;
|
|
20947
20948
|
try {
|
|
20948
|
-
s =
|
|
20949
|
+
s = U.fromISO(r, n), o = s.isValid;
|
|
20949
20950
|
} catch {
|
|
20950
20951
|
o = !1;
|
|
20951
20952
|
}
|
|
20952
20953
|
let l, c;
|
|
20953
20954
|
try {
|
|
20954
|
-
l =
|
|
20955
|
+
l = U.fromISO(i, n), c = l.isValid;
|
|
20955
20956
|
} catch {
|
|
20956
20957
|
c = !1;
|
|
20957
20958
|
}
|
|
@@ -21328,7 +21329,7 @@ class nd {
|
|
|
21328
21329
|
* @return {boolean}
|
|
21329
21330
|
*/
|
|
21330
21331
|
static hasDST(e = ke.defaultZone) {
|
|
21331
|
-
const n =
|
|
21332
|
+
const n = U.now().setZone(e).set({ month: 12 });
|
|
21332
21333
|
return !e.isUniversal && n.offset !== n.set({ month: 6 }).offset;
|
|
21333
21334
|
}
|
|
21334
21335
|
/**
|
|
@@ -21557,7 +21558,7 @@ function tn({ numberingSystem: t }, e = "") {
|
|
|
21557
21558
|
return new RegExp(`${Qm[t || "latn"]}${e}`);
|
|
21558
21559
|
}
|
|
21559
21560
|
const B3 = "missing Intl.DateTimeFormat.formatToParts support";
|
|
21560
|
-
function
|
|
21561
|
+
function de(t, e = (n) => n) {
|
|
21561
21562
|
return { regex: t, deser: ([n]) => e(U3(n)) };
|
|
21562
21563
|
}
|
|
21563
21564
|
const $3 = String.fromCharCode(160), Kw = `[ ${$3}]`, Yw = new RegExp(Kw, "g");
|
|
@@ -21592,82 +21593,82 @@ function Z3(t, e) {
|
|
|
21592
21593
|
case "GG":
|
|
21593
21594
|
return nn(e.eras("long"), 0);
|
|
21594
21595
|
case "y":
|
|
21595
|
-
return
|
|
21596
|
+
return de(a);
|
|
21596
21597
|
case "yy":
|
|
21597
|
-
return
|
|
21598
|
+
return de(f, vh);
|
|
21598
21599
|
case "yyyy":
|
|
21599
|
-
return
|
|
21600
|
+
return de(s);
|
|
21600
21601
|
case "yyyyy":
|
|
21601
|
-
return
|
|
21602
|
+
return de(d);
|
|
21602
21603
|
case "yyyyyy":
|
|
21603
|
-
return
|
|
21604
|
+
return de(o);
|
|
21604
21605
|
case "M":
|
|
21605
|
-
return
|
|
21606
|
+
return de(l);
|
|
21606
21607
|
case "MM":
|
|
21607
|
-
return
|
|
21608
|
+
return de(r);
|
|
21608
21609
|
case "MMM":
|
|
21609
21610
|
return nn(e.months("short", !0), 1);
|
|
21610
21611
|
case "MMMM":
|
|
21611
21612
|
return nn(e.months("long", !0), 1);
|
|
21612
21613
|
case "L":
|
|
21613
|
-
return
|
|
21614
|
+
return de(l);
|
|
21614
21615
|
case "LL":
|
|
21615
|
-
return
|
|
21616
|
+
return de(r);
|
|
21616
21617
|
case "LLL":
|
|
21617
21618
|
return nn(e.months("short", !1), 1);
|
|
21618
21619
|
case "LLLL":
|
|
21619
21620
|
return nn(e.months("long", !1), 1);
|
|
21620
21621
|
case "d":
|
|
21621
|
-
return
|
|
21622
|
+
return de(l);
|
|
21622
21623
|
case "dd":
|
|
21623
|
-
return
|
|
21624
|
+
return de(r);
|
|
21624
21625
|
case "o":
|
|
21625
|
-
return
|
|
21626
|
+
return de(c);
|
|
21626
21627
|
case "ooo":
|
|
21627
|
-
return
|
|
21628
|
+
return de(i);
|
|
21628
21629
|
case "HH":
|
|
21629
|
-
return
|
|
21630
|
+
return de(r);
|
|
21630
21631
|
case "H":
|
|
21631
|
-
return
|
|
21632
|
+
return de(l);
|
|
21632
21633
|
case "hh":
|
|
21633
|
-
return
|
|
21634
|
+
return de(r);
|
|
21634
21635
|
case "h":
|
|
21635
|
-
return
|
|
21636
|
+
return de(l);
|
|
21636
21637
|
case "mm":
|
|
21637
|
-
return
|
|
21638
|
+
return de(r);
|
|
21638
21639
|
case "m":
|
|
21639
|
-
return
|
|
21640
|
+
return de(l);
|
|
21640
21641
|
case "q":
|
|
21641
|
-
return
|
|
21642
|
+
return de(l);
|
|
21642
21643
|
case "qq":
|
|
21643
|
-
return
|
|
21644
|
+
return de(r);
|
|
21644
21645
|
case "s":
|
|
21645
|
-
return
|
|
21646
|
+
return de(l);
|
|
21646
21647
|
case "ss":
|
|
21647
|
-
return
|
|
21648
|
+
return de(r);
|
|
21648
21649
|
case "S":
|
|
21649
|
-
return
|
|
21650
|
+
return de(c);
|
|
21650
21651
|
case "SSS":
|
|
21651
|
-
return
|
|
21652
|
+
return de(i);
|
|
21652
21653
|
case "u":
|
|
21653
21654
|
return rd(u);
|
|
21654
21655
|
case "uu":
|
|
21655
21656
|
return rd(l);
|
|
21656
21657
|
case "uuu":
|
|
21657
|
-
return
|
|
21658
|
+
return de(n);
|
|
21658
21659
|
case "a":
|
|
21659
21660
|
return nn(e.meridiems(), 0);
|
|
21660
21661
|
case "kkkk":
|
|
21661
|
-
return
|
|
21662
|
+
return de(s);
|
|
21662
21663
|
case "kk":
|
|
21663
|
-
return
|
|
21664
|
+
return de(f, vh);
|
|
21664
21665
|
case "W":
|
|
21665
|
-
return
|
|
21666
|
+
return de(l);
|
|
21666
21667
|
case "WW":
|
|
21667
|
-
return
|
|
21668
|
+
return de(r);
|
|
21668
21669
|
case "E":
|
|
21669
21670
|
case "c":
|
|
21670
|
-
return
|
|
21671
|
+
return de(n);
|
|
21671
21672
|
case "EEE":
|
|
21672
21673
|
return nn(e.weekdays("short", !1), 1);
|
|
21673
21674
|
case "EEEE":
|
|
@@ -21806,14 +21807,14 @@ function X3(t) {
|
|
|
21806
21807
|
}
|
|
21807
21808
|
};
|
|
21808
21809
|
let n = null, r;
|
|
21809
|
-
return
|
|
21810
|
+
return ie(t.z) || (n = nr.create(t.z)), ie(t.Z) || (n || (n = new mt(t.Z)), r = t.Z), ie(t.q) || (t.M = (t.q - 1) * 3 + 1), ie(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), ie(t.u) || (t.S = Lm(t.u)), [Object.keys(t).reduce((s, o) => {
|
|
21810
21811
|
const l = e(o);
|
|
21811
21812
|
return l && (s[l] = t[o]), s;
|
|
21812
21813
|
}, {}), n, r];
|
|
21813
21814
|
}
|
|
21814
21815
|
let Jp = null;
|
|
21815
21816
|
function eT() {
|
|
21816
|
-
return Jp || (Jp =
|
|
21817
|
+
return Jp || (Jp = U.fromMillis(1555555555555)), Jp;
|
|
21817
21818
|
}
|
|
21818
21819
|
function tT(t, e) {
|
|
21819
21820
|
if (t.literal)
|
|
@@ -21919,7 +21920,7 @@ function Kr(t, e) {
|
|
|
21919
21920
|
loc: t.loc,
|
|
21920
21921
|
invalid: t.invalid
|
|
21921
21922
|
};
|
|
21922
|
-
return new
|
|
21923
|
+
return new U({ ...n, ...e, old: n });
|
|
21923
21924
|
}
|
|
21924
21925
|
function lA(t, e, n) {
|
|
21925
21926
|
let r = t - e * 60 * 1e3;
|
|
@@ -21969,14 +21970,14 @@ function o1(t, e) {
|
|
|
21969
21970
|
function io(t, e, n, r, i, s) {
|
|
21970
21971
|
const { setZone: o, zone: l } = n;
|
|
21971
21972
|
if (t && Object.keys(t).length !== 0 || e) {
|
|
21972
|
-
const c = e || l, a =
|
|
21973
|
+
const c = e || l, a = U.fromObject(t, {
|
|
21973
21974
|
...n,
|
|
21974
21975
|
zone: c,
|
|
21975
21976
|
specificOffset: s
|
|
21976
21977
|
});
|
|
21977
21978
|
return o ? a : a.setZone(l);
|
|
21978
21979
|
} else
|
|
21979
|
-
return
|
|
21980
|
+
return U.invalid(
|
|
21980
21981
|
new cn("unparsable", `the input "${i}" can't be parsed as ${r}`)
|
|
21981
21982
|
);
|
|
21982
21983
|
}
|
|
@@ -22058,21 +22059,21 @@ function u1(t) {
|
|
|
22058
22059
|
function d1(t, e) {
|
|
22059
22060
|
const n = yr(e.zone, ke.defaultZone), r = ge.fromObject(e), i = ke.now();
|
|
22060
22061
|
let s, o;
|
|
22061
|
-
if (
|
|
22062
|
+
if (ie(t.year))
|
|
22062
22063
|
s = i;
|
|
22063
22064
|
else {
|
|
22064
22065
|
for (const a of dA)
|
|
22065
|
-
|
|
22066
|
+
ie(t[a]) && (t[a] = uA[a]);
|
|
22066
22067
|
const l = aA(t) || oA(t);
|
|
22067
22068
|
if (l)
|
|
22068
|
-
return
|
|
22069
|
+
return U.invalid(l);
|
|
22069
22070
|
const c = n.offset(i);
|
|
22070
22071
|
[s, o] = Td(t, c, n);
|
|
22071
22072
|
}
|
|
22072
|
-
return new
|
|
22073
|
+
return new U({ ts: s, zone: n, loc: r, o });
|
|
22073
22074
|
}
|
|
22074
22075
|
function c1(t, e, n) {
|
|
22075
|
-
const r =
|
|
22076
|
+
const r = ie(n.round) ? !0 : n.round, i = (o, l) => (o = Um(o, r || n.calendary ? 0 : 2, !0), e.loc.clone(n).relFormatter(n).format(o, l)), s = (o) => n.calendary ? e.hasSame(t, o) ? 0 : e.startOf(o).diff(t.startOf(o), o).get(o) : e.diff(t, o).get(o);
|
|
22076
22077
|
if (n.unit)
|
|
22077
22078
|
return i(s(n.unit), n.unit);
|
|
22078
22079
|
for (const o of n.units) {
|
|
@@ -22086,14 +22087,14 @@ function p1(t) {
|
|
|
22086
22087
|
let e = {}, n;
|
|
22087
22088
|
return t.length > 0 && typeof t[t.length - 1] == "object" ? (e = t[t.length - 1], n = Array.from(t).slice(0, t.length - 1)) : n = Array.from(t), [e, n];
|
|
22088
22089
|
}
|
|
22089
|
-
class
|
|
22090
|
+
class U {
|
|
22090
22091
|
/**
|
|
22091
22092
|
* @access private
|
|
22092
22093
|
*/
|
|
22093
22094
|
constructor(e) {
|
|
22094
22095
|
const n = e.zone || ke.defaultZone;
|
|
22095
22096
|
let r = e.invalid || (Number.isNaN(e.ts) ? new cn("invalid input") : null) || (n.isValid ? null : id(n));
|
|
22096
|
-
this.ts =
|
|
22097
|
+
this.ts = ie(e.ts) ? ke.now() : e.ts;
|
|
22097
22098
|
let i = null, s = null;
|
|
22098
22099
|
if (!r)
|
|
22099
22100
|
if (e.old && e.old.ts === this.ts && e.old.zone.equals(n))
|
|
@@ -22113,7 +22114,7 @@ class B {
|
|
|
22113
22114
|
* @return {DateTime}
|
|
22114
22115
|
*/
|
|
22115
22116
|
static now() {
|
|
22116
|
-
return new
|
|
22117
|
+
return new U({});
|
|
22117
22118
|
}
|
|
22118
22119
|
/**
|
|
22119
22120
|
* Create a local DateTime
|
|
@@ -22178,13 +22179,13 @@ class B {
|
|
|
22178
22179
|
static fromJSDate(e, n = {}) {
|
|
22179
22180
|
const r = Nj(e) ? e.valueOf() : NaN;
|
|
22180
22181
|
if (Number.isNaN(r))
|
|
22181
|
-
return
|
|
22182
|
+
return U.invalid("invalid input");
|
|
22182
22183
|
const i = yr(n.zone, ke.defaultZone);
|
|
22183
|
-
return i.isValid ? new
|
|
22184
|
+
return i.isValid ? new U({
|
|
22184
22185
|
ts: r,
|
|
22185
22186
|
zone: i,
|
|
22186
22187
|
loc: ge.fromObject(n)
|
|
22187
|
-
}) :
|
|
22188
|
+
}) : U.invalid(id(i));
|
|
22188
22189
|
}
|
|
22189
22190
|
/**
|
|
22190
22191
|
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
|
@@ -22198,7 +22199,7 @@ class B {
|
|
|
22198
22199
|
*/
|
|
22199
22200
|
static fromMillis(e, n = {}) {
|
|
22200
22201
|
if (ci(e))
|
|
22201
|
-
return e < -a1 || e > a1 ?
|
|
22202
|
+
return e < -a1 || e > a1 ? U.invalid("Timestamp out of range") : new U({
|
|
22202
22203
|
ts: e,
|
|
22203
22204
|
zone: yr(n.zone, ke.defaultZone),
|
|
22204
22205
|
loc: ge.fromObject(n)
|
|
@@ -22219,7 +22220,7 @@ class B {
|
|
|
22219
22220
|
*/
|
|
22220
22221
|
static fromSeconds(e, n = {}) {
|
|
22221
22222
|
if (ci(e))
|
|
22222
|
-
return new
|
|
22223
|
+
return new U({
|
|
22223
22224
|
ts: e * 1e3,
|
|
22224
22225
|
zone: yr(n.zone, ke.defaultZone),
|
|
22225
22226
|
loc: ge.fromObject(n)
|
|
@@ -22258,8 +22259,8 @@ class B {
|
|
|
22258
22259
|
e = e || {};
|
|
22259
22260
|
const r = yr(n.zone, ke.defaultZone);
|
|
22260
22261
|
if (!r.isValid)
|
|
22261
|
-
return
|
|
22262
|
-
const i = ke.now(), s =
|
|
22262
|
+
return U.invalid(id(r));
|
|
22263
|
+
const i = ke.now(), s = ie(n.specificOffset) ? r.offset(i) : n.specificOffset, o = pc(e, u1), l = !ie(o.ordinal), c = !ie(o.year), a = !ie(o.month) || !ie(o.day), u = c || a, f = o.weekYear || o.weekNumber, d = ge.fromObject(n);
|
|
22263
22264
|
if ((u || l) && f)
|
|
22264
22265
|
throw new mo(
|
|
22265
22266
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -22272,18 +22273,18 @@ class B {
|
|
|
22272
22273
|
let g = !1;
|
|
22273
22274
|
for (const O of m) {
|
|
22274
22275
|
const T = o[O];
|
|
22275
|
-
|
|
22276
|
+
ie(T) ? g ? o[O] = v[O] : o[O] = b[O] : g = !0;
|
|
22276
22277
|
}
|
|
22277
22278
|
const y = h ? rT(o) : l ? iT(o) : aA(o), S = y || oA(o);
|
|
22278
22279
|
if (S)
|
|
22279
|
-
return
|
|
22280
|
-
const E = h ? i1(o) : l ? s1(o) : o, [I, w] = Td(E, s, r), A = new
|
|
22280
|
+
return U.invalid(S);
|
|
22281
|
+
const E = h ? i1(o) : l ? s1(o) : o, [I, w] = Td(E, s, r), A = new U({
|
|
22281
22282
|
ts: I,
|
|
22282
22283
|
zone: r,
|
|
22283
22284
|
o: w,
|
|
22284
22285
|
loc: d
|
|
22285
22286
|
});
|
|
22286
|
-
return o.weekday && u && e.weekday !== A.weekday ?
|
|
22287
|
+
return o.weekday && u && e.weekday !== A.weekday ? U.invalid(
|
|
22287
22288
|
"mismatched weekday",
|
|
22288
22289
|
`you can't specify both a weekday of ${o.weekday} and a date of ${A.toISO()}`
|
|
22289
22290
|
) : A;
|
|
@@ -22359,20 +22360,20 @@ class B {
|
|
|
22359
22360
|
* @return {DateTime}
|
|
22360
22361
|
*/
|
|
22361
22362
|
static fromFormat(e, n, r = {}) {
|
|
22362
|
-
if (
|
|
22363
|
+
if (ie(e) || ie(n))
|
|
22363
22364
|
throw new $t("fromFormat requires an input string and a format");
|
|
22364
22365
|
const { locale: i = null, numberingSystem: s = null } = r, o = ge.fromOpts({
|
|
22365
22366
|
locale: i,
|
|
22366
22367
|
numberingSystem: s,
|
|
22367
22368
|
defaultToEN: !0
|
|
22368
22369
|
}), [l, c, a, u] = nT(o, e, n);
|
|
22369
|
-
return u ?
|
|
22370
|
+
return u ? U.invalid(u) : io(l, c, r, `format ${n}`, e, a);
|
|
22370
22371
|
}
|
|
22371
22372
|
/**
|
|
22372
22373
|
* @deprecated use fromFormat instead
|
|
22373
22374
|
*/
|
|
22374
22375
|
static fromString(e, n, r = {}) {
|
|
22375
|
-
return
|
|
22376
|
+
return U.fromFormat(e, n, r);
|
|
22376
22377
|
}
|
|
22377
22378
|
/**
|
|
22378
22379
|
* Create a DateTime from a SQL date, time, or datetime
|
|
@@ -22410,7 +22411,7 @@ class B {
|
|
|
22410
22411
|
const r = e instanceof cn ? e : new cn(e, n);
|
|
22411
22412
|
if (ke.throwOnInvalid)
|
|
22412
22413
|
throw new fj(r);
|
|
22413
|
-
return new
|
|
22414
|
+
return new U({ invalid: r });
|
|
22414
22415
|
}
|
|
22415
22416
|
/**
|
|
22416
22417
|
* Check if an object is an instance of DateTime. Works across context boundaries
|
|
@@ -22800,7 +22801,7 @@ class B {
|
|
|
22800
22801
|
}
|
|
22801
22802
|
return Kr(this, { ts: i, zone: e });
|
|
22802
22803
|
} else
|
|
22803
|
-
return
|
|
22804
|
+
return U.invalid(id(e));
|
|
22804
22805
|
}
|
|
22805
22806
|
/**
|
|
22806
22807
|
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
|
@@ -22834,7 +22835,7 @@ class B {
|
|
|
22834
22835
|
set(e) {
|
|
22835
22836
|
if (!this.isValid)
|
|
22836
22837
|
return this;
|
|
22837
|
-
const n = pc(e, u1), r = !
|
|
22838
|
+
const n = pc(e, u1), r = !ie(n.weekYear) || !ie(n.weekNumber) || !ie(n.weekday), i = !ie(n.ordinal), s = !ie(n.year), o = !ie(n.month) || !ie(n.day), l = s || o, c = n.weekYear || n.weekNumber;
|
|
22838
22839
|
if ((l || i) && c)
|
|
22839
22840
|
throw new mo(
|
|
22840
22841
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
@@ -22842,7 +22843,7 @@ class B {
|
|
|
22842
22843
|
if (o && i)
|
|
22843
22844
|
throw new mo("Can't mix ordinal dates with month/day");
|
|
22844
22845
|
let a;
|
|
22845
|
-
r ? a = i1({ ...bh(this.c), ...n }) :
|
|
22846
|
+
r ? a = i1({ ...bh(this.c), ...n }) : ie(n.ordinal) ? (a = { ...this.toObject(), ...n }, ie(n.day) && (a.day = Math.min(dc(a.year, a.month), a.day))) : a = s1({ ...Xp(this.c), ...n });
|
|
22846
22847
|
const [u, f] = Td(a, this.o, this.zone);
|
|
22847
22848
|
return Kr(this, { ts: u, o: f });
|
|
22848
22849
|
}
|
|
@@ -23218,7 +23219,7 @@ class B {
|
|
|
23218
23219
|
* @return {Duration}
|
|
23219
23220
|
*/
|
|
23220
23221
|
diffNow(e = "milliseconds", n = {}) {
|
|
23221
|
-
return this.diff(
|
|
23222
|
+
return this.diff(U.now(), e, n);
|
|
23222
23223
|
}
|
|
23223
23224
|
/**
|
|
23224
23225
|
* Return an Interval spanning between this DateTime and another DateTime
|
|
@@ -23274,7 +23275,7 @@ class B {
|
|
|
23274
23275
|
toRelative(e = {}) {
|
|
23275
23276
|
if (!this.isValid)
|
|
23276
23277
|
return null;
|
|
23277
|
-
const n = e.base ||
|
|
23278
|
+
const n = e.base || U.fromObject({}, { zone: this.zone }), r = e.padding ? this < n ? -e.padding : e.padding : 0;
|
|
23278
23279
|
let i = ["years", "months", "days", "hours", "minutes", "seconds"], s = e.unit;
|
|
23279
23280
|
return Array.isArray(e.unit) && (i = e.unit, s = void 0), c1(n, this.plus(r), {
|
|
23280
23281
|
...e,
|
|
@@ -23297,7 +23298,7 @@ class B {
|
|
|
23297
23298
|
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
|
23298
23299
|
*/
|
|
23299
23300
|
toRelativeCalendar(e = {}) {
|
|
23300
|
-
return this.isValid ? c1(e.base ||
|
|
23301
|
+
return this.isValid ? c1(e.base || U.fromObject({}, { zone: this.zone }), this, {
|
|
23301
23302
|
...e,
|
|
23302
23303
|
numeric: "auto",
|
|
23303
23304
|
units: ["years", "months", "days"],
|
|
@@ -23310,7 +23311,7 @@ class B {
|
|
|
23310
23311
|
* @return {DateTime} the min DateTime, or undefined if called with no argument
|
|
23311
23312
|
*/
|
|
23312
23313
|
static min(...e) {
|
|
23313
|
-
if (!e.every(
|
|
23314
|
+
if (!e.every(U.isDateTime))
|
|
23314
23315
|
throw new $t("min requires all arguments be DateTimes");
|
|
23315
23316
|
return W0(e, (n) => n.valueOf(), Math.min);
|
|
23316
23317
|
}
|
|
@@ -23320,7 +23321,7 @@ class B {
|
|
|
23320
23321
|
* @return {DateTime} the max DateTime, or undefined if called with no argument
|
|
23321
23322
|
*/
|
|
23322
23323
|
static max(...e) {
|
|
23323
|
-
if (!e.every(
|
|
23324
|
+
if (!e.every(U.isDateTime))
|
|
23324
23325
|
throw new $t("max requires all arguments be DateTimes");
|
|
23325
23326
|
return W0(e, (n) => n.valueOf(), Math.max);
|
|
23326
23327
|
}
|
|
@@ -23344,7 +23345,7 @@ class B {
|
|
|
23344
23345
|
* @deprecated use fromFormatExplain instead
|
|
23345
23346
|
*/
|
|
23346
23347
|
static fromStringExplain(e, n, r = {}) {
|
|
23347
|
-
return
|
|
23348
|
+
return U.fromFormatExplain(e, n, r);
|
|
23348
23349
|
}
|
|
23349
23350
|
// FORMAT PRESETS
|
|
23350
23351
|
/**
|
|
@@ -23503,12 +23504,12 @@ class B {
|
|
|
23503
23504
|
}
|
|
23504
23505
|
}
|
|
23505
23506
|
function so(t) {
|
|
23506
|
-
if (
|
|
23507
|
+
if (U.isDateTime(t))
|
|
23507
23508
|
return t;
|
|
23508
23509
|
if (t && t.valueOf && ci(t.valueOf()))
|
|
23509
|
-
return
|
|
23510
|
+
return U.fromJSDate(t);
|
|
23510
23511
|
if (t && typeof t == "object")
|
|
23511
|
-
return
|
|
23512
|
+
return U.fromObject(t);
|
|
23512
23513
|
throw new $t(
|
|
23513
23514
|
`Unknown datetime argument: ${t}, of type ${typeof t}`
|
|
23514
23515
|
);
|
|
@@ -23625,7 +23626,7 @@ function Rt({
|
|
|
23625
23626
|
return /* @__PURE__ */ p.jsx(
|
|
23626
23627
|
"button",
|
|
23627
23628
|
{
|
|
23628
|
-
className:
|
|
23629
|
+
className: te(
|
|
23629
23630
|
`seam-btn seam-btn-${t} seam-btn-${n}`,
|
|
23630
23631
|
{
|
|
23631
23632
|
"seam-btn-disabled": r
|
|
@@ -23752,15 +23753,15 @@ function hA(t) {
|
|
|
23752
23753
|
return { ...i, accessCodes: r };
|
|
23753
23754
|
}
|
|
23754
23755
|
const Zm = (t, e) => {
|
|
23755
|
-
const n =
|
|
23756
|
+
const n = U.fromISO(t.created_at), r = U.fromISO(e.created_at);
|
|
23756
23757
|
return !n.isValid || !r.isValid ? 0 : n.toMillis() - r.toMillis();
|
|
23757
23758
|
}, fT = () => {
|
|
23758
23759
|
const t = new Set(Intl.supportedValuesOf("timeZone"));
|
|
23759
23760
|
return t.add("UTC"), Array.from(t).sort();
|
|
23760
|
-
}, wh = () =>
|
|
23761
|
-
const e =
|
|
23761
|
+
}, wh = () => U.now().zoneName ?? "UTC", mA = (t) => {
|
|
23762
|
+
const e = U.now().setZone(t).toFormat("'UTC'Z");
|
|
23762
23763
|
return `${t.replaceAll("_", " ")} (${e})`;
|
|
23763
|
-
}, f1 = (t, e) => t.isValid ? t.setZone(e).toFormat("yyyy-MM-dd'T'HH:mm:ss") : null, h1 = (t, e) =>
|
|
23764
|
+
}, f1 = (t, e) => t.isValid ? t.setZone(e).toFormat("yyyy-MM-dd'T'HH:mm:ss") : null, h1 = (t, e) => U.fromISO(t).setZone(e, { keepLocalTime: !0 });
|
|
23764
23765
|
function hT(t) {
|
|
23765
23766
|
return /* @__PURE__ */ p.jsxs(
|
|
23766
23767
|
"svg",
|
|
@@ -23883,7 +23884,7 @@ function mT(t) {
|
|
|
23883
23884
|
);
|
|
23884
23885
|
}
|
|
23885
23886
|
function Ma({ className: t, ...e }) {
|
|
23886
|
-
return /* @__PURE__ */ p.jsx("button", { ...e, className:
|
|
23887
|
+
return /* @__PURE__ */ p.jsx("button", { ...e, className: te("seam-icon-btn", t) });
|
|
23887
23888
|
}
|
|
23888
23889
|
function fc({
|
|
23889
23890
|
filterCleared: t = !1,
|
|
@@ -23909,7 +23910,7 @@ function zo({
|
|
|
23909
23910
|
"div",
|
|
23910
23911
|
{
|
|
23911
23912
|
onClick: t,
|
|
23912
|
-
className:
|
|
23913
|
+
className: te("seam-table-filter-item", {
|
|
23913
23914
|
"seam-clickable": t != null,
|
|
23914
23915
|
"seam-selected": e
|
|
23915
23916
|
}),
|
|
@@ -24003,7 +24004,7 @@ async function Ah(t) {
|
|
|
24003
24004
|
var e, n;
|
|
24004
24005
|
await ((n = (e = globalThis.navigator) == null ? void 0 : e.clipboard) == null ? void 0 : n.writeText(t));
|
|
24005
24006
|
}
|
|
24006
|
-
const gA =
|
|
24007
|
+
const gA = z.createContext({
|
|
24007
24008
|
close: () => {
|
|
24008
24009
|
}
|
|
24009
24010
|
});
|
|
@@ -24015,23 +24016,23 @@ function Km({
|
|
|
24015
24016
|
renderButton: i,
|
|
24016
24017
|
backgroundProps: s
|
|
24017
24018
|
}) {
|
|
24018
|
-
const { Provider: o } = gA, [l, c] =
|
|
24019
|
-
|
|
24019
|
+
const { Provider: o } = gA, [l, c] = z.useState(null), [a, u] = z.useState(null), [f, d] = z.useState(null), [h, m] = z.useState(null), [v, b] = z.useState(0), [g, y] = z.useState(0);
|
|
24020
|
+
z.useEffect(() => {
|
|
24020
24021
|
const T = globalThis.document.documentElement;
|
|
24021
24022
|
c(T);
|
|
24022
|
-
const
|
|
24023
|
-
|
|
24023
|
+
const M = T == null ? void 0 : T.getElementsByTagName("body");
|
|
24024
|
+
M[0] != null && u(M[0]);
|
|
24024
24025
|
}, [c]);
|
|
24025
24026
|
const S = () => {
|
|
24026
24027
|
d(null);
|
|
24027
24028
|
}, E = (T) => {
|
|
24028
24029
|
d(T.currentTarget);
|
|
24029
|
-
}, I =
|
|
24030
|
+
}, I = z.useCallback(() => {
|
|
24030
24031
|
if (f == null || h == null || a == null || l == null)
|
|
24031
24032
|
return;
|
|
24032
|
-
const T = l.offsetLeft + l.clientWidth,
|
|
24033
|
+
const T = l.offsetLeft + l.clientWidth, M = l.offsetTop + l.clientHeight, G = f.getBoundingClientRect(), V = G.top + a.clientTop, $ = G.left + a.clientLeft, ee = f.offsetHeight, le = h.offsetWidth, oe = h.offsetHeight, D = V + ee + t, Q = $ + e, Y = Q + le, fe = D + oe, vn = Y > T ? T - le - e - n : Q;
|
|
24033
24034
|
y(vn);
|
|
24034
|
-
const bt = fe >
|
|
24035
|
+
const bt = fe > M, bn = V - oe - t, ct = bt && bn > 0 ? bn : D;
|
|
24035
24036
|
b(ct);
|
|
24036
24037
|
}, [
|
|
24037
24038
|
f,
|
|
@@ -24042,7 +24043,7 @@ function Km({
|
|
|
24042
24043
|
a,
|
|
24043
24044
|
l
|
|
24044
24045
|
]);
|
|
24045
|
-
|
|
24046
|
+
z.useLayoutEffect(() => (I(), globalThis.addEventListener("scroll", I), globalThis.addEventListener("resize", I), () => {
|
|
24046
24047
|
globalThis.removeEventListener("scroll", I), globalThis.removeEventListener("resize", I);
|
|
24047
24048
|
}), [I]);
|
|
24048
24049
|
const O = f != null && (v !== 0 && g !== 0);
|
|
@@ -24058,7 +24059,7 @@ function Km({
|
|
|
24058
24059
|
/* @__PURE__ */ p.jsx("div", { className: aw, children: /* @__PURE__ */ p.jsx(
|
|
24059
24060
|
"div",
|
|
24060
24061
|
{
|
|
24061
|
-
className:
|
|
24062
|
+
className: te(
|
|
24062
24063
|
"seam-menu-bg",
|
|
24063
24064
|
s == null ? void 0 : s.className,
|
|
24064
24065
|
O ? "seam-menu-visible" : "seam-menu-hidden"
|
|
@@ -24087,7 +24088,7 @@ function Km({
|
|
|
24087
24088
|
);
|
|
24088
24089
|
}
|
|
24089
24090
|
function ST() {
|
|
24090
|
-
return
|
|
24091
|
+
return z.useContext(gA);
|
|
24091
24092
|
}
|
|
24092
24093
|
function go({
|
|
24093
24094
|
onClick: t,
|
|
@@ -24099,7 +24100,7 @@ function go({
|
|
|
24099
24100
|
return /* @__PURE__ */ p.jsx(
|
|
24100
24101
|
"div",
|
|
24101
24102
|
{
|
|
24102
|
-
className:
|
|
24103
|
+
className: te("seam-menu-item", n),
|
|
24103
24104
|
onClick: (s) => {
|
|
24104
24105
|
t(s), r || i();
|
|
24105
24106
|
},
|
|
@@ -24165,7 +24166,7 @@ function AT({
|
|
|
24165
24166
|
);
|
|
24166
24167
|
}
|
|
24167
24168
|
const Ou = (t = !1) => {
|
|
24168
|
-
const [e, n] =
|
|
24169
|
+
const [e, n] = z.useState(t), r = z.useCallback(() => {
|
|
24169
24170
|
n((i) => !i);
|
|
24170
24171
|
}, [n]);
|
|
24171
24172
|
return [e, r];
|
|
@@ -24268,10 +24269,10 @@ function Si() {
|
|
|
24268
24269
|
}
|
|
24269
24270
|
const OT = Xe.fromObject({ minutes: 1 }).as("milliseconds");
|
|
24270
24271
|
function vA(t, e = OT) {
|
|
24271
|
-
const n =
|
|
24272
|
+
const n = z.useCallback(() => {
|
|
24272
24273
|
t();
|
|
24273
24274
|
}, [t]);
|
|
24274
|
-
|
|
24275
|
+
z.useEffect(() => {
|
|
24275
24276
|
const r = globalThis.setInterval(n, e);
|
|
24276
24277
|
return () => {
|
|
24277
24278
|
globalThis.clearInterval(r);
|
|
@@ -24279,10 +24280,10 @@ function vA(t, e = OT) {
|
|
|
24279
24280
|
}, [n, e]);
|
|
24280
24281
|
}
|
|
24281
24282
|
function Ym(t) {
|
|
24282
|
-
const [e, n] =
|
|
24283
|
-
t != null && n(CT(
|
|
24283
|
+
const [e, n] = z.useState(null), r = z.useCallback(() => {
|
|
24284
|
+
t != null && n(CT(U.fromISO(t)));
|
|
24284
24285
|
}, [t]);
|
|
24285
|
-
return
|
|
24286
|
+
return z.useEffect(r, [r]), vA(r), e;
|
|
24286
24287
|
}
|
|
24287
24288
|
const CT = (t) => t.isValid ? t.diffNow().milliseconds < 0 : null;
|
|
24288
24289
|
function IT(t) {
|
|
@@ -24314,7 +24315,7 @@ function jT(t) {
|
|
|
24314
24315
|
m1(e.starts_at)
|
|
24315
24316
|
] });
|
|
24316
24317
|
}
|
|
24317
|
-
const m1 = (t) =>
|
|
24318
|
+
const m1 = (t) => U.fromISO(t).toLocaleString({
|
|
24318
24319
|
month: "long",
|
|
24319
24320
|
day: "numeric"
|
|
24320
24321
|
}), vo = {
|
|
@@ -24324,7 +24325,7 @@ const m1 = (t) => B.fromISO(t).toLocaleString({
|
|
|
24324
24325
|
never: "Never"
|
|
24325
24326
|
};
|
|
24326
24327
|
function pi({ className: t, ...e }) {
|
|
24327
|
-
return /* @__PURE__ */ p.jsx("div", { className:
|
|
24328
|
+
return /* @__PURE__ */ p.jsx("div", { className: te("seam-table-cell", t), ...e });
|
|
24328
24329
|
}
|
|
24329
24330
|
function Jm(t) {
|
|
24330
24331
|
return /* @__PURE__ */ p.jsx("div", { className: "seam-table-row", ...t, children: t.children });
|
|
@@ -24334,7 +24335,7 @@ function Xm({
|
|
|
24334
24335
|
className: e,
|
|
24335
24336
|
...n
|
|
24336
24337
|
}) {
|
|
24337
|
-
return /* @__PURE__ */ p.jsx("span", { className:
|
|
24338
|
+
return /* @__PURE__ */ p.jsx("span", { className: te("seam-title", e), ...n, children: t });
|
|
24338
24339
|
}
|
|
24339
24340
|
function TT({
|
|
24340
24341
|
onClick: t,
|
|
@@ -24412,7 +24413,7 @@ function Fn(t) {
|
|
|
24412
24413
|
return t;
|
|
24413
24414
|
return e;
|
|
24414
24415
|
}
|
|
24415
|
-
var Iu = (t) => Array.isArray(t) ? t.filter(Boolean) : [], De = (t) => t === void 0,
|
|
24416
|
+
var Iu = (t) => Array.isArray(t) ? t.filter(Boolean) : [], De = (t) => t === void 0, B = (t, e, n) => {
|
|
24416
24417
|
if (!e || !Ue(t))
|
|
24417
24418
|
return n;
|
|
24418
24419
|
const r = Iu(e.split(/[,[\].]+?/)).reduce((i, s) => ht(i) ? i : i[s], t);
|
|
@@ -24466,7 +24467,7 @@ function DT(t) {
|
|
|
24466
24467
|
};
|
|
24467
24468
|
}, [t.disabled]);
|
|
24468
24469
|
}
|
|
24469
|
-
var jn = (t) => typeof t == "string", VT = (t, e, n, r, i) => jn(t) ? (r && e.watch.add(t),
|
|
24470
|
+
var jn = (t) => typeof t == "string", VT = (t, e, n, r, i) => jn(t) ? (r && e.watch.add(t), B(n, t, i)) : Array.isArray(t) ? t.map((s) => (r && e.watch.add(s), B(n, s))) : (r && (e.watchAll = !0), n), ty = (t) => /^\w*$/.test(t), SA = (t) => Iu(t.replace(/["|']|\]/g, "").split(/\.|\[/));
|
|
24470
24471
|
function we(t, e, n) {
|
|
24471
24472
|
let r = -1;
|
|
24472
24473
|
const i = ty(e) ? [e] : SA(e), s = i.length, o = s - 1;
|
|
@@ -24490,7 +24491,7 @@ var HT = (t, e, n, r, i) => e ? {
|
|
|
24490
24491
|
} : {};
|
|
24491
24492
|
const Eh = (t, e, n) => {
|
|
24492
24493
|
for (const r of n || Object.keys(t)) {
|
|
24493
|
-
const i =
|
|
24494
|
+
const i = B(t, r);
|
|
24494
24495
|
if (i) {
|
|
24495
24496
|
const { _f: s, ...o } = i;
|
|
24496
24497
|
if (s && e(s.name)) {
|
|
@@ -24513,7 +24514,7 @@ var v1 = (t) => ({
|
|
|
24513
24514
|
isOnAll: t === dn.all,
|
|
24514
24515
|
isOnTouch: t === dn.onTouched
|
|
24515
24516
|
}), b1 = (t, e, n) => !n && (e.watchAll || e.watch.has(t) || [...e.watch].some((r) => t.startsWith(r) && /^\.\w+/.test(t.slice(r.length)))), qT = (t, e, n) => {
|
|
24516
|
-
const r = Iu(
|
|
24517
|
+
const r = Iu(B(t, n));
|
|
24517
24518
|
return we(r, "root", e[n]), we(t, n, r), t;
|
|
24518
24519
|
}, ny = (t) => t.type === "file", Sr = (t) => typeof t == "function", hc = (t) => {
|
|
24519
24520
|
if (!ey)
|
|
@@ -24558,80 +24559,80 @@ var Di = (t) => Ue(t) && !mc(t) ? t : {
|
|
|
24558
24559
|
value: t,
|
|
24559
24560
|
message: ""
|
|
24560
24561
|
}, x1 = async (t, e, n, r, i) => {
|
|
24561
|
-
const { ref: s, refs: o, required: l, maxLength: c, minLength: a, min: u, max: f, pattern: d, validate: h, name: m, valueAsNumber: v, mount: b, disabled: g } = t._f, y =
|
|
24562
|
+
const { ref: s, refs: o, required: l, maxLength: c, minLength: a, min: u, max: f, pattern: d, validate: h, name: m, valueAsNumber: v, mount: b, disabled: g } = t._f, y = B(e, m);
|
|
24562
24563
|
if (!b || g)
|
|
24563
24564
|
return {};
|
|
24564
|
-
const S = o ? o[0] : s, E = (
|
|
24565
|
-
r && S.reportValidity && (S.setCustomValidity(oi(
|
|
24566
|
-
}, I = {}, w = ry(s), A = Cu(s), O = w || A, T = (v || ny(s)) && De(s.value) && De(y) || hc(s) && s.value === "" || y === "" || Array.isArray(y) && !y.length,
|
|
24567
|
-
const
|
|
24565
|
+
const S = o ? o[0] : s, E = (V) => {
|
|
24566
|
+
r && S.reportValidity && (S.setCustomValidity(oi(V) ? "" : V || ""), S.reportValidity());
|
|
24567
|
+
}, I = {}, w = ry(s), A = Cu(s), O = w || A, T = (v || ny(s)) && De(s.value) && De(y) || hc(s) && s.value === "" || y === "" || Array.isArray(y) && !y.length, M = HT.bind(null, m, n, I), G = (V, $, ee, le = qn.maxLength, oe = qn.minLength) => {
|
|
24568
|
+
const X = V ? $ : ee;
|
|
24568
24569
|
I[m] = {
|
|
24569
|
-
type:
|
|
24570
|
-
message:
|
|
24570
|
+
type: V ? le : oe,
|
|
24571
|
+
message: X,
|
|
24571
24572
|
ref: s,
|
|
24572
|
-
...
|
|
24573
|
+
...M(V ? le : oe, X)
|
|
24573
24574
|
};
|
|
24574
24575
|
};
|
|
24575
24576
|
if (i ? !Array.isArray(y) || !y.length : l && (!O && (T || ht(y)) || oi(y) && !y || A && !wA(o).isValid || w && !AA(o).isValid)) {
|
|
24576
|
-
const { value:
|
|
24577
|
-
if (
|
|
24577
|
+
const { value: V, message: $ } = _d(l) ? { value: !!l, message: l } : Di(l);
|
|
24578
|
+
if (V && (I[m] = {
|
|
24578
24579
|
type: qn.required,
|
|
24579
|
-
message:
|
|
24580
|
+
message: $,
|
|
24580
24581
|
ref: S,
|
|
24581
|
-
...
|
|
24582
|
+
...M(qn.required, $)
|
|
24582
24583
|
}, !n))
|
|
24583
|
-
return E(
|
|
24584
|
+
return E($), I;
|
|
24584
24585
|
}
|
|
24585
24586
|
if (!T && (!ht(u) || !ht(f))) {
|
|
24586
|
-
let
|
|
24587
|
-
const
|
|
24587
|
+
let V, $;
|
|
24588
|
+
const ee = Di(f), le = Di(u);
|
|
24588
24589
|
if (!ht(y) && !isNaN(y)) {
|
|
24589
|
-
const
|
|
24590
|
-
ht(
|
|
24590
|
+
const oe = s.valueAsNumber || y && +y;
|
|
24591
|
+
ht(ee.value) || (V = oe > ee.value), ht(le.value) || ($ = oe < le.value);
|
|
24591
24592
|
} else {
|
|
24592
|
-
const
|
|
24593
|
-
jn(
|
|
24593
|
+
const oe = s.valueAsDate || new Date(y), X = (Y) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Y), D = s.type == "time", Q = s.type == "week";
|
|
24594
|
+
jn(ee.value) && y && (V = D ? X(y) > X(ee.value) : Q ? y > ee.value : oe > new Date(ee.value)), jn(le.value) && y && ($ = D ? X(y) < X(le.value) : Q ? y < le.value : oe < new Date(le.value));
|
|
24594
24595
|
}
|
|
24595
|
-
if ((
|
|
24596
|
+
if ((V || $) && (G(!!V, ee.message, le.message, qn.max, qn.min), !n))
|
|
24596
24597
|
return E(I[m].message), I;
|
|
24597
24598
|
}
|
|
24598
24599
|
if ((c || a) && !T && (jn(y) || i && Array.isArray(y))) {
|
|
24599
|
-
const
|
|
24600
|
-
if ((
|
|
24600
|
+
const V = Di(c), $ = Di(a), ee = !ht(V.value) && y.length > +V.value, le = !ht($.value) && y.length < +$.value;
|
|
24601
|
+
if ((ee || le) && (G(ee, V.message, $.message), !n))
|
|
24601
24602
|
return E(I[m].message), I;
|
|
24602
24603
|
}
|
|
24603
24604
|
if (d && !T && jn(y)) {
|
|
24604
|
-
const { value:
|
|
24605
|
-
if (mc(
|
|
24605
|
+
const { value: V, message: $ } = Di(d);
|
|
24606
|
+
if (mc(V) && !y.match(V) && (I[m] = {
|
|
24606
24607
|
type: qn.pattern,
|
|
24607
|
-
message:
|
|
24608
|
+
message: $,
|
|
24608
24609
|
ref: s,
|
|
24609
|
-
...
|
|
24610
|
+
...M(qn.pattern, $)
|
|
24610
24611
|
}, !n))
|
|
24611
|
-
return E(
|
|
24612
|
+
return E($), I;
|
|
24612
24613
|
}
|
|
24613
24614
|
if (h) {
|
|
24614
24615
|
if (Sr(h)) {
|
|
24615
|
-
const
|
|
24616
|
-
if (
|
|
24617
|
-
|
|
24618
|
-
...
|
|
24616
|
+
const V = await h(y, e), $ = E1(V, S);
|
|
24617
|
+
if ($ && (I[m] = {
|
|
24618
|
+
...$,
|
|
24619
|
+
...M(qn.validate, $.message)
|
|
24619
24620
|
}, !n))
|
|
24620
|
-
return E(
|
|
24621
|
+
return E($.message), I;
|
|
24621
24622
|
} else if (Ue(h)) {
|
|
24622
|
-
let
|
|
24623
|
-
for (const
|
|
24624
|
-
if (!Lt(
|
|
24623
|
+
let V = {};
|
|
24624
|
+
for (const $ in h) {
|
|
24625
|
+
if (!Lt(V) && !n)
|
|
24625
24626
|
break;
|
|
24626
|
-
const
|
|
24627
|
-
|
|
24628
|
-
...
|
|
24629
|
-
...
|
|
24630
|
-
}, E(
|
|
24627
|
+
const ee = E1(await h[$](y, e), S, $);
|
|
24628
|
+
ee && (V = {
|
|
24629
|
+
...ee,
|
|
24630
|
+
...M($, ee.message)
|
|
24631
|
+
}, E(ee.message), n && (I[m] = V));
|
|
24631
24632
|
}
|
|
24632
|
-
if (!Lt(
|
|
24633
|
+
if (!Lt(V) && (I[m] = {
|
|
24633
24634
|
ref: S,
|
|
24634
|
-
...
|
|
24635
|
+
...V
|
|
24635
24636
|
}, !n))
|
|
24636
24637
|
return I;
|
|
24637
24638
|
}
|
|
@@ -24725,7 +24726,7 @@ function df(t) {
|
|
|
24725
24726
|
var BT = (t, e, n, r) => {
|
|
24726
24727
|
const i = {};
|
|
24727
24728
|
for (const s of t) {
|
|
24728
|
-
const o =
|
|
24729
|
+
const o = B(e, s);
|
|
24729
24730
|
o && we(i, s, o._f);
|
|
24730
24731
|
}
|
|
24731
24732
|
return {
|
|
@@ -24736,7 +24737,7 @@ var BT = (t, e, n, r) => {
|
|
|
24736
24737
|
};
|
|
24737
24738
|
}, ao = (t) => De(t) ? t : mc(t) ? t.source : Ue(t) ? mc(t.value) ? t.value.source : t.value : t, $T = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
|
|
24738
24739
|
function O1(t, e, n) {
|
|
24739
|
-
const r =
|
|
24740
|
+
const r = B(t, n);
|
|
24740
24741
|
if (r || ty(n))
|
|
24741
24742
|
return {
|
|
24742
24743
|
error: r,
|
|
@@ -24744,7 +24745,7 @@ function O1(t, e, n) {
|
|
|
24744
24745
|
};
|
|
24745
24746
|
const i = n.split(".");
|
|
24746
24747
|
for (; i.length; ) {
|
|
24747
|
-
const s = i.join("."), o =
|
|
24748
|
+
const s = i.join("."), o = B(e, s), l = B(t, s);
|
|
24748
24749
|
if (o && !Array.isArray(o) && n !== s)
|
|
24749
24750
|
return { name: n };
|
|
24750
24751
|
if (l && l.type)
|
|
@@ -24758,7 +24759,7 @@ function O1(t, e, n) {
|
|
|
24758
24759
|
name: n
|
|
24759
24760
|
};
|
|
24760
24761
|
}
|
|
24761
|
-
var GT = (t, e, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(e || t) : (n ? r.isOnBlur : i.isOnBlur) ? !t : (n ? r.isOnChange : i.isOnChange) ? t : !0, QT = (t, e) => !Iu(
|
|
24762
|
+
var GT = (t, e, n, r, i) => i.isOnAll ? !1 : !n && i.isOnTouch ? !(e || t) : (n ? r.isOnBlur : i.isOnBlur) ? !t : (n ? r.isOnChange : i.isOnChange) ? t : !0, QT = (t, e) => !Iu(B(t, e)).length && Ke(t, e);
|
|
24762
24763
|
const ZT = {
|
|
24763
24764
|
mode: dn.onSubmit,
|
|
24764
24765
|
reValidateMode: dn.onChange,
|
|
@@ -24812,23 +24813,23 @@ function WT(t = {}, e) {
|
|
|
24812
24813
|
}
|
|
24813
24814
|
}, S = (C) => f.isValidating && d.state.next({
|
|
24814
24815
|
isValidating: C
|
|
24815
|
-
}), E = (C, j = [], _,
|
|
24816
|
-
if (
|
|
24817
|
-
if (l.action = !0, N && Array.isArray(
|
|
24818
|
-
const Z = _(
|
|
24819
|
-
|
|
24816
|
+
}), E = (C, j = [], _, L, q = !0, N = !0) => {
|
|
24817
|
+
if (L && _) {
|
|
24818
|
+
if (l.action = !0, N && Array.isArray(B(i, C))) {
|
|
24819
|
+
const Z = _(B(i, C), L.argA, L.argB);
|
|
24820
|
+
q && we(i, C, Z);
|
|
24820
24821
|
}
|
|
24821
|
-
if (N && Array.isArray(
|
|
24822
|
-
const Z = _(
|
|
24823
|
-
|
|
24822
|
+
if (N && Array.isArray(B(r.errors, C))) {
|
|
24823
|
+
const Z = _(B(r.errors, C), L.argA, L.argB);
|
|
24824
|
+
q && we(r.errors, C, Z), QT(r.errors, C);
|
|
24824
24825
|
}
|
|
24825
|
-
if (f.touchedFields && N && Array.isArray(
|
|
24826
|
-
const Z = _(
|
|
24827
|
-
|
|
24826
|
+
if (f.touchedFields && N && Array.isArray(B(r.touchedFields, C))) {
|
|
24827
|
+
const Z = _(B(r.touchedFields, C), L.argA, L.argB);
|
|
24828
|
+
q && we(r.touchedFields, C, Z);
|
|
24828
24829
|
}
|
|
24829
24830
|
f.dirtyFields && (r.dirtyFields = uf(s, o)), d.state.next({
|
|
24830
24831
|
name: C,
|
|
24831
|
-
isDirty:
|
|
24832
|
+
isDirty: $(C, j),
|
|
24832
24833
|
dirtyFields: r.dirtyFields,
|
|
24833
24834
|
errors: r.errors,
|
|
24834
24835
|
isValid: r.isValid
|
|
@@ -24839,32 +24840,32 @@ function WT(t = {}, e) {
|
|
|
24839
24840
|
we(r.errors, C, j), d.state.next({
|
|
24840
24841
|
errors: r.errors
|
|
24841
24842
|
});
|
|
24842
|
-
}, w = (C, j, _,
|
|
24843
|
-
const
|
|
24844
|
-
if (
|
|
24845
|
-
const N =
|
|
24846
|
-
De(N) ||
|
|
24843
|
+
}, w = (C, j, _, L) => {
|
|
24844
|
+
const q = B(i, C);
|
|
24845
|
+
if (q) {
|
|
24846
|
+
const N = B(o, C, De(_) ? B(s, C) : _);
|
|
24847
|
+
De(N) || L && L.defaultChecked || j ? we(o, C, j ? N : df(q._f)) : oe(C, N), l.mount && y();
|
|
24847
24848
|
}
|
|
24848
|
-
}, A = (C, j, _,
|
|
24849
|
+
}, A = (C, j, _, L, q) => {
|
|
24849
24850
|
let N = !1, Z = !1;
|
|
24850
24851
|
const Se = {
|
|
24851
24852
|
name: C
|
|
24852
24853
|
};
|
|
24853
|
-
if (!_ ||
|
|
24854
|
-
f.isDirty && (Z = r.isDirty, r.isDirty = Se.isDirty =
|
|
24855
|
-
const xe = li(
|
|
24856
|
-
Z =
|
|
24854
|
+
if (!_ || L) {
|
|
24855
|
+
f.isDirty && (Z = r.isDirty, r.isDirty = Se.isDirty = $(), N = Z !== Se.isDirty);
|
|
24856
|
+
const xe = li(B(s, C), j);
|
|
24857
|
+
Z = B(r.dirtyFields, C), xe ? Ke(r.dirtyFields, C) : we(r.dirtyFields, C, !0), Se.dirtyFields = r.dirtyFields, N = N || f.dirtyFields && Z !== !xe;
|
|
24857
24858
|
}
|
|
24858
24859
|
if (_) {
|
|
24859
|
-
const xe =
|
|
24860
|
+
const xe = B(r.touchedFields, C);
|
|
24860
24861
|
xe || (we(r.touchedFields, C, _), Se.touchedFields = r.touchedFields, N = N || f.touchedFields && xe !== _);
|
|
24861
24862
|
}
|
|
24862
|
-
return N &&
|
|
24863
|
-
}, O = (C, j, _,
|
|
24864
|
-
const
|
|
24865
|
-
if (t.delayError && _ ? (a = g(() => I(C, _)), a(t.delayError)) : (clearTimeout(u), a = null, _ ? we(r.errors, C, _) : Ke(r.errors, C)), (_ ? !li(
|
|
24863
|
+
return N && q && d.state.next(Se), N ? Se : {};
|
|
24864
|
+
}, O = (C, j, _, L) => {
|
|
24865
|
+
const q = B(r.errors, C), N = f.isValid && oi(j) && r.isValid !== j;
|
|
24866
|
+
if (t.delayError && _ ? (a = g(() => I(C, _)), a(t.delayError)) : (clearTimeout(u), a = null, _ ? we(r.errors, C, _) : Ke(r.errors, C)), (_ ? !li(q, _) : q) || !Lt(L) || N) {
|
|
24866
24867
|
const Z = {
|
|
24867
|
-
...
|
|
24868
|
+
...L,
|
|
24868
24869
|
...N && oi(j) ? { isValid: j } : {},
|
|
24869
24870
|
errors: r.errors,
|
|
24870
24871
|
name: C
|
|
@@ -24875,12 +24876,12 @@ function WT(t = {}, e) {
|
|
|
24875
24876
|
}, d.state.next(Z);
|
|
24876
24877
|
}
|
|
24877
24878
|
S(!1);
|
|
24878
|
-
}, T = async (C) => n.resolver(o, n.context, BT(C || c.mount, i, n.criteriaMode, n.shouldUseNativeValidation)),
|
|
24879
|
+
}, T = async (C) => n.resolver(o, n.context, BT(C || c.mount, i, n.criteriaMode, n.shouldUseNativeValidation)), M = async (C) => {
|
|
24879
24880
|
const { errors: j } = await T(C);
|
|
24880
24881
|
if (C)
|
|
24881
24882
|
for (const _ of C) {
|
|
24882
|
-
const
|
|
24883
|
-
|
|
24883
|
+
const L = B(j, _);
|
|
24884
|
+
L ? we(r.errors, _, L) : Ke(r.errors, _);
|
|
24884
24885
|
}
|
|
24885
24886
|
else
|
|
24886
24887
|
r.errors = j;
|
|
@@ -24888,65 +24889,65 @@ function WT(t = {}, e) {
|
|
|
24888
24889
|
}, G = async (C, j, _ = {
|
|
24889
24890
|
valid: !0
|
|
24890
24891
|
}) => {
|
|
24891
|
-
for (const
|
|
24892
|
-
const
|
|
24893
|
-
if (
|
|
24894
|
-
const { _f: N, ...Z } =
|
|
24892
|
+
for (const L in C) {
|
|
24893
|
+
const q = C[L];
|
|
24894
|
+
if (q) {
|
|
24895
|
+
const { _f: N, ...Z } = q;
|
|
24895
24896
|
if (N) {
|
|
24896
|
-
const Se = c.array.has(N.name), xe = await x1(
|
|
24897
|
+
const Se = c.array.has(N.name), xe = await x1(q, o, b, n.shouldUseNativeValidation && !j, Se);
|
|
24897
24898
|
if (xe[N.name] && (_.valid = !1, j))
|
|
24898
24899
|
break;
|
|
24899
|
-
!j && (
|
|
24900
|
+
!j && (B(xe, N.name) ? Se ? qT(r.errors, xe, N.name) : we(r.errors, N.name, xe[N.name]) : Ke(r.errors, N.name));
|
|
24900
24901
|
}
|
|
24901
24902
|
Z && await G(Z, j, _);
|
|
24902
24903
|
}
|
|
24903
24904
|
}
|
|
24904
24905
|
return _.valid;
|
|
24905
|
-
},
|
|
24906
|
+
}, V = () => {
|
|
24906
24907
|
for (const C of c.unMount) {
|
|
24907
|
-
const j =
|
|
24908
|
+
const j = B(i, C);
|
|
24908
24909
|
j && (j._f.refs ? j._f.refs.every((_) => !lf(_)) : !lf(j._f.ref)) && ct(C);
|
|
24909
24910
|
}
|
|
24910
24911
|
c.unMount = /* @__PURE__ */ new Set();
|
|
24911
|
-
},
|
|
24912
|
+
}, $ = (C, j) => (C && j && we(o, C, j), !li(fe(), s)), ee = (C, j, _) => VT(C, c, {
|
|
24912
24913
|
...l.mount ? o : De(j) ? s : jn(C) ? { [C]: j } : j
|
|
24913
|
-
}, _, j),
|
|
24914
|
-
const
|
|
24915
|
-
let
|
|
24916
|
-
if (
|
|
24917
|
-
const N =
|
|
24918
|
-
N && (!N.disabled && we(o, C, CA(j, N)),
|
|
24914
|
+
}, _, j), le = (C) => Iu(B(l.mount ? o : s, C, t.shouldUnregister ? B(s, C, []) : [])), oe = (C, j, _ = {}) => {
|
|
24915
|
+
const L = B(i, C);
|
|
24916
|
+
let q = j;
|
|
24917
|
+
if (L) {
|
|
24918
|
+
const N = L._f;
|
|
24919
|
+
N && (!N.disabled && we(o, C, CA(j, N)), q = hc(N.ref) && ht(j) ? "" : j, EA(N.ref) ? [...N.ref.options].forEach((Z) => Z.selected = q.includes(Z.value)) : N.refs ? Cu(N.ref) ? N.refs.length > 1 ? N.refs.forEach((Z) => (!Z.defaultChecked || !Z.disabled) && (Z.checked = Array.isArray(q) ? !!q.find((Se) => Se === Z.value) : q === Z.value)) : N.refs[0] && (N.refs[0].checked = !!q) : N.refs.forEach((Z) => Z.checked = Z.value === q) : ny(N.ref) ? N.ref.value = "" : (N.ref.value = q, N.ref.type || d.values.next({
|
|
24919
24920
|
name: C,
|
|
24920
24921
|
values: { ...o }
|
|
24921
24922
|
})));
|
|
24922
24923
|
}
|
|
24923
|
-
(_.shouldDirty || _.shouldTouch) && A(C,
|
|
24924
|
-
},
|
|
24925
|
-
for (const
|
|
24926
|
-
const
|
|
24927
|
-
(c.array.has(C) || !yc(
|
|
24924
|
+
(_.shouldDirty || _.shouldTouch) && A(C, q, _.shouldTouch, _.shouldDirty, !0), _.shouldValidate && Y(C);
|
|
24925
|
+
}, X = (C, j, _) => {
|
|
24926
|
+
for (const L in j) {
|
|
24927
|
+
const q = j[L], N = `${C}.${L}`, Z = B(i, N);
|
|
24928
|
+
(c.array.has(C) || !yc(q) || Z && !Z._f) && !Ki(q) ? X(N, q, _) : oe(N, q, _);
|
|
24928
24929
|
}
|
|
24929
24930
|
}, D = (C, j, _ = {}) => {
|
|
24930
|
-
const
|
|
24931
|
-
we(o, C, N),
|
|
24931
|
+
const L = B(i, C), q = c.array.has(C), N = Fn(j);
|
|
24932
|
+
we(o, C, N), q ? (d.array.next({
|
|
24932
24933
|
name: C,
|
|
24933
24934
|
values: { ...o }
|
|
24934
24935
|
}), (f.isDirty || f.dirtyFields) && _.shouldDirty && d.state.next({
|
|
24935
24936
|
name: C,
|
|
24936
24937
|
dirtyFields: uf(s, o),
|
|
24937
|
-
isDirty:
|
|
24938
|
-
})) :
|
|
24938
|
+
isDirty: $(C, N)
|
|
24939
|
+
})) : L && !L._f && !ht(N) ? X(C, N, _) : oe(C, N, _), b1(C, c) && d.state.next({ ...r }), d.values.next({
|
|
24939
24940
|
name: C,
|
|
24940
24941
|
values: { ...o }
|
|
24941
24942
|
}), !l.mount && e();
|
|
24942
24943
|
}, Q = async (C) => {
|
|
24943
24944
|
const j = C.target;
|
|
24944
|
-
let _ = j.name,
|
|
24945
|
-
const
|
|
24946
|
-
if (
|
|
24945
|
+
let _ = j.name, L = !0;
|
|
24946
|
+
const q = B(i, _), N = () => j.type ? df(q._f) : MT(C);
|
|
24947
|
+
if (q) {
|
|
24947
24948
|
let Z, Se;
|
|
24948
|
-
const xe = N(), ir = C.type === g1.BLUR || C.type === g1.FOCUS_OUT, Xc = !$T(
|
|
24949
|
-
we(o, _, xe), ir ? (
|
|
24949
|
+
const xe = N(), ir = C.type === g1.BLUR || C.type === g1.FOCUS_OUT, Xc = !$T(q._f) && !n.resolver && !B(r.errors, _) && !q._f.deps || GT(ir, B(r.touchedFields, _), r.isSubmitted, v, m), $a = b1(_, c, ir);
|
|
24950
|
+
we(o, _, xe), ir ? (q._f.onBlur && q._f.onBlur(C), a && a(0)) : q._f.onChange && q._f.onChange(C);
|
|
24950
24951
|
const Ga = A(_, xe, ir, !1), ep = !Lt(Ga) || $a;
|
|
24951
24952
|
if (!ir && d.values.next({
|
|
24952
24953
|
name: _,
|
|
@@ -24958,70 +24959,70 @@ function WT(t = {}, e) {
|
|
|
24958
24959
|
const { errors: Ii } = await T([_]), zu = O1(r.errors, i, _), ji = O1(Ii, i, zu.name || _);
|
|
24959
24960
|
Z = ji.error, _ = ji.name, Se = Lt(Ii);
|
|
24960
24961
|
} else
|
|
24961
|
-
Z = (await x1(
|
|
24962
|
-
|
|
24962
|
+
Z = (await x1(q, o, b, n.shouldUseNativeValidation))[_], L = Number.isNaN(xe) || xe === B(o, _, xe), L && (Z ? Se = !1 : f.isValid && (Se = await G(i, !0)));
|
|
24963
|
+
L && (q._f.deps && Y(q._f.deps), O(_, Se, Z, Ga));
|
|
24963
24964
|
}
|
|
24964
24965
|
}, Y = async (C, j = {}) => {
|
|
24965
|
-
let _,
|
|
24966
|
-
const
|
|
24966
|
+
let _, L;
|
|
24967
|
+
const q = af(C);
|
|
24967
24968
|
if (S(!0), n.resolver) {
|
|
24968
|
-
const N = await
|
|
24969
|
-
_ = Lt(N),
|
|
24969
|
+
const N = await M(De(C) ? C : q);
|
|
24970
|
+
_ = Lt(N), L = C ? !q.some((Z) => B(N, Z)) : _;
|
|
24970
24971
|
} else
|
|
24971
|
-
C ? (
|
|
24972
|
-
const Z =
|
|
24972
|
+
C ? (L = (await Promise.all(q.map(async (N) => {
|
|
24973
|
+
const Z = B(i, N);
|
|
24973
24974
|
return await G(Z && Z._f ? { [N]: Z } : Z);
|
|
24974
|
-
}))).every(Boolean), !(!
|
|
24975
|
+
}))).every(Boolean), !(!L && !r.isValid) && y()) : L = _ = await G(i);
|
|
24975
24976
|
return d.state.next({
|
|
24976
24977
|
...!jn(C) || f.isValid && _ !== r.isValid ? {} : { name: C },
|
|
24977
24978
|
...n.resolver || !C ? { isValid: _ } : {},
|
|
24978
24979
|
errors: r.errors,
|
|
24979
24980
|
isValidating: !1
|
|
24980
|
-
}), j.shouldFocus && !
|
|
24981
|
+
}), j.shouldFocus && !L && Eh(i, (N) => N && B(r.errors, N), C ? q : c.mount), L;
|
|
24981
24982
|
}, fe = (C) => {
|
|
24982
24983
|
const j = {
|
|
24983
24984
|
...s,
|
|
24984
24985
|
...l.mount ? o : {}
|
|
24985
24986
|
};
|
|
24986
|
-
return De(C) ? j : jn(C) ?
|
|
24987
|
+
return De(C) ? j : jn(C) ? B(j, C) : C.map((_) => B(j, _));
|
|
24987
24988
|
}, be = (C, j) => ({
|
|
24988
|
-
invalid:
|
|
24989
|
-
isDirty:
|
|
24990
|
-
isTouched:
|
|
24991
|
-
error:
|
|
24989
|
+
invalid: !!B((j || r).errors, C),
|
|
24990
|
+
isDirty: !!B((j || r).dirtyFields, C),
|
|
24991
|
+
isTouched: !!B((j || r).touchedFields, C),
|
|
24992
|
+
error: B((j || r).errors, C)
|
|
24992
24993
|
}), vn = (C) => {
|
|
24993
24994
|
C && af(C).forEach((j) => Ke(r.errors, j)), d.state.next({
|
|
24994
24995
|
errors: C ? r.errors : {}
|
|
24995
24996
|
});
|
|
24996
24997
|
}, bt = (C, j, _) => {
|
|
24997
|
-
const
|
|
24998
|
+
const L = (B(i, C, { _f: {} })._f || {}).ref;
|
|
24998
24999
|
we(r.errors, C, {
|
|
24999
25000
|
...j,
|
|
25000
|
-
ref:
|
|
25001
|
+
ref: L
|
|
25001
25002
|
}), d.state.next({
|
|
25002
25003
|
name: C,
|
|
25003
25004
|
errors: r.errors,
|
|
25004
25005
|
isValid: !1
|
|
25005
|
-
}), _ && _.shouldFocus &&
|
|
25006
|
+
}), _ && _.shouldFocus && L && L.focus && L.focus();
|
|
25006
25007
|
}, bn = (C, j) => Sr(C) ? d.values.subscribe({
|
|
25007
|
-
next: (_) => C(
|
|
25008
|
-
}) :
|
|
25008
|
+
next: (_) => C(ee(void 0, j), _)
|
|
25009
|
+
}) : ee(C, j, !0), ct = (C, j = {}) => {
|
|
25009
25010
|
for (const _ of C ? af(C) : c.mount)
|
|
25010
25011
|
c.mount.delete(_), c.array.delete(_), j.keepValue || (Ke(i, _), Ke(o, _)), !j.keepError && Ke(r.errors, _), !j.keepDirty && Ke(r.dirtyFields, _), !j.keepTouched && Ke(r.touchedFields, _), !n.shouldUnregister && !j.keepDefaultValue && Ke(s, _);
|
|
25011
25012
|
d.values.next({
|
|
25012
25013
|
values: { ...o }
|
|
25013
25014
|
}), d.state.next({
|
|
25014
25015
|
...r,
|
|
25015
|
-
...j.keepDirty ? { isDirty:
|
|
25016
|
+
...j.keepDirty ? { isDirty: $() } : {}
|
|
25016
25017
|
}), !j.keepIsValid && y();
|
|
25017
|
-
}, Vn = ({ disabled: C, name: j, field: _, fields:
|
|
25018
|
+
}, Vn = ({ disabled: C, name: j, field: _, fields: L }) => {
|
|
25018
25019
|
if (oi(C)) {
|
|
25019
|
-
const
|
|
25020
|
-
we(o, j,
|
|
25020
|
+
const q = C ? void 0 : B(o, j, df(_ ? _._f : B(L, j)._f));
|
|
25021
|
+
we(o, j, q), A(j, q, !1, !1, !0);
|
|
25021
25022
|
}
|
|
25022
25023
|
}, Ba = (C, j = {}) => {
|
|
25023
|
-
let _ =
|
|
25024
|
-
const
|
|
25024
|
+
let _ = B(i, C);
|
|
25025
|
+
const L = oi(j.disabled);
|
|
25025
25026
|
return we(i, C, {
|
|
25026
25027
|
..._ || {},
|
|
25027
25028
|
_f: {
|
|
@@ -25035,7 +25036,7 @@ function WT(t = {}, e) {
|
|
|
25035
25036
|
disabled: j.disabled,
|
|
25036
25037
|
name: C
|
|
25037
25038
|
}) : w(C, !0, j.value), {
|
|
25038
|
-
...
|
|
25039
|
+
...L ? { disabled: j.disabled } : {},
|
|
25039
25040
|
...n.progressive ? {
|
|
25040
25041
|
required: !!j.required,
|
|
25041
25042
|
min: ao(j.min),
|
|
@@ -25047,10 +25048,10 @@ function WT(t = {}, e) {
|
|
|
25047
25048
|
name: C,
|
|
25048
25049
|
onChange: Q,
|
|
25049
25050
|
onBlur: Q,
|
|
25050
|
-
ref: (
|
|
25051
|
-
if (
|
|
25052
|
-
Ba(C, j), _ =
|
|
25053
|
-
const N = De(
|
|
25051
|
+
ref: (q) => {
|
|
25052
|
+
if (q) {
|
|
25053
|
+
Ba(C, j), _ = B(i, C);
|
|
25054
|
+
const N = De(q.value) && q.querySelectorAll && q.querySelectorAll("input,select,textarea")[0] || q, Z = UT(N), Se = _._f.refs || [];
|
|
25054
25055
|
if (Z ? Se.find((xe) => xe === N) : N === _._f.ref)
|
|
25055
25056
|
return;
|
|
25056
25057
|
we(i, C, {
|
|
@@ -25060,29 +25061,29 @@ function WT(t = {}, e) {
|
|
|
25060
25061
|
refs: [
|
|
25061
25062
|
...Se.filter(lf),
|
|
25062
25063
|
N,
|
|
25063
|
-
...Array.isArray(
|
|
25064
|
+
...Array.isArray(B(s, C)) ? [{}] : []
|
|
25064
25065
|
],
|
|
25065
25066
|
ref: { type: N.type, name: C }
|
|
25066
25067
|
} : { ref: N }
|
|
25067
25068
|
}
|
|
25068
25069
|
}), w(C, !1, void 0, N);
|
|
25069
25070
|
} else
|
|
25070
|
-
_ =
|
|
25071
|
+
_ = B(i, C, {}), _._f && (_._f.mount = !1), (n.shouldUnregister || j.shouldUnregister) && !(PT(c.array, C) && l.action) && c.unMount.add(C);
|
|
25071
25072
|
}
|
|
25072
25073
|
};
|
|
25073
|
-
}, ju = () => n.shouldFocusError && Eh(i, (C) => C &&
|
|
25074
|
+
}, ju = () => n.shouldFocusError && Eh(i, (C) => C && B(r.errors, C), c.mount), Tu = (C, j) => async (_) => {
|
|
25074
25075
|
_ && (_.preventDefault && _.preventDefault(), _.persist && _.persist());
|
|
25075
|
-
let
|
|
25076
|
+
let L = Fn(o);
|
|
25076
25077
|
if (d.state.next({
|
|
25077
25078
|
isSubmitting: !0
|
|
25078
25079
|
}), n.resolver) {
|
|
25079
|
-
const { errors:
|
|
25080
|
-
r.errors =
|
|
25080
|
+
const { errors: q, values: N } = await T();
|
|
25081
|
+
r.errors = q, L = N;
|
|
25081
25082
|
} else
|
|
25082
25083
|
await G(i);
|
|
25083
25084
|
Ke(r.errors, "root"), Lt(r.errors) ? (d.state.next({
|
|
25084
25085
|
errors: {}
|
|
25085
|
-
}), await C(
|
|
25086
|
+
}), await C(L, _)) : (j && await j({ ...r.errors }, _), ju(), setTimeout(ju)), d.state.next({
|
|
25086
25087
|
isSubmitted: !0,
|
|
25087
25088
|
isSubmitting: !1,
|
|
25088
25089
|
isSubmitSuccessful: Lt(r.errors),
|
|
@@ -25090,17 +25091,17 @@ function WT(t = {}, e) {
|
|
|
25090
25091
|
errors: r.errors
|
|
25091
25092
|
});
|
|
25092
25093
|
}, Jc = (C, j = {}) => {
|
|
25093
|
-
|
|
25094
|
+
B(i, C) && (De(j.defaultValue) ? D(C, B(s, C)) : (D(C, j.defaultValue), we(s, C, j.defaultValue)), j.keepTouched || Ke(r.touchedFields, C), j.keepDirty || (Ke(r.dirtyFields, C), r.isDirty = j.defaultValue ? $(C, B(s, C)) : $()), j.keepError || (Ke(r.errors, C), f.isValid && y()), d.state.next({ ...r }));
|
|
25094
25095
|
}, _u = (C, j = {}) => {
|
|
25095
|
-
const _ = C ? Fn(C) : s,
|
|
25096
|
+
const _ = C ? Fn(C) : s, L = Fn(_), q = C && !Lt(C) ? L : s;
|
|
25096
25097
|
if (j.keepDefaultValues || (s = _), !j.keepValues) {
|
|
25097
25098
|
if (j.keepDirtyValues || h)
|
|
25098
25099
|
for (const N of c.mount)
|
|
25099
|
-
|
|
25100
|
+
B(r.dirtyFields, N) ? we(q, N, B(o, N)) : D(N, B(q, N));
|
|
25100
25101
|
else {
|
|
25101
25102
|
if (ey && De(C))
|
|
25102
25103
|
for (const N of c.mount) {
|
|
25103
|
-
const Z =
|
|
25104
|
+
const Z = B(i, N);
|
|
25104
25105
|
if (Z && Z._f) {
|
|
25105
25106
|
const Se = Array.isArray(Z._f.refs) ? Z._f.refs[0] : Z._f.ref;
|
|
25106
25107
|
if (hc(Se)) {
|
|
@@ -25114,10 +25115,10 @@ function WT(t = {}, e) {
|
|
|
25114
25115
|
}
|
|
25115
25116
|
i = {};
|
|
25116
25117
|
}
|
|
25117
|
-
o = t.shouldUnregister ? j.keepDefaultValues ? Fn(s) : {} : Fn(
|
|
25118
|
-
values: { ...
|
|
25118
|
+
o = t.shouldUnregister ? j.keepDefaultValues ? Fn(s) : {} : Fn(q), d.array.next({
|
|
25119
|
+
values: { ...q }
|
|
25119
25120
|
}), d.values.next({
|
|
25120
|
-
values: { ...
|
|
25121
|
+
values: { ...q }
|
|
25121
25122
|
});
|
|
25122
25123
|
}
|
|
25123
25124
|
c = {
|
|
@@ -25146,13 +25147,13 @@ function WT(t = {}, e) {
|
|
|
25146
25147
|
handleSubmit: Tu,
|
|
25147
25148
|
setError: bt,
|
|
25148
25149
|
_executeSchema: T,
|
|
25149
|
-
_getWatch:
|
|
25150
|
-
_getDirty:
|
|
25150
|
+
_getWatch: ee,
|
|
25151
|
+
_getDirty: $,
|
|
25151
25152
|
_updateValid: y,
|
|
25152
|
-
_removeUnmounted:
|
|
25153
|
+
_removeUnmounted: V,
|
|
25153
25154
|
_updateFieldArray: E,
|
|
25154
25155
|
_updateDisabledField: Vn,
|
|
25155
|
-
_getFieldArray:
|
|
25156
|
+
_getFieldArray: le,
|
|
25156
25157
|
_reset: _u,
|
|
25157
25158
|
_resetDefaultValues: () => Sr(n.defaultValues) && n.defaultValues().then((C) => {
|
|
25158
25159
|
Mu(C, n.resetOptions), d.state.next({
|
|
@@ -25216,10 +25217,10 @@ function WT(t = {}, e) {
|
|
|
25216
25217
|
unregister: ct,
|
|
25217
25218
|
setError: bt,
|
|
25218
25219
|
setFocus: (C, j = {}) => {
|
|
25219
|
-
const _ =
|
|
25220
|
-
if (
|
|
25221
|
-
const
|
|
25222
|
-
|
|
25220
|
+
const _ = B(i, C), L = _ && _._f;
|
|
25221
|
+
if (L) {
|
|
25222
|
+
const q = L.refs ? L.refs[0] : L.ref;
|
|
25223
|
+
q.focus && (q.focus(), j.shouldSelect && q.select());
|
|
25223
25224
|
}
|
|
25224
25225
|
},
|
|
25225
25226
|
getFieldState: be
|
|
@@ -25302,7 +25303,7 @@ function JT(t) {
|
|
|
25302
25303
|
}
|
|
25303
25304
|
);
|
|
25304
25305
|
}
|
|
25305
|
-
const Xo =
|
|
25306
|
+
const Xo = z.forwardRef(function({
|
|
25306
25307
|
value: e,
|
|
25307
25308
|
onChange: n,
|
|
25308
25309
|
className: r,
|
|
@@ -25319,19 +25320,19 @@ const Xo = M.forwardRef(function({
|
|
|
25319
25320
|
helperText: m,
|
|
25320
25321
|
type: v = "text"
|
|
25321
25322
|
}, b) {
|
|
25322
|
-
const [g, y] =
|
|
25323
|
+
const [g, y] = z.useState(null), S = XT(e, g), E = () => {
|
|
25323
25324
|
if (n != null) {
|
|
25324
25325
|
n("");
|
|
25325
25326
|
return;
|
|
25326
25327
|
}
|
|
25327
25328
|
g != null && (g.value = "");
|
|
25328
25329
|
};
|
|
25329
|
-
|
|
25330
|
+
z.useImperativeHandle(b, () => g ?? void 0, [g]);
|
|
25330
25331
|
const I = s != null || a;
|
|
25331
25332
|
return /* @__PURE__ */ p.jsxs(
|
|
25332
25333
|
"div",
|
|
25333
25334
|
{
|
|
25334
|
-
className:
|
|
25335
|
+
className: te("seam-text-field", r, `seam-${c}`, {
|
|
25335
25336
|
"seam-disabled": l,
|
|
25336
25337
|
"seam-error": h
|
|
25337
25338
|
}),
|
|
@@ -25357,7 +25358,7 @@ const Xo = M.forwardRef(function({
|
|
|
25357
25358
|
a && /* @__PURE__ */ p.jsx(
|
|
25358
25359
|
"button",
|
|
25359
25360
|
{
|
|
25360
|
-
className:
|
|
25361
|
+
className: te({
|
|
25361
25362
|
"seam-hidden": S
|
|
25362
25363
|
}),
|
|
25363
25364
|
onClick: E,
|
|
@@ -25375,10 +25376,10 @@ const Xo = M.forwardRef(function({
|
|
|
25375
25376
|
t(e.currentTarget.value);
|
|
25376
25377
|
};
|
|
25377
25378
|
function XT(t, e) {
|
|
25378
|
-
const [n, r] =
|
|
25379
|
-
return
|
|
25379
|
+
const [n, r] = z.useState(!0);
|
|
25380
|
+
return z.useEffect(() => {
|
|
25380
25381
|
r(t == null || t === "");
|
|
25381
|
-
}, [t]),
|
|
25382
|
+
}, [t]), z.useEffect(() => {
|
|
25382
25383
|
if (e == null)
|
|
25383
25384
|
return;
|
|
25384
25385
|
const i = (s) => {
|
|
@@ -25392,24 +25393,24 @@ function XT(t, e) {
|
|
|
25392
25393
|
};
|
|
25393
25394
|
}, [e, t]), n;
|
|
25394
25395
|
}
|
|
25395
|
-
const xh =
|
|
25396
|
+
const xh = z.forwardRef(function({ className: e, value: n, onChange: r, ...i }, s) {
|
|
25396
25397
|
return /* @__PURE__ */ p.jsx(
|
|
25397
25398
|
Xo,
|
|
25398
25399
|
{
|
|
25399
25400
|
type: "datetime-local",
|
|
25400
|
-
className:
|
|
25401
|
+
className: te("seam-date-time-picker", e),
|
|
25401
25402
|
ref: s,
|
|
25402
25403
|
value: n,
|
|
25403
25404
|
onChange: r,
|
|
25404
25405
|
...i
|
|
25405
25406
|
}
|
|
25406
25407
|
);
|
|
25407
|
-
}), as =
|
|
25408
|
+
}), as = z.forwardRef(
|
|
25408
25409
|
function({ children: e, className: n, onClick: r }, i) {
|
|
25409
25410
|
return /* @__PURE__ */ p.jsx(
|
|
25410
25411
|
"div",
|
|
25411
25412
|
{
|
|
25412
|
-
className:
|
|
25413
|
+
className: te("seam-input-label", n),
|
|
25413
25414
|
ref: i,
|
|
25414
25415
|
onClick: r,
|
|
25415
25416
|
children: e
|
|
@@ -25421,22 +25422,22 @@ function Po({
|
|
|
25421
25422
|
children: t,
|
|
25422
25423
|
className: e
|
|
25423
25424
|
}) {
|
|
25424
|
-
const n =
|
|
25425
|
+
const n = z.useRef(), r = () => {
|
|
25425
25426
|
n.current != null && n.current.focus();
|
|
25426
25427
|
}, s = (Array.isArray(t) ? t : [t]).map((o, l) => {
|
|
25427
25428
|
const c = {
|
|
25428
25429
|
...o.props,
|
|
25429
25430
|
key: l
|
|
25430
25431
|
};
|
|
25431
|
-
return o.type === as ?
|
|
25432
|
+
return o.type === as ? z.cloneElement(o, {
|
|
25432
25433
|
...c,
|
|
25433
25434
|
onClick: r
|
|
25434
|
-
}) : o.type === Xo || o.type === xh ?
|
|
25435
|
+
}) : o.type === Xo || o.type === xh ? z.cloneElement(o, {
|
|
25435
25436
|
...c,
|
|
25436
25437
|
ref: n
|
|
25437
|
-
}) :
|
|
25438
|
+
}) : z.cloneElement(o, c);
|
|
25438
25439
|
});
|
|
25439
|
-
return /* @__PURE__ */ p.jsx("div", { className:
|
|
25440
|
+
return /* @__PURE__ */ p.jsx("div", { className: te("seam-form-field", e), children: s });
|
|
25440
25441
|
}
|
|
25441
25442
|
function e_(t) {
|
|
25442
25443
|
return /* @__PURE__ */ p.jsxs(
|
|
@@ -25592,7 +25593,7 @@ function i_({
|
|
|
25592
25593
|
/* @__PURE__ */ p.jsx(Ma, { onClick: n, className: "seam-show-date-picker-btn", children: /* @__PURE__ */ p.jsx(r_, {}) })
|
|
25593
25594
|
] });
|
|
25594
25595
|
}
|
|
25595
|
-
const C1 = (t) => t.toLocaleString(
|
|
25596
|
+
const C1 = (t) => t.toLocaleString(U.DATETIME_FULL_WITH_SECONDS), I1 = {
|
|
25596
25597
|
startTimeLabel: "Start",
|
|
25597
25598
|
endTimeLabel: "End"
|
|
25598
25599
|
};
|
|
@@ -25641,10 +25642,10 @@ function o_({
|
|
|
25641
25642
|
onChange: n,
|
|
25642
25643
|
className: r
|
|
25643
25644
|
}) {
|
|
25644
|
-
const i =
|
|
25645
|
+
const i = z.useRef(null), s = () => {
|
|
25645
25646
|
i.current != null && i.current.click();
|
|
25646
25647
|
};
|
|
25647
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
25648
|
+
return /* @__PURE__ */ p.jsxs("div", { className: te("seam-checkbox", r), onClick: s, children: [
|
|
25648
25649
|
/* @__PURE__ */ p.jsx("span", { className: "seam-checkbox-icon", children: e === !0 ? /* @__PURE__ */ p.jsx(a_, {}) : /* @__PURE__ */ p.jsx(s_, {}) }),
|
|
25649
25650
|
/* @__PURE__ */ p.jsx(
|
|
25650
25651
|
"input",
|
|
@@ -25665,8 +25666,8 @@ function l_({
|
|
|
25665
25666
|
value: e,
|
|
25666
25667
|
onManualTimeZoneSelected: n
|
|
25667
25668
|
}) {
|
|
25668
|
-
const [r, i] =
|
|
25669
|
-
|
|
25669
|
+
const [r, i] = z.useState(!1), o = !(e === wh()) || r;
|
|
25670
|
+
z.useEffect(() => {
|
|
25670
25671
|
n != null && n(o);
|
|
25671
25672
|
}, [o, n]);
|
|
25672
25673
|
const l = (c) => {
|
|
@@ -25704,7 +25705,7 @@ function d_({
|
|
|
25704
25705
|
value: e,
|
|
25705
25706
|
onClose: n
|
|
25706
25707
|
}) {
|
|
25707
|
-
const [r, i] =
|
|
25708
|
+
const [r, i] = z.useState(cf.titleAuto);
|
|
25708
25709
|
return /* @__PURE__ */ p.jsxs("div", { className: "seam-access-code-time-zone-picker", children: [
|
|
25709
25710
|
/* @__PURE__ */ p.jsx(Dn, { title: r, onBack: n }),
|
|
25710
25711
|
/* @__PURE__ */ p.jsx("div", { className: "seam-content", children: /* @__PURE__ */ p.jsx(
|
|
@@ -25767,7 +25768,7 @@ function f_({
|
|
|
25767
25768
|
value: t,
|
|
25768
25769
|
label: e
|
|
25769
25770
|
}) {
|
|
25770
|
-
const { value: n, onChange: r, name: i } = m_(), s = n === t, o =
|
|
25771
|
+
const { value: n, onChange: r, name: i } = m_(), s = n === t, o = z.useRef(), l = () => {
|
|
25771
25772
|
o.current != null && o.current.click();
|
|
25772
25773
|
};
|
|
25773
25774
|
return /* @__PURE__ */ p.jsxs("label", { className: "seam-radio", onClick: l, children: [
|
|
@@ -25787,7 +25788,7 @@ function f_({
|
|
|
25787
25788
|
/* @__PURE__ */ p.jsx("span", { className: "seam-radio-label", children: e })
|
|
25788
25789
|
] });
|
|
25789
25790
|
}
|
|
25790
|
-
const jA =
|
|
25791
|
+
const jA = z.createContext(null);
|
|
25791
25792
|
function h_({
|
|
25792
25793
|
value: t,
|
|
25793
25794
|
onChange: e,
|
|
@@ -25808,7 +25809,7 @@ function h_({
|
|
|
25808
25809
|
);
|
|
25809
25810
|
}
|
|
25810
25811
|
function m_() {
|
|
25811
|
-
const t =
|
|
25812
|
+
const t = z.useContext(jA);
|
|
25812
25813
|
if (t === null)
|
|
25813
25814
|
throw new Error("useRadioField must be used within a <RadioField/>");
|
|
25814
25815
|
return t;
|
|
@@ -25817,7 +25818,7 @@ function TA({
|
|
|
25817
25818
|
className: t,
|
|
25818
25819
|
...e
|
|
25819
25820
|
}) {
|
|
25820
|
-
return /* @__PURE__ */ p.jsx("div", { className:
|
|
25821
|
+
return /* @__PURE__ */ p.jsx("div", { className: te("seam-access-code-form", t), children: /* @__PURE__ */ p.jsx(y_, { ...e }) });
|
|
25821
25822
|
}
|
|
25822
25823
|
function y_({
|
|
25823
25824
|
onBack: t,
|
|
@@ -25827,14 +25828,14 @@ function y_({
|
|
|
25827
25828
|
isSubmitting: i,
|
|
25828
25829
|
responseErrors: s
|
|
25829
25830
|
}) {
|
|
25830
|
-
var
|
|
25831
|
-
const [o, l] =
|
|
25831
|
+
var le, oe;
|
|
25832
|
+
const [o, l] = z.useState(
|
|
25832
25833
|
(e == null ? void 0 : e.type) ?? "ongoing"
|
|
25833
|
-
), [c, a] =
|
|
25834
|
+
), [c, a] = z.useState(!1), [u, f] = z.useState(wh()), [d, h] = z.useState(
|
|
25834
25835
|
j1("starts_at", e) ?? w_(u)
|
|
25835
|
-
), [m, v] =
|
|
25836
|
+
), [m, v] = z.useState(
|
|
25836
25837
|
j1("ends_at", e) ?? A_(u)
|
|
25837
|
-
), b = (
|
|
25838
|
+
), b = (X) => {
|
|
25838
25839
|
if (i)
|
|
25839
25840
|
return;
|
|
25840
25841
|
const D = d.toISO();
|
|
@@ -25844,8 +25845,8 @@ function y_({
|
|
|
25844
25845
|
if (Q == null)
|
|
25845
25846
|
throw new Error(`Invalid end date: ${m.invalidReason}`);
|
|
25846
25847
|
r({
|
|
25847
|
-
name:
|
|
25848
|
-
code:
|
|
25848
|
+
name: X.name,
|
|
25849
|
+
code: X.code,
|
|
25849
25850
|
type: o,
|
|
25850
25851
|
device: n,
|
|
25851
25852
|
startDate: D,
|
|
@@ -25869,8 +25870,8 @@ function y_({
|
|
|
25869
25870
|
d_,
|
|
25870
25871
|
{
|
|
25871
25872
|
value: u,
|
|
25872
|
-
onChange: (
|
|
25873
|
-
f(
|
|
25873
|
+
onChange: (X) => {
|
|
25874
|
+
f(X), h(d.setZone(X)), v(m.setZone(X));
|
|
25874
25875
|
},
|
|
25875
25876
|
onClose: w
|
|
25876
25877
|
}
|
|
@@ -25890,23 +25891,23 @@ function y_({
|
|
|
25890
25891
|
}
|
|
25891
25892
|
}
|
|
25892
25893
|
);
|
|
25893
|
-
const
|
|
25894
|
+
const M = e == null ? it.addNewAccessCode : it.editAccessCode, G = () => {
|
|
25894
25895
|
O(
|
|
25895
25896
|
{
|
|
25896
25897
|
device_id: n.device_id
|
|
25897
25898
|
},
|
|
25898
25899
|
{
|
|
25899
|
-
onSuccess: ({ code:
|
|
25900
|
-
|
|
25900
|
+
onSuccess: ({ code: X }) => {
|
|
25901
|
+
X != null && E("code", X);
|
|
25901
25902
|
}
|
|
25902
25903
|
}
|
|
25903
25904
|
);
|
|
25904
|
-
},
|
|
25905
|
+
}, V = S.code != null || (s == null ? void 0 : s.code) != null, $ = v_(n), ee = $ != null ? it.codeLengthRequirement($) : null;
|
|
25905
25906
|
return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
25906
25907
|
/* @__PURE__ */ p.jsx(
|
|
25907
25908
|
Dn,
|
|
25908
25909
|
{
|
|
25909
|
-
title:
|
|
25910
|
+
title: M,
|
|
25910
25911
|
subheading: n.properties.name,
|
|
25911
25912
|
onBack: t
|
|
25912
25913
|
}
|
|
@@ -25914,8 +25915,8 @@ function y_({
|
|
|
25914
25915
|
/* @__PURE__ */ p.jsx("div", { className: "seam-main", children: /* @__PURE__ */ p.jsxs(
|
|
25915
25916
|
"form",
|
|
25916
25917
|
{
|
|
25917
|
-
onSubmit: (
|
|
25918
|
-
y(b)(
|
|
25918
|
+
onSubmit: (X) => {
|
|
25919
|
+
y(b)(X);
|
|
25919
25920
|
},
|
|
25920
25921
|
children: [
|
|
25921
25922
|
/* @__PURE__ */ p.jsxs(Po, { children: [
|
|
@@ -25926,7 +25927,7 @@ function y_({
|
|
|
25926
25927
|
size: "large",
|
|
25927
25928
|
clearable: !0,
|
|
25928
25929
|
hasError: S.name != null,
|
|
25929
|
-
helperText: (
|
|
25930
|
+
helperText: (le = S.name) == null ? void 0 : le.message,
|
|
25930
25931
|
inputProps: {
|
|
25931
25932
|
...g("name", {
|
|
25932
25933
|
required: it.nameRequiredError,
|
|
@@ -25946,12 +25947,12 @@ function y_({
|
|
|
25946
25947
|
{
|
|
25947
25948
|
size: "large",
|
|
25948
25949
|
clearable: !0,
|
|
25949
|
-
hasError:
|
|
25950
|
-
helperText: (s == null ? void 0 : s.code) ?? ((
|
|
25950
|
+
hasError: V,
|
|
25951
|
+
helperText: (s == null ? void 0 : s.code) ?? ((oe = S.code) == null ? void 0 : oe.message),
|
|
25951
25952
|
inputProps: {
|
|
25952
25953
|
...g("code", {
|
|
25953
25954
|
required: it.codeRequiredError,
|
|
25954
|
-
validate: (
|
|
25955
|
+
validate: (X) => g_(n, X)
|
|
25955
25956
|
})
|
|
25956
25957
|
}
|
|
25957
25958
|
}
|
|
@@ -25959,18 +25960,18 @@ function y_({
|
|
|
25959
25960
|
/* @__PURE__ */ p.jsxs(
|
|
25960
25961
|
"div",
|
|
25961
25962
|
{
|
|
25962
|
-
className:
|
|
25963
|
-
"has-hints":
|
|
25963
|
+
className: te("seam-bottom", {
|
|
25964
|
+
"has-hints": ee != null
|
|
25964
25965
|
}),
|
|
25965
25966
|
children: [
|
|
25966
|
-
|
|
25967
|
+
ee != null && /* @__PURE__ */ p.jsxs(
|
|
25967
25968
|
"ul",
|
|
25968
25969
|
{
|
|
25969
|
-
className:
|
|
25970
|
-
"seam-error":
|
|
25970
|
+
className: te("seam-requirements", {
|
|
25971
|
+
"seam-error": V
|
|
25971
25972
|
}),
|
|
25972
25973
|
children: [
|
|
25973
|
-
/* @__PURE__ */ p.jsx("li", { children:
|
|
25974
|
+
/* @__PURE__ */ p.jsx("li", { children: ee }),
|
|
25974
25975
|
/* @__PURE__ */ p.jsx("li", { children: it.codeNumbersOnlyRequirement })
|
|
25975
25976
|
]
|
|
25976
25977
|
}
|
|
@@ -25979,8 +25980,8 @@ function y_({
|
|
|
25979
25980
|
Rt,
|
|
25980
25981
|
{
|
|
25981
25982
|
size: "small",
|
|
25982
|
-
onMouseDown: (
|
|
25983
|
-
|
|
25983
|
+
onMouseDown: (X) => {
|
|
25984
|
+
X.preventDefault(), G();
|
|
25984
25985
|
},
|
|
25985
25986
|
disabled: A,
|
|
25986
25987
|
children: it.codeGenerateButton
|
|
@@ -26047,7 +26048,7 @@ const g_ = (t, e) => !xi(t) || t.properties.supported_code_lengths == null || t.
|
|
|
26047
26048
|
return e == null ? null : e.length === 1 ? `${e[0]}` : S_(e.join("")) ? `${e[0]}-${e[e.length - 1]}` : e.join(", ");
|
|
26048
26049
|
}, b_ = Array.from({ length: 100 }, (t, e) => e).join(
|
|
26049
26050
|
""
|
|
26050
|
-
), S_ = (t) => b_.includes(t), j1 = (t, e) => e == null || e.type !== "time_bound" ? null :
|
|
26051
|
+
), S_ = (t) => b_.includes(t), j1 = (t, e) => e == null || e.type !== "time_bound" ? null : U.fromISO(e[t]), w_ = (t) => U.now().setZone(t), A_ = (t) => U.now().setZone(t).plus({ days: 1 }), it = {
|
|
26051
26052
|
addNewAccessCode: "Add new access code",
|
|
26052
26053
|
editAccessCode: "Edit access code",
|
|
26053
26054
|
nameOverCharacterLimitError: "60 characters max",
|
|
@@ -26145,7 +26146,7 @@ function O_(t) {
|
|
|
26145
26146
|
}, isSubmitting: r, responseErrors: i };
|
|
26146
26147
|
}
|
|
26147
26148
|
function MA() {
|
|
26148
|
-
const [t, e] =
|
|
26149
|
+
const [t, e] = z.useState(null);
|
|
26149
26150
|
return {
|
|
26150
26151
|
responseErrors: t,
|
|
26151
26152
|
handleResponseError: (i) => {
|
|
@@ -26295,7 +26296,7 @@ function M_(t) {
|
|
|
26295
26296
|
);
|
|
26296
26297
|
}
|
|
26297
26298
|
function z_({ size: t = "small" }) {
|
|
26298
|
-
return /* @__PURE__ */ p.jsx("div", { className:
|
|
26299
|
+
return /* @__PURE__ */ p.jsx("div", { className: te("seam-spinner", `size-${t}`) });
|
|
26299
26300
|
}
|
|
26300
26301
|
function iy({
|
|
26301
26302
|
isLoading: t = !0,
|
|
@@ -26303,8 +26304,8 @@ function iy({
|
|
|
26303
26304
|
top: n,
|
|
26304
26305
|
left: r
|
|
26305
26306
|
}) {
|
|
26306
|
-
const [i, s] =
|
|
26307
|
-
return
|
|
26307
|
+
const [i, s] = z.useState(!1), [o, l] = z.useState(t);
|
|
26308
|
+
return z.useEffect(() => {
|
|
26308
26309
|
if (t)
|
|
26309
26310
|
return s(!1), l(!0), () => {
|
|
26310
26311
|
};
|
|
@@ -26319,7 +26320,7 @@ function iy({
|
|
|
26319
26320
|
}, [t]), o ? /* @__PURE__ */ p.jsxs(
|
|
26320
26321
|
"div",
|
|
26321
26322
|
{
|
|
26322
|
-
className:
|
|
26323
|
+
className: te("seam-loading-toast", {
|
|
26323
26324
|
"seam-loading-toast-hide": i
|
|
26324
26325
|
}),
|
|
26325
26326
|
style: { top: n, left: r },
|
|
@@ -26449,7 +26450,7 @@ function T1({
|
|
|
26449
26450
|
onClose: l
|
|
26450
26451
|
}) {
|
|
26451
26452
|
const { label: c, onClick: a } = r ?? {};
|
|
26452
|
-
return
|
|
26453
|
+
return z.useEffect(() => {
|
|
26453
26454
|
if (!i)
|
|
26454
26455
|
return () => {
|
|
26455
26456
|
};
|
|
@@ -26462,7 +26463,7 @@ function T1({
|
|
|
26462
26463
|
}, [i, s, l]), /* @__PURE__ */ p.jsx("div", { className: "seam-snackbar-wrap", children: /* @__PURE__ */ p.jsxs(
|
|
26463
26464
|
"div",
|
|
26464
26465
|
{
|
|
26465
|
-
className:
|
|
26466
|
+
className: te("seam-snackbar", {
|
|
26466
26467
|
"seam-snackbar-visible": n
|
|
26467
26468
|
}),
|
|
26468
26469
|
children: [
|
|
@@ -26563,7 +26564,7 @@ function Yc({
|
|
|
26563
26564
|
value: e,
|
|
26564
26565
|
onChange: n,
|
|
26565
26566
|
...r,
|
|
26566
|
-
className:
|
|
26567
|
+
className: te(t, "seam-search-text-field"),
|
|
26567
26568
|
startAdornment: /* @__PURE__ */ p.jsx(N_, {}),
|
|
26568
26569
|
inputProps: {
|
|
26569
26570
|
placeholder: "Search"
|
|
@@ -26597,79 +26598,82 @@ function RA({
|
|
|
26597
26598
|
disableCreateAccessCode: u = !1,
|
|
26598
26599
|
disableEditAccessCode: f = !1,
|
|
26599
26600
|
disableLockUnlock: d = !1,
|
|
26600
|
-
disableDeleteAccessCode: h = !1
|
|
26601
|
+
disableDeleteAccessCode: h = !1,
|
|
26602
|
+
disableResourceIds: m = !1
|
|
26601
26603
|
}) {
|
|
26602
26604
|
kn("AccessCodeTable");
|
|
26603
|
-
const { accessCodes:
|
|
26605
|
+
const { accessCodes: v, isInitialLoading: b, isError: g, error: y } = hA({
|
|
26604
26606
|
device_id: t
|
|
26605
|
-
}), [
|
|
26607
|
+
}), [S, E] = z.useState(null), [I, w] = z.useState(""), [A, O] = Ou(), [T, M] = z.useState(null), G = z.useMemo(
|
|
26606
26608
|
() => {
|
|
26607
|
-
var
|
|
26608
|
-
return ((
|
|
26609
|
+
var X;
|
|
26610
|
+
return ((X = v == null ? void 0 : v.filter((D) => s(D, I))) == null ? void 0 : X.sort(o)) ?? [];
|
|
26609
26611
|
},
|
|
26610
|
-
[
|
|
26611
|
-
),
|
|
26612
|
-
(
|
|
26613
|
-
n(
|
|
26612
|
+
[v, I, s, o]
|
|
26613
|
+
), V = z.useCallback(
|
|
26614
|
+
(X) => {
|
|
26615
|
+
n(X), !r && E(X);
|
|
26614
26616
|
},
|
|
26615
26617
|
[
|
|
26616
26618
|
n,
|
|
26617
26619
|
r,
|
|
26618
|
-
|
|
26620
|
+
E
|
|
26619
26621
|
]
|
|
26620
|
-
),
|
|
26621
|
-
(
|
|
26622
|
-
|
|
26622
|
+
), $ = z.useCallback(
|
|
26623
|
+
(X) => {
|
|
26624
|
+
M(X);
|
|
26623
26625
|
},
|
|
26624
|
-
[
|
|
26625
|
-
), [
|
|
26626
|
-
return
|
|
26626
|
+
[M]
|
|
26627
|
+
), [ee, le] = z.useState(null), oe = ee === "created" ? ei.accesCodeCreated : ei.accesCodeUpdated;
|
|
26628
|
+
return T != null ? /* @__PURE__ */ p.jsx(
|
|
26627
26629
|
j_,
|
|
26628
26630
|
{
|
|
26629
|
-
accessCodeId:
|
|
26631
|
+
accessCodeId: T,
|
|
26630
26632
|
disableLockUnlock: d,
|
|
26631
26633
|
disableCreateAccessCode: u,
|
|
26632
26634
|
disableEditAccessCode: f,
|
|
26633
26635
|
disableDeleteAccessCode: h,
|
|
26636
|
+
disableResourceIds: m,
|
|
26634
26637
|
onBack: () => {
|
|
26635
|
-
|
|
26638
|
+
M(null);
|
|
26636
26639
|
},
|
|
26637
26640
|
onSuccess: () => {
|
|
26638
|
-
|
|
26641
|
+
le("updated");
|
|
26639
26642
|
},
|
|
26640
26643
|
className: a
|
|
26641
26644
|
}
|
|
26642
|
-
) :
|
|
26645
|
+
) : S != null ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
26643
26646
|
/* @__PURE__ */ p.jsx(
|
|
26644
26647
|
T1,
|
|
26645
26648
|
{
|
|
26646
26649
|
variant: "success",
|
|
26647
|
-
message:
|
|
26648
|
-
visible:
|
|
26650
|
+
message: oe,
|
|
26651
|
+
visible: ee != null,
|
|
26649
26652
|
autoDismiss: !0,
|
|
26650
26653
|
onClose: () => {
|
|
26651
|
-
|
|
26654
|
+
le(null);
|
|
26652
26655
|
}
|
|
26653
26656
|
}
|
|
26654
26657
|
),
|
|
26655
26658
|
/* @__PURE__ */ p.jsx(
|
|
26656
26659
|
RM,
|
|
26657
26660
|
{
|
|
26658
|
-
accessCodeId:
|
|
26661
|
+
accessCodeId: S,
|
|
26659
26662
|
onEdit: () => {
|
|
26660
|
-
|
|
26663
|
+
M(S);
|
|
26661
26664
|
},
|
|
26662
26665
|
disableLockUnlock: d,
|
|
26663
26666
|
disableCreateAccessCode: u,
|
|
26664
26667
|
disableEditAccessCode: f,
|
|
26665
26668
|
disableDeleteAccessCode: h,
|
|
26669
|
+
disableResourceIds: m,
|
|
26666
26670
|
onBack: () => {
|
|
26667
|
-
|
|
26671
|
+
E(null);
|
|
26668
26672
|
},
|
|
26669
26673
|
className: a
|
|
26670
26674
|
}
|
|
26671
26675
|
)
|
|
26672
|
-
] }) :
|
|
26676
|
+
] }) : A ? /* @__PURE__ */ p.jsx(
|
|
26673
26677
|
E_,
|
|
26674
26678
|
{
|
|
26675
26679
|
deviceId: t,
|
|
@@ -26677,26 +26681,27 @@ function RA({
|
|
|
26677
26681
|
disableCreateAccessCode: u,
|
|
26678
26682
|
disableEditAccessCode: f,
|
|
26679
26683
|
disableDeleteAccessCode: h,
|
|
26680
|
-
|
|
26684
|
+
disableResourceIds: m,
|
|
26685
|
+
onBack: O,
|
|
26681
26686
|
className: a,
|
|
26682
26687
|
onSuccess: () => {
|
|
26683
|
-
|
|
26688
|
+
le("created");
|
|
26684
26689
|
}
|
|
26685
26690
|
}
|
|
26686
|
-
) :
|
|
26691
|
+
) : g ? /* @__PURE__ */ p.jsx("p", { className: a, children: y == null ? void 0 : y.message }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
26687
26692
|
/* @__PURE__ */ p.jsx(
|
|
26688
26693
|
T1,
|
|
26689
26694
|
{
|
|
26690
26695
|
variant: "success",
|
|
26691
|
-
message:
|
|
26692
|
-
visible:
|
|
26696
|
+
message: oe,
|
|
26697
|
+
visible: ee != null,
|
|
26693
26698
|
autoDismiss: !0,
|
|
26694
26699
|
onClose: () => {
|
|
26695
|
-
|
|
26700
|
+
le(null);
|
|
26696
26701
|
}
|
|
26697
26702
|
}
|
|
26698
26703
|
),
|
|
26699
|
-
/* @__PURE__ */ p.jsxs("div", { className:
|
|
26704
|
+
/* @__PURE__ */ p.jsxs("div", { className: te("seam-table", a), children: [
|
|
26700
26705
|
/* @__PURE__ */ p.jsx(Dn, { onBack: i }),
|
|
26701
26706
|
/* @__PURE__ */ p.jsxs(oy, { children: [
|
|
26702
26707
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-left", children: [
|
|
@@ -26705,14 +26710,14 @@ function RA({
|
|
|
26705
26710
|
" ",
|
|
26706
26711
|
/* @__PURE__ */ p.jsxs(uy, { children: [
|
|
26707
26712
|
"(",
|
|
26708
|
-
|
|
26713
|
+
G.length,
|
|
26709
26714
|
")"
|
|
26710
26715
|
] })
|
|
26711
26716
|
] }) : /* @__PURE__ */ p.jsx("div", { className: "seam-fragment" }),
|
|
26712
26717
|
!u && /* @__PURE__ */ p.jsx(
|
|
26713
26718
|
Ma,
|
|
26714
26719
|
{
|
|
26715
|
-
onClick:
|
|
26720
|
+
onClick: O,
|
|
26716
26721
|
className: "seam-add-button",
|
|
26717
26722
|
children: /* @__PURE__ */ p.jsx(hT, {})
|
|
26718
26723
|
}
|
|
@@ -26721,7 +26726,7 @@ function RA({
|
|
|
26721
26726
|
/* @__PURE__ */ p.jsx("div", { className: "seam-table-header-loading-wrap", children: /* @__PURE__ */ p.jsx(
|
|
26722
26727
|
iy,
|
|
26723
26728
|
{
|
|
26724
|
-
isLoading:
|
|
26729
|
+
isLoading: b,
|
|
26725
26730
|
label: ei.loading,
|
|
26726
26731
|
top: -20
|
|
26727
26732
|
}
|
|
@@ -26729,18 +26734,18 @@ function RA({
|
|
|
26729
26734
|
!e && /* @__PURE__ */ p.jsx(
|
|
26730
26735
|
Yc,
|
|
26731
26736
|
{
|
|
26732
|
-
value:
|
|
26733
|
-
onChange:
|
|
26734
|
-
disabled: ((
|
|
26737
|
+
value: I,
|
|
26738
|
+
onChange: w,
|
|
26739
|
+
disabled: ((v == null ? void 0 : v.length) ?? 0) === 0
|
|
26735
26740
|
}
|
|
26736
26741
|
)
|
|
26737
26742
|
] }),
|
|
26738
26743
|
/* @__PURE__ */ p.jsx(ay, { children: /* @__PURE__ */ p.jsx(
|
|
26739
26744
|
H_,
|
|
26740
26745
|
{
|
|
26741
|
-
accessCodes:
|
|
26742
|
-
onAccessCodeClick:
|
|
26743
|
-
onAccessCodeEdit:
|
|
26746
|
+
accessCodes: G,
|
|
26747
|
+
onAccessCodeClick: V,
|
|
26748
|
+
onAccessCodeEdit: $,
|
|
26744
26749
|
disableEditAccessCode: f,
|
|
26745
26750
|
disableDeleteAccessCode: h
|
|
26746
26751
|
}
|
|
@@ -26755,7 +26760,7 @@ function H_(t) {
|
|
|
26755
26760
|
onAccessCodeEdit: r,
|
|
26756
26761
|
disableEditAccessCode: i,
|
|
26757
26762
|
disableDeleteAccessCode: s
|
|
26758
|
-
} = t, [o, l] =
|
|
26763
|
+
} = t, [o, l] = z.useState(null), c = z.useMemo(() => o === null ? e : o === "access_code_issues" ? e.filter((a) => a.errors.length > 0 || a.warnings.length > 0) : e, [e, o]);
|
|
26759
26764
|
return e.length === 0 ? /* @__PURE__ */ p.jsx(sy, { children: ei.noAccessCodesMessage }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
26760
26765
|
/* @__PURE__ */ p.jsx(
|
|
26761
26766
|
gT,
|
|
@@ -26847,7 +26852,7 @@ function U_(t) {
|
|
|
26847
26852
|
return /* @__PURE__ */ p.jsxs(
|
|
26848
26853
|
"div",
|
|
26849
26854
|
{
|
|
26850
|
-
className:
|
|
26855
|
+
className: te("seam-alert", `seam-${e}-alert`, r),
|
|
26851
26856
|
children: [
|
|
26852
26857
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-alert-content", children: [
|
|
26853
26858
|
/* @__PURE__ */ p.jsx("div", { className: "seam-alert-icon-wrap", children: /* @__PURE__ */ p.jsx("div", { className: "seam-alert-icon", children: e === "warning" ? /* @__PURE__ */ p.jsx(L_, {}) : /* @__PURE__ */ p.jsx(PA, {}) }) }),
|
|
@@ -26866,7 +26871,7 @@ function B_(t) {
|
|
|
26866
26871
|
}
|
|
26867
26872
|
function kA(t) {
|
|
26868
26873
|
const { alerts: e, children: n, className: r } = t;
|
|
26869
|
-
return (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ p.jsxs("div", { className:
|
|
26874
|
+
return (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ p.jsxs("div", { className: te("seam-alerts", r), children: [
|
|
26870
26875
|
e == null ? void 0 : e.map((i, s) => /* @__PURE__ */ p.jsx(U_, { ...i }, `${s}:${i.message}`)),
|
|
26871
26876
|
n
|
|
26872
26877
|
] });
|
|
@@ -27178,21 +27183,22 @@ const HA = (t) => t.errors.filter((e) => e.error_code === "account_disconnected"
|
|
|
27178
27183
|
deviceOffline: "Device Offline"
|
|
27179
27184
|
};
|
|
27180
27185
|
function eM(t) {
|
|
27181
|
-
var
|
|
27186
|
+
var g;
|
|
27182
27187
|
const {
|
|
27183
27188
|
device: e,
|
|
27184
27189
|
disableLockUnlock: n,
|
|
27185
27190
|
disableCreateAccessCode: r,
|
|
27186
27191
|
disableEditAccessCode: i,
|
|
27187
27192
|
disableDeleteAccessCode: s,
|
|
27188
|
-
|
|
27189
|
-
|
|
27190
|
-
|
|
27193
|
+
disableResourceIds: o,
|
|
27194
|
+
onBack: l,
|
|
27195
|
+
className: c
|
|
27196
|
+
} = t, [a, u] = Ou(), f = fA(e), { accessCodes: d } = hA({
|
|
27191
27197
|
device_id: e.device_id
|
|
27192
|
-
}),
|
|
27193
|
-
if (
|
|
27198
|
+
}), h = e.properties.locked ? rn.locked : rn.unlocked, m = e.properties.locked ? rn.unlock : rn.lock, v = d == null ? void 0 : d.length;
|
|
27199
|
+
if (d == null)
|
|
27194
27200
|
return null;
|
|
27195
|
-
if (
|
|
27201
|
+
if (a)
|
|
27196
27202
|
return /* @__PURE__ */ p.jsx(
|
|
27197
27203
|
D_,
|
|
27198
27204
|
{
|
|
@@ -27201,22 +27207,23 @@ function eM(t) {
|
|
|
27201
27207
|
disableCreateAccessCode: r,
|
|
27202
27208
|
disableEditAccessCode: i,
|
|
27203
27209
|
disableDeleteAccessCode: s,
|
|
27204
|
-
|
|
27205
|
-
|
|
27210
|
+
disableResourceIds: o,
|
|
27211
|
+
onBack: u,
|
|
27212
|
+
className: c
|
|
27206
27213
|
}
|
|
27207
27214
|
);
|
|
27208
|
-
const
|
|
27209
|
-
...e.errors.map((
|
|
27215
|
+
const b = [
|
|
27216
|
+
...e.errors.map((y) => ({
|
|
27210
27217
|
variant: "error",
|
|
27211
|
-
message:
|
|
27218
|
+
message: y.message
|
|
27212
27219
|
})),
|
|
27213
|
-
...e.warnings.map((
|
|
27220
|
+
...e.warnings.map((y) => ({
|
|
27214
27221
|
variant: "warning",
|
|
27215
|
-
message:
|
|
27222
|
+
message: y.message
|
|
27216
27223
|
}))
|
|
27217
27224
|
];
|
|
27218
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
27219
|
-
/* @__PURE__ */ p.jsx(Dn, { title: "Device", onBack:
|
|
27225
|
+
return /* @__PURE__ */ p.jsxs("div", { className: te("seam-device-details", c), children: [
|
|
27226
|
+
/* @__PURE__ */ p.jsx(Dn, { title: "Device", onBack: l }),
|
|
27220
27227
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-body", children: [
|
|
27221
27228
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-summary", children: [
|
|
27222
27229
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-content", children: [
|
|
@@ -27241,16 +27248,16 @@ function eM(t) {
|
|
|
27241
27248
|
] })
|
|
27242
27249
|
] })
|
|
27243
27250
|
] }),
|
|
27244
|
-
/* @__PURE__ */ p.jsx(kA, { alerts:
|
|
27251
|
+
/* @__PURE__ */ p.jsx(kA, { alerts: b, className: "seam-alerts-space-top" })
|
|
27245
27252
|
] }),
|
|
27246
27253
|
/* @__PURE__ */ p.jsx("div", { className: "seam-box", children: /* @__PURE__ */ p.jsxs(
|
|
27247
27254
|
"div",
|
|
27248
27255
|
{
|
|
27249
27256
|
className: "seam-content seam-access-codes",
|
|
27250
|
-
onClick:
|
|
27257
|
+
onClick: u,
|
|
27251
27258
|
children: [
|
|
27252
27259
|
/* @__PURE__ */ p.jsxs("span", { className: "seam-value", children: [
|
|
27253
|
-
|
|
27260
|
+
v,
|
|
27254
27261
|
" ",
|
|
27255
27262
|
rn.accessCodes
|
|
27256
27263
|
] }),
|
|
@@ -27262,23 +27269,23 @@ function eM(t) {
|
|
|
27262
27269
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-content seam-lock-status", children: [
|
|
27263
27270
|
/* @__PURE__ */ p.jsxs("div", { children: [
|
|
27264
27271
|
/* @__PURE__ */ p.jsx("span", { className: "seam-label", children: rn.lockStatus }),
|
|
27265
|
-
/* @__PURE__ */ p.jsx("span", { className: "seam-value", children:
|
|
27272
|
+
/* @__PURE__ */ p.jsx("span", { className: "seam-value", children: h })
|
|
27266
27273
|
] }),
|
|
27267
27274
|
/* @__PURE__ */ p.jsx("div", { className: "seam-right", children: n !== !0 && /* @__PURE__ */ p.jsx(
|
|
27268
27275
|
Rt,
|
|
27269
27276
|
{
|
|
27270
27277
|
size: "small",
|
|
27271
27278
|
onClick: () => {
|
|
27272
|
-
|
|
27279
|
+
f.mutate();
|
|
27273
27280
|
},
|
|
27274
|
-
children:
|
|
27281
|
+
children: m
|
|
27275
27282
|
}
|
|
27276
27283
|
) })
|
|
27277
27284
|
] }),
|
|
27278
27285
|
/* @__PURE__ */ p.jsx(
|
|
27279
27286
|
tM,
|
|
27280
27287
|
{
|
|
27281
|
-
supportedCodeLengths: ((
|
|
27288
|
+
supportedCodeLengths: ((g = e.properties) == null ? void 0 : g.supported_code_lengths) ?? []
|
|
27282
27289
|
}
|
|
27283
27290
|
)
|
|
27284
27291
|
] })
|
|
@@ -27614,12 +27621,12 @@ function LA(t) {
|
|
|
27614
27621
|
return { ...i, climateSettingSchedule: r };
|
|
27615
27622
|
}
|
|
27616
27623
|
function fM() {
|
|
27617
|
-
const [t, e] =
|
|
27618
|
-
e(
|
|
27624
|
+
const [t, e] = z.useState(U.now()), n = z.useCallback(() => {
|
|
27625
|
+
e(U.now());
|
|
27619
27626
|
}, [e]);
|
|
27620
27627
|
return vA(n), t;
|
|
27621
27628
|
}
|
|
27622
|
-
const Ro = (t) =>
|
|
27629
|
+
const Ro = (t) => U.fromISO(t).toLocaleString({
|
|
27623
27630
|
month: "short",
|
|
27624
27631
|
day: "numeric",
|
|
27625
27632
|
hour: "numeric",
|
|
@@ -27675,7 +27682,7 @@ function yM(t) {
|
|
|
27675
27682
|
const { climateSettingSchedule: e } = t, n = fM();
|
|
27676
27683
|
if (n === null)
|
|
27677
27684
|
return null;
|
|
27678
|
-
const r =
|
|
27685
|
+
const r = U.fromISO(e.schedule_starts_at), i = U.fromISO(e.schedule_ends_at);
|
|
27679
27686
|
return n < r ? /* @__PURE__ */ p.jsxs("span", { children: [
|
|
27680
27687
|
Md.starts,
|
|
27681
27688
|
" ",
|
|
@@ -27701,7 +27708,7 @@ function ln({
|
|
|
27701
27708
|
return /* @__PURE__ */ p.jsxs(
|
|
27702
27709
|
"div",
|
|
27703
27710
|
{
|
|
27704
|
-
className:
|
|
27711
|
+
className: te("seam-detail-row", {
|
|
27705
27712
|
"seam-detail-row-clickable": n != null
|
|
27706
27713
|
}),
|
|
27707
27714
|
onClick: n,
|
|
@@ -27789,8 +27796,8 @@ function vM(t) {
|
|
|
27789
27796
|
);
|
|
27790
27797
|
}
|
|
27791
27798
|
function bM({ children: t }) {
|
|
27792
|
-
const [e, n] =
|
|
27793
|
-
|
|
27799
|
+
const [e, n] = z.useState(!1);
|
|
27800
|
+
z.useEffect(() => {
|
|
27794
27801
|
var o, l;
|
|
27795
27802
|
const i = () => {
|
|
27796
27803
|
n(!1);
|
|
@@ -27851,32 +27858,34 @@ function BA({
|
|
|
27851
27858
|
onBack: r,
|
|
27852
27859
|
className: i,
|
|
27853
27860
|
disableCreateAccessCode: s,
|
|
27854
|
-
disableEditAccessCode: o
|
|
27861
|
+
disableEditAccessCode: o,
|
|
27862
|
+
disableResourceIds: l = !1
|
|
27855
27863
|
}) {
|
|
27856
27864
|
kn("ClimateSettingScheduleDetails");
|
|
27857
|
-
const { climateSettingSchedule:
|
|
27865
|
+
const { climateSettingSchedule: c } = LA(
|
|
27858
27866
|
t
|
|
27859
|
-
), [
|
|
27860
|
-
if (
|
|
27867
|
+
), [a, u] = z.useState(null);
|
|
27868
|
+
if (c == null)
|
|
27861
27869
|
return null;
|
|
27862
|
-
const
|
|
27863
|
-
return
|
|
27870
|
+
const f = c.manual_override_allowed ?? !1;
|
|
27871
|
+
return a != null ? /* @__PURE__ */ p.jsx(
|
|
27864
27872
|
dy,
|
|
27865
27873
|
{
|
|
27866
|
-
deviceId:
|
|
27874
|
+
deviceId: a,
|
|
27867
27875
|
disableLockUnlock: e,
|
|
27868
27876
|
disableCreateAccessCode: s,
|
|
27869
27877
|
disableEditAccessCode: o,
|
|
27870
27878
|
disableDeleteAccessCode: n,
|
|
27879
|
+
disableResourceIds: l,
|
|
27871
27880
|
onBack: () => {
|
|
27872
|
-
|
|
27881
|
+
u(null);
|
|
27873
27882
|
},
|
|
27874
27883
|
className: i
|
|
27875
27884
|
}
|
|
27876
27885
|
) : /* @__PURE__ */ p.jsxs(
|
|
27877
27886
|
"div",
|
|
27878
27887
|
{
|
|
27879
|
-
className:
|
|
27888
|
+
className: te("seam-climate-setting-schedule-details", i),
|
|
27880
27889
|
children: [
|
|
27881
27890
|
/* @__PURE__ */ p.jsx(Dn, { title: wn.climateSettingSchedule, onBack: r }),
|
|
27882
27891
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-climate-setting-schedule-details-content", children: [
|
|
@@ -27884,7 +27893,7 @@ function BA({
|
|
|
27884
27893
|
hM,
|
|
27885
27894
|
{
|
|
27886
27895
|
climateSettingScheduleId: t,
|
|
27887
|
-
onSelectDevice:
|
|
27896
|
+
onSelectDevice: u
|
|
27888
27897
|
}
|
|
27889
27898
|
),
|
|
27890
27899
|
/* @__PURE__ */ p.jsx("div", { className: "seam-default-setting-message-container", children: /* @__PURE__ */ p.jsxs("span", { className: "seam-default-setting-message", children: [
|
|
@@ -27897,20 +27906,20 @@ function BA({
|
|
|
27897
27906
|
/* @__PURE__ */ p.jsxs(UA, { children: [
|
|
27898
27907
|
/* @__PURE__ */ p.jsxs(Yi, { children: [
|
|
27899
27908
|
/* @__PURE__ */ p.jsx(ln, { label: wn.startEndTime, children: /* @__PURE__ */ p.jsxs("span", { className: "seam-climate-setting-details-value seam-climate-setting-details-schedule-range", children: [
|
|
27900
|
-
Ro(
|
|
27909
|
+
Ro(c.schedule_starts_at),
|
|
27901
27910
|
/* @__PURE__ */ p.jsx(rM, {}),
|
|
27902
|
-
Ro(
|
|
27911
|
+
Ro(c.schedule_ends_at)
|
|
27903
27912
|
] }) }),
|
|
27904
27913
|
/* @__PURE__ */ p.jsx(ln, { label: wn.climateSetting, children: /* @__PURE__ */ p.jsx(
|
|
27905
27914
|
wi,
|
|
27906
27915
|
{
|
|
27907
|
-
climateSetting:
|
|
27916
|
+
climateSetting: c,
|
|
27908
27917
|
iconPlacement: "right"
|
|
27909
27918
|
}
|
|
27910
27919
|
) }),
|
|
27911
|
-
/* @__PURE__ */ p.jsx(ln, { label: wn.allowManualOverride, children: /* @__PURE__ */ p.jsx("span", { className: "seam-climate-setting-details-value", children:
|
|
27920
|
+
/* @__PURE__ */ p.jsx(ln, { label: wn.allowManualOverride, children: /* @__PURE__ */ p.jsx("span", { className: "seam-climate-setting-details-value", children: f ? wn.on : wn.off }) })
|
|
27912
27921
|
] }),
|
|
27913
|
-
/* @__PURE__ */ p.jsx(Yi, { children: /* @__PURE__ */ p.jsx(ln, { label: wn.creationDate, children: /* @__PURE__ */ p.jsx("div", { className: "seam-creation-date", children: Ro(
|
|
27922
|
+
/* @__PURE__ */ p.jsx(Yi, { children: /* @__PURE__ */ p.jsx(ln, { label: wn.creationDate, children: /* @__PURE__ */ p.jsx("div", { className: "seam-creation-date", children: Ro(c.created_at) }) }) })
|
|
27914
27923
|
] })
|
|
27915
27924
|
] })
|
|
27916
27925
|
]
|
|
@@ -27952,7 +27961,7 @@ function AM(t) {
|
|
|
27952
27961
|
z1(e.schedule_starts_at)
|
|
27953
27962
|
] });
|
|
27954
27963
|
}
|
|
27955
|
-
const z1 = (t) =>
|
|
27964
|
+
const z1 = (t) => U.fromISO(t).toLocaleString({
|
|
27956
27965
|
month: "long",
|
|
27957
27966
|
day: "numeric"
|
|
27958
27967
|
}), P1 = {
|
|
@@ -28018,51 +28027,53 @@ function GA({
|
|
|
28018
28027
|
onBack: a,
|
|
28019
28028
|
className: u,
|
|
28020
28029
|
disableCreateAccessCode: f,
|
|
28021
|
-
disableEditAccessCode: d
|
|
28030
|
+
disableEditAccessCode: d,
|
|
28031
|
+
disableResourceIds: h = !1
|
|
28022
28032
|
}) {
|
|
28023
28033
|
kn("ClimateSettingScheduleTable");
|
|
28024
|
-
const { climateSettingSchedules:
|
|
28034
|
+
const { climateSettingSchedules: m, isInitialLoading: v, isError: b, error: g } = $A({
|
|
28025
28035
|
device_id: t
|
|
28026
|
-
}), [
|
|
28027
|
-
|
|
28028
|
-
|
|
28029
|
-
] =
|
|
28036
|
+
}), [y, S] = z.useState(""), [
|
|
28037
|
+
E,
|
|
28038
|
+
I
|
|
28039
|
+
] = z.useState(null), w = z.useMemo(
|
|
28030
28040
|
() => {
|
|
28031
|
-
var
|
|
28032
|
-
return ((
|
|
28033
|
-
(
|
|
28034
|
-
)) == null ? void 0 :
|
|
28041
|
+
var O;
|
|
28042
|
+
return ((O = m == null ? void 0 : m.filter(
|
|
28043
|
+
(T) => i(T, y)
|
|
28044
|
+
)) == null ? void 0 : O.sort(s)) ?? [];
|
|
28035
28045
|
},
|
|
28036
28046
|
[
|
|
28037
|
-
|
|
28038
|
-
|
|
28047
|
+
m,
|
|
28048
|
+
y,
|
|
28039
28049
|
i,
|
|
28040
28050
|
s
|
|
28041
28051
|
]
|
|
28042
|
-
),
|
|
28043
|
-
(
|
|
28044
|
-
n(
|
|
28052
|
+
), A = z.useCallback(
|
|
28053
|
+
(O) => {
|
|
28054
|
+
n(O), !r && I(O);
|
|
28045
28055
|
},
|
|
28046
28056
|
[
|
|
28047
28057
|
n,
|
|
28048
28058
|
r,
|
|
28049
|
-
|
|
28059
|
+
I
|
|
28050
28060
|
]
|
|
28051
28061
|
);
|
|
28052
|
-
return
|
|
28062
|
+
return E != null ? /* @__PURE__ */ p.jsx(
|
|
28053
28063
|
SM,
|
|
28054
28064
|
{
|
|
28055
|
-
climateSettingScheduleId:
|
|
28065
|
+
climateSettingScheduleId: E,
|
|
28056
28066
|
disableLockUnlock: l,
|
|
28057
28067
|
disableCreateAccessCode: f,
|
|
28058
28068
|
disableEditAccessCode: d,
|
|
28059
28069
|
disableDeleteAccessCode: c,
|
|
28070
|
+
disableResourceIds: h,
|
|
28060
28071
|
onBack: () => {
|
|
28061
|
-
|
|
28072
|
+
I(null);
|
|
28062
28073
|
},
|
|
28063
28074
|
className: u
|
|
28064
28075
|
}
|
|
28065
|
-
) :
|
|
28076
|
+
) : b ? /* @__PURE__ */ p.jsx("p", { className: u, children: g == null ? void 0 : g.message }) : /* @__PURE__ */ p.jsxs("div", { className: te("seam-table", u), children: [
|
|
28066
28077
|
/* @__PURE__ */ p.jsx(Dn, { onBack: a }),
|
|
28067
28078
|
/* @__PURE__ */ p.jsxs(oy, { children: [
|
|
28068
28079
|
o != null ? /* @__PURE__ */ p.jsxs(ly, { children: [
|
|
@@ -28070,14 +28081,14 @@ function GA({
|
|
|
28070
28081
|
" ",
|
|
28071
28082
|
/* @__PURE__ */ p.jsxs(uy, { children: [
|
|
28072
28083
|
"(",
|
|
28073
|
-
|
|
28084
|
+
w.length,
|
|
28074
28085
|
")"
|
|
28075
28086
|
] })
|
|
28076
28087
|
] }) : /* @__PURE__ */ p.jsx("div", { className: "seam-fragment" }),
|
|
28077
28088
|
/* @__PURE__ */ p.jsx("div", { className: "seam-table-header-loading-wrap", children: /* @__PURE__ */ p.jsx(
|
|
28078
28089
|
iy,
|
|
28079
28090
|
{
|
|
28080
|
-
isLoading:
|
|
28091
|
+
isLoading: v,
|
|
28081
28092
|
label: zd.loading,
|
|
28082
28093
|
top: -20
|
|
28083
28094
|
}
|
|
@@ -28085,17 +28096,17 @@ function GA({
|
|
|
28085
28096
|
!e && /* @__PURE__ */ p.jsx(
|
|
28086
28097
|
Yc,
|
|
28087
28098
|
{
|
|
28088
|
-
value:
|
|
28089
|
-
onChange:
|
|
28090
|
-
disabled: ((
|
|
28099
|
+
value: y,
|
|
28100
|
+
onChange: S,
|
|
28101
|
+
disabled: ((m == null ? void 0 : m.length) ?? 0) === 0
|
|
28091
28102
|
}
|
|
28092
28103
|
)
|
|
28093
28104
|
] }),
|
|
28094
28105
|
/* @__PURE__ */ p.jsx(ay, { children: /* @__PURE__ */ p.jsx(
|
|
28095
28106
|
CM,
|
|
28096
28107
|
{
|
|
28097
|
-
climateSettingSchedules:
|
|
28098
|
-
onClimateSettingScheduleClick:
|
|
28108
|
+
climateSettingSchedules: w,
|
|
28109
|
+
onClimateSettingScheduleClick: A
|
|
28099
28110
|
}
|
|
28100
28111
|
) })
|
|
28101
28112
|
] });
|
|
@@ -28185,7 +28196,7 @@ function _M({ device: t }) {
|
|
|
28185
28196
|
return /* @__PURE__ */ p.jsx("div", { className: "seam-thermostat-card", children: /* @__PURE__ */ p.jsx(MM, { device: t }) });
|
|
28186
28197
|
}
|
|
28187
28198
|
function MM(t) {
|
|
28188
|
-
const { device: e } = t, [n, r] =
|
|
28199
|
+
const { device: e } = t, [n, r] = z.useState("fahrenheit"), i = () => {
|
|
28189
28200
|
r(
|
|
28190
28201
|
n === "fahrenheit" ? "celsius" : "fahrenheit"
|
|
28191
28202
|
);
|
|
@@ -28260,7 +28271,7 @@ function MM(t) {
|
|
|
28260
28271
|
/* @__PURE__ */ p.jsx("div", { className: "seam-thermostat-property-block", children: /* @__PURE__ */ p.jsx(
|
|
28261
28272
|
"div",
|
|
28262
28273
|
{
|
|
28263
|
-
className:
|
|
28274
|
+
className: te(
|
|
28264
28275
|
"seam-thermostat-property-tag",
|
|
28265
28276
|
`seam-thermostat-property-tag-${u}`
|
|
28266
28277
|
),
|
|
@@ -28293,39 +28304,43 @@ const An = {
|
|
|
28293
28304
|
heating: "Heating",
|
|
28294
28305
|
fan: "Fan only"
|
|
28295
28306
|
};
|
|
28296
|
-
function PM(
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28307
|
+
function PM({
|
|
28308
|
+
device: t,
|
|
28309
|
+
onBack: e,
|
|
28310
|
+
className: n,
|
|
28311
|
+
disableLockUnlock: r,
|
|
28312
|
+
disableCreateAccessCode: i,
|
|
28313
|
+
disableEditAccessCode: s,
|
|
28314
|
+
disableDeleteAccessCode: o,
|
|
28315
|
+
disableResourceIds: l = !1
|
|
28316
|
+
}) {
|
|
28317
|
+
var h;
|
|
28318
|
+
const [c, a] = z.useState(!1), { connectedAccount: u } = IM(t.connected_account_id), { climateSettingSchedules: f } = $A({
|
|
28319
|
+
device_id: t.device_id
|
|
28306
28320
|
});
|
|
28307
|
-
if (
|
|
28321
|
+
if (c)
|
|
28308
28322
|
return /* @__PURE__ */ p.jsx(
|
|
28309
28323
|
xM,
|
|
28310
28324
|
{
|
|
28311
|
-
deviceId:
|
|
28312
|
-
disableLockUnlock:
|
|
28325
|
+
deviceId: t.device_id,
|
|
28326
|
+
disableLockUnlock: r,
|
|
28313
28327
|
disableCreateAccessCode: i,
|
|
28314
28328
|
disableEditAccessCode: s,
|
|
28315
|
-
disableDeleteAccessCode:
|
|
28329
|
+
disableDeleteAccessCode: o,
|
|
28330
|
+
disableResourceIds: l,
|
|
28316
28331
|
onBack: () => {
|
|
28317
|
-
|
|
28332
|
+
a(!1);
|
|
28318
28333
|
},
|
|
28319
|
-
className:
|
|
28334
|
+
className: n
|
|
28320
28335
|
}
|
|
28321
28336
|
);
|
|
28322
|
-
if (
|
|
28337
|
+
if (t == null)
|
|
28323
28338
|
return null;
|
|
28324
|
-
const
|
|
28325
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
28326
|
-
/* @__PURE__ */ p.jsx(Dn, { title: Pe.thermostat, onBack:
|
|
28339
|
+
const d = (f == null ? void 0 : f.length) !== 1 ? Pe.climateSchedules : Pe.climateSchedule;
|
|
28340
|
+
return /* @__PURE__ */ p.jsxs("div", { className: te("seam-device-details", n), children: [
|
|
28341
|
+
/* @__PURE__ */ p.jsx(Dn, { title: Pe.thermostat, onBack: e }),
|
|
28327
28342
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-body", children: [
|
|
28328
|
-
/* @__PURE__ */ p.jsx(_M, { device:
|
|
28343
|
+
/* @__PURE__ */ p.jsx(_M, { device: t }),
|
|
28329
28344
|
/* @__PURE__ */ p.jsx("div", { className: "seam-thermostat-device-details", children: /* @__PURE__ */ p.jsxs(UA, { children: [
|
|
28330
28345
|
/* @__PURE__ */ p.jsx(
|
|
28331
28346
|
Yi,
|
|
@@ -28335,9 +28350,9 @@ function PM(t) {
|
|
|
28335
28350
|
children: /* @__PURE__ */ p.jsx(
|
|
28336
28351
|
ln,
|
|
28337
28352
|
{
|
|
28338
|
-
label:
|
|
28353
|
+
label: f == null ? Pe.viewingClimateSchedules : `${f.length} ${d}`,
|
|
28339
28354
|
onClick: () => {
|
|
28340
|
-
|
|
28355
|
+
a(!0);
|
|
28341
28356
|
},
|
|
28342
28357
|
children: /* @__PURE__ */ p.jsx("div", { className: "seam-detail-row-rotated-icon", children: /* @__PURE__ */ p.jsx(qA, {}) })
|
|
28343
28358
|
}
|
|
@@ -28352,7 +28367,7 @@ function PM(t) {
|
|
|
28352
28367
|
children: /* @__PURE__ */ p.jsx(ln, { label: Pe.climate, children: /* @__PURE__ */ p.jsx(
|
|
28353
28368
|
wi,
|
|
28354
28369
|
{
|
|
28355
|
-
climateSetting:
|
|
28370
|
+
climateSetting: t.properties.current_climate_setting,
|
|
28356
28371
|
temperatureUnit: "fahrenheit"
|
|
28357
28372
|
}
|
|
28358
28373
|
) })
|
|
@@ -28364,30 +28379,30 @@ function PM(t) {
|
|
|
28364
28379
|
label: Pe.defaultSettings,
|
|
28365
28380
|
tooltipContent: Pe.defaultSettingsTooltip,
|
|
28366
28381
|
children: [
|
|
28367
|
-
/* @__PURE__ */ p.jsx(ln, { label: Pe.defaultClimate, children:
|
|
28382
|
+
/* @__PURE__ */ p.jsx(ln, { label: Pe.defaultClimate, children: t.properties.default_climate_setting != null ? /* @__PURE__ */ p.jsx(
|
|
28368
28383
|
wi,
|
|
28369
28384
|
{
|
|
28370
|
-
climateSetting:
|
|
28385
|
+
climateSetting: t.properties.default_climate_setting,
|
|
28371
28386
|
temperatureUnit: "fahrenheit"
|
|
28372
28387
|
}
|
|
28373
28388
|
) : /* @__PURE__ */ p.jsx("p", { children: Pe.none }) }),
|
|
28374
|
-
/* @__PURE__ */ p.jsx(ln, { label: Pe.allowManualOverride, children: /* @__PURE__ */ p.jsx("p", { children:
|
|
28389
|
+
/* @__PURE__ */ p.jsx(ln, { label: Pe.allowManualOverride, children: /* @__PURE__ */ p.jsx("p", { children: t.properties.current_climate_setting.manual_override_allowed ? Pe.yes : Pe.no }) })
|
|
28375
28390
|
]
|
|
28376
28391
|
}
|
|
28377
28392
|
),
|
|
28378
28393
|
/* @__PURE__ */ p.jsxs(Yi, { label: Pe.deviceDetails, children: [
|
|
28379
28394
|
/* @__PURE__ */ p.jsx(ln, { label: Pe.brand, children: /* @__PURE__ */ p.jsxs("div", { className: "seam-detail-row-hstack", children: [
|
|
28380
|
-
|
|
28381
|
-
|
|
28395
|
+
t.properties.model.manufacturer_display_name,
|
|
28396
|
+
t.properties.manufacturer === "ecobee" && /* @__PURE__ */ p.jsx(nM, {})
|
|
28382
28397
|
] }) }),
|
|
28383
28398
|
/* @__PURE__ */ p.jsx(
|
|
28384
28399
|
ln,
|
|
28385
28400
|
{
|
|
28386
28401
|
label: Pe.linkedAccount,
|
|
28387
|
-
sublabel: ((
|
|
28402
|
+
sublabel: ((h = u == null ? void 0 : u.user_identifier) == null ? void 0 : h.email) ?? t.connected_account_id
|
|
28388
28403
|
}
|
|
28389
28404
|
),
|
|
28390
|
-
/* @__PURE__ */ p.jsx(ln, { label: Pe.deviceId, sublabel:
|
|
28405
|
+
!l && /* @__PURE__ */ p.jsx(ln, { label: Pe.deviceId, sublabel: t.device_id })
|
|
28391
28406
|
] })
|
|
28392
28407
|
] }) })
|
|
28393
28408
|
] })
|
|
@@ -28419,22 +28434,24 @@ function QA({
|
|
|
28419
28434
|
deviceId: t,
|
|
28420
28435
|
disableLockUnlock: e = !1,
|
|
28421
28436
|
disableDeleteAccessCode: n = !1,
|
|
28422
|
-
|
|
28423
|
-
|
|
28437
|
+
disableResourceIds: r = !1,
|
|
28438
|
+
onBack: i,
|
|
28439
|
+
className: s
|
|
28424
28440
|
}) {
|
|
28425
28441
|
kn("DeviceDetails");
|
|
28426
|
-
const { device:
|
|
28442
|
+
const { device: o } = Ci({
|
|
28427
28443
|
device_id: t
|
|
28428
28444
|
});
|
|
28429
|
-
if (
|
|
28445
|
+
if (o == null)
|
|
28430
28446
|
return null;
|
|
28431
|
-
const
|
|
28447
|
+
const l = {
|
|
28432
28448
|
disableLockUnlock: e,
|
|
28433
28449
|
disableDeleteAccessCode: n,
|
|
28434
|
-
|
|
28435
|
-
|
|
28450
|
+
disableResourceIds: r,
|
|
28451
|
+
onBack: i,
|
|
28452
|
+
className: s
|
|
28436
28453
|
};
|
|
28437
|
-
return xi(
|
|
28454
|
+
return xi(o) ? /* @__PURE__ */ p.jsx(eM, { device: o, ...l }) : Fm(o) ? /* @__PURE__ */ p.jsx(PM, { device: o, ...l }) : null;
|
|
28438
28455
|
}
|
|
28439
28456
|
const RM = Nn(ZA);
|
|
28440
28457
|
function ZA({
|
|
@@ -28444,105 +28461,107 @@ function ZA({
|
|
|
28444
28461
|
disableEditAccessCode: r = !1,
|
|
28445
28462
|
disableLockUnlock: i = !1,
|
|
28446
28463
|
disableDeleteAccessCode: s = !1,
|
|
28447
|
-
|
|
28448
|
-
|
|
28464
|
+
disableResourceIds: o = !1,
|
|
28465
|
+
onBack: l,
|
|
28466
|
+
className: c
|
|
28449
28467
|
}) {
|
|
28450
28468
|
kn("AccessCodeDetails");
|
|
28451
|
-
const { accessCode:
|
|
28452
|
-
if (
|
|
28469
|
+
const { accessCode: a } = cA(t), [u, f] = z.useState(null), { mutate: d, isLoading: h } = pA();
|
|
28470
|
+
if (a == null)
|
|
28453
28471
|
return null;
|
|
28454
|
-
const
|
|
28455
|
-
if (
|
|
28472
|
+
const m = a.name ?? xn.fallbackName;
|
|
28473
|
+
if (u != null)
|
|
28456
28474
|
return /* @__PURE__ */ p.jsx(
|
|
28457
28475
|
dy,
|
|
28458
28476
|
{
|
|
28459
|
-
deviceId:
|
|
28477
|
+
deviceId: u,
|
|
28460
28478
|
disableLockUnlock: i,
|
|
28461
28479
|
disableCreateAccessCode: n,
|
|
28462
28480
|
disableEditAccessCode: r,
|
|
28463
28481
|
disableDeleteAccessCode: s,
|
|
28482
|
+
disableResourceIds: o,
|
|
28464
28483
|
onBack: () => {
|
|
28465
|
-
|
|
28484
|
+
f(null);
|
|
28466
28485
|
},
|
|
28467
|
-
className:
|
|
28486
|
+
className: c
|
|
28468
28487
|
}
|
|
28469
28488
|
);
|
|
28470
|
-
const
|
|
28471
|
-
...
|
|
28489
|
+
const v = [
|
|
28490
|
+
...a.errors.filter(DM).map((b) => ({
|
|
28472
28491
|
variant: "error",
|
|
28473
|
-
message:
|
|
28492
|
+
message: b.message
|
|
28474
28493
|
})),
|
|
28475
|
-
...
|
|
28494
|
+
...a.warnings.map((b) => ({
|
|
28476
28495
|
variant: "warning",
|
|
28477
|
-
message:
|
|
28496
|
+
message: b.message
|
|
28478
28497
|
}))
|
|
28479
28498
|
];
|
|
28480
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
28481
|
-
/* @__PURE__ */ p.jsx(Dn, { title: "Access code", onBack:
|
|
28499
|
+
return /* @__PURE__ */ p.jsxs("div", { className: te("seam-access-code-details", c), children: [
|
|
28500
|
+
/* @__PURE__ */ p.jsx(Dn, { title: "Access code", onBack: l }),
|
|
28482
28501
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-summary", children: [
|
|
28483
28502
|
/* @__PURE__ */ p.jsxs(
|
|
28484
28503
|
"div",
|
|
28485
28504
|
{
|
|
28486
|
-
className:
|
|
28505
|
+
className: te(
|
|
28487
28506
|
"seam-top",
|
|
28488
|
-
|
|
28507
|
+
v.length > 0 && "seam-top-has-alerts"
|
|
28489
28508
|
),
|
|
28490
28509
|
children: [
|
|
28491
28510
|
/* @__PURE__ */ p.jsx("span", { className: "seam-label", children: xn.accessCode }),
|
|
28492
|
-
/* @__PURE__ */ p.jsx("h5", { className: "seam-access-code-name", children:
|
|
28511
|
+
/* @__PURE__ */ p.jsx("h5", { className: "seam-access-code-name", children: m }),
|
|
28493
28512
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-code", children: [
|
|
28494
|
-
/* @__PURE__ */ p.jsx("span", { children:
|
|
28513
|
+
/* @__PURE__ */ p.jsx("span", { children: a.code }),
|
|
28495
28514
|
/* @__PURE__ */ p.jsx(
|
|
28496
28515
|
Ma,
|
|
28497
28516
|
{
|
|
28498
28517
|
onClick: () => {
|
|
28499
|
-
Ah(
|
|
28518
|
+
Ah(a.code ?? "");
|
|
28500
28519
|
},
|
|
28501
28520
|
children: /* @__PURE__ */ p.jsx(Sh, {})
|
|
28502
28521
|
}
|
|
28503
28522
|
)
|
|
28504
28523
|
] }),
|
|
28505
|
-
/* @__PURE__ */ p.jsx("div", { className: "seam-duration", children: /* @__PURE__ */ p.jsx(NM, { accessCode:
|
|
28524
|
+
/* @__PURE__ */ p.jsx("div", { className: "seam-duration", children: /* @__PURE__ */ p.jsx(NM, { accessCode: a }) })
|
|
28506
28525
|
]
|
|
28507
28526
|
}
|
|
28508
28527
|
),
|
|
28509
|
-
/* @__PURE__ */ p.jsx(kA, { alerts:
|
|
28528
|
+
/* @__PURE__ */ p.jsx(kA, { alerts: v, className: "seam-alerts-padded" }),
|
|
28510
28529
|
/* @__PURE__ */ p.jsx(
|
|
28511
28530
|
cT,
|
|
28512
28531
|
{
|
|
28513
|
-
deviceId:
|
|
28532
|
+
deviceId: a.device_id,
|
|
28514
28533
|
disableLockUnlock: i,
|
|
28515
|
-
onSelectDevice:
|
|
28534
|
+
onSelectDevice: f
|
|
28516
28535
|
}
|
|
28517
28536
|
)
|
|
28518
28537
|
] }),
|
|
28519
28538
|
(!r || !s) && /* @__PURE__ */ p.jsxs("div", { className: "seam-actions", children: [
|
|
28520
|
-
!r && /* @__PURE__ */ p.jsx(Rt, { size: "small", onClick: e, disabled:
|
|
28539
|
+
!r && /* @__PURE__ */ p.jsx(Rt, { size: "small", onClick: e, disabled: h, children: xn.editCode }),
|
|
28521
28540
|
!s && /* @__PURE__ */ p.jsx(
|
|
28522
28541
|
Rt,
|
|
28523
28542
|
{
|
|
28524
28543
|
size: "small",
|
|
28525
28544
|
onClick: () => {
|
|
28526
|
-
|
|
28545
|
+
d({ access_code_id: a.access_code_id });
|
|
28527
28546
|
},
|
|
28528
|
-
disabled:
|
|
28547
|
+
disabled: h,
|
|
28529
28548
|
children: xn.deleteCode
|
|
28530
28549
|
}
|
|
28531
28550
|
)
|
|
28532
28551
|
] }),
|
|
28533
28552
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-details", children: [
|
|
28534
|
-
/* @__PURE__ */ p.jsxs("div", { className: "seam-row", children: [
|
|
28553
|
+
!o && /* @__PURE__ */ p.jsxs("div", { className: "seam-row", children: [
|
|
28535
28554
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-heading", children: [
|
|
28536
28555
|
xn.id,
|
|
28537
28556
|
":"
|
|
28538
28557
|
] }),
|
|
28539
28558
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-content seam-code-id", children: [
|
|
28540
|
-
/* @__PURE__ */ p.jsx("span", { children:
|
|
28559
|
+
/* @__PURE__ */ p.jsx("span", { children: a.access_code_id }),
|
|
28541
28560
|
/* @__PURE__ */ p.jsx(
|
|
28542
28561
|
Ma,
|
|
28543
28562
|
{
|
|
28544
28563
|
onClick: () => {
|
|
28545
|
-
Ah(
|
|
28564
|
+
Ah(a.access_code_id);
|
|
28546
28565
|
},
|
|
28547
28566
|
children: /* @__PURE__ */ p.jsx(Sh, {})
|
|
28548
28567
|
}
|
|
@@ -28554,14 +28573,14 @@ function ZA({
|
|
|
28554
28573
|
xn.created,
|
|
28555
28574
|
":"
|
|
28556
28575
|
] }),
|
|
28557
|
-
/* @__PURE__ */ p.jsx("div", { className: "seam-content", children: Ch(
|
|
28576
|
+
/* @__PURE__ */ p.jsx("div", { className: "seam-content", children: Ch(a.created_at) })
|
|
28558
28577
|
] }),
|
|
28559
28578
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-row seam-schedule", children: [
|
|
28560
28579
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-heading", children: [
|
|
28561
28580
|
xn.timing,
|
|
28562
28581
|
":"
|
|
28563
28582
|
] }),
|
|
28564
|
-
/* @__PURE__ */ p.jsx("div", { className: "seam-content", children: /* @__PURE__ */ p.jsx(kM, { accessCode:
|
|
28583
|
+
/* @__PURE__ */ p.jsx("div", { className: "seam-content", children: /* @__PURE__ */ p.jsx(kM, { accessCode: a }) })
|
|
28565
28584
|
] })
|
|
28566
28585
|
] })
|
|
28567
28586
|
] });
|
|
@@ -28601,13 +28620,13 @@ function NM(t) {
|
|
|
28601
28620
|
vc(e.starts_at)
|
|
28602
28621
|
] });
|
|
28603
28622
|
}
|
|
28604
|
-
const R1 = (t) =>
|
|
28623
|
+
const R1 = (t) => U.fromISO(t).toLocaleString({
|
|
28605
28624
|
month: "short",
|
|
28606
28625
|
day: "numeric"
|
|
28607
|
-
}), vc = (t) =>
|
|
28626
|
+
}), vc = (t) => U.fromISO(t).toLocaleString({
|
|
28608
28627
|
hour: "numeric",
|
|
28609
28628
|
minute: "2-digit"
|
|
28610
|
-
}), Ch = (t) =>
|
|
28629
|
+
}), Ch = (t) => U.fromISO(t).toLocaleString({
|
|
28611
28630
|
weekday: "short",
|
|
28612
28631
|
month: "long",
|
|
28613
28632
|
day: "numeric",
|
|
@@ -28687,7 +28706,7 @@ function WA({
|
|
|
28687
28706
|
kn("ConnectAccountButton");
|
|
28688
28707
|
const { isLoading: e, mutate: n } = KM({
|
|
28689
28708
|
willNavigateToWebview: !0
|
|
28690
|
-
}), r =
|
|
28709
|
+
}), r = z.useCallback(() => {
|
|
28691
28710
|
var i;
|
|
28692
28711
|
n({
|
|
28693
28712
|
custom_redirect_url: (i = globalThis.location) == null ? void 0 : i.href
|
|
@@ -28892,7 +28911,7 @@ function pz({
|
|
|
28892
28911
|
/* @__PURE__ */ p.jsx(
|
|
28893
28912
|
pi,
|
|
28894
28913
|
{
|
|
28895
|
-
className:
|
|
28914
|
+
className: te("seam-image-cell", {
|
|
28896
28915
|
"seam-offline-fade": r
|
|
28897
28916
|
}),
|
|
28898
28917
|
children: /* @__PURE__ */ p.jsx(xu, { device: t })
|
|
@@ -28902,7 +28921,7 @@ function pz({
|
|
|
28902
28921
|
/* @__PURE__ */ p.jsx(
|
|
28903
28922
|
Xm,
|
|
28904
28923
|
{
|
|
28905
|
-
className:
|
|
28924
|
+
className: te("seam-truncated-text", {
|
|
28906
28925
|
"seam-offline-fade": r
|
|
28907
28926
|
}),
|
|
28908
28927
|
children: t.properties.name
|
|
@@ -28912,7 +28931,7 @@ function pz({
|
|
|
28912
28931
|
/* @__PURE__ */ p.jsxs(
|
|
28913
28932
|
"span",
|
|
28914
28933
|
{
|
|
28915
|
-
className:
|
|
28934
|
+
className: te("seam-device-model", {
|
|
28916
28935
|
"seam-offline-fade": r
|
|
28917
28936
|
}),
|
|
28918
28937
|
children: [
|
|
@@ -28968,54 +28987,56 @@ function KA({
|
|
|
28968
28987
|
disableCreateAccessCode: u = !1,
|
|
28969
28988
|
disableEditAccessCode: f = !1,
|
|
28970
28989
|
disableDeleteAccessCode: d = !1,
|
|
28971
|
-
|
|
28972
|
-
|
|
28990
|
+
disableResourceIds: h = !1,
|
|
28991
|
+
onBack: m,
|
|
28992
|
+
className: v
|
|
28973
28993
|
} = {}) {
|
|
28974
28994
|
kn("DeviceTable");
|
|
28975
|
-
const { devices:
|
|
28995
|
+
const { devices: b, isInitialLoading: g, isError: y, error: S } = fz({
|
|
28976
28996
|
device_ids: t,
|
|
28977
28997
|
connected_account_ids: e
|
|
28978
|
-
}), [
|
|
28998
|
+
}), [E, I] = z.useState(null), [w, A] = z.useState(""), O = z.useMemo(
|
|
28979
28999
|
() => {
|
|
28980
|
-
var
|
|
28981
|
-
return ((
|
|
29000
|
+
var M, G;
|
|
29001
|
+
return ((G = (M = b == null ? void 0 : b.filter((V) => xi(V) || Fm(V))) == null ? void 0 : M.filter((V) => s(V, w))) == null ? void 0 : G.sort(o)) ?? [];
|
|
28982
29002
|
},
|
|
28983
|
-
[
|
|
28984
|
-
),
|
|
28985
|
-
(
|
|
28986
|
-
r(
|
|
29003
|
+
[b, w, s, o]
|
|
29004
|
+
), T = z.useCallback(
|
|
29005
|
+
(M) => {
|
|
29006
|
+
r(M), !i && I(M);
|
|
28987
29007
|
},
|
|
28988
|
-
[r, i,
|
|
29008
|
+
[r, i, I]
|
|
28989
29009
|
);
|
|
28990
|
-
return
|
|
29010
|
+
return E != null ? /* @__PURE__ */ p.jsx(
|
|
28991
29011
|
dy,
|
|
28992
29012
|
{
|
|
28993
|
-
deviceId:
|
|
29013
|
+
deviceId: E,
|
|
28994
29014
|
disableLockUnlock: a,
|
|
28995
29015
|
disableCreateAccessCode: u,
|
|
28996
29016
|
disableEditAccessCode: f,
|
|
28997
29017
|
disableDeleteAccessCode: d,
|
|
29018
|
+
disableResourceIds: h,
|
|
28998
29019
|
onBack: () => {
|
|
28999
|
-
|
|
29020
|
+
I(null);
|
|
29000
29021
|
},
|
|
29001
|
-
className:
|
|
29022
|
+
className: v
|
|
29002
29023
|
}
|
|
29003
|
-
) :
|
|
29004
|
-
/* @__PURE__ */ p.jsx(Dn, { onBack:
|
|
29024
|
+
) : y ? /* @__PURE__ */ p.jsx("p", { className: v, children: S == null ? void 0 : S.message }) : /* @__PURE__ */ p.jsxs("div", { className: te("seam-device-table", v), children: [
|
|
29025
|
+
/* @__PURE__ */ p.jsx(Dn, { onBack: m }),
|
|
29005
29026
|
/* @__PURE__ */ p.jsxs(oy, { children: [
|
|
29006
29027
|
c != null ? /* @__PURE__ */ p.jsxs(ly, { children: [
|
|
29007
29028
|
l ?? c ?? So.devices,
|
|
29008
29029
|
" ",
|
|
29009
29030
|
/* @__PURE__ */ p.jsxs(uy, { children: [
|
|
29010
29031
|
"(",
|
|
29011
|
-
|
|
29032
|
+
O.length,
|
|
29012
29033
|
")"
|
|
29013
29034
|
] })
|
|
29014
29035
|
] }) : /* @__PURE__ */ p.jsx("div", { className: "seam-fragment" }),
|
|
29015
29036
|
/* @__PURE__ */ p.jsx("div", { className: "seam-table-header-loading-wrap", children: /* @__PURE__ */ p.jsx(
|
|
29016
29037
|
iy,
|
|
29017
29038
|
{
|
|
29018
|
-
isLoading:
|
|
29039
|
+
isLoading: g,
|
|
29019
29040
|
label: So.loading,
|
|
29020
29041
|
top: -20
|
|
29021
29042
|
}
|
|
@@ -29023,17 +29044,17 @@ function KA({
|
|
|
29023
29044
|
!n && /* @__PURE__ */ p.jsx(
|
|
29024
29045
|
Yc,
|
|
29025
29046
|
{
|
|
29026
|
-
value:
|
|
29027
|
-
onChange:
|
|
29028
|
-
disabled: ((
|
|
29047
|
+
value: w,
|
|
29048
|
+
onChange: A,
|
|
29049
|
+
disabled: ((b == null ? void 0 : b.length) ?? 0) === 0
|
|
29029
29050
|
}
|
|
29030
29051
|
)
|
|
29031
29052
|
] }),
|
|
29032
|
-
/* @__PURE__ */ p.jsx(ay, { children: /* @__PURE__ */ p.jsx(mz, { devices:
|
|
29053
|
+
/* @__PURE__ */ p.jsx(ay, { children: /* @__PURE__ */ p.jsx(mz, { devices: O, onDeviceClick: T }) })
|
|
29033
29054
|
] });
|
|
29034
29055
|
}
|
|
29035
29056
|
function mz(t) {
|
|
29036
|
-
const { devices: e, onDeviceClick: n } = t, [r, i] =
|
|
29057
|
+
const { devices: e, onDeviceClick: n } = t, [r, i] = z.useState(
|
|
29037
29058
|
null
|
|
29038
29059
|
);
|
|
29039
29060
|
if (e.length === 0)
|
|
@@ -29141,7 +29162,7 @@ function JA({
|
|
|
29141
29162
|
deviceModel: t
|
|
29142
29163
|
}) {
|
|
29143
29164
|
const e = Cz[t.support_level] ?? "unknown";
|
|
29144
|
-
return /* @__PURE__ */ p.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ p.jsx("div", { className:
|
|
29165
|
+
return /* @__PURE__ */ p.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ p.jsx("div", { className: te("seam-status-pill", `status-${e}`), children: /* @__PURE__ */ p.jsx("span", { children: Iz[t.support_level] }) }) });
|
|
29145
29166
|
}
|
|
29146
29167
|
const Cz = {
|
|
29147
29168
|
live: "green",
|
|
@@ -29187,7 +29208,7 @@ function _z({
|
|
|
29187
29208
|
return /* @__PURE__ */ p.jsxs(
|
|
29188
29209
|
"div",
|
|
29189
29210
|
{
|
|
29190
|
-
className:
|
|
29211
|
+
className: te("seam-brand-section", {
|
|
29191
29212
|
"can-expand": s,
|
|
29192
29213
|
expanded: r
|
|
29193
29214
|
}),
|
|
@@ -29588,14 +29609,14 @@ function nE({
|
|
|
29588
29609
|
className: i
|
|
29589
29610
|
} = {}) {
|
|
29590
29611
|
kn("SupportedDeviceTable");
|
|
29591
|
-
const [s, o] =
|
|
29612
|
+
const [s, o] = z.useState(""), [l, c] = z.useState({
|
|
29592
29613
|
supportedOnly: !0,
|
|
29593
29614
|
brand: null
|
|
29594
29615
|
}), a = e ?? t;
|
|
29595
29616
|
return /* @__PURE__ */ p.jsxs(
|
|
29596
29617
|
"div",
|
|
29597
29618
|
{
|
|
29598
|
-
className:
|
|
29619
|
+
className: te(
|
|
29599
29620
|
"seam-supported-device-table-content-wrap",
|
|
29600
29621
|
i
|
|
29601
29622
|
),
|