@xras/ui 0.7.0-beta2 → 0.7.0-beta3
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/xras-ui.cjs +21 -21
- package/dist/xras-ui.js +150 -154
- package/package.json +1 -1
package/dist/xras-ui.js
CHANGED
|
@@ -707,17 +707,17 @@ function yz() {
|
|
|
707
707
|
)), q.push(Pt));
|
|
708
708
|
return 1;
|
|
709
709
|
}
|
|
710
|
-
var mn, gn, Vn = 0,
|
|
710
|
+
var mn, gn, Vn = 0, Zt = ye === "" ? ir : ye + Gn;
|
|
711
711
|
if (Rt(D))
|
|
712
712
|
for (var Es = 0; Es < D.length; Es++)
|
|
713
|
-
mn = D[Es], gn =
|
|
713
|
+
mn = D[Es], gn = Zt + An(mn, Es), Vn += ki(mn, q, pe, gn, Be);
|
|
714
714
|
else {
|
|
715
715
|
var mu = F(D);
|
|
716
716
|
if (typeof mu == "function") {
|
|
717
717
|
var Oc = D;
|
|
718
718
|
mu === Oc.entries && (hn || Le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), hn = !0);
|
|
719
719
|
for (var Dc = mu.call(Oc), Lo, kc = 0; !(Lo = Dc.next()).done; )
|
|
720
|
-
mn = Lo.value, gn =
|
|
720
|
+
mn = Lo.value, gn = Zt + An(mn, kc++), Vn += ki(mn, q, pe, gn, Be);
|
|
721
721
|
} else if (st === "object") {
|
|
722
722
|
var Mc = String(D);
|
|
723
723
|
throw new Error("Objects are not valid as a React child (found: " + (Mc === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : Mc) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -1139,29 +1139,29 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1139
1139
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1140
1140
|
try {
|
|
1141
1141
|
Reflect.construct(Qe, []);
|
|
1142
|
-
} catch (
|
|
1143
|
-
ye =
|
|
1142
|
+
} catch (Zt) {
|
|
1143
|
+
ye = Zt;
|
|
1144
1144
|
}
|
|
1145
1145
|
Reflect.construct(D, [], Qe);
|
|
1146
1146
|
} else {
|
|
1147
1147
|
try {
|
|
1148
1148
|
Qe.call();
|
|
1149
|
-
} catch (
|
|
1150
|
-
ye =
|
|
1149
|
+
} catch (Zt) {
|
|
1150
|
+
ye = Zt;
|
|
1151
1151
|
}
|
|
1152
1152
|
D.call(Qe.prototype);
|
|
1153
1153
|
}
|
|
1154
1154
|
} else {
|
|
1155
1155
|
try {
|
|
1156
1156
|
throw Error();
|
|
1157
|
-
} catch (
|
|
1158
|
-
ye =
|
|
1157
|
+
} catch (Zt) {
|
|
1158
|
+
ye = Zt;
|
|
1159
1159
|
}
|
|
1160
1160
|
D();
|
|
1161
1161
|
}
|
|
1162
|
-
} catch (
|
|
1163
|
-
if (
|
|
1164
|
-
for (var Tt =
|
|
1162
|
+
} catch (Zt) {
|
|
1163
|
+
if (Zt && ye && typeof Zt.stack == "string") {
|
|
1164
|
+
for (var Tt = Zt.stack.split(`
|
|
1165
1165
|
`), Pt = ye.stack.split(`
|
|
1166
1166
|
`), fn = Tt.length - 1, vn = Pt.length - 1; fn >= 1 && vn >= 0 && Tt[fn] !== Pt[vn]; )
|
|
1167
1167
|
vn--;
|
|
@@ -1247,7 +1247,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Yt(D) {
|
|
1251
1251
|
if (D) {
|
|
1252
1252
|
var q = D._owner, pe = Ht(D.type, D._source, q ? q.type : null);
|
|
1253
1253
|
ie(pe);
|
|
@@ -1296,7 +1296,7 @@ Check the top-level render call using <` + pe + ">.");
|
|
|
1296
1296
|
if (!Wn[pe]) {
|
|
1297
1297
|
Wn[pe] = !0;
|
|
1298
1298
|
var ye = "";
|
|
1299
|
-
D && D._owner && D._owner !== X.current && (ye = " It was passed a child from " + xn(D._owner.type) + "."),
|
|
1299
|
+
D && D._owner && D._owner !== X.current && (ye = " It was passed a child from " + xn(D._owner.type) + "."), Yt(D), re('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', pe, ye), Yt(null);
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
@@ -1347,11 +1347,11 @@ Check the top-level render call using <` + pe + ">.");
|
|
|
1347
1347
|
for (var q = Object.keys(D.props), pe = 0; pe < q.length; pe++) {
|
|
1348
1348
|
var ye = q[pe];
|
|
1349
1349
|
if (ye !== "children" && ye !== "key") {
|
|
1350
|
-
|
|
1350
|
+
Yt(D), re("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ye), Yt(null);
|
|
1351
1351
|
break;
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
D.ref !== null && (
|
|
1354
|
+
D.ref !== null && (Yt(D), re("Invalid attribute `ref` supplied to `React.Fragment`."), Yt(null));
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
1357
|
function Ac(D, q, pe) {
|
|
@@ -1437,10 +1437,10 @@ Check the top-level render call using <` + pe + ">.");
|
|
|
1437
1437
|
if (ye !== null && typeof ye == "object" && typeof ye.then == "function") {
|
|
1438
1438
|
var st = ye, Qe = !1, Tt = {
|
|
1439
1439
|
then: function(gn, Vn) {
|
|
1440
|
-
Qe = !0, st.then(function(
|
|
1441
|
-
ko(q), li === 0 ? pu(
|
|
1442
|
-
}, function(
|
|
1443
|
-
ko(q), Vn(
|
|
1440
|
+
Qe = !0, st.then(function(Zt) {
|
|
1441
|
+
ko(q), li === 0 ? pu(Zt, gn, Vn) : gn(Zt);
|
|
1442
|
+
}, function(Zt) {
|
|
1443
|
+
ko(q), Vn(Zt);
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
@@ -3614,7 +3614,7 @@ function wz() {
|
|
|
3614
3614
|
function Nc(a) {
|
|
3615
3615
|
return a &= -a, 1 < a ? 4 < a ? a & 268435455 ? 16 : 536870912 : 4 : 1;
|
|
3616
3616
|
}
|
|
3617
|
-
var uu, Cs, Ic,
|
|
3617
|
+
var uu, Cs, Ic, Yt, cu, dl = !1, It = [], Pi = null, Wn = null, Sa = null, si = /* @__PURE__ */ new Map(), xs = /* @__PURE__ */ new Map(), Fn = [], Xn = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
|
|
3618
3618
|
function Ac(a, o) {
|
|
3619
3619
|
switch (a) {
|
|
3620
3620
|
case "focusin":
|
|
@@ -3911,7 +3911,7 @@ function wz() {
|
|
|
3911
3911
|
return "movementX" in a ? a.movementX : (a !== gn && (gn && a.type === "mousemove" ? (vn = a.screenX - gn.screenX, mn = a.screenY - gn.screenY) : mn = vn = 0, gn = a), vn);
|
|
3912
3912
|
}, movementY: function(a) {
|
|
3913
3913
|
return "movementY" in a ? a.movementY : mn;
|
|
3914
|
-
} }),
|
|
3914
|
+
} }), Zt = st(Vn), Es = G({}, Vn, { dataTransfer: 0 }), mu = st(Es), Oc = G({}, Pt, { relatedTarget: 0 }), Dc = st(Oc), Lo = G({}, Qe, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), kc = st(Lo), Mc = G({}, Qe, { clipboardData: function(a) {
|
|
3915
3915
|
return "clipboardData" in a ? a.clipboardData : window.clipboardData;
|
|
3916
3916
|
} }), oh = st(Mc), rC = G({}, Qe, { data: 0 }), $m = st(rC), Hm = {
|
|
3917
3917
|
Esc: "Escape",
|
|
@@ -4356,7 +4356,7 @@ function wz() {
|
|
|
4356
4356
|
case "mouseout":
|
|
4357
4357
|
case "mouseover":
|
|
4358
4358
|
case "contextmenu":
|
|
4359
|
-
qe =
|
|
4359
|
+
qe = Zt;
|
|
4360
4360
|
break;
|
|
4361
4361
|
case "drag":
|
|
4362
4362
|
case "dragend":
|
|
@@ -4420,7 +4420,7 @@ function wz() {
|
|
|
4420
4420
|
if (De = a === "mouseover" || a === "pointerover", qe = a === "mouseout" || a === "pointerout", De && f !== Gn && (rt = f.relatedTarget || f.fromElement) && (Ho(rt) || rt[zi]))
|
|
4421
4421
|
break e;
|
|
4422
4422
|
if ((qe || De) && (De = Me.window === Me ? Me : (De = Me.ownerDocument) ? De.defaultView || De.parentWindow : window, qe ? (rt = f.relatedTarget || f.toElement, qe = me, rt = rt ? Ho(rt) : null, rt !== null && (dr = Ye(rt), rt !== dr || rt.tag !== 5 && rt.tag !== 6) && (rt = null)) : (qe = null, rt = me), qe !== rt)) {
|
|
4423
|
-
if (lt =
|
|
4423
|
+
if (lt = Zt, ze = "onMouseLeave", ae = "onMouseEnter", ee = "mouse", (a === "pointerout" || a === "pointerover") && (lt = nf, ze = "onPointerLeave", ae = "onPointerEnter", ee = "pointer"), dr = qe == null ? De : xu(qe), le = rt == null ? De : xu(rt), De = new lt(ze, ee + "leave", qe, f, Me), De.target = dr, De.relatedTarget = le, ze = null, Ho(Me) === me && (lt = new lt(ae, ee + "enter", rt, f, Me), lt.target = le, lt.relatedTarget = dr, ze = lt), dr = ze, qe && rt)
|
|
4424
4424
|
t: {
|
|
4425
4425
|
for (lt = qe, ae = rt, ee = 0, le = lt; le; le = ml(le))
|
|
4426
4426
|
ee++;
|
|
@@ -8109,7 +8109,7 @@ Error generating stack: ` + T.message + `
|
|
|
8109
8109
|
}
|
|
8110
8110
|
Cd.prototype.unstable_scheduleHydration = function(a) {
|
|
8111
8111
|
if (a) {
|
|
8112
|
-
var o =
|
|
8112
|
+
var o = Yt();
|
|
8113
8113
|
a = { blockedOn: null, target: a, priority: o };
|
|
8114
8114
|
for (var f = 0; f < Fn.length && o !== 0 && o < Fn[f].priority; f++)
|
|
8115
8115
|
;
|
|
@@ -8202,7 +8202,7 @@ Error generating stack: ` + T.message + `
|
|
|
8202
8202
|
}
|
|
8203
8203
|
av(a, o);
|
|
8204
8204
|
}
|
|
8205
|
-
},
|
|
8205
|
+
}, Yt = function() {
|
|
8206
8206
|
return Ht;
|
|
8207
8207
|
}, cu = function(a, o) {
|
|
8208
8208
|
var f = Ht;
|
|
@@ -9129,7 +9129,7 @@ Error generating stack: ` + c.message + `
|
|
|
9129
9129
|
function Ic(e) {
|
|
9130
9130
|
return e.displayName || "Context";
|
|
9131
9131
|
}
|
|
9132
|
-
function
|
|
9132
|
+
function Yt(e) {
|
|
9133
9133
|
if (e == null)
|
|
9134
9134
|
return null;
|
|
9135
9135
|
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -9162,11 +9162,11 @@ Error generating stack: ` + c.message + `
|
|
|
9162
9162
|
return Cs(e, e.render, "ForwardRef");
|
|
9163
9163
|
case kt:
|
|
9164
9164
|
var c = e.displayName || null;
|
|
9165
|
-
return c !== null ? c :
|
|
9165
|
+
return c !== null ? c : Yt(e.type) || "Memo";
|
|
9166
9166
|
case vt: {
|
|
9167
9167
|
var p = e, b = p._payload, E = p._init;
|
|
9168
9168
|
try {
|
|
9169
|
-
return
|
|
9169
|
+
return Yt(E(b));
|
|
9170
9170
|
} catch {
|
|
9171
9171
|
return null;
|
|
9172
9172
|
}
|
|
@@ -9207,7 +9207,7 @@ Error generating stack: ` + c.message + `
|
|
|
9207
9207
|
case _:
|
|
9208
9208
|
return "Text";
|
|
9209
9209
|
case ue:
|
|
9210
|
-
return
|
|
9210
|
+
return Yt(s);
|
|
9211
9211
|
case L:
|
|
9212
9212
|
return s === Ao ? "StrictMode" : "Mode";
|
|
9213
9213
|
case Ee:
|
|
@@ -9448,7 +9448,7 @@ Error generating stack: ` + c.message + `
|
|
|
9448
9448
|
n.value != null && e.setAttribute("value", Ea(Fi(n.value)));
|
|
9449
9449
|
}
|
|
9450
9450
|
var Vn = Array.isArray;
|
|
9451
|
-
function
|
|
9451
|
+
function Zt(e) {
|
|
9452
9452
|
return Vn(e);
|
|
9453
9453
|
}
|
|
9454
9454
|
var Es;
|
|
@@ -9466,7 +9466,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
9466
9466
|
for (var n = 0; n < Oc.length; n++) {
|
|
9467
9467
|
var s = Oc[n];
|
|
9468
9468
|
if (e[s] != null) {
|
|
9469
|
-
var c =
|
|
9469
|
+
var c = Zt(e[s]);
|
|
9470
9470
|
e.multiple && !c ? h("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", s, mu()) : !e.multiple && c && h("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", s, mu());
|
|
9471
9471
|
}
|
|
9472
9472
|
}
|
|
@@ -9542,7 +9542,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
9542
9542
|
{
|
|
9543
9543
|
if (b != null)
|
|
9544
9544
|
throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
|
|
9545
|
-
if (
|
|
9545
|
+
if (Zt(p)) {
|
|
9546
9546
|
if (p.length > 1)
|
|
9547
9547
|
throw new Error("<textarea> can only have at most one child.");
|
|
9548
9548
|
p = p[0];
|
|
@@ -15157,7 +15157,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
15157
15157
|
}
|
|
15158
15158
|
}, fT = function(e, n) {
|
|
15159
15159
|
if (n === void 0) {
|
|
15160
|
-
var s =
|
|
15160
|
+
var s = Yt(e) || "Component";
|
|
15161
15161
|
kx.has(s) || (kx.add(s), h("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", s));
|
|
15162
15162
|
}
|
|
15163
15163
|
}, Object.defineProperty(Ix, "_processChildContext", {
|
|
@@ -15220,7 +15220,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
15220
15220
|
kn(!1);
|
|
15221
15221
|
}
|
|
15222
15222
|
}
|
|
15223
|
-
O === void 0 && h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
|
15223
|
+
O === void 0 && h("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", Yt(n) || "Component");
|
|
15224
15224
|
}
|
|
15225
15225
|
return O;
|
|
15226
15226
|
}
|
|
@@ -15229,12 +15229,12 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
15229
15229
|
function qP(e, n, s) {
|
|
15230
15230
|
var c = e.stateNode;
|
|
15231
15231
|
{
|
|
15232
|
-
var p =
|
|
15233
|
-
b || (n.prototype && typeof n.prototype.render == "function" ? h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", p) : h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", p)), c.getInitialState && !c.getInitialState.isReactClassApproved && !c.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?", p), c.getDefaultProps && !c.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.", p), c.propTypes && h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", p), c.contextType && h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", p), c.contextTypes && h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", p), n.contextType && n.contextTypes && !Lx.has(n) && (Lx.add(n), h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", p)), typeof c.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.", p), n.prototype && n.prototype.isPureReactComponent && typeof c.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.",
|
|
15232
|
+
var p = Yt(n) || "Component", b = c.render;
|
|
15233
|
+
b || (n.prototype && typeof n.prototype.render == "function" ? h("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", p) : h("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", p)), c.getInitialState && !c.getInitialState.isReactClassApproved && !c.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?", p), c.getDefaultProps && !c.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.", p), c.propTypes && h("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", p), c.contextType && h("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", p), c.contextTypes && h("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", p), n.contextType && n.contextTypes && !Lx.has(n) && (Lx.add(n), h("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", p)), typeof c.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.", p), n.prototype && n.prototype.isPureReactComponent && typeof c.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.", Yt(n) || "A pure component"), typeof c.componentDidUnmount == "function" && h("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", p), typeof c.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().", p), typeof c.componentWillRecieveProps == "function" && h("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", p), typeof c.UNSAFE_componentWillRecieveProps == "function" && h("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", p);
|
|
15234
15234
|
var E = c.props !== s;
|
|
15235
|
-
c.props !== void 0 && E && h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", p, p), c.defaultProps && h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", p, p), typeof c.getSnapshotBeforeUpdate == "function" && typeof c.componentDidUpdate != "function" && !Ox.has(n) && (Ox.add(n), h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
|
|
15235
|
+
c.props !== void 0 && E && h("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", p, p), c.defaultProps && h("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", p, p), typeof c.getSnapshotBeforeUpdate == "function" && typeof c.componentDidUpdate != "function" && !Ox.has(n) && (Ox.add(n), h("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", Yt(n))), typeof c.getDerivedStateFromProps == "function" && h("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", p), typeof c.getDerivedStateFromError == "function" && h("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", p), typeof n.getSnapshotBeforeUpdate == "function" && h("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", p);
|
|
15236
15236
|
var N = c.state;
|
|
15237
|
-
N && (typeof N != "object" ||
|
|
15237
|
+
N && (typeof N != "object" || Zt(N)) && h("%s.state: must be set to an object or null", p), typeof c.getChildContext == "function" && typeof n.childContextTypes != "object" && h("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", p);
|
|
15238
15238
|
}
|
|
15239
15239
|
}
|
|
15240
15240
|
function vT(e, n) {
|
|
@@ -15250,7 +15250,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
15250
15250
|
if (!N && !Px.has(n)) {
|
|
15251
15251
|
Px.add(n);
|
|
15252
15252
|
var O = "";
|
|
15253
|
-
E === void 0 ? O = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof E != "object" ? O = " However, it is set to a " + typeof E + "." : E.$$typeof === ke ? O = " Did you accidentally pass the Context.Provider instead?" : E._context !== void 0 ? O = " Did you accidentally pass the Context.Consumer instead?" : O = " However, it is set to an object with keys {" + Object.keys(E).join(", ") + "}.", h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
|
|
15253
|
+
E === void 0 ? O = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof E != "object" ? O = " However, it is set to a " + typeof E + "." : E.$$typeof === ke ? O = " Did you accidentally pass the Context.Provider instead?" : E._context !== void 0 ? O = " Did you accidentally pass the Context.Consumer instead?" : O = " However, it is set to an object with keys {" + Object.keys(E).join(", ") + "}.", h("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", Yt(n) || "Component", O);
|
|
15254
15254
|
}
|
|
15255
15255
|
}
|
|
15256
15256
|
if (typeof E == "object" && E !== null)
|
|
@@ -15273,13 +15273,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
15273
15273
|
vT(e, U);
|
|
15274
15274
|
{
|
|
15275
15275
|
if (typeof n.getDerivedStateFromProps == "function" && te === null) {
|
|
15276
|
-
var K =
|
|
15276
|
+
var K = Yt(n) || "Component";
|
|
15277
15277
|
jx.has(K) || (jx.add(K), h("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", K, U.state === null ? "null" : "undefined", K));
|
|
15278
15278
|
}
|
|
15279
15279
|
if (typeof n.getDerivedStateFromProps == "function" || typeof U.getSnapshotBeforeUpdate == "function") {
|
|
15280
15280
|
var he = null, ve = null, xe = null;
|
|
15281
15281
|
if (typeof U.componentWillMount == "function" && U.componentWillMount.__suppressDeprecationWarning !== !0 ? he = "componentWillMount" : typeof U.UNSAFE_componentWillMount == "function" && (he = "UNSAFE_componentWillMount"), typeof U.componentWillReceiveProps == "function" && U.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? ve = "componentWillReceiveProps" : typeof U.UNSAFE_componentWillReceiveProps == "function" && (ve = "UNSAFE_componentWillReceiveProps"), typeof U.componentWillUpdate == "function" && U.componentWillUpdate.__suppressDeprecationWarning !== !0 ? xe = "componentWillUpdate" : typeof U.UNSAFE_componentWillUpdate == "function" && (xe = "UNSAFE_componentWillUpdate"), he !== null || ve !== null || xe !== null) {
|
|
15282
|
-
var Ke =
|
|
15282
|
+
var Ke = Yt(n) || "Component", yt = typeof n.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
15283
15283
|
Dx.has(Ke) || (Dx.add(Ke), h(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
15284
15284
|
|
|
15285
15285
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
@@ -15321,7 +15321,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Ke, yt, he !== null ? `
|
|
|
15321
15321
|
}
|
|
15322
15322
|
{
|
|
15323
15323
|
if (p.state === s) {
|
|
15324
|
-
var N =
|
|
15324
|
+
var N = Yt(n) || "Component";
|
|
15325
15325
|
Mx.has(N) || (Mx.add(N), 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.", N));
|
|
15326
15326
|
}
|
|
15327
15327
|
e.mode & er && Ko.recordLegacyContextWarning(e, p), Ko.recordUnsafeLifecycleWarnings(e, p);
|
|
@@ -15563,7 +15563,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15563
15563
|
return te(oe, Ot(Nt), se);
|
|
15564
15564
|
}
|
|
15565
15565
|
}
|
|
15566
|
-
if (
|
|
15566
|
+
if (Zt(Se) || eo(Se)) {
|
|
15567
15567
|
var En = fc(Se, oe.mode, se, null);
|
|
15568
15568
|
return En.return = oe, En;
|
|
15569
15569
|
}
|
|
@@ -15586,7 +15586,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15586
15586
|
return K(oe, Se, Nt(Ze), Fe);
|
|
15587
15587
|
}
|
|
15588
15588
|
}
|
|
15589
|
-
if (
|
|
15589
|
+
if (Zt(se) || eo(se))
|
|
15590
15590
|
return et !== null ? null : U(oe, Se, se, Fe, null);
|
|
15591
15591
|
By(oe, se);
|
|
15592
15592
|
}
|
|
@@ -15611,7 +15611,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15611
15611
|
var En = Fe._payload, an = Fe._init;
|
|
15612
15612
|
return he(oe, Se, se, an(En), et);
|
|
15613
15613
|
}
|
|
15614
|
-
if (
|
|
15614
|
+
if (Zt(Fe) || eo(Fe)) {
|
|
15615
15615
|
var wr = oe.get(se) || null;
|
|
15616
15616
|
return U(Se, wr, Fe, et, null);
|
|
15617
15617
|
}
|
|
@@ -15822,7 +15822,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15822
15822
|
var Ze = se._payload, Nt = se._init;
|
|
15823
15823
|
return $t(oe, Se, Nt(Ze), Fe);
|
|
15824
15824
|
}
|
|
15825
|
-
if (
|
|
15825
|
+
if (Zt(se))
|
|
15826
15826
|
return xe(oe, Se, se, Fe);
|
|
15827
15827
|
if (eo(se))
|
|
15828
15828
|
return Ke(oe, Se, se, Fe);
|
|
@@ -15973,7 +15973,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15973
15973
|
}
|
|
15974
15974
|
}
|
|
15975
15975
|
function wp(e) {
|
|
15976
|
-
e != null && !
|
|
15976
|
+
e != null && !Zt(e) && h("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", Te, typeof e);
|
|
15977
15977
|
}
|
|
15978
15978
|
function lF(e) {
|
|
15979
15979
|
{
|
|
@@ -17405,7 +17405,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17405
17405
|
c,
|
|
17406
17406
|
// Resolved props
|
|
17407
17407
|
"prop",
|
|
17408
|
-
|
|
17408
|
+
Yt(s)
|
|
17409
17409
|
);
|
|
17410
17410
|
}
|
|
17411
17411
|
var E = s.render, N = n.ref, O, V;
|
|
@@ -17438,7 +17438,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17438
17438
|
c,
|
|
17439
17439
|
// Resolved props
|
|
17440
17440
|
"prop",
|
|
17441
|
-
|
|
17441
|
+
Yt(b)
|
|
17442
17442
|
);
|
|
17443
17443
|
}
|
|
17444
17444
|
var O = mE(s.type, null, c, n, n.mode, p);
|
|
@@ -17451,7 +17451,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17451
17451
|
c,
|
|
17452
17452
|
// Resolved props
|
|
17453
17453
|
"prop",
|
|
17454
|
-
|
|
17454
|
+
Yt(V)
|
|
17455
17455
|
);
|
|
17456
17456
|
}
|
|
17457
17457
|
var te = e.child, K = BS(e, p);
|
|
@@ -17480,7 +17480,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17480
17480
|
c,
|
|
17481
17481
|
// Resolved (SimpleMemoComponent has no defaultProps)
|
|
17482
17482
|
"prop",
|
|
17483
|
-
|
|
17483
|
+
Yt(b)
|
|
17484
17484
|
);
|
|
17485
17485
|
}
|
|
17486
17486
|
}
|
|
@@ -17566,7 +17566,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17566
17566
|
c,
|
|
17567
17567
|
// Resolved props
|
|
17568
17568
|
"prop",
|
|
17569
|
-
|
|
17569
|
+
Yt(s)
|
|
17570
17570
|
);
|
|
17571
17571
|
}
|
|
17572
17572
|
var E;
|
|
@@ -17613,7 +17613,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17613
17613
|
c,
|
|
17614
17614
|
// Resolved props
|
|
17615
17615
|
"prop",
|
|
17616
|
-
|
|
17616
|
+
Yt(s)
|
|
17617
17617
|
);
|
|
17618
17618
|
}
|
|
17619
17619
|
}
|
|
@@ -17726,7 +17726,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17726
17726
|
U,
|
|
17727
17727
|
// Resolved for outer only
|
|
17728
17728
|
"prop",
|
|
17729
|
-
|
|
17729
|
+
Yt(O)
|
|
17730
17730
|
);
|
|
17731
17731
|
}
|
|
17732
17732
|
return te = i_(
|
|
@@ -17759,13 +17759,13 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17759
17759
|
Ru(n);
|
|
17760
17760
|
{
|
|
17761
17761
|
if (s.prototype && typeof s.prototype.render == "function") {
|
|
17762
|
-
var V =
|
|
17762
|
+
var V = Yt(s) || "Unknown";
|
|
17763
17763
|
_S[V] || (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.", V, V), _S[V] = !0);
|
|
17764
17764
|
}
|
|
17765
17765
|
n.mode & er && Ko.recordLegacyContextWarning(n, null), Lr(!0), Pv.current = n, N = Rp(null, n, s, p, b, c), O = Tp(), Lr(!1);
|
|
17766
17766
|
}
|
|
17767
17767
|
if (xl(), n.flags |= $i, typeof N == "object" && N !== null && typeof N.render == "function" && N.$$typeof === void 0) {
|
|
17768
|
-
var U =
|
|
17768
|
+
var U = Yt(s) || "Unknown";
|
|
17769
17769
|
Fv[U] || (h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", U, U, U), Fv[U] = !0);
|
|
17770
17770
|
}
|
|
17771
17771
|
if (
|
|
@@ -17774,7 +17774,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17774
17774
|
typeof N == "object" && N !== null && typeof N.render == "function" && N.$$typeof === void 0
|
|
17775
17775
|
) {
|
|
17776
17776
|
{
|
|
17777
|
-
var te =
|
|
17777
|
+
var te = Yt(s) || "Unknown";
|
|
17778
17778
|
Fv[te] || (h("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", te, te, te), Fv[te] = !0);
|
|
17779
17779
|
}
|
|
17780
17780
|
n.tag = x, n.memoizedState = null, n.updateQueue = null;
|
|
@@ -17803,11 +17803,11 @@ Check the render method of \`` + c + "`.");
|
|
|
17803
17803
|
b && (p = b.fileName + ":" + b.lineNumber), AS[p] || (AS[p] = !0, h("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", s));
|
|
17804
17804
|
}
|
|
17805
17805
|
if (typeof n.getDerivedStateFromProps == "function") {
|
|
17806
|
-
var E =
|
|
17806
|
+
var E = Yt(n) || "Unknown";
|
|
17807
17807
|
IS[E] || (h("%s: Function components do not support getDerivedStateFromProps.", E), IS[E] = !0);
|
|
17808
17808
|
}
|
|
17809
17809
|
if (typeof n.contextType == "object" && n.contextType !== null) {
|
|
17810
|
-
var N =
|
|
17810
|
+
var N = Yt(n) || "Unknown";
|
|
17811
17811
|
NS[N] || (h("%s: Function components do not support contextType.", N), NS[N] = !0);
|
|
17812
17812
|
}
|
|
17813
17813
|
}
|
|
@@ -18065,7 +18065,7 @@ Check the render method of \`` + c + "`.");
|
|
|
18065
18065
|
}
|
|
18066
18066
|
function v_(e, n) {
|
|
18067
18067
|
{
|
|
18068
|
-
var s =
|
|
18068
|
+
var s = Zt(e), c = !s && typeof eo(e) == "function";
|
|
18069
18069
|
if (s || c) {
|
|
18070
18070
|
var p = s ? "array" : "iterable";
|
|
18071
18071
|
return h("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", p, n, p), !1;
|
|
@@ -18075,7 +18075,7 @@ Check the render method of \`` + c + "`.");
|
|
|
18075
18075
|
}
|
|
18076
18076
|
function WF(e, n) {
|
|
18077
18077
|
if ((n === "forwards" || n === "backwards") && e !== void 0 && e !== null && e !== !1)
|
|
18078
|
-
if (
|
|
18078
|
+
if (Zt(e)) {
|
|
18079
18079
|
for (var s = 0; s < e.length; s++)
|
|
18080
18080
|
if (!v_(e[s], s))
|
|
18081
18081
|
return;
|
|
@@ -18370,7 +18370,7 @@ Check the render method of \`` + c + "`.");
|
|
|
18370
18370
|
$t,
|
|
18371
18371
|
// Resolved for outer only
|
|
18372
18372
|
"prop",
|
|
18373
|
-
|
|
18373
|
+
Yt(pt)
|
|
18374
18374
|
);
|
|
18375
18375
|
}
|
|
18376
18376
|
return $t = es(pt.type, $t), i_(e, n, pt, $t, s);
|
|
@@ -21297,15 +21297,15 @@ Check the render method of %s.`, It(Wn) || "Unknown"));
|
|
|
21297
21297
|
var EN = null, wN = null, RN = null, TN = null, _N = null, NN = null, IN = null, AN = null, jN = null;
|
|
21298
21298
|
{
|
|
21299
21299
|
var ON = function(e, n, s) {
|
|
21300
|
-
var c = n[s], p =
|
|
21301
|
-
return s + 1 === n.length ? (
|
|
21300
|
+
var c = n[s], p = Zt(e) ? e.slice() : Lt({}, e);
|
|
21301
|
+
return s + 1 === n.length ? (Zt(p) ? p.splice(c, 1) : delete p[c], p) : (p[c] = ON(e[c], n, s + 1), p);
|
|
21302
21302
|
}, DN = function(e, n) {
|
|
21303
21303
|
return ON(e, n, 0);
|
|
21304
21304
|
}, kN = function(e, n, s, c) {
|
|
21305
|
-
var p = n[c], b =
|
|
21305
|
+
var p = n[c], b = Zt(e) ? e.slice() : Lt({}, e);
|
|
21306
21306
|
if (c + 1 === n.length) {
|
|
21307
21307
|
var E = s[c];
|
|
21308
|
-
b[E] = b[p],
|
|
21308
|
+
b[E] = b[p], Zt(b) ? b.splice(p, 1) : delete b[p];
|
|
21309
21309
|
} else
|
|
21310
21310
|
b[p] = kN(
|
|
21311
21311
|
// $FlowFixMe number or string is fine here
|
|
@@ -21329,7 +21329,7 @@ Check the render method of %s.`, It(Wn) || "Unknown"));
|
|
|
21329
21329
|
}, LN = function(e, n, s, c) {
|
|
21330
21330
|
if (s >= n.length)
|
|
21331
21331
|
return c;
|
|
21332
|
-
var p = n[s], b =
|
|
21332
|
+
var p = n[s], b = Zt(e) ? e.slice() : Lt({}, e);
|
|
21333
21333
|
return b[p] = LN(e[p], n, s + 1, c), b;
|
|
21334
21334
|
}, PN = function(e, n, s) {
|
|
21335
21335
|
return LN(e, n, 0, s);
|
|
@@ -21598,7 +21598,7 @@ Check the render method of %s.`, It(Wn) || "Unknown"));
|
|
|
21598
21598
|
var n = QB.current;
|
|
21599
21599
|
if (n !== null && n.stateNode !== null) {
|
|
21600
21600
|
var s = n.stateNode._warnedAboutRefsInRender;
|
|
21601
|
-
s || h("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",
|
|
21601
|
+
s || h("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", Yt(n.type) || "A component"), n.stateNode._warnedAboutRefsInRender = !0;
|
|
21602
21602
|
}
|
|
21603
21603
|
}
|
|
21604
21604
|
return e == null ? null : e.nodeType === wa ? e : VB(e, "findDOMNode");
|
|
@@ -23686,7 +23686,7 @@ function X$() {
|
|
|
23686
23686
|
}
|
|
23687
23687
|
var Y$ = {};
|
|
23688
23688
|
Y$.NODE_ENV === "production" ? bw.exports = W$() : bw.exports = X$();
|
|
23689
|
-
var Z$ = bw.exports, ds = {},
|
|
23689
|
+
var Z$ = bw.exports, ds = {}, qt = (
|
|
23690
23690
|
// prettier-ignore
|
|
23691
23691
|
// @ts-ignore
|
|
23692
23692
|
"default" in v0 ? pr : v0
|
|
@@ -23695,20 +23695,20 @@ var Z$ = bw.exports, ds = {}, Jt = (
|
|
|
23695
23695
|
{}
|
|
23696
23696
|
);
|
|
23697
23697
|
function q$() {
|
|
23698
|
-
if (!
|
|
23698
|
+
if (!qt.createContext)
|
|
23699
23699
|
return {};
|
|
23700
23700
|
const t = vI[hI] ?? (vI[hI] = /* @__PURE__ */ new Map());
|
|
23701
|
-
let r = t.get(
|
|
23702
|
-
return r || (r =
|
|
23701
|
+
let r = t.get(qt.createContext);
|
|
23702
|
+
return r || (r = qt.createContext(
|
|
23703
23703
|
null
|
|
23704
|
-
), ds.NODE_ENV !== "production" && (r.displayName = "ReactRedux"), t.set(
|
|
23704
|
+
), ds.NODE_ENV !== "production" && (r.displayName = "ReactRedux"), t.set(qt.createContext, r)), r;
|
|
23705
23705
|
}
|
|
23706
23706
|
var ru = /* @__PURE__ */ q$(), Mj = () => {
|
|
23707
23707
|
throw new Error("uSES not initialized!");
|
|
23708
23708
|
};
|
|
23709
23709
|
function lR(t = ru) {
|
|
23710
23710
|
return function() {
|
|
23711
|
-
const i =
|
|
23711
|
+
const i = qt.useContext(t);
|
|
23712
23712
|
if (ds.NODE_ENV !== "production" && !i)
|
|
23713
23713
|
throw new Error(
|
|
23714
23714
|
"could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
|
|
@@ -23738,7 +23738,7 @@ function K$(t = ru) {
|
|
|
23738
23738
|
getServerState: C,
|
|
23739
23739
|
stabilityCheck: x,
|
|
23740
23740
|
identityFunctionCheck: w
|
|
23741
|
-
} = r(), R =
|
|
23741
|
+
} = r(), R = qt.useRef(!0), j = qt.useCallback(
|
|
23742
23742
|
{
|
|
23743
23743
|
[l.name](_) {
|
|
23744
23744
|
const A = l(_);
|
|
@@ -23798,7 +23798,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
|
|
|
23798
23798
|
j,
|
|
23799
23799
|
d
|
|
23800
23800
|
);
|
|
23801
|
-
return
|
|
23801
|
+
return qt.useDebugValue(I), I;
|
|
23802
23802
|
};
|
|
23803
23803
|
return Object.assign(i, {
|
|
23804
23804
|
withTypes: () => i
|
|
@@ -24083,7 +24083,7 @@ function Yj(t, r) {
|
|
|
24083
24083
|
};
|
|
24084
24084
|
return I;
|
|
24085
24085
|
}
|
|
24086
|
-
var SH = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", m0 = SH ?
|
|
24086
|
+
var SH = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", m0 = SH ? qt.useLayoutEffect : qt.useEffect;
|
|
24087
24087
|
function yI(t, r) {
|
|
24088
24088
|
return t === r ? t !== 0 || r !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
24089
24089
|
}
|
|
@@ -24247,15 +24247,15 @@ function FH(t, r, i, {
|
|
|
24247
24247
|
areMergedPropsEqual: h
|
|
24248
24248
|
};
|
|
24249
24249
|
function H(X) {
|
|
24250
|
-
const [Z, ue, ie] =
|
|
24250
|
+
const [Z, ue, ie] = qt.useMemo(() => {
|
|
24251
24251
|
const { reactReduxForwardedRef: ot, ...Ae } = X;
|
|
24252
24252
|
return [X.context, ot, Ae];
|
|
24253
|
-
}, [X]), ge =
|
|
24253
|
+
}, [X]), ge = qt.useMemo(() => {
|
|
24254
24254
|
let ot = x;
|
|
24255
24255
|
if (Z != null && Z.Consumer && ds.NODE_ENV !== "production") {
|
|
24256
24256
|
if (!/* @__PURE__ */ lH(
|
|
24257
24257
|
// @ts-ignore
|
|
24258
|
-
/* @__PURE__ */
|
|
24258
|
+
/* @__PURE__ */ qt.createElement(Z.Consumer, null)
|
|
24259
24259
|
))
|
|
24260
24260
|
throw new Error(
|
|
24261
24261
|
"You must pass a valid React context consumer as `props.context`"
|
|
@@ -24263,12 +24263,12 @@ function FH(t, r, i, {
|
|
|
24263
24263
|
ot = Z;
|
|
24264
24264
|
}
|
|
24265
24265
|
return ot;
|
|
24266
|
-
}, [Z, x]), de =
|
|
24266
|
+
}, [Z, x]), de = qt.useContext(ge), _e = !!X.store && !!X.store.getState && !!X.store.dispatch, Ee = !!de && !!de.store;
|
|
24267
24267
|
if (ds.NODE_ENV !== "production" && !_e && !Ee)
|
|
24268
24268
|
throw new Error(
|
|
24269
24269
|
`Could not find "store" in the context of "${P}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${P} in connect options.`
|
|
24270
24270
|
);
|
|
24271
|
-
const Ce = _e ? X.store : de.store, je = Ee ? de.getServerState : Ce.getState, Le =
|
|
24271
|
+
const Ce = _e ? X.store : de.store, je = Ee ? de.getServerState : Ce.getState, Le = qt.useMemo(() => fH(Ce.dispatch, F), [Ce]), [re, Ie] = qt.useMemo(() => {
|
|
24272
24272
|
if (!I)
|
|
24273
24273
|
return OH;
|
|
24274
24274
|
const ot = Yj(
|
|
@@ -24276,16 +24276,16 @@ function FH(t, r, i, {
|
|
|
24276
24276
|
_e ? void 0 : de.subscription
|
|
24277
24277
|
), Ae = ot.notifyNestedSubs.bind(ot);
|
|
24278
24278
|
return [ot, Ae];
|
|
24279
|
-
}, [Ce, _e, de]), G =
|
|
24279
|
+
}, [Ce, _e, de]), G = qt.useMemo(() => _e ? de : {
|
|
24280
24280
|
...de,
|
|
24281
24281
|
subscription: re
|
|
24282
|
-
}, [_e, de, re]), Y =
|
|
24283
|
-
|
|
24284
|
-
const Ne =
|
|
24282
|
+
}, [_e, de, re]), Y = qt.useRef(), ne = qt.useRef(ie), be = qt.useRef(), we = qt.useRef(!1);
|
|
24283
|
+
qt.useRef(!1);
|
|
24284
|
+
const Ne = qt.useRef(!1), Oe = qt.useRef();
|
|
24285
24285
|
m0(() => (Ne.current = !0, () => {
|
|
24286
24286
|
Ne.current = !1;
|
|
24287
24287
|
}), []);
|
|
24288
|
-
const ce =
|
|
24288
|
+
const ce = qt.useMemo(() => () => be.current && ie === ne.current ? be.current : Le(Ce.getState(), ie), [Ce, ie]), fe = qt.useMemo(() => (Ae) => re ? LH(
|
|
24289
24289
|
I,
|
|
24290
24290
|
Ce,
|
|
24291
24291
|
re,
|
|
@@ -24328,9 +24328,9 @@ ${Oe.current.stack}
|
|
|
24328
24328
|
m0(() => {
|
|
24329
24329
|
Oe.current = void 0, be.current = void 0, Y.current = Ve;
|
|
24330
24330
|
});
|
|
24331
|
-
const Ge =
|
|
24331
|
+
const Ge = qt.useMemo(() => (
|
|
24332
24332
|
// @ts-ignore
|
|
24333
|
-
/* @__PURE__ */
|
|
24333
|
+
/* @__PURE__ */ qt.createElement(
|
|
24334
24334
|
A,
|
|
24335
24335
|
{
|
|
24336
24336
|
...Ve,
|
|
@@ -24338,12 +24338,12 @@ ${Oe.current.stack}
|
|
|
24338
24338
|
}
|
|
24339
24339
|
)
|
|
24340
24340
|
), [ue, A, Ve]);
|
|
24341
|
-
return
|
|
24341
|
+
return qt.useMemo(() => I ? /* @__PURE__ */ qt.createElement(ge.Provider, { value: G }, Ge) : Ge, [ge, Ge, G]);
|
|
24342
24342
|
}
|
|
24343
|
-
const z =
|
|
24343
|
+
const z = qt.memo(H);
|
|
24344
24344
|
if (z.WrappedComponent = A, z.displayName = H.displayName = P, y) {
|
|
24345
|
-
const Z =
|
|
24346
|
-
return /* @__PURE__ */
|
|
24345
|
+
const Z = qt.forwardRef(function(ie, ge) {
|
|
24346
|
+
return /* @__PURE__ */ qt.createElement(z, { ...ie, reactReduxForwardedRef: ge });
|
|
24347
24347
|
});
|
|
24348
24348
|
return Z.displayName = P, Z.WrappedComponent = A, /* @__PURE__ */ xw(Z, A);
|
|
24349
24349
|
}
|
|
@@ -24359,7 +24359,7 @@ function VH({
|
|
|
24359
24359
|
stabilityCheck: u = "once",
|
|
24360
24360
|
identityFunctionCheck: d = "once"
|
|
24361
24361
|
}) {
|
|
24362
|
-
const v =
|
|
24362
|
+
const v = qt.useMemo(() => {
|
|
24363
24363
|
const C = Yj(t);
|
|
24364
24364
|
return {
|
|
24365
24365
|
store: t,
|
|
@@ -24368,7 +24368,7 @@ function VH({
|
|
|
24368
24368
|
stabilityCheck: u,
|
|
24369
24369
|
identityFunctionCheck: d
|
|
24370
24370
|
};
|
|
24371
|
-
}, [t, l, u, d]), h =
|
|
24371
|
+
}, [t, l, u, d]), h = qt.useMemo(() => t.getState(), [t]);
|
|
24372
24372
|
m0(() => {
|
|
24373
24373
|
const { subscription: C } = v;
|
|
24374
24374
|
return C.onStateChange = C.notifyNestedSubs, C.trySubscribe(), h !== t.getState() && C.notifyNestedSubs(), () => {
|
|
@@ -24376,7 +24376,7 @@ function VH({
|
|
|
24376
24376
|
};
|
|
24377
24377
|
}, [v, h]);
|
|
24378
24378
|
const y = r || ru;
|
|
24379
|
-
return /* @__PURE__ */
|
|
24379
|
+
return /* @__PURE__ */ qt.createElement(y.Provider, { value: v }, i);
|
|
24380
24380
|
}
|
|
24381
24381
|
var Kp = VH;
|
|
24382
24382
|
function Jj(t = ru) {
|
|
@@ -24401,7 +24401,7 @@ function zH(t = ru) {
|
|
|
24401
24401
|
var No = /* @__PURE__ */ zH();
|
|
24402
24402
|
J$(Z$.useSyncExternalStoreWithSelector);
|
|
24403
24403
|
jH(k.useSyncExternalStore);
|
|
24404
|
-
const Zl = "https://allocations.access-ci.org",
|
|
24404
|
+
const Zl = "https://allocations.access-ci.org", Jt = {
|
|
24405
24405
|
creditAlertThreshold: 1e3,
|
|
24406
24406
|
resourceTypeIcons: {
|
|
24407
24407
|
credit: "cash-coin",
|
|
@@ -24521,7 +24521,7 @@ function ww(t, r = "total") {
|
|
|
24521
24521
|
return r != "total" ? l : l + t.allocated * t.exchangeRates.base.unitCost;
|
|
24522
24522
|
}
|
|
24523
24523
|
function mR(t) {
|
|
24524
|
-
t && (
|
|
24524
|
+
t && (Jt.routes = { ...Jt.routes, ...t });
|
|
24525
24525
|
}
|
|
24526
24526
|
const Rw = {
|
|
24527
24527
|
user: {
|
|
@@ -27393,7 +27393,7 @@ const ta = {
|
|
|
27393
27393
|
({ username: i }) => i == r.payload.username
|
|
27394
27394
|
), Aw = ({ allocated: t, isActive: r, isCredit: i }) => t > 0 && r && !i, HI = (t) => t.hasChanges = t.isNew || t.role != t.initialRole || !uO(t.resourceIds, t.initialResourceIds), cO = () => document.querySelector("meta[name=csrf-token]").content, KU = async (t) => {
|
|
27395
27395
|
const r = new URLSearchParams({ q: t });
|
|
27396
|
-
return (await (await fetch(`${
|
|
27396
|
+
return (await (await fetch(`${Jt.routes.search_people_path()}?${r}`)).json()).map(
|
|
27397
27397
|
({ email: l, first_name: u, last_name: d, username: v, organization: h }) => ({
|
|
27398
27398
|
email: l,
|
|
27399
27399
|
firstName: u,
|
|
@@ -27405,7 +27405,7 @@ const ta = {
|
|
|
27405
27405
|
}, Kb = Di(
|
|
27406
27406
|
"api/fetchProjectsList",
|
|
27407
27407
|
async (t, { rejectWithValue: r }) => {
|
|
27408
|
-
const i = await fetch(`${
|
|
27408
|
+
const i = await fetch(`${Jt.routes.projects_path()}.json`);
|
|
27409
27409
|
return i.status == 200 ? { username: t, projectsList: (await i.json()).result } : r({});
|
|
27410
27410
|
}
|
|
27411
27411
|
), dO = Di(
|
|
@@ -27418,7 +27418,7 @@ const ta = {
|
|
|
27418
27418
|
"api/fetchUsageDetail",
|
|
27419
27419
|
async ({ grantNumber: t, requestId: r, resourceRepositoryKey: i }, { rejectWithValue: l }) => {
|
|
27420
27420
|
const u = await fetch(
|
|
27421
|
-
`${
|
|
27421
|
+
`${Jt.routes.usage_detail_path(
|
|
27422
27422
|
t,
|
|
27423
27423
|
i
|
|
27424
27424
|
)}.json`
|
|
@@ -27438,7 +27438,7 @@ const ta = {
|
|
|
27438
27438
|
);
|
|
27439
27439
|
if (!d || !d.allowedOperations || !d.allowedOperations.includes("Delete"))
|
|
27440
27440
|
return l({ actionId: t, requestId: r });
|
|
27441
|
-
const v =
|
|
27441
|
+
const v = Jt.routes.request_action_path(
|
|
27442
27442
|
u.requestId,
|
|
27443
27443
|
d.actionId
|
|
27444
27444
|
), h = {
|
|
@@ -27490,10 +27490,10 @@ const ta = {
|
|
|
27490
27490
|
resource_attributes: d
|
|
27491
27491
|
},
|
|
27492
27492
|
requested_resources: u
|
|
27493
|
-
}, h = l.exchangeActionId ?
|
|
27493
|
+
}, h = l.exchangeActionId ? Jt.routes.request_action_path(
|
|
27494
27494
|
l.requestId,
|
|
27495
27495
|
l.exchangeActionId
|
|
27496
|
-
) :
|
|
27496
|
+
) : Jt.routes.request_actions_path(l.requestId), y = await fetch(`${h}.json`, {
|
|
27497
27497
|
body: JSON.stringify(v),
|
|
27498
27498
|
headers: {
|
|
27499
27499
|
"Content-Type": "application/json"
|
|
@@ -27524,7 +27524,7 @@ const ta = {
|
|
|
27524
27524
|
roleChanges: v,
|
|
27525
27525
|
authenticity_token: document.querySelector("meta[name=csrf-token]").content
|
|
27526
27526
|
};
|
|
27527
|
-
return (await fetch(
|
|
27527
|
+
return (await fetch(Jt.routes.projects_save_users_path(), {
|
|
27528
27528
|
method: "POST",
|
|
27529
27529
|
body: JSON.stringify(h),
|
|
27530
27530
|
headers: {
|
|
@@ -31649,7 +31649,7 @@ function Y4({ requestId: t, grantNumber: r }) {
|
|
|
31649
31649
|
const { request: i, toggleActionsModal: l } = ri(t, r), { project: u } = Ji(r || i.grantNumber);
|
|
31650
31650
|
if (!i || !u || i.error || u.error)
|
|
31651
31651
|
return;
|
|
31652
|
-
const d =
|
|
31652
|
+
const d = Jt.routes.request_action_path(t, "new"), v = i.allowedActions.Renewal ? Array.isArray(i.allowedActions.Renewal) ? [...i.allowedActions.Renewal] : [i.allowedActions.Renewal] : [];
|
|
31653
31653
|
v.sort((C, x) => C.opportunityId < x.opportunityId ? -1 : 1);
|
|
31654
31654
|
const h = [
|
|
31655
31655
|
{
|
|
@@ -31701,7 +31701,7 @@ function Y4({ requestId: t, grantNumber: r }) {
|
|
|
31701
31701
|
id: "renewal",
|
|
31702
31702
|
action: v.map((C) => [
|
|
31703
31703
|
C.opportunityName,
|
|
31704
|
-
`${
|
|
31704
|
+
`${Jt.routes.renew_request_path(t)}?opportunity_id=${C.opportunityId}`,
|
|
31705
31705
|
"post"
|
|
31706
31706
|
]),
|
|
31707
31707
|
isEnabled: "Renewal" in i.allowedActions,
|
|
@@ -31711,7 +31711,7 @@ function Y4({ requestId: t, grantNumber: r }) {
|
|
|
31711
31711
|
i.allocationType,
|
|
31712
31712
|
" project can be renewed! The requirements for renewing your project depend on the",
|
|
31713
31713
|
" ",
|
|
31714
|
-
/* @__PURE__ */ m.jsx("a", { href:
|
|
31714
|
+
/* @__PURE__ */ m.jsx("a", { href: Jt.routes.project_types_path(), target: "_blank", children: "new project type you select" }),
|
|
31715
31715
|
"."
|
|
31716
31716
|
] }),
|
|
31717
31717
|
disabled: /* @__PURE__ */ m.jsxs("p", { children: [
|
|
@@ -31729,7 +31729,7 @@ function Y4({ requestId: t, grantNumber: r }) {
|
|
|
31729
31729
|
{
|
|
31730
31730
|
id: "help",
|
|
31731
31731
|
action: [
|
|
31732
|
-
["Learn How to Manage Allocations",
|
|
31732
|
+
["Learn How to Manage Allocations", Jt.routes.how_to_path(), "get"],
|
|
31733
31733
|
[
|
|
31734
31734
|
"Open a Help Ticket",
|
|
31735
31735
|
"https://support.access-ci.org/open-a-ticket",
|
|
@@ -31955,7 +31955,7 @@ function GD({ action: t, request: r, toggleDeleteModal: i }) {
|
|
|
31955
31955
|
/* @__PURE__ */ m.jsx(
|
|
31956
31956
|
_0,
|
|
31957
31957
|
{
|
|
31958
|
-
href: t.isRequest ?
|
|
31958
|
+
href: t.isRequest ? Jt.routes.edit_request_path(r.requestId) : Jt.routes.edit_request_action_path(
|
|
31959
31959
|
r.requestId,
|
|
31960
31960
|
t.actionId
|
|
31961
31961
|
),
|
|
@@ -31981,7 +31981,7 @@ function GD({ action: t, request: r, toggleDeleteModal: i }) {
|
|
|
31981
31981
|
t.detailAvailable ? /* @__PURE__ */ m.jsx(
|
|
31982
31982
|
"a",
|
|
31983
31983
|
{
|
|
31984
|
-
href:
|
|
31984
|
+
href: Jt.routes.request_action_path(
|
|
31985
31985
|
r.requestId,
|
|
31986
31986
|
t.actionId
|
|
31987
31987
|
),
|
|
@@ -31994,7 +31994,7 @@ function GD({ action: t, request: r, toggleDeleteModal: i }) {
|
|
|
31994
31994
|
function Wd({ resource: t, userGuide: r = !0 }) {
|
|
31995
31995
|
const { full: i, short: l } = H0(t.name), u = l ? /* @__PURE__ */ m.jsx("abbr", { title: i, children: l }) : i;
|
|
31996
31996
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
31997
|
-
yc(
|
|
31997
|
+
yc(Jt.resourceTypeIcons[t.icon]),
|
|
31998
31998
|
" ",
|
|
31999
31999
|
u,
|
|
32000
32000
|
!t.isCredit && t.userGuideUrl && r ? /* @__PURE__ */ m.jsx(
|
|
@@ -32866,7 +32866,7 @@ function xW({ requestId: t, grantNumber: r }) {
|
|
|
32866
32866
|
) });
|
|
32867
32867
|
}
|
|
32868
32868
|
}), /* @__PURE__ */ m.jsxs("div", { className: "overview", children: [
|
|
32869
|
-
C && !x && y >
|
|
32869
|
+
C && !x && y > Jt.creditAlertThreshold ? /* @__PURE__ */ m.jsxs(
|
|
32870
32870
|
"button",
|
|
32871
32871
|
{
|
|
32872
32872
|
onClick: () => u("resources"),
|
|
@@ -32874,7 +32874,7 @@ function xW({ requestId: t, grantNumber: r }) {
|
|
|
32874
32874
|
children: [
|
|
32875
32875
|
/* @__PURE__ */ m.jsxs("span", { children: [
|
|
32876
32876
|
/* @__PURE__ */ m.jsxs("span", { className: "fs-3", children: [
|
|
32877
|
-
yc(
|
|
32877
|
+
yc(Jt.resourceTypeIcons[d.icon]),
|
|
32878
32878
|
" ",
|
|
32879
32879
|
ga(y)
|
|
32880
32880
|
] }),
|
|
@@ -32898,7 +32898,7 @@ const SW = [
|
|
|
32898
32898
|
key: "role",
|
|
32899
32899
|
name: "Role",
|
|
32900
32900
|
format: (t) => /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
32901
|
-
yc(
|
|
32901
|
+
yc(Jt.roleIcons[t]),
|
|
32902
32902
|
" ",
|
|
32903
32903
|
t
|
|
32904
32904
|
] })
|
|
@@ -37244,12 +37244,12 @@ function tj({
|
|
|
37244
37244
|
const d = u.endDate ? "calendar3" : "people-fill", v = u.endDate ? "primary" : "success";
|
|
37245
37245
|
let y = `${Math.round(
|
|
37246
37246
|
100 * (l.unitCost - u.unitCost) / l.unitCost
|
|
37247
|
-
)}
|
|
37247
|
+
)}% off`, C = y;
|
|
37248
37248
|
if (u.endDate) {
|
|
37249
|
-
const x = u.endDate ? `
|
|
37249
|
+
const x = u.endDate ? ` until ${Hd(u.endDate).replace(IZ, "")}` : "";
|
|
37250
37250
|
i || (y += x), C += x;
|
|
37251
37251
|
} else
|
|
37252
|
-
i || (y += " for you"), C += u.institutionType ? `
|
|
37252
|
+
i || (y += " for you"), C += u.institutionType ? ` for researchers from ${u.institutionType}` : " for you";
|
|
37253
37253
|
return C += `: ${Kj(
|
|
37254
37254
|
r.unit,
|
|
37255
37255
|
u.unitCost,
|
|
@@ -37380,28 +37380,24 @@ function AZ({ resources: t }) {
|
|
|
37380
37380
|
},
|
|
37381
37381
|
i[v]
|
|
37382
37382
|
));
|
|
37383
|
-
return /* @__PURE__ */ m.
|
|
37384
|
-
"
|
|
37383
|
+
return /* @__PURE__ */ m.jsx(
|
|
37384
|
+
"span",
|
|
37385
37385
|
{
|
|
37386
|
-
href: Yt.routes.resources_path(),
|
|
37387
37386
|
className: "d-flex justify-content-between align-items-center p-2 border-start border-end bg-secondary-subtle text-decoration-none fw-normal",
|
|
37388
|
-
children: [
|
|
37389
|
-
|
|
37390
|
-
|
|
37391
|
-
|
|
37392
|
-
|
|
37393
|
-
|
|
37394
|
-
|
|
37395
|
-
|
|
37396
|
-
|
|
37397
|
-
|
|
37398
|
-
|
|
37399
|
-
|
|
37400
|
-
|
|
37401
|
-
|
|
37402
|
-
] }),
|
|
37403
|
-
/* @__PURE__ */ m.jsx("span", { className: "fs-4", children: "›" })
|
|
37404
|
-
]
|
|
37387
|
+
children: /* @__PURE__ */ m.jsxs("span", { children: [
|
|
37388
|
+
u,
|
|
37389
|
+
"Browse the list below to see discounts on",
|
|
37390
|
+
" ",
|
|
37391
|
+
ga(r.length),
|
|
37392
|
+
" ",
|
|
37393
|
+
y0("resources", r.length),
|
|
37394
|
+
" from",
|
|
37395
|
+
" ",
|
|
37396
|
+
ga(i.length),
|
|
37397
|
+
" ",
|
|
37398
|
+
y0("resource providers", i.length),
|
|
37399
|
+
"!"
|
|
37400
|
+
] })
|
|
37405
37401
|
}
|
|
37406
37402
|
);
|
|
37407
37403
|
}
|
|
@@ -37783,7 +37779,7 @@ function BZ({ requestId: t, grantNumber: r }) {
|
|
|
37783
37779
|
z.length ? /* @__PURE__ */ m.jsx(FZ, { requestId: t }) : null,
|
|
37784
37780
|
G && (_ || A || L) ? /* @__PURE__ */ m.jsxs("h2", { className: "mb-1 mt-2 d-flex justify-content-between", children: [
|
|
37785
37781
|
/* @__PURE__ */ m.jsxs("span", { children: [
|
|
37786
|
-
yc(
|
|
37782
|
+
yc(Jt.resourceTypeIcons.credit),
|
|
37787
37783
|
" ",
|
|
37788
37784
|
ga(G.requested, G),
|
|
37789
37785
|
" ",
|
|
@@ -37797,7 +37793,7 @@ function BZ({ requestId: t, grantNumber: r }) {
|
|
|
37797
37793
|
className: "btn btn-sm btn-primary ms-2",
|
|
37798
37794
|
onClick: ue,
|
|
37799
37795
|
children: [
|
|
37800
|
-
yc(
|
|
37796
|
+
yc(Jt.resourceTypeIcons.credit),
|
|
37801
37797
|
" Request More",
|
|
37802
37798
|
" ",
|
|
37803
37799
|
i.usesCredits ? "Credits" : "Units"
|
|
@@ -37871,7 +37867,7 @@ function BZ({ requestId: t, grantNumber: r }) {
|
|
|
37871
37867
|
/* @__PURE__ */ m.jsxs("p", { className: "text-black-50", style: { fontSize: "0.9rem" }, children: [
|
|
37872
37868
|
"Need help choosing a resource? Visit our",
|
|
37873
37869
|
" ",
|
|
37874
|
-
/* @__PURE__ */ m.jsx("a", { href:
|
|
37870
|
+
/* @__PURE__ */ m.jsx("a", { href: Jt.routes.resources_path(), children: "Resource Catalog" }),
|
|
37875
37871
|
"."
|
|
37876
37872
|
] })
|
|
37877
37873
|
] }) : null,
|
|
@@ -38326,7 +38322,7 @@ function YZ({ grantNumber: t, requestId: r }) {
|
|
|
38326
38322
|
R ? /* @__PURE__ */ m.jsx(
|
|
38327
38323
|
"a",
|
|
38328
38324
|
{
|
|
38329
|
-
href:
|
|
38325
|
+
href: Jt.routes.request_action_path(
|
|
38330
38326
|
x.requestId,
|
|
38331
38327
|
"new?action_type=Exchange"
|
|
38332
38328
|
),
|
|
@@ -38527,7 +38523,7 @@ function ZZ({ requestId: t, grantNumber: r }) {
|
|
|
38527
38523
|
l.currentRequestId ? /* @__PURE__ */ m.jsx(
|
|
38528
38524
|
"a",
|
|
38529
38525
|
{
|
|
38530
|
-
href:
|
|
38526
|
+
href: Jt.routes.request_path(l.currentRequestId),
|
|
38531
38527
|
onClick: (C) => {
|
|
38532
38528
|
C.preventDefault(), u(l.currentRequestId);
|
|
38533
38529
|
},
|
|
@@ -38587,7 +38583,7 @@ function qZ({ requestId: t, grantNumber: r }) {
|
|
|
38587
38583
|
"calendar-plus"
|
|
38588
38584
|
]), "Final Report" in v && h.push([
|
|
38589
38585
|
"Submit Final Report",
|
|
38590
|
-
`${
|
|
38586
|
+
`${Jt.routes.request_action_path(
|
|
38591
38587
|
t,
|
|
38592
38588
|
"new"
|
|
38593
38589
|
)}?action_type=Final+Report`,
|
|
@@ -38598,7 +38594,7 @@ function qZ({ requestId: t, grantNumber: r }) {
|
|
|
38598
38594
|
const C = y.allowedOperations || [];
|
|
38599
38595
|
C.includes("Edit") && h.push([
|
|
38600
38596
|
"Edit",
|
|
38601
|
-
|
|
38597
|
+
Jt.routes.edit_request_path(i.requestId),
|
|
38602
38598
|
"pencil"
|
|
38603
38599
|
]), C.includes("Delete") && h.push([
|
|
38604
38600
|
"Delete",
|
|
@@ -38728,7 +38724,7 @@ function QZ({ username: t, openFirst: r = 1 }) {
|
|
|
38728
38724
|
"a",
|
|
38729
38725
|
{
|
|
38730
38726
|
className: "btn btn-primary w-25",
|
|
38731
|
-
href:
|
|
38727
|
+
href: Jt.routes.project_types_path(),
|
|
38732
38728
|
children: [
|
|
38733
38729
|
/* @__PURE__ */ m.jsx("i", { className: "bi bi-boxes fs-1 d-block" }),
|
|
38734
38730
|
" Learn about Project Types"
|
|
@@ -38739,7 +38735,7 @@ function QZ({ username: t, openFirst: r = 1 }) {
|
|
|
38739
38735
|
"a",
|
|
38740
38736
|
{
|
|
38741
38737
|
className: "btn btn-secondary w-25",
|
|
38742
|
-
href:
|
|
38738
|
+
href: Jt.routes.get_your_first_project_path(),
|
|
38743
38739
|
children: [
|
|
38744
38740
|
/* @__PURE__ */ m.jsx("i", { className: "bi bi-cpu fs-1 d-block" }),
|
|
38745
38741
|
" Learn How to Get Your",
|
|
@@ -38753,7 +38749,7 @@ function QZ({ username: t, openFirst: r = 1 }) {
|
|
|
38753
38749
|
"a",
|
|
38754
38750
|
{
|
|
38755
38751
|
className: "btn btn-primary w-25",
|
|
38756
|
-
href:
|
|
38752
|
+
href: Jt.routes.how_to_path(),
|
|
38757
38753
|
children: [
|
|
38758
38754
|
/* @__PURE__ */ m.jsx("i", { className: "bi bi-person-plus fs-1 d-block" }),
|
|
38759
38755
|
" Learn How to Join an Existing Project"
|
|
@@ -39326,7 +39322,7 @@ const B6 = () => async (t, r) => {
|
|
|
39326
39322
|
}
|
|
39327
39323
|
);
|
|
39328
39324
|
}, z6 = () => async (t, r) => {
|
|
39329
|
-
const i = r().publications_store.grant_number, l =
|
|
39325
|
+
const i = r().publications_store.grant_number, l = Jt.routes.publications_find_project_path();
|
|
39330
39326
|
await fetch(`${l}?grant_number=${i}`).then((u) => u.json()).then(
|
|
39331
39327
|
(u) => {
|
|
39332
39328
|
t(L6(u)), t(yM(""));
|
|
@@ -39338,7 +39334,7 @@ const B6 = () => async (t, r) => {
|
|
|
39338
39334
|
}
|
|
39339
39335
|
);
|
|
39340
39336
|
}, bM = () => async (t) => {
|
|
39341
|
-
const r = /^\/requests/.test(window.location.pathname) ?
|
|
39337
|
+
const r = /^\/requests/.test(window.location.pathname) ? Jt.routes.publication_path("new.json") : window.location.href + ".json";
|
|
39342
39338
|
await fetch(r).then((i) => i.json()).then((i) => {
|
|
39343
39339
|
t(D6(i));
|
|
39344
39340
|
});
|
|
@@ -39364,7 +39360,7 @@ const B6 = () => async (t, r) => {
|
|
|
39364
39360
|
projects: l
|
|
39365
39361
|
};
|
|
39366
39362
|
let x, w;
|
|
39367
|
-
d.publication_id ? (x =
|
|
39363
|
+
d.publication_id ? (x = Jt.routes.publication_path(d.publication_id), w = "PATCH") : (x = Jt.routes.publications_path(), w = "POST"), t(uw(!0)), await fetch(x, {
|
|
39368
39364
|
method: w,
|
|
39369
39365
|
headers: {
|
|
39370
39366
|
"Content-Type": "application/json"
|
|
@@ -39372,7 +39368,7 @@ const B6 = () => async (t, r) => {
|
|
|
39372
39368
|
body: JSON.stringify(C)
|
|
39373
39369
|
}).then(
|
|
39374
39370
|
(R) => {
|
|
39375
|
-
i.redirect ? window.location.href =
|
|
39371
|
+
i.redirect ? window.location.href = Jt.routes.publications_path() : (d.publication_id || (t(k6()), t(bM())), t(gM(!0)), t(uw(!1)));
|
|
39376
39372
|
},
|
|
39377
39373
|
() => {
|
|
39378
39374
|
t(uw(!1)), t(km("There was an error saving this publication."));
|
|
@@ -39844,7 +39840,7 @@ const B6 = () => async (t, r) => {
|
|
|
39844
39840
|
y.current = _, l(_);
|
|
39845
39841
|
}, x = async () => {
|
|
39846
39842
|
const A = await (await fetch(
|
|
39847
|
-
|
|
39843
|
+
Jt.routes.search_publications_path({ usernames: i })
|
|
39848
39844
|
)).json();
|
|
39849
39845
|
h(A);
|
|
39850
39846
|
};
|