@hadoku/jobplatform 3.42.123 → 3.42.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- package/dist/{ApplicationTracking-DV0cuiL2.js → ApplicationTracking-mioy9vBN.js} +2 -2
- package/dist/{ApplicationsList-CHMuz8-r.js → ApplicationsList-B_IpHPXq.js} +1 -1
- package/dist/{ClipboardPalette-CzMDCmCp.js → ClipboardPalette-BKAjb7B_.js} +1 -1
- package/dist/{InsightsPage-DbVHXS5R.js → InsightsPage-1riaKlxv.js} +1 -1
- package/dist/{PacketDetail-DgtC60z5.js → PacketDetail-DeOgBjKi.js} +2 -2
- package/dist/{PacketsList-D8yefRip.js → PacketsList-CtPQIhyx.js} +2 -2
- package/dist/{PipelineBoard-DdxFEviC.js → PipelineBoard-BgqelW_w.js} +2 -2
- package/dist/{ProfilePage-BMkG7wxF.js → ProfilePage-YLomJCE4.js} +1 -1
- package/dist/api/applyQueue.d.ts +28 -6
- package/dist/api/applyQueue.d.ts.map +1 -1
- package/dist/components/JobDrawer.d.ts.map +1 -1
- package/dist/{entry-DxJgMtQK.js → entry-BPQSVIdk.js} +450 -462
- package/dist/index.js +1 -1
- package/dist/{packets-C2ub3995.js → packets-BZ_hk5bs.js} +1 -1
- package/dist/{pipeline-D1w1b6S9.js → pipeline-YSKh77yD.js} +1 -1
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as g, jsx as i, Fragment as He } from "react/jsx-runtime";
|
|
2
|
-
import { createRoot as
|
|
2
|
+
import { createRoot as Fn } from "react-dom/client";
|
|
3
3
|
import { logger as Yt } from "@wolffm/logger/client";
|
|
4
4
|
import * as p from "react";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { LoadingSkeleton as
|
|
7
|
-
import { HadokuThemeRoot as
|
|
5
|
+
import { useState as R, useRef as Fe, useEffect as Y, useCallback as se, useId as In, useMemo as fe, Suspense as it, lazy as ge, Component as Un } from "react";
|
|
6
|
+
import { LoadingSkeleton as Mn, AppHeader as Bn } from "@wolffm/task-ui-components";
|
|
7
|
+
import { HadokuThemeRoot as Hn, useHadokuTheme as Wn } from "@wolffm/themes";
|
|
8
8
|
var St = "popstate";
|
|
9
9
|
function Pt(e) {
|
|
10
10
|
return typeof e == "object" && e != null && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Jn(e = {}) {
|
|
13
13
|
function t(r, o) {
|
|
14
14
|
let {
|
|
15
15
|
pathname: s = "/",
|
|
@@ -40,7 +40,7 @@ function qn(e = {}) {
|
|
|
40
40
|
)})`
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return Kn(
|
|
44
44
|
t,
|
|
45
45
|
n,
|
|
46
46
|
a,
|
|
@@ -60,7 +60,7 @@ function Z(e, t) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function qn() {
|
|
64
64
|
return Math.random().toString(36).substring(2, 10);
|
|
65
65
|
}
|
|
66
66
|
function xt(e, t) {
|
|
@@ -86,7 +86,7 @@ function st(e, t, n = null, a, r) {
|
|
|
86
86
|
// full Locations now and avoid the need to run through this flow at all
|
|
87
87
|
// But that's a pretty big refactor to the current test suite so going to
|
|
88
88
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
89
|
-
key: t && t.key || a ||
|
|
89
|
+
key: t && t.key || a || qn(),
|
|
90
90
|
unstable_mask: r
|
|
91
91
|
};
|
|
92
92
|
}
|
|
@@ -107,7 +107,7 @@ function Ne(e) {
|
|
|
107
107
|
}
|
|
108
108
|
return t;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Kn(e, t, n, a = {}) {
|
|
111
111
|
let { window: r = document.defaultView, v5Compat: o = !1 } = a, s = r.history, l = "POP", c = null, u = h();
|
|
112
112
|
u == null && (u = 0, s.replaceState({ ...s.state, idx: u }, ""));
|
|
113
113
|
function h() {
|
|
@@ -122,9 +122,9 @@ function Vn(e, t, n, a = {}) {
|
|
|
122
122
|
l = "PUSH";
|
|
123
123
|
let w = Pt(m) ? m : st(f.location, m, C);
|
|
124
124
|
n && n(w, m), u = h() + 1;
|
|
125
|
-
let
|
|
125
|
+
let E = xt(w, u), $ = f.createHref(w.unstable_mask || w);
|
|
126
126
|
try {
|
|
127
|
-
s.pushState(
|
|
127
|
+
s.pushState(E, "", $);
|
|
128
128
|
} catch (x) {
|
|
129
129
|
if (x instanceof DOMException && x.name === "DataCloneError")
|
|
130
130
|
throw x;
|
|
@@ -136,11 +136,11 @@ function Vn(e, t, n, a = {}) {
|
|
|
136
136
|
l = "REPLACE";
|
|
137
137
|
let w = Pt(m) ? m : st(f.location, m, C);
|
|
138
138
|
n && n(w, m), u = h();
|
|
139
|
-
let
|
|
140
|
-
s.replaceState(
|
|
139
|
+
let E = xt(w, u), $ = f.createHref(w.unstable_mask || w);
|
|
140
|
+
s.replaceState(E, "", $), o && c && c({ action: l, location: f.location, delta: 0 });
|
|
141
141
|
}
|
|
142
142
|
function _(m) {
|
|
143
|
-
return
|
|
143
|
+
return Vn(m);
|
|
144
144
|
}
|
|
145
145
|
let f = {
|
|
146
146
|
get action() {
|
|
@@ -176,25 +176,25 @@ function Vn(e, t, n, a = {}) {
|
|
|
176
176
|
};
|
|
177
177
|
return f;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Vn(e, t = !1) {
|
|
180
180
|
let n = "http://localhost";
|
|
181
181
|
typeof window < "u" && (n = window.location.origin !== "null" ? window.location.origin : window.location.href), M(n, "No window.location.(origin|href) available to create URL");
|
|
182
182
|
let a = typeof e == "string" ? e : Oe(e);
|
|
183
183
|
return a = a.replace(/ $/, "%20"), !t && a.startsWith("//") && (a = n + a), new URL(a, n);
|
|
184
184
|
}
|
|
185
185
|
function Qt(e, t, n = "/") {
|
|
186
|
-
return
|
|
186
|
+
return Gn(e, t, n, !1);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Gn(e, t, n, a) {
|
|
189
189
|
let r = typeof t == "string" ? Ne(t) : t, o = de(r.pathname || "/", n);
|
|
190
190
|
if (o == null)
|
|
191
191
|
return null;
|
|
192
192
|
let s = Xt(e);
|
|
193
|
-
|
|
193
|
+
zn(s);
|
|
194
194
|
let l = null;
|
|
195
195
|
for (let c = 0; l == null && c < s.length; ++c) {
|
|
196
|
-
let u =
|
|
197
|
-
l =
|
|
196
|
+
let u = ia(o);
|
|
197
|
+
l = ra(
|
|
198
198
|
s[c],
|
|
199
199
|
u,
|
|
200
200
|
a
|
|
@@ -232,7 +232,7 @@ function Xt(e, t = [], n = [], a = "", r = !1) {
|
|
|
232
232
|
c
|
|
233
233
|
)), !(s.path == null && !s.index) && t.push({
|
|
234
234
|
path: d,
|
|
235
|
-
score:
|
|
235
|
+
score: na(d, s.index),
|
|
236
236
|
routesMeta: v
|
|
237
237
|
});
|
|
238
238
|
};
|
|
@@ -259,23 +259,23 @@ function Zt(e) {
|
|
|
259
259
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function zn(e) {
|
|
263
263
|
e.sort(
|
|
264
|
-
(t, n) => t.score !== n.score ? n.score - t.score :
|
|
264
|
+
(t, n) => t.score !== n.score ? n.score - t.score : aa(
|
|
265
265
|
t.routesMeta.map((a) => a.childrenIndex),
|
|
266
266
|
n.routesMeta.map((a) => a.childrenIndex)
|
|
267
267
|
)
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
|
-
var
|
|
271
|
-
function
|
|
270
|
+
var Yn = /^:[\w-]+$/, Qn = 3, Xn = 2, Zn = 1, ea = 10, ta = -2, Lt = (e) => e === "*";
|
|
271
|
+
function na(e, t) {
|
|
272
272
|
let n = e.split("/"), a = n.length;
|
|
273
|
-
return n.some(Lt) && (a +=
|
|
274
|
-
(r, o) => r + (
|
|
273
|
+
return n.some(Lt) && (a += ta), t && (a += Xn), n.filter((r) => !Lt(r)).reduce(
|
|
274
|
+
(r, o) => r + (Yn.test(o) ? Qn : o === "" ? Zn : ea),
|
|
275
275
|
a
|
|
276
276
|
);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function aa(e, t) {
|
|
279
279
|
return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
|
|
280
280
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
281
281
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -288,7 +288,7 @@ function ra(e, t) {
|
|
|
288
288
|
0
|
|
289
289
|
);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ra(e, t, n = !1) {
|
|
292
292
|
let { routesMeta: a } = e, r = {}, o = "/", s = [];
|
|
293
293
|
for (let l = 0; l < a.length; ++l) {
|
|
294
294
|
let c = a[l], u = l === a.length - 1, h = o === "/" ? t : t.slice(o.length) || "/", d = Ke(
|
|
@@ -308,7 +308,7 @@ function oa(e, t, n = !1) {
|
|
|
308
308
|
// TODO: Can this as be avoided?
|
|
309
309
|
params: r,
|
|
310
310
|
pathname: oe([o, d.pathname]),
|
|
311
|
-
pathnameBase:
|
|
311
|
+
pathnameBase: ua(
|
|
312
312
|
oe([o, d.pathnameBase])
|
|
313
313
|
),
|
|
314
314
|
route: v
|
|
@@ -318,7 +318,7 @@ function oa(e, t, n = !1) {
|
|
|
318
318
|
}
|
|
319
319
|
function Ke(e, t) {
|
|
320
320
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
321
|
-
let [n, a] =
|
|
321
|
+
let [n, a] = oa(
|
|
322
322
|
e.path,
|
|
323
323
|
e.caseSensitive,
|
|
324
324
|
e.end
|
|
@@ -342,7 +342,7 @@ function Ke(e, t) {
|
|
|
342
342
|
pattern: e
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function oa(e, t = !1, n = !0) {
|
|
346
346
|
Z(
|
|
347
347
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
348
348
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -359,7 +359,7 @@ function ia(e, t = !1, n = !0) {
|
|
|
359
359
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
360
360
|
return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function ia(e) {
|
|
363
363
|
try {
|
|
364
364
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
365
365
|
} catch (t) {
|
|
@@ -376,8 +376,8 @@ function de(e, t) {
|
|
|
376
376
|
let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
|
|
377
377
|
return a && a !== "/" ? null : e.slice(n) || "/";
|
|
378
378
|
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
379
|
+
var sa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
380
|
+
function la(e, t = "/") {
|
|
381
381
|
let {
|
|
382
382
|
pathname: n,
|
|
383
383
|
search: a = "",
|
|
@@ -385,8 +385,8 @@ function ca(e, t = "/") {
|
|
|
385
385
|
} = typeof e == "string" ? Ne(e) : e, o;
|
|
386
386
|
return n ? (n = en(n), n.startsWith("/") ? o = $t(n.substring(1), "/") : o = $t(n, t)) : o = t, {
|
|
387
387
|
pathname: o,
|
|
388
|
-
search:
|
|
389
|
-
hash:
|
|
388
|
+
search: da(a),
|
|
389
|
+
hash: pa(r)
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
function $t(e, t) {
|
|
@@ -400,13 +400,13 @@ function et(e, t, n, a) {
|
|
|
400
400
|
a
|
|
401
401
|
)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function ca(e) {
|
|
404
404
|
return e.filter(
|
|
405
405
|
(t, n) => n === 0 || t.route.path && t.route.path.length > 0
|
|
406
406
|
);
|
|
407
407
|
}
|
|
408
408
|
function yt(e) {
|
|
409
|
-
let t =
|
|
409
|
+
let t = ca(e);
|
|
410
410
|
return t.map(
|
|
411
411
|
(n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
|
|
412
412
|
);
|
|
@@ -436,25 +436,25 @@ function Ge(e, t, n, a = !1) {
|
|
|
436
436
|
}
|
|
437
437
|
l = d >= 0 ? t[d] : "/";
|
|
438
438
|
}
|
|
439
|
-
let c =
|
|
439
|
+
let c = la(r, l), u = s && s !== "/" && s.endsWith("/"), h = (o || s === ".") && n.endsWith("/");
|
|
440
440
|
return !c.pathname.endsWith("/") && (u || h) && (c.pathname += "/"), c;
|
|
441
441
|
}
|
|
442
|
-
var en = (e) => e.replace(/\/\/+/g, "/"), oe = (e) => en(e.join("/")), Ve = (e) => e.replace(/\/+$/, ""),
|
|
442
|
+
var en = (e) => e.replace(/\/\/+/g, "/"), oe = (e) => en(e.join("/")), Ve = (e) => e.replace(/\/+$/, ""), ua = (e) => Ve(e).replace(/^\/*/, "/"), da = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pa = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ha = class {
|
|
443
443
|
constructor(e, t, n, a = !1) {
|
|
444
444
|
this.status = e, this.statusText = t || "", this.internal = a, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function ma(e) {
|
|
448
448
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function fa(e) {
|
|
451
451
|
let t = e.map((n) => n.route.path).filter(Boolean);
|
|
452
452
|
return oe(t) || "/";
|
|
453
453
|
}
|
|
454
454
|
var tn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
455
455
|
function nn(e, t) {
|
|
456
456
|
let n = e;
|
|
457
|
-
if (typeof n != "string" || !
|
|
457
|
+
if (typeof n != "string" || !sa.test(n))
|
|
458
458
|
return {
|
|
459
459
|
absoluteURL: void 0,
|
|
460
460
|
isExternal: !1,
|
|
@@ -487,37 +487,37 @@ var an = [
|
|
|
487
487
|
new Set(
|
|
488
488
|
an
|
|
489
489
|
);
|
|
490
|
-
var
|
|
490
|
+
var ya = [
|
|
491
491
|
"GET",
|
|
492
492
|
...an
|
|
493
493
|
];
|
|
494
|
-
new Set(
|
|
494
|
+
new Set(ya);
|
|
495
495
|
var Le = p.createContext(null);
|
|
496
496
|
Le.displayName = "DataRouter";
|
|
497
497
|
var ze = p.createContext(null);
|
|
498
498
|
ze.displayName = "DataRouterState";
|
|
499
499
|
var rn = p.createContext(!1);
|
|
500
|
-
function
|
|
500
|
+
function ga() {
|
|
501
501
|
return p.useContext(rn);
|
|
502
502
|
}
|
|
503
503
|
var on = p.createContext({
|
|
504
504
|
isTransitioning: !1
|
|
505
505
|
});
|
|
506
506
|
on.displayName = "ViewTransition";
|
|
507
|
-
var
|
|
507
|
+
var va = p.createContext(
|
|
508
508
|
/* @__PURE__ */ new Map()
|
|
509
509
|
);
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
|
|
510
|
+
va.displayName = "Fetchers";
|
|
511
|
+
var ba = p.createContext(null);
|
|
512
|
+
ba.displayName = "Await";
|
|
513
513
|
var ee = p.createContext(
|
|
514
514
|
null
|
|
515
515
|
);
|
|
516
516
|
ee.displayName = "Navigation";
|
|
517
|
-
var
|
|
517
|
+
var Ie = p.createContext(
|
|
518
518
|
null
|
|
519
519
|
);
|
|
520
|
-
|
|
520
|
+
Ie.displayName = "Location";
|
|
521
521
|
var ae = p.createContext({
|
|
522
522
|
outlet: null,
|
|
523
523
|
matches: [],
|
|
@@ -526,9 +526,9 @@ var ae = p.createContext({
|
|
|
526
526
|
ae.displayName = "Route";
|
|
527
527
|
var gt = p.createContext(null);
|
|
528
528
|
gt.displayName = "RouteError";
|
|
529
|
-
var sn = "REACT_ROUTER_ERROR",
|
|
530
|
-
function
|
|
531
|
-
if (e.startsWith(`${sn}:${
|
|
529
|
+
var sn = "REACT_ROUTER_ERROR", wa = "REDIRECT", _a = "ROUTE_ERROR_RESPONSE";
|
|
530
|
+
function ka(e) {
|
|
531
|
+
if (e.startsWith(`${sn}:${wa}:{`))
|
|
532
532
|
try {
|
|
533
533
|
let t = JSON.parse(e.slice(28));
|
|
534
534
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean")
|
|
@@ -538,12 +538,12 @@ function Ra(e) {
|
|
|
538
538
|
}
|
|
539
539
|
function Ea(e) {
|
|
540
540
|
if (e.startsWith(
|
|
541
|
-
`${sn}:${
|
|
541
|
+
`${sn}:${_a}:{`
|
|
542
542
|
))
|
|
543
543
|
try {
|
|
544
544
|
let t = JSON.parse(e.slice(40));
|
|
545
545
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string")
|
|
546
|
-
return new
|
|
546
|
+
return new ha(
|
|
547
547
|
t.status,
|
|
548
548
|
t.statusText,
|
|
549
549
|
t.data
|
|
@@ -551,18 +551,18 @@ function Ea(e) {
|
|
|
551
551
|
} catch {
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ra(e, { relative: t } = {}) {
|
|
555
555
|
M(
|
|
556
556
|
$e(),
|
|
557
557
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
558
558
|
// router loaded. We can help them understand how to avoid that.
|
|
559
559
|
"useHref() may be used only in the context of a <Router> component."
|
|
560
560
|
);
|
|
561
|
-
let { basename: n, navigator: a } = p.useContext(ee), { hash: r, pathname: o, search: s } =
|
|
561
|
+
let { basename: n, navigator: a } = p.useContext(ee), { hash: r, pathname: o, search: s } = Ue(e, { relative: t }), l = o;
|
|
562
562
|
return n !== "/" && (l = o === "/" ? n : oe([n, o])), a.createHref({ pathname: l, search: s, hash: r });
|
|
563
563
|
}
|
|
564
564
|
function $e() {
|
|
565
|
-
return p.useContext(
|
|
565
|
+
return p.useContext(Ie) != null;
|
|
566
566
|
}
|
|
567
567
|
function te() {
|
|
568
568
|
return M(
|
|
@@ -570,7 +570,7 @@ function te() {
|
|
|
570
570
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
571
571
|
// router loaded. We can help them understand how to avoid that.
|
|
572
572
|
"useLocation() may be used only in the context of a <Router> component."
|
|
573
|
-
), p.useContext(
|
|
573
|
+
), p.useContext(Ie).location;
|
|
574
574
|
}
|
|
575
575
|
var ln = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
576
576
|
function cn(e) {
|
|
@@ -578,9 +578,9 @@ function cn(e) {
|
|
|
578
578
|
}
|
|
579
579
|
function ve() {
|
|
580
580
|
let { isDataRoute: e } = p.useContext(ae);
|
|
581
|
-
return e ?
|
|
581
|
+
return e ? Ua() : Na();
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Na() {
|
|
584
584
|
M(
|
|
585
585
|
$e(),
|
|
586
586
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -619,10 +619,10 @@ function Ca() {
|
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
621
|
var un = p.createContext(null);
|
|
622
|
-
function
|
|
622
|
+
function Ca() {
|
|
623
623
|
return p.useContext(un);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function ja(e) {
|
|
626
626
|
let t = p.useContext(ae).outlet;
|
|
627
627
|
return p.useMemo(
|
|
628
628
|
() => t && /* @__PURE__ */ p.createElement(un.Provider, { value: e }, t),
|
|
@@ -633,7 +633,7 @@ function dn() {
|
|
|
633
633
|
let { matches: e } = p.useContext(ae), t = e[e.length - 1];
|
|
634
634
|
return t ? t.params : {};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Ue(e, { relative: t } = {}) {
|
|
637
637
|
let { matches: n } = p.useContext(ae), { pathname: a } = te(), r = JSON.stringify(yt(n));
|
|
638
638
|
return p.useMemo(
|
|
639
639
|
() => Ge(
|
|
@@ -645,7 +645,7 @@ function Ie(e, { relative: t } = {}) {
|
|
|
645
645
|
[e, r, a, t]
|
|
646
646
|
);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Sa(e, t) {
|
|
649
649
|
return pn(e, t);
|
|
650
650
|
}
|
|
651
651
|
function pn(e, t, n) {
|
|
@@ -688,7 +688,7 @@ Please change the parent <Route path="${m}"> to <Route path="${m === "/" ? "*" :
|
|
|
688
688
|
_ == null || _[_.length - 1].route.element !== void 0 || _[_.length - 1].route.Component !== void 0 || _[_.length - 1].route.lazy !== void 0,
|
|
689
689
|
`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
690
690
|
);
|
|
691
|
-
let f =
|
|
691
|
+
let f = Ta(
|
|
692
692
|
_ && _.map(
|
|
693
693
|
(m) => Object.assign({}, m, {
|
|
694
694
|
params: Object.assign({}, s, m.params),
|
|
@@ -718,7 +718,7 @@ Please change the parent <Route path="${m}"> to <Route path="${m === "/" ? "*" :
|
|
|
718
718
|
n
|
|
719
719
|
);
|
|
720
720
|
return t && f ? /* @__PURE__ */ p.createElement(
|
|
721
|
-
|
|
721
|
+
Ie.Provider,
|
|
722
722
|
{
|
|
723
723
|
value: {
|
|
724
724
|
location: {
|
|
@@ -737,14 +737,14 @@ Please change the parent <Route path="${m}"> to <Route path="${m === "/" ? "*" :
|
|
|
737
737
|
f
|
|
738
738
|
) : f;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
let e = Ia(), t =
|
|
740
|
+
function Pa() {
|
|
741
|
+
let e = Ia(), t = ma(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, s = null;
|
|
742
742
|
return console.error(
|
|
743
743
|
"Error handled by React Router default ErrorBoundary:",
|
|
744
744
|
e
|
|
745
745
|
), s = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ p.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ p.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ p.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ p.createElement("pre", { style: r }, n) : null, s);
|
|
746
746
|
}
|
|
747
|
-
var
|
|
747
|
+
var xa = /* @__PURE__ */ p.createElement(Pa, null), hn = class extends p.Component {
|
|
748
748
|
constructor(e) {
|
|
749
749
|
super(e), this.state = {
|
|
750
750
|
location: e.location,
|
|
@@ -785,18 +785,18 @@ var La = /* @__PURE__ */ p.createElement(xa, null), hn = class extends p.Compone
|
|
|
785
785
|
children: this.props.component
|
|
786
786
|
}
|
|
787
787
|
)) : this.props.children;
|
|
788
|
-
return this.context ? /* @__PURE__ */ p.createElement(
|
|
788
|
+
return this.context ? /* @__PURE__ */ p.createElement(La, { error: e }, t) : t;
|
|
789
789
|
}
|
|
790
790
|
};
|
|
791
791
|
hn.contextType = rn;
|
|
792
792
|
var tt = /* @__PURE__ */ new WeakMap();
|
|
793
|
-
function
|
|
793
|
+
function La({
|
|
794
794
|
children: e,
|
|
795
795
|
error: t
|
|
796
796
|
}) {
|
|
797
797
|
let { basename: n } = p.useContext(ee);
|
|
798
798
|
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
799
|
-
let a =
|
|
799
|
+
let a = ka(t.digest);
|
|
800
800
|
if (a) {
|
|
801
801
|
let r = tt.get(t);
|
|
802
802
|
if (r) throw r;
|
|
@@ -823,11 +823,11 @@ function $a({
|
|
|
823
823
|
}
|
|
824
824
|
return e;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function $a({ routeContext: e, match: t, children: n }) {
|
|
827
827
|
let a = p.useContext(Le);
|
|
828
828
|
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(ae.Provider, { value: e }, n);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Ta(e, t = [], n) {
|
|
831
831
|
let a = n?.state;
|
|
832
832
|
if (e == null) {
|
|
833
833
|
if (!a)
|
|
@@ -872,22 +872,22 @@ function Aa(e, t = [], n) {
|
|
|
872
872
|
c(h, {
|
|
873
873
|
location: a.location,
|
|
874
874
|
params: a.matches?.[0]?.params ?? {},
|
|
875
|
-
unstable_pattern:
|
|
875
|
+
unstable_pattern: fa(a.matches),
|
|
876
876
|
errorInfo: d
|
|
877
877
|
});
|
|
878
878
|
} : void 0;
|
|
879
879
|
return r.reduceRight(
|
|
880
880
|
(h, d, v) => {
|
|
881
881
|
let b, _ = !1, f = null, m = null;
|
|
882
|
-
a && (b = o && d.route.id ? o[d.route.id] : void 0, f = d.route.errorElement ||
|
|
882
|
+
a && (b = o && d.route.id ? o[d.route.id] : void 0, f = d.route.errorElement || xa, s && (l < 0 && v === 0 ? (mn(
|
|
883
883
|
"route-fallback",
|
|
884
884
|
!1,
|
|
885
885
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
886
886
|
), _ = !0, m = null) : l === v && (_ = !0, m = d.route.hydrateFallbackElement || null)));
|
|
887
887
|
let C = t.concat(r.slice(0, v + 1)), w = () => {
|
|
888
|
-
let
|
|
889
|
-
return b ?
|
|
890
|
-
|
|
888
|
+
let E;
|
|
889
|
+
return b ? E = f : _ ? E = m : d.route.Component ? E = /* @__PURE__ */ p.createElement(d.route.Component, null) : d.route.element ? E = d.route.element : E = h, /* @__PURE__ */ p.createElement(
|
|
890
|
+
$a,
|
|
891
891
|
{
|
|
892
892
|
match: d,
|
|
893
893
|
routeContext: {
|
|
@@ -895,7 +895,7 @@ function Aa(e, t = [], n) {
|
|
|
895
895
|
matches: C,
|
|
896
896
|
isDataRoute: a != null
|
|
897
897
|
},
|
|
898
|
-
children:
|
|
898
|
+
children: E
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
901
|
};
|
|
@@ -918,33 +918,33 @@ function Aa(e, t = [], n) {
|
|
|
918
918
|
function vt(e) {
|
|
919
919
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Aa(e) {
|
|
922
922
|
let t = p.useContext(Le);
|
|
923
923
|
return M(t, vt(e)), t;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function Oa(e) {
|
|
926
926
|
let t = p.useContext(ze);
|
|
927
927
|
return M(t, vt(e)), t;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Da(e) {
|
|
930
930
|
let t = p.useContext(ae);
|
|
931
931
|
return M(t, vt(e)), t;
|
|
932
932
|
}
|
|
933
933
|
function bt(e) {
|
|
934
|
-
let t =
|
|
934
|
+
let t = Da(e), n = t.matches[t.matches.length - 1];
|
|
935
935
|
return M(
|
|
936
936
|
n.route.id,
|
|
937
937
|
`${e} can only be used on routes that contain a unique "id"`
|
|
938
938
|
), n.route.id;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Fa() {
|
|
941
941
|
return bt(
|
|
942
942
|
"useRouteId"
|
|
943
943
|
/* UseRouteId */
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
946
|
function Ia() {
|
|
947
|
-
let e = p.useContext(gt), t =
|
|
947
|
+
let e = p.useContext(gt), t = Oa(
|
|
948
948
|
"useRouteError"
|
|
949
949
|
/* UseRouteError */
|
|
950
950
|
), n = bt(
|
|
@@ -953,8 +953,8 @@ function Ia() {
|
|
|
953
953
|
);
|
|
954
954
|
return e !== void 0 ? e : t.errors?.[n];
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
let { router: e } =
|
|
956
|
+
function Ua() {
|
|
957
|
+
let { router: e } = Aa(
|
|
958
958
|
"useNavigate"
|
|
959
959
|
/* UseNavigateStable */
|
|
960
960
|
), t = bt(
|
|
@@ -974,8 +974,8 @@ var Tt = {};
|
|
|
974
974
|
function mn(e, t, n) {
|
|
975
975
|
!t && !Tt[e] && (Tt[e] = !0, Z(!1, n));
|
|
976
976
|
}
|
|
977
|
-
p.memo(
|
|
978
|
-
function
|
|
977
|
+
p.memo(Ma);
|
|
978
|
+
function Ma({
|
|
979
979
|
routes: e,
|
|
980
980
|
future: t,
|
|
981
981
|
state: n,
|
|
@@ -1012,7 +1012,7 @@ function fn({
|
|
|
1012
1012
|
}, [l, u, a, t, n]), null;
|
|
1013
1013
|
}
|
|
1014
1014
|
function yn(e) {
|
|
1015
|
-
return
|
|
1015
|
+
return ja(e.context);
|
|
1016
1016
|
}
|
|
1017
1017
|
function Q(e) {
|
|
1018
1018
|
M(
|
|
@@ -1020,7 +1020,7 @@ function Q(e) {
|
|
|
1020
1020
|
"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."
|
|
1021
1021
|
);
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Ba({
|
|
1024
1024
|
basename: e = "/",
|
|
1025
1025
|
children: t = null,
|
|
1026
1026
|
location: n,
|
|
@@ -1077,13 +1077,13 @@ function Ha({
|
|
|
1077
1077
|
return Z(
|
|
1078
1078
|
f != null,
|
|
1079
1079
|
`<Router basename="${l}"> is not able to match the URL "${u}${h}${d}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1080
|
-
), f == null ? null : /* @__PURE__ */ p.createElement(ee.Provider, { value: c }, /* @__PURE__ */ p.createElement(
|
|
1080
|
+
), f == null ? null : /* @__PURE__ */ p.createElement(ee.Provider, { value: c }, /* @__PURE__ */ p.createElement(Ie.Provider, { children: t, value: f }));
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Ha({
|
|
1083
1083
|
children: e,
|
|
1084
1084
|
location: t
|
|
1085
1085
|
}) {
|
|
1086
|
-
return
|
|
1086
|
+
return Sa(lt(e), t);
|
|
1087
1087
|
}
|
|
1088
1088
|
function lt(e, t = []) {
|
|
1089
1089
|
let n = [];
|
|
@@ -1134,22 +1134,22 @@ var We = "get", Je = "application/x-www-form-urlencoded";
|
|
|
1134
1134
|
function Ye(e) {
|
|
1135
1135
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Wa(e) {
|
|
1138
1138
|
return Ye(e) && e.tagName.toLowerCase() === "button";
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Ja(e) {
|
|
1141
1141
|
return Ye(e) && e.tagName.toLowerCase() === "form";
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function qa(e) {
|
|
1144
1144
|
return Ye(e) && e.tagName.toLowerCase() === "input";
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function Ka(e) {
|
|
1147
1147
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function Va(e, t) {
|
|
1150
1150
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1151
1151
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1152
|
-
!
|
|
1152
|
+
!Ka(e);
|
|
1153
1153
|
}
|
|
1154
1154
|
function ct(e = "") {
|
|
1155
1155
|
return new URLSearchParams(
|
|
@@ -1161,7 +1161,7 @@ function ct(e = "") {
|
|
|
1161
1161
|
}, [])
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Ga(e, t) {
|
|
1165
1165
|
let n = ct(e);
|
|
1166
1166
|
return t && t.forEach((a, r) => {
|
|
1167
1167
|
n.has(r) || t.getAll(r).forEach((o) => {
|
|
@@ -1170,7 +1170,7 @@ function za(e, t) {
|
|
|
1170
1170
|
}), n;
|
|
1171
1171
|
}
|
|
1172
1172
|
var Be = null;
|
|
1173
|
-
function
|
|
1173
|
+
function za() {
|
|
1174
1174
|
if (Be === null)
|
|
1175
1175
|
try {
|
|
1176
1176
|
new FormData(
|
|
@@ -1183,30 +1183,30 @@ function Ya() {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
return Be;
|
|
1185
1185
|
}
|
|
1186
|
-
var
|
|
1186
|
+
var Ya = /* @__PURE__ */ new Set([
|
|
1187
1187
|
"application/x-www-form-urlencoded",
|
|
1188
1188
|
"multipart/form-data",
|
|
1189
1189
|
"text/plain"
|
|
1190
1190
|
]);
|
|
1191
1191
|
function nt(e) {
|
|
1192
|
-
return e != null && !
|
|
1192
|
+
return e != null && !Ya.has(e) ? (Z(
|
|
1193
1193
|
!1,
|
|
1194
1194
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Je}"`
|
|
1195
1195
|
), null) : e;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Qa(e, t) {
|
|
1198
1198
|
let n, a, r, o, s;
|
|
1199
|
-
if (
|
|
1199
|
+
if (Ja(e)) {
|
|
1200
1200
|
let l = e.getAttribute("action");
|
|
1201
1201
|
a = l ? de(l, t) : null, n = e.getAttribute("method") || We, r = nt(e.getAttribute("enctype")) || Je, o = new FormData(e);
|
|
1202
|
-
} else if (
|
|
1202
|
+
} else if (Wa(e) || qa(e) && (e.type === "submit" || e.type === "image")) {
|
|
1203
1203
|
let l = e.form;
|
|
1204
1204
|
if (l == null)
|
|
1205
1205
|
throw new Error(
|
|
1206
1206
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1207
1207
|
);
|
|
1208
1208
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
1209
|
-
if (a = c ? de(c, t) : null, n = e.getAttribute("formmethod") || l.getAttribute("method") || We, r = nt(e.getAttribute("formenctype")) || nt(l.getAttribute("enctype")) || Je, o = new FormData(l, e), !
|
|
1209
|
+
if (a = c ? de(c, t) : null, n = e.getAttribute("formmethod") || l.getAttribute("method") || We, r = nt(e.getAttribute("formenctype")) || nt(l.getAttribute("enctype")) || Je, o = new FormData(l, e), !za()) {
|
|
1210
1210
|
let { name: u, type: h, value: d } = e;
|
|
1211
1211
|
if (h === "image") {
|
|
1212
1212
|
let v = u ? `${u}.` : "";
|
|
@@ -1236,7 +1236,7 @@ function gn(e, t, n, a) {
|
|
|
1236
1236
|
) : e;
|
|
1237
1237
|
return n ? r.pathname.endsWith("/") ? r.pathname = `${r.pathname}_.${a}` : r.pathname = `${r.pathname}.${a}` : r.pathname === "/" ? r.pathname = `_root.${a}` : t && de(r.pathname, t) === "/" ? r.pathname = `${Ve(t)}/_root.${a}` : r.pathname = `${Ve(r.pathname)}.${a}`, r;
|
|
1238
1238
|
}
|
|
1239
|
-
async function
|
|
1239
|
+
async function Xa(e, t) {
|
|
1240
1240
|
if (e.id in t)
|
|
1241
1241
|
return t[e.id];
|
|
1242
1242
|
try {
|
|
@@ -1253,22 +1253,22 @@ async function Za(e, t) {
|
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Za(e) {
|
|
1257
1257
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1258
1258
|
}
|
|
1259
|
-
async function
|
|
1259
|
+
async function er(e, t, n) {
|
|
1260
1260
|
let a = await Promise.all(
|
|
1261
1261
|
e.map(async (r) => {
|
|
1262
1262
|
let o = t.routes[r.route.id];
|
|
1263
1263
|
if (o) {
|
|
1264
|
-
let s = await
|
|
1264
|
+
let s = await Xa(o, n);
|
|
1265
1265
|
return s.links ? s.links() : [];
|
|
1266
1266
|
}
|
|
1267
1267
|
return [];
|
|
1268
1268
|
})
|
|
1269
1269
|
);
|
|
1270
|
-
return
|
|
1271
|
-
a.flat(1).filter(
|
|
1270
|
+
return rr(
|
|
1271
|
+
a.flat(1).filter(Za).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
|
|
1272
1272
|
(r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
|
|
1273
1273
|
)
|
|
1274
1274
|
);
|
|
@@ -1305,8 +1305,8 @@ function At(e, t, n, a, r, o) {
|
|
|
1305
1305
|
return !0;
|
|
1306
1306
|
}) : [];
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1308
|
+
function tr(e, t, { includeHydrateFallback: n } = {}) {
|
|
1309
|
+
return nr(
|
|
1310
1310
|
e.map((a) => {
|
|
1311
1311
|
let r = t.routes[a.route.id];
|
|
1312
1312
|
if (!r) return [];
|
|
@@ -1315,19 +1315,19 @@ function nr(e, t, { includeHydrateFallback: n } = {}) {
|
|
|
1315
1315
|
}).flat(1)
|
|
1316
1316
|
);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function nr(e) {
|
|
1319
1319
|
return [...new Set(e)];
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function ar(e) {
|
|
1322
1322
|
let t = {}, n = Object.keys(e).sort();
|
|
1323
1323
|
for (let a of n)
|
|
1324
1324
|
t[a] = e[a];
|
|
1325
1325
|
return t;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function rr(e, t) {
|
|
1328
1328
|
let n = /* @__PURE__ */ new Set();
|
|
1329
1329
|
return new Set(t), e.reduce((a, r) => {
|
|
1330
|
-
let o = JSON.stringify(
|
|
1330
|
+
let o = JSON.stringify(ar(r));
|
|
1331
1331
|
return n.has(o) || (n.add(o), a.push({ key: o, link: r })), a;
|
|
1332
1332
|
}, []);
|
|
1333
1333
|
}
|
|
@@ -1338,7 +1338,7 @@ function _t() {
|
|
|
1338
1338
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1339
1339
|
), e;
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function or() {
|
|
1342
1342
|
let e = p.useContext(ze);
|
|
1343
1343
|
return wt(
|
|
1344
1344
|
e,
|
|
@@ -1347,14 +1347,14 @@ function ir() {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
var kt = p.createContext(void 0);
|
|
1349
1349
|
kt.displayName = "FrameworkContext";
|
|
1350
|
-
function
|
|
1350
|
+
function Et() {
|
|
1351
1351
|
let e = p.useContext(kt);
|
|
1352
1352
|
return wt(
|
|
1353
1353
|
e,
|
|
1354
1354
|
"You must render this element inside a <HydratedRouter> element"
|
|
1355
1355
|
), e;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function ir(e, t) {
|
|
1358
1358
|
let n = p.useContext(kt), [a, r] = p.useState(!1), [o, s] = p.useState(!1), { onFocus: l, onBlur: c, onMouseEnter: u, onMouseLeave: h, onTouchStart: d } = t, v = p.useRef(null);
|
|
1359
1359
|
p.useEffect(() => {
|
|
1360
1360
|
if (e === "render" && s(!0), e === "viewport") {
|
|
@@ -1399,18 +1399,18 @@ function Ae(e, t) {
|
|
|
1399
1399
|
e && e(n), n.defaultPrevented || t(n);
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
let n =
|
|
1402
|
+
function sr({ page: e, ...t }) {
|
|
1403
|
+
let n = ga(), { router: a } = _t(), r = p.useMemo(
|
|
1404
1404
|
() => Qt(a.routes, e, a.basename),
|
|
1405
1405
|
[a.routes, e, a.basename]
|
|
1406
1406
|
);
|
|
1407
|
-
return r ? n ? /* @__PURE__ */ p.createElement(
|
|
1407
|
+
return r ? n ? /* @__PURE__ */ p.createElement(cr, { page: e, matches: r, ...t }) : /* @__PURE__ */ p.createElement(ur, { page: e, matches: r, ...t }) : null;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
let { manifest: t, routeModules: n } =
|
|
1409
|
+
function lr(e) {
|
|
1410
|
+
let { manifest: t, routeModules: n } = Et(), [a, r] = p.useState([]);
|
|
1411
1411
|
return p.useEffect(() => {
|
|
1412
1412
|
let o = !1;
|
|
1413
|
-
return
|
|
1413
|
+
return er(e, t, n).then(
|
|
1414
1414
|
(s) => {
|
|
1415
1415
|
o || r(s);
|
|
1416
1416
|
}
|
|
@@ -1419,12 +1419,12 @@ function cr(e) {
|
|
|
1419
1419
|
};
|
|
1420
1420
|
}, [e, t, n]), a;
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function cr({
|
|
1423
1423
|
page: e,
|
|
1424
1424
|
matches: t,
|
|
1425
1425
|
...n
|
|
1426
1426
|
}) {
|
|
1427
|
-
let a = te(), { future: r } =
|
|
1427
|
+
let a = te(), { future: r } = Et(), { basename: o } = _t(), s = p.useMemo(() => {
|
|
1428
1428
|
if (e === a.pathname + a.search + a.hash)
|
|
1429
1429
|
return [];
|
|
1430
1430
|
let l = gn(
|
|
@@ -1445,12 +1445,12 @@ function ur({
|
|
|
1445
1445
|
]);
|
|
1446
1446
|
return /* @__PURE__ */ p.createElement(p.Fragment, null, s.map((l) => /* @__PURE__ */ p.createElement("link", { key: l, rel: "prefetch", as: "fetch", href: l, ...n })));
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function ur({
|
|
1449
1449
|
page: e,
|
|
1450
1450
|
matches: t,
|
|
1451
1451
|
...n
|
|
1452
1452
|
}) {
|
|
1453
|
-
let a = te(), { future: r, manifest: o, routeModules: s } =
|
|
1453
|
+
let a = te(), { future: r, manifest: o, routeModules: s } = Et(), { basename: l } = _t(), { loaderData: c, matches: u } = or(), h = p.useMemo(
|
|
1454
1454
|
() => At(
|
|
1455
1455
|
e,
|
|
1456
1456
|
t,
|
|
@@ -1475,8 +1475,8 @@ function dr({
|
|
|
1475
1475
|
return [];
|
|
1476
1476
|
let f = /* @__PURE__ */ new Set(), m = !1;
|
|
1477
1477
|
if (t.forEach((w) => {
|
|
1478
|
-
let
|
|
1479
|
-
!
|
|
1478
|
+
let E = o.routes[w.route.id];
|
|
1479
|
+
!E || !E.hasLoader || (!h.some(($) => $.route.id === w.route.id) && w.route.id in c && s[w.route.id]?.shouldRevalidate || E.hasClientLoader ? m = !0 : f.add(w.route.id));
|
|
1480
1480
|
}), f.size === 0)
|
|
1481
1481
|
return [];
|
|
1482
1482
|
let C = gn(
|
|
@@ -1500,9 +1500,9 @@ function dr({
|
|
|
1500
1500
|
e,
|
|
1501
1501
|
s
|
|
1502
1502
|
]), b = p.useMemo(
|
|
1503
|
-
() =>
|
|
1503
|
+
() => tr(d, o),
|
|
1504
1504
|
[d, o]
|
|
1505
|
-
), _ =
|
|
1505
|
+
), _ = lr(d);
|
|
1506
1506
|
return /* @__PURE__ */ p.createElement(p.Fragment, null, v.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), b.map((f) => /* @__PURE__ */ p.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), _.map(({ key: f, link: m }) => (
|
|
1507
1507
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1508
1508
|
// already with their own props
|
|
@@ -1517,27 +1517,27 @@ function dr({
|
|
|
1517
1517
|
)
|
|
1518
1518
|
)));
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function dr(...e) {
|
|
1521
1521
|
return (t) => {
|
|
1522
1522
|
e.forEach((n) => {
|
|
1523
1523
|
typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
1524
1524
|
});
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1527
|
+
var pr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1528
1528
|
try {
|
|
1529
|
-
|
|
1529
|
+
pr && (window.__reactRouterVersion = // @ts-expect-error
|
|
1530
1530
|
"7.14.1");
|
|
1531
1531
|
} catch {
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function hr({
|
|
1534
1534
|
basename: e,
|
|
1535
1535
|
children: t,
|
|
1536
1536
|
unstable_useTransitions: n,
|
|
1537
1537
|
window: a
|
|
1538
1538
|
}) {
|
|
1539
1539
|
let r = p.useRef();
|
|
1540
|
-
r.current == null && (r.current =
|
|
1540
|
+
r.current == null && (r.current = Jn({ window: a, v5Compat: !0 }));
|
|
1541
1541
|
let o = r.current, [s, l] = p.useState({
|
|
1542
1542
|
action: o.action,
|
|
1543
1543
|
location: o.location
|
|
@@ -1548,7 +1548,7 @@ function mr({
|
|
|
1548
1548
|
[n]
|
|
1549
1549
|
);
|
|
1550
1550
|
return p.useLayoutEffect(() => o.listen(c), [o, c]), /* @__PURE__ */ p.createElement(
|
|
1551
|
-
|
|
1551
|
+
Ba,
|
|
1552
1552
|
{
|
|
1553
1553
|
basename: e,
|
|
1554
1554
|
children: t,
|
|
@@ -1576,9 +1576,9 @@ var vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, me = p.forwardRef(
|
|
|
1576
1576
|
unstable_defaultShouldRevalidate: b,
|
|
1577
1577
|
..._
|
|
1578
1578
|
}, f) {
|
|
1579
|
-
let { basename: m, navigator: C, unstable_useTransitions: w } = p.useContext(ee),
|
|
1579
|
+
let { basename: m, navigator: C, unstable_useTransitions: w } = p.useContext(ee), E = typeof h == "string" && vn.test(h), $ = nn(h, m);
|
|
1580
1580
|
h = $.to;
|
|
1581
|
-
let x =
|
|
1581
|
+
let x = Ra(h, { relative: r }), F = te(), J = null;
|
|
1582
1582
|
if (l) {
|
|
1583
1583
|
let T = Ge(
|
|
1584
1584
|
l,
|
|
@@ -1588,10 +1588,10 @@ var vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, me = p.forwardRef(
|
|
|
1588
1588
|
);
|
|
1589
1589
|
m !== "/" && (T.pathname = T.pathname === "/" ? m : oe([m, T.pathname])), J = C.createHref(T);
|
|
1590
1590
|
}
|
|
1591
|
-
let [H, P, A] =
|
|
1591
|
+
let [H, P, A] = ir(
|
|
1592
1592
|
a,
|
|
1593
1593
|
_
|
|
1594
|
-
), B =
|
|
1594
|
+
), B = gr(h, {
|
|
1595
1595
|
replace: s,
|
|
1596
1596
|
unstable_mask: l,
|
|
1597
1597
|
state: c,
|
|
@@ -1605,26 +1605,26 @@ var vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, me = p.forwardRef(
|
|
|
1605
1605
|
function k(T) {
|
|
1606
1606
|
t && t(T), T.defaultPrevented || B(T);
|
|
1607
1607
|
}
|
|
1608
|
-
let
|
|
1608
|
+
let I = !($.isExternal || o), W = (
|
|
1609
1609
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1610
1610
|
/* @__PURE__ */ p.createElement(
|
|
1611
1611
|
"a",
|
|
1612
1612
|
{
|
|
1613
1613
|
..._,
|
|
1614
1614
|
...A,
|
|
1615
|
-
href: (
|
|
1616
|
-
onClick:
|
|
1617
|
-
ref:
|
|
1615
|
+
href: (I ? J : void 0) || $.absoluteURL || x,
|
|
1616
|
+
onClick: I ? k : t,
|
|
1617
|
+
ref: dr(f, P),
|
|
1618
1618
|
target: u,
|
|
1619
|
-
"data-discover": !
|
|
1619
|
+
"data-discover": !E && n === "render" ? "true" : void 0
|
|
1620
1620
|
}
|
|
1621
1621
|
)
|
|
1622
1622
|
);
|
|
1623
|
-
return H && !
|
|
1623
|
+
return H && !E ? /* @__PURE__ */ p.createElement(p.Fragment, null, W, /* @__PURE__ */ p.createElement(sr, { page: x })) : W;
|
|
1624
1624
|
}
|
|
1625
1625
|
);
|
|
1626
1626
|
me.displayName = "Link";
|
|
1627
|
-
var
|
|
1627
|
+
var mr = p.forwardRef(
|
|
1628
1628
|
function({
|
|
1629
1629
|
"aria-current": t = "page",
|
|
1630
1630
|
caseSensitive: n = !1,
|
|
@@ -1636,12 +1636,12 @@ var fr = p.forwardRef(
|
|
|
1636
1636
|
children: c,
|
|
1637
1637
|
...u
|
|
1638
1638
|
}, h) {
|
|
1639
|
-
let d =
|
|
1639
|
+
let d = Ue(s, { relative: u.relative }), v = te(), b = p.useContext(ze), { navigator: _, basename: f } = p.useContext(ee), m = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1640
1640
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1641
|
-
|
|
1642
|
-
n || (w = w.toLowerCase(),
|
|
1641
|
+
kr(d) && l === !0, C = _.encodeLocation ? _.encodeLocation(d).pathname : d.pathname, w = v.pathname, E = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
1642
|
+
n || (w = w.toLowerCase(), E = E ? E.toLowerCase() : null, C = C.toLowerCase()), E && f && (E = de(E, f) || E);
|
|
1643
1643
|
const $ = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
|
|
1644
|
-
let x = w === C || !r && w.startsWith(C) && w.charAt($) === "/", F =
|
|
1644
|
+
let x = w === C || !r && w.startsWith(C) && w.charAt($) === "/", F = E != null && (E === C || !r && E.startsWith(C) && E.charAt(C.length) === "/"), J = {
|
|
1645
1645
|
isActive: x,
|
|
1646
1646
|
isPending: F,
|
|
1647
1647
|
isTransitioning: m
|
|
@@ -1668,8 +1668,8 @@ var fr = p.forwardRef(
|
|
|
1668
1668
|
);
|
|
1669
1669
|
}
|
|
1670
1670
|
);
|
|
1671
|
-
|
|
1672
|
-
var
|
|
1671
|
+
mr.displayName = "NavLink";
|
|
1672
|
+
var fr = p.forwardRef(
|
|
1673
1673
|
({
|
|
1674
1674
|
discover: e = "render",
|
|
1675
1675
|
fetcherKey: t,
|
|
@@ -1686,7 +1686,7 @@ var yr = p.forwardRef(
|
|
|
1686
1686
|
unstable_defaultShouldRevalidate: v,
|
|
1687
1687
|
...b
|
|
1688
1688
|
}, _) => {
|
|
1689
|
-
let { unstable_useTransitions: f } = p.useContext(ee), m =
|
|
1689
|
+
let { unstable_useTransitions: f } = p.useContext(ee), m = wr(), C = _r(l, { relative: u }), w = s.toLowerCase() === "get" ? "get" : "post", E = typeof l == "string" && vn.test(l), $ = (x) => {
|
|
1690
1690
|
if (c && c(x), x.defaultPrevented) return;
|
|
1691
1691
|
x.preventDefault();
|
|
1692
1692
|
let F = x.nativeEvent.submitter, J = F?.getAttribute("formmethod") || s, H = () => m(F || x.currentTarget, {
|
|
@@ -1710,20 +1710,20 @@ var yr = p.forwardRef(
|
|
|
1710
1710
|
action: C,
|
|
1711
1711
|
onSubmit: a ? c : $,
|
|
1712
1712
|
...b,
|
|
1713
|
-
"data-discover": !
|
|
1713
|
+
"data-discover": !E && e === "render" ? "true" : void 0
|
|
1714
1714
|
}
|
|
1715
1715
|
);
|
|
1716
1716
|
}
|
|
1717
1717
|
);
|
|
1718
|
-
|
|
1719
|
-
function
|
|
1718
|
+
fr.displayName = "Form";
|
|
1719
|
+
function yr(e) {
|
|
1720
1720
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1721
1721
|
}
|
|
1722
1722
|
function bn(e) {
|
|
1723
1723
|
let t = p.useContext(Le);
|
|
1724
|
-
return M(t,
|
|
1724
|
+
return M(t, yr(e)), t;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function gr(e, {
|
|
1727
1727
|
target: t,
|
|
1728
1728
|
replace: n,
|
|
1729
1729
|
unstable_mask: a,
|
|
@@ -1734,10 +1734,10 @@ function vr(e, {
|
|
|
1734
1734
|
unstable_defaultShouldRevalidate: c,
|
|
1735
1735
|
unstable_useTransitions: u
|
|
1736
1736
|
} = {}) {
|
|
1737
|
-
let h = ve(), d = te(), v =
|
|
1737
|
+
let h = ve(), d = te(), v = Ue(e, { relative: s });
|
|
1738
1738
|
return p.useCallback(
|
|
1739
1739
|
(b) => {
|
|
1740
|
-
if (
|
|
1740
|
+
if (Va(b, t)) {
|
|
1741
1741
|
b.preventDefault();
|
|
1742
1742
|
let _ = n !== void 0 ? n : Oe(d) === Oe(v), f = () => h(e, {
|
|
1743
1743
|
replace: _,
|
|
@@ -1778,7 +1778,7 @@ function wn(e) {
|
|
|
1778
1778
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1779
1779
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
1780
1780
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
1781
|
-
|
|
1781
|
+
Ga(
|
|
1782
1782
|
a.search,
|
|
1783
1783
|
n.current ? null : t.current
|
|
1784
1784
|
)
|
|
@@ -1795,20 +1795,20 @@ function wn(e) {
|
|
|
1795
1795
|
);
|
|
1796
1796
|
return [r, s];
|
|
1797
1797
|
}
|
|
1798
|
-
var
|
|
1799
|
-
function
|
|
1798
|
+
var vr = 0, br = () => `__${String(++vr)}__`;
|
|
1799
|
+
function wr() {
|
|
1800
1800
|
let { router: e } = bn(
|
|
1801
1801
|
"useSubmit"
|
|
1802
1802
|
/* UseSubmit */
|
|
1803
|
-
), { basename: t } = p.useContext(ee), n =
|
|
1803
|
+
), { basename: t } = p.useContext(ee), n = Fa(), a = e.fetch, r = e.navigate;
|
|
1804
1804
|
return p.useCallback(
|
|
1805
1805
|
async (o, s = {}) => {
|
|
1806
|
-
let { action: l, method: c, encType: u, formData: h, body: d } =
|
|
1806
|
+
let { action: l, method: c, encType: u, formData: h, body: d } = Qa(
|
|
1807
1807
|
o,
|
|
1808
1808
|
t
|
|
1809
1809
|
);
|
|
1810
1810
|
if (s.navigate === !1) {
|
|
1811
|
-
let v = s.fetcherKey ||
|
|
1811
|
+
let v = s.fetcherKey || br();
|
|
1812
1812
|
await a(v, n, s.action || l, {
|
|
1813
1813
|
unstable_defaultShouldRevalidate: s.unstable_defaultShouldRevalidate,
|
|
1814
1814
|
preventScrollReset: s.preventScrollReset,
|
|
@@ -1836,10 +1836,10 @@ function _r() {
|
|
|
1836
1836
|
[a, r, t, n]
|
|
1837
1837
|
);
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function _r(e, { relative: t } = {}) {
|
|
1840
1840
|
let { basename: n } = p.useContext(ee), a = p.useContext(ae);
|
|
1841
1841
|
M(a, "useFormAction must be used inside a RouteContext");
|
|
1842
|
-
let [r] = a.matches.slice(-1), o = { ...
|
|
1842
|
+
let [r] = a.matches.slice(-1), o = { ...Ue(e || ".", { relative: t }) }, s = te();
|
|
1843
1843
|
if (e == null) {
|
|
1844
1844
|
o.search = s.search;
|
|
1845
1845
|
let l = new URLSearchParams(o.search), c = l.getAll("index");
|
|
@@ -1851,7 +1851,7 @@ function kr(e, { relative: t } = {}) {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return (!e || e === ".") && r.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : oe([n, o.pathname])), Oe(o);
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function kr(e, { relative: t } = {}) {
|
|
1855
1855
|
let n = p.useContext(on);
|
|
1856
1856
|
M(
|
|
1857
1857
|
n != null,
|
|
@@ -1860,13 +1860,13 @@ function Rr(e, { relative: t } = {}) {
|
|
|
1860
1860
|
let { basename: a } = bn(
|
|
1861
1861
|
"useViewTransitionState"
|
|
1862
1862
|
/* useViewTransitionState */
|
|
1863
|
-
), r =
|
|
1863
|
+
), r = Ue(e, { relative: t });
|
|
1864
1864
|
if (!n.isTransitioning)
|
|
1865
1865
|
return !1;
|
|
1866
1866
|
let o = de(n.currentLocation.pathname, a) || n.currentLocation.pathname, s = de(n.nextLocation.pathname, a) || n.nextLocation.pathname;
|
|
1867
1867
|
return Ke(r.pathname, s) != null || Ke(r.pathname, o) != null;
|
|
1868
1868
|
}
|
|
1869
|
-
const ut = 25, Er = 200,
|
|
1869
|
+
const ut = 25, Er = 200, Rr = 5e3, Nr = [
|
|
1870
1870
|
"[data-telemetry]",
|
|
1871
1871
|
"button",
|
|
1872
1872
|
"a[href]",
|
|
@@ -1884,27 +1884,27 @@ const ut = 25, Er = 200, Nr = 5e3, Cr = [
|
|
|
1884
1884
|
'input[type="submit"]',
|
|
1885
1885
|
'input[type="button"]'
|
|
1886
1886
|
].join(",");
|
|
1887
|
-
let _n = "/jobplatform/api/telemetry", kn = "jobplatform", dt = "",
|
|
1887
|
+
let _n = "/jobplatform/api/telemetry", kn = "jobplatform", dt = "", Ee = [], Ot, Dt = !1;
|
|
1888
1888
|
function Me(e) {
|
|
1889
1889
|
return e.replace(/\s+/g, " ").trim().slice(0, Er);
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function Cr() {
|
|
1892
1892
|
const e = new Uint8Array(12);
|
|
1893
1893
|
return crypto.getRandomValues(e), Array.from(e, (t) => t.toString(16).padStart(2, "0")).join("");
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function jr() {
|
|
1896
1896
|
return Me(location.hash || location.pathname);
|
|
1897
1897
|
}
|
|
1898
1898
|
function ye(e, t = {}, n = "info") {
|
|
1899
|
-
const a = { route:
|
|
1899
|
+
const a = { route: jr() };
|
|
1900
1900
|
for (const [r, o] of Object.entries(t))
|
|
1901
1901
|
o !== void 0 && (a[r] = typeof o == "string" ? Me(o) : o);
|
|
1902
|
-
|
|
1902
|
+
Ee.push({ event: e, level: n, at: Date.now(), props: a }), Ee.length >= ut && xe();
|
|
1903
1903
|
}
|
|
1904
1904
|
function xe() {
|
|
1905
|
-
if (!dt ||
|
|
1906
|
-
const e =
|
|
1907
|
-
|
|
1905
|
+
if (!dt || Ee.length === 0) return;
|
|
1906
|
+
const e = Ee.slice(0, ut);
|
|
1907
|
+
Ee = Ee.slice(ut), fetch(_n, {
|
|
1908
1908
|
method: "POST",
|
|
1909
1909
|
credentials: "include",
|
|
1910
1910
|
keepalive: !0,
|
|
@@ -1912,25 +1912,25 @@ function xe() {
|
|
|
1912
1912
|
body: JSON.stringify({ app: kn, session: dt, events: e })
|
|
1913
1913
|
}).then((t) => {
|
|
1914
1914
|
t.ok || Ft(`relay answered ${t.status}`);
|
|
1915
|
-
}).catch((t) => Ft(t instanceof Error ? t.message : String(t))),
|
|
1915
|
+
}).catch((t) => Ft(t instanceof Error ? t.message : String(t))), Ee.length > 0 && xe();
|
|
1916
1916
|
}
|
|
1917
1917
|
function Ft(e) {
|
|
1918
1918
|
Dt || (Dt = !0, console.warn(`[telemetry] events not delivered: ${e}`));
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1920
|
+
function Rt(e) {
|
|
1921
1921
|
const t = e.getAttribute("data-telemetry") ?? e.getAttribute("aria-label") ?? e.getAttribute("title") ?? (e instanceof HTMLInputElement ? e.labels?.[0]?.textContent ?? e.name : null) ?? e.innerText ?? e.textContent ?? "";
|
|
1922
1922
|
return Me(t) || e.tagName.toLowerCase();
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function Sr(e) {
|
|
1925
1925
|
const t = e.getAttribute("role");
|
|
1926
1926
|
return t || (e instanceof HTMLInputElement ? `input:${e.type}` : e.tagName.toLowerCase());
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1929
|
-
const t = e.target instanceof Element ? e.target.closest(
|
|
1928
|
+
function It(e) {
|
|
1929
|
+
const t = e.target instanceof Element ? e.target.closest(Nr) : null;
|
|
1930
1930
|
if (!t || t.tagName === "LABEL" && t.control) return;
|
|
1931
1931
|
const n = {
|
|
1932
|
-
label:
|
|
1933
|
-
kind:
|
|
1932
|
+
label: Rt(t),
|
|
1933
|
+
kind: Sr(t),
|
|
1934
1934
|
disabled: t.matches(":disabled") || t.getAttribute("aria-disabled") === "true"
|
|
1935
1935
|
};
|
|
1936
1936
|
if (t instanceof HTMLAnchorElement) {
|
|
@@ -1939,10 +1939,10 @@ function Ut(e) {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
t instanceof HTMLInputElement && (t.type === "checkbox" || t.type === "radio") && (n.checked = t.checked), ye("ui.click", n);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Ut(e) {
|
|
1943
1943
|
const t = e.target;
|
|
1944
1944
|
t instanceof HTMLSelectElement && ye("ui.change", {
|
|
1945
|
-
label:
|
|
1945
|
+
label: Rt(t),
|
|
1946
1946
|
kind: "select",
|
|
1947
1947
|
value: t.selectedOptions[0]?.textContent ?? t.value
|
|
1948
1948
|
});
|
|
@@ -1953,15 +1953,15 @@ function Mt(e) {
|
|
|
1953
1953
|
label: Me(
|
|
1954
1954
|
t.getAttribute("data-telemetry") ?? t.getAttribute("aria-label") ?? t.name ?? ""
|
|
1955
1955
|
),
|
|
1956
|
-
submitter: e.submitter ?
|
|
1956
|
+
submitter: e.submitter ? Rt(e.submitter) : void 0
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
1959
|
function Bt() {
|
|
1960
1960
|
document.visibilityState === "hidden" && xe();
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return kn = t.app, t.endpoint && (_n = t.endpoint), dt =
|
|
1964
|
-
e.removeEventListener("click",
|
|
1962
|
+
function Pr(e, t) {
|
|
1963
|
+
return kn = t.app, t.endpoint && (_n = t.endpoint), dt = Cr(), e.addEventListener("click", It, !0), e.addEventListener("change", Ut, !0), e.addEventListener("submit", Mt, !0), document.addEventListener("visibilitychange", Bt), Ot = setInterval(xe, Rr), ye("app.mounted", { path: location.pathname }), () => {
|
|
1964
|
+
e.removeEventListener("click", It, !0), e.removeEventListener("change", Ut, !0), e.removeEventListener("submit", Mt, !0), document.removeEventListener("visibilitychange", Bt), clearInterval(Ot), ye("app.unmounted"), xe();
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
1967
|
async function O(e, t) {
|
|
@@ -1991,7 +1991,7 @@ function D(e, t = !1) {
|
|
|
1991
1991
|
const n = { Accept: "application/json" };
|
|
1992
1992
|
return t && (n["Content-Type"] = "application/json"), n;
|
|
1993
1993
|
}
|
|
1994
|
-
const Ce = "/jobplatform/api", Ht = ["junior", "mid", "senior", "staff", "principal", "fellow"], Wt = ["manager", "senior_manager", "director", "vp", "cxo"],
|
|
1994
|
+
const Ce = "/jobplatform/api", Ht = ["junior", "mid", "senior", "staff", "principal", "fellow"], Wt = ["manager", "senior_manager", "director", "vp", "cxo"], xr = {
|
|
1995
1995
|
junior: "Junior",
|
|
1996
1996
|
mid: "Mid",
|
|
1997
1997
|
senior: "Senior",
|
|
@@ -2004,7 +2004,7 @@ const Ce = "/jobplatform/api", Ht = ["junior", "mid", "senior", "staff", "princi
|
|
|
2004
2004
|
vp: "VP / Head of",
|
|
2005
2005
|
cxo: "C-level"
|
|
2006
2006
|
};
|
|
2007
|
-
class
|
|
2007
|
+
class Re extends Error {
|
|
2008
2008
|
constructor(t, n) {
|
|
2009
2009
|
super(t), this.status = n, this.name = "ProfilesApiError";
|
|
2010
2010
|
}
|
|
@@ -2012,13 +2012,13 @@ class Ee extends Error {
|
|
|
2012
2012
|
async function je(e) {
|
|
2013
2013
|
const t = await e.json();
|
|
2014
2014
|
if (!e.ok || !t.success || !t.data)
|
|
2015
|
-
throw new
|
|
2015
|
+
throw new Re(
|
|
2016
2016
|
t.message ?? t.error ?? `HTTP ${e.status}`,
|
|
2017
2017
|
e.status
|
|
2018
2018
|
);
|
|
2019
2019
|
return t.data;
|
|
2020
2020
|
}
|
|
2021
|
-
async function
|
|
2021
|
+
async function Lr(e) {
|
|
2022
2022
|
const t = await O(`${Ce}/profiles`, {
|
|
2023
2023
|
method: "GET",
|
|
2024
2024
|
headers: D(),
|
|
@@ -2026,7 +2026,7 @@ async function $r(e) {
|
|
|
2026
2026
|
});
|
|
2027
2027
|
return (await je(t)).profiles;
|
|
2028
2028
|
}
|
|
2029
|
-
async function
|
|
2029
|
+
async function $r(e, t) {
|
|
2030
2030
|
const n = await O(`${Ce}/profiles`, {
|
|
2031
2031
|
method: "POST",
|
|
2032
2032
|
headers: D(t, !0),
|
|
@@ -2035,7 +2035,7 @@ async function Tr(e, t) {
|
|
|
2035
2035
|
});
|
|
2036
2036
|
return (await je(n)).profile;
|
|
2037
2037
|
}
|
|
2038
|
-
async function
|
|
2038
|
+
async function Tr(e, t, n) {
|
|
2039
2039
|
const a = await O(`${Ce}/profiles/${encodeURIComponent(e)}`, {
|
|
2040
2040
|
method: "PUT",
|
|
2041
2041
|
headers: D(n, !0),
|
|
@@ -2044,7 +2044,7 @@ async function Ar(e, t, n) {
|
|
|
2044
2044
|
});
|
|
2045
2045
|
return (await je(a)).profile;
|
|
2046
2046
|
}
|
|
2047
|
-
async function
|
|
2047
|
+
async function Ar(e, t) {
|
|
2048
2048
|
const n = await O(`${Ce}/profiles/${encodeURIComponent(e)}`, {
|
|
2049
2049
|
method: "DELETE",
|
|
2050
2050
|
headers: D(),
|
|
@@ -2052,7 +2052,7 @@ async function Or(e, t) {
|
|
|
2052
2052
|
});
|
|
2053
2053
|
await je(n);
|
|
2054
2054
|
}
|
|
2055
|
-
async function
|
|
2055
|
+
async function Or(e, t) {
|
|
2056
2056
|
const n = await O(
|
|
2057
2057
|
`${Ce}/profiles/${encodeURIComponent(e)}/companies`,
|
|
2058
2058
|
{
|
|
@@ -2063,7 +2063,7 @@ async function Dr(e, t) {
|
|
|
2063
2063
|
);
|
|
2064
2064
|
return (await je(n)).companies;
|
|
2065
2065
|
}
|
|
2066
|
-
async function
|
|
2066
|
+
async function Dr(e, t, n) {
|
|
2067
2067
|
const a = await O(
|
|
2068
2068
|
`${Ce}/profiles/${encodeURIComponent(e)}/companies`,
|
|
2069
2069
|
{
|
|
@@ -2075,7 +2075,7 @@ async function Fr(e, t, n) {
|
|
|
2075
2075
|
);
|
|
2076
2076
|
return je(a);
|
|
2077
2077
|
}
|
|
2078
|
-
async function
|
|
2078
|
+
async function Fr(e, t, n) {
|
|
2079
2079
|
const a = await O(
|
|
2080
2080
|
`${Ce}/profiles/${encodeURIComponent(e)}/companies/${encodeURIComponent(t)}`,
|
|
2081
2081
|
{ method: "DELETE", headers: D(), credentials: "include" }
|
|
@@ -2083,22 +2083,22 @@ async function Ur(e, t, n) {
|
|
|
2083
2083
|
await je(a);
|
|
2084
2084
|
}
|
|
2085
2085
|
const X = /* @__PURE__ */ new Map(), Ir = 120;
|
|
2086
|
-
function
|
|
2086
|
+
function Ur() {
|
|
2087
2087
|
for (; X.size > Ir; ) {
|
|
2088
2088
|
const e = X.keys().next();
|
|
2089
2089
|
if (e.done) return;
|
|
2090
2090
|
X.delete(e.value);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
const
|
|
2094
|
-
function qe(e, t, { onStale: n, maxAgeMs: a =
|
|
2093
|
+
const Mr = 3e4;
|
|
2094
|
+
function qe(e, t, { onStale: n, maxAgeMs: a = Mr } = {}) {
|
|
2095
2095
|
const r = X.get(e);
|
|
2096
2096
|
if (r && "value" in r) {
|
|
2097
2097
|
const s = Date.now() - r.at < a;
|
|
2098
2098
|
if (n?.(r.value, s), s) return Promise.resolve(r.value);
|
|
2099
2099
|
}
|
|
2100
2100
|
if (r?.inflight) return r.inflight;
|
|
2101
|
-
const o = t().then((s) => (X.delete(e), X.set(e, { value: s, at: Date.now() }),
|
|
2101
|
+
const o = t().then((s) => (X.delete(e), X.set(e, { value: s, at: Date.now() }), Ur(), s)).catch((s) => {
|
|
2102
2102
|
const l = X.get(e);
|
|
2103
2103
|
throw l ? X.set(e, { value: l.value, at: l.at }) : X.delete(e), s;
|
|
2104
2104
|
});
|
|
@@ -2113,9 +2113,9 @@ function De(e) {
|
|
|
2113
2113
|
t.startsWith(e) && X.delete(t);
|
|
2114
2114
|
}
|
|
2115
2115
|
function Qe(e, t, { enabled: n = !0, maxAgeMs: a } = {}) {
|
|
2116
|
-
const [r, o] =
|
|
2116
|
+
const [r, o] = R(
|
|
2117
2117
|
() => n ? Jt(e) : void 0
|
|
2118
|
-
), [s, l] =
|
|
2118
|
+
), [s, l] = R(!1), [c, u] = R(null), [h, d] = R(0), v = Fe(t);
|
|
2119
2119
|
return v.current = t, Y(() => {
|
|
2120
2120
|
if (!n) {
|
|
2121
2121
|
l(!1);
|
|
@@ -2146,11 +2146,11 @@ function Qe(e, t, { enabled: n = !0, maxAgeMs: a } = {}) {
|
|
|
2146
2146
|
reload: () => d((b) => b + 1)
|
|
2147
2147
|
};
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Br() {
|
|
2150
2150
|
const e = window.location.pathname + window.location.search + window.location.hash;
|
|
2151
2151
|
return `/auth?return=${encodeURIComponent(e)}`;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Hr({
|
|
2154
2154
|
auth: e,
|
|
2155
2155
|
selectedId: t,
|
|
2156
2156
|
onSelect: n,
|
|
@@ -2159,12 +2159,12 @@ function Wr({
|
|
|
2159
2159
|
reloadKey: o,
|
|
2160
2160
|
onResolved: s
|
|
2161
2161
|
}) {
|
|
2162
|
-
const [l, c] =
|
|
2162
|
+
const [l, c] = R(null), u = e.signedIn, {
|
|
2163
2163
|
data: h,
|
|
2164
2164
|
loading: d,
|
|
2165
2165
|
error: v,
|
|
2166
2166
|
reload: b
|
|
2167
|
-
} = Qe(`profiles:${o ?? 0}`, () =>
|
|
2167
|
+
} = Qe(`profiles:${o ?? 0}`, () => Lr(), { enabled: u }), _ = h ?? [], f = l ?? (v ? v instanceof Re ? v.message : "Failed to load profiles" : null), m = !u || !d;
|
|
2168
2168
|
Y(() => {
|
|
2169
2169
|
m && s?.(_.length);
|
|
2170
2170
|
}, [m, _.length, s]), Y(() => {
|
|
@@ -2177,13 +2177,13 @@ function Wr({
|
|
|
2177
2177
|
}
|
|
2178
2178
|
}, [d, _, t, n]);
|
|
2179
2179
|
const C = async (w) => {
|
|
2180
|
-
const
|
|
2181
|
-
if (window.confirm(
|
|
2180
|
+
const E = w.is_default ? "Hide the default profile? It won’t come back (your edits/deletion are remembered)." : "Delete this profile?";
|
|
2181
|
+
if (window.confirm(E)) {
|
|
2182
2182
|
c(null);
|
|
2183
2183
|
try {
|
|
2184
|
-
await
|
|
2184
|
+
await Ar(w.id, e), De("profiles:"), b();
|
|
2185
2185
|
} catch ($) {
|
|
2186
|
-
c($ instanceof
|
|
2186
|
+
c($ instanceof Re ? $.message : "Failed to delete profile");
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
};
|
|
@@ -2194,11 +2194,11 @@ function Wr({
|
|
|
2194
2194
|
] }),
|
|
2195
2195
|
f && /* @__PURE__ */ i("p", { className: "jp-error", children: f }),
|
|
2196
2196
|
d ? /* @__PURE__ */ i("p", { className: "jp-muted", children: "Loading…" }) : _.length === 0 ? /* @__PURE__ */ i("p", { className: "jp-muted", children: "No profiles yet. Create one to start scoring jobs." }) : /* @__PURE__ */ i("ul", { className: "jp-sidebar__list", children: _.map((w) => {
|
|
2197
|
-
const
|
|
2197
|
+
const E = w.id === t;
|
|
2198
2198
|
return /* @__PURE__ */ g(
|
|
2199
2199
|
"li",
|
|
2200
2200
|
{
|
|
2201
|
-
className:
|
|
2201
|
+
className: E ? "jp-sidebar__item jp-sidebar__item--active" : "jp-sidebar__item",
|
|
2202
2202
|
children: [
|
|
2203
2203
|
/* @__PURE__ */ g(
|
|
2204
2204
|
"button",
|
|
@@ -2251,105 +2251,105 @@ function Wr({
|
|
|
2251
2251
|
] }) : /* @__PURE__ */ g("aside", { className: "jp-sidebar", children: [
|
|
2252
2252
|
/* @__PURE__ */ i("div", { className: "jp-sidebar__header", children: /* @__PURE__ */ i("h2", { children: "Profiles" }) }),
|
|
2253
2253
|
/* @__PURE__ */ i("p", { className: "jp-muted", children: "The feed to the right is the whole public corpus, newest first. Sign in to rank it against your own profile — keywords, IC or manager track, level and remote preference — and to track which jobs you’ve looked at." }),
|
|
2254
|
-
/* @__PURE__ */ i("a", { className: "jp-sidebar__signin", href:
|
|
2254
|
+
/* @__PURE__ */ i("a", { className: "jp-sidebar__signin", href: Br(), children: "Sign in" })
|
|
2255
2255
|
] });
|
|
2256
2256
|
}
|
|
2257
|
-
const
|
|
2257
|
+
const q = "/jobplatform/api";
|
|
2258
2258
|
class re extends Error {
|
|
2259
2259
|
constructor(t, n) {
|
|
2260
2260
|
super(t), this.status = n, this.name = "JobsApiError";
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
|
-
async function
|
|
2263
|
+
async function K(e) {
|
|
2264
2264
|
const t = await e.json();
|
|
2265
2265
|
if (!e.ok || !t.success || !t.data)
|
|
2266
2266
|
throw new re(t.message ?? t.error ?? `HTTP ${e.status}`, e.status);
|
|
2267
2267
|
return t.data;
|
|
2268
2268
|
}
|
|
2269
|
-
async function
|
|
2269
|
+
async function Wr(e, t) {
|
|
2270
2270
|
const n = new URLSearchParams();
|
|
2271
2271
|
e.profile_id && n.set("profile_id", e.profile_id), e.state && n.set("state", e.state), e.hide_dismissed && n.set("hide_dismissed", "true"), e.hide_queued && n.set("hide_queued", "true"), e.page && n.set("page", String(e.page)), e.limit && n.set("limit", String(e.limit)), e.sort && n.set("sort", e.sort), e.min_score !== void 0 && n.set("min_score", String(e.min_score)), e.min_salary !== void 0 && n.set("min_salary", String(e.min_salary)), e.workplace && n.set("workplace", e.workplace), e.near && (n.set("near", e.near), e.radius_miles && n.set("radius_miles", String(e.radius_miles)), e.include_remote === !1 && n.set("include_remote", "false"));
|
|
2272
|
-
const a = `${
|
|
2272
|
+
const a = `${q}/jobs${n.toString() ? `?${n}` : ""}`, r = await O(a, {
|
|
2273
2273
|
method: "GET",
|
|
2274
2274
|
headers: D(),
|
|
2275
2275
|
credentials: "include"
|
|
2276
2276
|
});
|
|
2277
|
-
return
|
|
2277
|
+
return K(r);
|
|
2278
2278
|
}
|
|
2279
2279
|
async function at(e, t) {
|
|
2280
2280
|
const n = new URLSearchParams();
|
|
2281
2281
|
e.keyword && n.set("keyword", e.keyword), e.track && n.set("track", e.track), e.level && n.set("level", e.level);
|
|
2282
|
-
const a = await O(`${
|
|
2282
|
+
const a = await O(`${q}/jobs/preflight?${n}`, {
|
|
2283
2283
|
method: "GET",
|
|
2284
2284
|
headers: D(),
|
|
2285
2285
|
credentials: "include"
|
|
2286
2286
|
});
|
|
2287
|
-
return (await
|
|
2287
|
+
return (await K(a)).count;
|
|
2288
2288
|
}
|
|
2289
|
-
async function
|
|
2290
|
-
const a = t ? `?profile_id=${encodeURIComponent(t)}` : "", r = await O(`${
|
|
2289
|
+
async function Jr(e, t, n) {
|
|
2290
|
+
const a = t ? `?profile_id=${encodeURIComponent(t)}` : "", r = await O(`${q}/jobs/${encodeURIComponent(e)}${a}`, {
|
|
2291
2291
|
method: "GET",
|
|
2292
2292
|
headers: D(),
|
|
2293
2293
|
credentials: "include"
|
|
2294
2294
|
});
|
|
2295
|
-
return (await
|
|
2295
|
+
return (await K(r)).job;
|
|
2296
2296
|
}
|
|
2297
|
-
async function
|
|
2298
|
-
const r = await O(`${
|
|
2297
|
+
async function qr(e, t, n, a) {
|
|
2298
|
+
const r = await O(`${q}/jobs/${encodeURIComponent(e)}/state`, {
|
|
2299
2299
|
method: "PUT",
|
|
2300
2300
|
headers: D(n, !0),
|
|
2301
2301
|
credentials: "include",
|
|
2302
2302
|
body: JSON.stringify(a ? { state: t, variant_slug: a } : { state: t })
|
|
2303
2303
|
});
|
|
2304
|
-
return
|
|
2304
|
+
return K(r);
|
|
2305
2305
|
}
|
|
2306
2306
|
async function qt(e, t, n, a) {
|
|
2307
|
-
const r = await O(`${
|
|
2307
|
+
const r = await O(`${q}/jobs/${encodeURIComponent(e)}/feedback`, {
|
|
2308
2308
|
method: "PUT",
|
|
2309
2309
|
headers: D(a, !0),
|
|
2310
2310
|
credentials: "include",
|
|
2311
2311
|
body: JSON.stringify({ vote: t, reasons: n })
|
|
2312
2312
|
});
|
|
2313
|
-
return
|
|
2313
|
+
return K(r);
|
|
2314
2314
|
}
|
|
2315
|
-
async function
|
|
2316
|
-
const n = await O(`${
|
|
2315
|
+
async function Kr(e, t) {
|
|
2316
|
+
const n = await O(`${q}/jobs/${encodeURIComponent(e)}/feedback`, {
|
|
2317
2317
|
method: "DELETE",
|
|
2318
2318
|
headers: D(),
|
|
2319
2319
|
credentials: "include"
|
|
2320
2320
|
});
|
|
2321
|
-
return
|
|
2321
|
+
return K(n);
|
|
2322
2322
|
}
|
|
2323
|
-
async function
|
|
2324
|
-
const a = await O(`${
|
|
2323
|
+
async function Vr(e, t, n) {
|
|
2324
|
+
const a = await O(`${q}/jobs/${encodeURIComponent(e)}/resume`, {
|
|
2325
2325
|
method: "POST",
|
|
2326
2326
|
headers: D(t, !0),
|
|
2327
2327
|
credentials: "include",
|
|
2328
2328
|
body: JSON.stringify({})
|
|
2329
2329
|
});
|
|
2330
|
-
return
|
|
2330
|
+
return K(a);
|
|
2331
2331
|
}
|
|
2332
|
-
async function
|
|
2333
|
-
const a = await O(`${
|
|
2332
|
+
async function Gr(e, t, n) {
|
|
2333
|
+
const a = await O(`${q}/jobs/${encodeURIComponent(e)}/cover-letter`, {
|
|
2334
2334
|
method: "POST",
|
|
2335
2335
|
headers: D(t, !0),
|
|
2336
2336
|
credentials: "include",
|
|
2337
2337
|
body: JSON.stringify({})
|
|
2338
2338
|
});
|
|
2339
|
-
return
|
|
2339
|
+
return K(a);
|
|
2340
2340
|
}
|
|
2341
|
-
async function
|
|
2342
|
-
const a = await O(`${
|
|
2341
|
+
async function En(e, t, n) {
|
|
2342
|
+
const a = await O(`${q}/jobs/${encodeURIComponent(e)}/packet-link`, {
|
|
2343
2343
|
method: "POST",
|
|
2344
2344
|
headers: D(n, !0),
|
|
2345
2345
|
credentials: "include",
|
|
2346
2346
|
body: JSON.stringify(t)
|
|
2347
2347
|
});
|
|
2348
|
-
return
|
|
2348
|
+
return K(a);
|
|
2349
2349
|
}
|
|
2350
|
-
async function
|
|
2350
|
+
async function zr(e, t, n) {
|
|
2351
2351
|
const a = await O(
|
|
2352
|
-
`${
|
|
2352
|
+
`${q}/jobs/${encodeURIComponent(e)}/application-extras`,
|
|
2353
2353
|
{
|
|
2354
2354
|
method: "POST",
|
|
2355
2355
|
headers: D(n, !0),
|
|
@@ -2357,83 +2357,83 @@ async function En(e, t, n) {
|
|
|
2357
2357
|
body: JSON.stringify(t)
|
|
2358
2358
|
}
|
|
2359
2359
|
);
|
|
2360
|
-
return
|
|
2360
|
+
return K(a);
|
|
2361
2361
|
}
|
|
2362
2362
|
async function ni(e) {
|
|
2363
|
-
const t = await O(`${
|
|
2363
|
+
const t = await O(`${q}/jobs/packets`, {
|
|
2364
2364
|
method: "GET",
|
|
2365
2365
|
headers: D(),
|
|
2366
2366
|
credentials: "include"
|
|
2367
2367
|
});
|
|
2368
|
-
return (await
|
|
2368
|
+
return (await K(t)).packets;
|
|
2369
2369
|
}
|
|
2370
|
-
async function
|
|
2371
|
-
const a = await O(`${
|
|
2370
|
+
async function Rn(e, t = "review", n) {
|
|
2371
|
+
const a = await O(`${q}/jobs/${encodeURIComponent(e)}/apply`, {
|
|
2372
2372
|
method: "POST",
|
|
2373
2373
|
headers: { "Content-Type": "application/json", ...D() },
|
|
2374
2374
|
credentials: "include",
|
|
2375
2375
|
body: JSON.stringify({ mode: t })
|
|
2376
2376
|
});
|
|
2377
|
-
return (await
|
|
2377
|
+
return (await K(a)).application;
|
|
2378
2378
|
}
|
|
2379
2379
|
async function ai(e, t) {
|
|
2380
|
-
const a = await O(`${
|
|
2380
|
+
const a = await O(`${q}/applications`, {
|
|
2381
2381
|
method: "GET",
|
|
2382
2382
|
headers: D(),
|
|
2383
2383
|
credentials: "include"
|
|
2384
2384
|
});
|
|
2385
|
-
return (await
|
|
2385
|
+
return (await K(a)).applications;
|
|
2386
2386
|
}
|
|
2387
2387
|
async function ri(e, t) {
|
|
2388
2388
|
const n = await O(
|
|
2389
|
-
`${
|
|
2389
|
+
`${q}/applications/${encodeURIComponent(e)}/approve`,
|
|
2390
2390
|
{
|
|
2391
2391
|
method: "POST",
|
|
2392
2392
|
headers: D(),
|
|
2393
2393
|
credentials: "include"
|
|
2394
2394
|
}
|
|
2395
2395
|
);
|
|
2396
|
-
return (await
|
|
2396
|
+
return (await K(n)).application;
|
|
2397
2397
|
}
|
|
2398
2398
|
async function oi(e) {
|
|
2399
|
-
const t = await O(`${
|
|
2399
|
+
const t = await O(`${q}/unanswered-questions`, {
|
|
2400
2400
|
method: "GET",
|
|
2401
2401
|
headers: D(),
|
|
2402
2402
|
credentials: "include"
|
|
2403
2403
|
});
|
|
2404
|
-
return (await
|
|
2404
|
+
return (await K(t)).questions;
|
|
2405
2405
|
}
|
|
2406
2406
|
async function ii(e) {
|
|
2407
|
-
const t = await O(`${
|
|
2407
|
+
const t = await O(`${q}/application-answers`, {
|
|
2408
2408
|
method: "GET",
|
|
2409
2409
|
headers: D(),
|
|
2410
2410
|
credentials: "include"
|
|
2411
2411
|
});
|
|
2412
|
-
return (await
|
|
2412
|
+
return (await K(t)).answers;
|
|
2413
2413
|
}
|
|
2414
2414
|
async function si(e, t, n) {
|
|
2415
|
-
const a = await O(`${
|
|
2415
|
+
const a = await O(`${q}/application-answers`, {
|
|
2416
2416
|
method: "PUT",
|
|
2417
2417
|
headers: { ...D(), "Content-Type": "application/json" },
|
|
2418
2418
|
credentials: "include",
|
|
2419
2419
|
body: JSON.stringify({ question: e, answer: t })
|
|
2420
2420
|
});
|
|
2421
|
-
return (await
|
|
2421
|
+
return (await K(a)).answer;
|
|
2422
2422
|
}
|
|
2423
2423
|
async function li(e, t) {
|
|
2424
2424
|
const n = await O(
|
|
2425
|
-
`${
|
|
2425
|
+
`${q}/application-answers/${encodeURIComponent(e)}`,
|
|
2426
2426
|
{ method: "DELETE", headers: D(), credentials: "include" }
|
|
2427
2427
|
);
|
|
2428
|
-
return (await
|
|
2428
|
+
return (await K(n)).answers;
|
|
2429
2429
|
}
|
|
2430
2430
|
async function ci(e) {
|
|
2431
|
-
const t = await O(`${
|
|
2431
|
+
const t = await O(`${q}/verification-codes`, {
|
|
2432
2432
|
method: "GET",
|
|
2433
2433
|
headers: D(),
|
|
2434
2434
|
credentials: "include"
|
|
2435
2435
|
});
|
|
2436
|
-
return (await
|
|
2436
|
+
return (await K(t)).codes;
|
|
2437
2437
|
}
|
|
2438
2438
|
const Yr = "/jobplatform/api";
|
|
2439
2439
|
class pt extends Error {
|
|
@@ -2471,42 +2471,42 @@ function Zr(e) {
|
|
|
2471
2471
|
return e ? `https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64` : null;
|
|
2472
2472
|
}
|
|
2473
2473
|
function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
2474
|
-
const [a, r] =
|
|
2474
|
+
const [a, r] = R(null), [o, s] = R(""), [l, c] = R(!1), [u, h] = R(null), [d, v] = R(null), [b, _] = R(null), {
|
|
2475
2475
|
data: f,
|
|
2476
2476
|
loading: m,
|
|
2477
2477
|
error: C,
|
|
2478
2478
|
reload: w
|
|
2479
2479
|
} = Qe(
|
|
2480
2480
|
`profile-companies:${t ?? ""}`,
|
|
2481
|
-
() =>
|
|
2481
|
+
() => Or(t ?? ""),
|
|
2482
2482
|
{ enabled: !!t }
|
|
2483
|
-
),
|
|
2483
|
+
), E = t ? f ?? [] : [], $ = a ?? (C ? C instanceof Re ? C.message : "Failed to load companies" : null), x = se(() => {
|
|
2484
2484
|
De(`profile-companies:${t ?? ""}`), w();
|
|
2485
2485
|
}, [t, w]);
|
|
2486
2486
|
Y(() => {
|
|
2487
2487
|
h(null);
|
|
2488
2488
|
}, [t]);
|
|
2489
|
-
const F = (k,
|
|
2489
|
+
const F = (k, I) => `${k}:${I}`, J = new Set(E.map((k) => F(k.ats, k.slug))), H = async (k, I, W) => {
|
|
2490
2490
|
if (!(!t || b)) {
|
|
2491
2491
|
r(null), v(null);
|
|
2492
2492
|
try {
|
|
2493
|
-
await
|
|
2493
|
+
await Dr(
|
|
2494
2494
|
t,
|
|
2495
|
-
{ ats: k, slug:
|
|
2495
|
+
{ ats: k, slug: I, display_name: W.trim() || I },
|
|
2496
2496
|
e
|
|
2497
2497
|
), x(), n?.();
|
|
2498
2498
|
} catch (T) {
|
|
2499
|
-
const
|
|
2500
|
-
throw v(
|
|
2499
|
+
const V = T instanceof pt || T instanceof Re ? T.message : "Failed to add company";
|
|
2500
|
+
throw v(V), T;
|
|
2501
2501
|
}
|
|
2502
2502
|
}
|
|
2503
2503
|
}, P = async (k) => {
|
|
2504
2504
|
k.preventDefault();
|
|
2505
|
-
const
|
|
2506
|
-
if (!(
|
|
2505
|
+
const I = Kt(o);
|
|
2506
|
+
if (!(I.length === 0 || l)) {
|
|
2507
2507
|
c(!0), v(null), h(null);
|
|
2508
2508
|
try {
|
|
2509
|
-
h(await Xr(
|
|
2509
|
+
h(await Xr(I, e));
|
|
2510
2510
|
} catch (W) {
|
|
2511
2511
|
v(W instanceof pt ? W.message : "Failed to look up company");
|
|
2512
2512
|
} finally {
|
|
@@ -2515,8 +2515,8 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}, A = async (k) => {
|
|
2517
2517
|
if (!k.matched || !k.ats || !k.slug) return;
|
|
2518
|
-
const
|
|
2519
|
-
_(
|
|
2518
|
+
const I = F(k.ats, k.slug);
|
|
2519
|
+
_(I);
|
|
2520
2520
|
try {
|
|
2521
2521
|
await H(k.ats, k.slug, k.company_name ?? k.query);
|
|
2522
2522
|
} catch {
|
|
@@ -2527,9 +2527,9 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2527
2527
|
if (t) {
|
|
2528
2528
|
r(null);
|
|
2529
2529
|
try {
|
|
2530
|
-
await
|
|
2531
|
-
} catch (
|
|
2532
|
-
r(
|
|
2530
|
+
await Fr(t, k, e), x(), n?.();
|
|
2531
|
+
} catch (I) {
|
|
2532
|
+
r(I instanceof Re ? I.message : "Failed to remove company");
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
};
|
|
@@ -2552,11 +2552,11 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2552
2552
|
] }),
|
|
2553
2553
|
d && /* @__PURE__ */ i("p", { className: "job-platform__companies-error", children: d }),
|
|
2554
2554
|
u && /* @__PURE__ */ i("div", { className: "job-platform__match-results", children: u.map((k) => {
|
|
2555
|
-
const
|
|
2555
|
+
const I = k.ats && k.slug ? F(k.ats, k.slug) : k.query, W = k.ats && k.slug ? J.has(I) : !1, T = Zr(k.domain), V = k.matched && k.n_jobs === 0;
|
|
2556
2556
|
return k.matched ? /* @__PURE__ */ g(
|
|
2557
2557
|
"div",
|
|
2558
2558
|
{
|
|
2559
|
-
className:
|
|
2559
|
+
className: V ? "job-platform__match-card job-platform__match-card--warn" : "job-platform__match-card",
|
|
2560
2560
|
children: [
|
|
2561
2561
|
/* @__PURE__ */ g("div", { className: "job-platform__match-head", children: [
|
|
2562
2562
|
T && /* @__PURE__ */ i(
|
|
@@ -2567,8 +2567,8 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2567
2567
|
alt: "",
|
|
2568
2568
|
width: 20,
|
|
2569
2569
|
height: 20,
|
|
2570
|
-
onError: (
|
|
2571
|
-
|
|
2570
|
+
onError: (G) => {
|
|
2571
|
+
G.currentTarget.style.display = "none";
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
),
|
|
@@ -2583,7 +2583,7 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2583
2583
|
] })
|
|
2584
2584
|
] }),
|
|
2585
2585
|
k.sample_titles.length > 0 && /* @__PURE__ */ i("p", { className: "job-platform__probe-titles", children: k.sample_titles.slice(0, 5).join(" · ") }),
|
|
2586
|
-
|
|
2586
|
+
V && /* @__PURE__ */ g("p", { className: "job-platform__match-warn", children: [
|
|
2587
2587
|
"⚠ 0 open roles — can’t confirm this is the right company (the board may be stale or a different one on ",
|
|
2588
2588
|
k.ats,
|
|
2589
2589
|
"). Add anyway if you’re sure."
|
|
@@ -2597,12 +2597,12 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2597
2597
|
A(k);
|
|
2598
2598
|
},
|
|
2599
2599
|
disabled: W || b !== null,
|
|
2600
|
-
children: W ? "Added ✓" : b ===
|
|
2600
|
+
children: W ? "Added ✓" : b === I ? "Adding…" : V ? "Add anyway" : "Confirm & add"
|
|
2601
2601
|
}
|
|
2602
2602
|
)
|
|
2603
2603
|
]
|
|
2604
2604
|
},
|
|
2605
|
-
|
|
2605
|
+
I
|
|
2606
2606
|
) : /* @__PURE__ */ g(
|
|
2607
2607
|
"div",
|
|
2608
2608
|
{
|
|
@@ -2616,7 +2616,7 @@ function eo({ auth: e, profileId: t, onCompaniesChanged: n }) {
|
|
|
2616
2616
|
k.query
|
|
2617
2617
|
);
|
|
2618
2618
|
}) }),
|
|
2619
|
-
m ? /* @__PURE__ */ i("p", { className: "job-platform__companies-empty", children: "Loading…" }) :
|
|
2619
|
+
m ? /* @__PURE__ */ i("p", { className: "job-platform__companies-empty", children: "Loading…" }) : E.length === 0 ? /* @__PURE__ */ i("p", { className: "job-platform__companies-empty", children: "No companies yet. This profile scores the whole corpus until you add some." }) : /* @__PURE__ */ i("ul", { className: "job-platform__companies-list", children: E.map((k) => /* @__PURE__ */ g("li", { className: "job-platform__companies-item", children: [
|
|
2620
2620
|
/* @__PURE__ */ g("div", { className: "job-platform__companies-item-main", children: [
|
|
2621
2621
|
/* @__PURE__ */ i("strong", { children: k.display_name }),
|
|
2622
2622
|
/* @__PURE__ */ g("span", { className: "job-platform__companies-item-meta", children: [
|
|
@@ -2657,7 +2657,7 @@ function ot({ count: e }) {
|
|
|
2657
2657
|
] });
|
|
2658
2658
|
}
|
|
2659
2659
|
function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r }) {
|
|
2660
|
-
const [o, s] =
|
|
2660
|
+
const [o, s] = R(t?.id ?? null), [l, c] = R(t?.name ?? ""), [u, h] = R(t?.keywords ?? []), [d, v] = R(""), [b, _] = R(t?.track ?? "either"), [f, m] = R(t?.levels ?? []), [C, w] = R(t?.remote_pref ?? "any"), [E, $] = R(!1), [x, F] = R(null), [J, H] = R(!1), [P, A] = R({}), [B, k] = R({}), [I, W] = R(null), T = se(
|
|
2661
2661
|
async (y) => {
|
|
2662
2662
|
A((N) => ({ ...N, [y]: "loading" }));
|
|
2663
2663
|
try {
|
|
@@ -2666,13 +2666,13 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2666
2666
|
() => at({ keyword: y }, e),
|
|
2667
2667
|
{ maxAgeMs: rt }
|
|
2668
2668
|
);
|
|
2669
|
-
A((
|
|
2669
|
+
A((U) => ({ ...U, [y]: N }));
|
|
2670
2670
|
} catch {
|
|
2671
2671
|
A((N) => ({ ...N, [y]: null }));
|
|
2672
2672
|
}
|
|
2673
2673
|
},
|
|
2674
2674
|
[e]
|
|
2675
|
-
),
|
|
2675
|
+
), V = se(
|
|
2676
2676
|
async (y) => {
|
|
2677
2677
|
k((N) => ({ ...N, [y]: "loading" }));
|
|
2678
2678
|
try {
|
|
@@ -2681,20 +2681,20 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2681
2681
|
() => at({ level: y }, e),
|
|
2682
2682
|
{ maxAgeMs: rt }
|
|
2683
2683
|
);
|
|
2684
|
-
k((
|
|
2684
|
+
k((U) => ({ ...U, [y]: N }));
|
|
2685
2685
|
} catch {
|
|
2686
2686
|
k((N) => ({ ...N, [y]: null }));
|
|
2687
2687
|
}
|
|
2688
2688
|
},
|
|
2689
2689
|
[e]
|
|
2690
|
-
),
|
|
2690
|
+
), G = Fe(!1);
|
|
2691
2691
|
Y(() => {
|
|
2692
|
-
if (!
|
|
2693
|
-
|
|
2692
|
+
if (!G.current) {
|
|
2693
|
+
G.current = !0;
|
|
2694
2694
|
for (const y of u) T(y);
|
|
2695
|
-
for (const y of f)
|
|
2695
|
+
for (const y of f) V(y);
|
|
2696
2696
|
}
|
|
2697
|
-
}, [u, f, T,
|
|
2697
|
+
}, [u, f, T, V]), Y(() => {
|
|
2698
2698
|
if (b === "either") {
|
|
2699
2699
|
W(null);
|
|
2700
2700
|
return;
|
|
@@ -2712,19 +2712,19 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2712
2712
|
return window.addEventListener("keydown", y), () => window.removeEventListener("keydown", y);
|
|
2713
2713
|
}, [n]);
|
|
2714
2714
|
const ie = (y) => {
|
|
2715
|
-
const N = y.split(",").map((
|
|
2716
|
-
N.length && (h((
|
|
2717
|
-
const pe = new Set(
|
|
2715
|
+
const N = y.split(",").map((U) => U.trim()).filter(Boolean);
|
|
2716
|
+
N.length && (h((U) => {
|
|
2717
|
+
const pe = new Set(U.map((he) => he.toLowerCase())), Te = [...U];
|
|
2718
2718
|
for (const he of N)
|
|
2719
2719
|
pe.has(he.toLowerCase()) || (pe.add(he.toLowerCase()), Te.push(he), T(he));
|
|
2720
2720
|
return Te;
|
|
2721
2721
|
}), v(""));
|
|
2722
2722
|
}, le = (y) => {
|
|
2723
2723
|
y.key === "Enter" || y.key === "," ? (y.preventDefault(), ie(d)) : y.key === "Backspace" && !d && u.length && h((N) => N.slice(0, -1));
|
|
2724
|
-
}, be = (y) => h((N) => N.filter((
|
|
2724
|
+
}, be = (y) => h((N) => N.filter((U) => U !== y)), we = (y) => m((N) => N.includes(y) ? N.filter((U) => U !== y) : (B[y] === void 0 && V(y), [...N, y])), Pe = (y) => {
|
|
2725
2725
|
_(y);
|
|
2726
2726
|
const N = Vt(y);
|
|
2727
|
-
m((
|
|
2727
|
+
m((U) => U.filter((pe) => N.includes(pe)));
|
|
2728
2728
|
}, _e = () => {
|
|
2729
2729
|
const y = d.trim() ? [
|
|
2730
2730
|
...u,
|
|
@@ -2738,19 +2738,19 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2738
2738
|
remote_pref: C
|
|
2739
2739
|
};
|
|
2740
2740
|
}, ce = async () => {
|
|
2741
|
-
if (!(!l.trim() ||
|
|
2741
|
+
if (!(!l.trim() || E)) {
|
|
2742
2742
|
$(!0), F(null);
|
|
2743
2743
|
try {
|
|
2744
2744
|
const y = _e();
|
|
2745
2745
|
if (o) {
|
|
2746
|
-
const N = await
|
|
2746
|
+
const N = await Tr(o, y, e);
|
|
2747
2747
|
a(N), n();
|
|
2748
2748
|
} else {
|
|
2749
|
-
const N = await
|
|
2749
|
+
const N = await $r(y, e);
|
|
2750
2750
|
s(N.id), h(N.keywords), a(N), H(!0);
|
|
2751
2751
|
}
|
|
2752
2752
|
} catch (y) {
|
|
2753
|
-
F(y instanceof
|
|
2753
|
+
F(y instanceof Re ? y.message : "Failed to save profile");
|
|
2754
2754
|
} finally {
|
|
2755
2755
|
$(!1);
|
|
2756
2756
|
}
|
|
@@ -2842,7 +2842,7 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2842
2842
|
onClick: () => Pe(y.value),
|
|
2843
2843
|
children: [
|
|
2844
2844
|
y.label,
|
|
2845
|
-
N && y.value !== "either" && /* @__PURE__ */ i(ot, { count:
|
|
2845
|
+
N && y.value !== "either" && /* @__PURE__ */ i(ot, { count: I })
|
|
2846
2846
|
]
|
|
2847
2847
|
},
|
|
2848
2848
|
y.value
|
|
@@ -2864,7 +2864,7 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2864
2864
|
onClick: () => we(y),
|
|
2865
2865
|
"aria-pressed": N,
|
|
2866
2866
|
children: [
|
|
2867
|
-
|
|
2867
|
+
xr[y],
|
|
2868
2868
|
N && /* @__PURE__ */ i(ot, { count: B[y] ?? null })
|
|
2869
2869
|
]
|
|
2870
2870
|
},
|
|
@@ -2917,8 +2917,8 @@ function no({ auth: e, initial: t, onClose: n, onSaved: a, onCompaniesChanged: r
|
|
|
2917
2917
|
onClick: () => {
|
|
2918
2918
|
ce();
|
|
2919
2919
|
},
|
|
2920
|
-
disabled:
|
|
2921
|
-
children:
|
|
2920
|
+
disabled: E || !l.trim(),
|
|
2921
|
+
children: E ? "Saving…" : o ? "Save changes" : "Create profile"
|
|
2922
2922
|
}
|
|
2923
2923
|
)
|
|
2924
2924
|
] })
|
|
@@ -2939,7 +2939,7 @@ async function Se(e, t, n = {}, a = !1) {
|
|
|
2939
2939
|
throw new re(o.message ?? o.error ?? `HTTP ${r.status}`, r.status);
|
|
2940
2940
|
return o.data;
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function Nn(e, t) {
|
|
2943
2943
|
return { method: e, body: JSON.stringify(t) };
|
|
2944
2944
|
}
|
|
2945
2945
|
async function ui(e) {
|
|
@@ -2949,7 +2949,7 @@ async function di(e, t) {
|
|
|
2949
2949
|
return (await Se(
|
|
2950
2950
|
"/applicant-profile",
|
|
2951
2951
|
t,
|
|
2952
|
-
|
|
2952
|
+
Nn("PUT", { profile: e }),
|
|
2953
2953
|
!0
|
|
2954
2954
|
)).updated_at;
|
|
2955
2955
|
}
|
|
@@ -2960,7 +2960,7 @@ async function ro(e, t) {
|
|
|
2960
2960
|
return (await Se(
|
|
2961
2961
|
"/blocked-companies",
|
|
2962
2962
|
t,
|
|
2963
|
-
|
|
2963
|
+
Nn("PUT", { company: e }),
|
|
2964
2964
|
!0
|
|
2965
2965
|
)).company;
|
|
2966
2966
|
}
|
|
@@ -3002,7 +3002,7 @@ function co({
|
|
|
3002
3002
|
value: t,
|
|
3003
3003
|
onChange: n
|
|
3004
3004
|
}) {
|
|
3005
|
-
const a = In(), [r, o] =
|
|
3005
|
+
const a = In(), [r, o] = R(""), [s, l] = R([]), c = (u) => {
|
|
3006
3006
|
lo(u), n(u);
|
|
3007
3007
|
};
|
|
3008
3008
|
return Y(() => {
|
|
@@ -3084,30 +3084,27 @@ function co({
|
|
|
3084
3084
|
] });
|
|
3085
3085
|
}
|
|
3086
3086
|
async function uo(e, t, n) {
|
|
3087
|
-
const a = await
|
|
3088
|
-
let r = "";
|
|
3087
|
+
const a = await Vr(e, t);
|
|
3088
|
+
let r = null, o = null, s = "";
|
|
3089
3089
|
try {
|
|
3090
|
-
r = (await
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
t
|
|
3094
|
-
)).cover_letter_markdown || (await zr(e, t)).cover_letter_markdown;
|
|
3095
|
-
} catch {
|
|
3090
|
+
r = await zr(e, { resume_markdown: a.resume_markdown }, t), s = r.cover_letter_markdown || (await Gr(e, t)).cover_letter_markdown;
|
|
3091
|
+
} catch (u) {
|
|
3092
|
+
o = u instanceof re ? u.message : "Failed to generate the application kit";
|
|
3096
3093
|
}
|
|
3097
|
-
const { url:
|
|
3094
|
+
const { url: l, slug: c } = await En(
|
|
3098
3095
|
e,
|
|
3099
3096
|
{
|
|
3100
3097
|
resume_markdown: a.resume_markdown,
|
|
3101
|
-
...
|
|
3098
|
+
...s ? { cover_letter_markdown: s } : {}
|
|
3102
3099
|
},
|
|
3103
3100
|
t
|
|
3104
3101
|
);
|
|
3105
|
-
return { slug:
|
|
3102
|
+
return { slug: c, url: l, resume: a.resume_markdown, coverLetter: s, kit: r, kitError: o };
|
|
3106
3103
|
}
|
|
3107
3104
|
async function po(e, t, n) {
|
|
3108
3105
|
n({ phase: "queueing" });
|
|
3109
3106
|
try {
|
|
3110
|
-
await
|
|
3107
|
+
await Rn(e, "review", t), n({ phase: "queued" });
|
|
3111
3108
|
} catch (a) {
|
|
3112
3109
|
n({
|
|
3113
3110
|
phase: "error",
|
|
@@ -3130,7 +3127,7 @@ const ho = [
|
|
|
3130
3127
|
{ reason: "company", label: "Dream company" },
|
|
3131
3128
|
{ reason: "other", label: "Other" }
|
|
3132
3129
|
];
|
|
3133
|
-
function
|
|
3130
|
+
function Cn({
|
|
3134
3131
|
jobId: e,
|
|
3135
3132
|
auth: t,
|
|
3136
3133
|
vote: n,
|
|
@@ -3139,16 +3136,16 @@ function jn({
|
|
|
3139
3136
|
disabled: o,
|
|
3140
3137
|
align: s = "end"
|
|
3141
3138
|
}) {
|
|
3142
|
-
const [l, c] =
|
|
3139
|
+
const [l, c] = R(null), u = Fe(null), h = (f) => {
|
|
3143
3140
|
if (n === f) {
|
|
3144
3141
|
const w = a;
|
|
3145
|
-
c(null), r(e, null, []),
|
|
3142
|
+
c(null), r(e, null, []), Kr(e).catch(() => r(e, f, w));
|
|
3146
3143
|
return;
|
|
3147
3144
|
}
|
|
3148
3145
|
const m = n, C = a;
|
|
3149
3146
|
r(e, f, []), qt(e, f, [], t).catch(() => r(e, m, C)), c(f);
|
|
3150
3147
|
}, d = (f, m) => {
|
|
3151
|
-
const C = a, w = C.includes(m) ? C.filter((
|
|
3148
|
+
const C = a, w = C.includes(m) ? C.filter((E) => E !== m) : [...C, m];
|
|
3152
3149
|
r(e, f, w), qt(e, f, w, t).catch(() => r(e, f, C));
|
|
3153
3150
|
};
|
|
3154
3151
|
return /* @__PURE__ */ g(
|
|
@@ -3262,8 +3259,8 @@ function wo({
|
|
|
3262
3259
|
tabIndex: 0,
|
|
3263
3260
|
className: C.join(" "),
|
|
3264
3261
|
onClick: o,
|
|
3265
|
-
onKeyDown: (
|
|
3266
|
-
|
|
3262
|
+
onKeyDown: (E) => {
|
|
3263
|
+
E.target === E.currentTarget && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), o());
|
|
3267
3264
|
},
|
|
3268
3265
|
children: [
|
|
3269
3266
|
/* @__PURE__ */ g("div", { className: "jp-jobcard__top", children: [
|
|
@@ -3279,7 +3276,7 @@ function wo({
|
|
|
3279
3276
|
),
|
|
3280
3277
|
t && /* @__PURE__ */ i("span", { className: w, children: e.score.toFixed(2) }),
|
|
3281
3278
|
b && /* @__PURE__ */ i(
|
|
3282
|
-
|
|
3279
|
+
Cn,
|
|
3283
3280
|
{
|
|
3284
3281
|
jobId: e.id,
|
|
3285
3282
|
auth: n,
|
|
@@ -3308,7 +3305,7 @@ function wo({
|
|
|
3308
3305
|
href: e.url,
|
|
3309
3306
|
target: "_blank",
|
|
3310
3307
|
rel: "noopener noreferrer",
|
|
3311
|
-
onClick: (
|
|
3308
|
+
onClick: (E) => E.stopPropagation(),
|
|
3312
3309
|
title: "Open the original posting",
|
|
3313
3310
|
children: [
|
|
3314
3311
|
e.source_site,
|
|
@@ -3325,8 +3322,8 @@ function wo({
|
|
|
3325
3322
|
"data-testid": "card-apply",
|
|
3326
3323
|
disabled: !_ || m || f === "queued",
|
|
3327
3324
|
title: _ ? "Build the application packet and hand it to the form runner" : "Sign in to hand postings to the runner",
|
|
3328
|
-
onClick: (
|
|
3329
|
-
|
|
3325
|
+
onClick: (E) => {
|
|
3326
|
+
E.stopPropagation(), _ && l(e.id);
|
|
3330
3327
|
},
|
|
3331
3328
|
children: e.application_status ? go[e.application_status] : vo[f]
|
|
3332
3329
|
}
|
|
@@ -3358,7 +3355,7 @@ function ko({
|
|
|
3358
3355
|
stateOverrides: s,
|
|
3359
3356
|
awaitingProfile: l
|
|
3360
3357
|
}) {
|
|
3361
|
-
const [c, u] =
|
|
3358
|
+
const [c, u] = R(1), [h, d] = R({}), [v, b] = R("score"), [_, f] = R(""), [m, C] = R(""), [w, E] = R(!0), [$, x] = R(""), [F, J] = R(so), H = 25, P = w && m === "", A = !t && v === "score" ? "date" : v, B = fe(
|
|
3362
3359
|
() => ({
|
|
3363
3360
|
profile_id: t ?? void 0,
|
|
3364
3361
|
state: m || void 0,
|
|
@@ -3377,18 +3374,18 @@ function ko({
|
|
|
3377
3374
|
[t, m, c, H, A, $, F]
|
|
3378
3375
|
), {
|
|
3379
3376
|
data: k,
|
|
3380
|
-
loading:
|
|
3377
|
+
loading: I,
|
|
3381
3378
|
refreshing: W,
|
|
3382
3379
|
error: T
|
|
3383
|
-
} = Qe(`jobs:${a ?? 0}:${JSON.stringify(B)}`, () =>
|
|
3380
|
+
} = Qe(`jobs:${a ?? 0}:${JSON.stringify(B)}`, () => Wr(B), {
|
|
3384
3381
|
enabled: !l
|
|
3385
|
-
}),
|
|
3382
|
+
}), V = fe(() => k?.jobs ?? [], [k]), G = k?.total ?? 0, ie = T ? T instanceof re ? T.message : "Failed to load jobs" : null;
|
|
3386
3383
|
Y(() => {
|
|
3387
3384
|
u(1);
|
|
3388
3385
|
}, [t, A, m, $, F]);
|
|
3389
3386
|
const le = fe(
|
|
3390
|
-
() =>
|
|
3391
|
-
[
|
|
3387
|
+
() => V.map((j) => s[j.id] ? { ...j, state: s[j.id] } : j),
|
|
3388
|
+
[V, s]
|
|
3392
3389
|
), be = fe(() => {
|
|
3393
3390
|
const j = new Set(
|
|
3394
3391
|
Object.entries(h).filter(([, N]) => N.phase === "queued").map(([N]) => N)
|
|
@@ -3397,7 +3394,7 @@ function ko({
|
|
|
3397
3394
|
if (y = y.filter((N) => !j.has(N.id) && !N.application_status), _.trim()) {
|
|
3398
3395
|
const N = _.toLowerCase();
|
|
3399
3396
|
y = y.filter(
|
|
3400
|
-
(
|
|
3397
|
+
(U) => U.title.toLowerCase().includes(N) || U.company.toLowerCase().includes(N) || U.location.toLowerCase().includes(N)
|
|
3401
3398
|
);
|
|
3402
3399
|
}
|
|
3403
3400
|
return y;
|
|
@@ -3413,7 +3410,7 @@ function ko({
|
|
|
3413
3410
|
), Pe = fe(() => {
|
|
3414
3411
|
const j = Object.values(h).filter((y) => y.phase === "error");
|
|
3415
3412
|
return j.length === 0 ? null : /* @__PURE__ */ i("p", { className: "jp-error", children: j.length === 1 ? j[0].error : `${j.length} postings failed — press Retry.` });
|
|
3416
|
-
}, [h]), _e = Math.max(1, Math.ceil(
|
|
3413
|
+
}, [h]), _e = Math.max(1, Math.ceil(G / H)), ce = le.some((j) => j.state !== null && j.state !== void 0);
|
|
3417
3414
|
return /* @__PURE__ */ g("div", { className: "jp-jobs", children: [
|
|
3418
3415
|
/* @__PURE__ */ g("div", { className: "jp-jobs__filters", children: [
|
|
3419
3416
|
/* @__PURE__ */ i(
|
|
@@ -3471,7 +3468,7 @@ function ko({
|
|
|
3471
3468
|
{
|
|
3472
3469
|
type: "checkbox",
|
|
3473
3470
|
checked: w,
|
|
3474
|
-
onChange: (j) =>
|
|
3471
|
+
onChange: (j) => E(j.target.checked)
|
|
3475
3472
|
}
|
|
3476
3473
|
),
|
|
3477
3474
|
"Hide dismissed"
|
|
@@ -3480,8 +3477,8 @@ function ko({
|
|
|
3480
3477
|
!t && /* @__PURE__ */ i("p", { className: "jp-muted", children: e.signedIn ? "No profile selected. Showing all jobs, unscored. Pick or create a profile to see its companies’ jobs, scored and ranked." : "Showing every job in the corpus, newest first. Scoring and ranking need a profile, which needs an account." }),
|
|
3481
3478
|
ie && /* @__PURE__ */ i("p", { className: "jp-error", children: ie }),
|
|
3482
3479
|
Pe,
|
|
3483
|
-
|
|
3484
|
-
const y = r[j.id], N = y ? y.vote : j.vote ?? null,
|
|
3480
|
+
I ? /* @__PURE__ */ i("p", { className: "jp-muted", children: "Loading jobs…" }) : be.length === 0 ? /* @__PURE__ */ i("p", { className: "jp-muted", children: G === 0 ? "No jobs match your filters." : "No matches for the current search." }) : /* @__PURE__ */ i("ul", { className: "jp-jobs__list", "data-refreshing": W ? "true" : void 0, children: be.map((j) => {
|
|
3481
|
+
const y = r[j.id], N = y ? y.vote : j.vote ?? null, U = y ? y.reasons : j.vote_reasons ?? [];
|
|
3485
3482
|
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
3486
3483
|
wo,
|
|
3487
3484
|
{
|
|
@@ -3489,7 +3486,7 @@ function ko({
|
|
|
3489
3486
|
showScore: !!t,
|
|
3490
3487
|
auth: e,
|
|
3491
3488
|
vote: N,
|
|
3492
|
-
voteReasons:
|
|
3489
|
+
voteReasons: U,
|
|
3493
3490
|
onClick: () => n(j.id, N),
|
|
3494
3491
|
onVote: o,
|
|
3495
3492
|
onApply: we,
|
|
@@ -3497,7 +3494,7 @@ function ko({
|
|
|
3497
3494
|
}
|
|
3498
3495
|
) }, j.id);
|
|
3499
3496
|
}) }),
|
|
3500
|
-
|
|
3497
|
+
G > H && /* @__PURE__ */ g("div", { className: "jp-jobs__pagination", children: [
|
|
3501
3498
|
/* @__PURE__ */ i("button", { type: "button", disabled: c <= 1, onClick: () => u((j) => j - 1), children: "← Prev" }),
|
|
3502
3499
|
/* @__PURE__ */ g("span", { children: [
|
|
3503
3500
|
"Page ",
|
|
@@ -3505,14 +3502,14 @@ function ko({
|
|
|
3505
3502
|
" / ",
|
|
3506
3503
|
_e,
|
|
3507
3504
|
" · ",
|
|
3508
|
-
|
|
3505
|
+
G,
|
|
3509
3506
|
" total"
|
|
3510
3507
|
] }),
|
|
3511
3508
|
/* @__PURE__ */ i("button", { type: "button", disabled: c >= _e, onClick: () => u((j) => j + 1), children: "Next →" })
|
|
3512
3509
|
] })
|
|
3513
3510
|
] });
|
|
3514
3511
|
}
|
|
3515
|
-
const
|
|
3512
|
+
const Eo = /* @__PURE__ */ new Set([
|
|
3516
3513
|
"a",
|
|
3517
3514
|
"b",
|
|
3518
3515
|
"blockquote",
|
|
@@ -3544,7 +3541,7 @@ const Ro = /* @__PURE__ */ new Set([
|
|
|
3544
3541
|
"tr",
|
|
3545
3542
|
"u",
|
|
3546
3543
|
"ul"
|
|
3547
|
-
]),
|
|
3544
|
+
]), Ro = /* @__PURE__ */ new Set([
|
|
3548
3545
|
"script",
|
|
3549
3546
|
"style",
|
|
3550
3547
|
"iframe",
|
|
@@ -3578,8 +3575,8 @@ function mt(e, t, n) {
|
|
|
3578
3575
|
}
|
|
3579
3576
|
if (a.nodeType !== Node.ELEMENT_NODE) continue;
|
|
3580
3577
|
const r = a, o = r.tagName.toLowerCase();
|
|
3581
|
-
if (
|
|
3582
|
-
if (!
|
|
3578
|
+
if (Ro.has(o)) continue;
|
|
3579
|
+
if (!Eo.has(o)) {
|
|
3583
3580
|
mt(r, t, n);
|
|
3584
3581
|
continue;
|
|
3585
3582
|
}
|
|
@@ -3596,9 +3593,9 @@ function Co(e) {
|
|
|
3596
3593
|
return mt(t.body, a, n), a.innerHTML;
|
|
3597
3594
|
}
|
|
3598
3595
|
const jo = ge(
|
|
3599
|
-
() => import("./ApplicationTracking-
|
|
3596
|
+
() => import("./ApplicationTracking-mioy9vBN.js").then((e) => ({ default: e.ApplicationTracking }))
|
|
3600
3597
|
), So = ge(
|
|
3601
|
-
() => import("./ClipboardPalette-
|
|
3598
|
+
() => import("./ClipboardPalette-BKAjb7B_.js").then((e) => ({ default: e.ClipboardPalette }))
|
|
3602
3599
|
), Gt = {
|
|
3603
3600
|
relevance: "Relevance",
|
|
3604
3601
|
level_match: "Level",
|
|
@@ -3635,7 +3632,7 @@ function ue({
|
|
|
3635
3632
|
rows: n = 4,
|
|
3636
3633
|
hint: a
|
|
3637
3634
|
}) {
|
|
3638
|
-
const [r, o] =
|
|
3635
|
+
const [r, o] = R(!1), s = Fe(null);
|
|
3639
3636
|
return Y(
|
|
3640
3637
|
() => () => {
|
|
3641
3638
|
s.current && clearTimeout(s.current);
|
|
@@ -3685,69 +3682,60 @@ function $o({
|
|
|
3685
3682
|
onTrackingChange: l,
|
|
3686
3683
|
onCompanyBlocked: c
|
|
3687
3684
|
}) {
|
|
3688
|
-
const [u, h] =
|
|
3685
|
+
const [u, h] = R(null), [d, v] = R(null), [b, _] = R(null), [f, m] = R(a ?? null), [C, w] = R([]), [E, $] = R(!1), [x, F] = R(null), [J, H] = R(null), [P, A] = R(null), [B, k] = R(null), [I, W] = R(!1), [T, V] = R(null), [G, ie] = R(null), [le, be] = R(!1), [we, Pe] = R(!1), [_e, ce] = R(null), [j, y] = R(null), [N, U] = R(!1), [pe, Te] = R(!1), [he, Nt] = R(!1), {
|
|
3689
3686
|
data: L,
|
|
3690
|
-
loading:
|
|
3687
|
+
loading: jn,
|
|
3691
3688
|
error: Xe
|
|
3692
3689
|
} = Qe(
|
|
3693
3690
|
`job:${t}:${n ?? ""}`,
|
|
3694
|
-
() =>
|
|
3691
|
+
() => Jr(t, n ?? void 0)
|
|
3695
3692
|
), Ct = u ?? (Xe ? Xe instanceof re ? Xe.message : "Failed to load job" : null);
|
|
3696
3693
|
Y(() => {
|
|
3697
|
-
h(null), v(null), m(a ?? null), F(null), H(null), A(null), k(null),
|
|
3694
|
+
h(null), v(null), m(a ?? null), F(null), H(null), A(null), k(null), V(null), ie(null), Pe(!1), ce(null), y(null), U(!1), Nt(!1);
|
|
3698
3695
|
}, [t, n, a]), Y(() => {
|
|
3699
3696
|
L && v(L.state);
|
|
3700
3697
|
}, [L]), Y(() => {
|
|
3701
|
-
const S = (
|
|
3702
|
-
|
|
3698
|
+
const S = (z) => {
|
|
3699
|
+
z.key === "Escape" && r();
|
|
3703
3700
|
};
|
|
3704
3701
|
return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
|
|
3705
3702
|
}, [r]);
|
|
3706
|
-
const
|
|
3703
|
+
const Sn = async (S) => {
|
|
3707
3704
|
if (!b) {
|
|
3708
3705
|
_(S), h(null);
|
|
3709
3706
|
try {
|
|
3710
|
-
const ne = await
|
|
3707
|
+
const ne = await qr(t, S, e, S === "applied" ? G ?? void 0 : void 0);
|
|
3711
3708
|
v(ne.state), De(`job:${t}:`), o?.(t, ne.state);
|
|
3712
|
-
} catch (
|
|
3713
|
-
h(
|
|
3709
|
+
} catch (z) {
|
|
3710
|
+
h(z instanceof re ? z.message : "Failed to update state");
|
|
3714
3711
|
} finally {
|
|
3715
3712
|
_(null);
|
|
3716
3713
|
}
|
|
3717
3714
|
}
|
|
3718
3715
|
}, jt = async () => {
|
|
3719
|
-
if (
|
|
3720
|
-
$(!0), H(null), k(null), A(null),
|
|
3716
|
+
if (E) return null;
|
|
3717
|
+
$(!0), H(null), k(null), A(null), V(null), ie(null), y(null), U(!1);
|
|
3721
3718
|
try {
|
|
3722
3719
|
const S = await uo(t, e, () => {
|
|
3723
3720
|
});
|
|
3724
|
-
F({ resume: S.resume, coverLetter: S.coverLetter }),
|
|
3725
|
-
try {
|
|
3726
|
-
const q = await En(t, { resume_markdown: S.resume }, e);
|
|
3727
|
-
A(q);
|
|
3728
|
-
} catch (q) {
|
|
3729
|
-
k(
|
|
3730
|
-
q instanceof re ? q.message : "Failed to generate the application kit"
|
|
3731
|
-
);
|
|
3732
|
-
}
|
|
3733
|
-
return S.slug;
|
|
3721
|
+
return F({ resume: S.resume, coverLetter: S.coverLetter }), V(S.url), ie(S.slug), A(S.kit), k(S.kitError), S.slug;
|
|
3734
3722
|
} catch (S) {
|
|
3735
3723
|
return H(S instanceof re ? S.message : "Failed to generate résumé"), null;
|
|
3736
3724
|
} finally {
|
|
3737
3725
|
$(!1);
|
|
3738
3726
|
}
|
|
3739
|
-
},
|
|
3727
|
+
}, Pn = () => {
|
|
3740
3728
|
jt();
|
|
3741
|
-
},
|
|
3742
|
-
if (!(!x ||
|
|
3729
|
+
}, xn = async () => {
|
|
3730
|
+
if (!(!x || I)) {
|
|
3743
3731
|
W(!0), y(null);
|
|
3744
3732
|
try {
|
|
3745
|
-
const { url: S, slug:
|
|
3733
|
+
const { url: S, slug: z } = await En(
|
|
3746
3734
|
t,
|
|
3747
3735
|
{ resume_markdown: x.resume, cover_letter_markdown: x.coverLetter },
|
|
3748
3736
|
e
|
|
3749
3737
|
);
|
|
3750
|
-
|
|
3738
|
+
V(S), ie(z);
|
|
3751
3739
|
} catch (S) {
|
|
3752
3740
|
y(S instanceof re ? S.message : "Failed to create link");
|
|
3753
3741
|
} finally {
|
|
@@ -3755,23 +3743,23 @@ function $o({
|
|
|
3755
3743
|
}
|
|
3756
3744
|
}
|
|
3757
3745
|
};
|
|
3758
|
-
async function
|
|
3746
|
+
async function Ln() {
|
|
3759
3747
|
be(!0), ce(null);
|
|
3760
3748
|
try {
|
|
3761
|
-
if (!(
|
|
3749
|
+
if (!(G ?? await jt())) {
|
|
3762
3750
|
ce(
|
|
3763
3751
|
"The application packet could not be built, so there is nothing to queue — see the error above."
|
|
3764
3752
|
);
|
|
3765
3753
|
return;
|
|
3766
3754
|
}
|
|
3767
|
-
await
|
|
3755
|
+
await Rn(t, "review", e), Pe(!0);
|
|
3768
3756
|
} catch (S) {
|
|
3769
3757
|
ce(S instanceof re ? S.message : "Failed to queue the application");
|
|
3770
3758
|
} finally {
|
|
3771
3759
|
be(!1);
|
|
3772
3760
|
}
|
|
3773
3761
|
}
|
|
3774
|
-
const
|
|
3762
|
+
const $n = async () => {
|
|
3775
3763
|
if (!(!L || pe)) {
|
|
3776
3764
|
Te(!0), h(null);
|
|
3777
3765
|
try {
|
|
@@ -3782,10 +3770,10 @@ function $o({
|
|
|
3782
3770
|
Te(!1);
|
|
3783
3771
|
}
|
|
3784
3772
|
}
|
|
3785
|
-
},
|
|
3773
|
+
}, Tn = () => {
|
|
3786
3774
|
T && navigator.clipboard?.writeText(T).then(
|
|
3787
3775
|
() => {
|
|
3788
|
-
|
|
3776
|
+
U(!0), setTimeout(() => U(!1), 2e3);
|
|
3789
3777
|
},
|
|
3790
3778
|
() => y("Copy failed — select the link and copy manually")
|
|
3791
3779
|
);
|
|
@@ -3801,7 +3789,7 @@ function $o({
|
|
|
3801
3789
|
),
|
|
3802
3790
|
/* @__PURE__ */ g("aside", { className: "jp-drawer", role: "dialog", "aria-labelledby": "jp-drawer-title", children: [
|
|
3803
3791
|
/* @__PURE__ */ i("div", { className: "jp-drawer__header", children: /* @__PURE__ */ i("button", { type: "button", className: "jp-drawer__close", onClick: r, "aria-label": "Close", children: "×" }) }),
|
|
3804
|
-
|
|
3792
|
+
jn && /* @__PURE__ */ i("p", { className: "jp-muted", children: "Loading…" }),
|
|
3805
3793
|
Ct && /* @__PURE__ */ i("p", { className: "jp-error", children: Ct }),
|
|
3806
3794
|
L && /* @__PURE__ */ g(He, { children: [
|
|
3807
3795
|
/* @__PURE__ */ i("h2", { id: "jp-drawer-title", className: "jp-drawer__title", children: L.title }),
|
|
@@ -3859,7 +3847,7 @@ function $o({
|
|
|
3859
3847
|
/* @__PURE__ */ i("h3", { children: "Triage" }),
|
|
3860
3848
|
!ke && /* @__PURE__ */ i("p", { className: "jp-muted", children: "Sign in to track your interest in this job." }),
|
|
3861
3849
|
/* @__PURE__ */ i("div", { className: "jp-drawer__vote", children: /* @__PURE__ */ i(
|
|
3862
|
-
|
|
3850
|
+
Cn,
|
|
3863
3851
|
{
|
|
3864
3852
|
jobId: t,
|
|
3865
3853
|
auth: e,
|
|
@@ -3867,13 +3855,13 @@ function $o({
|
|
|
3867
3855
|
reasons: C,
|
|
3868
3856
|
disabled: !ke,
|
|
3869
3857
|
align: "start",
|
|
3870
|
-
onVoteChange: (S,
|
|
3871
|
-
m(
|
|
3858
|
+
onVoteChange: (S, z, ne) => {
|
|
3859
|
+
m(z), w(ne), s?.(S, z, ne);
|
|
3872
3860
|
}
|
|
3873
3861
|
}
|
|
3874
3862
|
) }),
|
|
3875
|
-
Po.map((S,
|
|
3876
|
-
const Ze = d === ne,
|
|
3863
|
+
Po.map((S, z) => /* @__PURE__ */ i("div", { className: "jp-drawer__actions jp-drawer__actions--states", children: S.map(({ state: ne, label: An, verb: On }) => {
|
|
3864
|
+
const Ze = d === ne, Dn = b === ne;
|
|
3877
3865
|
return /* @__PURE__ */ i(
|
|
3878
3866
|
"button",
|
|
3879
3867
|
{
|
|
@@ -3881,15 +3869,15 @@ function $o({
|
|
|
3881
3869
|
className: `jp-drawer__cta jp-drawer__cta--state-${ne}${Ze ? " jp-drawer__cta--active" : ""}`,
|
|
3882
3870
|
disabled: !ke || b !== null,
|
|
3883
3871
|
onClick: () => {
|
|
3884
|
-
|
|
3872
|
+
Sn(ne);
|
|
3885
3873
|
},
|
|
3886
3874
|
"aria-pressed": Ze,
|
|
3887
3875
|
"data-testid": `state-action-${ne}`,
|
|
3888
|
-
children:
|
|
3876
|
+
children: Dn ? "…" : Ze ? An : On
|
|
3889
3877
|
},
|
|
3890
3878
|
ne
|
|
3891
3879
|
);
|
|
3892
|
-
}) },
|
|
3880
|
+
}) }, z)),
|
|
3893
3881
|
ke && /* @__PURE__ */ i("p", { className: "jp-drawer__block", children: he ? /* @__PURE__ */ g("span", { "data-testid": "company-blocked", children: [
|
|
3894
3882
|
L.company,
|
|
3895
3883
|
" is hidden from your feed. Undo it on the Profile tab."
|
|
@@ -3899,7 +3887,7 @@ function $o({
|
|
|
3899
3887
|
type: "button",
|
|
3900
3888
|
className: "jp-drawer__link",
|
|
3901
3889
|
onClick: () => {
|
|
3902
|
-
|
|
3890
|
+
$n();
|
|
3903
3891
|
},
|
|
3904
3892
|
disabled: pe,
|
|
3905
3893
|
"data-testid": "block-company",
|
|
@@ -3941,10 +3929,10 @@ function $o({
|
|
|
3941
3929
|
{
|
|
3942
3930
|
type: "button",
|
|
3943
3931
|
className: "jp-drawer__cta",
|
|
3944
|
-
onClick:
|
|
3945
|
-
disabled: !ke ||
|
|
3932
|
+
onClick: Pn,
|
|
3933
|
+
disabled: !ke || E,
|
|
3946
3934
|
"data-testid": "prepare-application",
|
|
3947
|
-
children:
|
|
3935
|
+
children: E ? "Preparing…" : x ? "Regenerate application" : "Prepare application"
|
|
3948
3936
|
}
|
|
3949
3937
|
)
|
|
3950
3938
|
] }),
|
|
@@ -3956,12 +3944,12 @@ function $o({
|
|
|
3956
3944
|
type: "button",
|
|
3957
3945
|
className: "jp-drawer__cta jp-drawer__cta--primary",
|
|
3958
3946
|
onClick: () => {
|
|
3959
|
-
|
|
3947
|
+
Ln();
|
|
3960
3948
|
},
|
|
3961
|
-
disabled: !ke || le || we ||
|
|
3949
|
+
disabled: !ke || le || we || E,
|
|
3962
3950
|
"data-testid": "queue-application",
|
|
3963
|
-
title:
|
|
3964
|
-
children: we ? "Queued ✓" : le ?
|
|
3951
|
+
title: G ? "Queue this application for the form runner" : "Builds the application packet, then queues it for the form runner",
|
|
3952
|
+
children: we ? "Queued ✓" : le ? G ? "Queueing…" : "Preparing, then queueing…" : "Hand to runner"
|
|
3965
3953
|
}
|
|
3966
3954
|
),
|
|
3967
3955
|
/* @__PURE__ */ i("span", { className: "jp-muted", children: we ? "Fills, then waits for your approval." : "Review mode — nothing is sent without your approval." })
|
|
@@ -3981,7 +3969,7 @@ function $o({
|
|
|
3981
3969
|
"aria-label": "Shareable packet link"
|
|
3982
3970
|
}
|
|
3983
3971
|
),
|
|
3984
|
-
/* @__PURE__ */ i("button", { type: "button", className: "jp-drawer__cta", onClick:
|
|
3972
|
+
/* @__PURE__ */ i("button", { type: "button", className: "jp-drawer__cta", onClick: Tn, children: N ? "Copied ✓" : "Copy" }),
|
|
3985
3973
|
/* @__PURE__ */ i(
|
|
3986
3974
|
"a",
|
|
3987
3975
|
{
|
|
@@ -3998,19 +3986,19 @@ function $o({
|
|
|
3998
3986
|
type: "button",
|
|
3999
3987
|
className: "jp-drawer__cta jp-drawer__cta--primary",
|
|
4000
3988
|
onClick: () => {
|
|
4001
|
-
|
|
3989
|
+
xn();
|
|
4002
3990
|
},
|
|
4003
|
-
disabled:
|
|
4004
|
-
children:
|
|
3991
|
+
disabled: I || !x.coverLetter,
|
|
3992
|
+
children: I ? "Creating link…" : "Create shareable link"
|
|
4005
3993
|
}
|
|
4006
3994
|
) }),
|
|
4007
3995
|
j && /* @__PURE__ */ i("p", { className: "jp-error", children: j }),
|
|
4008
|
-
|
|
3996
|
+
E && !P && /* @__PURE__ */ i("p", { className: "jp-muted", children: "Preparing the rest of the kit…" }),
|
|
4009
3997
|
B && /* @__PURE__ */ i("p", { className: "jp-error", children: B }),
|
|
4010
3998
|
P && /* @__PURE__ */ g("div", { className: "jp-drawer__kit", children: [
|
|
4011
3999
|
/* @__PURE__ */ i(ue, { label: "Intro email", value: P.intro_email, rows: 8 }),
|
|
4012
4000
|
/* @__PURE__ */ i(ue, { label: "Why this role", value: P.why_hook, rows: 3 }),
|
|
4013
|
-
P.screening_answers.map((S,
|
|
4001
|
+
P.screening_answers.map((S, z) => /* @__PURE__ */ i(ue, { label: S.q, value: S.a, rows: 4 }, z)),
|
|
4014
4002
|
/* @__PURE__ */ i(
|
|
4015
4003
|
ue,
|
|
4016
4004
|
{
|
|
@@ -4054,35 +4042,35 @@ function $o({
|
|
|
4054
4042
|
] });
|
|
4055
4043
|
}
|
|
4056
4044
|
const To = ge(
|
|
4057
|
-
() => import("./ApplicationsList-
|
|
4045
|
+
() => import("./ApplicationsList-B_IpHPXq.js").then((e) => ({ default: e.ApplicationsList }))
|
|
4058
4046
|
), Ao = ge(
|
|
4059
|
-
() => import("./PacketsList-
|
|
4047
|
+
() => import("./PacketsList-CtPQIhyx.js").then((e) => ({ default: e.PacketsList }))
|
|
4060
4048
|
), Oo = ge(
|
|
4061
|
-
() => import("./PacketDetail-
|
|
4049
|
+
() => import("./PacketDetail-DeOgBjKi.js").then((e) => ({ default: e.PacketDetail }))
|
|
4062
4050
|
), Do = ge(
|
|
4063
|
-
() => import("./PipelineBoard-
|
|
4051
|
+
() => import("./PipelineBoard-BgqelW_w.js").then((e) => ({ default: e.PipelineBoard }))
|
|
4064
4052
|
), Fo = ge(
|
|
4065
|
-
() => import("./InsightsPage-
|
|
4066
|
-
),
|
|
4067
|
-
() => import("./ProfilePage-
|
|
4068
|
-
),
|
|
4053
|
+
() => import("./InsightsPage-1riaKlxv.js").then((e) => ({ default: e.InsightsPage }))
|
|
4054
|
+
), Io = ge(
|
|
4055
|
+
() => import("./ProfilePage-YLomJCE4.js").then((e) => ({ default: e.ProfilePage }))
|
|
4056
|
+
), Uo = /* @__PURE__ */ i("p", { className: "jp-muted", children: "Loading…" });
|
|
4069
4057
|
function Mo(e = {}) {
|
|
4070
4058
|
const t = Fe(null);
|
|
4071
|
-
return /* @__PURE__ */ i(
|
|
4059
|
+
return /* @__PURE__ */ i(Hn, { theme: e.theme, containerRef: t, children: /* @__PURE__ */ i(Bo, { ...e, containerRef: t }) });
|
|
4072
4060
|
}
|
|
4073
4061
|
function Bo(e) {
|
|
4074
|
-
const { containerRef: t } = e, n = !!e.userType && e.userType !== "public", a = fe(() => ({ signedIn: n }), [n]), [r] =
|
|
4075
|
-
return c && !l ? /* @__PURE__ */ i(
|
|
4062
|
+
const { containerRef: t } = e, n = !!e.userType && e.userType !== "public", a = fe(() => ({ signedIn: n }), [n]), [r] = R(() => window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches : !1), { theme: o, isDarkTheme: s, isThemeReady: l, isInitialThemeLoad: c } = Wn();
|
|
4063
|
+
return c && !l ? /* @__PURE__ */ i(Mn, { isDarkTheme: r }) : /* @__PURE__ */ i(
|
|
4076
4064
|
"main",
|
|
4077
4065
|
{
|
|
4078
4066
|
ref: t,
|
|
4079
4067
|
className: "job-platform-container",
|
|
4080
4068
|
"data-theme": o,
|
|
4081
4069
|
"data-dark-theme": s ? "true" : "false",
|
|
4082
|
-
children: /* @__PURE__ */ i(
|
|
4083
|
-
/* @__PURE__ */ i(
|
|
4070
|
+
children: /* @__PURE__ */ i(hr, { children: /* @__PURE__ */ g("div", { className: "job-platform", children: [
|
|
4071
|
+
/* @__PURE__ */ i(Bn, { title: e.appName ?? "Job Platform" }),
|
|
4084
4072
|
/* @__PURE__ */ i(Ho, {}),
|
|
4085
|
-
/* @__PURE__ */ i(it, { fallback:
|
|
4073
|
+
/* @__PURE__ */ i(it, { fallback: Uo, children: /* @__PURE__ */ g(Ha, { children: [
|
|
4086
4074
|
/* @__PURE__ */ g(Q, { element: /* @__PURE__ */ i(Go, { auth: a }), children: [
|
|
4087
4075
|
/* @__PURE__ */ i(Q, { index: !0, element: null }),
|
|
4088
4076
|
/* @__PURE__ */ i(Q, { path: "jobs/:jobId", element: /* @__PURE__ */ i(zt, { auth: a, base: "/" }) })
|
|
@@ -4110,7 +4098,7 @@ function Bo(e) {
|
|
|
4110
4098
|
Q,
|
|
4111
4099
|
{
|
|
4112
4100
|
path: "profile",
|
|
4113
|
-
element: /* @__PURE__ */ i("section", { className: "jp-main", children: /* @__PURE__ */ i(
|
|
4101
|
+
element: /* @__PURE__ */ i("section", { className: "jp-main", children: /* @__PURE__ */ i(Io, { auth: a }) })
|
|
4114
4102
|
}
|
|
4115
4103
|
),
|
|
4116
4104
|
/* @__PURE__ */ i(Q, { path: "packets/:jobId/:slug", element: /* @__PURE__ */ i(Ko, { auth: a }) }),
|
|
@@ -4132,7 +4120,7 @@ function Ho() {
|
|
|
4132
4120
|
] });
|
|
4133
4121
|
}
|
|
4134
4122
|
function Wo({ auth: e }) {
|
|
4135
|
-
const t = ve(), [n, a] =
|
|
4123
|
+
const t = ve(), [n, a] = R(0), r = se(() => a((s) => s + 1), []), o = fe(
|
|
4136
4124
|
() => ({ onJobStateChanged: r, onTrackingChanged: r }),
|
|
4137
4125
|
[r]
|
|
4138
4126
|
);
|
|
@@ -4197,27 +4185,27 @@ function Go({ auth: e }) {
|
|
|
4197
4185
|
);
|
|
4198
4186
|
},
|
|
4199
4187
|
[n]
|
|
4200
|
-
), [o] =
|
|
4188
|
+
), [o] = R(() => t.get("profile") ? null : Vo());
|
|
4201
4189
|
Y(() => {
|
|
4202
4190
|
o && !t.get("profile") && r(o);
|
|
4203
4191
|
}, [o, t, r]);
|
|
4204
|
-
const s = t.get("profile") ?? o, [l, c] =
|
|
4192
|
+
const s = t.get("profile") ?? o, [l, c] = R(!1), u = se((P) => c(P === 0), []), h = e.signedIn && !s && !l, [d, v] = R(0), b = se(() => {
|
|
4205
4193
|
De("jobs:"), v((P) => P + 1);
|
|
4206
|
-
}, []), [_, f] =
|
|
4194
|
+
}, []), [_, f] = R({}), m = se(
|
|
4207
4195
|
(P, A) => f((B) => ({ ...B, [P]: A })),
|
|
4208
4196
|
[]
|
|
4209
|
-
), [C, w] =
|
|
4197
|
+
), [C, w] = R({}), E = se(
|
|
4210
4198
|
(P, A, B) => {
|
|
4211
4199
|
w((k) => ({ ...k, [P]: { vote: A, reasons: B } }));
|
|
4212
4200
|
},
|
|
4213
4201
|
[]
|
|
4214
|
-
), [$, x] =
|
|
4215
|
-
() => ({ onJobStateChanged: m, onJobVoted:
|
|
4216
|
-
[m,
|
|
4202
|
+
), [$, x] = R(null), [F, J] = R(0), H = fe(
|
|
4203
|
+
() => ({ onJobStateChanged: m, onJobVoted: E, onCompanyBlocked: b }),
|
|
4204
|
+
[m, E, b]
|
|
4217
4205
|
);
|
|
4218
4206
|
return /* @__PURE__ */ g("div", { className: "jp-dashboard", children: [
|
|
4219
4207
|
/* @__PURE__ */ i(
|
|
4220
|
-
|
|
4208
|
+
Hr,
|
|
4221
4209
|
{
|
|
4222
4210
|
auth: e,
|
|
4223
4211
|
selectedId: s,
|
|
@@ -4235,7 +4223,7 @@ function Go({ auth: e }) {
|
|
|
4235
4223
|
profileId: s,
|
|
4236
4224
|
refreshKey: d,
|
|
4237
4225
|
voteOverrides: C,
|
|
4238
|
-
onVote:
|
|
4226
|
+
onVote: E,
|
|
4239
4227
|
stateOverrides: _,
|
|
4240
4228
|
awaitingProfile: h,
|
|
4241
4229
|
onSelect: (P, A) => {
|
|
@@ -4260,7 +4248,7 @@ function Go({ auth: e }) {
|
|
|
4260
4248
|
] });
|
|
4261
4249
|
}
|
|
4262
4250
|
function zt({ auth: e, base: t }) {
|
|
4263
|
-
const { jobId: n } = dn(), [a] = wn(), r = a.get("profile"), o = ve(), s = te(), l =
|
|
4251
|
+
const { jobId: n } = dn(), [a] = wn(), r = a.get("profile"), o = ve(), s = te(), l = Ca();
|
|
4264
4252
|
if (!n) return null;
|
|
4265
4253
|
const c = s.state?.vote ?? null;
|
|
4266
4254
|
return /* @__PURE__ */ i(
|
|
@@ -4281,7 +4269,7 @@ function zt({ auth: e, base: t }) {
|
|
|
4281
4269
|
}
|
|
4282
4270
|
);
|
|
4283
4271
|
}
|
|
4284
|
-
class zo extends
|
|
4272
|
+
class zo extends Un {
|
|
4285
4273
|
state = { error: null };
|
|
4286
4274
|
static getDerivedStateFromError(t) {
|
|
4287
4275
|
return { error: t };
|
|
@@ -4309,10 +4297,10 @@ class zo extends Mn {
|
|
|
4309
4297
|
}
|
|
4310
4298
|
}
|
|
4311
4299
|
function fi(e, t = {}) {
|
|
4312
|
-
const n =
|
|
4300
|
+
const n = Fn(e);
|
|
4313
4301
|
n.render(
|
|
4314
4302
|
/* @__PURE__ */ i(zo, { children: /* @__PURE__ */ i(Mo, { ...t }) })
|
|
4315
|
-
), e.__root = n, e.__stopTelemetry =
|
|
4303
|
+
), e.__root = n, e.__stopTelemetry = Pr(e, { app: "jobplatform" }), Yt.info("[job-platform] Mounted successfully", { theme: t.theme });
|
|
4316
4304
|
}
|
|
4317
4305
|
function yi(e) {
|
|
4318
4306
|
e.__stopTelemetry?.(), e.__root?.unmount(), Yt.info("[job-platform] Unmounted successfully");
|
|
@@ -4326,8 +4314,8 @@ export {
|
|
|
4326
4314
|
ri as d,
|
|
4327
4315
|
ni as e,
|
|
4328
4316
|
li as f,
|
|
4329
|
-
|
|
4330
|
-
|
|
4317
|
+
Jr as g,
|
|
4318
|
+
qr as h,
|
|
4331
4319
|
De as i,
|
|
4332
4320
|
mi as j,
|
|
4333
4321
|
ui as k,
|
|
@@ -4337,7 +4325,7 @@ export {
|
|
|
4337
4325
|
ro as o,
|
|
4338
4326
|
hi as p,
|
|
4339
4327
|
Se as q,
|
|
4340
|
-
|
|
4328
|
+
Nn as r,
|
|
4341
4329
|
si as s,
|
|
4342
4330
|
O as t,
|
|
4343
4331
|
Qe as u,
|