@igamingcareer/igaming-components 1.0.87 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -17
- package/dist/index.mjs +465 -465
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import Ke, { forwardRef as Nc, createElement as Ma, useState as I, useMemo as Fe, useEffect as
|
|
2
|
+
import Ke, { forwardRef as Nc, createElement as Ma, useState as I, useMemo as Fe, useEffect as re, createContext as VL, useContext as BL, useCallback as Ct, useRef as Hn, useLayoutEffect as mT } from "react";
|
|
3
3
|
import * as Yj from "react-dom";
|
|
4
4
|
import $L from "react-dom";
|
|
5
5
|
function yT(t) {
|
|
@@ -69,7 +69,7 @@ function xT() {
|
|
|
69
69
|
}
|
|
70
70
|
var C = !1, M = !1, L = !1, N = !1, j = !1, S;
|
|
71
71
|
S = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
72
|
+
function D(A) {
|
|
73
73
|
return !!(typeof A == "string" || typeof A == "function" || A === r || A === i || j || A === s || A === h || A === u || N || A === m || C || M || L || typeof A == "object" && A !== null && (A.$$typeof === y || A.$$typeof === p || A.$$typeof === o || A.$$typeof === l || A.$$typeof === d || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
@@ -86,7 +86,7 @@ function xT() {
|
|
|
86
86
|
function _(A) {
|
|
87
87
|
return A.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function q(A) {
|
|
90
90
|
if (A == null)
|
|
91
91
|
return null;
|
|
92
92
|
if (typeof A.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof A == "function")
|
|
@@ -119,11 +119,11 @@ function xT() {
|
|
|
119
119
|
return P(A, A.render, "ForwardRef");
|
|
120
120
|
case p:
|
|
121
121
|
var z = A.displayName || null;
|
|
122
|
-
return z !== null ? z :
|
|
122
|
+
return z !== null ? z : q(A.type) || "Memo";
|
|
123
123
|
case y: {
|
|
124
124
|
var Y = A, ce = Y._payload, me = Y._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return q(me(ce));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function xT() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var H = Object.assign, G = 0, V, $, O,
|
|
134
|
+
var H = Object.assign, G = 0, V, $, O, se, K, X, Z;
|
|
135
135
|
function de() {
|
|
136
136
|
}
|
|
137
137
|
de.__reactDisabledLog = !0;
|
|
138
138
|
function ae() {
|
|
139
139
|
{
|
|
140
140
|
if (G === 0) {
|
|
141
|
-
V = console.log, $ = console.info, O = console.warn,
|
|
141
|
+
V = console.log, $ = console.info, O = console.warn, se = console.error, K = console.group, X = console.groupCollapsed, Z = console.groupEnd;
|
|
142
142
|
var A = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -177,7 +177,7 @@ function xT() {
|
|
|
177
177
|
value: O
|
|
178
178
|
}),
|
|
179
179
|
error: H({}, A, {
|
|
180
|
-
value:
|
|
180
|
+
value: se
|
|
181
181
|
}),
|
|
182
182
|
group: H({}, A, {
|
|
183
183
|
value: K
|
|
@@ -186,25 +186,25 @@ function xT() {
|
|
|
186
186
|
value: X
|
|
187
187
|
}),
|
|
188
188
|
groupEnd: H({}, A, {
|
|
189
|
-
value:
|
|
189
|
+
value: Z
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
G < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var be = k.ReactCurrentDispatcher,
|
|
196
|
+
var be = k.ReactCurrentDispatcher, J;
|
|
197
197
|
function ne(A, B, R) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (J === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (Y) {
|
|
203
203
|
var z = Y.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
-
|
|
204
|
+
J = z && z[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + J + A;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var ve = !1, ke;
|
|
@@ -395,8 +395,8 @@ function xT() {
|
|
|
395
395
|
}
|
|
396
396
|
function na(A, B) {
|
|
397
397
|
if (typeof A.ref == "string" && F.current && B && F.current.stateNode !== B) {
|
|
398
|
-
var R =
|
|
399
|
-
Oe[R] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
398
|
+
var R = q(F.current.type);
|
|
399
|
+
Oe[R] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(F.current.type), A.ref), Oe[R] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function ra(A, B) {
|
|
@@ -484,7 +484,7 @@ function xT() {
|
|
|
484
484
|
function W() {
|
|
485
485
|
{
|
|
486
486
|
if (pn.current) {
|
|
487
|
-
var A =
|
|
487
|
+
var A = q(pn.current.type);
|
|
488
488
|
if (A)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + R + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
Me[R] = !0;
|
|
521
521
|
var z = "";
|
|
522
|
-
A && A._owner && A._owner !== pn.current && (z = " It was passed a child from " +
|
|
522
|
+
A && A._owner && A._owner !== pn.current && (z = " It was passed a child from " + q(A._owner.type) + "."), xa(A), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, z), xa(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function Wa(A, B) {
|
|
@@ -556,11 +556,11 @@ Check the top-level render call using <` + R + ">.");
|
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
558
|
if (R) {
|
|
559
|
-
var z =
|
|
559
|
+
var z = q(B);
|
|
560
560
|
Ge(R, A.props, "prop", z, A);
|
|
561
561
|
} else if (B.PropTypes !== void 0 && !Ga) {
|
|
562
562
|
Ga = !0;
|
|
563
|
-
var Y =
|
|
563
|
+
var Y = q(B);
|
|
564
564
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
565
565
|
}
|
|
566
566
|
typeof B.getDefaultProps == "function" && !B.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -581,14 +581,14 @@ Check the top-level render call using <` + R + ">.");
|
|
|
581
581
|
var yn = {};
|
|
582
582
|
function Ze(A, B, R, z, Y, ce) {
|
|
583
583
|
{
|
|
584
|
-
var me =
|
|
584
|
+
var me = D(A);
|
|
585
585
|
if (!me) {
|
|
586
586
|
var ge = "";
|
|
587
587
|
(A === void 0 || typeof A == "object" && A !== null && Object.keys(A).length === 0) && (ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
588
|
var De = oe();
|
|
589
589
|
De ? ge += De : ge += W();
|
|
590
590
|
var je;
|
|
591
|
-
A === null ? je = "null" : nt(A) ? je = "array" : A !== void 0 && A.$$typeof === a ? (je = "<" + (
|
|
591
|
+
A === null ? je = "null" : nt(A) ? je = "array" : A !== void 0 && A.$$typeof === a ? (je = "<" + (q(A.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : je = typeof A, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", je, ge);
|
|
592
592
|
}
|
|
593
593
|
var Ie = Yn(A, B, R, Y, ce);
|
|
594
594
|
if (Ie == null)
|
|
@@ -607,7 +607,7 @@ Check the top-level render call using <` + R + ">.");
|
|
|
607
607
|
Wa(qe, A);
|
|
608
608
|
}
|
|
609
609
|
if (lt.call(B, "key")) {
|
|
610
|
-
var sa =
|
|
610
|
+
var sa = q(A), Tt = Object.keys(B).filter(function(pT) {
|
|
611
611
|
return pT !== "key";
|
|
612
612
|
}), S9 = Tt.length > 0 ? "{key: someKey, " + Tt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!yn[sa + S9]) {
|
|
@@ -989,7 +989,7 @@ const Ee = (t) => {
|
|
|
989
989
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
990
990
|
BT.test(t) && !$T.test(t)
|
|
991
991
|
), KL = () => !1, tD = (t) => UT.test(t), aD = (t) => GT.test(t), nD = () => {
|
|
992
|
-
const t = Ee("colors"), a = Ee("spacing"), n = Ee("blur"), r = Ee("brightness"), s = Ee("borderColor"), i = Ee("borderRadius"), o = Ee("borderSpacing"), l = Ee("borderWidth"), d = Ee("contrast"), h = Ee("grayscale"), u = Ee("hueRotate"), p = Ee("invert"), y = Ee("gap"), m = Ee("gradientColorStops"), x = Ee("gradientColorStopPositions"), f = Ee("inset"), v = Ee("margin"), k = Ee("opacity"), w = Ee("padding"), b = Ee("saturate"), C = Ee("scale"), M = Ee("sepia"), L = Ee("skew"), N = Ee("space"), j = Ee("translate"), S = () => ["auto", "contain", "none"],
|
|
992
|
+
const t = Ee("colors"), a = Ee("spacing"), n = Ee("blur"), r = Ee("brightness"), s = Ee("borderColor"), i = Ee("borderRadius"), o = Ee("borderSpacing"), l = Ee("borderWidth"), d = Ee("contrast"), h = Ee("grayscale"), u = Ee("hueRotate"), p = Ee("invert"), y = Ee("gap"), m = Ee("gradientColorStops"), x = Ee("gradientColorStopPositions"), f = Ee("inset"), v = Ee("margin"), k = Ee("opacity"), w = Ee("padding"), b = Ee("saturate"), C = Ee("scale"), M = Ee("sepia"), L = Ee("skew"), N = Ee("space"), j = Ee("translate"), S = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", we, a], _ = () => [we, a], q = () => ["", Za, fn], H = () => ["auto", ac, we], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", we], K = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [ac, we];
|
|
993
993
|
return {
|
|
994
994
|
cacheSize: 500,
|
|
995
995
|
separator: ":",
|
|
@@ -1001,11 +1001,11 @@ const Ee = (t) => {
|
|
|
1001
1001
|
borderColor: [t],
|
|
1002
1002
|
borderRadius: ["none", "", "full", xn, we],
|
|
1003
1003
|
borderSpacing: _(),
|
|
1004
|
-
borderWidth:
|
|
1004
|
+
borderWidth: q(),
|
|
1005
1005
|
contrast: X(),
|
|
1006
|
-
grayscale:
|
|
1006
|
+
grayscale: se(),
|
|
1007
1007
|
hueRotate: X(),
|
|
1008
|
-
invert:
|
|
1008
|
+
invert: se(),
|
|
1009
1009
|
gap: _(),
|
|
1010
1010
|
gradientColorStops: [t],
|
|
1011
1011
|
gradientColorStopPositions: [WT, fn],
|
|
@@ -1015,7 +1015,7 @@ const Ee = (t) => {
|
|
|
1015
1015
|
padding: _(),
|
|
1016
1016
|
saturate: X(),
|
|
1017
1017
|
scale: X(),
|
|
1018
|
-
sepia:
|
|
1018
|
+
sepia: se(),
|
|
1019
1019
|
skew: X(),
|
|
1020
1020
|
space: _(),
|
|
1021
1021
|
translate: _()
|
|
@@ -1119,21 +1119,21 @@ const Ee = (t) => {
|
|
|
1119
1119
|
* @see https://tailwindcss.com/docs/overflow
|
|
1120
1120
|
*/
|
|
1121
1121
|
overflow: [{
|
|
1122
|
-
overflow:
|
|
1122
|
+
overflow: D()
|
|
1123
1123
|
}],
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Overflow X
|
|
1126
1126
|
* @see https://tailwindcss.com/docs/overflow
|
|
1127
1127
|
*/
|
|
1128
1128
|
"overflow-x": [{
|
|
1129
|
-
"overflow-x":
|
|
1129
|
+
"overflow-x": D()
|
|
1130
1130
|
}],
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Overflow Y
|
|
1133
1133
|
* @see https://tailwindcss.com/docs/overflow
|
|
1134
1134
|
*/
|
|
1135
1135
|
"overflow-y": [{
|
|
1136
|
-
"overflow-y":
|
|
1136
|
+
"overflow-y": D()
|
|
1137
1137
|
}],
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Overscroll Behavior
|
|
@@ -1270,14 +1270,14 @@ const Ee = (t) => {
|
|
|
1270
1270
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1271
1271
|
*/
|
|
1272
1272
|
grow: [{
|
|
1273
|
-
grow:
|
|
1273
|
+
grow: se()
|
|
1274
1274
|
}],
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Flex Shrink
|
|
1277
1277
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1278
1278
|
*/
|
|
1279
1279
|
shrink: [{
|
|
1280
|
-
shrink:
|
|
1280
|
+
shrink: se()
|
|
1281
1281
|
}],
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Order
|
|
@@ -2321,7 +2321,7 @@ const Ee = (t) => {
|
|
|
2321
2321
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2322
2322
|
*/
|
|
2323
2323
|
"ring-w": [{
|
|
2324
|
-
ring:
|
|
2324
|
+
ring: q()
|
|
2325
2325
|
}],
|
|
2326
2326
|
/**
|
|
2327
2327
|
* Ring Width Inset
|
|
@@ -32383,9 +32383,9 @@ var qD = g.forwardRef((t, a) => {
|
|
|
32383
32383
|
onFocus: tn(t.onFocus, (j) => {
|
|
32384
32384
|
const S = !M.current;
|
|
32385
32385
|
if (j.target === j.currentTarget && S && !k) {
|
|
32386
|
-
const
|
|
32387
|
-
if (j.currentTarget.dispatchEvent(
|
|
32388
|
-
const P = C().filter((V) => V.focusable), _ = P.find((V) => V.active),
|
|
32386
|
+
const D = new CustomEvent(I9, PD);
|
|
32387
|
+
if (j.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
32388
|
+
const P = C().filter((V) => V.focusable), _ = P.find((V) => V.active), q = P.find((V) => V.id === f), G = [_, q, ...P].filter(
|
|
32389
32389
|
Boolean
|
|
32390
32390
|
).map((V) => V.ref.current);
|
|
32391
32391
|
hI(G, u);
|
|
@@ -32784,7 +32784,7 @@ function BW({
|
|
|
32784
32784
|
buttonMsg: i = "Select Plan"
|
|
32785
32785
|
}) {
|
|
32786
32786
|
const [o, l] = I([]), [d, h] = I("tab-0"), u = r || window.location.origin || "http://localhost:8000";
|
|
32787
|
-
|
|
32787
|
+
re(() => {
|
|
32788
32788
|
(async () => {
|
|
32789
32789
|
try {
|
|
32790
32790
|
const x = n ?? "en", f = t.map(async (k) => (await fetch(`${u}/api/v1/promotions/?ids=${k}`, {
|
|
@@ -33719,12 +33719,12 @@ var Nt = /* @__PURE__ */ function(t) {
|
|
|
33719
33719
|
}
|
|
33720
33720
|
else {
|
|
33721
33721
|
m = this._last;
|
|
33722
|
-
for (var
|
|
33723
|
-
if (x = m._prev, (m._act ||
|
|
33722
|
+
for (var D = s < 0 ? s : y; m; ) {
|
|
33723
|
+
if (x = m._prev, (m._act || D <= m._end) && m._ts && w !== m) {
|
|
33724
33724
|
if (m.parent !== this)
|
|
33725
33725
|
return this.render(s, i, o);
|
|
33726
|
-
if (m.render(m._ts > 0 ? (
|
|
33727
|
-
w = 0, x && (u += this._zTime =
|
|
33726
|
+
if (m.render(m._ts > 0 ? (D - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (D - m._start) * m._ts, i, o || gt && (m._initted || m._startAt)), y !== this._time || !this._ts && !k) {
|
|
33727
|
+
w = 0, x && (u += this._zTime = D ? -ze : ze);
|
|
33728
33728
|
break;
|
|
33729
33729
|
}
|
|
33730
33730
|
}
|
|
@@ -33891,7 +33891,7 @@ var Cq = function(a, n, r, s, i, o, l) {
|
|
|
33891
33891
|
h[l._props[u]] = d;
|
|
33892
33892
|
return l;
|
|
33893
33893
|
}, Mn, MC, iN = function t(a, n, r) {
|
|
33894
|
-
var s = a.vars, i = s.ease, o = s.startAt, l = s.immediateRender, d = s.lazy, h = s.onUpdate, u = s.runBackwards, p = s.yoyoEase, y = s.keyframes, m = s.autoRevert, x = a._dur, f = a._startAt, v = a._targets, k = a.parent, w = k && k.data === "nested" ? k.vars.targets : v, b = a._overwrite === "auto" && !YC, C = a.timeline, M, L, N, j, S,
|
|
33894
|
+
var s = a.vars, i = s.ease, o = s.startAt, l = s.immediateRender, d = s.lazy, h = s.onUpdate, u = s.runBackwards, p = s.yoyoEase, y = s.keyframes, m = s.autoRevert, x = a._dur, f = a._startAt, v = a._targets, k = a.parent, w = k && k.data === "nested" ? k.vars.targets : v, b = a._overwrite === "auto" && !YC, C = a.timeline, M, L, N, j, S, D, P, _, q, H, G, V, $;
|
|
33895
33895
|
if (C && (!y || !i) && (i = "none"), a._ease = _o(i, kc.ease), a._yEase = p ? aA(_o(p === !0 ? i : p, kc.ease)) : 0, p && a._yoyo && !a._repeat && (p = a._yEase, a._yEase = a._ease, a._ease = p), a._from = !C && !!s.runBackwards, !C || y && !s.stagger) {
|
|
33896
33896
|
if (_ = v[0] ? Ao(v[0]).harness : 0, V = _ && s[_.prop], M = Dj(s, aN), f && (f._zTime < 0 && f.progress(1), n < 0 && u && l && !m ? f.render(-1, !0) : f.revert(u && x ? Mj : eq), f._lazy = 0), o) {
|
|
33897
33897
|
if (Vn(a._startAt = Qe.set(v, ya({
|
|
@@ -33927,14 +33927,14 @@ var Cq = function(a, n, r, s, i, o, l) {
|
|
|
33927
33927
|
return;
|
|
33928
33928
|
}
|
|
33929
33929
|
for (a._pt = a._ptCache = 0, d = x && zt(d) || d && !x, L = 0; L < v.length; L++) {
|
|
33930
|
-
if (S = v[L], P = S._gsap || rN(v)[L]._gsap, a._ptLookup[L] = H = {}, xC[P.id] && zn.length && Tj(), G = w === v ? L : w.indexOf(S), _ && (
|
|
33930
|
+
if (S = v[L], P = S._gsap || rN(v)[L]._gsap, a._ptLookup[L] = H = {}, xC[P.id] && zn.length && Tj(), G = w === v ? L : w.indexOf(S), _ && (q = new _()).init(S, V || M, a, G, w) !== !1 && (a._pt = j = new Ot(a._pt, S, q.name, 0, 1, q.render, q, 0, q.priority), q._props.forEach(function(O) {
|
|
33931
33931
|
H[O] = j;
|
|
33932
|
-
}),
|
|
33932
|
+
}), q.priority && (D = 1)), !_ || V)
|
|
33933
33933
|
for (N in M)
|
|
33934
|
-
Ut[N] && (
|
|
33934
|
+
Ut[N] && (q = iA(N, M, a, G, S, w)) ? q.priority && (D = 1) : H[N] = j = sN.call(a, S, N, "get", M[N], G, w, 0, s.stringFilter);
|
|
33935
33935
|
a._op && a._op[L] && a.kill(S, a._op[L]), b && a._pt && (Mn = a, $e.killTweensOf(S, H, a.globalTime(n)), $ = !a.parent, Mn = 0), a._pt && d && (xC[P.id] = 1);
|
|
33936
33936
|
}
|
|
33937
|
-
|
|
33937
|
+
D && uA(a), a._onInit && a._onInit(a);
|
|
33938
33938
|
}
|
|
33939
33939
|
a._onUpdate = h, a._initted = (!a._op || a._pt) && !$, y && n <= 0 && C.render(ca, !0, !0);
|
|
33940
33940
|
}, Sq = function(a, n, r, s, i, o, l, d) {
|
|
@@ -33988,24 +33988,24 @@ var Qe = /* @__PURE__ */ function(t) {
|
|
|
33988
33988
|
function a(r, s, i, o) {
|
|
33989
33989
|
var l;
|
|
33990
33990
|
typeof s == "number" && (i.duration = s, s = i, i = null), l = t.call(this, o ? s : hl(s)) || this;
|
|
33991
|
-
var d = l.vars, h = d.duration, u = d.delay, p = d.immediateRender, y = d.stagger, m = d.overwrite, x = d.keyframes, f = d.defaults, v = d.scrollTrigger, k = d.yoyoEase, w = s.parent || $e, b = (kt(r) || LI(r) ? an(r[0]) : "length" in s) ? [r] : la(r), C, M, L, N, j, S,
|
|
33991
|
+
var d = l.vars, h = d.duration, u = d.delay, p = d.immediateRender, y = d.stagger, m = d.overwrite, x = d.keyframes, f = d.defaults, v = d.scrollTrigger, k = d.yoyoEase, w = s.parent || $e, b = (kt(r) || LI(r) ? an(r[0]) : "length" in s) ? [r] : la(r), C, M, L, N, j, S, D, P;
|
|
33992
33992
|
if (l._targets = b.length ? rN(b) : xl("GSAP target " + r + " not found. https://gsap.com", !Kt.nullTargetWarn) || [], l._ptLookup = [], l._overwrite = m, x || y || Dl(h) || Dl(u)) {
|
|
33993
33993
|
if (s = l.vars, C = l.timeline = new Nt({
|
|
33994
33994
|
data: "nested",
|
|
33995
33995
|
defaults: f || {},
|
|
33996
33996
|
targets: w && w.data === "nested" ? w.vars.targets : b
|
|
33997
33997
|
}), C.kill(), C.parent = C._dp = Ja(l), C._start = 0, y || Dl(h) || Dl(u)) {
|
|
33998
|
-
if (N = b.length,
|
|
33998
|
+
if (N = b.length, D = y && GI(y), Oa(y))
|
|
33999
33999
|
for (j in y)
|
|
34000
34000
|
~oA.indexOf(j) && (P || (P = {}), P[j] = y[j]);
|
|
34001
34001
|
for (M = 0; M < N; M++)
|
|
34002
|
-
L = Dj(s, cA), L.stagger = 0, k && (L.yoyoEase = k), P && Do(L, P), S = b[M], L.duration = +pl(h, Ja(l), M, S, b), L.delay = (+pl(u, Ja(l), M, S, b) || 0) - l._delay, !y && N === 1 && L.delay && (l._delay = u = L.delay, l._start += u, L.delay = 0), C.to(S, L,
|
|
34002
|
+
L = Dj(s, cA), L.stagger = 0, k && (L.yoyoEase = k), P && Do(L, P), S = b[M], L.duration = +pl(h, Ja(l), M, S, b), L.delay = (+pl(u, Ja(l), M, S, b) || 0) - l._delay, !y && N === 1 && L.delay && (l._delay = u = L.delay, l._start += u, L.delay = 0), C.to(S, L, D ? D(M, S, b) : 0), C._ease = Ne.none;
|
|
34003
34003
|
C.duration() ? h = u = 0 : l.timeline = 0;
|
|
34004
34004
|
} else if (x) {
|
|
34005
34005
|
hl(ya(C.vars.defaults, {
|
|
34006
34006
|
ease: "none"
|
|
34007
34007
|
})), C._ease = _o(x.ease || s.ease || "none");
|
|
34008
|
-
var _ = 0,
|
|
34008
|
+
var _ = 0, q, H, G;
|
|
34009
34009
|
if (kt(x))
|
|
34010
34010
|
x.forEach(function(V) {
|
|
34011
34011
|
return C.to(b, V, ">");
|
|
@@ -34015,12 +34015,12 @@ var Qe = /* @__PURE__ */ function(t) {
|
|
|
34015
34015
|
for (j in x)
|
|
34016
34016
|
j === "ease" || j === "easeEach" || Iq(j, x[j], L, x.easeEach);
|
|
34017
34017
|
for (j in L)
|
|
34018
|
-
for (
|
|
34018
|
+
for (q = L[j].sort(function(V, $) {
|
|
34019
34019
|
return V.t - $.t;
|
|
34020
|
-
}), _ = 0, M = 0; M <
|
|
34021
|
-
H =
|
|
34020
|
+
}), _ = 0, M = 0; M < q.length; M++)
|
|
34021
|
+
H = q[M], G = {
|
|
34022
34022
|
ease: H.e,
|
|
34023
|
-
duration: (H.t - (M ?
|
|
34023
|
+
duration: (H.t - (M ? q[M - 1].t : 0)) / 100 * h
|
|
34024
34024
|
}, G[j] = H.v, C.to(b, G, _), _ += G.duration;
|
|
34025
34025
|
C.duration() < h && C.to({}, {
|
|
34026
34026
|
duration: h - C.duration()
|
|
@@ -34785,8 +34785,8 @@ var MS, jn, mc, dN, vo, jS, hN, Hq = function() {
|
|
|
34785
34785
|
var r = a._gsap || new sA(a);
|
|
34786
34786
|
if ("x" in r && !n && !r.uncache)
|
|
34787
34787
|
return r;
|
|
34788
|
-
var s = a.style, i = r.scaleX < 0, o = "px", l = "deg", d = getComputedStyle(a), h = za(a, Et) || "0", u, p, y, m, x, f, v, k, w, b, C, M, L, N, j, S,
|
|
34789
|
-
return u = p = y = f = v = k = w = b = C = 0, m = x = 1, r.svg = !!(a.getCTM && vA(a)), d.translate && ((d.translate !== "none" || d.scale !== "none" || d.rotate !== "none") && (s[Ue] = (d.translate !== "none" ? "translate3d(" + (d.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (d.rotate !== "none" ? "rotate(" + d.rotate + ") " : "") + (d.scale !== "none" ? "scale(" + d.scale.split(" ").join(",") + ") " : "") + (d[Ue] !== "none" ? d[Ue] : "")), s.scale = s.rotate = s.translate = "none"), N = pN(a, r.svg), r.svg && (r.uncache ? (O = a.getBBox(), h = r.xOrigin - O.x + "px " + (r.yOrigin - O.y) + "px", $ = "") : $ = !n && a.getAttribute("data-svg-origin"), LC(a, $ || h, !!$ || r.originIsAbsolute, r.smooth !== !1, N)), M = r.xOrigin || 0, L = r.yOrigin || 0, N !== bl && (P = N[0], _ = N[1],
|
|
34788
|
+
var s = a.style, i = r.scaleX < 0, o = "px", l = "deg", d = getComputedStyle(a), h = za(a, Et) || "0", u, p, y, m, x, f, v, k, w, b, C, M, L, N, j, S, D, P, _, q, H, G, V, $, O, se, K, X, Z, de, ae, xe;
|
|
34789
|
+
return u = p = y = f = v = k = w = b = C = 0, m = x = 1, r.svg = !!(a.getCTM && vA(a)), d.translate && ((d.translate !== "none" || d.scale !== "none" || d.rotate !== "none") && (s[Ue] = (d.translate !== "none" ? "translate3d(" + (d.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (d.rotate !== "none" ? "rotate(" + d.rotate + ") " : "") + (d.scale !== "none" ? "scale(" + d.scale.split(" ").join(",") + ") " : "") + (d[Ue] !== "none" ? d[Ue] : "")), s.scale = s.rotate = s.translate = "none"), N = pN(a, r.svg), r.svg && (r.uncache ? (O = a.getBBox(), h = r.xOrigin - O.x + "px " + (r.yOrigin - O.y) + "px", $ = "") : $ = !n && a.getAttribute("data-svg-origin"), LC(a, $ || h, !!$ || r.originIsAbsolute, r.smooth !== !1, N)), M = r.xOrigin || 0, L = r.yOrigin || 0, N !== bl && (P = N[0], _ = N[1], q = N[2], H = N[3], u = G = N[4], p = V = N[5], N.length === 6 ? (m = Math.sqrt(P * P + _ * _), x = Math.sqrt(H * H + q * q), f = P || _ ? Xo(_, P) * go : 0, w = q || H ? Xo(q, H) * go + f : 0, w && (x *= Math.abs(Math.cos(w * yc))), r.svg && (u -= M - (M * P + L * q), p -= L - (M * _ + L * H))) : (xe = N[6], de = N[7], K = N[8], X = N[9], Z = N[10], ae = N[11], u = N[12], p = N[13], y = N[14], j = Xo(xe, Z), v = j * go, j && (S = Math.cos(-j), D = Math.sin(-j), $ = G * S + K * D, O = V * S + X * D, se = xe * S + Z * D, K = G * -D + K * S, X = V * -D + X * S, Z = xe * -D + Z * S, ae = de * -D + ae * S, G = $, V = O, xe = se), j = Xo(-q, Z), k = j * go, j && (S = Math.cos(-j), D = Math.sin(-j), $ = P * S - K * D, O = _ * S - X * D, se = q * S - Z * D, ae = H * D + ae * S, P = $, _ = O, q = se), j = Xo(_, P), f = j * go, j && (S = Math.cos(j), D = Math.sin(j), $ = P * S + _ * D, O = G * S + V * D, _ = _ * S - P * D, V = V * S - G * D, P = $, G = O), v && Math.abs(v) + Math.abs(f) > 359.9 && (v = f = 0, k = 180 - k), m = Ye(Math.sqrt(P * P + _ * _ + q * q)), x = Ye(Math.sqrt(V * V + xe * xe)), j = Xo(G, V), w = Math.abs(j) > 2e-4 ? j * go : 0, C = ae ? 1 / (ae < 0 ? -ae : ae) : 0), r.svg && ($ = a.getAttribute("transform"), r.forceCSS = a.setAttribute("transform", "") || !bA(za(a, Ue)), $ && a.setAttribute("transform", $))), Math.abs(w) > 90 && Math.abs(w) < 270 && (i ? (m *= -1, w += f <= 0 ? 180 : -180, f += f <= 0 ? 180 : -180) : (x *= -1, w += w <= 0 ? 180 : -180)), n = n || r.uncache, r.x = u - ((r.xPercent = u && (!n && r.xPercent || (Math.round(a.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? a.offsetWidth * r.xPercent / 100 : 0) + o, r.y = p - ((r.yPercent = p && (!n && r.yPercent || (Math.round(a.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? a.offsetHeight * r.yPercent / 100 : 0) + o, r.z = y + o, r.scaleX = Ye(m), r.scaleY = Ye(x), r.rotation = Ye(f) + l, r.rotationX = Ye(v) + l, r.rotationY = Ye(k) + l, r.skewX = w + l, r.skewY = b + l, r.transformPerspective = C + o, (r.zOrigin = parseFloat(h.split(" ")[2]) || !n && r.zOrigin || 0) && (s[Et] = Oj(h)), r.xOffset = r.yOffset = 0, r.force3D = Kt.force3D, r.renderTransform = r.svg ? iz : gA ? MA : sz, r.uncache = 0, r;
|
|
34790
34790
|
}, Oj = function(a) {
|
|
34791
34791
|
return (a = a.split(" "))[0] + " " + a[1];
|
|
34792
34792
|
}, F9 = function(a, n, r) {
|
|
@@ -35156,12 +35156,12 @@ function uz({ courses: t, title: a, description: n }) {
|
|
|
35156
35156
|
}
|
|
35157
35157
|
function pz({ destinations: t, title: a, description: n }) {
|
|
35158
35158
|
const [r, s] = I(0), [i, o] = I(!0), l = () => typeof window < "u" ? window.innerWidth < 640 ? 1 : window.innerWidth < 1024 ? 2 : 4 : 4, [d, h] = I(l());
|
|
35159
|
-
|
|
35159
|
+
re(() => {
|
|
35160
35160
|
const m = () => {
|
|
35161
35161
|
h(l());
|
|
35162
35162
|
};
|
|
35163
35163
|
return window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
35164
|
-
}, []),
|
|
35164
|
+
}, []), re(() => {
|
|
35165
35165
|
let m;
|
|
35166
35166
|
return i && (m = setInterval(() => {
|
|
35167
35167
|
s(
|
|
@@ -35502,7 +35502,7 @@ function wz({ faqs: t, title: a, description: n }) {
|
|
|
35502
35502
|
}
|
|
35503
35503
|
function bz({ images: t, autoPlayInterval: a = 5e3 }) {
|
|
35504
35504
|
const [n, r] = I(0);
|
|
35505
|
-
|
|
35505
|
+
re(() => {
|
|
35506
35506
|
const l = setInterval(() => {
|
|
35507
35507
|
r((d) => (d + 1) % t.length);
|
|
35508
35508
|
}, a);
|
|
@@ -36327,7 +36327,7 @@ const Lz = [
|
|
|
36327
36327
|
{ icon: "User", text: "From 18 years" }
|
|
36328
36328
|
]
|
|
36329
36329
|
}
|
|
36330
|
-
], UW = () => (
|
|
36330
|
+
], UW = () => (re(() => {
|
|
36331
36331
|
CA.fromTo(
|
|
36332
36332
|
".animated-text",
|
|
36333
36333
|
{ opacity: 0, y: 30 },
|
|
@@ -36381,7 +36381,7 @@ function GW({
|
|
|
36381
36381
|
apiUrl: i
|
|
36382
36382
|
}) {
|
|
36383
36383
|
const [o, l] = I(n || []), [d, h] = I(!n), [u, p] = I(null);
|
|
36384
|
-
|
|
36384
|
+
re(() => {
|
|
36385
36385
|
if (n) return;
|
|
36386
36386
|
(async () => {
|
|
36387
36387
|
h(!0), p(null);
|
|
@@ -36632,7 +36632,7 @@ function Bz({ title: t, testimonial: a, stats: n, partnerLogos: r }) {
|
|
|
36632
36632
|
location: "Remote"
|
|
36633
36633
|
}
|
|
36634
36634
|
];
|
|
36635
|
-
|
|
36635
|
+
re(() => {
|
|
36636
36636
|
const h = setInterval(() => {
|
|
36637
36637
|
i((u) => (u + 1) % o.length);
|
|
36638
36638
|
}, 5e3);
|
|
@@ -36732,7 +36732,7 @@ function $z({
|
|
|
36732
36732
|
email: o = null
|
|
36733
36733
|
}) {
|
|
36734
36734
|
const [l, d] = I(o ?? ""), [h, u] = I(!1), [p, y] = I(!1);
|
|
36735
|
-
|
|
36735
|
+
re(() => {
|
|
36736
36736
|
if (i) {
|
|
36737
36737
|
y(!0), o && d(o);
|
|
36738
36738
|
return;
|
|
@@ -36826,10 +36826,10 @@ function Uz({
|
|
|
36826
36826
|
{ label: "Game Developer", href: "/jobs?q=game-developer" },
|
|
36827
36827
|
{ label: "Compliance Specialist", href: "/jobs?q=compliance-specialist" }
|
|
36828
36828
|
];
|
|
36829
|
-
|
|
36830
|
-
const S = new URLSearchParams(window.location.search),
|
|
36831
|
-
p(
|
|
36832
|
-
}, []),
|
|
36829
|
+
re(() => {
|
|
36830
|
+
const S = new URLSearchParams(window.location.search), D = S.get("q") || "", P = S.get("location") || "";
|
|
36831
|
+
p(D), m(P);
|
|
36832
|
+
}, []), re(() => {
|
|
36833
36833
|
if (u.length < 3) {
|
|
36834
36834
|
f([]);
|
|
36835
36835
|
return;
|
|
@@ -36852,12 +36852,12 @@ function Uz({
|
|
|
36852
36852
|
}
|
|
36853
36853
|
try {
|
|
36854
36854
|
k(!0);
|
|
36855
|
-
const
|
|
36856
|
-
if (!
|
|
36857
|
-
const P = await
|
|
36855
|
+
const D = await fetch(`${s}/suggestions?q=${encodeURIComponent(S)}`);
|
|
36856
|
+
if (!D.ok) throw new Error("Failed to fetch suggestions");
|
|
36857
|
+
const P = await D.json();
|
|
36858
36858
|
f(P.suggestions || []);
|
|
36859
|
-
} catch (
|
|
36860
|
-
console.error("Error fetching suggestions:",
|
|
36859
|
+
} catch (D) {
|
|
36860
|
+
console.error("Error fetching suggestions:", D), f([]);
|
|
36861
36861
|
} finally {
|
|
36862
36862
|
k(!1);
|
|
36863
36863
|
}
|
|
@@ -36892,7 +36892,7 @@ function Uz({
|
|
|
36892
36892
|
list: "job-suggestions"
|
|
36893
36893
|
}
|
|
36894
36894
|
),
|
|
36895
|
-
/* @__PURE__ */ e.jsx("datalist", { id: "job-suggestions", children: x.map((S,
|
|
36895
|
+
/* @__PURE__ */ e.jsx("datalist", { id: "job-suggestions", children: x.map((S, D) => /* @__PURE__ */ e.jsx("option", { value: S }, D)) }),
|
|
36896
36896
|
u && /* @__PURE__ */ e.jsx(
|
|
36897
36897
|
"button",
|
|
36898
36898
|
{
|
|
@@ -36930,14 +36930,14 @@ function Uz({
|
|
|
36930
36930
|
] }),
|
|
36931
36931
|
o && (n || C).length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex flex-wrap gap-2 items-center", children: [
|
|
36932
36932
|
/* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground font-medium", children: "Trending:" }),
|
|
36933
|
-
(n || C).map((S,
|
|
36933
|
+
(n || C).map((S, D) => /* @__PURE__ */ e.jsx(
|
|
36934
36934
|
"a",
|
|
36935
36935
|
{
|
|
36936
36936
|
href: S.href,
|
|
36937
36937
|
className: "inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",
|
|
36938
36938
|
children: S.label
|
|
36939
36939
|
},
|
|
36940
|
-
|
|
36940
|
+
D
|
|
36941
36941
|
))
|
|
36942
36942
|
] })
|
|
36943
36943
|
] }) })
|
|
@@ -37075,7 +37075,7 @@ const Zz = () => {
|
|
|
37075
37075
|
};
|
|
37076
37076
|
function Jz() {
|
|
37077
37077
|
const [t, a] = I(null);
|
|
37078
|
-
return
|
|
37078
|
+
return re(() => {
|
|
37079
37079
|
try {
|
|
37080
37080
|
const n = localStorage.getItem("email");
|
|
37081
37081
|
n && a(n);
|
|
@@ -37099,13 +37099,13 @@ function Xz({
|
|
|
37099
37099
|
marketing: !1,
|
|
37100
37100
|
preferences: !1
|
|
37101
37101
|
}), [s, i] = I(!1), l = ((p) => p.replace(/\/+$/, ""))(t ?? "http://localhost:5147"), [d, h] = I(null);
|
|
37102
|
-
|
|
37102
|
+
re(() => {
|
|
37103
37103
|
try {
|
|
37104
37104
|
const p = localStorage.getItem("leadId");
|
|
37105
37105
|
p && h(p);
|
|
37106
37106
|
} catch {
|
|
37107
37107
|
}
|
|
37108
|
-
}, []),
|
|
37108
|
+
}, []), re(() => {
|
|
37109
37109
|
const p = localStorage.getItem("consent");
|
|
37110
37110
|
if (p)
|
|
37111
37111
|
try {
|
|
@@ -37172,7 +37172,7 @@ function Kz({
|
|
|
37172
37172
|
onReject: l
|
|
37173
37173
|
}) {
|
|
37174
37174
|
const { consent: d, update: h, ready: u } = IA(), [p, y] = I(s);
|
|
37175
|
-
|
|
37175
|
+
re(() => {
|
|
37176
37176
|
i === void 0 && u && !d.timestamp && y(!0);
|
|
37177
37177
|
}, [d.timestamp, i, u]);
|
|
37178
37178
|
const m = Fe(() => i ?? p, [i, p]), x = () => {
|
|
@@ -37394,7 +37394,7 @@ function WW({
|
|
|
37394
37394
|
consentNotificationUrl: f = "http://localhost:5147",
|
|
37395
37395
|
consentBannerProps: v
|
|
37396
37396
|
}) {
|
|
37397
|
-
const { isSubscribed: k, email: w } = Jz(), b = gn(Qz, t), C = gn(eF, a), M = gn(tF, n), L = gn(aF, r), N = gn(nF, s), j = gn(rF, i), S = gn(sF, o),
|
|
37397
|
+
const { isSubscribed: k, email: w } = Jz(), b = gn(Qz, t), C = gn(eF, a), M = gn(tF, n), L = gn(aF, r), N = gn(nF, s), j = gn(rF, i), S = gn(sF, o), D = gn(iF, l), P = {
|
|
37398
37398
|
...j,
|
|
37399
37399
|
isSubscribed: (i == null ? void 0 : i.isSubscribed) ?? k,
|
|
37400
37400
|
email: (i == null ? void 0 : i.email) ?? w
|
|
@@ -37410,7 +37410,7 @@ function WW({
|
|
|
37410
37410
|
y && /* @__PURE__ */ e.jsx($z, { ...P }),
|
|
37411
37411
|
m && /* @__PURE__ */ e.jsx(Ez, { ...S })
|
|
37412
37412
|
] }),
|
|
37413
|
-
/* @__PURE__ */ e.jsx(Wz, { ...
|
|
37413
|
+
/* @__PURE__ */ e.jsx(Wz, { ...D }),
|
|
37414
37414
|
x && /* @__PURE__ */ e.jsx(Kz, { ...v })
|
|
37415
37415
|
] }) });
|
|
37416
37416
|
}
|
|
@@ -37422,7 +37422,7 @@ function AA({
|
|
|
37422
37422
|
api_url: s = "http://localhost:5147"
|
|
37423
37423
|
}) {
|
|
37424
37424
|
const [i, o] = I(""), [l, d] = I(!1), [h, u] = I(!1);
|
|
37425
|
-
|
|
37425
|
+
re(() => {
|
|
37426
37426
|
const y = localStorage.getItem("email");
|
|
37427
37427
|
y && (u(!0), o(y));
|
|
37428
37428
|
}, []);
|
|
@@ -37494,7 +37494,7 @@ function oF({
|
|
|
37494
37494
|
message: n,
|
|
37495
37495
|
onClose: r
|
|
37496
37496
|
}) {
|
|
37497
|
-
if (
|
|
37497
|
+
if (re(() => {
|
|
37498
37498
|
if (t) {
|
|
37499
37499
|
const i = setTimeout(r, 5e3);
|
|
37500
37500
|
return () => clearTimeout(i);
|
|
@@ -37555,7 +37555,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
37555
37555
|
const [i, o] = I(!1), [l, d] = I(""), h = Hn(null), u = t.filter(
|
|
37556
37556
|
(p) => p.toLowerCase().includes(l.toLowerCase())
|
|
37557
37557
|
);
|
|
37558
|
-
return
|
|
37558
|
+
return re(() => {
|
|
37559
37559
|
const p = (y) => {
|
|
37560
37560
|
h.current && !h.current.contains(y.target) && o(!1);
|
|
37561
37561
|
};
|
|
@@ -37782,7 +37782,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
37782
37782
|
const u = t.min_salary || 0, p = t.max_salary || 0, y = `$${u.toLocaleString()} - $${p.toLocaleString()}`, x = ((N) => {
|
|
37783
37783
|
if (!N) return "Recently posted";
|
|
37784
37784
|
try {
|
|
37785
|
-
const j = new Date(N),
|
|
37785
|
+
const j = new Date(N), D = Math.abs((/* @__PURE__ */ new Date()).getTime() - j.getTime()), P = Math.floor(D / (1e3 * 60 * 60 * 24));
|
|
37786
37786
|
return P === 0 ? "Today" : P === 1 ? "Yesterday" : P < 7 ? `${P} days ago` : P < 30 ? `${Math.floor(P / 7)} weeks ago` : P < 365 ? `${Math.floor(P / 30)} months ago` : `${Math.floor(P / 365)} years ago`;
|
|
37787
37787
|
} catch {
|
|
37788
37788
|
return "Recently posted";
|
|
@@ -38040,7 +38040,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38040
38040
|
}
|
|
38041
38041
|
), ZW = ({ apiUrl: t, itemsPerPage: a, filterKeys: n, enableSearch: r, enablePagination: s, enableMobileFilter: i, banners: o, userAccess: l }) => {
|
|
38042
38042
|
const [d, h] = I([]), [u, p] = I(1), [y, m] = I({}), [x, f] = I([]), [v, k] = I({}), [w, b] = I(""), [C, M] = I([]), [L, N] = I(!1), j = n9(l);
|
|
38043
|
-
|
|
38043
|
+
re(() => {
|
|
38044
38044
|
fetch(`${t}/items`).then((de) => de.json()).then((de) => {
|
|
38045
38045
|
h(de);
|
|
38046
38046
|
}).catch((de) => console.error("Error fetching items:", de));
|
|
@@ -38048,10 +38048,10 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38048
38048
|
const S = (de) => {
|
|
38049
38049
|
const ae = {};
|
|
38050
38050
|
de.forEach((be) => {
|
|
38051
|
-
n.forEach((
|
|
38052
|
-
ae[
|
|
38053
|
-
const ne = be[
|
|
38054
|
-
ne != null && ae[
|
|
38051
|
+
n.forEach((J) => {
|
|
38052
|
+
ae[J] || (ae[J] = /* @__PURE__ */ new Set());
|
|
38053
|
+
const ne = be[J];
|
|
38054
|
+
ne != null && ae[J].add(String(ne));
|
|
38055
38055
|
});
|
|
38056
38056
|
});
|
|
38057
38057
|
const xe = {};
|
|
@@ -38059,29 +38059,29 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38059
38059
|
xe[be] = Array.from(ae[be]);
|
|
38060
38060
|
}), xe;
|
|
38061
38061
|
};
|
|
38062
|
-
function
|
|
38062
|
+
function D(de, ae, xe) {
|
|
38063
38063
|
let be = de.filter(
|
|
38064
|
-
(
|
|
38064
|
+
(J) => Object.entries(ae).every(
|
|
38065
38065
|
([ne, ve]) => {
|
|
38066
|
-
const ke =
|
|
38066
|
+
const ke = J[ne];
|
|
38067
38067
|
return typeof ke == "string" && ke.toLowerCase() === ve.toLowerCase();
|
|
38068
38068
|
}
|
|
38069
38069
|
)
|
|
38070
38070
|
);
|
|
38071
|
-
return xe.length > 0 && (be = be.filter((
|
|
38071
|
+
return xe.length > 0 && (be = be.filter((J) => xe.every((ne) => J.title.toLowerCase().includes(ne.toLowerCase())))), be;
|
|
38072
38072
|
}
|
|
38073
38073
|
const P = Fe(
|
|
38074
|
-
() =>
|
|
38074
|
+
() => D(d, y, x),
|
|
38075
38075
|
[y, d, x]
|
|
38076
38076
|
), _ = (de, ae) => {
|
|
38077
38077
|
m((xe) => {
|
|
38078
38078
|
const be = ae ? { ...xe, [de]: ae } : { ...xe };
|
|
38079
38079
|
return ae || delete be[de], be;
|
|
38080
38080
|
});
|
|
38081
|
-
},
|
|
38081
|
+
}, q = (de) => {
|
|
38082
38082
|
if (b(de), de) {
|
|
38083
38083
|
const ae = d.map((xe) => xe.title).filter(
|
|
38084
|
-
(xe, be,
|
|
38084
|
+
(xe, be, J) => xe && xe.toLowerCase().includes(de.toLowerCase()) && J.indexOf(xe) === be
|
|
38085
38085
|
).slice(0, 5);
|
|
38086
38086
|
M(ae);
|
|
38087
38087
|
} else
|
|
@@ -38098,16 +38098,16 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38098
38098
|
}, V = () => {
|
|
38099
38099
|
m({}), f([]), p(1);
|
|
38100
38100
|
};
|
|
38101
|
-
|
|
38101
|
+
re(() => {
|
|
38102
38102
|
k(S(P));
|
|
38103
|
-
}, [n, P]),
|
|
38103
|
+
}, [n, P]), re(() => {
|
|
38104
38104
|
p(1);
|
|
38105
38105
|
}, [y, x]);
|
|
38106
38106
|
const $ = () => {
|
|
38107
38107
|
N(!L);
|
|
38108
38108
|
}, O = (de, ae) => {
|
|
38109
|
-
},
|
|
38110
|
-
}, K = (de) => !1, X = Math.ceil(P.length / a),
|
|
38109
|
+
}, se = (de) => {
|
|
38110
|
+
}, K = (de) => !1, X = Math.ceil(P.length / a), Z = P.slice((u - 1) * a, u * a);
|
|
38111
38111
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col min-h-screen", children: [
|
|
38112
38112
|
/* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsxs("div", { className: "job-listings-container", children: [
|
|
38113
38113
|
/* @__PURE__ */ e.jsx("div", { className: "header-container", children: /* @__PURE__ */ e.jsxs("div", { className: "header-content", children: [
|
|
@@ -38130,7 +38130,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38130
38130
|
lF,
|
|
38131
38131
|
{
|
|
38132
38132
|
searchTerm: w,
|
|
38133
|
-
handleSearchChange:
|
|
38133
|
+
handleSearchChange: q,
|
|
38134
38134
|
handleSearchKeyDown: H,
|
|
38135
38135
|
suggestions: C
|
|
38136
38136
|
}
|
|
@@ -38158,7 +38158,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38158
38158
|
filtersData: v,
|
|
38159
38159
|
activeFilters: y,
|
|
38160
38160
|
handleFilterChange: _,
|
|
38161
|
-
handleSearchChange:
|
|
38161
|
+
handleSearchChange: q,
|
|
38162
38162
|
searchTerm: w,
|
|
38163
38163
|
clearAllFilters: V,
|
|
38164
38164
|
handleSearchKeyDown: H,
|
|
@@ -38172,9 +38172,9 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38172
38172
|
/* @__PURE__ */ e.jsx(
|
|
38173
38173
|
hF,
|
|
38174
38174
|
{
|
|
38175
|
-
jobs:
|
|
38175
|
+
jobs: Z,
|
|
38176
38176
|
onSaveJob: O,
|
|
38177
|
-
onViewJob:
|
|
38177
|
+
onViewJob: se,
|
|
38178
38178
|
isJobSaved: K,
|
|
38179
38179
|
userAccess: j
|
|
38180
38180
|
}
|
|
@@ -38192,7 +38192,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38192
38192
|
links: n = []
|
|
38193
38193
|
}) => {
|
|
38194
38194
|
const [r, s] = I(!1), [i, o] = I(null);
|
|
38195
|
-
|
|
38195
|
+
re(() => {
|
|
38196
38196
|
try {
|
|
38197
38197
|
const d = localStorage.getItem("email");
|
|
38198
38198
|
d && (s(!0), o(d));
|
|
@@ -38289,7 +38289,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38289
38289
|
) })
|
|
38290
38290
|
] }) }) }), mF = ({ savedJobsCount: t }) => {
|
|
38291
38291
|
const [a, n] = I("");
|
|
38292
|
-
|
|
38292
|
+
re(() => {
|
|
38293
38293
|
typeof window < "u" && n(window.location.pathname);
|
|
38294
38294
|
}, []);
|
|
38295
38295
|
const r = (s) => a === s;
|
|
@@ -38557,7 +38557,7 @@ const Ej = ({ position: t, url: a, alt: n, link: r }) => {
|
|
|
38557
38557
|
}, v = (k) => {
|
|
38558
38558
|
a(k), d(""), u([]), y(!1);
|
|
38559
38559
|
};
|
|
38560
|
-
return
|
|
38560
|
+
return re(() => {
|
|
38561
38561
|
m.current && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
38562
38562
|
if (!l) {
|
|
38563
38563
|
u([]);
|
|
@@ -38907,7 +38907,7 @@ const wN = ({
|
|
|
38907
38907
|
)
|
|
38908
38908
|
] }) }), vF = ({ items: t, cardType: a, viewMode: n, savedJobs: r, onSaveJob: s, onViewJob: i, onApplyJob: o, firstItemRef: l = null, userAccess: d }) => {
|
|
38909
38909
|
const [h, u] = I([]), [p, y] = I(null);
|
|
38910
|
-
|
|
38910
|
+
re(() => {
|
|
38911
38911
|
try {
|
|
38912
38912
|
if (!Array.isArray(t)) {
|
|
38913
38913
|
console.error("❌ Items is not an array:", t), y("Invalid data format received"), u([]);
|
|
@@ -39482,11 +39482,11 @@ var OF = "DismissableLayer", IC = "dismissableLayer.update", EF = "dismissableLa
|
|
|
39482
39482
|
onDismiss: l,
|
|
39483
39483
|
...d
|
|
39484
39484
|
} = t, h = g.useContext(HA), [u, p] = g.useState(null), y = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = g.useState({}), x = OA(a, (N) => p(N)), f = Array.from(h.layers), [v] = [...h.layersWithOutsidePointerEventsDisabled].slice(-1), k = f.indexOf(v), w = u ? f.indexOf(u) : -1, b = h.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= k, M = $F((N) => {
|
|
39485
|
-
const j = N.target, S = [...h.branches].some((
|
|
39485
|
+
const j = N.target, S = [...h.branches].some((D) => D.contains(j));
|
|
39486
39486
|
!C || S || (s == null || s(N), o == null || o(N), N.defaultPrevented || l == null || l());
|
|
39487
39487
|
}, y), L = UF((N) => {
|
|
39488
39488
|
const j = N.target;
|
|
39489
|
-
[...h.branches].some((
|
|
39489
|
+
[...h.branches].some((D) => D.contains(j)) || (i == null || i(N), o == null || o(N), N.defaultPrevented || l == null || l());
|
|
39490
39490
|
}, y);
|
|
39491
39491
|
return FF((N) => {
|
|
39492
39492
|
w === h.layers.size - 1 && (r == null || r(N), !N.defaultPrevented && l && (N.preventDefault(), l()));
|
|
@@ -41054,7 +41054,7 @@ function NE({
|
|
|
41054
41054
|
}
|
|
41055
41055
|
function bP() {
|
|
41056
41056
|
const t = "savedJobs", [a, n] = I([]);
|
|
41057
|
-
return
|
|
41057
|
+
return re(() => {
|
|
41058
41058
|
try {
|
|
41059
41059
|
const i = localStorage.getItem(t);
|
|
41060
41060
|
i && n(JSON.parse(i));
|
|
@@ -41116,7 +41116,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41116
41116
|
allowPopularTagRemoval: f = !1
|
|
41117
41117
|
}) => {
|
|
41118
41118
|
var B;
|
|
41119
|
-
const [v, k] = I([]), [w, b] = I([]), [C, M] = I([]), [L, N] = I(1), [j, S] = I({}), [
|
|
41119
|
+
const [v, k] = I([]), [w, b] = I([]), [C, M] = I([]), [L, N] = I(1), [j, S] = I({}), [D, P] = I([]), [_, q] = I({}), [H, G] = I(""), [V, $] = I([]), [O, se] = I(!1), [K, X] = I(a), [Z, de] = I("grid"), [ae, xe] = I(!1), [be, J] = I([]), [ne, ve] = I(!0), [ke, ie] = I(null), [ye, Ae] = I("all"), [Pe, He] = I(!1), [lt, wt] = I(!1), [Pt, dt] = I({ ...Y9 }), [Ge, _t] = I({
|
|
41120
41120
|
open: !1,
|
|
41121
41121
|
type: "info",
|
|
41122
41122
|
message: ""
|
|
@@ -41164,15 +41164,15 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41164
41164
|
page: L,
|
|
41165
41165
|
pageSize: K,
|
|
41166
41166
|
totalResults: w.length,
|
|
41167
|
-
viewMode:
|
|
41167
|
+
viewMode: Z,
|
|
41168
41168
|
showOnlySaved: ae
|
|
41169
|
-
}), [L, w.length, K, ae,
|
|
41169
|
+
}), [L, w.length, K, ae, Z]), tt = Hn(!1), Be = (R, z) => {
|
|
41170
41170
|
_t({ open: !0, type: R, message: z });
|
|
41171
41171
|
};
|
|
41172
|
-
|
|
41172
|
+
re(() => {
|
|
41173
41173
|
try {
|
|
41174
41174
|
const R = localStorage.getItem("lastVisitedJobs");
|
|
41175
|
-
R &&
|
|
41175
|
+
R && J(JSON.parse(R));
|
|
41176
41176
|
try {
|
|
41177
41177
|
localStorage.getItem("email") && wt(!0);
|
|
41178
41178
|
} catch (z) {
|
|
@@ -41181,10 +41181,10 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41181
41181
|
} catch (R) {
|
|
41182
41182
|
console.error("Error loading data from localStorage:", R);
|
|
41183
41183
|
}
|
|
41184
|
-
}, []),
|
|
41184
|
+
}, []), re(() => {
|
|
41185
41185
|
const z = new URLSearchParams(window.location.search).get("date_filter");
|
|
41186
41186
|
z && z !== "all" && Ae(z);
|
|
41187
|
-
}, []),
|
|
41187
|
+
}, []), re(() => {
|
|
41188
41188
|
if (!t) {
|
|
41189
41189
|
ie("❌ Missing API URL for Listing component!"), ve(!1);
|
|
41190
41190
|
return;
|
|
@@ -41205,21 +41205,21 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41205
41205
|
new Set(ce.map((je) => je.topTag).filter((je) => typeof je == "string"))
|
|
41206
41206
|
).slice(0, 10);
|
|
41207
41207
|
M(me);
|
|
41208
|
-
const ge = ql(ce, nt,
|
|
41208
|
+
const ge = ql(ce, nt, D, o);
|
|
41209
41209
|
k(ce), b(ge);
|
|
41210
41210
|
const De = ml(ce, n);
|
|
41211
|
-
|
|
41211
|
+
q(De);
|
|
41212
41212
|
} catch (z) {
|
|
41213
41213
|
console.error("Error fetching data:", z), ie(`Failed to load data: ${z instanceof Error ? z.message : String(z)}`);
|
|
41214
|
-
const Y = yF(20), ce = ql(Y, nt,
|
|
41214
|
+
const Y = yF(20), ce = ql(Y, nt, D, o);
|
|
41215
41215
|
k(Y), b(ce);
|
|
41216
41216
|
const me = ml(Y, n);
|
|
41217
|
-
|
|
41217
|
+
q(me);
|
|
41218
41218
|
} finally {
|
|
41219
41219
|
ve(!1);
|
|
41220
41220
|
}
|
|
41221
41221
|
})();
|
|
41222
|
-
}, [t, o,
|
|
41222
|
+
}, [t, o, D, nt]), re(() => {
|
|
41223
41223
|
const R = new URLSearchParams(window.location.search), z = {};
|
|
41224
41224
|
n.forEach((me) => {
|
|
41225
41225
|
const ge = R.get(me);
|
|
@@ -41232,13 +41232,13 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41232
41232
|
const ge = R.get(me);
|
|
41233
41233
|
ge && (ce[me] = ge);
|
|
41234
41234
|
}), S(ce);
|
|
41235
|
-
}, []),
|
|
41235
|
+
}, []), re(() => {
|
|
41236
41236
|
if (ae) {
|
|
41237
|
-
const R = v.filter((Y) => Bt.includes(Y.id || Y.slug || Y.link)), z = ql(R, nt,
|
|
41237
|
+
const R = v.filter((Y) => Bt.includes(Y.id || Y.slug || Y.link)), z = ql(R, nt, D, o);
|
|
41238
41238
|
b(z), N(1);
|
|
41239
41239
|
} else
|
|
41240
41240
|
ra();
|
|
41241
|
-
}, []),
|
|
41241
|
+
}, []), re(() => {
|
|
41242
41242
|
tt.current || ne || !w.length && !v.length || (te("jobs_listing_viewed", {
|
|
41243
41243
|
...Le(),
|
|
41244
41244
|
...Oe()
|
|
@@ -41246,15 +41246,15 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41246
41246
|
}, [v.length, te, w.length, Le, Oe, ne]);
|
|
41247
41247
|
const na = Ct((R) => {
|
|
41248
41248
|
const z = ml(R, n);
|
|
41249
|
-
|
|
41249
|
+
q(z);
|
|
41250
41250
|
}, [n]), ra = Ct((R) => {
|
|
41251
|
-
const z = (R == null ? void 0 : R.baseItems) ?? v, Y = (R == null ? void 0 : R.filters) ?? j, ce = (R == null ? void 0 : R.search) ??
|
|
41251
|
+
const z = (R == null ? void 0 : R.baseItems) ?? v, Y = (R == null ? void 0 : R.filters) ?? j, ce = (R == null ? void 0 : R.search) ?? D, me = (R == null ? void 0 : R.dateFilter) ?? ye, ge = (R == null ? void 0 : R.advanced) ?? Pt;
|
|
41252
41252
|
let De = ko(z, Y, ce, me, o);
|
|
41253
41253
|
De = MF(De, ge);
|
|
41254
41254
|
const je = ql(De, nt, ce, o);
|
|
41255
41255
|
return b(je), ((R == null ? void 0 : R.resetPage) ?? !0) && N(1), ((R == null ? void 0 : R.refreshFiltersData) ?? !0) && na(je), je;
|
|
41256
|
-
}, [ye, j, Pt, v, o,
|
|
41257
|
-
|
|
41256
|
+
}, [ye, j, Pt, v, o, D, nt, na]);
|
|
41257
|
+
re(() => {
|
|
41258
41258
|
ra({ resetPage: !1, refreshFiltersData: !1 });
|
|
41259
41259
|
}, [nt, ra]);
|
|
41260
41260
|
const Xn = (R, z) => {
|
|
@@ -41291,14 +41291,14 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41291
41291
|
}, Ga = (R) => {
|
|
41292
41292
|
if (!R.trim()) return;
|
|
41293
41293
|
ae && xe(!1);
|
|
41294
|
-
const z = [...
|
|
41294
|
+
const z = [...D, R.trim()];
|
|
41295
41295
|
P(z), ra({ search: z }), G(""), te("jobs_search_submitted", {
|
|
41296
41296
|
searchKeywords: z,
|
|
41297
41297
|
query: R.trim(),
|
|
41298
41298
|
...Le()
|
|
41299
41299
|
});
|
|
41300
41300
|
}, Kn = (R) => {
|
|
41301
|
-
const z =
|
|
41301
|
+
const z = D.filter((Y) => Y !== R);
|
|
41302
41302
|
P(z), ra({ search: z }), te("jobs_search_filter_removed", {
|
|
41303
41303
|
removedKeyword: R,
|
|
41304
41304
|
remainingKeywords: z
|
|
@@ -41319,7 +41319,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41319
41319
|
return Y;
|
|
41320
41320
|
}, Me = (R) => R.replace(/\/+$/, ""), Re = async () => {
|
|
41321
41321
|
if (te("jobs_alert_cta_clicked", {
|
|
41322
|
-
searchKeywords:
|
|
41322
|
+
searchKeywords: D,
|
|
41323
41323
|
query: H.trim() || void 0,
|
|
41324
41324
|
...Le()
|
|
41325
41325
|
}), !lt)
|
|
@@ -41330,7 +41330,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41330
41330
|
Be("info", "Please subscribe first to create alerts.");
|
|
41331
41331
|
return;
|
|
41332
41332
|
}
|
|
41333
|
-
const Y = "keyword", ce = (qe, ut) => ut && ut.trim() ? { key: qe.toLowerCase(), value: ut.trim() } : null, me = Object.entries(j).map(([qe, ut]) => ce(qe, ut)).filter((qe) => qe !== null), ge =
|
|
41333
|
+
const Y = "keyword", ce = (qe, ut) => ut && ut.trim() ? { key: qe.toLowerCase(), value: ut.trim() } : null, me = Object.entries(j).map(([qe, ut]) => ce(qe, ut)).filter((qe) => qe !== null), ge = D.map((qe) => ce(Y, qe)).filter((qe) => qe !== null), De = ce(Y, H), je = De ? [De] : [], Ie = oe([
|
|
41334
41334
|
...me,
|
|
41335
41335
|
...ge,
|
|
41336
41336
|
...je
|
|
@@ -41359,7 +41359,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41359
41359
|
}
|
|
41360
41360
|
}
|
|
41361
41361
|
}, We = () => {
|
|
41362
|
-
|
|
41362
|
+
se(!O);
|
|
41363
41363
|
}, Wa = w.length === 0 ? 0 : (L - 1) * K + 1, ht = Math.min(L * K, w.length), bt = (R) => {
|
|
41364
41364
|
X(R), N(1), te("jobs_listing_items_per_page_changed", { pageSize: R });
|
|
41365
41365
|
}, yn = () => {
|
|
@@ -41369,7 +41369,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41369
41369
|
});
|
|
41370
41370
|
}, Ze = (R, z, Y = "same_tab", ce = "listing") => {
|
|
41371
41371
|
const me = R.id || R.slug || R.link;
|
|
41372
|
-
me && (
|
|
41372
|
+
me && (J((ge) => {
|
|
41373
41373
|
const De = ge.filter((Ie) => (Ie.id || Ie.slug || Ie.link) !== me), je = [R, ...De].slice(0, LE);
|
|
41374
41374
|
try {
|
|
41375
41375
|
localStorage.setItem("lastVisitedJobs", JSON.stringify(je));
|
|
@@ -41471,7 +41471,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41471
41471
|
value: ye.replace(/_/g, " "),
|
|
41472
41472
|
onRemove: () => mn("all")
|
|
41473
41473
|
}] : [],
|
|
41474
|
-
...
|
|
41474
|
+
...D.map((R) => ({
|
|
41475
41475
|
key: "search",
|
|
41476
41476
|
label: "",
|
|
41477
41477
|
value: R,
|
|
@@ -41522,7 +41522,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41522
41522
|
/* @__PURE__ */ e.jsx(
|
|
41523
41523
|
bN,
|
|
41524
41524
|
{
|
|
41525
|
-
viewMode:
|
|
41525
|
+
viewMode: Z,
|
|
41526
41526
|
onToggleViewMode: yn,
|
|
41527
41527
|
selectedItemsPerPage: K,
|
|
41528
41528
|
onItemsPerPageChange: bt,
|
|
@@ -41568,7 +41568,7 @@ const SE = ({ value: t, options: a, onChange: n }) => /* @__PURE__ */ e.jsxs("di
|
|
|
41568
41568
|
{
|
|
41569
41569
|
items: A,
|
|
41570
41570
|
cardType: i,
|
|
41571
|
-
viewMode:
|
|
41571
|
+
viewMode: Z,
|
|
41572
41572
|
savedJobs: Bt,
|
|
41573
41573
|
onSaveJob: Mt,
|
|
41574
41574
|
onViewJob: Ze,
|
|
@@ -41668,7 +41668,7 @@ function XS(t = window.location.pathname) {
|
|
|
41668
41668
|
}
|
|
41669
41669
|
function IE() {
|
|
41670
41670
|
const [t, a] = I(() => XS());
|
|
41671
|
-
return
|
|
41671
|
+
return re(() => {
|
|
41672
41672
|
const n = () => a(XS());
|
|
41673
41673
|
return window.addEventListener("popstate", n), () => window.removeEventListener("popstate", n);
|
|
41674
41674
|
}, []), t;
|
|
@@ -41809,11 +41809,11 @@ const MP = {
|
|
|
41809
41809
|
}) => {
|
|
41810
41810
|
var N;
|
|
41811
41811
|
const r = IE(), [s, i] = I(() => PE(a)), [o, l] = I(!1), [d, h] = I(null), [u, p] = I(!1), [y, m] = I(!1), { savedJobs: x, toggleJob: f, isSaved: v } = bP(), k = AE(t);
|
|
41812
|
-
|
|
41812
|
+
re(() => {
|
|
41813
41813
|
(async () => {
|
|
41814
41814
|
l(!0);
|
|
41815
41815
|
try {
|
|
41816
|
-
if (await new Promise((
|
|
41816
|
+
if (await new Promise((D) => setTimeout(D, 300)), !r) throw new Error("Missing slug in URL.");
|
|
41817
41817
|
i(s);
|
|
41818
41818
|
const S = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
|
|
41819
41819
|
m(S.includes(r));
|
|
@@ -42364,7 +42364,7 @@ const MP = {
|
|
|
42364
42364
|
onEmitEvent: h,
|
|
42365
42365
|
eventContext: u
|
|
42366
42366
|
}) => {
|
|
42367
|
-
const [p, y] = I([]), [m, x] = I([]), [f, v] = I([]), [k, w] = I({}), [b, C] = I(""), [M, L] = I({}), [N, j] = I(!1), [S,
|
|
42367
|
+
const [p, y] = I([]), [m, x] = I([]), [f, v] = I([]), [k, w] = I({}), [b, C] = I(""), [M, L] = I({}), [N, j] = I(!1), [S, D] = I(o), [P, _] = I(/* @__PURE__ */ new Set()), [q, H] = I(s), [G, V] = I("grid"), [$, O] = I(1), [se, K] = I([]), [X, Z] = I(!1), [de, ae] = I([]), [xe, be] = I([]), [J, ne] = I(!0), [ve, ke] = I("all"), [ie, ye] = I(""), Ae = (W) => W.trim().toLowerCase().replace(/\s+/g, "-"), [Pe, He] = I(r), [lt, wt] = I(null), Pt = n9(d), dt = Fe(() => ({
|
|
42368
42368
|
component: "NewsPage",
|
|
42369
42369
|
...u ?? {}
|
|
42370
42370
|
}), [u]), Ge = Ct((W, oe) => {
|
|
@@ -42387,13 +42387,13 @@ const MP = {
|
|
|
42387
42387
|
page: $,
|
|
42388
42388
|
pageSize: S,
|
|
42389
42389
|
totalResults: m.length,
|
|
42390
|
-
sortBy:
|
|
42390
|
+
sortBy: q,
|
|
42391
42391
|
viewMode: G
|
|
42392
|
-
}), [$, m.length, S,
|
|
42393
|
-
|
|
42392
|
+
}), [$, m.length, S, q, G]), un = Hn(!1);
|
|
42393
|
+
re(() => {
|
|
42394
42394
|
const W = localStorage.getItem(i);
|
|
42395
42395
|
W && _(new Set(JSON.parse(W)));
|
|
42396
|
-
}, [i]),
|
|
42396
|
+
}, [i]), re(() => {
|
|
42397
42397
|
const W = new URLSearchParams(window.location.search), oe = {};
|
|
42398
42398
|
a.forEach((ht) => {
|
|
42399
42399
|
const bt = W.get(ht);
|
|
@@ -42418,7 +42418,7 @@ const MP = {
|
|
|
42418
42418
|
const bt = W.get(ht);
|
|
42419
42419
|
bt && (Wa[ht] = bt);
|
|
42420
42420
|
}), L(Wa);
|
|
42421
|
-
}, [p]),
|
|
42421
|
+
}, [p]), re(() => {
|
|
42422
42422
|
const oe = new URLSearchParams(window.location.search).get("date_filter");
|
|
42423
42423
|
if (oe && oe !== "all") {
|
|
42424
42424
|
ke(oe);
|
|
@@ -42445,9 +42445,9 @@ const MP = {
|
|
|
42445
42445
|
const oe = ko(p, M, de, W);
|
|
42446
42446
|
x(oe), O(1), Rt(oe);
|
|
42447
42447
|
};
|
|
42448
|
-
|
|
42448
|
+
re(() => {
|
|
42449
42449
|
localStorage.setItem(i, JSON.stringify(Array.from(P)));
|
|
42450
|
-
}, [P, i]),
|
|
42450
|
+
}, [P, i]), re(() => {
|
|
42451
42451
|
ne(!0), wt(null), (async () => {
|
|
42452
42452
|
try {
|
|
42453
42453
|
const oe = await fetch(t);
|
|
@@ -42525,7 +42525,7 @@ const MP = {
|
|
|
42525
42525
|
openedIn: Me
|
|
42526
42526
|
});
|
|
42527
42527
|
}, na = () => {
|
|
42528
|
-
|
|
42528
|
+
Z(!X);
|
|
42529
42529
|
}, ra = m.length === 0 ? 0 : ($ - 1) * S + 1, Xn = Math.min($ * S, m.length), _c = () => {
|
|
42530
42530
|
He({
|
|
42531
42531
|
categories: [],
|
|
@@ -42549,7 +42549,7 @@ const MP = {
|
|
|
42549
42549
|
(oe = pn.current) == null || oe.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
42550
42550
|
}, 100);
|
|
42551
42551
|
}, xa = (W) => {
|
|
42552
|
-
|
|
42552
|
+
D(W), O(1), Ge("news_listing_items_per_page_changed", { pageSize: W });
|
|
42553
42553
|
}, Ga = (W, oe) => {
|
|
42554
42554
|
const Me = { ...M };
|
|
42555
42555
|
oe ? Me[W] = oe : delete Me[W];
|
|
@@ -42566,12 +42566,12 @@ const MP = {
|
|
|
42566
42566
|
remainingKeywords: oe
|
|
42567
42567
|
});
|
|
42568
42568
|
};
|
|
42569
|
-
return
|
|
42570
|
-
un.current ||
|
|
42569
|
+
return re(() => {
|
|
42570
|
+
un.current || J || !m.length && !p.length || (Ge("news_listing_viewed", {
|
|
42571
42571
|
..._t(),
|
|
42572
42572
|
...nt()
|
|
42573
42573
|
}), un.current = !0);
|
|
42574
|
-
}, [p.length, Ge, m.length, _t, nt,
|
|
42574
|
+
}, [p.length, Ge, m.length, _t, nt, J]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col min-h-screen pb-16 md:pb-0", children: [
|
|
42575
42575
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-grow", children: [
|
|
42576
42576
|
/* @__PURE__ */ e.jsx(
|
|
42577
42577
|
kN,
|
|
@@ -42681,7 +42681,7 @@ const MP = {
|
|
|
42681
42681
|
savedJobs: []
|
|
42682
42682
|
}
|
|
42683
42683
|
),
|
|
42684
|
-
|
|
42684
|
+
J ? /* @__PURE__ */ e.jsx(xN, {}) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "lg:w-2/4", children: [
|
|
42685
42685
|
/* @__PURE__ */ e.jsx(
|
|
42686
42686
|
bN,
|
|
42687
42687
|
{
|
|
@@ -43069,7 +43069,7 @@ const MP = {
|
|
|
43069
43069
|
placeholder: r = "Search courses, instructors, or topics..."
|
|
43070
43070
|
}) => {
|
|
43071
43071
|
const [s, i] = I(""), [o, l] = I([]), [d, h] = I(!1);
|
|
43072
|
-
|
|
43072
|
+
re(() => {
|
|
43073
43073
|
if (s.length > 0) {
|
|
43074
43074
|
const m = t.filter((k) => {
|
|
43075
43075
|
var b, C, M, L, N;
|
|
@@ -43569,7 +43569,7 @@ const MP = {
|
|
|
43569
43569
|
onEmitEvent: s,
|
|
43570
43570
|
eventContext: i
|
|
43571
43571
|
}) => {
|
|
43572
|
-
const [o, l] = I([]), [d, h] = I([]), [u, p] = I(/* @__PURE__ */ new Set()), [y, m] = I(""), [x, f] = I(""), [v, k] = I("relevance"), [w, b] = I(!1), [C, M] = I(1), [L, N] = I(!1), [j, S] = I(!1), [
|
|
43572
|
+
const [o, l] = I([]), [d, h] = I([]), [u, p] = I(/* @__PURE__ */ new Set()), [y, m] = I(""), [x, f] = I(""), [v, k] = I("relevance"), [w, b] = I(!1), [C, M] = I(1), [L, N] = I(!1), [j, S] = I(!1), [D, P] = I(!0), [_, q] = I(""), [H, G] = I([]), [V, $] = I([]), [O, se] = I("grid"), [K, X] = I(n), [Z, de] = I({
|
|
43573
43573
|
categories: [],
|
|
43574
43574
|
subcategories: [],
|
|
43575
43575
|
priceRange: [0, 2e3],
|
|
@@ -43580,9 +43580,9 @@ const MP = {
|
|
|
43580
43580
|
}), ae = n9(r), xe = Fe(() => ({
|
|
43581
43581
|
component: "IGamingCoursePage",
|
|
43582
43582
|
...i ?? {}
|
|
43583
|
-
}), [i]), be = Hn(!1),
|
|
43583
|
+
}), [i]), be = Hn(!1), J = Fe(() => {
|
|
43584
43584
|
let F = [...d];
|
|
43585
|
-
switch (y && (F = F.filter((U) => ye(U.category) === y)), x && (F = F.filter((U) => ye(U.subcategory) === x)),
|
|
43585
|
+
switch (y && (F = F.filter((U) => ye(U.category) === y)), x && (F = F.filter((U) => ye(U.subcategory) === x)), Z.levels.length > 0 && (F = F.filter((U) => Z.levels.includes(U.level))), Z.languages.length > 0 && (F = F.filter((U) => Z.languages.includes(U.language))), Z.features.length > 0 && (F = F.filter((U) => Z.features.some((te) => U.features.includes(te)))), Z.rating > 0 && (F = F.filter((U) => U.rating >= Z.rating)), w && (F = F.filter((U) => u.has(U.id))), v) {
|
|
43586
43586
|
case "price-low-high":
|
|
43587
43587
|
F.sort((U, te) => U.price - te.price);
|
|
43588
43588
|
break;
|
|
@@ -43602,7 +43602,7 @@ const MP = {
|
|
|
43602
43602
|
F.sort((U, te) => U.isFeatured && !te.isFeatured ? -1 : !U.isFeatured && te.isFeatured ? 1 : U.isBestseller && !te.isBestseller ? -1 : !U.isBestseller && te.isBestseller ? 1 : te.rating - U.rating);
|
|
43603
43603
|
}
|
|
43604
43604
|
return F;
|
|
43605
|
-
}, [d, y, x,
|
|
43605
|
+
}, [d, y, x, Z, u, w, v]), ne = Ct((F, U) => {
|
|
43606
43606
|
s && s({
|
|
43607
43607
|
domain: "courses",
|
|
43608
43608
|
name: F,
|
|
@@ -43613,20 +43613,20 @@ const MP = {
|
|
|
43613
43613
|
}, [xe, s]), ve = Ct(() => ({
|
|
43614
43614
|
category: y || void 0,
|
|
43615
43615
|
subcategory: x || void 0,
|
|
43616
|
-
levels:
|
|
43617
|
-
languages:
|
|
43618
|
-
features:
|
|
43619
|
-
rating:
|
|
43620
|
-
priceRange:
|
|
43616
|
+
levels: Z.levels,
|
|
43617
|
+
languages: Z.languages,
|
|
43618
|
+
features: Z.features,
|
|
43619
|
+
rating: Z.rating,
|
|
43620
|
+
priceRange: Z.priceRange,
|
|
43621
43621
|
favoritesOnly: w
|
|
43622
|
-
}), [
|
|
43622
|
+
}), [Z.features, Z.languages, Z.levels, Z.priceRange, Z.rating, y, x, w]), ke = Ct(() => ({
|
|
43623
43623
|
page: C,
|
|
43624
43624
|
pageSize: K,
|
|
43625
|
-
totalResults:
|
|
43625
|
+
totalResults: J.length,
|
|
43626
43626
|
sortBy: v,
|
|
43627
43627
|
viewMode: O
|
|
43628
|
-
}), [C,
|
|
43629
|
-
|
|
43628
|
+
}), [C, J.length, K, v, O]), ie = () => {
|
|
43629
|
+
se((F) => {
|
|
43630
43630
|
const U = F === "grid" ? "list" : "grid";
|
|
43631
43631
|
return ne("courses_listing_viewmode_changed", { viewMode: U }), U;
|
|
43632
43632
|
});
|
|
@@ -43653,7 +43653,7 @@ const MP = {
|
|
|
43653
43653
|
X(F), M(1), ne("courses_listing_items_per_page_changed", { pageSize: F });
|
|
43654
43654
|
}, He = (F) => {
|
|
43655
43655
|
const U = (te) => te.slice().sort().join("|");
|
|
43656
|
-
return U(F.categories) !== U(
|
|
43656
|
+
return U(F.categories) !== U(Z.categories) ? "category" : U(F.subcategories) !== U(Z.subcategories) ? "subcategory" : U(F.levels) !== U(Z.levels) ? "levels" : U(F.languages) !== U(Z.languages) ? "languages" : U(F.features) !== U(Z.features) ? "features" : F.rating !== Z.rating ? "rating" : F.priceRange[0] !== Z.priceRange[0] || F.priceRange[1] !== Z.priceRange[1] ? "priceRange" : "features";
|
|
43657
43657
|
}, lt = (F) => {
|
|
43658
43658
|
de(F);
|
|
43659
43659
|
const U = {
|
|
@@ -43671,7 +43671,7 @@ const MP = {
|
|
|
43671
43671
|
...U
|
|
43672
43672
|
});
|
|
43673
43673
|
};
|
|
43674
|
-
|
|
43674
|
+
re(() => {
|
|
43675
43675
|
(async () => {
|
|
43676
43676
|
try {
|
|
43677
43677
|
if (!t) {
|
|
@@ -43691,11 +43691,11 @@ const MP = {
|
|
|
43691
43691
|
P(!1);
|
|
43692
43692
|
}
|
|
43693
43693
|
})();
|
|
43694
|
-
}, [t]),
|
|
43694
|
+
}, [t]), re(() => {
|
|
43695
43695
|
var te;
|
|
43696
43696
|
const U = (te = new URLSearchParams(window.location.search).get("q")) == null ? void 0 : te.trim();
|
|
43697
43697
|
if (U) {
|
|
43698
|
-
|
|
43698
|
+
q(U);
|
|
43699
43699
|
const Le = o.filter(
|
|
43700
43700
|
(Oe) => {
|
|
43701
43701
|
var tt;
|
|
@@ -43704,10 +43704,10 @@ const MP = {
|
|
|
43704
43704
|
);
|
|
43705
43705
|
h(Le);
|
|
43706
43706
|
}
|
|
43707
|
-
}, [o]),
|
|
43707
|
+
}, [o]), re(() => {
|
|
43708
43708
|
const F = localStorage.getItem("course-favorites");
|
|
43709
43709
|
F && p(new Set(JSON.parse(F)));
|
|
43710
|
-
}, []),
|
|
43710
|
+
}, []), re(() => {
|
|
43711
43711
|
localStorage.setItem("course-favorites", JSON.stringify(Array.from(u)));
|
|
43712
43712
|
}, [u]);
|
|
43713
43713
|
const wt = (F) => {
|
|
@@ -43726,12 +43726,12 @@ const MP = {
|
|
|
43726
43726
|
openedIn: "new_tab"
|
|
43727
43727
|
}), window.open(U.link, "_blank", "noopener,noreferrer"));
|
|
43728
43728
|
};
|
|
43729
|
-
|
|
43730
|
-
be.current ||
|
|
43729
|
+
re(() => {
|
|
43730
|
+
be.current || D || !J.length && !o.length || (ne("courses_listing_viewed", {
|
|
43731
43731
|
...ve(),
|
|
43732
43732
|
...ke()
|
|
43733
43733
|
}), be.current = !0);
|
|
43734
|
-
}, [o.length, ne,
|
|
43734
|
+
}, [o.length, ne, J.length, ve, ke, D]);
|
|
43735
43735
|
const dt = (F) => {
|
|
43736
43736
|
const U = ye(F);
|
|
43737
43737
|
m(U === y ? "" : U), f(""), ne("courses_category_selected", { category: U === y ? null : U }), ne("courses_filter_changed", {
|
|
@@ -43753,17 +43753,17 @@ const MP = {
|
|
|
43753
43753
|
languages: [],
|
|
43754
43754
|
features: [],
|
|
43755
43755
|
rating: 0
|
|
43756
|
-
}), m(""), f(""), b(!1),
|
|
43756
|
+
}), m(""), f(""), b(!1), q(""), h(o), ne("courses_filters_cleared_all", {});
|
|
43757
43757
|
}, nt = () => {
|
|
43758
43758
|
N(!L);
|
|
43759
43759
|
}, un = (F) => {
|
|
43760
43760
|
M(F), ne("courses_listing_page_changed", {
|
|
43761
43761
|
page: F,
|
|
43762
43762
|
pageSize: K,
|
|
43763
|
-
totalResults:
|
|
43763
|
+
totalResults: J.length
|
|
43764
43764
|
});
|
|
43765
|
-
}, Bt =
|
|
43766
|
-
if (
|
|
43765
|
+
}, Bt = J.length === 0 ? 0 : (C - 1) * K + 1, Rt = Math.min(C * K, J.length), Ua = (F) => {
|
|
43766
|
+
if (q(F), !F) {
|
|
43767
43767
|
h(o), $([]);
|
|
43768
43768
|
return;
|
|
43769
43769
|
}
|
|
@@ -43818,7 +43818,7 @@ const MP = {
|
|
|
43818
43818
|
value: x.replace(/-/g, " "),
|
|
43819
43819
|
onRemove: () => f("")
|
|
43820
43820
|
}] : [],
|
|
43821
|
-
...
|
|
43821
|
+
...Z.levels.map((F) => ({
|
|
43822
43822
|
key: "level",
|
|
43823
43823
|
label: "",
|
|
43824
43824
|
value: F,
|
|
@@ -43832,7 +43832,7 @@ const MP = {
|
|
|
43832
43832
|
label: "Search",
|
|
43833
43833
|
value: _,
|
|
43834
43834
|
onRemove: () => {
|
|
43835
|
-
|
|
43835
|
+
q(""), h(o);
|
|
43836
43836
|
}
|
|
43837
43837
|
}] : []
|
|
43838
43838
|
],
|
|
@@ -43849,10 +43849,10 @@ const MP = {
|
|
|
43849
43849
|
const U = o.filter(
|
|
43850
43850
|
(te) => te.title.toLowerCase().includes(F.toLowerCase())
|
|
43851
43851
|
);
|
|
43852
|
-
h(U),
|
|
43852
|
+
h(U), q(F);
|
|
43853
43853
|
},
|
|
43854
43854
|
onTyping: (F) => {
|
|
43855
|
-
S(!!F), F || (h(o),
|
|
43855
|
+
S(!!F), F || (h(o), q(""));
|
|
43856
43856
|
}
|
|
43857
43857
|
}
|
|
43858
43858
|
),
|
|
@@ -43864,11 +43864,11 @@ const MP = {
|
|
|
43864
43864
|
onSortChange: k,
|
|
43865
43865
|
onClearFilters: _t,
|
|
43866
43866
|
totalCourses: o.length,
|
|
43867
|
-
filteredCourses:
|
|
43867
|
+
filteredCourses: J.length,
|
|
43868
43868
|
categories: Ae,
|
|
43869
43869
|
selectedCategory: y,
|
|
43870
43870
|
selectedSubcategory: x,
|
|
43871
|
-
filters:
|
|
43871
|
+
filters: Z,
|
|
43872
43872
|
onCategorySelect: dt,
|
|
43873
43873
|
onSubcategorySelect: Ge,
|
|
43874
43874
|
isMobileFilterOpen: L,
|
|
@@ -43882,13 +43882,13 @@ const MP = {
|
|
|
43882
43882
|
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:block lg:w-1/4", children: /* @__PURE__ */ e.jsx(
|
|
43883
43883
|
eL,
|
|
43884
43884
|
{
|
|
43885
|
-
filters:
|
|
43885
|
+
filters: Z,
|
|
43886
43886
|
sortBy: v,
|
|
43887
43887
|
onFiltersChange: lt,
|
|
43888
43888
|
onSortChange: k,
|
|
43889
43889
|
onClearFilters: _t,
|
|
43890
43890
|
totalCourses: o.length,
|
|
43891
|
-
filteredCourses:
|
|
43891
|
+
filteredCourses: J.length,
|
|
43892
43892
|
categories: Ae,
|
|
43893
43893
|
selectedCategory: y,
|
|
43894
43894
|
selectedSubcategory: x,
|
|
@@ -43908,16 +43908,16 @@ const MP = {
|
|
|
43908
43908
|
onToggleViewMode: ie,
|
|
43909
43909
|
selectedItemsPerPage: K,
|
|
43910
43910
|
onItemsPerPageChange: Pe,
|
|
43911
|
-
totalCount:
|
|
43911
|
+
totalCount: J.length,
|
|
43912
43912
|
startIndex: Bt,
|
|
43913
43913
|
endIndex: Rt,
|
|
43914
43914
|
title: "All Courses"
|
|
43915
43915
|
}
|
|
43916
43916
|
),
|
|
43917
|
-
|
|
43917
|
+
D ? /* @__PURE__ */ e.jsx(xN, { totalColumns: 3 }) : /* @__PURE__ */ e.jsx(
|
|
43918
43918
|
FE,
|
|
43919
43919
|
{
|
|
43920
|
-
processedCourses:
|
|
43920
|
+
processedCourses: J,
|
|
43921
43921
|
favorites: u,
|
|
43922
43922
|
handleToggleFavorite: wt,
|
|
43923
43923
|
handleClearFilters: _t,
|
|
@@ -45062,8 +45062,8 @@ const LH = ({
|
|
|
45062
45062
|
onToggleSave: w,
|
|
45063
45063
|
onSaveAction: b
|
|
45064
45064
|
}) => {
|
|
45065
|
-
var ae, xe, be,
|
|
45066
|
-
const C = i === "grid", M = u ?? t.isFollowing ?? !1, L = y || p, N = M ? "Unfollow Company" : "Follow Company", j = t.isSaved, S = k || v,
|
|
45065
|
+
var ae, xe, be, J, ne, ve, ke;
|
|
45066
|
+
const C = i === "grid", M = u ?? t.isFollowing ?? !1, L = y || p, N = M ? "Unfollow Company" : "Follow Company", j = t.isSaved, S = k || v, D = j ? "Remove from Saved" : "Save Company", P = t.trustAndCompliance.licenses.length + t.trustAndCompliance.certifications.length + t.trustAndCompliance.awards.length, _ = ((ae = t.group) == null ? void 0 : ae.intelligenceProfile) ?? t.signalsAndInsights, q = Array.isArray(t.jobs.openRoles) ? t.jobs.openRoles.length : t.jobs.openRoles, H = n ?? q, G = H > 0, V = ((xe = t.group) == null ? void 0 : xe.name) ?? t.groupName ?? t.group_name, $ = ((be = t.group) == null ? void 0 : be.slug) ?? t.groupSlug ?? t.group_slug ?? ((J = t.group) == null ? void 0 : J.id) ?? t.groupId ?? t.group_id, O = (ie) => {
|
|
45067
45067
|
switch (ie) {
|
|
45068
45068
|
case "Operator":
|
|
45069
45069
|
return "bg-blue-500/10 text-blue-600 border-blue-500/20";
|
|
@@ -45078,7 +45078,7 @@ const LH = ({
|
|
|
45078
45078
|
default:
|
|
45079
45079
|
return "bg-muted text-muted-foreground";
|
|
45080
45080
|
}
|
|
45081
|
-
},
|
|
45081
|
+
}, se = (ie) => {
|
|
45082
45082
|
var ye, Ae, Pe;
|
|
45083
45083
|
if (typeof ie == "string") return ie;
|
|
45084
45084
|
if (typeof ie == "object" && ie !== null) {
|
|
@@ -45086,7 +45086,7 @@ const LH = ({
|
|
|
45086
45086
|
return He.title ?? ((ye = He.tag) == null ? void 0 : ye.title) ?? ((Ae = He.tag) == null ? void 0 : Ae.name) ?? ((Pe = He.tag) == null ? void 0 : Pe.slug) ?? null;
|
|
45087
45087
|
}
|
|
45088
45088
|
return null;
|
|
45089
|
-
}, K = (ne = t.overview.headquarters) == null ? void 0 : ne.city, X = (ve = t.overview.headquarters) == null ? void 0 : ve.country,
|
|
45089
|
+
}, K = (ne = t.overview.headquarters) == null ? void 0 : ne.city, X = (ve = t.overview.headquarters) == null ? void 0 : ve.country, Z = () => {
|
|
45090
45090
|
const ie = !M;
|
|
45091
45091
|
m == null || m(t.id, ie), x == null || x({
|
|
45092
45092
|
companyId: t.id,
|
|
@@ -45167,10 +45167,10 @@ const LH = ({
|
|
|
45167
45167
|
className: "flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",
|
|
45168
45168
|
onClick: de,
|
|
45169
45169
|
disabled: S,
|
|
45170
|
-
"aria-label": `${
|
|
45170
|
+
"aria-label": `${D} ${a ?? t.name}`,
|
|
45171
45171
|
"aria-pressed": j,
|
|
45172
45172
|
"aria-busy": v,
|
|
45173
|
-
title:
|
|
45173
|
+
title: D,
|
|
45174
45174
|
children: [
|
|
45175
45175
|
v ? /* @__PURE__ */ e.jsx(st, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ e.jsx(wa, { className: `h-4 w-4 ${j ? "fill-current" : "fill-transparent"}` }),
|
|
45176
45176
|
v ? "Loading" : j ? "Saved" : "Save"
|
|
@@ -45183,7 +45183,7 @@ const LH = ({
|
|
|
45183
45183
|
variant: M ? "secondary" : "outline",
|
|
45184
45184
|
size: "sm",
|
|
45185
45185
|
className: "flex-shrink-0 gap-2 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity",
|
|
45186
|
-
onClick:
|
|
45186
|
+
onClick: Z,
|
|
45187
45187
|
disabled: L,
|
|
45188
45188
|
"aria-label": `${N} ${a ?? t.name}`,
|
|
45189
45189
|
"aria-pressed": M,
|
|
@@ -45220,7 +45220,7 @@ const LH = ({
|
|
|
45220
45220
|
] })
|
|
45221
45221
|
] }),
|
|
45222
45222
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground line-clamp-2 mb-3", children: t.overview.shortDescription }),
|
|
45223
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1.5 mb-3", children: (ke = t.classification.tags) == null ? void 0 : ke.map(
|
|
45223
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1.5 mb-3", children: (ke = t.classification.tags) == null ? void 0 : ke.map(se).filter((ie) => !!ie).slice(0, 4).map((ie) => /* @__PURE__ */ e.jsxs(
|
|
45224
45224
|
"span",
|
|
45225
45225
|
{
|
|
45226
45226
|
className: "text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",
|
|
@@ -45676,7 +45676,7 @@ const ZH = (t) => ({
|
|
|
45676
45676
|
}, m = $N(s), x = BN(m), f = await o.getDimensions(h), v = m === "y", k = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = i.reference[x] + i.reference[m] - y[m] - i.floating[x], M = y[m] - i.reference[m], L = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
|
|
45677
45677
|
let N = L ? L[b] : 0;
|
|
45678
45678
|
(!N || !await (o.isElement == null ? void 0 : o.isElement(L))) && (N = l.floating[b] || i.floating[x]);
|
|
45679
|
-
const j = C / 2 - M / 2, S = N / 2 - f[x] / 2 - 1,
|
|
45679
|
+
const j = C / 2 - M / 2, S = N / 2 - f[x] / 2 - 1, D = $n(p[k], S), P = $n(p[w], S), _ = D, q = N - f[x] - P, H = N / 2 - f[x] / 2 + j, G = TC(_, H, q), V = !d.arrow && Lc(s) != null && H !== G && i.reference[x] / 2 - (H < _ ? D : P) - f[x] / 2 < 0, $ = V ? H < _ ? H - _ : H - q : 0;
|
|
45680
45680
|
return {
|
|
45681
45681
|
[m]: y[m] + $,
|
|
45682
45682
|
data: {
|
|
@@ -45716,12 +45716,12 @@ const ZH = (t) => ({
|
|
|
45716
45716
|
const k = sn(s), w = Ta(l), b = sn(l) === l, C = await (d.isRTL == null ? void 0 : d.isRTL(h.floating)), M = y || (b || !f ? [Uj(l)] : HH(l)), L = x !== "none";
|
|
45717
45717
|
!y && L && M.push(...UH(l, f, x, C));
|
|
45718
45718
|
const N = [l, ...M], j = await jl(a, v), S = [];
|
|
45719
|
-
let
|
|
45719
|
+
let D = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
45720
45720
|
if (u && S.push(j[k]), p) {
|
|
45721
45721
|
const H = EH(s, o, C);
|
|
45722
45722
|
S.push(j[H[0]], j[H[1]]);
|
|
45723
45723
|
}
|
|
45724
|
-
if (
|
|
45724
|
+
if (D = [...D, {
|
|
45725
45725
|
placement: s,
|
|
45726
45726
|
overflows: S
|
|
45727
45727
|
}], !S.every((H) => H <= 0)) {
|
|
@@ -45729,30 +45729,30 @@ const ZH = (t) => ({
|
|
|
45729
45729
|
const H = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, G = N[H];
|
|
45730
45730
|
if (G && (!(p === "alignment" ? w !== Ta(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
45731
45731
|
// overflows the main axis.
|
|
45732
|
-
|
|
45732
|
+
D.every((O) => Ta(O.placement) === w ? O.overflows[0] > 0 : !0)))
|
|
45733
45733
|
return {
|
|
45734
45734
|
data: {
|
|
45735
45735
|
index: H,
|
|
45736
|
-
overflows:
|
|
45736
|
+
overflows: D
|
|
45737
45737
|
},
|
|
45738
45738
|
reset: {
|
|
45739
45739
|
placement: G
|
|
45740
45740
|
}
|
|
45741
45741
|
};
|
|
45742
|
-
let V = (_ =
|
|
45742
|
+
let V = (_ = D.filter(($) => $.overflows[0] <= 0).sort(($, O) => $.overflows[1] - O.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
45743
45743
|
if (!V)
|
|
45744
45744
|
switch (m) {
|
|
45745
45745
|
case "bestFit": {
|
|
45746
|
-
var
|
|
45747
|
-
const $ = (
|
|
45746
|
+
var q;
|
|
45747
|
+
const $ = (q = D.filter((O) => {
|
|
45748
45748
|
if (L) {
|
|
45749
|
-
const
|
|
45750
|
-
return
|
|
45749
|
+
const se = Ta(O.placement);
|
|
45750
|
+
return se === w || // Create a bias to the `y` side axis due to horizontal
|
|
45751
45751
|
// reading directions favoring greater width.
|
|
45752
|
-
|
|
45752
|
+
se === "y";
|
|
45753
45753
|
}
|
|
45754
45754
|
return !0;
|
|
45755
|
-
}).map((O) => [O.placement, O.overflows.filter((
|
|
45755
|
+
}).map((O) => [O.placement, O.overflows.filter((se) => se > 0).reduce((se, K) => se + K, 0)]).sort((O, se) => O[1] - se[1])[0]) == null ? void 0 : q[0];
|
|
45756
45756
|
$ && (V = $);
|
|
45757
45757
|
break;
|
|
45758
45758
|
}
|
|
@@ -45995,8 +45995,8 @@ const KH = function(t) {
|
|
|
45995
45995
|
const w = f - u.top - u.bottom, b = x - u.left - u.right, C = $n(f - u[v], w), M = $n(x - u[k], b), L = !a.middlewareData.shift;
|
|
45996
45996
|
let N = C, j = M;
|
|
45997
45997
|
if ((n = a.middlewareData.shift) != null && n.enabled.x && (j = b), (r = a.middlewareData.shift) != null && r.enabled.y && (N = w), L && !y) {
|
|
45998
|
-
const
|
|
45999
|
-
m ? j = x - 2 * (
|
|
45998
|
+
const D = Zt(u.left, 0), P = Zt(u.right, 0), _ = Zt(u.top, 0), q = Zt(u.bottom, 0);
|
|
45999
|
+
m ? j = x - 2 * (D !== 0 || P !== 0 ? D + P : Zt(u.left, u.right)) : N = f - 2 * (_ !== 0 || q !== 0 ? _ + q : Zt(u.top, u.bottom));
|
|
46000
46000
|
}
|
|
46001
46001
|
await d({
|
|
46002
46002
|
...a,
|
|
@@ -46584,7 +46584,7 @@ function zV(t) {
|
|
|
46584
46584
|
O !== L.current && (L.current = O, f(O));
|
|
46585
46585
|
}, []), b = g.useCallback((O) => {
|
|
46586
46586
|
O !== N.current && (N.current = O, k(O));
|
|
46587
|
-
}, []), C = i || x, M = o || v, L = g.useRef(null), N = g.useRef(null), j = g.useRef(u), S = d != null,
|
|
46587
|
+
}, []), C = i || x, M = o || v, L = g.useRef(null), N = g.useRef(null), j = g.useRef(u), S = d != null, D = tC(d), P = tC(s), _ = tC(h), q = g.useCallback(() => {
|
|
46588
46588
|
if (!L.current || !N.current)
|
|
46589
46589
|
return;
|
|
46590
46590
|
const O = {
|
|
@@ -46592,9 +46592,9 @@ function zV(t) {
|
|
|
46592
46592
|
strategy: n,
|
|
46593
46593
|
middleware: y
|
|
46594
46594
|
};
|
|
46595
|
-
P.current && (O.platform = P.current), TV(L.current, N.current, O).then((
|
|
46595
|
+
P.current && (O.platform = P.current), TV(L.current, N.current, O).then((se) => {
|
|
46596
46596
|
const K = {
|
|
46597
|
-
...
|
|
46597
|
+
...se,
|
|
46598
46598
|
// The floating element's position may be recomputed while it's closed
|
|
46599
46599
|
// but still mounted (such as when transitioning out). To ensure
|
|
46600
46600
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -46617,11 +46617,11 @@ function zV(t) {
|
|
|
46617
46617
|
H.current = !1;
|
|
46618
46618
|
}), []), Aj(() => {
|
|
46619
46619
|
if (C && (L.current = C), M && (N.current = M), C && M) {
|
|
46620
|
-
if (
|
|
46621
|
-
return
|
|
46622
|
-
|
|
46620
|
+
if (D.current)
|
|
46621
|
+
return D.current(C, M, q);
|
|
46622
|
+
q();
|
|
46623
46623
|
}
|
|
46624
|
-
}, [C, M,
|
|
46624
|
+
}, [C, M, q, D, S]);
|
|
46625
46625
|
const G = g.useMemo(() => ({
|
|
46626
46626
|
reference: L,
|
|
46627
46627
|
floating: N,
|
|
@@ -46638,26 +46638,26 @@ function zV(t) {
|
|
|
46638
46638
|
};
|
|
46639
46639
|
if (!V.floating)
|
|
46640
46640
|
return O;
|
|
46641
|
-
const
|
|
46641
|
+
const se = vL(V.floating, u.x), K = vL(V.floating, u.y);
|
|
46642
46642
|
return l ? {
|
|
46643
46643
|
...O,
|
|
46644
|
-
transform: "translate(" +
|
|
46644
|
+
transform: "translate(" + se + "px, " + K + "px)",
|
|
46645
46645
|
...s_(V.floating) >= 1.5 && {
|
|
46646
46646
|
willChange: "transform"
|
|
46647
46647
|
}
|
|
46648
46648
|
} : {
|
|
46649
46649
|
position: n,
|
|
46650
|
-
left:
|
|
46650
|
+
left: se,
|
|
46651
46651
|
top: K
|
|
46652
46652
|
};
|
|
46653
46653
|
}, [n, l, V.floating, u.x, u.y]);
|
|
46654
46654
|
return g.useMemo(() => ({
|
|
46655
46655
|
...u,
|
|
46656
|
-
update:
|
|
46656
|
+
update: q,
|
|
46657
46657
|
refs: G,
|
|
46658
46658
|
elements: V,
|
|
46659
46659
|
floatingStyles: $
|
|
46660
|
-
}), [u,
|
|
46660
|
+
}), [u, q, G, V, $]);
|
|
46661
46661
|
}
|
|
46662
46662
|
const FV = (t) => {
|
|
46663
46663
|
function a(n) {
|
|
@@ -46869,7 +46869,7 @@ var u_ = "PopperAnchor", p_ = g.forwardRef(
|
|
|
46869
46869
|
p_.displayName = u_;
|
|
46870
46870
|
var JN = "PopperContent", [aB, nB] = l_(JN), m_ = g.forwardRef(
|
|
46871
46871
|
(t, a) => {
|
|
46872
|
-
var
|
|
46872
|
+
var J, ne, ve, ke, ie, ye;
|
|
46873
46873
|
const {
|
|
46874
46874
|
__scopePopper: n,
|
|
46875
46875
|
side: r = "bottom",
|
|
@@ -46885,8 +46885,8 @@ var JN = "PopperContent", [aB, nB] = l_(JN), m_ = g.forwardRef(
|
|
|
46885
46885
|
updatePositionStrategy: m = "optimized",
|
|
46886
46886
|
onPlaced: x,
|
|
46887
46887
|
...f
|
|
46888
|
-
} = t, v = d_(JN, n), [k, w] = g.useState(null), b = o_(a, (Ae) => w(Ae)), [C, M] = g.useState(null), L = zN(C), N = (L == null ? void 0 : L.width) ?? 0, j = (L == null ? void 0 : L.height) ?? 0, S = r + (i !== "center" ? "-" + i : ""),
|
|
46889
|
-
padding:
|
|
46888
|
+
} = t, v = d_(JN, n), [k, w] = g.useState(null), b = o_(a, (Ae) => w(Ae)), [C, M] = g.useState(null), L = zN(C), N = (L == null ? void 0 : L.width) ?? 0, j = (L == null ? void 0 : L.height) ?? 0, S = r + (i !== "center" ? "-" + i : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, P = Array.isArray(h) ? h : [h], _ = P.length > 0, q = {
|
|
46889
|
+
padding: D,
|
|
46890
46890
|
boundary: P.filter(sB),
|
|
46891
46891
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
46892
46892
|
altBoundary: _
|
|
@@ -46906,11 +46906,11 @@ var JN = "PopperContent", [aB, nB] = l_(JN), m_ = g.forwardRef(
|
|
|
46906
46906
|
mainAxis: !0,
|
|
46907
46907
|
crossAxis: !1,
|
|
46908
46908
|
limiter: p === "partial" ? HV() : void 0,
|
|
46909
|
-
...
|
|
46909
|
+
...q
|
|
46910
46910
|
}),
|
|
46911
|
-
d && VV({ ...
|
|
46911
|
+
d && VV({ ...q }),
|
|
46912
46912
|
BV({
|
|
46913
|
-
...
|
|
46913
|
+
...q,
|
|
46914
46914
|
apply: ({ elements: Ae, rects: Pe, availableWidth: He, availableHeight: lt }) => {
|
|
46915
46915
|
const { width: wt, height: Pt } = Pe.reference, dt = Ae.floating.style;
|
|
46916
46916
|
dt.setProperty("--radix-popper-available-width", `${He}px`), dt.setProperty("--radix-popper-available-height", `${lt}px`), dt.setProperty("--radix-popper-anchor-width", `${wt}px`), dt.setProperty("--radix-popper-anchor-height", `${Pt}px`);
|
|
@@ -46918,13 +46918,13 @@ var JN = "PopperContent", [aB, nB] = l_(JN), m_ = g.forwardRef(
|
|
|
46918
46918
|
}),
|
|
46919
46919
|
C && UV({ element: C, padding: l }),
|
|
46920
46920
|
iB({ arrowWidth: N, arrowHeight: j }),
|
|
46921
|
-
y && $V({ strategy: "referenceHidden", ...
|
|
46921
|
+
y && $V({ strategy: "referenceHidden", ...q })
|
|
46922
46922
|
]
|
|
46923
|
-
}), [
|
|
46923
|
+
}), [se, K] = x_(V), X = eB(x);
|
|
46924
46924
|
bL(() => {
|
|
46925
46925
|
$ && (X == null || X());
|
|
46926
46926
|
}, [$, X]);
|
|
46927
|
-
const
|
|
46927
|
+
const Z = (J = O.arrow) == null ? void 0 : J.x, de = (ne = O.arrow) == null ? void 0 : ne.y, ae = ((ve = O.arrow) == null ? void 0 : ve.centerOffset) !== 0, [xe, be] = g.useState();
|
|
46928
46928
|
return bL(() => {
|
|
46929
46929
|
k && be(window.getComputedStyle(k).zIndex);
|
|
46930
46930
|
}, [k]), /* @__PURE__ */ e.jsx(
|
|
@@ -46955,15 +46955,15 @@ var JN = "PopperContent", [aB, nB] = l_(JN), m_ = g.forwardRef(
|
|
|
46955
46955
|
aB,
|
|
46956
46956
|
{
|
|
46957
46957
|
scope: n,
|
|
46958
|
-
placedSide:
|
|
46958
|
+
placedSide: se,
|
|
46959
46959
|
onArrowChange: M,
|
|
46960
|
-
arrowX:
|
|
46960
|
+
arrowX: Z,
|
|
46961
46961
|
arrowY: de,
|
|
46962
46962
|
shouldHideArrow: ae,
|
|
46963
46963
|
children: /* @__PURE__ */ e.jsx(
|
|
46964
46964
|
c_.div,
|
|
46965
46965
|
{
|
|
46966
|
-
"data-side":
|
|
46966
|
+
"data-side": se,
|
|
46967
46967
|
"data-align": K,
|
|
46968
46968
|
...f,
|
|
46969
46969
|
ref: b,
|
|
@@ -47204,12 +47204,12 @@ var fB = [" ", "Enter", "ArrowUp", "ArrowDown"], xB = [" ", "Enter"], Oo = "Sele
|
|
|
47204
47204
|
defaultProp: s ?? !1,
|
|
47205
47205
|
onChange: i,
|
|
47206
47206
|
caller: Oo
|
|
47207
|
-
}), [S,
|
|
47207
|
+
}), [S, D] = ML({
|
|
47208
47208
|
prop: o,
|
|
47209
47209
|
defaultProp: l,
|
|
47210
47210
|
onChange: d,
|
|
47211
47211
|
caller: Oo
|
|
47212
|
-
}), P = g.useRef(null), _ = v ? x || !!v.closest("form") : !0, [
|
|
47212
|
+
}), P = g.useRef(null), _ = v ? x || !!v.closest("form") : !0, [q, H] = g.useState(/* @__PURE__ */ new Set()), G = Array.from(q).map((V) => V.props.value).join(";");
|
|
47213
47213
|
return /* @__PURE__ */ e.jsx(g_, { ...f, children: /* @__PURE__ */ e.jsxs(
|
|
47214
47214
|
kB,
|
|
47215
47215
|
{
|
|
@@ -47223,7 +47223,7 @@ var fB = [" ", "Enter", "ArrowUp", "ArrowDown"], xB = [" ", "Enter"], Oo = "Sele
|
|
|
47223
47223
|
onValueNodeHasChildrenChange: M,
|
|
47224
47224
|
contentId: HN(),
|
|
47225
47225
|
value: S,
|
|
47226
|
-
onValueChange:
|
|
47226
|
+
onValueChange: D,
|
|
47227
47227
|
open: N,
|
|
47228
47228
|
onOpenChange: j,
|
|
47229
47229
|
dir: L,
|
|
@@ -47255,12 +47255,12 @@ var fB = [" ", "Enter", "ArrowUp", "ArrowDown"], xB = [" ", "Enter"], Oo = "Sele
|
|
|
47255
47255
|
name: u,
|
|
47256
47256
|
autoComplete: p,
|
|
47257
47257
|
value: S,
|
|
47258
|
-
onChange: (V) =>
|
|
47258
|
+
onChange: (V) => D(V.target.value),
|
|
47259
47259
|
disabled: y,
|
|
47260
47260
|
form: x,
|
|
47261
47261
|
children: [
|
|
47262
47262
|
S === void 0 ? /* @__PURE__ */ e.jsx("option", { value: "" }) : null,
|
|
47263
|
-
Array.from(
|
|
47263
|
+
Array.from(q)
|
|
47264
47264
|
]
|
|
47265
47265
|
},
|
|
47266
47266
|
G
|
|
@@ -47378,16 +47378,16 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47378
47378
|
avoidCollisions: v,
|
|
47379
47379
|
//
|
|
47380
47380
|
...k
|
|
47381
|
-
} = t, w = Wn(Eo, n), [b, C] = g.useState(null), [M, L] = g.useState(null), N = fa(a, (
|
|
47381
|
+
} = t, w = Wn(Eo, n), [b, C] = g.useState(null), [M, L] = g.useState(null), N = fa(a, (J) => C(J)), [j, S] = g.useState(null), [D, P] = g.useState(
|
|
47382
47382
|
null
|
|
47383
|
-
), _ = w9(n), [
|
|
47383
|
+
), _ = w9(n), [q, H] = g.useState(!1), G = g.useRef(!1);
|
|
47384
47384
|
g.useEffect(() => {
|
|
47385
47385
|
if (b) return jN(b);
|
|
47386
47386
|
}, [b]), MN();
|
|
47387
47387
|
const V = g.useCallback(
|
|
47388
|
-
(
|
|
47388
|
+
(J) => {
|
|
47389
47389
|
const [ne, ...ve] = _().map((ye) => ye.ref.current), [ke] = ve.slice(-1), ie = document.activeElement;
|
|
47390
|
-
for (const ye of
|
|
47390
|
+
for (const ye of J)
|
|
47391
47391
|
if (ye === ie || (ye == null || ye.scrollIntoView({ block: "nearest" }), ye === ne && M && (M.scrollTop = 0), ye === ke && M && (M.scrollTop = M.scrollHeight), ye == null || ye.focus(), document.activeElement !== ie)) return;
|
|
47392
47392
|
},
|
|
47393
47393
|
[_, M]
|
|
@@ -47396,44 +47396,44 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47396
47396
|
[V, j, b]
|
|
47397
47397
|
);
|
|
47398
47398
|
g.useEffect(() => {
|
|
47399
|
-
|
|
47400
|
-
}, [
|
|
47401
|
-
const { onOpenChange: O, triggerPointerDownPosRef:
|
|
47399
|
+
q && $();
|
|
47400
|
+
}, [q, $]);
|
|
47401
|
+
const { onOpenChange: O, triggerPointerDownPosRef: se } = w;
|
|
47402
47402
|
g.useEffect(() => {
|
|
47403
47403
|
if (b) {
|
|
47404
|
-
let
|
|
47404
|
+
let J = { x: 0, y: 0 };
|
|
47405
47405
|
const ne = (ke) => {
|
|
47406
47406
|
var ie, ye;
|
|
47407
|
-
|
|
47408
|
-
x: Math.abs(Math.round(ke.pageX) - (((ie =
|
|
47409
|
-
y: Math.abs(Math.round(ke.pageY) - (((ye =
|
|
47407
|
+
J = {
|
|
47408
|
+
x: Math.abs(Math.round(ke.pageX) - (((ie = se.current) == null ? void 0 : ie.x) ?? 0)),
|
|
47409
|
+
y: Math.abs(Math.round(ke.pageY) - (((ye = se.current) == null ? void 0 : ye.y) ?? 0))
|
|
47410
47410
|
};
|
|
47411
47411
|
}, ve = (ke) => {
|
|
47412
|
-
|
|
47412
|
+
J.x <= 10 && J.y <= 10 ? ke.preventDefault() : b.contains(ke.target) || O(!1), document.removeEventListener("pointermove", ne), se.current = null;
|
|
47413
47413
|
};
|
|
47414
|
-
return
|
|
47414
|
+
return se.current !== null && (document.addEventListener("pointermove", ne), document.addEventListener("pointerup", ve, { capture: !0, once: !0 })), () => {
|
|
47415
47415
|
document.removeEventListener("pointermove", ne), document.removeEventListener("pointerup", ve, { capture: !0 });
|
|
47416
47416
|
};
|
|
47417
47417
|
}
|
|
47418
|
-
}, [b, O,
|
|
47419
|
-
const
|
|
47420
|
-
return window.addEventListener("blur",
|
|
47421
|
-
window.removeEventListener("blur",
|
|
47418
|
+
}, [b, O, se]), g.useEffect(() => {
|
|
47419
|
+
const J = () => O(!1);
|
|
47420
|
+
return window.addEventListener("blur", J), window.addEventListener("resize", J), () => {
|
|
47421
|
+
window.removeEventListener("blur", J), window.removeEventListener("resize", J);
|
|
47422
47422
|
};
|
|
47423
47423
|
}, [O]);
|
|
47424
|
-
const [K, X] = Z_((
|
|
47425
|
-
const ne = _().filter((ie) => !ie.disabled), ve = ne.find((ie) => ie.ref.current === document.activeElement), ke = J_(ne,
|
|
47424
|
+
const [K, X] = Z_((J) => {
|
|
47425
|
+
const ne = _().filter((ie) => !ie.disabled), ve = ne.find((ie) => ie.ref.current === document.activeElement), ke = J_(ne, J, ve);
|
|
47426
47426
|
ke && setTimeout(() => ke.ref.current.focus());
|
|
47427
|
-
}),
|
|
47428
|
-
(
|
|
47427
|
+
}), Z = g.useCallback(
|
|
47428
|
+
(J, ne, ve) => {
|
|
47429
47429
|
const ke = !G.current && !ve;
|
|
47430
|
-
(w.value !== void 0 && w.value === ne || ke) && (S(
|
|
47430
|
+
(w.value !== void 0 && w.value === ne || ke) && (S(J), ke && (G.current = !0));
|
|
47431
47431
|
},
|
|
47432
47432
|
[w.value]
|
|
47433
47433
|
), de = g.useCallback(() => b == null ? void 0 : b.focus(), [b]), ae = g.useCallback(
|
|
47434
|
-
(
|
|
47434
|
+
(J, ne, ve) => {
|
|
47435
47435
|
const ke = !G.current && !ve;
|
|
47436
|
-
(w.value !== void 0 && w.value === ne || ke) && P(
|
|
47436
|
+
(w.value !== void 0 && w.value === ne || ke) && P(J);
|
|
47437
47437
|
},
|
|
47438
47438
|
[w.value]
|
|
47439
47439
|
), xe = r === "popper" ? zC : __, be = xe === zC ? {
|
|
@@ -47455,26 +47455,26 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47455
47455
|
content: b,
|
|
47456
47456
|
viewport: M,
|
|
47457
47457
|
onViewportChange: L,
|
|
47458
|
-
itemRefCallback:
|
|
47458
|
+
itemRefCallback: Z,
|
|
47459
47459
|
selectedItem: j,
|
|
47460
47460
|
onItemLeave: de,
|
|
47461
47461
|
itemTextRefCallback: ae,
|
|
47462
47462
|
focusSelectedItem: $,
|
|
47463
|
-
selectedItemText:
|
|
47463
|
+
selectedItemText: D,
|
|
47464
47464
|
position: r,
|
|
47465
|
-
isPositioned:
|
|
47465
|
+
isPositioned: q,
|
|
47466
47466
|
searchRef: K,
|
|
47467
47467
|
children: /* @__PURE__ */ e.jsx(h9, { as: CB, allowPinchZoom: !0, children: /* @__PURE__ */ e.jsx(
|
|
47468
47468
|
o9,
|
|
47469
47469
|
{
|
|
47470
47470
|
asChild: !0,
|
|
47471
47471
|
trapped: w.open,
|
|
47472
|
-
onMountAutoFocus: (
|
|
47473
|
-
|
|
47472
|
+
onMountAutoFocus: (J) => {
|
|
47473
|
+
J.preventDefault();
|
|
47474
47474
|
},
|
|
47475
|
-
onUnmountAutoFocus: pt(s, (
|
|
47475
|
+
onUnmountAutoFocus: pt(s, (J) => {
|
|
47476
47476
|
var ne;
|
|
47477
|
-
(ne = w.trigger) == null || ne.focus({ preventScroll: !0 }),
|
|
47477
|
+
(ne = w.trigger) == null || ne.focus({ preventScroll: !0 }), J.preventDefault();
|
|
47478
47478
|
}),
|
|
47479
47479
|
children: /* @__PURE__ */ e.jsx(
|
|
47480
47480
|
i9,
|
|
@@ -47483,7 +47483,7 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47483
47483
|
disableOutsidePointerEvents: !0,
|
|
47484
47484
|
onEscapeKeyDown: i,
|
|
47485
47485
|
onPointerDownOutside: o,
|
|
47486
|
-
onFocusOutside: (
|
|
47486
|
+
onFocusOutside: (J) => J.preventDefault(),
|
|
47487
47487
|
onDismiss: () => w.onOpenChange(!1),
|
|
47488
47488
|
children: /* @__PURE__ */ e.jsx(
|
|
47489
47489
|
xe,
|
|
@@ -47492,7 +47492,7 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47492
47492
|
id: w.contentId,
|
|
47493
47493
|
"data-state": w.open ? "open" : "closed",
|
|
47494
47494
|
dir: w.dir,
|
|
47495
|
-
onContextMenu: (
|
|
47495
|
+
onContextMenu: (J) => J.preventDefault(),
|
|
47496
47496
|
...k,
|
|
47497
47497
|
...be,
|
|
47498
47498
|
onPlaced: () => H(!0),
|
|
@@ -47505,15 +47505,15 @@ var ka = 10, [A_, Zn] = Ac(Eo), jB = "SelectContentImpl", CB = /* @__PURE__ */ e
|
|
|
47505
47505
|
outline: "none",
|
|
47506
47506
|
...k.style
|
|
47507
47507
|
},
|
|
47508
|
-
onKeyDown: pt(k.onKeyDown, (
|
|
47509
|
-
const ne =
|
|
47510
|
-
if (
|
|
47508
|
+
onKeyDown: pt(k.onKeyDown, (J) => {
|
|
47509
|
+
const ne = J.ctrlKey || J.altKey || J.metaKey;
|
|
47510
|
+
if (J.key === "Tab" && J.preventDefault(), !ne && J.key.length === 1 && X(J.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(J.key)) {
|
|
47511
47511
|
let ke = _().filter((ie) => !ie.disabled).map((ie) => ie.ref.current);
|
|
47512
|
-
if (["ArrowUp", "End"].includes(
|
|
47513
|
-
const ie =
|
|
47512
|
+
if (["ArrowUp", "End"].includes(J.key) && (ke = ke.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(J.key)) {
|
|
47513
|
+
const ie = J.target, ye = ke.indexOf(ie);
|
|
47514
47514
|
ke = ke.slice(ye + 1);
|
|
47515
47515
|
}
|
|
47516
|
-
setTimeout(() => V(ke)),
|
|
47516
|
+
setTimeout(() => V(ke)), J.preventDefault();
|
|
47517
47517
|
}
|
|
47518
47518
|
})
|
|
47519
47519
|
}
|
|
@@ -47530,9 +47530,9 @@ P_.displayName = jB;
|
|
|
47530
47530
|
var NB = "SelectItemAlignedPosition", __ = g.forwardRef((t, a) => {
|
|
47531
47531
|
const { __scopeSelect: n, onPlaced: r, ...s } = t, i = Wn(Eo, n), o = Zn(Eo, n), [l, d] = g.useState(null), [h, u] = g.useState(null), p = fa(a, (N) => u(N)), y = w9(n), m = g.useRef(!1), x = g.useRef(!0), { viewport: f, selectedItem: v, selectedItemText: k, focusSelectedItem: w } = o, b = g.useCallback(() => {
|
|
47532
47532
|
if (i.trigger && i.valueNode && l && h && f && v && k) {
|
|
47533
|
-
const N = i.trigger.getBoundingClientRect(), j = h.getBoundingClientRect(), S = i.valueNode.getBoundingClientRect(),
|
|
47533
|
+
const N = i.trigger.getBoundingClientRect(), j = h.getBoundingClientRect(), S = i.valueNode.getBoundingClientRect(), D = k.getBoundingClientRect();
|
|
47534
47534
|
if (i.dir !== "rtl") {
|
|
47535
|
-
const ie =
|
|
47535
|
+
const ie = D.left - j.left, ye = S.left - ie, Ae = N.left - ye, Pe = N.width + Ae, He = Math.max(Pe, j.width), lt = window.innerWidth - ka, wt = cL(ye, [
|
|
47536
47536
|
ka,
|
|
47537
47537
|
// Prevents the content from going off the starting edge of the
|
|
47538
47538
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -47543,13 +47543,13 @@ var NB = "SelectItemAlignedPosition", __ = g.forwardRef((t, a) => {
|
|
|
47543
47543
|
]);
|
|
47544
47544
|
l.style.minWidth = Pe + "px", l.style.left = wt + "px";
|
|
47545
47545
|
} else {
|
|
47546
|
-
const ie = j.right -
|
|
47546
|
+
const ie = j.right - D.right, ye = window.innerWidth - S.right - ie, Ae = window.innerWidth - N.right - ye, Pe = N.width + Ae, He = Math.max(Pe, j.width), lt = window.innerWidth - ka, wt = cL(ye, [
|
|
47547
47547
|
ka,
|
|
47548
47548
|
Math.max(ka, lt - He)
|
|
47549
47549
|
]);
|
|
47550
47550
|
l.style.minWidth = Pe + "px", l.style.right = wt + "px";
|
|
47551
47551
|
}
|
|
47552
|
-
const P = y(), _ = window.innerHeight - ka * 2,
|
|
47552
|
+
const P = y(), _ = window.innerHeight - ka * 2, q = f.scrollHeight, H = window.getComputedStyle(h), G = parseInt(H.borderTopWidth, 10), V = parseInt(H.paddingTop, 10), $ = parseInt(H.borderBottomWidth, 10), O = parseInt(H.paddingBottom, 10), se = G + V + q + O + $, K = Math.min(v.offsetHeight * 5, se), X = window.getComputedStyle(f), Z = parseInt(X.paddingTop, 10), de = parseInt(X.paddingBottom, 10), ae = N.top + N.height / 2 - ka, xe = _ - ae, be = v.offsetHeight / 2, J = v.offsetTop + be, ne = G + V + J, ve = se - ne;
|
|
47553
47553
|
if (ne <= ae) {
|
|
47554
47554
|
const ie = P.length > 0 && v === P[P.length - 1].ref.current;
|
|
47555
47555
|
l.style.bottom = "0px";
|
|
@@ -47565,7 +47565,7 @@ var NB = "SelectItemAlignedPosition", __ = g.forwardRef((t, a) => {
|
|
|
47565
47565
|
const Ae = Math.max(
|
|
47566
47566
|
ae,
|
|
47567
47567
|
G + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
47568
|
-
(ie ?
|
|
47568
|
+
(ie ? Z : 0) + be
|
|
47569
47569
|
) + ve;
|
|
47570
47570
|
l.style.height = Ae + "px", f.scrollTop = ne - ae + f.offsetTop;
|
|
47571
47571
|
}
|
|
@@ -49014,42 +49014,42 @@ const h$ = d$, u$ = cR, p$ = lR, dR = [
|
|
|
49014
49014
|
onToggleSave: C,
|
|
49015
49015
|
onSaveAction: M
|
|
49016
49016
|
}) => {
|
|
49017
|
-
const [L, N] = I(!1), [j, S] = I([]), [
|
|
49018
|
-
const X = t.map((
|
|
49019
|
-
var xe, be,
|
|
49020
|
-
const de = h.scope === "group", ae = ((be = (xe =
|
|
49017
|
+
const [L, N] = I(!1), [j, S] = I([]), [D, P] = I(!0), { displayCompanies: _, comparisonEntities: q } = Fe(() => {
|
|
49018
|
+
const X = t.map((Z) => {
|
|
49019
|
+
var xe, be, J;
|
|
49020
|
+
const de = h.scope === "group", ae = ((be = (xe = Z.group) == null ? void 0 : xe.companies) == null ? void 0 : be.length) ?? 1;
|
|
49021
49021
|
return {
|
|
49022
|
-
company:
|
|
49023
|
-
displayName: de ? ((
|
|
49024
|
-
openRolesCount: Array.isArray(
|
|
49022
|
+
company: Z,
|
|
49023
|
+
displayName: de ? ((J = Z.group) == null ? void 0 : J.name) ?? Z.groupName ?? Z.name : Z.name,
|
|
49024
|
+
openRolesCount: Array.isArray(Z.jobs.openRoles) ? Z.jobs.openRoles.length : Z.jobs.openRoles,
|
|
49025
49025
|
groupMembersCount: ae,
|
|
49026
49026
|
isGroup: de,
|
|
49027
|
-
comparisonProfile: w$(
|
|
49028
|
-
comparisonId:
|
|
49027
|
+
comparisonProfile: w$(Z),
|
|
49028
|
+
comparisonId: Z.id
|
|
49029
49029
|
};
|
|
49030
49030
|
});
|
|
49031
49031
|
return {
|
|
49032
49032
|
displayCompanies: X,
|
|
49033
|
-
comparisonEntities: X.map((
|
|
49034
|
-
id:
|
|
49035
|
-
name:
|
|
49036
|
-
normalizedProfile:
|
|
49033
|
+
comparisonEntities: X.map((Z) => ({
|
|
49034
|
+
id: Z.comparisonId,
|
|
49035
|
+
name: Z.displayName,
|
|
49036
|
+
normalizedProfile: Z.comparisonProfile
|
|
49037
49037
|
}))
|
|
49038
49038
|
};
|
|
49039
49039
|
}, [t, h.scope]), H = Fe(() => S$(h), [h]), G = Fe(
|
|
49040
|
-
() =>
|
|
49041
|
-
[
|
|
49040
|
+
() => q.filter((X) => j.includes(X.id)),
|
|
49041
|
+
[q, j]
|
|
49042
49042
|
);
|
|
49043
|
-
|
|
49043
|
+
re(() => {
|
|
49044
49044
|
S([]);
|
|
49045
|
-
}, [h.scope]),
|
|
49046
|
-
S((X) => X.filter((
|
|
49047
|
-
}, [
|
|
49045
|
+
}, [h.scope]), re(() => {
|
|
49046
|
+
S((X) => X.filter((Z) => q.some((de) => de.id === Z)));
|
|
49047
|
+
}, [q]);
|
|
49048
49048
|
const V = (X) => {
|
|
49049
|
-
S((
|
|
49049
|
+
S((Z) => Z.includes(X) ? Z.filter((de) => de !== X) : Z.length >= aC ? Z : [...Z, X]);
|
|
49050
49050
|
}, $ = () => {
|
|
49051
49051
|
S([]);
|
|
49052
|
-
}, O = i === 0 ? 0 : (r - 1) * s + 1,
|
|
49052
|
+
}, O = i === 0 ? 0 : (r - 1) * s + 1, se = Math.min(r * s, i), K = y === "grid" ? "grid gap-6 sm:grid-cols-2 xl:grid-cols-3" : "space-y-4";
|
|
49053
49053
|
return /* @__PURE__ */ e.jsxs("div", { className: "min-h-screen bg-background", children: [
|
|
49054
49054
|
/* @__PURE__ */ e.jsx(N$, {}),
|
|
49055
49055
|
/* @__PURE__ */ e.jsx("section", { className: "py-8", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-8", children: [
|
|
@@ -49092,7 +49092,7 @@ const h$ = d$, u$ = cR, p$ = lR, dR = [
|
|
|
49092
49092
|
onItemsPerPageChange: d,
|
|
49093
49093
|
totalCount: i,
|
|
49094
49094
|
startIndex: O,
|
|
49095
|
-
endIndex:
|
|
49095
|
+
endIndex: se,
|
|
49096
49096
|
title: "All companies",
|
|
49097
49097
|
items: "companies"
|
|
49098
49098
|
}
|
|
@@ -49107,7 +49107,7 @@ const h$ = d$, u$ = cR, p$ = lR, dR = [
|
|
|
49107
49107
|
size: "sm",
|
|
49108
49108
|
onClick: () => P((X) => !X),
|
|
49109
49109
|
children: [
|
|
49110
|
-
|
|
49110
|
+
D ? "Hide comparison" : "Show comparison",
|
|
49111
49111
|
" (",
|
|
49112
49112
|
j.length,
|
|
49113
49113
|
")"
|
|
@@ -49121,7 +49121,7 @@ const h$ = d$, u$ = cR, p$ = lR, dR = [
|
|
|
49121
49121
|
] })
|
|
49122
49122
|
] })
|
|
49123
49123
|
] }),
|
|
49124
|
-
G.length > 0 &&
|
|
49124
|
+
G.length > 0 && D && /* @__PURE__ */ e.jsx("div", { className: "mb-6", children: /* @__PURE__ */ e.jsx(
|
|
49125
49125
|
j$,
|
|
49126
49126
|
{
|
|
49127
49127
|
entities: G,
|
|
@@ -49205,35 +49205,33 @@ const h$ = d$, u$ = cR, p$ = lR, dR = [
|
|
|
49205
49205
|
}
|
|
49206
49206
|
));
|
|
49207
49207
|
Vt.displayName = "Textarea";
|
|
49208
|
-
const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
49209
|
-
const [
|
|
49210
|
-
fullName: "",
|
|
49211
|
-
workEmail: "",
|
|
49212
|
-
jobTitle: "",
|
|
49208
|
+
const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r, claimPrefill: s }) => {
|
|
49209
|
+
const [i, o] = I(1), l = (y) => ({
|
|
49210
|
+
fullName: (y == null ? void 0 : y.fullName) ?? "",
|
|
49211
|
+
workEmail: (y == null ? void 0 : y.workEmail) ?? "",
|
|
49212
|
+
jobTitle: (y == null ? void 0 : y.jobTitle) ?? "",
|
|
49213
49213
|
relationship: "",
|
|
49214
49214
|
message: ""
|
|
49215
|
-
}), d = () =>
|
|
49215
|
+
}), [d, h] = I(() => l(s));
|
|
49216
|
+
re(() => {
|
|
49217
|
+
a && h(l(s));
|
|
49218
|
+
}, [a, s]);
|
|
49219
|
+
const u = () => {
|
|
49216
49220
|
r == null || r({
|
|
49217
49221
|
companyId: t.id,
|
|
49218
49222
|
companySlug: t.slug,
|
|
49219
49223
|
companyName: t.name,
|
|
49220
|
-
fullName:
|
|
49221
|
-
workEmail:
|
|
49222
|
-
jobTitle:
|
|
49223
|
-
relationship:
|
|
49224
|
-
message:
|
|
49225
|
-
}),
|
|
49226
|
-
},
|
|
49227
|
-
|
|
49228
|
-
fullName: "",
|
|
49229
|
-
workEmail: "",
|
|
49230
|
-
jobTitle: "",
|
|
49231
|
-
relationship: "",
|
|
49232
|
-
message: ""
|
|
49233
|
-
}), n(!1);
|
|
49224
|
+
fullName: d.fullName,
|
|
49225
|
+
workEmail: d.workEmail,
|
|
49226
|
+
jobTitle: d.jobTitle,
|
|
49227
|
+
relationship: d.relationship,
|
|
49228
|
+
message: d.message
|
|
49229
|
+
}), o(3);
|
|
49230
|
+
}, p = () => {
|
|
49231
|
+
o(1), h(l(s)), n(!1);
|
|
49234
49232
|
};
|
|
49235
|
-
return /* @__PURE__ */ e.jsx(At, { open: a, onOpenChange:
|
|
49236
|
-
|
|
49233
|
+
return /* @__PURE__ */ e.jsx(At, { open: a, onOpenChange: p, children: /* @__PURE__ */ e.jsxs(vt, { className: "sm:max-w-[500px]", children: [
|
|
49234
|
+
i === 1 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
49237
49235
|
/* @__PURE__ */ e.jsxs(ma, { children: [
|
|
49238
49236
|
/* @__PURE__ */ e.jsx("div", { className: "w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2", children: /* @__PURE__ */ e.jsx(mt, { className: "w-6 h-6 text-accent" }) }),
|
|
49239
49237
|
/* @__PURE__ */ e.jsxs(ot, { children: [
|
|
@@ -49274,14 +49272,14 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49274
49272
|
] })
|
|
49275
49273
|
] }) }),
|
|
49276
49274
|
/* @__PURE__ */ e.jsxs(Qt, { children: [
|
|
49277
|
-
/* @__PURE__ */ e.jsx(T, { variant: "outline", onClick:
|
|
49278
|
-
/* @__PURE__ */ e.jsxs(T, { variant: "accent", onClick: () =>
|
|
49275
|
+
/* @__PURE__ */ e.jsx(T, { variant: "outline", onClick: p, children: "Cancel" }),
|
|
49276
|
+
/* @__PURE__ */ e.jsxs(T, { variant: "accent", onClick: () => o(2), children: [
|
|
49279
49277
|
"Continue",
|
|
49280
49278
|
/* @__PURE__ */ e.jsx(wo, { className: "w-4 h-4 ml-2" })
|
|
49281
49279
|
] })
|
|
49282
49280
|
] })
|
|
49283
49281
|
] }),
|
|
49284
|
-
|
|
49282
|
+
i === 2 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
49285
49283
|
/* @__PURE__ */ e.jsxs(ma, { children: [
|
|
49286
49284
|
/* @__PURE__ */ e.jsx(ot, { children: "Verify Your Affiliation" }),
|
|
49287
49285
|
/* @__PURE__ */ e.jsxs(On, { children: [
|
|
@@ -49298,8 +49296,8 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49298
49296
|
{
|
|
49299
49297
|
id: "fullName",
|
|
49300
49298
|
placeholder: "John Smith",
|
|
49301
|
-
value:
|
|
49302
|
-
onChange: (
|
|
49299
|
+
value: d.fullName,
|
|
49300
|
+
onChange: (y) => h({ ...d, fullName: y.target.value })
|
|
49303
49301
|
}
|
|
49304
49302
|
)
|
|
49305
49303
|
] }),
|
|
@@ -49314,8 +49312,8 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49314
49312
|
type: "email",
|
|
49315
49313
|
placeholder: `you@${t.overview.website.replace(/^https?:\/\/(www\.)?/, "").split("/")[0]}`,
|
|
49316
49314
|
className: "pl-10",
|
|
49317
|
-
value:
|
|
49318
|
-
onChange: (
|
|
49315
|
+
value: d.workEmail,
|
|
49316
|
+
onChange: (y) => h({ ...d, workEmail: y.target.value })
|
|
49319
49317
|
}
|
|
49320
49318
|
)
|
|
49321
49319
|
] }),
|
|
@@ -49331,8 +49329,8 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49331
49329
|
id: "jobTitle",
|
|
49332
49330
|
placeholder: "e.g., Marketing Manager",
|
|
49333
49331
|
className: "pl-10",
|
|
49334
|
-
value:
|
|
49335
|
-
onChange: (
|
|
49332
|
+
value: d.jobTitle,
|
|
49333
|
+
onChange: (y) => h({ ...d, jobTitle: y.target.value })
|
|
49336
49334
|
}
|
|
49337
49335
|
)
|
|
49338
49336
|
] })
|
|
@@ -49342,8 +49340,8 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49342
49340
|
/* @__PURE__ */ e.jsxs(
|
|
49343
49341
|
on,
|
|
49344
49342
|
{
|
|
49345
|
-
value:
|
|
49346
|
-
onValueChange: (
|
|
49343
|
+
value: d.relationship,
|
|
49344
|
+
onValueChange: (y) => h({ ...d, relationship: y }),
|
|
49347
49345
|
children: [
|
|
49348
49346
|
/* @__PURE__ */ e.jsx(Va, { children: /* @__PURE__ */ e.jsx(cn, { placeholder: "Select your relationship" }) }),
|
|
49349
49347
|
/* @__PURE__ */ e.jsxs(Ba, { children: [
|
|
@@ -49364,33 +49362,33 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49364
49362
|
{
|
|
49365
49363
|
id: "message",
|
|
49366
49364
|
placeholder: "Any additional context to help verify your claim...",
|
|
49367
|
-
value:
|
|
49368
|
-
onChange: (
|
|
49365
|
+
value: d.message,
|
|
49366
|
+
onChange: (y) => h({ ...d, message: y.target.value }),
|
|
49369
49367
|
rows: 3
|
|
49370
49368
|
}
|
|
49371
49369
|
)
|
|
49372
49370
|
] })
|
|
49373
49371
|
] }) }),
|
|
49374
49372
|
/* @__PURE__ */ e.jsxs(Qt, { children: [
|
|
49375
|
-
/* @__PURE__ */ e.jsx(T, { variant: "outline", onClick: () =>
|
|
49373
|
+
/* @__PURE__ */ e.jsx(T, { variant: "outline", onClick: () => o(1), children: "Back" }),
|
|
49376
49374
|
/* @__PURE__ */ e.jsx(
|
|
49377
49375
|
T,
|
|
49378
49376
|
{
|
|
49379
49377
|
variant: "accent",
|
|
49380
|
-
onClick:
|
|
49381
|
-
disabled: !
|
|
49378
|
+
onClick: u,
|
|
49379
|
+
disabled: !d.fullName || !d.workEmail || !d.relationship,
|
|
49382
49380
|
children: "Submit Claim Request"
|
|
49383
49381
|
}
|
|
49384
49382
|
)
|
|
49385
49383
|
] })
|
|
49386
49384
|
] }),
|
|
49387
|
-
|
|
49385
|
+
i === 3 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
49388
49386
|
/* @__PURE__ */ e.jsxs(ma, { className: "text-center", children: [
|
|
49389
49387
|
/* @__PURE__ */ e.jsx("div", { className: "w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ e.jsx(rt, { className: "w-8 h-8 text-gaming-success" }) }),
|
|
49390
49388
|
/* @__PURE__ */ e.jsx(ot, { children: "Claim Request Submitted!" }),
|
|
49391
49389
|
/* @__PURE__ */ e.jsxs(On, { className: "text-center", children: [
|
|
49392
49390
|
"We've sent a verification email to ",
|
|
49393
|
-
/* @__PURE__ */ e.jsx("strong", { children:
|
|
49391
|
+
/* @__PURE__ */ e.jsx("strong", { children: d.workEmail }),
|
|
49394
49392
|
". Click the link in the email to verify your affiliation."
|
|
49395
49393
|
] })
|
|
49396
49394
|
] }),
|
|
@@ -49402,7 +49400,7 @@ const I$ = ({ company: t, open: a, onOpenChange: n, onClaimSubmit: r }) => {
|
|
|
49402
49400
|
/* @__PURE__ */ e.jsx("li", { children: "• You'll receive an email once your claim is approved" })
|
|
49403
49401
|
] })
|
|
49404
49402
|
] }) }),
|
|
49405
|
-
/* @__PURE__ */ e.jsx(Qt, { children: /* @__PURE__ */ e.jsx(T, { variant: "accent", onClick:
|
|
49403
|
+
/* @__PURE__ */ e.jsx(Qt, { children: /* @__PURE__ */ e.jsx(T, { variant: "accent", onClick: p, className: "w-full", children: "Done" }) })
|
|
49406
49404
|
] })
|
|
49407
49405
|
] }) });
|
|
49408
49406
|
}, A$ = ({
|
|
@@ -49455,10 +49453,10 @@ function pR({
|
|
|
49455
49453
|
role: N = "viewer",
|
|
49456
49454
|
enabledPermissions: j = [],
|
|
49457
49455
|
followLoading: S = !1,
|
|
49458
|
-
followDisabled:
|
|
49456
|
+
followDisabled: D = !1,
|
|
49459
49457
|
onClaimClick: P
|
|
49460
49458
|
}) {
|
|
49461
|
-
const _ = x,
|
|
49459
|
+
const _ = x, q = D || S, H = u ? "Unfollow Company" : "Follow Company", G = v || k, V = _ ? "Remove from Saved" : "Save Company", $ = () => h === "claimed" ? /* @__PURE__ */ e.jsxs(he, { className: "bg-accent/10 text-accent border-accent/20", children: [
|
|
49462
49460
|
/* @__PURE__ */ e.jsx(rt, { className: "w-3 h-3 mr-1" }),
|
|
49463
49461
|
"Claimed"
|
|
49464
49462
|
] }) : null, O = () => {
|
|
@@ -49468,7 +49466,7 @@ function pR({
|
|
|
49468
49466
|
companySlug: o,
|
|
49469
49467
|
action: K ? "follow" : "unfollow"
|
|
49470
49468
|
});
|
|
49471
|
-
},
|
|
49469
|
+
}, se = () => {
|
|
49472
49470
|
const K = !_;
|
|
49473
49471
|
M == null || M(i, K), L == null || L({
|
|
49474
49472
|
companyId: i,
|
|
@@ -49547,7 +49545,7 @@ function pR({
|
|
|
49547
49545
|
{
|
|
49548
49546
|
variant: "accent",
|
|
49549
49547
|
onClick: O,
|
|
49550
|
-
disabled:
|
|
49548
|
+
disabled: q,
|
|
49551
49549
|
"aria-label": `${H} ${t}`,
|
|
49552
49550
|
"aria-pressed": u,
|
|
49553
49551
|
"aria-busy": S,
|
|
@@ -49563,7 +49561,7 @@ function pR({
|
|
|
49563
49561
|
{
|
|
49564
49562
|
variant: _ ? "secondary" : "outline",
|
|
49565
49563
|
className: "border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",
|
|
49566
|
-
onClick:
|
|
49564
|
+
onClick: se,
|
|
49567
49565
|
disabled: G,
|
|
49568
49566
|
"aria-label": `${V} ${t}`,
|
|
49569
49567
|
"aria-pressed": _,
|
|
@@ -50315,10 +50313,11 @@ const tU = (t) => K$.map((a) => {
|
|
|
50315
50313
|
onSaveAction: p,
|
|
50316
50314
|
canClaim: y,
|
|
50317
50315
|
onClaimSubmit: m,
|
|
50318
|
-
|
|
50316
|
+
claimPrefill: x,
|
|
50317
|
+
onBack: f
|
|
50319
50318
|
}) => {
|
|
50320
|
-
var
|
|
50321
|
-
const [
|
|
50319
|
+
var H, G, V, $, O, se, K, X;
|
|
50320
|
+
const [v, k] = I(!1);
|
|
50322
50321
|
if (!t)
|
|
50323
50322
|
return /* @__PURE__ */ e.jsx("div", { className: "min-h-screen bg-background", children: /* @__PURE__ */ e.jsxs("div", { className: "container mx-auto px-4 py-16 text-center", children: [
|
|
50324
50323
|
/* @__PURE__ */ e.jsx(mt, { className: "w-16 h-16 text-muted-foreground mx-auto mb-4" }),
|
|
@@ -50326,7 +50325,7 @@ const tU = (t) => K$.map((a) => {
|
|
|
50326
50325
|
/* @__PURE__ */ e.jsx("p", { className: "text-muted-foreground mb-6", children: "The company you're looking for doesn't exist." }),
|
|
50327
50326
|
/* @__PURE__ */ e.jsx("a", { href: "/companies", children: /* @__PURE__ */ e.jsx(T, { variant: "accent", children: "Browse Directory" }) })
|
|
50328
50327
|
] }) });
|
|
50329
|
-
const
|
|
50328
|
+
const w = [
|
|
50330
50329
|
{ value: "overview", label: "Overview", icon: In },
|
|
50331
50330
|
{ value: "products", label: "Products", icon: rl },
|
|
50332
50331
|
{ value: "trust", label: "Trust", icon: Dn },
|
|
@@ -50341,9 +50340,9 @@ const tU = (t) => K$.map((a) => {
|
|
|
50341
50340
|
disabled: !0
|
|
50342
50341
|
// or based on plan
|
|
50343
50342
|
}
|
|
50344
|
-
],
|
|
50343
|
+
], b = ((G = (H = t.webIntelligence) == null ? void 0 : H.menus.primary_nav_details) == null ? void 0 : G.flatMap((Z) => Z.key_points)) ?? [], C = t.trustAndCompliance.licenses.length + t.trustAndCompliance.certifications.length + t.trustAndCompliance.awards.length, M = t.signalsAndInsights, L = a ?? [], N = n ?? [], j = r ?? [], S = L.length > 0 ? L.length : Array.isArray(t.jobs.openRoles) ? t.jobs.openRoles.length : t.jobs.openRoles, D = ((V = t.group) == null ? void 0 : V.name) ?? t.groupName ?? t.group_name ?? null, P = (($ = t.group) == null ? void 0 : $.slug) ?? t.groupSlug ?? t.group_slug ?? ((O = t.group) == null ? void 0 : O.id) ?? t.groupId ?? t.group_id ?? void 0, _ = tU(b), q = [
|
|
50345
50344
|
...t.productsAndServices ?? [],
|
|
50346
|
-
...
|
|
50345
|
+
..._ ?? []
|
|
50347
50346
|
];
|
|
50348
50347
|
return /* @__PURE__ */ e.jsxs("div", { className: "min-h-screen bg-background", children: [
|
|
50349
50348
|
/* @__PURE__ */ e.jsx(
|
|
@@ -50355,15 +50354,15 @@ const tU = (t) => K$.map((a) => {
|
|
|
50355
50354
|
classification: t.classification,
|
|
50356
50355
|
companyId: t.id,
|
|
50357
50356
|
companySlug: t.slug,
|
|
50358
|
-
groupSlug:
|
|
50359
|
-
groupLabel:
|
|
50357
|
+
groupSlug: P,
|
|
50358
|
+
groupLabel: D ?? "Gaming",
|
|
50360
50359
|
signalsAndInsights: t.signalsAndInsights,
|
|
50361
50360
|
claimedStatus: t.claimedStatus,
|
|
50362
50361
|
isFollowing: t.isFollowing,
|
|
50363
50362
|
isSaved: t.isSaved,
|
|
50364
|
-
openRolesCount:
|
|
50365
|
-
trustScore:
|
|
50366
|
-
onBack:
|
|
50363
|
+
openRolesCount: S,
|
|
50364
|
+
trustScore: C,
|
|
50365
|
+
onBack: f,
|
|
50367
50366
|
saveDisabled: h,
|
|
50368
50367
|
saveLoading: d,
|
|
50369
50368
|
canClaim: y,
|
|
@@ -50373,11 +50372,11 @@ const tU = (t) => K$.map((a) => {
|
|
|
50373
50372
|
onSaveAction: p,
|
|
50374
50373
|
followLoading: s,
|
|
50375
50374
|
followDisabled: i,
|
|
50376
|
-
onClaimClick: () =>
|
|
50375
|
+
onClaimClick: () => k(!0)
|
|
50377
50376
|
}
|
|
50378
50377
|
),
|
|
50379
50378
|
/* @__PURE__ */ e.jsx("section", { className: "py-6", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ e.jsxs(ln, { defaultValue: "overview", className: "space-y-6", children: [
|
|
50380
|
-
/* @__PURE__ */ e.jsx(mR, { items:
|
|
50379
|
+
/* @__PURE__ */ e.jsx(mR, { items: w }),
|
|
50381
50380
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-6", children: [
|
|
50382
50381
|
/* @__PURE__ */ e.jsxs("div", { className: "lg:col-span-2 space-y-6", children: [
|
|
50383
50382
|
/* @__PURE__ */ e.jsx(
|
|
@@ -50389,12 +50388,12 @@ const tU = (t) => K$.map((a) => {
|
|
|
50389
50388
|
formatOfficeLocation: Y$
|
|
50390
50389
|
}
|
|
50391
50390
|
),
|
|
50392
|
-
/* @__PURE__ */ e.jsx(_$, { products:
|
|
50391
|
+
/* @__PURE__ */ e.jsx(_$, { products: q }),
|
|
50393
50392
|
/* @__PURE__ */ e.jsx(
|
|
50394
50393
|
T$,
|
|
50395
50394
|
{
|
|
50396
50395
|
companyTrustData: t.trustAndCompliance,
|
|
50397
|
-
credibilityEvidence: (
|
|
50396
|
+
credibilityEvidence: (X = (K = (se = t.webIntelligence) == null ? void 0 : se.signals) == null ? void 0 : K.evidence) == null ? void 0 : X.credibility
|
|
50398
50397
|
}
|
|
50399
50398
|
),
|
|
50400
50399
|
/* @__PURE__ */ e.jsx(D$, { members: t.people.members }),
|
|
@@ -50402,22 +50401,22 @@ const tU = (t) => K$.map((a) => {
|
|
|
50402
50401
|
q$,
|
|
50403
50402
|
{
|
|
50404
50403
|
company: t,
|
|
50405
|
-
jobListings:
|
|
50406
|
-
openRolesCount:
|
|
50404
|
+
jobListings: L,
|
|
50405
|
+
openRolesCount: S
|
|
50407
50406
|
}
|
|
50408
50407
|
),
|
|
50409
50408
|
/* @__PURE__ */ e.jsx(
|
|
50410
50409
|
z$,
|
|
50411
50410
|
{
|
|
50412
50411
|
companyNews: t.newsAndMedia,
|
|
50413
|
-
newsArticles:
|
|
50412
|
+
newsArticles: N
|
|
50414
50413
|
}
|
|
50415
50414
|
),
|
|
50416
50415
|
/* @__PURE__ */ e.jsx(
|
|
50417
50416
|
F$,
|
|
50418
50417
|
{
|
|
50419
50418
|
companyEvents: t.events,
|
|
50420
|
-
conferenceEvents:
|
|
50419
|
+
conferenceEvents: j
|
|
50421
50420
|
}
|
|
50422
50421
|
),
|
|
50423
50422
|
/* @__PURE__ */ e.jsx(O$, {})
|
|
@@ -50426,7 +50425,7 @@ const tU = (t) => K$.map((a) => {
|
|
|
50426
50425
|
E$,
|
|
50427
50426
|
{
|
|
50428
50427
|
companyOverview: t.overview,
|
|
50429
|
-
intelligenceProfile:
|
|
50428
|
+
intelligenceProfile: M
|
|
50430
50429
|
}
|
|
50431
50430
|
)
|
|
50432
50431
|
] })
|
|
@@ -50435,9 +50434,10 @@ const tU = (t) => K$.map((a) => {
|
|
|
50435
50434
|
I$,
|
|
50436
50435
|
{
|
|
50437
50436
|
company: t,
|
|
50438
|
-
open:
|
|
50439
|
-
onOpenChange:
|
|
50440
|
-
onClaimSubmit: m
|
|
50437
|
+
open: v,
|
|
50438
|
+
onOpenChange: k,
|
|
50439
|
+
onClaimSubmit: m,
|
|
50440
|
+
claimPrefill: x
|
|
50441
50441
|
}
|
|
50442
50442
|
)
|
|
50443
50443
|
] });
|
|
@@ -50568,7 +50568,7 @@ const tU = (t) => K$.map((a) => {
|
|
|
50568
50568
|
] });
|
|
50569
50569
|
}, aU = (t, a) => {
|
|
50570
50570
|
const { buildUrl: n, initialData: r } = a, [s, i] = I(r ?? null), [o, l] = I(!r), d = Fe(() => n(t), [n, t]);
|
|
50571
|
-
return
|
|
50571
|
+
return re(() => {
|
|
50572
50572
|
let h = !1;
|
|
50573
50573
|
return l(!0), fetch(d).then((u) => {
|
|
50574
50574
|
if (!u.ok)
|
|
@@ -50693,19 +50693,19 @@ const tU = (t) => K$.map((a) => {
|
|
|
50693
50693
|
buildUrl: n,
|
|
50694
50694
|
initialData: t
|
|
50695
50695
|
}), C = w ?? t, M = b && !w, L = Fe(() => sU(y), [y]);
|
|
50696
|
-
|
|
50696
|
+
re(() => {
|
|
50697
50697
|
if (typeof window > "u") return;
|
|
50698
|
-
const _ = nU(y),
|
|
50699
|
-
window.history.replaceState(null, "",
|
|
50700
|
-
}, [y]),
|
|
50698
|
+
const _ = nU(y), q = _ ? `${window.location.pathname}?${_}` : window.location.pathname;
|
|
50699
|
+
window.history.replaceState(null, "", q);
|
|
50700
|
+
}, [y]), re(() => {
|
|
50701
50701
|
w != null && w.filterOptions && k({
|
|
50702
50702
|
...oU,
|
|
50703
50703
|
...w.filterOptions
|
|
50704
50704
|
});
|
|
50705
50705
|
}, [w]);
|
|
50706
50706
|
const N = (_) => {
|
|
50707
|
-
m((
|
|
50708
|
-
...
|
|
50707
|
+
m((q) => ({
|
|
50708
|
+
...q,
|
|
50709
50709
|
query: _.search,
|
|
50710
50710
|
scope: _.scope,
|
|
50711
50711
|
filters: iU(_),
|
|
@@ -50714,9 +50714,9 @@ const tU = (t) => K$.map((a) => {
|
|
|
50714
50714
|
}, j = () => {
|
|
50715
50715
|
N(uR);
|
|
50716
50716
|
}, S = (_) => {
|
|
50717
|
-
m((
|
|
50718
|
-
},
|
|
50719
|
-
m((
|
|
50717
|
+
m((q) => ({ ...q, page: _ }));
|
|
50718
|
+
}, D = (_) => {
|
|
50719
|
+
m((q) => ({ ...q, pageSize: _, page: 1 }));
|
|
50720
50720
|
}, P = () => {
|
|
50721
50721
|
f((_) => _ === "grid" ? "list" : "grid");
|
|
50722
50722
|
};
|
|
@@ -50730,7 +50730,7 @@ const tU = (t) => K$.map((a) => {
|
|
|
50730
50730
|
totalCount: C.count,
|
|
50731
50731
|
totalPages: C.totalPages,
|
|
50732
50732
|
onPageChange: S,
|
|
50733
|
-
onPageSizeChange:
|
|
50733
|
+
onPageSizeChange: D,
|
|
50734
50734
|
filters: L,
|
|
50735
50735
|
filterOptions: v,
|
|
50736
50736
|
onFiltersChange: N,
|
|
@@ -51074,8 +51074,8 @@ const dU = [
|
|
|
51074
51074
|
return (d === "all" ? s : s.filter((N) => N.status === d)).filter(C).sort((N, j) => {
|
|
51075
51075
|
switch (u) {
|
|
51076
51076
|
case "name": {
|
|
51077
|
-
const S = `${N.lastName} ${N.firstName}`.toLowerCase(),
|
|
51078
|
-
return S.localeCompare(
|
|
51077
|
+
const S = `${N.lastName} ${N.firstName}`.toLowerCase(), D = `${j.lastName} ${j.firstName}`.toLowerCase();
|
|
51078
|
+
return S.localeCompare(D);
|
|
51079
51079
|
}
|
|
51080
51080
|
case "rating": {
|
|
51081
51081
|
const S = N.rating ?? 0;
|
|
@@ -51474,7 +51474,7 @@ const OU = ({ open: t, onClose: a, onSave: n, existingEvent: r }) => {
|
|
|
51474
51474
|
description: "",
|
|
51475
51475
|
url: ""
|
|
51476
51476
|
});
|
|
51477
|
-
|
|
51477
|
+
re(() => {
|
|
51478
51478
|
i(r ? {
|
|
51479
51479
|
id: r.id,
|
|
51480
51480
|
title: r.title,
|
|
@@ -51681,7 +51681,7 @@ const OU = ({ open: t, onClose: a, onSave: n, existingEvent: r }) => {
|
|
|
51681
51681
|
requirements: "",
|
|
51682
51682
|
status: "Draft"
|
|
51683
51683
|
});
|
|
51684
|
-
|
|
51684
|
+
re(() => {
|
|
51685
51685
|
i(r ? {
|
|
51686
51686
|
id: r.id,
|
|
51687
51687
|
title: r.title,
|
|
@@ -51921,7 +51921,7 @@ const OU = ({ open: t, onClose: a, onSave: n, existingEvent: r }) => {
|
|
|
51921
51921
|
content: "",
|
|
51922
51922
|
url: ""
|
|
51923
51923
|
});
|
|
51924
|
-
|
|
51924
|
+
re(() => {
|
|
51925
51925
|
m(d ? {
|
|
51926
51926
|
id: d.id,
|
|
51927
51927
|
title: d.title,
|
|
@@ -52242,7 +52242,7 @@ const OU = ({ open: t, onClose: a, onSave: n, existingEvent: r }) => {
|
|
|
52242
52242
|
linkedIn: "",
|
|
52243
52243
|
email: ""
|
|
52244
52244
|
});
|
|
52245
|
-
|
|
52245
|
+
re(() => {
|
|
52246
52246
|
i(r ? {
|
|
52247
52247
|
id: r.id,
|
|
52248
52248
|
name: r.name,
|
|
@@ -52439,7 +52439,7 @@ const OU = ({ open: t, onClose: a, onSave: n, existingEvent: r }) => {
|
|
|
52439
52439
|
description: "",
|
|
52440
52440
|
url: ""
|
|
52441
52441
|
});
|
|
52442
|
-
|
|
52442
|
+
re(() => {
|
|
52443
52443
|
i(r ? {
|
|
52444
52444
|
id: r.id,
|
|
52445
52445
|
name: r.name,
|
|
@@ -53197,14 +53197,14 @@ const uG = ({
|
|
|
53197
53197
|
isSaving: u
|
|
53198
53198
|
}) => {
|
|
53199
53199
|
const p = a ?? t.name, y = n ?? t.slug, m = o ?? "admin", x = s ?? kG, f = g.useMemo(() => {
|
|
53200
|
-
var _,
|
|
53200
|
+
var _, q, H;
|
|
53201
53201
|
if (d)
|
|
53202
53202
|
return d;
|
|
53203
|
-
const
|
|
53203
|
+
const D = Array.isArray(t.jobs.openRoles) ? t.jobs.openRoles.length : t.jobs.openRoles, P = (((_ = t.trustAndCompliance.licenses) == null ? void 0 : _.length) ?? 0) + (((q = t.trustAndCompliance.certifications) == null ? void 0 : q.length) ?? 0) + (((H = t.trustAndCompliance.awards) == null ? void 0 : H.length) ?? 0);
|
|
53204
53204
|
return [
|
|
53205
53205
|
{
|
|
53206
53206
|
title: "Open roles",
|
|
53207
|
-
value:
|
|
53207
|
+
value: D,
|
|
53208
53208
|
description: "Live listings",
|
|
53209
53209
|
icon: Xe
|
|
53210
53210
|
},
|
|
@@ -53223,29 +53223,29 @@ const uG = ({
|
|
|
53223
53223
|
];
|
|
53224
53224
|
}, [t, d]), [v, k] = g.useState(
|
|
53225
53225
|
() => r ?? x[0] ?? "overview"
|
|
53226
|
-
), w = r ?? v, b = Object.entries(xG).filter(([
|
|
53227
|
-
() => x.filter((
|
|
53228
|
-
const P = gG[
|
|
53226
|
+
), w = r ?? v, b = Object.entries(xG).filter(([D]) => !!l[D]), C = g.useMemo(
|
|
53227
|
+
() => x.filter((D) => {
|
|
53228
|
+
const P = gG[D];
|
|
53229
53229
|
return l[P] !== !1;
|
|
53230
53230
|
}),
|
|
53231
53231
|
[l, x]
|
|
53232
53232
|
), M = C.includes(w), L = g.useCallback(
|
|
53233
|
-
(
|
|
53234
|
-
i == null || i(
|
|
53233
|
+
(D) => {
|
|
53234
|
+
i == null || i(D), r === void 0 && k(D);
|
|
53235
53235
|
},
|
|
53236
53236
|
[r, i]
|
|
53237
53237
|
), N = g.useCallback(
|
|
53238
|
-
(
|
|
53238
|
+
(D) => h == null ? void 0 : h(D),
|
|
53239
53239
|
[h]
|
|
53240
53240
|
);
|
|
53241
53241
|
g.useEffect(() => {
|
|
53242
53242
|
!M && C.length > 0 && L(C[0]);
|
|
53243
53243
|
}, [L, M, C]);
|
|
53244
53244
|
const j = g.useMemo(
|
|
53245
|
-
() => C.map((
|
|
53246
|
-
value:
|
|
53247
|
-
label: fG[
|
|
53248
|
-
icon: yG[
|
|
53245
|
+
() => C.map((D) => ({
|
|
53246
|
+
value: D,
|
|
53247
|
+
label: fG[D],
|
|
53248
|
+
icon: yG[D]
|
|
53249
53249
|
})),
|
|
53250
53250
|
[C]
|
|
53251
53251
|
), S = () => {
|
|
@@ -53354,7 +53354,7 @@ const uG = ({
|
|
|
53354
53354
|
}
|
|
53355
53355
|
),
|
|
53356
53356
|
f.length > 0 ? /* @__PURE__ */ e.jsx("section", { className: "py-6", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ e.jsx(lU, { stats: f }) }) }) : null,
|
|
53357
|
-
/* @__PURE__ */ e.jsx("section", { className: "py-6", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: C.length > 0 ? /* @__PURE__ */ e.jsxs(ln, { value: w, onValueChange: (
|
|
53357
|
+
/* @__PURE__ */ e.jsx("section", { className: "py-6", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: C.length > 0 ? /* @__PURE__ */ e.jsxs(ln, { value: w, onValueChange: (D) => L(D), children: [
|
|
53358
53358
|
/* @__PURE__ */ e.jsx(mR, { items: j }),
|
|
53359
53359
|
M ? /* @__PURE__ */ e.jsx(Ce, { value: w, className: "mt-6", children: /* @__PURE__ */ e.jsx(mG.Provider, { value: { onUpdate: N, isSaving: u, permissions: l }, children: /* @__PURE__ */ e.jsx("div", { className: "rounded-2xl border bg-background p-6 shadow-sm", children: S() }) }) }) : null
|
|
53360
53360
|
] }) : null }) })
|
|
@@ -53594,25 +53594,25 @@ function jG() {
|
|
|
53594
53594
|
}
|
|
53595
53595
|
}, x = (M) => {
|
|
53596
53596
|
const { src: L, id: N, onLoad: j = () => {
|
|
53597
|
-
}, onReady: S = null, dangerouslySetInnerHTML:
|
|
53597
|
+
}, onReady: S = null, dangerouslySetInnerHTML: D, children: P = "", strategy: _ = "afterInteractive", onError: q, stylesheets: H } = M, G = N || L;
|
|
53598
53598
|
if (G && y.has(G))
|
|
53599
53599
|
return;
|
|
53600
53600
|
if (p.has(L)) {
|
|
53601
|
-
y.add(G), p.get(L).then(j,
|
|
53601
|
+
y.add(G), p.get(L).then(j, q);
|
|
53602
53602
|
return;
|
|
53603
53603
|
}
|
|
53604
53604
|
const V = () => {
|
|
53605
53605
|
S && S(), y.add(G);
|
|
53606
|
-
}, $ = document.createElement("script"), O = new Promise((
|
|
53606
|
+
}, $ = document.createElement("script"), O = new Promise((se, K) => {
|
|
53607
53607
|
$.addEventListener("load", function(X) {
|
|
53608
|
-
|
|
53608
|
+
se(), j && j.call(this, X), V();
|
|
53609
53609
|
}), $.addEventListener("error", function(X) {
|
|
53610
53610
|
K(X);
|
|
53611
53611
|
});
|
|
53612
|
-
}).catch(function(
|
|
53613
|
-
|
|
53612
|
+
}).catch(function(se) {
|
|
53613
|
+
q && q(se);
|
|
53614
53614
|
});
|
|
53615
|
-
|
|
53615
|
+
D ? ($.innerHTML = D.__html || "", V()) : P ? ($.textContent = typeof P == "string" ? P : Array.isArray(P) ? P.join("") : "", V()) : L && ($.src = L, p.set(L, O)), (0, h.setAttributesFromProps)($, M), _ === "worker" && $.setAttribute("type", "text/partytown"), $.setAttribute("data-nscript", _), H && m(H), document.body.appendChild($);
|
|
53616
53616
|
};
|
|
53617
53617
|
function f(M) {
|
|
53618
53618
|
const { strategy: L = "afterInteractive" } = M;
|
|
@@ -53639,10 +53639,10 @@ function jG() {
|
|
|
53639
53639
|
}
|
|
53640
53640
|
function b(M) {
|
|
53641
53641
|
const { id: L, src: N = "", onLoad: j = () => {
|
|
53642
|
-
}, onReady: S = null, strategy:
|
|
53642
|
+
}, onReady: S = null, strategy: D = "afterInteractive", onError: P, stylesheets: _, ...q } = M, { updateScripts: H, scripts: G, getIsSsr: V, appDir: $, nonce: O } = (0, l.useContext)(d.HeadManagerContext), se = (0, l.useRef)(!1);
|
|
53643
53643
|
(0, l.useEffect)(() => {
|
|
53644
53644
|
const X = L || N;
|
|
53645
|
-
|
|
53645
|
+
se.current || (S && X && y.has(X) && S(), se.current = !0);
|
|
53646
53646
|
}, [
|
|
53647
53647
|
S,
|
|
53648
53648
|
L,
|
|
@@ -53650,66 +53650,66 @@ function jG() {
|
|
|
53650
53650
|
]);
|
|
53651
53651
|
const K = (0, l.useRef)(!1);
|
|
53652
53652
|
if ((0, l.useEffect)(() => {
|
|
53653
|
-
K.current || (
|
|
53653
|
+
K.current || (D === "afterInteractive" ? x(M) : D === "lazyOnload" && v(M), K.current = !0);
|
|
53654
53654
|
}, [
|
|
53655
53655
|
M,
|
|
53656
|
-
|
|
53657
|
-
]), (
|
|
53656
|
+
D
|
|
53657
|
+
]), (D === "beforeInteractive" || D === "worker") && (H ? (G[D] = (G[D] || []).concat([
|
|
53658
53658
|
{
|
|
53659
53659
|
id: L,
|
|
53660
53660
|
src: N,
|
|
53661
53661
|
onLoad: j,
|
|
53662
53662
|
onReady: S,
|
|
53663
53663
|
onError: P,
|
|
53664
|
-
...
|
|
53664
|
+
...q
|
|
53665
53665
|
}
|
|
53666
53666
|
]), H(G)) : V && V() ? y.add(L || N) : V && !V() && x(M)), $) {
|
|
53667
53667
|
if (_ && _.forEach((X) => {
|
|
53668
53668
|
o.default.preinit(X, {
|
|
53669
53669
|
as: "style"
|
|
53670
53670
|
});
|
|
53671
|
-
}),
|
|
53672
|
-
return N ? (o.default.preload(N,
|
|
53671
|
+
}), D === "beforeInteractive")
|
|
53672
|
+
return N ? (o.default.preload(N, q.integrity ? {
|
|
53673
53673
|
as: "script",
|
|
53674
|
-
integrity:
|
|
53674
|
+
integrity: q.integrity,
|
|
53675
53675
|
nonce: O,
|
|
53676
|
-
crossOrigin:
|
|
53676
|
+
crossOrigin: q.crossOrigin
|
|
53677
53677
|
} : {
|
|
53678
53678
|
as: "script",
|
|
53679
53679
|
nonce: O,
|
|
53680
|
-
crossOrigin:
|
|
53680
|
+
crossOrigin: q.crossOrigin
|
|
53681
53681
|
}), /* @__PURE__ */ (0, i.jsx)("script", {
|
|
53682
53682
|
nonce: O,
|
|
53683
53683
|
dangerouslySetInnerHTML: {
|
|
53684
53684
|
__html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
|
|
53685
53685
|
N,
|
|
53686
53686
|
{
|
|
53687
|
-
...
|
|
53687
|
+
...q,
|
|
53688
53688
|
id: L
|
|
53689
53689
|
}
|
|
53690
53690
|
]) + ")"
|
|
53691
53691
|
}
|
|
53692
|
-
})) : (
|
|
53692
|
+
})) : (q.dangerouslySetInnerHTML && (q.children = q.dangerouslySetInnerHTML.__html, delete q.dangerouslySetInnerHTML), /* @__PURE__ */ (0, i.jsx)("script", {
|
|
53693
53693
|
nonce: O,
|
|
53694
53694
|
dangerouslySetInnerHTML: {
|
|
53695
53695
|
__html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
|
|
53696
53696
|
0,
|
|
53697
53697
|
{
|
|
53698
|
-
...
|
|
53698
|
+
...q,
|
|
53699
53699
|
id: L
|
|
53700
53700
|
}
|
|
53701
53701
|
]) + ")"
|
|
53702
53702
|
}
|
|
53703
53703
|
}));
|
|
53704
|
-
|
|
53704
|
+
D === "afterInteractive" && N && o.default.preload(N, q.integrity ? {
|
|
53705
53705
|
as: "script",
|
|
53706
|
-
integrity:
|
|
53706
|
+
integrity: q.integrity,
|
|
53707
53707
|
nonce: O,
|
|
53708
|
-
crossOrigin:
|
|
53708
|
+
crossOrigin: q.crossOrigin
|
|
53709
53709
|
} : {
|
|
53710
53710
|
as: "script",
|
|
53711
53711
|
nonce: O,
|
|
53712
|
-
crossOrigin:
|
|
53712
|
+
crossOrigin: q.crossOrigin
|
|
53713
53713
|
});
|
|
53714
53714
|
}
|
|
53715
53715
|
return null;
|
|
@@ -55004,7 +55004,7 @@ function fW({ open: t, onClose: a, onAdded: n, existingExperience: r, onUpdated:
|
|
|
55004
55004
|
summary: "",
|
|
55005
55005
|
tags: ""
|
|
55006
55006
|
});
|
|
55007
|
-
|
|
55007
|
+
re(() => {
|
|
55008
55008
|
if (r) {
|
|
55009
55009
|
const [m, x] = r.period.split(" - ");
|
|
55010
55010
|
d({
|
|
@@ -55171,7 +55171,7 @@ function qL({
|
|
|
55171
55171
|
placeholder: s
|
|
55172
55172
|
}) {
|
|
55173
55173
|
const [i, o] = I("");
|
|
55174
|
-
|
|
55174
|
+
re(() => {
|
|
55175
55175
|
t || o("");
|
|
55176
55176
|
}, [t]);
|
|
55177
55177
|
const l = () => {
|
|
@@ -55437,27 +55437,27 @@ function bW({
|
|
|
55437
55437
|
l && (s((P) => {
|
|
55438
55438
|
const _ = {
|
|
55439
55439
|
...P,
|
|
55440
|
-
workExperience: P.workExperience.filter((
|
|
55440
|
+
workExperience: P.workExperience.filter((q) => q.id !== l)
|
|
55441
55441
|
};
|
|
55442
55442
|
return a({ type: "profile", payload: _ }), _;
|
|
55443
55443
|
}), d(null));
|
|
55444
|
-
}, j = (P, _,
|
|
55444
|
+
}, j = (P, _, q) => {
|
|
55445
55445
|
s((H) => ({
|
|
55446
55446
|
...H,
|
|
55447
55447
|
[P]: {
|
|
55448
55448
|
...H[P],
|
|
55449
|
-
[_]:
|
|
55449
|
+
[_]: q
|
|
55450
55450
|
}
|
|
55451
55451
|
}));
|
|
55452
|
-
}, S = (P, _,
|
|
55452
|
+
}, S = (P, _, q) => {
|
|
55453
55453
|
s((H) => ({
|
|
55454
55454
|
...H,
|
|
55455
55455
|
[P]: {
|
|
55456
55456
|
...H[P],
|
|
55457
|
-
[_]:
|
|
55457
|
+
[_]: q
|
|
55458
55458
|
}
|
|
55459
55459
|
}));
|
|
55460
|
-
},
|
|
55460
|
+
}, D = () => {
|
|
55461
55461
|
a({ type: "profile", payload: r });
|
|
55462
55462
|
};
|
|
55463
55463
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-6", children: [
|
|
@@ -55466,7 +55466,7 @@ function bW({
|
|
|
55466
55466
|
/* @__PURE__ */ e.jsx("h2", { className: "text-3xl font-bold", children: "Your Profile" }),
|
|
55467
55467
|
/* @__PURE__ */ e.jsx("p", { className: "text-muted-foreground mt-1", children: "Manage your professional information" })
|
|
55468
55468
|
] }),
|
|
55469
|
-
/* @__PURE__ */ e.jsx(T, { onClick:
|
|
55469
|
+
/* @__PURE__ */ e.jsx(T, { onClick: D, disabled: n, children: n ? "Saving..." : "Save Changes" })
|
|
55470
55470
|
] }),
|
|
55471
55471
|
/* @__PURE__ */ e.jsxs(ln, { defaultValue: "personal", className: "w-full", children: [
|
|
55472
55472
|
/* @__PURE__ */ e.jsxs(dn, { className: "grid w-full grid-cols-3 lg:grid-cols-7", children: [
|
|
@@ -55606,7 +55606,7 @@ function bW({
|
|
|
55606
55606
|
size: "sm",
|
|
55607
55607
|
onClick: () => {
|
|
55608
55608
|
const _ = r.workExperience.find(
|
|
55609
|
-
(
|
|
55609
|
+
(q) => q.id === P.id
|
|
55610
55610
|
);
|
|
55611
55611
|
u(_ || null), o(!0);
|
|
55612
55612
|
},
|
|
@@ -55661,7 +55661,7 @@ function bW({
|
|
|
55661
55661
|
s((_) => ({
|
|
55662
55662
|
..._,
|
|
55663
55663
|
workExperience: _.workExperience.map(
|
|
55664
|
-
(
|
|
55664
|
+
(q) => q.id === P.id ? P : q
|
|
55665
55665
|
)
|
|
55666
55666
|
}));
|
|
55667
55667
|
}
|
|
@@ -55730,7 +55730,7 @@ function bW({
|
|
|
55730
55730
|
jobSearchDetails: {
|
|
55731
55731
|
..._.jobSearchDetails,
|
|
55732
55732
|
locations: _.jobSearchDetails.locations.filter(
|
|
55733
|
-
(
|
|
55733
|
+
(q) => q !== P
|
|
55734
55734
|
)
|
|
55735
55735
|
}
|
|
55736
55736
|
})),
|
|
@@ -55765,12 +55765,12 @@ function bW({
|
|
|
55765
55765
|
"div",
|
|
55766
55766
|
{
|
|
55767
55767
|
className: "flex items-center space-x-2",
|
|
55768
|
-
onClick: () => s((
|
|
55769
|
-
const G =
|
|
55768
|
+
onClick: () => s((q) => {
|
|
55769
|
+
const G = q.jobSearchDetails.employmentType.includes(P) ? q.jobSearchDetails.employmentType.filter((V) => V !== P) : [...q.jobSearchDetails.employmentType, P];
|
|
55770
55770
|
return {
|
|
55771
|
-
...
|
|
55771
|
+
...q,
|
|
55772
55772
|
jobSearchDetails: {
|
|
55773
|
-
...
|
|
55773
|
+
...q.jobSearchDetails,
|
|
55774
55774
|
employmentType: G
|
|
55775
55775
|
}
|
|
55776
55776
|
};
|
|
@@ -55837,7 +55837,7 @@ function bW({
|
|
|
55837
55837
|
className: "ml-1 text-xs text-muted-foreground hover:text-destructive",
|
|
55838
55838
|
onClick: () => s((_) => ({
|
|
55839
55839
|
..._,
|
|
55840
|
-
skills: _.skills.filter((
|
|
55840
|
+
skills: _.skills.filter((q) => q !== P)
|
|
55841
55841
|
})),
|
|
55842
55842
|
children: "✕"
|
|
55843
55843
|
}
|
|
@@ -55887,9 +55887,9 @@ function bW({
|
|
|
55887
55887
|
variant: "ghost",
|
|
55888
55888
|
size: "sm",
|
|
55889
55889
|
className: "ml-1 text-xs text-muted-foreground hover:text-destructive",
|
|
55890
|
-
onClick: () => s((
|
|
55891
|
-
...
|
|
55892
|
-
languages:
|
|
55890
|
+
onClick: () => s((q) => ({
|
|
55891
|
+
...q,
|
|
55892
|
+
languages: q.languages.filter(
|
|
55893
55893
|
(H, G) => G !== _
|
|
55894
55894
|
)
|
|
55895
55895
|
})),
|
|
@@ -55993,7 +55993,7 @@ function bW({
|
|
|
55993
55993
|
..._,
|
|
55994
55994
|
preferences: {
|
|
55995
55995
|
..._.preferences,
|
|
55996
|
-
topics: _.preferences.topics.filter((
|
|
55996
|
+
topics: _.preferences.topics.filter((q) => q !== P)
|
|
55997
55997
|
}
|
|
55998
55998
|
})),
|
|
55999
55999
|
children: "✕"
|
|
@@ -56058,7 +56058,7 @@ function jW({
|
|
|
56058
56058
|
previewErrorMessage: r
|
|
56059
56059
|
}) {
|
|
56060
56060
|
const [s, i] = I(!1), [o, l] = I(null), [d, h] = I(null), [u, p] = I(null), [y, m] = I(!1);
|
|
56061
|
-
|
|
56061
|
+
re(() => () => {
|
|
56062
56062
|
d && URL.revokeObjectURL(d);
|
|
56063
56063
|
}, [d]);
|
|
56064
56064
|
const x = Fe(() => o ? {
|
|
@@ -56181,7 +56181,7 @@ function CW({
|
|
|
56181
56181
|
recommended: n || [],
|
|
56182
56182
|
applications: a || []
|
|
56183
56183
|
});
|
|
56184
|
-
|
|
56184
|
+
re(() => {
|
|
56185
56185
|
m({
|
|
56186
56186
|
saved: t || [],
|
|
56187
56187
|
recommended: n || [],
|
|
@@ -56502,7 +56502,7 @@ function qW({
|
|
|
56502
56502
|
recommended: n || [],
|
|
56503
56503
|
saved: a || []
|
|
56504
56504
|
});
|
|
56505
|
-
|
|
56505
|
+
re(() => {
|
|
56506
56506
|
p({
|
|
56507
56507
|
enrolled: t || [],
|
|
56508
56508
|
recommended: n || [],
|
|
@@ -56713,7 +56713,7 @@ function zW({
|
|
|
56713
56713
|
recommended: t || [],
|
|
56714
56714
|
saved: a || []
|
|
56715
56715
|
});
|
|
56716
|
-
|
|
56716
|
+
re(() => {
|
|
56717
56717
|
p({
|
|
56718
56718
|
recommended: t || [],
|
|
56719
56719
|
saved: a || []
|