@igamingcareer/igaming-components 1.0.38 → 1.0.40

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.
Files changed (3) hide show
  1. package/dist/index.js +16 -16
  2. package/dist/index.mjs +816 -816
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as v from "react";
2
- import St, { forwardRef as db, createElement as Lo, useState as I, useEffect as te, createContext as PS, useContext as _S, useCallback as Ho, useRef as _o, useMemo as J9 } from "react";
2
+ import St, { forwardRef as db, createElement as Lo, useState as A, useEffect as te, createContext as PS, useContext as _S, useCallback as Ho, useRef as _o, useMemo as J9 } from "react";
3
3
  import * as zS from "react-dom";
4
4
  import TS from "react-dom";
5
5
  var Vw = { exports: {} }, Ui = {};
@@ -43,44 +43,44 @@ function RS() {
43
43
  function f(M) {
44
44
  if (M === null || typeof M != "object")
45
45
  return null;
46
- var P = g && M[g] || M[m];
47
- return typeof P == "function" ? P : null;
46
+ var q = g && M[g] || M[m];
47
+ return typeof q == "function" ? q : null;
48
48
  }
49
49
  var x = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
50
  function w(M) {
51
51
  {
52
- for (var P = arguments.length, H = new Array(P > 1 ? P - 1 : 0), Z = 1; Z < P; Z++)
53
- H[Z - 1] = arguments[Z];
54
- C("error", M, H);
52
+ for (var q = arguments.length, H = new Array(q > 1 ? q - 1 : 0), $ = 1; $ < q; $++)
53
+ H[$ - 1] = arguments[$];
54
+ L("error", M, H);
55
55
  }
56
56
  }
57
- function C(M, P, H) {
57
+ function L(M, q, H) {
58
58
  {
59
- var Z = x.ReactDebugCurrentFrame, ce = Z.getStackAddendum();
60
- ce !== "" && (P += "%s", H = H.concat([ce]));
59
+ var $ = x.ReactDebugCurrentFrame, ce = $.getStackAddendum();
60
+ ce !== "" && (q += "%s", H = H.concat([ce]));
61
61
  var ye = H.map(function(ie) {
62
62
  return String(ie);
63
63
  });
64
- ye.unshift("Warning: " + P), Function.prototype.apply.call(console[M], console, ye);
64
+ ye.unshift("Warning: " + q), Function.prototype.apply.call(console[M], console, ye);
65
65
  }
66
66
  }
67
- var L = !1, b = !1, N = !1, S = !1, A = !1, j;
68
- j = Symbol.for("react.module.reference");
69
- function q(M) {
70
- return !!(typeof M == "string" || typeof M == "function" || M === a || M === s || A || M === o || M === h || M === y || S || M === k || L || b || N || typeof M == "object" && M !== null && (M.$$typeof === u || M.$$typeof === p || M.$$typeof === c || M.$$typeof === l || M.$$typeof === d || // This needs to include all possible module reference object
67
+ var j = !1, b = !1, N = !1, C = !1, I = !1, S;
68
+ S = Symbol.for("react.module.reference");
69
+ function T(M) {
70
+ return !!(typeof M == "string" || typeof M == "function" || M === a || M === s || I || M === o || M === h || M === y || C || M === k || j || b || N || typeof M == "object" && M !== null && (M.$$typeof === u || M.$$typeof === p || M.$$typeof === c || M.$$typeof === l || M.$$typeof === d || // This needs to include all possible module reference object
71
71
  // types supported by any Flight configuration anywhere since
72
72
  // we don't know which Flight build this will end up being used
73
73
  // with.
74
- M.$$typeof === j || M.getModuleId !== void 0));
74
+ M.$$typeof === S || M.getModuleId !== void 0));
75
75
  }
76
- function F(M, P, H) {
77
- var Z = M.displayName;
78
- if (Z)
79
- return Z;
80
- var ce = P.displayName || P.name || "";
76
+ function E(M, q, H) {
77
+ var $ = M.displayName;
78
+ if ($)
79
+ return $;
80
+ var ce = q.displayName || q.name || "";
81
81
  return ce !== "" ? H + "(" + ce + ")" : H;
82
82
  }
83
- function D(M) {
83
+ function R(M) {
84
84
  return M.displayName || "Context";
85
85
  }
86
86
  function V(M) {
@@ -107,16 +107,16 @@ function RS() {
107
107
  if (typeof M == "object")
108
108
  switch (M.$$typeof) {
109
109
  case l:
110
- var P = M;
111
- return D(P) + ".Consumer";
110
+ var q = M;
111
+ return R(q) + ".Consumer";
112
112
  case c:
113
113
  var H = M;
114
- return D(H._context) + ".Provider";
114
+ return R(H._context) + ".Provider";
115
115
  case d:
116
- return F(M, M.render, "ForwardRef");
116
+ return E(M, M.render, "ForwardRef");
117
117
  case p:
118
- var Z = M.displayName || null;
119
- return Z !== null ? Z : V(M.type) || "Memo";
118
+ var $ = M.displayName || null;
119
+ return $ !== null ? $ : V(M.type) || "Memo";
120
120
  case u: {
121
121
  var ce = M, ye = ce._payload, ie = ce._init;
122
122
  try {
@@ -128,18 +128,18 @@ function RS() {
128
128
  }
129
129
  return null;
130
130
  }
131
- var W = Object.assign, K = 0, U, re, J, he, me, le, ze;
132
- function O() {
131
+ var Z = Object.assign, K = 0, U, re, J, he, me, le, ze;
132
+ function B() {
133
133
  }
134
- O.__reactDisabledLog = !0;
135
- function E() {
134
+ B.__reactDisabledLog = !0;
135
+ function O() {
136
136
  {
137
137
  if (K === 0) {
138
138
  U = console.log, re = console.info, J = console.warn, he = console.error, me = console.group, le = console.groupCollapsed, ze = console.groupEnd;
139
139
  var M = {
140
140
  configurable: !0,
141
141
  enumerable: !0,
142
- value: O,
142
+ value: B,
143
143
  writable: !0
144
144
  };
145
145
  Object.defineProperties(console, {
@@ -164,25 +164,25 @@ function RS() {
164
164
  writable: !0
165
165
  };
166
166
  Object.defineProperties(console, {
167
- log: W({}, M, {
167
+ log: Z({}, M, {
168
168
  value: U
169
169
  }),
170
- info: W({}, M, {
170
+ info: Z({}, M, {
171
171
  value: re
172
172
  }),
173
- warn: W({}, M, {
173
+ warn: Z({}, M, {
174
174
  value: J
175
175
  }),
176
- error: W({}, M, {
176
+ error: Z({}, M, {
177
177
  value: he
178
178
  }),
179
- group: W({}, M, {
179
+ group: Z({}, M, {
180
180
  value: me
181
181
  }),
182
- groupCollapsed: W({}, M, {
182
+ groupCollapsed: Z({}, M, {
183
183
  value: le
184
184
  }),
185
- groupEnd: W({}, M, {
185
+ groupEnd: Z({}, M, {
186
186
  value: ze
187
187
  })
188
188
  });
@@ -191,14 +191,14 @@ function RS() {
191
191
  }
192
192
  }
193
193
  var Q = x.ReactCurrentDispatcher, fe;
194
- function Ne(M, P, H) {
194
+ function Ne(M, q, H) {
195
195
  {
196
196
  if (fe === void 0)
197
197
  try {
198
198
  throw Error();
199
199
  } catch (ce) {
200
- var Z = ce.stack.trim().match(/\n( *(at )?)/);
201
- fe = Z && Z[1] || "";
200
+ var $ = ce.stack.trim().match(/\n( *(at )?)/);
201
+ fe = $ && $[1] || "";
202
202
  }
203
203
  return `
204
204
  ` + fe + M;
@@ -209,7 +209,7 @@ function RS() {
209
209
  var Xt = typeof WeakMap == "function" ? WeakMap : Map;
210
210
  Re = new Xt();
211
211
  }
212
- function Dt(M, P) {
212
+ function Dt(M, q) {
213
213
  if (!M || rt)
214
214
  return "";
215
215
  {
@@ -217,14 +217,14 @@ function RS() {
217
217
  if (H !== void 0)
218
218
  return H;
219
219
  }
220
- var Z;
220
+ var $;
221
221
  rt = !0;
222
222
  var ce = Error.prepareStackTrace;
223
223
  Error.prepareStackTrace = void 0;
224
224
  var ye;
225
- ye = Q.current, Q.current = null, E();
225
+ ye = Q.current, Q.current = null, O();
226
226
  try {
227
- if (P) {
227
+ if (q) {
228
228
  var ie = function() {
229
229
  throw Error();
230
230
  };
@@ -236,14 +236,14 @@ function RS() {
236
236
  try {
237
237
  Reflect.construct(ie, []);
238
238
  } catch (Je) {
239
- Z = Je;
239
+ $ = Je;
240
240
  }
241
241
  Reflect.construct(M, [], ie);
242
242
  } else {
243
243
  try {
244
244
  ie.call();
245
245
  } catch (Je) {
246
- Z = Je;
246
+ $ = Je;
247
247
  }
248
248
  M.call(ie.prototype);
249
249
  }
@@ -251,14 +251,14 @@ function RS() {
251
251
  try {
252
252
  throw Error();
253
253
  } catch (Je) {
254
- Z = Je;
254
+ $ = Je;
255
255
  }
256
256
  M();
257
257
  }
258
258
  } catch (Je) {
259
- if (Je && Z && typeof Je.stack == "string") {
259
+ if (Je && $ && typeof Je.stack == "string") {
260
260
  for (var ae = Je.stack.split(`
261
- `), Ze = Z.stack.split(`
261
+ `), Ze = $.stack.split(`
262
262
  `), Ie = ae.length - 1, qe = Ze.length - 1; Ie >= 1 && qe >= 0 && ae[Ie] !== Ze[qe]; )
263
263
  qe--;
264
264
  for (; Ie >= 1 && qe >= 0; Ie--, qe--)
@@ -280,14 +280,14 @@ function RS() {
280
280
  var yi = M ? M.displayName || M.name : "", wa = yi ? Ne(yi) : "";
281
281
  return typeof M == "function" && Re.set(M, wa), wa;
282
282
  }
283
- function Jt(M, P, H) {
283
+ function Jt(M, q, H) {
284
284
  return Dt(M, !1);
285
285
  }
286
286
  function We(M) {
287
- var P = M.prototype;
288
- return !!(P && P.isReactComponent);
287
+ var q = M.prototype;
288
+ return !!(q && q.isReactComponent);
289
289
  }
290
- function T(M, P, H) {
290
+ function z(M, q, H) {
291
291
  if (M == null)
292
292
  return "";
293
293
  if (typeof M == "function")
@@ -305,41 +305,41 @@ function RS() {
305
305
  case d:
306
306
  return Jt(M.render);
307
307
  case p:
308
- return T(M.type, P, H);
308
+ return z(M.type, q, H);
309
309
  case u: {
310
- var Z = M, ce = Z._payload, ye = Z._init;
310
+ var $ = M, ce = $._payload, ye = $._init;
311
311
  try {
312
- return T(ye(ce), P, H);
312
+ return z(ye(ce), q, H);
313
313
  } catch {
314
314
  }
315
315
  }
316
316
  }
317
317
  return "";
318
318
  }
319
- var _ = Object.prototype.hasOwnProperty, G = {}, ge = x.ReactDebugCurrentFrame;
319
+ var P = Object.prototype.hasOwnProperty, G = {}, ge = x.ReactDebugCurrentFrame;
320
320
  function de(M) {
321
321
  if (M) {
322
- var P = M._owner, H = T(M.type, M._source, P ? P.type : null);
322
+ var q = M._owner, H = z(M.type, M._source, q ? q.type : null);
323
323
  ge.setExtraStackFrame(H);
324
324
  } else
325
325
  ge.setExtraStackFrame(null);
326
326
  }
327
- function ve(M, P, H, Z, ce) {
327
+ function ve(M, q, H, $, ce) {
328
328
  {
329
- var ye = Function.call.bind(_);
329
+ var ye = Function.call.bind(P);
330
330
  for (var ie in M)
331
331
  if (ye(M, ie)) {
332
332
  var ae = void 0;
333
333
  try {
334
334
  if (typeof M[ie] != "function") {
335
- var Ze = Error((Z || "React class") + ": " + H + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof M[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ var Ze = Error(($ || "React class") + ": " + H + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof M[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
336
  throw Ze.name = "Invariant Violation", Ze;
337
337
  }
338
- ae = M[ie](P, ie, Z, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
+ ae = M[ie](q, ie, $, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
339
  } catch (Ie) {
340
340
  ae = Ie;
341
341
  }
342
- ae && !(ae instanceof Error) && (de(ce), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", H, ie, typeof ae), de(null)), ae instanceof Error && !(ae.message in G) && (G[ae.message] = !0, de(ce), w("Failed %s type: %s", H, ae.message), de(null));
342
+ ae && !(ae instanceof Error) && (de(ce), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", H, ie, typeof ae), de(null)), ae instanceof Error && !(ae.message in G) && (G[ae.message] = !0, de(ce), w("Failed %s type: %s", H, ae.message), de(null));
343
343
  }
344
344
  }
345
345
  }
@@ -349,7 +349,7 @@ function RS() {
349
349
  }
350
350
  function ci(M) {
351
351
  {
352
- var P = typeof Symbol == "function" && Symbol.toStringTag, H = P && M[Symbol.toStringTag] || M.constructor.name || "Object";
352
+ var q = typeof Symbol == "function" && Symbol.toStringTag, H = q && M[Symbol.toStringTag] || M.constructor.name || "Object";
353
353
  return H;
354
354
  }
355
355
  }
@@ -374,32 +374,32 @@ function RS() {
374
374
  __source: !0
375
375
  }, di, Kt, va;
376
376
  va = {};
377
- function R(M) {
378
- if (_.call(M, "ref")) {
379
- var P = Object.getOwnPropertyDescriptor(M, "ref").get;
380
- if (P && P.isReactWarning)
377
+ function D(M) {
378
+ if (P.call(M, "ref")) {
379
+ var q = Object.getOwnPropertyDescriptor(M, "ref").get;
380
+ if (q && q.isReactWarning)
381
381
  return !1;
382
382
  }
383
383
  return M.ref !== void 0;
384
384
  }
385
- function $(M) {
386
- if (_.call(M, "key")) {
387
- var P = Object.getOwnPropertyDescriptor(M, "key").get;
388
- if (P && P.isReactWarning)
385
+ function W(M) {
386
+ if (P.call(M, "key")) {
387
+ var q = Object.getOwnPropertyDescriptor(M, "key").get;
388
+ if (q && q.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return M.key !== void 0;
392
392
  }
393
- function oe(M, P) {
394
- if (typeof M.ref == "string" && Mt.current && P && Mt.current.stateNode !== P) {
393
+ function oe(M, q) {
394
+ if (typeof M.ref == "string" && Mt.current && q && Mt.current.stateNode !== q) {
395
395
  var H = V(Mt.current.type);
396
396
  va[H] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(Mt.current.type), M.ref), va[H] = !0);
397
397
  }
398
398
  }
399
- function we(M, P) {
399
+ function we(M, q) {
400
400
  {
401
401
  var H = function() {
402
- di || (di = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
402
+ di || (di = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", q));
403
403
  };
404
404
  H.isReactWarning = !0, Object.defineProperty(M, "key", {
405
405
  get: H,
@@ -407,10 +407,10 @@ function RS() {
407
407
  });
408
408
  }
409
409
  }
410
- function Oe(M, P) {
410
+ function Oe(M, q) {
411
411
  {
412
412
  var H = function() {
413
- Kt || (Kt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
413
+ Kt || (Kt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", q));
414
414
  };
415
415
  H.isReactWarning = !0, Object.defineProperty(M, "ref", {
416
416
  get: H,
@@ -418,13 +418,13 @@ function RS() {
418
418
  });
419
419
  }
420
420
  }
421
- var Qt = function(M, P, H, Z, ce, ye, ie) {
421
+ var Qt = function(M, q, H, $, ce, ye, ie) {
422
422
  var ae = {
423
423
  // This tag allows us to uniquely identify this as a React Element
424
424
  $$typeof: e,
425
425
  // Built-in properties that belong on the element
426
426
  type: M,
427
- key: P,
427
+ key: q,
428
428
  ref: H,
429
429
  props: ie,
430
430
  // Record the component responsible for creating this element.
@@ -439,7 +439,7 @@ function RS() {
439
439
  configurable: !1,
440
440
  enumerable: !1,
441
441
  writable: !1,
442
- value: Z
442
+ value: $
443
443
  }), Object.defineProperty(ae, "_source", {
444
444
  configurable: !1,
445
445
  enumerable: !1,
@@ -447,12 +447,12 @@ function RS() {
447
447
  value: ce
448
448
  }), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
449
449
  };
450
- function He(M, P, H, Z, ce) {
450
+ function He(M, q, H, $, ce) {
451
451
  {
452
452
  var ye, ie = {}, ae = null, Ze = null;
453
- H !== void 0 && (xa(H), ae = "" + H), $(P) && (xa(P.key), ae = "" + P.key), R(P) && (Ze = P.ref, oe(P, ce));
454
- for (ye in P)
455
- _.call(P, ye) && !li.hasOwnProperty(ye) && (ie[ye] = P[ye]);
453
+ H !== void 0 && (xa(H), ae = "" + H), W(q) && (xa(q.key), ae = "" + q.key), D(q) && (Ze = q.ref, oe(q, ce));
454
+ for (ye in q)
455
+ P.call(q, ye) && !li.hasOwnProperty(ye) && (ie[ye] = q[ye]);
456
456
  if (M && M.defaultProps) {
457
457
  var Ie = M.defaultProps;
458
458
  for (ye in Ie)
@@ -462,13 +462,13 @@ function RS() {
462
462
  var qe = typeof M == "function" ? M.displayName || M.name || "Unknown" : M;
463
463
  ae && we(ie, qe), Ze && Oe(ie, qe);
464
464
  }
465
- return Qt(M, ae, Ze, ce, Z, Mt.current, ie);
465
+ return Qt(M, ae, Ze, ce, $, Mt.current, ie);
466
466
  }
467
467
  }
468
468
  var Fe = x.ReactCurrentOwner, Rt = x.ReactDebugCurrentFrame;
469
469
  function ue(M) {
470
470
  if (M) {
471
- var P = M._owner, H = T(M.type, M._source, P ? P.type : null);
471
+ var q = M._owner, H = z(M.type, M._source, q ? q.type : null);
472
472
  Rt.setExtraStackFrame(H);
473
473
  } else
474
474
  Rt.setExtraStackFrame(null);
@@ -490,43 +490,43 @@ Check the render method of \`` + M + "`.";
490
490
  return "";
491
491
  }
492
492
  }
493
- function z(M) {
493
+ function _(M) {
494
494
  return "";
495
495
  }
496
- var B = {};
496
+ var F = {};
497
497
  function ee(M) {
498
498
  {
499
- var P = Oi();
500
- if (!P) {
499
+ var q = Oi();
500
+ if (!q) {
501
501
  var H = typeof M == "string" ? M : M.displayName || M.name;
502
- H && (P = `
502
+ H && (q = `
503
503
 
504
504
  Check the top-level render call using <` + H + ">.");
505
505
  }
506
- return P;
506
+ return q;
507
507
  }
508
508
  }
509
- function se(M, P) {
509
+ function se(M, q) {
510
510
  {
511
511
  if (!M._store || M._store.validated || M.key != null)
512
512
  return;
513
513
  M._store.validated = !0;
514
- var H = ee(P);
515
- if (B[H])
514
+ var H = ee(q);
515
+ if (F[H])
516
516
  return;
517
- B[H] = !0;
518
- var Z = "";
519
- M && M._owner && M._owner !== Fe.current && (Z = " It was passed a child from " + V(M._owner.type) + "."), ue(M), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, Z), ue(null);
517
+ F[H] = !0;
518
+ var $ = "";
519
+ M && M._owner && M._owner !== Fe.current && ($ = " It was passed a child from " + V(M._owner.type) + "."), ue(M), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', H, $), ue(null);
520
520
  }
521
521
  }
522
- function be(M, P) {
522
+ function be(M, q) {
523
523
  {
524
524
  if (typeof M != "object")
525
525
  return;
526
526
  if (nt(M))
527
527
  for (var H = 0; H < M.length; H++) {
528
- var Z = M[H];
529
- Ma(Z) && se(Z, P);
528
+ var $ = M[H];
529
+ Ma($) && se($, q);
530
530
  }
531
531
  else if (Ma(M))
532
532
  M._store && (M._store.validated = !0);
@@ -534,41 +534,41 @@ Check the top-level render call using <` + H + ">.");
534
534
  var ce = f(M);
535
535
  if (typeof ce == "function" && ce !== M.entries)
536
536
  for (var ye = ce.call(M), ie; !(ie = ye.next()).done; )
537
- Ma(ie.value) && se(ie.value, P);
537
+ Ma(ie.value) && se(ie.value, q);
538
538
  }
539
539
  }
540
540
  }
541
541
  function Be(M) {
542
542
  {
543
- var P = M.type;
544
- if (P == null || typeof P == "string")
543
+ var q = M.type;
544
+ if (q == null || typeof q == "string")
545
545
  return;
546
546
  var H;
547
- if (typeof P == "function")
548
- H = P.propTypes;
549
- else if (typeof P == "object" && (P.$$typeof === d || // Note: Memo only checks outer props here.
547
+ if (typeof q == "function")
548
+ H = q.propTypes;
549
+ else if (typeof q == "object" && (q.$$typeof === d || // Note: Memo only checks outer props here.
550
550
  // Inner props are checked in the reconciler.
551
- P.$$typeof === p))
552
- H = P.propTypes;
551
+ q.$$typeof === p))
552
+ H = q.propTypes;
553
553
  else
554
554
  return;
555
555
  if (H) {
556
- var Z = V(P);
557
- ve(H, M.props, "prop", Z, M);
558
- } else if (P.PropTypes !== void 0 && !Ve) {
556
+ var $ = V(q);
557
+ ve(H, M.props, "prop", $, M);
558
+ } else if (q.PropTypes !== void 0 && !Ve) {
559
559
  Ve = !0;
560
- var ce = V(P);
560
+ var ce = V(q);
561
561
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ce || "Unknown");
562
562
  }
563
- typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
+ typeof q.getDefaultProps == "function" && !q.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
564
  }
565
565
  }
566
566
  function wt(M) {
567
567
  {
568
- for (var P = Object.keys(M.props), H = 0; H < P.length; H++) {
569
- var Z = P[H];
570
- if (Z !== "children" && Z !== "key") {
571
- ue(M), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), ue(null);
568
+ for (var q = Object.keys(M.props), H = 0; H < q.length; H++) {
569
+ var $ = q[H];
570
+ if ($ !== "children" && $ !== "key") {
571
+ ue(M), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), ue(null);
572
572
  break;
573
573
  }
574
574
  }
@@ -576,24 +576,24 @@ Check the top-level render call using <` + H + ">.");
576
576
  }
577
577
  }
578
578
  var hi = {};
579
- function Ei(M, P, H, Z, ce, ye) {
579
+ function Ei(M, q, H, $, ce, ye) {
580
580
  {
581
- var ie = q(M);
581
+ var ie = T(M);
582
582
  if (!ie) {
583
583
  var ae = "";
584
584
  (M === void 0 || typeof M == "object" && M !== null && Object.keys(M).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
- var Ze = z();
585
+ var Ze = _();
586
586
  Ze ? ae += Ze : ae += Oi();
587
587
  var Ie;
588
588
  M === null ? Ie = "null" : nt(M) ? Ie = "array" : M !== void 0 && M.$$typeof === e ? (Ie = "<" + (V(M.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof M, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, ae);
589
589
  }
590
- var qe = He(M, P, H, ce, ye);
590
+ var qe = He(M, q, H, ce, ye);
591
591
  if (qe == null)
592
592
  return qe;
593
593
  if (ie) {
594
- var pt = P.children;
594
+ var pt = q.children;
595
595
  if (pt !== void 0)
596
- if (Z)
596
+ if ($)
597
597
  if (nt(pt)) {
598
598
  for (var yi = 0; yi < pt.length; yi++)
599
599
  be(pt[yi], M);
@@ -603,8 +603,8 @@ Check the top-level render call using <` + H + ">.");
603
603
  else
604
604
  be(pt, M);
605
605
  }
606
- if (_.call(P, "key")) {
607
- var wa = V(M), Je = Object.keys(P).filter(function(qS) {
606
+ if (P.call(q, "key")) {
607
+ var wa = V(M), Je = Object.keys(q).filter(function(qS) {
608
608
  return qS !== "key";
609
609
  }), mw = Je.length > 0 ? "{key: someKey, " + Je.join(": ..., ") + ": ...}" : "{key: someKey}";
610
610
  if (!hi[wa + mw]) {
@@ -620,11 +620,11 @@ React keys must be passed directly to JSX without using spread:
620
620
  return M === a ? wt(qe) : Be(qe), qe;
621
621
  }
622
622
  }
623
- function $e(M, P, H) {
624
- return Ei(M, P, H, !0);
623
+ function $e(M, q, H) {
624
+ return Ei(M, q, H, !0);
625
625
  }
626
- function yt(M, P, H) {
627
- return Ei(M, P, H, !1);
626
+ function yt(M, q, H) {
627
+ return Ei(M, q, H, !1);
628
628
  }
629
629
  var Ro = yt, AS = $e;
630
630
  Gi.Fragment = a, Gi.jsx = Ro, Gi.jsxs = AS;
@@ -929,9 +929,9 @@ const hb = "-", $S = (i) => {
929
929
  if (s.includes(w))
930
930
  continue;
931
931
  s.push(w);
932
- const C = o(m, g);
933
- for (let L = 0; L < C.length; ++L) {
934
- const b = C[L];
932
+ const L = o(m, g);
933
+ for (let j = 0; j < L.length; ++j) {
934
+ const b = L[j];
935
935
  s.push(x + b);
936
936
  }
937
937
  l = h + (l.length > 0 ? " " + l : l);
@@ -981,7 +981,7 @@ const xe = (i) => {
981
981
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
982
982
  lI.test(i) && !dI.test(i)
983
983
  ), UC = () => !1, MI = (i) => hI.test(i), wI = (i) => yI.test(i), bI = () => {
984
- const i = xe("colors"), e = xe("spacing"), t = xe("blur"), a = xe("brightness"), o = xe("borderColor"), s = xe("borderRadius"), c = xe("borderSpacing"), l = xe("borderWidth"), d = xe("contrast"), h = xe("grayscale"), y = xe("hueRotate"), p = xe("invert"), u = xe("gap"), k = xe("gradientColorStops"), g = xe("gradientColorStopPositions"), m = xe("inset"), f = xe("margin"), x = xe("opacity"), w = xe("padding"), C = xe("saturate"), L = xe("scale"), b = xe("sepia"), N = xe("skew"), S = xe("space"), A = xe("translate"), j = () => ["auto", "contain", "none"], q = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", Y, e], D = () => [Y, e], V = () => ["", Ht, ea], W = () => ["auto", xi, Y], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], he = () => ["", "0", Y], me = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], le = () => [xi, Y];
984
+ const i = xe("colors"), e = xe("spacing"), t = xe("blur"), a = xe("brightness"), o = xe("borderColor"), s = xe("borderRadius"), c = xe("borderSpacing"), l = xe("borderWidth"), d = xe("contrast"), h = xe("grayscale"), y = xe("hueRotate"), p = xe("invert"), u = xe("gap"), k = xe("gradientColorStops"), g = xe("gradientColorStopPositions"), m = xe("inset"), f = xe("margin"), x = xe("opacity"), w = xe("padding"), L = xe("saturate"), j = xe("scale"), b = xe("sepia"), N = xe("skew"), C = xe("space"), I = xe("translate"), S = () => ["auto", "contain", "none"], T = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", Y, e], R = () => [Y, e], V = () => ["", Ht, ea], Z = () => ["auto", xi, Y], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], he = () => ["", "0", Y], me = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], le = () => [xi, Y];
985
985
  return {
986
986
  cacheSize: 500,
987
987
  separator: ":",
@@ -992,25 +992,25 @@ const xe = (i) => {
992
992
  brightness: le(),
993
993
  borderColor: [i],
994
994
  borderRadius: ["none", "", "full", ta, Y],
995
- borderSpacing: D(),
995
+ borderSpacing: R(),
996
996
  borderWidth: V(),
997
997
  contrast: le(),
998
998
  grayscale: he(),
999
999
  hueRotate: le(),
1000
1000
  invert: he(),
1001
- gap: D(),
1001
+ gap: R(),
1002
1002
  gradientColorStops: [i],
1003
1003
  gradientColorStopPositions: [pI, ea],
1004
- inset: F(),
1005
- margin: F(),
1004
+ inset: E(),
1005
+ margin: E(),
1006
1006
  opacity: le(),
1007
- padding: D(),
1007
+ padding: R(),
1008
1008
  saturate: le(),
1009
1009
  scale: le(),
1010
1010
  sepia: he(),
1011
1011
  skew: le(),
1012
- space: D(),
1013
- translate: D()
1012
+ space: R(),
1013
+ translate: R()
1014
1014
  },
1015
1015
  classGroups: {
1016
1016
  // Layout
@@ -1111,42 +1111,42 @@ const xe = (i) => {
1111
1111
  * @see https://tailwindcss.com/docs/overflow
1112
1112
  */
1113
1113
  overflow: [{
1114
- overflow: q()
1114
+ overflow: T()
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Overflow X
1118
1118
  * @see https://tailwindcss.com/docs/overflow
1119
1119
  */
1120
1120
  "overflow-x": [{
1121
- "overflow-x": q()
1121
+ "overflow-x": T()
1122
1122
  }],
1123
1123
  /**
1124
1124
  * Overflow Y
1125
1125
  * @see https://tailwindcss.com/docs/overflow
1126
1126
  */
1127
1127
  "overflow-y": [{
1128
- "overflow-y": q()
1128
+ "overflow-y": T()
1129
1129
  }],
1130
1130
  /**
1131
1131
  * Overscroll Behavior
1132
1132
  * @see https://tailwindcss.com/docs/overscroll-behavior
1133
1133
  */
1134
1134
  overscroll: [{
1135
- overscroll: j()
1135
+ overscroll: S()
1136
1136
  }],
1137
1137
  /**
1138
1138
  * Overscroll Behavior X
1139
1139
  * @see https://tailwindcss.com/docs/overscroll-behavior
1140
1140
  */
1141
1141
  "overscroll-x": [{
1142
- "overscroll-x": j()
1142
+ "overscroll-x": S()
1143
1143
  }],
1144
1144
  /**
1145
1145
  * Overscroll Behavior Y
1146
1146
  * @see https://tailwindcss.com/docs/overscroll-behavior
1147
1147
  */
1148
1148
  "overscroll-y": [{
1149
- "overscroll-y": j()
1149
+ "overscroll-y": S()
1150
1150
  }],
1151
1151
  /**
1152
1152
  * Position
@@ -1234,7 +1234,7 @@ const xe = (i) => {
1234
1234
  * @see https://tailwindcss.com/docs/flex-basis
1235
1235
  */
1236
1236
  basis: [{
1237
- basis: F()
1237
+ basis: E()
1238
1238
  }],
1239
1239
  /**
1240
1240
  * Flex Direction
@@ -1299,14 +1299,14 @@ const xe = (i) => {
1299
1299
  * @see https://tailwindcss.com/docs/grid-column
1300
1300
  */
1301
1301
  "col-start": [{
1302
- "col-start": W()
1302
+ "col-start": Z()
1303
1303
  }],
1304
1304
  /**
1305
1305
  * Grid Column End
1306
1306
  * @see https://tailwindcss.com/docs/grid-column
1307
1307
  */
1308
1308
  "col-end": [{
1309
- "col-end": W()
1309
+ "col-end": Z()
1310
1310
  }],
1311
1311
  /**
1312
1312
  * Grid Template Rows
@@ -1329,14 +1329,14 @@ const xe = (i) => {
1329
1329
  * @see https://tailwindcss.com/docs/grid-row
1330
1330
  */
1331
1331
  "row-start": [{
1332
- "row-start": W()
1332
+ "row-start": Z()
1333
1333
  }],
1334
1334
  /**
1335
1335
  * Grid Row End
1336
1336
  * @see https://tailwindcss.com/docs/grid-row
1337
1337
  */
1338
1338
  "row-end": [{
1339
- "row-end": W()
1339
+ "row-end": Z()
1340
1340
  }],
1341
1341
  /**
1342
1342
  * Grid Auto Flow
@@ -1575,7 +1575,7 @@ const xe = (i) => {
1575
1575
  * @see https://tailwindcss.com/docs/space
1576
1576
  */
1577
1577
  "space-x": [{
1578
- "space-x": [S]
1578
+ "space-x": [C]
1579
1579
  }],
1580
1580
  /**
1581
1581
  * Space Between X Reverse
@@ -1587,7 +1587,7 @@ const xe = (i) => {
1587
1587
  * @see https://tailwindcss.com/docs/space
1588
1588
  */
1589
1589
  "space-y": [{
1590
- "space-y": [S]
1590
+ "space-y": [C]
1591
1591
  }],
1592
1592
  /**
1593
1593
  * Space Between Y Reverse
@@ -1841,7 +1841,7 @@ const xe = (i) => {
1841
1841
  * @see https://tailwindcss.com/docs/text-indent
1842
1842
  */
1843
1843
  indent: [{
1844
- indent: D()
1844
+ indent: R()
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Vertical Alignment
@@ -2447,7 +2447,7 @@ const xe = (i) => {
2447
2447
  * @see https://tailwindcss.com/docs/saturate
2448
2448
  */
2449
2449
  saturate: [{
2450
- saturate: [C]
2450
+ saturate: [L]
2451
2451
  }],
2452
2452
  /**
2453
2453
  * Sepia
@@ -2518,7 +2518,7 @@ const xe = (i) => {
2518
2518
  * @see https://tailwindcss.com/docs/backdrop-saturate
2519
2519
  */
2520
2520
  "backdrop-saturate": [{
2521
- "backdrop-saturate": [C]
2521
+ "backdrop-saturate": [L]
2522
2522
  }],
2523
2523
  /**
2524
2524
  * Backdrop Sepia
@@ -2619,21 +2619,21 @@ const xe = (i) => {
2619
2619
  * @see https://tailwindcss.com/docs/scale
2620
2620
  */
2621
2621
  scale: [{
2622
- scale: [L]
2622
+ scale: [j]
2623
2623
  }],
2624
2624
  /**
2625
2625
  * Scale X
2626
2626
  * @see https://tailwindcss.com/docs/scale
2627
2627
  */
2628
2628
  "scale-x": [{
2629
- "scale-x": [L]
2629
+ "scale-x": [j]
2630
2630
  }],
2631
2631
  /**
2632
2632
  * Scale Y
2633
2633
  * @see https://tailwindcss.com/docs/scale
2634
2634
  */
2635
2635
  "scale-y": [{
2636
- "scale-y": [L]
2636
+ "scale-y": [j]
2637
2637
  }],
2638
2638
  /**
2639
2639
  * Rotate
@@ -2647,14 +2647,14 @@ const xe = (i) => {
2647
2647
  * @see https://tailwindcss.com/docs/translate
2648
2648
  */
2649
2649
  "translate-x": [{
2650
- "translate-x": [A]
2650
+ "translate-x": [I]
2651
2651
  }],
2652
2652
  /**
2653
2653
  * Translate Y
2654
2654
  * @see https://tailwindcss.com/docs/translate
2655
2655
  */
2656
2656
  "translate-y": [{
2657
- "translate-y": [A]
2657
+ "translate-y": [I]
2658
2658
  }],
2659
2659
  /**
2660
2660
  * Skew X
@@ -2732,126 +2732,126 @@ const xe = (i) => {
2732
2732
  * @see https://tailwindcss.com/docs/scroll-margin
2733
2733
  */
2734
2734
  "scroll-m": [{
2735
- "scroll-m": D()
2735
+ "scroll-m": R()
2736
2736
  }],
2737
2737
  /**
2738
2738
  * Scroll Margin X
2739
2739
  * @see https://tailwindcss.com/docs/scroll-margin
2740
2740
  */
2741
2741
  "scroll-mx": [{
2742
- "scroll-mx": D()
2742
+ "scroll-mx": R()
2743
2743
  }],
2744
2744
  /**
2745
2745
  * Scroll Margin Y
2746
2746
  * @see https://tailwindcss.com/docs/scroll-margin
2747
2747
  */
2748
2748
  "scroll-my": [{
2749
- "scroll-my": D()
2749
+ "scroll-my": R()
2750
2750
  }],
2751
2751
  /**
2752
2752
  * Scroll Margin Start
2753
2753
  * @see https://tailwindcss.com/docs/scroll-margin
2754
2754
  */
2755
2755
  "scroll-ms": [{
2756
- "scroll-ms": D()
2756
+ "scroll-ms": R()
2757
2757
  }],
2758
2758
  /**
2759
2759
  * Scroll Margin End
2760
2760
  * @see https://tailwindcss.com/docs/scroll-margin
2761
2761
  */
2762
2762
  "scroll-me": [{
2763
- "scroll-me": D()
2763
+ "scroll-me": R()
2764
2764
  }],
2765
2765
  /**
2766
2766
  * Scroll Margin Top
2767
2767
  * @see https://tailwindcss.com/docs/scroll-margin
2768
2768
  */
2769
2769
  "scroll-mt": [{
2770
- "scroll-mt": D()
2770
+ "scroll-mt": R()
2771
2771
  }],
2772
2772
  /**
2773
2773
  * Scroll Margin Right
2774
2774
  * @see https://tailwindcss.com/docs/scroll-margin
2775
2775
  */
2776
2776
  "scroll-mr": [{
2777
- "scroll-mr": D()
2777
+ "scroll-mr": R()
2778
2778
  }],
2779
2779
  /**
2780
2780
  * Scroll Margin Bottom
2781
2781
  * @see https://tailwindcss.com/docs/scroll-margin
2782
2782
  */
2783
2783
  "scroll-mb": [{
2784
- "scroll-mb": D()
2784
+ "scroll-mb": R()
2785
2785
  }],
2786
2786
  /**
2787
2787
  * Scroll Margin Left
2788
2788
  * @see https://tailwindcss.com/docs/scroll-margin
2789
2789
  */
2790
2790
  "scroll-ml": [{
2791
- "scroll-ml": D()
2791
+ "scroll-ml": R()
2792
2792
  }],
2793
2793
  /**
2794
2794
  * Scroll Padding
2795
2795
  * @see https://tailwindcss.com/docs/scroll-padding
2796
2796
  */
2797
2797
  "scroll-p": [{
2798
- "scroll-p": D()
2798
+ "scroll-p": R()
2799
2799
  }],
2800
2800
  /**
2801
2801
  * Scroll Padding X
2802
2802
  * @see https://tailwindcss.com/docs/scroll-padding
2803
2803
  */
2804
2804
  "scroll-px": [{
2805
- "scroll-px": D()
2805
+ "scroll-px": R()
2806
2806
  }],
2807
2807
  /**
2808
2808
  * Scroll Padding Y
2809
2809
  * @see https://tailwindcss.com/docs/scroll-padding
2810
2810
  */
2811
2811
  "scroll-py": [{
2812
- "scroll-py": D()
2812
+ "scroll-py": R()
2813
2813
  }],
2814
2814
  /**
2815
2815
  * Scroll Padding Start
2816
2816
  * @see https://tailwindcss.com/docs/scroll-padding
2817
2817
  */
2818
2818
  "scroll-ps": [{
2819
- "scroll-ps": D()
2819
+ "scroll-ps": R()
2820
2820
  }],
2821
2821
  /**
2822
2822
  * Scroll Padding End
2823
2823
  * @see https://tailwindcss.com/docs/scroll-padding
2824
2824
  */
2825
2825
  "scroll-pe": [{
2826
- "scroll-pe": D()
2826
+ "scroll-pe": R()
2827
2827
  }],
2828
2828
  /**
2829
2829
  * Scroll Padding Top
2830
2830
  * @see https://tailwindcss.com/docs/scroll-padding
2831
2831
  */
2832
2832
  "scroll-pt": [{
2833
- "scroll-pt": D()
2833
+ "scroll-pt": R()
2834
2834
  }],
2835
2835
  /**
2836
2836
  * Scroll Padding Right
2837
2837
  * @see https://tailwindcss.com/docs/scroll-padding
2838
2838
  */
2839
2839
  "scroll-pr": [{
2840
- "scroll-pr": D()
2840
+ "scroll-pr": R()
2841
2841
  }],
2842
2842
  /**
2843
2843
  * Scroll Padding Bottom
2844
2844
  * @see https://tailwindcss.com/docs/scroll-padding
2845
2845
  */
2846
2846
  "scroll-pb": [{
2847
- "scroll-pb": D()
2847
+ "scroll-pb": R()
2848
2848
  }],
2849
2849
  /**
2850
2850
  * Scroll Padding Left
2851
2851
  * @see https://tailwindcss.com/docs/scroll-padding
2852
2852
  */
2853
2853
  "scroll-pl": [{
2854
- "scroll-pl": D()
2854
+ "scroll-pl": R()
2855
2855
  }],
2856
2856
  /**
2857
2857
  * Scroll Snap Align
@@ -3240,8 +3240,8 @@ function TI(i) {
3240
3240
  d.displayName = l;
3241
3241
  const h = i + "CollectionItemSlot", y = "data-radix-collection-item", p = St.forwardRef(
3242
3242
  (k, g) => {
3243
- const { scope: m, children: f, ...x } = k, w = St.useRef(null), C = Y9(g, w), L = s(h, m);
3244
- return St.useEffect(() => (L.itemMap.set(w, { ref: w, ...x }), () => void L.itemMap.delete(w))), /* @__PURE__ */ n.jsx(Ow, { [y]: "", ref: C, children: f });
3243
+ const { scope: m, children: f, ...x } = k, w = St.useRef(null), L = Y9(g, w), j = s(h, m);
3244
+ return St.useEffect(() => (j.itemMap.set(w, { ref: w, ...x }), () => void j.itemMap.delete(w))), /* @__PURE__ */ n.jsx(Ow, { [y]: "", ref: L, children: f });
3245
3245
  }
3246
3246
  );
3247
3247
  p.displayName = h;
@@ -3252,7 +3252,7 @@ function TI(i) {
3252
3252
  if (!f) return [];
3253
3253
  const x = Array.from(f.querySelectorAll(`[${y}]`));
3254
3254
  return Array.from(g.itemMap.values()).sort(
3255
- (L, b) => x.indexOf(L.ref.current) - x.indexOf(b.ref.current)
3255
+ (j, b) => x.indexOf(j.ref.current) - x.indexOf(b.ref.current)
3256
3256
  );
3257
3257
  }, [g.collectionRef, g.itemMap]);
3258
3258
  }
@@ -3447,12 +3447,12 @@ var KI = v.forwardRef((i, e) => {
3447
3447
  prop: c,
3448
3448
  defaultProp: l,
3449
3449
  onChange: d
3450
- }), [x, w] = v.useState(!1), C = pb(h), L = XC(t), b = v.useRef(!1), [N, S] = v.useState(0);
3450
+ }), [x, w] = v.useState(!1), L = pb(h), j = XC(t), b = v.useRef(!1), [N, C] = v.useState(0);
3451
3451
  return v.useEffect(() => {
3452
- const A = u.current;
3453
- if (A)
3454
- return A.addEventListener(gw, C), () => A.removeEventListener(gw, C);
3455
- }, [C]), /* @__PURE__ */ n.jsx(
3452
+ const I = u.current;
3453
+ if (I)
3454
+ return I.addEventListener(gw, L), () => I.removeEventListener(gw, L);
3455
+ }, [L]), /* @__PURE__ */ n.jsx(
3456
3456
  JI,
3457
3457
  {
3458
3458
  scope: t,
@@ -3461,16 +3461,16 @@ var KI = v.forwardRef((i, e) => {
3461
3461
  loop: o,
3462
3462
  currentTabStopId: m,
3463
3463
  onItemFocus: v.useCallback(
3464
- (A) => f(A),
3464
+ (I) => f(I),
3465
3465
  [f]
3466
3466
  ),
3467
3467
  onItemShiftTab: v.useCallback(() => w(!0), []),
3468
3468
  onFocusableItemAdd: v.useCallback(
3469
- () => S((A) => A + 1),
3469
+ () => C((I) => I + 1),
3470
3470
  []
3471
3471
  ),
3472
3472
  onFocusableItemRemove: v.useCallback(
3473
- () => S((A) => A - 1),
3473
+ () => C((I) => I - 1),
3474
3474
  []
3475
3475
  ),
3476
3476
  children: /* @__PURE__ */ n.jsx(
@@ -3484,12 +3484,12 @@ var KI = v.forwardRef((i, e) => {
3484
3484
  onMouseDown: Et(i.onMouseDown, () => {
3485
3485
  b.current = !0;
3486
3486
  }),
3487
- onFocus: Et(i.onFocus, (A) => {
3488
- const j = !b.current;
3489
- if (A.target === A.currentTarget && j && !x) {
3490
- const q = new CustomEvent(gw, $I);
3491
- if (A.currentTarget.dispatchEvent(q), !q.defaultPrevented) {
3492
- const F = L().filter((U) => U.focusable), D = F.find((U) => U.active), V = F.find((U) => U.id === m), K = [D, V, ...F].filter(
3487
+ onFocus: Et(i.onFocus, (I) => {
3488
+ const S = !b.current;
3489
+ if (I.target === I.currentTarget && S && !x) {
3490
+ const T = new CustomEvent(gw, $I);
3491
+ if (I.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
3492
+ const E = j().filter((U) => U.focusable), R = E.find((U) => U.active), V = E.find((U) => U.id === m), K = [R, V, ...E].filter(
3493
3493
  Boolean
3494
3494
  ).map((U) => U.ref.current);
3495
3495
  eL(K, y);
@@ -32516,7 +32516,7 @@ function K_({
32516
32516
  PromotionsTitle: o,
32517
32517
  buttonMsg: s = "Select Plan"
32518
32518
  }) {
32519
- const [c, l] = I([]), [d, h] = I("tab-0"), y = a || window.location.origin || "http://localhost:8000";
32519
+ const [c, l] = A([]), [d, h] = A("tab-0"), y = a || window.location.origin || "http://localhost:8000";
32520
32520
  te(() => {
32521
32521
  (async () => {
32522
32522
  try {
@@ -32919,16 +32919,16 @@ var dt = {
32919
32919
  edges: 0.5,
32920
32920
  end: 1
32921
32921
  }[o] || 0 : !l && d && (y = o[0], p = o[1]), function(u, k, g) {
32922
- var m = (g || t).length, f = c[m], x, w, C, L, b, N, S, A, j;
32922
+ var m = (g || t).length, f = c[m], x, w, L, j, b, N, C, I, S;
32923
32923
  if (!f) {
32924
- if (j = t.grid === "auto" ? 0 : (t.grid || [1, ft])[1], !j) {
32925
- for (S = -ft; S < (S = g[j++].getBoundingClientRect().left) && j < m; )
32924
+ if (S = t.grid === "auto" ? 0 : (t.grid || [1, ft])[1], !S) {
32925
+ for (C = -ft; C < (C = g[S++].getBoundingClientRect().left) && S < m; )
32926
32926
  ;
32927
- j < m && j--;
32927
+ S < m && S--;
32928
32928
  }
32929
- for (f = c[m] = [], x = d ? Math.min(j, m) * y - 0.5 : o % j, w = j === ft ? 0 : d ? m * p / j - 0.5 : o / j | 0, S = 0, A = ft, N = 0; N < m; N++)
32930
- C = N % j - x, L = w - (N / j | 0), f[N] = b = h ? Math.abs(h === "y" ? L : C) : SL(C * C + L * L), b > S && (S = b), b < A && (A = b);
32931
- o === "random" && GL(f), f.max = S - A, f.min = A, f.v = m = (parseFloat(t.amount) || parseFloat(t.each) * (j > m ? m - 1 : h ? h === "y" ? m / j : j : Math.max(j, m / j)) || 0) * (o === "edges" ? -1 : 1), f.b = m < 0 ? s - m : s, f.u = Ee(t.amount || t.each) || 0, a = a && m < 0 ? aj(a) : a;
32929
+ for (f = c[m] = [], x = d ? Math.min(S, m) * y - 0.5 : o % S, w = S === ft ? 0 : d ? m * p / S - 0.5 : o / S | 0, C = 0, I = ft, N = 0; N < m; N++)
32930
+ L = N % S - x, j = w - (N / S | 0), f[N] = b = h ? Math.abs(h === "y" ? j : L) : SL(L * L + j * j), b > C && (C = b), b < I && (I = b);
32931
+ o === "random" && GL(f), f.max = C - I, f.min = I, f.v = m = (parseFloat(t.amount) || parseFloat(t.each) * (S > m ? m - 1 : h ? h === "y" ? m / S : S : Math.max(S, m / S)) || 0) * (o === "edges" ? -1 : 1), f.b = m < 0 ? s - m : s, f.u = Ee(t.amount || t.each) || 0, a = a && m < 0 ? aj(a) : a;
32932
32932
  }
32933
32933
  return m = (f[u] - f.min) / f.max || 0, Te(f.b + (a ? a(m) : m) * f.v) + f.u;
32934
32934
  };
@@ -33127,8 +33127,8 @@ var dt = {
33127
33127
  return a = VA.test(t), e[1] = rC(e[1], a), e[0] = rC(e[0], a, ej(e[1])), !0;
33128
33128
  }, Ao, ct = function() {
33129
33129
  var i = Date.now, e = 500, t = 33, a = i(), o = a, s = 1e3 / 240, c = s, l = [], d, h, y, p, u, k, g = function m(f) {
33130
- var x = i() - o, w = f === !0, C, L, b, N;
33131
- if ((x > e || x < 0) && (a += x - t), o += x, b = o - a, C = b - c, (C > 0 || w) && (N = ++p.frame, u = b - p.time * 1e3, p.time = b = b / 1e3, c += C + (C >= s ? 4 : s - C), L = 1), w || (d = h(m)), L)
33130
+ var x = i() - o, w = f === !0, L, j, b, N;
33131
+ if ((x > e || x < 0) && (a += x - t), o += x, b = o - a, L = b - c, (L > 0 || w) && (N = ++p.frame, u = b - p.time * 1e3, p.time = b = b / 1e3, c += L + (L >= s ? 4 : s - L), j = 1), w || (d = h(m)), j)
33132
33132
  for (k = 0; k < l.length; k++)
33133
33133
  l[k](b, u, N, f);
33134
33134
  };
@@ -33156,10 +33156,10 @@ var dt = {
33156
33156
  s = 1e3 / (f || 240), c = p.time * 1e3 + s;
33157
33157
  },
33158
33158
  add: function(f, x, w) {
33159
- var C = x ? function(L, b, N, S) {
33160
- f(L, b, N, S), p.remove(C);
33159
+ var L = x ? function(j, b, N, C) {
33160
+ f(j, b, N, C), p.remove(L);
33161
33161
  } : f;
33162
- return p.remove(f), l[w ? "unshift" : "push"](C), Ri(), C;
33162
+ return p.remove(f), l[w ? "unshift" : "push"](L), Ri(), L;
33163
33163
  },
33164
33164
  remove: function(f, x) {
33165
33165
  ~(x = l.indexOf(f)) && l.splice(x, 1) && k >= x && k--;
@@ -33422,21 +33422,21 @@ var Xe = /* @__PURE__ */ function(i) {
33422
33422
  }, t.staggerFromTo = function(o, s, c, l, d, h, y, p) {
33423
33423
  return l.startAt = c, vo(l).immediateRender = Ke(l.immediateRender), this.staggerTo(o, s, l, d, h, y, p);
33424
33424
  }, t.render = function(o, s, c) {
33425
- var l = this._time, d = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, y = o <= 0 ? 0 : Te(o), p = this._zTime < 0 != o < 0 && (this._initted || !h), u, k, g, m, f, x, w, C, L, b, N, S;
33425
+ var l = this._time, d = this._dirty ? this.totalDuration() : this._tDur, h = this._dur, y = o <= 0 ? 0 : Te(o), p = this._zTime < 0 != o < 0 && (this._initted || !h), u, k, g, m, f, x, w, L, j, b, N, C;
33426
33426
  if (this !== Ce && y > d && o >= 0 && (y = d), y !== this._tTime || c || p) {
33427
- if (l !== this._time && h && (y += this._time - l, o += this._time - l), u = y, L = this._start, C = this._ts, x = !C, p && (h || (l = this._zTime), (o || !s) && (this._zTime = o)), this._repeat) {
33427
+ if (l !== this._time && h && (y += this._time - l, o += this._time - l), u = y, j = this._start, L = this._ts, x = !L, p && (h || (l = this._zTime), (o || !s) && (this._zTime = o)), this._repeat) {
33428
33428
  if (N = this._yoyo, f = h + this._rDelay, this._repeat < -1 && o < 0)
33429
33429
  return this.totalTime(f * 100 + o, s, c);
33430
- if (u = Te(y % f), y === d ? (m = this._repeat, u = h) : (m = ~~(y / f), m && m === y / f && (u = h, m--), u > h && (u = h)), b = Ti(this._tTime, f), !l && this._tTime && b !== m && this._tTime - b * f - this._dur <= 0 && (b = m), N && m & 1 && (u = h - u, S = 1), m !== b && !this._lock) {
33431
- var A = N && b & 1, j = A === (N && m & 1);
33432
- if (m < b && (A = !A), l = A ? 0 : y % h ? h : y, this._lock = 1, this.render(l || (S ? 0 : Te(m * f)), s, !h)._lock = 0, this._tTime = y, !s && this.parent && lt(this, "onRepeat"), this.vars.repeatRefresh && !S && (this.invalidate()._lock = 1), l && l !== this._time || x !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
33430
+ if (u = Te(y % f), y === d ? (m = this._repeat, u = h) : (m = ~~(y / f), m && m === y / f && (u = h, m--), u > h && (u = h)), b = Ti(this._tTime, f), !l && this._tTime && b !== m && this._tTime - b * f - this._dur <= 0 && (b = m), N && m & 1 && (u = h - u, C = 1), m !== b && !this._lock) {
33431
+ var I = N && b & 1, S = I === (N && m & 1);
33432
+ if (m < b && (I = !I), l = I ? 0 : y % h ? h : y, this._lock = 1, this.render(l || (C ? 0 : Te(m * f)), s, !h)._lock = 0, this._tTime = y, !s && this.parent && lt(this, "onRepeat"), this.vars.repeatRefresh && !C && (this.invalidate()._lock = 1), l && l !== this._time || x !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
33433
33433
  return this;
33434
- if (h = this._dur, d = this._tDur, j && (this._lock = 2, l = A ? h : -1e-4, this.render(l, !0), this.vars.repeatRefresh && !S && this.invalidate()), this._lock = 0, !this._ts && !x)
33434
+ if (h = this._dur, d = this._tDur, S && (this._lock = 2, l = I ? h : -1e-4, this.render(l, !0), this.vars.repeatRefresh && !C && this.invalidate()), this._lock = 0, !this._ts && !x)
33435
33435
  return this;
33436
- rj(this, S);
33436
+ rj(this, C);
33437
33437
  }
33438
33438
  }
33439
- if (this._hasPause && !this._forcing && this._lock < 2 && (w = NA(this, Te(l), Te(u)), w && (y -= u - (u = w._start))), this._tTime = y, this._time = u, this._act = !C, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = o, l = 0), !l && u && !s && !m && (lt(this, "onStart"), this._tTime !== y))
33439
+ if (this._hasPause && !this._forcing && this._lock < 2 && (w = NA(this, Te(l), Te(u)), w && (y -= u - (u = w._start))), this._tTime = y, this._time = u, this._act = !L, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = o, l = 0), !l && u && !s && !m && (lt(this, "onStart"), this._tTime !== y))
33440
33440
  return this;
33441
33441
  if (u >= l && o >= 0)
33442
33442
  for (k = this._first; k; ) {
@@ -33452,12 +33452,12 @@ var Xe = /* @__PURE__ */ function(i) {
33452
33452
  }
33453
33453
  else {
33454
33454
  k = this._last;
33455
- for (var q = o < 0 ? o : u; k; ) {
33456
- if (g = k._prev, (k._act || q <= k._end) && k._ts && w !== k) {
33455
+ for (var T = o < 0 ? o : u; k; ) {
33456
+ if (g = k._prev, (k._act || T <= k._end) && k._ts && w !== k) {
33457
33457
  if (k.parent !== this)
33458
33458
  return this.render(o, s, c);
33459
- if (k.render(k._ts > 0 ? (q - k._start) * k._ts : (k._dirty ? k.totalDuration() : k._tDur) + (q - k._start) * k._ts, s, c || Ue && (k._initted || k._startAt)), u !== this._time || !this._ts && !x) {
33460
- w = 0, g && (y += this._zTime = q ? -ke : ke);
33459
+ if (k.render(k._ts > 0 ? (T - k._start) * k._ts : (k._dirty ? k.totalDuration() : k._tDur) + (T - k._start) * k._ts, s, c || Ue && (k._initted || k._startAt)), u !== this._time || !this._ts && !x) {
33460
+ w = 0, g && (y += this._zTime = T ? -ke : ke);
33461
33461
  break;
33462
33462
  }
33463
33463
  }
@@ -33465,8 +33465,8 @@ var Xe = /* @__PURE__ */ function(i) {
33465
33465
  }
33466
33466
  }
33467
33467
  if (w && !s && (this.pause(), w.render(u >= l ? 0 : -ke)._zTime = u >= l ? 1 : -1, this._ts))
33468
- return this._start = L, dw(this), this.render(o, s, c);
33469
- this._onUpdate && !s && lt(this, "onUpdate", !0), (y === d && this._tTime >= this.totalDuration() || !y && l) && (L === this._start || Math.abs(C) !== Math.abs(this._ts)) && (this._lock || ((o || !h) && (y === d && this._ts > 0 || !y && this._ts < 0) && ma(this, 1), !s && !(o < 0 && !l) && (y || l || !d) && (lt(this, y === d && o >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(y < d && this.timeScale() > 0) && this._prom())));
33468
+ return this._start = j, dw(this), this.render(o, s, c);
33469
+ this._onUpdate && !s && lt(this, "onUpdate", !0), (y === d && this._tTime >= this.totalDuration() || !y && l) && (j === this._start || Math.abs(L) !== Math.abs(this._ts)) && (this._lock || ((o || !h) && (y === d && this._ts > 0 || !y && this._ts < 0) && ma(this, 1), !s && !(o < 0 && !l) && (y || l || !d) && (lt(this, y === d && o >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(y < d && this.timeScale() > 0) && this._prom())));
33470
33470
  }
33471
33471
  return this;
33472
33472
  }, t.add = function(o, s) {
@@ -33624,9 +33624,9 @@ var WA = function(e, t, a, o, s, c, l) {
33624
33624
  h[l._props[y]] = d;
33625
33625
  return l;
33626
33626
  }, sa, ab, Lb = function i(e, t, a) {
33627
- var o = e.vars, s = o.ease, c = o.startAt, l = o.immediateRender, d = o.lazy, h = o.onUpdate, y = o.runBackwards, p = o.yoyoEase, u = o.keyframes, k = o.autoRevert, g = e._dur, m = e._startAt, f = e._targets, x = e.parent, w = x && x.data === "nested" ? x.vars.targets : f, C = e._overwrite === "auto" && !mb, L = e.timeline, b, N, S, A, j, q, F, D, V, W, K, U, re;
33628
- if (L && (!u || !s) && (s = "none"), e._ease = ti(s, zi.ease), e._yEase = p ? aj(ti(p === !0 ? s : p, zi.ease)) : 0, p && e._yoyo && !e._repeat && (p = e._yEase, e._yEase = e._ease, e._ease = p), e._from = !L && !!o.runBackwards, !L || u && !o.stagger) {
33629
- if (D = f[0] ? Qn(f[0]).harness : 0, U = D && o[D.prop], b = ew(o, Mb), m && (m._zTime < 0 && m.progress(1), t < 0 && y && l && !k ? m.render(-1, !0) : m.revert(y && g ? U9 : MA), m._lazy = 0), c) {
33627
+ var o = e.vars, s = o.ease, c = o.startAt, l = o.immediateRender, d = o.lazy, h = o.onUpdate, y = o.runBackwards, p = o.yoyoEase, u = o.keyframes, k = o.autoRevert, g = e._dur, m = e._startAt, f = e._targets, x = e.parent, w = x && x.data === "nested" ? x.vars.targets : f, L = e._overwrite === "auto" && !mb, j = e.timeline, b, N, C, I, S, T, E, R, V, Z, K, U, re;
33628
+ if (j && (!u || !s) && (s = "none"), e._ease = ti(s, zi.ease), e._yEase = p ? aj(ti(p === !0 ? s : p, zi.ease)) : 0, p && e._yoyo && !e._repeat && (p = e._yEase, e._yEase = e._ease, e._ease = p), e._from = !j && !!o.runBackwards, !j || u && !o.stagger) {
33629
+ if (R = f[0] ? Qn(f[0]).harness : 0, U = R && o[R.prop], b = ew(o, Mb), m && (m._zTime < 0 && m.progress(1), t < 0 && y && l && !k ? m.render(-1, !0) : m.revert(y && g ? U9 : MA), m._lazy = 0), c) {
33630
33630
  if (ma(e._startAt = Pe.set(f, vt({
33631
33631
  data: "isStart",
33632
33632
  overwrite: !1,
@@ -33644,7 +33644,7 @@ var WA = function(e, t, a, o, s, c, l) {
33644
33644
  return;
33645
33645
  }
33646
33646
  } else if (y && g && !m) {
33647
- if (t && (l = !1), S = vt({
33647
+ if (t && (l = !1), C = vt({
33648
33648
  overwrite: !1,
33649
33649
  data: "isFromStart",
33650
33650
  //we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
@@ -33654,22 +33654,22 @@ var WA = function(e, t, a, o, s, c, l) {
33654
33654
  stagger: 0,
33655
33655
  parent: x
33656
33656
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
33657
- }, b), U && (S[D.prop] = U), ma(e._startAt = Pe.set(f, S)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (Ue ? e._startAt.revert(U9) : e._startAt.render(-1, !0)), e._zTime = t, !l)
33657
+ }, b), U && (C[R.prop] = U), ma(e._startAt = Pe.set(f, C)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (Ue ? e._startAt.revert(U9) : e._startAt.render(-1, !0)), e._zTime = t, !l)
33658
33658
  i(e._startAt, ke, ke);
33659
33659
  else if (!t)
33660
33660
  return;
33661
33661
  }
33662
33662
  for (e._pt = e._ptCache = 0, d = g && Ke(d) || d && !g, N = 0; N < f.length; N++) {
33663
- if (j = f[N], F = j._gsap || bb(f)[N]._gsap, e._ptLookup[N] = W = {}, Jw[F.id] && ua.length && Q9(), K = w === f ? N : w.indexOf(j), D && (V = new D()).init(j, U || b, e, K, w) !== !1 && (e._pt = A = new et(e._pt, j, V.name, 0, 1, V.render, V, 0, V.priority), V._props.forEach(function(J) {
33664
- W[J] = A;
33665
- }), V.priority && (q = 1)), !D || U)
33666
- for (S in b)
33667
- ot[S] && (V = oj(S, b, e, K, j, w)) ? V.priority && (q = 1) : W[S] = A = Cb.call(e, j, S, "get", b[S], K, w, 0, o.stringFilter);
33668
- e._op && e._op[N] && e.kill(j, e._op[N]), C && e._pt && (sa = e, Ce.killTweensOf(j, W, e.globalTime(t)), re = !e.parent, sa = 0), e._pt && d && (Jw[F.id] = 1);
33669
- }
33670
- q && yj(e), e._onInit && e._onInit(e);
33663
+ if (S = f[N], E = S._gsap || bb(f)[N]._gsap, e._ptLookup[N] = Z = {}, Jw[E.id] && ua.length && Q9(), K = w === f ? N : w.indexOf(S), R && (V = new R()).init(S, U || b, e, K, w) !== !1 && (e._pt = I = new et(e._pt, S, V.name, 0, 1, V.render, V, 0, V.priority), V._props.forEach(function(J) {
33664
+ Z[J] = I;
33665
+ }), V.priority && (T = 1)), !R || U)
33666
+ for (C in b)
33667
+ ot[C] && (V = oj(C, b, e, K, S, w)) ? V.priority && (T = 1) : Z[C] = I = Cb.call(e, S, C, "get", b[C], K, w, 0, o.stringFilter);
33668
+ e._op && e._op[N] && e.kill(S, e._op[N]), L && e._pt && (sa = e, Ce.killTweensOf(S, Z, e.globalTime(t)), re = !e.parent, sa = 0), e._pt && d && (Jw[E.id] = 1);
33669
+ }
33670
+ T && yj(e), e._onInit && e._onInit(e);
33671
33671
  }
33672
- e._onUpdate = h, e._initted = (!e._op || e._pt) && !re, u && t <= 0 && L.render(ft, !0, !0);
33672
+ e._onUpdate = h, e._initted = (!e._op || e._pt) && !re, u && t <= 0 && j.render(ft, !0, !0);
33673
33673
  }, ZA = function(e, t, a, o, s, c, l, d) {
33674
33674
  var h = (e._pt && e._ptCache || (e._ptCache = {}))[t], y, p, u, k;
33675
33675
  if (!h)
@@ -33721,62 +33721,62 @@ var Pe = /* @__PURE__ */ function(i) {
33721
33721
  function e(a, o, s, c) {
33722
33722
  var l;
33723
33723
  typeof o == "number" && (s.duration = o, o = s, s = null), l = i.call(this, c ? o : vo(o)) || this;
33724
- var d = l.vars, h = d.duration, y = d.delay, p = d.immediateRender, u = d.stagger, k = d.overwrite, g = d.keyframes, m = d.defaults, f = d.scrollTrigger, x = d.yoyoEase, w = o.parent || Ce, C = (Ge(a) || IL(a) ? $t(a[0]) : "length" in o) ? [a] : gt(a), L, b, N, S, A, j, q, F;
33725
- if (l._targets = C.length ? bb(C) : jo("GSAP target " + a + " not found. https://gsap.com", !dt.nullTargetWarn) || [], l._ptLookup = [], l._overwrite = k, g || u || Vo(h) || Vo(y)) {
33726
- if (o = l.vars, L = l.timeline = new Xe({
33724
+ var d = l.vars, h = d.duration, y = d.delay, p = d.immediateRender, u = d.stagger, k = d.overwrite, g = d.keyframes, m = d.defaults, f = d.scrollTrigger, x = d.yoyoEase, w = o.parent || Ce, L = (Ge(a) || IL(a) ? $t(a[0]) : "length" in o) ? [a] : gt(a), j, b, N, C, I, S, T, E;
33725
+ if (l._targets = L.length ? bb(L) : jo("GSAP target " + a + " not found. https://gsap.com", !dt.nullTargetWarn) || [], l._ptLookup = [], l._overwrite = k, g || u || Vo(h) || Vo(y)) {
33726
+ if (o = l.vars, j = l.timeline = new Xe({
33727
33727
  data: "nested",
33728
33728
  defaults: m || {},
33729
- targets: w && w.data === "nested" ? w.vars.targets : C
33730
- }), L.kill(), L.parent = L._dp = Ft(l), L._start = 0, u || Vo(h) || Vo(y)) {
33731
- if (S = C.length, q = u && WL(u), Tt(u))
33732
- for (A in u)
33733
- ~sj.indexOf(A) && (F || (F = {}), F[A] = u[A]);
33734
- for (b = 0; b < S; b++)
33735
- N = ew(o, cj), N.stagger = 0, x && (N.yoyoEase = x), F && ri(N, F), j = C[b], N.duration = +wo(h, Ft(l), b, j, C), N.delay = (+wo(y, Ft(l), b, j, C) || 0) - l._delay, !u && S === 1 && N.delay && (l._delay = y = N.delay, l._start += y, N.delay = 0), L.to(j, N, q ? q(b, j, C) : 0), L._ease = ne.none;
33736
- L.duration() ? h = y = 0 : l.timeline = 0;
33729
+ targets: w && w.data === "nested" ? w.vars.targets : L
33730
+ }), j.kill(), j.parent = j._dp = Ft(l), j._start = 0, u || Vo(h) || Vo(y)) {
33731
+ if (C = L.length, T = u && WL(u), Tt(u))
33732
+ for (I in u)
33733
+ ~sj.indexOf(I) && (E || (E = {}), E[I] = u[I]);
33734
+ for (b = 0; b < C; b++)
33735
+ N = ew(o, cj), N.stagger = 0, x && (N.yoyoEase = x), E && ri(N, E), S = L[b], N.duration = +wo(h, Ft(l), b, S, L), N.delay = (+wo(y, Ft(l), b, S, L) || 0) - l._delay, !u && C === 1 && N.delay && (l._delay = y = N.delay, l._start += y, N.delay = 0), j.to(S, N, T ? T(b, S, L) : 0), j._ease = ne.none;
33736
+ j.duration() ? h = y = 0 : l.timeline = 0;
33737
33737
  } else if (g) {
33738
- vo(vt(L.vars.defaults, {
33738
+ vo(vt(j.vars.defaults, {
33739
33739
  ease: "none"
33740
- })), L._ease = ti(g.ease || o.ease || "none");
33741
- var D = 0, V, W, K;
33740
+ })), j._ease = ti(g.ease || o.ease || "none");
33741
+ var R = 0, V, Z, K;
33742
33742
  if (Ge(g))
33743
33743
  g.forEach(function(U) {
33744
- return L.to(C, U, ">");
33745
- }), L.duration();
33744
+ return j.to(L, U, ">");
33745
+ }), j.duration();
33746
33746
  else {
33747
33747
  N = {};
33748
- for (A in g)
33749
- A === "ease" || A === "easeEach" || JA(A, g[A], N, g.easeEach);
33750
- for (A in N)
33751
- for (V = N[A].sort(function(U, re) {
33748
+ for (I in g)
33749
+ I === "ease" || I === "easeEach" || JA(I, g[I], N, g.easeEach);
33750
+ for (I in N)
33751
+ for (V = N[I].sort(function(U, re) {
33752
33752
  return U.t - re.t;
33753
- }), D = 0, b = 0; b < V.length; b++)
33754
- W = V[b], K = {
33755
- ease: W.e,
33756
- duration: (W.t - (b ? V[b - 1].t : 0)) / 100 * h
33757
- }, K[A] = W.v, L.to(C, K, D), D += K.duration;
33758
- L.duration() < h && L.to({}, {
33759
- duration: h - L.duration()
33753
+ }), R = 0, b = 0; b < V.length; b++)
33754
+ Z = V[b], K = {
33755
+ ease: Z.e,
33756
+ duration: (Z.t - (b ? V[b - 1].t : 0)) / 100 * h
33757
+ }, K[I] = Z.v, j.to(L, K, R), R += K.duration;
33758
+ j.duration() < h && j.to({}, {
33759
+ duration: h - j.duration()
33760
33760
  });
33761
33761
  }
33762
33762
  }
33763
- h || l.duration(h = L.duration());
33763
+ h || l.duration(h = j.duration());
33764
33764
  } else
33765
33765
  l.timeline = 0;
33766
- return k === !0 && !mb && (sa = Ft(l), Ce.killTweensOf(C), sa = 0), Nt(w, Ft(l), s), o.reversed && l.reverse(), o.paused && l.paused(!0), (p || !h && !g && l._start === Te(w._time) && Ke(p) && SA(Ft(l)) && w.data !== "nested") && (l._tTime = -ke, l.render(Math.max(0, -y) || 0)), f && OL(Ft(l), f), l;
33766
+ return k === !0 && !mb && (sa = Ft(l), Ce.killTweensOf(L), sa = 0), Nt(w, Ft(l), s), o.reversed && l.reverse(), o.paused && l.paused(!0), (p || !h && !g && l._start === Te(w._time) && Ke(p) && SA(Ft(l)) && w.data !== "nested") && (l._tTime = -ke, l.render(Math.max(0, -y) || 0)), f && OL(Ft(l), f), l;
33767
33767
  }
33768
33768
  var t = e.prototype;
33769
33769
  return t.render = function(o, s, c) {
33770
- var l = this._time, d = this._tDur, h = this._dur, y = o < 0, p = o > d - ke && !y ? d : o < ke ? 0 : o, u, k, g, m, f, x, w, C, L;
33770
+ var l = this._time, d = this._tDur, h = this._dur, y = o < 0, p = o > d - ke && !y ? d : o < ke ? 0 : o, u, k, g, m, f, x, w, L, j;
33771
33771
  if (!h)
33772
33772
  AA(this, o, s, c);
33773
33773
  else if (p !== this._tTime || !o || c || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== y) {
33774
- if (u = p, C = this.timeline, this._repeat) {
33774
+ if (u = p, L = this.timeline, this._repeat) {
33775
33775
  if (m = h + this._rDelay, this._repeat < -1 && y)
33776
33776
  return this.totalTime(m * 100 + o, s, c);
33777
- if (u = Te(p % m), p === d ? (g = this._repeat, u = h) : (g = ~~(p / m), g && g === Te(p / m) && (u = h, g--), u > h && (u = h)), x = this._yoyo && g & 1, x && (L = this._yEase, u = h - u), f = Ti(this._tTime, m), u === l && !c && this._initted && g === f)
33777
+ if (u = Te(p % m), p === d ? (g = this._repeat, u = h) : (g = ~~(p / m), g && g === Te(p / m) && (u = h, g--), u > h && (u = h)), x = this._yoyo && g & 1, x && (j = this._yEase, u = h - u), f = Ti(this._tTime, m), u === l && !c && this._initted && g === f)
33778
33778
  return this._tTime = p, this;
33779
- g !== f && (C && this._yEase && rj(C, x), this.vars.repeatRefresh && !x && !this._lock && this._time !== m && this._initted && (this._lock = c = 1, this.render(Te(m * g), !0).invalidate()._lock = 0));
33779
+ g !== f && (L && this._yEase && rj(L, x), this.vars.repeatRefresh && !x && !this._lock && this._time !== m && this._initted && (this._lock = c = 1, this.render(Te(m * g), !0).invalidate()._lock = 0));
33780
33780
  }
33781
33781
  if (!this._initted) {
33782
33782
  if (EL(this, y ? o : u, c, s, p))
@@ -33786,11 +33786,11 @@ var Pe = /* @__PURE__ */ function(i) {
33786
33786
  if (h !== this._dur)
33787
33787
  return this.render(o, s, c);
33788
33788
  }
33789
- if (this._tTime = p, this._time = u, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = w = (L || this._ease)(u / h), this._from && (this.ratio = w = 1 - w), u && !l && !s && !g && (lt(this, "onStart"), this._tTime !== p))
33789
+ if (this._tTime = p, this._time = u, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = w = (j || this._ease)(u / h), this._from && (this.ratio = w = 1 - w), u && !l && !s && !g && (lt(this, "onStart"), this._tTime !== p))
33790
33790
  return this;
33791
33791
  for (k = this._pt; k; )
33792
33792
  k.r(w, k.d), k = k._next;
33793
- C && C.render(o < 0 ? o : C._dur * C._ease(u / this._dur), s, c) || this._startAt && (this._zTime = o), this._onUpdate && !s && (y && Yw(this, o, s, c), lt(this, "onUpdate")), this._repeat && g !== f && this.vars.onRepeat && !s && this.parent && lt(this, "onRepeat"), (p === this._tDur || !p) && this._tTime === p && (y && !this._onUpdate && Yw(this, o, !0, !0), (o || !h) && (p === this._tDur && this._ts > 0 || !p && this._ts < 0) && ma(this, 1), !s && !(y && !l) && (p || l || x) && (lt(this, p === d ? "onComplete" : "onReverseComplete", !0), this._prom && !(p < d && this.timeScale() > 0) && this._prom()));
33793
+ L && L.render(o < 0 ? o : L._dur * L._ease(u / this._dur), s, c) || this._startAt && (this._zTime = o), this._onUpdate && !s && (y && Yw(this, o, s, c), lt(this, "onUpdate")), this._repeat && g !== f && this.vars.onRepeat && !s && this.parent && lt(this, "onRepeat"), (p === this._tDur || !p) && this._tTime === p && (y && !this._onUpdate && Yw(this, o, !0, !0), (o || !h) && (p === this._tDur && this._ts > 0 || !p && this._ts < 0) && ma(this, 1), !s && !(y && !l) && (p || l || x) && (lt(this, p === d ? "onComplete" : "onReverseComplete", !0), this._prom && !(p < d && this.timeScale() > 0) && this._prom()));
33794
33794
  }
33795
33795
  return this;
33796
33796
  }, t.targets = function() {
@@ -34399,10 +34399,10 @@ var iC, ca, qi, Ab, $n, oC, Nb, cN = function() {
34399
34399
  var s = Hi(t, e, 1), c = s && zt(e, s, 1);
34400
34400
  c && c !== a ? (t = s, a = c) : t === "borderColor" && (a = zt(e, "borderTopColor"));
34401
34401
  }
34402
- var l = new et(this._pt, e.style, t, 0, 1, hj), d = 0, h = 0, y, p, u, k, g, m, f, x, w, C, L, b;
34402
+ var l = new et(this._pt, e.style, t, 0, 1, hj), d = 0, h = 0, y, p, u, k, g, m, f, x, w, L, j, b;
34403
34403
  if (l.b = a, l.e = o, a += "", o += "", o === "auto" && (m = e.style[t], e.style[t] = o, o = zt(e, t) || o, m ? e.style[t] = m : ni(e, t)), y = [a, o], tj(y), a = y[0], o = y[1], u = a.match(fi) || [], b = o.match(fi) || [], b.length) {
34404
34404
  for (; p = fi.exec(o); )
34405
- f = p[0], w = o.substring(d, p.index), g ? g = (g + 1) % 5 : (w.substr(-5) === "rgba(" || w.substr(-5) === "hsla(") && (g = 1), f !== (m = u[h++] || "") && (k = parseFloat(m) || 0, L = m.substr((k + "").length), f.charAt(1) === "=" && (f = Ni(k, f) + L), x = parseFloat(f), C = f.substr((x + "").length), d = fi.lastIndex - C.length, C || (C = C || dt.units[t] || L, d === o.length && (o += C, l.e += C)), L !== C && (k = fa(e, t, m, C) || 0), l._pt = {
34405
+ f = p[0], w = o.substring(d, p.index), g ? g = (g + 1) % 5 : (w.substr(-5) === "rgba(" || w.substr(-5) === "hsla(") && (g = 1), f !== (m = u[h++] || "") && (k = parseFloat(m) || 0, j = m.substr((k + "").length), f.charAt(1) === "=" && (f = Ni(k, f) + j), x = parseFloat(f), L = f.substr((x + "").length), d = fi.lastIndex - L.length, L || (L = L || dt.units[t] || j, d === o.length && (o += L, l.e += L)), j !== L && (k = fa(e, t, m, L) || 0), l._pt = {
34406
34406
  _next: l._pt,
34407
34407
  p: w || h === 1 ? w : ",",
34408
34408
  //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.
@@ -34512,14 +34512,14 @@ var iC, ca, qi, Ab, $n, oC, Nb, cN = function() {
34512
34512
  var a = e._gsap || Qn(e), o = e.style, s = yC(e), c, l, d, h;
34513
34513
  return a.svg && e.getAttribute("transform") ? (d = e.transform.baseVal.consolidate().matrix, s = [d.a, d.b, d.c, d.d, d.e, d.f], s.join(",") === "1,0,0,1,0,0" ? qo : s) : (s === qo && !e.offsetParent && e !== qi && !a.svg && (d = o.display, o.display = "block", c = e.parentNode, (!c || !e.offsetParent) && (h = 1, l = e.nextElementSibling, qi.appendChild(e)), s = yC(e), d ? o.display = d : ni(e, "display"), h && (l ? c.insertBefore(e, l) : c ? c.appendChild(e) : qi.removeChild(e))), t && s.length > 6 ? [s[0], s[1], s[4], s[5], s[12], s[13]] : s);
34514
34514
  }, sb = function(e, t, a, o, s, c) {
34515
- var l = e._gsap, d = s || Pb(e, !0), h = l.xOrigin || 0, y = l.yOrigin || 0, p = l.xOffset || 0, u = l.yOffset || 0, k = d[0], g = d[1], m = d[2], f = d[3], x = d[4], w = d[5], C = t.split(" "), L = parseFloat(C[0]) || 0, b = parseFloat(C[1]) || 0, N, S, A, j;
34516
- a ? d !== qo && (S = k * f - g * m) && (A = L * (f / S) + b * (-m / S) + (m * w - f * x) / S, j = L * (-g / S) + b * (k / S) - (k * w - g * x) / S, L = A, b = j) : (N = xj(e), L = N.x + (~C[0].indexOf("%") ? L / 100 * N.width : L), b = N.y + (~(C[1] || C[0]).indexOf("%") ? b / 100 * N.height : b)), o || o !== !1 && l.smooth ? (x = L - h, w = b - y, l.xOffset = p + (x * k + w * m) - x, l.yOffset = u + (x * g + w * f) - w) : l.xOffset = l.yOffset = 0, l.xOrigin = L, l.yOrigin = b, l.smooth = !!o, l.origin = t, l.originIsAbsolute = !!a, e.style[tt] = "0px 0px", c && (la(c, l, "xOrigin", h, L), la(c, l, "yOrigin", y, b), la(c, l, "xOffset", p, l.xOffset), la(c, l, "yOffset", u, l.yOffset)), e.setAttribute("data-svg-origin", L + " " + b);
34515
+ var l = e._gsap, d = s || Pb(e, !0), h = l.xOrigin || 0, y = l.yOrigin || 0, p = l.xOffset || 0, u = l.yOffset || 0, k = d[0], g = d[1], m = d[2], f = d[3], x = d[4], w = d[5], L = t.split(" "), j = parseFloat(L[0]) || 0, b = parseFloat(L[1]) || 0, N, C, I, S;
34516
+ a ? d !== qo && (C = k * f - g * m) && (I = j * (f / C) + b * (-m / C) + (m * w - f * x) / C, S = j * (-g / C) + b * (k / C) - (k * w - g * x) / C, j = I, b = S) : (N = xj(e), j = N.x + (~L[0].indexOf("%") ? j / 100 * N.width : j), b = N.y + (~(L[1] || L[0]).indexOf("%") ? b / 100 * N.height : b)), o || o !== !1 && l.smooth ? (x = j - h, w = b - y, l.xOffset = p + (x * k + w * m) - x, l.yOffset = u + (x * g + w * f) - w) : l.xOffset = l.yOffset = 0, l.xOrigin = j, l.yOrigin = b, l.smooth = !!o, l.origin = t, l.originIsAbsolute = !!a, e.style[tt] = "0px 0px", c && (la(c, l, "xOrigin", h, j), la(c, l, "yOrigin", y, b), la(c, l, "xOffset", p, l.xOffset), la(c, l, "yOffset", u, l.yOffset)), e.setAttribute("data-svg-origin", j + " " + b);
34517
34517
  }, Po = function(e, t) {
34518
34518
  var a = e._gsap || new ij(e);
34519
34519
  if ("x" in a && !t && !a.uncache)
34520
34520
  return a;
34521
- var o = e.style, s = a.scaleX < 0, c = "px", l = "deg", d = getComputedStyle(e), h = zt(e, tt) || "0", y, p, u, k, g, m, f, x, w, C, L, b, N, S, A, j, q, F, D, V, W, K, U, re, J, he, me, le, ze, O, E, X;
34522
- return y = p = u = m = f = x = w = C = L = 0, k = g = 1, a.svg = !!(e.getCTM && vj(e)), d.translate && ((d.translate !== "none" || d.scale !== "none" || d.rotate !== "none") && (o[Le] = (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[Le] !== "none" ? d[Le] : "")), o.scale = o.rotate = o.translate = "none"), S = Pb(e, a.svg), a.svg && (a.uncache ? (J = e.getBBox(), h = a.xOrigin - J.x + "px " + (a.yOrigin - J.y) + "px", re = "") : re = !t && e.getAttribute("data-svg-origin"), sb(e, re || h, !!re || a.originIsAbsolute, a.smooth !== !1, S)), b = a.xOrigin || 0, N = a.yOrigin || 0, S !== qo && (F = S[0], D = S[1], V = S[2], W = S[3], y = K = S[4], p = U = S[5], S.length === 6 ? (k = Math.sqrt(F * F + D * D), g = Math.sqrt(W * W + V * V), m = F || D ? pi(D, F) * Wn : 0, w = V || W ? pi(V, W) * Wn + m : 0, w && (g *= Math.abs(Math.cos(w * Pi))), a.svg && (y -= b - (b * F + N * V), p -= N - (b * D + N * W))) : (X = S[6], O = S[7], me = S[8], le = S[9], ze = S[10], E = S[11], y = S[12], p = S[13], u = S[14], A = pi(X, ze), f = A * Wn, A && (j = Math.cos(-A), q = Math.sin(-A), re = K * j + me * q, J = U * j + le * q, he = X * j + ze * q, me = K * -q + me * j, le = U * -q + le * j, ze = X * -q + ze * j, E = O * -q + E * j, K = re, U = J, X = he), A = pi(-V, ze), x = A * Wn, A && (j = Math.cos(-A), q = Math.sin(-A), re = F * j - me * q, J = D * j - le * q, he = V * j - ze * q, E = W * q + E * j, F = re, D = J, V = he), A = pi(D, F), m = A * Wn, A && (j = Math.cos(A), q = Math.sin(A), re = F * j + D * q, J = K * j + U * q, D = D * j - F * q, U = U * j - K * q, F = re, K = J), f && Math.abs(f) + Math.abs(m) > 359.9 && (f = m = 0, x = 180 - x), k = Ae(Math.sqrt(F * F + D * D + V * V)), g = Ae(Math.sqrt(U * U + X * X)), A = pi(K, U), w = Math.abs(A) > 2e-4 ? A * Wn : 0, L = E ? 1 / (E < 0 ? -E : E) : 0), a.svg && (re = e.getAttribute("transform"), a.forceCSS = e.setAttribute("transform", "") || !wj(zt(e, Le)), re && e.setAttribute("transform", re))), Math.abs(w) > 90 && Math.abs(w) < 270 && (s ? (k *= -1, w += m <= 0 ? 180 : -180, m += m <= 0 ? 180 : -180) : (g *= -1, w += w <= 0 ? 180 : -180)), t = t || a.uncache, a.x = y - ((a.xPercent = y && (!t && a.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-y) ? -50 : 0))) ? e.offsetWidth * a.xPercent / 100 : 0) + c, a.y = p - ((a.yPercent = p && (!t && a.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * a.yPercent / 100 : 0) + c, a.z = u + c, a.scaleX = Ae(k), a.scaleY = Ae(g), a.rotation = Ae(m) + l, a.rotationX = Ae(f) + l, a.rotationY = Ae(x) + l, a.skewX = w + l, a.skewY = C + l, a.transformPerspective = L + c, (a.zOrigin = parseFloat(h.split(" ")[2]) || !t && a.zOrigin || 0) && (o[tt] = nw(h)), a.xOffset = a.yOffset = 0, a.force3D = dt.force3D, a.renderTransform = a.svg ? SN : gj ? bj : jN, a.uncache = 0, a;
34521
+ var o = e.style, s = a.scaleX < 0, c = "px", l = "deg", d = getComputedStyle(e), h = zt(e, tt) || "0", y, p, u, k, g, m, f, x, w, L, j, b, N, C, I, S, T, E, R, V, Z, K, U, re, J, he, me, le, ze, B, O, X;
34522
+ return y = p = u = m = f = x = w = L = j = 0, k = g = 1, a.svg = !!(e.getCTM && vj(e)), d.translate && ((d.translate !== "none" || d.scale !== "none" || d.rotate !== "none") && (o[Le] = (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[Le] !== "none" ? d[Le] : "")), o.scale = o.rotate = o.translate = "none"), C = Pb(e, a.svg), a.svg && (a.uncache ? (J = e.getBBox(), h = a.xOrigin - J.x + "px " + (a.yOrigin - J.y) + "px", re = "") : re = !t && e.getAttribute("data-svg-origin"), sb(e, re || h, !!re || a.originIsAbsolute, a.smooth !== !1, C)), b = a.xOrigin || 0, N = a.yOrigin || 0, C !== qo && (E = C[0], R = C[1], V = C[2], Z = C[3], y = K = C[4], p = U = C[5], C.length === 6 ? (k = Math.sqrt(E * E + R * R), g = Math.sqrt(Z * Z + V * V), m = E || R ? pi(R, E) * Wn : 0, w = V || Z ? pi(V, Z) * Wn + m : 0, w && (g *= Math.abs(Math.cos(w * Pi))), a.svg && (y -= b - (b * E + N * V), p -= N - (b * R + N * Z))) : (X = C[6], B = C[7], me = C[8], le = C[9], ze = C[10], O = C[11], y = C[12], p = C[13], u = C[14], I = pi(X, ze), f = I * Wn, I && (S = Math.cos(-I), T = Math.sin(-I), re = K * S + me * T, J = U * S + le * T, he = X * S + ze * T, me = K * -T + me * S, le = U * -T + le * S, ze = X * -T + ze * S, O = B * -T + O * S, K = re, U = J, X = he), I = pi(-V, ze), x = I * Wn, I && (S = Math.cos(-I), T = Math.sin(-I), re = E * S - me * T, J = R * S - le * T, he = V * S - ze * T, O = Z * T + O * S, E = re, R = J, V = he), I = pi(R, E), m = I * Wn, I && (S = Math.cos(I), T = Math.sin(I), re = E * S + R * T, J = K * S + U * T, R = R * S - E * T, U = U * S - K * T, E = re, K = J), f && Math.abs(f) + Math.abs(m) > 359.9 && (f = m = 0, x = 180 - x), k = Ae(Math.sqrt(E * E + R * R + V * V)), g = Ae(Math.sqrt(U * U + X * X)), I = pi(K, U), w = Math.abs(I) > 2e-4 ? I * Wn : 0, j = O ? 1 / (O < 0 ? -O : O) : 0), a.svg && (re = e.getAttribute("transform"), a.forceCSS = e.setAttribute("transform", "") || !wj(zt(e, Le)), re && e.setAttribute("transform", re))), Math.abs(w) > 90 && Math.abs(w) < 270 && (s ? (k *= -1, w += m <= 0 ? 180 : -180, m += m <= 0 ? 180 : -180) : (g *= -1, w += w <= 0 ? 180 : -180)), t = t || a.uncache, a.x = y - ((a.xPercent = y && (!t && a.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-y) ? -50 : 0))) ? e.offsetWidth * a.xPercent / 100 : 0) + c, a.y = p - ((a.yPercent = p && (!t && a.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * a.yPercent / 100 : 0) + c, a.z = u + c, a.scaleX = Ae(k), a.scaleY = Ae(g), a.rotation = Ae(m) + l, a.rotationX = Ae(f) + l, a.rotationY = Ae(x) + l, a.skewX = w + l, a.skewY = L + l, a.transformPerspective = j + c, (a.zOrigin = parseFloat(h.split(" ")[2]) || !t && a.zOrigin || 0) && (o[tt] = nw(h)), a.xOffset = a.yOffset = 0, a.force3D = dt.force3D, a.renderTransform = a.svg ? SN : gj ? bj : jN, a.uncache = 0, a;
34523
34523
  }, nw = function(e) {
34524
34524
  return (e = e.split(" "))[0] + " " + e[1];
34525
34525
  }, Sw = function(e, t, a) {
@@ -34528,15 +34528,15 @@ var iC, ca, qi, Ab, $n, oC, Nb, cN = function() {
34528
34528
  }, jN = function(e, t) {
34529
34529
  t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, bj(e, t);
34530
34530
  }, ba = "0deg", Zi = "0px", Ca = ") ", bj = function(e, t) {
34531
- var a = t || this, o = a.xPercent, s = a.yPercent, c = a.x, l = a.y, d = a.z, h = a.rotation, y = a.rotationY, p = a.rotationX, u = a.skewX, k = a.skewY, g = a.scaleX, m = a.scaleY, f = a.transformPerspective, x = a.force3D, w = a.target, C = a.zOrigin, L = "", b = x === "auto" && e && e !== 1 || x === !0;
34532
- if (C && (p !== ba || y !== ba)) {
34533
- var N = parseFloat(y) * Pi, S = Math.sin(N), A = Math.cos(N), j;
34534
- N = parseFloat(p) * Pi, j = Math.cos(N), c = Sw(w, c, S * j * -C), l = Sw(w, l, -Math.sin(N) * -C), d = Sw(w, d, A * j * -C + C);
34531
+ var a = t || this, o = a.xPercent, s = a.yPercent, c = a.x, l = a.y, d = a.z, h = a.rotation, y = a.rotationY, p = a.rotationX, u = a.skewX, k = a.skewY, g = a.scaleX, m = a.scaleY, f = a.transformPerspective, x = a.force3D, w = a.target, L = a.zOrigin, j = "", b = x === "auto" && e && e !== 1 || x === !0;
34532
+ if (L && (p !== ba || y !== ba)) {
34533
+ var N = parseFloat(y) * Pi, C = Math.sin(N), I = Math.cos(N), S;
34534
+ N = parseFloat(p) * Pi, S = Math.cos(N), c = Sw(w, c, C * S * -L), l = Sw(w, l, -Math.sin(N) * -L), d = Sw(w, d, I * S * -L + L);
34535
34535
  }
34536
- f !== Zi && (L += "perspective(" + f + Ca), (o || s) && (L += "translate(" + o + "%, " + s + "%) "), (b || c !== Zi || l !== Zi || d !== Zi) && (L += d !== Zi || b ? "translate3d(" + c + ", " + l + ", " + d + ") " : "translate(" + c + ", " + l + Ca), h !== ba && (L += "rotate(" + h + Ca), y !== ba && (L += "rotateY(" + y + Ca), p !== ba && (L += "rotateX(" + p + Ca), (u !== ba || k !== ba) && (L += "skew(" + u + ", " + k + Ca), (g !== 1 || m !== 1) && (L += "scale(" + g + ", " + m + Ca), w.style[Le] = L || "translate(0, 0)";
34536
+ f !== Zi && (j += "perspective(" + f + Ca), (o || s) && (j += "translate(" + o + "%, " + s + "%) "), (b || c !== Zi || l !== Zi || d !== Zi) && (j += d !== Zi || b ? "translate3d(" + c + ", " + l + ", " + d + ") " : "translate(" + c + ", " + l + Ca), h !== ba && (j += "rotate(" + h + Ca), y !== ba && (j += "rotateY(" + y + Ca), p !== ba && (j += "rotateX(" + p + Ca), (u !== ba || k !== ba) && (j += "skew(" + u + ", " + k + Ca), (g !== 1 || m !== 1) && (j += "scale(" + g + ", " + m + Ca), w.style[Le] = j || "translate(0, 0)";
34537
34537
  }, SN = function(e, t) {
34538
- var a = t || this, o = a.xPercent, s = a.yPercent, c = a.x, l = a.y, d = a.rotation, h = a.skewX, y = a.skewY, p = a.scaleX, u = a.scaleY, k = a.target, g = a.xOrigin, m = a.yOrigin, f = a.xOffset, x = a.yOffset, w = a.forceCSS, C = parseFloat(c), L = parseFloat(l), b, N, S, A, j;
34539
- d = parseFloat(d), h = parseFloat(h), y = parseFloat(y), y && (y = parseFloat(y), h += y, d += y), d || h ? (d *= Pi, h *= Pi, b = Math.cos(d) * p, N = Math.sin(d) * p, S = Math.sin(d - h) * -u, A = Math.cos(d - h) * u, h && (y *= Pi, j = Math.tan(h - y), j = Math.sqrt(1 + j * j), S *= j, A *= j, y && (j = Math.tan(y), j = Math.sqrt(1 + j * j), b *= j, N *= j)), b = Ae(b), N = Ae(N), S = Ae(S), A = Ae(A)) : (b = p, A = u, N = S = 0), (C && !~(c + "").indexOf("px") || L && !~(l + "").indexOf("px")) && (C = fa(k, "x", c, "px"), L = fa(k, "y", l, "px")), (g || m || f || x) && (C = Ae(C + g - (g * b + m * S) + f), L = Ae(L + m - (g * N + m * A) + x)), (o || s) && (j = k.getBBox(), C = Ae(C + o / 100 * j.width), L = Ae(L + s / 100 * j.height)), j = "matrix(" + b + "," + N + "," + S + "," + A + "," + C + "," + L + ")", k.setAttribute("transform", j), w && (k.style[Le] = j);
34538
+ var a = t || this, o = a.xPercent, s = a.yPercent, c = a.x, l = a.y, d = a.rotation, h = a.skewX, y = a.skewY, p = a.scaleX, u = a.scaleY, k = a.target, g = a.xOrigin, m = a.yOrigin, f = a.xOffset, x = a.yOffset, w = a.forceCSS, L = parseFloat(c), j = parseFloat(l), b, N, C, I, S;
34539
+ d = parseFloat(d), h = parseFloat(h), y = parseFloat(y), y && (y = parseFloat(y), h += y, d += y), d || h ? (d *= Pi, h *= Pi, b = Math.cos(d) * p, N = Math.sin(d) * p, C = Math.sin(d - h) * -u, I = Math.cos(d - h) * u, h && (y *= Pi, S = Math.tan(h - y), S = Math.sqrt(1 + S * S), C *= S, I *= S, y && (S = Math.tan(y), S = Math.sqrt(1 + S * S), b *= S, N *= S)), b = Ae(b), N = Ae(N), C = Ae(C), I = Ae(I)) : (b = p, I = u, N = C = 0), (L && !~(c + "").indexOf("px") || j && !~(l + "").indexOf("px")) && (L = fa(k, "x", c, "px"), j = fa(k, "y", l, "px")), (g || m || f || x) && (L = Ae(L + g - (g * b + m * C) + f), j = Ae(j + m - (g * N + m * I) + x)), (o || s) && (S = k.getBBox(), L = Ae(L + o / 100 * S.width), j = Ae(j + s / 100 * S.height)), S = "matrix(" + b + "," + N + "," + C + "," + I + "," + L + "," + j + ")", k.setAttribute("transform", S), w && (k.style[Le] = S);
34540
34540
  }, IN = function(e, t, a, o, s) {
34541
34541
  var c = 360, l = De(s), d = parseFloat(s) * (l && ~s.indexOf("rad") ? Wn : 1), h = d - o, y = o + h + "deg", p, u;
34542
34542
  return l && (p = s.split("_")[1], p === "short" && (h %= c, h !== h % (c / 2) && (h += h < 0 ? c : -c)), p === "cw" && h < 0 ? h = (h + c * sC) % c - ~~(h / c) * c : p === "ccw" && h > 0 && (h = (h - c * sC) % c - ~~(h / c) * c)), e._pt = u = new et(e._pt, t, a, o, h, hN), u.e = y, u.u = "deg", e._props.push(a), u;
@@ -34573,20 +34573,20 @@ var Cj = {
34573
34573
  return e.style && e.nodeType;
34574
34574
  },
34575
34575
  init: function(e, t, a, o, s) {
34576
- var c = this._props, l = e.style, d = a.vars.startAt, h, y, p, u, k, g, m, f, x, w, C, L, b, N, S, A;
34577
- Ab || ob(), this.styles = this.styles || fj(e), A = this.styles.props, this.tween = a;
34576
+ var c = this._props, l = e.style, d = a.vars.startAt, h, y, p, u, k, g, m, f, x, w, L, j, b, N, C, I;
34577
+ Ab || ob(), this.styles = this.styles || fj(e), I = this.styles.props, this.tween = a;
34578
34578
  for (m in t)
34579
34579
  if (m !== "autoRound" && (y = t[m], !(ot[m] && oj(m, t, a, o, e, s)))) {
34580
34580
  if (k = typeof y, g = rw[m], k === "function" && (y = y.call(a, o, e, s), k = typeof y), k === "string" && ~y.indexOf("random(") && (y = Io(y)), g)
34581
- g(this, e, m, y, a) && (S = 1);
34581
+ g(this, e, m, y, a) && (C = 1);
34582
34582
  else if (m.substr(0, 2) === "--")
34583
- h = (getComputedStyle(e).getPropertyValue(m) + "").trim(), y += "", ka.lastIndex = 0, ka.test(h) || (f = Ee(h), x = Ee(y)), x ? f !== x && (h = fa(e, m, h, x) + x) : f && (y += f), this.add(l, "setProperty", h, y, o, s, 0, 0, m), c.push(m), A.push(m, 0, l[m]);
34583
+ h = (getComputedStyle(e).getPropertyValue(m) + "").trim(), y += "", ka.lastIndex = 0, ka.test(h) || (f = Ee(h), x = Ee(y)), x ? f !== x && (h = fa(e, m, h, x) + x) : f && (y += f), this.add(l, "setProperty", h, y, o, s, 0, 0, m), c.push(m), I.push(m, 0, l[m]);
34584
34584
  else if (k !== "undefined") {
34585
- if (d && m in d ? (h = typeof d[m] == "function" ? d[m].call(a, o, e, s) : d[m], De(h) && ~h.indexOf("random(") && (h = Io(h)), Ee(h + "") || h === "auto" || (h += dt.units[m] || Ee(Ot(e, m)) || ""), (h + "").charAt(1) === "=" && (h = Ot(e, m))) : h = Ot(e, m), u = parseFloat(h), w = k === "string" && y.charAt(1) === "=" && y.substr(0, 2), w && (y = y.substr(2)), p = parseFloat(y), m in Pt && (m === "autoAlpha" && (u === 1 && Ot(e, "visibility") === "hidden" && p && (u = 0), A.push("visibility", 0, l.visibility), la(this, l, "visibility", u ? "inherit" : "hidden", p ? "inherit" : "hidden", !p)), m !== "scale" && m !== "transform" && (m = Pt[m], ~m.indexOf(",") && (m = m.split(",")[0]))), C = m in Zt, C) {
34586
- if (this.styles.save(m), L || (b = e._gsap, b.renderTransform && !t.parseTransform || Po(e, t.parseTransform), N = t.smoothOrigin !== !1 && b.smooth, L = this._pt = new et(this._pt, l, Le, 0, 1, b.renderTransform, b, 0, -1), L.dep = 1), m === "scale")
34585
+ if (d && m in d ? (h = typeof d[m] == "function" ? d[m].call(a, o, e, s) : d[m], De(h) && ~h.indexOf("random(") && (h = Io(h)), Ee(h + "") || h === "auto" || (h += dt.units[m] || Ee(Ot(e, m)) || ""), (h + "").charAt(1) === "=" && (h = Ot(e, m))) : h = Ot(e, m), u = parseFloat(h), w = k === "string" && y.charAt(1) === "=" && y.substr(0, 2), w && (y = y.substr(2)), p = parseFloat(y), m in Pt && (m === "autoAlpha" && (u === 1 && Ot(e, "visibility") === "hidden" && p && (u = 0), I.push("visibility", 0, l.visibility), la(this, l, "visibility", u ? "inherit" : "hidden", p ? "inherit" : "hidden", !p)), m !== "scale" && m !== "transform" && (m = Pt[m], ~m.indexOf(",") && (m = m.split(",")[0]))), L = m in Zt, L) {
34586
+ if (this.styles.save(m), j || (b = e._gsap, b.renderTransform && !t.parseTransform || Po(e, t.parseTransform), N = t.smoothOrigin !== !1 && b.smooth, j = this._pt = new et(this._pt, l, Le, 0, 1, b.renderTransform, b, 0, -1), j.dep = 1), m === "scale")
34587
34587
  this._pt = new et(this._pt, b, "scaleY", b.scaleY, (w ? Ni(b.scaleY, w + p) : p) - b.scaleY || 0, nb), this._pt.u = 0, c.push("scaleY", m), m += "X";
34588
34588
  else if (m === "transformOrigin") {
34589
- A.push(tt, 0, l[tt]), y = CN(y), b.svg ? sb(e, y, 0, N, 0, this) : (x = parseFloat(y.split(" ")[2]) || 0, x !== b.zOrigin && la(this, b, "zOrigin", b.zOrigin, x), la(this, l, m, nw(h), nw(y)));
34589
+ I.push(tt, 0, l[tt]), y = CN(y), b.svg ? sb(e, y, 0, N, 0, this) : (x = parseFloat(y.split(" ")[2]) || 0, x !== b.zOrigin && la(this, b, "zOrigin", b.zOrigin, x), la(this, l, m, nw(h), nw(y)));
34590
34590
  continue;
34591
34591
  } else if (m === "svgOrigin") {
34592
34592
  sb(e, y, 1, N, 0, this);
@@ -34605,8 +34605,8 @@ var Cj = {
34605
34605
  continue;
34606
34606
  }
34607
34607
  } else m in l || (m = Hi(m) || m);
34608
- if (C || (p || p === 0) && (u || u === 0) && !dN.test(y) && m in l)
34609
- f = (h + "").substr((u + "").length), p || (p = 0), x = Ee(y) || (m in dt.units ? dt.units[m] : f), f !== x && (u = fa(e, m, h, x)), this._pt = new et(this._pt, C ? b : l, m, u, (w ? Ni(u, w + p) : p) - u, !C && (x === "px" || m === "zIndex") && t.autoRound !== !1 ? pN : nb), this._pt.u = x || 0, f !== x && x !== "%" && (this._pt.b = h, this._pt.r = yN);
34608
+ if (L || (p || p === 0) && (u || u === 0) && !dN.test(y) && m in l)
34609
+ f = (h + "").substr((u + "").length), p || (p = 0), x = Ee(y) || (m in dt.units ? dt.units[m] : f), f !== x && (u = fa(e, m, h, x)), this._pt = new et(this._pt, L ? b : l, m, u, (w ? Ni(u, w + p) : p) - u, !L && (x === "px" || m === "zIndex") && t.autoRound !== !1 ? pN : nb), this._pt.u = x || 0, f !== x && x !== "%" && (this._pt.b = h, this._pt.r = yN);
34610
34610
  else if (m in l)
34611
34611
  bN.call(this, e, m, h, w ? w + y : y);
34612
34612
  else if (m in e)
@@ -34615,10 +34615,10 @@ var Cj = {
34615
34615
  vb(m, y);
34616
34616
  continue;
34617
34617
  }
34618
- C || (m in l ? A.push(m, 0, l[m]) : A.push(m, 1, h || e[m])), c.push(m);
34618
+ L || (m in l ? I.push(m, 0, l[m]) : I.push(m, 1, h || e[m])), c.push(m);
34619
34619
  }
34620
34620
  }
34621
- S && yj(this);
34621
+ C && yj(this);
34622
34622
  },
34623
34623
  render: function(e, t) {
34624
34624
  if (t.tween._time || !Nb())
@@ -34766,7 +34766,7 @@ function qN() {
34766
34766
  }
34767
34767
  const jj = PS(void 0);
34768
34768
  function PN({ children: i }) {
34769
- const [e, t] = I([]), [a, o] = I(!1), s = Ho((y) => {
34769
+ const [e, t] = A([]), [a, o] = A(!1), s = Ho((y) => {
34770
34770
  t((p) => p.find((k) => k.id === y.id) ? p.map(
34771
34771
  (k) => k.id === y.id ? { ...k, quantity: k.quantity + 1 } : k
34772
34772
  ) : [...p, { ...y, quantity: 1 }]), o(!0);
@@ -34858,7 +34858,7 @@ function _N({ courses: i, title: e, description: t }) {
34858
34858
  ] }) });
34859
34859
  }
34860
34860
  function zN({ destinations: i, title: e, description: t }) {
34861
- const [a, o] = I(0), [s, c] = I(!0), l = () => typeof window < "u" ? window.innerWidth < 640 ? 1 : window.innerWidth < 1024 ? 2 : 4 : 4, [d, h] = I(l());
34861
+ const [a, o] = A(0), [s, c] = A(!0), l = () => typeof window < "u" ? window.innerWidth < 640 ? 1 : window.innerWidth < 1024 ? 2 : 4 : 4, [d, h] = A(l());
34862
34862
  te(() => {
34863
34863
  const k = () => {
34864
34864
  h(l());
@@ -35137,7 +35137,7 @@ function VN({ features: i, title: e, description: t }) {
35137
35137
  ] }) });
35138
35138
  }
35139
35139
  function BN({ faqs: i, title: e, description: t }) {
35140
- const [a, o] = I(null), s = (c) => {
35140
+ const [a, o] = A(null), s = (c) => {
35141
35141
  o((l) => l === c ? null : c);
35142
35142
  };
35143
35143
  return /* @__PURE__ */ n.jsx("section", { className: "py-20 bg-white", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-4xl mx-auto px-4 sm:px-6 lg:px-8", children: [
@@ -35168,7 +35168,7 @@ function BN({ faqs: i, title: e, description: t }) {
35168
35168
  ] }) });
35169
35169
  }
35170
35170
  function ON({ images: i, autoPlayInterval: e = 5e3 }) {
35171
- const [t, a] = I(0);
35171
+ const [t, a] = A(0);
35172
35172
  te(() => {
35173
35173
  const l = setInterval(() => {
35174
35174
  a((d) => (d + 1) % i.length);
@@ -35238,7 +35238,7 @@ function EN({ images: i, title: e, description: t, autoPlayInterval: a = 5e3 })
35238
35238
  ] }) });
35239
35239
  }
35240
35240
  function UN({ initialMessages: i }) {
35241
- const [e, t] = I(!1), [a, o] = I(i), [s, c] = I(""), l = (d) => {
35241
+ const [e, t] = A(!1), [a, o] = A(i), [s, c] = A(""), l = (d) => {
35242
35242
  if (d.preventDefault(), !s.trim()) return;
35243
35243
  const h = {
35244
35244
  text: s,
@@ -35412,7 +35412,7 @@ function GN() {
35412
35412
  );
35413
35413
  }
35414
35414
  function WN({ services: i, title: e, description: t, showBtn: a = "Show", hideBtn: o = "Hide", featuresBtn: s = "Features" }) {
35415
- const [c, l] = I(null), d = (h) => {
35415
+ const [c, l] = A(null), d = (h) => {
35416
35416
  l(c === h ? null : h);
35417
35417
  };
35418
35418
  return /* @__PURE__ */ n.jsx("section", { id: "services", className: "py-20 bg-gray-50", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
@@ -36030,7 +36030,7 @@ function tz({
36030
36030
  viewAllHref: o,
36031
36031
  apiUrl: s
36032
36032
  }) {
36033
- const [c, l] = I(t || []), [d, h] = I(!t), [y, p] = I(null);
36033
+ const [c, l] = A(t || []), [d, h] = A(!t), [y, p] = A(null);
36034
36034
  te(() => {
36035
36035
  if (t) return;
36036
36036
  (async () => {
@@ -36240,7 +36240,7 @@ function cq({ title: i, values: e }) {
36240
36240
  ] }) });
36241
36241
  }
36242
36242
  function lq({ title: i, testimonial: e, stats: t, partnerLogos: a }) {
36243
- const [o, s] = I(0), c = [
36243
+ const [o, s] = A(0), c = [
36244
36244
  {
36245
36245
  id: 1,
36246
36246
  name: "Sarah Mitchell",
@@ -36381,7 +36381,7 @@ function dq({
36381
36381
  isSubscribed: s = !1,
36382
36382
  email: c = null
36383
36383
  }) {
36384
- const [l, d] = I(c ?? ""), [h, y] = I(!1), [p, u] = I(!1);
36384
+ const [l, d] = A(c ?? ""), [h, y] = A(!1), [p, u] = A(!1);
36385
36385
  te(() => {
36386
36386
  if (s) {
36387
36387
  u(!0), c && d(c);
@@ -36466,60 +36466,60 @@ function hq({
36466
36466
  mockMode: d = !1,
36467
36467
  searchPageUrl: h = "#"
36468
36468
  }) {
36469
- const [y, p] = I(""), [u, k] = I(""), [g, m] = I([]), [f, x] = I(!1), w = "Browse 3,500+ iGaming Jobs", C = [
36469
+ const [y, p] = A(""), [u, k] = A(""), [g, m] = A([]), [f, x] = A(!1), w = "Browse 3,500+ iGaming Jobs", L = [
36470
36470
  { id: "malta", name: "Malta" },
36471
36471
  { id: "remote", name: "Remote" },
36472
36472
  { id: "uk", name: "United Kingdom" },
36473
36473
  { id: "gibraltar", name: "Gibraltar" }
36474
- ], L = [
36474
+ ], j = [
36475
36475
  { label: "CRM Manager", href: "/jobs?q=crm-manager" },
36476
36476
  { label: "Game Developer", href: "/jobs?q=game-developer" },
36477
36477
  { label: "Compliance Specialist", href: "/jobs?q=compliance-specialist" }
36478
36478
  ];
36479
36479
  te(() => {
36480
- const j = new URLSearchParams(window.location.search), q = j.get("q") || "", F = j.get("location") || "";
36481
- p(q), k(F);
36480
+ const S = new URLSearchParams(window.location.search), T = S.get("q") || "", E = S.get("location") || "";
36481
+ p(T), k(E);
36482
36482
  }, []), te(() => {
36483
36483
  if (y.length < 3) {
36484
36484
  m([]);
36485
36485
  return;
36486
36486
  }
36487
- const j = setTimeout(() => {
36487
+ const S = setTimeout(() => {
36488
36488
  b(y);
36489
36489
  }, 300);
36490
- return () => clearTimeout(j);
36490
+ return () => clearTimeout(S);
36491
36491
  }, [y]);
36492
- const b = async (j) => {
36492
+ const b = async (S) => {
36493
36493
  if (!o || d) {
36494
36494
  m([
36495
- `${j} Developer`,
36496
- `${j} Manager`,
36497
- `${j} Specialist`,
36498
- `${j} Coordinator`,
36499
- `${j} Agent`
36495
+ `${S} Developer`,
36496
+ `${S} Manager`,
36497
+ `${S} Specialist`,
36498
+ `${S} Coordinator`,
36499
+ `${S} Agent`
36500
36500
  ]);
36501
36501
  return;
36502
36502
  }
36503
36503
  try {
36504
36504
  x(!0);
36505
- const q = await fetch(`${o}/suggestions?q=${encodeURIComponent(j)}`);
36506
- if (!q.ok) throw new Error("Failed to fetch suggestions");
36507
- const F = await q.json();
36508
- m(F.suggestions || []);
36509
- } catch (q) {
36510
- console.error("Error fetching suggestions:", q), m([]);
36505
+ const T = await fetch(`${o}/suggestions?q=${encodeURIComponent(S)}`);
36506
+ if (!T.ok) throw new Error("Failed to fetch suggestions");
36507
+ const E = await T.json();
36508
+ m(E.suggestions || []);
36509
+ } catch (T) {
36510
+ console.error("Error fetching suggestions:", T), m([]);
36511
36511
  } finally {
36512
36512
  x(!1);
36513
36513
  }
36514
- }, N = (j) => p(j), S = (j) => {
36515
- j.key === "Enter" && A();
36516
- }, A = () => {
36514
+ }, N = (S) => p(S), C = (S) => {
36515
+ S.key === "Enter" && I();
36516
+ }, I = () => {
36517
36517
  if (d) {
36518
36518
  console.log(`Mock Search - Term: ${y}, Location: ${u}`);
36519
36519
  return;
36520
36520
  }
36521
- const j = new URLSearchParams();
36522
- y && j.set("q", y), u && j.set("location", u), window.location.href = `/jobs?${j.toString()}`;
36521
+ const S = new URLSearchParams();
36522
+ y && S.set("q", y), u && S.set("location", u), window.location.href = `/jobs?${S.toString()}`;
36523
36523
  };
36524
36524
  return /* @__PURE__ */ n.jsxs("section", { className: `py-12 bg-gray-100 ${s}`, children: [
36525
36525
  /* @__PURE__ */ n.jsxs("div", { className: "text-center mb-12 animate-fade-in", children: [
@@ -36537,12 +36537,12 @@ function hq({
36537
36537
  placeholder: "Search by role, company, or keyword",
36538
36538
  className: "w-full pl-10 border-gray-300",
36539
36539
  value: y,
36540
- onChange: (j) => N(j.target.value),
36541
- onKeyDown: S,
36540
+ onChange: (S) => N(S.target.value),
36541
+ onKeyDown: C,
36542
36542
  list: "job-suggestions"
36543
36543
  }
36544
36544
  ),
36545
- /* @__PURE__ */ n.jsx("datalist", { id: "job-suggestions", children: g.map((j, q) => /* @__PURE__ */ n.jsx("option", { value: j }, q)) }),
36545
+ /* @__PURE__ */ n.jsx("datalist", { id: "job-suggestions", children: g.map((S, T) => /* @__PURE__ */ n.jsx("option", { value: S }, T)) }),
36546
36546
  y && /* @__PURE__ */ n.jsx(
36547
36547
  "button",
36548
36548
  {
@@ -36558,10 +36558,10 @@ function hq({
36558
36558
  {
36559
36559
  className: "w-full h-10 px-3 border border-gray-300 rounded-md",
36560
36560
  value: u,
36561
- onChange: (j) => k(j.target.value),
36561
+ onChange: (S) => k(S.target.value),
36562
36562
  children: [
36563
36563
  /* @__PURE__ */ n.jsx("option", { value: "", children: "All Locations" }),
36564
- (e || C).map((j) => /* @__PURE__ */ n.jsx("option", { value: j.id, children: j.name }, j.id))
36564
+ (e || L).map((S) => /* @__PURE__ */ n.jsx("option", { value: S.id, children: S.name }, S.id))
36565
36565
  ]
36566
36566
  }
36567
36567
  ) }),
@@ -36569,7 +36569,7 @@ function hq({
36569
36569
  Ye,
36570
36570
  {
36571
36571
  className: "bg-yellow-500 hover:bg-yellow-400 text-black font-medium",
36572
- onClick: A,
36572
+ onClick: I,
36573
36573
  disabled: f,
36574
36574
  children: [
36575
36575
  /* @__PURE__ */ n.jsx(xt, { size: 18 }),
@@ -36578,23 +36578,23 @@ function hq({
36578
36578
  }
36579
36579
  )
36580
36580
  ] }),
36581
- c && (t || L).length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "mt-4 flex flex-wrap gap-2 items-center", children: [
36581
+ c && (t || j).length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "mt-4 flex flex-wrap gap-2 items-center", children: [
36582
36582
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground font-medium", children: "Trending:" }),
36583
- (t || L).map((j, q) => /* @__PURE__ */ n.jsx(
36583
+ (t || j).map((S, T) => /* @__PURE__ */ n.jsx(
36584
36584
  "a",
36585
36585
  {
36586
- href: j.href,
36586
+ href: S.href,
36587
36587
  className: "inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",
36588
- children: j.label
36588
+ children: S.label
36589
36589
  },
36590
- q
36590
+ T
36591
36591
  ))
36592
36592
  ] })
36593
36593
  ] }) })
36594
36594
  ] });
36595
36595
  }
36596
36596
  function yq({ logo: i, navItems: e }) {
36597
- const [t, a] = I(!1);
36597
+ const [t, a] = A(!1);
36598
36598
  return /* @__PURE__ */ n.jsxs("header", { className: "bg-[#0f1219] text-white py-4", children: [
36599
36599
  /* @__PURE__ */ n.jsxs("div", { className: "container mx-auto px-4 flex justify-between items-center", children: [
36600
36600
  /* @__PURE__ */ n.jsxs("a", { href: "/", className: "flex items-center gap-2", children: [
@@ -36661,7 +36661,7 @@ function pq({
36661
36661
  ] }) });
36662
36662
  }
36663
36663
  const uq = () => {
36664
- const [i, e] = I(null), t = [
36664
+ const [i, e] = A(null), t = [
36665
36665
  { id: 1, name: "BetTech Gaming", logo: "BG", description: "Leading casino platform provider" },
36666
36666
  { id: 2, name: "SportsBet Pro", logo: "SP", description: "Premier sportsbook solutions" },
36667
36667
  { id: 3, name: "Casino Solutions", logo: "CS", description: "Innovative gaming technology" },
@@ -36724,7 +36724,7 @@ const uq = () => {
36724
36724
  ] }) });
36725
36725
  };
36726
36726
  function kq() {
36727
- const [i, e] = I(null);
36727
+ const [i, e] = A(null);
36728
36728
  return te(() => {
36729
36729
  try {
36730
36730
  const t = localStorage.getItem("email");
@@ -36915,7 +36915,7 @@ function Ij({
36915
36915
  buttonText: a = "Subscribe",
36916
36916
  api_url: o = "http://localhost:5147"
36917
36917
  }) {
36918
- const [s, c] = I(""), [l, d] = I(!1), [h, y] = I(!1);
36918
+ const [s, c] = A(""), [l, d] = A(!1), [h, y] = A(!1);
36919
36919
  te(() => {
36920
36920
  const u = localStorage.getItem("email");
36921
36921
  u && (y(!0), c(u));
@@ -37046,7 +37046,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37046
37046
  placeholder: a,
37047
37047
  className: o = ""
37048
37048
  }) => {
37049
- const [s, c] = I(!1), [l, d] = I(""), h = _o(null), y = i.filter(
37049
+ const [s, c] = A(!1), [l, d] = A(""), h = _o(null), y = i.filter(
37050
37050
  (p) => p.toLowerCase().includes(l.toLowerCase())
37051
37051
  );
37052
37052
  return te(() => {
@@ -37298,8 +37298,8 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37298
37298
  /* @__PURE__ */ n.jsx(
37299
37299
  "a",
37300
37300
  {
37301
- href: i.link || "#job-details",
37302
- target: "_blank",
37301
+ href: i.description && i.description != "" ? "/jobs/" + (i.slug || i.id) : i.link,
37302
+ target: i.description && i.description != "" ? "_self" : "_blank",
37303
37303
  rel: "noopener noreferrer",
37304
37304
  className: `flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
37305
37305
  transition-colors text-sm font-medium text-center`,
@@ -37472,61 +37472,61 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37472
37472
  )
37473
37473
  }
37474
37474
  ), rz = ({ apiUrl: i, itemsPerPage: e, filterKeys: t, enableSearch: a, enablePagination: o, enableMobileFilter: s, banners: c }) => {
37475
- const [l, d] = I([]), [h, y] = I([]), [p, u] = I(1), [k, g] = I({}), [m, f] = I([]), [x, w] = I({}), [C, L] = I(""), [b, N] = I([]), [S, A] = I(!1);
37475
+ const [l, d] = A([]), [h, y] = A([]), [p, u] = A(1), [k, g] = A({}), [m, f] = A([]), [x, w] = A({}), [L, j] = A(""), [b, N] = A([]), [C, I] = A(!1);
37476
37476
  te(() => {
37477
- fetch(`${i}/items`).then((O) => O.json()).then((O) => {
37478
- d(O), y(O);
37479
- const E = j(O);
37480
- w(E);
37481
- }).catch((O) => console.error("Error fetching items:", O));
37477
+ fetch(`${i}/items`).then((B) => B.json()).then((B) => {
37478
+ d(B), y(B);
37479
+ const O = S(B);
37480
+ w(O);
37481
+ }).catch((B) => console.error("Error fetching items:", B));
37482
37482
  }, [i]);
37483
- const j = (O) => {
37484
- const E = {};
37485
- O.forEach((Q) => {
37483
+ const S = (B) => {
37484
+ const O = {};
37485
+ B.forEach((Q) => {
37486
37486
  t.forEach((fe) => {
37487
- E[fe] || (E[fe] = /* @__PURE__ */ new Set());
37487
+ O[fe] || (O[fe] = /* @__PURE__ */ new Set());
37488
37488
  const Ne = Q[fe];
37489
- Ne != null && E[fe].add(String(Ne));
37489
+ Ne != null && O[fe].add(String(Ne));
37490
37490
  });
37491
37491
  });
37492
37492
  const X = {};
37493
- return Object.keys(E).forEach((Q) => {
37494
- X[Q] = Array.from(E[Q]);
37493
+ return Object.keys(O).forEach((Q) => {
37494
+ X[Q] = Array.from(O[Q]);
37495
37495
  }), X;
37496
- }, q = (O) => {
37497
- const E = j(O);
37498
- w(E);
37499
- }, F = (O, E) => {
37496
+ }, T = (B) => {
37497
+ const O = S(B);
37498
+ w(O);
37499
+ }, E = (B, O) => {
37500
37500
  g((X) => {
37501
- const Q = E ? { ...X, [O]: E } : { ...X };
37502
- E || delete Q[O];
37501
+ const Q = O ? { ...X, [B]: O } : { ...X };
37502
+ O || delete Q[B];
37503
37503
  const fe = K(l, Q, m);
37504
- return y(fe), u(1), q(fe), Q;
37504
+ return y(fe), u(1), T(fe), Q;
37505
37505
  });
37506
- }, D = (O) => {
37507
- if (L(O), O) {
37508
- const E = l.map((X) => X.title).filter(
37509
- (X, Q, fe) => X && X.toLowerCase().includes(O.toLowerCase()) && fe.indexOf(X) === Q
37506
+ }, R = (B) => {
37507
+ if (j(B), B) {
37508
+ const O = l.map((X) => X.title).filter(
37509
+ (X, Q, fe) => X && X.toLowerCase().includes(B.toLowerCase()) && fe.indexOf(X) === Q
37510
37510
  ).slice(0, 5);
37511
- N(E);
37511
+ N(O);
37512
37512
  } else
37513
37513
  N([]);
37514
- }, V = (O) => {
37515
- if (O.key === "Enter" && C.trim()) {
37516
- O.preventDefault();
37517
- const E = [...m, C.trim()];
37518
- f(E);
37519
- const X = K(l, k, E);
37520
- y(X), u(1), q(X), L("");
37521
- }
37522
- }, W = (O) => {
37523
- const E = m.filter((Q) => Q !== O);
37524
- f(E);
37525
- const X = K(l, k, E);
37526
- y(X), u(1), q(X);
37527
- }, K = (O, E, X) => {
37528
- let Q = O.filter(
37529
- (fe) => Object.entries(E).every(
37514
+ }, V = (B) => {
37515
+ if (B.key === "Enter" && L.trim()) {
37516
+ B.preventDefault();
37517
+ const O = [...m, L.trim()];
37518
+ f(O);
37519
+ const X = K(l, k, O);
37520
+ y(X), u(1), T(X), j("");
37521
+ }
37522
+ }, Z = (B) => {
37523
+ const O = m.filter((Q) => Q !== B);
37524
+ f(O);
37525
+ const X = K(l, k, O);
37526
+ y(X), u(1), T(X);
37527
+ }, K = (B, O, X) => {
37528
+ let Q = B.filter(
37529
+ (fe) => Object.entries(O).every(
37530
37530
  ([Ne, rt]) => {
37531
37531
  const Re = fe[Ne];
37532
37532
  return typeof Re == "string" && Re.toLowerCase() === rt.toLowerCase();
@@ -37535,12 +37535,12 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37535
37535
  );
37536
37536
  return X.length > 0 && (Q = Q.filter((fe) => X.every((Ne) => fe.title.toLowerCase().includes(Ne.toLowerCase())))), Q;
37537
37537
  }, U = () => {
37538
- g({}), f([]), y(l), u(1), q(l);
37538
+ g({}), f([]), y(l), u(1), T(l);
37539
37539
  }, re = () => {
37540
- A(!S);
37541
- }, J = (O) => {
37542
- }, he = (O) => {
37543
- }, me = (O) => !1, le = Math.ceil(h.length / e), ze = h.slice((p - 1) * e, p * e);
37540
+ I(!C);
37541
+ }, J = (B) => {
37542
+ }, he = (B) => {
37543
+ }, me = (B) => !1, le = Math.ceil(h.length / e), ze = h.slice((p - 1) * e, p * e);
37544
37544
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col min-h-screen", children: [
37545
37545
  /* @__PURE__ */ n.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ n.jsxs("div", { className: "job-listings-container", children: [
37546
37546
  /* @__PURE__ */ n.jsx("div", { className: "header-container", children: /* @__PURE__ */ n.jsxs("div", { className: "header-content", children: [
@@ -37555,15 +37555,15 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37555
37555
  {
37556
37556
  className: "md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",
37557
37557
  onClick: re,
37558
- children: S ? "Close Filters" : "Open Filters"
37558
+ children: C ? "Close Filters" : "Open Filters"
37559
37559
  }
37560
37560
  ),
37561
37561
  /* @__PURE__ */ n.jsxs("div", { className: "hidden md:block filters-container", children: [
37562
37562
  /* @__PURE__ */ n.jsx(
37563
37563
  gq,
37564
37564
  {
37565
- searchTerm: C,
37566
- handleSearchChange: D,
37565
+ searchTerm: L,
37566
+ handleSearchChange: R,
37567
37567
  handleSearchKeyDown: V,
37568
37568
  suggestions: b
37569
37569
  }
@@ -37574,9 +37574,9 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37574
37574
  filterKeys: t,
37575
37575
  filtersData: x,
37576
37576
  activeFilters: k,
37577
- handleFilterChange: F,
37577
+ handleFilterChange: E,
37578
37578
  searchFilters: m,
37579
- removeSearchFilter: W,
37579
+ removeSearchFilter: Z,
37580
37580
  clearAllFilters: U,
37581
37581
  searchableFilters: ["company"]
37582
37582
  }
@@ -37585,18 +37585,18 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37585
37585
  /* @__PURE__ */ n.jsx(
37586
37586
  Mq,
37587
37587
  {
37588
- isOpen: S,
37588
+ isOpen: C,
37589
37589
  onClose: re,
37590
37590
  filterKeys: t,
37591
37591
  filtersData: x,
37592
37592
  activeFilters: k,
37593
- handleFilterChange: F,
37594
- handleSearchChange: D,
37595
- searchTerm: C,
37593
+ handleFilterChange: E,
37594
+ handleSearchChange: R,
37595
+ searchTerm: L,
37596
37596
  clearAllFilters: U,
37597
37597
  handleSearchKeyDown: V,
37598
37598
  searchFilters: m,
37599
- removeSearchFilter: W
37599
+ removeSearchFilter: Z
37600
37600
  }
37601
37601
  ),
37602
37602
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col md:flex-row", children: [
@@ -37623,7 +37623,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37623
37623
  description: e = "The latest job opportunities and career tips, weekly in your inbox.",
37624
37624
  links: t = []
37625
37625
  }) => {
37626
- const [a, o] = I(!1), [s, c] = I(null);
37626
+ const [a, o] = A(!1), [s, c] = A(null);
37627
37627
  te(() => {
37628
37628
  try {
37629
37629
  const d = localStorage.getItem("email");
@@ -37720,7 +37720,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37720
37720
  }
37721
37721
  ) })
37722
37722
  ] }) }) }), wq = ({ savedJobsCount: i }) => {
37723
- const [e, t] = I("");
37723
+ const [e, t] = A("");
37724
37724
  te(() => {
37725
37725
  typeof window < "u" && t(window.location.pathname);
37726
37726
  }, []);
@@ -37988,7 +37988,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
37988
37988
  className: s = "",
37989
37989
  showSubmitButton: c = !1
37990
37990
  }) => {
37991
- const [l, d] = I(""), [h, y] = I([]), [p, u] = I(!1), k = _o(null), g = (x) => {
37991
+ const [l, d] = A(""), [h, y] = A([]), [p, u] = A(!1), k = _o(null), g = (x) => {
37992
37992
  d(x), u(!0), o && o(x);
37993
37993
  }, m = () => {
37994
37994
  d(""), y([]), u(!1), o == null || o("");
@@ -38001,7 +38001,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
38001
38001
  y([]);
38002
38002
  return;
38003
38003
  }
38004
- const x = i.filter((w) => w.toLowerCase().includes(l.toLowerCase())).filter((w, C, L) => L.indexOf(w) === C).slice(0, 5);
38004
+ const x = i.filter((w) => w.toLowerCase().includes(l.toLowerCase())).filter((w, L, j) => j.indexOf(w) === L).slice(0, 5);
38005
38005
  y(x);
38006
38006
  }, a);
38007
38007
  }, [l, i]), /* @__PURE__ */ n.jsxs("div", { className: `relative w-full ${s}`, children: [
@@ -38051,7 +38051,7 @@ const iw = ({ position: i, url: e, alt: t, link: a }) => {
38051
38051
  searchPlaceholder: a = "Search news...",
38052
38052
  popularTags: o = ["AI Gaming", "Esports", "VR/AR", "Mobile Gaming", "Regulation", "Market Analysis"],
38053
38053
  generateHref: s = (c) => `?q=${encodeURIComponent(c)}`
38054
- }) => (I(""), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
38054
+ }) => (A(""), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
38055
38055
  /* @__PURE__ */ n.jsx("div", { className: "bg-white border-b", children: /* @__PURE__ */ n.jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4", children: /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ n.jsxs("div", { children: [
38056
38056
  /* @__PURE__ */ n.jsx("h1", { className: "text-3xl md:text-4xl font-bold text-foreground mb-4", children: e }),
38057
38057
  /* @__PURE__ */ n.jsx("p", { className: "hidden lg:block text-gray-600", children: t })
@@ -38330,7 +38330,7 @@ const Fb = ({
38330
38330
  }
38331
38331
  )
38332
38332
  ] }) }), Nq = ({ items: i, cardType: e, viewMode: t, savedJobs: a, onSaveJob: o, onViewJob: s, firstItemRef: c = null }) => {
38333
- const [l, d] = I([]), [h, y] = I(null);
38333
+ const [l, d] = A([]), [h, y] = A(null);
38334
38334
  te(() => {
38335
38335
  try {
38336
38336
  if (!Array.isArray(i)) {
@@ -38864,15 +38864,15 @@ var Xq = "DismissableLayer", cb = "dismissableLayer.update", Jq = "dismissableLa
38864
38864
  onInteractOutside: c,
38865
38865
  onDismiss: l,
38866
38866
  ...d
38867
- } = i, h = v.useContext(Rj), [y, p] = v.useState(null), u = (y == null ? void 0 : y.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, k] = v.useState({}), g = Tj(e, (S) => p(S)), m = Array.from(h.layers), [f] = [...h.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(f), w = y ? m.indexOf(y) : -1, C = h.layersWithOutsidePointerEventsDisabled.size > 0, L = w >= x, b = eP((S) => {
38868
- const A = S.target, j = [...h.branches].some((q) => q.contains(A));
38869
- !L || j || (o == null || o(S), c == null || c(S), S.defaultPrevented || l == null || l());
38870
- }, u), N = tP((S) => {
38871
- const A = S.target;
38872
- [...h.branches].some((q) => q.contains(A)) || (s == null || s(S), c == null || c(S), S.defaultPrevented || l == null || l());
38867
+ } = i, h = v.useContext(Rj), [y, p] = v.useState(null), u = (y == null ? void 0 : y.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, k] = v.useState({}), g = Tj(e, (C) => p(C)), m = Array.from(h.layers), [f] = [...h.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(f), w = y ? m.indexOf(y) : -1, L = h.layersWithOutsidePointerEventsDisabled.size > 0, j = w >= x, b = eP((C) => {
38868
+ const I = C.target, S = [...h.branches].some((T) => T.contains(I));
38869
+ !j || S || (o == null || o(C), c == null || c(C), C.defaultPrevented || l == null || l());
38870
+ }, u), N = tP((C) => {
38871
+ const I = C.target;
38872
+ [...h.branches].some((T) => T.contains(I)) || (s == null || s(C), c == null || c(C), C.defaultPrevented || l == null || l());
38873
38873
  }, u);
38874
- return Zq((S) => {
38875
- w === h.layers.size - 1 && (a == null || a(S), !S.defaultPrevented && l && (S.preventDefault(), l()));
38874
+ return Zq((C) => {
38875
+ w === h.layers.size - 1 && (a == null || a(C), !C.defaultPrevented && l && (C.preventDefault(), l()));
38876
38876
  }, u), v.useEffect(() => {
38877
38877
  if (y)
38878
38878
  return t && (h.layersWithOutsidePointerEventsDisabled.size === 0 && (mC = u.body.style.pointerEvents, u.body.style.pointerEvents = "none"), h.layersWithOutsidePointerEventsDisabled.add(y)), h.layers.add(y), fC(), () => {
@@ -38881,15 +38881,15 @@ var Xq = "DismissableLayer", cb = "dismissableLayer.update", Jq = "dismissableLa
38881
38881
  }, [y, u, t, h]), v.useEffect(() => () => {
38882
38882
  y && (h.layers.delete(y), h.layersWithOutsidePointerEventsDisabled.delete(y), fC());
38883
38883
  }, [y, h]), v.useEffect(() => {
38884
- const S = () => k({});
38885
- return document.addEventListener(cb, S), () => document.removeEventListener(cb, S);
38884
+ const C = () => k({});
38885
+ return document.addEventListener(cb, C), () => document.removeEventListener(cb, C);
38886
38886
  }, []), /* @__PURE__ */ n.jsx(
38887
38887
  zj.div,
38888
38888
  {
38889
38889
  ...d,
38890
38890
  ref: g,
38891
38891
  style: {
38892
- pointerEvents: C ? L ? "auto" : "none" : void 0,
38892
+ pointerEvents: L ? j ? "auto" : "none" : void 0,
38893
38893
  ...i.style
38894
38894
  },
38895
38895
  onFocusCapture: Aw(i.onFocusCapture, N.onFocusCapture),
@@ -39042,17 +39042,17 @@ var Nw = "focusScope.autoFocusOnMount", qw = "focusScope.autoFocusOnUnmount", vC
39042
39042
  }).current;
39043
39043
  v.useEffect(() => {
39044
39044
  if (a) {
39045
- let m = function(C) {
39045
+ let m = function(L) {
39046
39046
  if (k.paused || !l) return;
39047
- const L = C.target;
39048
- l.contains(L) ? p.current = L : aa(p.current, { select: !0 });
39049
- }, f = function(C) {
39047
+ const j = L.target;
39048
+ l.contains(j) ? p.current = j : aa(p.current, { select: !0 });
39049
+ }, f = function(L) {
39050
39050
  if (k.paused || !l) return;
39051
- const L = C.relatedTarget;
39052
- L !== null && (l.contains(L) || aa(p.current, { select: !0 }));
39053
- }, x = function(C) {
39051
+ const j = L.relatedTarget;
39052
+ j !== null && (l.contains(j) || aa(p.current, { select: !0 }));
39053
+ }, x = function(L) {
39054
39054
  if (document.activeElement === document.body)
39055
- for (const b of C)
39055
+ for (const b of L)
39056
39056
  b.removedNodes.length > 0 && aa(l);
39057
39057
  };
39058
39058
  document.addEventListener("focusin", m), document.addEventListener("focusout", f);
@@ -39082,8 +39082,8 @@ var Nw = "focusScope.autoFocusOnMount", qw = "focusScope.autoFocusOnUnmount", vC
39082
39082
  if (!t && !a || k.paused) return;
39083
39083
  const f = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
39084
39084
  if (f && x) {
39085
- const w = m.currentTarget, [C, L] = cP(w);
39086
- C && L ? !m.shiftKey && x === L ? (m.preventDefault(), t && aa(C, { select: !0 })) : m.shiftKey && x === C && (m.preventDefault(), t && aa(L, { select: !0 })) : x === w && m.preventDefault();
39085
+ const w = m.currentTarget, [L, j] = cP(w);
39086
+ L && j ? !m.shiftKey && x === j ? (m.preventDefault(), t && aa(L, { select: !0 })) : m.shiftKey && x === L && (m.preventDefault(), t && aa(j, { select: !0 })) : x === w && m.preventDefault();
39087
39087
  }
39088
39088
  },
39089
39089
  [t, a, k.paused]
@@ -39315,7 +39315,7 @@ function _w(i, e) {
39315
39315
  return typeof i == "function" ? i(e) : i && (i.current = e), i;
39316
39316
  }
39317
39317
  function LP(i, e) {
39318
- var t = I(function() {
39318
+ var t = A(function() {
39319
39319
  return {
39320
39320
  // value
39321
39321
  value: i,
@@ -39437,12 +39437,12 @@ var Gj = NP(), zw = function() {
39437
39437
  onScrollCapture: zw,
39438
39438
  onWheelCapture: zw,
39439
39439
  onTouchMoveCapture: zw
39440
- }), o = a[0], s = a[1], c = i.forwardProps, l = i.children, d = i.className, h = i.removeScrollBar, y = i.enabled, p = i.shards, u = i.sideCar, k = i.noRelative, g = i.noIsolation, m = i.inert, f = i.allowPinchZoom, x = i.as, w = x === void 0 ? "div" : x, C = i.gapMode, L = Ej(i, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = u, N = SP([t, e]), S = qt(qt({}, L), o);
39440
+ }), o = a[0], s = a[1], c = i.forwardProps, l = i.children, d = i.className, h = i.removeScrollBar, y = i.enabled, p = i.shards, u = i.sideCar, k = i.noRelative, g = i.noIsolation, m = i.inert, f = i.allowPinchZoom, x = i.as, w = x === void 0 ? "div" : x, L = i.gapMode, j = Ej(i, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = u, N = SP([t, e]), C = qt(qt({}, j), o);
39441
39441
  return v.createElement(
39442
39442
  v.Fragment,
39443
39443
  null,
39444
- y && v.createElement(b, { sideCar: Gj, removeScrollBar: h, shards: p, noRelative: k, noIsolation: g, inert: m, setCallbacks: s, allowPinchZoom: !!f, lockRef: t, gapMode: C }),
39445
- c ? v.cloneElement(v.Children.only(l), qt(qt({}, S), { ref: N })) : v.createElement(w, qt({}, S, { className: d, ref: N }), l)
39444
+ y && v.createElement(b, { sideCar: Gj, removeScrollBar: h, shards: p, noRelative: k, noIsolation: g, inert: m, setCallbacks: s, allowPinchZoom: !!f, lockRef: t, gapMode: L }),
39445
+ c ? v.cloneElement(v.Children.only(l), qt(qt({}, C), { ref: N })) : v.createElement(w, qt({}, C, { className: d, ref: N }), l)
39446
39446
  );
39447
39447
  });
39448
39448
  uw.defaultProps = {
@@ -39688,18 +39688,18 @@ function t_(i) {
39688
39688
  var l = v.useCallback(function(m, f) {
39689
39689
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
39690
39690
  return !c.current.allowPinchZoom;
39691
- var x = Eo(m), w = t.current, C = "deltaX" in m ? m.deltaX : w[0] - x[0], L = "deltaY" in m ? m.deltaY : w[1] - x[1], b, N = m.target, S = Math.abs(C) > Math.abs(L) ? "h" : "v";
39692
- if ("touches" in m && S === "h" && N.type === "range")
39691
+ var x = Eo(m), w = t.current, L = "deltaX" in m ? m.deltaX : w[0] - x[0], j = "deltaY" in m ? m.deltaY : w[1] - x[1], b, N = m.target, C = Math.abs(L) > Math.abs(j) ? "h" : "v";
39692
+ if ("touches" in m && C === "h" && N.type === "range")
39693
39693
  return !1;
39694
- var A = SC(S, N);
39695
- if (!A)
39694
+ var I = SC(C, N);
39695
+ if (!I)
39696
39696
  return !0;
39697
- if (A ? b = S : (b = S === "v" ? "h" : "v", A = SC(S, N)), !A)
39697
+ if (I ? b = C : (b = C === "v" ? "h" : "v", I = SC(C, N)), !I)
39698
39698
  return !1;
39699
- if (!a.current && "changedTouches" in m && (C || L) && (a.current = b), !b)
39699
+ if (!a.current && "changedTouches" in m && (L || j) && (a.current = b), !b)
39700
39700
  return !0;
39701
- var j = a.current || b;
39702
- return YP(j, f, m, j === "h" ? C : L, !0);
39701
+ var S = a.current || b;
39702
+ return YP(S, f, m, S === "h" ? L : j, !0);
39703
39703
  }, []), d = v.useCallback(function(m) {
39704
39704
  var f = m;
39705
39705
  if (!(!ki.length || ki[ki.length - 1] !== s)) {
@@ -39711,17 +39711,17 @@ function t_(i) {
39711
39711
  return;
39712
39712
  }
39713
39713
  if (!w) {
39714
- var C = (c.current.shards || []).map(AC).filter(Boolean).filter(function(b) {
39714
+ var L = (c.current.shards || []).map(AC).filter(Boolean).filter(function(b) {
39715
39715
  return b.contains(f.target);
39716
- }), L = C.length > 0 ? l(f, C[0]) : !c.current.noIsolation;
39717
- L && f.cancelable && f.preventDefault();
39716
+ }), j = L.length > 0 ? l(f, L[0]) : !c.current.noIsolation;
39717
+ j && f.cancelable && f.preventDefault();
39718
39718
  }
39719
39719
  }
39720
39720
  }, []), h = v.useCallback(function(m, f, x, w) {
39721
- var C = { name: m, delta: f, target: x, should: w, shadowParent: a_(x) };
39722
- e.current.push(C), setTimeout(function() {
39723
- e.current = e.current.filter(function(L) {
39724
- return L !== C;
39721
+ var L = { name: m, delta: f, target: x, should: w, shadowParent: a_(x) };
39722
+ e.current.push(L), setTimeout(function() {
39723
+ e.current = e.current.filter(function(j) {
39724
+ return j !== L;
39725
39725
  });
39726
39726
  }, 1);
39727
39727
  }, []), y = v.useCallback(function(m) {
@@ -40308,7 +40308,7 @@ function R_({
40308
40308
  filters: o,
40309
40309
  apiUrl: s = "http://localhost:5147"
40310
40310
  }) {
40311
- const [c, l] = I(""), [d, h] = I(!1), [y, p] = I(null), u = async (k) => {
40311
+ const [c, l] = A(""), [d, h] = A(!1), [y, p] = A(null), u = async (k) => {
40312
40312
  if (k.preventDefault(), p(null), !c || !c.includes("@")) {
40313
40313
  p("Please enter a valid email address.");
40314
40314
  return;
@@ -40389,7 +40389,7 @@ function R_({
40389
40389
  ] }) });
40390
40390
  }
40391
40391
  function jS() {
40392
- const i = "savedJobs", [e, t] = I([]);
40392
+ const i = "savedJobs", [e, t] = A([]);
40393
40393
  return te(() => {
40394
40394
  try {
40395
40395
  const s = localStorage.getItem(i);
@@ -40422,50 +40422,50 @@ const H_ = 6, cz = ({
40422
40422
  notification_url: h = "http://localhost:5147"
40423
40423
  }) => {
40424
40424
  var Oi;
40425
- const [y, p] = I([]), [u, k] = I([]), [g, m] = I([]), [f, x] = I(1), [w, C] = I({}), [L, b] = I([]), [N, S] = I({}), [A, j] = I(""), [q, F] = I([]), [D, V] = I(!1), [W, K] = I(e), [U, re] = I("grid"), [J, he] = I(!1), [me, le] = I([]), [ze, O] = I(!0), [E, X] = I(null), [Q, fe] = I("all"), [Ne, rt] = I(!1), [Re, Xt] = I(!1), [Dt, Jt] = I({
40425
+ const [y, p] = A([]), [u, k] = A([]), [g, m] = A([]), [f, x] = A(1), [w, L] = A({}), [j, b] = A([]), [N, C] = A({}), [I, S] = A(""), [T, E] = A([]), [R, V] = A(!1), [Z, K] = A(e), [U, re] = A("grid"), [J, he] = A(!1), [me, le] = A([]), [ze, B] = A(!0), [O, X] = A(null), [Q, fe] = A("all"), [Ne, rt] = A(!1), [Re, Xt] = A(!1), [Dt, Jt] = A({
40426
40426
  jobTypes: [],
40427
40427
  experienceLevels: [],
40428
40428
  country: "",
40429
40429
  minSalary: "",
40430
40430
  maxSalary: "",
40431
40431
  city: ""
40432
- }), [We, T] = I({
40432
+ }), [We, z] = A({
40433
40433
  open: !1,
40434
40434
  type: "info",
40435
40435
  message: ""
40436
- }), { savedJobs: _, toggleJob: G, isSaved: ge } = jS(), de = (z, B) => {
40437
- T({ open: !0, type: z, message: B });
40436
+ }), { savedJobs: P, toggleJob: G, isSaved: ge } = jS(), de = (_, F) => {
40437
+ z({ open: !0, type: _, message: F });
40438
40438
  };
40439
40439
  te(() => {
40440
40440
  try {
40441
- const z = localStorage.getItem("lastVisitedJobs");
40442
- z && le(JSON.parse(z));
40441
+ const _ = localStorage.getItem("lastVisitedJobs");
40442
+ _ && le(JSON.parse(_));
40443
40443
  try {
40444
40444
  localStorage.getItem("email") && Xt(!0);
40445
- } catch (B) {
40446
- console.error("Error checking subscription state:", B);
40445
+ } catch (F) {
40446
+ console.error("Error checking subscription state:", F);
40447
40447
  }
40448
- } catch (z) {
40449
- console.error("Error loading data from localStorage:", z);
40448
+ } catch (_) {
40449
+ console.error("Error loading data from localStorage:", _);
40450
40450
  }
40451
40451
  }, []), te(() => {
40452
- const B = new URLSearchParams(window.location.search).get("date_filter");
40453
- if (B && B !== "all") {
40454
- fe(B);
40455
- const ee = st(y, w, L, B);
40452
+ const F = new URLSearchParams(window.location.search).get("date_filter");
40453
+ if (F && F !== "all") {
40454
+ fe(F);
40455
+ const ee = st(y, w, j, F);
40456
40456
  k(ee), x(1), ve(ee);
40457
40457
  }
40458
40458
  }, [y]), te(() => {
40459
40459
  if (!i) {
40460
- X("❌ Missing API URL for Listing component!"), O(!1);
40460
+ X("❌ Missing API URL for Listing component!"), B(!1);
40461
40461
  return;
40462
40462
  }
40463
- O(!0), X(null), (async () => {
40463
+ B(!0), X(null), (async () => {
40464
40464
  try {
40465
- const B = await fetch(i);
40466
- if (!B.ok)
40467
- throw new Error(`API responded with status: ${B.status}`);
40468
- const ee = await B.json();
40465
+ const F = await fetch(i);
40466
+ if (!F.ok)
40467
+ throw new Error(`API responded with status: ${F.status}`);
40468
+ const ee = await F.json();
40469
40469
  if (!Array.isArray(ee))
40470
40470
  throw new Error("Expected an array but received: " + typeof ee);
40471
40471
  const se = ee.map((wt, hi) => ({
@@ -40477,47 +40477,47 @@ const H_ = 6, cz = ({
40477
40477
  ).slice(0, 10);
40478
40478
  m(be), p(se), k(se);
40479
40479
  const Be = bo(se, t);
40480
- S(Be);
40481
- } catch (B) {
40482
- console.error("Error fetching data:", B), X(`Failed to load data: ${B instanceof Error ? B.message : String(B)}`);
40480
+ C(Be);
40481
+ } catch (F) {
40482
+ console.error("Error fetching data:", F), X(`Failed to load data: ${F instanceof Error ? F.message : String(F)}`);
40483
40483
  const ee = bq(20);
40484
40484
  p(ee), k(ee);
40485
40485
  const se = bo(ee, t);
40486
- S(se);
40486
+ C(se);
40487
40487
  } finally {
40488
- O(!1);
40488
+ B(!1);
40489
40489
  }
40490
40490
  })();
40491
40491
  }, [i]), te(() => {
40492
- const z = new URLSearchParams(window.location.search), B = {};
40492
+ const _ = new URLSearchParams(window.location.search), F = {};
40493
40493
  t.forEach((be) => {
40494
- const Be = z.get(be);
40495
- Be && (B[be] = Be);
40496
- }), C(B);
40497
- const ee = z.get("q") || z.get("searchTerm") || "";
40498
- ee && (j(ee), li(ee));
40494
+ const Be = _.get(be);
40495
+ Be && (F[be] = Be);
40496
+ }), L(F);
40497
+ const ee = _.get("q") || _.get("searchTerm") || "";
40498
+ ee && (S(ee), li(ee));
40499
40499
  const se = {};
40500
40500
  t.forEach((be) => {
40501
- const Be = z.get(be);
40501
+ const Be = _.get(be);
40502
40502
  Be && (se[be] = Be);
40503
- }), C(se);
40503
+ }), L(se);
40504
40504
  }, []), te(() => {
40505
40505
  if (J) {
40506
- const z = y.filter((B) => _.includes(B.id || B.slug || B.link));
40507
- k(z), x(1);
40506
+ const _ = y.filter((F) => P.includes(F.id || F.slug || F.link));
40507
+ k(_), x(1);
40508
40508
  } else {
40509
- let z = y;
40510
- z = st(z, w, L, Q), z = _q(z, Dt), k(z);
40511
- }
40512
- }, [J, _, y, w, L, Q, Dt]);
40513
- const ve = (z) => {
40514
- const B = bo(z, t);
40515
- S(B);
40516
- }, je = (z, B) => {
40517
- C((ee) => {
40509
+ let _ = y;
40510
+ _ = st(_, w, j, Q), _ = _q(_, Dt), k(_);
40511
+ }
40512
+ }, [J, P, y, w, j, Q, Dt]);
40513
+ const ve = (_) => {
40514
+ const F = bo(_, t);
40515
+ C(F);
40516
+ }, je = (_, F) => {
40517
+ L((ee) => {
40518
40518
  const se = { ...ee };
40519
- B ? se[z] = B : delete se[z], J && he(!1);
40520
- const be = st(y, se, L, Q);
40519
+ F ? se[_] = F : delete se[_], J && he(!1);
40520
+ const be = st(y, se, j, Q);
40521
40521
  return k(be), x(1), ve(be), se;
40522
40522
  });
40523
40523
  }, nt = () => {
@@ -40527,35 +40527,35 @@ const H_ = 6, cz = ({
40527
40527
  rt(!1)
40528
40528
  )
40529
40529
  );
40530
- }, ci = _o(null), Bi = (z) => {
40531
- x(z), setTimeout(() => {
40532
- var B;
40533
- (B = ci.current) == null || B.scrollIntoView({ behavior: "smooth", block: "start" });
40530
+ }, ci = _o(null), Bi = (_) => {
40531
+ x(_), setTimeout(() => {
40532
+ var F;
40533
+ (F = ci.current) == null || F.scrollIntoView({ behavior: "smooth", block: "start" });
40534
40534
  }, 100);
40535
- }, Yt = (z) => {
40536
- J && he(!1), fe(z), xa(z), Pj(z);
40537
- }, xa = (z) => {
40538
- const B = st(y, w, L, z);
40539
- k(B), x(1), ve(B);
40540
- }, Mt = (z) => {
40541
- if (j(z), z) {
40542
- const B = y.map((ee) => ee.title).filter(
40543
- (ee, se, be) => ee && ee.toLowerCase().includes(z.toLowerCase()) && be.indexOf(ee) === se
40535
+ }, Yt = (_) => {
40536
+ J && he(!1), fe(_), xa(_), Pj(_);
40537
+ }, xa = (_) => {
40538
+ const F = st(y, w, j, _);
40539
+ k(F), x(1), ve(F);
40540
+ }, Mt = (_) => {
40541
+ if (S(_), _) {
40542
+ const F = y.map((ee) => ee.title).filter(
40543
+ (ee, se, be) => ee && ee.toLowerCase().includes(_.toLowerCase()) && be.indexOf(ee) === se
40544
40544
  ).slice(0, 5);
40545
- F(B);
40545
+ E(F);
40546
40546
  } else
40547
- F([]);
40548
- }, li = (z) => {
40549
- if (!z.trim()) return;
40547
+ E([]);
40548
+ }, li = (_) => {
40549
+ if (!_.trim()) return;
40550
40550
  J && he(!1);
40551
- const B = [...L, z.trim()];
40552
- b(B);
40553
- const ee = st(y, w, B, Q);
40554
- k(ee), x(1), ve(ee), j("");
40555
- }, di = (z) => {
40556
- const B = L.filter((se) => se !== z);
40557
- b(B);
40558
- const ee = st(y, w, B, Q);
40551
+ const F = [...j, _.trim()];
40552
+ b(F);
40553
+ const ee = st(y, w, F, Q);
40554
+ k(ee), x(1), ve(ee), S("");
40555
+ }, di = (_) => {
40556
+ const F = j.filter((se) => se !== _);
40557
+ b(F);
40558
+ const ee = st(y, w, F, Q);
40559
40559
  k(ee), x(1), ve(ee);
40560
40560
  }, Kt = () => {
40561
40561
  Jt({
@@ -40566,27 +40566,27 @@ const H_ = 6, cz = ({
40566
40566
  maxSalary: "",
40567
40567
  city: ""
40568
40568
  });
40569
- const z = st(y, w, L, Q);
40570
- k(z), x(1), ve(z);
40569
+ const _ = st(y, w, j, Q);
40570
+ k(_), x(1), ve(_);
40571
40571
  }, va = () => {
40572
- C({}), b([]), he(!1), fe("all"), Kt(), k(y), x(1), ve(y);
40573
- }, R = (z) => {
40574
- const B = /* @__PURE__ */ new Set(), ee = [];
40575
- for (const se of z) {
40572
+ L({}), b([]), he(!1), fe("all"), Kt(), k(y), x(1), ve(y);
40573
+ }, D = (_) => {
40574
+ const F = /* @__PURE__ */ new Set(), ee = [];
40575
+ for (const se of _) {
40576
40576
  const be = `${se.key ?? ""}|${se.value.toLowerCase()}`;
40577
- B.has(be) || (B.add(be), ee.push(se));
40577
+ F.has(be) || (F.add(be), ee.push(se));
40578
40578
  }
40579
40579
  return ee;
40580
- }, $ = (z) => z.replace(/\/+$/, ""), oe = async () => {
40580
+ }, W = (_) => _.replace(/\/+$/, ""), oe = async () => {
40581
40581
  if (!Re)
40582
40582
  rt(!0);
40583
40583
  else {
40584
- const z = localStorage.getItem("email"), B = localStorage.getItem("leadId");
40585
- if (!z || !B) {
40584
+ const _ = localStorage.getItem("email"), F = localStorage.getItem("leadId");
40585
+ if (!_ || !F) {
40586
40586
  de("info", "Please subscribe first to create alerts.");
40587
40587
  return;
40588
40588
  }
40589
- const ee = "keyword", se = ($e, yt) => yt && yt.trim() ? { key: $e.toLowerCase(), value: yt.trim() } : null, be = Object.entries(w).map(([$e, yt]) => se($e, yt)).filter(($e) => $e !== null), Be = L.map(($e) => se(ee, $e)).filter(($e) => $e !== null), wt = se(ee, A), hi = wt ? [wt] : [], Ei = R([
40589
+ const ee = "keyword", se = ($e, yt) => yt && yt.trim() ? { key: $e.toLowerCase(), value: yt.trim() } : null, be = Object.entries(w).map(([$e, yt]) => se($e, yt)).filter(($e) => $e !== null), Be = j.map(($e) => se(ee, $e)).filter(($e) => $e !== null), wt = se(ee, I), hi = wt ? [wt] : [], Ei = D([
40590
40590
  ...be,
40591
40591
  ...Be,
40592
40592
  ...hi
@@ -40596,7 +40596,7 @@ const H_ = 6, cz = ({
40596
40596
  return;
40597
40597
  }
40598
40598
  try {
40599
- const $e = $(h ?? "http://localhost:5147"), yt = await fetch(`${$e}/api/leads/${B}/preferences/bulk`, {
40599
+ const $e = W(h ?? "http://localhost:5147"), yt = await fetch(`${$e}/api/leads/${F}/preferences/bulk`, {
40600
40600
  method: "POST",
40601
40601
  headers: { "Content-Type": "application/json" },
40602
40602
  body: JSON.stringify(Ei)
@@ -40609,21 +40609,21 @@ const H_ = 6, cz = ({
40609
40609
  }
40610
40610
  throw new Error(`${yt.status} ${yt.statusText} ${Ro}`.trim());
40611
40611
  }
40612
- de("success", "Alert saved. We’ll notify you about new matching jobs."), j("");
40612
+ de("success", "Alert saved. We’ll notify you about new matching jobs."), S("");
40613
40613
  } catch ($e) {
40614
40614
  console.error("Create alert failed:", $e), de("error", "Failed to save alert.");
40615
40615
  }
40616
40616
  }
40617
40617
  }, we = () => {
40618
- V(!D);
40619
- }, Oe = u.length === 0 ? 0 : (f - 1) * W + 1, Qt = Math.min(f * W, u.length), He = (z) => {
40620
- K(z), x(1);
40618
+ V(!R);
40619
+ }, Oe = u.length === 0 ? 0 : (f - 1) * Z + 1, Qt = Math.min(f * Z, u.length), He = (_) => {
40620
+ K(_), x(1);
40621
40621
  }, Fe = () => {
40622
40622
  re(U === "grid" ? "list" : "grid");
40623
- }, Rt = (z) => {
40624
- const B = z.id || z.slug || z.link;
40623
+ }, Rt = (_) => {
40624
+ const F = _.id || _.slug || _.link;
40625
40625
  le((ee) => {
40626
- const se = ee.filter((Be) => (Be.id || Be.slug || Be.link) !== B), be = [z, ...se].slice(0, H_);
40626
+ const se = ee.filter((Be) => (Be.id || Be.slug || Be.link) !== F), be = [_, ...se].slice(0, H_);
40627
40627
  try {
40628
40628
  localStorage.setItem("lastVisitedJobs", JSON.stringify(be));
40629
40629
  } catch (Be) {
@@ -40633,13 +40633,13 @@ const H_ = 6, cz = ({
40633
40633
  });
40634
40634
  }, ue = () => {
40635
40635
  he(!J);
40636
- }, Ve = Math.ceil(u.length / W), Ma = u.slice(
40637
- (f - 1) * W,
40638
- f * W
40636
+ }, Ve = Math.ceil(u.length / Z), Ma = u.slice(
40637
+ (f - 1) * Z,
40638
+ f * Z
40639
40639
  );
40640
- return E && !y.length ? /* @__PURE__ */ n.jsx("div", { className: "flex-grow p-8", children: /* @__PURE__ */ n.jsx("div", { className: "max-w-7xl mx-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "bg-red-50 border border-red-200 text-red-800 rounded-lg p-6", children: [
40640
+ return O && !y.length ? /* @__PURE__ */ n.jsx("div", { className: "flex-grow p-8", children: /* @__PURE__ */ n.jsx("div", { className: "max-w-7xl mx-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "bg-red-50 border border-red-200 text-red-800 rounded-lg p-6", children: [
40641
40641
  /* @__PURE__ */ n.jsx("h2", { className: "text-lg font-semibold mb-2", children: "Error Loading Jobs" }),
40642
- /* @__PURE__ */ n.jsx("p", { className: "mb-4", children: E }),
40642
+ /* @__PURE__ */ n.jsx("p", { className: "mb-4", children: O }),
40643
40643
  /* @__PURE__ */ n.jsx(
40644
40644
  "button",
40645
40645
  {
@@ -40658,7 +40658,7 @@ const H_ = 6, cz = ({
40658
40658
  title: "Job Listings",
40659
40659
  description: "",
40660
40660
  popularTags: g,
40661
- generateHref: (z) => `/jobs?q=${z.toLowerCase().replace(/\s+/g, "+")}`
40661
+ generateHref: (_) => `/jobs?q=${_.toLowerCase().replace(/\s+/g, "+")}`
40662
40662
  }
40663
40663
  ),
40664
40664
  /* @__PURE__ */ n.jsxs("div", { className: "container mx-auto py-8 pb-20 md:pb-8", children: [
@@ -40667,12 +40667,12 @@ const H_ = 6, cz = ({
40667
40667
  /* @__PURE__ */ n.jsx(
40668
40668
  Db,
40669
40669
  {
40670
- data: y.map((z) => z.title).filter(Boolean),
40671
- onSelect: (z) => {
40672
- li(z);
40670
+ data: y.map((_) => _.title).filter(Boolean),
40671
+ onSelect: (_) => {
40672
+ li(_);
40673
40673
  },
40674
- onTyping: (z) => {
40675
- j(z), Mt(z);
40674
+ onTyping: (_) => {
40675
+ S(_), Mt(_);
40676
40676
  },
40677
40677
  placeholder: "Search for jobs, companies, or keywords...",
40678
40678
  className: "w-full",
@@ -40698,17 +40698,17 @@ const H_ = 6, cz = ({
40698
40698
  value: Q.replace(/_/g, " "),
40699
40699
  onRemove: () => Yt("all")
40700
40700
  }] : [],
40701
- ...L.map((z) => ({
40701
+ ...j.map((_) => ({
40702
40702
  key: "search",
40703
40703
  label: "",
40704
- value: z,
40705
- onRemove: () => di(z)
40704
+ value: _,
40705
+ onRemove: () => di(_)
40706
40706
  })),
40707
- ...Object.entries(w).map(([z, B]) => ({
40708
- key: z,
40709
- label: z.replace(/_/g, " "),
40710
- value: B,
40711
- onRemove: () => je(z, "")
40707
+ ...Object.entries(w).map(([_, F]) => ({
40708
+ key: _,
40709
+ label: _.replace(/_/g, " "),
40710
+ value: F,
40711
+ onRemove: () => je(_, "")
40712
40712
  }))
40713
40713
  ],
40714
40714
  onClearAll: va,
@@ -40721,10 +40721,10 @@ const H_ = 6, cz = ({
40721
40721
  {
40722
40722
  className: "md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",
40723
40723
  onClick: we,
40724
- "aria-expanded": D,
40724
+ "aria-expanded": R,
40725
40725
  children: [
40726
40726
  /* @__PURE__ */ n.jsx(pa, { className: "w-4 h-4 mr-2" }),
40727
- D ? "Close Filters" : "Filters"
40727
+ R ? "Close Filters" : "Filters"
40728
40728
  ]
40729
40729
  }
40730
40730
  ),
@@ -40742,7 +40742,7 @@ const H_ = 6, cz = ({
40742
40742
  handleFilterChange: je,
40743
40743
  toggleSavedJobsFilter: ue,
40744
40744
  showOnlySaved: J,
40745
- savedJobs: _
40745
+ savedJobs: P
40746
40746
  }
40747
40747
  ),
40748
40748
  ze ? /* @__PURE__ */ n.jsx(Tb, {}) : /* @__PURE__ */ n.jsxs("div", { className: "lg:gap-6", children: [
@@ -40751,7 +40751,7 @@ const H_ = 6, cz = ({
40751
40751
  {
40752
40752
  viewMode: U,
40753
40753
  onToggleViewMode: Fe,
40754
- selectedItemsPerPage: W,
40754
+ selectedItemsPerPage: Z,
40755
40755
  onItemsPerPageChange: He,
40756
40756
  totalCount: u.length,
40757
40757
  startIndex: Oe,
@@ -40786,7 +40786,7 @@ const H_ = 6, cz = ({
40786
40786
  items: Ma,
40787
40787
  cardType: s,
40788
40788
  viewMode: U,
40789
- savedJobs: _,
40789
+ savedJobs: P,
40790
40790
  onSaveJob: G,
40791
40791
  onViewJob: Rt,
40792
40792
  firstItemRef: ci
@@ -40816,20 +40816,20 @@ const H_ = 6, cz = ({
40816
40816
  /* @__PURE__ */ n.jsx(Ij, { api_url: h }),
40817
40817
  /* @__PURE__ */ n.jsxs("div", { className: "mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5", children: [
40818
40818
  /* @__PURE__ */ n.jsx("h3", { className: "font-semibold text-lg mb-3", children: "Featured Employers" }),
40819
- /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-3 gap-2", children: [...Array(6)].map((z, B) => /* @__PURE__ */ n.jsx(
40819
+ /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-3 gap-2", children: [...Array(6)].map((_, F) => /* @__PURE__ */ n.jsx(
40820
40820
  "div",
40821
40821
  {
40822
40822
  className: "flex items-center justify-center p-2 bg-gray-50 rounded-md",
40823
40823
  children: /* @__PURE__ */ n.jsx(
40824
40824
  "img",
40825
40825
  {
40826
- src: `/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65 + B)}`,
40827
- alt: `Featured employer ${B + 1}`,
40826
+ src: `/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65 + F)}`,
40827
+ alt: `Featured employer ${F + 1}`,
40828
40828
  className: "w-10 h-10 object-contain"
40829
40829
  }
40830
40830
  )
40831
40831
  },
40832
- B
40832
+ F
40833
40833
  )) })
40834
40834
  ] })
40835
40835
  ] }) })
@@ -40848,20 +40848,20 @@ const H_ = 6, cz = ({
40848
40848
  handleFilterChange: je,
40849
40849
  toggleSavedJobsFilter: ue,
40850
40850
  filtersData: N,
40851
- savedJobs: _,
40851
+ savedJobs: P,
40852
40852
  showOnlySaved: J,
40853
- isMobileFilterOpen: D,
40853
+ isMobileFilterOpen: R,
40854
40854
  toggleMobileFilter: we
40855
40855
  }
40856
40856
  ),
40857
- /* @__PURE__ */ n.jsx(wq, { savedJobsCount: _.length }),
40857
+ /* @__PURE__ */ n.jsx(wq, { savedJobsCount: P.length }),
40858
40858
  /* @__PURE__ */ n.jsx(
40859
40859
  mq,
40860
40860
  {
40861
40861
  open: We.open,
40862
40862
  type: We.type,
40863
40863
  message: We.message,
40864
- onClose: () => T((z) => ({ ...z, open: !1 }))
40864
+ onClose: () => z((_) => ({ ..._, open: !1 }))
40865
40865
  }
40866
40866
  ),
40867
40867
  /* @__PURE__ */ n.jsx(
@@ -40882,7 +40882,7 @@ function PC(i = window.location.pathname) {
40882
40882
  return a ? decodeURIComponent(a) : null;
40883
40883
  }
40884
40884
  function F_() {
40885
- const [i, e] = I(() => PC());
40885
+ const [i, e] = A(() => PC());
40886
40886
  return te(() => {
40887
40887
  const t = () => e(PC());
40888
40888
  return window.addEventListener("popstate", t), () => window.removeEventListener("popstate", t);
@@ -41018,18 +41018,18 @@ const SS = {
41018
41018
  postedDate: "2025-01-08"
41019
41019
  }
41020
41020
  ], lz = ({ job: i = SS, similarJobs: e = IS }) => {
41021
- var N, S, A, j;
41022
- const t = F_(), [a, o] = I(() => B_(e)), [s, c] = I(!1), [l, d] = I(null), [h, y] = I(!1), [p, u] = I(!1), { savedJobs: k, toggleJob: g, isSaved: m } = jS(), f = V_(i);
41021
+ var N;
41022
+ const t = F_(), [a, o] = A(() => B_(e)), [s, c] = A(!1), [l, d] = A(null), [h, y] = A(!1), [p, u] = A(!1), { savedJobs: k, toggleJob: g, isSaved: m } = jS(), f = V_(i);
41023
41023
  te(() => {
41024
41024
  (async () => {
41025
41025
  c(!0);
41026
41026
  try {
41027
- if (await new Promise((D) => setTimeout(D, 300)), !t) throw new Error("Missing slug in URL.");
41027
+ if (await new Promise((S) => setTimeout(S, 300)), !t) throw new Error("Missing slug in URL.");
41028
41028
  o(a);
41029
- const F = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
41030
- u(F.includes(t));
41031
- } catch (F) {
41032
- d((F == null ? void 0 : F.message) || "Failed to load job details");
41029
+ const I = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
41030
+ u(I.includes(t));
41031
+ } catch (I) {
41032
+ d((I == null ? void 0 : I.message) || "Failed to load job details");
41033
41033
  } finally {
41034
41034
  c(!1);
41035
41035
  }
@@ -41040,9 +41040,9 @@ const SS = {
41040
41040
  }, w = () => {
41041
41041
  if (!t) return;
41042
41042
  f != null && f.applicationUrl ? window.open(f.applicationUrl, "_blank", "noopener,noreferrer") : y(!0);
41043
- const q = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
41044
- q.includes(t) || (q.push(t), localStorage.setItem("appliedJobs", JSON.stringify(q)), u(!0));
41045
- }, C = async () => {
41043
+ const C = JSON.parse(localStorage.getItem("appliedJobs") || "[]");
41044
+ C.includes(t) || (C.push(t), localStorage.setItem("appliedJobs", JSON.stringify(C)), u(!0));
41045
+ }, L = async () => {
41046
41046
  if (navigator.share)
41047
41047
  try {
41048
41048
  await navigator.share({
@@ -41050,14 +41050,14 @@ const SS = {
41050
41050
  text: `Check out this job opportunity: ${f == null ? void 0 : f.title} at ${f == null ? void 0 : f.company}`,
41051
41051
  url: window.location.href
41052
41052
  });
41053
- } catch (q) {
41054
- console.log("Error sharing:", q);
41053
+ } catch (C) {
41054
+ console.log("Error sharing:", C);
41055
41055
  }
41056
41056
  else
41057
41057
  navigator.clipboard.writeText(window.location.href), alert("Job URL copied to clipboard!");
41058
- }, L = (q) => new Date(q).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" }), b = (q) => {
41059
- const F = new Date(q), V = Math.abs((/* @__PURE__ */ new Date()).getTime() - F.getTime());
41060
- return Math.ceil(V / (1e3 * 60 * 60 * 24));
41058
+ }, j = (C) => new Date(C).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" }), b = (C) => {
41059
+ const I = new Date(C), T = Math.abs((/* @__PURE__ */ new Date()).getTime() - I.getTime());
41060
+ return Math.ceil(T / (1e3 * 60 * 60 * 24));
41061
41061
  };
41062
41062
  return s ? /* @__PURE__ */ n.jsx("div", { className: "min-h-screen bg-gray-50 flex items-center justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "text-center", children: [
41063
41063
  /* @__PURE__ */ n.jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto" }),
@@ -41154,7 +41154,7 @@ const SS = {
41154
41154
  /* @__PURE__ */ n.jsxs(
41155
41155
  "button",
41156
41156
  {
41157
- onClick: C,
41157
+ onClick: L,
41158
41158
  className: "flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",
41159
41159
  children: [
41160
41160
  /* @__PURE__ */ n.jsx(Ii, { className: "h-4 w-4 mr-2" }),
@@ -41202,7 +41202,7 @@ const SS = {
41202
41202
  /* @__PURE__ */ n.jsxs("div", { className: "text-center p-4 bg-gray-50 rounded-lg", children: [
41203
41203
  /* @__PURE__ */ n.jsx(ro, { className: "h-6 w-6 text-blue-600 mx-auto mb-2" }),
41204
41204
  /* @__PURE__ */ n.jsx("p", { className: "text-sm text-gray-600", children: "Deadline" }),
41205
- /* @__PURE__ */ n.jsx("p", { className: "font-medium text-sm", children: f.applicationDeadline ? L(f.applicationDeadline) : "Open" })
41205
+ /* @__PURE__ */ n.jsx("p", { className: "font-medium text-sm", children: f.applicationDeadline ? j(f.applicationDeadline) : "Open" })
41206
41206
  ] })
41207
41207
  ] }),
41208
41208
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between pt-4 border-t border-gray-200", children: [
@@ -41228,35 +41228,35 @@ const SS = {
41228
41228
  ] }),
41229
41229
  /* @__PURE__ */ n.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
41230
41230
  /* @__PURE__ */ n.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Key Responsibilities" }),
41231
- /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: (N = f.responsibilities) == null ? void 0 : N.map((q, F) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41231
+ /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: (N = f.responsibilities) == null ? void 0 : N.map((C, I) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41232
41232
  /* @__PURE__ */ n.jsx(kt, { className: "h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0" }),
41233
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: q })
41234
- ] }, F)) })
41233
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: C })
41234
+ ] }, I)) })
41235
41235
  ] }),
41236
41236
  /* @__PURE__ */ n.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
41237
41237
  /* @__PURE__ */ n.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Requirements" }),
41238
- /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: (S = f.requirements) == null ? void 0 : S.map((q, F) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41238
+ Array.isArray(f.requirements) ? /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: f.requirements.map((C, I) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41239
41239
  /* @__PURE__ */ n.jsx(kt, { className: "h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0" }),
41240
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: q })
41241
- ] }, F)) })
41240
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: C })
41241
+ ] }, I)) }) : /* @__PURE__ */ n.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: f.requirements })
41242
41242
  ] }),
41243
41243
  /* @__PURE__ */ n.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
41244
41244
  /* @__PURE__ */ n.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Required Skills" }),
41245
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: (A = f.skills) == null ? void 0 : A.map((q, F) => /* @__PURE__ */ n.jsx(
41245
+ Array.isArray(f.skills) ? /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: f.skills.map((C, I) => /* @__PURE__ */ n.jsx(
41246
41246
  "span",
41247
41247
  {
41248
41248
  className: "bg-blue-100 text-blue-800 text-sm font-medium px-3 py-1 rounded-full",
41249
- children: q
41249
+ children: C
41250
41250
  },
41251
- F
41252
- )) })
41251
+ I
41252
+ )) }) : /* @__PURE__ */ n.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: f.skills })
41253
41253
  ] }),
41254
41254
  /* @__PURE__ */ n.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
41255
41255
  /* @__PURE__ */ n.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-4", children: "Benefits & Perks" }),
41256
- /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: (j = f.benefits) == null ? void 0 : j.map((q, F) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41256
+ Array.isArray(f.benefits) ? /* @__PURE__ */ n.jsx("ul", { className: "space-y-3", children: f.benefits.map((C, I) => /* @__PURE__ */ n.jsxs("li", { className: "flex items-start", children: [
41257
41257
  /* @__PURE__ */ n.jsx(kt, { className: "h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0" }),
41258
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: q })
41259
- ] }, F)) })
41258
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: C })
41259
+ ] }, I)) }) : /* @__PURE__ */ n.jsx("p", { className: "text-gray-700 whitespace-pre-line", children: f.benefits })
41260
41260
  ] })
41261
41261
  ] }),
41262
41262
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-6", children: [
@@ -41360,28 +41360,28 @@ const SS = {
41360
41360
  ] }),
41361
41361
  /* @__PURE__ */ n.jsxs("div", { className: "bg-white rounded-lg shadow-sm border border-gray-200 p-6", children: [
41362
41362
  /* @__PURE__ */ n.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-4", children: "Similar Jobs" }),
41363
- /* @__PURE__ */ n.jsx("div", { className: "space-y-4", children: a.map((q) => /* @__PURE__ */ n.jsxs(
41363
+ /* @__PURE__ */ n.jsx("div", { className: "space-y-4", children: a.map((C) => /* @__PURE__ */ n.jsxs(
41364
41364
  "div",
41365
41365
  {
41366
41366
  className: "border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",
41367
- onClick: () => _C(`/jobs/${q.id}`),
41367
+ onClick: () => _C(`/jobs/${C.id}`),
41368
41368
  children: [
41369
- /* @__PURE__ */ n.jsx("h4", { className: "font-medium text-gray-900 mb-1", children: q.title }),
41370
- /* @__PURE__ */ n.jsx("p", { className: "text-sm text-gray-600 mb-2", children: q.company }),
41369
+ /* @__PURE__ */ n.jsx("h4", { className: "font-medium text-gray-900 mb-1", children: C.title }),
41370
+ /* @__PURE__ */ n.jsx("p", { className: "text-sm text-gray-600 mb-2", children: C.company }),
41371
41371
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between text-xs text-gray-500", children: [
41372
41372
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
41373
41373
  /* @__PURE__ */ n.jsx(_t, { className: "h-3 w-3 mr-1" }),
41374
- /* @__PURE__ */ n.jsx("span", { children: q.location })
41374
+ /* @__PURE__ */ n.jsx("span", { children: C.location })
41375
41375
  ] }),
41376
41376
  /* @__PURE__ */ n.jsxs("span", { children: [
41377
- b(q.postedDate),
41377
+ b(C.postedDate),
41378
41378
  "d ago"
41379
41379
  ] })
41380
41380
  ] }),
41381
- q.salary && /* @__PURE__ */ n.jsx("p", { className: "text-sm font-medium text-blue-600 mt-2", children: q.salary })
41381
+ C.salary && /* @__PURE__ */ n.jsx("p", { className: "text-sm font-medium text-blue-600 mt-2", children: C.salary })
41382
41382
  ]
41383
41383
  },
41384
- q.id
41384
+ C.id
41385
41385
  )) }),
41386
41386
  /* @__PURE__ */ n.jsx(
41387
41387
  "button",
@@ -41421,7 +41421,7 @@ const SS = {
41421
41421
  ] }) })
41422
41422
  ] });
41423
41423
  }, dz = () => /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("h2", { children: "Welcome to the Header!" }) }), O_ = ({ article: i, isBookmarked: e, onToggleBookmark: t, onShare: a, layout: o = "card" }) => {
41424
- const [s, c] = I(!1), l = (u) => {
41424
+ const [s, c] = A(!1), l = (u) => {
41425
41425
  const k = new Date(u), m = Math.floor(((/* @__PURE__ */ new Date()).getTime() - k.getTime()) / (1e3 * 60 * 60));
41426
41426
  return m < 1 ? "Just now" : m < 24 ? `${m}h ago` : m < 48 ? "Yesterday" : k.toLocaleDateString("en-US", { month: "short", day: "numeric" });
41427
41427
  }, d = (u) => u >= 1e3 ? `${(u / 1e3).toFixed(1)}k` : u.toString(), h = (u) => u.length > 1 ? u[1] : u[0], y = (u, k) => u.length <= k ? u : u.substring(0, k).trim() + "...", p = o === "grid" ? "flex flex-col" : "flex flex-col md:flex-row md:items-center";
@@ -41539,19 +41539,19 @@ const SS = {
41539
41539
  itemsPerPage: c = 12,
41540
41540
  dateFieldLabel: l = "Published"
41541
41541
  }) => {
41542
- const [d, h] = I([]), [y, p] = I([]), [u, k] = I([]), [g, m] = I({}), [f, x] = I(""), [w, C] = I({}), [L, b] = I(!1), [N, S] = I(c), [A, j] = I(/* @__PURE__ */ new Set());
41543
- I(o);
41544
- const [q, F] = I("grid"), [D, V] = I(1), [W, K] = I([]), [U, re] = I(!1), [J, he] = I([]), [me, le] = I([]), [ze, O] = I(!0), [E, X] = I("all"), [Q, fe] = I(""), Ne = (R) => R.trim().toLowerCase().replace(/\s+/g, "-"), [rt, Re] = I(a), [Xt, Dt] = I(null);
41542
+ const [d, h] = A([]), [y, p] = A([]), [u, k] = A([]), [g, m] = A({}), [f, x] = A(""), [w, L] = A({}), [j, b] = A(!1), [N, C] = A(c), [I, S] = A(/* @__PURE__ */ new Set());
41543
+ A(o);
41544
+ const [T, E] = A("grid"), [R, V] = A(1), [Z, K] = A([]), [U, re] = A(!1), [J, he] = A([]), [me, le] = A([]), [ze, B] = A(!0), [O, X] = A("all"), [Q, fe] = A(""), Ne = (D) => D.trim().toLowerCase().replace(/\s+/g, "-"), [rt, Re] = A(a), [Xt, Dt] = A(null);
41545
41545
  te(() => {
41546
- const R = localStorage.getItem(s);
41547
- R && j(new Set(JSON.parse(R)));
41546
+ const D = localStorage.getItem(s);
41547
+ D && S(new Set(JSON.parse(D)));
41548
41548
  }, [s]), te(() => {
41549
- const R = new URLSearchParams(window.location.search), $ = {};
41549
+ const D = new URLSearchParams(window.location.search), W = {};
41550
41550
  e.forEach((He) => {
41551
- const Fe = R.get(He);
41552
- Fe && ($[He] = Fe);
41553
- }), C($);
41554
- const oe = R.get("q"), we = R.get("categories");
41551
+ const Fe = D.get(He);
41552
+ Fe && (W[He] = Fe);
41553
+ }), L(W);
41554
+ const oe = D.get("q"), we = D.get("categories");
41555
41555
  let Oe = [...d];
41556
41556
  if (oe && (Oe = Oe.filter(
41557
41557
  (He) => He.title.toLowerCase().includes(oe.toLowerCase())
@@ -41567,41 +41567,41 @@ const SS = {
41567
41567
  k(Oe);
41568
41568
  const Qt = {};
41569
41569
  e.forEach((He) => {
41570
- const Fe = R.get(He);
41570
+ const Fe = D.get(He);
41571
41571
  Fe && (Qt[He] = Fe);
41572
- }), C(Qt);
41572
+ }), L(Qt);
41573
41573
  }, [d]), te(() => {
41574
- const $ = new URLSearchParams(window.location.search).get("date_filter");
41575
- if ($ && $ !== "all") {
41576
- X($);
41577
- const oe = st(d, w, J, $);
41574
+ const W = new URLSearchParams(window.location.search).get("date_filter");
41575
+ if (W && W !== "all") {
41576
+ X(W);
41577
+ const oe = st(d, w, J, W);
41578
41578
  p(oe), V(1), We(oe);
41579
41579
  }
41580
41580
  }, [d]);
41581
- const Jt = (R) => {
41582
- if (!R.trim()) return;
41583
- const $ = [...J, R.trim()];
41584
- he($);
41585
- const oe = st(d, w, $, E);
41581
+ const Jt = (D) => {
41582
+ if (!D.trim()) return;
41583
+ const W = [...J, D.trim()];
41584
+ he(W);
41585
+ const oe = st(d, w, W, O);
41586
41586
  p(oe), V(1), We(oe), x("");
41587
- }, We = (R) => {
41588
- const $ = bo(R, e);
41589
- m($);
41590
- }, T = (R) => {
41591
- X(R), _(R), Pj(R);
41592
- }, _ = (R) => {
41593
- const $ = st(d, w, J, R);
41594
- p($), V(1), We($);
41587
+ }, We = (D) => {
41588
+ const W = bo(D, e);
41589
+ m(W);
41590
+ }, z = (D) => {
41591
+ X(D), P(D), Pj(D);
41592
+ }, P = (D) => {
41593
+ const W = st(d, w, J, D);
41594
+ p(W), V(1), We(W);
41595
41595
  };
41596
41596
  te(() => {
41597
- localStorage.setItem(s, JSON.stringify(Array.from(A)));
41598
- }, [A, s]), te(() => {
41599
- O(!0), Dt(null), (async () => {
41597
+ localStorage.setItem(s, JSON.stringify(Array.from(I)));
41598
+ }, [I, s]), te(() => {
41599
+ B(!0), Dt(null), (async () => {
41600
41600
  try {
41601
- const $ = await fetch(i);
41602
- if (!$.ok)
41603
- throw new Error(`API responded with status: ${$.status}`);
41604
- const oe = await $.json();
41601
+ const W = await fetch(i);
41602
+ if (!W.ok)
41603
+ throw new Error(`API responded with status: ${W.status}`);
41604
+ const oe = await W.json();
41605
41605
  if (!Array.isArray(oe))
41606
41606
  throw new Error("Expected an array but received: " + typeof oe);
41607
41607
  const we = oe.map((ue) => ({
@@ -41633,30 +41633,30 @@ const SS = {
41633
41633
  h(we), p(we), k(we), K(Fe);
41634
41634
  const Rt = bo(we, e);
41635
41635
  m(Rt);
41636
- } catch ($) {
41637
- console.error("Failed to fetch articles", $);
41636
+ } catch (W) {
41637
+ console.error("Failed to fetch articles", W);
41638
41638
  } finally {
41639
- O(!1);
41639
+ B(!1);
41640
41640
  }
41641
41641
  })();
41642
41642
  }, [i]);
41643
41643
  const G = () => {
41644
- F(q === "grid" ? "list" : "grid");
41644
+ E(T === "grid" ? "list" : "grid");
41645
41645
  };
41646
- J9(() => d.filter((R) => R.isTrending).slice(0, 6), [d]), J9(() => d.filter((R) => R.isBreaking), [d]);
41646
+ J9(() => d.filter((D) => D.isTrending).slice(0, 6), [d]), J9(() => d.filter((D) => D.isBreaking), [d]);
41647
41647
  const ge = Math.ceil(y.length / c), de = y.slice(
41648
- (D - 1) * N,
41649
- D * N
41650
- ), ve = (R) => {
41651
- j(($) => {
41652
- const oe = new Set($);
41653
- return oe.has(R) ? oe.delete(R) : oe.add(R), oe;
41648
+ (R - 1) * N,
41649
+ R * N
41650
+ ), ve = (D) => {
41651
+ S((W) => {
41652
+ const oe = new Set(W);
41653
+ return oe.has(D) ? oe.delete(D) : oe.add(D), oe;
41654
41654
  });
41655
- }, je = (R) => {
41656
- navigator.share ? navigator.share({ title: R.title, text: R.title, url: R.link }) : (navigator.clipboard.writeText(R.link), alert("Article link copied to clipboard!"));
41655
+ }, je = (D) => {
41656
+ navigator.share ? navigator.share({ title: D.title, text: D.title, url: D.link }) : (navigator.clipboard.writeText(D.link), alert("Article link copied to clipboard!"));
41657
41657
  }, nt = () => {
41658
41658
  re(!U);
41659
- }, ci = y.length === 0 ? 0 : (D - 1) * N + 1, Bi = Math.min(D * N, y.length), Yt = () => {
41659
+ }, ci = y.length === 0 ? 0 : (R - 1) * N + 1, Bi = Math.min(R * N, y.length), Yt = () => {
41660
41660
  Re({
41661
41661
  categories: [],
41662
41662
  tags: [],
@@ -41665,28 +41665,28 @@ const SS = {
41665
41665
  dateRange: ["", ""],
41666
41666
  readTime: [0, 999]
41667
41667
  }), V(1);
41668
- const R = st(d, w, J, E);
41669
- p(R), V(1), We(R);
41668
+ const D = st(d, w, J, O);
41669
+ p(D), V(1), We(D);
41670
41670
  }, xa = () => {
41671
- C({}), he([]), X("all"), Yt(), p(d), V(1), We(d);
41672
- }, Mt = _o(null), li = (R) => {
41673
- V(R), setTimeout(() => {
41674
- var $;
41675
- ($ = Mt.current) == null || $.scrollIntoView({ behavior: "smooth", block: "start" });
41671
+ L({}), he([]), X("all"), Yt(), p(d), V(1), We(d);
41672
+ }, Mt = _o(null), li = (D) => {
41673
+ V(D), setTimeout(() => {
41674
+ var W;
41675
+ (W = Mt.current) == null || W.scrollIntoView({ behavior: "smooth", block: "start" });
41676
41676
  }, 100);
41677
- }, di = (R) => {
41678
- S(R), V(1);
41679
- }, Kt = (R, $) => {
41680
- C((oe) => {
41677
+ }, di = (D) => {
41678
+ C(D), V(1);
41679
+ }, Kt = (D, W) => {
41680
+ L((oe) => {
41681
41681
  const we = { ...oe };
41682
- $ ? we[R] = $ : delete we[R];
41683
- const Oe = st(d, we, J, E);
41682
+ W ? we[D] = W : delete we[D];
41683
+ const Oe = st(d, we, J, O);
41684
41684
  return p(Oe), V(1), We(Oe), we;
41685
41685
  });
41686
- }, va = (R) => {
41687
- const $ = J.filter((we) => we !== R);
41688
- he($);
41689
- const oe = st(d, w, $, E);
41686
+ }, va = (D) => {
41687
+ const W = J.filter((we) => we !== D);
41688
+ he(W);
41689
+ const oe = st(d, w, W, O);
41690
41690
  p(oe), V(1), We(oe);
41691
41691
  };
41692
41692
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col min-h-screen pb-16 md:pb-0", children: [
@@ -41694,13 +41694,13 @@ const SS = {
41694
41694
  /* @__PURE__ */ n.jsx(
41695
41695
  Rb,
41696
41696
  {
41697
- onSearchChange: (R) => {
41698
- const $ = d.filter((oe) => oe.title.toLowerCase().includes(R.toLowerCase()));
41699
- k($), x(R);
41697
+ onSearchChange: (D) => {
41698
+ const W = d.filter((oe) => oe.title.toLowerCase().includes(D.toLowerCase()));
41699
+ k(W), x(D);
41700
41700
  },
41701
41701
  title: "Latest News",
41702
41702
  popularTags: me,
41703
- generateHref: (R) => `/news?q=${R.replace(/\s+/g, "+")}`
41703
+ generateHref: (D) => `/news?q=${D.replace(/\s+/g, "+")}`
41704
41704
  }
41705
41705
  ),
41706
41706
  /* @__PURE__ */ n.jsxs("div", { className: "container mx-auto py-8 pb-20 md:pb-8", children: [
@@ -41709,12 +41709,12 @@ const SS = {
41709
41709
  /* @__PURE__ */ n.jsx(
41710
41710
  Db,
41711
41711
  {
41712
- data: d.map((R) => R.title),
41713
- onSelect: (R) => {
41714
- Jt(R);
41712
+ data: d.map((D) => D.title),
41713
+ onSelect: (D) => {
41714
+ Jt(D);
41715
41715
  },
41716
- onTyping: (R) => {
41717
- b(!!R), R || (k(d), x(""));
41716
+ onTyping: (D) => {
41717
+ b(!!D), D || (k(d), x(""));
41718
41718
  },
41719
41719
  placeholder: "Search news, topics, or authors...",
41720
41720
  showSubmitButton: !0,
@@ -41765,17 +41765,17 @@ const SS = {
41765
41765
  value: Q.replace(/-/g, " "),
41766
41766
  onRemove: () => fe("")
41767
41767
  }] : [],
41768
- ...J.map((R) => ({
41768
+ ...J.map((D) => ({
41769
41769
  key: "search",
41770
41770
  label: "",
41771
- value: R,
41772
- onRemove: () => va(R)
41771
+ value: D,
41772
+ onRemove: () => va(D)
41773
41773
  })),
41774
- ...Object.entries(w).map(([R, $]) => ({
41775
- key: R,
41776
- label: R.replace(/_/g, " "),
41777
- value: $,
41778
- onRemove: () => Kt(R, "")
41774
+ ...Object.entries(w).map(([D, W]) => ({
41775
+ key: D,
41776
+ label: D.replace(/_/g, " "),
41777
+ value: W,
41778
+ onRemove: () => Kt(D, "")
41779
41779
  }))
41780
41780
  ],
41781
41781
  onClearAll: xa
@@ -41787,8 +41787,8 @@ const SS = {
41787
41787
  _j,
41788
41788
  {
41789
41789
  dateFieldLabel: "Date",
41790
- activeDateFilter: E,
41791
- onDateFilterChange: T,
41790
+ activeDateFilter: O,
41791
+ onDateFilterChange: z,
41792
41792
  filterKeys: e,
41793
41793
  searchableFilters: t,
41794
41794
  filtersData: g,
@@ -41803,7 +41803,7 @@ const SS = {
41803
41803
  /* @__PURE__ */ n.jsx(
41804
41804
  Vb,
41805
41805
  {
41806
- viewMode: q,
41806
+ viewMode: T,
41807
41807
  onToggleViewMode: G,
41808
41808
  selectedItemsPerPage: N,
41809
41809
  onItemsPerPageChange: di,
@@ -41814,20 +41814,20 @@ const SS = {
41814
41814
  }
41815
41815
  ),
41816
41816
  y.length > 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
41817
- /* @__PURE__ */ n.jsx("div", { className: q === "grid" ? "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6" : "space-y-6", children: de.map((R, $) => /* @__PURE__ */ n.jsx("div", { ref: $ === 0 ? Mt : null, children: /* @__PURE__ */ n.jsx(
41817
+ /* @__PURE__ */ n.jsx("div", { className: T === "grid" ? "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6" : "space-y-6", children: de.map((D, W) => /* @__PURE__ */ n.jsx("div", { ref: W === 0 ? Mt : null, children: /* @__PURE__ */ n.jsx(
41818
41818
  O_,
41819
41819
  {
41820
- article: R,
41821
- isBookmarked: A.has(R._id),
41820
+ article: D,
41821
+ isBookmarked: I.has(D._id),
41822
41822
  onToggleBookmark: ve,
41823
41823
  onShare: je,
41824
- layout: q
41824
+ layout: T
41825
41825
  }
41826
- ) }, R._id)) }),
41826
+ ) }, D._id)) }),
41827
41827
  ge > 1 && /* @__PURE__ */ n.jsx("div", { className: "mt-8 flex justify-center", children: /* @__PURE__ */ n.jsx(
41828
41828
  Bb,
41829
41829
  {
41830
- currentPage: D,
41830
+ currentPage: R,
41831
41831
  totalPages: ge,
41832
41832
  onPageChange: li
41833
41833
  }
@@ -41859,20 +41859,20 @@ const SS = {
41859
41859
  /* @__PURE__ */ n.jsx(Ij, { api_url: "" }),
41860
41860
  /* @__PURE__ */ n.jsxs("div", { className: "mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5", children: [
41861
41861
  /* @__PURE__ */ n.jsx("h3", { className: "font-semibold text-lg mb-3", children: "Featured Employers" }),
41862
- /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-3 gap-2", children: [...Array(6)].map((R, $) => /* @__PURE__ */ n.jsx(
41862
+ /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-3 gap-2", children: [...Array(6)].map((D, W) => /* @__PURE__ */ n.jsx(
41863
41863
  "div",
41864
41864
  {
41865
41865
  className: "flex items-center justify-center p-2 bg-gray-50 rounded-md",
41866
41866
  children: /* @__PURE__ */ n.jsx(
41867
41867
  "img",
41868
41868
  {
41869
- src: `/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65 + $)}`,
41870
- alt: `Featured employer ${$ + 1}`,
41869
+ src: `/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65 + W)}`,
41870
+ alt: `Featured employer ${W + 1}`,
41871
41871
  className: "w-10 h-10 object-contain"
41872
41872
  }
41873
41873
  )
41874
41874
  },
41875
- $
41875
+ W
41876
41876
  )) })
41877
41877
  ] })
41878
41878
  ] }) })
@@ -41882,8 +41882,8 @@ const SS = {
41882
41882
  /* @__PURE__ */ n.jsx(
41883
41883
  qj,
41884
41884
  {
41885
- activeDateFilter: E,
41886
- handleDateFilterChange: T,
41885
+ activeDateFilter: O,
41886
+ handleDateFilterChange: z,
41887
41887
  filterKeys: e,
41888
41888
  searchableFilters: t,
41889
41889
  dateFieldLabel: l,
@@ -42103,16 +42103,16 @@ const SS = {
42103
42103
  onTyping: t,
42104
42104
  placeholder: a = "Search courses, instructors, or topics..."
42105
42105
  }) => {
42106
- const [o, s] = I(""), [c, l] = I([]), [d, h] = I(!1);
42106
+ const [o, s] = A(""), [c, l] = A([]), [d, h] = A(!1);
42107
42107
  te(() => {
42108
42108
  if (o.length > 0) {
42109
42109
  const k = i.filter((x) => {
42110
- var C, L, b, N, S;
42110
+ var L, j, b, N, C;
42111
42111
  const w = o.toLowerCase();
42112
- return x.title.toLowerCase().includes(w) || ((C = x.description) == null ? void 0 : C.toLowerCase().includes(w)) || ((L = x.instructor) == null ? void 0 : L.toLowerCase().includes(w)) || ((b = x.tags) == null ? void 0 : b.some((A) => A.toLowerCase().includes(w))) || ((N = x.category) == null ? void 0 : N.toLowerCase().includes(w)) || ((S = x.subcategory) == null ? void 0 : S.toLowerCase().includes(w));
42112
+ return x.title.toLowerCase().includes(w) || ((L = x.description) == null ? void 0 : L.toLowerCase().includes(w)) || ((j = x.instructor) == null ? void 0 : j.toLowerCase().includes(w)) || ((b = x.tags) == null ? void 0 : b.some((I) => I.toLowerCase().includes(w))) || ((N = x.category) == null ? void 0 : N.toLowerCase().includes(w)) || ((C = x.subcategory) == null ? void 0 : C.toLowerCase().includes(w));
42113
42113
  });
42114
42114
  e(k);
42115
- const g = i.filter((x) => x.title.toLowerCase().includes(o.toLowerCase())).map((x) => x.title).slice(0, 3), m = i.flatMap((x) => x.tags ?? []).filter((x) => x.toLowerCase().includes(o.toLowerCase())).filter((x, w, C) => C.indexOf(x) === w).slice(0, 3), f = i.filter((x) => x.instructor ? x.instructor.toLowerCase().includes(o.toLowerCase()) : !1).map((x) => x.instructor).filter((x, w, C) => C.indexOf(x) === w).slice(0, 2);
42115
+ const g = i.filter((x) => x.title.toLowerCase().includes(o.toLowerCase())).map((x) => x.title).slice(0, 3), m = i.flatMap((x) => x.tags ?? []).filter((x) => x.toLowerCase().includes(o.toLowerCase())).filter((x, w, L) => L.indexOf(x) === w).slice(0, 3), f = i.filter((x) => x.instructor ? x.instructor.toLowerCase().includes(o.toLowerCase()) : !1).map((x) => x.instructor).filter((x, w, L) => L.indexOf(x) === w).slice(0, 2);
42116
42116
  l([...g, ...m, ...f]), h(!0);
42117
42117
  } else
42118
42118
  e(i), l([]), h(!1);
@@ -42181,7 +42181,7 @@ const SS = {
42181
42181
  onCategorySelect: a,
42182
42182
  onSubcategorySelect: o
42183
42183
  }) => {
42184
- const [s, c] = I(/* @__PURE__ */ new Set()), l = (h) => {
42184
+ const [s, c] = A(/* @__PURE__ */ new Set()), l = (h) => {
42185
42185
  const y = new Set(s);
42186
42186
  y.has(h) ? y.delete(h) : y.add(h), c(y);
42187
42187
  }, d = (h) => {
@@ -42245,7 +42245,7 @@ const SS = {
42245
42245
  onCategorySelect: p,
42246
42246
  onSubcategorySelect: u
42247
42247
  }) => {
42248
- const [k, g] = I(!1), m = [
42248
+ const [k, g] = A(!1), m = [
42249
42249
  { value: "relevance", label: "Most Relevant" },
42250
42250
  { value: "price-low-high", label: "Price: Low to High" },
42251
42251
  { value: "price-high-low", label: "Price: High to Low" },
@@ -42253,22 +42253,22 @@ const SS = {
42253
42253
  { value: "newest", label: "Newest" },
42254
42254
  { value: "most-enrolled", label: "Most Enrolled" }
42255
42255
  ], f = ["English", "Spanish", "French", "German", "Multiple"], x = ["Lifetime Access", "Certificate", "Mobile Access", "Expert Support"], w = (b) => {
42256
- const N = i.languages.includes(b) ? i.languages.filter((S) => S !== b) : [...i.languages, b];
42256
+ const N = i.languages.includes(b) ? i.languages.filter((C) => C !== b) : [...i.languages, b];
42257
42257
  t({ ...i, languages: N });
42258
- }, C = (b) => {
42259
- const N = i.features.includes(b) ? i.features.filter((S) => S !== b) : [...i.features, b];
42258
+ }, L = (b) => {
42259
+ const N = i.features.includes(b) ? i.features.filter((C) => C !== b) : [...i.features, b];
42260
42260
  t({ ...i, features: N });
42261
- }, L = i.levels.length > 0 || i.languages.length > 0 || i.features.length > 0 || i.rating > 0 || i.priceRange[0] > 0 || i.priceRange[1] < 2e3;
42261
+ }, j = i.levels.length > 0 || i.languages.length > 0 || i.features.length > 0 || i.rating > 0 || i.priceRange[0] > 0 || i.priceRange[1] < 2e3;
42262
42262
  return /* @__PURE__ */ n.jsxs("div", { className: "course-filters bg-white rounded-lg shadow-sm border border-gray-200", children: [
42263
42263
  /* @__PURE__ */ n.jsxs("div", { className: "hidden lg:block p-4 border-b border-gray-200", children: [
42264
42264
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between", children: [
42265
42265
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
42266
42266
  /* @__PURE__ */ n.jsx(co, { className: "w-5 h-5 text-gray-600 mr-2" }),
42267
42267
  /* @__PURE__ */ n.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: "Filters" }),
42268
- L && /* @__PURE__ */ n.jsx("span", { className: "ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full", children: "Active" })
42268
+ j && /* @__PURE__ */ n.jsx("span", { className: "ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full", children: "Active" })
42269
42269
  ] }),
42270
42270
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center space-x-2", children: [
42271
- L && /* @__PURE__ */ n.jsx("button", { onClick: o, className: "text-sm text-indigo-600 hover:text-indigo-800", children: "Clear All" }),
42271
+ j && /* @__PURE__ */ n.jsx("button", { onClick: o, className: "text-sm text-indigo-600 hover:text-indigo-800", children: "Clear All" }),
42272
42272
  /* @__PURE__ */ n.jsx("button", { onClick: () => g(!k), className: "lg:hidden p-1 rounded-md hover:bg-gray-100", children: /* @__PURE__ */ n.jsx(Xn, { className: `w-4 h-4 transition-transform ${k ? "rotate-180" : ""}` }) })
42273
42273
  ] })
42274
42274
  ] }),
@@ -42327,7 +42327,7 @@ const SS = {
42327
42327
  {
42328
42328
  type: "checkbox",
42329
42329
  checked: i.features.includes(b),
42330
- onChange: () => C(b),
42330
+ onChange: () => L(b),
42331
42331
  className: "mr-2 text-indigo-600 focus:ring-yellow--500 rounded"
42332
42332
  }
42333
42333
  ),
@@ -42425,7 +42425,7 @@ const SS = {
42425
42425
  }
42426
42426
  )
42427
42427
  ] }), $_ = ({ course: i, isFavorite: e, onToggleFavorite: t, onEnroll: a }) => {
42428
- const [o, s] = I(!1), c = (d, h) => new Intl.NumberFormat("en-EU", {
42428
+ const [o, s] = A(!1), c = (d, h) => new Intl.NumberFormat("en-EU", {
42429
42429
  style: "currency",
42430
42430
  currency: h
42431
42431
  }).format(d), l = (d) => d >= 1e3 ? `${(d / 1e3).toFixed(1)}k` : d.toString();
@@ -42586,19 +42586,19 @@ const SS = {
42586
42586
  enableMobileFilter: e = !0,
42587
42587
  itemsPerPage: t = 9
42588
42588
  }) => {
42589
- const [a, o] = I([]), [s, c] = I([]), [l, d] = I(/* @__PURE__ */ new Set()), [h, y] = I(""), [p, u] = I(""), [k, g] = I("relevance"), [m, f] = I(!1), [x, w] = I(1), [C, L] = I(!1), [b, N] = I(!1), [S, A] = I(!0), [j, q] = I(""), [F, D] = I([]), [V, W] = I([]), [K, U] = I("grid"), [re, J] = I(t), he = () => {
42590
- U((T) => T === "grid" ? "list" : "grid");
42591
- }, me = (T) => (T ?? "").trim().toLowerCase().replace(/\s+/g, "-"), le = J9(() => {
42592
- const T = /* @__PURE__ */ new Map();
42593
- return a.forEach((_) => {
42594
- const G = _.category, ge = _.subcategory, de = me(G), ve = me(ge);
42589
+ const [a, o] = A([]), [s, c] = A([]), [l, d] = A(/* @__PURE__ */ new Set()), [h, y] = A(""), [p, u] = A(""), [k, g] = A("relevance"), [m, f] = A(!1), [x, w] = A(1), [L, j] = A(!1), [b, N] = A(!1), [C, I] = A(!0), [S, T] = A(""), [E, R] = A([]), [V, Z] = A([]), [K, U] = A("grid"), [re, J] = A(t), he = () => {
42590
+ U((z) => z === "grid" ? "list" : "grid");
42591
+ }, me = (z) => (z ?? "").trim().toLowerCase().replace(/\s+/g, "-"), le = J9(() => {
42592
+ const z = /* @__PURE__ */ new Map();
42593
+ return a.forEach((P) => {
42594
+ const G = P.category, ge = P.subcategory, de = me(G), ve = me(ge);
42595
42595
  if (!de) return;
42596
- T.has(de) || T.set(de, /* @__PURE__ */ new Map());
42597
- const je = T.get(de);
42596
+ z.has(de) || z.set(de, /* @__PURE__ */ new Map());
42597
+ const je = z.get(de);
42598
42598
  ve && je.set(ve, (je.get(ve) ?? 0) + 1);
42599
- }), Array.from(T.entries()).map(([_, G]) => ({
42600
- id: _,
42601
- name: _.replace(/-/g, " ").replace(/\b\w/g, (ge) => ge.toUpperCase()),
42599
+ }), Array.from(z.entries()).map(([P, G]) => ({
42600
+ id: P,
42601
+ name: P.replace(/-/g, " ").replace(/\b\w/g, (ge) => ge.toUpperCase()),
42602
42602
  icon: "🎯",
42603
42603
  // Optional
42604
42604
  subcategories: Array.from(G.entries()).map(([ge, de]) => ({
@@ -42607,9 +42607,9 @@ const SS = {
42607
42607
  courseCount: de
42608
42608
  }))
42609
42609
  }));
42610
- }, [a]), ze = (T) => {
42611
- J(T), w(1);
42612
- }, [O, E] = I({
42610
+ }, [a]), ze = (z) => {
42611
+ J(z), w(1);
42612
+ }, [B, O] = A({
42613
42613
  categories: [],
42614
42614
  subcategories: [],
42615
42615
  priceRange: [0, 2e3],
@@ -42622,79 +42622,79 @@ const SS = {
42622
42622
  (async () => {
42623
42623
  try {
42624
42624
  if (!i) {
42625
- o(Wo), c(Wo), A(!1);
42625
+ o(Wo), c(Wo), I(!1);
42626
42626
  return;
42627
42627
  }
42628
- A(!0);
42629
- const _ = await fetch(i);
42630
- if (!_.ok) throw new Error(`Failed to fetch courses from ${i}`);
42631
- const G = await _.json();
42628
+ I(!0);
42629
+ const P = await fetch(i);
42630
+ if (!P.ok) throw new Error(`Failed to fetch courses from ${i}`);
42631
+ const G = await P.json();
42632
42632
  o(G), c(G);
42633
42633
  const de = G.map((je) => Hb(je.title || "")).filter((je) => !!je).reduce((je, nt) => (je[nt] = (je[nt] || 0) + 1, je), {}), ve = Object.entries(de).sort((je, nt) => nt[1] - je[1]).slice(0, 10).map(([je]) => je);
42634
- D(ve);
42635
- } catch (_) {
42636
- console.error("[Courses] Error loading data:", _), o(Wo), c(Wo);
42634
+ R(ve);
42635
+ } catch (P) {
42636
+ console.error("[Courses] Error loading data:", P), o(Wo), c(Wo);
42637
42637
  } finally {
42638
- A(!1);
42638
+ I(!1);
42639
42639
  }
42640
42640
  })();
42641
42641
  }, [i]), te(() => {
42642
42642
  var G;
42643
- const _ = (G = new URLSearchParams(window.location.search).get("q")) == null ? void 0 : G.trim();
42644
- if (_) {
42645
- q(_);
42643
+ const P = (G = new URLSearchParams(window.location.search).get("q")) == null ? void 0 : G.trim();
42644
+ if (P) {
42645
+ T(P);
42646
42646
  const ge = a.filter(
42647
42647
  (de) => {
42648
42648
  var ve;
42649
- return de.title.toLowerCase().includes(_.toLowerCase()) || ((ve = de.description) == null ? void 0 : ve.toLowerCase().includes(_.toLowerCase()));
42649
+ return de.title.toLowerCase().includes(P.toLowerCase()) || ((ve = de.description) == null ? void 0 : ve.toLowerCase().includes(P.toLowerCase()));
42650
42650
  }
42651
42651
  );
42652
42652
  c(ge);
42653
42653
  }
42654
42654
  }, [a]), te(() => {
42655
- const T = localStorage.getItem("course-favorites");
42656
- T && d(new Set(JSON.parse(T)));
42655
+ const z = localStorage.getItem("course-favorites");
42656
+ z && d(new Set(JSON.parse(z)));
42657
42657
  }, []), te(() => {
42658
42658
  localStorage.setItem("course-favorites", JSON.stringify(Array.from(l)));
42659
42659
  }, [l]);
42660
42660
  const X = J9(() => {
42661
- let T = [...s];
42662
- switch (h && (T = T.filter((_) => me(_.category) === h)), p && (T = T.filter((_) => me(_.subcategory) === p)), O.levels.length > 0 && (T = T.filter((_) => O.levels.includes(_.level))), O.languages.length > 0 && (T = T.filter((_) => O.languages.includes(_.language))), O.features.length > 0 && (T = T.filter((_) => O.features.some((G) => _.features.includes(G)))), O.rating > 0 && (T = T.filter((_) => _.rating >= O.rating)), m && (T = T.filter((_) => l.has(_.id))), k) {
42661
+ let z = [...s];
42662
+ switch (h && (z = z.filter((P) => me(P.category) === h)), p && (z = z.filter((P) => me(P.subcategory) === p)), B.levels.length > 0 && (z = z.filter((P) => B.levels.includes(P.level))), B.languages.length > 0 && (z = z.filter((P) => B.languages.includes(P.language))), B.features.length > 0 && (z = z.filter((P) => B.features.some((G) => P.features.includes(G)))), B.rating > 0 && (z = z.filter((P) => P.rating >= B.rating)), m && (z = z.filter((P) => l.has(P.id))), k) {
42663
42663
  case "price-low-high":
42664
- T.sort((_, G) => _.price - G.price);
42664
+ z.sort((P, G) => P.price - G.price);
42665
42665
  break;
42666
42666
  case "price-high-low":
42667
- T.sort((_, G) => G.price - _.price);
42667
+ z.sort((P, G) => G.price - P.price);
42668
42668
  break;
42669
42669
  case "rating":
42670
- T.sort((_, G) => G.rating - _.rating);
42670
+ z.sort((P, G) => G.rating - P.rating);
42671
42671
  break;
42672
42672
  case "newest":
42673
- T.sort((_, G) => new Date(G.lastUpdated).getTime() - new Date(_.lastUpdated).getTime());
42673
+ z.sort((P, G) => new Date(G.lastUpdated).getTime() - new Date(P.lastUpdated).getTime());
42674
42674
  break;
42675
42675
  case "most-enrolled":
42676
- T.sort((_, G) => G.enrollmentCount - _.enrollmentCount);
42676
+ z.sort((P, G) => G.enrollmentCount - P.enrollmentCount);
42677
42677
  break;
42678
42678
  default:
42679
- T.sort((_, G) => _.isFeatured && !G.isFeatured ? -1 : !_.isFeatured && G.isFeatured ? 1 : _.isBestseller && !G.isBestseller ? -1 : !_.isBestseller && G.isBestseller ? 1 : G.rating - _.rating);
42679
+ z.sort((P, G) => P.isFeatured && !G.isFeatured ? -1 : !P.isFeatured && G.isFeatured ? 1 : P.isBestseller && !G.isBestseller ? -1 : !P.isBestseller && G.isBestseller ? 1 : G.rating - P.rating);
42680
42680
  }
42681
- return T;
42682
- }, [s, h, p, O, l, m, k]), Q = (T) => {
42683
- d((_) => {
42684
- const G = new Set(_);
42685
- return G.has(T) ? G.delete(T) : G.add(T), G;
42681
+ return z;
42682
+ }, [s, h, p, B, l, m, k]), Q = (z) => {
42683
+ d((P) => {
42684
+ const G = new Set(P);
42685
+ return G.has(z) ? G.delete(z) : G.add(z), G;
42686
42686
  });
42687
- }, fe = (T) => {
42688
- const _ = a.find((G) => G.id === T);
42689
- _ != null && _.link && window.open(_.link, "_blank", "noopener,noreferrer");
42690
- }, Ne = (T) => {
42691
- const _ = me(T);
42692
- y(_ === h ? "" : _), u("");
42693
- }, rt = (T) => {
42694
- const _ = me(T);
42695
- u(_ === p ? "" : _);
42687
+ }, fe = (z) => {
42688
+ const P = a.find((G) => G.id === z);
42689
+ P != null && P.link && window.open(P.link, "_blank", "noopener,noreferrer");
42690
+ }, Ne = (z) => {
42691
+ const P = me(z);
42692
+ y(P === h ? "" : P), u("");
42693
+ }, rt = (z) => {
42694
+ const P = me(z);
42695
+ u(P === p ? "" : P);
42696
42696
  }, Re = () => {
42697
- E({
42697
+ O({
42698
42698
  categories: [],
42699
42699
  subcategories: [],
42700
42700
  priceRange: [0, 2e3],
@@ -42702,25 +42702,25 @@ const SS = {
42702
42702
  languages: [],
42703
42703
  features: [],
42704
42704
  rating: 0
42705
- }), y(""), u(""), f(!1), q(""), c(a);
42705
+ }), y(""), u(""), f(!1), T(""), c(a);
42706
42706
  }, Xt = () => {
42707
- L(!C);
42708
- }, Dt = X.length === 0 ? 0 : (x - 1) * re + 1, Jt = Math.min(x * re, X.length), We = (T) => {
42709
- if (q(T), !T) {
42710
- c(a), W([]);
42707
+ j(!L);
42708
+ }, Dt = X.length === 0 ? 0 : (x - 1) * re + 1, Jt = Math.min(x * re, X.length), We = (z) => {
42709
+ if (T(z), !z) {
42710
+ c(a), Z([]);
42711
42711
  return;
42712
42712
  }
42713
- const _ = a.filter(
42713
+ const P = a.filter(
42714
42714
  (ge) => {
42715
42715
  var de;
42716
- return ge.title.toLowerCase().includes(T.toLowerCase()) || ((de = ge.description) == null ? void 0 : de.toLowerCase().includes(T.toLowerCase()));
42716
+ return ge.title.toLowerCase().includes(z.toLowerCase()) || ((de = ge.description) == null ? void 0 : de.toLowerCase().includes(z.toLowerCase()));
42717
42717
  }
42718
42718
  );
42719
- c(_);
42720
- const G = _.map((ge) => ge.title).filter(
42721
- (ge, de, ve) => ge && ge.toLowerCase().includes(T.toLowerCase()) && ve.indexOf(ge) === de
42719
+ c(P);
42720
+ const G = P.map((ge) => ge.title).filter(
42721
+ (ge, de, ve) => ge && ge.toLowerCase().includes(z.toLowerCase()) && ve.indexOf(ge) === de
42722
42722
  ).slice(0, 5);
42723
- W(G);
42723
+ Z(G);
42724
42724
  };
42725
42725
  return /* @__PURE__ */ n.jsxs("div", { className: "min-h-screen bg-gray-50", children: [
42726
42726
  /* @__PURE__ */ n.jsx(
@@ -42730,8 +42730,8 @@ const SS = {
42730
42730
  title: "Courses",
42731
42731
  description: "Browse and enroll in industry-relevant gaming courses",
42732
42732
  searchPlaceholder: "Search courses",
42733
- popularTags: F,
42734
- generateHref: (T) => `/courses?q=${T.toLowerCase().replace(/\s+/g, "+")}`
42733
+ popularTags: E,
42734
+ generateHref: (z) => `/courses?q=${z.toLowerCase().replace(/\s+/g, "+")}`
42735
42735
  }
42736
42736
  ),
42737
42737
  /* @__PURE__ */ n.jsx(
@@ -42758,21 +42758,21 @@ const SS = {
42758
42758
  value: p.replace(/-/g, " "),
42759
42759
  onRemove: () => u("")
42760
42760
  }] : [],
42761
- ...O.levels.map((T) => ({
42761
+ ...B.levels.map((z) => ({
42762
42762
  key: "level",
42763
42763
  label: "",
42764
- value: T,
42765
- onRemove: () => E((_) => ({
42766
- ..._,
42767
- levels: _.levels.filter((G) => G !== T)
42764
+ value: z,
42765
+ onRemove: () => O((P) => ({
42766
+ ...P,
42767
+ levels: P.levels.filter((G) => G !== z)
42768
42768
  }))
42769
42769
  })),
42770
- ...j ? [{
42770
+ ...S ? [{
42771
42771
  key: "search",
42772
42772
  label: "Search",
42773
- value: j,
42773
+ value: S,
42774
42774
  onRemove: () => {
42775
- q(""), c(a);
42775
+ T(""), c(a);
42776
42776
  }
42777
42777
  }] : []
42778
42778
  ],
@@ -42784,15 +42784,15 @@ const SS = {
42784
42784
  /* @__PURE__ */ n.jsx(
42785
42785
  Db,
42786
42786
  {
42787
- data: a.map((T) => T.title),
42788
- onSelect: (T) => {
42789
- const _ = a.filter(
42790
- (G) => G.title.toLowerCase().includes(T.toLowerCase())
42787
+ data: a.map((z) => z.title),
42788
+ onSelect: (z) => {
42789
+ const P = a.filter(
42790
+ (G) => G.title.toLowerCase().includes(z.toLowerCase())
42791
42791
  );
42792
- c(_), q(T);
42792
+ c(P), T(z);
42793
42793
  },
42794
- onTyping: (T) => {
42795
- N(!!T), T || (c(a), q(""));
42794
+ onTyping: (z) => {
42795
+ N(!!z), z || (c(a), T(""));
42796
42796
  }
42797
42797
  }
42798
42798
  ),
@@ -42800,7 +42800,7 @@ const SS = {
42800
42800
  DC,
42801
42801
  {
42802
42802
  sortBy: k,
42803
- onFiltersChange: E,
42803
+ onFiltersChange: O,
42804
42804
  onSortChange: g,
42805
42805
  onClearFilters: Re,
42806
42806
  totalCourses: a.length,
@@ -42808,10 +42808,10 @@ const SS = {
42808
42808
  categories: le,
42809
42809
  selectedCategory: h,
42810
42810
  selectedSubcategory: p,
42811
- filters: O,
42811
+ filters: B,
42812
42812
  onCategorySelect: Ne,
42813
42813
  onSubcategorySelect: rt,
42814
- isMobileFilterOpen: C,
42814
+ isMobileFilterOpen: L,
42815
42815
  toggleMobileFilter: Xt,
42816
42816
  enableMobileFilter: e,
42817
42817
  showFilterName: !b,
@@ -42822,9 +42822,9 @@ const SS = {
42822
42822
  /* @__PURE__ */ n.jsx("div", { className: "hidden lg:block lg:w-1/4", children: /* @__PURE__ */ n.jsx(
42823
42823
  DC,
42824
42824
  {
42825
- filters: O,
42825
+ filters: B,
42826
42826
  sortBy: k,
42827
- onFiltersChange: E,
42827
+ onFiltersChange: O,
42828
42828
  onSortChange: g,
42829
42829
  onClearFilters: Re,
42830
42830
  totalCourses: a.length,
@@ -42834,7 +42834,7 @@ const SS = {
42834
42834
  selectedSubcategory: p,
42835
42835
  onCategorySelect: Ne,
42836
42836
  onSubcategorySelect: rt,
42837
- isMobileFilterOpen: C,
42837
+ isMobileFilterOpen: L,
42838
42838
  toggleMobileFilter: Xt,
42839
42839
  enableMobileFilter: e,
42840
42840
  showFilterName: !0
@@ -42854,7 +42854,7 @@ const SS = {
42854
42854
  title: "All Courses"
42855
42855
  }
42856
42856
  ),
42857
- S ? /* @__PURE__ */ n.jsx(Tb, { totalColumns: 3 }) : /* @__PURE__ */ n.jsx(
42857
+ C ? /* @__PURE__ */ n.jsx(Tb, { totalColumns: 3 }) : /* @__PURE__ */ n.jsx(
42858
42858
  Z_,
42859
42859
  {
42860
42860
  processedCourses: X,