@igamingcareer/igaming-components 1.0.51 → 1.0.52
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 +83 -83
- package/dist/index.mjs +729 -628
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -42,11 +42,11 @@ var nc = {};
|
|
|
42
42
|
var bL;
|
|
43
43
|
function K_() {
|
|
44
44
|
return bL || (bL = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var t = Je, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"),
|
|
46
|
-
function
|
|
45
|
+
var t = Je, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, f = "@@iterator";
|
|
46
|
+
function k(L) {
|
|
47
47
|
if (L === null || typeof L != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var q =
|
|
49
|
+
var q = g && L[g] || L[f];
|
|
50
50
|
return typeof q == "function" ? q : null;
|
|
51
51
|
}
|
|
52
52
|
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -534,7 +534,7 @@ Check the top-level render call using <` + W + ">.");
|
|
|
534
534
|
else if (sr(L))
|
|
535
535
|
L._store && (L._store.validated = !0);
|
|
536
536
|
else if (L) {
|
|
537
|
-
var Me =
|
|
537
|
+
var Me = k(L);
|
|
538
538
|
if (typeof Me == "function" && Me !== L.entries)
|
|
539
539
|
for (var je = Me.call(L), fe; !(fe = je.next()).done; )
|
|
540
540
|
sr(fe.value) && ge(fe.value, q);
|
|
@@ -730,15 +730,15 @@ const jL = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, LL =
|
|
|
730
730
|
return y === void 0 || (h[p] = y), h;
|
|
731
731
|
}, {}), d = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((h, u) => {
|
|
732
732
|
let { class: p, className: y, ...m } = u;
|
|
733
|
-
return Object.entries(m).every((
|
|
734
|
-
let [f,
|
|
735
|
-
return Array.isArray(
|
|
733
|
+
return Object.entries(m).every((g) => {
|
|
734
|
+
let [f, k] = g;
|
|
735
|
+
return Array.isArray(k) ? k.includes({
|
|
736
736
|
...i,
|
|
737
737
|
...l
|
|
738
738
|
}[f]) : {
|
|
739
739
|
...i,
|
|
740
740
|
...l
|
|
741
|
-
}[f] ===
|
|
741
|
+
}[f] === k;
|
|
742
742
|
}) ? [
|
|
743
743
|
...h,
|
|
744
744
|
p,
|
|
@@ -869,25 +869,25 @@ const dj = "-", cT = (t) => {
|
|
|
869
869
|
} = t, n = e.length === 1, o = e[0], i = e.length, c = (l) => {
|
|
870
870
|
const d = [];
|
|
871
871
|
let h = 0, u = 0, p;
|
|
872
|
-
for (let
|
|
873
|
-
let v = l[
|
|
872
|
+
for (let k = 0; k < l.length; k++) {
|
|
873
|
+
let v = l[k];
|
|
874
874
|
if (h === 0) {
|
|
875
|
-
if (v === o && (n || l.slice(
|
|
876
|
-
d.push(l.slice(u,
|
|
875
|
+
if (v === o && (n || l.slice(k, k + i) === e)) {
|
|
876
|
+
d.push(l.slice(u, k)), u = k + i;
|
|
877
877
|
continue;
|
|
878
878
|
}
|
|
879
879
|
if (v === "/") {
|
|
880
|
-
p =
|
|
880
|
+
p = k;
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
v === "[" ? h++ : v === "]" && h--;
|
|
885
885
|
}
|
|
886
|
-
const y = d.length === 0 ? l : l.substring(u), m = y.startsWith(JS),
|
|
886
|
+
const y = d.length === 0 ? l : l.substring(u), m = y.startsWith(JS), g = m ? y.substring(1) : y, f = p && p > u ? p - u : void 0;
|
|
887
887
|
return {
|
|
888
888
|
modifiers: d,
|
|
889
889
|
hasImportantModifier: m,
|
|
890
|
-
baseClassName:
|
|
890
|
+
baseClassName: g,
|
|
891
891
|
maybePostfixModifierPosition: f
|
|
892
892
|
};
|
|
893
893
|
};
|
|
@@ -921,9 +921,9 @@ const dj = "-", cT = (t) => {
|
|
|
921
921
|
baseClassName: y,
|
|
922
922
|
maybePostfixModifierPosition: m
|
|
923
923
|
} = r(h);
|
|
924
|
-
let
|
|
924
|
+
let g = !!m, f = n(g ? y.substring(0, m) : y);
|
|
925
925
|
if (!f) {
|
|
926
|
-
if (!
|
|
926
|
+
if (!g) {
|
|
927
927
|
l = h + (l.length > 0 ? " " + l : l);
|
|
928
928
|
continue;
|
|
929
929
|
}
|
|
@@ -931,13 +931,13 @@ const dj = "-", cT = (t) => {
|
|
|
931
931
|
l = h + (l.length > 0 ? " " + l : l);
|
|
932
932
|
continue;
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
g = !1;
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const k = mT(u).join(":"), v = p ? k + JS : k, M = v + f;
|
|
937
937
|
if (i.includes(M))
|
|
938
938
|
continue;
|
|
939
939
|
i.push(M);
|
|
940
|
-
const w = o(f,
|
|
940
|
+
const w = o(f, g);
|
|
941
941
|
for (let C = 0; C < w.length; ++C) {
|
|
942
942
|
const b = w[C];
|
|
943
943
|
i.push(v + b);
|
|
@@ -989,7 +989,7 @@ const _e = (t) => {
|
|
|
989
989
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
990
990
|
CT.test(t) && !jT.test(t)
|
|
991
991
|
), QS = () => !1, DT = (t) => LT.test(t), zT = (t) => ST.test(t), FT = () => {
|
|
992
|
-
const t = _e("colors"), e = _e("spacing"), r = _e("blur"), n = _e("brightness"), o = _e("borderColor"), i = _e("borderRadius"), c = _e("borderSpacing"), l = _e("borderWidth"), d = _e("contrast"), h = _e("grayscale"), u = _e("hueRotate"), p = _e("invert"), y = _e("gap"), m = _e("gradientColorStops"),
|
|
992
|
+
const t = _e("colors"), e = _e("spacing"), r = _e("blur"), n = _e("brightness"), o = _e("borderColor"), i = _e("borderRadius"), c = _e("borderSpacing"), l = _e("borderWidth"), d = _e("contrast"), h = _e("grayscale"), u = _e("hueRotate"), p = _e("invert"), y = _e("gap"), m = _e("gradientColorStops"), g = _e("gradientColorStopPositions"), f = _e("inset"), k = _e("margin"), v = _e("opacity"), M = _e("padding"), w = _e("saturate"), C = _e("scale"), b = _e("sepia"), I = _e("skew"), j = _e("space"), N = _e("translate"), S = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", le, e], P = () => [le, e], T = () => ["", xa, Da], F = () => ["auto", ys, le], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", le], ie = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ee = () => [ys, le];
|
|
993
993
|
return {
|
|
994
994
|
cacheSize: 500,
|
|
995
995
|
separator: ":",
|
|
@@ -1520,63 +1520,63 @@ const _e = (t) => {
|
|
|
1520
1520
|
* @see https://tailwindcss.com/docs/margin
|
|
1521
1521
|
*/
|
|
1522
1522
|
m: [{
|
|
1523
|
-
m: [
|
|
1523
|
+
m: [k]
|
|
1524
1524
|
}],
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Margin X
|
|
1527
1527
|
* @see https://tailwindcss.com/docs/margin
|
|
1528
1528
|
*/
|
|
1529
1529
|
mx: [{
|
|
1530
|
-
mx: [
|
|
1530
|
+
mx: [k]
|
|
1531
1531
|
}],
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Margin Y
|
|
1534
1534
|
* @see https://tailwindcss.com/docs/margin
|
|
1535
1535
|
*/
|
|
1536
1536
|
my: [{
|
|
1537
|
-
my: [
|
|
1537
|
+
my: [k]
|
|
1538
1538
|
}],
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Margin Start
|
|
1541
1541
|
* @see https://tailwindcss.com/docs/margin
|
|
1542
1542
|
*/
|
|
1543
1543
|
ms: [{
|
|
1544
|
-
ms: [
|
|
1544
|
+
ms: [k]
|
|
1545
1545
|
}],
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Margin End
|
|
1548
1548
|
* @see https://tailwindcss.com/docs/margin
|
|
1549
1549
|
*/
|
|
1550
1550
|
me: [{
|
|
1551
|
-
me: [
|
|
1551
|
+
me: [k]
|
|
1552
1552
|
}],
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Margin Top
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/margin
|
|
1556
1556
|
*/
|
|
1557
1557
|
mt: [{
|
|
1558
|
-
mt: [
|
|
1558
|
+
mt: [k]
|
|
1559
1559
|
}],
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Margin Right
|
|
1562
1562
|
* @see https://tailwindcss.com/docs/margin
|
|
1563
1563
|
*/
|
|
1564
1564
|
mr: [{
|
|
1565
|
-
mr: [
|
|
1565
|
+
mr: [k]
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Margin Bottom
|
|
1569
1569
|
* @see https://tailwindcss.com/docs/margin
|
|
1570
1570
|
*/
|
|
1571
1571
|
mb: [{
|
|
1572
|
-
mb: [
|
|
1572
|
+
mb: [k]
|
|
1573
1573
|
}],
|
|
1574
1574
|
/**
|
|
1575
1575
|
* Margin Left
|
|
1576
1576
|
* @see https://tailwindcss.com/docs/margin
|
|
1577
1577
|
*/
|
|
1578
1578
|
ml: [{
|
|
1579
|
-
ml: [
|
|
1579
|
+
ml: [k]
|
|
1580
1580
|
}],
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Space Between X
|
|
@@ -1960,21 +1960,21 @@ const _e = (t) => {
|
|
|
1960
1960
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1961
1961
|
*/
|
|
1962
1962
|
"gradient-from-pos": [{
|
|
1963
|
-
from: [
|
|
1963
|
+
from: [g]
|
|
1964
1964
|
}],
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Gradient Color Stops Via Position
|
|
1967
1967
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1968
1968
|
*/
|
|
1969
1969
|
"gradient-via-pos": [{
|
|
1970
|
-
via: [
|
|
1970
|
+
via: [g]
|
|
1971
1971
|
}],
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Gradient Color Stops To Position
|
|
1974
1974
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1975
1975
|
*/
|
|
1976
1976
|
"gradient-to-pos": [{
|
|
1977
|
-
to: [
|
|
1977
|
+
to: [g]
|
|
1978
1978
|
}],
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Gradient Color Stops From
|
|
@@ -3090,14 +3090,14 @@ function ET(t, e = []) {
|
|
|
3090
3090
|
r = [...r, c];
|
|
3091
3091
|
const h = (p) => {
|
|
3092
3092
|
var v;
|
|
3093
|
-
const { scope: y, children: m, ...
|
|
3094
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
3093
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
3094
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
3095
3095
|
};
|
|
3096
3096
|
h.displayName = i + "Provider";
|
|
3097
3097
|
function u(p, y) {
|
|
3098
3098
|
var f;
|
|
3099
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
3100
|
-
if (
|
|
3099
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
3100
|
+
if (g) return g;
|
|
3101
3101
|
if (c !== void 0) return c;
|
|
3102
3102
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
3103
3103
|
}
|
|
@@ -3139,12 +3139,12 @@ function VT(t, e = []) {
|
|
|
3139
3139
|
const l = x.createContext(c), d = r.length;
|
|
3140
3140
|
r = [...r, c];
|
|
3141
3141
|
function h(p) {
|
|
3142
|
-
const { scope: y, children: m, ...
|
|
3143
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
3142
|
+
const { scope: y, children: m, ...g } = p, f = (y == null ? void 0 : y[t][d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
3143
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
3144
3144
|
}
|
|
3145
3145
|
function u(p, y) {
|
|
3146
|
-
const m = (y == null ? void 0 : y[t][d]) || l,
|
|
3147
|
-
if (
|
|
3146
|
+
const m = (y == null ? void 0 : y[t][d]) || l, g = x.useContext(m);
|
|
3147
|
+
if (g) return g;
|
|
3148
3148
|
if (c !== void 0) return c;
|
|
3149
3149
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
3150
3150
|
}
|
|
@@ -3235,34 +3235,34 @@ function XT(t) {
|
|
|
3235
3235
|
e,
|
|
3236
3236
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3237
3237
|
), c = (m) => {
|
|
3238
|
-
const { scope:
|
|
3239
|
-
return /* @__PURE__ */ a.jsx(o, { scope:
|
|
3238
|
+
const { scope: g, children: f } = m, k = Je.useRef(null), v = Je.useRef(/* @__PURE__ */ new Map()).current;
|
|
3239
|
+
return /* @__PURE__ */ a.jsx(o, { scope: g, itemMap: v, collectionRef: k, children: f });
|
|
3240
3240
|
};
|
|
3241
3241
|
c.displayName = e;
|
|
3242
3242
|
const l = t + "CollectionSlot", d = Je.forwardRef(
|
|
3243
|
-
(m,
|
|
3244
|
-
const { scope: f, children:
|
|
3245
|
-
return /* @__PURE__ */ a.jsx(_C, { ref: M, children:
|
|
3243
|
+
(m, g) => {
|
|
3244
|
+
const { scope: f, children: k } = m, v = i(l, f), M = hb(g, v.collectionRef);
|
|
3245
|
+
return /* @__PURE__ */ a.jsx(_C, { ref: M, children: k });
|
|
3246
3246
|
}
|
|
3247
3247
|
);
|
|
3248
3248
|
d.displayName = l;
|
|
3249
3249
|
const h = t + "CollectionItemSlot", u = "data-radix-collection-item", p = Je.forwardRef(
|
|
3250
|
-
(m,
|
|
3251
|
-
const { scope: f, children:
|
|
3252
|
-
return Je.useEffect(() => (C.itemMap.set(M, { ref: M, ...v }), () => void C.itemMap.delete(M))), /* @__PURE__ */ a.jsx(_C, { [u]: "", ref: w, children:
|
|
3250
|
+
(m, g) => {
|
|
3251
|
+
const { scope: f, children: k, ...v } = m, M = Je.useRef(null), w = hb(g, M), C = i(h, f);
|
|
3252
|
+
return Je.useEffect(() => (C.itemMap.set(M, { ref: M, ...v }), () => void C.itemMap.delete(M))), /* @__PURE__ */ a.jsx(_C, { [u]: "", ref: w, children: k });
|
|
3253
3253
|
}
|
|
3254
3254
|
);
|
|
3255
3255
|
p.displayName = h;
|
|
3256
3256
|
function y(m) {
|
|
3257
|
-
const
|
|
3257
|
+
const g = i(t + "CollectionConsumer", m);
|
|
3258
3258
|
return Je.useCallback(() => {
|
|
3259
|
-
const
|
|
3260
|
-
if (!
|
|
3261
|
-
const v = Array.from(
|
|
3262
|
-
return Array.from(
|
|
3259
|
+
const k = g.collectionRef.current;
|
|
3260
|
+
if (!k) return [];
|
|
3261
|
+
const v = Array.from(k.querySelectorAll(`[${u}]`));
|
|
3262
|
+
return Array.from(g.itemMap.values()).sort(
|
|
3263
3263
|
(C, b) => v.indexOf(C.ref.current) - v.indexOf(b.ref.current)
|
|
3264
3264
|
);
|
|
3265
|
-
}, [
|
|
3265
|
+
}, [g.collectionRef, g.itemMap]);
|
|
3266
3266
|
}
|
|
3267
3267
|
return [
|
|
3268
3268
|
{ Provider: c, Slot: d, ItemSlot: p },
|
|
@@ -3276,12 +3276,12 @@ function JT(t, e = []) {
|
|
|
3276
3276
|
const l = x.createContext(c), d = r.length;
|
|
3277
3277
|
r = [...r, c];
|
|
3278
3278
|
function h(p) {
|
|
3279
|
-
const { scope: y, children: m, ...
|
|
3280
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
3279
|
+
const { scope: y, children: m, ...g } = p, f = (y == null ? void 0 : y[t][d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
3280
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
3281
3281
|
}
|
|
3282
3282
|
function u(p, y) {
|
|
3283
|
-
const m = (y == null ? void 0 : y[t][d]) || l,
|
|
3284
|
-
if (
|
|
3283
|
+
const m = (y == null ? void 0 : y[t][d]) || l, g = x.useContext(m);
|
|
3284
|
+
if (g) return g;
|
|
3285
3285
|
if (c !== void 0) return c;
|
|
3286
3286
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
3287
3287
|
}
|
|
@@ -3451,7 +3451,7 @@ var uR = x.forwardRef((t, e) => {
|
|
|
3451
3451
|
onEntryFocus: h,
|
|
3452
3452
|
preventScrollOnEntryFocus: u = !1,
|
|
3453
3453
|
...p
|
|
3454
|
-
} = t, y = x.useRef(null), m = hb(e, y),
|
|
3454
|
+
} = t, y = x.useRef(null), m = hb(e, y), g = rI(i), [f = null, k] = aI({
|
|
3455
3455
|
prop: c,
|
|
3456
3456
|
defaultProp: l,
|
|
3457
3457
|
onChange: d
|
|
@@ -3465,12 +3465,12 @@ var uR = x.forwardRef((t, e) => {
|
|
|
3465
3465
|
{
|
|
3466
3466
|
scope: r,
|
|
3467
3467
|
orientation: n,
|
|
3468
|
-
dir:
|
|
3468
|
+
dir: g,
|
|
3469
3469
|
loop: o,
|
|
3470
3470
|
currentTabStopId: f,
|
|
3471
3471
|
onItemFocus: x.useCallback(
|
|
3472
|
-
(N) =>
|
|
3473
|
-
[
|
|
3472
|
+
(N) => k(N),
|
|
3473
|
+
[k]
|
|
3474
3474
|
),
|
|
3475
3475
|
onItemShiftTab: x.useCallback(() => M(!0), []),
|
|
3476
3476
|
onFocusableItemAdd: x.useCallback(
|
|
@@ -3536,25 +3536,25 @@ var uR = x.forwardRef((t, e) => {
|
|
|
3536
3536
|
"data-orientation": h.orientation,
|
|
3537
3537
|
...c,
|
|
3538
3538
|
ref: e,
|
|
3539
|
-
onMouseDown: Ca(t.onMouseDown, (
|
|
3540
|
-
n ? h.onItemFocus(d) :
|
|
3539
|
+
onMouseDown: Ca(t.onMouseDown, (g) => {
|
|
3540
|
+
n ? h.onItemFocus(d) : g.preventDefault();
|
|
3541
3541
|
}),
|
|
3542
3542
|
onFocus: Ca(t.onFocus, () => h.onItemFocus(d)),
|
|
3543
|
-
onKeyDown: Ca(t.onKeyDown, (
|
|
3544
|
-
if (
|
|
3543
|
+
onKeyDown: Ca(t.onKeyDown, (g) => {
|
|
3544
|
+
if (g.key === "Tab" && g.shiftKey) {
|
|
3545
3545
|
h.onItemShiftTab();
|
|
3546
3546
|
return;
|
|
3547
3547
|
}
|
|
3548
|
-
if (
|
|
3549
|
-
const f = mR(
|
|
3548
|
+
if (g.target !== g.currentTarget) return;
|
|
3549
|
+
const f = mR(g, h.orientation, h.dir);
|
|
3550
3550
|
if (f !== void 0) {
|
|
3551
|
-
if (
|
|
3552
|
-
|
|
3551
|
+
if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
|
|
3552
|
+
g.preventDefault();
|
|
3553
3553
|
let v = p().filter((M) => M.focusable).map((M) => M.ref.current);
|
|
3554
3554
|
if (f === "last") v.reverse();
|
|
3555
3555
|
else if (f === "prev" || f === "next") {
|
|
3556
3556
|
f === "prev" && v.reverse();
|
|
3557
|
-
const M = v.indexOf(
|
|
3557
|
+
const M = v.indexOf(g.currentTarget);
|
|
3558
3558
|
v = h.loop ? fR(v, M + 1) : v.slice(M + 1);
|
|
3559
3559
|
}
|
|
3560
3560
|
setTimeout(() => lI(v));
|
|
@@ -3631,9 +3631,9 @@ function vR(t) {
|
|
|
3631
3631
|
const u = e.ownerDocument.defaultView ?? window, p = (m) => {
|
|
3632
3632
|
const f = r1(n.current).includes(m.animationName);
|
|
3633
3633
|
if (m.target === e && f && (d("ANIMATION_END"), !o.current)) {
|
|
3634
|
-
const
|
|
3634
|
+
const k = e.style.animationFillMode;
|
|
3635
3635
|
e.style.animationFillMode = "forwards", h = u.setTimeout(() => {
|
|
3636
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode =
|
|
3636
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = k);
|
|
3637
3637
|
});
|
|
3638
3638
|
}
|
|
3639
3639
|
}, y = (m) => {
|
|
@@ -32528,20 +32528,20 @@ function FB({
|
|
|
32528
32528
|
ce(() => {
|
|
32529
32529
|
(async () => {
|
|
32530
32530
|
try {
|
|
32531
|
-
const
|
|
32531
|
+
const g = r ?? "en", f = t.map(async (v) => (await fetch(`${u}/api/v1/promotions/?ids=${v}`, {
|
|
32532
32532
|
method: "GET",
|
|
32533
32533
|
headers: {
|
|
32534
|
-
"Accept-Language":
|
|
32534
|
+
"Accept-Language": g,
|
|
32535
32535
|
"Content-Type": "application/json"
|
|
32536
32536
|
}
|
|
32537
|
-
})).json()),
|
|
32538
|
-
l(
|
|
32537
|
+
})).json()), k = await Promise.all(f);
|
|
32538
|
+
l(k);
|
|
32539
32539
|
} catch {
|
|
32540
32540
|
}
|
|
32541
32541
|
})();
|
|
32542
32542
|
}, [t, u, r]);
|
|
32543
32543
|
const p = (m) => {
|
|
32544
|
-
const
|
|
32544
|
+
const g = new CustomEvent("planSelected", {
|
|
32545
32545
|
bubbles: !0,
|
|
32546
32546
|
detail: {
|
|
32547
32547
|
plan: m,
|
|
@@ -32549,7 +32549,7 @@ function FB({
|
|
|
32549
32549
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
32550
32550
|
}
|
|
32551
32551
|
}), f = document.querySelector(".group-prices-component");
|
|
32552
|
-
f && f.dispatchEvent(
|
|
32552
|
+
f && f.dispatchEvent(g);
|
|
32553
32553
|
}, y = `grid sm:grid-cols-2 lg:grid-cols-${e.length} mb-8`;
|
|
32554
32554
|
return /* @__PURE__ */ a.jsx("section", { id: "pricing", className: "w-full py-12 md:py-24 lg:py-32", children: /* @__PURE__ */ a.jsxs("div", { className: "container px-4 md:px-6", children: [
|
|
32555
32555
|
o ?? /* @__PURE__ */ a.jsx("h2", { className: "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl text-center mb-8", children: o }),
|
|
@@ -32560,8 +32560,8 @@ function FB({
|
|
|
32560
32560
|
className: "w-full",
|
|
32561
32561
|
onValueChange: (m) => h(m),
|
|
32562
32562
|
children: [
|
|
32563
|
-
/* @__PURE__ */ a.jsx(er, { className: y, children: e.map((m,
|
|
32564
|
-
c.map((m,
|
|
32563
|
+
/* @__PURE__ */ a.jsx(er, { className: y, children: e.map((m, g) => /* @__PURE__ */ a.jsx(Se, { value: `tab-${g}`, children: m }, g)) }),
|
|
32564
|
+
c.map((m, g) => /* @__PURE__ */ a.jsx(Ie, { value: `tab-${g}`, children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-8 sm:grid-cols-2 lg:grid-cols-3", children: m.map((f, k) => /* @__PURE__ */ a.jsxs(we, { className: "flex flex-col", children: [
|
|
32565
32565
|
/* @__PURE__ */ a.jsxs(Te, { children: [
|
|
32566
32566
|
/* @__PURE__ */ a.jsx(Re, { children: f.title }),
|
|
32567
32567
|
/* @__PURE__ */ a.jsx(Ue, { children: f.short_description })
|
|
@@ -32578,7 +32578,7 @@ function FB({
|
|
|
32578
32578
|
] }, M)) })
|
|
32579
32579
|
] }),
|
|
32580
32580
|
/* @__PURE__ */ a.jsx(Ds, { children: /* @__PURE__ */ a.jsx($, { onClick: () => p(f), className: "w-full bg-primary text-primary-foreground hover:bg-primary/90", children: i }) })
|
|
32581
|
-
] },
|
|
32581
|
+
] }, k)) }) }, g))
|
|
32582
32582
|
]
|
|
32583
32583
|
}
|
|
32584
32584
|
)
|
|
@@ -32926,19 +32926,19 @@ var Nt = {
|
|
|
32926
32926
|
center: 0.5,
|
|
32927
32927
|
edges: 0.5,
|
|
32928
32928
|
end: 1
|
|
32929
|
-
}[o] || 0 : !l && d && (u = o[0], p = o[1]), function(y, m,
|
|
32930
|
-
var f = (
|
|
32931
|
-
if (!
|
|
32929
|
+
}[o] || 0 : !l && d && (u = o[0], p = o[1]), function(y, m, g) {
|
|
32930
|
+
var f = (g || r).length, k = c[f], v, M, w, C, b, I, j, N, S;
|
|
32931
|
+
if (!k) {
|
|
32932
32932
|
if (S = r.grid === "auto" ? 0 : (r.grid || [1, zt])[1], !S) {
|
|
32933
|
-
for (j = -zt; j < (j =
|
|
32933
|
+
for (j = -zt; j < (j = g[S++].getBoundingClientRect().left) && S < f; )
|
|
32934
32934
|
;
|
|
32935
32935
|
S < f && S--;
|
|
32936
32936
|
}
|
|
32937
|
-
for (
|
|
32938
|
-
w = I % S - v, C = M - (I / S | 0),
|
|
32939
|
-
o === "random" && $I(
|
|
32937
|
+
for (k = c[f] = [], v = d ? Math.min(S, f) * u - 0.5 : o % S, M = S === zt ? 0 : d ? f * p / S - 0.5 : o / S | 0, j = 0, N = zt, I = 0; I < f; I++)
|
|
32938
|
+
w = I % S - v, C = M - (I / S | 0), k[I] = b = h ? Math.abs(h === "y" ? C : w) : SI(w * w + C * C), b > j && (j = b), b < N && (N = b);
|
|
32939
|
+
o === "random" && $I(k), k.max = j - N, k.min = N, k.v = f = (parseFloat(r.amount) || parseFloat(r.each) * (S > f ? f - 1 : h ? h === "y" ? f / S : S : Math.max(S, f / S)) || 0) * (o === "edges" ? -1 : 1), k.b = f < 0 ? i - f : i, k.u = ct(r.amount || r.each) || 0, n = n && f < 0 ? aN(n) : n;
|
|
32940
32940
|
}
|
|
32941
|
-
return f = (
|
|
32941
|
+
return f = (k[y] - k.min) / k.max || 0, Ye(k.b + (n ? n(f) : f) * k.v) + k.u;
|
|
32942
32942
|
};
|
|
32943
32943
|
}, $C = function(e) {
|
|
32944
32944
|
var r = Math.pow(10, ((e + "").split(".")[1] || "").length);
|
|
@@ -33011,17 +33011,17 @@ var Nt = {
|
|
|
33011
33011
|
else if (dt(e) && !dt(r)) {
|
|
33012
33012
|
for (u = [], p = e.length, y = p - 2, h = 1; h < p; h++)
|
|
33013
33013
|
u.push(t(e[h - 1], e[h]));
|
|
33014
|
-
p--, i = function(
|
|
33015
|
-
|
|
33016
|
-
var f = Math.min(y, ~~
|
|
33017
|
-
return u[f](
|
|
33014
|
+
p--, i = function(g) {
|
|
33015
|
+
g *= p;
|
|
33016
|
+
var f = Math.min(y, ~~g);
|
|
33017
|
+
return u[f](g - f);
|
|
33018
33018
|
}, n = r;
|
|
33019
33019
|
} else o || (e = $i(dt(e) ? [] : {}, e));
|
|
33020
33020
|
if (!u) {
|
|
33021
33021
|
for (d in r)
|
|
33022
33022
|
Cj.call(l, e, d, "get", r[d]);
|
|
33023
|
-
i = function(
|
|
33024
|
-
return Ij(
|
|
33023
|
+
i = function(g) {
|
|
33024
|
+
return Ij(g, l) || (c ? e.p : e);
|
|
33025
33025
|
};
|
|
33026
33026
|
}
|
|
33027
33027
|
}
|
|
@@ -33087,7 +33087,7 @@ var Nt = {
|
|
|
33087
33087
|
}, cC = function(e, r, n) {
|
|
33088
33088
|
return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? r + (n - r) * e * 6 : e < 0.5 ? n : e * 3 < 2 ? r + (n - r) * (2 / 3 - e) * 6 : r) * Le + 0.5 | 0;
|
|
33089
33089
|
}, QI = function(e, r, n) {
|
|
33090
|
-
var o = e ? Ia(e) ? [e >> 16, e >> 8 & Le, e & Le] : 0 : lc.black, i, c, l, d, h, u, p, y, m,
|
|
33090
|
+
var o = e ? Ia(e) ? [e >> 16, e >> 8 & Le, e & Le] : 0 : lc.black, i, c, l, d, h, u, p, y, m, g;
|
|
33091
33091
|
if (!o) {
|
|
33092
33092
|
if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), lc[e])
|
|
33093
33093
|
o = lc[e];
|
|
@@ -33096,7 +33096,7 @@ var Nt = {
|
|
|
33096
33096
|
return o = parseInt(e.substr(1, 6), 16), [o >> 16, o >> 8 & Le, o & Le, parseInt(e.substr(7), 16) / 255];
|
|
33097
33097
|
e = parseInt(e.substr(1), 16), o = [e >> 16, e >> 8 & Le, e & Le];
|
|
33098
33098
|
} else if (e.substr(0, 3) === "hsl") {
|
|
33099
|
-
if (o =
|
|
33099
|
+
if (o = g = e.match(FC), !r)
|
|
33100
33100
|
d = +o[0] % 360 / 360, h = +o[1] / 100, u = +o[2] / 100, c = u <= 0.5 ? u * (h + 1) : u + h - u * h, i = u * 2 - c, o.length > 3 && (o[3] *= 1), o[0] = cC(d + 1 / 3, i, c), o[1] = cC(d, i, c), o[2] = cC(d - 1 / 3, i, c);
|
|
33101
33101
|
else if (~e.indexOf("="))
|
|
33102
33102
|
return o = e.match(NI), n && o.length < 4 && (o[3] = 1), o;
|
|
@@ -33104,7 +33104,7 @@ var Nt = {
|
|
|
33104
33104
|
o = e.match(FC) || lc.transparent;
|
|
33105
33105
|
o = o.map(Number);
|
|
33106
33106
|
}
|
|
33107
|
-
return r && !
|
|
33107
|
+
return r && !g && (i = o[0] / Le, c = o[1] / Le, l = o[2] / Le, p = Math.max(i, c, l), y = Math.min(i, c, l), u = (p + y) / 2, p === y ? d = h = 0 : (m = p - y, h = u > 0.5 ? m / (2 - p - y) : m / (p + y), d = p === i ? (c - l) / m + (c < l ? 6 : 0) : p === c ? (l - i) / m + 2 : (i - c) / m + 4, d *= 60), o[0] = ~~(d + 0.5), o[1] = ~~(h * 100 + 0.5), o[2] = ~~(u * 100 + 0.5)), n && o.length < 4 && (o[3] = 1), o;
|
|
33108
33108
|
}, eN = function(e) {
|
|
33109
33109
|
var r = [], n = [], o = -1;
|
|
33110
33110
|
return e.split(Za).forEach(function(i) {
|
|
@@ -33134,43 +33134,43 @@ var Nt = {
|
|
|
33134
33134
|
if (Za.lastIndex = 0, Za.test(r))
|
|
33135
33135
|
return n = QR.test(r), e[1] = RL(e[1], n), e[0] = RL(e[0], n, eN(e[1])), !0;
|
|
33136
33136
|
}, Vc, St = function() {
|
|
33137
|
-
var t = Date.now, e = 500, r = 33, n = t(), o = n, i = 1e3 / 240, c = i, l = [], d, h, u, p, y, m,
|
|
33138
|
-
var v = t() - o, M =
|
|
33137
|
+
var t = Date.now, e = 500, r = 33, n = t(), o = n, i = 1e3 / 240, c = i, l = [], d, h, u, p, y, m, g = function f(k) {
|
|
33138
|
+
var v = t() - o, M = k === !0, w, C, b, I;
|
|
33139
33139
|
if ((v > e || v < 0) && (n += v - r), o += v, b = o - n, w = b - c, (w > 0 || M) && (I = ++p.frame, y = b - p.time * 1e3, p.time = b = b / 1e3, c += w + (w >= i ? 4 : i - w), C = 1), M || (d = h(f)), C)
|
|
33140
33140
|
for (m = 0; m < l.length; m++)
|
|
33141
|
-
l[m](b, y, I,
|
|
33141
|
+
l[m](b, y, I, k);
|
|
33142
33142
|
};
|
|
33143
33143
|
return p = {
|
|
33144
33144
|
time: 0,
|
|
33145
33145
|
frame: 0,
|
|
33146
33146
|
tick: function() {
|
|
33147
|
-
|
|
33147
|
+
g(!0);
|
|
33148
33148
|
},
|
|
33149
|
-
deltaRatio: function(
|
|
33150
|
-
return y / (1e3 / (
|
|
33149
|
+
deltaRatio: function(k) {
|
|
33150
|
+
return y / (1e3 / (k || 60));
|
|
33151
33151
|
},
|
|
33152
33152
|
wake: function() {
|
|
33153
|
-
_I && (!OC && kj() && (ra = OC = window, gj = ra.document || {}, Pt.gsap = vt, (ra.gsapVersions || (ra.gsapVersions = [])).push(vt.version), TI(ub || ra.GreenSockGlobals || !ra.gsap && ra || {}), YI.forEach(KI)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, d && p.sleep(), h = u || function(
|
|
33154
|
-
return setTimeout(
|
|
33155
|
-
}, Vc = 1,
|
|
33153
|
+
_I && (!OC && kj() && (ra = OC = window, gj = ra.document || {}, Pt.gsap = vt, (ra.gsapVersions || (ra.gsapVersions = [])).push(vt.version), TI(ub || ra.GreenSockGlobals || !ra.gsap && ra || {}), YI.forEach(KI)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, d && p.sleep(), h = u || function(k) {
|
|
33154
|
+
return setTimeout(k, c - p.time * 1e3 + 1 | 0);
|
|
33155
|
+
}, Vc = 1, g(2));
|
|
33156
33156
|
},
|
|
33157
33157
|
sleep: function() {
|
|
33158
33158
|
(u ? cancelAnimationFrame : clearTimeout)(d), Vc = 0, h = Ec;
|
|
33159
33159
|
},
|
|
33160
|
-
lagSmoothing: function(
|
|
33161
|
-
e =
|
|
33160
|
+
lagSmoothing: function(k, v) {
|
|
33161
|
+
e = k || 1 / 0, r = Math.min(v || 33, e);
|
|
33162
33162
|
},
|
|
33163
|
-
fps: function(
|
|
33164
|
-
i = 1e3 / (
|
|
33163
|
+
fps: function(k) {
|
|
33164
|
+
i = 1e3 / (k || 240), c = p.time * 1e3 + i;
|
|
33165
33165
|
},
|
|
33166
|
-
add: function(
|
|
33166
|
+
add: function(k, v, M) {
|
|
33167
33167
|
var w = v ? function(C, b, I, j) {
|
|
33168
|
-
|
|
33169
|
-
} :
|
|
33170
|
-
return p.remove(
|
|
33168
|
+
k(C, b, I, j), p.remove(w);
|
|
33169
|
+
} : k;
|
|
33170
|
+
return p.remove(k), l[M ? "unshift" : "push"](w), Es(), w;
|
|
33171
33171
|
},
|
|
33172
|
-
remove: function(
|
|
33173
|
-
~(v = l.indexOf(
|
|
33172
|
+
remove: function(k, v) {
|
|
33173
|
+
~(v = l.indexOf(k)) && l.splice(v, 1) && m >= v && m--;
|
|
33174
33174
|
},
|
|
33175
33175
|
_listeners: l
|
|
33176
33176
|
}, p;
|
|
@@ -33430,14 +33430,14 @@ var pt = /* @__PURE__ */ function(t) {
|
|
|
33430
33430
|
}, r.staggerFromTo = function(o, i, c, l, d, h, u, p) {
|
|
33431
33431
|
return l.startAt = c, Tc(l).immediateRender = ft(l.immediateRender), this.staggerTo(o, i, l, d, h, u, p);
|
|
33432
33432
|
}, r.render = function(o, i, c) {
|
|
33433
|
-
var l = this._time, d = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, u = o <= 0 ? 0 : Ye(o), p = this._zTime < 0 != o < 0 && (this._initted || !h), y, m,
|
|
33433
|
+
var l = this._time, d = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, u = o <= 0 ? 0 : Ye(o), p = this._zTime < 0 != o < 0 && (this._initted || !h), y, m, g, f, k, v, M, w, C, b, I, j;
|
|
33434
33434
|
if (this !== Ee && u > d && o >= 0 && (u = d), u !== this._tTime || c || p) {
|
|
33435
33435
|
if (l !== this._time && h && (u += this._time - l, o += this._time - l), y = u, C = this._start, w = this._ts, v = !w, p && (h || (l = this._zTime), (o || !i) && (this._zTime = o)), this._repeat) {
|
|
33436
|
-
if (I = this._yoyo,
|
|
33437
|
-
return this.totalTime(
|
|
33438
|
-
if (y = Ye(u %
|
|
33436
|
+
if (I = this._yoyo, k = h + this._rDelay, this._repeat < -1 && o < 0)
|
|
33437
|
+
return this.totalTime(k * 100 + o, i, c);
|
|
33438
|
+
if (y = Ye(u % k), u === d ? (f = this._repeat, y = h) : (f = ~~(u / k), f && f === u / k && (y = h, f--), y > h && (y = h)), b = Fs(this._tTime, k), !l && this._tTime && b !== f && this._tTime - b * k - this._dur <= 0 && (b = f), I && f & 1 && (y = h - y, j = 1), f !== b && !this._lock) {
|
|
33439
33439
|
var N = I && b & 1, S = N === (I && f & 1);
|
|
33440
|
-
if (f < b && (N = !N), l = N ? 0 : u % h ? h : u, this._lock = 1, this.render(l || (j ? 0 : Ye(f *
|
|
33440
|
+
if (f < b && (N = !N), l = N ? 0 : u % h ? h : u, this._lock = 1, this.render(l || (j ? 0 : Ye(f * k)), i, !h)._lock = 0, this._tTime = u, !i && this.parent && It(this, "onRepeat"), this.vars.repeatRefresh && !j && (this.invalidate()._lock = 1), l && l !== this._time || v !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
33441
33441
|
return this;
|
|
33442
33442
|
if (h = this._dur, d = this._tDur, S && (this._lock = 2, l = N ? h : -1e-4, this.render(l, !0), this.vars.repeatRefresh && !j && this.invalidate()), this._lock = 0, !this._ts && !v)
|
|
33443
33443
|
return this;
|
|
@@ -33448,28 +33448,28 @@ var pt = /* @__PURE__ */ function(t) {
|
|
|
33448
33448
|
return this;
|
|
33449
33449
|
if (y >= l && o >= 0)
|
|
33450
33450
|
for (m = this._first; m; ) {
|
|
33451
|
-
if (
|
|
33451
|
+
if (g = m._next, (m._act || y >= m._start) && m._ts && M !== m) {
|
|
33452
33452
|
if (m.parent !== this)
|
|
33453
33453
|
return this.render(o, i, c);
|
|
33454
33454
|
if (m.render(m._ts > 0 ? (y - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (y - m._start) * m._ts, i, c), y !== this._time || !this._ts && !v) {
|
|
33455
|
-
M = 0,
|
|
33455
|
+
M = 0, g && (u += this._zTime = -Pe);
|
|
33456
33456
|
break;
|
|
33457
33457
|
}
|
|
33458
33458
|
}
|
|
33459
|
-
m =
|
|
33459
|
+
m = g;
|
|
33460
33460
|
}
|
|
33461
33461
|
else {
|
|
33462
33462
|
m = this._last;
|
|
33463
33463
|
for (var R = o < 0 ? o : y; m; ) {
|
|
33464
|
-
if (
|
|
33464
|
+
if (g = m._prev, (m._act || R <= m._end) && m._ts && M !== m) {
|
|
33465
33465
|
if (m.parent !== this)
|
|
33466
33466
|
return this.render(o, i, c);
|
|
33467
33467
|
if (m.render(m._ts > 0 ? (R - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (R - m._start) * m._ts, i, c || lt && (m._initted || m._startAt)), y !== this._time || !this._ts && !v) {
|
|
33468
|
-
M = 0,
|
|
33468
|
+
M = 0, g && (u += this._zTime = R ? -Pe : Pe);
|
|
33469
33469
|
break;
|
|
33470
33470
|
}
|
|
33471
33471
|
}
|
|
33472
|
-
m =
|
|
33472
|
+
m = g;
|
|
33473
33473
|
}
|
|
33474
33474
|
}
|
|
33475
33475
|
if (M && !i && (this.pause(), M.render(y >= l ? 0 : -Pe)._zTime = y >= l ? 1 : -1, this._ts))
|
|
@@ -33526,7 +33526,7 @@ var pt = /* @__PURE__ */ function(t) {
|
|
|
33526
33526
|
return c;
|
|
33527
33527
|
}, r.tweenTo = function(o, i) {
|
|
33528
33528
|
i = i || {};
|
|
33529
|
-
var c = this, l = qt(c, o), d = i, h = d.startAt, u = d.onStart, p = d.onStartParams, y = d.immediateRender, m,
|
|
33529
|
+
var c = this, l = qt(c, o), d = i, h = d.startAt, u = d.onStart, p = d.onStartParams, y = d.immediateRender, m, g = Xe.to(c, Vt({
|
|
33530
33530
|
ease: i.ease || "none",
|
|
33531
33531
|
lazy: !1,
|
|
33532
33532
|
immediateRender: !1,
|
|
@@ -33535,13 +33535,13 @@ var pt = /* @__PURE__ */ function(t) {
|
|
|
33535
33535
|
duration: i.duration || Math.abs((l - (h && "time" in h ? h.time : c._time)) / c.timeScale()) || Pe,
|
|
33536
33536
|
onStart: function() {
|
|
33537
33537
|
if (c.pause(), !m) {
|
|
33538
|
-
var
|
|
33539
|
-
|
|
33538
|
+
var k = i.duration || Math.abs((l - (h && "time" in h ? h.time : c._time)) / c.timeScale());
|
|
33539
|
+
g._dur !== k && Os(g, k, 0, 1).render(g._time, !0, !0), m = 1;
|
|
33540
33540
|
}
|
|
33541
|
-
u && u.apply(
|
|
33541
|
+
u && u.apply(g, p || []);
|
|
33542
33542
|
}
|
|
33543
33543
|
}, i));
|
|
33544
|
-
return y ?
|
|
33544
|
+
return y ? g.render(0) : g;
|
|
33545
33545
|
}, r.tweenFromTo = function(o, i, c) {
|
|
33546
33546
|
return this.tweenTo(i, Vt({
|
|
33547
33547
|
startAt: {
|
|
@@ -33602,22 +33602,22 @@ Vt(pt.prototype, {
|
|
|
33602
33602
|
_forcing: 0
|
|
33603
33603
|
});
|
|
33604
33604
|
var oq = function(e, r, n, o, i, c, l) {
|
|
33605
|
-
var d = new kt(this._pt, e, r, 0, 1, hN, null, i), h = 0, u = 0, p, y, m,
|
|
33605
|
+
var d = new kt(this._pt, e, r, 0, 1, hN, null, i), h = 0, u = 0, p, y, m, g, f, k, v, M;
|
|
33606
33606
|
for (d.b = n, d.e = o, n += "", o += "", (v = ~o.indexOf("random(")) && (o = Hc(o)), c && (M = [n, o], c(M, e, r), n = M[0], o = M[1]), y = n.match(iC) || []; p = iC.exec(o); )
|
|
33607
|
-
|
|
33607
|
+
g = p[0], f = o.substring(h, p.index), m ? m = (m + 1) % 5 : f.substr(-5) === "rgba(" && (m = 1), g !== y[u++] && (k = parseFloat(y[u - 1]) || 0, d._pt = {
|
|
33608
33608
|
_next: d._pt,
|
|
33609
33609
|
p: f || u === 1 ? f : ",",
|
|
33610
33610
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
33611
|
-
s:
|
|
33612
|
-
c:
|
|
33611
|
+
s: k,
|
|
33612
|
+
c: g.charAt(1) === "=" ? As(k, g) - k : parseFloat(g) - k,
|
|
33613
33613
|
m: m && m < 4 ? Math.round : 0
|
|
33614
33614
|
}, h = iC.lastIndex);
|
|
33615
33615
|
return d.c = h < o.length ? o.substring(h, o.length) : "", d.fp = l, (AI.test(o) || v) && (d.e = 0), this._pt = d, d;
|
|
33616
33616
|
}, Cj = function(e, r, n, o, i, c, l, d, h, u) {
|
|
33617
33617
|
$e(o) && (o = o(i || 0, e, c));
|
|
33618
|
-
var p = e[r], y = n !== "get" ? n : $e(p) ? h ? e[r.indexOf("set") || !$e(e["get" + r.substr(3)]) ? r : "get" + r.substr(3)](h) : e[r]() : p, m = $e(p) ? h ? dq : lN : Lj,
|
|
33619
|
-
if (et(o) && (~o.indexOf("random(") && (o = Hc(o)), o.charAt(1) === "=" && (
|
|
33620
|
-
return !isNaN(y * o) && o !== "" ? (
|
|
33618
|
+
var p = e[r], y = n !== "get" ? n : $e(p) ? h ? e[r.indexOf("set") || !$e(e["get" + r.substr(3)]) ? r : "get" + r.substr(3)](h) : e[r]() : p, m = $e(p) ? h ? dq : lN : Lj, g;
|
|
33619
|
+
if (et(o) && (~o.indexOf("random(") && (o = Hc(o)), o.charAt(1) === "=" && (g = As(y, o) + (ct(y) || 0), (g || g === 0) && (o = g))), !u || y !== o || WC)
|
|
33620
|
+
return !isNaN(y * o) && o !== "" ? (g = new kt(this._pt, e, r, +y || 0, o - (y || 0), typeof p == "boolean" ? uq : dN, 0, m), h && (g.fp = h), l && g.modifier(l, this, e), this._pt = g) : (!p && !(r in e) && vj(r, o), oq.call(this, e, r, y, o, m, d || Nt.stringFilter, h));
|
|
33621
33621
|
}, iq = function(e, r, n, o, i) {
|
|
33622
33622
|
if ($e(e) && (e = qc(e, i, r, n, o)), !ua(e) || e.style && e.nodeType || dt(e) || II(e))
|
|
33623
33623
|
return et(e) ? qc(e, i, r, n, o) : e;
|
|
@@ -33632,10 +33632,10 @@ var oq = function(e, r, n, o, i, c, l) {
|
|
|
33632
33632
|
h[l._props[u]] = d;
|
|
33633
33633
|
return l;
|
|
33634
33634
|
}, Ha, WC, jj = function t(e, r, n) {
|
|
33635
|
-
var o = e.vars, i = o.ease, c = o.startAt, l = o.immediateRender, d = o.lazy, h = o.onUpdate, u = o.runBackwards, p = o.yoyoEase, y = o.keyframes, m = o.autoRevert,
|
|
33635
|
+
var o = e.vars, i = o.ease, c = o.startAt, l = o.immediateRender, d = o.lazy, h = o.onUpdate, u = o.runBackwards, p = o.yoyoEase, y = o.keyframes, m = o.autoRevert, g = e._dur, f = e._startAt, k = e._targets, v = e.parent, M = v && v.data === "nested" ? v.vars.targets : k, w = e._overwrite === "auto" && !fj, C = e.timeline, b, I, j, N, S, R, A, P, T, F, B, z, V;
|
|
33636
33636
|
if (C && (!y || !i) && (i = "none"), e._ease = Bi(i, zs.ease), e._yEase = p ? aN(Bi(p === !0 ? i : p, zs.ease)) : 0, p && e._yoyo && !e._repeat && (p = e._yEase, e._yEase = e._ease, e._ease = p), e._from = !C && !!o.runBackwards, !C || y && !o.stagger) {
|
|
33637
|
-
if (P =
|
|
33638
|
-
if (Ja(e._startAt = Xe.set(
|
|
33637
|
+
if (P = k[0] ? Hi(k[0]).harness : 0, z = P && o[P.prop], b = yb(o, Mj), f && (f._zTime < 0 && f.progress(1), r < 0 && u && l && !m ? f.render(-1, !0) : f.revert(u && g ? rb : RR), f._lazy = 0), c) {
|
|
33638
|
+
if (Ja(e._startAt = Xe.set(k, Vt({
|
|
33639
33639
|
data: "isStart",
|
|
33640
33640
|
overwrite: !1,
|
|
33641
33641
|
parent: v,
|
|
@@ -33647,11 +33647,11 @@ var oq = function(e, r, n, o, i, c, l) {
|
|
|
33647
33647
|
return It(e, "onUpdate");
|
|
33648
33648
|
},
|
|
33649
33649
|
stagger: 0
|
|
33650
|
-
}, c))), e._startAt._dp = 0, e._startAt._sat = e, r < 0 && (lt || !l && !m) && e._startAt.revert(rb), l &&
|
|
33650
|
+
}, c))), e._startAt._dp = 0, e._startAt._sat = e, r < 0 && (lt || !l && !m) && e._startAt.revert(rb), l && g && r <= 0 && n <= 0) {
|
|
33651
33651
|
r && (e._zTime = r);
|
|
33652
33652
|
return;
|
|
33653
33653
|
}
|
|
33654
|
-
} else if (u &&
|
|
33654
|
+
} else if (u && g && !f) {
|
|
33655
33655
|
if (r && (l = !1), j = Vt({
|
|
33656
33656
|
overwrite: !1,
|
|
33657
33657
|
data: "isFromStart",
|
|
@@ -33662,13 +33662,13 @@ var oq = function(e, r, n, o, i, c, l) {
|
|
|
33662
33662
|
stagger: 0,
|
|
33663
33663
|
parent: v
|
|
33664
33664
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
33665
|
-
}, b), z && (j[P.prop] = z), Ja(e._startAt = Xe.set(
|
|
33665
|
+
}, b), z && (j[P.prop] = z), Ja(e._startAt = Xe.set(k, j)), e._startAt._dp = 0, e._startAt._sat = e, r < 0 && (lt ? e._startAt.revert(rb) : e._startAt.render(-1, !0)), e._zTime = r, !l)
|
|
33666
33666
|
t(e._startAt, Pe, Pe);
|
|
33667
33667
|
else if (!r)
|
|
33668
33668
|
return;
|
|
33669
33669
|
}
|
|
33670
|
-
for (e._pt = e._ptCache = 0, d =
|
|
33671
|
-
if (S =
|
|
33670
|
+
for (e._pt = e._ptCache = 0, d = g && ft(d) || d && !g, I = 0; I < k.length; I++) {
|
|
33671
|
+
if (S = k[I], A = S._gsap || bj(k)[I]._gsap, e._ptLookup[I] = F = {}, EC[A.id] && Ga.length && pb(), B = M === k ? I : M.indexOf(S), P && (T = new P()).init(S, z || b, e, B, M) !== !1 && (e._pt = N = new kt(e._pt, S, T.name, 0, 1, T.render, T, 0, T.priority), T._props.forEach(function(D) {
|
|
33672
33672
|
F[D] = N;
|
|
33673
33673
|
}), T.priority && (R = 1)), !P || z)
|
|
33674
33674
|
for (j in b)
|
|
@@ -33729,8 +33729,8 @@ var Xe = /* @__PURE__ */ function(t) {
|
|
|
33729
33729
|
function e(n, o, i, c) {
|
|
33730
33730
|
var l;
|
|
33731
33731
|
typeof o == "number" && (i.duration = o, o = i, i = null), l = t.call(this, c ? o : Tc(o)) || this;
|
|
33732
|
-
var d = l.vars, h = d.duration, u = d.delay, p = d.immediateRender, y = d.stagger, m = d.overwrite,
|
|
33733
|
-
if (l._targets = w.length ? bj(w) : Oc("GSAP target " + n + " not found. https://gsap.com", !Nt.nullTargetWarn) || [], l._ptLookup = [], l._overwrite = m,
|
|
33732
|
+
var d = l.vars, h = d.duration, u = d.delay, p = d.immediateRender, y = d.stagger, m = d.overwrite, g = d.keyframes, f = d.defaults, k = d.scrollTrigger, v = d.yoyoEase, M = o.parent || Ee, w = (dt(n) || II(n) ? Ia(n[0]) : "length" in o) ? [n] : Ft(n), C, b, I, j, N, S, R, A;
|
|
33733
|
+
if (l._targets = w.length ? bj(w) : Oc("GSAP target " + n + " not found. https://gsap.com", !Nt.nullTargetWarn) || [], l._ptLookup = [], l._overwrite = m, g || y || n1(h) || n1(u)) {
|
|
33734
33734
|
if (o = l.vars, C = l.timeline = new pt({
|
|
33735
33735
|
data: "nested",
|
|
33736
33736
|
defaults: f || {},
|
|
@@ -33742,19 +33742,19 @@ var Xe = /* @__PURE__ */ function(t) {
|
|
|
33742
33742
|
for (b = 0; b < j; b++)
|
|
33743
33743
|
I = yb(o, cN), I.stagger = 0, v && (I.yoyoEase = v), A && $i(I, A), S = w[b], I.duration = +qc(h, ka(l), b, S, w), I.delay = (+qc(u, ka(l), b, S, w) || 0) - l._delay, !y && j === 1 && I.delay && (l._delay = u = I.delay, l._start += u, I.delay = 0), C.to(S, I, R ? R(b, S, w) : 0), C._ease = me.none;
|
|
33744
33744
|
C.duration() ? h = u = 0 : l.timeline = 0;
|
|
33745
|
-
} else if (
|
|
33745
|
+
} else if (g) {
|
|
33746
33746
|
Tc(Vt(C.vars.defaults, {
|
|
33747
33747
|
ease: "none"
|
|
33748
|
-
})), C._ease = Bi(
|
|
33748
|
+
})), C._ease = Bi(g.ease || o.ease || "none");
|
|
33749
33749
|
var P = 0, T, F, B;
|
|
33750
|
-
if (dt(
|
|
33751
|
-
|
|
33750
|
+
if (dt(g))
|
|
33751
|
+
g.forEach(function(z) {
|
|
33752
33752
|
return C.to(w, z, ">");
|
|
33753
33753
|
}), C.duration();
|
|
33754
33754
|
else {
|
|
33755
33755
|
I = {};
|
|
33756
|
-
for (N in
|
|
33757
|
-
N === "ease" || N === "easeEach" || lq(N,
|
|
33756
|
+
for (N in g)
|
|
33757
|
+
N === "ease" || N === "easeEach" || lq(N, g[N], I, g.easeEach);
|
|
33758
33758
|
for (N in I)
|
|
33759
33759
|
for (T = I[N].sort(function(z, V) {
|
|
33760
33760
|
return z.t - V.t;
|
|
@@ -33771,34 +33771,34 @@ var Xe = /* @__PURE__ */ function(t) {
|
|
|
33771
33771
|
h || l.duration(h = C.duration());
|
|
33772
33772
|
} else
|
|
33773
33773
|
l.timeline = 0;
|
|
33774
|
-
return m === !0 && !fj && (Ha = ka(l), Ee.killTweensOf(w), Ha = 0), oa(M, ka(l), i), o.reversed && l.reverse(), o.paused && l.paused(!0), (p || !h && !
|
|
33774
|
+
return m === !0 && !fj && (Ha = ka(l), Ee.killTweensOf(w), Ha = 0), oa(M, ka(l), i), o.reversed && l.reverse(), o.paused && l.paused(!0), (p || !h && !g && l._start === Ye(M._time) && ft(p) && ER(ka(l)) && M.data !== "nested") && (l._tTime = -Pe, l.render(Math.max(0, -u) || 0)), k && VI(ka(l), k), l;
|
|
33775
33775
|
}
|
|
33776
33776
|
var r = e.prototype;
|
|
33777
33777
|
return r.render = function(o, i, c) {
|
|
33778
|
-
var l = this._time, d = this._tDur, h = this._dur, u = o < 0, p = o > d - Pe && !u ? d : o < Pe ? 0 : o, y, m,
|
|
33778
|
+
var l = this._time, d = this._tDur, h = this._dur, u = o < 0, p = o > d - Pe && !u ? d : o < Pe ? 0 : o, y, m, g, f, k, v, M, w, C;
|
|
33779
33779
|
if (!h)
|
|
33780
33780
|
VR(this, o, i, c);
|
|
33781
33781
|
else if (p !== this._tTime || !o || c || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u) {
|
|
33782
33782
|
if (y = p, w = this.timeline, this._repeat) {
|
|
33783
33783
|
if (f = h + this._rDelay, this._repeat < -1 && u)
|
|
33784
33784
|
return this.totalTime(f * 100 + o, i, c);
|
|
33785
|
-
if (y = Ye(p % f), p === d ? (
|
|
33785
|
+
if (y = Ye(p % f), p === d ? (g = this._repeat, y = h) : (g = ~~(p / f), g && g === Ye(p / f) && (y = h, g--), y > h && (y = h)), v = this._yoyo && g & 1, v && (C = this._yEase, y = h - y), k = Fs(this._tTime, f), y === l && !c && this._initted && g === k)
|
|
33786
33786
|
return this._tTime = p, this;
|
|
33787
|
-
|
|
33787
|
+
g !== k && (w && this._yEase && rN(w, v), this.vars.repeatRefresh && !v && !this._lock && this._time !== f && this._initted && (this._lock = c = 1, this.render(Ye(f * g), !0).invalidate()._lock = 0));
|
|
33788
33788
|
}
|
|
33789
33789
|
if (!this._initted) {
|
|
33790
33790
|
if (BI(this, u ? o : y, c, i, p))
|
|
33791
33791
|
return this._tTime = 0, this;
|
|
33792
|
-
if (l !== this._time && !(c && this.vars.repeatRefresh &&
|
|
33792
|
+
if (l !== this._time && !(c && this.vars.repeatRefresh && g !== k))
|
|
33793
33793
|
return this;
|
|
33794
33794
|
if (h !== this._dur)
|
|
33795
33795
|
return this.render(o, i, c);
|
|
33796
33796
|
}
|
|
33797
|
-
if (this._tTime = p, this._time = y, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = M = (C || this._ease)(y / h), this._from && (this.ratio = M = 1 - M), y && !l && !i && !
|
|
33797
|
+
if (this._tTime = p, this._time = y, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = M = (C || this._ease)(y / h), this._from && (this.ratio = M = 1 - M), y && !l && !i && !g && (It(this, "onStart"), this._tTime !== p))
|
|
33798
33798
|
return this;
|
|
33799
33799
|
for (m = this._pt; m; )
|
|
33800
33800
|
m.r(M, m.d), m = m._next;
|
|
33801
|
-
w && w.render(o < 0 ? o : w._dur * w._ease(y / this._dur), i, c) || this._startAt && (this._zTime = o), this._onUpdate && !i && (u && HC(this, o, i, c), It(this, "onUpdate")), this._repeat &&
|
|
33801
|
+
w && w.render(o < 0 ? o : w._dur * w._ease(y / this._dur), i, c) || this._startAt && (this._zTime = o), this._onUpdate && !i && (u && HC(this, o, i, c), It(this, "onUpdate")), this._repeat && g !== k && this.vars.onRepeat && !i && this.parent && It(this, "onRepeat"), (p === this._tDur || !p) && this._tTime === p && (u && !this._onUpdate && HC(this, o, !0, !0), (o || !h) && (p === this._tDur && this._ts > 0 || !p && this._ts < 0) && Ja(this, 1), !i && !(u && !l) && (p || l || v) && (It(this, p === d ? "onComplete" : "onReverseComplete", !0), this._prom && !(p < d && this.timeScale() > 0) && this._prom()));
|
|
33802
33802
|
}
|
|
33803
33803
|
return this;
|
|
33804
33804
|
}, r.targets = function() {
|
|
@@ -33816,16 +33816,16 @@ var Xe = /* @__PURE__ */ function(t) {
|
|
|
33816
33816
|
var c = this.timeline.totalDuration();
|
|
33817
33817
|
return this.timeline.killTweensOf(o, i, Ha && Ha.vars.overwrite !== !0)._first || cc(this), this.parent && c !== this.timeline.totalDuration() && Os(this, this._dur * this.timeline._tDur / c, 0, 1), this;
|
|
33818
33818
|
}
|
|
33819
|
-
var l = this._targets, d = o ? Ft(o) : l, h = this._ptLookup, u = this._pt, p, y, m,
|
|
33819
|
+
var l = this._targets, d = o ? Ft(o) : l, h = this._ptLookup, u = this._pt, p, y, m, g, f, k, v;
|
|
33820
33820
|
if ((!i || i === "all") && FR(l, d))
|
|
33821
33821
|
return i === "all" && (this._pt = 0), cc(this);
|
|
33822
33822
|
for (p = this._op = this._op || [], i !== "all" && (et(i) && (f = {}, xt(i, function(M) {
|
|
33823
33823
|
return f[M] = 1;
|
|
33824
33824
|
}), i = f), i = cq(l, i)), v = l.length; v--; )
|
|
33825
33825
|
if (~d.indexOf(l[v])) {
|
|
33826
|
-
y = h[v], i === "all" ? (p[v] = i,
|
|
33827
|
-
for (f in
|
|
33828
|
-
|
|
33826
|
+
y = h[v], i === "all" ? (p[v] = i, g = y, m = {}) : (m = p[v] = p[v] || {}, g = i);
|
|
33827
|
+
for (f in g)
|
|
33828
|
+
k = y && y[f], k && ((!("kill" in k.d) || k.d.kill(f) === !0) && _b(this, k, "_pt"), delete y[f]), m !== "all" && (m[f] = 1);
|
|
33829
33829
|
}
|
|
33830
33830
|
return this._initted && !this._pt && u && cc(this), this;
|
|
33831
33831
|
}, e.to = function(o, i) {
|
|
@@ -34386,19 +34386,19 @@ var DL, Va, Ps, Nj, Ri, zL, Aj, Mq = function() {
|
|
|
34386
34386
|
grid: 1,
|
|
34387
34387
|
flex: 1
|
|
34388
34388
|
}, Ya = function t(e, r, n, o) {
|
|
34389
|
-
var i = parseFloat(n) || 0, c = (n + "").trim().substr((i + "").length) || "px", l = Ri.style, d = wq.test(r), h = e.tagName.toLowerCase() === "svg", u = (h ? "client" : "offset") + (d ? "Width" : "Height"), p = 100, y = o === "px", m = o === "%",
|
|
34389
|
+
var i = parseFloat(n) || 0, c = (n + "").trim().substr((i + "").length) || "px", l = Ri.style, d = wq.test(r), h = e.tagName.toLowerCase() === "svg", u = (h ? "client" : "offset") + (d ? "Width" : "Height"), p = 100, y = o === "px", m = o === "%", g, f, k, v;
|
|
34390
34390
|
if (o === c || !i || HL[o] || HL[c])
|
|
34391
34391
|
return i;
|
|
34392
34392
|
if (c !== "px" && !y && (i = t(e, r, n, "px")), v = e.getCTM && vN(e), (m || c === "%") && (Na[r] || ~r.indexOf("adius")))
|
|
34393
|
-
return
|
|
34394
|
-
if (l[d ? "width" : "height"] = p + (y ? c : o), f = ~r.indexOf("adius") || o === "em" && e.appendChild && !h ? e : e.parentNode, v && (f = (e.ownerSVGElement || {}).parentNode), (!f || f === Va || !f.appendChild) && (f = Va.body),
|
|
34395
|
-
return Ge(i /
|
|
34393
|
+
return g = v ? e.getBBox()[d ? "width" : "height"] : e[u], Ge(m ? i / g * p : i / 100 * g);
|
|
34394
|
+
if (l[d ? "width" : "height"] = p + (y ? c : o), f = ~r.indexOf("adius") || o === "em" && e.appendChild && !h ? e : e.parentNode, v && (f = (e.ownerSVGElement || {}).parentNode), (!f || f === Va || !f.appendChild) && (f = Va.body), k = f._gsap, k && m && k.width && d && k.time === St.time && !k.uncache)
|
|
34395
|
+
return Ge(i / k.width * p);
|
|
34396
34396
|
if (m && (r === "height" || r === "width")) {
|
|
34397
34397
|
var M = e.style[r];
|
|
34398
|
-
e.style[r] = p + o,
|
|
34398
|
+
e.style[r] = p + o, g = e[u], M ? e.style[r] = M : Wi(e, r);
|
|
34399
34399
|
} else
|
|
34400
|
-
(m || c === "%") && !qq[da(f, "display")] && (l.position = da(e, "position")), f === e && (l.position = "static"), f.appendChild(Ri),
|
|
34401
|
-
return d && m && (
|
|
34400
|
+
(m || c === "%") && !qq[da(f, "display")] && (l.position = da(e, "position")), f === e && (l.position = "static"), f.appendChild(Ri), g = Ri[u], f.removeChild(Ri), l.position = "absolute";
|
|
34401
|
+
return d && m && (k = Hi(f), k.time = St.time, k.width = f[u]), Ge(y ? g * i / p : g && i ? p / g * i : 0);
|
|
34402
34402
|
}, wa = function(e, r, n, o) {
|
|
34403
34403
|
var i;
|
|
34404
34404
|
return Nj || JC(), r in sa && r !== "transform" && (r = sa[r], ~r.indexOf(",") && (r = r.split(",")[0])), Na[r] && r !== "transform" ? (i = $c(e, o), i = r !== "transformOrigin" ? i[r] : i.svg ? i.origin : kb(da(e, gt)) + " " + i.zOrigin + "px") : (i = e.style[r], (!i || i === "auto" || o || ~(i + "").indexOf("calc(")) && (i = xb[r] && xb[r](e, r, n) || da(e, r) || DI(e, r) || (r === "opacity" ? 1 : 0))), n && !~(i + "").trim().indexOf(" ") ? Ya(e, r, i, n) + n : i;
|
|
@@ -34407,16 +34407,16 @@ var DL, Va, Ps, Nj, Ri, zL, Aj, Mq = function() {
|
|
|
34407
34407
|
var i = Hs(r, e, 1), c = i && da(e, i, 1);
|
|
34408
34408
|
c && c !== n ? (r = i, n = c) : r === "borderColor" && (n = da(e, "borderTopColor"));
|
|
34409
34409
|
}
|
|
34410
|
-
var l = new kt(this._pt, e.style, r, 0, 1, hN), d = 0, h = 0, u, p, y, m,
|
|
34410
|
+
var l = new kt(this._pt, e.style, r, 0, 1, hN), d = 0, h = 0, u, p, y, m, g, f, k, v, M, w, C, b;
|
|
34411
34411
|
if (l.b = n, l.e = o, n += "", o += "", o === "auto" && (f = e.style[r], e.style[r] = o, o = da(e, r) || o, f ? e.style[r] = f : Wi(e, r)), u = [n, o], tN(u), n = u[0], o = u[1], y = n.match(us) || [], b = o.match(us) || [], b.length) {
|
|
34412
34412
|
for (; p = us.exec(o); )
|
|
34413
|
-
|
|
34413
|
+
k = p[0], M = o.substring(d, p.index), g ? g = (g + 1) % 5 : (M.substr(-5) === "rgba(" || M.substr(-5) === "hsla(") && (g = 1), k !== (f = y[h++] || "") && (m = parseFloat(f) || 0, C = f.substr((m + "").length), k.charAt(1) === "=" && (k = As(m, k) + C), v = parseFloat(k), w = k.substr((v + "").length), d = us.lastIndex - w.length, w || (w = w || Nt.units[r] || C, d === o.length && (o += w, l.e += w)), C !== w && (m = Ya(e, r, f, w) || 0), l._pt = {
|
|
34414
34414
|
_next: l._pt,
|
|
34415
34415
|
p: M || h === 1 ? M : ",",
|
|
34416
34416
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
34417
34417
|
s: m,
|
|
34418
34418
|
c: v - m,
|
|
34419
|
-
m:
|
|
34419
|
+
m: g && g < 4 || r === "zIndex" ? Math.round : 0
|
|
34420
34420
|
});
|
|
34421
34421
|
l.c = d < o.length ? o.substring(d, o.length) : "";
|
|
34422
34422
|
} else
|
|
@@ -34520,14 +34520,14 @@ var DL, Va, Ps, Nj, Ri, zL, Aj, Mq = function() {
|
|
|
34520
34520
|
var n = e._gsap || Hi(e), o = e.style, i = BL(e), c, l, d, h;
|
|
34521
34521
|
return n.svg && e.getAttribute("transform") ? (d = e.transform.baseVal.consolidate().matrix, i = [d.a, d.b, d.c, d.d, d.e, d.f], i.join(",") === "1,0,0,1,0,0" ? Uc : i) : (i === Uc && !e.offsetParent && e !== Ps && !n.svg && (d = o.display, o.display = "block", c = e.parentNode, (!c || !e.offsetParent) && (h = 1, l = e.nextElementSibling, Ps.appendChild(e)), i = BL(e), d ? o.display = d : Wi(e, "display"), h && (l ? c.insertBefore(e, l) : c ? c.appendChild(e) : Ps.removeChild(e))), r && i.length > 6 ? [i[0], i[1], i[4], i[5], i[12], i[13]] : i);
|
|
34522
34522
|
}, YC = function(e, r, n, o, i, c) {
|
|
34523
|
-
var l = e._gsap, d = i || _j(e, !0), h = l.xOrigin || 0, u = l.yOrigin || 0, p = l.xOffset || 0, y = l.yOffset || 0, m = d[0],
|
|
34524
|
-
n ? d !== Uc && (j = m *
|
|
34523
|
+
var l = e._gsap, d = i || _j(e, !0), h = l.xOrigin || 0, u = l.yOrigin || 0, p = l.xOffset || 0, y = l.yOffset || 0, m = d[0], g = d[1], f = d[2], k = d[3], v = d[4], M = d[5], w = r.split(" "), C = parseFloat(w[0]) || 0, b = parseFloat(w[1]) || 0, I, j, N, S;
|
|
34524
|
+
n ? d !== Uc && (j = m * k - g * f) && (N = C * (k / j) + b * (-f / j) + (f * M - k * v) / j, S = C * (-g / j) + b * (m / j) - (m * M - g * v) / j, C = N, b = S) : (I = gN(e), C = I.x + (~w[0].indexOf("%") ? C / 100 * I.width : C), b = I.y + (~(w[1] || w[0]).indexOf("%") ? b / 100 * I.height : b)), o || o !== !1 && l.smooth ? (v = C - h, M = b - u, l.xOffset = p + (v * m + M * f) - v, l.yOffset = y + (v * g + M * k) - M) : l.xOffset = l.yOffset = 0, l.xOrigin = C, l.yOrigin = b, l.smooth = !!o, l.origin = r, l.originIsAbsolute = !!n, e.style[gt] = "0px 0px", c && (Ba(c, l, "xOrigin", h, C), Ba(c, l, "yOrigin", u, b), Ba(c, l, "xOffset", p, l.xOffset), Ba(c, l, "yOffset", y, l.yOffset)), e.setAttribute("data-svg-origin", C + " " + b);
|
|
34525
34525
|
}, $c = function(e, r) {
|
|
34526
34526
|
var n = e._gsap || new oN(e);
|
|
34527
34527
|
if ("x" in n && !r && !n.uncache)
|
|
34528
34528
|
return n;
|
|
34529
|
-
var o = e.style, i = n.scaleX < 0, c = "px", l = "deg", d = getComputedStyle(e), h = da(e, gt) || "0", u, p, y, m,
|
|
34530
|
-
return u = p = y = f =
|
|
34529
|
+
var o = e.style, i = n.scaleX < 0, c = "px", l = "deg", d = getComputedStyle(e), h = da(e, gt) || "0", u, p, y, m, g, f, k, v, M, w, C, b, I, j, N, S, R, A, P, T, F, B, z, V, D, X, ie, ee, qe, J, Y, Q;
|
|
34530
|
+
return u = p = y = f = k = v = M = w = C = 0, m = g = 1, n.svg = !!(e.getCTM && vN(e)), d.translate && ((d.translate !== "none" || d.scale !== "none" || d.rotate !== "none") && (o[He] = (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[He] !== "none" ? d[He] : "")), o.scale = o.rotate = o.translate = "none"), j = _j(e, n.svg), n.svg && (n.uncache ? (D = e.getBBox(), h = n.xOrigin - D.x + "px " + (n.yOrigin - D.y) + "px", V = "") : V = !r && e.getAttribute("data-svg-origin"), YC(e, V || h, !!V || n.originIsAbsolute, n.smooth !== !1, j)), b = n.xOrigin || 0, I = n.yOrigin || 0, j !== Uc && (A = j[0], P = j[1], T = j[2], F = j[3], u = B = j[4], p = z = j[5], j.length === 6 ? (m = Math.sqrt(A * A + P * P), g = Math.sqrt(F * F + T * T), f = A || P ? cs(P, A) * Ti : 0, M = T || F ? cs(T, F) * Ti + f : 0, M && (g *= Math.abs(Math.cos(M * _s))), n.svg && (u -= b - (b * A + I * T), p -= I - (b * P + I * F))) : (Q = j[6], J = j[7], ie = j[8], ee = j[9], qe = j[10], Y = j[11], u = j[12], p = j[13], y = j[14], N = cs(Q, qe), k = N * Ti, N && (S = Math.cos(-N), R = Math.sin(-N), V = B * S + ie * R, D = z * S + ee * R, X = Q * S + qe * R, ie = B * -R + ie * S, ee = z * -R + ee * S, qe = Q * -R + qe * S, Y = J * -R + Y * S, B = V, z = D, Q = X), N = cs(-T, qe), v = N * Ti, N && (S = Math.cos(-N), R = Math.sin(-N), V = A * S - ie * R, D = P * S - ee * R, X = T * S - qe * R, Y = F * R + Y * S, A = V, P = D, T = X), N = cs(P, A), f = N * Ti, N && (S = Math.cos(N), R = Math.sin(N), V = A * S + P * R, D = B * S + z * R, P = P * S - A * R, z = z * S - B * R, A = V, B = D), k && Math.abs(k) + Math.abs(f) > 359.9 && (k = f = 0, v = 180 - v), m = Ge(Math.sqrt(A * A + P * P + T * T)), g = Ge(Math.sqrt(z * z + Q * Q)), N = cs(B, z), M = Math.abs(N) > 2e-4 ? N * Ti : 0, C = Y ? 1 / (Y < 0 ? -Y : Y) : 0), n.svg && (V = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !wN(da(e, He)), V && e.setAttribute("transform", V))), Math.abs(M) > 90 && Math.abs(M) < 270 && (i ? (m *= -1, M += f <= 0 ? 180 : -180, f += f <= 0 ? 180 : -180) : (g *= -1, M += M <= 0 ? 180 : -180)), r = r || n.uncache, n.x = u - ((n.xPercent = u && (!r && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + c, n.y = p - ((n.yPercent = p && (!r && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + c, n.z = y + c, n.scaleX = Ge(m), n.scaleY = Ge(g), n.rotation = Ge(f) + l, n.rotationX = Ge(k) + l, n.rotationY = Ge(v) + l, n.skewX = M + l, n.skewY = w + l, n.transformPerspective = C + c, (n.zOrigin = parseFloat(h.split(" ")[2]) || !r && n.zOrigin || 0) && (o[gt] = kb(h)), n.xOffset = n.yOffset = 0, n.force3D = Nt.force3D, n.renderTransform = n.svg ? Eq : kN ? bN : Oq, n.uncache = 0, n;
|
|
34531
34531
|
}, kb = function(e) {
|
|
34532
34532
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
34533
34533
|
}, yC = function(e, r, n) {
|
|
@@ -34536,15 +34536,15 @@ var DL, Va, Ps, Nj, Ri, zL, Aj, Mq = function() {
|
|
|
34536
34536
|
}, Oq = function(e, r) {
|
|
34537
34537
|
r.z = "0px", r.rotationY = r.rotationX = "0deg", r.force3D = 0, bN(e, r);
|
|
34538
34538
|
}, lr = "0deg", sc = "0px", dr = ") ", bN = function(e, r) {
|
|
34539
|
-
var n = r || this, o = n.xPercent, i = n.yPercent, c = n.x, l = n.y, d = n.z, h = n.rotation, u = n.rotationY, p = n.rotationX, y = n.skewX, m = n.skewY,
|
|
34539
|
+
var n = r || this, o = n.xPercent, i = n.yPercent, c = n.x, l = n.y, d = n.z, h = n.rotation, u = n.rotationY, p = n.rotationX, y = n.skewX, m = n.skewY, g = n.scaleX, f = n.scaleY, k = n.transformPerspective, v = n.force3D, M = n.target, w = n.zOrigin, C = "", b = v === "auto" && e && e !== 1 || v === !0;
|
|
34540
34540
|
if (w && (p !== lr || u !== lr)) {
|
|
34541
34541
|
var I = parseFloat(u) * _s, j = Math.sin(I), N = Math.cos(I), S;
|
|
34542
34542
|
I = parseFloat(p) * _s, S = Math.cos(I), c = yC(M, c, j * S * -w), l = yC(M, l, -Math.sin(I) * -w), d = yC(M, d, N * S * -w + w);
|
|
34543
34543
|
}
|
|
34544
|
-
|
|
34544
|
+
k !== sc && (C += "perspective(" + k + dr), (o || i) && (C += "translate(" + o + "%, " + i + "%) "), (b || c !== sc || l !== sc || d !== sc) && (C += d !== sc || b ? "translate3d(" + c + ", " + l + ", " + d + ") " : "translate(" + c + ", " + l + dr), h !== lr && (C += "rotate(" + h + dr), u !== lr && (C += "rotateY(" + u + dr), p !== lr && (C += "rotateX(" + p + dr), (y !== lr || m !== lr) && (C += "skew(" + y + ", " + m + dr), (g !== 1 || f !== 1) && (C += "scale(" + g + ", " + f + dr), M.style[He] = C || "translate(0, 0)";
|
|
34545
34545
|
}, Eq = function(e, r) {
|
|
34546
|
-
var n = r || this, o = n.xPercent, i = n.yPercent, c = n.x, l = n.y, d = n.rotation, h = n.skewX, u = n.skewY, p = n.scaleX, y = n.scaleY, m = n.target,
|
|
34547
|
-
d = parseFloat(d), h = parseFloat(h), u = parseFloat(u), u && (u = parseFloat(u), h += u, d += u), d || h ? (d *= _s, h *= _s, b = Math.cos(d) * p, I = Math.sin(d) * p, j = Math.sin(d - h) * -y, N = Math.cos(d - h) * y, h && (u *= _s, S = Math.tan(h - u), S = Math.sqrt(1 + S * S), j *= S, N *= S, u && (S = Math.tan(u), S = Math.sqrt(1 + S * S), b *= S, I *= S)), b = Ge(b), I = Ge(I), j = Ge(j), N = Ge(N)) : (b = p, N = y, I = j = 0), (w && !~(c + "").indexOf("px") || C && !~(l + "").indexOf("px")) && (w = Ya(m, "x", c, "px"), C = Ya(m, "y", l, "px")), (
|
|
34546
|
+
var n = r || this, o = n.xPercent, i = n.yPercent, c = n.x, l = n.y, d = n.rotation, h = n.skewX, u = n.skewY, p = n.scaleX, y = n.scaleY, m = n.target, g = n.xOrigin, f = n.yOrigin, k = n.xOffset, v = n.yOffset, M = n.forceCSS, w = parseFloat(c), C = parseFloat(l), b, I, j, N, S;
|
|
34547
|
+
d = parseFloat(d), h = parseFloat(h), u = parseFloat(u), u && (u = parseFloat(u), h += u, d += u), d || h ? (d *= _s, h *= _s, b = Math.cos(d) * p, I = Math.sin(d) * p, j = Math.sin(d - h) * -y, N = Math.cos(d - h) * y, h && (u *= _s, S = Math.tan(h - u), S = Math.sqrt(1 + S * S), j *= S, N *= S, u && (S = Math.tan(u), S = Math.sqrt(1 + S * S), b *= S, I *= S)), b = Ge(b), I = Ge(I), j = Ge(j), N = Ge(N)) : (b = p, N = y, I = j = 0), (w && !~(c + "").indexOf("px") || C && !~(l + "").indexOf("px")) && (w = Ya(m, "x", c, "px"), C = Ya(m, "y", l, "px")), (g || f || k || v) && (w = Ge(w + g - (g * b + f * j) + k), C = Ge(C + f - (g * I + f * N) + v)), (o || i) && (S = m.getBBox(), w = Ge(w + o / 100 * S.width), C = Ge(C + i / 100 * S.height)), S = "matrix(" + b + "," + I + "," + j + "," + N + "," + w + "," + C + ")", m.setAttribute("transform", S), M && (m.style[He] = S);
|
|
34548
34548
|
}, Hq = function(e, r, n, o, i) {
|
|
34549
34549
|
var c = 360, l = et(i), d = parseFloat(i) * (l && ~i.indexOf("rad") ? Ti : 1), h = d - o, u = o + h + "deg", p, y;
|
|
34550
34550
|
return l && (p = i.split("_")[1], p === "short" && (h %= c, h !== h % (c / 2) && (h += h < 0 ? c : -c)), p === "cw" && h < 0 ? h = (h + c * FL) % c - ~~(h / c) * c : p === "ccw" && h > 0 && (h = (h - c * FL) % c - ~~(h / c) * c)), e._pt = y = new kt(e._pt, r, n, o, h, Cq), y.e = u, y.u = "deg", e._props.push(n), y;
|
|
@@ -34553,10 +34553,10 @@ var DL, Va, Ps, Nj, Ri, zL, Aj, Mq = function() {
|
|
|
34553
34553
|
e[n] = r[n];
|
|
34554
34554
|
return e;
|
|
34555
34555
|
}, Vq = function(e, r, n) {
|
|
34556
|
-
var o = UL({}, n._gsap), i = "perspective,force3D,transformOrigin,svgOrigin", c = n.style, l, d, h, u, p, y, m,
|
|
34556
|
+
var o = UL({}, n._gsap), i = "perspective,force3D,transformOrigin,svgOrigin", c = n.style, l, d, h, u, p, y, m, g;
|
|
34557
34557
|
o.svg ? (h = n.getAttribute("transform"), n.setAttribute("transform", ""), c[He] = r, l = $c(n, 1), Wi(n, He), n.setAttribute("transform", h)) : (h = getComputedStyle(n)[He], c[He] = r, l = $c(n, 1), c[He] = h);
|
|
34558
34558
|
for (d in Na)
|
|
34559
|
-
h = o[d], u = l[d], h !== u && i.indexOf(d) < 0 && (m = ct(h),
|
|
34559
|
+
h = o[d], u = l[d], h !== u && i.indexOf(d) < 0 && (m = ct(h), g = ct(u), p = m !== g ? Ya(n, d, h, g) : parseFloat(h), y = parseFloat(u), e._pt = new kt(e._pt, l, d, p, y - p, ZC), e._pt.u = g || 0, e._props.push(d));
|
|
34560
34560
|
UL(l, o);
|
|
34561
34561
|
};
|
|
34562
34562
|
xt("padding,margin,Width,Radius", function(t, e) {
|
|
@@ -34566,11 +34566,11 @@ xt("padding,margin,Width,Radius", function(t, e) {
|
|
|
34566
34566
|
xb[e > 1 ? "border" + t : t] = function(l, d, h, u, p) {
|
|
34567
34567
|
var y, m;
|
|
34568
34568
|
if (arguments.length < 4)
|
|
34569
|
-
return y = c.map(function(
|
|
34570
|
-
return wa(l,
|
|
34569
|
+
return y = c.map(function(g) {
|
|
34570
|
+
return wa(l, g, h);
|
|
34571
34571
|
}), m = y.join(" "), m.split(y[0]).length === 5 ? y[0] : m;
|
|
34572
|
-
y = (u + "").split(" "), m = {}, c.forEach(function(
|
|
34573
|
-
return m[
|
|
34572
|
+
y = (u + "").split(" "), m = {}, c.forEach(function(g, f) {
|
|
34573
|
+
return m[g] = y[f] = y[f] || y[(f - 1) / 2 | 0];
|
|
34574
34574
|
}), l.init(d, m, p);
|
|
34575
34575
|
};
|
|
34576
34576
|
});
|
|
@@ -34581,14 +34581,14 @@ var CN = {
|
|
|
34581
34581
|
return e.style && e.nodeType;
|
|
34582
34582
|
},
|
|
34583
34583
|
init: function(e, r, n, o, i) {
|
|
34584
|
-
var c = this._props, l = e.style, d = n.vars.startAt, h, u, p, y, m,
|
|
34584
|
+
var c = this._props, l = e.style, d = n.vars.startAt, h, u, p, y, m, g, f, k, v, M, w, C, b, I, j, N;
|
|
34585
34585
|
Nj || JC(), this.styles = this.styles || xN(e), N = this.styles.props, this.tween = n;
|
|
34586
34586
|
for (f in r)
|
|
34587
34587
|
if (f !== "autoRound" && (u = r[f], !(bt[f] && iN(f, r, n, o, e, i)))) {
|
|
34588
|
-
if (m = typeof u,
|
|
34589
|
-
|
|
34588
|
+
if (m = typeof u, g = xb[f], m === "function" && (u = u.call(n, o, e, i), m = typeof u), m === "string" && ~u.indexOf("random(") && (u = Hc(u)), g)
|
|
34589
|
+
g(this, e, f, u, n) && (j = 1);
|
|
34590
34590
|
else if (f.substr(0, 2) === "--")
|
|
34591
|
-
h = (getComputedStyle(e).getPropertyValue(f) + "").trim(), u += "", Za.lastIndex = 0, Za.test(h) || (
|
|
34591
|
+
h = (getComputedStyle(e).getPropertyValue(f) + "").trim(), u += "", Za.lastIndex = 0, Za.test(h) || (k = ct(h), v = ct(u)), v ? k !== v && (h = Ya(e, f, h, v) + v) : k && (u += k), this.add(l, "setProperty", h, u, o, i, 0, 0, f), c.push(f), N.push(f, 0, l[f]);
|
|
34592
34592
|
else if (m !== "undefined") {
|
|
34593
34593
|
if (d && f in d ? (h = typeof d[f] == "function" ? d[f].call(n, o, e, i) : d[f], et(h) && ~h.indexOf("random(") && (h = Hc(h)), ct(h + "") || h === "auto" || (h += Nt.units[f] || ct(wa(e, f)) || ""), (h + "").charAt(1) === "=" && (h = wa(e, f))) : h = wa(e, f), y = parseFloat(h), M = m === "string" && u.charAt(1) === "=" && u.substr(0, 2), M && (u = u.substr(2)), p = parseFloat(u), f in sa && (f === "autoAlpha" && (y === 1 && wa(e, "visibility") === "hidden" && p && (y = 0), N.push("visibility", 0, l.visibility), Ba(this, l, "visibility", y ? "inherit" : "hidden", p ? "inherit" : "hidden", !p)), f !== "scale" && f !== "transform" && (f = sa[f], ~f.indexOf(",") && (f = f.split(",")[0]))), w = f in Na, w) {
|
|
34594
34594
|
if (this.styles.save(f), C || (b = e._gsap, b.renderTransform && !r.parseTransform || $c(e, r.parseTransform), I = r.smoothOrigin !== !1 && b.smooth, C = this._pt = new kt(this._pt, l, He, 0, 1, b.renderTransform, b, 0, -1), C.dep = 1), f === "scale")
|
|
@@ -34614,7 +34614,7 @@ var CN = {
|
|
|
34614
34614
|
}
|
|
34615
34615
|
} else f in l || (f = Hs(f) || f);
|
|
34616
34616
|
if (w || (p || p === 0) && (y || y === 0) && !bq.test(u) && f in l)
|
|
34617
|
-
|
|
34617
|
+
k = (h + "").substr((y + "").length), p || (p = 0), v = ct(u) || (f in Nt.units ? Nt.units[f] : k), k !== v && (y = Ya(e, f, h, v)), this._pt = new kt(this._pt, w ? b : l, f, y, (M ? As(y, M + p) : p) - y, !w && (v === "px" || f === "zIndex") && r.autoRound !== !1 ? Lq : ZC), this._pt.u = v || 0, k !== v && v !== "%" && (this._pt.b = h, this._pt.r = jq);
|
|
34618
34618
|
else if (f in l)
|
|
34619
34619
|
Dq.call(this, e, f, h, M ? M + u : u);
|
|
34620
34620
|
else if (f in e)
|
|
@@ -34876,7 +34876,7 @@ function Gq({ destinations: t, title: e, description: r }) {
|
|
|
34876
34876
|
let m;
|
|
34877
34877
|
return i && (m = setInterval(() => {
|
|
34878
34878
|
o(
|
|
34879
|
-
(
|
|
34879
|
+
(g) => (g + 1) % (t.length - d + 1)
|
|
34880
34880
|
);
|
|
34881
34881
|
}, 5e3)), () => clearInterval(m);
|
|
34882
34882
|
}, [i]);
|
|
@@ -34895,7 +34895,7 @@ function Gq({ destinations: t, title: e, description: r }) {
|
|
|
34895
34895
|
/* @__PURE__ */ a.jsx("p", { className: "mt-4 text-xl text-gray-600", children: r })
|
|
34896
34896
|
] }),
|
|
34897
34897
|
/* @__PURE__ */ a.jsxs("div", { className: "mt-16 relative", children: [
|
|
34898
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex gap-4 md:gap-6 lg:gap-8", children: y.map((m,
|
|
34898
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-4 md:gap-6 lg:gap-8", children: y.map((m, g) => /* @__PURE__ */ a.jsxs(
|
|
34899
34899
|
"div",
|
|
34900
34900
|
{
|
|
34901
34901
|
className: "w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",
|
|
@@ -34917,7 +34917,7 @@ function Gq({ destinations: t, title: e, description: r }) {
|
|
|
34917
34917
|
] }) })
|
|
34918
34918
|
]
|
|
34919
34919
|
},
|
|
34920
|
-
n +
|
|
34920
|
+
n + g
|
|
34921
34921
|
)) }),
|
|
34922
34922
|
/* @__PURE__ */ a.jsx(
|
|
34923
34923
|
"button",
|
|
@@ -34938,15 +34938,15 @@ function Gq({ destinations: t, title: e, description: r }) {
|
|
|
34938
34938
|
}
|
|
34939
34939
|
)
|
|
34940
34940
|
] }),
|
|
34941
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex justify-center mt-8 space-x-2", children: Array.from({ length: Math.ceil(t.length / d) }).map((m,
|
|
34941
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex justify-center mt-8 space-x-2", children: Array.from({ length: Math.ceil(t.length / d) }).map((m, g) => /* @__PURE__ */ a.jsx(
|
|
34942
34942
|
"button",
|
|
34943
34943
|
{
|
|
34944
34944
|
onClick: () => {
|
|
34945
|
-
o(
|
|
34945
|
+
o(g * d), c(!1);
|
|
34946
34946
|
},
|
|
34947
|
-
className: `w-2 h-2 rounded-full transition-all ${Math.floor(n / d) ===
|
|
34947
|
+
className: `w-2 h-2 rounded-full transition-all ${Math.floor(n / d) === g ? "bg-yellow-600 w-4" : "bg-gray-300 hover:bg-gray-400"}`
|
|
34948
34948
|
},
|
|
34949
|
-
|
|
34949
|
+
g
|
|
34950
34950
|
)) })
|
|
34951
34951
|
] }) });
|
|
34952
34952
|
}
|
|
@@ -35477,12 +35477,12 @@ function iD({
|
|
|
35477
35477
|
const l = (d) => {
|
|
35478
35478
|
const h = d / 10 * 5, u = Math.floor(h), p = h % 1, y = 5 - Math.ceil(h);
|
|
35479
35479
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
35480
|
-
[...Array(u)].map((m,
|
|
35480
|
+
[...Array(u)].map((m, g) => /* @__PURE__ */ a.jsx(Dt, { className: "w-5 h-5 text-yellow-400 fill-current" }, `full-${g}`)),
|
|
35481
35481
|
p > 0 && /* @__PURE__ */ a.jsxs("div", { className: "relative w-5 h-5", children: [
|
|
35482
35482
|
/* @__PURE__ */ a.jsx(Dt, { className: "absolute w-5 h-5 text-gray-300 fill-current" }),
|
|
35483
35483
|
/* @__PURE__ */ a.jsx("div", { className: "absolute overflow-hidden", style: { width: `${p * 100}%` }, children: /* @__PURE__ */ a.jsx(Dt, { className: "w-5 h-5 text-yellow-400 fill-current" }) })
|
|
35484
35484
|
] }),
|
|
35485
|
-
[...Array(y)].map((m,
|
|
35485
|
+
[...Array(y)].map((m, g) => /* @__PURE__ */ a.jsx(Dt, { className: "w-5 h-5 text-gray-300" }, `empty-${g}`))
|
|
35486
35486
|
] });
|
|
35487
35487
|
};
|
|
35488
35488
|
return /* @__PURE__ */ a.jsx("section", { className: "py-20 bg-gray-50", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
|
|
@@ -36047,35 +36047,35 @@ function HB({
|
|
|
36047
36047
|
const f = await fetch(i || "/api/featured-jobs");
|
|
36048
36048
|
if (!f.ok)
|
|
36049
36049
|
throw new Error(`Failed to fetch jobs: ${f.status}`);
|
|
36050
|
-
const
|
|
36051
|
-
if (!Array.isArray(
|
|
36050
|
+
const k = await f.json();
|
|
36051
|
+
if (!Array.isArray(k))
|
|
36052
36052
|
throw new Error("Expected an array of jobs");
|
|
36053
|
-
l(
|
|
36054
|
-
} catch (
|
|
36055
|
-
console.error("Error fetching jobs:",
|
|
36053
|
+
l(k);
|
|
36054
|
+
} catch (g) {
|
|
36055
|
+
console.error("Error fetching jobs:", g), p(g instanceof Error ? g.message : "Failed to load jobs"), l(y());
|
|
36056
36056
|
} finally {
|
|
36057
36057
|
h(!1);
|
|
36058
36058
|
}
|
|
36059
36059
|
})();
|
|
36060
36060
|
}, [r, i]);
|
|
36061
36061
|
const y = () => {
|
|
36062
|
-
const m = ["Bet365", "Entain", "Flutter", "DraftKings", "Pinnacle"],
|
|
36062
|
+
const m = ["Bet365", "Entain", "Flutter", "DraftKings", "Pinnacle"], g = [
|
|
36063
36063
|
"Game Developer",
|
|
36064
36064
|
"CRM Manager",
|
|
36065
36065
|
"VIP Account Manager",
|
|
36066
36066
|
"Compliance Specialist",
|
|
36067
36067
|
"UX Designer"
|
|
36068
36068
|
], f = ["Malta", "London", "Gibraltar", "Remote", "New York"];
|
|
36069
|
-
return Array.from({ length: 6 }, (
|
|
36069
|
+
return Array.from({ length: 6 }, (k, v) => ({
|
|
36070
36070
|
id: `mock-job-${v}`,
|
|
36071
|
-
title:
|
|
36071
|
+
title: g[v % g.length],
|
|
36072
36072
|
company: m[v % m.length],
|
|
36073
36073
|
companyLogo: `/logos/${m[v % m.length].toLowerCase()}.png`,
|
|
36074
36074
|
location: f[v % f.length],
|
|
36075
36075
|
salary: `€${Math.floor(Math.random() * 30) + 40},000`
|
|
36076
36076
|
}));
|
|
36077
36077
|
};
|
|
36078
|
-
return d ? /* @__PURE__ */ a.jsx("section", { className: "py-16 bg-white", children: /* @__PURE__ */ a.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: [...Array(3)].map((m,
|
|
36078
|
+
return d ? /* @__PURE__ */ a.jsx("section", { className: "py-16 bg-white", children: /* @__PURE__ */ a.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: [...Array(3)].map((m, g) => /* @__PURE__ */ a.jsxs("div", { className: "border border-gray-200 rounded-lg p-6 animate-pulse", children: [
|
|
36079
36079
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-4 mb-4", children: [
|
|
36080
36080
|
/* @__PURE__ */ a.jsx("div", { className: "w-12 h-12 bg-gray-200 rounded" }),
|
|
36081
36081
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -36086,7 +36086,7 @@ function HB({
|
|
|
36086
36086
|
/* @__PURE__ */ a.jsx("div", { className: "h-3 bg-gray-200 rounded w-1/2 mb-4" }),
|
|
36087
36087
|
/* @__PURE__ */ a.jsx("div", { className: "h-3 bg-gray-200 rounded w-1/4 mb-4" }),
|
|
36088
36088
|
/* @__PURE__ */ a.jsx("div", { className: "h-10 bg-gray-200 rounded" })
|
|
36089
|
-
] },
|
|
36089
|
+
] }, g)) }) }) }) : u && c.length === 0 ? /* @__PURE__ */ a.jsx("section", { className: "py-16 bg-white", children: /* @__PURE__ */ a.jsx("div", { className: "container mx-auto px-4 text-center", children: /* @__PURE__ */ a.jsxs("div", { className: "bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block", children: [
|
|
36090
36090
|
/* @__PURE__ */ a.jsx("p", { children: u }),
|
|
36091
36091
|
/* @__PURE__ */ a.jsx(
|
|
36092
36092
|
$,
|
|
@@ -36113,8 +36113,8 @@ function HB({
|
|
|
36113
36113
|
width: 48,
|
|
36114
36114
|
height: 48,
|
|
36115
36115
|
className: "rounded",
|
|
36116
|
-
onError: (
|
|
36117
|
-
|
|
36116
|
+
onError: (g) => {
|
|
36117
|
+
g.target.src = "/placeholder.svg";
|
|
36118
36118
|
}
|
|
36119
36119
|
}
|
|
36120
36120
|
) }),
|
|
@@ -36396,8 +36396,8 @@ function bD({
|
|
|
36396
36396
|
return;
|
|
36397
36397
|
}
|
|
36398
36398
|
try {
|
|
36399
|
-
const
|
|
36400
|
-
|
|
36399
|
+
const k = localStorage.getItem("email"), v = localStorage.getItem("leadId");
|
|
36400
|
+
k && v && (y(!0), d(k));
|
|
36401
36401
|
} catch {
|
|
36402
36402
|
}
|
|
36403
36403
|
}, [i, c]);
|
|
@@ -36408,7 +36408,7 @@ function bD({
|
|
|
36408
36408
|
}
|
|
36409
36409
|
u(!0);
|
|
36410
36410
|
try {
|
|
36411
|
-
const
|
|
36411
|
+
const k = await fetch(`${n}/api/leads`, {
|
|
36412
36412
|
method: "POST",
|
|
36413
36413
|
headers: { "Content-Type": "application/json" },
|
|
36414
36414
|
body: JSON.stringify({
|
|
@@ -36419,11 +36419,11 @@ function bD({
|
|
|
36419
36419
|
utmSource: "newsletter_component"
|
|
36420
36420
|
})
|
|
36421
36421
|
});
|
|
36422
|
-
if (
|
|
36423
|
-
const v = await
|
|
36422
|
+
if (k.ok) {
|
|
36423
|
+
const v = await k.json();
|
|
36424
36424
|
localStorage.setItem("leadId", v.id), localStorage.setItem("email", l), y(!0);
|
|
36425
36425
|
} else {
|
|
36426
|
-
const v = await
|
|
36426
|
+
const v = await k.text();
|
|
36427
36427
|
alert("Submission failed: " + v);
|
|
36428
36428
|
}
|
|
36429
36429
|
} catch {
|
|
@@ -36431,11 +36431,11 @@ function bD({
|
|
|
36431
36431
|
} finally {
|
|
36432
36432
|
u(!1);
|
|
36433
36433
|
}
|
|
36434
|
-
},
|
|
36434
|
+
}, g = p || i, f = c ?? l;
|
|
36435
36435
|
return /* @__PURE__ */ a.jsx("section", { className: "py-12 bg-[#0f1219] text-white", children: /* @__PURE__ */ a.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-3xl mx-auto text-center", children: [
|
|
36436
36436
|
/* @__PURE__ */ a.jsx("h2", { className: "text-2xl font-bold mb-4", children: t }),
|
|
36437
36437
|
/* @__PURE__ */ a.jsx("p", { className: "text-gray-300 mb-6", children: e }),
|
|
36438
|
-
|
|
36438
|
+
g ? /* @__PURE__ */ a.jsxs("p", { className: "text-green-400 font-semibold", children: [
|
|
36439
36439
|
"✅ Thanks! You’re subscribed",
|
|
36440
36440
|
f ? ` as ${f}` : "",
|
|
36441
36441
|
"."
|
|
@@ -36446,7 +36446,7 @@ function bD({
|
|
|
36446
36446
|
type: "email",
|
|
36447
36447
|
placeholder: r,
|
|
36448
36448
|
value: l,
|
|
36449
|
-
onChange: (
|
|
36449
|
+
onChange: (k) => d(k.target.value),
|
|
36450
36450
|
className: "px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"
|
|
36451
36451
|
}
|
|
36452
36452
|
),
|
|
@@ -36474,7 +36474,7 @@ function CD({
|
|
|
36474
36474
|
mockMode: d = !1,
|
|
36475
36475
|
searchPageUrl: h = "#"
|
|
36476
36476
|
}) {
|
|
36477
|
-
const [u, p] = _(""), [y, m] = _(""), [
|
|
36477
|
+
const [u, p] = _(""), [y, m] = _(""), [g, f] = _([]), [k, v] = _(!1), M = "Browse 3,500+ iGaming Jobs", w = [
|
|
36478
36478
|
{ id: "malta", name: "Malta" },
|
|
36479
36479
|
{ id: "remote", name: "Remote" },
|
|
36480
36480
|
{ id: "uk", name: "United Kingdom" },
|
|
@@ -36550,7 +36550,7 @@ function CD({
|
|
|
36550
36550
|
list: "job-suggestions"
|
|
36551
36551
|
}
|
|
36552
36552
|
),
|
|
36553
|
-
/* @__PURE__ */ a.jsx("datalist", { id: "job-suggestions", children:
|
|
36553
|
+
/* @__PURE__ */ a.jsx("datalist", { id: "job-suggestions", children: g.map((S, R) => /* @__PURE__ */ a.jsx("option", { value: S }, R)) }),
|
|
36554
36554
|
u && /* @__PURE__ */ a.jsx(
|
|
36555
36555
|
"button",
|
|
36556
36556
|
{
|
|
@@ -36559,7 +36559,7 @@ function CD({
|
|
|
36559
36559
|
children: /* @__PURE__ */ a.jsx(na, { className: "h-5 w-5 text-gray-400 hover:text-gray-600" })
|
|
36560
36560
|
}
|
|
36561
36561
|
),
|
|
36562
|
-
|
|
36562
|
+
k && /* @__PURE__ */ a.jsx("div", { className: "absolute inset-y-0 right-0 pr-10 flex items-center", children: /* @__PURE__ */ a.jsx("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400" }) })
|
|
36563
36563
|
] }),
|
|
36564
36564
|
l && /* @__PURE__ */ a.jsx("div", { className: "w-full md:w-1/3", children: /* @__PURE__ */ a.jsxs(
|
|
36565
36565
|
"select",
|
|
@@ -36578,10 +36578,10 @@ function CD({
|
|
|
36578
36578
|
{
|
|
36579
36579
|
className: "bg-yellow-500 hover:bg-yellow-400 text-black font-medium",
|
|
36580
36580
|
onClick: N,
|
|
36581
|
-
disabled:
|
|
36581
|
+
disabled: k,
|
|
36582
36582
|
children: [
|
|
36583
36583
|
/* @__PURE__ */ a.jsx(Ht, { size: 18 }),
|
|
36584
|
-
|
|
36584
|
+
k ? "Searching..." : n || "Search"
|
|
36585
36585
|
]
|
|
36586
36586
|
}
|
|
36587
36587
|
)
|
|
@@ -36805,8 +36805,8 @@ function ND({
|
|
|
36805
36805
|
headers: { "content-type": "application/json" },
|
|
36806
36806
|
body: JSON.stringify(m)
|
|
36807
36807
|
});
|
|
36808
|
-
} catch (
|
|
36809
|
-
console.warn("Consent API unavailable, kept only locally",
|
|
36808
|
+
} catch (g) {
|
|
36809
|
+
console.warn("Consent API unavailable, kept only locally", g);
|
|
36810
36810
|
}
|
|
36811
36811
|
};
|
|
36812
36812
|
return /* @__PURE__ */ a.jsx(IN.Provider, { value: { consent: r, ready: o, update: u }, children: e });
|
|
@@ -37344,7 +37344,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
37344
37344
|
const l = t.min_salary || 0, d = t.max_salary || 0, h = `$${l.toLocaleString()} - $${d.toLocaleString()}`, p = ((m) => {
|
|
37345
37345
|
if (!m) return "Recently posted";
|
|
37346
37346
|
try {
|
|
37347
|
-
const
|
|
37347
|
+
const g = new Date(m), k = Math.abs((/* @__PURE__ */ new Date()).getTime() - g.getTime()), v = Math.floor(k / (1e3 * 60 * 60 * 24));
|
|
37348
37348
|
return v === 0 ? "Today" : v === 1 ? "Yesterday" : v < 7 ? `${v} days ago` : v < 30 ? `${Math.floor(v / 7)} weeks ago` : v < 365 ? `${Math.floor(v / 30)} months ago` : `${Math.floor(v / 365)} years ago`;
|
|
37349
37349
|
} catch {
|
|
37350
37350
|
return "Recently posted";
|
|
@@ -37585,7 +37585,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
37585
37585
|
)
|
|
37586
37586
|
}
|
|
37587
37587
|
), BB = ({ apiUrl: t, itemsPerPage: e, filterKeys: r, enableSearch: n, enablePagination: o, enableMobileFilter: i, banners: c }) => {
|
|
37588
|
-
const [l, d] = _([]), [h, u] = _([]), [p, y] = _(1), [m,
|
|
37588
|
+
const [l, d] = _([]), [h, u] = _([]), [p, y] = _(1), [m, g] = _({}), [f, k] = _([]), [v, M] = _({}), [w, C] = _(""), [b, I] = _([]), [j, N] = _(!1);
|
|
37589
37589
|
ce(() => {
|
|
37590
37590
|
fetch(`${t}/items`).then((J) => J.json()).then((J) => {
|
|
37591
37591
|
d(J), u(J);
|
|
@@ -37610,7 +37610,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
37610
37610
|
const Y = S(J);
|
|
37611
37611
|
M(Y);
|
|
37612
37612
|
}, A = (J, Y) => {
|
|
37613
|
-
|
|
37613
|
+
g((Q) => {
|
|
37614
37614
|
const te = Y ? { ...Q, [J]: Y } : { ...Q };
|
|
37615
37615
|
Y || delete te[J];
|
|
37616
37616
|
const G = B(l, te, f);
|
|
@@ -37628,13 +37628,13 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
37628
37628
|
if (J.key === "Enter" && w.trim()) {
|
|
37629
37629
|
J.preventDefault();
|
|
37630
37630
|
const Y = [...f, w.trim()];
|
|
37631
|
-
|
|
37631
|
+
k(Y);
|
|
37632
37632
|
const Q = B(l, m, Y);
|
|
37633
37633
|
u(Q), y(1), R(Q), C("");
|
|
37634
37634
|
}
|
|
37635
37635
|
}, F = (J) => {
|
|
37636
37636
|
const Y = f.filter((te) => te !== J);
|
|
37637
|
-
|
|
37637
|
+
k(Y);
|
|
37638
37638
|
const Q = B(l, m, Y);
|
|
37639
37639
|
u(Q), y(1), R(Q);
|
|
37640
37640
|
}, B = (J, Y, Q) => {
|
|
@@ -37648,7 +37648,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
37648
37648
|
);
|
|
37649
37649
|
return Q.length > 0 && (te = te.filter((G) => Q.every((ae) => G.title.toLowerCase().includes(ae.toLowerCase())))), te;
|
|
37650
37650
|
}, z = () => {
|
|
37651
|
-
|
|
37651
|
+
g({}), k([]), u(l), y(1), R(l);
|
|
37652
37652
|
}, V = () => {
|
|
37653
37653
|
N(!j);
|
|
37654
37654
|
}, D = (J) => {
|
|
@@ -38028,35 +38028,35 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
38028
38028
|
}
|
|
38029
38029
|
)
|
|
38030
38030
|
] }),
|
|
38031
|
-
r.map((
|
|
38031
|
+
r.map((g) => {
|
|
38032
38032
|
var f;
|
|
38033
38033
|
return /* @__PURE__ */ a.jsxs("div", { className: "mb-6", children: [
|
|
38034
|
-
/* @__PURE__ */ a.jsx("h3", { className: "text-sm font-medium text-gray-900 mb-2", children:
|
|
38035
|
-
n.includes(
|
|
38034
|
+
/* @__PURE__ */ a.jsx("h3", { className: "text-sm font-medium text-gray-900 mb-2", children: g.replace(/_/g, " ") }),
|
|
38035
|
+
n.includes(g) ? /* @__PURE__ */ a.jsx(
|
|
38036
38036
|
Rj,
|
|
38037
38037
|
{
|
|
38038
|
-
options: d[
|
|
38039
|
-
value: i[
|
|
38040
|
-
onChange: (
|
|
38041
|
-
placeholder: `Select ${
|
|
38038
|
+
options: d[g] || [],
|
|
38039
|
+
value: i[g] || "",
|
|
38040
|
+
onChange: (k) => c(g, k),
|
|
38041
|
+
placeholder: `Select ${g.replace(/_/g, " ")}`,
|
|
38042
38042
|
className: "w-full"
|
|
38043
38043
|
}
|
|
38044
38044
|
) : /* @__PURE__ */ a.jsxs(
|
|
38045
38045
|
"select",
|
|
38046
38046
|
{
|
|
38047
38047
|
className: "w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",
|
|
38048
|
-
value: i[
|
|
38049
|
-
onChange: (
|
|
38048
|
+
value: i[g] || "",
|
|
38049
|
+
onChange: (k) => c(g, k.target.value),
|
|
38050
38050
|
children: [
|
|
38051
38051
|
/* @__PURE__ */ a.jsxs("option", { value: "", children: [
|
|
38052
38052
|
"Select ",
|
|
38053
|
-
|
|
38053
|
+
g.replace(/_/g, " ")
|
|
38054
38054
|
] }),
|
|
38055
|
-
(f = d[
|
|
38055
|
+
(f = d[g]) == null ? void 0 : f.map((k) => /* @__PURE__ */ a.jsx("option", { value: k, children: k }, k))
|
|
38056
38056
|
]
|
|
38057
38057
|
}
|
|
38058
38058
|
)
|
|
38059
|
-
] },
|
|
38059
|
+
] }, g);
|
|
38060
38060
|
}),
|
|
38061
38061
|
/* @__PURE__ */ a.jsx("div", { className: "mt-6", children: /* @__PURE__ */ a.jsxs(
|
|
38062
38062
|
"button",
|
|
@@ -38101,11 +38101,11 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
38101
38101
|
className: i = "",
|
|
38102
38102
|
showSubmitButton: c = !1
|
|
38103
38103
|
}) => {
|
|
38104
|
-
const [l, d] = _(""), [h, u] = _([]), [p, y] = _(!1), m = Jc(null),
|
|
38104
|
+
const [l, d] = _(""), [h, u] = _([]), [p, y] = _(!1), m = Jc(null), g = (v) => {
|
|
38105
38105
|
d(v), y(!0), o && o(v);
|
|
38106
38106
|
}, f = () => {
|
|
38107
38107
|
d(""), u([]), y(!1), o == null || o("");
|
|
38108
|
-
},
|
|
38108
|
+
}, k = (v) => {
|
|
38109
38109
|
e(v), d(""), u([]), y(!1);
|
|
38110
38110
|
};
|
|
38111
38111
|
return ce(() => {
|
|
@@ -38127,11 +38127,11 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
38127
38127
|
className: "w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",
|
|
38128
38128
|
placeholder: r,
|
|
38129
38129
|
value: l,
|
|
38130
|
-
onChange: (v) =>
|
|
38130
|
+
onChange: (v) => g(v.target.value),
|
|
38131
38131
|
onFocus: () => y(h.length > 0),
|
|
38132
38132
|
onBlur: () => setTimeout(() => y(!1), 200),
|
|
38133
38133
|
onKeyDown: (v) => {
|
|
38134
|
-
v.key === "Enter" && l.trim() && (v.preventDefault(),
|
|
38134
|
+
v.key === "Enter" && l.trim() && (v.preventDefault(), k(l.trim()));
|
|
38135
38135
|
}
|
|
38136
38136
|
}
|
|
38137
38137
|
),
|
|
@@ -38139,7 +38139,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
38139
38139
|
c && /* @__PURE__ */ a.jsx(
|
|
38140
38140
|
"button",
|
|
38141
38141
|
{
|
|
38142
|
-
onClick: () => l.trim() &&
|
|
38142
|
+
onClick: () => l.trim() && k(l.trim()),
|
|
38143
38143
|
className: "absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",
|
|
38144
38144
|
children: /* @__PURE__ */ a.jsx(Ht, { className: "h-4 w-4" })
|
|
38145
38145
|
}
|
|
@@ -38149,7 +38149,7 @@ const gb = ({ position: t, url: e, alt: r, link: n }) => {
|
|
|
38149
38149
|
"button",
|
|
38150
38150
|
{
|
|
38151
38151
|
className: "w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",
|
|
38152
|
-
onClick: () =>
|
|
38152
|
+
onClick: () => k(v),
|
|
38153
38153
|
children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
38154
38154
|
/* @__PURE__ */ a.jsx(Ht, { className: "h-4 w-4 mr-2 text-gray-400" }),
|
|
38155
38155
|
v
|
|
@@ -38480,7 +38480,7 @@ const Oj = ({
|
|
|
38480
38480
|
/* @__PURE__ */ a.jsx("p", { className: "text-red-800 font-medium", children: "Invalid Job Data" }),
|
|
38481
38481
|
/* @__PURE__ */ a.jsx("p", { className: "text-red-600 text-sm", children: "The job data is in an unexpected format." })
|
|
38482
38482
|
] });
|
|
38483
|
-
const
|
|
38483
|
+
const k = y.id ? `${y._id}-${m}` : y.slug ? `${y.slug}-${m}` : `item-${m}`;
|
|
38484
38484
|
switch (e) {
|
|
38485
38485
|
case "job":
|
|
38486
38486
|
return /* @__PURE__ */ a.jsx("div", { ...f, children: /* @__PURE__ */ a.jsx(
|
|
@@ -38491,17 +38491,17 @@ const Oj = ({
|
|
|
38491
38491
|
onViewJob: i,
|
|
38492
38492
|
isSaved: n.includes(y.id || y.slug || y.link)
|
|
38493
38493
|
}
|
|
38494
|
-
) },
|
|
38494
|
+
) }, k);
|
|
38495
38495
|
default:
|
|
38496
38496
|
return console.warn(`⚠️ Unknown cardType: ${e}`), /* @__PURE__ */ a.jsxs("div", { className: "error-card bg-yellow-50 p-4 rounded-md border border-yellow-200", children: [
|
|
38497
38497
|
/* @__PURE__ */ a.jsx("p", { className: "text-yellow-800 font-medium", children: "Unknown Card Type" }),
|
|
38498
38498
|
/* @__PURE__ */ a.jsx("p", { className: "text-yellow-700 text-sm", children: "The specified card type is not supported." })
|
|
38499
38499
|
] });
|
|
38500
38500
|
}
|
|
38501
|
-
} catch (
|
|
38502
|
-
return console.error("Error rendering card:",
|
|
38501
|
+
} catch (k) {
|
|
38502
|
+
return console.error("Error rendering card:", k), /* @__PURE__ */ a.jsxs("div", { className: "error-card bg-red-50 p-4 rounded-md border border-red-200", children: [
|
|
38503
38503
|
/* @__PURE__ */ a.jsx("p", { className: "text-red-800 font-medium", children: "Error Rendering Card" }),
|
|
38504
|
-
/* @__PURE__ */ a.jsx("p", { className: "text-red-600 text-sm", children:
|
|
38504
|
+
/* @__PURE__ */ a.jsx("p", { className: "text-red-600 text-sm", children: k instanceof Error ? k.message : String(k) })
|
|
38505
38505
|
] });
|
|
38506
38506
|
}
|
|
38507
38507
|
};
|
|
@@ -38777,14 +38777,14 @@ function KD(t, e = []) {
|
|
|
38777
38777
|
r = [...r, c];
|
|
38778
38778
|
const h = (p) => {
|
|
38779
38779
|
var v;
|
|
38780
|
-
const { scope: y, children: m, ...
|
|
38781
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
38780
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
38781
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
38782
38782
|
};
|
|
38783
38783
|
h.displayName = i + "Provider";
|
|
38784
38784
|
function u(p, y) {
|
|
38785
38785
|
var f;
|
|
38786
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
38787
|
-
if (
|
|
38786
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
38787
|
+
if (g) return g;
|
|
38788
38788
|
if (c !== void 0) return c;
|
|
38789
38789
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
38790
38790
|
}
|
|
@@ -38977,7 +38977,7 @@ var hz = "DismissableLayer", KC = "dismissableLayer.update", uz = "dismissableLa
|
|
|
38977
38977
|
onInteractOutside: c,
|
|
38978
38978
|
onDismiss: l,
|
|
38979
38979
|
...d
|
|
38980
|
-
} = t, h = x.useContext(ON), [u, p] = x.useState(null), y = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = x.useState({}),
|
|
38980
|
+
} = t, h = x.useContext(ON), [u, p] = x.useState(null), y = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = x.useState({}), g = zN(e, (j) => p(j)), f = Array.from(h.layers), [k] = [...h.layersWithOutsidePointerEventsDisabled].slice(-1), v = f.indexOf(k), M = u ? f.indexOf(u) : -1, w = h.layersWithOutsidePointerEventsDisabled.size > 0, C = M >= v, b = fz((j) => {
|
|
38981
38981
|
const N = j.target, S = [...h.branches].some((R) => R.contains(N));
|
|
38982
38982
|
!C || S || (o == null || o(j), c == null || c(j), j.defaultPrevented || l == null || l());
|
|
38983
38983
|
}, y), I = xz((j) => {
|
|
@@ -39000,7 +39000,7 @@ var hz = "DismissableLayer", KC = "dismissableLayer.update", uz = "dismissableLa
|
|
|
39000
39000
|
DN.div,
|
|
39001
39001
|
{
|
|
39002
39002
|
...d,
|
|
39003
|
-
ref:
|
|
39003
|
+
ref: g,
|
|
39004
39004
|
style: {
|
|
39005
39005
|
pointerEvents: w ? C ? "auto" : "none" : void 0,
|
|
39006
39006
|
...t.style
|
|
@@ -39159,7 +39159,7 @@ var xC = "focusScope.autoFocusOnMount", kC = "focusScope.autoFocusOnUnmount", YL
|
|
|
39159
39159
|
if (m.paused || !l) return;
|
|
39160
39160
|
const C = w.target;
|
|
39161
39161
|
l.contains(C) ? p.current = C : Fa(p.current, { select: !0 });
|
|
39162
|
-
},
|
|
39162
|
+
}, k = function(w) {
|
|
39163
39163
|
if (m.paused || !l) return;
|
|
39164
39164
|
const C = w.relatedTarget;
|
|
39165
39165
|
C !== null && (l.contains(C) || Fa(p.current, { select: !0 }));
|
|
@@ -39168,10 +39168,10 @@ var xC = "focusScope.autoFocusOnMount", kC = "focusScope.autoFocusOnUnmount", YL
|
|
|
39168
39168
|
for (const b of w)
|
|
39169
39169
|
b.removedNodes.length > 0 && Fa(l);
|
|
39170
39170
|
};
|
|
39171
|
-
document.addEventListener("focusin", f), document.addEventListener("focusout",
|
|
39171
|
+
document.addEventListener("focusin", f), document.addEventListener("focusout", k);
|
|
39172
39172
|
const M = new MutationObserver(v);
|
|
39173
39173
|
return l && M.observe(l, { childList: !0, subtree: !0 }), () => {
|
|
39174
|
-
document.removeEventListener("focusin", f), document.removeEventListener("focusout",
|
|
39174
|
+
document.removeEventListener("focusin", f), document.removeEventListener("focusout", k), M.disconnect();
|
|
39175
39175
|
};
|
|
39176
39176
|
}
|
|
39177
39177
|
}, [n, l, m.paused]), x.useEffect(() => {
|
|
@@ -39190,18 +39190,18 @@ var xC = "focusScope.autoFocusOnMount", kC = "focusScope.autoFocusOnUnmount", YL
|
|
|
39190
39190
|
};
|
|
39191
39191
|
}
|
|
39192
39192
|
}, [l, h, u, m]);
|
|
39193
|
-
const
|
|
39193
|
+
const g = x.useCallback(
|
|
39194
39194
|
(f) => {
|
|
39195
39195
|
if (!r && !n || m.paused) return;
|
|
39196
|
-
const
|
|
39197
|
-
if (
|
|
39196
|
+
const k = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, v = document.activeElement;
|
|
39197
|
+
if (k && v) {
|
|
39198
39198
|
const M = f.currentTarget, [w, C] = Cz(M);
|
|
39199
39199
|
w && C ? !f.shiftKey && v === C ? (f.preventDefault(), r && Fa(w, { select: !0 })) : f.shiftKey && v === w && (f.preventDefault(), r && Fa(C, { select: !0 })) : v === M && f.preventDefault();
|
|
39200
39200
|
}
|
|
39201
39201
|
},
|
|
39202
39202
|
[r, n, m.paused]
|
|
39203
39203
|
);
|
|
39204
|
-
return /* @__PURE__ */ a.jsx(Mz.div, { tabIndex: -1, ...c, ref: y, onKeyDown:
|
|
39204
|
+
return /* @__PURE__ */ a.jsx(Mz.div, { tabIndex: -1, ...c, ref: y, onKeyDown: g });
|
|
39205
39205
|
});
|
|
39206
39206
|
zb.displayName = wz;
|
|
39207
39207
|
function bz(t, { select: e = !1 } = {}) {
|
|
@@ -39336,9 +39336,9 @@ function Rz(t) {
|
|
|
39336
39336
|
const u = e.ownerDocument.defaultView ?? window, p = (m) => {
|
|
39337
39337
|
const f = o1(n.current).includes(CSS.escape(m.animationName));
|
|
39338
39338
|
if (m.target === e && f && (d("ANIMATION_END"), !o.current)) {
|
|
39339
|
-
const
|
|
39339
|
+
const k = e.style.animationFillMode;
|
|
39340
39340
|
e.style.animationFillMode = "forwards", h = u.setTimeout(() => {
|
|
39341
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode =
|
|
39341
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = k);
|
|
39342
39342
|
});
|
|
39343
39343
|
}
|
|
39344
39344
|
}, y = (m) => {
|
|
@@ -39550,11 +39550,11 @@ var UN = $z(), MC = function() {
|
|
|
39550
39550
|
onScrollCapture: MC,
|
|
39551
39551
|
onWheelCapture: MC,
|
|
39552
39552
|
onTouchMoveCapture: MC
|
|
39553
|
-
}), o = n[0], i = n[1], c = t.forwardProps, l = t.children, d = t.className, h = t.removeScrollBar, u = t.enabled, p = t.shards, y = t.sideCar, m = t.noRelative,
|
|
39553
|
+
}), o = n[0], i = n[1], c = t.forwardProps, l = t.children, d = t.className, h = t.removeScrollBar, u = t.enabled, p = t.shards, y = t.sideCar, m = t.noRelative, g = t.noIsolation, f = t.inert, k = t.allowPinchZoom, v = t.as, M = v === void 0 ? "div" : v, w = t.gapMode, C = VN(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = y, I = Vz([r, e]), j = ia(ia({}, C), o);
|
|
39554
39554
|
return x.createElement(
|
|
39555
39555
|
x.Fragment,
|
|
39556
39556
|
null,
|
|
39557
|
-
u && x.createElement(b, { sideCar: UN, removeScrollBar: h, shards: p, noRelative: m, noIsolation:
|
|
39557
|
+
u && x.createElement(b, { sideCar: UN, removeScrollBar: h, shards: p, noRelative: m, noIsolation: g, inert: f, setCallbacks: i, allowPinchZoom: !!k, lockRef: r, gapMode: w }),
|
|
39558
39558
|
c ? x.cloneElement(x.Children.only(l), ia(ia({}, j), { ref: I })) : x.createElement(M, ia({}, j, { className: d, ref: I }), l)
|
|
39559
39559
|
);
|
|
39560
39560
|
});
|
|
@@ -39757,8 +39757,8 @@ var ls = QC ? { passive: !1 } : !1, iF = function(t) {
|
|
|
39757
39757
|
do {
|
|
39758
39758
|
if (!l)
|
|
39759
39759
|
break;
|
|
39760
|
-
var m = ZN(t, l),
|
|
39761
|
-
(
|
|
39760
|
+
var m = ZN(t, l), g = m[0], f = m[1], k = m[2], v = f - k - i * g;
|
|
39761
|
+
(g || v) && GN(t, l) && (p += v, y += g);
|
|
39762
39762
|
var M = l.parentNode;
|
|
39763
39763
|
l = M && M.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? M.host : M;
|
|
39764
39764
|
} while (
|
|
@@ -39789,16 +39789,16 @@ function fF(t) {
|
|
|
39789
39789
|
if (t.inert) {
|
|
39790
39790
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
39791
39791
|
var f = zz([t.lockRef.current], (t.shards || []).map(iS), !0).filter(Boolean);
|
|
39792
|
-
return f.forEach(function(
|
|
39793
|
-
return
|
|
39792
|
+
return f.forEach(function(k) {
|
|
39793
|
+
return k.classList.add("allow-interactivity-".concat(o));
|
|
39794
39794
|
}), function() {
|
|
39795
|
-
document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(
|
|
39796
|
-
return
|
|
39795
|
+
document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(k) {
|
|
39796
|
+
return k.classList.remove("allow-interactivity-".concat(o));
|
|
39797
39797
|
});
|
|
39798
39798
|
};
|
|
39799
39799
|
}
|
|
39800
39800
|
}, [t.inert, t.lockRef.current, t.shards]);
|
|
39801
|
-
var l = x.useCallback(function(f,
|
|
39801
|
+
var l = x.useCallback(function(f, k) {
|
|
39802
39802
|
if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
|
|
39803
39803
|
return !c.current.allowPinchZoom;
|
|
39804
39804
|
var v = s1(f), M = r.current, w = "deltaX" in f ? f.deltaX : M[0] - v[0], C = "deltaY" in f ? f.deltaY : M[1] - v[1], b, I = f.target, j = Math.abs(w) > Math.abs(C) ? "h" : "v";
|
|
@@ -39812,26 +39812,26 @@ function fF(t) {
|
|
|
39812
39812
|
if (!n.current && "changedTouches" in f && (w || C) && (n.current = b), !b)
|
|
39813
39813
|
return !0;
|
|
39814
39814
|
var S = n.current || b;
|
|
39815
|
-
return uF(S,
|
|
39815
|
+
return uF(S, k, f, S === "h" ? w : C, !0);
|
|
39816
39816
|
}, []), d = x.useCallback(function(f) {
|
|
39817
|
-
var
|
|
39817
|
+
var k = f;
|
|
39818
39818
|
if (!(!ds.length || ds[ds.length - 1] !== i)) {
|
|
39819
|
-
var v = "deltaY" in
|
|
39820
|
-
return b.name ===
|
|
39819
|
+
var v = "deltaY" in k ? oS(k) : s1(k), M = e.current.filter(function(b) {
|
|
39820
|
+
return b.name === k.type && (b.target === k.target || k.target === b.shadowParent) && pF(b.delta, v);
|
|
39821
39821
|
})[0];
|
|
39822
39822
|
if (M && M.should) {
|
|
39823
|
-
|
|
39823
|
+
k.cancelable && k.preventDefault();
|
|
39824
39824
|
return;
|
|
39825
39825
|
}
|
|
39826
39826
|
if (!M) {
|
|
39827
39827
|
var w = (c.current.shards || []).map(iS).filter(Boolean).filter(function(b) {
|
|
39828
|
-
return b.contains(
|
|
39829
|
-
}), C = w.length > 0 ? l(
|
|
39830
|
-
C &&
|
|
39828
|
+
return b.contains(k.target);
|
|
39829
|
+
}), C = w.length > 0 ? l(k, w[0]) : !c.current.noIsolation;
|
|
39830
|
+
C && k.cancelable && k.preventDefault();
|
|
39831
39831
|
}
|
|
39832
39832
|
}
|
|
39833
|
-
}, []), h = x.useCallback(function(f,
|
|
39834
|
-
var w = { name: f, delta:
|
|
39833
|
+
}, []), h = x.useCallback(function(f, k, v, M) {
|
|
39834
|
+
var w = { name: f, delta: k, target: v, should: M, shadowParent: xF(v) };
|
|
39835
39835
|
e.current.push(w), setTimeout(function() {
|
|
39836
39836
|
e.current = e.current.filter(function(C) {
|
|
39837
39837
|
return C !== w;
|
|
@@ -39855,11 +39855,11 @@ function fF(t) {
|
|
|
39855
39855
|
}), document.removeEventListener("wheel", d, ls), document.removeEventListener("touchmove", d, ls), document.removeEventListener("touchstart", u, ls);
|
|
39856
39856
|
};
|
|
39857
39857
|
}, []);
|
|
39858
|
-
var m = t.removeScrollBar,
|
|
39858
|
+
var m = t.removeScrollBar, g = t.inert;
|
|
39859
39859
|
return x.createElement(
|
|
39860
39860
|
x.Fragment,
|
|
39861
39861
|
null,
|
|
39862
|
-
|
|
39862
|
+
g ? x.createElement(i, { styles: yF(o) }) : null,
|
|
39863
39863
|
m ? x.createElement(oF, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
|
|
39864
39864
|
);
|
|
39865
39865
|
}
|
|
@@ -39902,8 +39902,8 @@ var gF = function(t) {
|
|
|
39902
39902
|
u(y);
|
|
39903
39903
|
else
|
|
39904
39904
|
try {
|
|
39905
|
-
var m = y.getAttribute(n),
|
|
39906
|
-
hs.set(y, f), i.set(y,
|
|
39905
|
+
var m = y.getAttribute(n), g = m !== null && m !== "false", f = (hs.get(y) || 0) + 1, k = (i.get(y) || 0) + 1;
|
|
39906
|
+
hs.set(y, f), i.set(y, k), c.push(y), f === 1 && g && c1.set(y, !0), k === 1 && y.setAttribute(r, "true"), g || y.setAttribute(n, "true");
|
|
39907
39907
|
} catch (v) {
|
|
39908
39908
|
console.error("aria-hidden: cannot operate on ", y, v);
|
|
39909
39909
|
}
|
|
@@ -40476,7 +40476,7 @@ function KF({
|
|
|
40476
40476
|
}
|
|
40477
40477
|
h(!0);
|
|
40478
40478
|
try {
|
|
40479
|
-
const
|
|
40479
|
+
const g = await YF(`${i}/api/leads`, {
|
|
40480
40480
|
method: "POST",
|
|
40481
40481
|
headers: { "Content-Type": "application/json" },
|
|
40482
40482
|
body: JSON.stringify({
|
|
@@ -40488,15 +40488,15 @@ function KF({
|
|
|
40488
40488
|
}),
|
|
40489
40489
|
timeoutMs: 1e4
|
|
40490
40490
|
});
|
|
40491
|
-
if (!
|
|
40492
|
-
p(JF(
|
|
40491
|
+
if (!g.ok) {
|
|
40492
|
+
p(JF(g.error)), cS({
|
|
40493
40493
|
title: "Subscription failed",
|
|
40494
|
-
description:
|
|
40494
|
+
description: g.error.message,
|
|
40495
40495
|
variant: "destructive"
|
|
40496
40496
|
});
|
|
40497
40497
|
return;
|
|
40498
40498
|
}
|
|
40499
|
-
localStorage.setItem("leadId",
|
|
40499
|
+
localStorage.setItem("leadId", g.data.id), localStorage.setItem("email", c), cS({
|
|
40500
40500
|
title: "You're subscribed",
|
|
40501
40501
|
description: `We'll notify you at ${c} when new jobs match your criteria.`
|
|
40502
40502
|
}), r == null || r(), l("");
|
|
@@ -40583,7 +40583,7 @@ const QF = 6, WB = ({
|
|
|
40583
40583
|
notification_url: h = "http://localhost:5147"
|
|
40584
40584
|
}) => {
|
|
40585
40585
|
var tc;
|
|
40586
|
-
const [u, p] = _([]), [y, m] = _([]), [
|
|
40586
|
+
const [u, p] = _([]), [y, m] = _([]), [g, f] = _([]), [k, v] = _(1), [M, w] = _({}), [C, b] = _([]), [I, j] = _({}), [N, S] = _(""), [R, A] = _([]), [P, T] = _(!1), [F, B] = _(e), [z, V] = _("grid"), [D, X] = _(!1), [ie, ee] = _([]), [qe, J] = _(!0), [Y, Q] = _(null), [te, G] = _("all"), [ae, ve] = _(!1), [se, pe] = _(!1), [de, Ve] = _({
|
|
40587
40587
|
jobTypes: [],
|
|
40588
40588
|
experienceLevels: [],
|
|
40589
40589
|
country: "",
|
|
@@ -40777,7 +40777,7 @@ const QF = 6, WB = ({
|
|
|
40777
40777
|
}
|
|
40778
40778
|
}, Fe = () => {
|
|
40779
40779
|
T(!P);
|
|
40780
|
-
}, st = y.length === 0 ? 0 : (
|
|
40780
|
+
}, st = y.length === 0 ? 0 : (k - 1) * F + 1, qa = Math.min(k * F, y.length), tt = (H) => {
|
|
40781
40781
|
B(H), v(1);
|
|
40782
40782
|
}, at = () => {
|
|
40783
40783
|
V(z === "grid" ? "list" : "grid");
|
|
@@ -40795,8 +40795,8 @@ const QF = 6, WB = ({
|
|
|
40795
40795
|
}, Ae = () => {
|
|
40796
40796
|
X(!D);
|
|
40797
40797
|
}, rt = Math.ceil(y.length / F), sr = y.slice(
|
|
40798
|
-
(
|
|
40799
|
-
|
|
40798
|
+
(k - 1) * F,
|
|
40799
|
+
k * F
|
|
40800
40800
|
);
|
|
40801
40801
|
return Y && !u.length ? /* @__PURE__ */ a.jsx("div", { className: "flex-grow p-8", children: /* @__PURE__ */ a.jsx("div", { className: "max-w-7xl mx-auto", children: /* @__PURE__ */ a.jsxs("div", { className: "bg-red-50 border border-red-200 text-red-800 rounded-lg p-6", children: [
|
|
40802
40802
|
/* @__PURE__ */ a.jsx("h2", { className: "text-lg font-semibold mb-2", children: "Error Loading Jobs" }),
|
|
@@ -40818,7 +40818,7 @@ const QF = 6, WB = ({
|
|
|
40818
40818
|
searchPlaceholder: "Search jobs, companies, or keywords...",
|
|
40819
40819
|
title: "Job Listings",
|
|
40820
40820
|
description: "",
|
|
40821
|
-
popularTags:
|
|
40821
|
+
popularTags: g,
|
|
40822
40822
|
generateHref: (H) => `/jobs?q=${H.toLowerCase().replace(/\s+/g, "+")}`
|
|
40823
40823
|
}
|
|
40824
40824
|
),
|
|
@@ -40956,7 +40956,7 @@ const QF = 6, WB = ({
|
|
|
40956
40956
|
y.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "mt-6", children: /* @__PURE__ */ a.jsx(
|
|
40957
40957
|
Hj,
|
|
40958
40958
|
{
|
|
40959
|
-
currentPage:
|
|
40959
|
+
currentPage: k,
|
|
40960
40960
|
totalPages: rt,
|
|
40961
40961
|
onPageChange: ec
|
|
40962
40962
|
}
|
|
@@ -41180,7 +41180,7 @@ const MA = {
|
|
|
41180
41180
|
}
|
|
41181
41181
|
], GB = ({ job: t = MA, similarJobs: e = wA }) => {
|
|
41182
41182
|
var I;
|
|
41183
|
-
const r = eO(), [n, o] = _(() => aO(e)), [i, c] = _(!1), [l, d] = _(null), [h, u] = _(!1), [p, y] = _(!1), { savedJobs: m, toggleJob:
|
|
41183
|
+
const r = eO(), [n, o] = _(() => aO(e)), [i, c] = _(!1), [l, d] = _(null), [h, u] = _(!1), [p, y] = _(!1), { savedJobs: m, toggleJob: g, isSaved: f } = vA(), k = tO(t);
|
|
41184
41184
|
ce(() => {
|
|
41185
41185
|
(async () => {
|
|
41186
41186
|
c(!0);
|
|
@@ -41197,18 +41197,18 @@ const MA = {
|
|
|
41197
41197
|
})();
|
|
41198
41198
|
}, [r]);
|
|
41199
41199
|
const v = () => {
|
|
41200
|
-
r &&
|
|
41200
|
+
r && g(r);
|
|
41201
41201
|
}, M = () => {
|
|
41202
41202
|
if (!r) return;
|
|
41203
|
-
|
|
41203
|
+
k != null && k.applicationUrl ? window.open(k.applicationUrl, "_blank", "noopener,noreferrer") : u(!0);
|
|
41204
41204
|
const j = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
|
|
41205
41205
|
j.includes(r) || (j.push(r), localStorage.setItem("appliedJobs", JSON.stringify(j)), y(!0));
|
|
41206
41206
|
}, w = async () => {
|
|
41207
41207
|
if (navigator.share)
|
|
41208
41208
|
try {
|
|
41209
41209
|
await navigator.share({
|
|
41210
|
-
title:
|
|
41211
|
-
text: `Check out this job opportunity: ${
|
|
41210
|
+
title: k == null ? void 0 : k.title,
|
|
41211
|
+
text: `Check out this job opportunity: ${k == null ? void 0 : k.title} at ${k == null ? void 0 : k.company}`,
|
|
41212
41212
|
url: window.location.href
|
|
41213
41213
|
});
|
|
41214
41214
|
} catch (j) {
|
|
@@ -41223,7 +41223,7 @@ const MA = {
|
|
|
41223
41223
|
return i ? /* @__PURE__ */ a.jsx("div", { className: "min-h-screen bg-gray-50 flex items-center justify-center", children: /* @__PURE__ */ a.jsxs("div", { className: "text-center", children: [
|
|
41224
41224
|
/* @__PURE__ */ a.jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto" }),
|
|
41225
41225
|
/* @__PURE__ */ a.jsx("p", { className: "mt-4 text-gray-600", children: "Loading job details..." })
|
|
41226
|
-
] }) }) : l || !
|
|
41226
|
+
] }) }) : l || !k ? /* @__PURE__ */ a.jsx("div", { className: "min-h-screen bg-gray-50 flex items-center justify-center", children: /* @__PURE__ */ a.jsxs("div", { className: "text-center", children: [
|
|
41227
41227
|
/* @__PURE__ */ a.jsx(Zt, { className: "h-12 w-12 text-red-500 mx-auto mb-4" }),
|
|
41228
41228
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-2", children: "Job Not Found" }),
|
|
41229
41229
|
/* @__PURE__ */ a.jsx("p", { className: "text-gray-600 mb-4", children: l || "The job you are looking for does not exist." }),
|
|
@@ -41250,24 +41250,24 @@ const MA = {
|
|
|
41250
41250
|
),
|
|
41251
41251
|
/* @__PURE__ */ a.jsxs("div", { className: "flex flex-col lg:flex-row lg:items-start lg:justify-between", children: [
|
|
41252
41252
|
/* @__PURE__ */ a.jsx("div", { className: "flex-1", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-start space-x-4", children: [
|
|
41253
|
-
|
|
41253
|
+
k.companyLogo && /* @__PURE__ */ a.jsx(
|
|
41254
41254
|
"img",
|
|
41255
41255
|
{
|
|
41256
|
-
src:
|
|
41257
|
-
alt: `${
|
|
41256
|
+
src: k.companyLogo,
|
|
41257
|
+
alt: `${k.company} logo`,
|
|
41258
41258
|
className: "w-16 h-16 rounded-lg object-cover border border-gray-200"
|
|
41259
41259
|
}
|
|
41260
41260
|
),
|
|
41261
41261
|
/* @__PURE__ */ a.jsxs("div", { className: "flex-1", children: [
|
|
41262
41262
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center space-x-2 mb-2", children: [
|
|
41263
|
-
|
|
41263
|
+
k.isUrgent && /* @__PURE__ */ a.jsx(
|
|
41264
41264
|
"span",
|
|
41265
41265
|
{
|
|
41266
41266
|
className: "bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",
|
|
41267
41267
|
children: "Urgent"
|
|
41268
41268
|
}
|
|
41269
41269
|
),
|
|
41270
|
-
|
|
41270
|
+
k.isFeatured && /* @__PURE__ */ a.jsx(
|
|
41271
41271
|
"span",
|
|
41272
41272
|
{
|
|
41273
41273
|
className: "bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",
|
|
@@ -41275,25 +41275,25 @@ const MA = {
|
|
|
41275
41275
|
}
|
|
41276
41276
|
)
|
|
41277
41277
|
] }),
|
|
41278
|
-
/* @__PURE__ */ a.jsx("h1", { className: "text-2xl lg:text-3xl font-bold text-gray-900 mb-2", children:
|
|
41278
|
+
/* @__PURE__ */ a.jsx("h1", { className: "text-2xl lg:text-3xl font-bold text-gray-900 mb-2", children: k.title }),
|
|
41279
41279
|
/* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap items-center gap-4 text-gray-600", children: [
|
|
41280
41280
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41281
41281
|
/* @__PURE__ */ a.jsx(pc, { className: "h-4 w-4 mr-1" }),
|
|
41282
|
-
/* @__PURE__ */ a.jsx("span", { className: "font-medium", children:
|
|
41282
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-medium", children: k.company })
|
|
41283
41283
|
] }),
|
|
41284
41284
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41285
41285
|
/* @__PURE__ */ a.jsx(Et, { className: "h-4 w-4 mr-1" }),
|
|
41286
|
-
/* @__PURE__ */ a.jsx("span", { children:
|
|
41287
|
-
|
|
41286
|
+
/* @__PURE__ */ a.jsx("span", { children: k.location }),
|
|
41287
|
+
k.isRemote && /* @__PURE__ */ a.jsx("span", { className: "ml-1", children: "(Remote)" })
|
|
41288
41288
|
] }),
|
|
41289
|
-
|
|
41289
|
+
k.salary && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41290
41290
|
/* @__PURE__ */ a.jsx(xc, { className: "h-4 w-4 mr-1" }),
|
|
41291
|
-
/* @__PURE__ */ a.jsx("span", { children:
|
|
41291
|
+
/* @__PURE__ */ a.jsx("span", { children: k.salary })
|
|
41292
41292
|
] }),
|
|
41293
41293
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41294
41294
|
/* @__PURE__ */ a.jsx(Jt, { className: "h-4 w-4 mr-1" }),
|
|
41295
41295
|
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
41296
|
-
b(
|
|
41296
|
+
b(k.postedDate),
|
|
41297
41297
|
" days ago"
|
|
41298
41298
|
] })
|
|
41299
41299
|
] })
|
|
@@ -41305,10 +41305,10 @@ const MA = {
|
|
|
41305
41305
|
"button",
|
|
41306
41306
|
{
|
|
41307
41307
|
onClick: v,
|
|
41308
|
-
className: `flex items-center px-4 py-2 rounded-lg border transition-colors ${f(
|
|
41308
|
+
className: `flex items-center px-4 py-2 rounded-lg border transition-colors ${f(k.id) ? "bg-blue-50 border-blue-200 text-blue-700" : "bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,
|
|
41309
41309
|
children: [
|
|
41310
|
-
/* @__PURE__ */ a.jsx(ws, { className: `h-4 w-4 mr-2 ${f(
|
|
41311
|
-
f(
|
|
41310
|
+
/* @__PURE__ */ a.jsx(ws, { className: `h-4 w-4 mr-2 ${f(k.id) ? "fill-current" : ""}` }),
|
|
41311
|
+
f(k.id) ? "Saved" : "Save Job"
|
|
41312
41312
|
]
|
|
41313
41313
|
}
|
|
41314
41314
|
),
|
|
@@ -41348,32 +41348,32 @@ const MA = {
|
|
|
41348
41348
|
/* @__PURE__ */ a.jsxs("div", { className: "text-center p-4 bg-gray-50 rounded-lg", children: [
|
|
41349
41349
|
/* @__PURE__ */ a.jsx(mt, { className: "h-6 w-6 text-blue-600 mx-auto mb-2" }),
|
|
41350
41350
|
/* @__PURE__ */ a.jsx("p", { className: "text-sm text-gray-600", children: "Job Type" }),
|
|
41351
|
-
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children:
|
|
41351
|
+
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children: k.jobType })
|
|
41352
41352
|
] }),
|
|
41353
41353
|
/* @__PURE__ */ a.jsxs("div", { className: "text-center p-4 bg-gray-50 rounded-lg", children: [
|
|
41354
41354
|
/* @__PURE__ */ a.jsx(Ms, { className: "h-6 w-6 text-blue-600 mx-auto mb-2" }),
|
|
41355
41355
|
/* @__PURE__ */ a.jsx("p", { className: "text-sm text-gray-600", children: "Experience" }),
|
|
41356
|
-
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children:
|
|
41356
|
+
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children: k.experienceLevel })
|
|
41357
41357
|
] }),
|
|
41358
41358
|
/* @__PURE__ */ a.jsxs("div", { className: "text-center p-4 bg-gray-50 rounded-lg", children: [
|
|
41359
41359
|
/* @__PURE__ */ a.jsx(Sa, { className: "h-6 w-6 text-blue-600 mx-auto mb-2" }),
|
|
41360
41360
|
/* @__PURE__ */ a.jsx("p", { className: "text-sm text-gray-600", children: "Department" }),
|
|
41361
|
-
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children:
|
|
41361
|
+
/* @__PURE__ */ a.jsx("p", { className: "font-medium", children: k.department })
|
|
41362
41362
|
] }),
|
|
41363
41363
|
/* @__PURE__ */ a.jsxs("div", { className: "text-center p-4 bg-gray-50 rounded-lg", children: [
|
|
41364
41364
|
/* @__PURE__ */ a.jsx(yc, { className: "h-6 w-6 text-blue-600 mx-auto mb-2" }),
|
|
41365
41365
|
/* @__PURE__ */ a.jsx("p", { className: "text-sm text-gray-600", children: "Deadline" }),
|
|
41366
|
-
/* @__PURE__ */ a.jsx("p", { className: "font-medium text-sm", children:
|
|
41366
|
+
/* @__PURE__ */ a.jsx("p", { className: "font-medium text-sm", children: k.applicationDeadline ? C(k.applicationDeadline) : "Open" })
|
|
41367
41367
|
] })
|
|
41368
41368
|
] }),
|
|
41369
41369
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between pt-4 border-t border-gray-200", children: [
|
|
41370
41370
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center space-x-4 text-sm text-gray-600", children: [
|
|
41371
41371
|
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
41372
|
-
|
|
41372
|
+
k.viewCount,
|
|
41373
41373
|
" views"
|
|
41374
41374
|
] }),
|
|
41375
41375
|
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
41376
|
-
|
|
41376
|
+
k.applicantCount,
|
|
41377
41377
|
" applicants"
|
|
41378
41378
|
] })
|
|
41379
41379
|
] }),
|
|
@@ -41385,60 +41385,60 @@ const MA = {
|
|
|
41385
41385
|
] }),
|
|
41386
41386
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41387
41387
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Job Description" }),
|
|
41388
|
-
/* @__PURE__ */ a.jsx("div", { className: "prose prose-gray max-w-none", children: /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 leading-relaxed whitespace-pre-line", children:
|
|
41388
|
+
/* @__PURE__ */ a.jsx("div", { className: "prose prose-gray max-w-none", children: /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 leading-relaxed whitespace-pre-line", children: k.description }) })
|
|
41389
41389
|
] }),
|
|
41390
41390
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41391
41391
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Key Responsibilities" }),
|
|
41392
|
-
/* @__PURE__ */ a.jsx("ul", { className: "space-y-3", children: (I =
|
|
41392
|
+
/* @__PURE__ */ a.jsx("ul", { className: "space-y-3", children: (I = k.responsibilities) == null ? void 0 : I.map((j, N) => /* @__PURE__ */ a.jsxs("li", { className: "flex items-start", children: [
|
|
41393
41393
|
/* @__PURE__ */ a.jsx(jt, { className: "h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0" }),
|
|
41394
41394
|
/* @__PURE__ */ a.jsx("span", { className: "text-gray-700", children: j })
|
|
41395
41395
|
] }, N)) })
|
|
41396
41396
|
] }),
|
|
41397
41397
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41398
41398
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Requirements" }),
|
|
41399
|
-
Array.isArray(
|
|
41399
|
+
Array.isArray(k.requirements) ? /* @__PURE__ */ a.jsx("ul", { className: "space-y-3", children: k.requirements.map((j, N) => /* @__PURE__ */ a.jsxs("li", { className: "flex items-start", children: [
|
|
41400
41400
|
/* @__PURE__ */ a.jsx(jt, { className: "h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0" }),
|
|
41401
41401
|
/* @__PURE__ */ a.jsx("span", { className: "text-gray-700", children: j })
|
|
41402
|
-
] }, N)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children:
|
|
41402
|
+
] }, N)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: k.requirements })
|
|
41403
41403
|
] }),
|
|
41404
41404
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41405
41405
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Required Skills" }),
|
|
41406
|
-
Array.isArray(
|
|
41406
|
+
Array.isArray(k.skills) ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-wrap gap-2", children: k.skills.map((j, N) => /* @__PURE__ */ a.jsx(
|
|
41407
41407
|
"span",
|
|
41408
41408
|
{
|
|
41409
41409
|
className: "bg-blue-100 text-blue-800 text-sm font-medium px-3 py-1 rounded-full",
|
|
41410
41410
|
children: j
|
|
41411
41411
|
},
|
|
41412
41412
|
N
|
|
41413
|
-
)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children:
|
|
41413
|
+
)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: k.skills })
|
|
41414
41414
|
] }),
|
|
41415
41415
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41416
41416
|
/* @__PURE__ */ a.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Benefits & Perks" }),
|
|
41417
|
-
Array.isArray(
|
|
41417
|
+
Array.isArray(k.benefits) ? /* @__PURE__ */ a.jsx("ul", { className: "space-y-3", children: k.benefits.map((j, N) => /* @__PURE__ */ a.jsxs("li", { className: "flex items-start", children: [
|
|
41418
41418
|
/* @__PURE__ */ a.jsx(jt, { className: "h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0" }),
|
|
41419
41419
|
/* @__PURE__ */ a.jsx("span", { className: "text-gray-700", children: j })
|
|
41420
|
-
] }, N)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children:
|
|
41420
|
+
] }, N)) }) : /* @__PURE__ */ a.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: k.benefits })
|
|
41421
41421
|
] })
|
|
41422
41422
|
] }),
|
|
41423
41423
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-6", children: [
|
|
41424
41424
|
/* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
|
|
41425
41425
|
/* @__PURE__ */ a.jsxs("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: [
|
|
41426
41426
|
"About ",
|
|
41427
|
-
|
|
41427
|
+
k.company
|
|
41428
41428
|
] }),
|
|
41429
41429
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-4", children: [
|
|
41430
|
-
/* @__PURE__ */ a.jsx("p", { className: "text-gray-700 text-sm leading-relaxed", children:
|
|
41430
|
+
/* @__PURE__ */ a.jsx("p", { className: "text-gray-700 text-sm leading-relaxed", children: k.companyDescription }),
|
|
41431
41431
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
41432
|
-
|
|
41432
|
+
k.companySize && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41433
41433
|
/* @__PURE__ */ a.jsx(Sa, { className: "h-4 w-4 text-gray-400 mr-2" }),
|
|
41434
|
-
/* @__PURE__ */ a.jsx("span", { className: "text-gray-600", children:
|
|
41434
|
+
/* @__PURE__ */ a.jsx("span", { className: "text-gray-600", children: k.companySize })
|
|
41435
41435
|
] }),
|
|
41436
|
-
|
|
41436
|
+
k.companyWebsite && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41437
41437
|
/* @__PURE__ */ a.jsx(vs, { className: "h-4 w-4 text-gray-400 mr-2" }),
|
|
41438
41438
|
/* @__PURE__ */ a.jsx(
|
|
41439
41439
|
"a",
|
|
41440
41440
|
{
|
|
41441
|
-
href:
|
|
41441
|
+
href: k.companyWebsite,
|
|
41442
41442
|
target: "_blank",
|
|
41443
41443
|
rel: "noopener noreferrer",
|
|
41444
41444
|
className: "text-blue-600 hover:text-blue-800",
|
|
@@ -41450,25 +41450,25 @@ const MA = {
|
|
|
41450
41450
|
/* @__PURE__ */ a.jsxs("div", { className: "pt-4 border-t border-gray-200", children: [
|
|
41451
41451
|
/* @__PURE__ */ a.jsx("h4", { className: "font-medium text-gray-900 mb-2", children: "Contact Information" }),
|
|
41452
41452
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
41453
|
-
|
|
41453
|
+
k.contactEmail && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41454
41454
|
/* @__PURE__ */ a.jsx(la, { className: "h-4 w-4 text-gray-400 mr-2" }),
|
|
41455
41455
|
/* @__PURE__ */ a.jsx(
|
|
41456
41456
|
"a",
|
|
41457
41457
|
{
|
|
41458
|
-
href: `mailto:${
|
|
41458
|
+
href: `mailto:${k.contactEmail}`,
|
|
41459
41459
|
className: "text-blue-600 hover:text-blue-800",
|
|
41460
|
-
children:
|
|
41460
|
+
children: k.contactEmail
|
|
41461
41461
|
}
|
|
41462
41462
|
)
|
|
41463
41463
|
] }),
|
|
41464
|
-
|
|
41464
|
+
k.contactPhone && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center", children: [
|
|
41465
41465
|
/* @__PURE__ */ a.jsx(Oi, { className: "h-4 w-4 text-gray-400 mr-2" }),
|
|
41466
41466
|
/* @__PURE__ */ a.jsx(
|
|
41467
41467
|
"a",
|
|
41468
41468
|
{
|
|
41469
|
-
href: `tel:${
|
|
41469
|
+
href: `tel:${k.contactPhone}`,
|
|
41470
41470
|
className: "text-blue-600 hover:text-blue-800",
|
|
41471
|
-
children:
|
|
41471
|
+
children: k.contactPhone
|
|
41472
41472
|
}
|
|
41473
41473
|
)
|
|
41474
41474
|
] })
|
|
@@ -41480,7 +41480,7 @@ const MA = {
|
|
|
41480
41480
|
/* @__PURE__ */ a.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: "Ready to Apply?" }),
|
|
41481
41481
|
/* @__PURE__ */ a.jsxs("p", { className: "text-gray-600 text-sm mb-4", children: [
|
|
41482
41482
|
"Join ",
|
|
41483
|
-
|
|
41483
|
+
k.company,
|
|
41484
41484
|
" and take your career to the next level in the exciting world of iGaming."
|
|
41485
41485
|
] }),
|
|
41486
41486
|
/* @__PURE__ */ a.jsx(
|
|
@@ -41503,10 +41503,10 @@ const MA = {
|
|
|
41503
41503
|
"button",
|
|
41504
41504
|
{
|
|
41505
41505
|
onClick: v,
|
|
41506
|
-
className: `flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${f(
|
|
41506
|
+
className: `flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${f(k.id) ? "bg-blue-50 border-blue-200 text-blue-700" : "bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,
|
|
41507
41507
|
children: [
|
|
41508
|
-
/* @__PURE__ */ a.jsx(ja, { className: `h-4 w-4 mr-2 ${f(
|
|
41509
|
-
f(
|
|
41508
|
+
/* @__PURE__ */ a.jsx(ja, { className: `h-4 w-4 mr-2 ${f(k.id) ? "fill-current" : ""}` }),
|
|
41509
|
+
f(k.id) ? "Saved" : "Save"
|
|
41510
41510
|
]
|
|
41511
41511
|
}
|
|
41512
41512
|
),
|
|
@@ -41558,7 +41558,7 @@ const MA = {
|
|
|
41558
41558
|
h && /* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50", children: /* @__PURE__ */ a.jsxs("div", { className: "bg-white rounded-lg max-w-md w-full p-6", children: [
|
|
41559
41559
|
/* @__PURE__ */ a.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: "Apply for this Position" }),
|
|
41560
41560
|
/* @__PURE__ */ a.jsx("p", { className: "text-gray-600 mb-4", children: "To apply for this position, please send your CV and cover letter to:" }),
|
|
41561
|
-
/* @__PURE__ */ a.jsx("div", { className: "bg-gray-50 p-4 rounded-lg mb-4", children: /* @__PURE__ */ a.jsx("p", { className: "font-medium", children:
|
|
41561
|
+
/* @__PURE__ */ a.jsx("div", { className: "bg-gray-50 p-4 rounded-lg mb-4", children: /* @__PURE__ */ a.jsx("p", { className: "font-medium", children: k.contactEmail }) }),
|
|
41562
41562
|
/* @__PURE__ */ a.jsxs("div", { className: "flex space-x-3", children: [
|
|
41563
41563
|
/* @__PURE__ */ a.jsx(
|
|
41564
41564
|
"button",
|
|
@@ -41572,7 +41572,7 @@ const MA = {
|
|
|
41572
41572
|
"button",
|
|
41573
41573
|
{
|
|
41574
41574
|
onClick: () => {
|
|
41575
|
-
window.location.href = `mailto:${
|
|
41575
|
+
window.location.href = `mailto:${k.contactEmail}?subject=Application for ${k.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${k.title} position at ${k.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`, u(!1);
|
|
41576
41576
|
},
|
|
41577
41577
|
className: "flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",
|
|
41578
41578
|
children: "Send Email"
|
|
@@ -41700,7 +41700,7 @@ const MA = {
|
|
|
41700
41700
|
itemsPerPage: c = 12,
|
|
41701
41701
|
dateFieldLabel: l = "Published"
|
|
41702
41702
|
}) => {
|
|
41703
|
-
const [d, h] = _([]), [u, p] = _([]), [y, m] = _([]), [
|
|
41703
|
+
const [d, h] = _([]), [u, p] = _([]), [y, m] = _([]), [g, f] = _({}), [k, v] = _(""), [M, w] = _({}), [C, b] = _(!1), [I, j] = _(c), [N, S] = _(/* @__PURE__ */ new Set());
|
|
41704
41704
|
_(o);
|
|
41705
41705
|
const [R, A] = _("grid"), [P, T] = _(1), [F, B] = _([]), [z, V] = _(!1), [D, X] = _([]), [ie, ee] = _([]), [qe, J] = _(!0), [Y, Q] = _("all"), [te, G] = _(""), ae = (U) => U.trim().toLowerCase().replace(/\s+/g, "-"), [ve, se] = _(n), [pe, de] = _(null);
|
|
41706
41706
|
ce(() => {
|
|
@@ -41890,9 +41890,9 @@ const MA = {
|
|
|
41890
41890
|
children: /* @__PURE__ */ a.jsx(Wa, { size: 16, className: "mr-1.5" })
|
|
41891
41891
|
}
|
|
41892
41892
|
),
|
|
41893
|
-
|
|
41893
|
+
k && /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 mt-3 px-4 sm:px-6 lg:px-8", children: [
|
|
41894
41894
|
/* @__PURE__ */ a.jsxs("span", { className: "bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center", children: [
|
|
41895
|
-
|
|
41895
|
+
k,
|
|
41896
41896
|
/* @__PURE__ */ a.jsx(
|
|
41897
41897
|
"button",
|
|
41898
41898
|
{
|
|
@@ -41952,7 +41952,7 @@ const MA = {
|
|
|
41952
41952
|
onDateFilterChange: E,
|
|
41953
41953
|
filterKeys: e,
|
|
41954
41954
|
searchableFilters: r,
|
|
41955
|
-
filtersData:
|
|
41955
|
+
filtersData: g,
|
|
41956
41956
|
activeFilters: M,
|
|
41957
41957
|
handleFilterChange: Ra,
|
|
41958
41958
|
toggleSavedJobsFilter: () => console.log("toggle saved jobs filter"),
|
|
@@ -42050,7 +42050,7 @@ const MA = {
|
|
|
42050
42050
|
dateFieldLabel: l,
|
|
42051
42051
|
activeFilters: M,
|
|
42052
42052
|
handleFilterChange: Ra,
|
|
42053
|
-
filtersData:
|
|
42053
|
+
filtersData: g,
|
|
42054
42054
|
isMobileFilterOpen: z,
|
|
42055
42055
|
toggleMobileFilter: Mt
|
|
42056
42056
|
}
|
|
@@ -42273,8 +42273,8 @@ const MA = {
|
|
|
42273
42273
|
return v.title.toLowerCase().includes(M) || ((w = v.description) == null ? void 0 : w.toLowerCase().includes(M)) || ((C = v.instructor) == null ? void 0 : C.toLowerCase().includes(M)) || ((b = v.tags) == null ? void 0 : b.some((N) => N.toLowerCase().includes(M))) || ((I = v.category) == null ? void 0 : I.toLowerCase().includes(M)) || ((j = v.subcategory) == null ? void 0 : j.toLowerCase().includes(M));
|
|
42274
42274
|
});
|
|
42275
42275
|
e(m);
|
|
42276
|
-
const
|
|
42277
|
-
l([...
|
|
42276
|
+
const g = t.filter((v) => v.title.toLowerCase().includes(o.toLowerCase())).map((v) => v.title).slice(0, 3), f = t.flatMap((v) => v.tags ?? []).filter((v) => v.toLowerCase().includes(o.toLowerCase())).filter((v, M, w) => w.indexOf(v) === M).slice(0, 3), k = t.filter((v) => v.instructor ? v.instructor.toLowerCase().includes(o.toLowerCase()) : !1).map((v) => v.instructor).filter((v, M, w) => w.indexOf(v) === M).slice(0, 2);
|
|
42277
|
+
l([...g, ...f, ...k]), h(!0);
|
|
42278
42278
|
} else
|
|
42279
42279
|
e(t), l([]), h(!1);
|
|
42280
42280
|
}, [o, t, e]);
|
|
@@ -42302,7 +42302,7 @@ const MA = {
|
|
|
42302
42302
|
),
|
|
42303
42303
|
o && /* @__PURE__ */ a.jsx("button", { onClick: y, className: "absolute inset-y-0 right-0 pr-3 flex items-center", children: /* @__PURE__ */ a.jsx(Yt, { className: "h-5 w-5 text-gray-400 hover:text-gray-600" }) })
|
|
42304
42304
|
] }),
|
|
42305
|
-
d && c.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg", children: /* @__PURE__ */ a.jsx("ul", { className: "py-1", children: c.map((m,
|
|
42305
|
+
d && c.length > 0 && /* @__PURE__ */ a.jsx("div", { className: "absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg", children: /* @__PURE__ */ a.jsx("ul", { className: "py-1", children: c.map((m, g) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
42306
42306
|
"button",
|
|
42307
42307
|
{
|
|
42308
42308
|
onClick: () => p(m),
|
|
@@ -42312,7 +42312,7 @@ const MA = {
|
|
|
42312
42312
|
m
|
|
42313
42313
|
] })
|
|
42314
42314
|
}
|
|
42315
|
-
) },
|
|
42315
|
+
) }, g)) }) }),
|
|
42316
42316
|
o && /* @__PURE__ */ a.jsxs("div", { className: "mt-2 text-sm text-gray-600", children: [
|
|
42317
42317
|
'Search results for "',
|
|
42318
42318
|
o,
|
|
@@ -42406,14 +42406,14 @@ const MA = {
|
|
|
42406
42406
|
onCategorySelect: p,
|
|
42407
42407
|
onSubcategorySelect: y
|
|
42408
42408
|
}) => {
|
|
42409
|
-
const [m,
|
|
42409
|
+
const [m, g] = _(!1), f = [
|
|
42410
42410
|
{ value: "relevance", label: "Most Relevant" },
|
|
42411
42411
|
{ value: "price-low-high", label: "Price: Low to High" },
|
|
42412
42412
|
{ value: "price-high-low", label: "Price: High to Low" },
|
|
42413
42413
|
{ value: "rating", label: "Highest Rated" },
|
|
42414
42414
|
{ value: "newest", label: "Newest" },
|
|
42415
42415
|
{ value: "most-enrolled", label: "Most Enrolled" }
|
|
42416
|
-
],
|
|
42416
|
+
], k = ["English", "Spanish", "French", "German", "Multiple"], v = ["Lifetime Access", "Certificate", "Mobile Access", "Expert Support"], M = (b) => {
|
|
42417
42417
|
const I = t.languages.includes(b) ? t.languages.filter((j) => j !== b) : [...t.languages, b];
|
|
42418
42418
|
r({ ...t, languages: I });
|
|
42419
42419
|
}, w = (b) => {
|
|
@@ -42430,7 +42430,7 @@ const MA = {
|
|
|
42430
42430
|
] }),
|
|
42431
42431
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
42432
42432
|
C && /* @__PURE__ */ a.jsx("button", { onClick: o, className: "text-sm text-indigo-600 hover:text-indigo-800", children: "Clear All" }),
|
|
42433
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () =>
|
|
42433
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => g(!m), className: "lg:hidden p-1 rounded-md hover:bg-gray-100", children: /* @__PURE__ */ a.jsx(Di, { className: `w-4 h-4 transition-transform ${m ? "rotate-180" : ""}` }) })
|
|
42434
42434
|
] })
|
|
42435
42435
|
] }),
|
|
42436
42436
|
/* @__PURE__ */ a.jsxs("p", { className: "text-sm text-gray-600 mt-2", children: [
|
|
@@ -42467,7 +42467,7 @@ const MA = {
|
|
|
42467
42467
|
),
|
|
42468
42468
|
/* @__PURE__ */ a.jsxs("div", { className: "p-4 border-b border-gray-200", children: [
|
|
42469
42469
|
/* @__PURE__ */ a.jsx("h4", { className: "text-sm font-medium text-gray-900 mb-3", children: "Language" }),
|
|
42470
|
-
/* @__PURE__ */ a.jsx("div", { className: "space-y-2", children:
|
|
42470
|
+
/* @__PURE__ */ a.jsx("div", { className: "space-y-2", children: k.map((b) => /* @__PURE__ */ a.jsxs("label", { className: "flex items-center", children: [
|
|
42471
42471
|
/* @__PURE__ */ a.jsx(
|
|
42472
42472
|
"input",
|
|
42473
42473
|
{
|
|
@@ -42529,11 +42529,11 @@ const MA = {
|
|
|
42529
42529
|
onSubcategorySelect: p,
|
|
42530
42530
|
isMobileFilterOpen: y,
|
|
42531
42531
|
toggleMobileFilter: m,
|
|
42532
|
-
enableMobileFilter:
|
|
42532
|
+
enableMobileFilter: g,
|
|
42533
42533
|
showFilterName: f = !0,
|
|
42534
|
-
isMobile:
|
|
42535
|
-
}) => /* @__PURE__ */ a.jsxs("aside", { className:
|
|
42536
|
-
|
|
42534
|
+
isMobile: k = !1
|
|
42535
|
+
}) => /* @__PURE__ */ a.jsxs("aside", { className: k ? "lg:w-1/4 space-y-6" : "w-full space-y-6", children: [
|
|
42536
|
+
g && /* @__PURE__ */ a.jsx(
|
|
42537
42537
|
"button",
|
|
42538
42538
|
{
|
|
42539
42539
|
className: "block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",
|
|
@@ -42713,12 +42713,12 @@ const MA = {
|
|
|
42713
42713
|
c * o
|
|
42714
42714
|
), p = Jc(null), y = (m) => {
|
|
42715
42715
|
l(m), setTimeout(() => {
|
|
42716
|
-
var
|
|
42717
|
-
(
|
|
42716
|
+
var g;
|
|
42717
|
+
(g = p.current) == null || g.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
42718
42718
|
}, 100);
|
|
42719
42719
|
};
|
|
42720
42720
|
return t.length > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
42721
|
-
/* @__PURE__ */ a.jsx("div", { className: d === "grid" ? "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6" : "space-y-6", children: u.map((m,
|
|
42721
|
+
/* @__PURE__ */ a.jsx("div", { className: d === "grid" ? "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6" : "space-y-6", children: u.map((m, g) => /* @__PURE__ */ a.jsx("div", { ref: g === 0 ? p : null, children: /* @__PURE__ */ a.jsx(
|
|
42722
42722
|
cO,
|
|
42723
42723
|
{
|
|
42724
42724
|
course: m,
|
|
@@ -42747,7 +42747,7 @@ const MA = {
|
|
|
42747
42747
|
enableMobileFilter: e = !0,
|
|
42748
42748
|
itemsPerPage: r = 9
|
|
42749
42749
|
}) => {
|
|
42750
|
-
const [n, o] = _([]), [i, c] = _([]), [l, d] = _(/* @__PURE__ */ new Set()), [h, u] = _(""), [p, y] = _(""), [m,
|
|
42750
|
+
const [n, o] = _([]), [i, c] = _([]), [l, d] = _(/* @__PURE__ */ new Set()), [h, u] = _(""), [p, y] = _(""), [m, g] = _("relevance"), [f, k] = _(!1), [v, M] = _(1), [w, C] = _(!1), [b, I] = _(!1), [j, N] = _(!0), [S, R] = _(""), [A, P] = _([]), [T, F] = _([]), [B, z] = _("grid"), [V, D] = _(r), X = () => {
|
|
42751
42751
|
z((E) => E === "grid" ? "list" : "grid");
|
|
42752
42752
|
}, ie = (E) => (E ?? "").trim().toLowerCase().replace(/\s+/g, "-"), ee = db(() => {
|
|
42753
42753
|
const E = /* @__PURE__ */ new Map();
|
|
@@ -42863,7 +42863,7 @@ const MA = {
|
|
|
42863
42863
|
languages: [],
|
|
42864
42864
|
features: [],
|
|
42865
42865
|
rating: 0
|
|
42866
|
-
}), u(""), y(""),
|
|
42866
|
+
}), u(""), y(""), k(!1), R(""), c(n);
|
|
42867
42867
|
}, pe = () => {
|
|
42868
42868
|
C(!w);
|
|
42869
42869
|
}, de = Q.length === 0 ? 0 : (v - 1) * V + 1, Ve = Math.min(v * V, Q.length), Ne = (E) => {
|
|
@@ -42962,7 +42962,7 @@ const MA = {
|
|
|
42962
42962
|
{
|
|
42963
42963
|
sortBy: m,
|
|
42964
42964
|
onFiltersChange: Y,
|
|
42965
|
-
onSortChange:
|
|
42965
|
+
onSortChange: g,
|
|
42966
42966
|
onClearFilters: se,
|
|
42967
42967
|
totalCourses: n.length,
|
|
42968
42968
|
filteredCourses: Q.length,
|
|
@@ -42986,7 +42986,7 @@ const MA = {
|
|
|
42986
42986
|
filters: J,
|
|
42987
42987
|
sortBy: m,
|
|
42988
42988
|
onFiltersChange: Y,
|
|
42989
|
-
onSortChange:
|
|
42989
|
+
onSortChange: g,
|
|
42990
42990
|
onClearFilters: se,
|
|
42991
42991
|
totalCourses: n.length,
|
|
42992
42992
|
filteredCourses: Q.length,
|
|
@@ -43194,7 +43194,7 @@ function yO() {
|
|
|
43194
43194
|
N.type = "text/css", N.rel = "stylesheet", N.href = j, I.appendChild(N);
|
|
43195
43195
|
});
|
|
43196
43196
|
}
|
|
43197
|
-
},
|
|
43197
|
+
}, g = (b) => {
|
|
43198
43198
|
const { src: I, id: j, onLoad: N = () => {
|
|
43199
43199
|
}, onReady: S = null, dangerouslySetInnerHTML: R, children: A = "", strategy: P = "afterInteractive", onError: T, stylesheets: F } = b, B = j || I;
|
|
43200
43200
|
if (B && y.has(B))
|
|
@@ -43219,12 +43219,12 @@ function yO() {
|
|
|
43219
43219
|
function f(b) {
|
|
43220
43220
|
const { strategy: I = "afterInteractive" } = b;
|
|
43221
43221
|
I === "lazyOnload" ? window.addEventListener("load", () => {
|
|
43222
|
-
(0, u.requestIdleCallback)(() =>
|
|
43223
|
-
}) :
|
|
43222
|
+
(0, u.requestIdleCallback)(() => g(b));
|
|
43223
|
+
}) : g(b);
|
|
43224
43224
|
}
|
|
43225
|
-
function
|
|
43226
|
-
document.readyState === "complete" ? (0, u.requestIdleCallback)(() =>
|
|
43227
|
-
(0, u.requestIdleCallback)(() =>
|
|
43225
|
+
function k(b) {
|
|
43226
|
+
document.readyState === "complete" ? (0, u.requestIdleCallback)(() => g(b)) : window.addEventListener("load", () => {
|
|
43227
|
+
(0, u.requestIdleCallback)(() => g(b));
|
|
43228
43228
|
});
|
|
43229
43229
|
}
|
|
43230
43230
|
function v() {
|
|
@@ -43252,7 +43252,7 @@ function yO() {
|
|
|
43252
43252
|
]);
|
|
43253
43253
|
const ie = (0, l.useRef)(!1);
|
|
43254
43254
|
if ((0, l.useEffect)(() => {
|
|
43255
|
-
ie.current || (R === "afterInteractive" ?
|
|
43255
|
+
ie.current || (R === "afterInteractive" ? g(b) : R === "lazyOnload" && k(b), ie.current = !0);
|
|
43256
43256
|
}, [
|
|
43257
43257
|
b,
|
|
43258
43258
|
R
|
|
@@ -43265,7 +43265,7 @@ function yO() {
|
|
|
43265
43265
|
onError: A,
|
|
43266
43266
|
...T
|
|
43267
43267
|
}
|
|
43268
|
-
]), F(B)) : z && z() ? y.add(I || j) : z && !z() &&
|
|
43268
|
+
]), F(B)) : z && z() ? y.add(I || j) : z && !z() && g(b)), V) {
|
|
43269
43269
|
if (P && P.forEach((ee) => {
|
|
43270
43270
|
c.default.preinit(ee, {
|
|
43271
43271
|
as: "style"
|
|
@@ -43362,14 +43362,14 @@ function gO(t, e = []) {
|
|
|
43362
43362
|
r = [...r, c];
|
|
43363
43363
|
const h = (p) => {
|
|
43364
43364
|
var v;
|
|
43365
|
-
const { scope: y, children: m, ...
|
|
43366
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
43365
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
43366
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
43367
43367
|
};
|
|
43368
43368
|
h.displayName = i + "Provider";
|
|
43369
43369
|
function u(p, y) {
|
|
43370
43370
|
var f;
|
|
43371
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
43372
|
-
if (
|
|
43371
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
43372
|
+
if (g) return g;
|
|
43373
43373
|
if (c !== void 0) return c;
|
|
43374
43374
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
43375
43375
|
}
|
|
@@ -43526,9 +43526,9 @@ function SO(t) {
|
|
|
43526
43526
|
const u = e.ownerDocument.defaultView ?? window, p = (m) => {
|
|
43527
43527
|
const f = p1(n.current).includes(CSS.escape(m.animationName));
|
|
43528
43528
|
if (m.target === e && f && (d("ANIMATION_END"), !o.current)) {
|
|
43529
|
-
const
|
|
43529
|
+
const k = e.style.animationFillMode;
|
|
43530
43530
|
e.style.animationFillMode = "forwards", h = u.setTimeout(() => {
|
|
43531
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode =
|
|
43531
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = k);
|
|
43532
43532
|
});
|
|
43533
43533
|
}
|
|
43534
43534
|
}, y = (m) => {
|
|
@@ -43598,14 +43598,14 @@ function _O(t) {
|
|
|
43598
43598
|
defaultProp: o ?? !1,
|
|
43599
43599
|
onChange: d,
|
|
43600
43600
|
caller: Ub
|
|
43601
|
-
}), [
|
|
43601
|
+
}), [g, f] = x.useState(null), [k, v] = x.useState(null), M = x.useRef(!1), w = g ? !!c || !!g.closest("form") : (
|
|
43602
43602
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
43603
43603
|
!0
|
|
43604
43604
|
), C = {
|
|
43605
43605
|
checked: y,
|
|
43606
43606
|
disabled: i,
|
|
43607
43607
|
setChecked: m,
|
|
43608
|
-
control:
|
|
43608
|
+
control: g,
|
|
43609
43609
|
setControl: f,
|
|
43610
43610
|
name: l,
|
|
43611
43611
|
form: c,
|
|
@@ -43614,7 +43614,7 @@ function _O(t) {
|
|
|
43614
43614
|
required: h,
|
|
43615
43615
|
defaultChecked: Xa(o) ? !1 : o,
|
|
43616
43616
|
isFormControl: w,
|
|
43617
|
-
bubbleInput:
|
|
43617
|
+
bubbleInput: k,
|
|
43618
43618
|
setBubbleInput: v
|
|
43619
43619
|
};
|
|
43620
43620
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -43638,12 +43638,12 @@ var LA = "CheckboxTrigger", SA = x.forwardRef(
|
|
|
43638
43638
|
setChecked: p,
|
|
43639
43639
|
hasConsumerStoppedPropagationRef: y,
|
|
43640
43640
|
isFormControl: m,
|
|
43641
|
-
bubbleInput:
|
|
43642
|
-
} = rL(LA, t), f = Qj(o, u),
|
|
43641
|
+
bubbleInput: g
|
|
43642
|
+
} = rL(LA, t), f = Qj(o, u), k = x.useRef(d);
|
|
43643
43643
|
return x.useEffect(() => {
|
|
43644
43644
|
const v = i == null ? void 0 : i.form;
|
|
43645
43645
|
if (v) {
|
|
43646
|
-
const M = () => p(
|
|
43646
|
+
const M = () => p(k.current);
|
|
43647
43647
|
return v.addEventListener("reset", M), () => v.removeEventListener("reset", M);
|
|
43648
43648
|
}
|
|
43649
43649
|
}, [i, p]), /* @__PURE__ */ a.jsx(
|
|
@@ -43663,7 +43663,7 @@ var LA = "CheckboxTrigger", SA = x.forwardRef(
|
|
|
43663
43663
|
v.key === "Enter" && v.preventDefault();
|
|
43664
43664
|
}),
|
|
43665
43665
|
onClick: kS(r, (v) => {
|
|
43666
|
-
p((M) => Xa(M) ? !0 : !M),
|
|
43666
|
+
p((M) => Xa(M) ? !0 : !M), g && m && (y.current = v.isPropagationStopped(), y.current || v.stopPropagation());
|
|
43667
43667
|
})
|
|
43668
43668
|
}
|
|
43669
43669
|
);
|
|
@@ -43753,7 +43753,7 @@ var AA = "CheckboxBubbleInput", PA = x.forwardRef(
|
|
|
43753
43753
|
form: p,
|
|
43754
43754
|
bubbleInput: y,
|
|
43755
43755
|
setBubbleInput: m
|
|
43756
|
-
} = rL(AA, t),
|
|
43756
|
+
} = rL(AA, t), g = Qj(r, m), f = eL(i), k = tL(n);
|
|
43757
43757
|
x.useEffect(() => {
|
|
43758
43758
|
const M = y;
|
|
43759
43759
|
if (!M) return;
|
|
@@ -43780,10 +43780,10 @@ var AA = "CheckboxBubbleInput", PA = x.forwardRef(
|
|
|
43780
43780
|
form: p,
|
|
43781
43781
|
...e,
|
|
43782
43782
|
tabIndex: -1,
|
|
43783
|
-
ref:
|
|
43783
|
+
ref: g,
|
|
43784
43784
|
style: {
|
|
43785
43785
|
...e.style,
|
|
43786
|
-
...
|
|
43786
|
+
...k,
|
|
43787
43787
|
position: "absolute",
|
|
43788
43788
|
pointerEvents: "none",
|
|
43789
43789
|
opacity: 0,
|
|
@@ -43872,8 +43872,8 @@ function DO({
|
|
|
43872
43872
|
identifierLabel: l = "Email or Username",
|
|
43873
43873
|
identifierPlaceholder: d = "you@example.com"
|
|
43874
43874
|
}) {
|
|
43875
|
-
const [h, u] = _(""), [p, y] = _(""), [m,
|
|
43876
|
-
|
|
43875
|
+
const [h, u] = _(""), [p, y] = _(""), [m, g] = _(!1), f = (k) => {
|
|
43876
|
+
k.preventDefault(), t(h, p, m);
|
|
43877
43877
|
};
|
|
43878
43878
|
return /* @__PURE__ */ a.jsxs(we, { className: "w-full max-w-md", children: [
|
|
43879
43879
|
/* @__PURE__ */ a.jsxs(Te, { className: "space-y-1", children: [
|
|
@@ -43897,7 +43897,7 @@ function DO({
|
|
|
43897
43897
|
type: "text",
|
|
43898
43898
|
placeholder: d,
|
|
43899
43899
|
value: h,
|
|
43900
|
-
onChange: (
|
|
43900
|
+
onChange: (k) => u(k.target.value),
|
|
43901
43901
|
className: "pl-10",
|
|
43902
43902
|
required: !0,
|
|
43903
43903
|
disabled: n
|
|
@@ -43916,7 +43916,7 @@ function DO({
|
|
|
43916
43916
|
type: "password",
|
|
43917
43917
|
placeholder: "••••••••",
|
|
43918
43918
|
value: p,
|
|
43919
|
-
onChange: (
|
|
43919
|
+
onChange: (k) => y(k.target.value),
|
|
43920
43920
|
className: "pl-10",
|
|
43921
43921
|
required: !0,
|
|
43922
43922
|
disabled: n
|
|
@@ -43931,7 +43931,7 @@ function DO({
|
|
|
43931
43931
|
{
|
|
43932
43932
|
id: "remember",
|
|
43933
43933
|
checked: m,
|
|
43934
|
-
onCheckedChange: (
|
|
43934
|
+
onCheckedChange: (k) => g(k),
|
|
43935
43935
|
disabled: n
|
|
43936
43936
|
}
|
|
43937
43937
|
),
|
|
@@ -44017,7 +44017,7 @@ function zO({
|
|
|
44017
44017
|
title: i = "Create Account",
|
|
44018
44018
|
description: c = "Join us to access exclusive opportunities"
|
|
44019
44019
|
}) {
|
|
44020
|
-
const [l, d] = _({}), [h, u] = _(""), p = (m,
|
|
44020
|
+
const [l, d] = _({}), [h, u] = _(""), p = (m, g) => d((f) => ({ ...f, [m]: g })), y = (m) => {
|
|
44021
44021
|
if (m.preventDefault(), u(""), "password" in l && "confirmPassword" in l && l.password !== l.confirmPassword) {
|
|
44022
44022
|
u("Passwords do not match");
|
|
44023
44023
|
return;
|
|
@@ -44046,7 +44046,7 @@ function zO({
|
|
|
44046
44046
|
required: m.required,
|
|
44047
44047
|
disabled: n,
|
|
44048
44048
|
value: l[m.name] || "",
|
|
44049
|
-
onChange: (
|
|
44049
|
+
onChange: (g) => p(m.name, g.target.value)
|
|
44050
44050
|
}
|
|
44051
44051
|
)
|
|
44052
44052
|
] }, m.name))
|
|
@@ -44452,14 +44452,14 @@ function $O(t, e = []) {
|
|
|
44452
44452
|
r = [...r, c];
|
|
44453
44453
|
const h = (p) => {
|
|
44454
44454
|
var v;
|
|
44455
|
-
const { scope: y, children: m, ...
|
|
44456
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
44455
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
44456
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
44457
44457
|
};
|
|
44458
44458
|
h.displayName = i + "Provider";
|
|
44459
44459
|
function u(p, y) {
|
|
44460
44460
|
var f;
|
|
44461
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
44462
|
-
if (
|
|
44461
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
44462
|
+
if (g) return g;
|
|
44463
44463
|
if (c !== void 0) return c;
|
|
44464
44464
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
44465
44465
|
}
|
|
@@ -44582,7 +44582,7 @@ var KO = [
|
|
|
44582
44582
|
onCheckedChange: h,
|
|
44583
44583
|
form: u,
|
|
44584
44584
|
...p
|
|
44585
|
-
} = t, [y, m] = x.useState(null),
|
|
44585
|
+
} = t, [y, m] = x.useState(null), g = TA(e, (w) => m(w)), f = x.useRef(!1), k = y ? u || !!y.closest("form") : !0, [v, M] = XO({
|
|
44586
44586
|
prop: o,
|
|
44587
44587
|
defaultProp: i ?? !1,
|
|
44588
44588
|
onChange: h,
|
|
@@ -44601,13 +44601,13 @@ var KO = [
|
|
|
44601
44601
|
disabled: l,
|
|
44602
44602
|
value: d,
|
|
44603
44603
|
...p,
|
|
44604
|
-
ref:
|
|
44604
|
+
ref: g,
|
|
44605
44605
|
onClick: BO(t.onClick, (w) => {
|
|
44606
|
-
M((C) => !C),
|
|
44606
|
+
M((C) => !C), k && (f.current = w.isPropagationStopped(), f.current || w.stopPropagation());
|
|
44607
44607
|
})
|
|
44608
44608
|
}
|
|
44609
44609
|
),
|
|
44610
|
-
|
|
44610
|
+
k && /* @__PURE__ */ a.jsx(
|
|
44611
44611
|
FA,
|
|
44612
44612
|
{
|
|
44613
44613
|
control: y,
|
|
@@ -44657,8 +44657,8 @@ var aE = "SwitchBubbleInput", FA = x.forwardRef(
|
|
|
44657
44657
|
"checked"
|
|
44658
44658
|
).set;
|
|
44659
44659
|
if (d !== r && m) {
|
|
44660
|
-
const
|
|
44661
|
-
m.call(u, r), u.dispatchEvent(
|
|
44660
|
+
const g = new Event("click", { bubbles: n });
|
|
44661
|
+
m.call(u, r), u.dispatchEvent(g);
|
|
44662
44662
|
}
|
|
44663
44663
|
}, [d, r, n]), /* @__PURE__ */ a.jsx(
|
|
44664
44664
|
"input",
|
|
@@ -44743,14 +44743,14 @@ function oE(t, e = []) {
|
|
|
44743
44743
|
r = [...r, c];
|
|
44744
44744
|
const h = (p) => {
|
|
44745
44745
|
var v;
|
|
44746
|
-
const { scope: y, children: m, ...
|
|
44747
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
44746
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
44747
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
44748
44748
|
};
|
|
44749
44749
|
h.displayName = i + "Provider";
|
|
44750
44750
|
function u(p, y) {
|
|
44751
44751
|
var f;
|
|
44752
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
44753
|
-
if (
|
|
44752
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
44753
|
+
if (g) return g;
|
|
44754
44754
|
if (c !== void 0) return c;
|
|
44755
44755
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
44756
44756
|
}
|
|
@@ -44963,10 +44963,10 @@ const ME = async (t, e, r) => {
|
|
|
44963
44963
|
}), {
|
|
44964
44964
|
x: u,
|
|
44965
44965
|
y: p
|
|
44966
|
-
} = bS(h, n, d), y = n, m = {},
|
|
44966
|
+
} = bS(h, n, d), y = n, m = {}, g = 0;
|
|
44967
44967
|
for (let f = 0; f < l.length; f++) {
|
|
44968
44968
|
const {
|
|
44969
|
-
name:
|
|
44969
|
+
name: k,
|
|
44970
44970
|
fn: v
|
|
44971
44971
|
} = l[f], {
|
|
44972
44972
|
x: M,
|
|
@@ -44989,11 +44989,11 @@ const ME = async (t, e, r) => {
|
|
|
44989
44989
|
});
|
|
44990
44990
|
u = M ?? u, p = w ?? p, m = {
|
|
44991
44991
|
...m,
|
|
44992
|
-
[
|
|
44993
|
-
...m[
|
|
44992
|
+
[k]: {
|
|
44993
|
+
...m[k],
|
|
44994
44994
|
...C
|
|
44995
44995
|
}
|
|
44996
|
-
}, b &&
|
|
44996
|
+
}, b && g <= 50 && (g++, typeof b == "object" && (b.placement && (y = b.placement), b.rects && (h = b.rects === !0 ? await c.getElementRects({
|
|
44997
44997
|
reference: t,
|
|
44998
44998
|
floating: e,
|
|
44999
44999
|
strategy: o
|
|
@@ -45026,8 +45026,8 @@ async function Wc(t, e) {
|
|
|
45026
45026
|
elementContext: p = "floating",
|
|
45027
45027
|
altBoundary: y = !1,
|
|
45028
45028
|
padding: m = 0
|
|
45029
|
-
} = Aa(e, t),
|
|
45030
|
-
element: (r = await (i.isElement == null ? void 0 : i.isElement(
|
|
45029
|
+
} = Aa(e, t), g = HA(m), k = l[y ? p === "floating" ? "reference" : "floating" : p], v = jb(await i.getClippingRect({
|
|
45030
|
+
element: (r = await (i.isElement == null ? void 0 : i.isElement(k))) == null || r ? k : k.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
45031
45031
|
boundary: h,
|
|
45032
45032
|
rootBoundary: u,
|
|
45033
45033
|
strategy: d
|
|
@@ -45049,10 +45049,10 @@ async function Wc(t, e) {
|
|
|
45049
45049
|
strategy: d
|
|
45050
45050
|
}) : M);
|
|
45051
45051
|
return {
|
|
45052
|
-
top: (v.top - b.top +
|
|
45053
|
-
bottom: (b.bottom - v.bottom +
|
|
45054
|
-
left: (v.left - b.left +
|
|
45055
|
-
right: (b.right - v.right +
|
|
45052
|
+
top: (v.top - b.top + g.top) / C.y,
|
|
45053
|
+
bottom: (b.bottom - v.bottom + g.bottom) / C.y,
|
|
45054
|
+
left: (v.left - b.left + g.left) / C.x,
|
|
45055
|
+
right: (b.right - v.right + g.right) / C.x
|
|
45056
45056
|
};
|
|
45057
45057
|
}
|
|
45058
45058
|
const wE = (t) => ({
|
|
@@ -45076,10 +45076,10 @@ const wE = (t) => ({
|
|
|
45076
45076
|
const p = HA(u), y = {
|
|
45077
45077
|
x: r,
|
|
45078
45078
|
y: n
|
|
45079
|
-
}, m = lL(o),
|
|
45079
|
+
}, m = lL(o), g = cL(m), f = await c.getDimensions(h), k = m === "y", v = k ? "top" : "left", M = k ? "bottom" : "right", w = k ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[m] - y[m] - i.floating[g], b = y[m] - i.reference[m], I = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(h));
|
|
45080
45080
|
let j = I ? I[w] : 0;
|
|
45081
|
-
(!j || !await (c.isElement == null ? void 0 : c.isElement(I))) && (j = l.floating[w] || i.floating[
|
|
45082
|
-
const N = C / 2 - b / 2, S = j / 2 - f[
|
|
45081
|
+
(!j || !await (c.isElement == null ? void 0 : c.isElement(I))) && (j = l.floating[w] || i.floating[g]);
|
|
45082
|
+
const N = C / 2 - b / 2, S = j / 2 - f[g] / 2 - 1, R = Ka(p[v], S), A = Ka(p[M], S), P = R, T = j - f[g] - A, F = j / 2 - f[g] / 2 + N, B = aj(P, F, T), z = !d.arrow && Ys(o) != null && F !== B && i.reference[g] / 2 - (F < P ? R : A) - f[g] / 2 < 0, V = z ? F < P ? F - P : F - T : 0;
|
|
45083
45083
|
return {
|
|
45084
45084
|
[m]: y[m] + V,
|
|
45085
45085
|
data: {
|
|
@@ -45110,15 +45110,15 @@ const wE = (t) => ({
|
|
|
45110
45110
|
crossAxis: p = !0,
|
|
45111
45111
|
fallbackPlacements: y,
|
|
45112
45112
|
fallbackStrategy: m = "bestFit",
|
|
45113
|
-
fallbackAxisSideDirection:
|
|
45113
|
+
fallbackAxisSideDirection: g = "none",
|
|
45114
45114
|
flipAlignment: f = !0,
|
|
45115
|
-
...
|
|
45115
|
+
...k
|
|
45116
45116
|
} = Aa(t, e);
|
|
45117
45117
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
45118
45118
|
return {};
|
|
45119
|
-
const v = Pa(o), M = ca(l), w = Pa(l) === l, C = await (d.isRTL == null ? void 0 : d.isRTL(h.floating)), b = y || (w || !f ? [Cb(l)] : mE(l)), I =
|
|
45120
|
-
!y && I && b.push(...gE(l, f,
|
|
45121
|
-
const j = [l, ...b], N = await Wc(e,
|
|
45119
|
+
const v = Pa(o), M = ca(l), w = Pa(l) === l, C = await (d.isRTL == null ? void 0 : d.isRTL(h.floating)), b = y || (w || !f ? [Cb(l)] : mE(l)), I = g !== "none";
|
|
45120
|
+
!y && I && b.push(...gE(l, f, g, C));
|
|
45121
|
+
const j = [l, ...b], N = await Wc(e, k), S = [];
|
|
45122
45122
|
let R = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
45123
45123
|
if (u && S.push(N[v]), p) {
|
|
45124
45124
|
const F = yE(o, c, C);
|
|
@@ -45236,7 +45236,7 @@ async function jE(t, e) {
|
|
|
45236
45236
|
let {
|
|
45237
45237
|
mainAxis: y,
|
|
45238
45238
|
crossAxis: m,
|
|
45239
|
-
alignmentAxis:
|
|
45239
|
+
alignmentAxis: g
|
|
45240
45240
|
} = typeof p == "number" ? {
|
|
45241
45241
|
mainAxis: p,
|
|
45242
45242
|
crossAxis: 0,
|
|
@@ -45246,7 +45246,7 @@ async function jE(t, e) {
|
|
|
45246
45246
|
crossAxis: p.crossAxis || 0,
|
|
45247
45247
|
alignmentAxis: p.alignmentAxis
|
|
45248
45248
|
};
|
|
45249
|
-
return l && typeof
|
|
45249
|
+
return l && typeof g == "number" && (m = l === "end" ? g * -1 : g), d ? {
|
|
45250
45250
|
x: m * u,
|
|
45251
45251
|
y: y * h
|
|
45252
45252
|
} : {
|
|
@@ -45289,11 +45289,11 @@ const LE = function(t) {
|
|
|
45289
45289
|
mainAxis: i = !0,
|
|
45290
45290
|
crossAxis: c = !1,
|
|
45291
45291
|
limiter: l = {
|
|
45292
|
-
fn: (
|
|
45292
|
+
fn: (k) => {
|
|
45293
45293
|
let {
|
|
45294
45294
|
x: v,
|
|
45295
45295
|
y: M
|
|
45296
|
-
} =
|
|
45296
|
+
} = k;
|
|
45297
45297
|
return {
|
|
45298
45298
|
x: v,
|
|
45299
45299
|
y: M
|
|
@@ -45305,19 +45305,19 @@ const LE = function(t) {
|
|
|
45305
45305
|
x: r,
|
|
45306
45306
|
y: n
|
|
45307
45307
|
}, u = await Wc(e, d), p = ca(Pa(o)), y = sL(p);
|
|
45308
|
-
let m = h[y],
|
|
45308
|
+
let m = h[y], g = h[p];
|
|
45309
45309
|
if (i) {
|
|
45310
|
-
const
|
|
45310
|
+
const k = y === "y" ? "top" : "left", v = y === "y" ? "bottom" : "right", M = m + u[k], w = m - u[v];
|
|
45311
45311
|
m = aj(M, m, w);
|
|
45312
45312
|
}
|
|
45313
45313
|
if (c) {
|
|
45314
|
-
const
|
|
45315
|
-
|
|
45314
|
+
const k = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", M = g + u[k], w = g - u[v];
|
|
45315
|
+
g = aj(M, g, w);
|
|
45316
45316
|
}
|
|
45317
45317
|
const f = l.fn({
|
|
45318
45318
|
...e,
|
|
45319
45319
|
[y]: m,
|
|
45320
|
-
[p]:
|
|
45320
|
+
[p]: g
|
|
45321
45321
|
});
|
|
45322
45322
|
return {
|
|
45323
45323
|
...f,
|
|
@@ -45350,8 +45350,8 @@ const LE = function(t) {
|
|
|
45350
45350
|
x: r,
|
|
45351
45351
|
y: n
|
|
45352
45352
|
}, p = ca(o), y = sL(p);
|
|
45353
|
-
let m = u[y],
|
|
45354
|
-
const f = Aa(l, e),
|
|
45353
|
+
let m = u[y], g = u[p];
|
|
45354
|
+
const f = Aa(l, e), k = typeof f == "number" ? {
|
|
45355
45355
|
mainAxis: f,
|
|
45356
45356
|
crossAxis: 0
|
|
45357
45357
|
} : {
|
|
@@ -45360,17 +45360,17 @@ const LE = function(t) {
|
|
|
45360
45360
|
...f
|
|
45361
45361
|
};
|
|
45362
45362
|
if (d) {
|
|
45363
|
-
const w = y === "y" ? "height" : "width", C = i.reference[y] - i.floating[w] +
|
|
45363
|
+
const w = y === "y" ? "height" : "width", C = i.reference[y] - i.floating[w] + k.mainAxis, b = i.reference[y] + i.reference[w] - k.mainAxis;
|
|
45364
45364
|
m < C ? m = C : m > b && (m = b);
|
|
45365
45365
|
}
|
|
45366
45366
|
if (h) {
|
|
45367
45367
|
var v, M;
|
|
45368
|
-
const w = y === "y" ? "width" : "height", C = VA.has(Pa(o)), b = i.reference[p] - i.floating[w] + (C && ((v = c.offset) == null ? void 0 : v[p]) || 0) + (C ? 0 :
|
|
45369
|
-
|
|
45368
|
+
const w = y === "y" ? "width" : "height", C = VA.has(Pa(o)), b = i.reference[p] - i.floating[w] + (C && ((v = c.offset) == null ? void 0 : v[p]) || 0) + (C ? 0 : k.crossAxis), I = i.reference[p] + i.reference[w] + (C ? 0 : ((M = c.offset) == null ? void 0 : M[p]) || 0) - (C ? k.crossAxis : 0);
|
|
45369
|
+
g < b ? g = b : g > I && (g = I);
|
|
45370
45370
|
}
|
|
45371
45371
|
return {
|
|
45372
45372
|
[y]: m,
|
|
45373
|
-
[p]:
|
|
45373
|
+
[p]: g
|
|
45374
45374
|
};
|
|
45375
45375
|
}
|
|
45376
45376
|
};
|
|
@@ -45390,16 +45390,16 @@ const LE = function(t) {
|
|
|
45390
45390
|
},
|
|
45391
45391
|
...h
|
|
45392
45392
|
} = Aa(t, e), u = await Wc(e, h), p = Pa(o), y = Ys(o), m = ca(o) === "y", {
|
|
45393
|
-
width:
|
|
45393
|
+
width: g,
|
|
45394
45394
|
height: f
|
|
45395
45395
|
} = i.floating;
|
|
45396
|
-
let
|
|
45397
|
-
p === "top" || p === "bottom" ? (
|
|
45398
|
-
const M = f - u.top - u.bottom, w =
|
|
45396
|
+
let k, v;
|
|
45397
|
+
p === "top" || p === "bottom" ? (k = p, v = y === (await (c.isRTL == null ? void 0 : c.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (v = p, k = y === "end" ? "top" : "bottom");
|
|
45398
|
+
const M = f - u.top - u.bottom, w = g - u.left - u.right, C = Ka(f - u[k], M), b = Ka(g - u[v], w), I = !e.middlewareData.shift;
|
|
45399
45399
|
let j = C, N = b;
|
|
45400
45400
|
if ((r = e.middlewareData.shift) != null && r.enabled.x && (N = w), (n = e.middlewareData.shift) != null && n.enabled.y && (j = M), I && !y) {
|
|
45401
45401
|
const R = Lt(u.left, 0), A = Lt(u.right, 0), P = Lt(u.top, 0), T = Lt(u.bottom, 0);
|
|
45402
|
-
m ? N =
|
|
45402
|
+
m ? N = g - 2 * (R !== 0 || A !== 0 ? R + A : Lt(u.left, u.right)) : j = f - 2 * (P !== 0 || T !== 0 ? P + T : Lt(u.top, u.bottom));
|
|
45403
45403
|
}
|
|
45404
45404
|
await d({
|
|
45405
45405
|
...e,
|
|
@@ -45407,7 +45407,7 @@ const LE = function(t) {
|
|
|
45407
45407
|
availableHeight: j
|
|
45408
45408
|
});
|
|
45409
45409
|
const S = await c.getDimensions(l.floating);
|
|
45410
|
-
return
|
|
45410
|
+
return g !== S.width || f !== S.height ? {
|
|
45411
45411
|
reset: {
|
|
45412
45412
|
rects: !0
|
|
45413
45413
|
}
|
|
@@ -45577,10 +45577,10 @@ function Zi(t, e, r, n) {
|
|
|
45577
45577
|
let d = (o.left + l.x) / c.x, h = (o.top + l.y) / c.y, u = o.width / c.x, p = o.height / c.y;
|
|
45578
45578
|
if (i) {
|
|
45579
45579
|
const y = At(i), m = n && Qt(n) ? At(n) : n;
|
|
45580
|
-
let
|
|
45581
|
-
for (; f && n && m !==
|
|
45582
|
-
const
|
|
45583
|
-
d *=
|
|
45580
|
+
let g = y, f = nj(g);
|
|
45581
|
+
for (; f && n && m !== g; ) {
|
|
45582
|
+
const k = Rs(f), v = f.getBoundingClientRect(), M = ea(f), w = v.left + (f.clientLeft + parseFloat(M.paddingLeft)) * k.x, C = v.top + (f.clientTop + parseFloat(M.paddingTop)) * k.y;
|
|
45583
|
+
d *= k.x, h *= k.y, u *= k.x, p *= k.y, d += w, h += C, g = At(f), f = nj(g);
|
|
45584
45584
|
}
|
|
45585
45585
|
}
|
|
45586
45586
|
return jb({
|
|
@@ -45653,8 +45653,8 @@ function UE(t, e) {
|
|
|
45653
45653
|
}
|
|
45654
45654
|
const h = Yb(n);
|
|
45655
45655
|
if (h <= 0) {
|
|
45656
|
-
const u = n.ownerDocument, p = u.body, y = getComputedStyle(p), m = u.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0,
|
|
45657
|
-
|
|
45656
|
+
const u = n.ownerDocument, p = u.body, y = getComputedStyle(p), m = u.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, g = Math.abs(n.clientWidth - p.clientWidth - m);
|
|
45657
|
+
g <= SS && (i -= g);
|
|
45658
45658
|
} else h <= SS && (i += h);
|
|
45659
45659
|
return {
|
|
45660
45660
|
width: i,
|
|
@@ -45837,8 +45837,8 @@ function eH(t, e) {
|
|
|
45837
45837
|
} = h;
|
|
45838
45838
|
if (l || e(), !y || !m)
|
|
45839
45839
|
return;
|
|
45840
|
-
const
|
|
45841
|
-
rootMargin: -
|
|
45840
|
+
const g = y1(p), f = y1(o.clientWidth - (u + y)), k = y1(o.clientHeight - (p + m)), v = y1(u), w = {
|
|
45841
|
+
rootMargin: -g + "px " + -f + "px " + -k + "px " + -v + "px",
|
|
45842
45842
|
threshold: Lt(0, Ka(1, d)) || 1
|
|
45843
45843
|
};
|
|
45844
45844
|
let C = !0;
|
|
@@ -45889,17 +45889,17 @@ function tH(t, e, r, n) {
|
|
|
45889
45889
|
(w = m) == null || w.observe(e);
|
|
45890
45890
|
})), r();
|
|
45891
45891
|
}), h && !d && m.observe(h), m.observe(e));
|
|
45892
|
-
let
|
|
45893
|
-
d &&
|
|
45894
|
-
function
|
|
45892
|
+
let g, f = d ? Zi(t) : null;
|
|
45893
|
+
d && k();
|
|
45894
|
+
function k() {
|
|
45895
45895
|
const v = Zi(t);
|
|
45896
|
-
f && !JA(f, v) && r(), f = v,
|
|
45896
|
+
f && !JA(f, v) && r(), f = v, g = requestAnimationFrame(k);
|
|
45897
45897
|
}
|
|
45898
45898
|
return r(), () => {
|
|
45899
45899
|
var v;
|
|
45900
45900
|
u.forEach((M) => {
|
|
45901
45901
|
o && M.removeEventListener("scroll", r), i && M.removeEventListener("resize", r);
|
|
45902
|
-
}), p == null || p(), (v = m) == null || v.disconnect(), m = null, d && cancelAnimationFrame(
|
|
45902
|
+
}), p == null || p(), (v = m) == null || v.disconnect(), m = null, d && cancelAnimationFrame(g);
|
|
45903
45903
|
};
|
|
45904
45904
|
}
|
|
45905
45905
|
const aH = LE, rH = SE, nH = bE, oH = NE, iH = CE, AS = wE, sH = IE, cH = (t, e, r) => {
|
|
@@ -45983,11 +45983,11 @@ function hH(t) {
|
|
|
45983
45983
|
isPositioned: !1
|
|
45984
45984
|
}), [y, m] = x.useState(n);
|
|
45985
45985
|
Lb(y, n) || m(n);
|
|
45986
|
-
const [
|
|
45986
|
+
const [g, f] = x.useState(null), [k, v] = x.useState(null), M = x.useCallback((D) => {
|
|
45987
45987
|
D !== I.current && (I.current = D, f(D));
|
|
45988
45988
|
}, []), w = x.useCallback((D) => {
|
|
45989
45989
|
D !== j.current && (j.current = D, v(D));
|
|
45990
|
-
}, []), C = i ||
|
|
45990
|
+
}, []), C = i || g, b = c || k, I = x.useRef(null), j = x.useRef(null), N = x.useRef(u), S = d != null, R = NC(d), A = NC(o), P = NC(h), T = x.useCallback(() => {
|
|
45991
45991
|
if (!I.current || !j.current)
|
|
45992
45992
|
return;
|
|
45993
45993
|
const D = {
|
|
@@ -46177,14 +46177,14 @@ function jH(t, e = []) {
|
|
|
46177
46177
|
r = [...r, c];
|
|
46178
46178
|
const h = (p) => {
|
|
46179
46179
|
var v;
|
|
46180
|
-
const { scope: y, children: m, ...
|
|
46181
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
46180
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
46181
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
46182
46182
|
};
|
|
46183
46183
|
h.displayName = i + "Provider";
|
|
46184
46184
|
function u(p, y) {
|
|
46185
46185
|
var f;
|
|
46186
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
46187
|
-
if (
|
|
46186
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
46187
|
+
if (g) return g;
|
|
46188
46188
|
if (c !== void 0) return c;
|
|
46189
46189
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
46190
46190
|
}
|
|
@@ -46286,9 +46286,9 @@ var yL = "PopperContent", [AH, PH] = tP(yL), iP = x.forwardRef(
|
|
|
46286
46286
|
sticky: p = "partial",
|
|
46287
46287
|
hideWhenDetached: y = !1,
|
|
46288
46288
|
updatePositionStrategy: m = "optimized",
|
|
46289
|
-
onPlaced:
|
|
46289
|
+
onPlaced: g,
|
|
46290
46290
|
...f
|
|
46291
|
-
} = t,
|
|
46291
|
+
} = t, k = aP(yL, r), [v, M] = x.useState(null), w = QA(e, (Ve) => M(Ve)), [C, b] = x.useState(null), I = tL(C), j = (I == null ? void 0 : I.width) ?? 0, N = (I == null ? void 0 : I.height) ?? 0, S = n + (i !== "center" ? "-" + i : ""), R = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, A = Array.isArray(h) ? h : [h], P = A.length > 0, T = {
|
|
46292
46292
|
padding: R,
|
|
46293
46293
|
boundary: A.filter(TH),
|
|
46294
46294
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -46301,7 +46301,7 @@ var yL = "PopperContent", [AH, PH] = tP(yL), iP = x.forwardRef(
|
|
|
46301
46301
|
animationFrame: m === "always"
|
|
46302
46302
|
}),
|
|
46303
46303
|
elements: {
|
|
46304
|
-
reference:
|
|
46304
|
+
reference: k.anchor
|
|
46305
46305
|
},
|
|
46306
46306
|
middleware: [
|
|
46307
46307
|
pH({ mainAxis: o + N, alignmentAxis: c }),
|
|
@@ -46323,7 +46323,7 @@ var yL = "PopperContent", [AH, PH] = tP(yL), iP = x.forwardRef(
|
|
|
46323
46323
|
RH({ arrowWidth: j, arrowHeight: N }),
|
|
46324
46324
|
y && kH({ strategy: "referenceHidden", ...T })
|
|
46325
46325
|
]
|
|
46326
|
-
}), [X, ie] = lP(z), ee = IH(
|
|
46326
|
+
}), [X, ie] = lP(z), ee = IH(g);
|
|
46327
46327
|
TS(() => {
|
|
46328
46328
|
V && (ee == null || ee());
|
|
46329
46329
|
}, [V, ee]);
|
|
@@ -46443,10 +46443,10 @@ var RH = (t) => ({
|
|
|
46443
46443
|
name: "transformOrigin",
|
|
46444
46444
|
options: t,
|
|
46445
46445
|
fn(e) {
|
|
46446
|
-
var
|
|
46447
|
-
const { placement: r, rects: n, middlewareData: o } = e, c = ((
|
|
46448
|
-
let
|
|
46449
|
-
return h === "bottom" ? (
|
|
46446
|
+
var k, v, M;
|
|
46447
|
+
const { placement: r, rects: n, middlewareData: o } = e, c = ((k = o.arrow) == null ? void 0 : k.centerOffset) !== 0, l = c ? 0 : t.arrowWidth, d = c ? 0 : t.arrowHeight, [h, u] = lP(r), p = { start: "0%", center: "50%", end: "100%" }[u], y = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + l / 2, m = (((M = o.arrow) == null ? void 0 : M.y) ?? 0) + d / 2;
|
|
46448
|
+
let g = "", f = "";
|
|
46449
|
+
return h === "bottom" ? (g = c ? p : `${y}px`, f = `${-d}px`) : h === "top" ? (g = c ? p : `${y}px`, f = `${n.floating.height + d}px`) : h === "right" ? (g = `${-d}px`, f = c ? p : `${m}px`) : h === "left" && (g = `${n.floating.width + d}px`, f = c ? p : `${m}px`), { data: { x: g, y: f } };
|
|
46450
46450
|
}
|
|
46451
46451
|
});
|
|
46452
46452
|
function lP(t) {
|
|
@@ -46491,9 +46491,9 @@ function DH(t) {
|
|
|
46491
46491
|
const u = e.ownerDocument.defaultView ?? window, p = (m) => {
|
|
46492
46492
|
const f = m1(n.current).includes(CSS.escape(m.animationName));
|
|
46493
46493
|
if (m.target === e && f && (d("ANIMATION_END"), !o.current)) {
|
|
46494
|
-
const
|
|
46494
|
+
const k = e.style.animationFillMode;
|
|
46495
46495
|
e.style.animationFillMode = "forwards", h = u.setTimeout(() => {
|
|
46496
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode =
|
|
46496
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = k);
|
|
46497
46497
|
});
|
|
46498
46498
|
}
|
|
46499
46499
|
}, y = (m) => {
|
|
@@ -46846,14 +46846,14 @@ function SP(t, e = []) {
|
|
|
46846
46846
|
r = [...r, c];
|
|
46847
46847
|
const h = (p) => {
|
|
46848
46848
|
var v;
|
|
46849
|
-
const { scope: y, children: m, ...
|
|
46850
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
46849
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
46850
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
46851
46851
|
};
|
|
46852
46852
|
h.displayName = i + "Provider";
|
|
46853
46853
|
function u(p, y) {
|
|
46854
46854
|
var f;
|
|
46855
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
46856
|
-
if (
|
|
46855
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
46856
|
+
if (g) return g;
|
|
46857
46857
|
if (c !== void 0) return c;
|
|
46858
46858
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
46859
46859
|
}
|
|
@@ -46918,38 +46918,38 @@ function iV(t) {
|
|
|
46918
46918
|
e,
|
|
46919
46919
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
46920
46920
|
), c = (f) => {
|
|
46921
|
-
const { scope:
|
|
46922
|
-
return /* @__PURE__ */ a.jsx(o, { scope:
|
|
46921
|
+
const { scope: k, children: v } = f, M = Je.useRef(null), w = Je.useRef(/* @__PURE__ */ new Map()).current;
|
|
46922
|
+
return /* @__PURE__ */ a.jsx(o, { scope: k, itemMap: w, collectionRef: M, children: v });
|
|
46923
46923
|
};
|
|
46924
46924
|
c.displayName = e;
|
|
46925
46925
|
const l = t + "CollectionSlot", d = /* @__PURE__ */ Qe(l), h = Je.forwardRef(
|
|
46926
|
-
(f,
|
|
46927
|
-
const { scope: v, children: M } = f, w = i(l, v), C = Bt(
|
|
46926
|
+
(f, k) => {
|
|
46927
|
+
const { scope: v, children: M } = f, w = i(l, v), C = Bt(k, w.collectionRef);
|
|
46928
46928
|
return /* @__PURE__ */ a.jsx(d, { ref: C, children: M });
|
|
46929
46929
|
}
|
|
46930
46930
|
);
|
|
46931
46931
|
h.displayName = l;
|
|
46932
46932
|
const u = t + "CollectionItemSlot", p = "data-radix-collection-item", y = /* @__PURE__ */ Qe(u), m = Je.forwardRef(
|
|
46933
|
-
(f,
|
|
46934
|
-
const { scope: v, children: M, ...w } = f, C = Je.useRef(null), b = Bt(
|
|
46933
|
+
(f, k) => {
|
|
46934
|
+
const { scope: v, children: M, ...w } = f, C = Je.useRef(null), b = Bt(k, C), I = i(u, v);
|
|
46935
46935
|
return Je.useEffect(() => (I.itemMap.set(C, { ref: C, ...w }), () => void I.itemMap.delete(C))), /* @__PURE__ */ a.jsx(y, { [p]: "", ref: b, children: M });
|
|
46936
46936
|
}
|
|
46937
46937
|
);
|
|
46938
46938
|
m.displayName = u;
|
|
46939
|
-
function
|
|
46940
|
-
const
|
|
46939
|
+
function g(f) {
|
|
46940
|
+
const k = i(t + "CollectionConsumer", f);
|
|
46941
46941
|
return Je.useCallback(() => {
|
|
46942
|
-
const M =
|
|
46942
|
+
const M = k.collectionRef.current;
|
|
46943
46943
|
if (!M) return [];
|
|
46944
46944
|
const w = Array.from(M.querySelectorAll(`[${p}]`));
|
|
46945
|
-
return Array.from(
|
|
46945
|
+
return Array.from(k.itemMap.values()).sort(
|
|
46946
46946
|
(I, j) => w.indexOf(I.ref.current) - w.indexOf(j.ref.current)
|
|
46947
46947
|
);
|
|
46948
|
-
}, [
|
|
46948
|
+
}, [k.collectionRef, k.itemMap]);
|
|
46949
46949
|
}
|
|
46950
46950
|
return [
|
|
46951
46951
|
{ Provider: c, Slot: h, ItemSlot: m },
|
|
46952
|
-
|
|
46952
|
+
g,
|
|
46953
46953
|
n
|
|
46954
46954
|
];
|
|
46955
46955
|
}
|
|
@@ -47115,8 +47115,8 @@ var vV = [" ", "Enter", "ArrowUp", "ArrowDown"], MV = [" ", "Enter"], Xi = "Sele
|
|
|
47115
47115
|
autoComplete: p,
|
|
47116
47116
|
disabled: y,
|
|
47117
47117
|
required: m,
|
|
47118
|
-
form:
|
|
47119
|
-
} = t, f = aC(e), [
|
|
47118
|
+
form: g
|
|
47119
|
+
} = t, f = aC(e), [k, v] = x.useState(null), [M, w] = x.useState(null), [C, b] = x.useState(!1), I = cV(h), [j, N] = DS({
|
|
47120
47120
|
prop: n,
|
|
47121
47121
|
defaultProp: o ?? !1,
|
|
47122
47122
|
onChange: i,
|
|
@@ -47126,13 +47126,13 @@ var vV = [" ", "Enter", "ArrowUp", "ArrowDown"], MV = [" ", "Enter"], Xi = "Sele
|
|
|
47126
47126
|
defaultProp: l,
|
|
47127
47127
|
onChange: d,
|
|
47128
47128
|
caller: Xi
|
|
47129
|
-
}), A = x.useRef(null), P =
|
|
47129
|
+
}), A = x.useRef(null), P = k ? g || !!k.closest("form") : !0, [T, F] = x.useState(/* @__PURE__ */ new Set()), B = Array.from(T).map((z) => z.props.value).join(";");
|
|
47130
47130
|
return /* @__PURE__ */ a.jsx(dP, { ...f, children: /* @__PURE__ */ a.jsxs(
|
|
47131
47131
|
bV,
|
|
47132
47132
|
{
|
|
47133
47133
|
required: m,
|
|
47134
47134
|
scope: e,
|
|
47135
|
-
trigger:
|
|
47135
|
+
trigger: k,
|
|
47136
47136
|
onTriggerChange: v,
|
|
47137
47137
|
valueNode: M,
|
|
47138
47138
|
onValueNodeChange: w,
|
|
@@ -47174,7 +47174,7 @@ var vV = [" ", "Enter", "ArrowUp", "ArrowDown"], MV = [" ", "Enter"], Xi = "Sele
|
|
|
47174
47174
|
value: S,
|
|
47175
47175
|
onChange: (z) => R(z.target.value),
|
|
47176
47176
|
disabled: y,
|
|
47177
|
-
form:
|
|
47177
|
+
form: g,
|
|
47178
47178
|
children: [
|
|
47179
47179
|
S === void 0 ? /* @__PURE__ */ a.jsx("option", { value: "" }) : null,
|
|
47180
47180
|
Array.from(T)
|
|
@@ -47190,9 +47190,9 @@ NP.displayName = Xi;
|
|
|
47190
47190
|
var AP = "SelectTrigger", PP = x.forwardRef(
|
|
47191
47191
|
(t, e) => {
|
|
47192
47192
|
const { __scopeSelect: r, disabled: n = !1, ...o } = t, i = aC(r), c = rr(AP, r), l = c.disabled || n, d = Bt(e, c.onTriggerChange), h = tC(r), u = x.useRef("touch"), [p, y, m] = t_((f) => {
|
|
47193
|
-
const
|
|
47193
|
+
const k = h().filter((w) => !w.disabled), v = k.find((w) => w.value === c.value), M = a_(k, f, v);
|
|
47194
47194
|
M !== void 0 && c.onValueChange(M.value);
|
|
47195
|
-
}),
|
|
47195
|
+
}), g = (f) => {
|
|
47196
47196
|
l || (c.onOpenChange(!0), m()), f && (c.triggerPointerDownPosRef.current = {
|
|
47197
47197
|
x: Math.round(f.pageX),
|
|
47198
47198
|
y: Math.round(f.pageY)
|
|
@@ -47215,16 +47215,16 @@ var AP = "SelectTrigger", PP = x.forwardRef(
|
|
|
47215
47215
|
...o,
|
|
47216
47216
|
ref: d,
|
|
47217
47217
|
onClick: ot(o.onClick, (f) => {
|
|
47218
|
-
f.currentTarget.focus(), u.current !== "mouse" &&
|
|
47218
|
+
f.currentTarget.focus(), u.current !== "mouse" && g(f);
|
|
47219
47219
|
}),
|
|
47220
47220
|
onPointerDown: ot(o.onPointerDown, (f) => {
|
|
47221
47221
|
u.current = f.pointerType;
|
|
47222
|
-
const
|
|
47223
|
-
|
|
47222
|
+
const k = f.target;
|
|
47223
|
+
k.hasPointerCapture(f.pointerId) && k.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && f.pointerType === "mouse" && (g(f), f.preventDefault());
|
|
47224
47224
|
}),
|
|
47225
47225
|
onKeyDown: ot(o.onKeyDown, (f) => {
|
|
47226
|
-
const
|
|
47227
|
-
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && y(f.key), !(
|
|
47226
|
+
const k = p.current !== "";
|
|
47227
|
+
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && y(f.key), !(k && f.key === " ") && vV.includes(f.key) && (g(), f.preventDefault());
|
|
47228
47228
|
})
|
|
47229
47229
|
}
|
|
47230
47230
|
) });
|
|
@@ -47290,9 +47290,9 @@ var Gt = 10, [zP, nr] = Qs(Ji), IV = "SelectContentImpl", NV = /* @__PURE__ */ Q
|
|
|
47290
47290
|
arrowPadding: p,
|
|
47291
47291
|
collisionBoundary: y,
|
|
47292
47292
|
collisionPadding: m,
|
|
47293
|
-
sticky:
|
|
47293
|
+
sticky: g,
|
|
47294
47294
|
hideWhenDetached: f,
|
|
47295
|
-
avoidCollisions:
|
|
47295
|
+
avoidCollisions: k,
|
|
47296
47296
|
//
|
|
47297
47297
|
...v
|
|
47298
47298
|
} = t, M = rr(Ji, r), [w, C] = x.useState(null), [b, I] = x.useState(null), j = Bt(e, (G) => C(G)), [N, S] = x.useState(null), [R, A] = x.useState(
|
|
@@ -47361,9 +47361,9 @@ var Gt = 10, [zP, nr] = Qs(Ji), IV = "SelectContentImpl", NV = /* @__PURE__ */ Q
|
|
|
47361
47361
|
arrowPadding: p,
|
|
47362
47362
|
collisionBoundary: y,
|
|
47363
47363
|
collisionPadding: m,
|
|
47364
|
-
sticky:
|
|
47364
|
+
sticky: g,
|
|
47365
47365
|
hideWhenDetached: f,
|
|
47366
|
-
avoidCollisions:
|
|
47366
|
+
avoidCollisions: k
|
|
47367
47367
|
} : {};
|
|
47368
47368
|
return /* @__PURE__ */ a.jsx(
|
|
47369
47369
|
zP,
|
|
@@ -47445,8 +47445,8 @@ var Gt = 10, [zP, nr] = Qs(Ji), IV = "SelectContentImpl", NV = /* @__PURE__ */ Q
|
|
|
47445
47445
|
);
|
|
47446
47446
|
FP.displayName = IV;
|
|
47447
47447
|
var AV = "SelectItemAlignedPosition", OP = x.forwardRef((t, e) => {
|
|
47448
|
-
const { __scopeSelect: r, onPlaced: n, ...o } = t, i = rr(Ji, r), c = nr(Ji, r), [l, d] = x.useState(null), [h, u] = x.useState(null), p = Bt(e, (j) => u(j)), y = tC(r), m = x.useRef(!1),
|
|
47449
|
-
if (i.trigger && i.valueNode && l && h && f &&
|
|
47448
|
+
const { __scopeSelect: r, onPlaced: n, ...o } = t, i = rr(Ji, r), c = nr(Ji, r), [l, d] = x.useState(null), [h, u] = x.useState(null), p = Bt(e, (j) => u(j)), y = tC(r), m = x.useRef(!1), g = x.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: v, focusSelectedItem: M } = c, w = x.useCallback(() => {
|
|
47449
|
+
if (i.trigger && i.valueNode && l && h && f && k && v) {
|
|
47450
47450
|
const j = i.trigger.getBoundingClientRect(), N = h.getBoundingClientRect(), S = i.valueNode.getBoundingClientRect(), R = v.getBoundingClientRect();
|
|
47451
47451
|
if (i.dir !== "rtl") {
|
|
47452
47452
|
const pe = R.left - N.left, de = S.left - pe, Ve = j.left - de, Ne = j.width + Ve, E = Math.max(Ne, N.width), O = window.innerWidth - Gt, K = RS(de, [
|
|
@@ -47466,9 +47466,9 @@ var AV = "SelectItemAlignedPosition", OP = x.forwardRef((t, e) => {
|
|
|
47466
47466
|
]);
|
|
47467
47467
|
l.style.minWidth = Ne + "px", l.style.right = K + "px";
|
|
47468
47468
|
}
|
|
47469
|
-
const A = y(), P = window.innerHeight - Gt * 2, T = f.scrollHeight, F = window.getComputedStyle(h), B = parseInt(F.borderTopWidth, 10), z = parseInt(F.paddingTop, 10), V = parseInt(F.borderBottomWidth, 10), D = parseInt(F.paddingBottom, 10), X = B + z + T + D + V, ie = Math.min(
|
|
47469
|
+
const A = y(), P = window.innerHeight - Gt * 2, T = f.scrollHeight, F = window.getComputedStyle(h), B = parseInt(F.borderTopWidth, 10), z = parseInt(F.paddingTop, 10), V = parseInt(F.borderBottomWidth, 10), D = parseInt(F.paddingBottom, 10), X = B + z + T + D + V, ie = Math.min(k.offsetHeight * 5, X), ee = window.getComputedStyle(f), qe = parseInt(ee.paddingTop, 10), J = parseInt(ee.paddingBottom, 10), Y = j.top + j.height / 2 - Gt, Q = P - Y, te = k.offsetHeight / 2, G = k.offsetTop + te, ae = B + z + G, ve = X - ae;
|
|
47470
47470
|
if (ae <= Y) {
|
|
47471
|
-
const pe = A.length > 0 &&
|
|
47471
|
+
const pe = A.length > 0 && k === A[A.length - 1].ref.current;
|
|
47472
47472
|
l.style.bottom = "0px";
|
|
47473
47473
|
const de = h.clientHeight - f.offsetTop - f.offsetHeight, Ve = Math.max(
|
|
47474
47474
|
Q,
|
|
@@ -47477,7 +47477,7 @@ var AV = "SelectItemAlignedPosition", OP = x.forwardRef((t, e) => {
|
|
|
47477
47477
|
), Ne = ae + Ve;
|
|
47478
47478
|
l.style.height = Ne + "px";
|
|
47479
47479
|
} else {
|
|
47480
|
-
const pe = A.length > 0 &&
|
|
47480
|
+
const pe = A.length > 0 && k === A[0].ref.current;
|
|
47481
47481
|
l.style.top = "0px";
|
|
47482
47482
|
const Ve = Math.max(
|
|
47483
47483
|
Y,
|
|
@@ -47495,7 +47495,7 @@ var AV = "SelectItemAlignedPosition", OP = x.forwardRef((t, e) => {
|
|
|
47495
47495
|
l,
|
|
47496
47496
|
h,
|
|
47497
47497
|
f,
|
|
47498
|
-
|
|
47498
|
+
k,
|
|
47499
47499
|
v,
|
|
47500
47500
|
i.dir,
|
|
47501
47501
|
n
|
|
@@ -47507,7 +47507,7 @@ var AV = "SelectItemAlignedPosition", OP = x.forwardRef((t, e) => {
|
|
|
47507
47507
|
}, [h]);
|
|
47508
47508
|
const I = x.useCallback(
|
|
47509
47509
|
(j) => {
|
|
47510
|
-
j &&
|
|
47510
|
+
j && g.current === !0 && (w(), M == null || M(), g.current = !1);
|
|
47511
47511
|
},
|
|
47512
47512
|
[w, M]
|
|
47513
47513
|
);
|
|
@@ -47616,9 +47616,9 @@ var [_V, gL] = Qs(Ji, {}), ij = "SelectViewport", EP = x.forwardRef(
|
|
|
47616
47616
|
if (y != null && y.current && p) {
|
|
47617
47617
|
const m = Math.abs(d.current - u.scrollTop);
|
|
47618
47618
|
if (m > 0) {
|
|
47619
|
-
const
|
|
47620
|
-
if (v <
|
|
47621
|
-
const M = v + m, w = Math.min(
|
|
47619
|
+
const g = window.innerHeight - Gt * 2, f = parseFloat(p.style.minHeight), k = parseFloat(p.style.height), v = Math.max(f, k);
|
|
47620
|
+
if (v < g) {
|
|
47621
|
+
const M = v + m, w = Math.min(g, M), C = M - w;
|
|
47622
47622
|
p.style.height = w + "px", p.style.bottom === "0px" && (u.scrollTop = C > 0 ? C : 0, p.style.justifyContent = "flex-end");
|
|
47623
47623
|
}
|
|
47624
47624
|
}
|
|
@@ -47653,13 +47653,13 @@ var Sb = "SelectItem", [DV, UP] = Qs(Sb), $P = x.forwardRef(
|
|
|
47653
47653
|
disabled: o = !1,
|
|
47654
47654
|
textValue: i,
|
|
47655
47655
|
...c
|
|
47656
|
-
} = t, l = rr(Sb, r), d = nr(Sb, r), h = l.value === n, [u, p] = x.useState(i ?? ""), [y, m] = x.useState(!1),
|
|
47656
|
+
} = t, l = rr(Sb, r), d = nr(Sb, r), h = l.value === n, [u, p] = x.useState(i ?? ""), [y, m] = x.useState(!1), g = Bt(
|
|
47657
47657
|
e,
|
|
47658
47658
|
(M) => {
|
|
47659
47659
|
var w;
|
|
47660
47660
|
return (w = d.itemRefCallback) == null ? void 0 : w.call(d, M, n, o);
|
|
47661
47661
|
}
|
|
47662
|
-
), f = kL(),
|
|
47662
|
+
), f = kL(), k = x.useRef("touch"), v = () => {
|
|
47663
47663
|
o || (l.onValueChange(n), l.onOpenChange(!1));
|
|
47664
47664
|
};
|
|
47665
47665
|
if (n === "")
|
|
@@ -47696,21 +47696,21 @@ var Sb = "SelectItem", [DV, UP] = Qs(Sb), $P = x.forwardRef(
|
|
|
47696
47696
|
"data-disabled": o ? "" : void 0,
|
|
47697
47697
|
tabIndex: o ? void 0 : -1,
|
|
47698
47698
|
...c,
|
|
47699
|
-
ref:
|
|
47699
|
+
ref: g,
|
|
47700
47700
|
onFocus: ot(c.onFocus, () => m(!0)),
|
|
47701
47701
|
onBlur: ot(c.onBlur, () => m(!1)),
|
|
47702
47702
|
onClick: ot(c.onClick, () => {
|
|
47703
|
-
|
|
47703
|
+
k.current !== "mouse" && v();
|
|
47704
47704
|
}),
|
|
47705
47705
|
onPointerUp: ot(c.onPointerUp, () => {
|
|
47706
|
-
|
|
47706
|
+
k.current === "mouse" && v();
|
|
47707
47707
|
}),
|
|
47708
47708
|
onPointerDown: ot(c.onPointerDown, (M) => {
|
|
47709
|
-
|
|
47709
|
+
k.current = M.pointerType;
|
|
47710
47710
|
}),
|
|
47711
47711
|
onPointerMove: ot(c.onPointerMove, (M) => {
|
|
47712
47712
|
var w;
|
|
47713
|
-
|
|
47713
|
+
k.current = M.pointerType, o ? (w = d.onItemLeave) == null || w.call(d) : k.current === "mouse" && M.currentTarget.focus({ preventScroll: !0 });
|
|
47714
47714
|
}),
|
|
47715
47715
|
onPointerLeave: ot(c.onPointerLeave, (M) => {
|
|
47716
47716
|
var w;
|
|
@@ -47739,11 +47739,11 @@ var dc = "SelectItemText", WP = x.forwardRef(
|
|
|
47739
47739
|
var M;
|
|
47740
47740
|
return (M = l.itemTextRefCallback) == null ? void 0 : M.call(l, v, d.value, d.disabled);
|
|
47741
47741
|
}
|
|
47742
|
-
), m = u == null ? void 0 : u.textContent,
|
|
47742
|
+
), m = u == null ? void 0 : u.textContent, g = x.useMemo(
|
|
47743
47743
|
() => /* @__PURE__ */ a.jsx("option", { value: d.value, disabled: d.disabled, children: m }, d.value),
|
|
47744
47744
|
[d.disabled, d.value, m]
|
|
47745
|
-
), { onNativeOptionAdd: f, onNativeOptionRemove:
|
|
47746
|
-
return ya(() => (f(
|
|
47745
|
+
), { onNativeOptionAdd: f, onNativeOptionRemove: k } = h;
|
|
47746
|
+
return ya(() => (f(g), () => k(g)), [f, k, g]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
47747
47747
|
/* @__PURE__ */ a.jsx(_t.span, { id: d.textId, ...i, ref: y }),
|
|
47748
47748
|
d.isSelected && c.valueNode && !c.valueNodeHasChildren ? Nb.createPortal(i.children, c.valueNode) : null
|
|
47749
47749
|
] });
|
|
@@ -48007,7 +48007,7 @@ const XV = x.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a.jsx(
|
|
|
48007
48007
|
));
|
|
48008
48008
|
XV.displayName = l_.displayName;
|
|
48009
48009
|
function JV({ open: t, onClose: e, onAdded: r, existingExperience: n, onUpdated: o }) {
|
|
48010
|
-
const i = (/* @__PURE__ */ new Date()).getFullYear(), c = Array.from({ length: 40 }, (m,
|
|
48010
|
+
const i = (/* @__PURE__ */ new Date()).getFullYear(), c = Array.from({ length: 40 }, (m, g) => `${i - g}`), [l, d] = _({
|
|
48011
48011
|
title: "",
|
|
48012
48012
|
company: "",
|
|
48013
48013
|
startYear: "",
|
|
@@ -48017,13 +48017,13 @@ function JV({ open: t, onClose: e, onAdded: r, existingExperience: n, onUpdated:
|
|
|
48017
48017
|
});
|
|
48018
48018
|
ce(() => {
|
|
48019
48019
|
if (n) {
|
|
48020
|
-
const [m,
|
|
48020
|
+
const [m, g] = n.period.split(" - ");
|
|
48021
48021
|
d({
|
|
48022
48022
|
title: n.title,
|
|
48023
48023
|
company: n.company,
|
|
48024
48024
|
startYear: m || "",
|
|
48025
|
-
endYear:
|
|
48026
|
-
isPresent:
|
|
48025
|
+
endYear: g === "Present" ? "" : g || "",
|
|
48026
|
+
isPresent: g === "Present",
|
|
48027
48027
|
tags: n.tags.join(", ")
|
|
48028
48028
|
});
|
|
48029
48029
|
} else
|
|
@@ -48036,15 +48036,15 @@ function JV({ open: t, onClose: e, onAdded: r, existingExperience: n, onUpdated:
|
|
|
48036
48036
|
tags: ""
|
|
48037
48037
|
});
|
|
48038
48038
|
}, [n, t]);
|
|
48039
|
-
const [h, u] = _(!1), p = (m,
|
|
48040
|
-
const m = l.isPresent ? `${l.startYear} - Present` : `${l.startYear} - ${l.endYear}`,
|
|
48039
|
+
const [h, u] = _(!1), p = (m, g) => d((f) => ({ ...f, [m]: g })), y = () => {
|
|
48040
|
+
const m = l.isPresent ? `${l.startYear} - Present` : `${l.startYear} - ${l.endYear}`, g = {
|
|
48041
48041
|
id: (n == null ? void 0 : n.id) || `temp-${Date.now()}`,
|
|
48042
48042
|
title: l.title,
|
|
48043
48043
|
company: l.company,
|
|
48044
48044
|
period: m,
|
|
48045
48045
|
tags: l.tags.split(",").map((f) => f.trim()).filter(Boolean)
|
|
48046
48046
|
};
|
|
48047
|
-
n ? o == null || o(
|
|
48047
|
+
n ? o == null || o(g) : r(g), d({
|
|
48048
48048
|
title: "",
|
|
48049
48049
|
company: "",
|
|
48050
48050
|
startYear: "",
|
|
@@ -48151,14 +48151,14 @@ function YV(t, e = []) {
|
|
|
48151
48151
|
r = [...r, c];
|
|
48152
48152
|
const h = (p) => {
|
|
48153
48153
|
var v;
|
|
48154
|
-
const { scope: y, children: m, ...
|
|
48155
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
48154
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
48155
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
48156
48156
|
};
|
|
48157
48157
|
h.displayName = i + "Provider";
|
|
48158
48158
|
function u(p, y) {
|
|
48159
48159
|
var f;
|
|
48160
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
48161
|
-
if (
|
|
48160
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
48161
|
+
if (g) return g;
|
|
48162
48162
|
if (c !== void 0) return c;
|
|
48163
48163
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
48164
48164
|
}
|
|
@@ -48665,7 +48665,7 @@ function vB({
|
|
|
48665
48665
|
}) {
|
|
48666
48666
|
const [n, o] = _(t), [i, c] = _(!1), [l, d] = _(null);
|
|
48667
48667
|
_(null);
|
|
48668
|
-
const [h, u] = _(null), [p, y] = _(!1), [m,
|
|
48668
|
+
const [h, u] = _(null), [p, y] = _(!1), [m, g] = _(!1), [f, k] = _(!1), [v, M] = _(!1), [w, C] = _(!1), b = [
|
|
48669
48669
|
"Full-time",
|
|
48670
48670
|
"Part-time",
|
|
48671
48671
|
"Contract",
|
|
@@ -48952,7 +48952,7 @@ function vB({
|
|
|
48952
48952
|
{
|
|
48953
48953
|
variant: "outline",
|
|
48954
48954
|
size: "sm",
|
|
48955
|
-
onClick: () =>
|
|
48955
|
+
onClick: () => g(!0),
|
|
48956
48956
|
children: "Add Location"
|
|
48957
48957
|
}
|
|
48958
48958
|
)
|
|
@@ -49016,7 +49016,7 @@ function vB({
|
|
|
49016
49016
|
FS,
|
|
49017
49017
|
{
|
|
49018
49018
|
open: m,
|
|
49019
|
-
onClose: () =>
|
|
49019
|
+
onClose: () => g(!1),
|
|
49020
49020
|
title: "Add Preferred Location",
|
|
49021
49021
|
placeholder: "e.g. Malta or Remote",
|
|
49022
49022
|
onAdded: (A) => o((P) => ({
|
|
@@ -49056,7 +49056,7 @@ function vB({
|
|
|
49056
49056
|
$,
|
|
49057
49057
|
{
|
|
49058
49058
|
variant: "outline",
|
|
49059
|
-
onClick: () =>
|
|
49059
|
+
onClick: () => k(!0),
|
|
49060
49060
|
children: "Add Skill"
|
|
49061
49061
|
}
|
|
49062
49062
|
)
|
|
@@ -49066,7 +49066,7 @@ function vB({
|
|
|
49066
49066
|
mB,
|
|
49067
49067
|
{
|
|
49068
49068
|
open: f,
|
|
49069
|
-
onClose: () =>
|
|
49069
|
+
onClose: () => k(!1),
|
|
49070
49070
|
onAdded: (A) => o((P) => ({
|
|
49071
49071
|
...P,
|
|
49072
49072
|
skills: Array.from(/* @__PURE__ */ new Set([...P.skills, A]))
|
|
@@ -49266,48 +49266,142 @@ function MB({
|
|
|
49266
49266
|
onApply: n,
|
|
49267
49267
|
onRemove: o,
|
|
49268
49268
|
onUploadCV: i,
|
|
49269
|
-
onSetAlert: c
|
|
49269
|
+
onSetAlert: c,
|
|
49270
|
+
onUpdateProfile: l
|
|
49270
49271
|
}) {
|
|
49271
|
-
const
|
|
49272
|
-
|
|
49273
|
-
|
|
49274
|
-
|
|
49275
|
-
|
|
49276
|
-
|
|
49277
|
-
|
|
49278
|
-
|
|
49279
|
-
|
|
49280
|
-
|
|
49281
|
-
|
|
49282
|
-
|
|
49283
|
-
|
|
49272
|
+
const [d, h] = _({
|
|
49273
|
+
saved: t || [],
|
|
49274
|
+
recommended: r || [],
|
|
49275
|
+
applications: e || []
|
|
49276
|
+
}), u = (f) => {
|
|
49277
|
+
h((k) => {
|
|
49278
|
+
if (k.saved.some((w) => w.id === f.id)) return k;
|
|
49279
|
+
const M = {
|
|
49280
|
+
...k,
|
|
49281
|
+
saved: [...k.saved, f]
|
|
49282
|
+
};
|
|
49283
|
+
return l == null || l({
|
|
49284
|
+
savedJobs: M.saved,
|
|
49285
|
+
recommendedJobs: M.recommended,
|
|
49286
|
+
applications: M.applications
|
|
49287
|
+
}), M;
|
|
49288
|
+
});
|
|
49289
|
+
}, p = (f) => {
|
|
49290
|
+
h((k) => {
|
|
49291
|
+
const v = {
|
|
49292
|
+
...k,
|
|
49293
|
+
saved: k.saved.filter((M) => M.id !== f)
|
|
49294
|
+
// ✅ only from saved
|
|
49295
|
+
};
|
|
49296
|
+
return l == null || l({
|
|
49297
|
+
savedJobs: v.saved,
|
|
49298
|
+
recommendedJobs: v.recommended,
|
|
49299
|
+
applications: v.applications
|
|
49300
|
+
}), v;
|
|
49301
|
+
});
|
|
49302
|
+
}, y = (f) => {
|
|
49303
|
+
h((k) => {
|
|
49304
|
+
const v = {
|
|
49305
|
+
...k,
|
|
49306
|
+
recommended: k.recommended.filter((M) => M.id !== f)
|
|
49307
|
+
// ✅ only from recommended
|
|
49308
|
+
};
|
|
49309
|
+
return l == null || l({
|
|
49310
|
+
savedJobs: v.saved,
|
|
49311
|
+
recommendedJobs: v.recommended,
|
|
49312
|
+
applications: v.applications
|
|
49313
|
+
}), v;
|
|
49314
|
+
});
|
|
49315
|
+
}, m = (f) => {
|
|
49316
|
+
const k = d.recommended.find((v) => v.id === f);
|
|
49317
|
+
k && (h((v) => {
|
|
49318
|
+
const M = {
|
|
49319
|
+
...v,
|
|
49320
|
+
applications: [
|
|
49321
|
+
...v.applications,
|
|
49322
|
+
{ ...k, status: "Applied", appliedDate: (/* @__PURE__ */ new Date()).toLocaleDateString() }
|
|
49323
|
+
]
|
|
49324
|
+
};
|
|
49325
|
+
return l == null || l({
|
|
49326
|
+
savedJobs: M.saved,
|
|
49327
|
+
recommendedJobs: M.recommended,
|
|
49328
|
+
applications: M.applications
|
|
49329
|
+
}), M;
|
|
49330
|
+
}), n(f));
|
|
49331
|
+
}, g = ({
|
|
49332
|
+
job: f,
|
|
49333
|
+
view: k
|
|
49334
|
+
}) => {
|
|
49335
|
+
var w;
|
|
49336
|
+
const v = f.city ? `${f.city}, ${f.country}` : f.location, M = f.salaryMin && f.salaryMax ? `${f.salaryMin}–${f.salaryMax} ${f.salaryCurrency || ""}` : void 0;
|
|
49337
|
+
return /* @__PURE__ */ a.jsxs(we, { children: [
|
|
49338
|
+
/* @__PURE__ */ a.jsxs(Te, { children: [
|
|
49339
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex justify-between items-start", children: [
|
|
49340
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex-1", children: [
|
|
49341
|
+
/* @__PURE__ */ a.jsx(Re, { className: "text-lg", children: f.title }),
|
|
49342
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-4 text-sm text-muted-foreground mt-2", children: [
|
|
49343
|
+
/* @__PURE__ */ a.jsxs("span", { className: "flex items-center gap-1", children: [
|
|
49344
|
+
/* @__PURE__ */ a.jsx(xs, { className: "h-4 w-4" }),
|
|
49345
|
+
" ",
|
|
49346
|
+
f.company
|
|
49347
|
+
] }),
|
|
49348
|
+
/* @__PURE__ */ a.jsxs("span", { className: "flex items-center gap-1", children: [
|
|
49349
|
+
/* @__PURE__ */ a.jsx(Et, { className: "h-4 w-4" }),
|
|
49350
|
+
" ",
|
|
49351
|
+
v
|
|
49352
|
+
] })
|
|
49284
49353
|
] })
|
|
49285
|
-
] })
|
|
49354
|
+
] }),
|
|
49355
|
+
k === "applications" && f.status && /* @__PURE__ */ a.jsx(it, { variant: "secondary", children: f.status })
|
|
49286
49356
|
] }),
|
|
49287
|
-
|
|
49357
|
+
M && /* @__PURE__ */ a.jsx("p", { className: "text-sm font-semibold text-accent mt-1", children: M })
|
|
49288
49358
|
] }),
|
|
49289
|
-
|
|
49290
|
-
|
|
49291
|
-
|
|
49292
|
-
|
|
49293
|
-
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49297
|
-
|
|
49298
|
-
|
|
49299
|
-
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
-
|
|
49303
|
-
|
|
49304
|
-
|
|
49305
|
-
|
|
49306
|
-
|
|
49307
|
-
|
|
49359
|
+
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsxs("div", { className: "space-y-3", children: [
|
|
49360
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
49361
|
+
f.department && /* @__PURE__ */ a.jsx(it, { variant: "outline", children: f.department }),
|
|
49362
|
+
(w = f.skills) == null ? void 0 : w.slice(0, 6).map((C) => /* @__PURE__ */ a.jsx(it, { variant: "secondary", children: C }, C))
|
|
49363
|
+
] }),
|
|
49364
|
+
k === "applications" && f.appliedDate && /* @__PURE__ */ a.jsxs("p", { className: "text-xs text-muted-foreground flex items-center gap-1", children: [
|
|
49365
|
+
/* @__PURE__ */ a.jsx(Jt, { className: "h-3 w-3" }),
|
|
49366
|
+
"Applied ",
|
|
49367
|
+
f.appliedDate
|
|
49368
|
+
] }),
|
|
49369
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex gap-2", children: [
|
|
49370
|
+
k === "recommended" && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
49371
|
+
/* @__PURE__ */ a.jsx($, { size: "sm", onClick: () => m(f.id), children: "Apply Now" }),
|
|
49372
|
+
/* @__PURE__ */ a.jsx(
|
|
49373
|
+
$,
|
|
49374
|
+
{
|
|
49375
|
+
variant: "outline",
|
|
49376
|
+
size: "sm",
|
|
49377
|
+
onClick: () => u(f),
|
|
49378
|
+
children: "Save Job"
|
|
49379
|
+
}
|
|
49380
|
+
),
|
|
49381
|
+
/* @__PURE__ */ a.jsx(
|
|
49382
|
+
$,
|
|
49383
|
+
{
|
|
49384
|
+
variant: "destructive",
|
|
49385
|
+
size: "sm",
|
|
49386
|
+
onClick: () => y(f.id),
|
|
49387
|
+
children: "Remove"
|
|
49388
|
+
}
|
|
49389
|
+
)
|
|
49390
|
+
] }),
|
|
49391
|
+
k === "saved" && /* @__PURE__ */ a.jsx(
|
|
49392
|
+
$,
|
|
49393
|
+
{
|
|
49394
|
+
variant: "destructive",
|
|
49395
|
+
size: "sm",
|
|
49396
|
+
onClick: () => p(f.id),
|
|
49397
|
+
children: "Remove"
|
|
49398
|
+
}
|
|
49399
|
+
),
|
|
49400
|
+
k === "applications" && /* @__PURE__ */ a.jsx($, { variant: "outline", size: "sm", children: "View Application" })
|
|
49401
|
+
] })
|
|
49308
49402
|
] }) })
|
|
49309
|
-
] })
|
|
49310
|
-
|
|
49403
|
+
] });
|
|
49404
|
+
};
|
|
49311
49405
|
return /* @__PURE__ */ a.jsxs("div", { className: "space-y-6", children: [
|
|
49312
49406
|
/* @__PURE__ */ a.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
49313
49407
|
/* @__PURE__ */ a.jsxs("div", { children: [
|
|
@@ -49326,33 +49420,33 @@ function MB({
|
|
|
49326
49420
|
/* @__PURE__ */ a.jsxs(er, { children: [
|
|
49327
49421
|
/* @__PURE__ */ a.jsxs(Se, { value: "recommended", children: [
|
|
49328
49422
|
"Recommended (",
|
|
49329
|
-
|
|
49423
|
+
d.recommended.length,
|
|
49330
49424
|
")"
|
|
49331
49425
|
] }),
|
|
49332
49426
|
/* @__PURE__ */ a.jsxs(Se, { value: "saved", children: [
|
|
49333
49427
|
/* @__PURE__ */ a.jsx(Ua, { className: "h-4 w-4 mr-2" }),
|
|
49334
49428
|
"Saved (",
|
|
49335
|
-
|
|
49429
|
+
d.saved.length,
|
|
49336
49430
|
")"
|
|
49337
49431
|
] }),
|
|
49338
49432
|
/* @__PURE__ */ a.jsxs(Se, { value: "applications", children: [
|
|
49339
49433
|
/* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4 mr-2" }),
|
|
49340
49434
|
"Applications (",
|
|
49341
|
-
|
|
49435
|
+
d.applications.length,
|
|
49342
49436
|
")"
|
|
49343
49437
|
] })
|
|
49344
49438
|
] }),
|
|
49345
|
-
/* @__PURE__ */ a.jsx(Ie, { value: "recommended", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children:
|
|
49346
|
-
/* @__PURE__ */ a.jsx(Ie, { value: "saved", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children:
|
|
49439
|
+
/* @__PURE__ */ a.jsx(Ie, { value: "recommended", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children: d.recommended.map((f) => /* @__PURE__ */ a.jsx(g, { job: f, view: "recommended" }, f.id)) }) }),
|
|
49440
|
+
/* @__PURE__ */ a.jsx(Ie, { value: "saved", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children: d.saved.length === 0 ? /* @__PURE__ */ a.jsx(we, { children: /* @__PURE__ */ a.jsxs(be, { className: "flex flex-col items-center justify-center py-10", children: [
|
|
49347
49441
|
/* @__PURE__ */ a.jsx(Ua, { className: "h-12 w-12 text-muted-foreground mb-4" }),
|
|
49348
49442
|
/* @__PURE__ */ a.jsx("p", { className: "text-muted-foreground", children: "No saved jobs yet" }),
|
|
49349
49443
|
/* @__PURE__ */ a.jsx($, { variant: "link", className: "mt-2", children: "Browse Jobs" })
|
|
49350
|
-
] }) }) :
|
|
49351
|
-
/* @__PURE__ */ a.jsx(Ie, { value: "applications", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children:
|
|
49444
|
+
] }) }) : d.saved.map((f) => /* @__PURE__ */ a.jsx(g, { job: f, view: "saved" }, f.id)) }) }),
|
|
49445
|
+
/* @__PURE__ */ a.jsx(Ie, { value: "applications", className: "space-y-4", children: /* @__PURE__ */ a.jsx("div", { className: "grid gap-4", children: d.applications.length === 0 ? /* @__PURE__ */ a.jsx(we, { children: /* @__PURE__ */ a.jsxs(be, { className: "flex flex-col items-center justify-center py-10", children: [
|
|
49352
49446
|
/* @__PURE__ */ a.jsx(mt, { className: "h-12 w-12 text-muted-foreground mb-4" }),
|
|
49353
49447
|
/* @__PURE__ */ a.jsx("p", { className: "text-muted-foreground", children: "No applications yet" }),
|
|
49354
49448
|
/* @__PURE__ */ a.jsx($, { variant: "link", className: "mt-2", children: "Start Applying" })
|
|
49355
|
-
] }) }) :
|
|
49449
|
+
] }) }) : d.applications.map((f) => /* @__PURE__ */ a.jsx(g, { job: f, view: "applications" }, f.id)) }) })
|
|
49356
49450
|
] })
|
|
49357
49451
|
] });
|
|
49358
49452
|
}
|
|
@@ -49363,14 +49457,14 @@ function wB(t, e = []) {
|
|
|
49363
49457
|
r = [...r, c];
|
|
49364
49458
|
const h = (p) => {
|
|
49365
49459
|
var v;
|
|
49366
|
-
const { scope: y, children: m, ...
|
|
49367
|
-
return /* @__PURE__ */ a.jsx(f.Provider, { value:
|
|
49460
|
+
const { scope: y, children: m, ...g } = p, f = ((v = y == null ? void 0 : y[t]) == null ? void 0 : v[d]) || l, k = x.useMemo(() => g, Object.values(g));
|
|
49461
|
+
return /* @__PURE__ */ a.jsx(f.Provider, { value: k, children: m });
|
|
49368
49462
|
};
|
|
49369
49463
|
h.displayName = i + "Provider";
|
|
49370
49464
|
function u(p, y) {
|
|
49371
49465
|
var f;
|
|
49372
|
-
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l,
|
|
49373
|
-
if (
|
|
49466
|
+
const m = ((f = y == null ? void 0 : y[t]) == null ? void 0 : f[d]) || l, g = x.useContext(m);
|
|
49467
|
+
if (g) return g;
|
|
49374
49468
|
if (c !== void 0) return c;
|
|
49375
49469
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
49376
49470
|
}
|
|
@@ -49981,13 +50075,20 @@ function sU({
|
|
|
49981
50075
|
/* @__PURE__ */ a.jsx(Ie, { value: "jobs", className: "mt-6", children: /* @__PURE__ */ a.jsx(
|
|
49982
50076
|
MB,
|
|
49983
50077
|
{
|
|
49984
|
-
savedJobs:
|
|
49985
|
-
applications:
|
|
49986
|
-
recommendedJobs:
|
|
49987
|
-
onApply:
|
|
49988
|
-
onRemove:
|
|
49989
|
-
onUploadCV:
|
|
49990
|
-
onSetAlert:
|
|
50078
|
+
savedJobs: e.jobsDashboard.savedJobs,
|
|
50079
|
+
applications: e.jobsDashboard.applications,
|
|
50080
|
+
recommendedJobs: e.jobsDashboard.recommendedJobs,
|
|
50081
|
+
onApply: (p) => console.log("Applied:", p),
|
|
50082
|
+
onRemove: (p) => console.log("Removed:", p),
|
|
50083
|
+
onUploadCV: () => console.log("Upload CV clicked"),
|
|
50084
|
+
onSetAlert: () => console.log("Set alerts clicked"),
|
|
50085
|
+
onUpdateProfile: async (p) => {
|
|
50086
|
+
const y = {
|
|
50087
|
+
...e,
|
|
50088
|
+
jobsDashboard: p
|
|
50089
|
+
};
|
|
50090
|
+
await i(y);
|
|
50091
|
+
}
|
|
49991
50092
|
}
|
|
49992
50093
|
) }),
|
|
49993
50094
|
/* @__PURE__ */ a.jsx(Ie, { value: "courses", className: "mt-6", children: /* @__PURE__ */ a.jsx(
|