hplx-feature-library 1.0.222 → 1.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-B9GrTokn.cjs → Attachments-BIIHwdo1.cjs} +1 -1
- package/dist/{Attachments-3UkuRnaT.js → Attachments-Bf4IIvHa.js} +94 -96
- package/dist/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-Bk00pVxe.js → PatientPopupContainer-B283bpwr.js} +1 -1
- package/dist/{PatientPopupContainer-BA2JxU5G.cjs → PatientPopupContainer-CRyDfB0s.cjs} +1 -1
- package/dist/{PrintModal-4jT2v6c1.js → PrintModal-Bum6_fNo.js} +124 -156
- package/dist/{PrintModal-DOzge7E-.cjs → PrintModal-tamolKuC.cjs} +25 -25
- package/dist/index.js +3 -3
- package/dist/print-pdf/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as Q, b as jt, K as Rs, O as A2, d as R2, g as y5, P as k6, E as j6 } from "./index-UPYT3B9g.js";
|
|
2
2
|
import * as fa from "react";
|
|
3
|
-
import on, { createContext as Mm, useContext as Om, memo as eo, useMemo as da, useCallback as Jt, useState as at, useRef as Gt, useEffect as
|
|
3
|
+
import on, { createContext as Mm, useContext as Om, memo as eo, useMemo as da, useCallback as Jt, useState as at, useRef as Gt, useEffect as dn, useLayoutEffect as H6, useDebugValue as B6 } from "react";
|
|
4
4
|
import { E_DOCUMENT_VIEW_TYPE as Kl, E_DOCUMENT_FORMAT as Sr, E_ATTACHMENT_QUERY_TYPE as $l, E_CANVAS_TOOLS as yr, E_DOCUMENT_TYPE as Kf } from "./types/AttachmentTypes/index.js";
|
|
5
5
|
import { C_COMPARE_BUTTONS as Jv, C_PEN_TOOL_COLORS as xm, C_DOCUMENT_PREVIEW_HEADER as V6, C_DOCUMENT_COMPARE_HEADER as i0 } from "./constants/AttachmentConstants/index.js";
|
|
6
6
|
import { u as Y6 } from "./useOutsideClick-C4Q0aGuf.js";
|
|
@@ -1556,7 +1556,7 @@ const M5 = eo(T7), A7 = (s) => {
|
|
|
1556
1556
|
}, [l, d]), C = Jt(() => {
|
|
1557
1557
|
f(!1);
|
|
1558
1558
|
}, []);
|
|
1559
|
-
return
|
|
1559
|
+
return dn(() => {
|
|
1560
1560
|
if (!l) return;
|
|
1561
1561
|
const h = (R) => {
|
|
1562
1562
|
g.current && !g.current.contains(R.target) && s.current && !s.current.contains(R.target) && C();
|
|
@@ -1828,7 +1828,7 @@ function F5({ onFileUpload: s }) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
function z7({ onFileUpload: s, onEdit: l, onPreview: f, onDownload: p }) {
|
|
1830
1830
|
const { document: S } = Ra(), g = Gt(null);
|
|
1831
|
-
|
|
1831
|
+
dn(() => {
|
|
1832
1832
|
console.log("Document length: ", S.length);
|
|
1833
1833
|
}, [S]);
|
|
1834
1834
|
const d = () => {
|
|
@@ -2138,7 +2138,7 @@ const W7 = () => wm, [Tm, Am] = rd && window.addEventListener ? [
|
|
|
2138
2138
|
}, Z7 = {
|
|
2139
2139
|
initFocus: Q7,
|
|
2140
2140
|
initReconnect: _7
|
|
2141
|
-
}, Y2 = !on.useId, td = !rd || Y7, q7 = (s) => I7() ? window.requestAnimationFrame(s) : setTimeout(s, 1), tm = td ?
|
|
2141
|
+
}, Y2 = !on.useId, td = !rd || Y7, q7 = (s) => I7() ? window.requestAnimationFrame(s) : setTimeout(s, 1), tm = td ? dn : H6, nm = typeof navigator < "u" && navigator.connection, I2 = !td && nm && ([
|
|
2142
2142
|
"slow-2g",
|
|
2143
2143
|
"2g"
|
|
2144
2144
|
].includes(nm.effectiveType) || nm.saveData), u0 = /* @__PURE__ */ new WeakMap(), K7 = (s) => Em.prototype.toString.call(s), rm = (s, l) => s === `[object ${l}]`;
|
|
@@ -2473,8 +2473,8 @@ const am = on.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2473
2473
|
pn();
|
|
2474
2474
|
const tt = F(), { shouldRetryOnError: Yt } = tt;
|
|
2475
2475
|
tt.isPaused() || (gt.error = Vt, Rt && ft() && (tt.onError(Vt, k, tt), (Yt === !0 || Ii(Yt) && Yt(Vt)) && (!F().revalidateOnFocus || !F().revalidateOnReconnect || H()) && tt.onErrorRetry(Vt, k, tt, (vn) => {
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2476
|
+
const un = E[k];
|
|
2477
|
+
un && un[0] && un[0](B2, vn);
|
|
2478
2478
|
}, {
|
|
2479
2479
|
retryCount: (mt.retryCount || 0) + 1,
|
|
2480
2480
|
dedupe: !0
|
|
@@ -2645,7 +2645,7 @@ function ES({
|
|
|
2645
2645
|
setCursor: x
|
|
2646
2646
|
}) {
|
|
2647
2647
|
const [C, h] = at(!1), [b, R] = at(""), [T, E] = at(null), w = Gt(null), P = Gt(null), j = Gt(null), { documentView: k, setDocumentView: A } = Ra(), [y, M] = at(""), [L, B] = at(""), { setSearch: _, setTypes: F, setDates: H, setPage: O, setHasData: W, setQueryType: Z } = Xa(), [$, ne] = at([]), { setCompareMode: ee, setShowPreview: pe } = Xa(), { clearSelectedDocuments: z } = Ra(), [U, X] = at(!1);
|
|
2648
|
-
|
|
2648
|
+
dn(() => {
|
|
2649
2649
|
const ye = $.map((Le) => Le === "unspecified" ? "" : Le);
|
|
2650
2650
|
F(ye);
|
|
2651
2651
|
}, [$, F]);
|
|
@@ -2680,7 +2680,7 @@ function ES({
|
|
|
2680
2680
|
}, J = (ye) => {
|
|
2681
2681
|
A(ye), f(""), x(""), O(1), W(!0);
|
|
2682
2682
|
};
|
|
2683
|
-
|
|
2683
|
+
dn(() => (P.current && clearTimeout(P.current), P.current = setTimeout(() => {
|
|
2684
2684
|
_(b), O(1);
|
|
2685
2685
|
}, 300), () => {
|
|
2686
2686
|
P.current && clearTimeout(P.current);
|
|
@@ -2908,7 +2908,7 @@ const ad = S5((s) => ({
|
|
|
2908
2908
|
}));
|
|
2909
2909
|
function Y5(s) {
|
|
2910
2910
|
const { setHeaderHeight: l, isPreview: f = !1 } = s, p = Gt(null), { setShowPenTool: S, showPenTool: g } = ad(), d = Jt(() => S(!g), [S, g]), { setShowSaveGroupPreview: x, setSelectedGroup: C, clearSelectedDocuments: h } = Ra();
|
|
2911
|
-
|
|
2911
|
+
dn(() => {
|
|
2912
2912
|
const E = p?.current?.clientHeight || 0;
|
|
2913
2913
|
l(E);
|
|
2914
2914
|
}, [l]);
|
|
@@ -8347,10 +8347,10 @@ function J5() {
|
|
|
8347
8347
|
const an = me[Rt], Vt = an.text, tt = an.width, Yt = an.lastInParagraph;
|
|
8348
8348
|
if (re.save(), Xe === _ ? St += ye - tt - le * 2 : Xe === C && (St += (ye - tt - le * 2) / 2), Ze) {
|
|
8349
8349
|
re.save(), re.beginPath();
|
|
8350
|
-
const vn = p.Konva._fixTextRendering ? Math.round(J / 4) : Math.round(J / 2),
|
|
8351
|
-
re.moveTo(
|
|
8350
|
+
const vn = p.Konva._fixTextRendering ? Math.round(J / 4) : Math.round(J / 2), un = St, De = ft + pn + vn;
|
|
8351
|
+
re.moveTo(un, De);
|
|
8352
8352
|
const He = Xe === b && !Yt ? ye - le * 2 : tt;
|
|
8353
|
-
re.lineTo(
|
|
8353
|
+
re.lineTo(un + Math.round(He), De), re.lineWidth = J / 15;
|
|
8354
8354
|
const dt = this._getLinearGradient();
|
|
8355
8355
|
re.strokeStyle = dt || Oe, re.stroke(), re.restore();
|
|
8356
8356
|
}
|
|
@@ -8358,15 +8358,15 @@ function J5() {
|
|
|
8358
8358
|
re.save(), re.beginPath();
|
|
8359
8359
|
const vn = p.Konva._fixTextRendering ? -Math.round(J / 4) : 0;
|
|
8360
8360
|
re.moveTo(St, ft + pn + vn);
|
|
8361
|
-
const
|
|
8362
|
-
re.lineTo(St + Math.round(
|
|
8361
|
+
const un = Xe === b && !Yt ? ye - le * 2 : tt;
|
|
8362
|
+
re.lineTo(St + Math.round(un), ft + pn + vn), re.lineWidth = J / 15;
|
|
8363
8363
|
const De = this._getLinearGradient();
|
|
8364
8364
|
re.strokeStyle = De || Oe, re.stroke(), re.restore();
|
|
8365
8365
|
}
|
|
8366
8366
|
if (Re !== F && (Le !== 0 || Xe === b)) {
|
|
8367
|
-
const vn = Vt.split(" ").length - 1,
|
|
8368
|
-
for (let De = 0; De <
|
|
8369
|
-
const He =
|
|
8367
|
+
const vn = Vt.split(" ").length - 1, un = d(Vt);
|
|
8368
|
+
for (let De = 0; De < un.length; De++) {
|
|
8369
|
+
const He = un[De];
|
|
8370
8370
|
He === " " && !Yt && Xe === b && (St += (ye - le * 2 - tt) / vn), this._partialTextX = St, this._partialTextY = ft + pn, this._partialText = He, re.fillStrokeShape(this), St += this.measureSize(He).width + Le;
|
|
8371
8371
|
}
|
|
8372
8372
|
} else
|
|
@@ -8442,7 +8442,7 @@ function J5() {
|
|
|
8442
8442
|
for (; St.length > 0; ) {
|
|
8443
8443
|
let an = 0, Vt = d(St).length, tt = "", Yt = 0;
|
|
8444
8444
|
for (; an < Vt; ) {
|
|
8445
|
-
const vn = an + Vt >>> 1,
|
|
8445
|
+
const vn = an + Vt >>> 1, un = d(St), De = un.slice(0, vn + 1).join(""), He = this._getTextWidth(De);
|
|
8446
8446
|
(mt && Re && Le + le > ye ? He + Rt : He) <= Xe ? (an = vn + 1, tt = De, Yt = He) : Vt = vn;
|
|
8447
8447
|
}
|
|
8448
8448
|
if (tt) {
|
|
@@ -10853,8 +10853,8 @@ function dx() {
|
|
|
10853
10853
|
function Yt() {
|
|
10854
10854
|
U(Oe), Oe = -1;
|
|
10855
10855
|
}
|
|
10856
|
-
var vn = Rt,
|
|
10857
|
-
s.unstable_IdlePriority = E, s.unstable_ImmediatePriority = h, s.unstable_LowPriority = T, s.unstable_NormalPriority = R, s.unstable_Profiling =
|
|
10856
|
+
var vn = Rt, un = null;
|
|
10857
|
+
s.unstable_IdlePriority = E, s.unstable_ImmediatePriority = h, s.unstable_LowPriority = T, s.unstable_NormalPriority = R, s.unstable_Profiling = un, s.unstable_UserBlockingPriority = b, s.unstable_cancelCallback = Me, s.unstable_continueExecution = Ae, s.unstable_forceFrameRate = ft, s.unstable_getCurrentPriorityLevel = Xe, s.unstable_getFirstCallbackNode = Re, s.unstable_next = Ee, s.unstable_pauseExecution = oe, s.unstable_requestPaint = vn, s.unstable_runWithPriority = me, s.unstable_scheduleCallback = J, s.unstable_shouldYield = mt, s.unstable_wrapCallback = le, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10858
10858
|
}();
|
|
10859
10859
|
}(mm)), mm;
|
|
10860
10860
|
}
|
|
@@ -11065,7 +11065,7 @@ function hx() {
|
|
|
11065
11065
|
}
|
|
11066
11066
|
return null;
|
|
11067
11067
|
}
|
|
11068
|
-
var ee = Array.isArray, pe = l.getPublicInstance, z = l.getRootHostContext, U = l.getChildHostContext, X = l.prepareForCommit, Y = l.resetAfterCommit, q = l.createInstance, se = l.appendInitialChild, re = l.finalizeInitialChildren, me = l.prepareUpdate, Ee = l.shouldSetTextContent, le = l.createTextInstance, J = l.scheduleTimeout, oe = l.cancelTimeout, Ae = l.noTimeout, Re = l.isPrimaryRenderer, Me = l.supportsMutation, Xe = l.supportsPersistence, ye = l.supportsHydration, Le = l.getInstanceFromNode, Oe = l.preparePortalMount, Je = l.getCurrentEventPriority, Ze = l.detachDeletedInstance, mt = l.supportsMicrotasks, Rt = l.scheduleMicrotask, ft = l.supportsTestSelectors, gt = l.findFiberRoot, St = l.getBoundingRect, pn = l.getTextContent, an = l.isHiddenSubtree, Vt = l.matchAccessibilityRole, tt = l.setFocusIfFocusable, Yt = l.setupIntersectionObserver, vn = l.appendChild,
|
|
11068
|
+
var ee = Array.isArray, pe = l.getPublicInstance, z = l.getRootHostContext, U = l.getChildHostContext, X = l.prepareForCommit, Y = l.resetAfterCommit, q = l.createInstance, se = l.appendInitialChild, re = l.finalizeInitialChildren, me = l.prepareUpdate, Ee = l.shouldSetTextContent, le = l.createTextInstance, J = l.scheduleTimeout, oe = l.cancelTimeout, Ae = l.noTimeout, Re = l.isPrimaryRenderer, Me = l.supportsMutation, Xe = l.supportsPersistence, ye = l.supportsHydration, Le = l.getInstanceFromNode, Oe = l.preparePortalMount, Je = l.getCurrentEventPriority, Ze = l.detachDeletedInstance, mt = l.supportsMicrotasks, Rt = l.scheduleMicrotask, ft = l.supportsTestSelectors, gt = l.findFiberRoot, St = l.getBoundingRect, pn = l.getTextContent, an = l.isHiddenSubtree, Vt = l.matchAccessibilityRole, tt = l.setFocusIfFocusable, Yt = l.setupIntersectionObserver, vn = l.appendChild, un = l.appendChildToContainer, De = l.commitTextUpdate, He = l.commitMount, dt = l.commitUpdate, Ke = l.insertBefore, qt = l.insertInContainerBefore, er = l.removeChild, _e = l.removeChildFromContainer, Ie = l.resetTextContent, mn = l.hideInstance, Kt = l.hideTextInstance, Dt = l.unhideInstance, vi = l.unhideTextInstance, hl = l.clearContainer, id = l.cloneInstance, Nt = l.createContainerChildSet, Na = l.appendChildToContainerChildSet, Wi = l.finalizeContainerChildren, mi = l.replaceContainerChildren, Qa = l.cloneHiddenInstance, Pa = l.cloneHiddenTextInstance, Xi = l.canHydrateInstance, Ou = l.canHydrateTextInstance, C0 = l.canHydrateSuspenseInstance, pl = l.isSuspenseInstancePending, Vn = l.isSuspenseInstanceFallback, Lu = l.getSuspenseInstanceFallbackErrorDetails, sd = l.registerSuspenseInstanceRetry, Ds = l.getNextHydratableSibling, Qi = l.getFirstHydratableChild, Fu = l.getFirstHydratableChildWithinContainer, gi = l.getFirstHydratableChildWithinSuspenseInstance, zu = l.hydrateInstance, Gu = l.hydrateTextInstance, vl = l.hydrateSuspenseInstance, ml = l.getNextHydratableInstanceAfterSuspenseInstance, Ns = l.commitHydratedContainer, _a = l.commitHydratedSuspenseInstance, E0 = l.clearSuspenseBoundary, to = l.clearSuspenseBoundaryFromContainer, b0 = l.shouldDeleteUnhydratedTailInstances, w0 = l.didNotMatchHydratedContainerTextInstance, ld = l.didNotMatchHydratedTextInstance, no;
|
|
11069
11069
|
function _i(n) {
|
|
11070
11070
|
if (no === void 0) try {
|
|
11071
11071
|
throw Error();
|
|
@@ -12014,11 +12014,11 @@ function hx() {
|
|
|
12014
12014
|
var o = en, c = ra(), m = r(), D = !pa(c.memoizedState, m);
|
|
12015
12015
|
if (D && (c.memoizedState = m, Gn = !0), c = c.queue, Ca(tc.bind(null, o, c, n), [n]), c.getSnapshot !== r || D || Pn !== null && Pn.memoizedState.tag & 1) {
|
|
12016
12016
|
if (o.flags |= 2048, rs(9, xa.bind(null, o, c, m, r), void 0, null), kn === null) throw Error(d(349));
|
|
12017
|
-
(rr & 30) !== 0 ||
|
|
12017
|
+
(rr & 30) !== 0 || cn(o, r, m);
|
|
12018
12018
|
}
|
|
12019
12019
|
return m;
|
|
12020
12020
|
}
|
|
12021
|
-
function
|
|
12021
|
+
function cn(n, r, o) {
|
|
12022
12022
|
n.flags |= 16384, n = { getSnapshot: r, value: o }, r = en.updateQueue, r === null ? (r = { lastEffect: null, stores: null }, en.updateQueue = r, r.stores = [n]) : (o = r.stores, o === null ? r.stores = [n] : o.push(n));
|
|
12023
12023
|
}
|
|
12024
12024
|
function xa(n, r, o, c) {
|
|
@@ -12200,7 +12200,7 @@ function hx() {
|
|
|
12200
12200
|
o = o();
|
|
12201
12201
|
} else {
|
|
12202
12202
|
if (o = r(), kn === null) throw Error(d(349));
|
|
12203
|
-
(rr & 30) !== 0 ||
|
|
12203
|
+
(rr & 30) !== 0 || cn(c, r, o);
|
|
12204
12204
|
}
|
|
12205
12205
|
m.memoizedState = o;
|
|
12206
12206
|
var D = { value: o, getSnapshot: r };
|
|
@@ -13012,7 +13012,7 @@ Error generating stack: ` + D.message + `
|
|
|
13012
13012
|
}
|
|
13013
13013
|
function Qo(n, r, o) {
|
|
13014
13014
|
var c = n.tag;
|
|
13015
|
-
if (c === 5 || c === 6) n = n.stateNode, r ? qt(o, n, r) :
|
|
13015
|
+
if (c === 5 || c === 6) n = n.stateNode, r ? qt(o, n, r) : un(o, n);
|
|
13016
13016
|
else if (c !== 4 && (n = n.child, n !== null)) for (Qo(n, r, o), n = n.sibling; n !== null; ) Qo(n, r, o), n = n.sibling;
|
|
13017
13017
|
}
|
|
13018
13018
|
function _o(n, r, o) {
|
|
@@ -13638,7 +13638,7 @@ Error generating stack: ` + D.message + `
|
|
|
13638
13638
|
function Ul(n, r) {
|
|
13639
13639
|
if (nu = -1, Gl = 0, (yt & 6) !== 0) throw Error(d(327));
|
|
13640
13640
|
var o = n.callbackNode;
|
|
13641
|
-
if (
|
|
13641
|
+
if (fn() && n.callbackNode !== o) return null;
|
|
13642
13642
|
var c = oo(n, n === kn ? Xn : 0);
|
|
13643
13643
|
if (c === 0) return null;
|
|
13644
13644
|
if ((c & 30) !== 0 || (c & n.expiredLanes) !== 0 || r) r = Qs(n, c);
|
|
@@ -13745,7 +13745,7 @@ Error generating stack: ` + D.message + `
|
|
|
13745
13745
|
}
|
|
13746
13746
|
function Ha(n) {
|
|
13747
13747
|
if ((yt & 6) !== 0) throw Error(d(327));
|
|
13748
|
-
|
|
13748
|
+
fn();
|
|
13749
13749
|
var r = oo(n, 0);
|
|
13750
13750
|
if ((r & 1) === 0) return Mn(n, Fn()), null;
|
|
13751
13751
|
var o = Qs(n, r);
|
|
@@ -13758,7 +13758,7 @@ Error generating stack: ` + D.message + `
|
|
|
13758
13758
|
return n.finishedWork = n.current.alternate, n.finishedLanes = r, gs(n, Ar, ja), Mn(n, Fn()), null;
|
|
13759
13759
|
}
|
|
13760
13760
|
function Ba(n) {
|
|
13761
|
-
lr !== null && lr.tag === 0 && (yt & 6) === 0 &&
|
|
13761
|
+
lr !== null && lr.tag === 0 && (yt & 6) === 0 && fn();
|
|
13762
13762
|
var r = yt;
|
|
13763
13763
|
yt |= 1;
|
|
13764
13764
|
var o = Sn.transition, c = Ft;
|
|
@@ -13965,7 +13965,7 @@ Error generating stack: ` + D.message + `
|
|
|
13965
13965
|
}
|
|
13966
13966
|
function ys(n, r, o, c) {
|
|
13967
13967
|
do
|
|
13968
|
-
|
|
13968
|
+
fn();
|
|
13969
13969
|
while (lr !== null);
|
|
13970
13970
|
if ((yt & 6) !== 0) throw Error(d(327));
|
|
13971
13971
|
o = n.finishedWork;
|
|
@@ -13975,7 +13975,7 @@ Error generating stack: ` + D.message + `
|
|
|
13975
13975
|
n.callbackNode = null, n.callbackPriority = 0;
|
|
13976
13976
|
var D = o.lanes | o.childLanes;
|
|
13977
13977
|
if (D0(n, D), n === kn && (wn = kn = null, Xn = 0), (o.subtreeFlags & 2064) === 0 && (o.flags & 2064) === 0 || sr || (sr = !0, Yd(Wu, function() {
|
|
13978
|
-
return
|
|
13978
|
+
return fn(), null;
|
|
13979
13979
|
})), D = (o.flags & 15990) !== 0, (o.subtreeFlags & 15990) !== 0 || D) {
|
|
13980
13980
|
D = Sn.transition, Sn.transition = null;
|
|
13981
13981
|
var I = Ft;
|
|
@@ -13985,9 +13985,9 @@ Error generating stack: ` + D.message + `
|
|
|
13985
13985
|
} else n.current = o;
|
|
13986
13986
|
if (sr && (sr = !1, lr = n, Ws = m), D = n.pendingLanes, D === 0 && (Pi = null), L0(o.stateNode), Mn(n, Fn()), r !== null) for (c = n.onRecoverableError, o = 0; o < r.length; o++) m = r[o], c(m.value, { componentStack: m.stack, digest: m.digest });
|
|
13987
13987
|
if (eu) throw eu = !1, n = zl, zl = null, n;
|
|
13988
|
-
return (Ws & 1) !== 0 && n.tag !== 0 &&
|
|
13988
|
+
return (Ws & 1) !== 0 && n.tag !== 0 && fn(), D = n.pendingLanes, (D & 1) !== 0 ? n === tu ? vs++ : (vs = 0, tu = n) : vs = 0, Oa(), null;
|
|
13989
13989
|
}
|
|
13990
|
-
function
|
|
13990
|
+
function fn() {
|
|
13991
13991
|
if (lr !== null) {
|
|
13992
13992
|
var n = ud(Ws), r = Sn.transition, o = Ft;
|
|
13993
13993
|
try {
|
|
@@ -14541,7 +14541,7 @@ Error generating stack: ` + D.message + `
|
|
|
14541
14541
|
} finally {
|
|
14542
14542
|
Ft = c, Sn.transition = o, yt = r, yt === 0 && (Is(), Oa());
|
|
14543
14543
|
}
|
|
14544
|
-
}, f.flushPassiveEffects =
|
|
14544
|
+
}, f.flushPassiveEffects = fn, f.flushSync = Ba, f.focusWithin = function(n, r) {
|
|
14545
14545
|
if (!ft) throw Error(d(363));
|
|
14546
14546
|
for (n = vc(n), r = Ud(n, r), r = Array.from(r), n = 0; n < r.length; ) {
|
|
14547
14547
|
var o = r[n++];
|
|
@@ -14669,11 +14669,11 @@ function px() {
|
|
|
14669
14669
|
function E(e, t) {
|
|
14670
14670
|
e._reactInternals = t;
|
|
14671
14671
|
}
|
|
14672
|
-
var w = !1, P = !1, j = !1, k = !0, A = !0, y = !0, M = !0, L = 0, B = 1, _ = 2, F = 3, H = 4, O = 5, W = 6, Z = 7, $ = 8, ne = 9, ee = 10, pe = 11, z = 12, U = 13, X = 14, Y = 15, q = 16, se = 17, re = 18, me = 19, Ee = 21, le = 22, J = 23, oe = 24, Ae = 25, Re = Symbol.for("react.element"), Me = Symbol.for("react.portal"), Xe = Symbol.for("react.fragment"), ye = Symbol.for("react.strict_mode"), Le = Symbol.for("react.profiler"), Oe = Symbol.for("react.provider"), Je = Symbol.for("react.context"), Ze = Symbol.for("react.forward_ref"), mt = Symbol.for("react.suspense"), Rt = Symbol.for("react.suspense_list"), ft = Symbol.for("react.memo"), gt = Symbol.for("react.lazy"), St = Symbol.for("react.scope"), pn = Symbol.for("react.debug_trace_mode"), an = Symbol.for("react.offscreen"), Vt = Symbol.for("react.legacy_hidden"), tt = Symbol.for("react.cache"), Yt = Symbol.for("react.tracing_marker"), vn = Symbol.iterator,
|
|
14672
|
+
var w = !1, P = !1, j = !1, k = !0, A = !0, y = !0, M = !0, L = 0, B = 1, _ = 2, F = 3, H = 4, O = 5, W = 6, Z = 7, $ = 8, ne = 9, ee = 10, pe = 11, z = 12, U = 13, X = 14, Y = 15, q = 16, se = 17, re = 18, me = 19, Ee = 21, le = 22, J = 23, oe = 24, Ae = 25, Re = Symbol.for("react.element"), Me = Symbol.for("react.portal"), Xe = Symbol.for("react.fragment"), ye = Symbol.for("react.strict_mode"), Le = Symbol.for("react.profiler"), Oe = Symbol.for("react.provider"), Je = Symbol.for("react.context"), Ze = Symbol.for("react.forward_ref"), mt = Symbol.for("react.suspense"), Rt = Symbol.for("react.suspense_list"), ft = Symbol.for("react.memo"), gt = Symbol.for("react.lazy"), St = Symbol.for("react.scope"), pn = Symbol.for("react.debug_trace_mode"), an = Symbol.for("react.offscreen"), Vt = Symbol.for("react.legacy_hidden"), tt = Symbol.for("react.cache"), Yt = Symbol.for("react.tracing_marker"), vn = Symbol.iterator, un = "@@iterator";
|
|
14673
14673
|
function De(e) {
|
|
14674
14674
|
if (e === null || typeof e != "object")
|
|
14675
14675
|
return null;
|
|
14676
|
-
var t = vn && e[vn] || e[
|
|
14676
|
+
var t = vn && e[vn] || e[un];
|
|
14677
14677
|
return typeof t == "function" ? t : null;
|
|
14678
14678
|
}
|
|
14679
14679
|
function He(e, t, a) {
|
|
@@ -15372,7 +15372,7 @@ function px() {
|
|
|
15372
15372
|
), Ut = (
|
|
15373
15373
|
/* */
|
|
15374
15374
|
2
|
|
15375
|
-
),
|
|
15375
|
+
), cn = (
|
|
15376
15376
|
/* */
|
|
15377
15377
|
8
|
|
15378
15378
|
), xa = (
|
|
@@ -16124,7 +16124,7 @@ function px() {
|
|
|
16124
16124
|
function ys() {
|
|
16125
16125
|
r() || h("Expected to be hydrating. This is a bug in React. Please file an issue.");
|
|
16126
16126
|
}
|
|
16127
|
-
var
|
|
16127
|
+
var fn = null, Wr = null, Pt = !1, Oi = !1, ni = null;
|
|
16128
16128
|
function H0() {
|
|
16129
16129
|
Pt && h("We should not be hydrating here. This is a bug in React. Please file a bug.");
|
|
16130
16130
|
}
|
|
@@ -16138,10 +16138,10 @@ function px() {
|
|
|
16138
16138
|
if (!cr)
|
|
16139
16139
|
return !1;
|
|
16140
16140
|
var t = e.stateNode.containerInfo;
|
|
16141
|
-
return Wr = Ju(t),
|
|
16141
|
+
return Wr = Ju(t), fn = e, Pt = !0, ni = null, Oi = !1, !0;
|
|
16142
16142
|
}
|
|
16143
16143
|
function B0(e, t, a) {
|
|
16144
|
-
return cr ? (Wr = Gr(t),
|
|
16144
|
+
return cr ? (Wr = Gr(t), fn = e, Pt = !0, ni = null, Oi = !1, a !== null && gs(e, a), !0) : !1;
|
|
16145
16145
|
}
|
|
16146
16146
|
function Xr(e, t) {
|
|
16147
16147
|
switch (e.tag) {
|
|
@@ -16261,11 +16261,11 @@ function px() {
|
|
|
16261
16261
|
switch (e.tag) {
|
|
16262
16262
|
case O: {
|
|
16263
16263
|
var a = e.type, i = e.pendingProps, u = fo(t, a, i);
|
|
16264
|
-
return u !== null ? (e.stateNode = u,
|
|
16264
|
+
return u !== null ? (e.stateNode = u, fn = e, Wr = _u(u), !0) : !1;
|
|
16265
16265
|
}
|
|
16266
16266
|
case W: {
|
|
16267
16267
|
var v = e.pendingProps, N = Kr(t, v);
|
|
16268
|
-
return N !== null ? (e.stateNode = N,
|
|
16268
|
+
return N !== null ? (e.stateNode = N, fn = e, Wr = null, !0) : !1;
|
|
16269
16269
|
}
|
|
16270
16270
|
case U: {
|
|
16271
16271
|
var G = $r(t);
|
|
@@ -16277,7 +16277,7 @@ function px() {
|
|
|
16277
16277
|
};
|
|
16278
16278
|
e.memoizedState = V;
|
|
16279
16279
|
var K = y6(G);
|
|
16280
|
-
return K.return = e, e.child = K,
|
|
16280
|
+
return K.return = e, e.child = K, fn = e, Wr = null, !0;
|
|
16281
16281
|
}
|
|
16282
16282
|
return !1;
|
|
16283
16283
|
}
|
|
@@ -16295,15 +16295,15 @@ function px() {
|
|
|
16295
16295
|
if (Pt) {
|
|
16296
16296
|
var t = Wr;
|
|
16297
16297
|
if (!t) {
|
|
16298
|
-
ai(e) && (Cc(
|
|
16298
|
+
ai(e) && (Cc(fn, e), _s()), ri(fn, e), Pt = !1, fn = e;
|
|
16299
16299
|
return;
|
|
16300
16300
|
}
|
|
16301
16301
|
var a = t;
|
|
16302
16302
|
if (!kl(e, t)) {
|
|
16303
|
-
ai(e) && (Cc(
|
|
16304
|
-
var i =
|
|
16303
|
+
ai(e) && (Cc(fn, e), _s()), t = xl(a);
|
|
16304
|
+
var i = fn;
|
|
16305
16305
|
if (!t || !kl(e, t)) {
|
|
16306
|
-
ri(
|
|
16306
|
+
ri(fn, e), Pt = !1, fn = e;
|
|
16307
16307
|
return;
|
|
16308
16308
|
}
|
|
16309
16309
|
su(i, a);
|
|
@@ -16321,7 +16321,7 @@ function px() {
|
|
|
16321
16321
|
throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");
|
|
16322
16322
|
var t = e.stateNode, a = e.memoizedProps, i = !Oi, u = sn(t, a, e, i);
|
|
16323
16323
|
if (u) {
|
|
16324
|
-
var v =
|
|
16324
|
+
var v = fn;
|
|
16325
16325
|
if (v !== null)
|
|
16326
16326
|
switch (v.tag) {
|
|
16327
16327
|
case F: {
|
|
@@ -16371,10 +16371,10 @@ function px() {
|
|
|
16371
16371
|
function bc(e) {
|
|
16372
16372
|
for (var t = e.return; t !== null && t.tag !== O && t.tag !== F && t.tag !== U; )
|
|
16373
16373
|
t = t.return;
|
|
16374
|
-
|
|
16374
|
+
fn = t;
|
|
16375
16375
|
}
|
|
16376
16376
|
function Hl(e) {
|
|
16377
|
-
if (!cr || e !==
|
|
16377
|
+
if (!cr || e !== fn)
|
|
16378
16378
|
return !1;
|
|
16379
16379
|
if (!Pt)
|
|
16380
16380
|
return bc(e), Pt = !0, !1;
|
|
@@ -16387,7 +16387,7 @@ function px() {
|
|
|
16387
16387
|
for (; t; )
|
|
16388
16388
|
su(e, t), t = xl(t);
|
|
16389
16389
|
}
|
|
16390
|
-
return bc(e), e.tag === U ? Wr = Wd(e) : Wr =
|
|
16390
|
+
return bc(e), e.tag === U ? Wr = Wd(e) : Wr = fn ? xl(e.stateNode) : null, !0;
|
|
16391
16391
|
}
|
|
16392
16392
|
function lu() {
|
|
16393
16393
|
return Pt && Wr !== null;
|
|
@@ -16397,7 +16397,7 @@ function px() {
|
|
|
16397
16397
|
Xr(e, t), t = xl(t);
|
|
16398
16398
|
}
|
|
16399
16399
|
function Js() {
|
|
16400
|
-
cr && (
|
|
16400
|
+
cr && (fn = null, Wr = null, Pt = !1, Oi = !1);
|
|
16401
16401
|
}
|
|
16402
16402
|
function n() {
|
|
16403
16403
|
ni !== null && (Ug(ni), ni = null);
|
|
@@ -16503,7 +16503,7 @@ Error generating stack: ` + i.message + `
|
|
|
16503
16503
|
{
|
|
16504
16504
|
var ge = function(e) {
|
|
16505
16505
|
for (var t = null, a = e; a !== null; )
|
|
16506
|
-
a.mode &
|
|
16506
|
+
a.mode & cn && (t = a), a = a.return;
|
|
16507
16507
|
return t;
|
|
16508
16508
|
}, Ge = function(e) {
|
|
16509
16509
|
var t = [];
|
|
@@ -16513,7 +16513,7 @@ Error generating stack: ` + i.message + `
|
|
|
16513
16513
|
}, qe = [], ct = [], lt = [], bt = [], hn = [], wt = [], Nr = /* @__PURE__ */ new Set();
|
|
16514
16514
|
ae.recordUnsafeLifecycleWarnings = function(e, t) {
|
|
16515
16515
|
Nr.has(e.type) || (typeof t.componentWillMount == "function" && // Don't warn about react-lifecycles-compat polyfilled components.
|
|
16516
|
-
t.componentWillMount.__suppressDeprecationWarning !== !0 && qe.push(e), e.mode &
|
|
16516
|
+
t.componentWillMount.__suppressDeprecationWarning !== !0 && qe.push(e), e.mode & cn && typeof t.UNSAFE_componentWillMount == "function" && ct.push(e), typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && lt.push(e), e.mode & cn && typeof t.UNSAFE_componentWillReceiveProps == "function" && bt.push(e), typeof t.componentWillUpdate == "function" && t.componentWillUpdate.__suppressDeprecationWarning !== !0 && hn.push(e), e.mode & cn && typeof t.UNSAFE_componentWillUpdate == "function" && wt.push(e));
|
|
16517
16517
|
}, ae.flushPendingUnsafeLifecycleWarnings = function() {
|
|
16518
16518
|
var e = /* @__PURE__ */ new Set();
|
|
16519
16519
|
qe.length > 0 && (qe.forEach(function(ve) {
|
|
@@ -16669,7 +16669,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, u)
|
|
|
16669
16669
|
function wc(e, t, a) {
|
|
16670
16670
|
var i = a.ref;
|
|
16671
16671
|
if (i !== null && typeof i != "function" && typeof i != "object") {
|
|
16672
|
-
if ((e.mode &
|
|
16672
|
+
if ((e.mode & cn || k) && // We warn in ReactElement.js if owner and self are equal for string refs
|
|
16673
16673
|
// because these cannot be automatically converted to an arrow function
|
|
16674
16674
|
// using a codemod. Therefore, we don't have to warn about string refs again.
|
|
16675
16675
|
!(a._owner && a._self && a._owner.stateNode !== a._self) && // Will already throw with "Function components cannot have string refs"
|
|
@@ -17379,7 +17379,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
17379
17379
|
Jm();
|
|
17380
17380
|
var G = N.call(v, i, u);
|
|
17381
17381
|
{
|
|
17382
|
-
if (e.mode &
|
|
17382
|
+
if (e.mode & cn) {
|
|
17383
17383
|
bn(!0);
|
|
17384
17384
|
try {
|
|
17385
17385
|
N.call(v, i, u);
|
|
@@ -17401,7 +17401,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
17401
17401
|
if (typeof V == "function") {
|
|
17402
17402
|
Jm(), K = V.call(v, i, u);
|
|
17403
17403
|
{
|
|
17404
|
-
if (e.mode &
|
|
17404
|
+
if (e.mode & cn) {
|
|
17405
17405
|
bn(!0);
|
|
17406
17406
|
try {
|
|
17407
17407
|
V.call(v, i, u);
|
|
@@ -18896,7 +18896,7 @@ Incoming: %s`, xe, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
18896
18896
|
function Ip(e, t, a, i) {
|
|
18897
18897
|
var u = e.memoizedState, v = a(i, u);
|
|
18898
18898
|
{
|
|
18899
|
-
if (e.mode &
|
|
18899
|
+
if (e.mode & cn) {
|
|
18900
18900
|
bn(!0);
|
|
18901
18901
|
try {
|
|
18902
18902
|
v = a(i, u);
|
|
@@ -18938,7 +18938,7 @@ Incoming: %s`, xe, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
18938
18938
|
if (typeof G.shouldComponentUpdate == "function") {
|
|
18939
18939
|
var V = G.shouldComponentUpdate(i, v, N);
|
|
18940
18940
|
{
|
|
18941
|
-
if (e.mode &
|
|
18941
|
+
if (e.mode & cn) {
|
|
18942
18942
|
bn(!0);
|
|
18943
18943
|
try {
|
|
18944
18944
|
V = G.shouldComponentUpdate(i, v, N);
|
|
@@ -18958,11 +18958,11 @@ Incoming: %s`, xe, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
18958
18958
|
var u = Ke(t) || "Component", v = i.render;
|
|
18959
18959
|
v || (t.prototype && typeof t.prototype.render == "function" ? h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", u) : h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", u)), i.getInitialState && !i.getInitialState.isReactClassApproved && !i.state && h("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", u), i.getDefaultProps && !i.getDefaultProps.isReactClassApproved && h("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", u), i.propTypes && h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", u), i.contextType && h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", u), t.childContextTypes && !Uc.has(t) && // Strict Mode has its own warning for legacy context, so we can skip
|
|
18960
18960
|
// this one.
|
|
18961
|
-
(e.mode &
|
|
18961
|
+
(e.mode & cn) === $e && (Uc.add(t), h(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
18962
18962
|
|
|
18963
18963
|
.Learn more about this warning here: https://reactjs.org/link/legacy-context`, u)), t.contextTypes && !Uc.has(t) && // Strict Mode has its own warning for legacy context, so we can skip
|
|
18964
18964
|
// this one.
|
|
18965
|
-
(e.mode &
|
|
18965
|
+
(e.mode & cn) === $e && (Uc.add(t), h(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
18966
18966
|
|
|
18967
18967
|
Learn more about this warning here: https://reactjs.org/link/legacy-context`, u)), i.contextTypes && h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", u), t.contextType && t.contextTypes && !Vp.has(t) && (Vp.add(t), h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", u)), typeof i.componentShouldUpdate == "function" && h("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", u), t.prototype && t.prototype.isPureReactComponent && typeof i.shouldComponentUpdate < "u" && h("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", Ke(t) || "A pure component"), typeof i.componentDidUnmount == "function" && h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", u), typeof i.componentDidReceiveProps == "function" && h("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", u), typeof i.componentWillRecieveProps == "function" && h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", u), typeof i.UNSAFE_componentWillRecieveProps == "function" && h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", u);
|
|
18968
18968
|
var N = i.props !== a;
|
|
@@ -18995,7 +18995,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, u)
|
|
|
18995
18995
|
i = K != null, v = i ? Ka(e, u) : nr;
|
|
18996
18996
|
}
|
|
18997
18997
|
var te = new t(a, v);
|
|
18998
|
-
if (e.mode &
|
|
18998
|
+
if (e.mode & cn) {
|
|
18999
18999
|
bn(!0);
|
|
19000
19000
|
try {
|
|
19001
19001
|
te = new t(a, v);
|
|
@@ -19058,7 +19058,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, We, it, Ce !== null ? `
|
|
|
19058
19058
|
var G = Ke(t) || "Component";
|
|
19059
19059
|
Bp.has(G) || (Bp.add(G), h("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", G));
|
|
19060
19060
|
}
|
|
19061
|
-
e.mode &
|
|
19061
|
+
e.mode & cn && ae.recordLegacyContextWarning(e, u), ae.recordUnsafeLifecycleWarnings(e, u);
|
|
19062
19062
|
}
|
|
19063
19063
|
u.state = e.memoizedState;
|
|
19064
19064
|
var V = t.getDerivedStateFromProps;
|
|
@@ -19338,7 +19338,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
19338
19338
|
var N = a.render, G = t.ref, V, K;
|
|
19339
19339
|
fu(t, u), Di(t);
|
|
19340
19340
|
{
|
|
19341
|
-
if (kc.current = t, ce(!0), V = gu(e, t, N, i, G, u), K = yu(), t.mode &
|
|
19341
|
+
if (kc.current = t, ce(!0), V = gu(e, t, N, i, G, u), K = yu(), t.mode & cn) {
|
|
19342
19342
|
bn(!0);
|
|
19343
19343
|
try {
|
|
19344
19344
|
V = gu(e, t, N, i, G, u), K = yu();
|
|
@@ -19506,7 +19506,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
19506
19506
|
var V, K;
|
|
19507
19507
|
fu(t, u), Di(t);
|
|
19508
19508
|
{
|
|
19509
|
-
if (kc.current = t, ce(!0), V = gu(e, t, a, i, N, u), K = yu(), t.mode &
|
|
19509
|
+
if (kc.current = t, ce(!0), V = gu(e, t, a, i, N, u), K = yu(), t.mode & cn) {
|
|
19510
19510
|
bn(!0);
|
|
19511
19511
|
try {
|
|
19512
19512
|
V = gu(e, t, a, i, N, u), K = yu();
|
|
@@ -19570,7 +19570,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
19570
19570
|
else {
|
|
19571
19571
|
Di(t);
|
|
19572
19572
|
{
|
|
19573
|
-
if (ce(!0), V = G.render(), t.mode &
|
|
19573
|
+
if (ce(!0), V = G.render(), t.mode & cn) {
|
|
19574
19574
|
bn(!0);
|
|
19575
19575
|
try {
|
|
19576
19576
|
G.render();
|
|
@@ -19691,7 +19691,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
19691
19691
|
var K = Ke(a) || "Unknown";
|
|
19692
19692
|
Zp[K] || (h("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", K, K), Zp[K] = !0);
|
|
19693
19693
|
}
|
|
19694
|
-
t.mode &
|
|
19694
|
+
t.mode & cn && ae.recordLegacyContextWarning(t, null), ce(!0), kc.current = t, G = gu(null, t, a, u, v, i), V = yu(), ce(!1);
|
|
19695
19695
|
}
|
|
19696
19696
|
if (Ni(), t.flags |= mn, typeof G == "object" && G !== null && typeof G.render == "function" && G.$$typeof === void 0) {
|
|
19697
19697
|
var te = Ke(a) || "Unknown";
|
|
@@ -19710,7 +19710,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
19710
19710
|
var ve = !1;
|
|
19711
19711
|
return Er(a) ? (ve = !0, Gs(t)) : ve = !1, t.memoizedState = G.state !== null && G.state !== void 0 ? G.state : null, tp(t), k1(t, G), Xp(t, a, u, i), nv(null, t, a, !0, ve, i);
|
|
19712
19712
|
} else {
|
|
19713
|
-
if (t.tag = L, t.mode &
|
|
19713
|
+
if (t.tag = L, t.mode & cn) {
|
|
19714
19714
|
bn(!0);
|
|
19715
19715
|
try {
|
|
19716
19716
|
G = gu(null, t, a, u, v, i), V = yu();
|
|
@@ -23352,7 +23352,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
23352
23352
|
}
|
|
23353
23353
|
function h6(e, t, a) {
|
|
23354
23354
|
var i;
|
|
23355
|
-
return e === Ao ? (i = Et, t === !0 && (i |=
|
|
23355
|
+
return e === Ao ? (i = Et, t === !0 && (i |= cn, i |= xa)) : i = $e, Tr && (i |= Ut), Ta(F, null, null, i);
|
|
23356
23356
|
}
|
|
23357
23357
|
function Vv(e, t, a, i, u, v) {
|
|
23358
23358
|
var N = _, G = e;
|
|
@@ -23365,7 +23365,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
23365
23365
|
case Xe:
|
|
23366
23366
|
return il(a.children, u, v, t);
|
|
23367
23367
|
case ye:
|
|
23368
|
-
N = $, u |=
|
|
23368
|
+
N = $, u |= cn, (u & Et) !== $e && (u |= xa);
|
|
23369
23369
|
break;
|
|
23370
23370
|
case Le:
|
|
23371
23371
|
return p6(a, u, v, t);
|
|
@@ -23556,13 +23556,13 @@ Check the render method of \`` + K + "`.");
|
|
|
23556
23556
|
var u = _i(a);
|
|
23557
23557
|
if (u === null)
|
|
23558
23558
|
return null;
|
|
23559
|
-
if (u.mode &
|
|
23559
|
+
if (u.mode & cn) {
|
|
23560
23560
|
var v = _e(a) || "Component";
|
|
23561
23561
|
if (!Qv[v]) {
|
|
23562
23562
|
Qv[v] = !0;
|
|
23563
23563
|
var N = ze;
|
|
23564
23564
|
try {
|
|
23565
|
-
Mt(u), a.mode &
|
|
23565
|
+
Mt(u), a.mode & cn ? h("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", t, t, v) : h("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", t, t, v);
|
|
23566
23566
|
} finally {
|
|
23567
23567
|
N ? Mt(N) : pt();
|
|
23568
23568
|
}
|
|
@@ -24217,7 +24217,7 @@ const EC = on.forwardRef((s, l) => on.createElement(t3, {}, on.createElement(yC,
|
|
|
24217
24217
|
const { showPenTool: p, penColor: S, penTool: g, strokeWidth: d } = ad(), [x, C] = at(null), [h, b] = at({ width: 0, height: 0 }), [R, T] = at(!1), [E, w] = at([]), [P, j] = at(
|
|
24218
24218
|
[]
|
|
24219
24219
|
), [k, A] = at(null), y = Gt(null), M = Gt(null), L = 600, B = 600;
|
|
24220
|
-
|
|
24220
|
+
dn(() => {
|
|
24221
24221
|
const O = new window.Image();
|
|
24222
24222
|
O.onload = () => {
|
|
24223
24223
|
C(O);
|
|
@@ -24283,7 +24283,7 @@ const EC = on.forwardRef((s, l) => on.createElement(t3, {}, on.createElement(yC,
|
|
|
24283
24283
|
},
|
|
24284
24284
|
[p, x, k, g, P, S, d]
|
|
24285
24285
|
);
|
|
24286
|
-
return
|
|
24286
|
+
return dn(() => {
|
|
24287
24287
|
if (!f) return;
|
|
24288
24288
|
const O = () => {
|
|
24289
24289
|
const W = document.getElementById(f);
|
|
@@ -24296,7 +24296,7 @@ const EC = on.forwardRef((s, l) => on.createElement(t3, {}, on.createElement(yC,
|
|
|
24296
24296
|
}
|
|
24297
24297
|
};
|
|
24298
24298
|
return O(), window.addEventListener("resize", O), () => window.removeEventListener("resize", O);
|
|
24299
|
-
}, [f, x]),
|
|
24299
|
+
}, [f, x]), dn(() => {
|
|
24300
24300
|
const O = (W) => {
|
|
24301
24301
|
R && p && W.preventDefault();
|
|
24302
24302
|
};
|
|
@@ -24447,7 +24447,7 @@ function bC(s) {
|
|
|
24447
24447
|
let d = 1, x = p.length;
|
|
24448
24448
|
(p.length === 3 || p.length === 4) && (d = 2, x = 2);
|
|
24449
24449
|
const C = l / d, h = f / x;
|
|
24450
|
-
return
|
|
24450
|
+
return dn(() => {
|
|
24451
24451
|
g.current && (g.current.style.height = `${l}px`, g.current.style.width = `${f}px`);
|
|
24452
24452
|
}, [l, f, S]), /* @__PURE__ */ Q.jsx(
|
|
24453
24453
|
"div",
|
|
@@ -24551,7 +24551,7 @@ function NC() {
|
|
|
24551
24551
|
}
|
|
24552
24552
|
function r3() {
|
|
24553
24553
|
const s = Gt(null), { parentRef: l } = Xa(), { showPenTool: f } = ad();
|
|
24554
|
-
return
|
|
24554
|
+
return dn(() => {
|
|
24555
24555
|
if (f && l.current && s.current) {
|
|
24556
24556
|
const p = l.current.getBoundingClientRect(), S = p.width, g = p.height, d = p.top + g * 0.1, x = p.left + S * 0.9;
|
|
24557
24557
|
s.current.style.position = "fixed", s.current.style.top = `${d}px`, s.current.style.left = `${x}px`;
|
|
@@ -24664,11 +24664,11 @@ function PC() {
|
|
|
24664
24664
|
}
|
|
24665
24665
|
function MC() {
|
|
24666
24666
|
const { parentRef: s } = Xa(), { selectedDocuments: l, selectedGroup: f, showSaveGroupPreview: p } = Ra(), S = Gt(null), [g, d] = at(void 0), [x, C] = at([]), [h, b] = at(0), [R, T] = at(0);
|
|
24667
|
-
return
|
|
24667
|
+
return dn(() => {
|
|
24668
24668
|
s.current && S.current && (S.current.style.height = `${s.current.clientHeight}px`, S.current.style.width = `${s.current.clientWidth}px`, S.current.style.top = s.current.getBoundingClientRect().top + "px", S.current.style.left = s.current.getBoundingClientRect().left + "px");
|
|
24669
|
-
}, [s]),
|
|
24669
|
+
}, [s]), dn(() => {
|
|
24670
24670
|
f ? (C(f.documents), d(f.id)) : (C(l), d(void 0));
|
|
24671
|
-
}, [l, f]),
|
|
24671
|
+
}, [l, f]), dn(() => {
|
|
24672
24672
|
if (s.current) {
|
|
24673
24673
|
const E = s.current.clientHeight;
|
|
24674
24674
|
b(E - R);
|
|
@@ -24745,9 +24745,9 @@ function UC() {
|
|
|
24745
24745
|
() => g ? g.documents.length : S.length,
|
|
24746
24746
|
[S, g]
|
|
24747
24747
|
), [h, b] = at(0);
|
|
24748
|
-
|
|
24748
|
+
dn(() => {
|
|
24749
24749
|
s.current && l.current && (l.current.style.height = `${s.current.clientHeight}px`, l.current.style.width = `${s.current.clientWidth}px`, l.current.style.top = s.current.getBoundingClientRect().top + "px", l.current.style.left = s.current.getBoundingClientRect().left + "px");
|
|
24750
|
-
}, [s]),
|
|
24750
|
+
}, [s]), dn(() => {
|
|
24751
24751
|
if (s.current && d.current) {
|
|
24752
24752
|
const T = s.current.clientHeight;
|
|
24753
24753
|
d.current.style.height = `${T - f}px`;
|
|
@@ -24759,7 +24759,7 @@ function UC() {
|
|
|
24759
24759
|
},
|
|
24760
24760
|
[x.length, b]
|
|
24761
24761
|
);
|
|
24762
|
-
return
|
|
24762
|
+
return dn(() => {
|
|
24763
24763
|
const T = (E) => {
|
|
24764
24764
|
E.key === "ArrowRight" ? R("next") : E.key === "ArrowLeft" && R("prev");
|
|
24765
24765
|
};
|
|
@@ -24835,7 +24835,7 @@ const kC = ({ file_data: s }) => {
|
|
|
24835
24835
|
}, [l, f]), x = Jt(() => p?.current && p.current.clientWidth <= 1180, [p]), C = Jt(() => {
|
|
24836
24836
|
S?.filePath && (window.open(S.filePath, "_blank"), d());
|
|
24837
24837
|
}, [S?.filePath, d]);
|
|
24838
|
-
|
|
24838
|
+
dn(() => {
|
|
24839
24839
|
S?.mimeType === Sr.PDF && x() && C();
|
|
24840
24840
|
}, [S?.mimeType, x, C]);
|
|
24841
24841
|
const h = (b) => {
|
|
@@ -24884,7 +24884,7 @@ const kC = ({ file_data: s }) => {
|
|
|
24884
24884
|
];
|
|
24885
24885
|
function YC({ isOpen: s, document: l, onClose: f, onSave: p }) {
|
|
24886
24886
|
const [S, g] = at(""), [d, x] = at(""), [C, h] = at(!1), [b, R] = at(""), [T, E] = at("");
|
|
24887
|
-
|
|
24887
|
+
dn(() => {
|
|
24888
24888
|
if (l) {
|
|
24889
24889
|
const P = l.label, j = P.lastIndexOf(".");
|
|
24890
24890
|
j !== -1 ? (R(P.substring(0, j)), E(P.substring(j))) : (R(P), E("")), g(l.reportType || Kf.REPORT_TYPE_UNSPECIFIED), x(new Date(l.createdAt).toISOString().split("T")[0]);
|
|
@@ -24981,7 +24981,7 @@ function IC({ isOpen: s, onClose: l, onCapture: f }) {
|
|
|
24981
24981
|
console.error("Error enumerating devices:", _);
|
|
24982
24982
|
}
|
|
24983
24983
|
};
|
|
24984
|
-
|
|
24984
|
+
dn(() => {
|
|
24985
24985
|
s && A();
|
|
24986
24986
|
}, [s]);
|
|
24987
24987
|
const y = async () => {
|
|
@@ -25003,7 +25003,7 @@ function IC({ isOpen: s, onClose: l, onCapture: f }) {
|
|
|
25003
25003
|
x(!1), console.log("startCamera finally block - isLoading set to false");
|
|
25004
25004
|
}
|
|
25005
25005
|
};
|
|
25006
|
-
|
|
25006
|
+
dn(() => {
|
|
25007
25007
|
j && p.current && T && (p.current.srcObject = j, p.current.play().catch((_) => {
|
|
25008
25008
|
console.error("Error playing video:", _);
|
|
25009
25009
|
}));
|
|
@@ -25056,7 +25056,7 @@ function IC({ isOpen: s, onClose: l, onCapture: f }) {
|
|
|
25056
25056
|
console.error("Error switching camera:", H), h("Failed to switch camera. Using default camera."), y();
|
|
25057
25057
|
}
|
|
25058
25058
|
};
|
|
25059
|
-
return
|
|
25059
|
+
return dn(() => (console.log("useEffect triggered with isOpen:", s), s ? (console.log("Calling startCamera from useEffect"), A(), y()) : (console.log("Calling stopCamera from useEffect"), M(), h(null)), () => {
|
|
25060
25060
|
console.log("useEffect cleanup - calling stopCamera"), M();
|
|
25061
25061
|
}), [s]), s ? /* @__PURE__ */ Q.jsx("div", { className: "hfl-fixed hfl-inset-0 hfl-bg-black hfl-bg-opacity-75 hfl-flex hfl-items-center hfl-justify-center hfl-z-50", children: /* @__PURE__ */ Q.jsxs("div", { className: "hfl-bg-white hfl-rounded-lg hfl-p-6 hfl-w-full hfl-max-w-2xl hfl-max-h-[90vh] hfl-overflow-hidden", children: [
|
|
25062
25062
|
/* @__PURE__ */ Q.jsxs("div", { className: "hfl-flex hfl-items-center hfl-justify-between hfl-mb-4", children: [
|
|
@@ -25132,9 +25132,9 @@ function WC({
|
|
|
25132
25132
|
query_type: d
|
|
25133
25133
|
}) {
|
|
25134
25134
|
const x = Gt(p), C = Gt(0), h = Gt(!1);
|
|
25135
|
-
|
|
25135
|
+
dn(() => {
|
|
25136
25136
|
x.current = p;
|
|
25137
|
-
}, [p]),
|
|
25137
|
+
}, [p]), dn(() => {
|
|
25138
25138
|
if (!s || !s.current) return;
|
|
25139
25139
|
console.log("Inside scroll event", f);
|
|
25140
25140
|
const b = s.current;
|
|
@@ -25186,17 +25186,17 @@ function SE(s) {
|
|
|
25186
25186
|
onError: (tt) => x?.(`Failed to fetch documents: ${tt.message}`)
|
|
25187
25187
|
}
|
|
25188
25188
|
);
|
|
25189
|
-
|
|
25189
|
+
dn(() => {
|
|
25190
25190
|
l.current && X.current && (X.current.style.height = `${l.current.clientHeight}px`);
|
|
25191
25191
|
}, [l]);
|
|
25192
25192
|
const Ze = async (tt) => {
|
|
25193
25193
|
Le(!0);
|
|
25194
25194
|
try {
|
|
25195
25195
|
const { validFiles: Yt, errors: vn } = P5(tt);
|
|
25196
|
-
if (vn.length > 0 && vn.forEach((
|
|
25197
|
-
const
|
|
25196
|
+
if (vn.length > 0 && vn.forEach((un) => x?.(un)), Yt.length > 0) {
|
|
25197
|
+
const un = await p({ files: Yt });
|
|
25198
25198
|
let De = !0;
|
|
25199
|
-
console.log("Upload response for a file1: ",
|
|
25199
|
+
console.log("Upload response for a file1: ", un.data), un.data.forEach((He) => {
|
|
25200
25200
|
console.log("Upload response for a file: ", He), He.success && He.data ? (console.log("Adding document: ", He.data), le(He.data)) : De = !1;
|
|
25201
25201
|
}), De || x?.("Failed to upload all files");
|
|
25202
25202
|
}
|
|
@@ -25231,9 +25231,7 @@ function SE(s) {
|
|
|
25231
25231
|
cursor: z,
|
|
25232
25232
|
setNextDate: pe,
|
|
25233
25233
|
query_type: Y
|
|
25234
|
-
}),
|
|
25235
|
-
console.log("Page", $);
|
|
25236
|
-
}, [$]), /* @__PURE__ */ Q.jsxs(
|
|
25234
|
+
}), /* @__PURE__ */ Q.jsxs(
|
|
25237
25235
|
x5.Provider,
|
|
25238
25236
|
{
|
|
25239
25237
|
value: {
|